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-rsh=PATH Specify path to remote shell program
866 --with-privsep-path=xxx Path for privilege separation chroot
867 --with-xauth=PATH Specify path to xauth program
868 --with-mantype=man|cat|doc Set man page type
869 --with-md5-passwords Enable use of MD5 passwords
870 --without-shadow Disable shadow password support
871 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
872 --with-default-path= Specify default \$PATH environment for server
873 --with-superuser-path= Specify different path for super-user
874 --with-ipv4-default Use IPv4 by connections unless '-6' specified
875 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
876 --with-bsd-auth Enable BSD auth support
877 --with-pid-dir=PATH Specify location of ssh.pid file
878 --with-lastlog=FILE|DIR specify lastlog location common locations
880 Some influential environment variables:
881 CC C compiler command
882 CFLAGS C compiler flags
883 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
884 nonstandard directory <lib dir>
885 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
886 headers in a nonstandard directory <include dir>
889 Use these variables to override the choices made by `configure' or to help
890 it to find libraries and programs with nonstandard names/locations.
895 if test "$ac_init_help" = "recursive"; then
896 # If there are subdirs, report their specific --help.
898 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899 test -d $ac_dir || continue
902 if test "$ac_dir" != .; then
903 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904 # A "../" for each directory in $ac_dir_suffix.
905 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
907 ac_dir_suffix= ac_top_builddir=
911 .) # No --srcdir option. We are building in place.
913 if test -z "$ac_top_builddir"; then
916 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
918 [\\/]* | ?:[\\/]* ) # Absolute path.
919 ac_srcdir=$srcdir$ac_dir_suffix;
920 ac_top_srcdir=$srcdir ;;
922 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923 ac_top_srcdir=$ac_top_builddir$srcdir ;;
925 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
927 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
928 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
929 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
930 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
933 # Check for guested configure; otherwise get Cygnus style configure.
934 if test -f $ac_srcdir/configure.gnu; then
936 $SHELL $ac_srcdir/configure.gnu --help=recursive
937 elif test -f $ac_srcdir/configure; then
939 $SHELL $ac_srcdir/configure --help=recursive
940 elif test -f $ac_srcdir/configure.ac ||
941 test -f $ac_srcdir/configure.in; then
945 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
951 test -n "$ac_init_help" && exit 0
952 if $ac_init_version; then
955 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
956 Free Software Foundation, Inc.
957 This configure script is free software; the Free Software Foundation
958 gives unlimited permission to copy, distribute and modify it.
964 This file contains any messages produced by compilers while
965 running configure, to aid debugging if configure makes a mistake.
967 It was created by $as_me, which was
968 generated by GNU Autoconf 2.53. Invocation command line was
975 @%:@@%:@ --------- @%:@@%:@
976 @%:@@%:@ Platform. @%:@@%:@
977 @%:@@%:@ --------- @%:@@%:@
979 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
980 uname -m = `(uname -m) 2>/dev/null || echo unknown`
981 uname -r = `(uname -r) 2>/dev/null || echo unknown`
982 uname -s = `(uname -s) 2>/dev/null || echo unknown`
983 uname -v = `(uname -v) 2>/dev/null || echo unknown`
985 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
986 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
988 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
989 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
990 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
991 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
992 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
993 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
994 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1002 test -z "$as_dir" && as_dir=.
1003 echo "PATH: $as_dir"
1011 @%:@@%:@ ----------- @%:@@%:@
1012 @%:@@%:@ Core tests. @%:@@%:@
1013 @%:@@%:@ ----------- @%:@@%:@
1018 # Keep a trace of the command line.
1019 # Strip out --no-create and --no-recursion so they do not pile up.
1020 # Also quote any args containing shell meta-characters.
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n ) continue ;;
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1032 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1034 case " $ac_configure_args " in
1035 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1036 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1039 # Get rid of the leading space.
1042 # When interrupted or exit'd, cleanup temporary files, and complete
1043 # config.log. We remove comments because anyway the quotes in there
1044 # would cause problems or look ugly.
1045 # WARNING: Be sure not to use single quotes in there, as some shells,
1046 # such as our DU 5.0 friend, will then `close' the trap.
1047 trap 'exit_status=$?
1048 # Save into config.log some information that might help in debugging.
1052 @%:@@%:@ ---------------- @%:@@%:@
1053 @%:@@%:@ Cache variables. @%:@@%:@
1054 @%:@@%:@ ---------------- @%:@@%:@
1057 # The following way of writing the cache mishandles newlines in values,
1060 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1063 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1064 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1068 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1073 if test -s confdefs.h; then
1075 @%:@@%:@ ----------- @%:@@%:@
1076 @%:@@%:@ confdefs.h. @%:@@%:@
1077 @%:@@%:@ ----------- @%:@@%:@
1080 sed "/^$/d" confdefs.h
1083 test "$ac_signal" != 0 &&
1084 echo "$as_me: caught signal $ac_signal"
1085 echo "$as_me: exit $exit_status"
1087 rm -f core core.* *.core &&
1088 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1091 for ac_signal in 1 2 13 15; do
1092 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1096 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1097 rm -rf conftest* confdefs.h
1098 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1101 # Predefined preprocessor variables.
1103 cat >>confdefs.h <<_ACEOF
1104 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1108 cat >>confdefs.h <<_ACEOF
1109 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1113 cat >>confdefs.h <<_ACEOF
1114 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1118 cat >>confdefs.h <<_ACEOF
1119 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1123 cat >>confdefs.h <<_ACEOF
1124 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1128 # Let the site file select an alternate cache file if it wants to.
1129 # Prefer explicitly selected file to automatically selected ones.
1130 if test -z "$CONFIG_SITE"; then
1131 if test "x$prefix" != xNONE; then
1132 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1134 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1137 for ac_site_file in $CONFIG_SITE; do
1138 if test -r "$ac_site_file"; then
1139 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1140 echo "$as_me: loading site script $ac_site_file" >&6;}
1141 sed 's/^/| /' "$ac_site_file" >&5
1146 if test -r "$cache_file"; then
1147 # Some versions of bash will fail to source /dev/null (special
1148 # files actually), so we avoid doing that.
1149 if test -f "$cache_file"; then
1150 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1151 echo "$as_me: loading cache $cache_file" >&6;}
1153 [\\/]* | ?:[\\/]* ) . $cache_file;;
1154 *) . ./$cache_file;;
1158 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1159 echo "$as_me: creating cache $cache_file" >&6;}
1163 # Check that the precious variables saved in the cache have kept the same
1165 ac_cache_corrupted=false
1166 for ac_var in `(set) 2>&1 |
1167 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1168 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1169 eval ac_new_set=\$ac_env_${ac_var}_set
1170 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1171 eval ac_new_val="\$ac_env_${ac_var}_value"
1172 case $ac_old_set,$ac_new_set in
1174 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1175 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1176 ac_cache_corrupted=: ;;
1178 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1179 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1180 ac_cache_corrupted=: ;;
1183 if test "x$ac_old_val" != "x$ac_new_val"; then
1184 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1185 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1186 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1187 echo "$as_me: former value: $ac_old_val" >&2;}
1188 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1189 echo "$as_me: current value: $ac_new_val" >&2;}
1190 ac_cache_corrupted=:
1193 # Pass precious variables to config.status.
1194 if test "$ac_new_set" = set; then
1196 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1197 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1198 *) ac_arg=$ac_var=$ac_new_val ;;
1200 case " $ac_configure_args " in
1201 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1202 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1206 if $ac_cache_corrupted; then
1207 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1208 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1209 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1210 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1211 { (exit 1); exit 1; }; }
1215 ac_cpp='$CPP $CPPFLAGS'
1216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1239 ac_config_headers="$ac_config_headers config.h"
1242 ac_cpp='$CPP $CPPFLAGS'
1243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1246 if test -n "$ac_tool_prefix"; then
1247 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1248 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1249 echo "$as_me:$LINENO: checking for $ac_word" >&5
1250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1251 if test "${ac_cv_prog_CC+set}" = set; then
1252 echo $ECHO_N "(cached) $ECHO_C" >&6
1254 if test -n "$CC"; then
1255 ac_cv_prog_CC="$CC" # Let the user override the test.
1257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1261 test -z "$as_dir" && as_dir=.
1262 for ac_exec_ext in '' $ac_executable_extensions; do
1263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1264 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1274 if test -n "$CC"; then
1275 echo "$as_me:$LINENO: result: $CC" >&5
1276 echo "${ECHO_T}$CC" >&6
1278 echo "$as_me:$LINENO: result: no" >&5
1279 echo "${ECHO_T}no" >&6
1283 if test -z "$ac_cv_prog_CC"; then
1285 # Extract the first word of "gcc", so it can be a program name with args.
1286 set dummy gcc; ac_word=$2
1287 echo "$as_me:$LINENO: checking for $ac_word" >&5
1288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1289 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1290 echo $ECHO_N "(cached) $ECHO_C" >&6
1292 if test -n "$ac_ct_CC"; then
1293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1299 test -z "$as_dir" && as_dir=.
1300 for ac_exec_ext in '' $ac_executable_extensions; do
1301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1302 ac_cv_prog_ac_ct_CC="gcc"
1303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1311 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1312 if test -n "$ac_ct_CC"; then
1313 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1314 echo "${ECHO_T}$ac_ct_CC" >&6
1316 echo "$as_me:$LINENO: result: no" >&5
1317 echo "${ECHO_T}no" >&6
1325 if test -z "$CC"; then
1326 if test -n "$ac_tool_prefix"; then
1327 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1328 set dummy ${ac_tool_prefix}cc; ac_word=$2
1329 echo "$as_me:$LINENO: checking for $ac_word" >&5
1330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1331 if test "${ac_cv_prog_CC+set}" = set; then
1332 echo $ECHO_N "(cached) $ECHO_C" >&6
1334 if test -n "$CC"; then
1335 ac_cv_prog_CC="$CC" # Let the user override the test.
1337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1341 test -z "$as_dir" && as_dir=.
1342 for ac_exec_ext in '' $ac_executable_extensions; do
1343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1344 ac_cv_prog_CC="${ac_tool_prefix}cc"
1345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1354 if test -n "$CC"; then
1355 echo "$as_me:$LINENO: result: $CC" >&5
1356 echo "${ECHO_T}$CC" >&6
1358 echo "$as_me:$LINENO: result: no" >&5
1359 echo "${ECHO_T}no" >&6
1363 if test -z "$ac_cv_prog_CC"; then
1365 # Extract the first word of "cc", so it can be a program name with args.
1366 set dummy cc; ac_word=$2
1367 echo "$as_me:$LINENO: checking for $ac_word" >&5
1368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1369 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1370 echo $ECHO_N "(cached) $ECHO_C" >&6
1372 if test -n "$ac_ct_CC"; then
1373 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1379 test -z "$as_dir" && as_dir=.
1380 for ac_exec_ext in '' $ac_executable_extensions; do
1381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1382 ac_cv_prog_ac_ct_CC="cc"
1383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1391 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1392 if test -n "$ac_ct_CC"; then
1393 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1394 echo "${ECHO_T}$ac_ct_CC" >&6
1396 echo "$as_me:$LINENO: result: no" >&5
1397 echo "${ECHO_T}no" >&6
1406 if test -z "$CC"; then
1407 # Extract the first word of "cc", so it can be a program name with args.
1408 set dummy cc; ac_word=$2
1409 echo "$as_me:$LINENO: checking for $ac_word" >&5
1410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1411 if test "${ac_cv_prog_CC+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1414 if test -n "$CC"; then
1415 ac_cv_prog_CC="$CC" # Let the user override the test.
1418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1422 test -z "$as_dir" && as_dir=.
1423 for ac_exec_ext in '' $ac_executable_extensions; do
1424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1425 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1426 ac_prog_rejected=yes
1430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1436 if test $ac_prog_rejected = yes; then
1437 # We found a bogon in the path, so make sure we never use it.
1438 set dummy $ac_cv_prog_CC
1440 if test $@%:@ != 0; then
1441 # We chose a different compiler from the bogus one.
1442 # However, it has the same basename, so the bogon will be chosen
1443 # first if we set CC to just the basename; use the full file name.
1445 set dummy "$as_dir/$ac_word" ${1+"$@"}
1453 if test -n "$CC"; then
1454 echo "$as_me:$LINENO: result: $CC" >&5
1455 echo "${ECHO_T}$CC" >&6
1457 echo "$as_me:$LINENO: result: no" >&5
1458 echo "${ECHO_T}no" >&6
1462 if test -z "$CC"; then
1463 if test -n "$ac_tool_prefix"; then
1466 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1467 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1468 echo "$as_me:$LINENO: checking for $ac_word" >&5
1469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470 if test "${ac_cv_prog_CC+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1473 if test -n "$CC"; then
1474 ac_cv_prog_CC="$CC" # Let the user override the test.
1476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1480 test -z "$as_dir" && as_dir=.
1481 for ac_exec_ext in '' $ac_executable_extensions; do
1482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1483 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493 if test -n "$CC"; then
1494 echo "$as_me:$LINENO: result: $CC" >&5
1495 echo "${ECHO_T}$CC" >&6
1497 echo "$as_me:$LINENO: result: no" >&5
1498 echo "${ECHO_T}no" >&6
1501 test -n "$CC" && break
1504 if test -z "$CC"; then
1508 # Extract the first word of "$ac_prog", so it can be a program name with args.
1509 set dummy $ac_prog; ac_word=$2
1510 echo "$as_me:$LINENO: checking for $ac_word" >&5
1511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1513 echo $ECHO_N "(cached) $ECHO_C" >&6
1515 if test -n "$ac_ct_CC"; then
1516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 test -z "$as_dir" && as_dir=.
1523 for ac_exec_ext in '' $ac_executable_extensions; do
1524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1525 ac_cv_prog_ac_ct_CC="$ac_prog"
1526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1535 if test -n "$ac_ct_CC"; then
1536 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1537 echo "${ECHO_T}$ac_ct_CC" >&6
1539 echo "$as_me:$LINENO: result: no" >&5
1540 echo "${ECHO_T}no" >&6
1543 test -n "$ac_ct_CC" && break
1552 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1553 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1554 { (exit 1); exit 1; }; }
1556 # Provide some information about the compiler.
1557 echo "$as_me:$LINENO:" \
1558 "checking for C compiler version" >&5
1559 ac_compiler=`set X $ac_compile; echo $2`
1560 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1561 (eval $ac_compiler --version </dev/null >&5) 2>&5
1563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1564 (exit $ac_status); }
1565 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1566 (eval $ac_compiler -v </dev/null >&5) 2>&5
1568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1569 (exit $ac_status); }
1570 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1571 (eval $ac_compiler -V </dev/null >&5) 2>&5
1573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1574 (exit $ac_status); }
1576 cat >conftest.$ac_ext <<_ACEOF
1577 #line $LINENO "configure"
1578 #include "confdefs.h"
1580 #ifdef F77_DUMMY_MAIN
1584 int F77_DUMMY_MAIN() { return 1; }
1594 ac_clean_files_save=$ac_clean_files
1595 ac_clean_files="$ac_clean_files a.out a.exe"
1596 # Try to create an executable without -o first, disregard a.out.
1597 # It will help us diagnose broken compilers, and finding out an intuition
1599 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1600 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1601 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1602 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1603 (eval $ac_link_default) 2>&5
1605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1606 (exit $ac_status); }; then
1607 # Find the output, starting from the most likely. This scheme is
1608 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1611 # Be careful to initialize this variable, since it used to be cached.
1612 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1614 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1615 ls a.out conftest 2>/dev/null;
1616 ls a.* conftest.* 2>/dev/null`; do
1618 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1619 a.out ) # We found the default executable, but exeext='' is most
1622 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1623 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1630 echo "$as_me: failed program was:" >&5
1631 cat conftest.$ac_ext >&5
1632 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1633 echo "$as_me: error: C compiler cannot create executables" >&2;}
1634 { (exit 77); exit 77; }; }
1637 ac_exeext=$ac_cv_exeext
1638 echo "$as_me:$LINENO: result: $ac_file" >&5
1639 echo "${ECHO_T}$ac_file" >&6
1641 # Check the compiler produces executables we can run. If not, either
1642 # the compiler is broken, or we cross compile.
1643 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1644 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1645 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1646 # If not cross compiling, check that we can run a simple program.
1647 if test "$cross_compiling" != yes; then
1648 if { ac_try='./$ac_file'
1649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1653 (exit $ac_status); }; }; then
1656 if test "$cross_compiling" = maybe; then
1659 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1660 If you meant to cross compile, use \`--host'." >&5
1661 echo "$as_me: error: cannot run C compiled programs.
1662 If you meant to cross compile, use \`--host'." >&2;}
1663 { (exit 1); exit 1; }; }
1667 echo "$as_me:$LINENO: result: yes" >&5
1668 echo "${ECHO_T}yes" >&6
1670 rm -f a.out a.exe conftest$ac_cv_exeext
1671 ac_clean_files=$ac_clean_files_save
1672 # Check the compiler produces executables we can run. If not, either
1673 # the compiler is broken, or we cross compile.
1674 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1675 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1676 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1677 echo "${ECHO_T}$cross_compiling" >&6
1679 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1680 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1682 (eval $ac_link) 2>&5
1684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1685 (exit $ac_status); }; then
1686 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1687 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1688 # work properly (i.e., refer to `conftest.exe'), while it won't with
1690 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1692 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1693 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1700 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1701 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1702 { (exit 1); exit 1; }; }
1705 rm -f conftest$ac_cv_exeext
1706 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1707 echo "${ECHO_T}$ac_cv_exeext" >&6
1709 rm -f conftest.$ac_ext
1710 EXEEXT=$ac_cv_exeext
1712 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1713 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1714 if test "${ac_cv_objext+set}" = set; then
1715 echo $ECHO_N "(cached) $ECHO_C" >&6
1717 cat >conftest.$ac_ext <<_ACEOF
1718 #line $LINENO "configure"
1719 #include "confdefs.h"
1721 #ifdef F77_DUMMY_MAIN
1725 int F77_DUMMY_MAIN() { return 1; }
1735 rm -f conftest.o conftest.obj
1736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1737 (eval $ac_compile) 2>&5
1739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1740 (exit $ac_status); }; then
1741 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1744 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1749 echo "$as_me: failed program was:" >&5
1750 cat conftest.$ac_ext >&5
1751 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1752 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1753 { (exit 1); exit 1; }; }
1756 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1758 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1759 echo "${ECHO_T}$ac_cv_objext" >&6
1760 OBJEXT=$ac_cv_objext
1762 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1763 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1764 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1765 echo $ECHO_N "(cached) $ECHO_C" >&6
1767 cat >conftest.$ac_ext <<_ACEOF
1768 #line $LINENO "configure"
1769 #include "confdefs.h"
1771 #ifdef F77_DUMMY_MAIN
1775 int F77_DUMMY_MAIN() { return 1; }
1788 rm -f conftest.$ac_objext
1789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1790 (eval $ac_compile) 2>&5
1792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793 (exit $ac_status); } &&
1794 { ac_try='test -s conftest.$ac_objext'
1795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1799 (exit $ac_status); }; }; then
1802 echo "$as_me: failed program was:" >&5
1803 cat conftest.$ac_ext >&5
1806 rm -f conftest.$ac_objext conftest.$ac_ext
1807 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1810 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1811 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1812 GCC=`test $ac_compiler_gnu = yes && echo yes`
1813 ac_test_CFLAGS=${CFLAGS+set}
1814 ac_save_CFLAGS=$CFLAGS
1816 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1817 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1818 if test "${ac_cv_prog_cc_g+set}" = set; then
1819 echo $ECHO_N "(cached) $ECHO_C" >&6
1821 cat >conftest.$ac_ext <<_ACEOF
1822 #line $LINENO "configure"
1823 #include "confdefs.h"
1825 #ifdef F77_DUMMY_MAIN
1829 int F77_DUMMY_MAIN() { return 1; }
1839 rm -f conftest.$ac_objext
1840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1841 (eval $ac_compile) 2>&5
1843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844 (exit $ac_status); } &&
1845 { ac_try='test -s conftest.$ac_objext'
1846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850 (exit $ac_status); }; }; then
1853 echo "$as_me: failed program was:" >&5
1854 cat conftest.$ac_ext >&5
1857 rm -f conftest.$ac_objext conftest.$ac_ext
1859 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1860 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1861 if test "$ac_test_CFLAGS" = set; then
1862 CFLAGS=$ac_save_CFLAGS
1863 elif test $ac_cv_prog_cc_g = yes; then
1864 if test "$GCC" = yes; then
1870 if test "$GCC" = yes; then
1876 # Some people use a C++ compiler to compile C. Since we use `exit',
1877 # in C++ we need to declare it. In case someone uses the same compiler
1878 # for both compiling C and C++ we need to have the C++ compiler decide
1879 # the declaration of exit, since it's the most demanding environment.
1880 cat >conftest.$ac_ext <<_ACEOF
1881 @%:@ifndef __cplusplus
1885 rm -f conftest.$ac_objext
1886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1887 (eval $ac_compile) 2>&5
1889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890 (exit $ac_status); } &&
1891 { ac_try='test -s conftest.$ac_objext'
1892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896 (exit $ac_status); }; }; then
1897 for ac_declaration in \
1899 '#include <stdlib.h>' \
1900 'extern "C" void std::exit (int) throw (); using std::exit;' \
1901 'extern "C" void std::exit (int); using std::exit;' \
1902 'extern "C" void exit (int) throw ();' \
1903 'extern "C" void exit (int);' \
1906 cat >conftest.$ac_ext <<_ACEOF
1907 #line $LINENO "configure"
1908 #include "confdefs.h"
1909 @%:@include <stdlib.h>
1911 #ifdef F77_DUMMY_MAIN
1915 int F77_DUMMY_MAIN() { return 1; }
1925 rm -f conftest.$ac_objext
1926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1927 (eval $ac_compile) 2>&5
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); } &&
1931 { ac_try='test -s conftest.$ac_objext'
1932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }; }; then
1939 echo "$as_me: failed program was:" >&5
1940 cat conftest.$ac_ext >&5
1943 rm -f conftest.$ac_objext conftest.$ac_ext
1944 cat >conftest.$ac_ext <<_ACEOF
1945 #line $LINENO "configure"
1946 #include "confdefs.h"
1948 #ifdef F77_DUMMY_MAIN
1952 int F77_DUMMY_MAIN() { return 1; }
1962 rm -f conftest.$ac_objext
1963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1964 (eval $ac_compile) 2>&5
1966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967 (exit $ac_status); } &&
1968 { ac_try='test -s conftest.$ac_objext'
1969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }; }; then
1976 echo "$as_me: failed program was:" >&5
1977 cat conftest.$ac_ext >&5
1979 rm -f conftest.$ac_objext conftest.$ac_ext
1982 if test -n "$ac_declaration"; then
1983 echo '#ifdef __cplusplus' >>confdefs.h
1984 echo $ac_declaration >>confdefs.h
1985 echo '#endif' >>confdefs.h
1989 echo "$as_me: failed program was:" >&5
1990 cat conftest.$ac_ext >&5
1992 rm -f conftest.$ac_objext conftest.$ac_ext
1994 ac_cpp='$CPP $CPPFLAGS'
1995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2000 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2001 if test -f $ac_dir/install-sh; then
2003 ac_install_sh="$ac_aux_dir/install-sh -c"
2005 elif test -f $ac_dir/install.sh; then
2007 ac_install_sh="$ac_aux_dir/install.sh -c"
2009 elif test -f $ac_dir/shtool; then
2011 ac_install_sh="$ac_aux_dir/shtool install -c"
2015 if test -z "$ac_aux_dir"; then
2016 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2017 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2018 { (exit 1); exit 1; }; }
2020 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2021 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2022 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2024 # Make sure we can run config.sub.
2025 $ac_config_sub sun4 >/dev/null 2>&1 ||
2026 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2027 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2028 { (exit 1); exit 1; }; }
2030 echo "$as_me:$LINENO: checking build system type" >&5
2031 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2032 if test "${ac_cv_build+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 ac_cv_build_alias=$build_alias
2036 test -z "$ac_cv_build_alias" &&
2037 ac_cv_build_alias=`$ac_config_guess`
2038 test -z "$ac_cv_build_alias" &&
2039 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2040 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2041 { (exit 1); exit 1; }; }
2042 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2043 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2044 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2045 { (exit 1); exit 1; }; }
2048 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2049 echo "${ECHO_T}$ac_cv_build" >&6
2051 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2052 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2053 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2056 echo "$as_me:$LINENO: checking host system type" >&5
2057 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2058 if test "${ac_cv_host+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 ac_cv_host_alias=$host_alias
2062 test -z "$ac_cv_host_alias" &&
2063 ac_cv_host_alias=$ac_cv_build_alias
2064 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2065 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2066 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2067 { (exit 1); exit 1; }; }
2070 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2071 echo "${ECHO_T}$ac_cv_host" >&6
2073 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2074 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2075 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2079 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2080 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2081 if test "${ac_cv_c_bigendian+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 # See if sys/param.h defines the BYTE_ORDER macro.
2085 cat >conftest.$ac_ext <<_ACEOF
2086 #line $LINENO "configure"
2087 #include "confdefs.h"
2088 #include <sys/types.h>
2089 #include <sys/param.h>
2091 #ifdef F77_DUMMY_MAIN
2095 int F77_DUMMY_MAIN() { return 1; }
2100 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2108 rm -f conftest.$ac_objext
2109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2110 (eval $ac_compile) 2>&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); } &&
2114 { ac_try='test -s conftest.$ac_objext'
2115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; }; then
2120 # It does; now see whether it defined to BIG_ENDIAN or not.
2121 cat >conftest.$ac_ext <<_ACEOF
2122 #line $LINENO "configure"
2123 #include "confdefs.h"
2124 #include <sys/types.h>
2125 #include <sys/param.h>
2127 #ifdef F77_DUMMY_MAIN
2131 int F77_DUMMY_MAIN() { return 1; }
2136 #if BYTE_ORDER != BIG_ENDIAN
2144 rm -f conftest.$ac_objext
2145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2146 (eval $ac_compile) 2>&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); } &&
2150 { ac_try='test -s conftest.$ac_objext'
2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; }; then
2156 ac_cv_c_bigendian=yes
2158 echo "$as_me: failed program was:" >&5
2159 cat conftest.$ac_ext >&5
2160 ac_cv_c_bigendian=no
2162 rm -f conftest.$ac_objext conftest.$ac_ext
2164 echo "$as_me: failed program was:" >&5
2165 cat conftest.$ac_ext >&5
2166 # It does not; compile a test program.
2167 if test "$cross_compiling" = yes; then
2168 # try to guess the endianess by grep'ing values into an object file
2169 ac_cv_c_bigendian=unknown
2170 cat >conftest.$ac_ext <<_ACEOF
2171 #line $LINENO "configure"
2172 #include "confdefs.h"
2173 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2174 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2175 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2176 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2177 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2178 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2179 #ifdef F77_DUMMY_MAIN
2183 int F77_DUMMY_MAIN() { return 1; }
2188 _ascii (); _ebcdic ();
2193 rm -f conftest.$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); } &&
2199 { ac_try='test -s conftest.$ac_objext'
2200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }; }; then
2205 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2206 ac_cv_c_bigendian=yes
2208 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2209 if test "$ac_cv_c_bigendian" = unknown; then
2210 ac_cv_c_bigendian=no
2212 # finding both strings is unlikely to happen, but who knows?
2213 ac_cv_c_bigendian=unknown
2217 echo "$as_me: failed program was:" >&5
2218 cat conftest.$ac_ext >&5
2220 rm -f conftest.$ac_objext conftest.$ac_ext
2222 cat >conftest.$ac_ext <<_ACEOF
2223 #line $LINENO "configure"
2224 #include "confdefs.h"
2228 /* Are we little or big endian? From Harbison&Steele. */
2232 char c[sizeof (long)];
2235 exit (u.c[sizeof (long) - 1] == 1);
2238 rm -f conftest$ac_exeext
2239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2240 (eval $ac_link) 2>&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; }; then
2249 ac_cv_c_bigendian=no
2251 echo "$as_me: program exited with status $ac_status" >&5
2252 echo "$as_me: failed program was:" >&5
2253 cat conftest.$ac_ext >&5
2255 ac_cv_c_bigendian=yes
2257 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2260 rm -f conftest.$ac_objext conftest.$ac_ext
2262 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2263 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2264 case $ac_cv_c_bigendian in
2267 cat >>confdefs.h <<\_ACEOF
2268 @%:@define WORDS_BIGENDIAN 1
2274 { { echo "$as_me:$LINENO: error: unknown endianess
2275 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2276 echo "$as_me: error: unknown endianess
2277 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2278 { (exit 1); exit 1; }; } ;;
2282 # Checks for programs.
2284 ac_cpp='$CPP $CPPFLAGS'
2285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2288 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2289 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2290 # On Suns, sometimes $CPP names a directory.
2291 if test -n "$CPP" && test -d "$CPP"; then
2294 if test -z "$CPP"; then
2295 if test "${ac_cv_prog_CPP+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 # Double quotes because CPP needs to be expanded
2299 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2302 for ac_c_preproc_warn_flag in '' yes
2304 # Use a header file that comes with gcc, so configuring glibc
2305 # with a fresh cross-compiler works.
2306 # On the NeXT, cc -E runs the code through the compiler's parser,
2307 # not just through cpp. "Syntax error" is here to catch this case.
2308 cat >conftest.$ac_ext <<_ACEOF
2309 #line $LINENO "configure"
2310 #include "confdefs.h"
2311 @%:@include <assert.h>
2314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2317 egrep -v '^ *\+' conftest.er1 >conftest.err
2319 cat conftest.err >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); } >/dev/null; then
2322 if test -s conftest.err; then
2323 ac_cpp_err=$ac_c_preproc_warn_flag
2330 if test -z "$ac_cpp_err"; then
2333 echo "$as_me: failed program was:" >&5
2334 cat conftest.$ac_ext >&5
2335 # Broken: fails on valid input.
2338 rm -f conftest.err conftest.$ac_ext
2340 # OK, works on sane cases. Now check whether non-existent headers
2341 # can be detected and how.
2342 cat >conftest.$ac_ext <<_ACEOF
2343 #line $LINENO "configure"
2344 #include "confdefs.h"
2345 @%:@include <ac_nonexistent.h>
2347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2350 egrep -v '^ *\+' conftest.er1 >conftest.err
2352 cat conftest.err >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } >/dev/null; then
2355 if test -s conftest.err; then
2356 ac_cpp_err=$ac_c_preproc_warn_flag
2363 if test -z "$ac_cpp_err"; then
2364 # Broken: success on invalid input.
2367 echo "$as_me: failed program was:" >&5
2368 cat conftest.$ac_ext >&5
2369 # Passes both tests.
2373 rm -f conftest.err conftest.$ac_ext
2376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2377 rm -f conftest.err conftest.$ac_ext
2378 if $ac_preproc_ok; then
2390 echo "$as_me:$LINENO: result: $CPP" >&5
2391 echo "${ECHO_T}$CPP" >&6
2393 for ac_c_preproc_warn_flag in '' yes
2395 # Use a header file that comes with gcc, so configuring glibc
2396 # with a fresh cross-compiler works.
2397 # On the NeXT, cc -E runs the code through the compiler's parser,
2398 # not just through cpp. "Syntax error" is here to catch this case.
2399 cat >conftest.$ac_ext <<_ACEOF
2400 #line $LINENO "configure"
2401 #include "confdefs.h"
2402 @%:@include <assert.h>
2405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2408 egrep -v '^ *\+' conftest.er1 >conftest.err
2410 cat conftest.err >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); } >/dev/null; then
2413 if test -s conftest.err; then
2414 ac_cpp_err=$ac_c_preproc_warn_flag
2421 if test -z "$ac_cpp_err"; then
2424 echo "$as_me: failed program was:" >&5
2425 cat conftest.$ac_ext >&5
2426 # Broken: fails on valid input.
2429 rm -f conftest.err conftest.$ac_ext
2431 # OK, works on sane cases. Now check whether non-existent headers
2432 # can be detected and how.
2433 cat >conftest.$ac_ext <<_ACEOF
2434 #line $LINENO "configure"
2435 #include "confdefs.h"
2436 @%:@include <ac_nonexistent.h>
2438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2441 egrep -v '^ *\+' conftest.er1 >conftest.err
2443 cat conftest.err >&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); } >/dev/null; then
2446 if test -s conftest.err; then
2447 ac_cpp_err=$ac_c_preproc_warn_flag
2454 if test -z "$ac_cpp_err"; then
2455 # Broken: success on invalid input.
2458 echo "$as_me: failed program was:" >&5
2459 cat conftest.$ac_ext >&5
2460 # Passes both tests.
2464 rm -f conftest.err conftest.$ac_ext
2467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2468 rm -f conftest.err conftest.$ac_ext
2469 if $ac_preproc_ok; then
2472 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2473 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2474 { (exit 1); exit 1; }; }
2478 ac_cpp='$CPP $CPPFLAGS'
2479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2483 if test -n "$ac_tool_prefix"; then
2484 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2485 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2486 echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2488 if test "${ac_cv_prog_RANLIB+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2491 if test -n "$RANLIB"; then
2492 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510 RANLIB=$ac_cv_prog_RANLIB
2511 if test -n "$RANLIB"; then
2512 echo "$as_me:$LINENO: result: $RANLIB" >&5
2513 echo "${ECHO_T}$RANLIB" >&6
2515 echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6
2520 if test -z "$ac_cv_prog_RANLIB"; then
2521 ac_ct_RANLIB=$RANLIB
2522 # Extract the first word of "ranlib", so it can be a program name with args.
2523 set dummy ranlib; ac_word=$2
2524 echo "$as_me:$LINENO: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2526 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 if test -n "$ac_ct_RANLIB"; then
2530 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2539 ac_cv_prog_ac_ct_RANLIB="ranlib"
2540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2549 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2550 if test -n "$ac_ct_RANLIB"; then
2551 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2552 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2554 echo "$as_me:$LINENO: result: no" >&5
2555 echo "${ECHO_T}no" >&6
2558 RANLIB=$ac_ct_RANLIB
2560 RANLIB="$ac_cv_prog_RANLIB"
2563 # Find a good install program. We prefer a C program (faster),
2564 # so one script is as good as another. But avoid the broken or
2565 # incompatible versions:
2566 # SysV /etc/install, /usr/sbin/install
2567 # SunOS /usr/etc/install
2568 # IRIX /sbin/install
2570 # AmigaOS /C/install, which installs bootblocks on floppy discs
2571 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2572 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2573 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2574 # ./install, which can be erroneously created by make from ./install.sh.
2575 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2576 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2577 if test -z "$INSTALL"; then
2578 if test "${ac_cv_path_install+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 test -z "$as_dir" && as_dir=.
2586 # Account for people who put trailing slashes in PATH elements.
2588 ./ | .// | /cC/* | \
2589 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2592 # OSF1 and SCO ODT 3.0 have their own names for install.
2593 # Don't use installbsd from OSF since it installs stuff as root
2595 for ac_prog in ginstall scoinst install; do
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2598 if test $ac_prog = install &&
2599 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2600 # AIX install. It has an incompatible calling convention.
2602 elif test $ac_prog = install &&
2603 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2604 # program-specific install script used by HP pwplus--don't use.
2607 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2619 if test "${ac_cv_path_install+set}" = set; then
2620 INSTALL=$ac_cv_path_install
2622 # As a last resort, use the slow shell script. We don't cache a
2623 # path for INSTALL within a source directory, because that will
2624 # break other packages using the cache if that directory is
2625 # removed, or if the path is relative.
2626 INSTALL=$ac_install_sh
2629 echo "$as_me:$LINENO: result: $INSTALL" >&5
2630 echo "${ECHO_T}$INSTALL" >&6
2632 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2633 # It thinks the first close brace ends the variable substitution.
2634 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2636 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2638 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2640 # Extract the first word of "ar", so it can be a program name with args.
2641 set dummy ar; ac_word=$2
2642 echo "$as_me:$LINENO: checking for $ac_word" >&5
2643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2644 if test "${ac_cv_path_AR+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 ac_cv_path_AR="$AR" # Let the user override the test with a path.
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2659 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
2660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 if test -n "$AR"; then
2672 echo "$as_me:$LINENO: result: $AR" >&5
2673 echo "${ECHO_T}$AR" >&6
2675 echo "$as_me:$LINENO: result: no" >&5
2676 echo "${ECHO_T}no" >&6
2679 for ac_prog in perl5 perl
2681 # Extract the first word of "$ac_prog", so it can be a program name with args.
2682 set dummy $ac_prog; ac_word=$2
2683 echo "$as_me:$LINENO: checking for $ac_word" >&5
2684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2685 if test "${ac_cv_path_PERL+set}" = set; then
2686 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 test -z "$as_dir" && as_dir=.
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2700 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
2701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 PERL=$ac_cv_path_PERL
2712 if test -n "$PERL"; then
2713 echo "$as_me:$LINENO: result: $PERL" >&5
2714 echo "${ECHO_T}$PERL" >&6
2716 echo "$as_me:$LINENO: result: no" >&5
2717 echo "${ECHO_T}no" >&6
2720 test -n "$PERL" && break
2724 # Extract the first word of "ent", so it can be a program name with args.
2725 set dummy ent; ac_word=$2
2726 echo "$as_me:$LINENO: checking for $ac_word" >&5
2727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2728 if test "${ac_cv_path_ENT+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2733 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2743 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
2744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 if test -n "$ENT"; then
2756 echo "$as_me:$LINENO: result: $ENT" >&5
2757 echo "${ECHO_T}$ENT" >&6
2759 echo "$as_me:$LINENO: result: no" >&5
2760 echo "${ECHO_T}no" >&6
2764 for ac_prog in filepriv
2766 # Extract the first word of "$ac_prog", so it can be a program name with args.
2767 set dummy $ac_prog; ac_word=$2
2768 echo "$as_me:$LINENO: checking for $ac_word" >&5
2769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2770 if test "${ac_cv_path_FILEPRIV+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2775 ac_cv_path_FILEPRIV="$FILEPRIV" # Let the user override the test with a path.
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 as_dummy="/sbin:/usr/sbin"
2780 for as_dir in $as_dummy
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786 ac_cv_path_FILEPRIV="$as_dir/$ac_word$ac_exec_ext"
2787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 FILEPRIV=$ac_cv_path_FILEPRIV
2798 if test -n "$FILEPRIV"; then
2799 echo "$as_me:$LINENO: result: $FILEPRIV" >&5
2800 echo "${ECHO_T}$FILEPRIV" >&6
2802 echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6
2806 test -n "$FILEPRIV" && break
2808 test -n "$FILEPRIV" || FILEPRIV="true"
2810 # Extract the first word of "bash", so it can be a program name with args.
2811 set dummy bash; ac_word=$2
2812 echo "$as_me:$LINENO: checking for $ac_word" >&5
2813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2814 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 case $TEST_MINUS_S_SH in
2819 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
2830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2841 if test -n "$TEST_MINUS_S_SH"; then
2842 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2843 echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2845 echo "$as_me:$LINENO: result: no" >&5
2846 echo "${ECHO_T}no" >&6
2849 # Extract the first word of "ksh", so it can be a program name with args.
2850 set dummy ksh; ac_word=$2
2851 echo "$as_me:$LINENO: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2853 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 case $TEST_MINUS_S_SH in
2858 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2868 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
2869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2880 if test -n "$TEST_MINUS_S_SH"; then
2881 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2882 echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2884 echo "$as_me:$LINENO: result: no" >&5
2885 echo "${ECHO_T}no" >&6
2888 # Extract the first word of "sh", so it can be a program name with args.
2889 set dummy sh; ac_word=$2
2890 echo "$as_me:$LINENO: checking for $ac_word" >&5
2891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2892 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 case $TEST_MINUS_S_SH in
2897 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 test -z "$as_dir" && as_dir=.
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2907 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
2908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2917 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2919 if test -n "$TEST_MINUS_S_SH"; then
2920 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2921 echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2923 echo "$as_me:$LINENO: result: no" >&5
2924 echo "${ECHO_T}no" >&6
2927 # Extract the first word of "sh", so it can be a program name with args.
2928 set dummy sh; ac_word=$2
2929 echo "$as_me:$LINENO: checking for $ac_word" >&5
2930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2931 if test "${ac_cv_path_SH+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2936 ac_cv_path_SH="$SH" # Let the user override the test with a path.
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
2947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 if test -n "$SH"; then
2959 echo "$as_me:$LINENO: result: $SH" >&5
2960 echo "${ECHO_T}$SH" >&6
2962 echo "$as_me:$LINENO: result: no" >&5
2963 echo "${ECHO_T}no" >&6
2968 # Check whether --enable-largefile or --disable-largefile was given.
2969 if test "${enable_largefile+set}" = set; then
2970 enableval="$enable_largefile"
2973 if test "$enable_largefile" != no; then
2975 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2976 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2977 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2980 ac_cv_sys_largefile_CC=no
2981 if test "$GCC" != yes; then
2984 # IRIX 6.2 and later do not support large files by default,
2985 # so use the C compiler's -n32 option if that helps.
2986 cat >conftest.$ac_ext <<_ACEOF
2987 #line $LINENO "configure"
2988 #include "confdefs.h"
2989 @%:@include <sys/types.h>
2990 /* Check that off_t can represent 2**63 - 1 correctly.
2991 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2992 since some C++ compilers masquerading as C compilers
2993 incorrectly reject 9223372036854775807. */
2994 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2995 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2996 && LARGE_OFF_T % 2147483647 == 1)
2998 #ifdef F77_DUMMY_MAIN
3002 int F77_DUMMY_MAIN() { return 1; }
3012 rm -f conftest.$ac_objext
3013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3014 (eval $ac_compile) 2>&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); } &&
3018 { ac_try='test -s conftest.$ac_objext'
3019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }; }; then
3026 echo "$as_me: failed program was:" >&5
3027 cat conftest.$ac_ext >&5
3029 rm -f conftest.$ac_objext
3031 rm -f conftest.$ac_objext
3032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3033 (eval $ac_compile) 2>&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } &&
3037 { ac_try='test -s conftest.$ac_objext'
3038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; }; then
3043 ac_cv_sys_largefile_CC=' -n32'; break
3045 echo "$as_me: failed program was:" >&5
3046 cat conftest.$ac_ext >&5
3048 rm -f conftest.$ac_objext
3052 rm -f conftest.$ac_ext
3055 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3056 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3057 if test "$ac_cv_sys_largefile_CC" != no; then
3058 CC=$CC$ac_cv_sys_largefile_CC
3061 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3062 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3063 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 ac_cv_sys_file_offset_bits=no
3068 cat >conftest.$ac_ext <<_ACEOF
3069 #line $LINENO "configure"
3070 #include "confdefs.h"
3071 @%:@include <sys/types.h>
3072 /* Check that off_t can represent 2**63 - 1 correctly.
3073 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3074 since some C++ compilers masquerading as C compilers
3075 incorrectly reject 9223372036854775807. */
3076 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3077 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3078 && LARGE_OFF_T % 2147483647 == 1)
3080 #ifdef F77_DUMMY_MAIN
3084 int F77_DUMMY_MAIN() { return 1; }
3094 rm -f conftest.$ac_objext
3095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3096 (eval $ac_compile) 2>&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } &&
3100 { ac_try='test -s conftest.$ac_objext'
3101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; }; then
3108 echo "$as_me: failed program was:" >&5
3109 cat conftest.$ac_ext >&5
3111 rm -f conftest.$ac_objext conftest.$ac_ext
3112 cat >conftest.$ac_ext <<_ACEOF
3113 #line $LINENO "configure"
3114 #include "confdefs.h"
3115 @%:@define _FILE_OFFSET_BITS 64
3116 @%:@include <sys/types.h>
3117 /* Check that off_t can represent 2**63 - 1 correctly.
3118 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3119 since some C++ compilers masquerading as C compilers
3120 incorrectly reject 9223372036854775807. */
3121 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3122 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3123 && LARGE_OFF_T % 2147483647 == 1)
3125 #ifdef F77_DUMMY_MAIN
3129 int F77_DUMMY_MAIN() { return 1; }
3139 rm -f conftest.$ac_objext
3140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3141 (eval $ac_compile) 2>&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } &&
3145 { ac_try='test -s conftest.$ac_objext'
3146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; }; then
3151 ac_cv_sys_file_offset_bits=64; break
3153 echo "$as_me: failed program was:" >&5
3154 cat conftest.$ac_ext >&5
3156 rm -f conftest.$ac_objext conftest.$ac_ext
3160 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3161 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3162 if test "$ac_cv_sys_file_offset_bits" != no; then
3164 cat >>confdefs.h <<_ACEOF
3165 @%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3170 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3171 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3172 if test "${ac_cv_sys_large_files+set}" = set; then
3173 echo $ECHO_N "(cached) $ECHO_C" >&6
3176 ac_cv_sys_large_files=no
3177 cat >conftest.$ac_ext <<_ACEOF
3178 #line $LINENO "configure"
3179 #include "confdefs.h"
3180 @%:@include <sys/types.h>
3181 /* Check that off_t can represent 2**63 - 1 correctly.
3182 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3183 since some C++ compilers masquerading as C compilers
3184 incorrectly reject 9223372036854775807. */
3185 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3186 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3187 && LARGE_OFF_T % 2147483647 == 1)
3189 #ifdef F77_DUMMY_MAIN
3193 int F77_DUMMY_MAIN() { return 1; }
3203 rm -f conftest.$ac_objext
3204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3205 (eval $ac_compile) 2>&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } &&
3209 { ac_try='test -s conftest.$ac_objext'
3210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; }; then
3217 echo "$as_me: failed program was:" >&5
3218 cat conftest.$ac_ext >&5
3220 rm -f conftest.$ac_objext conftest.$ac_ext
3221 cat >conftest.$ac_ext <<_ACEOF
3222 #line $LINENO "configure"
3223 #include "confdefs.h"
3224 @%:@define _LARGE_FILES 1
3225 @%:@include <sys/types.h>
3226 /* Check that off_t can represent 2**63 - 1 correctly.
3227 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3228 since some C++ compilers masquerading as C compilers
3229 incorrectly reject 9223372036854775807. */
3230 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3231 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3232 && LARGE_OFF_T % 2147483647 == 1)
3234 #ifdef F77_DUMMY_MAIN
3238 int F77_DUMMY_MAIN() { return 1; }
3248 rm -f conftest.$ac_objext
3249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3250 (eval $ac_compile) 2>&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } &&
3254 { ac_try='test -s conftest.$ac_objext'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3260 ac_cv_sys_large_files=1; break
3262 echo "$as_me: failed program was:" >&5
3263 cat conftest.$ac_ext >&5
3265 rm -f conftest.$ac_objext conftest.$ac_ext
3269 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3270 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3271 if test "$ac_cv_sys_large_files" != no; then
3273 cat >>confdefs.h <<_ACEOF
3274 @%:@define _LARGE_FILES $ac_cv_sys_large_files
3282 if test -z "$AR" ; then
3283 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
3284 echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
3285 { (exit 1); exit 1; }; }
3288 # Use LOGIN_PROGRAM from environment if possible
3289 if test ! -z "$LOGIN_PROGRAM" ; then
3290 cat >>confdefs.h <<_ACEOF
3291 @%:@define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
3296 # Extract the first word of "login", so it can be a program name with args.
3297 set dummy login; ac_word=$2
3298 echo "$as_me:$LINENO: checking for $ac_word" >&5
3299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3300 if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 case $LOGIN_PROGRAM_FALLBACK in
3305 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 test -z "$as_dir" && as_dir=.
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
3316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3325 LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
3327 if test -n "$LOGIN_PROGRAM_FALLBACK"; then
3328 echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
3329 echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6
3331 echo "$as_me:$LINENO: result: no" >&5
3332 echo "${ECHO_T}no" >&6
3335 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
3336 cat >>confdefs.h <<_ACEOF
3337 @%:@define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
3343 if test -z "$LD" ; then
3348 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3349 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3350 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 ac_cv_prog_cc_stdc=no
3355 cat >conftest.$ac_ext <<_ACEOF
3356 #line $LINENO "configure"
3357 #include "confdefs.h"
3360 #include <sys/types.h>
3361 #include <sys/stat.h>
3362 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3363 struct buf { int x; };
3364 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3365 static char *e (p, i)
3371 static char *f (char * (*g) (char **, int), char **p, ...)
3376 s = g (p, va_arg (v,int));
3380 int test (int i, double x);
3381 struct s1 {int (*f) (int a);};
3382 struct s2 {int (*f) (double a);};
3383 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3386 #ifdef F77_DUMMY_MAIN
3390 int F77_DUMMY_MAIN() { return 1; }
3395 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3400 # Don't try gcc -ansi; that turns off useful extensions and
3401 # breaks some systems' header files.
3402 # AIX -qlanglvl=ansi
3403 # Ultrix and OSF/1 -std1
3404 # HP-UX 10.20 and later -Ae
3405 # HP-UX older versions -Aa -D_HPUX_SOURCE
3406 # SVR4 -Xc -D__EXTENSIONS__
3407 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3409 CC="$ac_save_CC $ac_arg"
3410 rm -f conftest.$ac_objext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3412 (eval $ac_compile) 2>&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } &&
3416 { ac_try='test -s conftest.$ac_objext'
3417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; }; then
3422 ac_cv_prog_cc_stdc=$ac_arg
3425 echo "$as_me: failed program was:" >&5
3426 cat conftest.$ac_ext >&5
3428 rm -f conftest.$ac_objext
3430 rm -f conftest.$ac_ext conftest.$ac_objext
3435 case "x$ac_cv_prog_cc_stdc" in
3437 echo "$as_me:$LINENO: result: none needed" >&5
3438 echo "${ECHO_T}none needed" >&6 ;;
3440 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3441 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3442 CC="$CC $ac_cv_prog_cc_stdc" ;;
3445 echo "$as_me:$LINENO: checking for inline" >&5
3446 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3447 if test "${ac_cv_c_inline+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 for ac_kw in inline __inline__ __inline; do
3452 cat >conftest.$ac_ext <<_ACEOF
3453 #line $LINENO "configure"
3454 #include "confdefs.h"
3456 static $ac_kw int static_foo () {return 0; }
3457 $ac_kw int foo () {return 0; }
3461 rm -f conftest.$ac_objext
3462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3463 (eval $ac_compile) 2>&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } &&
3467 { ac_try='test -s conftest.$ac_objext'
3468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; }; then
3473 ac_cv_c_inline=$ac_kw; break
3475 echo "$as_me: failed program was:" >&5
3476 cat conftest.$ac_ext >&5
3478 rm -f conftest.$ac_objext conftest.$ac_ext
3482 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3483 echo "${ECHO_T}$ac_cv_c_inline" >&6
3484 case $ac_cv_c_inline in
3487 cat >>confdefs.h <<\_ACEOF
3491 *) cat >>confdefs.h <<_ACEOF
3492 @%:@define inline $ac_cv_c_inline
3497 if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
3498 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized"
3501 # Check for some target-specific stuff
3505 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3506 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3507 if (test "$LD" != "gcc" && test -z "$blibpath"); then
3508 echo "$as_me:$LINENO: checking if linkage editor ($LD) accepts -blibpath" >&5
3509 echo $ECHO_N "checking if linkage editor ($LD) accepts -blibpath... $ECHO_C" >&6
3510 saved_LDFLAGS="$LDFLAGS"
3511 LDFLAGS="$LDFLAGS -blibpath:/usr/lib:/lib:/usr/local/lib"
3512 cat >conftest.$ac_ext <<_ACEOF
3513 #line $LINENO "configure"
3514 #include "confdefs.h"
3516 #ifdef F77_DUMMY_MAIN
3520 int F77_DUMMY_MAIN() { return 1; }
3530 rm -f conftest.$ac_objext conftest$ac_exeext
3531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3532 (eval $ac_link) 2>&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } &&
3536 { ac_try='test -s conftest$ac_exeext'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; }; then
3543 echo "$as_me:$LINENO: result: yes" >&5
3544 echo "${ECHO_T}yes" >&6
3545 blibpath="/usr/lib:/lib:/usr/local/lib"
3548 echo "$as_me: failed program was:" >&5
3549 cat conftest.$ac_ext >&5
3550 echo "$as_me:$LINENO: result: no" >&5
3551 echo "${ECHO_T}no" >&6
3554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3555 LDFLAGS="$saved_LDFLAGS"
3557 echo "$as_me:$LINENO: checking for authenticate" >&5
3558 echo $ECHO_N "checking for authenticate... $ECHO_C" >&6
3559 if test "${ac_cv_func_authenticate+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 cat >conftest.$ac_ext <<_ACEOF
3563 #line $LINENO "configure"
3564 #include "confdefs.h"
3565 /* System header to define __stub macros and hopefully few prototypes,
3566 which can conflict with char authenticate (); below. */
3568 /* Override any gcc2 internal prototype to avoid an error. */
3572 /* We use char because int might match the return type of a gcc2
3573 builtin and then its argument prototype would still apply. */
3574 char authenticate ();
3577 #ifdef F77_DUMMY_MAIN
3581 int F77_DUMMY_MAIN() { return 1; }
3586 /* The GNU C library defines this for functions which it implements
3587 to always fail with ENOSYS. Some functions are actually named
3588 something starting with __ and the normal name is an alias. */
3589 #if defined (__stub_authenticate) || defined (__stub___authenticate)
3599 rm -f conftest.$ac_objext conftest$ac_exeext
3600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3601 (eval $ac_link) 2>&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } &&
3605 { ac_try='test -s conftest$ac_exeext'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; }; then
3611 ac_cv_func_authenticate=yes
3613 echo "$as_me: failed program was:" >&5
3614 cat conftest.$ac_ext >&5
3615 ac_cv_func_authenticate=no
3617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3619 echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
3620 echo "${ECHO_T}$ac_cv_func_authenticate" >&6
3621 if test $ac_cv_func_authenticate = yes; then
3622 cat >>confdefs.h <<\_ACEOF
3623 @%:@define WITH_AIXAUTHENTICATE 1
3628 cat >>confdefs.h <<\_ACEOF
3629 @%:@define BROKEN_GETADDRINFO 1
3632 cat >>confdefs.h <<\_ACEOF
3633 @%:@define BROKEN_REALPATH 1
3636 cat >>confdefs.h <<\_ACEOF
3637 @%:@define DISABLE_LASTLOG 1
3642 LIBS="$LIBS /usr/lib/textmode.o"
3643 cat >>confdefs.h <<\_ACEOF
3644 @%:@define HAVE_CYGWIN 1
3647 cat >>confdefs.h <<\_ACEOF
3648 @%:@define USE_PIPES 1
3651 cat >>confdefs.h <<\_ACEOF
3652 @%:@define DISABLE_SHADOW 1
3655 cat >>confdefs.h <<\_ACEOF
3656 @%:@define IPV4_DEFAULT 1
3659 cat >>confdefs.h <<\_ACEOF
3660 @%:@define IP_TOS_IS_BROKEN 1
3663 cat >>confdefs.h <<\_ACEOF
3664 @%:@define NO_X11_UNIX_SOCKETS 1
3667 cat >>confdefs.h <<\_ACEOF
3668 @%:@define SETGROUPS_NOOP 1
3673 cat >>confdefs.h <<\_ACEOF
3674 @%:@define IP_TOS_IS_BROKEN 1
3679 cat >>confdefs.h <<\_ACEOF
3680 @%:@define BROKEN_GETADDRINFO 1
3685 if test -z "$GCC"; then
3686 CFLAGS="$CFLAGS -Ae"
3688 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3689 IPADDR_IN_DISPLAY=yes
3690 cat >>confdefs.h <<\_ACEOF
3691 @%:@define HAVE_SECUREWARE 1
3694 cat >>confdefs.h <<\_ACEOF
3695 @%:@define USE_PIPES 1
3698 cat >>confdefs.h <<\_ACEOF
3699 @%:@define LOGIN_NO_ENDOPT 1
3702 cat >>confdefs.h <<\_ACEOF
3703 @%:@define LOGIN_NEEDS_UTMPX 1
3706 cat >>confdefs.h <<\_ACEOF
3707 @%:@define DISABLE_SHADOW 1
3710 cat >>confdefs.h <<\_ACEOF
3711 @%:@define DISABLE_UTMP 1
3714 cat >>confdefs.h <<\_ACEOF
3715 @%:@define SPT_TYPE SPT_PSTAT
3718 LIBS="$LIBS -lxnet -lsec -lsecpw"
3719 disable_ptmx_check=yes
3722 if test -z "$GCC"; then
3723 CFLAGS="$CFLAGS -Ae"
3725 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3726 IPADDR_IN_DISPLAY=yes
3727 cat >>confdefs.h <<\_ACEOF
3728 @%:@define USE_PIPES 1
3731 cat >>confdefs.h <<\_ACEOF
3732 @%:@define LOGIN_NO_ENDOPT 1
3735 cat >>confdefs.h <<\_ACEOF
3736 @%:@define LOGIN_NEEDS_UTMPX 1
3739 cat >>confdefs.h <<\_ACEOF
3740 @%:@define DISABLE_SHADOW 1
3743 cat >>confdefs.h <<\_ACEOF
3744 @%:@define DISABLE_UTMP 1
3747 cat >>confdefs.h <<\_ACEOF
3748 @%:@define SPT_TYPE SPT_PSTAT
3751 LIBS="$LIBS -lxnet -lsec"
3754 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3755 IPADDR_IN_DISPLAY=yes
3756 cat >>confdefs.h <<\_ACEOF
3757 @%:@define PAM_SUN_CODEBASE 1
3760 cat >>confdefs.h <<\_ACEOF
3761 @%:@define USE_PIPES 1
3764 cat >>confdefs.h <<\_ACEOF
3765 @%:@define LOGIN_NO_ENDOPT 1
3768 cat >>confdefs.h <<\_ACEOF
3769 @%:@define LOGIN_NEEDS_UTMPX 1
3772 cat >>confdefs.h <<\_ACEOF
3773 @%:@define DISABLE_SHADOW 1
3776 cat >>confdefs.h <<\_ACEOF
3777 @%:@define DISABLE_UTMP 1
3780 cat >>confdefs.h <<\_ACEOF
3781 @%:@define SPT_TYPE SPT_PSTAT
3784 LIBS="$LIBS -lxnet -lsec"
3787 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3789 PATH="$PATH:/usr/etc"
3790 cat >>confdefs.h <<\_ACEOF
3791 @%:@define BROKEN_INET_NTOA 1
3794 cat >>confdefs.h <<\_ACEOF
3795 @%:@define WITH_ABBREV_NO_TTY 1
3800 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3802 PATH="$PATH:/usr/etc"
3803 cat >>confdefs.h <<\_ACEOF
3804 @%:@define WITH_IRIX_ARRAY 1
3807 cat >>confdefs.h <<\_ACEOF
3808 @%:@define WITH_IRIX_PROJECT 1
3811 cat >>confdefs.h <<\_ACEOF
3812 @%:@define WITH_IRIX_AUDIT 1
3815 echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
3816 echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6
3817 if test "${ac_cv_func_jlimit_startjob+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 cat >conftest.$ac_ext <<_ACEOF
3821 #line $LINENO "configure"
3822 #include "confdefs.h"
3823 /* System header to define __stub macros and hopefully few prototypes,
3824 which can conflict with char jlimit_startjob (); below. */
3826 /* Override any gcc2 internal prototype to avoid an error. */
3830 /* We use char because int might match the return type of a gcc2
3831 builtin and then its argument prototype would still apply. */
3832 char jlimit_startjob ();
3835 #ifdef F77_DUMMY_MAIN
3839 int F77_DUMMY_MAIN() { return 1; }
3844 /* The GNU C library defines this for functions which it implements
3845 to always fail with ENOSYS. Some functions are actually named
3846 something starting with __ and the normal name is an alias. */
3847 #if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob)
3850 f = jlimit_startjob;
3857 rm -f conftest.$ac_objext conftest$ac_exeext
3858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3859 (eval $ac_link) 2>&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } &&
3863 { ac_try='test -s conftest$ac_exeext'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; }; then
3869 ac_cv_func_jlimit_startjob=yes
3871 echo "$as_me: failed program was:" >&5
3872 cat conftest.$ac_ext >&5
3873 ac_cv_func_jlimit_startjob=no
3875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3877 echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
3878 echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6
3879 if test $ac_cv_func_jlimit_startjob = yes; then
3880 cat >>confdefs.h <<\_ACEOF
3881 @%:@define WITH_IRIX_JOBS 1
3886 cat >>confdefs.h <<\_ACEOF
3887 @%:@define BROKEN_INET_NTOA 1
3890 cat >>confdefs.h <<\_ACEOF
3891 @%:@define WITH_ABBREV_NO_TTY 1
3897 check_for_libcrypt_later=1
3898 cat >>confdefs.h <<\_ACEOF
3899 @%:@define DONT_TRY_OTHER_AF 1
3902 cat >>confdefs.h <<\_ACEOF
3903 @%:@define PAM_TTY_KLUDGE 1
3906 inet6_default_4in6=yes
3908 mips-sony-bsd|mips-sony-newsos4)
3909 cat >>confdefs.h <<\_ACEOF
3910 @%:@define HAVE_NEWS4 1
3919 check_for_libcrypt_later=1
3922 conf_lastlog_location="/usr/adm/lastlog"
3923 conf_utmp_location=/etc/utmp
3924 conf_wtmp_location=/usr/adm/wtmp
3925 MAIL=/usr/spool/mail
3926 cat >>confdefs.h <<\_ACEOF
3927 @%:@define HAVE_NEXT 1
3930 cat >>confdefs.h <<\_ACEOF
3931 @%:@define BROKEN_REALPATH 1
3934 cat >>confdefs.h <<\_ACEOF
3935 @%:@define USE_PIPES 1
3938 cat >>confdefs.h <<\_ACEOF
3939 @%:@define BROKEN_SAVED_UIDS 1
3942 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3946 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3947 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
3949 cat >>confdefs.h <<\_ACEOF
3950 @%:@define PAM_SUN_CODEBASE 1
3953 cat >>confdefs.h <<\_ACEOF
3954 @%:@define LOGIN_NEEDS_UTMPX 1
3957 cat >>confdefs.h <<\_ACEOF
3958 @%:@define LOGIN_NEEDS_TERM 1
3961 cat >>confdefs.h <<\_ACEOF
3962 @%:@define PAM_TTY_KLUDGE 1
3965 # hardwire lastlog location (can't detect it on some versions)
3966 conf_lastlog_location="/var/adm/lastlog"
3967 echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
3968 echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6
3969 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
3970 if test "$sol2ver" -ge 8; then
3971 echo "$as_me:$LINENO: result: yes" >&5
3972 echo "${ECHO_T}yes" >&6
3973 cat >>confdefs.h <<\_ACEOF
3974 @%:@define DISABLE_UTMP 1
3977 cat >>confdefs.h <<\_ACEOF
3978 @%:@define DISABLE_WTMP 1
3982 echo "$as_me:$LINENO: result: no" >&5
3983 echo "${ECHO_T}no" >&6
3987 CPPFLAGS="$CPPFLAGS -DSUNOS4"
3989 for ac_func in getpwanam
3991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3992 echo "$as_me:$LINENO: checking for $ac_func" >&5
3993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3994 if eval "test \"\${$as_ac_var+set}\" = set"; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 cat >conftest.$ac_ext <<_ACEOF
3998 #line $LINENO "configure"
3999 #include "confdefs.h"
4000 /* System header to define __stub macros and hopefully few prototypes,
4001 which can conflict with char $ac_func (); below. */
4003 /* Override any gcc2 internal prototype to avoid an error. */
4007 /* We use char because int might match the return type of a gcc2
4008 builtin and then its argument prototype would still apply. */
4012 #ifdef F77_DUMMY_MAIN
4016 int F77_DUMMY_MAIN() { return 1; }
4021 /* The GNU C library defines this for functions which it implements
4022 to always fail with ENOSYS. Some functions are actually named
4023 something starting with __ and the normal name is an alias. */
4024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4034 rm -f conftest.$ac_objext conftest$ac_exeext
4035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4036 (eval $ac_link) 2>&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } &&
4040 { ac_try='test -s conftest$ac_exeext'
4041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; }; then
4046 eval "$as_ac_var=yes"
4048 echo "$as_me: failed program was:" >&5
4049 cat conftest.$ac_ext >&5
4050 eval "$as_ac_var=no"
4052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4056 if test `eval echo '${'$as_ac_var'}'` = yes; then
4057 cat >>confdefs.h <<_ACEOF
4058 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4064 cat >>confdefs.h <<\_ACEOF
4065 @%:@define PAM_SUN_CODEBASE 1
4068 conf_utmp_location=/etc/utmp
4069 conf_wtmp_location=/var/adm/wtmp
4070 conf_lastlog_location=/var/adm/lastlog
4071 cat >>confdefs.h <<\_ACEOF
4072 @%:@define USE_PIPES 1
4077 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4078 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4080 cat >>confdefs.h <<\_ACEOF
4081 @%:@define USE_PIPES 1
4086 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4087 # /usr/ucblib MUST NOT be searched on ReliantUNIX
4088 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4089 IPADDR_IN_DISPLAY=yes
4090 cat >>confdefs.h <<\_ACEOF
4091 @%:@define USE_PIPES 1
4094 cat >>confdefs.h <<\_ACEOF
4095 @%:@define IP_TOS_IS_BROKEN 1
4098 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
4099 # Attention: always take care to bind libsocket and libnsl before libc,
4100 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
4103 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4104 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4105 cat >>confdefs.h <<\_ACEOF
4106 @%:@define USE_PIPES 1
4111 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4112 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4113 cat >>confdefs.h <<\_ACEOF
4114 @%:@define USE_PIPES 1
4119 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4120 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4123 CPPFLAGS="$CPPFLAGS -Dftruncate=chsize -I/usr/local/include"
4124 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4125 LIBS="$LIBS -los -lprot -lx -ltinfo -lm"
4126 rsh_path="/usr/bin/rcmd"
4129 cat >>confdefs.h <<\_ACEOF
4130 @%:@define BROKEN_SYS_TERMIO_H 1
4133 cat >>confdefs.h <<\_ACEOF
4134 @%:@define USE_PIPES 1
4137 cat >>confdefs.h <<\_ACEOF
4138 @%:@define HAVE_SECUREWARE 1
4141 cat >>confdefs.h <<\_ACEOF
4142 @%:@define DISABLE_SHADOW 1
4145 cat >>confdefs.h <<\_ACEOF
4146 @%:@define BROKEN_SAVED_UIDS 1
4151 for ac_func in getluid setluid
4153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4154 echo "$as_me:$LINENO: checking for $ac_func" >&5
4155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4156 if eval "test \"\${$as_ac_var+set}\" = set"; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 cat >conftest.$ac_ext <<_ACEOF
4160 #line $LINENO "configure"
4161 #include "confdefs.h"
4162 /* System header to define __stub macros and hopefully few prototypes,
4163 which can conflict with char $ac_func (); below. */
4165 /* Override any gcc2 internal prototype to avoid an error. */
4169 /* We use char because int might match the return type of a gcc2
4170 builtin and then its argument prototype would still apply. */
4174 #ifdef F77_DUMMY_MAIN
4178 int F77_DUMMY_MAIN() { return 1; }
4183 /* The GNU C library defines this for functions which it implements
4184 to always fail with ENOSYS. Some functions are actually named
4185 something starting with __ and the normal name is an alias. */
4186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4196 rm -f conftest.$ac_objext conftest$ac_exeext
4197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4198 (eval $ac_link) 2>&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); } &&
4202 { ac_try='test -s conftest$ac_exeext'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; }; then
4208 eval "$as_ac_var=yes"
4210 echo "$as_me: failed program was:" >&5
4211 cat conftest.$ac_ext >&5
4212 eval "$as_ac_var=no"
4214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4217 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4218 if test `eval echo '${'$as_ac_var'}'` = yes; then
4219 cat >>confdefs.h <<_ACEOF
4220 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4227 do_sco3_extra_lib_check=yes
4230 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4231 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4232 LIBS="$LIBS -lprot -lx -ltinfo -lm"
4234 rsh_path="/usr/bin/rcmd"
4235 cat >>confdefs.h <<\_ACEOF
4236 @%:@define USE_PIPES 1
4239 cat >>confdefs.h <<\_ACEOF
4240 @%:@define HAVE_SECUREWARE 1
4243 cat >>confdefs.h <<\_ACEOF
4244 @%:@define DISABLE_SHADOW 1
4249 for ac_func in getluid setluid
4251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4252 echo "$as_me:$LINENO: checking for $ac_func" >&5
4253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4254 if eval "test \"\${$as_ac_var+set}\" = set"; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 cat >conftest.$ac_ext <<_ACEOF
4258 #line $LINENO "configure"
4259 #include "confdefs.h"
4260 /* System header to define __stub macros and hopefully few prototypes,
4261 which can conflict with char $ac_func (); below. */
4263 /* Override any gcc2 internal prototype to avoid an error. */
4267 /* We use char because int might match the return type of a gcc2
4268 builtin and then its argument prototype would still apply. */
4272 #ifdef F77_DUMMY_MAIN
4276 int F77_DUMMY_MAIN() { return 1; }
4281 /* The GNU C library defines this for functions which it implements
4282 to always fail with ENOSYS. Some functions are actually named
4283 something starting with __ and the normal name is an alias. */
4284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4294 rm -f conftest.$ac_objext conftest$ac_exeext
4295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4296 (eval $ac_link) 2>&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } &&
4300 { ac_try='test -s conftest$ac_exeext'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; }; then
4306 eval "$as_ac_var=yes"
4308 echo "$as_me: failed program was:" >&5
4309 cat conftest.$ac_ext >&5
4310 eval "$as_ac_var=no"
4312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4316 if test `eval echo '${'$as_ac_var'}'` = yes; then
4317 cat >>confdefs.h <<_ACEOF
4318 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4329 cat >>confdefs.h <<\_ACEOF
4330 @%:@define USE_PIPES 1
4333 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal,-L/usr/local/lib"
4334 LIBS="$LIBS -lgen -lrsc"
4337 echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
4338 echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6
4341 # Check whether --with-osfsia or --without-osfsia was given.
4342 if test "${with_osfsia+set}" = set; then
4343 withval="$with_osfsia"
4345 if test "x$withval" = "xno" ; then
4346 echo "$as_me:$LINENO: result: disabled" >&5
4347 echo "${ECHO_T}disabled" >&6
4352 if test -z "$no_osfsia" ; then
4353 if test -f /etc/sia/matrix.conf; then
4354 echo "$as_me:$LINENO: result: yes" >&5
4355 echo "${ECHO_T}yes" >&6
4356 cat >>confdefs.h <<\_ACEOF
4357 @%:@define HAVE_OSF_SIA 1
4360 cat >>confdefs.h <<\_ACEOF
4361 @%:@define DISABLE_LOGIN 1
4364 LIBS="$LIBS -lsecurity -ldb -lm -laud"
4366 echo "$as_me:$LINENO: result: no" >&5
4367 echo "${ECHO_T}no" >&6
4373 cat >>confdefs.h <<\_ACEOF
4374 @%:@define USE_PIPES 1
4377 cat >>confdefs.h <<\_ACEOF
4378 @%:@define NO_X11_UNIX_SOCKETS 1
4381 cat >>confdefs.h <<\_ACEOF
4382 @%:@define MISSING_NFDBITS 1
4385 cat >>confdefs.h <<\_ACEOF
4386 @%:@define MISSING_HOWMANY 1
4389 cat >>confdefs.h <<\_ACEOF
4390 @%:@define MISSING_FD_MASK 1
4396 # Allow user to specify flags
4398 # Check whether --with-cflags or --without-cflags was given.
4399 if test "${with_cflags+set}" = set; then
4400 withval="$with_cflags"
4402 if test "x$withval" != "xno" ; then
4403 CFLAGS="$CFLAGS $withval"
4409 # Check whether --with-cppflags or --without-cppflags was given.
4410 if test "${with_cppflags+set}" = set; then
4411 withval="$with_cppflags"
4413 if test "x$withval" != "xno"; then
4414 CPPFLAGS="$CPPFLAGS $withval"
4420 # Check whether --with-ldflags or --without-ldflags was given.
4421 if test "${with_ldflags+set}" = set; then
4422 withval="$with_ldflags"
4424 if test "x$withval" != "xno" ; then
4425 LDFLAGS="$LDFLAGS $withval"
4431 # Check whether --with-libs or --without-libs was given.
4432 if test "${with_libs+set}" = set; then
4433 withval="$with_libs"
4435 if test "x$withval" != "xno" ; then
4436 LIBS="$LIBS $withval"
4442 # Checks for header files.
4444 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4445 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4446 if test "${ac_cv_header_stdc+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 cat >conftest.$ac_ext <<_ACEOF
4450 #line $LINENO "configure"
4451 #include "confdefs.h"
4458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4461 egrep -v '^ *\+' conftest.er1 >conftest.err
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } >/dev/null; then
4466 if test -s conftest.err; then
4467 ac_cpp_err=$ac_c_preproc_warn_flag
4474 if test -z "$ac_cpp_err"; then
4475 ac_cv_header_stdc=yes
4477 echo "$as_me: failed program was:" >&5
4478 cat conftest.$ac_ext >&5
4479 ac_cv_header_stdc=no
4481 rm -f conftest.err conftest.$ac_ext
4483 if test $ac_cv_header_stdc = yes; then
4484 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4485 cat >conftest.$ac_ext <<_ACEOF
4486 #line $LINENO "configure"
4487 #include "confdefs.h"
4491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4492 egrep "memchr" >/dev/null 2>&1; then
4495 ac_cv_header_stdc=no
4501 if test $ac_cv_header_stdc = yes; then
4502 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4503 cat >conftest.$ac_ext <<_ACEOF
4504 #line $LINENO "configure"
4505 #include "confdefs.h"
4509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4510 egrep "free" >/dev/null 2>&1; then
4513 ac_cv_header_stdc=no
4519 if test $ac_cv_header_stdc = yes; then
4520 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4521 if test "$cross_compiling" = yes; then
4524 cat >conftest.$ac_ext <<_ACEOF
4525 #line $LINENO "configure"
4526 #include "confdefs.h"
4528 #if ((' ' & 0x0FF) == 0x020)
4529 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4530 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4532 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4533 || ('j' <= (c) && (c) <= 'r') \
4534 || ('s' <= (c) && (c) <= 'z'))
4535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4543 for (i = 0; i < 256; i++)
4544 if (XOR (islower (i), ISLOWER (i))
4545 || toupper (i) != TOUPPER (i))
4550 rm -f conftest$ac_exeext
4551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4552 (eval $ac_link) 2>&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4563 echo "$as_me: program exited with status $ac_status" >&5
4564 echo "$as_me: failed program was:" >&5
4565 cat conftest.$ac_ext >&5
4567 ac_cv_header_stdc=no
4569 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4573 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4574 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4575 if test $ac_cv_header_stdc = yes; then
4577 cat >>confdefs.h <<\_ACEOF
4578 @%:@define STDC_HEADERS 1
4583 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4593 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4594 inttypes.h stdint.h unistd.h
4596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4597 echo "$as_me:$LINENO: checking for $ac_header" >&5
4598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 cat >conftest.$ac_ext <<_ACEOF
4603 #line $LINENO "configure"
4604 #include "confdefs.h"
4605 $ac_includes_default
4607 @%:@include <$ac_header>
4609 rm -f conftest.$ac_objext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611 (eval $ac_compile) 2>&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } &&
4615 { ac_try='test -s conftest.$ac_objext'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 eval "$as_ac_Header=yes"
4623 echo "$as_me: failed program was:" >&5
4624 cat conftest.$ac_ext >&5
4625 eval "$as_ac_Header=no"
4627 rm -f conftest.$ac_objext conftest.$ac_ext
4629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4632 cat >>confdefs.h <<_ACEOF
4633 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4681 for ac_header in bstring.h crypt.h endian.h floatingpoint.h \
4682 getopt.h glob.h lastlog.h limits.h login.h \
4683 login_cap.h maillock.h netdb.h netgroup.h \
4684 netinet/in_systm.h paths.h pty.h readpassphrase.h \
4685 rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \
4686 strings.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h \
4687 sys/mman.h sys/select.h sys/stat.h \
4688 sys/stropts.h sys/sysmacros.h sys/time.h \
4689 sys/un.h time.h ttyent.h usersec.h \
4690 util.h utime.h utmp.h utmpx.h
4692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4694 echo "$as_me:$LINENO: checking for $ac_header" >&5
4695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4702 # Is the header compilable?
4703 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4705 cat >conftest.$ac_ext <<_ACEOF
4706 #line $LINENO "configure"
4707 #include "confdefs.h"
4708 $ac_includes_default
4709 @%:@include <$ac_header>
4711 rm -f conftest.$ac_objext
4712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4713 (eval $ac_compile) 2>&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } &&
4717 { ac_try='test -s conftest.$ac_objext'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4723 ac_header_compiler=yes
4725 echo "$as_me: failed program was:" >&5
4726 cat conftest.$ac_ext >&5
4727 ac_header_compiler=no
4729 rm -f conftest.$ac_objext conftest.$ac_ext
4730 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4731 echo "${ECHO_T}$ac_header_compiler" >&6
4733 # Is the header present?
4734 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4736 cat >conftest.$ac_ext <<_ACEOF
4737 #line $LINENO "configure"
4738 #include "confdefs.h"
4739 @%:@include <$ac_header>
4741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4744 egrep -v '^ *\+' conftest.er1 >conftest.err
4746 cat conftest.err >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } >/dev/null; then
4749 if test -s conftest.err; then
4750 ac_cpp_err=$ac_c_preproc_warn_flag
4757 if test -z "$ac_cpp_err"; then
4758 ac_header_preproc=yes
4760 echo "$as_me: failed program was:" >&5
4761 cat conftest.$ac_ext >&5
4762 ac_header_preproc=no
4764 rm -f conftest.err conftest.$ac_ext
4765 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4766 echo "${ECHO_T}$ac_header_preproc" >&6
4768 # So? What about this header?
4769 case $ac_header_compiler:$ac_header_preproc in
4771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4783 echo "$as_me:$LINENO: checking for $ac_header" >&5
4784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 eval "$as_ac_Header=$ac_header_preproc"
4790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4795 cat >>confdefs.h <<_ACEOF
4796 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4804 # Checks for libraries.
4805 echo "$as_me:$LINENO: checking for yp_match" >&5
4806 echo $ECHO_N "checking for yp_match... $ECHO_C" >&6
4807 if test "${ac_cv_func_yp_match+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4810 cat >conftest.$ac_ext <<_ACEOF
4811 #line $LINENO "configure"
4812 #include "confdefs.h"
4813 /* System header to define __stub macros and hopefully few prototypes,
4814 which can conflict with char yp_match (); below. */
4816 /* Override any gcc2 internal prototype to avoid an error. */
4820 /* We use char because int might match the return type of a gcc2
4821 builtin and then its argument prototype would still apply. */
4825 #ifdef F77_DUMMY_MAIN
4829 int F77_DUMMY_MAIN() { return 1; }
4834 /* The GNU C library defines this for functions which it implements
4835 to always fail with ENOSYS. Some functions are actually named
4836 something starting with __ and the normal name is an alias. */
4837 #if defined (__stub_yp_match) || defined (__stub___yp_match)
4847 rm -f conftest.$ac_objext conftest$ac_exeext
4848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4849 (eval $ac_link) 2>&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } &&
4853 { ac_try='test -s conftest$ac_exeext'
4854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; }; then
4859 ac_cv_func_yp_match=yes
4861 echo "$as_me: failed program was:" >&5
4862 cat conftest.$ac_ext >&5
4863 ac_cv_func_yp_match=no
4865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4867 echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
4868 echo "${ECHO_T}$ac_cv_func_yp_match" >&6
4869 if test $ac_cv_func_yp_match = yes; then
4873 echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
4874 echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6
4875 if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 ac_check_lib_save_LIBS=$LIBS
4880 cat >conftest.$ac_ext <<_ACEOF
4881 #line $LINENO "configure"
4882 #include "confdefs.h"
4884 /* Override any gcc2 internal prototype to avoid an error. */
4888 /* We use char because int might match the return type of a gcc2
4889 builtin and then its argument prototype would still apply. */
4891 #ifdef F77_DUMMY_MAIN
4895 int F77_DUMMY_MAIN() { return 1; }
4905 rm -f conftest.$ac_objext conftest$ac_exeext
4906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4907 (eval $ac_link) 2>&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } &&
4911 { ac_try='test -s conftest$ac_exeext'
4912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; }; then
4917 ac_cv_lib_nsl_yp_match=yes
4919 echo "$as_me: failed program was:" >&5
4920 cat conftest.$ac_ext >&5
4921 ac_cv_lib_nsl_yp_match=no
4923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4924 LIBS=$ac_check_lib_save_LIBS
4926 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
4927 echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6
4928 if test $ac_cv_lib_nsl_yp_match = yes; then
4929 cat >>confdefs.h <<_ACEOF
4930 @%:@define HAVE_LIBNSL 1
4939 echo "$as_me:$LINENO: checking for setsockopt" >&5
4940 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
4941 if test "${ac_cv_func_setsockopt+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 cat >conftest.$ac_ext <<_ACEOF
4945 #line $LINENO "configure"
4946 #include "confdefs.h"
4947 /* System header to define __stub macros and hopefully few prototypes,
4948 which can conflict with char setsockopt (); below. */
4950 /* Override any gcc2 internal prototype to avoid an error. */
4954 /* We use char because int might match the return type of a gcc2
4955 builtin and then its argument prototype would still apply. */
4959 #ifdef F77_DUMMY_MAIN
4963 int F77_DUMMY_MAIN() { return 1; }
4968 /* The GNU C library defines this for functions which it implements
4969 to always fail with ENOSYS. Some functions are actually named
4970 something starting with __ and the normal name is an alias. */
4971 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
4981 rm -f conftest.$ac_objext conftest$ac_exeext
4982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4983 (eval $ac_link) 2>&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } &&
4987 { ac_try='test -s conftest$ac_exeext'
4988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); }; }; then
4993 ac_cv_func_setsockopt=yes
4995 echo "$as_me: failed program was:" >&5
4996 cat conftest.$ac_ext >&5
4997 ac_cv_func_setsockopt=no
4999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5001 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
5002 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
5003 if test $ac_cv_func_setsockopt = yes; then
5007 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
5008 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
5009 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 ac_check_lib_save_LIBS=$LIBS
5013 LIBS="-lsocket $LIBS"
5014 cat >conftest.$ac_ext <<_ACEOF
5015 #line $LINENO "configure"
5016 #include "confdefs.h"
5018 /* Override any gcc2 internal prototype to avoid an error. */
5022 /* We use char because int might match the return type of a gcc2
5023 builtin and then its argument prototype would still apply. */
5025 #ifdef F77_DUMMY_MAIN
5029 int F77_DUMMY_MAIN() { return 1; }
5039 rm -f conftest.$ac_objext conftest$ac_exeext
5040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5041 (eval $ac_link) 2>&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } &&
5045 { ac_try='test -s conftest$ac_exeext'
5046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); }; }; then
5051 ac_cv_lib_socket_setsockopt=yes
5053 echo "$as_me: failed program was:" >&5
5054 cat conftest.$ac_ext >&5
5055 ac_cv_lib_socket_setsockopt=no
5057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5058 LIBS=$ac_check_lib_save_LIBS
5060 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
5061 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
5062 if test $ac_cv_lib_socket_setsockopt = yes; then
5063 cat >>confdefs.h <<_ACEOF
5064 @%:@define HAVE_LIBSOCKET 1
5067 LIBS="-lsocket $LIBS"
5074 if test "x$with_tcp_wrappers" != "xno" ; then
5075 if test "x$do_sco3_extra_lib_check" = "xyes" ; then
5076 echo "$as_me:$LINENO: checking for innetgr in -lrpc" >&5
5077 echo $ECHO_N "checking for innetgr in -lrpc... $ECHO_C" >&6
5078 if test "${ac_cv_lib_rpc_innetgr+set}" = set; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5081 ac_check_lib_save_LIBS=$LIBS
5082 LIBS="-lrpc -lyp -lrpc $LIBS"
5083 cat >conftest.$ac_ext <<_ACEOF
5084 #line $LINENO "configure"
5085 #include "confdefs.h"
5087 /* Override any gcc2 internal prototype to avoid an error. */
5091 /* We use char because int might match the return type of a gcc2
5092 builtin and then its argument prototype would still apply. */
5094 #ifdef F77_DUMMY_MAIN
5098 int F77_DUMMY_MAIN() { return 1; }
5108 rm -f conftest.$ac_objext conftest$ac_exeext
5109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5110 (eval $ac_link) 2>&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } &&
5114 { ac_try='test -s conftest$ac_exeext'
5115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }; }; then
5120 ac_cv_lib_rpc_innetgr=yes
5122 echo "$as_me: failed program was:" >&5
5123 cat conftest.$ac_ext >&5
5124 ac_cv_lib_rpc_innetgr=no
5126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5127 LIBS=$ac_check_lib_save_LIBS
5129 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_innetgr" >&5
5130 echo "${ECHO_T}$ac_cv_lib_rpc_innetgr" >&6
5131 if test $ac_cv_lib_rpc_innetgr = yes; then
5132 LIBS="-lrpc -lyp -lrpc $LIBS"
5138 echo "$as_me:$LINENO: checking for getspnam" >&5
5139 echo $ECHO_N "checking for getspnam... $ECHO_C" >&6
5140 if test "${ac_cv_func_getspnam+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 cat >conftest.$ac_ext <<_ACEOF
5144 #line $LINENO "configure"
5145 #include "confdefs.h"
5146 /* System header to define __stub macros and hopefully few prototypes,
5147 which can conflict with char getspnam (); below. */
5149 /* Override any gcc2 internal prototype to avoid an error. */
5153 /* We use char because int might match the return type of a gcc2
5154 builtin and then its argument prototype would still apply. */
5158 #ifdef F77_DUMMY_MAIN
5162 int F77_DUMMY_MAIN() { return 1; }
5167 /* The GNU C library defines this for functions which it implements
5168 to always fail with ENOSYS. Some functions are actually named
5169 something starting with __ and the normal name is an alias. */
5170 #if defined (__stub_getspnam) || defined (__stub___getspnam)
5180 rm -f conftest.$ac_objext conftest$ac_exeext
5181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5182 (eval $ac_link) 2>&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); } &&
5186 { ac_try='test -s conftest$ac_exeext'
5187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); }; }; then
5192 ac_cv_func_getspnam=yes
5194 echo "$as_me: failed program was:" >&5
5195 cat conftest.$ac_ext >&5
5196 ac_cv_func_getspnam=no
5198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5200 echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
5201 echo "${ECHO_T}$ac_cv_func_getspnam" >&6
5202 if test $ac_cv_func_getspnam = yes; then
5205 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
5206 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
5207 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 ac_check_lib_save_LIBS=$LIBS
5212 cat >conftest.$ac_ext <<_ACEOF
5213 #line $LINENO "configure"
5214 #include "confdefs.h"
5216 /* Override any gcc2 internal prototype to avoid an error. */
5220 /* We use char because int might match the return type of a gcc2
5221 builtin and then its argument prototype would still apply. */
5223 #ifdef F77_DUMMY_MAIN
5227 int F77_DUMMY_MAIN() { return 1; }
5237 rm -f conftest.$ac_objext conftest$ac_exeext
5238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5239 (eval $ac_link) 2>&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } &&
5243 { ac_try='test -s conftest$ac_exeext'
5244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; }; then
5249 ac_cv_lib_gen_getspnam=yes
5251 echo "$as_me: failed program was:" >&5
5252 cat conftest.$ac_ext >&5
5253 ac_cv_lib_gen_getspnam=no
5255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5256 LIBS=$ac_check_lib_save_LIBS
5258 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
5259 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
5260 if test $ac_cv_lib_gen_getspnam = yes; then
5268 # Check whether --with-rpath or --without-rpath was given.
5269 if test "${with_rpath+set}" = set; then
5270 withval="$with_rpath"
5272 if test "x$withval" = "xno" ; then
5275 if test "x$withval" = "xyes" ; then
5283 # Check whether --with-zlib or --without-zlib was given.
5284 if test "${with_zlib+set}" = set; then
5285 withval="$with_zlib"
5287 if test "x$withval" = "xno" ; then
5288 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
5289 echo "$as_me: error: *** zlib is required ***" >&2;}
5290 { (exit 1); exit 1; }; }
5292 if test -d "$withval/lib"; then
5293 if test -n "${need_dash_r}"; then
5294 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
5296 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
5299 if test -n "${need_dash_r}"; then
5300 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
5302 LDFLAGS="-L${withval} ${LDFLAGS}"
5305 if test -d "$withval/include"; then
5306 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
5308 CPPFLAGS="-I${withval} ${CPPFLAGS}"
5315 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5316 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5317 if test "${ac_cv_lib_z_deflate+set}" = set; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 ac_check_lib_save_LIBS=$LIBS
5322 cat >conftest.$ac_ext <<_ACEOF
5323 #line $LINENO "configure"
5324 #include "confdefs.h"
5326 /* Override any gcc2 internal prototype to avoid an error. */
5330 /* We use char because int might match the return type of a gcc2
5331 builtin and then its argument prototype would still apply. */
5333 #ifdef F77_DUMMY_MAIN
5337 int F77_DUMMY_MAIN() { return 1; }
5347 rm -f conftest.$ac_objext conftest$ac_exeext
5348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5349 (eval $ac_link) 2>&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } &&
5353 { ac_try='test -s conftest$ac_exeext'
5354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }; }; then
5359 ac_cv_lib_z_deflate=yes
5361 echo "$as_me: failed program was:" >&5
5362 cat conftest.$ac_ext >&5
5363 ac_cv_lib_z_deflate=no
5365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5366 LIBS=$ac_check_lib_save_LIBS
5368 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5369 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5370 if test $ac_cv_lib_z_deflate = yes; then
5371 cat >>confdefs.h <<_ACEOF
5372 @%:@define HAVE_LIBZ 1
5378 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
5379 echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
5380 { (exit 1); exit 1; }; }
5384 echo "$as_me:$LINENO: checking for strcasecmp" >&5
5385 echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
5386 if test "${ac_cv_func_strcasecmp+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5389 cat >conftest.$ac_ext <<_ACEOF
5390 #line $LINENO "configure"
5391 #include "confdefs.h"
5392 /* System header to define __stub macros and hopefully few prototypes,
5393 which can conflict with char strcasecmp (); below. */
5395 /* Override any gcc2 internal prototype to avoid an error. */
5399 /* We use char because int might match the return type of a gcc2
5400 builtin and then its argument prototype would still apply. */
5404 #ifdef F77_DUMMY_MAIN
5408 int F77_DUMMY_MAIN() { return 1; }
5413 /* The GNU C library defines this for functions which it implements
5414 to always fail with ENOSYS. Some functions are actually named
5415 something starting with __ and the normal name is an alias. */
5416 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
5426 rm -f conftest.$ac_objext conftest$ac_exeext
5427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5428 (eval $ac_link) 2>&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } &&
5432 { ac_try='test -s conftest$ac_exeext'
5433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; }; then
5438 ac_cv_func_strcasecmp=yes
5440 echo "$as_me: failed program was:" >&5
5441 cat conftest.$ac_ext >&5
5442 ac_cv_func_strcasecmp=no
5444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5446 echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
5447 echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
5448 if test $ac_cv_func_strcasecmp = yes; then
5451 echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
5452 echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6
5453 if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 ac_check_lib_save_LIBS=$LIBS
5457 LIBS="-lresolv $LIBS"
5458 cat >conftest.$ac_ext <<_ACEOF
5459 #line $LINENO "configure"
5460 #include "confdefs.h"
5462 /* Override any gcc2 internal prototype to avoid an error. */
5466 /* We use char because int might match the return type of a gcc2
5467 builtin and then its argument prototype would still apply. */
5469 #ifdef F77_DUMMY_MAIN
5473 int F77_DUMMY_MAIN() { return 1; }
5483 rm -f conftest.$ac_objext conftest$ac_exeext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5485 (eval $ac_link) 2>&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } &&
5489 { ac_try='test -s conftest$ac_exeext'
5490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; }; then
5495 ac_cv_lib_resolv_strcasecmp=yes
5497 echo "$as_me: failed program was:" >&5
5498 cat conftest.$ac_ext >&5
5499 ac_cv_lib_resolv_strcasecmp=no
5501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5502 LIBS=$ac_check_lib_save_LIBS
5504 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
5505 echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6
5506 if test $ac_cv_lib_resolv_strcasecmp = yes; then
5507 LIBS="$LIBS -lresolv"
5513 echo "$as_me:$LINENO: checking for utimes" >&5
5514 echo $ECHO_N "checking for utimes... $ECHO_C" >&6
5515 if test "${ac_cv_func_utimes+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 cat >conftest.$ac_ext <<_ACEOF
5519 #line $LINENO "configure"
5520 #include "confdefs.h"
5521 /* System header to define __stub macros and hopefully few prototypes,
5522 which can conflict with char utimes (); below. */
5524 /* Override any gcc2 internal prototype to avoid an error. */
5528 /* We use char because int might match the return type of a gcc2
5529 builtin and then its argument prototype would still apply. */
5533 #ifdef F77_DUMMY_MAIN
5537 int F77_DUMMY_MAIN() { return 1; }
5542 /* The GNU C library defines this for functions which it implements
5543 to always fail with ENOSYS. Some functions are actually named
5544 something starting with __ and the normal name is an alias. */
5545 #if defined (__stub_utimes) || defined (__stub___utimes)
5555 rm -f conftest.$ac_objext conftest$ac_exeext
5556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5557 (eval $ac_link) 2>&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } &&
5561 { ac_try='test -s conftest$ac_exeext'
5562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); }; }; then
5567 ac_cv_func_utimes=yes
5569 echo "$as_me: failed program was:" >&5
5570 cat conftest.$ac_ext >&5
5571 ac_cv_func_utimes=no
5573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5575 echo "$as_me:$LINENO: result: $ac_cv_func_utimes" >&5
5576 echo "${ECHO_T}$ac_cv_func_utimes" >&6
5577 if test $ac_cv_func_utimes = yes; then
5580 echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
5581 echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6
5582 if test "${ac_cv_lib_c89_utimes+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5585 ac_check_lib_save_LIBS=$LIBS
5587 cat >conftest.$ac_ext <<_ACEOF
5588 #line $LINENO "configure"
5589 #include "confdefs.h"
5591 /* Override any gcc2 internal prototype to avoid an error. */
5595 /* We use char because int might match the return type of a gcc2
5596 builtin and then its argument prototype would still apply. */
5598 #ifdef F77_DUMMY_MAIN
5602 int F77_DUMMY_MAIN() { return 1; }
5612 rm -f conftest.$ac_objext conftest$ac_exeext
5613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5614 (eval $ac_link) 2>&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } &&
5618 { ac_try='test -s conftest$ac_exeext'
5619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); }; }; then
5624 ac_cv_lib_c89_utimes=yes
5626 echo "$as_me: failed program was:" >&5
5627 cat conftest.$ac_ext >&5
5628 ac_cv_lib_c89_utimes=no
5630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5631 LIBS=$ac_check_lib_save_LIBS
5633 echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
5634 echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6
5635 if test $ac_cv_lib_c89_utimes = yes; then
5644 for ac_header in libutil.h
5646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5648 echo "$as_me:$LINENO: checking for $ac_header" >&5
5649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5656 # Is the header compilable?
5657 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5659 cat >conftest.$ac_ext <<_ACEOF
5660 #line $LINENO "configure"
5661 #include "confdefs.h"
5662 $ac_includes_default
5663 @%:@include <$ac_header>
5665 rm -f conftest.$ac_objext
5666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5667 (eval $ac_compile) 2>&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try='test -s conftest.$ac_objext'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; }; then
5677 ac_header_compiler=yes
5679 echo "$as_me: failed program was:" >&5
5680 cat conftest.$ac_ext >&5
5681 ac_header_compiler=no
5683 rm -f conftest.$ac_objext conftest.$ac_ext
5684 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5685 echo "${ECHO_T}$ac_header_compiler" >&6
5687 # Is the header present?
5688 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5690 cat >conftest.$ac_ext <<_ACEOF
5691 #line $LINENO "configure"
5692 #include "confdefs.h"
5693 @%:@include <$ac_header>
5695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5698 egrep -v '^ *\+' conftest.er1 >conftest.err
5700 cat conftest.err >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } >/dev/null; then
5703 if test -s conftest.err; then
5704 ac_cpp_err=$ac_c_preproc_warn_flag
5711 if test -z "$ac_cpp_err"; then
5712 ac_header_preproc=yes
5714 echo "$as_me: failed program was:" >&5
5715 cat conftest.$ac_ext >&5
5716 ac_header_preproc=no
5718 rm -f conftest.err conftest.$ac_ext
5719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5720 echo "${ECHO_T}$ac_header_preproc" >&6
5722 # So? What about this header?
5723 case $ac_header_compiler:$ac_header_preproc in
5725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5733 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5737 echo "$as_me:$LINENO: checking for $ac_header" >&5
5738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 eval "$as_ac_Header=$ac_header_preproc"
5744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5749 cat >>confdefs.h <<_ACEOF
5750 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5757 echo "$as_me:$LINENO: checking for library containing login" >&5
5758 echo $ECHO_N "checking for library containing login... $ECHO_C" >&6
5759 if test "${ac_cv_search_login+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5762 ac_func_search_save_LIBS=$LIBS
5763 ac_cv_search_login=no
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_search_login="none required"
5803 echo "$as_me: failed program was:" >&5
5804 cat conftest.$ac_ext >&5
5806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5807 if test "$ac_cv_search_login" = no; then
5808 for ac_lib in util bsd; do
5809 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5810 cat >conftest.$ac_ext <<_ACEOF
5811 #line $LINENO "configure"
5812 #include "confdefs.h"
5814 /* Override any gcc2 internal prototype to avoid an error. */
5818 /* We use char because int might match the return type of a gcc2
5819 builtin and then its argument prototype would still apply. */
5821 #ifdef F77_DUMMY_MAIN
5825 int F77_DUMMY_MAIN() { return 1; }
5835 rm -f conftest.$ac_objext conftest$ac_exeext
5836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5837 (eval $ac_link) 2>&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } &&
5841 { ac_try='test -s conftest$ac_exeext'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 ac_cv_search_login="-l$ac_lib"
5850 echo "$as_me: failed program was:" >&5
5851 cat conftest.$ac_ext >&5
5853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5856 LIBS=$ac_func_search_save_LIBS
5858 echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
5859 echo "${ECHO_T}$ac_cv_search_login" >&6
5860 if test "$ac_cv_search_login" != no; then
5861 test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS"
5862 cat >>confdefs.h <<\_ACEOF
5863 @%:@define HAVE_LOGIN 1
5871 for ac_func in logout updwtmp logwtmp
5873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5874 echo "$as_me:$LINENO: checking for $ac_func" >&5
5875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5876 if eval "test \"\${$as_ac_var+set}\" = set"; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 cat >conftest.$ac_ext <<_ACEOF
5880 #line $LINENO "configure"
5881 #include "confdefs.h"
5882 /* System header to define __stub macros and hopefully few prototypes,
5883 which can conflict with char $ac_func (); below. */
5885 /* Override any gcc2 internal prototype to avoid an error. */
5889 /* We use char because int might match the return type of a gcc2
5890 builtin and then its argument prototype would still apply. */
5894 #ifdef F77_DUMMY_MAIN
5898 int F77_DUMMY_MAIN() { return 1; }
5903 /* The GNU C library defines this for functions which it implements
5904 to always fail with ENOSYS. Some functions are actually named
5905 something starting with __ and the normal name is an alias. */
5906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5916 rm -f conftest.$ac_objext conftest$ac_exeext
5917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5918 (eval $ac_link) 2>&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } &&
5922 { ac_try='test -s conftest$ac_exeext'
5923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); }; }; then
5928 eval "$as_ac_var=yes"
5930 echo "$as_me: failed program was:" >&5
5931 cat conftest.$ac_ext >&5
5932 eval "$as_ac_var=no"
5934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5937 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5938 if test `eval echo '${'$as_ac_var'}'` = yes; then
5939 cat >>confdefs.h <<_ACEOF
5940 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5948 for ac_func in strftime
5950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5951 echo "$as_me:$LINENO: checking for $ac_func" >&5
5952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5953 if eval "test \"\${$as_ac_var+set}\" = set"; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 cat >conftest.$ac_ext <<_ACEOF
5957 #line $LINENO "configure"
5958 #include "confdefs.h"
5959 /* System header to define __stub macros and hopefully few prototypes,
5960 which can conflict with char $ac_func (); below. */
5962 /* Override any gcc2 internal prototype to avoid an error. */
5966 /* We use char because int might match the return type of a gcc2
5967 builtin and then its argument prototype would still apply. */
5971 #ifdef F77_DUMMY_MAIN
5975 int F77_DUMMY_MAIN() { return 1; }
5980 /* The GNU C library defines this for functions which it implements
5981 to always fail with ENOSYS. Some functions are actually named
5982 something starting with __ and the normal name is an alias. */
5983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5993 rm -f conftest.$ac_objext conftest$ac_exeext
5994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5995 (eval $ac_link) 2>&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 { ac_try='test -s conftest$ac_exeext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 eval "$as_ac_var=yes"
6007 echo "$as_me: failed program was:" >&5
6008 cat conftest.$ac_ext >&5
6009 eval "$as_ac_var=no"
6011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6015 if test `eval echo '${'$as_ac_var'}'` = yes; then
6016 cat >>confdefs.h <<_ACEOF
6017 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6021 # strftime is in -lintl on SCO UNIX.
6022 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
6023 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
6024 if test "${ac_cv_lib_intl_strftime+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 ac_check_lib_save_LIBS=$LIBS
6029 cat >conftest.$ac_ext <<_ACEOF
6030 #line $LINENO "configure"
6031 #include "confdefs.h"
6033 /* Override any gcc2 internal prototype to avoid an error. */
6037 /* We use char because int might match the return type of a gcc2
6038 builtin and then its argument prototype would still apply. */
6040 #ifdef F77_DUMMY_MAIN
6044 int F77_DUMMY_MAIN() { return 1; }
6054 rm -f conftest.$ac_objext conftest$ac_exeext
6055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6056 (eval $ac_link) 2>&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); } &&
6060 { ac_try='test -s conftest$ac_exeext'
6061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); }; }; then
6066 ac_cv_lib_intl_strftime=yes
6068 echo "$as_me: failed program was:" >&5
6069 cat conftest.$ac_ext >&5
6070 ac_cv_lib_intl_strftime=no
6072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6073 LIBS=$ac_check_lib_save_LIBS
6075 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
6076 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
6077 if test $ac_cv_lib_intl_strftime = yes; then
6078 cat >>confdefs.h <<\_ACEOF
6079 @%:@define HAVE_STRFTIME 1
6089 # Check for ALTDIRFUNC glob() extension
6090 echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
6091 echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6
6092 cat >conftest.$ac_ext <<_ACEOF
6093 #line $LINENO "configure"
6094 #include "confdefs.h"
6097 #ifdef GLOB_ALTDIRFUNC
6102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6103 egrep "FOUNDIT" >/dev/null 2>&1; then
6105 cat >>confdefs.h <<\_ACEOF
6106 @%:@define GLOB_HAS_ALTDIRFUNC 1
6109 echo "$as_me:$LINENO: result: yes" >&5
6110 echo "${ECHO_T}yes" >&6
6114 echo "$as_me:$LINENO: result: no" >&5
6115 echo "${ECHO_T}no" >&6
6122 # Check for g.gl_matchc glob() extension
6123 echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
6124 echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6
6125 cat >conftest.$ac_ext <<_ACEOF
6126 #line $LINENO "configure"
6127 #include "confdefs.h"
6130 int main(void){glob_t g; g.gl_matchc = 1;}
6133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6134 egrep "FOUNDIT" >/dev/null 2>&1; then
6136 cat >>confdefs.h <<\_ACEOF
6137 @%:@define GLOB_HAS_GL_MATCHC 1
6140 echo "$as_me:$LINENO: result: yes" >&5
6141 echo "${ECHO_T}yes" >&6
6145 echo "$as_me:$LINENO: result: no" >&5
6146 echo "${ECHO_T}no" >&6
6153 echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
6154 echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6
6155 if test "$cross_compiling" = yes; then
6156 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6157 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6158 { (exit 1); exit 1; }; }
6160 cat >conftest.$ac_ext <<_ACEOF
6161 #line $LINENO "configure"
6162 #include "confdefs.h"
6164 #include <sys/types.h>
6166 int main(void){struct dirent d;return(sizeof(d.d_name)<=sizeof(char));}
6169 rm -f conftest$ac_exeext
6170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6171 (eval $ac_link) 2>&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }; }; then
6180 echo "$as_me:$LINENO: result: yes" >&5
6181 echo "${ECHO_T}yes" >&6
6183 echo "$as_me: program exited with status $ac_status" >&5
6184 echo "$as_me: failed program was:" >&5
6185 cat conftest.$ac_ext >&5
6188 echo "$as_me:$LINENO: result: no" >&5
6189 echo "${ECHO_T}no" >&6
6190 cat >>confdefs.h <<\_ACEOF
6191 @%:@define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
6197 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6200 # Check whether user wants S/Key support
6203 # Check whether --with-skey or --without-skey was given.
6204 if test "${with_skey+set}" = set; then
6205 withval="$with_skey"
6207 if test "x$withval" != "xno" ; then
6209 if test "x$withval" != "xyes" ; then
6210 CPPFLAGS="$CPPFLAGS -I${withval}/include"
6211 LDFLAGS="$LDFLAGS -L${withval}/lib"
6214 cat >>confdefs.h <<\_ACEOF
6221 echo "$as_me:$LINENO: checking for s/key support" >&5
6222 echo $ECHO_N "checking for s/key support... $ECHO_C" >&6
6223 if test "$cross_compiling" = yes; then
6224 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6225 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6226 { (exit 1); exit 1; }; }
6228 cat >conftest.$ac_ext <<_ACEOF
6229 #line $LINENO "configure"
6230 #include "confdefs.h"
6234 int main() { char *ff = skey_keyinfo(""); ff=""; return 0; }
6237 rm -f conftest$ac_exeext
6238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6239 (eval $ac_link) 2>&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; }; then
6248 echo "$as_me:$LINENO: result: yes" >&5
6249 echo "${ECHO_T}yes" >&6
6251 echo "$as_me: program exited with status $ac_status" >&5
6252 echo "$as_me: failed program was:" >&5
6253 cat conftest.$ac_ext >&5
6256 echo "$as_me:$LINENO: result: no" >&5
6257 echo "${ECHO_T}no" >&6
6258 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
6259 echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
6260 { (exit 1); exit 1; }; }
6263 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6270 # Check whether user wants TCP wrappers support
6273 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6274 if test "${with_tcp_wrappers+set}" = set; then
6275 withval="$with_tcp_wrappers"
6277 if test "x$withval" != "xno" ; then
6279 saved_LDFLAGS="$LDFLAGS"
6280 saved_CPPFLAGS="$CPPFLAGS"
6281 if test -n "${withval}" -a "${withval}" != "yes"; then
6282 if test -d "${withval}/lib"; then
6283 if test -n "${need_dash_r}"; then
6284 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
6286 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
6289 if test -n "${need_dash_r}"; then
6290 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
6292 LDFLAGS="-L${withval} ${LDFLAGS}"
6295 if test -d "${withval}/include"; then
6296 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
6298 CPPFLAGS="-I${withval} ${CPPFLAGS}"
6302 LIBS="$LIBWRAP $LIBS"
6303 echo "$as_me:$LINENO: checking for libwrap" >&5
6304 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6305 cat >conftest.$ac_ext <<_ACEOF
6306 #line $LINENO "configure"
6307 #include "confdefs.h"
6310 int deny_severity = 0, allow_severity = 0;
6312 #ifdef F77_DUMMY_MAIN
6316 int F77_DUMMY_MAIN() { return 1; }
6326 rm -f conftest.$ac_objext conftest$ac_exeext
6327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6328 (eval $ac_link) 2>&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); } &&
6332 { ac_try='test -s conftest$ac_exeext'
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; }; then
6339 echo "$as_me:$LINENO: result: yes" >&5
6340 echo "${ECHO_T}yes" >&6
6341 cat >>confdefs.h <<\_ACEOF
6342 @%:@define LIBWRAP 1
6349 echo "$as_me: failed program was:" >&5
6350 cat conftest.$ac_ext >&5
6352 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6353 echo "$as_me: error: *** libwrap missing" >&2;}
6354 { (exit 1); exit 1; }; }
6358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6432 for ac_func in arc4random b64_ntop bcopy bindresvport_sa \
6433 clock fchmod fchown freeaddrinfo futimes gai_strerror \
6434 getaddrinfo getcwd getgrouplist getnameinfo getopt \
6435 getrlimit getrusage getttyent glob inet_aton inet_ntoa \
6436 inet_ntop innetgr login_getcapbool md5_crypt memmove \
6437 mkdtemp mmap ngetaddrinfo openpty ogetaddrinfo readpassphrase \
6438 realpath recvmsg rresvport_af sendmsg setdtablesize setegid \
6439 setenv seteuid setgroups setlogin setproctitle setresgid setreuid \
6440 setrlimit setsid setpcred setvbuf sigaction sigvec snprintf \
6441 socketpair strerror strlcat strlcpy strmode strsep sysconf tcgetpgrp \
6442 truncate utimes vhangup vsnprintf waitpid __b64_ntop _getpty
6444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6445 echo "$as_me:$LINENO: checking for $ac_func" >&5
6446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6447 if eval "test \"\${$as_ac_var+set}\" = set"; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 cat >conftest.$ac_ext <<_ACEOF
6451 #line $LINENO "configure"
6452 #include "confdefs.h"
6453 /* System header to define __stub macros and hopefully few prototypes,
6454 which can conflict with char $ac_func (); below. */
6456 /* Override any gcc2 internal prototype to avoid an error. */
6460 /* We use char because int might match the return type of a gcc2
6461 builtin and then its argument prototype would still apply. */
6465 #ifdef F77_DUMMY_MAIN
6469 int F77_DUMMY_MAIN() { return 1; }
6474 /* The GNU C library defines this for functions which it implements
6475 to always fail with ENOSYS. Some functions are actually named
6476 something starting with __ and the normal name is an alias. */
6477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6487 rm -f conftest.$ac_objext conftest$ac_exeext
6488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6489 (eval $ac_link) 2>&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } &&
6493 { ac_try='test -s conftest$ac_exeext'
6494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; }; then
6499 eval "$as_ac_var=yes"
6501 echo "$as_me: failed program was:" >&5
6502 cat conftest.$ac_ext >&5
6503 eval "$as_ac_var=no"
6505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6508 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6509 if test `eval echo '${'$as_ac_var'}'` = yes; then
6510 cat >>confdefs.h <<_ACEOF
6511 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6519 for ac_func in dirname
6521 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6522 echo "$as_me:$LINENO: checking for $ac_func" >&5
6523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6524 if eval "test \"\${$as_ac_var+set}\" = set"; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6527 cat >conftest.$ac_ext <<_ACEOF
6528 #line $LINENO "configure"
6529 #include "confdefs.h"
6530 /* System header to define __stub macros and hopefully few prototypes,
6531 which can conflict with char $ac_func (); below. */
6533 /* Override any gcc2 internal prototype to avoid an error. */
6537 /* We use char because int might match the return type of a gcc2
6538 builtin and then its argument prototype would still apply. */
6542 #ifdef F77_DUMMY_MAIN
6546 int F77_DUMMY_MAIN() { return 1; }
6551 /* The GNU C library defines this for functions which it implements
6552 to always fail with ENOSYS. Some functions are actually named
6553 something starting with __ and the normal name is an alias. */
6554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6564 rm -f conftest.$ac_objext conftest$ac_exeext
6565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6566 (eval $ac_link) 2>&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } &&
6570 { ac_try='test -s conftest$ac_exeext'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; }; then
6576 eval "$as_ac_var=yes"
6578 echo "$as_me: failed program was:" >&5
6579 cat conftest.$ac_ext >&5
6580 eval "$as_ac_var=no"
6582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6585 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6586 if test `eval echo '${'$as_ac_var'}'` = yes; then
6587 cat >>confdefs.h <<_ACEOF
6588 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6591 for ac_header in libgen.h
6593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6595 echo "$as_me:$LINENO: checking for $ac_header" >&5
6596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6603 # Is the header compilable?
6604 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6606 cat >conftest.$ac_ext <<_ACEOF
6607 #line $LINENO "configure"
6608 #include "confdefs.h"
6609 $ac_includes_default
6610 @%:@include <$ac_header>
6612 rm -f conftest.$ac_objext
6613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6614 (eval $ac_compile) 2>&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } &&
6618 { ac_try='test -s conftest.$ac_objext'
6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; }; then
6624 ac_header_compiler=yes
6626 echo "$as_me: failed program was:" >&5
6627 cat conftest.$ac_ext >&5
6628 ac_header_compiler=no
6630 rm -f conftest.$ac_objext conftest.$ac_ext
6631 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6632 echo "${ECHO_T}$ac_header_compiler" >&6
6634 # Is the header present?
6635 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6636 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6637 cat >conftest.$ac_ext <<_ACEOF
6638 #line $LINENO "configure"
6639 #include "confdefs.h"
6640 @%:@include <$ac_header>
6642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6645 egrep -v '^ *\+' conftest.er1 >conftest.err
6647 cat conftest.err >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } >/dev/null; then
6650 if test -s conftest.err; then
6651 ac_cpp_err=$ac_c_preproc_warn_flag
6658 if test -z "$ac_cpp_err"; then
6659 ac_header_preproc=yes
6661 echo "$as_me: failed program was:" >&5
6662 cat conftest.$ac_ext >&5
6663 ac_header_preproc=no
6665 rm -f conftest.err conftest.$ac_ext
6666 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6667 echo "${ECHO_T}$ac_header_preproc" >&6
6669 # So? What about this header?
6670 case $ac_header_compiler:$ac_header_preproc in
6672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6680 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6684 echo "$as_me:$LINENO: checking for $ac_header" >&5
6685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6689 eval "$as_ac_Header=$ac_header_preproc"
6691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6696 cat >>confdefs.h <<_ACEOF
6697 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6706 echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
6707 echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6
6708 if test "${ac_cv_lib_gen_dirname+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6711 ac_check_lib_save_LIBS=$LIBS
6713 cat >conftest.$ac_ext <<_ACEOF
6714 #line $LINENO "configure"
6715 #include "confdefs.h"
6717 /* Override any gcc2 internal prototype to avoid an error. */
6721 /* We use char because int might match the return type of a gcc2
6722 builtin and then its argument prototype would still apply. */
6724 #ifdef F77_DUMMY_MAIN
6728 int F77_DUMMY_MAIN() { return 1; }
6738 rm -f conftest.$ac_objext conftest$ac_exeext
6739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6740 (eval $ac_link) 2>&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } &&
6744 { ac_try='test -s conftest$ac_exeext'
6745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); }; }; then
6750 ac_cv_lib_gen_dirname=yes
6752 echo "$as_me: failed program was:" >&5
6753 cat conftest.$ac_ext >&5
6754 ac_cv_lib_gen_dirname=no
6756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6757 LIBS=$ac_check_lib_save_LIBS
6759 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
6760 echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6
6761 if test $ac_cv_lib_gen_dirname = yes; then
6763 echo "$as_me:$LINENO: checking for broken dirname" >&5
6764 echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6
6765 if test "${ac_cv_have_broken_dirname+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 if test "$cross_compiling" = yes; then
6772 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6773 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6774 { (exit 1); exit 1; }; }
6776 cat >conftest.$ac_ext <<_ACEOF
6777 #line $LINENO "configure"
6778 #include "confdefs.h"
6783 int main(int argc, char **argv) {
6786 strncpy(buf,"/etc", 32);
6788 if (!s || strncmp(s, "/", 32) != 0) {
6796 rm -f conftest$ac_exeext
6797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6798 (eval $ac_link) 2>&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); }; }; then
6807 ac_cv_have_broken_dirname="no"
6809 echo "$as_me: program exited with status $ac_status" >&5
6810 echo "$as_me: failed program was:" >&5
6811 cat conftest.$ac_ext >&5
6813 ac_cv_have_broken_dirname="yes"
6816 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6821 echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
6822 echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6
6823 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
6825 cat >>confdefs.h <<\_ACEOF
6826 @%:@define HAVE_DIRNAME 1
6830 for ac_header in libgen.h
6832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6834 echo "$as_me:$LINENO: checking for $ac_header" >&5
6835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6842 # Is the header compilable?
6843 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6845 cat >conftest.$ac_ext <<_ACEOF
6846 #line $LINENO "configure"
6847 #include "confdefs.h"
6848 $ac_includes_default
6849 @%:@include <$ac_header>
6851 rm -f conftest.$ac_objext
6852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6853 (eval $ac_compile) 2>&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } &&
6857 { ac_try='test -s conftest.$ac_objext'
6858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); }; }; then
6863 ac_header_compiler=yes
6865 echo "$as_me: failed program was:" >&5
6866 cat conftest.$ac_ext >&5
6867 ac_header_compiler=no
6869 rm -f conftest.$ac_objext conftest.$ac_ext
6870 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6871 echo "${ECHO_T}$ac_header_compiler" >&6
6873 # Is the header present?
6874 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6876 cat >conftest.$ac_ext <<_ACEOF
6877 #line $LINENO "configure"
6878 #include "confdefs.h"
6879 @%:@include <$ac_header>
6881 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6882 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6884 egrep -v '^ *\+' conftest.er1 >conftest.err
6886 cat conftest.err >&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } >/dev/null; then
6889 if test -s conftest.err; then
6890 ac_cpp_err=$ac_c_preproc_warn_flag
6897 if test -z "$ac_cpp_err"; then
6898 ac_header_preproc=yes
6900 echo "$as_me: failed program was:" >&5
6901 cat conftest.$ac_ext >&5
6902 ac_header_preproc=no
6904 rm -f conftest.err conftest.$ac_ext
6905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6906 echo "${ECHO_T}$ac_header_preproc" >&6
6908 # So? What about this header?
6909 case $ac_header_compiler:$ac_header_preproc in
6911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6923 echo "$as_me:$LINENO: checking for $ac_header" >&5
6924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 eval "$as_ac_Header=$ac_header_preproc"
6930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6935 cat >>confdefs.h <<_ACEOF
6936 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6954 for ac_func in gettimeofday time
6956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6957 echo "$as_me:$LINENO: checking for $ac_func" >&5
6958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6959 if eval "test \"\${$as_ac_var+set}\" = set"; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 cat >conftest.$ac_ext <<_ACEOF
6963 #line $LINENO "configure"
6964 #include "confdefs.h"
6965 /* System header to define __stub macros and hopefully few prototypes,
6966 which can conflict with char $ac_func (); below. */
6968 /* Override any gcc2 internal prototype to avoid an error. */
6972 /* We use char because int might match the return type of a gcc2
6973 builtin and then its argument prototype would still apply. */
6977 #ifdef F77_DUMMY_MAIN
6981 int F77_DUMMY_MAIN() { return 1; }
6986 /* The GNU C library defines this for functions which it implements
6987 to always fail with ENOSYS. Some functions are actually named
6988 something starting with __ and the normal name is an alias. */
6989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6999 rm -f conftest.$ac_objext conftest$ac_exeext
7000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7001 (eval $ac_link) 2>&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); } &&
7005 { ac_try='test -s conftest$ac_exeext'
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; }; then
7011 eval "$as_ac_var=yes"
7013 echo "$as_me: failed program was:" >&5
7014 cat conftest.$ac_ext >&5
7015 eval "$as_ac_var=no"
7017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7021 if test `eval echo '${'$as_ac_var'}'` = yes; then
7022 cat >>confdefs.h <<_ACEOF
7023 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7035 for ac_func in endutent getutent getutid getutline pututline setutent
7037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7038 echo "$as_me:$LINENO: checking for $ac_func" >&5
7039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7040 if eval "test \"\${$as_ac_var+set}\" = set"; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 cat >conftest.$ac_ext <<_ACEOF
7044 #line $LINENO "configure"
7045 #include "confdefs.h"
7046 /* System header to define __stub macros and hopefully few prototypes,
7047 which can conflict with char $ac_func (); below. */
7049 /* Override any gcc2 internal prototype to avoid an error. */
7053 /* We use char because int might match the return type of a gcc2
7054 builtin and then its argument prototype would still apply. */
7058 #ifdef F77_DUMMY_MAIN
7062 int F77_DUMMY_MAIN() { return 1; }
7067 /* The GNU C library defines this for functions which it implements
7068 to always fail with ENOSYS. Some functions are actually named
7069 something starting with __ and the normal name is an alias. */
7070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7080 rm -f conftest.$ac_objext conftest$ac_exeext
7081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7082 (eval $ac_link) 2>&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } &&
7086 { ac_try='test -s conftest$ac_exeext'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; }; then
7092 eval "$as_ac_var=yes"
7094 echo "$as_me: failed program was:" >&5
7095 cat conftest.$ac_ext >&5
7096 eval "$as_ac_var=no"
7098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7101 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7102 if test `eval echo '${'$as_ac_var'}'` = yes; then
7103 cat >>confdefs.h <<_ACEOF
7104 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7111 for ac_func in utmpname
7113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7114 echo "$as_me:$LINENO: checking for $ac_func" >&5
7115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7116 if eval "test \"\${$as_ac_var+set}\" = set"; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7119 cat >conftest.$ac_ext <<_ACEOF
7120 #line $LINENO "configure"
7121 #include "confdefs.h"
7122 /* System header to define __stub macros and hopefully few prototypes,
7123 which can conflict with char $ac_func (); below. */
7125 /* Override any gcc2 internal prototype to avoid an error. */
7129 /* We use char because int might match the return type of a gcc2
7130 builtin and then its argument prototype would still apply. */
7134 #ifdef F77_DUMMY_MAIN
7138 int F77_DUMMY_MAIN() { return 1; }
7143 /* The GNU C library defines this for functions which it implements
7144 to always fail with ENOSYS. Some functions are actually named
7145 something starting with __ and the normal name is an alias. */
7146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7156 rm -f conftest.$ac_objext conftest$ac_exeext
7157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7158 (eval $ac_link) 2>&5
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); } &&
7162 { ac_try='test -s conftest$ac_exeext'
7163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); }; }; then
7168 eval "$as_ac_var=yes"
7170 echo "$as_me: failed program was:" >&5
7171 cat conftest.$ac_ext >&5
7172 eval "$as_ac_var=no"
7174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7178 if test `eval echo '${'$as_ac_var'}'` = yes; then
7179 cat >>confdefs.h <<_ACEOF
7180 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7191 for ac_func in endutxent getutxent getutxid getutxline pututxline
7193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7194 echo "$as_me:$LINENO: checking for $ac_func" >&5
7195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7196 if eval "test \"\${$as_ac_var+set}\" = set"; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7199 cat >conftest.$ac_ext <<_ACEOF
7200 #line $LINENO "configure"
7201 #include "confdefs.h"
7202 /* System header to define __stub macros and hopefully few prototypes,
7203 which can conflict with char $ac_func (); below. */
7205 /* Override any gcc2 internal prototype to avoid an error. */
7209 /* We use char because int might match the return type of a gcc2
7210 builtin and then its argument prototype would still apply. */
7214 #ifdef F77_DUMMY_MAIN
7218 int F77_DUMMY_MAIN() { return 1; }
7223 /* The GNU C library defines this for functions which it implements
7224 to always fail with ENOSYS. Some functions are actually named
7225 something starting with __ and the normal name is an alias. */
7226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7236 rm -f conftest.$ac_objext conftest$ac_exeext
7237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7238 (eval $ac_link) 2>&5
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); } &&
7242 { ac_try='test -s conftest$ac_exeext'
7243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }; }; then
7248 eval "$as_ac_var=yes"
7250 echo "$as_me: failed program was:" >&5
7251 cat conftest.$ac_ext >&5
7252 eval "$as_ac_var=no"
7254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7258 if test `eval echo '${'$as_ac_var'}'` = yes; then
7259 cat >>confdefs.h <<_ACEOF
7260 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7268 for ac_func in setutxent utmpxname
7270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7271 echo "$as_me:$LINENO: checking for $ac_func" >&5
7272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7273 if eval "test \"\${$as_ac_var+set}\" = set"; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7276 cat >conftest.$ac_ext <<_ACEOF
7277 #line $LINENO "configure"
7278 #include "confdefs.h"
7279 /* System header to define __stub macros and hopefully few prototypes,
7280 which can conflict with char $ac_func (); below. */
7282 /* Override any gcc2 internal prototype to avoid an error. */
7286 /* We use char because int might match the return type of a gcc2
7287 builtin and then its argument prototype would still apply. */
7291 #ifdef F77_DUMMY_MAIN
7295 int F77_DUMMY_MAIN() { return 1; }
7300 /* The GNU C library defines this for functions which it implements
7301 to always fail with ENOSYS. Some functions are actually named
7302 something starting with __ and the normal name is an alias. */
7303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7313 rm -f conftest.$ac_objext conftest$ac_exeext
7314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7315 (eval $ac_link) 2>&5
7317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); } &&
7319 { ac_try='test -s conftest$ac_exeext'
7320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); }; }; then
7325 eval "$as_ac_var=yes"
7327 echo "$as_me: failed program was:" >&5
7328 cat conftest.$ac_ext >&5
7329 eval "$as_ac_var=no"
7331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7334 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7335 if test `eval echo '${'$as_ac_var'}'` = yes; then
7336 cat >>confdefs.h <<_ACEOF
7337 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7344 echo "$as_me:$LINENO: checking for daemon" >&5
7345 echo $ECHO_N "checking for daemon... $ECHO_C" >&6
7346 if test "${ac_cv_func_daemon+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7349 cat >conftest.$ac_ext <<_ACEOF
7350 #line $LINENO "configure"
7351 #include "confdefs.h"
7352 /* System header to define __stub macros and hopefully few prototypes,
7353 which can conflict with char daemon (); below. */
7355 /* Override any gcc2 internal prototype to avoid an error. */
7359 /* We use char because int might match the return type of a gcc2
7360 builtin and then its argument prototype would still apply. */
7364 #ifdef F77_DUMMY_MAIN
7368 int F77_DUMMY_MAIN() { return 1; }
7373 /* The GNU C library defines this for functions which it implements
7374 to always fail with ENOSYS. Some functions are actually named
7375 something starting with __ and the normal name is an alias. */
7376 #if defined (__stub_daemon) || defined (__stub___daemon)
7386 rm -f conftest.$ac_objext conftest$ac_exeext
7387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7388 (eval $ac_link) 2>&5
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); } &&
7392 { ac_try='test -s conftest$ac_exeext'
7393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); }; }; then
7398 ac_cv_func_daemon=yes
7400 echo "$as_me: failed program was:" >&5
7401 cat conftest.$ac_ext >&5
7402 ac_cv_func_daemon=no
7404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7406 echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
7407 echo "${ECHO_T}$ac_cv_func_daemon" >&6
7408 if test $ac_cv_func_daemon = yes; then
7409 cat >>confdefs.h <<\_ACEOF
7410 @%:@define HAVE_DAEMON 1
7414 echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
7415 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
7416 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 ac_check_lib_save_LIBS=$LIBS
7421 cat >conftest.$ac_ext <<_ACEOF
7422 #line $LINENO "configure"
7423 #include "confdefs.h"
7425 /* Override any gcc2 internal prototype to avoid an error. */
7429 /* We use char because int might match the return type of a gcc2
7430 builtin and then its argument prototype would still apply. */
7432 #ifdef F77_DUMMY_MAIN
7436 int F77_DUMMY_MAIN() { return 1; }
7446 rm -f conftest.$ac_objext conftest$ac_exeext
7447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7448 (eval $ac_link) 2>&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } &&
7452 { ac_try='test -s conftest$ac_exeext'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; }; then
7458 ac_cv_lib_bsd_daemon=yes
7460 echo "$as_me: failed program was:" >&5
7461 cat conftest.$ac_ext >&5
7462 ac_cv_lib_bsd_daemon=no
7464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7465 LIBS=$ac_check_lib_save_LIBS
7467 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
7468 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
7469 if test $ac_cv_lib_bsd_daemon = yes; then
7470 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
7471 @%:@define HAVE_DAEMON 1
7480 echo "$as_me:$LINENO: checking for getpagesize" >&5
7481 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
7482 if test "${ac_cv_func_getpagesize+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7485 cat >conftest.$ac_ext <<_ACEOF
7486 #line $LINENO "configure"
7487 #include "confdefs.h"
7488 /* System header to define __stub macros and hopefully few prototypes,
7489 which can conflict with char getpagesize (); below. */
7491 /* Override any gcc2 internal prototype to avoid an error. */
7495 /* We use char because int might match the return type of a gcc2
7496 builtin and then its argument prototype would still apply. */
7497 char getpagesize ();
7500 #ifdef F77_DUMMY_MAIN
7504 int F77_DUMMY_MAIN() { return 1; }
7509 /* The GNU C library defines this for functions which it implements
7510 to always fail with ENOSYS. Some functions are actually named
7511 something starting with __ and the normal name is an alias. */
7512 #if defined (__stub_getpagesize) || defined (__stub___getpagesize)
7522 rm -f conftest.$ac_objext conftest$ac_exeext
7523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7524 (eval $ac_link) 2>&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } &&
7528 { ac_try='test -s conftest$ac_exeext'
7529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); }; }; then
7534 ac_cv_func_getpagesize=yes
7536 echo "$as_me: failed program was:" >&5
7537 cat conftest.$ac_ext >&5
7538 ac_cv_func_getpagesize=no
7540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7542 echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
7543 echo "${ECHO_T}$ac_cv_func_getpagesize" >&6
7544 if test $ac_cv_func_getpagesize = yes; then
7545 cat >>confdefs.h <<\_ACEOF
7546 @%:@define HAVE_GETPAGESIZE 1
7550 echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
7551 echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6
7552 if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 ac_check_lib_save_LIBS=$LIBS
7557 cat >conftest.$ac_ext <<_ACEOF
7558 #line $LINENO "configure"
7559 #include "confdefs.h"
7561 /* Override any gcc2 internal prototype to avoid an error. */
7565 /* We use char because int might match the return type of a gcc2
7566 builtin and then its argument prototype would still apply. */
7567 char getpagesize ();
7568 #ifdef F77_DUMMY_MAIN
7572 int F77_DUMMY_MAIN() { return 1; }
7582 rm -f conftest.$ac_objext conftest$ac_exeext
7583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7584 (eval $ac_link) 2>&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } &&
7588 { ac_try='test -s conftest$ac_exeext'
7589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); }; }; then
7594 ac_cv_lib_ucb_getpagesize=yes
7596 echo "$as_me: failed program was:" >&5
7597 cat conftest.$ac_ext >&5
7598 ac_cv_lib_ucb_getpagesize=no
7600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7601 LIBS=$ac_check_lib_save_LIBS
7603 echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
7604 echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6
7605 if test $ac_cv_lib_ucb_getpagesize = yes; then
7606 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
7607 @%:@define HAVE_GETPAGESIZE 1
7616 # Check for broken snprintf
7617 if test "x$ac_cv_func_snprintf" = "xyes" ; then
7618 echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
7619 echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6
7620 if test "$cross_compiling" = yes; then
7621 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7622 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7623 { (exit 1); exit 1; }; }
7625 cat >conftest.$ac_ext <<_ACEOF
7626 #line $LINENO "configure"
7627 #include "confdefs.h"
7630 int main(void){char b[5];snprintf(b,5,"123456789");return(b[4]!='\0');}
7633 rm -f conftest$ac_exeext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7635 (eval $ac_link) 2>&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); }; }; then
7644 echo "$as_me:$LINENO: result: yes" >&5
7645 echo "${ECHO_T}yes" >&6
7647 echo "$as_me: program exited with status $ac_status" >&5
7648 echo "$as_me: failed program was:" >&5
7649 cat conftest.$ac_ext >&5
7652 echo "$as_me:$LINENO: result: no" >&5
7653 echo "${ECHO_T}no" >&6
7654 cat >>confdefs.h <<\_ACEOF
7655 @%:@define BROKEN_SNPRINTF 1
7658 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
7659 echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
7663 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7667 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
7668 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
7669 if test "${ac_cv_func_getpgrp_void+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7672 # Use it with a single arg.
7673 cat >conftest.$ac_ext <<_ACEOF
7674 #line $LINENO "configure"
7675 #include "confdefs.h"
7676 $ac_includes_default
7677 #ifdef F77_DUMMY_MAIN
7681 int F77_DUMMY_MAIN() { return 1; }
7691 rm -f conftest.$ac_objext
7692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7693 (eval $ac_compile) 2>&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); } &&
7697 { ac_try='test -s conftest.$ac_objext'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; }; then
7703 ac_cv_func_getpgrp_void=no
7705 echo "$as_me: failed program was:" >&5
7706 cat conftest.$ac_ext >&5
7707 ac_cv_func_getpgrp_void=yes
7709 rm -f conftest.$ac_objext conftest.$ac_ext
7712 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
7713 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
7714 if test $ac_cv_func_getpgrp_void = yes; then
7716 cat >>confdefs.h <<\_ACEOF
7717 @%:@define GETPGRP_VOID 1
7723 # Check for PAM libs
7726 # Check whether --with-pam or --without-pam was given.
7727 if test "${with_pam+set}" = set; then
7730 if test "x$withval" != "xno" ; then
7731 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" ; then
7732 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
7733 echo "$as_me: error: PAM headers not found" >&2;}
7734 { (exit 1); exit 1; }; }
7738 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7739 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7740 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7743 ac_check_lib_save_LIBS=$LIBS
7745 cat >conftest.$ac_ext <<_ACEOF
7746 #line $LINENO "configure"
7747 #include "confdefs.h"
7749 /* Override any gcc2 internal prototype to avoid an error. */
7753 /* We use char because int might match the return type of a gcc2
7754 builtin and then its argument prototype would still apply. */
7756 #ifdef F77_DUMMY_MAIN
7760 int F77_DUMMY_MAIN() { return 1; }
7770 rm -f conftest.$ac_objext conftest$ac_exeext
7771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7772 (eval $ac_link) 2>&5
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); } &&
7776 { ac_try='test -s conftest$ac_exeext'
7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; }; then
7782 ac_cv_lib_dl_dlopen=yes
7784 echo "$as_me: failed program was:" >&5
7785 cat conftest.$ac_ext >&5
7786 ac_cv_lib_dl_dlopen=no
7788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7789 LIBS=$ac_check_lib_save_LIBS
7791 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7792 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7793 if test $ac_cv_lib_dl_dlopen = yes; then
7794 cat >>confdefs.h <<_ACEOF
7795 @%:@define HAVE_LIBDL 1
7803 echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
7804 echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6
7805 if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 ac_check_lib_save_LIBS=$LIBS
7810 cat >conftest.$ac_ext <<_ACEOF
7811 #line $LINENO "configure"
7812 #include "confdefs.h"
7814 /* Override any gcc2 internal prototype to avoid an error. */
7818 /* We use char because int might match the return type of a gcc2
7819 builtin and then its argument prototype would still apply. */
7820 char pam_set_item ();
7821 #ifdef F77_DUMMY_MAIN
7825 int F77_DUMMY_MAIN() { return 1; }
7835 rm -f conftest.$ac_objext conftest$ac_exeext
7836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7837 (eval $ac_link) 2>&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); } &&
7841 { ac_try='test -s conftest$ac_exeext'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; }; then
7847 ac_cv_lib_pam_pam_set_item=yes
7849 echo "$as_me: failed program was:" >&5
7850 cat conftest.$ac_ext >&5
7851 ac_cv_lib_pam_pam_set_item=no
7853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7854 LIBS=$ac_check_lib_save_LIBS
7856 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
7857 echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6
7858 if test $ac_cv_lib_pam_pam_set_item = yes; then
7859 cat >>confdefs.h <<_ACEOF
7860 @%:@define HAVE_LIBPAM 1
7866 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
7867 echo "$as_me: error: *** libpam missing" >&2;}
7868 { (exit 1); exit 1; }; }
7872 for ac_func in pam_getenvlist
7874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7875 echo "$as_me:$LINENO: checking for $ac_func" >&5
7876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7877 if eval "test \"\${$as_ac_var+set}\" = set"; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7880 cat >conftest.$ac_ext <<_ACEOF
7881 #line $LINENO "configure"
7882 #include "confdefs.h"
7883 /* System header to define __stub macros and hopefully few prototypes,
7884 which can conflict with char $ac_func (); below. */
7886 /* Override any gcc2 internal prototype to avoid an error. */
7890 /* We use char because int might match the return type of a gcc2
7891 builtin and then its argument prototype would still apply. */
7895 #ifdef F77_DUMMY_MAIN
7899 int F77_DUMMY_MAIN() { return 1; }
7904 /* The GNU C library defines this for functions which it implements
7905 to always fail with ENOSYS. Some functions are actually named
7906 something starting with __ and the normal name is an alias. */
7907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7917 rm -f conftest.$ac_objext conftest$ac_exeext
7918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7919 (eval $ac_link) 2>&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } &&
7923 { ac_try='test -s conftest$ac_exeext'
7924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; }; then
7929 eval "$as_ac_var=yes"
7931 echo "$as_me: failed program was:" >&5
7932 cat conftest.$ac_ext >&5
7933 eval "$as_ac_var=no"
7935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7939 if test `eval echo '${'$as_ac_var'}'` = yes; then
7940 cat >>confdefs.h <<_ACEOF
7941 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7951 cat >>confdefs.h <<\_ACEOF
7952 @%:@define USE_PAM 1
7955 if test $ac_cv_lib_dl_dlopen = yes; then
7966 # Check for older PAM
7967 if test "x$PAM_MSG" = "xyes" ; then
7968 # Check PAM strerror arguments (old PAM)
7969 echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
7970 echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6
7971 cat >conftest.$ac_ext <<_ACEOF
7972 #line $LINENO "configure"
7973 #include "confdefs.h"
7976 #include <security/pam_appl.h>
7978 #ifdef F77_DUMMY_MAIN
7982 int F77_DUMMY_MAIN() { return 1; }
7987 (void)pam_strerror((pam_handle_t *)NULL, -1);
7992 rm -f conftest.$ac_objext
7993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7994 (eval $ac_compile) 2>&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); } &&
7998 { ac_try='test -s conftest.$ac_objext'
7999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; }; then
8004 echo "$as_me:$LINENO: result: no" >&5
8005 echo "${ECHO_T}no" >&6
8007 echo "$as_me: failed program was:" >&5
8008 cat conftest.$ac_ext >&5
8010 cat >>confdefs.h <<\_ACEOF
8011 @%:@define HAVE_OLD_PAM 1
8014 echo "$as_me:$LINENO: result: yes" >&5
8015 echo "${ECHO_T}yes" >&6
8016 PAM_MSG="yes (old library)"
8020 rm -f conftest.$ac_objext conftest.$ac_ext
8023 # Search for OpenSSL
8024 saved_CPPFLAGS="$CPPFLAGS"
8025 saved_LDFLAGS="$LDFLAGS"
8027 # Check whether --with-ssl-dir or --without-ssl-dir was given.
8028 if test "${with_ssl_dir+set}" = set; then
8029 withval="$with_ssl_dir"
8031 if test "x$withval" != "xno" ; then
8032 if test -d "$withval/lib"; then
8033 if test -n "${need_dash_r}"; then
8034 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8036 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8039 if test -n "${need_dash_r}"; then
8040 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8042 LDFLAGS="-L${withval} ${LDFLAGS}"
8045 if test -d "$withval/include"; then
8046 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8048 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8054 LIBS="$LIBS -lcrypto"
8055 cat >conftest.$ac_ext <<_ACEOF
8056 #line $LINENO "configure"
8057 #include "confdefs.h"
8059 /* Override any gcc2 internal prototype to avoid an error. */
8063 /* We use char because int might match the return type of a gcc2
8064 builtin and then its argument prototype would still apply. */
8066 #ifdef F77_DUMMY_MAIN
8070 int F77_DUMMY_MAIN() { return 1; }
8080 rm -f conftest.$ac_objext conftest$ac_exeext
8081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8082 (eval $ac_link) 2>&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } &&
8086 { ac_try='test -s conftest$ac_exeext'
8087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; }; then
8092 cat >>confdefs.h <<\_ACEOF
8093 @%:@define HAVE_OPENSSL 1
8097 echo "$as_me: failed program was:" >&5
8098 cat conftest.$ac_ext >&5
8100 if test -n "${need_dash_r}"; then
8101 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
8103 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
8105 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
8106 cat >conftest.$ac_ext <<_ACEOF
8107 #line $LINENO "configure"
8108 #include "confdefs.h"
8110 /* Override any gcc2 internal prototype to avoid an error. */
8114 /* We use char because int might match the return type of a gcc2
8115 builtin and then its argument prototype would still apply. */
8117 #ifdef F77_DUMMY_MAIN
8121 int F77_DUMMY_MAIN() { return 1; }
8131 rm -f conftest.$ac_objext conftest$ac_exeext
8132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8133 (eval $ac_link) 2>&5
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); } &&
8137 { ac_try='test -s conftest$ac_exeext'
8138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); }; }; then
8143 cat >>confdefs.h <<\_ACEOF
8144 @%:@define HAVE_OPENSSL 1
8148 echo "$as_me: failed program was:" >&5
8149 cat conftest.$ac_ext >&5
8151 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
8152 echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
8153 { (exit 1); exit 1; }; }
8157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8164 # Sanity check OpenSSL headers
8165 echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
8166 echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6
8167 if test "$cross_compiling" = yes; then
8168 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8169 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8170 { (exit 1); exit 1; }; }
8172 cat >conftest.$ac_ext <<_ACEOF
8173 #line $LINENO "configure"
8174 #include "confdefs.h"
8177 #include <openssl/opensslv.h>
8178 int main(void) { return(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
8181 rm -f conftest$ac_exeext
8182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8183 (eval $ac_link) 2>&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); }; }; then
8193 echo "$as_me:$LINENO: result: yes" >&5
8194 echo "${ECHO_T}yes" >&6
8197 echo "$as_me: program exited with status $ac_status" >&5
8198 echo "$as_me: failed program was:" >&5
8199 cat conftest.$ac_ext >&5
8202 echo "$as_me:$LINENO: result: no" >&5
8203 echo "${ECHO_T}no" >&6
8204 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library" >&5
8205 echo "$as_me: error: Your OpenSSL headers do not match your library" >&2;}
8206 { (exit 1); exit 1; }; }
8210 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8213 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
8214 # version in OpenSSL. Skip this for PAM
8215 if test "x$PAM_MSG" = "xno" -a "x$check_for_libcrypt_later" = "x1"; then
8216 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8217 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8218 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8221 ac_check_lib_save_LIBS=$LIBS
8222 LIBS="-lcrypt $LIBS"
8223 cat >conftest.$ac_ext <<_ACEOF
8224 #line $LINENO "configure"
8225 #include "confdefs.h"
8227 /* Override any gcc2 internal prototype to avoid an error. */
8231 /* We use char because int might match the return type of a gcc2
8232 builtin and then its argument prototype would still apply. */
8234 #ifdef F77_DUMMY_MAIN
8238 int F77_DUMMY_MAIN() { return 1; }
8248 rm -f conftest.$ac_objext conftest$ac_exeext
8249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8250 (eval $ac_link) 2>&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } &&
8254 { ac_try='test -s conftest$ac_exeext'
8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; }; then
8260 ac_cv_lib_crypt_crypt=yes
8262 echo "$as_me: failed program was:" >&5
8263 cat conftest.$ac_ext >&5
8264 ac_cv_lib_crypt_crypt=no
8266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8267 LIBS=$ac_check_lib_save_LIBS
8269 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8270 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8271 if test $ac_cv_lib_crypt_crypt = yes; then
8272 LIBS="$LIBS -lcrypt"
8278 ### Configure cryptographic random number support
8280 # Check wheter OpenSSL seeds itself
8281 echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
8282 echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6
8283 if test "$cross_compiling" = yes; then
8284 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8285 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8286 { (exit 1); exit 1; }; }
8288 cat >conftest.$ac_ext <<_ACEOF
8289 #line $LINENO "configure"
8290 #include "confdefs.h"
8293 #include <openssl/rand.h>
8294 int main(void) { return(RAND_status() == 1 ? 0 : 1); }
8297 rm -f conftest$ac_exeext
8298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8299 (eval $ac_link) 2>&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; }; then
8309 OPENSSL_SEEDS_ITSELF=yes
8310 echo "$as_me:$LINENO: result: yes" >&5
8311 echo "${ECHO_T}yes" >&6
8314 echo "$as_me: program exited with status $ac_status" >&5
8315 echo "$as_me: failed program was:" >&5
8316 cat conftest.$ac_ext >&5
8319 echo "$as_me:$LINENO: result: no" >&5
8320 echo "${ECHO_T}no" >&6
8321 # Default to use of the rand helper if OpenSSL doesn't
8327 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8331 # Do we want to force the use of the rand helper?
8333 # Check whether --with-rand-helper or --without-rand-helper was given.
8334 if test "${with_rand_helper+set}" = set; then
8335 withval="$with_rand_helper"
8337 if test "x$withval" = "xno" ; then
8338 # Force use of OpenSSL's internal RNG, even if
8339 # the previous test showed it to be unseeded.
8340 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
8341 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
8342 echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
8343 OPENSSL_SEEDS_ITSELF=yes
8352 # Which randomness source do we use?
8353 if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then
8355 cat >>confdefs.h <<\_ACEOF
8356 @%:@define OPENSSL_PRNG_ONLY 1
8359 RAND_MSG="OpenSSL internal ONLY"
8360 INSTALL_SSH_RAND_HELPER=""
8361 elif test ! -z "$USE_RAND_HELPER" ; then
8362 # install rand helper
8363 RAND_MSG="ssh-rand-helper"
8364 INSTALL_SSH_RAND_HELPER="yes"
8368 ### Configuration of ssh-rand-helper
8372 # Check whether --with-prngd-port or --without-prngd-port was given.
8373 if test "${with_prngd_port+set}" = set; then
8374 withval="$with_prngd_port"
8383 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
8384 echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
8385 { (exit 1); exit 1; }; }
8388 if test ! -z "$withval" ; then
8389 PRNGD_PORT="$withval"
8390 cat >>confdefs.h <<_ACEOF
8391 @%:@define PRNGD_PORT $PRNGD_PORT
8399 # PRNGD Unix domain socket
8401 # Check whether --with-prngd-socket or --without-prngd-socket was given.
8402 if test "${with_prngd_socket+set}" = set; then
8403 withval="$with_prngd_socket"
8407 withval="/var/run/egd-pool"
8415 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
8416 echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
8417 { (exit 1); exit 1; }; }
8421 if test ! -z "$withval" ; then
8422 if test ! -z "$PRNGD_PORT" ; then
8423 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
8424 echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
8425 { (exit 1); exit 1; }; }
8427 if test ! -r "$withval" ; then
8428 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
8429 echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
8431 PRNGD_SOCKET="$withval"
8432 cat >>confdefs.h <<_ACEOF
8433 @%:@define PRNGD_SOCKET "$PRNGD_SOCKET"
8440 # Check for existing socket only if we don't have a random device already
8441 if test "$USE_RAND_HELPER" = yes ; then
8442 echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
8443 echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6
8444 # Insert other locations here
8445 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
8446 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
8447 PRNGD_SOCKET="$sock"
8448 cat >>confdefs.h <<_ACEOF
8449 @%:@define PRNGD_SOCKET "$PRNGD_SOCKET"
8455 if test ! -z "$PRNGD_SOCKET" ; then
8456 echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
8457 echo "${ECHO_T}$PRNGD_SOCKET" >&6
8459 echo "$as_me:$LINENO: result: not found" >&5
8460 echo "${ECHO_T}not found" >&6
8467 # Change default command timeout for hashing entropy source
8470 # Check whether --with-entropy-timeout or --without-entropy-timeout was given.
8471 if test "${with_entropy_timeout+set}" = set; then
8472 withval="$with_entropy_timeout"
8474 if test "x$withval" != "xno" ; then
8475 entropy_timeout=$withval
8480 cat >>confdefs.h <<_ACEOF
8481 @%:@define ENTROPY_TIMEOUT_MSEC $entropy_timeout
8485 ssh_privsep_user=sshd
8487 # Check whether --with-privsep-user or --without-privsep-user was given.
8488 if test "${with_privsep_user+set}" = set; then
8489 withval="$with_privsep_user"
8491 if test -n "$withval"; then
8492 ssh_privsep_user=$withval
8497 cat >>confdefs.h <<_ACEOF
8498 @%:@define SSH_PRIVSEP_USER "$ssh_privsep_user"
8502 # We do this little dance with the search path to insure
8503 # that programs that we select for use by installed programs
8504 # (which may be run by the super-user) come from trusted
8505 # locations before they come from the user's private area.
8506 # This should help avoid accidentally configuring some
8507 # random version of a program in someone's personal bin.
8511 test -h /bin 2> /dev/null && PATH=/usr/bin
8512 test -d /sbin && PATH=$PATH:/sbin
8513 test -d /usr/sbin && PATH=$PATH:/usr/sbin
8514 PATH=$PATH:/etc:$OPATH
8516 # These programs are used by the command hashing source to gather entropy
8518 # Extract the first word of "ls", so it can be a program name with args.
8519 set dummy ls; ac_word=$2
8520 echo "$as_me:$LINENO: checking for $ac_word" >&5
8521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8522 if test "${ac_cv_path_PROG_LS+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8527 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
8530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534 test -z "$as_dir" && as_dir=.
8535 for ac_exec_ext in '' $ac_executable_extensions; do
8536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8537 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
8538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8547 PROG_LS=$ac_cv_path_PROG_LS
8549 if test -n "$PROG_LS"; then
8550 echo "$as_me:$LINENO: result: $PROG_LS" >&5
8551 echo "${ECHO_T}$PROG_LS" >&6
8553 echo "$as_me:$LINENO: result: no" >&5
8554 echo "${ECHO_T}no" >&6
8557 if test -z "$PROG_LS" ; then
8563 # Extract the first word of "netstat", so it can be a program name with args.
8564 set dummy netstat; ac_word=$2
8565 echo "$as_me:$LINENO: checking for $ac_word" >&5
8566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8567 if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 case $PROG_NETSTAT in
8572 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
8575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8579 test -z "$as_dir" && as_dir=.
8580 for ac_exec_ext in '' $ac_executable_extensions; do
8581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8582 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
8583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8592 PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
8594 if test -n "$PROG_NETSTAT"; then
8595 echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
8596 echo "${ECHO_T}$PROG_NETSTAT" >&6
8598 echo "$as_me:$LINENO: result: no" >&5
8599 echo "${ECHO_T}no" >&6
8602 if test -z "$PROG_NETSTAT" ; then
8603 PROG_NETSTAT="undef"
8608 # Extract the first word of "arp", so it can be a program name with args.
8609 set dummy arp; ac_word=$2
8610 echo "$as_me:$LINENO: checking for $ac_word" >&5
8611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8612 if test "${ac_cv_path_PROG_ARP+set}" = set; then
8613 echo $ECHO_N "(cached) $ECHO_C" >&6
8617 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
8620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624 test -z "$as_dir" && as_dir=.
8625 for ac_exec_ext in '' $ac_executable_extensions; do
8626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8627 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
8628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8637 PROG_ARP=$ac_cv_path_PROG_ARP
8639 if test -n "$PROG_ARP"; then
8640 echo "$as_me:$LINENO: result: $PROG_ARP" >&5
8641 echo "${ECHO_T}$PROG_ARP" >&6
8643 echo "$as_me:$LINENO: result: no" >&5
8644 echo "${ECHO_T}no" >&6
8647 if test -z "$PROG_ARP" ; then
8653 # Extract the first word of "ifconfig", so it can be a program name with args.
8654 set dummy ifconfig; ac_word=$2
8655 echo "$as_me:$LINENO: checking for $ac_word" >&5
8656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8657 if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8660 case $PROG_IFCONFIG in
8662 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
8665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8669 test -z "$as_dir" && as_dir=.
8670 for ac_exec_ext in '' $ac_executable_extensions; do
8671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8672 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
8673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8682 PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
8684 if test -n "$PROG_IFCONFIG"; then
8685 echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
8686 echo "${ECHO_T}$PROG_IFCONFIG" >&6
8688 echo "$as_me:$LINENO: result: no" >&5
8689 echo "${ECHO_T}no" >&6
8692 if test -z "$PROG_IFCONFIG" ; then
8693 PROG_IFCONFIG="undef"
8698 # Extract the first word of "jstat", so it can be a program name with args.
8699 set dummy jstat; ac_word=$2
8700 echo "$as_me:$LINENO: checking for $ac_word" >&5
8701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8702 if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
8703 echo $ECHO_N "(cached) $ECHO_C" >&6
8707 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
8710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8714 test -z "$as_dir" && as_dir=.
8715 for ac_exec_ext in '' $ac_executable_extensions; do
8716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8717 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
8718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8727 PROG_JSTAT=$ac_cv_path_PROG_JSTAT
8729 if test -n "$PROG_JSTAT"; then
8730 echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
8731 echo "${ECHO_T}$PROG_JSTAT" >&6
8733 echo "$as_me:$LINENO: result: no" >&5
8734 echo "${ECHO_T}no" >&6
8737 if test -z "$PROG_JSTAT" ; then
8743 # Extract the first word of "ps", so it can be a program name with args.
8744 set dummy ps; ac_word=$2
8745 echo "$as_me:$LINENO: checking for $ac_word" >&5
8746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8747 if test "${ac_cv_path_PROG_PS+set}" = set; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
8755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8759 test -z "$as_dir" && as_dir=.
8760 for ac_exec_ext in '' $ac_executable_extensions; do
8761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8762 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
8763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8772 PROG_PS=$ac_cv_path_PROG_PS
8774 if test -n "$PROG_PS"; then
8775 echo "$as_me:$LINENO: result: $PROG_PS" >&5
8776 echo "${ECHO_T}$PROG_PS" >&6
8778 echo "$as_me:$LINENO: result: no" >&5
8779 echo "${ECHO_T}no" >&6
8782 if test -z "$PROG_PS" ; then
8788 # Extract the first word of "sar", so it can be a program name with args.
8789 set dummy sar; ac_word=$2
8790 echo "$as_me:$LINENO: checking for $ac_word" >&5
8791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8792 if test "${ac_cv_path_PROG_SAR+set}" = set; then
8793 echo $ECHO_N "(cached) $ECHO_C" >&6
8797 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
8800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8804 test -z "$as_dir" && as_dir=.
8805 for ac_exec_ext in '' $ac_executable_extensions; do
8806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8807 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
8808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8817 PROG_SAR=$ac_cv_path_PROG_SAR
8819 if test -n "$PROG_SAR"; then
8820 echo "$as_me:$LINENO: result: $PROG_SAR" >&5
8821 echo "${ECHO_T}$PROG_SAR" >&6
8823 echo "$as_me:$LINENO: result: no" >&5
8824 echo "${ECHO_T}no" >&6
8827 if test -z "$PROG_SAR" ; then
8833 # Extract the first word of "w", so it can be a program name with args.
8834 set dummy w; ac_word=$2
8835 echo "$as_me:$LINENO: checking for $ac_word" >&5
8836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8837 if test "${ac_cv_path_PROG_W+set}" = set; then
8838 echo $ECHO_N "(cached) $ECHO_C" >&6
8842 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
8845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8849 test -z "$as_dir" && as_dir=.
8850 for ac_exec_ext in '' $ac_executable_extensions; do
8851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8852 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
8853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8862 PROG_W=$ac_cv_path_PROG_W
8864 if test -n "$PROG_W"; then
8865 echo "$as_me:$LINENO: result: $PROG_W" >&5
8866 echo "${ECHO_T}$PROG_W" >&6
8868 echo "$as_me:$LINENO: result: no" >&5
8869 echo "${ECHO_T}no" >&6
8872 if test -z "$PROG_W" ; then
8878 # Extract the first word of "who", so it can be a program name with args.
8879 set dummy who; ac_word=$2
8880 echo "$as_me:$LINENO: checking for $ac_word" >&5
8881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8882 if test "${ac_cv_path_PROG_WHO+set}" = set; then
8883 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
8890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8894 test -z "$as_dir" && as_dir=.
8895 for ac_exec_ext in '' $ac_executable_extensions; do
8896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8897 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
8898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8907 PROG_WHO=$ac_cv_path_PROG_WHO
8909 if test -n "$PROG_WHO"; then
8910 echo "$as_me:$LINENO: result: $PROG_WHO" >&5
8911 echo "${ECHO_T}$PROG_WHO" >&6
8913 echo "$as_me:$LINENO: result: no" >&5
8914 echo "${ECHO_T}no" >&6
8917 if test -z "$PROG_WHO" ; then
8923 # Extract the first word of "last", so it can be a program name with args.
8924 set dummy last; ac_word=$2
8925 echo "$as_me:$LINENO: checking for $ac_word" >&5
8926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8927 if test "${ac_cv_path_PROG_LAST+set}" = set; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8932 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
8935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8939 test -z "$as_dir" && as_dir=.
8940 for ac_exec_ext in '' $ac_executable_extensions; do
8941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8942 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
8943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8952 PROG_LAST=$ac_cv_path_PROG_LAST
8954 if test -n "$PROG_LAST"; then
8955 echo "$as_me:$LINENO: result: $PROG_LAST" >&5
8956 echo "${ECHO_T}$PROG_LAST" >&6
8958 echo "$as_me:$LINENO: result: no" >&5
8959 echo "${ECHO_T}no" >&6
8962 if test -z "$PROG_LAST" ; then
8968 # Extract the first word of "lastlog", so it can be a program name with args.
8969 set dummy lastlog; ac_word=$2
8970 echo "$as_me:$LINENO: checking for $ac_word" >&5
8971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8972 if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
8973 echo $ECHO_N "(cached) $ECHO_C" >&6
8975 case $PROG_LASTLOG in
8977 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
8980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8984 test -z "$as_dir" && as_dir=.
8985 for ac_exec_ext in '' $ac_executable_extensions; do
8986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8987 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
8988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8997 PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
8999 if test -n "$PROG_LASTLOG"; then
9000 echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
9001 echo "${ECHO_T}$PROG_LASTLOG" >&6
9003 echo "$as_me:$LINENO: result: no" >&5
9004 echo "${ECHO_T}no" >&6
9007 if test -z "$PROG_LASTLOG" ; then
9008 PROG_LASTLOG="undef"
9013 # Extract the first word of "df", so it can be a program name with args.
9014 set dummy df; ac_word=$2
9015 echo "$as_me:$LINENO: checking for $ac_word" >&5
9016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9017 if test "${ac_cv_path_PROG_DF+set}" = set; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9022 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
9025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9029 test -z "$as_dir" && as_dir=.
9030 for ac_exec_ext in '' $ac_executable_extensions; do
9031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9032 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
9033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9042 PROG_DF=$ac_cv_path_PROG_DF
9044 if test -n "$PROG_DF"; then
9045 echo "$as_me:$LINENO: result: $PROG_DF" >&5
9046 echo "${ECHO_T}$PROG_DF" >&6
9048 echo "$as_me:$LINENO: result: no" >&5
9049 echo "${ECHO_T}no" >&6
9052 if test -z "$PROG_DF" ; then
9058 # Extract the first word of "vmstat", so it can be a program name with args.
9059 set dummy vmstat; ac_word=$2
9060 echo "$as_me:$LINENO: checking for $ac_word" >&5
9061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9062 if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
9063 echo $ECHO_N "(cached) $ECHO_C" >&6
9065 case $PROG_VMSTAT in
9067 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
9070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9074 test -z "$as_dir" && as_dir=.
9075 for ac_exec_ext in '' $ac_executable_extensions; do
9076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9077 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
9078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9087 PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
9089 if test -n "$PROG_VMSTAT"; then
9090 echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
9091 echo "${ECHO_T}$PROG_VMSTAT" >&6
9093 echo "$as_me:$LINENO: result: no" >&5
9094 echo "${ECHO_T}no" >&6
9097 if test -z "$PROG_VMSTAT" ; then
9103 # Extract the first word of "uptime", so it can be a program name with args.
9104 set dummy uptime; ac_word=$2
9105 echo "$as_me:$LINENO: checking for $ac_word" >&5
9106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9107 if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
9108 echo $ECHO_N "(cached) $ECHO_C" >&6
9110 case $PROG_UPTIME in
9112 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
9115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119 test -z "$as_dir" && as_dir=.
9120 for ac_exec_ext in '' $ac_executable_extensions; do
9121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9122 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
9123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9132 PROG_UPTIME=$ac_cv_path_PROG_UPTIME
9134 if test -n "$PROG_UPTIME"; then
9135 echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
9136 echo "${ECHO_T}$PROG_UPTIME" >&6
9138 echo "$as_me:$LINENO: result: no" >&5
9139 echo "${ECHO_T}no" >&6
9142 if test -z "$PROG_UPTIME" ; then
9148 # Extract the first word of "ipcs", so it can be a program name with args.
9149 set dummy ipcs; ac_word=$2
9150 echo "$as_me:$LINENO: checking for $ac_word" >&5
9151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9152 if test "${ac_cv_path_PROG_IPCS+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9157 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
9160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9164 test -z "$as_dir" && as_dir=.
9165 for ac_exec_ext in '' $ac_executable_extensions; do
9166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9167 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
9168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9177 PROG_IPCS=$ac_cv_path_PROG_IPCS
9179 if test -n "$PROG_IPCS"; then
9180 echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
9181 echo "${ECHO_T}$PROG_IPCS" >&6
9183 echo "$as_me:$LINENO: result: no" >&5
9184 echo "${ECHO_T}no" >&6
9187 if test -z "$PROG_IPCS" ; then
9193 # Extract the first word of "tail", so it can be a program name with args.
9194 set dummy tail; ac_word=$2
9195 echo "$as_me:$LINENO: checking for $ac_word" >&5
9196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9197 if test "${ac_cv_path_PROG_TAIL+set}" = set; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
9205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9209 test -z "$as_dir" && as_dir=.
9210 for ac_exec_ext in '' $ac_executable_extensions; do
9211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9212 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
9213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9222 PROG_TAIL=$ac_cv_path_PROG_TAIL
9224 if test -n "$PROG_TAIL"; then
9225 echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
9226 echo "${ECHO_T}$PROG_TAIL" >&6
9228 echo "$as_me:$LINENO: result: no" >&5
9229 echo "${ECHO_T}no" >&6
9232 if test -z "$PROG_TAIL" ; then
9240 # Where does ssh-rand-helper get its randomness from?
9241 INSTALL_SSH_PRNG_CMDS=""
9242 if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
9243 if test ! -z "$PRNGD_PORT" ; then
9244 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
9245 elif test ! -z "$PRNGD_SOCKET" ; then
9246 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
9248 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
9249 RAND_HELPER_CMDHASH=yes
9250 INSTALL_SSH_PRNG_CMDS="yes"
9256 # Cheap hack to ensure NEWS-OS libraries are arranged right.
9257 if test ! -z "$SONY" ; then
9258 LIBS="$LIBS -liberty";
9261 # Checks for data types
9262 echo "$as_me:$LINENO: checking for char" >&5
9263 echo $ECHO_N "checking for char... $ECHO_C" >&6
9264 if test "${ac_cv_type_char+set}" = set; then
9265 echo $ECHO_N "(cached) $ECHO_C" >&6
9267 cat >conftest.$ac_ext <<_ACEOF
9268 #line $LINENO "configure"
9269 #include "confdefs.h"
9270 $ac_includes_default
9271 #ifdef F77_DUMMY_MAIN
9275 int F77_DUMMY_MAIN() { return 1; }
9288 rm -f conftest.$ac_objext
9289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9290 (eval $ac_compile) 2>&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); } &&
9294 { ac_try='test -s conftest.$ac_objext'
9295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; }; then
9302 echo "$as_me: failed program was:" >&5
9303 cat conftest.$ac_ext >&5
9306 rm -f conftest.$ac_objext conftest.$ac_ext
9308 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
9309 echo "${ECHO_T}$ac_cv_type_char" >&6
9311 echo "$as_me:$LINENO: checking size of char" >&5
9312 echo $ECHO_N "checking size of char... $ECHO_C" >&6
9313 if test "${ac_cv_sizeof_char+set}" = set; then
9314 echo $ECHO_N "(cached) $ECHO_C" >&6
9316 if test "$ac_cv_type_char" = yes; then
9317 # The cast to unsigned long works around a bug in the HP C Compiler
9318 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9319 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9320 # This bug is HP SR number 8606223364.
9321 if test "$cross_compiling" = yes; then
9322 # Depending upon the size, compute the lo and hi bounds.
9323 cat >conftest.$ac_ext <<_ACEOF
9324 #line $LINENO "configure"
9325 #include "confdefs.h"
9326 $ac_includes_default
9327 #ifdef F77_DUMMY_MAIN
9331 int F77_DUMMY_MAIN() { return 1; }
9336 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= 0)@:>@;
9337 test_array @<:@0@:>@ = 0
9343 rm -f conftest.$ac_objext
9344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9345 (eval $ac_compile) 2>&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } &&
9349 { ac_try='test -s conftest.$ac_objext'
9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); }; }; then
9357 cat >conftest.$ac_ext <<_ACEOF
9358 #line $LINENO "configure"
9359 #include "confdefs.h"
9360 $ac_includes_default
9361 #ifdef F77_DUMMY_MAIN
9365 int F77_DUMMY_MAIN() { return 1; }
9370 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@;
9371 test_array @<:@0@:>@ = 0
9377 rm -f conftest.$ac_objext
9378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9379 (eval $ac_compile) 2>&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } &&
9383 { ac_try='test -s conftest.$ac_objext'
9384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }; }; then
9389 ac_hi=$ac_mid; break
9391 echo "$as_me: failed program was:" >&5
9392 cat conftest.$ac_ext >&5
9393 ac_lo=`expr $ac_mid + 1`
9394 if test $ac_lo -le $ac_mid; then
9398 ac_mid=`expr 2 '*' $ac_mid + 1`
9400 rm -f conftest.$ac_objext conftest.$ac_ext
9403 echo "$as_me: failed program was:" >&5
9404 cat conftest.$ac_ext >&5
9405 cat >conftest.$ac_ext <<_ACEOF
9406 #line $LINENO "configure"
9407 #include "confdefs.h"
9408 $ac_includes_default
9409 #ifdef F77_DUMMY_MAIN
9413 int F77_DUMMY_MAIN() { return 1; }
9418 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) < 0)@:>@;
9419 test_array @<:@0@:>@ = 0
9425 rm -f conftest.$ac_objext
9426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9427 (eval $ac_compile) 2>&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } &&
9431 { ac_try='test -s conftest.$ac_objext'
9432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); }; }; then
9439 cat >conftest.$ac_ext <<_ACEOF
9440 #line $LINENO "configure"
9441 #include "confdefs.h"
9442 $ac_includes_default
9443 #ifdef F77_DUMMY_MAIN
9447 int F77_DUMMY_MAIN() { return 1; }
9452 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)@:>@;
9453 test_array @<:@0@:>@ = 0
9459 rm -f conftest.$ac_objext
9460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9461 (eval $ac_compile) 2>&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); } &&
9465 { ac_try='test -s conftest.$ac_objext'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; }; then
9471 ac_lo=$ac_mid; break
9473 echo "$as_me: failed program was:" >&5
9474 cat conftest.$ac_ext >&5
9475 ac_hi=`expr '(' $ac_mid ')' - 1`
9476 if test $ac_mid -le $ac_hi; then
9480 ac_mid=`expr 2 '*' $ac_mid`
9482 rm -f conftest.$ac_objext conftest.$ac_ext
9485 echo "$as_me: failed program was:" >&5
9486 cat conftest.$ac_ext >&5
9489 rm -f conftest.$ac_objext conftest.$ac_ext
9491 rm -f conftest.$ac_objext conftest.$ac_ext
9492 # Binary search between lo and hi bounds.
9493 while test "x$ac_lo" != "x$ac_hi"; do
9494 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9495 cat >conftest.$ac_ext <<_ACEOF
9496 #line $LINENO "configure"
9497 #include "confdefs.h"
9498 $ac_includes_default
9499 #ifdef F77_DUMMY_MAIN
9503 int F77_DUMMY_MAIN() { return 1; }
9508 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@;
9509 test_array @<:@0@:>@ = 0
9515 rm -f conftest.$ac_objext
9516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9517 (eval $ac_compile) 2>&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } &&
9521 { ac_try='test -s conftest.$ac_objext'
9522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; }; then
9529 echo "$as_me: failed program was:" >&5
9530 cat conftest.$ac_ext >&5
9531 ac_lo=`expr '(' $ac_mid ')' + 1`
9533 rm -f conftest.$ac_objext conftest.$ac_ext
9536 ?*) ac_cv_sizeof_char=$ac_lo;;
9537 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
9538 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
9539 { (exit 1); exit 1; }; } ;;
9542 if test "$cross_compiling" = yes; then
9543 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
9544 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9545 { (exit 1); exit 1; }; }
9547 cat >conftest.$ac_ext <<_ACEOF
9548 #line $LINENO "configure"
9549 #include "confdefs.h"
9550 $ac_includes_default
9551 long longval () { return (long) (sizeof (char)); }
9552 unsigned long ulongval () { return (long) (sizeof (char)); }
9553 @%:@include <stdio.h>
9554 @%:@include <stdlib.h>
9555 #ifdef F77_DUMMY_MAIN
9559 int F77_DUMMY_MAIN() { return 1; }
9565 FILE *f = fopen ("conftest.val", "w");
9568 if (((long) (sizeof (char))) < 0)
9570 long i = longval ();
9571 if (i != ((long) (sizeof (char))))
9573 fprintf (f, "%ld\n", i);
9577 unsigned long i = ulongval ();
9578 if (i != ((long) (sizeof (char))))
9580 fprintf (f, "%lu\n", i);
9582 exit (ferror (f) || fclose (f) != 0);
9588 rm -f conftest$ac_exeext
9589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9590 (eval $ac_link) 2>&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; }; then
9599 ac_cv_sizeof_char=`cat conftest.val`
9601 echo "$as_me: program exited with status $ac_status" >&5
9602 echo "$as_me: failed program was:" >&5
9603 cat conftest.$ac_ext >&5
9605 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
9606 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
9607 { (exit 1); exit 1; }; }
9609 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9617 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
9618 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
9619 cat >>confdefs.h <<_ACEOF
9620 @%:@define SIZEOF_CHAR $ac_cv_sizeof_char
9624 echo "$as_me:$LINENO: checking for short int" >&5
9625 echo $ECHO_N "checking for short int... $ECHO_C" >&6
9626 if test "${ac_cv_type_short_int+set}" = set; then
9627 echo $ECHO_N "(cached) $ECHO_C" >&6
9629 cat >conftest.$ac_ext <<_ACEOF
9630 #line $LINENO "configure"
9631 #include "confdefs.h"
9632 $ac_includes_default
9633 #ifdef F77_DUMMY_MAIN
9637 int F77_DUMMY_MAIN() { return 1; }
9642 if ((short int *) 0)
9644 if (sizeof (short int))
9650 rm -f conftest.$ac_objext
9651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9652 (eval $ac_compile) 2>&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } &&
9656 { ac_try='test -s conftest.$ac_objext'
9657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); }; }; then
9662 ac_cv_type_short_int=yes
9664 echo "$as_me: failed program was:" >&5
9665 cat conftest.$ac_ext >&5
9666 ac_cv_type_short_int=no
9668 rm -f conftest.$ac_objext conftest.$ac_ext
9670 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
9671 echo "${ECHO_T}$ac_cv_type_short_int" >&6
9673 echo "$as_me:$LINENO: checking size of short int" >&5
9674 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
9675 if test "${ac_cv_sizeof_short_int+set}" = set; then
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9678 if test "$ac_cv_type_short_int" = yes; then
9679 # The cast to unsigned long works around a bug in the HP C Compiler
9680 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9681 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9682 # This bug is HP SR number 8606223364.
9683 if test "$cross_compiling" = yes; then
9684 # Depending upon the size, compute the lo and hi bounds.
9685 cat >conftest.$ac_ext <<_ACEOF
9686 #line $LINENO "configure"
9687 #include "confdefs.h"
9688 $ac_includes_default
9689 #ifdef F77_DUMMY_MAIN
9693 int F77_DUMMY_MAIN() { return 1; }
9698 static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) >= 0)@:>@;
9699 test_array @<:@0@:>@ = 0
9705 rm -f conftest.$ac_objext
9706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9707 (eval $ac_compile) 2>&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); } &&
9711 { ac_try='test -s conftest.$ac_objext'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; }; then
9719 cat >conftest.$ac_ext <<_ACEOF
9720 #line $LINENO "configure"
9721 #include "confdefs.h"
9722 $ac_includes_default
9723 #ifdef F77_DUMMY_MAIN
9727 int F77_DUMMY_MAIN() { return 1; }
9732 static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)@:>@;
9733 test_array @<:@0@:>@ = 0
9739 rm -f conftest.$ac_objext
9740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9741 (eval $ac_compile) 2>&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); } &&
9745 { ac_try='test -s conftest.$ac_objext'
9746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; }; then
9751 ac_hi=$ac_mid; break
9753 echo "$as_me: failed program was:" >&5
9754 cat conftest.$ac_ext >&5
9755 ac_lo=`expr $ac_mid + 1`
9756 if test $ac_lo -le $ac_mid; then
9760 ac_mid=`expr 2 '*' $ac_mid + 1`
9762 rm -f conftest.$ac_objext conftest.$ac_ext
9765 echo "$as_me: failed program was:" >&5
9766 cat conftest.$ac_ext >&5
9767 cat >conftest.$ac_ext <<_ACEOF
9768 #line $LINENO "configure"
9769 #include "confdefs.h"
9770 $ac_includes_default
9771 #ifdef F77_DUMMY_MAIN
9775 int F77_DUMMY_MAIN() { return 1; }
9780 static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) < 0)@:>@;
9781 test_array @<:@0@:>@ = 0
9787 rm -f conftest.$ac_objext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9789 (eval $ac_compile) 2>&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } &&
9793 { ac_try='test -s conftest.$ac_objext'
9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; }; then
9801 cat >conftest.$ac_ext <<_ACEOF
9802 #line $LINENO "configure"
9803 #include "confdefs.h"
9804 $ac_includes_default
9805 #ifdef F77_DUMMY_MAIN
9809 int F77_DUMMY_MAIN() { return 1; }
9814 static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)@:>@;
9815 test_array @<:@0@:>@ = 0
9821 rm -f conftest.$ac_objext
9822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9823 (eval $ac_compile) 2>&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); } &&
9827 { ac_try='test -s conftest.$ac_objext'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; }; then
9833 ac_lo=$ac_mid; break
9835 echo "$as_me: failed program was:" >&5
9836 cat conftest.$ac_ext >&5
9837 ac_hi=`expr '(' $ac_mid ')' - 1`
9838 if test $ac_mid -le $ac_hi; then
9842 ac_mid=`expr 2 '*' $ac_mid`
9844 rm -f conftest.$ac_objext conftest.$ac_ext
9847 echo "$as_me: failed program was:" >&5
9848 cat conftest.$ac_ext >&5
9851 rm -f conftest.$ac_objext conftest.$ac_ext
9853 rm -f conftest.$ac_objext conftest.$ac_ext
9854 # Binary search between lo and hi bounds.
9855 while test "x$ac_lo" != "x$ac_hi"; do
9856 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9857 cat >conftest.$ac_ext <<_ACEOF
9858 #line $LINENO "configure"
9859 #include "confdefs.h"
9860 $ac_includes_default
9861 #ifdef F77_DUMMY_MAIN
9865 int F77_DUMMY_MAIN() { return 1; }
9870 static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)@:>@;
9871 test_array @<:@0@:>@ = 0
9877 rm -f conftest.$ac_objext
9878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9879 (eval $ac_compile) 2>&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } &&
9883 { ac_try='test -s conftest.$ac_objext'
9884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; }; then
9891 echo "$as_me: failed program was:" >&5
9892 cat conftest.$ac_ext >&5
9893 ac_lo=`expr '(' $ac_mid ')' + 1`
9895 rm -f conftest.$ac_objext conftest.$ac_ext
9898 ?*) ac_cv_sizeof_short_int=$ac_lo;;
9899 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5
9900 echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;}
9901 { (exit 1); exit 1; }; } ;;
9904 if test "$cross_compiling" = yes; then
9905 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
9906 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9907 { (exit 1); exit 1; }; }
9909 cat >conftest.$ac_ext <<_ACEOF
9910 #line $LINENO "configure"
9911 #include "confdefs.h"
9912 $ac_includes_default
9913 long longval () { return (long) (sizeof (short int)); }
9914 unsigned long ulongval () { return (long) (sizeof (short int)); }
9915 @%:@include <stdio.h>
9916 @%:@include <stdlib.h>
9917 #ifdef F77_DUMMY_MAIN
9921 int F77_DUMMY_MAIN() { return 1; }
9927 FILE *f = fopen ("conftest.val", "w");
9930 if (((long) (sizeof (short int))) < 0)
9932 long i = longval ();
9933 if (i != ((long) (sizeof (short int))))
9935 fprintf (f, "%ld\n", i);
9939 unsigned long i = ulongval ();
9940 if (i != ((long) (sizeof (short int))))
9942 fprintf (f, "%lu\n", i);
9944 exit (ferror (f) || fclose (f) != 0);
9950 rm -f conftest$ac_exeext
9951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9952 (eval $ac_link) 2>&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; }; then
9961 ac_cv_sizeof_short_int=`cat conftest.val`
9963 echo "$as_me: program exited with status $ac_status" >&5
9964 echo "$as_me: failed program was:" >&5
9965 cat conftest.$ac_ext >&5
9967 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5
9968 echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;}
9969 { (exit 1); exit 1; }; }
9971 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9976 ac_cv_sizeof_short_int=0
9979 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
9980 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
9981 cat >>confdefs.h <<_ACEOF
9982 @%:@define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
9986 echo "$as_me:$LINENO: checking for int" >&5
9987 echo $ECHO_N "checking for int... $ECHO_C" >&6
9988 if test "${ac_cv_type_int+set}" = set; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
9991 cat >conftest.$ac_ext <<_ACEOF
9992 #line $LINENO "configure"
9993 #include "confdefs.h"
9994 $ac_includes_default
9995 #ifdef F77_DUMMY_MAIN
9999 int F77_DUMMY_MAIN() { return 1; }
10012 rm -f conftest.$ac_objext
10013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10014 (eval $ac_compile) 2>&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } &&
10018 { ac_try='test -s conftest.$ac_objext'
10019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020 (eval $ac_try) 2>&5
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); }; }; then
10026 echo "$as_me: failed program was:" >&5
10027 cat conftest.$ac_ext >&5
10030 rm -f conftest.$ac_objext conftest.$ac_ext
10032 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
10033 echo "${ECHO_T}$ac_cv_type_int" >&6
10035 echo "$as_me:$LINENO: checking size of int" >&5
10036 echo $ECHO_N "checking size of int... $ECHO_C" >&6
10037 if test "${ac_cv_sizeof_int+set}" = set; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 if test "$ac_cv_type_int" = yes; then
10041 # The cast to unsigned long works around a bug in the HP C Compiler
10042 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10043 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10044 # This bug is HP SR number 8606223364.
10045 if test "$cross_compiling" = yes; then
10046 # Depending upon the size, compute the lo and hi bounds.
10047 cat >conftest.$ac_ext <<_ACEOF
10048 #line $LINENO "configure"
10049 #include "confdefs.h"
10050 $ac_includes_default
10051 #ifdef F77_DUMMY_MAIN
10052 # ifdef __cplusplus
10055 int F77_DUMMY_MAIN() { return 1; }
10060 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= 0)@:>@;
10061 test_array @<:@0@:>@ = 0
10067 rm -f conftest.$ac_objext
10068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10069 (eval $ac_compile) 2>&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); } &&
10073 { ac_try='test -s conftest.$ac_objext'
10074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10075 (eval $ac_try) 2>&5
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); }; }; then
10081 cat >conftest.$ac_ext <<_ACEOF
10082 #line $LINENO "configure"
10083 #include "confdefs.h"
10084 $ac_includes_default
10085 #ifdef F77_DUMMY_MAIN
10086 # ifdef __cplusplus
10089 int F77_DUMMY_MAIN() { return 1; }
10094 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@;
10095 test_array @<:@0@:>@ = 0
10101 rm -f conftest.$ac_objext
10102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10103 (eval $ac_compile) 2>&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } &&
10107 { ac_try='test -s conftest.$ac_objext'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
10113 ac_hi=$ac_mid; break
10115 echo "$as_me: failed program was:" >&5
10116 cat conftest.$ac_ext >&5
10117 ac_lo=`expr $ac_mid + 1`
10118 if test $ac_lo -le $ac_mid; then
10122 ac_mid=`expr 2 '*' $ac_mid + 1`
10124 rm -f conftest.$ac_objext conftest.$ac_ext
10127 echo "$as_me: failed program was:" >&5
10128 cat conftest.$ac_ext >&5
10129 cat >conftest.$ac_ext <<_ACEOF
10130 #line $LINENO "configure"
10131 #include "confdefs.h"
10132 $ac_includes_default
10133 #ifdef F77_DUMMY_MAIN
10134 # ifdef __cplusplus
10137 int F77_DUMMY_MAIN() { return 1; }
10142 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) < 0)@:>@;
10143 test_array @<:@0@:>@ = 0
10149 rm -f conftest.$ac_objext
10150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10151 (eval $ac_compile) 2>&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); } &&
10155 { ac_try='test -s conftest.$ac_objext'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; }; then
10163 cat >conftest.$ac_ext <<_ACEOF
10164 #line $LINENO "configure"
10165 #include "confdefs.h"
10166 $ac_includes_default
10167 #ifdef F77_DUMMY_MAIN
10168 # ifdef __cplusplus
10171 int F77_DUMMY_MAIN() { return 1; }
10176 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)@:>@;
10177 test_array @<:@0@:>@ = 0
10183 rm -f conftest.$ac_objext
10184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10185 (eval $ac_compile) 2>&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); } &&
10189 { ac_try='test -s conftest.$ac_objext'
10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191 (eval $ac_try) 2>&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; }; then
10195 ac_lo=$ac_mid; break
10197 echo "$as_me: failed program was:" >&5
10198 cat conftest.$ac_ext >&5
10199 ac_hi=`expr '(' $ac_mid ')' - 1`
10200 if test $ac_mid -le $ac_hi; then
10204 ac_mid=`expr 2 '*' $ac_mid`
10206 rm -f conftest.$ac_objext conftest.$ac_ext
10209 echo "$as_me: failed program was:" >&5
10210 cat conftest.$ac_ext >&5
10213 rm -f conftest.$ac_objext conftest.$ac_ext
10215 rm -f conftest.$ac_objext conftest.$ac_ext
10216 # Binary search between lo and hi bounds.
10217 while test "x$ac_lo" != "x$ac_hi"; do
10218 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10219 cat >conftest.$ac_ext <<_ACEOF
10220 #line $LINENO "configure"
10221 #include "confdefs.h"
10222 $ac_includes_default
10223 #ifdef F77_DUMMY_MAIN
10224 # ifdef __cplusplus
10227 int F77_DUMMY_MAIN() { return 1; }
10232 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@;
10233 test_array @<:@0@:>@ = 0
10239 rm -f conftest.$ac_objext
10240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10241 (eval $ac_compile) 2>&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); } &&
10245 { ac_try='test -s conftest.$ac_objext'
10246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247 (eval $ac_try) 2>&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; }; then
10253 echo "$as_me: failed program was:" >&5
10254 cat conftest.$ac_ext >&5
10255 ac_lo=`expr '(' $ac_mid ')' + 1`
10257 rm -f conftest.$ac_objext conftest.$ac_ext
10260 ?*) ac_cv_sizeof_int=$ac_lo;;
10261 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
10262 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
10263 { (exit 1); exit 1; }; } ;;
10266 if test "$cross_compiling" = yes; then
10267 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10268 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10269 { (exit 1); exit 1; }; }
10271 cat >conftest.$ac_ext <<_ACEOF
10272 #line $LINENO "configure"
10273 #include "confdefs.h"
10274 $ac_includes_default
10275 long longval () { return (long) (sizeof (int)); }
10276 unsigned long ulongval () { return (long) (sizeof (int)); }
10277 @%:@include <stdio.h>
10278 @%:@include <stdlib.h>
10279 #ifdef F77_DUMMY_MAIN
10280 # ifdef __cplusplus
10283 int F77_DUMMY_MAIN() { return 1; }
10289 FILE *f = fopen ("conftest.val", "w");
10292 if (((long) (sizeof (int))) < 0)
10294 long i = longval ();
10295 if (i != ((long) (sizeof (int))))
10297 fprintf (f, "%ld\n", i);
10301 unsigned long i = ulongval ();
10302 if (i != ((long) (sizeof (int))))
10304 fprintf (f, "%lu\n", i);
10306 exit (ferror (f) || fclose (f) != 0);
10312 rm -f conftest$ac_exeext
10313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10314 (eval $ac_link) 2>&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; }; then
10323 ac_cv_sizeof_int=`cat conftest.val`
10325 echo "$as_me: program exited with status $ac_status" >&5
10326 echo "$as_me: failed program was:" >&5
10327 cat conftest.$ac_ext >&5
10328 ( exit $ac_status )
10329 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
10330 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
10331 { (exit 1); exit 1; }; }
10333 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10341 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
10342 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
10343 cat >>confdefs.h <<_ACEOF
10344 @%:@define SIZEOF_INT $ac_cv_sizeof_int
10348 echo "$as_me:$LINENO: checking for long int" >&5
10349 echo $ECHO_N "checking for long int... $ECHO_C" >&6
10350 if test "${ac_cv_type_long_int+set}" = set; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
10353 cat >conftest.$ac_ext <<_ACEOF
10354 #line $LINENO "configure"
10355 #include "confdefs.h"
10356 $ac_includes_default
10357 #ifdef F77_DUMMY_MAIN
10358 # ifdef __cplusplus
10361 int F77_DUMMY_MAIN() { return 1; }
10366 if ((long int *) 0)
10368 if (sizeof (long int))
10374 rm -f conftest.$ac_objext
10375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10376 (eval $ac_compile) 2>&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } &&
10380 { ac_try='test -s conftest.$ac_objext'
10381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382 (eval $ac_try) 2>&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); }; }; then
10386 ac_cv_type_long_int=yes
10388 echo "$as_me: failed program was:" >&5
10389 cat conftest.$ac_ext >&5
10390 ac_cv_type_long_int=no
10392 rm -f conftest.$ac_objext conftest.$ac_ext
10394 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
10395 echo "${ECHO_T}$ac_cv_type_long_int" >&6
10397 echo "$as_me:$LINENO: checking size of long int" >&5
10398 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
10399 if test "${ac_cv_sizeof_long_int+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10402 if test "$ac_cv_type_long_int" = yes; then
10403 # The cast to unsigned long works around a bug in the HP C Compiler
10404 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10405 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10406 # This bug is HP SR number 8606223364.
10407 if test "$cross_compiling" = yes; then
10408 # Depending upon the size, compute the lo and hi bounds.
10409 cat >conftest.$ac_ext <<_ACEOF
10410 #line $LINENO "configure"
10411 #include "confdefs.h"
10412 $ac_includes_default
10413 #ifdef F77_DUMMY_MAIN
10414 # ifdef __cplusplus
10417 int F77_DUMMY_MAIN() { return 1; }
10422 static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) >= 0)@:>@;
10423 test_array @<:@0@:>@ = 0
10429 rm -f conftest.$ac_objext
10430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10431 (eval $ac_compile) 2>&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } &&
10435 { ac_try='test -s conftest.$ac_objext'
10436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437 (eval $ac_try) 2>&5
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; }; then
10443 cat >conftest.$ac_ext <<_ACEOF
10444 #line $LINENO "configure"
10445 #include "confdefs.h"
10446 $ac_includes_default
10447 #ifdef F77_DUMMY_MAIN
10448 # ifdef __cplusplus
10451 int F77_DUMMY_MAIN() { return 1; }
10456 static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)@:>@;
10457 test_array @<:@0@:>@ = 0
10463 rm -f conftest.$ac_objext
10464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10465 (eval $ac_compile) 2>&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); } &&
10469 { ac_try='test -s conftest.$ac_objext'
10470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471 (eval $ac_try) 2>&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; }; then
10475 ac_hi=$ac_mid; break
10477 echo "$as_me: failed program was:" >&5
10478 cat conftest.$ac_ext >&5
10479 ac_lo=`expr $ac_mid + 1`
10480 if test $ac_lo -le $ac_mid; then
10484 ac_mid=`expr 2 '*' $ac_mid + 1`
10486 rm -f conftest.$ac_objext conftest.$ac_ext
10489 echo "$as_me: failed program was:" >&5
10490 cat conftest.$ac_ext >&5
10491 cat >conftest.$ac_ext <<_ACEOF
10492 #line $LINENO "configure"
10493 #include "confdefs.h"
10494 $ac_includes_default
10495 #ifdef F77_DUMMY_MAIN
10496 # ifdef __cplusplus
10499 int F77_DUMMY_MAIN() { return 1; }
10504 static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) < 0)@:>@;
10505 test_array @<:@0@:>@ = 0
10511 rm -f conftest.$ac_objext
10512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10513 (eval $ac_compile) 2>&5
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); } &&
10517 { ac_try='test -s conftest.$ac_objext'
10518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10519 (eval $ac_try) 2>&5
10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 (exit $ac_status); }; }; then
10525 cat >conftest.$ac_ext <<_ACEOF
10526 #line $LINENO "configure"
10527 #include "confdefs.h"
10528 $ac_includes_default
10529 #ifdef F77_DUMMY_MAIN
10530 # ifdef __cplusplus
10533 int F77_DUMMY_MAIN() { return 1; }
10538 static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)@:>@;
10539 test_array @<:@0@:>@ = 0
10545 rm -f conftest.$ac_objext
10546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10547 (eval $ac_compile) 2>&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } &&
10551 { ac_try='test -s conftest.$ac_objext'
10552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553 (eval $ac_try) 2>&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; }; then
10557 ac_lo=$ac_mid; break
10559 echo "$as_me: failed program was:" >&5
10560 cat conftest.$ac_ext >&5
10561 ac_hi=`expr '(' $ac_mid ')' - 1`
10562 if test $ac_mid -le $ac_hi; then
10566 ac_mid=`expr 2 '*' $ac_mid`
10568 rm -f conftest.$ac_objext conftest.$ac_ext
10571 echo "$as_me: failed program was:" >&5
10572 cat conftest.$ac_ext >&5
10575 rm -f conftest.$ac_objext conftest.$ac_ext
10577 rm -f conftest.$ac_objext conftest.$ac_ext
10578 # Binary search between lo and hi bounds.
10579 while test "x$ac_lo" != "x$ac_hi"; do
10580 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10581 cat >conftest.$ac_ext <<_ACEOF
10582 #line $LINENO "configure"
10583 #include "confdefs.h"
10584 $ac_includes_default
10585 #ifdef F77_DUMMY_MAIN
10586 # ifdef __cplusplus
10589 int F77_DUMMY_MAIN() { return 1; }
10594 static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)@:>@;
10595 test_array @<:@0@:>@ = 0
10601 rm -f conftest.$ac_objext
10602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10603 (eval $ac_compile) 2>&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } &&
10607 { ac_try='test -s conftest.$ac_objext'
10608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10609 (eval $ac_try) 2>&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); }; }; then
10615 echo "$as_me: failed program was:" >&5
10616 cat conftest.$ac_ext >&5
10617 ac_lo=`expr '(' $ac_mid ')' + 1`
10619 rm -f conftest.$ac_objext conftest.$ac_ext
10622 ?*) ac_cv_sizeof_long_int=$ac_lo;;
10623 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5
10624 echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;}
10625 { (exit 1); exit 1; }; } ;;
10628 if test "$cross_compiling" = yes; then
10629 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10630 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10631 { (exit 1); exit 1; }; }
10633 cat >conftest.$ac_ext <<_ACEOF
10634 #line $LINENO "configure"
10635 #include "confdefs.h"
10636 $ac_includes_default
10637 long longval () { return (long) (sizeof (long int)); }
10638 unsigned long ulongval () { return (long) (sizeof (long int)); }
10639 @%:@include <stdio.h>
10640 @%:@include <stdlib.h>
10641 #ifdef F77_DUMMY_MAIN
10642 # ifdef __cplusplus
10645 int F77_DUMMY_MAIN() { return 1; }
10651 FILE *f = fopen ("conftest.val", "w");
10654 if (((long) (sizeof (long int))) < 0)
10656 long i = longval ();
10657 if (i != ((long) (sizeof (long int))))
10659 fprintf (f, "%ld\n", i);
10663 unsigned long i = ulongval ();
10664 if (i != ((long) (sizeof (long int))))
10666 fprintf (f, "%lu\n", i);
10668 exit (ferror (f) || fclose (f) != 0);
10674 rm -f conftest$ac_exeext
10675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10676 (eval $ac_link) 2>&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681 (eval $ac_try) 2>&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); }; }; then
10685 ac_cv_sizeof_long_int=`cat conftest.val`
10687 echo "$as_me: program exited with status $ac_status" >&5
10688 echo "$as_me: failed program was:" >&5
10689 cat conftest.$ac_ext >&5
10690 ( exit $ac_status )
10691 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5
10692 echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;}
10693 { (exit 1); exit 1; }; }
10695 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10700 ac_cv_sizeof_long_int=0
10703 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
10704 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
10705 cat >>confdefs.h <<_ACEOF
10706 @%:@define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
10710 echo "$as_me:$LINENO: checking for long long int" >&5
10711 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
10712 if test "${ac_cv_type_long_long_int+set}" = set; then
10713 echo $ECHO_N "(cached) $ECHO_C" >&6
10715 cat >conftest.$ac_ext <<_ACEOF
10716 #line $LINENO "configure"
10717 #include "confdefs.h"
10718 $ac_includes_default
10719 #ifdef F77_DUMMY_MAIN
10720 # ifdef __cplusplus
10723 int F77_DUMMY_MAIN() { return 1; }
10728 if ((long long int *) 0)
10730 if (sizeof (long long int))
10736 rm -f conftest.$ac_objext
10737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10738 (eval $ac_compile) 2>&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } &&
10742 { ac_try='test -s conftest.$ac_objext'
10743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744 (eval $ac_try) 2>&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; }; then
10748 ac_cv_type_long_long_int=yes
10750 echo "$as_me: failed program was:" >&5
10751 cat conftest.$ac_ext >&5
10752 ac_cv_type_long_long_int=no
10754 rm -f conftest.$ac_objext conftest.$ac_ext
10756 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
10757 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
10759 echo "$as_me:$LINENO: checking size of long long int" >&5
10760 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
10761 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10764 if test "$ac_cv_type_long_long_int" = yes; then
10765 # The cast to unsigned long works around a bug in the HP C Compiler
10766 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10767 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10768 # This bug is HP SR number 8606223364.
10769 if test "$cross_compiling" = yes; then
10770 # Depending upon the size, compute the lo and hi bounds.
10771 cat >conftest.$ac_ext <<_ACEOF
10772 #line $LINENO "configure"
10773 #include "confdefs.h"
10774 $ac_includes_default
10775 #ifdef F77_DUMMY_MAIN
10776 # ifdef __cplusplus
10779 int F77_DUMMY_MAIN() { return 1; }
10784 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) >= 0)@:>@;
10785 test_array @<:@0@:>@ = 0
10791 rm -f conftest.$ac_objext
10792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10793 (eval $ac_compile) 2>&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); } &&
10797 { ac_try='test -s conftest.$ac_objext'
10798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799 (eval $ac_try) 2>&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; }; then
10805 cat >conftest.$ac_ext <<_ACEOF
10806 #line $LINENO "configure"
10807 #include "confdefs.h"
10808 $ac_includes_default
10809 #ifdef F77_DUMMY_MAIN
10810 # ifdef __cplusplus
10813 int F77_DUMMY_MAIN() { return 1; }
10818 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)@:>@;
10819 test_array @<:@0@:>@ = 0
10825 rm -f conftest.$ac_objext
10826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10827 (eval $ac_compile) 2>&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); } &&
10831 { ac_try='test -s conftest.$ac_objext'
10832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10833 (eval $ac_try) 2>&5
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; }; then
10837 ac_hi=$ac_mid; break
10839 echo "$as_me: failed program was:" >&5
10840 cat conftest.$ac_ext >&5
10841 ac_lo=`expr $ac_mid + 1`
10842 if test $ac_lo -le $ac_mid; then
10846 ac_mid=`expr 2 '*' $ac_mid + 1`
10848 rm -f conftest.$ac_objext conftest.$ac_ext
10851 echo "$as_me: failed program was:" >&5
10852 cat conftest.$ac_ext >&5
10853 cat >conftest.$ac_ext <<_ACEOF
10854 #line $LINENO "configure"
10855 #include "confdefs.h"
10856 $ac_includes_default
10857 #ifdef F77_DUMMY_MAIN
10858 # ifdef __cplusplus
10861 int F77_DUMMY_MAIN() { return 1; }
10866 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) < 0)@:>@;
10867 test_array @<:@0@:>@ = 0
10873 rm -f conftest.$ac_objext
10874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10875 (eval $ac_compile) 2>&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); } &&
10879 { ac_try='test -s conftest.$ac_objext'
10880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10881 (eval $ac_try) 2>&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); }; }; then
10887 cat >conftest.$ac_ext <<_ACEOF
10888 #line $LINENO "configure"
10889 #include "confdefs.h"
10890 $ac_includes_default
10891 #ifdef F77_DUMMY_MAIN
10892 # ifdef __cplusplus
10895 int F77_DUMMY_MAIN() { return 1; }
10900 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)@:>@;
10901 test_array @<:@0@:>@ = 0
10907 rm -f conftest.$ac_objext
10908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10909 (eval $ac_compile) 2>&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); } &&
10913 { ac_try='test -s conftest.$ac_objext'
10914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915 (eval $ac_try) 2>&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; }; then
10919 ac_lo=$ac_mid; break
10921 echo "$as_me: failed program was:" >&5
10922 cat conftest.$ac_ext >&5
10923 ac_hi=`expr '(' $ac_mid ')' - 1`
10924 if test $ac_mid -le $ac_hi; then
10928 ac_mid=`expr 2 '*' $ac_mid`
10930 rm -f conftest.$ac_objext conftest.$ac_ext
10933 echo "$as_me: failed program was:" >&5
10934 cat conftest.$ac_ext >&5
10937 rm -f conftest.$ac_objext conftest.$ac_ext
10939 rm -f conftest.$ac_objext conftest.$ac_ext
10940 # Binary search between lo and hi bounds.
10941 while test "x$ac_lo" != "x$ac_hi"; do
10942 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10943 cat >conftest.$ac_ext <<_ACEOF
10944 #line $LINENO "configure"
10945 #include "confdefs.h"
10946 $ac_includes_default
10947 #ifdef F77_DUMMY_MAIN
10948 # ifdef __cplusplus
10951 int F77_DUMMY_MAIN() { return 1; }
10956 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)@:>@;
10957 test_array @<:@0@:>@ = 0
10963 rm -f conftest.$ac_objext
10964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10965 (eval $ac_compile) 2>&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); } &&
10969 { ac_try='test -s conftest.$ac_objext'
10970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10971 (eval $ac_try) 2>&5
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); }; }; then
10977 echo "$as_me: failed program was:" >&5
10978 cat conftest.$ac_ext >&5
10979 ac_lo=`expr '(' $ac_mid ')' + 1`
10981 rm -f conftest.$ac_objext conftest.$ac_ext
10984 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
10985 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5
10986 echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;}
10987 { (exit 1); exit 1; }; } ;;
10990 if test "$cross_compiling" = yes; then
10991 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10992 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10993 { (exit 1); exit 1; }; }
10995 cat >conftest.$ac_ext <<_ACEOF
10996 #line $LINENO "configure"
10997 #include "confdefs.h"
10998 $ac_includes_default
10999 long longval () { return (long) (sizeof (long long int)); }
11000 unsigned long ulongval () { return (long) (sizeof (long long int)); }
11001 @%:@include <stdio.h>
11002 @%:@include <stdlib.h>
11003 #ifdef F77_DUMMY_MAIN
11004 # ifdef __cplusplus
11007 int F77_DUMMY_MAIN() { return 1; }
11013 FILE *f = fopen ("conftest.val", "w");
11016 if (((long) (sizeof (long long int))) < 0)
11018 long i = longval ();
11019 if (i != ((long) (sizeof (long long int))))
11021 fprintf (f, "%ld\n", i);
11025 unsigned long i = ulongval ();
11026 if (i != ((long) (sizeof (long long int))))
11028 fprintf (f, "%lu\n", i);
11030 exit (ferror (f) || fclose (f) != 0);
11036 rm -f conftest$ac_exeext
11037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11038 (eval $ac_link) 2>&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043 (eval $ac_try) 2>&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; }; then
11047 ac_cv_sizeof_long_long_int=`cat conftest.val`
11049 echo "$as_me: program exited with status $ac_status" >&5
11050 echo "$as_me: failed program was:" >&5
11051 cat conftest.$ac_ext >&5
11052 ( exit $ac_status )
11053 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5
11054 echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;}
11055 { (exit 1); exit 1; }; }
11057 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11062 ac_cv_sizeof_long_long_int=0
11065 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
11066 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
11067 cat >>confdefs.h <<_ACEOF
11068 @%:@define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
11073 # Sanity check long long for some platforms (AIX)
11074 if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
11075 ac_cv_sizeof_long_long_int=0
11078 # More checks for data types
11079 echo "$as_me:$LINENO: checking for u_int type" >&5
11080 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
11081 if test "${ac_cv_have_u_int+set}" = set; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11085 cat >conftest.$ac_ext <<_ACEOF
11086 #line $LINENO "configure"
11087 #include "confdefs.h"
11088 #include <sys/types.h>
11089 #ifdef F77_DUMMY_MAIN
11090 # ifdef __cplusplus
11093 int F77_DUMMY_MAIN() { return 1; }
11103 rm -f conftest.$ac_objext
11104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11105 (eval $ac_compile) 2>&5
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } &&
11109 { ac_try='test -s conftest.$ac_objext'
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; }; then
11115 ac_cv_have_u_int="yes"
11117 echo "$as_me: failed program was:" >&5
11118 cat conftest.$ac_ext >&5
11119 ac_cv_have_u_int="no"
11122 rm -f conftest.$ac_objext conftest.$ac_ext
11125 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
11126 echo "${ECHO_T}$ac_cv_have_u_int" >&6
11127 if test "x$ac_cv_have_u_int" = "xyes" ; then
11128 cat >>confdefs.h <<\_ACEOF
11129 @%:@define HAVE_U_INT 1
11135 echo "$as_me:$LINENO: checking for intXX_t types" >&5
11136 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
11137 if test "${ac_cv_have_intxx_t+set}" = set; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11141 cat >conftest.$ac_ext <<_ACEOF
11142 #line $LINENO "configure"
11143 #include "confdefs.h"
11144 #include <sys/types.h>
11145 #ifdef F77_DUMMY_MAIN
11146 # ifdef __cplusplus
11149 int F77_DUMMY_MAIN() { return 1; }
11154 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11159 rm -f conftest.$ac_objext
11160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11161 (eval $ac_compile) 2>&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } &&
11165 { ac_try='test -s conftest.$ac_objext'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }; then
11171 ac_cv_have_intxx_t="yes"
11173 echo "$as_me: failed program was:" >&5
11174 cat conftest.$ac_ext >&5
11175 ac_cv_have_intxx_t="no"
11178 rm -f conftest.$ac_objext conftest.$ac_ext
11181 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
11182 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
11183 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
11184 cat >>confdefs.h <<\_ACEOF
11185 @%:@define HAVE_INTXX_T 1
11191 if (test -z "$have_intxx_t" && \
11192 test "x$ac_cv_header_stdint_h" = "xyes")
11194 echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
11195 echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6
11196 cat >conftest.$ac_ext <<_ACEOF
11197 #line $LINENO "configure"
11198 #include "confdefs.h"
11199 #include <stdint.h>
11200 #ifdef F77_DUMMY_MAIN
11201 # ifdef __cplusplus
11204 int F77_DUMMY_MAIN() { return 1; }
11209 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11214 rm -f conftest.$ac_objext
11215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11216 (eval $ac_compile) 2>&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); } &&
11220 { ac_try='test -s conftest.$ac_objext'
11221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222 (eval $ac_try) 2>&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); }; }; then
11227 cat >>confdefs.h <<\_ACEOF
11228 @%:@define HAVE_INTXX_T 1
11231 echo "$as_me:$LINENO: result: yes" >&5
11232 echo "${ECHO_T}yes" >&6
11235 echo "$as_me: failed program was:" >&5
11236 cat conftest.$ac_ext >&5
11237 echo "$as_me:$LINENO: result: no" >&5
11238 echo "${ECHO_T}no" >&6
11241 rm -f conftest.$ac_objext conftest.$ac_ext
11244 echo "$as_me:$LINENO: checking for int64_t type" >&5
11245 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
11246 if test "${ac_cv_have_int64_t+set}" = set; then
11247 echo $ECHO_N "(cached) $ECHO_C" >&6
11250 cat >conftest.$ac_ext <<_ACEOF
11251 #line $LINENO "configure"
11252 #include "confdefs.h"
11253 #include <sys/types.h>
11254 #ifdef F77_DUMMY_MAIN
11255 # ifdef __cplusplus
11258 int F77_DUMMY_MAIN() { return 1; }
11268 rm -f conftest.$ac_objext
11269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11270 (eval $ac_compile) 2>&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } &&
11274 { ac_try='test -s conftest.$ac_objext'
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; }; then
11280 ac_cv_have_int64_t="yes"
11282 echo "$as_me: failed program was:" >&5
11283 cat conftest.$ac_ext >&5
11284 ac_cv_have_int64_t="no"
11287 rm -f conftest.$ac_objext conftest.$ac_ext
11290 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
11291 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
11292 if test "x$ac_cv_have_int64_t" = "xyes" ; then
11293 cat >>confdefs.h <<\_ACEOF
11294 @%:@define HAVE_INT64_T 1
11300 if test -z "$have_int64_t" ; then
11301 echo "$as_me:$LINENO: checking for int64_t type in sys/socket.h" >&5
11302 echo $ECHO_N "checking for int64_t type in sys/socket.h... $ECHO_C" >&6
11303 cat >conftest.$ac_ext <<_ACEOF
11304 #line $LINENO "configure"
11305 #include "confdefs.h"
11306 #include <sys/socket.h>
11307 #ifdef F77_DUMMY_MAIN
11308 # ifdef __cplusplus
11311 int F77_DUMMY_MAIN() { return 1; }
11321 rm -f conftest.$ac_objext
11322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11323 (eval $ac_compile) 2>&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } &&
11327 { ac_try='test -s conftest.$ac_objext'
11328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329 (eval $ac_try) 2>&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; }; then
11334 cat >>confdefs.h <<\_ACEOF
11335 @%:@define HAVE_INT64_T 1
11338 echo "$as_me:$LINENO: result: yes" >&5
11339 echo "${ECHO_T}yes" >&6
11342 echo "$as_me: failed program was:" >&5
11343 cat conftest.$ac_ext >&5
11344 echo "$as_me:$LINENO: result: no" >&5
11345 echo "${ECHO_T}no" >&6
11348 rm -f conftest.$ac_objext conftest.$ac_ext
11351 if test -z "$have_int64_t" ; then
11352 echo "$as_me:$LINENO: checking for int64_t type in sys/bitypes.h" >&5
11353 echo $ECHO_N "checking for int64_t type in sys/bitypes.h... $ECHO_C" >&6
11354 cat >conftest.$ac_ext <<_ACEOF
11355 #line $LINENO "configure"
11356 #include "confdefs.h"
11357 #include <sys/bitypes.h>
11358 #ifdef F77_DUMMY_MAIN
11359 # ifdef __cplusplus
11362 int F77_DUMMY_MAIN() { return 1; }
11372 rm -f conftest.$ac_objext
11373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11374 (eval $ac_compile) 2>&5
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); } &&
11378 { ac_try='test -s conftest.$ac_objext'
11379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11380 (eval $ac_try) 2>&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); }; }; then
11385 cat >>confdefs.h <<\_ACEOF
11386 @%:@define HAVE_INT64_T 1
11389 echo "$as_me:$LINENO: result: yes" >&5
11390 echo "${ECHO_T}yes" >&6
11393 echo "$as_me: failed program was:" >&5
11394 cat conftest.$ac_ext >&5
11395 echo "$as_me:$LINENO: result: no" >&5
11396 echo "${ECHO_T}no" >&6
11399 rm -f conftest.$ac_objext conftest.$ac_ext
11402 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
11403 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
11404 if test "${ac_cv_have_u_intxx_t+set}" = set; then
11405 echo $ECHO_N "(cached) $ECHO_C" >&6
11408 cat >conftest.$ac_ext <<_ACEOF
11409 #line $LINENO "configure"
11410 #include "confdefs.h"
11411 #include <sys/types.h>
11412 #ifdef F77_DUMMY_MAIN
11413 # ifdef __cplusplus
11416 int F77_DUMMY_MAIN() { return 1; }
11421 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11426 rm -f conftest.$ac_objext
11427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11428 (eval $ac_compile) 2>&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } &&
11432 { ac_try='test -s conftest.$ac_objext'
11433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434 (eval $ac_try) 2>&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); }; }; then
11438 ac_cv_have_u_intxx_t="yes"
11440 echo "$as_me: failed program was:" >&5
11441 cat conftest.$ac_ext >&5
11442 ac_cv_have_u_intxx_t="no"
11445 rm -f conftest.$ac_objext conftest.$ac_ext
11448 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
11449 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
11450 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
11451 cat >>confdefs.h <<\_ACEOF
11452 @%:@define HAVE_U_INTXX_T 1
11458 if test -z "$have_u_intxx_t" ; then
11459 echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
11460 echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6
11461 cat >conftest.$ac_ext <<_ACEOF
11462 #line $LINENO "configure"
11463 #include "confdefs.h"
11464 #include <sys/socket.h>
11465 #ifdef F77_DUMMY_MAIN
11466 # ifdef __cplusplus
11469 int F77_DUMMY_MAIN() { return 1; }
11474 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11479 rm -f conftest.$ac_objext
11480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11481 (eval $ac_compile) 2>&5
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); } &&
11485 { ac_try='test -s conftest.$ac_objext'
11486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487 (eval $ac_try) 2>&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }; }; then
11492 cat >>confdefs.h <<\_ACEOF
11493 @%:@define HAVE_U_INTXX_T 1
11496 echo "$as_me:$LINENO: result: yes" >&5
11497 echo "${ECHO_T}yes" >&6
11500 echo "$as_me: failed program was:" >&5
11501 cat conftest.$ac_ext >&5
11502 echo "$as_me:$LINENO: result: no" >&5
11503 echo "${ECHO_T}no" >&6
11506 rm -f conftest.$ac_objext conftest.$ac_ext
11509 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
11510 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
11511 if test "${ac_cv_have_u_int64_t+set}" = set; then
11512 echo $ECHO_N "(cached) $ECHO_C" >&6
11515 cat >conftest.$ac_ext <<_ACEOF
11516 #line $LINENO "configure"
11517 #include "confdefs.h"
11518 #include <sys/types.h>
11519 #ifdef F77_DUMMY_MAIN
11520 # ifdef __cplusplus
11523 int F77_DUMMY_MAIN() { return 1; }
11528 u_int64_t a; a = 1;
11533 rm -f conftest.$ac_objext
11534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11535 (eval $ac_compile) 2>&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } &&
11539 { ac_try='test -s conftest.$ac_objext'
11540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; }; then
11545 ac_cv_have_u_int64_t="yes"
11547 echo "$as_me: failed program was:" >&5
11548 cat conftest.$ac_ext >&5
11549 ac_cv_have_u_int64_t="no"
11552 rm -f conftest.$ac_objext conftest.$ac_ext
11555 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
11556 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
11557 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
11558 cat >>confdefs.h <<\_ACEOF
11559 @%:@define HAVE_U_INT64_T 1
11565 if test -z "$have_u_int64_t" ; then
11566 echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
11567 echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6
11568 cat >conftest.$ac_ext <<_ACEOF
11569 #line $LINENO "configure"
11570 #include "confdefs.h"
11571 #include <sys/bitypes.h>
11572 #ifdef F77_DUMMY_MAIN
11573 # ifdef __cplusplus
11576 int F77_DUMMY_MAIN() { return 1; }
11586 rm -f conftest.$ac_objext
11587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11588 (eval $ac_compile) 2>&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } &&
11592 { ac_try='test -s conftest.$ac_objext'
11593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11594 (eval $ac_try) 2>&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }; }; then
11599 cat >>confdefs.h <<\_ACEOF
11600 @%:@define HAVE_U_INT64_T 1
11603 echo "$as_me:$LINENO: result: yes" >&5
11604 echo "${ECHO_T}yes" >&6
11607 echo "$as_me: failed program was:" >&5
11608 cat conftest.$ac_ext >&5
11609 echo "$as_me:$LINENO: result: no" >&5
11610 echo "${ECHO_T}no" >&6
11613 rm -f conftest.$ac_objext conftest.$ac_ext
11616 if test -z "$have_u_intxx_t" ; then
11617 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
11618 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
11619 if test "${ac_cv_have_uintxx_t+set}" = set; then
11620 echo $ECHO_N "(cached) $ECHO_C" >&6
11623 cat >conftest.$ac_ext <<_ACEOF
11624 #line $LINENO "configure"
11625 #include "confdefs.h"
11627 #include <sys/types.h>
11629 #ifdef F77_DUMMY_MAIN
11630 # ifdef __cplusplus
11633 int F77_DUMMY_MAIN() { return 1; }
11638 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
11643 rm -f conftest.$ac_objext
11644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11645 (eval $ac_compile) 2>&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); } &&
11649 { ac_try='test -s conftest.$ac_objext'
11650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11651 (eval $ac_try) 2>&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); }; }; then
11655 ac_cv_have_uintxx_t="yes"
11657 echo "$as_me: failed program was:" >&5
11658 cat conftest.$ac_ext >&5
11659 ac_cv_have_uintxx_t="no"
11662 rm -f conftest.$ac_objext conftest.$ac_ext
11665 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
11666 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
11667 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
11668 cat >>confdefs.h <<\_ACEOF
11669 @%:@define HAVE_UINTXX_T 1
11675 if test -z "$have_uintxx_t" ; then
11676 echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
11677 echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6
11678 cat >conftest.$ac_ext <<_ACEOF
11679 #line $LINENO "configure"
11680 #include "confdefs.h"
11681 #include <stdint.h>
11682 #ifdef F77_DUMMY_MAIN
11683 # ifdef __cplusplus
11686 int F77_DUMMY_MAIN() { return 1; }
11691 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
11696 rm -f conftest.$ac_objext
11697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11698 (eval $ac_compile) 2>&5
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); } &&
11702 { ac_try='test -s conftest.$ac_objext'
11703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11704 (eval $ac_try) 2>&5
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); }; }; then
11709 cat >>confdefs.h <<\_ACEOF
11710 @%:@define HAVE_UINTXX_T 1
11713 echo "$as_me:$LINENO: result: yes" >&5
11714 echo "${ECHO_T}yes" >&6
11717 echo "$as_me: failed program was:" >&5
11718 cat conftest.$ac_ext >&5
11719 echo "$as_me:$LINENO: result: no" >&5
11720 echo "${ECHO_T}no" >&6
11723 rm -f conftest.$ac_objext conftest.$ac_ext
11726 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
11727 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
11729 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
11730 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
11731 cat >conftest.$ac_ext <<_ACEOF
11732 #line $LINENO "configure"
11733 #include "confdefs.h"
11735 #include <sys/bitypes.h>
11737 #ifdef F77_DUMMY_MAIN
11738 # ifdef __cplusplus
11741 int F77_DUMMY_MAIN() { return 1; }
11747 int8_t a; int16_t b; int32_t c;
11748 u_int8_t e; u_int16_t f; u_int32_t g;
11749 a = b = c = e = f = g = 1;
11755 rm -f conftest.$ac_objext
11756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11757 (eval $ac_compile) 2>&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } &&
11761 { ac_try='test -s conftest.$ac_objext'
11762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763 (eval $ac_try) 2>&5
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }; }; then
11768 cat >>confdefs.h <<\_ACEOF
11769 @%:@define HAVE_U_INTXX_T 1
11772 cat >>confdefs.h <<\_ACEOF
11773 @%:@define HAVE_INTXX_T 1
11776 echo "$as_me:$LINENO: result: yes" >&5
11777 echo "${ECHO_T}yes" >&6
11780 echo "$as_me: failed program was:" >&5
11781 cat conftest.$ac_ext >&5
11782 echo "$as_me:$LINENO: result: no" >&5
11783 echo "${ECHO_T}no" >&6
11786 rm -f conftest.$ac_objext conftest.$ac_ext
11790 echo "$as_me:$LINENO: checking for u_char" >&5
11791 echo $ECHO_N "checking for u_char... $ECHO_C" >&6
11792 if test "${ac_cv_have_u_char+set}" = set; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11796 cat >conftest.$ac_ext <<_ACEOF
11797 #line $LINENO "configure"
11798 #include "confdefs.h"
11800 #include <sys/types.h>
11802 #ifdef F77_DUMMY_MAIN
11803 # ifdef __cplusplus
11806 int F77_DUMMY_MAIN() { return 1; }
11811 u_char foo; foo = 125;
11816 rm -f conftest.$ac_objext
11817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11818 (eval $ac_compile) 2>&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); } &&
11822 { ac_try='test -s conftest.$ac_objext'
11823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824 (eval $ac_try) 2>&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; }; then
11828 ac_cv_have_u_char="yes"
11830 echo "$as_me: failed program was:" >&5
11831 cat conftest.$ac_ext >&5
11832 ac_cv_have_u_char="no"
11835 rm -f conftest.$ac_objext conftest.$ac_ext
11838 echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
11839 echo "${ECHO_T}$ac_cv_have_u_char" >&6
11840 if test "x$ac_cv_have_u_char" = "xyes" ; then
11841 cat >>confdefs.h <<\_ACEOF
11842 @%:@define HAVE_U_CHAR 1
11848 echo "$as_me:$LINENO: checking for socklen_t" >&5
11849 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11850 if test "${ac_cv_type_socklen_t+set}" = set; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
11853 cat >conftest.$ac_ext <<_ACEOF
11854 #line $LINENO "configure"
11855 #include "confdefs.h"
11856 #include <sys/types.h>
11857 #include <sys/socket.h>
11859 #ifdef F77_DUMMY_MAIN
11860 # ifdef __cplusplus
11863 int F77_DUMMY_MAIN() { return 1; }
11868 if ((socklen_t *) 0)
11870 if (sizeof (socklen_t))
11876 rm -f conftest.$ac_objext
11877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11878 (eval $ac_compile) 2>&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); } &&
11882 { ac_try='test -s conftest.$ac_objext'
11883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884 (eval $ac_try) 2>&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); }; }; then
11888 ac_cv_type_socklen_t=yes
11890 echo "$as_me: failed program was:" >&5
11891 cat conftest.$ac_ext >&5
11892 ac_cv_type_socklen_t=no
11894 rm -f conftest.$ac_objext conftest.$ac_ext
11896 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
11897 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
11898 if test $ac_cv_type_socklen_t = yes; then
11902 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
11903 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
11904 if test "${curl_cv_socklen_t_equiv+set}" = set; then
11905 echo $ECHO_N "(cached) $ECHO_C" >&6
11908 # Systems have either "struct sockaddr *" or
11909 # "void *" as the second argument to getpeername
11910 curl_cv_socklen_t_equiv=
11911 for arg2 in "struct sockaddr" void; do
11912 for t in int size_t unsigned long "unsigned long"; do
11913 cat >conftest.$ac_ext <<_ACEOF
11914 #line $LINENO "configure"
11915 #include "confdefs.h"
11917 #include <sys/types.h>
11918 #include <sys/socket.h>
11920 int getpeername (int, $arg2 *, $t *);
11922 #ifdef F77_DUMMY_MAIN
11923 # ifdef __cplusplus
11926 int F77_DUMMY_MAIN() { return 1; }
11933 getpeername(0,0,&len);
11939 rm -f conftest.$ac_objext
11940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11941 (eval $ac_compile) 2>&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); } &&
11945 { ac_try='test -s conftest.$ac_objext'
11946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947 (eval $ac_try) 2>&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; }; then
11952 curl_cv_socklen_t_equiv="$t"
11956 echo "$as_me: failed program was:" >&5
11957 cat conftest.$ac_ext >&5
11959 rm -f conftest.$ac_objext conftest.$ac_ext
11963 if test "x$curl_cv_socklen_t_equiv" = x; then
11964 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
11965 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
11966 { (exit 1); exit 1; }; }
11971 echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
11972 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
11974 cat >>confdefs.h <<_ACEOF
11975 @%:@define socklen_t $curl_cv_socklen_t_equiv
11982 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
11983 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
11984 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11987 cat >conftest.$ac_ext <<_ACEOF
11988 #line $LINENO "configure"
11989 #include "confdefs.h"
11990 #include <signal.h>
11992 #ifdef F77_DUMMY_MAIN
11993 # ifdef __cplusplus
11996 int F77_DUMMY_MAIN() { return 1; }
12001 if ((sig_atomic_t *) 0)
12003 if (sizeof (sig_atomic_t))
12009 rm -f conftest.$ac_objext
12010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12011 (eval $ac_compile) 2>&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } &&
12015 { ac_try='test -s conftest.$ac_objext'
12016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017 (eval $ac_try) 2>&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 ac_cv_type_sig_atomic_t=yes
12023 echo "$as_me: failed program was:" >&5
12024 cat conftest.$ac_ext >&5
12025 ac_cv_type_sig_atomic_t=no
12027 rm -f conftest.$ac_objext conftest.$ac_ext
12029 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
12030 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
12031 if test $ac_cv_type_sig_atomic_t = yes; then
12033 cat >>confdefs.h <<_ACEOF
12034 @%:@define HAVE_SIG_ATOMIC_T 1
12041 echo "$as_me:$LINENO: checking for size_t" >&5
12042 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12043 if test "${ac_cv_have_size_t+set}" = set; then
12044 echo $ECHO_N "(cached) $ECHO_C" >&6
12047 cat >conftest.$ac_ext <<_ACEOF
12048 #line $LINENO "configure"
12049 #include "confdefs.h"
12051 #include <sys/types.h>
12053 #ifdef F77_DUMMY_MAIN
12054 # ifdef __cplusplus
12057 int F77_DUMMY_MAIN() { return 1; }
12062 size_t foo; foo = 1235;
12067 rm -f conftest.$ac_objext
12068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12069 (eval $ac_compile) 2>&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); } &&
12073 { ac_try='test -s conftest.$ac_objext'
12074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12075 (eval $ac_try) 2>&5
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); }; }; then
12079 ac_cv_have_size_t="yes"
12081 echo "$as_me: failed program was:" >&5
12082 cat conftest.$ac_ext >&5
12083 ac_cv_have_size_t="no"
12086 rm -f conftest.$ac_objext conftest.$ac_ext
12089 echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
12090 echo "${ECHO_T}$ac_cv_have_size_t" >&6
12091 if test "x$ac_cv_have_size_t" = "xyes" ; then
12092 cat >>confdefs.h <<\_ACEOF
12093 @%:@define HAVE_SIZE_T 1
12098 echo "$as_me:$LINENO: checking for ssize_t" >&5
12099 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12100 if test "${ac_cv_have_ssize_t+set}" = set; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12104 cat >conftest.$ac_ext <<_ACEOF
12105 #line $LINENO "configure"
12106 #include "confdefs.h"
12108 #include <sys/types.h>
12110 #ifdef F77_DUMMY_MAIN
12111 # ifdef __cplusplus
12114 int F77_DUMMY_MAIN() { return 1; }
12119 ssize_t foo; foo = 1235;
12124 rm -f conftest.$ac_objext
12125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12126 (eval $ac_compile) 2>&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); } &&
12130 { ac_try='test -s conftest.$ac_objext'
12131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12132 (eval $ac_try) 2>&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; }; then
12136 ac_cv_have_ssize_t="yes"
12138 echo "$as_me: failed program was:" >&5
12139 cat conftest.$ac_ext >&5
12140 ac_cv_have_ssize_t="no"
12143 rm -f conftest.$ac_objext conftest.$ac_ext
12146 echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
12147 echo "${ECHO_T}$ac_cv_have_ssize_t" >&6
12148 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
12149 cat >>confdefs.h <<\_ACEOF
12150 @%:@define HAVE_SSIZE_T 1
12155 echo "$as_me:$LINENO: checking for clock_t" >&5
12156 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12157 if test "${ac_cv_have_clock_t+set}" = set; then
12158 echo $ECHO_N "(cached) $ECHO_C" >&6
12161 cat >conftest.$ac_ext <<_ACEOF
12162 #line $LINENO "configure"
12163 #include "confdefs.h"
12167 #ifdef F77_DUMMY_MAIN
12168 # ifdef __cplusplus
12171 int F77_DUMMY_MAIN() { return 1; }
12176 clock_t foo; foo = 1235;
12181 rm -f conftest.$ac_objext
12182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12183 (eval $ac_compile) 2>&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } &&
12187 { ac_try='test -s conftest.$ac_objext'
12188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12189 (eval $ac_try) 2>&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); }; }; then
12193 ac_cv_have_clock_t="yes"
12195 echo "$as_me: failed program was:" >&5
12196 cat conftest.$ac_ext >&5
12197 ac_cv_have_clock_t="no"
12200 rm -f conftest.$ac_objext conftest.$ac_ext
12203 echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
12204 echo "${ECHO_T}$ac_cv_have_clock_t" >&6
12205 if test "x$ac_cv_have_clock_t" = "xyes" ; then
12206 cat >>confdefs.h <<\_ACEOF
12207 @%:@define HAVE_CLOCK_T 1
12212 echo "$as_me:$LINENO: checking for sa_family_t" >&5
12213 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
12214 if test "${ac_cv_have_sa_family_t+set}" = set; then
12215 echo $ECHO_N "(cached) $ECHO_C" >&6
12218 cat >conftest.$ac_ext <<_ACEOF
12219 #line $LINENO "configure"
12220 #include "confdefs.h"
12222 #include <sys/types.h>
12223 #include <sys/socket.h>
12225 #ifdef F77_DUMMY_MAIN
12226 # ifdef __cplusplus
12229 int F77_DUMMY_MAIN() { return 1; }
12234 sa_family_t foo; foo = 1235;
12239 rm -f conftest.$ac_objext
12240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12241 (eval $ac_compile) 2>&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); } &&
12245 { ac_try='test -s conftest.$ac_objext'
12246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247 (eval $ac_try) 2>&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); }; }; then
12251 ac_cv_have_sa_family_t="yes"
12253 echo "$as_me: failed program was:" >&5
12254 cat conftest.$ac_ext >&5
12255 cat >conftest.$ac_ext <<_ACEOF
12256 #line $LINENO "configure"
12257 #include "confdefs.h"
12259 #include <sys/types.h>
12260 #include <sys/socket.h>
12261 #include <netinet/in.h>
12263 #ifdef F77_DUMMY_MAIN
12264 # ifdef __cplusplus
12267 int F77_DUMMY_MAIN() { return 1; }
12272 sa_family_t foo; foo = 1235;
12277 rm -f conftest.$ac_objext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12279 (eval $ac_compile) 2>&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } &&
12283 { ac_try='test -s conftest.$ac_objext'
12284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285 (eval $ac_try) 2>&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; }; then
12289 ac_cv_have_sa_family_t="yes"
12291 echo "$as_me: failed program was:" >&5
12292 cat conftest.$ac_ext >&5
12293 ac_cv_have_sa_family_t="no"
12296 rm -f conftest.$ac_objext conftest.$ac_ext
12299 rm -f conftest.$ac_objext conftest.$ac_ext
12302 echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
12303 echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6
12304 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
12305 cat >>confdefs.h <<\_ACEOF
12306 @%:@define HAVE_SA_FAMILY_T 1
12311 echo "$as_me:$LINENO: checking for pid_t" >&5
12312 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12313 if test "${ac_cv_have_pid_t+set}" = set; then
12314 echo $ECHO_N "(cached) $ECHO_C" >&6
12317 cat >conftest.$ac_ext <<_ACEOF
12318 #line $LINENO "configure"
12319 #include "confdefs.h"
12321 #include <sys/types.h>
12323 #ifdef F77_DUMMY_MAIN
12324 # ifdef __cplusplus
12327 int F77_DUMMY_MAIN() { return 1; }
12332 pid_t foo; foo = 1235;
12337 rm -f conftest.$ac_objext
12338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12339 (eval $ac_compile) 2>&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
12343 { ac_try='test -s conftest.$ac_objext'
12344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345 (eval $ac_try) 2>&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; }; then
12349 ac_cv_have_pid_t="yes"
12351 echo "$as_me: failed program was:" >&5
12352 cat conftest.$ac_ext >&5
12353 ac_cv_have_pid_t="no"
12356 rm -f conftest.$ac_objext conftest.$ac_ext
12359 echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
12360 echo "${ECHO_T}$ac_cv_have_pid_t" >&6
12361 if test "x$ac_cv_have_pid_t" = "xyes" ; then
12362 cat >>confdefs.h <<\_ACEOF
12363 @%:@define HAVE_PID_T 1
12368 echo "$as_me:$LINENO: checking for mode_t" >&5
12369 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12370 if test "${ac_cv_have_mode_t+set}" = set; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12374 cat >conftest.$ac_ext <<_ACEOF
12375 #line $LINENO "configure"
12376 #include "confdefs.h"
12378 #include <sys/types.h>
12380 #ifdef F77_DUMMY_MAIN
12381 # ifdef __cplusplus
12384 int F77_DUMMY_MAIN() { return 1; }
12389 mode_t foo; foo = 1235;
12394 rm -f conftest.$ac_objext
12395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12396 (eval $ac_compile) 2>&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); } &&
12400 { ac_try='test -s conftest.$ac_objext'
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; }; then
12406 ac_cv_have_mode_t="yes"
12408 echo "$as_me: failed program was:" >&5
12409 cat conftest.$ac_ext >&5
12410 ac_cv_have_mode_t="no"
12413 rm -f conftest.$ac_objext conftest.$ac_ext
12416 echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
12417 echo "${ECHO_T}$ac_cv_have_mode_t" >&6
12418 if test "x$ac_cv_have_mode_t" = "xyes" ; then
12419 cat >>confdefs.h <<\_ACEOF
12420 @%:@define HAVE_MODE_T 1
12426 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
12427 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
12428 if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
12432 cat >conftest.$ac_ext <<_ACEOF
12433 #line $LINENO "configure"
12434 #include "confdefs.h"
12436 #include <sys/types.h>
12437 #include <sys/socket.h>
12439 #ifdef F77_DUMMY_MAIN
12440 # ifdef __cplusplus
12443 int F77_DUMMY_MAIN() { return 1; }
12448 struct sockaddr_storage s;
12453 rm -f conftest.$ac_objext
12454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12455 (eval $ac_compile) 2>&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); } &&
12459 { ac_try='test -s conftest.$ac_objext'
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; }; then
12465 ac_cv_have_struct_sockaddr_storage="yes"
12467 echo "$as_me: failed program was:" >&5
12468 cat conftest.$ac_ext >&5
12469 ac_cv_have_struct_sockaddr_storage="no"
12472 rm -f conftest.$ac_objext conftest.$ac_ext
12475 echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
12476 echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6
12477 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
12478 cat >>confdefs.h <<\_ACEOF
12479 @%:@define HAVE_STRUCT_SOCKADDR_STORAGE 1
12484 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
12485 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
12486 if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
12487 echo $ECHO_N "(cached) $ECHO_C" >&6
12490 cat >conftest.$ac_ext <<_ACEOF
12491 #line $LINENO "configure"
12492 #include "confdefs.h"
12494 #include <sys/types.h>
12495 #include <netinet/in.h>
12497 #ifdef F77_DUMMY_MAIN
12498 # ifdef __cplusplus
12501 int F77_DUMMY_MAIN() { return 1; }
12506 struct sockaddr_in6 s; s.sin6_family = 0;
12511 rm -f conftest.$ac_objext
12512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12513 (eval $ac_compile) 2>&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } &&
12517 { ac_try='test -s conftest.$ac_objext'
12518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519 (eval $ac_try) 2>&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; }; then
12523 ac_cv_have_struct_sockaddr_in6="yes"
12525 echo "$as_me: failed program was:" >&5
12526 cat conftest.$ac_ext >&5
12527 ac_cv_have_struct_sockaddr_in6="no"
12530 rm -f conftest.$ac_objext conftest.$ac_ext
12533 echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
12534 echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6
12535 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
12536 cat >>confdefs.h <<\_ACEOF
12537 @%:@define HAVE_STRUCT_SOCKADDR_IN6 1
12542 echo "$as_me:$LINENO: checking for struct in6_addr" >&5
12543 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
12544 if test "${ac_cv_have_struct_in6_addr+set}" = set; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
12548 cat >conftest.$ac_ext <<_ACEOF
12549 #line $LINENO "configure"
12550 #include "confdefs.h"
12552 #include <sys/types.h>
12553 #include <netinet/in.h>
12555 #ifdef F77_DUMMY_MAIN
12556 # ifdef __cplusplus
12559 int F77_DUMMY_MAIN() { return 1; }
12564 struct in6_addr s; s.s6_addr[0] = 0;
12569 rm -f conftest.$ac_objext
12570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12571 (eval $ac_compile) 2>&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); } &&
12575 { ac_try='test -s conftest.$ac_objext'
12576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577 (eval $ac_try) 2>&5
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; }; then
12581 ac_cv_have_struct_in6_addr="yes"
12583 echo "$as_me: failed program was:" >&5
12584 cat conftest.$ac_ext >&5
12585 ac_cv_have_struct_in6_addr="no"
12588 rm -f conftest.$ac_objext conftest.$ac_ext
12591 echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
12592 echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6
12593 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
12594 cat >>confdefs.h <<\_ACEOF
12595 @%:@define HAVE_STRUCT_IN6_ADDR 1
12600 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
12601 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
12602 if test "${ac_cv_have_struct_addrinfo+set}" = set; then
12603 echo $ECHO_N "(cached) $ECHO_C" >&6
12606 cat >conftest.$ac_ext <<_ACEOF
12607 #line $LINENO "configure"
12608 #include "confdefs.h"
12610 #include <sys/types.h>
12611 #include <sys/socket.h>
12614 #ifdef F77_DUMMY_MAIN
12615 # ifdef __cplusplus
12618 int F77_DUMMY_MAIN() { return 1; }
12623 struct addrinfo s; s.ai_flags = AI_PASSIVE;
12628 rm -f conftest.$ac_objext
12629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12630 (eval $ac_compile) 2>&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } &&
12634 { ac_try='test -s conftest.$ac_objext'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; }; then
12640 ac_cv_have_struct_addrinfo="yes"
12642 echo "$as_me: failed program was:" >&5
12643 cat conftest.$ac_ext >&5
12644 ac_cv_have_struct_addrinfo="no"
12647 rm -f conftest.$ac_objext conftest.$ac_ext
12650 echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
12651 echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6
12652 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
12653 cat >>confdefs.h <<\_ACEOF
12654 @%:@define HAVE_STRUCT_ADDRINFO 1
12659 echo "$as_me:$LINENO: checking for struct timeval" >&5
12660 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
12661 if test "${ac_cv_have_struct_timeval+set}" = set; then
12662 echo $ECHO_N "(cached) $ECHO_C" >&6
12665 cat >conftest.$ac_ext <<_ACEOF
12666 #line $LINENO "configure"
12667 #include "confdefs.h"
12668 #include <sys/time.h>
12669 #ifdef F77_DUMMY_MAIN
12670 # ifdef __cplusplus
12673 int F77_DUMMY_MAIN() { return 1; }
12678 struct timeval tv; tv.tv_sec = 1;
12683 rm -f conftest.$ac_objext
12684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12685 (eval $ac_compile) 2>&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); } &&
12689 { ac_try='test -s conftest.$ac_objext'
12690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691 (eval $ac_try) 2>&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; }; then
12695 ac_cv_have_struct_timeval="yes"
12697 echo "$as_me: failed program was:" >&5
12698 cat conftest.$ac_ext >&5
12699 ac_cv_have_struct_timeval="no"
12702 rm -f conftest.$ac_objext conftest.$ac_ext
12705 echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
12706 echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6
12707 if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
12708 cat >>confdefs.h <<\_ACEOF
12709 @%:@define HAVE_STRUCT_TIMEVAL 1
12712 have_struct_timeval=1
12715 # If we don't have int64_t then we can't compile sftp-server. So don't
12716 # even attempt to do it.
12717 if test "x$ac_cv_have_int64_t" = "xno" -a \
12718 "x$ac_cv_sizeof_long_int" != "x8" -a \
12719 "x$ac_cv_sizeof_long_long_int" = "x0" ; then
12722 if test "$cross_compiling" = yes; then
12723 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12724 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12725 { (exit 1); exit 1; }; }
12727 cat >conftest.$ac_ext <<_ACEOF
12728 #line $LINENO "configure"
12729 #include "confdefs.h"
12732 #include <string.h>
12733 #ifdef HAVE_SNPRINTF
12737 char expected_out[50];
12739 #if (SIZEOF_LONG_INT == 8)
12740 long int num = 0x7fffffffffffffff;
12742 long long num = 0x7fffffffffffffffll;
12744 strcpy(expected_out, "9223372036854775807");
12745 snprintf(buf, mazsize, "%lld", num);
12746 if(strcmp(buf, expected_out) != 0)
12751 main() { exit(0); }
12755 rm -f conftest$ac_exeext
12756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12757 (eval $ac_link) 2>&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762 (eval $ac_try) 2>&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; }; then
12768 echo "$as_me: program exited with status $ac_status" >&5
12769 echo "$as_me: failed program was:" >&5
12770 cat conftest.$ac_ext >&5
12771 ( exit $ac_status )
12772 cat >>confdefs.h <<\_ACEOF
12773 @%:@define BROKEN_SNPRINTF 1
12778 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12784 # look for field 'ut_host' in header 'utmp.h'
12785 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12786 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
12787 echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
12788 echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6
12789 if eval "test \"\${$ossh_varname+set}\" = set"; then
12790 echo $ECHO_N "(cached) $ECHO_C" >&6
12793 cat >conftest.$ac_ext <<_ACEOF
12794 #line $LINENO "configure"
12795 #include "confdefs.h"
12799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12800 egrep "ut_host" >/dev/null 2>&1; then
12801 eval "$ossh_varname=yes"
12803 eval "$ossh_varname=no"
12809 ossh_result=`eval 'echo $'"$ossh_varname"`
12810 if test -n "`echo $ossh_varname`"; then
12811 echo "$as_me:$LINENO: result: $ossh_result" >&5
12812 echo "${ECHO_T}$ossh_result" >&6
12813 if test "x$ossh_result" = "xyes"; then
12814 cat >>confdefs.h <<\_ACEOF
12815 @%:@define HAVE_HOST_IN_UTMP 1
12820 echo "$as_me:$LINENO: result: no" >&5
12821 echo "${ECHO_T}no" >&6
12825 # look for field 'ut_host' in header 'utmpx.h'
12826 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12827 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
12828 echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
12829 echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6
12830 if eval "test \"\${$ossh_varname+set}\" = set"; then
12831 echo $ECHO_N "(cached) $ECHO_C" >&6
12834 cat >conftest.$ac_ext <<_ACEOF
12835 #line $LINENO "configure"
12836 #include "confdefs.h"
12840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12841 egrep "ut_host" >/dev/null 2>&1; then
12842 eval "$ossh_varname=yes"
12844 eval "$ossh_varname=no"
12850 ossh_result=`eval 'echo $'"$ossh_varname"`
12851 if test -n "`echo $ossh_varname`"; then
12852 echo "$as_me:$LINENO: result: $ossh_result" >&5
12853 echo "${ECHO_T}$ossh_result" >&6
12854 if test "x$ossh_result" = "xyes"; then
12855 cat >>confdefs.h <<\_ACEOF
12856 @%:@define HAVE_HOST_IN_UTMPX 1
12861 echo "$as_me:$LINENO: result: no" >&5
12862 echo "${ECHO_T}no" >&6
12866 # look for field 'syslen' in header 'utmpx.h'
12867 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12868 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
12869 echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
12870 echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6
12871 if eval "test \"\${$ossh_varname+set}\" = set"; then
12872 echo $ECHO_N "(cached) $ECHO_C" >&6
12875 cat >conftest.$ac_ext <<_ACEOF
12876 #line $LINENO "configure"
12877 #include "confdefs.h"
12881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12882 egrep "syslen" >/dev/null 2>&1; then
12883 eval "$ossh_varname=yes"
12885 eval "$ossh_varname=no"
12891 ossh_result=`eval 'echo $'"$ossh_varname"`
12892 if test -n "`echo $ossh_varname`"; then
12893 echo "$as_me:$LINENO: result: $ossh_result" >&5
12894 echo "${ECHO_T}$ossh_result" >&6
12895 if test "x$ossh_result" = "xyes"; then
12896 cat >>confdefs.h <<\_ACEOF
12897 @%:@define HAVE_SYSLEN_IN_UTMPX 1
12902 echo "$as_me:$LINENO: result: no" >&5
12903 echo "${ECHO_T}no" >&6
12907 # look for field 'ut_pid' in header 'utmp.h'
12908 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12909 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
12910 echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
12911 echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6
12912 if eval "test \"\${$ossh_varname+set}\" = set"; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12916 cat >conftest.$ac_ext <<_ACEOF
12917 #line $LINENO "configure"
12918 #include "confdefs.h"
12922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12923 egrep "ut_pid" >/dev/null 2>&1; then
12924 eval "$ossh_varname=yes"
12926 eval "$ossh_varname=no"
12932 ossh_result=`eval 'echo $'"$ossh_varname"`
12933 if test -n "`echo $ossh_varname`"; then
12934 echo "$as_me:$LINENO: result: $ossh_result" >&5
12935 echo "${ECHO_T}$ossh_result" >&6
12936 if test "x$ossh_result" = "xyes"; then
12937 cat >>confdefs.h <<\_ACEOF
12938 @%:@define HAVE_PID_IN_UTMP 1
12943 echo "$as_me:$LINENO: result: no" >&5
12944 echo "${ECHO_T}no" >&6
12948 # look for field 'ut_type' in header 'utmp.h'
12949 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12950 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
12951 echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
12952 echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6
12953 if eval "test \"\${$ossh_varname+set}\" = set"; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12957 cat >conftest.$ac_ext <<_ACEOF
12958 #line $LINENO "configure"
12959 #include "confdefs.h"
12963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12964 egrep "ut_type" >/dev/null 2>&1; then
12965 eval "$ossh_varname=yes"
12967 eval "$ossh_varname=no"
12973 ossh_result=`eval 'echo $'"$ossh_varname"`
12974 if test -n "`echo $ossh_varname`"; then
12975 echo "$as_me:$LINENO: result: $ossh_result" >&5
12976 echo "${ECHO_T}$ossh_result" >&6
12977 if test "x$ossh_result" = "xyes"; then
12978 cat >>confdefs.h <<\_ACEOF
12979 @%:@define HAVE_TYPE_IN_UTMP 1
12984 echo "$as_me:$LINENO: result: no" >&5
12985 echo "${ECHO_T}no" >&6
12989 # look for field 'ut_type' in header 'utmpx.h'
12990 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12991 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
12992 echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
12993 echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6
12994 if eval "test \"\${$ossh_varname+set}\" = set"; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
12998 cat >conftest.$ac_ext <<_ACEOF
12999 #line $LINENO "configure"
13000 #include "confdefs.h"
13004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13005 egrep "ut_type" >/dev/null 2>&1; then
13006 eval "$ossh_varname=yes"
13008 eval "$ossh_varname=no"
13014 ossh_result=`eval 'echo $'"$ossh_varname"`
13015 if test -n "`echo $ossh_varname`"; then
13016 echo "$as_me:$LINENO: result: $ossh_result" >&5
13017 echo "${ECHO_T}$ossh_result" >&6
13018 if test "x$ossh_result" = "xyes"; then
13019 cat >>confdefs.h <<\_ACEOF
13020 @%:@define HAVE_TYPE_IN_UTMPX 1
13025 echo "$as_me:$LINENO: result: no" >&5
13026 echo "${ECHO_T}no" >&6
13030 # look for field 'ut_tv' in header 'utmp.h'
13031 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13032 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13033 echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
13034 echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6
13035 if eval "test \"\${$ossh_varname+set}\" = set"; then
13036 echo $ECHO_N "(cached) $ECHO_C" >&6
13039 cat >conftest.$ac_ext <<_ACEOF
13040 #line $LINENO "configure"
13041 #include "confdefs.h"
13045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13046 egrep "ut_tv" >/dev/null 2>&1; then
13047 eval "$ossh_varname=yes"
13049 eval "$ossh_varname=no"
13055 ossh_result=`eval 'echo $'"$ossh_varname"`
13056 if test -n "`echo $ossh_varname`"; then
13057 echo "$as_me:$LINENO: result: $ossh_result" >&5
13058 echo "${ECHO_T}$ossh_result" >&6
13059 if test "x$ossh_result" = "xyes"; then
13060 cat >>confdefs.h <<\_ACEOF
13061 @%:@define HAVE_TV_IN_UTMP 1
13066 echo "$as_me:$LINENO: result: no" >&5
13067 echo "${ECHO_T}no" >&6
13071 # look for field 'ut_id' in header 'utmp.h'
13072 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13073 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13074 echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
13075 echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6
13076 if eval "test \"\${$ossh_varname+set}\" = set"; then
13077 echo $ECHO_N "(cached) $ECHO_C" >&6
13080 cat >conftest.$ac_ext <<_ACEOF
13081 #line $LINENO "configure"
13082 #include "confdefs.h"
13086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13087 egrep "ut_id" >/dev/null 2>&1; then
13088 eval "$ossh_varname=yes"
13090 eval "$ossh_varname=no"
13096 ossh_result=`eval 'echo $'"$ossh_varname"`
13097 if test -n "`echo $ossh_varname`"; then
13098 echo "$as_me:$LINENO: result: $ossh_result" >&5
13099 echo "${ECHO_T}$ossh_result" >&6
13100 if test "x$ossh_result" = "xyes"; then
13101 cat >>confdefs.h <<\_ACEOF
13102 @%:@define HAVE_ID_IN_UTMP 1
13107 echo "$as_me:$LINENO: result: no" >&5
13108 echo "${ECHO_T}no" >&6
13112 # look for field 'ut_id' in header 'utmpx.h'
13113 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13114 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13115 echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
13116 echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6
13117 if eval "test \"\${$ossh_varname+set}\" = set"; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13121 cat >conftest.$ac_ext <<_ACEOF
13122 #line $LINENO "configure"
13123 #include "confdefs.h"
13127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13128 egrep "ut_id" >/dev/null 2>&1; then
13129 eval "$ossh_varname=yes"
13131 eval "$ossh_varname=no"
13137 ossh_result=`eval 'echo $'"$ossh_varname"`
13138 if test -n "`echo $ossh_varname`"; then
13139 echo "$as_me:$LINENO: result: $ossh_result" >&5
13140 echo "${ECHO_T}$ossh_result" >&6
13141 if test "x$ossh_result" = "xyes"; then
13142 cat >>confdefs.h <<\_ACEOF
13143 @%:@define HAVE_ID_IN_UTMPX 1
13148 echo "$as_me:$LINENO: result: no" >&5
13149 echo "${ECHO_T}no" >&6
13153 # look for field 'ut_addr' in header 'utmp.h'
13154 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13155 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13156 echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
13157 echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6
13158 if eval "test \"\${$ossh_varname+set}\" = set"; then
13159 echo $ECHO_N "(cached) $ECHO_C" >&6
13162 cat >conftest.$ac_ext <<_ACEOF
13163 #line $LINENO "configure"
13164 #include "confdefs.h"
13168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13169 egrep "ut_addr" >/dev/null 2>&1; then
13170 eval "$ossh_varname=yes"
13172 eval "$ossh_varname=no"
13178 ossh_result=`eval 'echo $'"$ossh_varname"`
13179 if test -n "`echo $ossh_varname`"; then
13180 echo "$as_me:$LINENO: result: $ossh_result" >&5
13181 echo "${ECHO_T}$ossh_result" >&6
13182 if test "x$ossh_result" = "xyes"; then
13183 cat >>confdefs.h <<\_ACEOF
13184 @%:@define HAVE_ADDR_IN_UTMP 1
13189 echo "$as_me:$LINENO: result: no" >&5
13190 echo "${ECHO_T}no" >&6
13194 # look for field 'ut_addr' in header 'utmpx.h'
13195 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13196 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13197 echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
13198 echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6
13199 if eval "test \"\${$ossh_varname+set}\" = set"; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13203 cat >conftest.$ac_ext <<_ACEOF
13204 #line $LINENO "configure"
13205 #include "confdefs.h"
13209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13210 egrep "ut_addr" >/dev/null 2>&1; then
13211 eval "$ossh_varname=yes"
13213 eval "$ossh_varname=no"
13219 ossh_result=`eval 'echo $'"$ossh_varname"`
13220 if test -n "`echo $ossh_varname`"; then
13221 echo "$as_me:$LINENO: result: $ossh_result" >&5
13222 echo "${ECHO_T}$ossh_result" >&6
13223 if test "x$ossh_result" = "xyes"; then
13224 cat >>confdefs.h <<\_ACEOF
13225 @%:@define HAVE_ADDR_IN_UTMPX 1
13230 echo "$as_me:$LINENO: result: no" >&5
13231 echo "${ECHO_T}no" >&6
13235 # look for field 'ut_addr_v6' in header 'utmp.h'
13236 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13237 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13238 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
13239 echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6
13240 if eval "test \"\${$ossh_varname+set}\" = set"; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13244 cat >conftest.$ac_ext <<_ACEOF
13245 #line $LINENO "configure"
13246 #include "confdefs.h"
13250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13251 egrep "ut_addr_v6" >/dev/null 2>&1; then
13252 eval "$ossh_varname=yes"
13254 eval "$ossh_varname=no"
13260 ossh_result=`eval 'echo $'"$ossh_varname"`
13261 if test -n "`echo $ossh_varname`"; then
13262 echo "$as_me:$LINENO: result: $ossh_result" >&5
13263 echo "${ECHO_T}$ossh_result" >&6
13264 if test "x$ossh_result" = "xyes"; then
13265 cat >>confdefs.h <<\_ACEOF
13266 @%:@define HAVE_ADDR_V6_IN_UTMP 1
13271 echo "$as_me:$LINENO: result: no" >&5
13272 echo "${ECHO_T}no" >&6
13276 # look for field 'ut_addr_v6' in header 'utmpx.h'
13277 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13278 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13279 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
13280 echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6
13281 if eval "test \"\${$ossh_varname+set}\" = set"; then
13282 echo $ECHO_N "(cached) $ECHO_C" >&6
13285 cat >conftest.$ac_ext <<_ACEOF
13286 #line $LINENO "configure"
13287 #include "confdefs.h"
13291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13292 egrep "ut_addr_v6" >/dev/null 2>&1; then
13293 eval "$ossh_varname=yes"
13295 eval "$ossh_varname=no"
13301 ossh_result=`eval 'echo $'"$ossh_varname"`
13302 if test -n "`echo $ossh_varname`"; then
13303 echo "$as_me:$LINENO: result: $ossh_result" >&5
13304 echo "${ECHO_T}$ossh_result" >&6
13305 if test "x$ossh_result" = "xyes"; then
13306 cat >>confdefs.h <<\_ACEOF
13307 @%:@define HAVE_ADDR_V6_IN_UTMPX 1
13312 echo "$as_me:$LINENO: result: no" >&5
13313 echo "${ECHO_T}no" >&6
13317 # look for field 'ut_exit' in header 'utmp.h'
13318 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13319 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
13320 echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
13321 echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6
13322 if eval "test \"\${$ossh_varname+set}\" = set"; then
13323 echo $ECHO_N "(cached) $ECHO_C" >&6
13326 cat >conftest.$ac_ext <<_ACEOF
13327 #line $LINENO "configure"
13328 #include "confdefs.h"
13332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13333 egrep "ut_exit" >/dev/null 2>&1; then
13334 eval "$ossh_varname=yes"
13336 eval "$ossh_varname=no"
13342 ossh_result=`eval 'echo $'"$ossh_varname"`
13343 if test -n "`echo $ossh_varname`"; then
13344 echo "$as_me:$LINENO: result: $ossh_result" >&5
13345 echo "${ECHO_T}$ossh_result" >&6
13346 if test "x$ossh_result" = "xyes"; then
13347 cat >>confdefs.h <<\_ACEOF
13348 @%:@define HAVE_EXIT_IN_UTMP 1
13353 echo "$as_me:$LINENO: result: no" >&5
13354 echo "${ECHO_T}no" >&6
13358 # look for field 'ut_time' in header 'utmp.h'
13359 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13360 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13361 echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
13362 echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6
13363 if eval "test \"\${$ossh_varname+set}\" = set"; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13367 cat >conftest.$ac_ext <<_ACEOF
13368 #line $LINENO "configure"
13369 #include "confdefs.h"
13373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13374 egrep "ut_time" >/dev/null 2>&1; then
13375 eval "$ossh_varname=yes"
13377 eval "$ossh_varname=no"
13383 ossh_result=`eval 'echo $'"$ossh_varname"`
13384 if test -n "`echo $ossh_varname`"; then
13385 echo "$as_me:$LINENO: result: $ossh_result" >&5
13386 echo "${ECHO_T}$ossh_result" >&6
13387 if test "x$ossh_result" = "xyes"; then
13388 cat >>confdefs.h <<\_ACEOF
13389 @%:@define HAVE_TIME_IN_UTMP 1
13394 echo "$as_me:$LINENO: result: no" >&5
13395 echo "${ECHO_T}no" >&6
13399 # look for field 'ut_time' in header 'utmpx.h'
13400 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13401 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13402 echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
13403 echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6
13404 if eval "test \"\${$ossh_varname+set}\" = set"; then
13405 echo $ECHO_N "(cached) $ECHO_C" >&6
13408 cat >conftest.$ac_ext <<_ACEOF
13409 #line $LINENO "configure"
13410 #include "confdefs.h"
13414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13415 egrep "ut_time" >/dev/null 2>&1; then
13416 eval "$ossh_varname=yes"
13418 eval "$ossh_varname=no"
13424 ossh_result=`eval 'echo $'"$ossh_varname"`
13425 if test -n "`echo $ossh_varname`"; then
13426 echo "$as_me:$LINENO: result: $ossh_result" >&5
13427 echo "${ECHO_T}$ossh_result" >&6
13428 if test "x$ossh_result" = "xyes"; then
13429 cat >>confdefs.h <<\_ACEOF
13430 @%:@define HAVE_TIME_IN_UTMPX 1
13435 echo "$as_me:$LINENO: result: no" >&5
13436 echo "${ECHO_T}no" >&6
13440 # look for field 'ut_tv' in header 'utmpx.h'
13441 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13442 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13443 echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
13444 echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6
13445 if eval "test \"\${$ossh_varname+set}\" = set"; then
13446 echo $ECHO_N "(cached) $ECHO_C" >&6
13449 cat >conftest.$ac_ext <<_ACEOF
13450 #line $LINENO "configure"
13451 #include "confdefs.h"
13455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13456 egrep "ut_tv" >/dev/null 2>&1; then
13457 eval "$ossh_varname=yes"
13459 eval "$ossh_varname=no"
13465 ossh_result=`eval 'echo $'"$ossh_varname"`
13466 if test -n "`echo $ossh_varname`"; then
13467 echo "$as_me:$LINENO: result: $ossh_result" >&5
13468 echo "${ECHO_T}$ossh_result" >&6
13469 if test "x$ossh_result" = "xyes"; then
13470 cat >>confdefs.h <<\_ACEOF
13471 @%:@define HAVE_TV_IN_UTMPX 1
13476 echo "$as_me:$LINENO: result: no" >&5
13477 echo "${ECHO_T}no" >&6
13481 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13482 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13483 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
13486 cat >conftest.$ac_ext <<_ACEOF
13487 #line $LINENO "configure"
13488 #include "confdefs.h"
13489 $ac_includes_default
13490 #ifdef F77_DUMMY_MAIN
13491 # ifdef __cplusplus
13494 int F77_DUMMY_MAIN() { return 1; }
13499 static struct stat ac_aggr;
13500 if (ac_aggr.st_blksize)
13506 rm -f conftest.$ac_objext
13507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13508 (eval $ac_compile) 2>&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } &&
13512 { ac_try='test -s conftest.$ac_objext'
13513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514 (eval $ac_try) 2>&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); }; }; then
13518 ac_cv_member_struct_stat_st_blksize=yes
13520 echo "$as_me: failed program was:" >&5
13521 cat conftest.$ac_ext >&5
13522 ac_cv_member_struct_stat_st_blksize=no
13524 rm -f conftest.$ac_objext conftest.$ac_ext
13526 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13527 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13528 if test $ac_cv_member_struct_stat_st_blksize = yes; then
13530 cat >>confdefs.h <<_ACEOF
13531 @%:@define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13538 echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
13539 echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
13540 if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
13541 echo $ECHO_N "(cached) $ECHO_C" >&6
13544 cat >conftest.$ac_ext <<_ACEOF
13545 #line $LINENO "configure"
13546 #include "confdefs.h"
13548 #include <sys/types.h>
13549 #include <sys/socket.h>
13551 #ifdef F77_DUMMY_MAIN
13552 # ifdef __cplusplus
13555 int F77_DUMMY_MAIN() { return 1; }
13560 struct sockaddr_storage s; s.ss_family = 1;
13565 rm -f conftest.$ac_objext
13566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13567 (eval $ac_compile) 2>&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); } &&
13571 { ac_try='test -s conftest.$ac_objext'
13572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13573 (eval $ac_try) 2>&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }; }; then
13577 ac_cv_have_ss_family_in_struct_ss="yes"
13579 echo "$as_me: failed program was:" >&5
13580 cat conftest.$ac_ext >&5
13581 ac_cv_have_ss_family_in_struct_ss="no"
13583 rm -f conftest.$ac_objext conftest.$ac_ext
13586 echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
13587 echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
13588 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
13589 cat >>confdefs.h <<\_ACEOF
13590 @%:@define HAVE_SS_FAMILY_IN_SS 1
13595 echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
13596 echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
13597 if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
13598 echo $ECHO_N "(cached) $ECHO_C" >&6
13601 cat >conftest.$ac_ext <<_ACEOF
13602 #line $LINENO "configure"
13603 #include "confdefs.h"
13605 #include <sys/types.h>
13606 #include <sys/socket.h>
13608 #ifdef F77_DUMMY_MAIN
13609 # ifdef __cplusplus
13612 int F77_DUMMY_MAIN() { return 1; }
13617 struct sockaddr_storage s; s.__ss_family = 1;
13622 rm -f conftest.$ac_objext
13623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13624 (eval $ac_compile) 2>&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } &&
13628 { ac_try='test -s conftest.$ac_objext'
13629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630 (eval $ac_try) 2>&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; }; then
13634 ac_cv_have___ss_family_in_struct_ss="yes"
13636 echo "$as_me: failed program was:" >&5
13637 cat conftest.$ac_ext >&5
13638 ac_cv_have___ss_family_in_struct_ss="no"
13641 rm -f conftest.$ac_objext conftest.$ac_ext
13644 echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
13645 echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
13646 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
13647 cat >>confdefs.h <<\_ACEOF
13648 @%:@define HAVE___SS_FAMILY_IN_SS 1
13653 echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
13654 echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6
13655 if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13659 cat >conftest.$ac_ext <<_ACEOF
13660 #line $LINENO "configure"
13661 #include "confdefs.h"
13665 #ifdef F77_DUMMY_MAIN
13666 # ifdef __cplusplus
13669 int F77_DUMMY_MAIN() { return 1; }
13674 struct passwd p; p.pw_class = 0;
13679 rm -f conftest.$ac_objext
13680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13681 (eval $ac_compile) 2>&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } &&
13685 { ac_try='test -s conftest.$ac_objext'
13686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13687 (eval $ac_try) 2>&5
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); }; }; then
13691 ac_cv_have_pw_class_in_struct_passwd="yes"
13693 echo "$as_me: failed program was:" >&5
13694 cat conftest.$ac_ext >&5
13695 ac_cv_have_pw_class_in_struct_passwd="no"
13698 rm -f conftest.$ac_objext conftest.$ac_ext
13701 echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
13702 echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6
13703 if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
13704 cat >>confdefs.h <<\_ACEOF
13705 @%:@define HAVE_PW_CLASS_IN_PASSWD 1
13710 echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
13711 echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6
13712 if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
13713 echo $ECHO_N "(cached) $ECHO_C" >&6
13716 cat >conftest.$ac_ext <<_ACEOF
13717 #line $LINENO "configure"
13718 #include "confdefs.h"
13722 #ifdef F77_DUMMY_MAIN
13723 # ifdef __cplusplus
13726 int F77_DUMMY_MAIN() { return 1; }
13731 struct passwd p; p.pw_expire = 0;
13736 rm -f conftest.$ac_objext
13737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13738 (eval $ac_compile) 2>&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); } &&
13742 { ac_try='test -s conftest.$ac_objext'
13743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744 (eval $ac_try) 2>&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); }; }; then
13748 ac_cv_have_pw_expire_in_struct_passwd="yes"
13750 echo "$as_me: failed program was:" >&5
13751 cat conftest.$ac_ext >&5
13752 ac_cv_have_pw_expire_in_struct_passwd="no"
13755 rm -f conftest.$ac_objext conftest.$ac_ext
13758 echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
13759 echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6
13760 if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
13761 cat >>confdefs.h <<\_ACEOF
13762 @%:@define HAVE_PW_EXPIRE_IN_PASSWD 1
13767 echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
13768 echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6
13769 if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13773 cat >conftest.$ac_ext <<_ACEOF
13774 #line $LINENO "configure"
13775 #include "confdefs.h"
13779 #ifdef F77_DUMMY_MAIN
13780 # ifdef __cplusplus
13783 int F77_DUMMY_MAIN() { return 1; }
13788 struct passwd p; p.pw_change = 0;
13793 rm -f conftest.$ac_objext
13794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13795 (eval $ac_compile) 2>&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); } &&
13799 { ac_try='test -s conftest.$ac_objext'
13800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801 (eval $ac_try) 2>&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; }; then
13805 ac_cv_have_pw_change_in_struct_passwd="yes"
13807 echo "$as_me: failed program was:" >&5
13808 cat conftest.$ac_ext >&5
13809 ac_cv_have_pw_change_in_struct_passwd="no"
13812 rm -f conftest.$ac_objext conftest.$ac_ext
13815 echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
13816 echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6
13817 if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
13818 cat >>confdefs.h <<\_ACEOF
13819 @%:@define HAVE_PW_CHANGE_IN_PASSWD 1
13824 echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
13825 echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6
13826 if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13830 if test "$cross_compiling" = yes; then
13831 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13832 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13833 { (exit 1); exit 1; }; }
13835 cat >conftest.$ac_ext <<_ACEOF
13836 #line $LINENO "configure"
13837 #include "confdefs.h"
13839 #include <sys/types.h>
13840 #include <sys/socket.h>
13841 #include <sys/uio.h>
13843 #ifdef msg_accrights
13847 m.msg_accrights = 0;
13852 rm -f conftest$ac_exeext
13853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13854 (eval $ac_link) 2>&5
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859 (eval $ac_try) 2>&5
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); }; }; then
13863 ac_cv_have_accrights_in_msghdr="yes"
13865 echo "$as_me: program exited with status $ac_status" >&5
13866 echo "$as_me: failed program was:" >&5
13867 cat conftest.$ac_ext >&5
13868 ( exit $ac_status )
13869 ac_cv_have_accrights_in_msghdr="no"
13872 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13876 echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
13877 echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6
13878 if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
13879 cat >>confdefs.h <<\_ACEOF
13880 @%:@define HAVE_ACCRIGHTS_IN_MSGHDR 1
13885 echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
13886 echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6
13887 if test "${ac_cv_have_control_in_msghdr+set}" = set; then
13888 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 if test "$cross_compiling" = yes; then
13892 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13893 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13894 { (exit 1); exit 1; }; }
13896 cat >conftest.$ac_ext <<_ACEOF
13897 #line $LINENO "configure"
13898 #include "confdefs.h"
13900 #include <sys/types.h>
13901 #include <sys/socket.h>
13902 #include <sys/uio.h>
13913 rm -f conftest$ac_exeext
13914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13915 (eval $ac_link) 2>&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; }; then
13924 ac_cv_have_control_in_msghdr="yes"
13926 echo "$as_me: program exited with status $ac_status" >&5
13927 echo "$as_me: failed program was:" >&5
13928 cat conftest.$ac_ext >&5
13929 ( exit $ac_status )
13930 ac_cv_have_control_in_msghdr="no"
13933 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13937 echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
13938 echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6
13939 if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
13940 cat >>confdefs.h <<\_ACEOF
13941 @%:@define HAVE_CONTROL_IN_MSGHDR 1
13946 echo "$as_me:$LINENO: checking if libc defines __progname" >&5
13947 echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6
13948 if test "${ac_cv_libc_defines___progname+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13952 cat >conftest.$ac_ext <<_ACEOF
13953 #line $LINENO "configure"
13954 #include "confdefs.h"
13956 #ifdef F77_DUMMY_MAIN
13957 # ifdef __cplusplus
13960 int F77_DUMMY_MAIN() { return 1; }
13965 extern char *__progname; printf("%s", __progname);
13970 rm -f conftest.$ac_objext conftest$ac_exeext
13971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13972 (eval $ac_link) 2>&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); } &&
13976 { ac_try='test -s conftest$ac_exeext'
13977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13978 (eval $ac_try) 2>&5
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); }; }; then
13982 ac_cv_libc_defines___progname="yes"
13984 echo "$as_me: failed program was:" >&5
13985 cat conftest.$ac_ext >&5
13986 ac_cv_libc_defines___progname="no"
13989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13992 echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
13993 echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6
13994 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
13995 cat >>confdefs.h <<\_ACEOF
13996 @%:@define HAVE___PROGNAME 1
14001 echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
14002 echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6
14003 if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14007 cat >conftest.$ac_ext <<_ACEOF
14008 #line $LINENO "configure"
14009 #include "confdefs.h"
14013 #ifdef F77_DUMMY_MAIN
14014 # ifdef __cplusplus
14017 int F77_DUMMY_MAIN() { return 1; }
14022 printf("%s", __FUNCTION__);
14027 rm -f conftest.$ac_objext conftest$ac_exeext
14028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14029 (eval $ac_link) 2>&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); } &&
14033 { ac_try='test -s conftest$ac_exeext'
14034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035 (eval $ac_try) 2>&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; }; then
14039 ac_cv_cc_implements___FUNCTION__="yes"
14041 echo "$as_me: failed program was:" >&5
14042 cat conftest.$ac_ext >&5
14043 ac_cv_cc_implements___FUNCTION__="no"
14046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14049 echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
14050 echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6
14051 if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
14052 cat >>confdefs.h <<\_ACEOF
14053 @%:@define HAVE___FUNCTION__ 1
14058 echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
14059 echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6
14060 if test "${ac_cv_cc_implements___func__+set}" = set; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14064 cat >conftest.$ac_ext <<_ACEOF
14065 #line $LINENO "configure"
14066 #include "confdefs.h"
14070 #ifdef F77_DUMMY_MAIN
14071 # ifdef __cplusplus
14074 int F77_DUMMY_MAIN() { return 1; }
14079 printf("%s", __func__);
14084 rm -f conftest.$ac_objext conftest$ac_exeext
14085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14086 (eval $ac_link) 2>&5
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); } &&
14090 { ac_try='test -s conftest$ac_exeext'
14091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14092 (eval $ac_try) 2>&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); }; }; then
14096 ac_cv_cc_implements___func__="yes"
14098 echo "$as_me: failed program was:" >&5
14099 cat conftest.$ac_ext >&5
14100 ac_cv_cc_implements___func__="no"
14103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14106 echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
14107 echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6
14108 if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
14109 cat >>confdefs.h <<\_ACEOF
14110 @%:@define HAVE___func__ 1
14115 echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
14116 echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6
14117 if test "${ac_cv_have_getopt_optreset+set}" = set; then
14118 echo $ECHO_N "(cached) $ECHO_C" >&6
14121 cat >conftest.$ac_ext <<_ACEOF
14122 #line $LINENO "configure"
14123 #include "confdefs.h"
14125 #include <getopt.h>
14127 #ifdef F77_DUMMY_MAIN
14128 # ifdef __cplusplus
14131 int F77_DUMMY_MAIN() { return 1; }
14136 extern int optreset; optreset = 0;
14141 rm -f conftest.$ac_objext conftest$ac_exeext
14142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14143 (eval $ac_link) 2>&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } &&
14147 { ac_try='test -s conftest$ac_exeext'
14148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149 (eval $ac_try) 2>&5
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); }; }; then
14153 ac_cv_have_getopt_optreset="yes"
14155 echo "$as_me: failed program was:" >&5
14156 cat conftest.$ac_ext >&5
14157 ac_cv_have_getopt_optreset="no"
14160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14163 echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
14164 echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6
14165 if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
14166 cat >>confdefs.h <<\_ACEOF
14167 @%:@define HAVE_GETOPT_OPTRESET 1
14172 echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
14173 echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6
14174 if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
14175 echo $ECHO_N "(cached) $ECHO_C" >&6
14178 cat >conftest.$ac_ext <<_ACEOF
14179 #line $LINENO "configure"
14180 #include "confdefs.h"
14182 #ifdef F77_DUMMY_MAIN
14183 # ifdef __cplusplus
14186 int F77_DUMMY_MAIN() { return 1; }
14191 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
14196 rm -f conftest.$ac_objext conftest$ac_exeext
14197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14198 (eval $ac_link) 2>&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); } &&
14202 { ac_try='test -s conftest$ac_exeext'
14203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204 (eval $ac_try) 2>&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; }; then
14208 ac_cv_libc_defines_sys_errlist="yes"
14210 echo "$as_me: failed program was:" >&5
14211 cat conftest.$ac_ext >&5
14212 ac_cv_libc_defines_sys_errlist="no"
14215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14218 echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
14219 echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6
14220 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
14221 cat >>confdefs.h <<\_ACEOF
14222 @%:@define HAVE_SYS_ERRLIST 1
14228 echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
14229 echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6
14230 if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
14231 echo $ECHO_N "(cached) $ECHO_C" >&6
14234 cat >conftest.$ac_ext <<_ACEOF
14235 #line $LINENO "configure"
14236 #include "confdefs.h"
14238 #ifdef F77_DUMMY_MAIN
14239 # ifdef __cplusplus
14242 int F77_DUMMY_MAIN() { return 1; }
14247 extern int sys_nerr; printf("%i", sys_nerr);
14252 rm -f conftest.$ac_objext conftest$ac_exeext
14253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14254 (eval $ac_link) 2>&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } &&
14258 { ac_try='test -s conftest$ac_exeext'
14259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14260 (eval $ac_try) 2>&5
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); }; }; then
14264 ac_cv_libc_defines_sys_nerr="yes"
14266 echo "$as_me: failed program was:" >&5
14267 cat conftest.$ac_ext >&5
14268 ac_cv_libc_defines_sys_nerr="no"
14271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14274 echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
14275 echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6
14276 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
14277 cat >>confdefs.h <<\_ACEOF
14278 @%:@define HAVE_SYS_NERR 1
14285 # Check whether user wants sectok support
14287 # Check whether --with-sectok or --without-sectok was given.
14288 if test "${with_sectok+set}" = set; then
14289 withval="$with_sectok"
14291 if test "x$withval" != "xno" ; then
14292 if test "x$withval" != "xyes" ; then
14293 CPPFLAGS="$CPPFLAGS -I${withval}"
14294 LDFLAGS="$LDFLAGS -L${withval}"
14295 if test ! -z "$need_dash_r" ; then
14296 LDFLAGS="$LDFLAGS -R${withval}"
14298 if test ! -z "$blibpath" ; then
14299 blibpath="$blibpath:${withval}"
14303 for ac_header in sectok.h
14305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14307 echo "$as_me:$LINENO: checking for $ac_header" >&5
14308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14310 echo $ECHO_N "(cached) $ECHO_C" >&6
14312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14315 # Is the header compilable?
14316 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14318 cat >conftest.$ac_ext <<_ACEOF
14319 #line $LINENO "configure"
14320 #include "confdefs.h"
14321 $ac_includes_default
14322 @%:@include <$ac_header>
14324 rm -f conftest.$ac_objext
14325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14326 (eval $ac_compile) 2>&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } &&
14330 { ac_try='test -s conftest.$ac_objext'
14331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332 (eval $ac_try) 2>&5
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; }; then
14336 ac_header_compiler=yes
14338 echo "$as_me: failed program was:" >&5
14339 cat conftest.$ac_ext >&5
14340 ac_header_compiler=no
14342 rm -f conftest.$ac_objext conftest.$ac_ext
14343 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14344 echo "${ECHO_T}$ac_header_compiler" >&6
14346 # Is the header present?
14347 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14349 cat >conftest.$ac_ext <<_ACEOF
14350 #line $LINENO "configure"
14351 #include "confdefs.h"
14352 @%:@include <$ac_header>
14354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14357 egrep -v '^ *\+' conftest.er1 >conftest.err
14359 cat conftest.err >&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } >/dev/null; then
14362 if test -s conftest.err; then
14363 ac_cpp_err=$ac_c_preproc_warn_flag
14370 if test -z "$ac_cpp_err"; then
14371 ac_header_preproc=yes
14373 echo "$as_me: failed program was:" >&5
14374 cat conftest.$ac_ext >&5
14375 ac_header_preproc=no
14377 rm -f conftest.err conftest.$ac_ext
14378 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14379 echo "${ECHO_T}$ac_header_preproc" >&6
14381 # So? What about this header?
14382 case $ac_header_compiler:$ac_header_preproc in
14384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14392 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14394 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14396 echo "$as_me:$LINENO: checking for $ac_header" >&5
14397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14401 eval "$as_ac_Header=$ac_header_preproc"
14403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14408 cat >>confdefs.h <<_ACEOF
14409 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14416 if test "$ac_cv_header_sectok_h" != yes; then
14417 { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5
14418 echo "$as_me: error: Can't find sectok.h" >&2;}
14419 { (exit 1); exit 1; }; }
14422 echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5
14423 echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6
14424 if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14427 ac_check_lib_save_LIBS=$LIBS
14428 LIBS="-lsectok $LIBS"
14429 cat >conftest.$ac_ext <<_ACEOF
14430 #line $LINENO "configure"
14431 #include "confdefs.h"
14433 /* Override any gcc2 internal prototype to avoid an error. */
14437 /* We use char because int might match the return type of a gcc2
14438 builtin and then its argument prototype would still apply. */
14439 char sectok_open ();
14440 #ifdef F77_DUMMY_MAIN
14441 # ifdef __cplusplus
14444 int F77_DUMMY_MAIN() { return 1; }
14454 rm -f conftest.$ac_objext conftest$ac_exeext
14455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14456 (eval $ac_link) 2>&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } &&
14460 { ac_try='test -s conftest$ac_exeext'
14461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462 (eval $ac_try) 2>&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; }; then
14466 ac_cv_lib_sectok_sectok_open=yes
14468 echo "$as_me: failed program was:" >&5
14469 cat conftest.$ac_ext >&5
14470 ac_cv_lib_sectok_sectok_open=no
14472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14473 LIBS=$ac_check_lib_save_LIBS
14475 echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5
14476 echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6
14477 if test $ac_cv_lib_sectok_sectok_open = yes; then
14478 cat >>confdefs.h <<_ACEOF
14479 @%:@define HAVE_LIBSECTOK 1
14482 LIBS="-lsectok $LIBS"
14486 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
14487 { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5
14488 echo "$as_me: error: Can't find libsectok" >&2;}
14489 { (exit 1); exit 1; }; }
14491 cat >>confdefs.h <<\_ACEOF
14492 @%:@define SMARTCARD 1
14495 cat >>confdefs.h <<\_ACEOF
14496 @%:@define USE_SECTOK 1
14499 SCARD_MSG="yes, using sectok"
14505 # Check whether user wants OpenSC support
14507 # Check whether --with-opensc or --without-opensc was given.
14508 if test "${with_opensc+set}" = set; then
14509 withval="$with_opensc"
14510 opensc_config_prefix="$withval"
14512 opensc_config_prefix=""
14514 if test x$opensc_config_prefix != x ; then
14515 OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config
14516 # Extract the first word of "opensc-config", so it can be a program name with args.
14517 set dummy opensc-config; ac_word=$2
14518 echo "$as_me:$LINENO: checking for $ac_word" >&5
14519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14520 if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14523 case $OPENSC_CONFIG in
14525 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
14528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14529 for as_dir in $PATH
14532 test -z "$as_dir" && as_dir=.
14533 for ac_exec_ext in '' $ac_executable_extensions; do
14534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14535 ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14542 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
14546 OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
14548 if test -n "$OPENSC_CONFIG"; then
14549 echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
14550 echo "${ECHO_T}$OPENSC_CONFIG" >&6
14552 echo "$as_me:$LINENO: result: no" >&5
14553 echo "${ECHO_T}no" >&6
14556 if test "$OPENSC_CONFIG" != "no"; then
14557 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
14558 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
14559 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
14560 LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS"
14561 cat >>confdefs.h <<\_ACEOF
14562 @%:@define SMARTCARD 1
14565 cat >>confdefs.h <<\_ACEOF
14566 @%:@define USE_OPENSC 1
14569 SCARD_MSG="yes, using OpenSC"
14573 # Check whether user wants Kerberos 5 support
14576 # Check whether --with-kerberos5 or --without-kerberos5 was given.
14577 if test "${with_kerberos5+set}" = set; then
14578 withval="$with_kerberos5"
14580 if test "x$withval" != "xno" ; then
14581 if test "x$withval" = "xyes" ; then
14582 KRB5ROOT="/usr/local"
14584 KRB5ROOT=${withval}
14586 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
14587 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
14588 cat >>confdefs.h <<\_ACEOF
14593 echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
14594 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
14595 cat >conftest.$ac_ext <<_ACEOF
14596 #line $LINENO "configure"
14597 #include "confdefs.h"
14599 #ifdef F77_DUMMY_MAIN
14600 # ifdef __cplusplus
14603 int F77_DUMMY_MAIN() { return 1; }
14608 char *tmp = heimdal_version;
14613 rm -f conftest.$ac_objext
14614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14615 (eval $ac_compile) 2>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); } &&
14619 { ac_try='test -s conftest.$ac_objext'
14620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14621 (eval $ac_try) 2>&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); }; }; then
14625 echo "$as_me:$LINENO: result: yes" >&5
14626 echo "${ECHO_T}yes" >&6
14627 cat >>confdefs.h <<\_ACEOF
14628 @%:@define HEIMDAL 1
14631 K5LIBS="-lkrb5 -ldes -lcom_err -lasn1 -lroken"
14634 echo "$as_me: failed program was:" >&5
14635 cat conftest.$ac_ext >&5
14636 echo "$as_me:$LINENO: result: no" >&5
14637 echo "${ECHO_T}no" >&6
14638 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
14642 rm -f conftest.$ac_objext conftest.$ac_ext
14643 if test ! -z "$need_dash_r" ; then
14644 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
14646 if test ! -z "$blibpath" ; then
14647 blibpath="$blibpath:${KRB5ROOT}/lib"
14650 echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
14651 echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
14652 if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
14653 echo $ECHO_N "(cached) $ECHO_C" >&6
14655 ac_check_lib_save_LIBS=$LIBS
14656 LIBS="-lresolv $LIBS"
14657 cat >conftest.$ac_ext <<_ACEOF
14658 #line $LINENO "configure"
14659 #include "confdefs.h"
14661 /* Override any gcc2 internal prototype to avoid an error. */
14665 /* We use char because int might match the return type of a gcc2
14666 builtin and then its argument prototype would still apply. */
14668 #ifdef F77_DUMMY_MAIN
14669 # ifdef __cplusplus
14672 int F77_DUMMY_MAIN() { return 1; }
14682 rm -f conftest.$ac_objext conftest$ac_exeext
14683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14684 (eval $ac_link) 2>&5
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); } &&
14688 { ac_try='test -s conftest$ac_exeext'
14689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14690 (eval $ac_try) 2>&5
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); }; }; then
14694 ac_cv_lib_resolv_dn_expand=yes
14696 echo "$as_me: failed program was:" >&5
14697 cat conftest.$ac_ext >&5
14698 ac_cv_lib_resolv_dn_expand=no
14700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14701 LIBS=$ac_check_lib_save_LIBS
14703 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
14704 echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
14705 if test $ac_cv_lib_resolv_dn_expand = yes; then
14706 cat >>confdefs.h <<_ACEOF
14707 @%:@define HAVE_LIBRESOLV 1
14710 LIBS="-lresolv $LIBS"
14720 # Check whether user wants Kerberos 4 support
14723 # Check whether --with-kerberos4 or --without-kerberos4 was given.
14724 if test "${with_kerberos4+set}" = set; then
14725 withval="$with_kerberos4"
14727 if test "x$withval" != "xno" ; then
14728 if test "x$withval" != "xyes" ; then
14729 CPPFLAGS="$CPPFLAGS -I${withval}/include"
14730 LDFLAGS="$LDFLAGS -L${withval}/lib"
14731 if test ! -z "$need_dash_r" ; then
14732 LDFLAGS="$LDFLAGS -R${withval}/lib"
14734 if test ! -z "$blibpath" ; then
14735 blibpath="$blibpath:${withval}/lib"
14738 if test -d /usr/include/kerberosIV ; then
14739 CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV"
14744 for ac_header in krb.h
14746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14748 echo "$as_me:$LINENO: checking for $ac_header" >&5
14749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14756 # Is the header compilable?
14757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14759 cat >conftest.$ac_ext <<_ACEOF
14760 #line $LINENO "configure"
14761 #include "confdefs.h"
14762 $ac_includes_default
14763 @%:@include <$ac_header>
14765 rm -f conftest.$ac_objext
14766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14767 (eval $ac_compile) 2>&5
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); } &&
14771 { ac_try='test -s conftest.$ac_objext'
14772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14773 (eval $ac_try) 2>&5
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); }; }; then
14777 ac_header_compiler=yes
14779 echo "$as_me: failed program was:" >&5
14780 cat conftest.$ac_ext >&5
14781 ac_header_compiler=no
14783 rm -f conftest.$ac_objext conftest.$ac_ext
14784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14785 echo "${ECHO_T}$ac_header_compiler" >&6
14787 # Is the header present?
14788 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14790 cat >conftest.$ac_ext <<_ACEOF
14791 #line $LINENO "configure"
14792 #include "confdefs.h"
14793 @%:@include <$ac_header>
14795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14798 egrep -v '^ *\+' conftest.er1 >conftest.err
14800 cat conftest.err >&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } >/dev/null; then
14803 if test -s conftest.err; then
14804 ac_cpp_err=$ac_c_preproc_warn_flag
14811 if test -z "$ac_cpp_err"; then
14812 ac_header_preproc=yes
14814 echo "$as_me: failed program was:" >&5
14815 cat conftest.$ac_ext >&5
14816 ac_header_preproc=no
14818 rm -f conftest.err conftest.$ac_ext
14819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14820 echo "${ECHO_T}$ac_header_preproc" >&6
14822 # So? What about this header?
14823 case $ac_header_compiler:$ac_header_preproc in
14825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14833 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14837 echo "$as_me:$LINENO: checking for $ac_header" >&5
14838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14842 eval "$as_ac_Header=$ac_header_preproc"
14844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14849 cat >>confdefs.h <<_ACEOF
14850 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14857 if test "$ac_cv_header_krb_h" != yes; then
14858 { echo "$as_me:$LINENO: WARNING: Cannot find krb.h, build may fail" >&5
14859 echo "$as_me: WARNING: Cannot find krb.h, build may fail" >&2;}
14862 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
14863 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
14864 if test "${ac_cv_lib_krb_main+set}" = set; then
14865 echo $ECHO_N "(cached) $ECHO_C" >&6
14867 ac_check_lib_save_LIBS=$LIBS
14869 cat >conftest.$ac_ext <<_ACEOF
14870 #line $LINENO "configure"
14871 #include "confdefs.h"
14874 #ifdef F77_DUMMY_MAIN
14875 # ifdef __cplusplus
14878 int F77_DUMMY_MAIN() { return 1; }
14888 rm -f conftest.$ac_objext conftest$ac_exeext
14889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14890 (eval $ac_link) 2>&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); } &&
14894 { ac_try='test -s conftest$ac_exeext'
14895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14896 (eval $ac_try) 2>&5
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); }; }; then
14900 ac_cv_lib_krb_main=yes
14902 echo "$as_me: failed program was:" >&5
14903 cat conftest.$ac_ext >&5
14904 ac_cv_lib_krb_main=no
14906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14907 LIBS=$ac_check_lib_save_LIBS
14909 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
14910 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
14911 if test $ac_cv_lib_krb_main = yes; then
14912 cat >>confdefs.h <<_ACEOF
14913 @%:@define HAVE_LIBKRB 1
14920 if test "$ac_cv_lib_krb_main" != yes; then
14922 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
14923 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
14924 if test "${ac_cv_lib_krb4_main+set}" = set; then
14925 echo $ECHO_N "(cached) $ECHO_C" >&6
14927 ac_check_lib_save_LIBS=$LIBS
14928 LIBS="-lkrb4 $LIBS"
14929 cat >conftest.$ac_ext <<_ACEOF
14930 #line $LINENO "configure"
14931 #include "confdefs.h"
14934 #ifdef F77_DUMMY_MAIN
14935 # ifdef __cplusplus
14938 int F77_DUMMY_MAIN() { return 1; }
14948 rm -f conftest.$ac_objext conftest$ac_exeext
14949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14950 (eval $ac_link) 2>&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); } &&
14954 { ac_try='test -s conftest$ac_exeext'
14955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956 (eval $ac_try) 2>&5
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; }; then
14960 ac_cv_lib_krb4_main=yes
14962 echo "$as_me: failed program was:" >&5
14963 cat conftest.$ac_ext >&5
14964 ac_cv_lib_krb4_main=no
14966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14967 LIBS=$ac_check_lib_save_LIBS
14969 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
14970 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
14971 if test $ac_cv_lib_krb4_main = yes; then
14972 cat >>confdefs.h <<_ACEOF
14973 @%:@define HAVE_LIBKRB4 1
14976 LIBS="-lkrb4 $LIBS"
14980 if test "$ac_cv_lib_krb4_main" != yes; then
14981 { echo "$as_me:$LINENO: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&5
14982 echo "$as_me: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&2;}
14990 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
14991 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
14992 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
14993 echo $ECHO_N "(cached) $ECHO_C" >&6
14995 ac_check_lib_save_LIBS=$LIBS
14997 cat >conftest.$ac_ext <<_ACEOF
14998 #line $LINENO "configure"
14999 #include "confdefs.h"
15001 /* Override any gcc2 internal prototype to avoid an error. */
15005 /* We use char because int might match the return type of a gcc2
15006 builtin and then its argument prototype would still apply. */
15007 char des_cbc_encrypt ();
15008 #ifdef F77_DUMMY_MAIN
15009 # ifdef __cplusplus
15012 int F77_DUMMY_MAIN() { return 1; }
15017 des_cbc_encrypt ();
15022 rm -f conftest.$ac_objext conftest$ac_exeext
15023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15024 (eval $ac_link) 2>&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } &&
15028 { ac_try='test -s conftest$ac_exeext'
15029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030 (eval $ac_try) 2>&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); }; }; then
15034 ac_cv_lib_des_des_cbc_encrypt=yes
15036 echo "$as_me: failed program was:" >&5
15037 cat conftest.$ac_ext >&5
15038 ac_cv_lib_des_des_cbc_encrypt=no
15040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15041 LIBS=$ac_check_lib_save_LIBS
15043 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15044 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15045 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15046 cat >>confdefs.h <<_ACEOF
15047 @%:@define HAVE_LIBDES 1
15054 if test "$ac_cv_lib_des_des_cbc_encrypt" != yes; then
15056 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15057 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15058 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15059 echo $ECHO_N "(cached) $ECHO_C" >&6
15061 ac_check_lib_save_LIBS=$LIBS
15062 LIBS="-ldes425 $LIBS"
15063 cat >conftest.$ac_ext <<_ACEOF
15064 #line $LINENO "configure"
15065 #include "confdefs.h"
15067 /* Override any gcc2 internal prototype to avoid an error. */
15071 /* We use char because int might match the return type of a gcc2
15072 builtin and then its argument prototype would still apply. */
15073 char des_cbc_encrypt ();
15074 #ifdef F77_DUMMY_MAIN
15075 # ifdef __cplusplus
15078 int F77_DUMMY_MAIN() { return 1; }
15083 des_cbc_encrypt ();
15088 rm -f conftest.$ac_objext conftest$ac_exeext
15089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15090 (eval $ac_link) 2>&5
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); } &&
15094 { ac_try='test -s conftest$ac_exeext'
15095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096 (eval $ac_try) 2>&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
15100 ac_cv_lib_des425_des_cbc_encrypt=yes
15102 echo "$as_me: failed program was:" >&5
15103 cat conftest.$ac_ext >&5
15104 ac_cv_lib_des425_des_cbc_encrypt=no
15106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15107 LIBS=$ac_check_lib_save_LIBS
15109 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15110 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15111 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15112 cat >>confdefs.h <<_ACEOF
15113 @%:@define HAVE_LIBDES425 1
15116 LIBS="-ldes425 $LIBS"
15120 if test "$ac_cv_lib_des425_des_cbc_encrypt" != yes; then
15121 { echo "$as_me:$LINENO: WARNING: Cannot find libdes nor libdes425, build may fail" >&5
15122 echo "$as_me: WARNING: Cannot find libdes nor libdes425, build may fail" >&2;}
15130 echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
15131 echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
15132 if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
15133 echo $ECHO_N "(cached) $ECHO_C" >&6
15135 ac_check_lib_save_LIBS=$LIBS
15136 LIBS="-lresolv $LIBS"
15137 cat >conftest.$ac_ext <<_ACEOF
15138 #line $LINENO "configure"
15139 #include "confdefs.h"
15141 /* Override any gcc2 internal prototype to avoid an error. */
15145 /* We use char because int might match the return type of a gcc2
15146 builtin and then its argument prototype would still apply. */
15148 #ifdef F77_DUMMY_MAIN
15149 # ifdef __cplusplus
15152 int F77_DUMMY_MAIN() { return 1; }
15162 rm -f conftest.$ac_objext conftest$ac_exeext
15163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15164 (eval $ac_link) 2>&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } &&
15168 { ac_try='test -s conftest$ac_exeext'
15169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; }; then
15174 ac_cv_lib_resolv_dn_expand=yes
15176 echo "$as_me: failed program was:" >&5
15177 cat conftest.$ac_ext >&5
15178 ac_cv_lib_resolv_dn_expand=no
15180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15181 LIBS=$ac_check_lib_save_LIBS
15183 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
15184 echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
15185 if test $ac_cv_lib_resolv_dn_expand = yes; then
15186 cat >>confdefs.h <<_ACEOF
15187 @%:@define HAVE_LIBRESOLV 1
15190 LIBS="-lresolv $LIBS"
15196 cat >>confdefs.h <<\_ACEOF
15205 # Check whether user wants AFS support
15208 # Check whether --with-afs or --without-afs was given.
15209 if test "${with_afs+set}" = set; then
15210 withval="$with_afs"
15212 if test "x$withval" != "xno" ; then
15214 if test "x$withval" != "xyes" ; then
15215 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15216 LDFLAGS="$LDFLAGS -L${withval}/lib"
15219 if test -z "$KRB4" ; then
15220 { echo "$as_me:$LINENO: WARNING: AFS requires Kerberos IV support, build may fail" >&5
15221 echo "$as_me: WARNING: AFS requires Kerberos IV support, build may fail" >&2;}
15224 LIBS="-lkafs $LIBS"
15225 if test ! -z "$AFS_LIBS" ; then
15226 LIBS="$LIBS $AFS_LIBS"
15228 cat >>confdefs.h <<\_ACEOF
15237 LIBS="$LIBS $KLIBS $K5LIBS"
15239 # Looking for programs, paths and files
15241 # Check whether --with-rsh or --without-rsh was given.
15242 if test "${with_rsh+set}" = set; then
15243 withval="$with_rsh"
15245 if test "x$withval" != "$no" ; then
15251 # Extract the first word of "rsh", so it can be a program name with args.
15252 set dummy rsh; ac_word=$2
15253 echo "$as_me:$LINENO: checking for $ac_word" >&5
15254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15255 if test "${ac_cv_path_rsh_path+set}" = set; then
15256 echo $ECHO_N "(cached) $ECHO_C" >&6
15260 ac_cv_path_rsh_path="$rsh_path" # Let the user override the test with a path.
15263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15264 for as_dir in $PATH
15267 test -z "$as_dir" && as_dir=.
15268 for ac_exec_ext in '' $ac_executable_extensions; do
15269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15270 ac_cv_path_rsh_path="$as_dir/$ac_word$ac_exec_ext"
15271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15280 rsh_path=$ac_cv_path_rsh_path
15282 if test -n "$rsh_path"; then
15283 echo "$as_me:$LINENO: result: $rsh_path" >&5
15284 echo "${ECHO_T}$rsh_path" >&6
15286 echo "$as_me:$LINENO: result: no" >&5
15287 echo "${ECHO_T}no" >&6
15294 PRIVSEP_PATH=/var/empty
15296 # Check whether --with-privsep-path or --without-privsep-path was given.
15297 if test "${with_privsep_path+set}" = set; then
15298 withval="$with_privsep_path"
15300 if test "x$withval" != "$no" ; then
15301 PRIVSEP_PATH=$withval
15309 # Check whether --with-xauth or --without-xauth was given.
15310 if test "${with_xauth+set}" = set; then
15311 withval="$with_xauth"
15313 if test "x$withval" != "xno" ; then
15314 xauth_path=$withval
15319 # Extract the first word of "xauth", so it can be a program name with args.
15320 set dummy xauth; ac_word=$2
15321 echo "$as_me:$LINENO: checking for $ac_word" >&5
15322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15323 if test "${ac_cv_path_xauth_path+set}" = set; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15326 case $xauth_path in
15328 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
15331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15332 for as_dir in $PATH:/usr/X/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/openwin/bin
15335 test -z "$as_dir" && as_dir=.
15336 for ac_exec_ext in '' $ac_executable_extensions; do
15337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15338 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
15339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15348 xauth_path=$ac_cv_path_xauth_path
15350 if test -n "$xauth_path"; then
15351 echo "$as_me:$LINENO: result: $xauth_path" >&5
15352 echo "${ECHO_T}$xauth_path" >&6
15354 echo "$as_me:$LINENO: result: no" >&5
15355 echo "${ECHO_T}no" >&6
15358 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
15359 xauth_path="/usr/openwin/bin/xauth"
15365 if test -z "$xauth_path" ; then
15366 XAUTH_PATH="undefined"
15369 cat >>confdefs.h <<_ACEOF
15370 @%:@define XAUTH_PATH "$xauth_path"
15373 XAUTH_PATH=$xauth_path
15376 if test ! -z "$rsh_path" ; then
15377 cat >>confdefs.h <<_ACEOF
15378 @%:@define RSH_PATH "$rsh_path"
15383 # Check for mail directory (last resort if we cannot get it from headers)
15384 if test ! -z "$MAIL" ; then
15385 maildir=`dirname $MAIL`
15386 cat >>confdefs.h <<_ACEOF
15387 @%:@define MAIL_DIRECTORY "$maildir"
15392 if test -z "$no_dev_ptmx" ; then
15393 if test "x$disable_ptmx_check" != "xyes" ; then
15394 echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
15395 echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6
15396 if test "${ac_cv_file___dev_ptmx_+set}" = set; then
15397 echo $ECHO_N "(cached) $ECHO_C" >&6
15399 test "$cross_compiling" = yes &&
15400 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15401 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15402 { (exit 1); exit 1; }; }
15403 if test -r ""/dev/ptmx""; then
15404 ac_cv_file___dev_ptmx_=yes
15406 ac_cv_file___dev_ptmx_=no
15409 echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
15410 echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6
15411 if test $ac_cv_file___dev_ptmx_ = yes; then
15413 cat >>confdefs.h <<_ACEOF
15414 @%:@define HAVE_DEV_PTMX 1
15424 echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
15425 echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6
15426 if test "${ac_cv_file___dev_ptc_+set}" = set; then
15427 echo $ECHO_N "(cached) $ECHO_C" >&6
15429 test "$cross_compiling" = yes &&
15430 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15431 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15432 { (exit 1); exit 1; }; }
15433 if test -r ""/dev/ptc""; then
15434 ac_cv_file___dev_ptc_=yes
15436 ac_cv_file___dev_ptc_=no
15439 echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
15440 echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6
15441 if test $ac_cv_file___dev_ptc_ = yes; then
15443 cat >>confdefs.h <<_ACEOF
15444 @%:@define HAVE_DEV_PTS_AND_PTC 1
15453 # Options from here on. Some of these are preset by platform above
15455 # Check whether --with-mantype or --without-mantype was given.
15456 if test "${with_mantype+set}" = set; then
15457 withval="$with_mantype"
15464 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
15465 echo "$as_me: error: invalid man type: $withval" >&2;}
15466 { (exit 1); exit 1; }; }
15472 if test -z "$MANTYPE"; then
15473 for ac_prog in nroff awf
15475 # Extract the first word of "$ac_prog", so it can be a program name with args.
15476 set dummy $ac_prog; ac_word=$2
15477 echo "$as_me:$LINENO: checking for $ac_word" >&5
15478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15479 if test "${ac_cv_path_NROFF+set}" = set; then
15480 echo $ECHO_N "(cached) $ECHO_C" >&6
15484 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
15487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15488 as_dummy="/usr/bin:/usr/ucb"
15489 for as_dir in $as_dummy
15492 test -z "$as_dir" && as_dir=.
15493 for ac_exec_ext in '' $ac_executable_extensions; do
15494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15495 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
15496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15505 NROFF=$ac_cv_path_NROFF
15507 if test -n "$NROFF"; then
15508 echo "$as_me:$LINENO: result: $NROFF" >&5
15509 echo "${ECHO_T}$NROFF" >&6
15511 echo "$as_me:$LINENO: result: no" >&5
15512 echo "${ECHO_T}no" >&6
15515 test -n "$NROFF" && break
15517 test -n "$NROFF" || NROFF="/bin/false"
15519 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
15521 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
15528 if test "$MANTYPE" = "doc"; then
15531 mansubdir=$MANTYPE;
15535 # Check whether to enable MD5 passwords
15538 # Check whether --with-md5-passwords or --without-md5-passwords was given.
15539 if test "${with_md5_passwords+set}" = set; then
15540 withval="$with_md5_passwords"
15542 if test "x$withval" != "xno" ; then
15543 cat >>confdefs.h <<\_ACEOF
15544 @%:@define HAVE_MD5_PASSWORDS 1
15553 # Whether to disable shadow password support
15555 # Check whether --with-shadow or --without-shadow was given.
15556 if test "${with_shadow+set}" = set; then
15557 withval="$with_shadow"
15559 if test "x$withval" = "xno" ; then
15560 cat >>confdefs.h <<\_ACEOF
15561 @%:@define DISABLE_SHADOW 1
15570 if test -z "$disable_shadow" ; then
15571 echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
15572 echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6
15573 cat >conftest.$ac_ext <<_ACEOF
15574 #line $LINENO "configure"
15575 #include "confdefs.h"
15577 #include <sys/types.h>
15578 #include <shadow.h>
15581 #ifdef F77_DUMMY_MAIN
15582 # ifdef __cplusplus
15585 int F77_DUMMY_MAIN() { return 1; }
15590 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
15595 rm -f conftest.$ac_objext
15596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15597 (eval $ac_compile) 2>&5
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); } &&
15601 { ac_try='test -s conftest.$ac_objext'
15602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15603 (eval $ac_try) 2>&5
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); }; }; then
15607 sp_expire_available=yes
15609 echo "$as_me: failed program was:" >&5
15610 cat conftest.$ac_ext >&5
15614 rm -f conftest.$ac_objext conftest.$ac_ext
15616 if test "x$sp_expire_available" = "xyes" ; then
15617 echo "$as_me:$LINENO: result: yes" >&5
15618 echo "${ECHO_T}yes" >&6
15619 cat >>confdefs.h <<\_ACEOF
15620 @%:@define HAS_SHADOW_EXPIRE 1
15624 echo "$as_me:$LINENO: result: no" >&5
15625 echo "${ECHO_T}no" >&6
15629 # Use ip address instead of hostname in $DISPLAY
15630 if test ! -z "$IPADDR_IN_DISPLAY" ; then
15631 DISPLAY_HACK_MSG="yes"
15632 cat >>confdefs.h <<\_ACEOF
15633 @%:@define IPADDR_IN_DISPLAY 1
15637 DISPLAY_HACK_MSG="no"
15639 # Check whether --with-ipaddr-display or --without-ipaddr-display was given.
15640 if test "${with_ipaddr_display+set}" = set; then
15641 withval="$with_ipaddr_display"
15643 if test "x$withval" != "xno" ; then
15644 cat >>confdefs.h <<\_ACEOF
15645 @%:@define IPADDR_IN_DISPLAY 1
15648 DISPLAY_HACK_MSG="yes"
15655 if test $ac_cv_func_login_getcapbool = "yes" -a \
15656 $ac_cv_header_login_cap_h = "yes" ; then
15657 USES_LOGIN_CONF=yes
15659 # Whether to mess with the default path
15660 SERVER_PATH_MSG="(default)"
15662 # Check whether --with-default-path or --without-default-path was given.
15663 if test "${with_default_path+set}" = set; then
15664 withval="$with_default_path"
15666 if test "$USES_LOGIN_CONF" = "yes" ; then
15667 { echo "$as_me:$LINENO: WARNING:
15668 --with-default-path=PATH has no effect on this system.
15669 Edit /etc/login.conf instead." >&5
15670 echo "$as_me: WARNING:
15671 --with-default-path=PATH has no effect on this system.
15672 Edit /etc/login.conf instead." >&2;}
15673 elif test "x$withval" != "xno" ; then
15674 user_path="$withval"
15675 SERVER_PATH_MSG="$withval"
15679 if test "$USES_LOGIN_CONF" = "yes" ; then
15680 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
15681 echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
15683 if test "$cross_compiling" = yes; then
15684 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
15687 cat >conftest.$ac_ext <<_ACEOF
15688 #line $LINENO "configure"
15689 #include "confdefs.h"
15691 /* find out what STDPATH is */
15693 #ifdef HAVE_PATHS_H
15694 # include <paths.h>
15696 #ifndef _PATH_STDPATH
15697 # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
15699 #include <sys/types.h>
15700 #include <sys/stat.h>
15702 #define DATA "conftest.stdpath"
15709 fd = fopen(DATA,"w");
15713 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
15720 rm -f conftest$ac_exeext
15721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15722 (eval $ac_link) 2>&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727 (eval $ac_try) 2>&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); }; }; then
15731 user_path=`cat conftest.stdpath`
15733 echo "$as_me: program exited with status $ac_status" >&5
15734 echo "$as_me: failed program was:" >&5
15735 cat conftest.$ac_ext >&5
15736 ( exit $ac_status )
15737 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
15739 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15741 # make sure $bindir is in USER_PATH so scp will work
15742 t_bindir=`eval echo ${bindir}`
15744 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
15747 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
15749 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
15750 if test $? -ne 0 ; then
15751 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
15752 if test $? -ne 0 ; then
15753 user_path=$user_path:$t_bindir
15754 echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
15755 echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6
15761 if test "$USES_LOGIN_CONF" != "yes" ; then
15762 cat >>confdefs.h <<_ACEOF
15763 @%:@define USER_PATH "$user_path"
15769 # Set superuser path separately to user path
15771 # Check whether --with-superuser-path or --without-superuser-path was given.
15772 if test "${with_superuser_path+set}" = set; then
15773 withval="$with_superuser_path"
15775 if test "x$withval" != "xno" ; then
15776 cat >>confdefs.h <<_ACEOF
15777 @%:@define SUPERUSER_PATH "$withval"
15780 superuser_path=$withval
15787 # Whether to force IPv4 by default (needed on broken glibc Linux)
15790 # Check whether --with-ipv4-default or --without-ipv4-default was given.
15791 if test "${with_ipv4_default+set}" = set; then
15792 withval="$with_ipv4_default"
15794 if test "x$withval" != "xno" ; then
15795 cat >>confdefs.h <<\_ACEOF
15796 @%:@define IPV4_DEFAULT 1
15799 IPV4_HACK_MSG="yes"
15805 echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
15806 echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6
15807 IPV4_IN6_HACK_MSG="no"
15809 # Check whether --with-4in6 or --without-4in6 was given.
15810 if test "${with_4in6+set}" = set; then
15811 withval="$with_4in6"
15813 if test "x$withval" != "xno" ; then
15814 echo "$as_me:$LINENO: result: yes" >&5
15815 echo "${ECHO_T}yes" >&6
15816 cat >>confdefs.h <<\_ACEOF
15817 @%:@define IPV4_IN_IPV6 1
15820 IPV4_IN6_HACK_MSG="yes"
15822 echo "$as_me:$LINENO: result: no" >&5
15823 echo "${ECHO_T}no" >&6
15828 if test "x$inet6_default_4in6" = "xyes"; then
15829 echo "$as_me:$LINENO: result: yes (default)" >&5
15830 echo "${ECHO_T}yes (default)" >&6
15831 cat >>confdefs.h <<\_ACEOF
15832 @%:@define IPV4_IN_IPV6 1
15835 IPV4_IN6_HACK_MSG="yes"
15837 echo "$as_me:$LINENO: result: no (default)" >&5
15838 echo "${ECHO_T}no (default)" >&6
15844 # Whether to enable BSD auth support
15847 # Check whether --with-bsd-auth or --without-bsd-auth was given.
15848 if test "${with_bsd_auth+set}" = set; then
15849 withval="$with_bsd_auth"
15851 if test "x$withval" != "xno" ; then
15852 cat >>confdefs.h <<\_ACEOF
15853 @%:@define BSD_AUTH 1
15862 # Where to place sshd.pid
15864 # make sure the directory exists
15865 if test ! -d $piddir ; then
15866 piddir=`eval echo ${sysconfdir}`
15868 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
15873 # Check whether --with-pid-dir or --without-pid-dir was given.
15874 if test "${with_pid_dir+set}" = set; then
15875 withval="$with_pid_dir"
15877 if test "x$withval" != "xno" ; then
15879 if test ! -d $piddir ; then
15880 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
15881 echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
15888 cat >>confdefs.h <<_ACEOF
15889 @%:@define _PATH_SSH_PIDDIR "$piddir"
15894 # Check whether --enable-lastlog or --disable-lastlog was given.
15895 if test "${enable_lastlog+set}" = set; then
15896 enableval="$enable_lastlog"
15897 cat >>confdefs.h <<\_ACEOF
15898 @%:@define DISABLE_LASTLOG 1
15903 # Check whether --enable-utmp or --disable-utmp was given.
15904 if test "${enable_utmp+set}" = set; then
15905 enableval="$enable_utmp"
15906 cat >>confdefs.h <<\_ACEOF
15907 @%:@define DISABLE_UTMP 1
15912 # Check whether --enable-utmpx or --disable-utmpx was given.
15913 if test "${enable_utmpx+set}" = set; then
15914 enableval="$enable_utmpx"
15915 cat >>confdefs.h <<\_ACEOF
15916 @%:@define DISABLE_UTMPX 1
15921 # Check whether --enable-wtmp or --disable-wtmp was given.
15922 if test "${enable_wtmp+set}" = set; then
15923 enableval="$enable_wtmp"
15924 cat >>confdefs.h <<\_ACEOF
15925 @%:@define DISABLE_WTMP 1
15930 # Check whether --enable-wtmpx or --disable-wtmpx was given.
15931 if test "${enable_wtmpx+set}" = set; then
15932 enableval="$enable_wtmpx"
15933 cat >>confdefs.h <<\_ACEOF
15934 @%:@define DISABLE_WTMPX 1
15939 # Check whether --enable-libutil or --disable-libutil was given.
15940 if test "${enable_libutil+set}" = set; then
15941 enableval="$enable_libutil"
15942 cat >>confdefs.h <<\_ACEOF
15943 @%:@define DISABLE_LOGIN 1
15948 # Check whether --enable-pututline or --disable-pututline was given.
15949 if test "${enable_pututline+set}" = set; then
15950 enableval="$enable_pututline"
15951 cat >>confdefs.h <<\_ACEOF
15952 @%:@define DISABLE_PUTUTLINE 1
15957 # Check whether --enable-pututxline or --disable-pututxline was given.
15958 if test "${enable_pututxline+set}" = set; then
15959 enableval="$enable_pututxline"
15960 cat >>confdefs.h <<\_ACEOF
15961 @%:@define DISABLE_PUTUTXLINE 1
15967 # Check whether --with-lastlog or --without-lastlog was given.
15968 if test "${with_lastlog+set}" = set; then
15969 withval="$with_lastlog"
15971 if test "x$withval" = "xno" ; then
15972 cat >>confdefs.h <<\_ACEOF
15973 @%:@define DISABLE_LASTLOG 1
15977 conf_lastlog_location=$withval
15984 echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
15985 echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6
15986 cat >conftest.$ac_ext <<_ACEOF
15987 #line $LINENO "configure"
15988 #include "confdefs.h"
15990 #include <sys/types.h>
15992 #ifdef HAVE_LASTLOG_H
15993 # include <lastlog.h>
15995 #ifdef HAVE_PATHS_H
15996 # include <paths.h>
15998 #ifdef HAVE_LOGIN_H
15999 # include <login.h>
16002 #ifdef F77_DUMMY_MAIN
16003 # ifdef __cplusplus
16006 int F77_DUMMY_MAIN() { return 1; }
16011 char *lastlog = LASTLOG_FILE;
16016 rm -f conftest.$ac_objext
16017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16018 (eval $ac_compile) 2>&5
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); } &&
16022 { ac_try='test -s conftest.$ac_objext'
16023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16024 (eval $ac_try) 2>&5
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); }; }; then
16028 echo "$as_me:$LINENO: result: yes" >&5
16029 echo "${ECHO_T}yes" >&6
16031 echo "$as_me: failed program was:" >&5
16032 cat conftest.$ac_ext >&5
16034 echo "$as_me:$LINENO: result: no" >&5
16035 echo "${ECHO_T}no" >&6
16036 echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
16037 echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6
16038 cat >conftest.$ac_ext <<_ACEOF
16039 #line $LINENO "configure"
16040 #include "confdefs.h"
16042 #include <sys/types.h>
16044 #ifdef HAVE_LASTLOG_H
16045 # include <lastlog.h>
16047 #ifdef HAVE_PATHS_H
16048 # include <paths.h>
16051 #ifdef F77_DUMMY_MAIN
16052 # ifdef __cplusplus
16055 int F77_DUMMY_MAIN() { return 1; }
16060 char *lastlog = _PATH_LASTLOG;
16065 rm -f conftest.$ac_objext
16066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16067 (eval $ac_compile) 2>&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } &&
16071 { ac_try='test -s conftest.$ac_objext'
16072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16073 (eval $ac_try) 2>&5
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); }; }; then
16077 echo "$as_me:$LINENO: result: yes" >&5
16078 echo "${ECHO_T}yes" >&6
16080 echo "$as_me: failed program was:" >&5
16081 cat conftest.$ac_ext >&5
16083 echo "$as_me:$LINENO: result: no" >&5
16084 echo "${ECHO_T}no" >&6
16085 system_lastlog_path=no
16088 rm -f conftest.$ac_objext conftest.$ac_ext
16092 rm -f conftest.$ac_objext conftest.$ac_ext
16094 if test -z "$conf_lastlog_location"; then
16095 if test x"$system_lastlog_path" = x"no" ; then
16096 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
16097 if (test -d "$f" || test -f "$f") ; then
16098 conf_lastlog_location=$f
16101 if test -z "$conf_lastlog_location"; then
16102 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
16103 echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
16108 if test -n "$conf_lastlog_location"; then
16109 cat >>confdefs.h <<_ACEOF
16110 @%:@define CONF_LASTLOG_FILE "$conf_lastlog_location"
16115 echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
16116 echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6
16117 cat >conftest.$ac_ext <<_ACEOF
16118 #line $LINENO "configure"
16119 #include "confdefs.h"
16121 #include <sys/types.h>
16123 #ifdef HAVE_PATHS_H
16124 # include <paths.h>
16127 #ifdef F77_DUMMY_MAIN
16128 # ifdef __cplusplus
16131 int F77_DUMMY_MAIN() { return 1; }
16136 char *utmp = UTMP_FILE;
16141 rm -f conftest.$ac_objext
16142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16143 (eval $ac_compile) 2>&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } &&
16147 { ac_try='test -s conftest.$ac_objext'
16148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149 (eval $ac_try) 2>&5
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); }; }; then
16153 echo "$as_me:$LINENO: result: yes" >&5
16154 echo "${ECHO_T}yes" >&6
16156 echo "$as_me: failed program was:" >&5
16157 cat conftest.$ac_ext >&5
16158 echo "$as_me:$LINENO: result: no" >&5
16159 echo "${ECHO_T}no" >&6
16160 system_utmp_path=no
16163 rm -f conftest.$ac_objext conftest.$ac_ext
16164 if test -z "$conf_utmp_location"; then
16165 if test x"$system_utmp_path" = x"no" ; then
16166 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
16167 if test -f $f ; then
16168 conf_utmp_location=$f
16171 if test -z "$conf_utmp_location"; then
16172 cat >>confdefs.h <<\_ACEOF
16173 @%:@define DISABLE_UTMP 1
16179 if test -n "$conf_utmp_location"; then
16180 cat >>confdefs.h <<_ACEOF
16181 @%:@define CONF_UTMP_FILE "$conf_utmp_location"
16186 echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
16187 echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6
16188 cat >conftest.$ac_ext <<_ACEOF
16189 #line $LINENO "configure"
16190 #include "confdefs.h"
16192 #include <sys/types.h>
16194 #ifdef HAVE_PATHS_H
16195 # include <paths.h>
16198 #ifdef F77_DUMMY_MAIN
16199 # ifdef __cplusplus
16202 int F77_DUMMY_MAIN() { return 1; }
16207 char *wtmp = WTMP_FILE;
16212 rm -f conftest.$ac_objext
16213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16214 (eval $ac_compile) 2>&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); } &&
16218 { ac_try='test -s conftest.$ac_objext'
16219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220 (eval $ac_try) 2>&5
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); }; }; then
16224 echo "$as_me:$LINENO: result: yes" >&5
16225 echo "${ECHO_T}yes" >&6
16227 echo "$as_me: failed program was:" >&5
16228 cat conftest.$ac_ext >&5
16229 echo "$as_me:$LINENO: result: no" >&5
16230 echo "${ECHO_T}no" >&6
16231 system_wtmp_path=no
16234 rm -f conftest.$ac_objext conftest.$ac_ext
16235 if test -z "$conf_wtmp_location"; then
16236 if test x"$system_wtmp_path" = x"no" ; then
16237 for f in /usr/adm/wtmp /var/log/wtmp; do
16238 if test -f $f ; then
16239 conf_wtmp_location=$f
16242 if test -z "$conf_wtmp_location"; then
16243 cat >>confdefs.h <<\_ACEOF
16244 @%:@define DISABLE_WTMP 1
16250 if test -n "$conf_wtmp_location"; then
16251 cat >>confdefs.h <<_ACEOF
16252 @%:@define CONF_WTMP_FILE "$conf_wtmp_location"
16258 echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
16259 echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6
16260 cat >conftest.$ac_ext <<_ACEOF
16261 #line $LINENO "configure"
16262 #include "confdefs.h"
16264 #include <sys/types.h>
16266 #ifdef HAVE_UTMPX_H
16269 #ifdef HAVE_PATHS_H
16270 # include <paths.h>
16273 #ifdef F77_DUMMY_MAIN
16274 # ifdef __cplusplus
16277 int F77_DUMMY_MAIN() { return 1; }
16282 char *utmpx = UTMPX_FILE;
16287 rm -f conftest.$ac_objext
16288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16289 (eval $ac_compile) 2>&5
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); } &&
16293 { ac_try='test -s conftest.$ac_objext'
16294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16295 (eval $ac_try) 2>&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); }; }; then
16299 echo "$as_me:$LINENO: result: yes" >&5
16300 echo "${ECHO_T}yes" >&6
16302 echo "$as_me: failed program was:" >&5
16303 cat conftest.$ac_ext >&5
16304 echo "$as_me:$LINENO: result: no" >&5
16305 echo "${ECHO_T}no" >&6
16306 system_utmpx_path=no
16309 rm -f conftest.$ac_objext conftest.$ac_ext
16310 if test -z "$conf_utmpx_location"; then
16311 if test x"$system_utmpx_path" = x"no" ; then
16312 cat >>confdefs.h <<\_ACEOF
16313 @%:@define DISABLE_UTMPX 1
16318 cat >>confdefs.h <<_ACEOF
16319 @%:@define CONF_UTMPX_FILE "$conf_utmpx_location"
16324 echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
16325 echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6
16326 cat >conftest.$ac_ext <<_ACEOF
16327 #line $LINENO "configure"
16328 #include "confdefs.h"
16330 #include <sys/types.h>
16332 #ifdef HAVE_UTMPX_H
16335 #ifdef HAVE_PATHS_H
16336 # include <paths.h>
16339 #ifdef F77_DUMMY_MAIN
16340 # ifdef __cplusplus
16343 int F77_DUMMY_MAIN() { return 1; }
16348 char *wtmpx = WTMPX_FILE;
16353 rm -f conftest.$ac_objext
16354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16355 (eval $ac_compile) 2>&5
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); } &&
16359 { ac_try='test -s conftest.$ac_objext'
16360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16361 (eval $ac_try) 2>&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); }; }; then
16365 echo "$as_me:$LINENO: result: yes" >&5
16366 echo "${ECHO_T}yes" >&6
16368 echo "$as_me: failed program was:" >&5
16369 cat conftest.$ac_ext >&5
16370 echo "$as_me:$LINENO: result: no" >&5
16371 echo "${ECHO_T}no" >&6
16372 system_wtmpx_path=no
16375 rm -f conftest.$ac_objext conftest.$ac_ext
16376 if test -z "$conf_wtmpx_location"; then
16377 if test x"$system_wtmpx_path" = x"no" ; then
16378 cat >>confdefs.h <<\_ACEOF
16379 @%:@define DISABLE_WTMPX 1
16384 cat >>confdefs.h <<_ACEOF
16385 @%:@define CONF_WTMPX_FILE "$conf_wtmpx_location"
16391 if test ! -z "$blibpath" ; then
16392 LDFLAGS="$LDFLAGS -blibpath:$blibpath"
16393 { echo "$as_me:$LINENO: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&5
16394 echo "$as_me: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&2;}
16397 if test "$PAM_MSG" = yes ; then
16398 LIBS=`echo $LIBS | sed 's/-lpam //'`
16400 if test "$ac_cv_lib_pam_pam_set_item" = yes ; then
16401 LIBS=`echo $LIBS | sed 's/-ldl //'`
16405 ac_config_files="$ac_config_files Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds"
16407 cat >confcache <<\_ACEOF
16408 # This file is a shell script that caches the results of configure
16409 # tests run on this system so they can be shared between configure
16410 # scripts and configure runs, see configure's option --config-cache.
16411 # It is not useful on other systems. If it contains results you don't
16412 # want to keep, you may remove or edit it.
16414 # config.status only pays attention to the cache file if you give it
16415 # the --recheck option to rerun configure.
16417 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16418 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16419 # following values.
16423 # The following way of writing the cache mishandles newlines in values,
16424 # but we know of no workaround that is simple, portable, and efficient.
16425 # So, don't put newlines in cache variables' values.
16426 # Ultrix sh set writes to stderr and can't be redirected directly,
16427 # and sets the high bit in the cache file unless we assign to the vars.
16430 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16432 # `set' does not quote correctly, so add quotes (double-quote
16433 # substitution turns \\\\ into \\, and sed turns \\ into \).
16436 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16439 # `set' quotes correctly as required by POSIX, so do not add quotes.
16441 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16448 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16450 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16452 if cmp -s $cache_file confcache; then :; else
16453 if test -w $cache_file; then
16454 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16455 cat confcache >$cache_file
16457 echo "not updating unwritable cache $cache_file"
16462 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16463 # Let make expand exec_prefix.
16464 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16466 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16467 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16468 # trailing colons and then remove the whole line if VPATH becomes empty
16469 # (actually we leave an empty line to preserve line numbers).
16470 if test "x$srcdir" = x.; then
16471 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16472 s/:*\$(srcdir):*/:/;
16473 s/:*\${srcdir}:*/:/;
16475 s/^\([^=]*=[ ]*\):*/\1/;
16481 DEFS=-DHAVE_CONFIG_H
16484 : ${CONFIG_STATUS=./config.status}
16485 ac_clean_files_save=$ac_clean_files
16486 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16487 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16488 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16489 cat >$CONFIG_STATUS <<_ACEOF
16491 # Generated by $as_me.
16492 # Run this file to recreate the current configuration.
16493 # Compiler output produced by configure, useful for debugging
16494 # configure, is in config.log if it exists.
16497 SHELL=\${CONFIG_SHELL-$SHELL}
16500 cat >>$CONFIG_STATUS <<\_ACEOF
16502 ## --------------------- ##
16503 ## M4sh Initialization. ##
16504 ## --------------------- ##
16506 # Be Bourne compatible
16507 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16510 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16515 # Support unset when possible.
16516 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16522 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16523 { $as_unset LANG || test "${LANG+set}" != set; } ||
16524 { LANG=C; export LANG; }
16525 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16526 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16527 { LC_ALL=C; export LC_ALL; }
16528 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16529 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16530 { LC_TIME=C; export LC_TIME; }
16531 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16532 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16533 { LC_CTYPE=C; export LC_CTYPE; }
16534 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16535 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16536 { LANGUAGE=C; export LANGUAGE; }
16537 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16538 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16539 { LC_COLLATE=C; export LC_COLLATE; }
16540 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16541 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16542 { LC_NUMERIC=C; export LC_NUMERIC; }
16543 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16544 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16545 { LC_MESSAGES=C; export LC_MESSAGES; }
16548 # Name of the executable.
16549 as_me=`(basename "$0") 2>/dev/null ||
16550 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16551 X"$0" : 'X\(//\)$' \| \
16552 X"$0" : 'X\(/\)$' \| \
16553 . : '\(.\)' 2>/dev/null ||
16555 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16556 /^X\/\(\/\/\)$/{ s//\1/; q; }
16557 /^X\/\(\/\).*/{ s//\1/; q; }
16560 # PATH needs CR, and LINENO needs CR and PATH.
16561 # Avoid depending upon Character Ranges.
16562 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16563 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16564 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16565 as_cr_digits='0123456789'
16566 as_cr_alnum=$as_cr_Letters$as_cr_digits
16568 # The user is always right.
16569 if test "${PATH_SEPARATOR+set}" != set; then
16570 echo "#! /bin/sh" >conftest.sh
16571 echo "exit 0" >>conftest.sh
16572 chmod +x conftest.sh
16573 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16582 as_lineno_1=$LINENO
16583 as_lineno_2=$LINENO
16584 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16585 test "x$as_lineno_1" != "x$as_lineno_2" &&
16586 test "x$as_lineno_3" = "x$as_lineno_2" || {
16587 # Find who we are. Look in the path if we contain no path at all
16590 *[\\/]* ) as_myself=$0 ;;
16591 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16592 for as_dir in $PATH
16595 test -z "$as_dir" && as_dir=.
16596 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16601 # We did not find ourselves, most probably we were run as `sh COMMAND'
16602 # in which case we are not to be found in the path.
16603 if test "x$as_myself" = x; then
16606 if test ! -f "$as_myself"; then
16607 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16608 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16609 { (exit 1); exit 1; }; }
16611 case $CONFIG_SHELL in
16613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16614 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16617 test -z "$as_dir" && as_dir=.
16618 for as_base in sh bash ksh sh5; do
16621 if ("$as_dir/$as_base" -c '
16622 as_lineno_1=$LINENO
16623 as_lineno_2=$LINENO
16624 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16625 test "x$as_lineno_1" != "x$as_lineno_2" &&
16626 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16627 CONFIG_SHELL=$as_dir/$as_base
16628 export CONFIG_SHELL
16629 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16637 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16638 # uniformly replaced by the line number. The first 'sed' inserts a
16639 # line-number line before each line; the second 'sed' does the real
16640 # work. The second script uses 'N' to pair each line-number line
16641 # with the numbered line, and appends trailing '-' during
16642 # substitution so that $LINENO is not a special case at line end.
16643 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16644 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16645 sed '=' <$as_myself |
16650 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16653 s,^['$as_cr_digits']*\n,,
16654 ' >$as_me.lineno &&
16655 chmod +x $as_me.lineno ||
16656 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16657 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16658 { (exit 1); exit 1; }; }
16660 # Don't try to exec as it changes $[0], causing all sort of problems
16661 # (the dirname of $[0] is not the place where we might find the
16662 # original and so on. Autoconf is especially sensible to this).
16664 # Exit status is that of the last command.
16669 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16670 *c*,-n*) ECHO_N= ECHO_C='
16672 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16673 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16676 if expr a : '\(a\)' >/dev/null 2>&1; then
16682 rm -f conf$$ conf$$.exe conf$$.file
16684 if ln -s conf$$.file conf$$ 2>/dev/null; then
16685 # We could just check for DJGPP; but this test a) works b) is more generic
16686 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16687 if test -f conf$$.exe; then
16688 # Don't use ln at all; we don't have any links
16693 elif ln conf$$.file conf$$ 2>/dev/null; then
16698 rm -f conf$$ conf$$.exe conf$$.file
16700 as_executable_p="test -f"
16702 # Sed expression to map a string onto a valid CPP name.
16703 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16705 # Sed expression to map a string onto a valid variable name.
16706 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16710 # We need space, tab and new line, in precisely that order.
16716 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16720 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16721 # report actual input values of CONFIG_FILES etc. instead of their
16722 # values after options handling. Logging --version etc. is OK.
16726 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
16727 @%:@@%:@ Running $as_me. @%:@@%:@
16732 This file was extended by $as_me, which was
16733 generated by GNU Autoconf 2.53. Invocation command line was
16735 CONFIG_FILES = $CONFIG_FILES
16736 CONFIG_HEADERS = $CONFIG_HEADERS
16737 CONFIG_LINKS = $CONFIG_LINKS
16738 CONFIG_COMMANDS = $CONFIG_COMMANDS
16742 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16746 # Files that config.status was made for.
16747 if test -n "$ac_config_files"; then
16748 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16751 if test -n "$ac_config_headers"; then
16752 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16755 if test -n "$ac_config_links"; then
16756 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16759 if test -n "$ac_config_commands"; then
16760 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16763 cat >>$CONFIG_STATUS <<\_ACEOF
16766 \`$as_me' instantiates files from templates according to the
16767 current configuration.
16769 Usage: $0 [OPTIONS] [FILE]...
16771 -h, --help print this help, then exit
16772 -V, --version print version number, then exit
16773 -d, --debug don't remove temporary files
16774 --recheck update $as_me by reconfiguring in the same conditions
16775 --file=FILE[:TEMPLATE]
16776 instantiate the configuration file FILE
16777 --header=FILE[:TEMPLATE]
16778 instantiate the configuration header FILE
16780 Configuration files:
16783 Configuration headers:
16786 Report bugs to <bug-autoconf@gnu.org>."
16789 cat >>$CONFIG_STATUS <<_ACEOF
16792 configured by $0, generated by GNU Autoconf 2.53,
16793 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16795 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16796 Free Software Foundation, Inc.
16797 This config.status script is free software; the Free Software Foundation
16798 gives unlimited permission to copy, distribute and modify it."
16803 cat >>$CONFIG_STATUS <<\_ACEOF
16804 # If no file are specified by the user, then we need to provide default
16805 # value. By we need to know if files were specified by the user.
16811 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16812 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16814 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16818 *) # This is not an option, so the user has probably given explicit
16820 ac_need_defaults=false;;
16824 # Handling of the options.
16826 cat >>$CONFIG_STATUS <<_ACEOF
16827 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16828 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16829 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16831 cat >>$CONFIG_STATUS <<\_ACEOF
16832 --version | --vers* | -V )
16833 echo "$ac_cs_version"; exit 0 ;;
16835 # Conflict between --help and --header
16836 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16837 Try \`$0 --help' for more information." >&5
16838 echo "$as_me: error: ambiguous option: $1
16839 Try \`$0 --help' for more information." >&2;}
16840 { (exit 1); exit 1; }; };;
16841 --help | --hel | -h )
16842 echo "$ac_cs_usage"; exit 0 ;;
16843 --debug | --d* | -d )
16845 --file | --fil | --fi | --f )
16847 CONFIG_FILES="$CONFIG_FILES $1"
16848 ac_need_defaults=false;;
16849 --header | --heade | --head | --hea )
16851 CONFIG_HEADERS="$CONFIG_HEADERS $1"
16852 ac_need_defaults=false;;
16854 # This is an error.
16855 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16856 Try \`$0 --help' for more information." >&5
16857 echo "$as_me: error: unrecognized option: $1
16858 Try \`$0 --help' for more information." >&2;}
16859 { (exit 1); exit 1; }; } ;;
16861 *) ac_config_targets="$ac_config_targets $1" ;;
16873 cat >>$CONFIG_STATUS <<\_ACEOF
16874 for ac_config_target in $ac_config_targets
16876 case "$ac_config_target" in
16877 # Handling of arguments.
16878 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16879 "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
16880 "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
16881 "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
16882 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16883 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16884 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16885 { (exit 1); exit 1; }; };;
16889 # If the user did not use the arguments to specify the items to instantiate,
16890 # then the envvar interface is used. Set only those that are not.
16891 # We use the long form for the default assignment because of an extremely
16892 # bizarre bug on SunOS 4.1.3.
16893 if $ac_need_defaults; then
16894 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16895 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16898 # Create a temporary directory, and hook for its removal unless debugging.
16901 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16902 trap '{ (exit 1); exit 1; }' 1 2 13 15
16905 # Create a (secure) tmp directory for tmp files.
16908 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16909 test -n "$tmp" && test -d "$tmp"
16912 tmp=$TMPDIR/cs$$-$RANDOM
16913 (umask 077 && mkdir $tmp)
16916 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16917 { (exit 1); exit 1; }
16922 cat >>$CONFIG_STATUS <<_ACEOF
16925 # CONFIG_FILES section.
16928 # No need to generate the scripts if there are no CONFIG_FILES.
16929 # This happens for instance when ./config.status config.h
16930 if test -n "\$CONFIG_FILES"; then
16931 # Protect against being on the right side of a sed subst in config.status.
16932 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16933 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16934 s,@SHELL@,$SHELL,;t t
16935 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16936 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16937 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16938 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16939 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16940 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16941 s,@exec_prefix@,$exec_prefix,;t t
16942 s,@prefix@,$prefix,;t t
16943 s,@program_transform_name@,$program_transform_name,;t t
16944 s,@bindir@,$bindir,;t t
16945 s,@sbindir@,$sbindir,;t t
16946 s,@libexecdir@,$libexecdir,;t t
16947 s,@datadir@,$datadir,;t t
16948 s,@sysconfdir@,$sysconfdir,;t t
16949 s,@sharedstatedir@,$sharedstatedir,;t t
16950 s,@localstatedir@,$localstatedir,;t t
16951 s,@libdir@,$libdir,;t t
16952 s,@includedir@,$includedir,;t t
16953 s,@oldincludedir@,$oldincludedir,;t t
16954 s,@infodir@,$infodir,;t t
16955 s,@mandir@,$mandir,;t t
16956 s,@build_alias@,$build_alias,;t t
16957 s,@host_alias@,$host_alias,;t t
16958 s,@target_alias@,$target_alias,;t t
16959 s,@DEFS@,$DEFS,;t t
16960 s,@ECHO_C@,$ECHO_C,;t t
16961 s,@ECHO_N@,$ECHO_N,;t t
16962 s,@ECHO_T@,$ECHO_T,;t t
16963 s,@LIBS@,$LIBS,;t t
16965 s,@CFLAGS@,$CFLAGS,;t t
16966 s,@LDFLAGS@,$LDFLAGS,;t t
16967 s,@CPPFLAGS@,$CPPFLAGS,;t t
16968 s,@ac_ct_CC@,$ac_ct_CC,;t t
16969 s,@EXEEXT@,$EXEEXT,;t t
16970 s,@OBJEXT@,$OBJEXT,;t t
16971 s,@build@,$build,;t t
16972 s,@build_cpu@,$build_cpu,;t t
16973 s,@build_vendor@,$build_vendor,;t t
16974 s,@build_os@,$build_os,;t t
16975 s,@host@,$host,;t t
16976 s,@host_cpu@,$host_cpu,;t t
16977 s,@host_vendor@,$host_vendor,;t t
16978 s,@host_os@,$host_os,;t t
16980 s,@RANLIB@,$RANLIB,;t t
16981 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16982 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16983 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16984 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16986 s,@PERL@,$PERL,;t t
16988 s,@FILEPRIV@,$FILEPRIV,;t t
16989 s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t
16991 s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t
16993 s,@LIBWRAP@,$LIBWRAP,;t t
16994 s,@LIBPAM@,$LIBPAM,;t t
16995 s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t
16996 s,@PROG_LS@,$PROG_LS,;t t
16997 s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t
16998 s,@PROG_ARP@,$PROG_ARP,;t t
16999 s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t
17000 s,@PROG_JSTAT@,$PROG_JSTAT,;t t
17001 s,@PROG_PS@,$PROG_PS,;t t
17002 s,@PROG_SAR@,$PROG_SAR,;t t
17003 s,@PROG_W@,$PROG_W,;t t
17004 s,@PROG_WHO@,$PROG_WHO,;t t
17005 s,@PROG_LAST@,$PROG_LAST,;t t
17006 s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t
17007 s,@PROG_DF@,$PROG_DF,;t t
17008 s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t
17009 s,@PROG_UPTIME@,$PROG_UPTIME,;t t
17010 s,@PROG_IPCS@,$PROG_IPCS,;t t
17011 s,@PROG_TAIL@,$PROG_TAIL,;t t
17012 s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t
17013 s,@NO_SFTP@,$NO_SFTP,;t t
17014 s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t
17015 s,@rsh_path@,$rsh_path,;t t
17016 s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t
17017 s,@xauth_path@,$xauth_path,;t t
17018 s,@XAUTH_PATH@,$XAUTH_PATH,;t t
17019 s,@NROFF@,$NROFF,;t t
17020 s,@MANTYPE@,$MANTYPE,;t t
17021 s,@mansubdir@,$mansubdir,;t t
17022 s,@user_path@,$user_path,;t t
17023 s,@piddir@,$piddir,;t t
17028 cat >>$CONFIG_STATUS <<\_ACEOF
17029 # Split the substitutions into bite-sized pieces for seds with
17030 # small command number limits, like on Digital OSF/1 and HP-UX.
17031 ac_max_sed_lines=48
17032 ac_sed_frag=1 # Number of current file.
17033 ac_beg=1 # First line for current file.
17034 ac_end=$ac_max_sed_lines # Line after last line for current file.
17037 while $ac_more_lines; do
17038 if test $ac_beg -gt 1; then
17039 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17041 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17043 if test ! -s $tmp/subs.frag; then
17044 ac_more_lines=false
17046 # The purpose of the label and of the branching condition is to
17047 # speed up the sed processing (if there are no `@' at all, there
17048 # is no need to browse any of the substitutions).
17049 # These are the two extra sed commands mentioned above.
17051 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17052 if test -z "$ac_sed_cmds"; then
17053 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17055 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17057 ac_sed_frag=`expr $ac_sed_frag + 1`
17059 ac_end=`expr $ac_end + $ac_max_sed_lines`
17062 if test -z "$ac_sed_cmds"; then
17065 fi # test -n "$CONFIG_FILES"
17068 cat >>$CONFIG_STATUS <<\_ACEOF
17069 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17070 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17072 - | *:- | *:-:* ) # input from stdin
17074 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17075 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17076 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17077 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17078 * ) ac_file_in=$ac_file.in ;;
17081 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17082 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17083 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17084 X"$ac_file" : 'X\(//\)[^/]' \| \
17085 X"$ac_file" : 'X\(//\)$' \| \
17086 X"$ac_file" : 'X\(/\)' \| \
17087 . : '\(.\)' 2>/dev/null ||
17089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17090 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17091 /^X\(\/\/\)$/{ s//\1/; q; }
17092 /^X\(\/\).*/{ s//\1/; q; }
17094 { case "$ac_dir" in
17095 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17099 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17100 case $as_mkdir_dir in
17101 # Skip DOS drivespec
17102 ?:) as_incr_dir=$as_mkdir_dir ;;
17104 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17105 test -d "$as_incr_dir" ||
17106 mkdir "$as_incr_dir" ||
17107 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17108 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17109 { (exit 1); exit 1; }; }
17116 if test "$ac_dir" != .; then
17117 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17118 # A "../" for each directory in $ac_dir_suffix.
17119 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17121 ac_dir_suffix= ac_top_builddir=
17125 .) # No --srcdir option. We are building in place.
17127 if test -z "$ac_top_builddir"; then
17130 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17132 [\\/]* | ?:[\\/]* ) # Absolute path.
17133 ac_srcdir=$srcdir$ac_dir_suffix;
17134 ac_top_srcdir=$srcdir ;;
17135 *) # Relative path.
17136 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17137 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17139 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17141 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17142 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17143 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17144 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17148 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17149 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17152 if test x"$ac_file" != x-; then
17153 { echo "$as_me:$LINENO: creating $ac_file" >&5
17154 echo "$as_me: creating $ac_file" >&6;}
17157 # Let's still pretend it is `configure' which instantiates (i.e., don't
17158 # use $as_me), people would be surprised to read:
17159 # /* config.h. Generated by config.status. */
17160 if test x"$ac_file" = x-; then
17163 configure_input="$ac_file. "
17165 configure_input=$configure_input"Generated from `echo $ac_file_in |
17166 sed 's,.*/,,'` by configure."
17168 # First look for the input files in the build tree, otherwise in the
17170 ac_file_inputs=`IFS=:
17171 for f in $ac_file_in; do
17173 -) echo $tmp/stdin ;;
17175 # Absolute (can't be DOS-style, as IFS=:)
17176 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17177 echo "$as_me: error: cannot find input file: $f" >&2;}
17178 { (exit 1); exit 1; }; }
17181 if test -f "$f"; then
17184 elif test -f "$srcdir/$f"; then
17189 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17190 echo "$as_me: error: cannot find input file: $f" >&2;}
17191 { (exit 1); exit 1; }; }
17194 done` || { (exit 1); exit 1; }
17196 cat >>$CONFIG_STATUS <<_ACEOF
17200 cat >>$CONFIG_STATUS <<\_ACEOF
17202 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17203 s,@configure_input@,$configure_input,;t t
17204 s,@srcdir@,$ac_srcdir,;t t
17205 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17206 s,@top_srcdir@,$ac_top_srcdir,;t t
17207 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17208 s,@builddir@,$ac_builddir,;t t
17209 s,@abs_builddir@,$ac_abs_builddir,;t t
17210 s,@top_builddir@,$ac_top_builddir,;t t
17211 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17212 s,@INSTALL@,$ac_INSTALL,;t t
17213 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17215 if test x"$ac_file" != x-; then
17216 mv $tmp/out $ac_file
17224 cat >>$CONFIG_STATUS <<\_ACEOF
17227 # CONFIG_HEADER section.
17230 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17231 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17233 # ac_d sets the value in "#define NAME VALUE" lines.
17234 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17235 ac_dB='[ ].*$,\1#\2'
17238 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17239 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17240 ac_uB='$,\1#\2define\3'
17244 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17245 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17247 - | *:- | *:-:* ) # input from stdin
17249 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17250 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17251 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17252 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17253 * ) ac_file_in=$ac_file.in ;;
17256 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17257 echo "$as_me: creating $ac_file" >&6;}
17259 # First look for the input files in the build tree, otherwise in the
17261 ac_file_inputs=`IFS=:
17262 for f in $ac_file_in; do
17264 -) echo $tmp/stdin ;;
17266 # Absolute (can't be DOS-style, as IFS=:)
17267 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17268 echo "$as_me: error: cannot find input file: $f" >&2;}
17269 { (exit 1); exit 1; }; }
17272 if test -f "$f"; then
17275 elif test -f "$srcdir/$f"; then
17280 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17281 echo "$as_me: error: cannot find input file: $f" >&2;}
17282 { (exit 1); exit 1; }; }
17285 done` || { (exit 1); exit 1; }
17286 # Remove the trailing spaces.
17287 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17291 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17292 # `conftest.undefs', that substitutes the proper values into
17293 # config.h.in to produce config.h. The first handles `#define'
17294 # templates, and the second `#undef' templates.
17295 # And first: Protect against being on the right side of a sed subst in
17296 # config.status. Protect against being in an unquoted here document
17297 # in config.status.
17298 rm -f conftest.defines conftest.undefs
17299 # Using a here document instead of a string reduces the quoting nightmare.
17300 # Putting comments in sed scripts is not portable.
17302 # `end' is used to avoid that the second main sed command (meant for
17303 # 0-ary CPP macros) applies to n-ary macro definitions.
17304 # See the Autoconf documentation for `clear'.
17305 cat >confdef2sed.sed <<\_ACEOF
17310 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17312 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17315 # If some macros were called several times there might be several times
17316 # the same #defines, which is useless. Nevertheless, we may not want to
17317 # sort them, since we want the *last* AC-DEFINE to be honored.
17318 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17319 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17320 rm -f confdef2sed.sed
17322 # This sed command replaces #undef with comments. This is necessary, for
17323 # example, in the case of _POSIX_SOURCE, which is predefined and required
17324 # on some systems where configure will not decide to define it.
17325 cat >>conftest.undefs <<\_ACEOF
17326 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17329 # Break up conftest.defines because some shells have a limit on the size
17330 # of here documents, and old seds have small limits too (100 cmds).
17331 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17332 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17333 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17334 echo ' :' >>$CONFIG_STATUS
17335 rm -f conftest.tail
17336 while grep . conftest.defines >/dev/null
17338 # Write a limited-size here document to $tmp/defines.sed.
17339 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17340 # Speed up: don't consider the non `#define' lines.
17341 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17342 # Work around the forget-to-reset-the-flag bug.
17343 echo 't clr' >>$CONFIG_STATUS
17344 echo ': clr' >>$CONFIG_STATUS
17345 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17347 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17349 mv $tmp/out $tmp/in
17351 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17352 rm -f conftest.defines
17353 mv conftest.tail conftest.defines
17355 rm -f conftest.defines
17356 echo ' fi # egrep' >>$CONFIG_STATUS
17357 echo >>$CONFIG_STATUS
17359 # Break up conftest.undefs because some shells have a limit on the size
17360 # of here documents, and old seds have small limits too (100 cmds).
17361 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17362 rm -f conftest.tail
17363 while grep . conftest.undefs >/dev/null
17365 # Write a limited-size here document to $tmp/undefs.sed.
17366 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17367 # Speed up: don't consider the non `#undef'
17368 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17369 # Work around the forget-to-reset-the-flag bug.
17370 echo 't clr' >>$CONFIG_STATUS
17371 echo ': clr' >>$CONFIG_STATUS
17372 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17374 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17376 mv $tmp/out $tmp/in
17378 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17379 rm -f conftest.undefs
17380 mv conftest.tail conftest.undefs
17382 rm -f conftest.undefs
17384 cat >>$CONFIG_STATUS <<\_ACEOF
17385 # Let's still pretend it is `configure' which instantiates (i.e., don't
17386 # use $as_me), people would be surprised to read:
17387 # /* config.h. Generated by config.status. */
17388 if test x"$ac_file" = x-; then
17389 echo "/* Generated by configure. */" >$tmp/config.h
17391 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17393 cat $tmp/in >>$tmp/config.h
17395 if test x"$ac_file" != x-; then
17396 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17397 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17398 echo "$as_me: $ac_file is unchanged" >&6;}
17400 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17401 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17402 X"$ac_file" : 'X\(//\)[^/]' \| \
17403 X"$ac_file" : 'X\(//\)$' \| \
17404 X"$ac_file" : 'X\(/\)' \| \
17405 . : '\(.\)' 2>/dev/null ||
17407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17408 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17409 /^X\(\/\/\)$/{ s//\1/; q; }
17410 /^X\(\/\).*/{ s//\1/; q; }
17412 { case "$ac_dir" in
17413 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17417 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17418 case $as_mkdir_dir in
17419 # Skip DOS drivespec
17420 ?:) as_incr_dir=$as_mkdir_dir ;;
17422 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17423 test -d "$as_incr_dir" ||
17424 mkdir "$as_incr_dir" ||
17425 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17426 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17427 { (exit 1); exit 1; }; }
17433 mv $tmp/config.h $ac_file
17437 rm -f $tmp/config.h
17442 cat >>$CONFIG_STATUS <<\_ACEOF
17444 { (exit 0); exit 0; }
17446 chmod +x $CONFIG_STATUS
17447 ac_clean_files=$ac_clean_files_save
17450 # configure is writing to config.log, and then calls config.status.
17451 # config.status does its own redirection, appending to config.log.
17452 # Unfortunately, on DOS this fails, as config.log is still kept open
17453 # by configure, so config.status won't be able to write to it; its
17454 # output is simply discarded. So we exec the FD to /dev/null,
17455 # effectively closing config.log, so it can be properly (re)opened and
17456 # appended to by config.status. When coming back to configure, we
17457 # need to make the FD available again.
17458 if test "$no_create" != yes; then
17461 $SHELL $CONFIG_STATUS || ac_cs_success=false
17463 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17464 # would make configure fail if this is the last instruction.
17465 $ac_cs_success || { (exit 1); exit 1; }
17469 # Print summary of options
17471 # Someone please show me a better way :)
17472 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
17473 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
17474 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
17475 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
17476 E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
17477 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
17478 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
17479 H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
17480 I=`eval echo ${user_path}` ; I=`eval echo ${I}`
17481 J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
17484 echo "OpenSSH has been configured with the following options:"
17485 echo " User binaries: $B"
17486 echo " System binaries: $C"
17487 echo " Configuration files: $D"
17488 echo " Askpass program: $E"
17489 echo " Manual pages: $F"
17490 echo " PID file: $G"
17491 echo " Privilege separation chroot path: $H"
17492 if test "$USES_LOGIN_CONF" = "yes" ; then
17493 echo " At runtime, sshd will use the path defined in /etc/login.conf"
17495 echo " sshd default user PATH: $I"
17497 if test ! -z "$superuser_path" ; then
17498 echo " sshd superuser user PATH: $J"
17500 echo " Manpage format: $MANTYPE"
17501 echo " PAM support: ${PAM_MSG}"
17502 echo " KerberosIV support: $KRB4_MSG"
17503 echo " KerberosV support: $KRB5_MSG"
17504 echo " Smartcard support: $SCARD_MSG"
17505 echo " AFS support: $AFS_MSG"
17506 echo " S/KEY support: $SKEY_MSG"
17507 echo " TCP Wrappers support: $TCPW_MSG"
17508 echo " MD5 password support: $MD5_MSG"
17509 echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
17510 echo " Use IPv4 by default hack: $IPV4_HACK_MSG"
17511 echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
17512 echo " BSD Auth support: $BSD_AUTH_MSG"
17513 echo " Random number source: $RAND_MSG"
17514 if test ! -z "$USE_RAND_HELPER" ; then
17515 echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
17520 echo " Host: ${host}"
17521 echo " Compiler: ${CC}"
17522 echo " Compiler flags: ${CFLAGS}"
17523 echo "Preprocessor flags: ${CPPFLAGS}"
17524 echo " Linker flags: ${LDFLAGS}"
17525 echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}"
17529 if test "x$PAM_MSG" = "xyes" ; then
17530 echo "PAM is enabled. You may need to install a PAM control file "
17531 echo "for sshd, otherwise password authentication may fail. "
17532 echo "Example PAM control files can be found in the contrib/ "
17533 echo "subdirectory"
17537 if test ! -z "$NO_SFTP"; then
17538 echo "sftp-server will be disabled. Your compiler does not "
17539 echo "support 64bit integers."
17543 if test ! -z "$RAND_HELPER_CMDHASH" ; then
17544 echo "WARNING: you are using the builtin random number collection "
17545 echo "service. Please read WARNING.RNG and request that your OS "
17546 echo "vendor includes kernel-based random number collection in "
17547 echo "future versions of your OS."