2 # From configure.in Revision: 1.325.2.2 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.53 for Heimdal 0.5.1.
6 # Report bugs to <heimdal-bugs@pdc.kth.se>.
8 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9 # Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
13 # Find the correct PATH separator. Usually this is `:', but
14 # DJGPP uses `;' like DOS.
15 if test "X${PATH_SEPARATOR+set}" != Xset; then
16 UNAME=${UNAME-`uname 2>/dev/null`}
18 *-DOS) lt_cv_sys_path_separator=';' ;;
19 *) lt_cv_sys_path_separator=':' ;;
21 PATH_SEPARATOR=$lt_cv_sys_path_separator
25 # Check that we are running under the correct shell.
26 SHELL=${CONFIG_SHELL-/bin/sh}
30 # Remove one level of quotation (which was required for Make).
31 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
36 if test "X$1" = X--no-reexec; then
37 # Discard the --no-reexec flag, and continue.
39 elif test "X$1" = X--fallback-echo; then
40 # Avoid inline document here, it may be left over
42 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
43 # Yippee, $echo works!
46 # Restart under the correct shell.
47 exec $SHELL "$0" --no-reexec ${1+"$@"}
50 if test "X$1" = X--fallback-echo; then
51 # used as fallback echo
59 # The HP-UX ksh and POSIX shell print the target directory to stdout
61 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
63 if test -z "$ECHO"; then
64 if test "X${echo_test_string+set}" != Xset; then
65 # find a string as large as possible, as long as the shell can cope with it
66 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
67 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
68 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
69 echo_test_string="`eval $cmd`" &&
70 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
77 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
78 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
79 test "X$echo_testing_string" = "X$echo_test_string"; then
82 # The Solaris, AIX, and Digital Unix default echo programs unquote
83 # backslashes. This makes it impossible to quote backslashes using
84 # echo "$something" | sed 's/\\/\\\\/g'
86 # So, first we look for a working echo in the user's PATH.
88 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
89 for dir in $PATH /usr/ucb; do
90 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
91 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
92 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
93 test "X$echo_testing_string" = "X$echo_test_string"; then
100 if test "X$echo" = Xecho; then
101 # We didn't find a better echo, so look for alternatives.
102 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
103 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
104 test "X$echo_testing_string" = "X$echo_test_string"; then
105 # This shell has a builtin print -r that does the trick.
107 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
108 test "X$CONFIG_SHELL" != X/bin/ksh; then
109 # If we have ksh, try running configure again with it.
110 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
111 export ORIGINAL_CONFIG_SHELL
112 CONFIG_SHELL=/bin/ksh
114 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
118 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
119 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
120 test "X$echo_testing_string" = "X$echo_test_string"; then
123 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
124 test "X$echo_testing_string" = 'X\t' &&
125 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
126 test "X$echo_testing_string" = "X$echo_test_string"; then
127 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
129 SHELL="$CONFIG_SHELL"
131 echo="$CONFIG_SHELL $0 --fallback-echo"
132 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
133 test "X$echo_testing_string" = 'X\t' &&
134 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
135 test "X$echo_testing_string" = "X$echo_test_string"; then
136 echo="$CONFIG_SHELL $0 --fallback-echo"
138 # maybe with a smaller string...
141 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
142 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
149 if test "$prev" != 'sed 50q "$0"'; then
150 echo_test_string=`eval $prev`
151 export echo_test_string
152 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
154 # Oops. We lost completely, so just stick with echo.
163 # Copy echo and quote the copy suitably for passing to libtool from
164 # the Makefile, instead of quoting the original, which is used later.
166 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
167 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
172 if expr a : '\(a\)' >/dev/null 2>&1; then
179 ## --------------------- ##
180 ## M4sh Initialization. ##
181 ## --------------------- ##
183 # Be Bourne compatible
184 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
187 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
192 # Support unset when possible.
193 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
199 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
200 { $as_unset LANG || test "${LANG+set}" != set; } ||
201 { LANG=C; export LANG; }
202 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
203 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
204 { LC_ALL=C; export LC_ALL; }
205 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
206 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
207 { LC_TIME=C; export LC_TIME; }
208 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
209 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
210 { LC_CTYPE=C; export LC_CTYPE; }
211 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
212 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
213 { LANGUAGE=C; export LANGUAGE; }
214 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
215 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
216 { LC_COLLATE=C; export LC_COLLATE; }
217 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
218 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
219 { LC_NUMERIC=C; export LC_NUMERIC; }
220 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
221 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
222 { LC_MESSAGES=C; export LC_MESSAGES; }
225 # Name of the executable.
226 as_me=`(basename "$0") 2>/dev/null ||
227 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
228 X"$0" : 'X\(//\)$' \| \
229 X"$0" : 'X\(/\)$' \| \
230 . : '\(.\)' 2>/dev/null ||
232 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
233 /^X\/\(\/\/\)$/{ s//\1/; q; }
234 /^X\/\(\/\).*/{ s//\1/; q; }
237 # PATH needs CR, and LINENO needs CR and PATH.
238 # Avoid depending upon Character Ranges.
239 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
240 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
241 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
242 as_cr_digits='0123456789'
243 as_cr_alnum=$as_cr_Letters$as_cr_digits
245 # The user is always right.
246 if test "${PATH_SEPARATOR+set}" != set; then
247 echo "#! /bin/sh" >conftest.sh
248 echo "exit 0" >>conftest.sh
250 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
261 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
262 test "x$as_lineno_1" != "x$as_lineno_2" &&
263 test "x$as_lineno_3" = "x$as_lineno_2" || {
264 # Find who we are. Look in the path if we contain no path at all
267 *[\\/]* ) as_myself=$0 ;;
268 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
272 test -z "$as_dir" && as_dir=.
273 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
278 # We did not find ourselves, most probably we were run as `sh COMMAND'
279 # in which case we are not to be found in the path.
280 if test "x$as_myself" = x; then
283 if test ! -f "$as_myself"; then
284 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
285 { (exit 1); exit 1; }; }
287 case $CONFIG_SHELL in
289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
290 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
293 test -z "$as_dir" && as_dir=.
294 for as_base in sh bash ksh sh5; do
297 if ("$as_dir/$as_base" -c '
300 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
301 test "x$as_lineno_1" != "x$as_lineno_2" &&
302 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
303 CONFIG_SHELL=$as_dir/$as_base
305 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
313 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
314 # uniformly replaced by the line number. The first 'sed' inserts a
315 # line-number line before each line; the second 'sed' does the real
316 # work. The second script uses 'N' to pair each line-number line
317 # with the numbered line, and appends trailing '-' during
318 # substitution so that $LINENO is not a special case at line end.
319 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
320 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
321 sed '=' <$as_myself |
326 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
329 s,^['$as_cr_digits']*\n,,
331 chmod +x $as_me.lineno ||
332 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
333 { (exit 1); exit 1; }; }
335 # Don't try to exec as it changes $[0], causing all sort of problems
336 # (the dirname of $[0] is not the place where we might find the
337 # original and so on. Autoconf is especially sensible to this).
339 # Exit status is that of the last command.
344 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
345 *c*,-n*) ECHO_N= ECHO_C='
347 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
348 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
351 if expr a : '\(a\)' >/dev/null 2>&1; then
357 rm -f conf$$ conf$$.exe conf$$.file
359 if ln -s conf$$.file conf$$ 2>/dev/null; then
360 # We could just check for DJGPP; but this test a) works b) is more generic
361 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
362 if test -f conf$$.exe; then
363 # Don't use ln at all; we don't have any links
368 elif ln conf$$.file conf$$ 2>/dev/null; then
373 rm -f conf$$ conf$$.exe conf$$.file
375 as_executable_p="test -f"
377 # Sed expression to map a string onto a valid CPP name.
378 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
380 # Sed expression to map a string onto a valid variable name.
381 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
385 # We need space, tab and new line, in precisely that order.
391 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
395 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
396 # so uname gets run too.
397 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404 ac_default_prefix=/usr/local
409 SHELL=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
417 PACKAGE_NAME='Heimdal'
418 PACKAGE_TARNAME='heimdal'
419 PACKAGE_VERSION='0.5.1'
420 PACKAGE_STRING='Heimdal 0.5.1'
421 PACKAGE_BUGREPORT='heimdal-bugs@pdc.kth.se'
423 ac_unique_file="kuser/kinit.c"
424 ac_default_prefix=/usr/heimdal
425 # Factoring default headers for most tests.
426 ac_includes_default="\
429 # include <sys/types.h>
432 # include <sys/stat.h>
443 # if !STDC_HEADERS && HAVE_MEMORY_H
449 # include <strings.h>
452 # include <inttypes.h>
463 # Initialize some variables set by options.
465 ac_init_version=false
466 # The variables have the same names as the options, with
467 # dashes changed to underlines.
475 program_transform_name=s,x,x,
483 # Installation directory options.
484 # These are left unexpanded so users can "make install exec_prefix=/foo"
485 # and all the variables that are supposed to be based on exec_prefix
486 # by default will actually change.
487 # Use braces instead of parens because sh, perl, etc. also accept them.
488 bindir='${exec_prefix}/bin'
489 sbindir='${exec_prefix}/sbin'
490 libexecdir='${exec_prefix}/libexec'
491 datadir='${prefix}/share'
492 sysconfdir='${prefix}/etc'
493 sharedstatedir='${prefix}/com'
494 localstatedir='${prefix}/var'
495 libdir='${exec_prefix}/lib'
496 includedir='${prefix}/include'
497 oldincludedir='/usr/include'
498 infodir='${prefix}/info'
499 mandir='${prefix}/man'
504 # If the previous option needs an argument, assign it.
505 if test -n "$ac_prev"; then
506 eval "$ac_prev=\$ac_option"
511 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513 # Accept the important Cygnus configure options, so we can diagnose typos.
517 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 -build | --build | --buil | --bui | --bu)
523 ac_prev=build_alias ;;
524 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
525 build_alias=$ac_optarg ;;
527 -cache-file | --cache-file | --cache-fil | --cache-fi \
528 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
529 ac_prev=cache_file ;;
530 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
531 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
532 cache_file=$ac_optarg ;;
535 cache_file=config.cache ;;
537 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 datadir=$ac_optarg ;;
543 -disable-* | --disable-*)
544 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
545 # Reject names that are not valid shell variable names.
546 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
547 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
548 { (exit 1); exit 1; }; }
549 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
550 eval "enable_$ac_feature=no" ;;
552 -enable-* | --enable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 eval "enable_$ac_feature='$ac_optarg'" ;;
565 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
566 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
567 | --exec | --exe | --ex)
568 ac_prev=exec_prefix ;;
569 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
570 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
571 | --exec=* | --exe=* | --ex=*)
572 exec_prefix=$ac_optarg ;;
574 -gas | --gas | --ga | --g)
575 # Obsolete; use --with-gas.
578 -help | --help | --hel | --he | -h)
580 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
581 ac_init_help=recursive ;;
582 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
583 ac_init_help=short ;;
585 -host | --host | --hos | --ho)
586 ac_prev=host_alias ;;
587 -host=* | --host=* | --hos=* | --ho=*)
588 host_alias=$ac_optarg ;;
590 -includedir | --includedir | --includedi | --included | --include \
591 | --includ | --inclu | --incl | --inc)
592 ac_prev=includedir ;;
593 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
594 | --includ=* | --inclu=* | --incl=* | --inc=*)
595 includedir=$ac_optarg ;;
597 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
600 infodir=$ac_optarg ;;
602 -libdir | --libdir | --libdi | --libd)
604 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
608 | --libexe | --libex | --libe)
609 ac_prev=libexecdir ;;
610 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
611 | --libexe=* | --libex=* | --libe=*)
612 libexecdir=$ac_optarg ;;
614 -localstatedir | --localstatedir | --localstatedi | --localstated \
615 | --localstate | --localstat | --localsta | --localst \
616 | --locals | --local | --loca | --loc | --lo)
617 ac_prev=localstatedir ;;
618 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
619 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
620 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
621 localstatedir=$ac_optarg ;;
623 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
629 # Obsolete; use --without-fp.
632 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
633 | --no-cr | --no-c | -n)
636 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
637 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
641 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
642 | --oldin | --oldi | --old | --ol | --o)
643 ac_prev=oldincludedir ;;
644 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
645 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
646 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
647 oldincludedir=$ac_optarg ;;
649 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 -program-prefix | --program-prefix | --program-prefi | --program-pref \
655 | --program-pre | --program-pr | --program-p)
656 ac_prev=program_prefix ;;
657 -program-prefix=* | --program-prefix=* | --program-prefi=* \
658 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
659 program_prefix=$ac_optarg ;;
661 -program-suffix | --program-suffix | --program-suffi | --program-suff \
662 | --program-suf | --program-su | --program-s)
663 ac_prev=program_suffix ;;
664 -program-suffix=* | --program-suffix=* | --program-suffi=* \
665 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
666 program_suffix=$ac_optarg ;;
668 -program-transform-name | --program-transform-name \
669 | --program-transform-nam | --program-transform-na \
670 | --program-transform-n | --program-transform- \
671 | --program-transform | --program-transfor \
672 | --program-transfo | --program-transf \
673 | --program-trans | --program-tran \
674 | --progr-tra | --program-tr | --program-t)
675 ac_prev=program_transform_name ;;
676 -program-transform-name=* | --program-transform-name=* \
677 | --program-transform-nam=* | --program-transform-na=* \
678 | --program-transform-n=* | --program-transform-=* \
679 | --program-transform=* | --program-transfor=* \
680 | --program-transfo=* | --program-transf=* \
681 | --program-trans=* | --program-tran=* \
682 | --progr-tra=* | --program-tr=* | --program-t=*)
683 program_transform_name=$ac_optarg ;;
685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
686 | -silent | --silent | --silen | --sile | --sil)
689 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 sbindir=$ac_optarg ;;
695 -sharedstatedir | --sharedstatedir | --sharedstatedi \
696 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
697 | --sharedst | --shareds | --shared | --share | --shar \
699 ac_prev=sharedstatedir ;;
700 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
701 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
702 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 sharedstatedir=$ac_optarg ;;
706 -site | --site | --sit)
708 -site=* | --site=* | --sit=*)
711 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
717 | --syscon | --sysco | --sysc | --sys | --sy)
718 ac_prev=sysconfdir ;;
719 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
720 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
721 sysconfdir=$ac_optarg ;;
723 -target | --target | --targe | --targ | --tar | --ta | --t)
724 ac_prev=target_alias ;;
725 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
726 target_alias=$ac_optarg ;;
728 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 -version | --version | --versio | --versi | --vers | -V)
735 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
736 # Reject names that are not valid shell variable names.
737 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
738 { echo "$as_me: error: invalid package name: $ac_package" >&2
739 { (exit 1); exit 1; }; }
740 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 eval "with_$ac_package='$ac_optarg'" ;;
747 -without-* | --without-*)
748 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
749 # Reject names that are not valid shell variable names.
750 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
751 { echo "$as_me: error: invalid package name: $ac_package" >&2
752 { (exit 1); exit 1; }; }
753 ac_package=`echo $ac_package | sed 's/-/_/g'`
754 eval "with_$ac_package=no" ;;
757 # Obsolete; use --with-x.
760 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
761 | --x-incl | --x-inc | --x-in | --x-i)
762 ac_prev=x_includes ;;
763 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
764 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
765 x_includes=$ac_optarg ;;
767 -x-libraries | --x-libraries | --x-librarie | --x-librari \
768 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
769 ac_prev=x_libraries ;;
770 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
771 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
772 x_libraries=$ac_optarg ;;
774 -*) { echo "$as_me: error: unrecognized option: $ac_option
775 Try \`$0 --help' for more information." >&2
776 { (exit 1); exit 1; }; }
780 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
781 # Reject names that are not valid shell variable names.
782 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
783 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
784 { (exit 1); exit 1; }; }
785 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
786 eval "$ac_envvar='$ac_optarg'"
790 # FIXME: should be removed in autoconf 3.0.
791 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
792 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
793 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
794 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
800 if test -n "$ac_prev"; then
801 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
802 { echo "$as_me: error: missing argument to $ac_option" >&2
803 { (exit 1); exit 1; }; }
806 # Be sure to have absolute paths.
807 for ac_var in exec_prefix prefix
809 eval ac_val=$`echo $ac_var`
811 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
812 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
813 { (exit 1); exit 1; }; };;
817 # Be sure to have absolute paths.
818 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
819 localstatedir libdir includedir oldincludedir infodir mandir
821 eval ac_val=$`echo $ac_var`
823 [\\/$]* | ?:[\\/]* ) ;;
824 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825 { (exit 1); exit 1; }; };;
829 # There might be people who depend on the old broken behavior: `$host'
830 # used to hold the argument of --host etc.
831 # FIXME: To remove some day.
836 # FIXME: To remove some day.
837 if test "x$host_alias" != x; then
838 if test "x$build_alias" = x; then
839 cross_compiling=maybe
840 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
841 If a cross compiler is detected then cross compile mode will be used." >&2
842 elif test "x$build_alias" != "x$host_alias"; then
848 test -n "$host_alias" && ac_tool_prefix=$host_alias-
850 test "$silent" = yes && exec 6>/dev/null
853 # Find the source files, if location was not specified.
854 if test -z "$srcdir"; then
855 ac_srcdir_defaulted=yes
856 # Try the directory containing this script, then its parent.
857 ac_confdir=`(dirname "$0") 2>/dev/null ||
858 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
859 X"$0" : 'X\(//\)[^/]' \| \
860 X"$0" : 'X\(//\)$' \| \
861 X"$0" : 'X\(/\)' \| \
862 . : '\(.\)' 2>/dev/null ||
864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
866 /^X\(\/\/\)$/{ s//\1/; q; }
867 /^X\(\/\).*/{ s//\1/; q; }
870 if test ! -r $srcdir/$ac_unique_file; then
874 ac_srcdir_defaulted=no
876 if test ! -r $srcdir/$ac_unique_file; then
877 if test "$ac_srcdir_defaulted" = yes; then
878 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
879 { (exit 1); exit 1; }; }
881 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
882 { (exit 1); exit 1; }; }
885 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
886 ac_env_build_alias_set=${build_alias+set}
887 ac_env_build_alias_value=$build_alias
888 ac_cv_env_build_alias_set=${build_alias+set}
889 ac_cv_env_build_alias_value=$build_alias
890 ac_env_host_alias_set=${host_alias+set}
891 ac_env_host_alias_value=$host_alias
892 ac_cv_env_host_alias_set=${host_alias+set}
893 ac_cv_env_host_alias_value=$host_alias
894 ac_env_target_alias_set=${target_alias+set}
895 ac_env_target_alias_value=$target_alias
896 ac_cv_env_target_alias_set=${target_alias+set}
897 ac_cv_env_target_alias_value=$target_alias
898 ac_env_CC_set=${CC+set}
900 ac_cv_env_CC_set=${CC+set}
901 ac_cv_env_CC_value=$CC
902 ac_env_CFLAGS_set=${CFLAGS+set}
903 ac_env_CFLAGS_value=$CFLAGS
904 ac_cv_env_CFLAGS_set=${CFLAGS+set}
905 ac_cv_env_CFLAGS_value=$CFLAGS
906 ac_env_LDFLAGS_set=${LDFLAGS+set}
907 ac_env_LDFLAGS_value=$LDFLAGS
908 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
909 ac_cv_env_LDFLAGS_value=$LDFLAGS
910 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
911 ac_env_CPPFLAGS_value=$CPPFLAGS
912 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
913 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
914 ac_env_CPP_set=${CPP+set}
915 ac_env_CPP_value=$CPP
916 ac_cv_env_CPP_set=${CPP+set}
917 ac_cv_env_CPP_value=$CPP
920 # Report the --help message.
922 if test "$ac_init_help" = "long"; then
923 # Omit some internal or obsolete options to make the list less imposing.
924 # This message is too long to be a string in the A/UX 3.1 sh.
926 \`configure' configures Heimdal 0.5.1 to adapt to many kinds of systems.
928 Usage: $0 [OPTION]... [VAR=VALUE]...
930 To assign environment variables (e.g., CC, CFLAGS...), specify them as
931 VAR=VALUE. See below for descriptions of some of the useful variables.
933 Defaults for the options are specified in brackets.
936 -h, --help display this help and exit
937 --help=short display options specific to this package
938 --help=recursive display the short help of all the included packages
939 -V, --version display version information and exit
940 -q, --quiet, --silent do not print \`checking...' messages
941 --cache-file=FILE cache test results in FILE [disabled]
942 -C, --config-cache alias for \`--cache-file=config.cache'
943 -n, --no-create do not create output files
944 --srcdir=DIR find the sources in DIR [configure dir or \`..']
949 Installation directories:
950 --prefix=PREFIX install architecture-independent files in PREFIX
952 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
955 By default, \`make install' will install all the files in
956 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
957 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
958 for instance \`--prefix=\$HOME'.
960 For better control, use the options below.
962 Fine tuning of the installation directories:
963 --bindir=DIR user executables [EPREFIX/bin]
964 --sbindir=DIR system admin executables [EPREFIX/sbin]
965 --libexecdir=DIR program executables [EPREFIX/libexec]
966 --datadir=DIR read-only architecture-independent data [PREFIX/share]
967 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
968 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
969 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
970 --libdir=DIR object code libraries [EPREFIX/lib]
971 --includedir=DIR C header files [PREFIX/include]
972 --oldincludedir=DIR C header files for non-gcc [/usr/include]
973 --infodir=DIR info documentation [PREFIX/info]
974 --mandir=DIR man documentation [PREFIX/man]
980 --program-prefix=PREFIX prepend PREFIX to installed program names
981 --program-suffix=SUFFIX append SUFFIX to installed program names
982 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
985 --x-includes=DIR X include files are in DIR
986 --x-libraries=DIR X library files are in DIR
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
994 if test -n "$ac_init_help"; then
995 case $ac_init_help in
996 short | recursive ) echo "Configuration of Heimdal 0.5.1:";;
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --disable-dependency-tracking Speeds up one-time builds
1004 --enable-dependency-tracking Do not reject slow dependency extractors
1005 --disable-largefile omit support for large files
1006 --enable-shared=PKGS build shared libraries default=no
1007 --enable-static=PKGS build static libraries default=yes
1008 --enable-fast-install=PKGS optimize for fast installation default=yes
1009 --disable-libtool-lock avoid locking (might break parallel builds)
1010 --enable-dce if you want support for DCE/DFS PAG's
1011 --disable-berkeley-db if you don't want berkeley db
1012 --disable-otp if you don't want OTP support
1013 --enable-osfc2 enable some OSF C2 support
1014 --disable-mmap disable use of mmap
1015 --enable-bigendian the target is big endian
1016 --enable-littleendian the target is little endian
1017 --disable-dynamic-afs do not use loaded AFS library with AIX
1018 --enable-netinfo enable netinfo for configuration lookup
1021 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1022 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1023 --with-mips-abi=abi ABI to use for IRIX (32, n32, or 64)
1024 --with-gnu-ld assume the C compiler uses GNU ld default=no
1025 --with-pic try to use only PIC/non-PIC objects default=use both
1026 --with-openldap=dir use openldap in dir
1027 --with-openldap-lib=dir use openldap libraries in dir
1028 --with-openldap-include=dir
1029 use openldap headers in dir
1030 --with-openldap-config=path
1031 config program for openldap
1032 --with-krb4=dir use krb4 in dir
1033 --with-krb4-lib=dir use krb4 libraries in dir
1034 --with-krb4-include=dir use krb4 headers in dir
1035 --with-krb4-config=path config program for krb4
1036 --with-openssl=dir use openssl in dir
1037 --with-openssl-lib=dir use openssl libraries in dir
1038 --with-openssl-include=dir
1039 use openssl headers in dir
1040 --without-ipv6 do not enable IPv6 support
1041 --with-readline=dir use readline in dir
1042 --with-readline-lib=dir use readline libraries in dir
1043 --with-readline-include=dir
1044 use readline headers in dir
1045 --with-readline-config=path
1046 config program for readline
1047 --with-hesiod=dir use hesiod in dir
1048 --with-hesiod-lib=dir use hesiod libraries in dir
1049 --with-hesiod-include=dir
1050 use hesiod headers in dir
1051 --with-hesiod-config=path
1052 config program for hesiod
1053 --with-x use the X Window System
1055 Some influential environment variables:
1056 CC C compiler command
1057 CFLAGS C compiler flags
1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1059 nonstandard directory <lib dir>
1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061 headers in a nonstandard directory <include dir>
1064 Use these variables to override the choices made by `configure' or to help
1065 it to find libraries and programs with nonstandard names/locations.
1067 Report bugs to <heimdal-bugs@pdc.kth.se>.
1071 if test "$ac_init_help" = "recursive"; then
1072 # If there are subdirs, report their specific --help.
1074 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1075 test -d $ac_dir || continue
1078 if test "$ac_dir" != .; then
1079 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1080 # A "../" for each directory in $ac_dir_suffix.
1081 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1083 ac_dir_suffix= ac_top_builddir=
1087 .) # No --srcdir option. We are building in place.
1089 if test -z "$ac_top_builddir"; then
1092 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1094 [\\/]* | ?:[\\/]* ) # Absolute path.
1095 ac_srcdir=$srcdir$ac_dir_suffix;
1096 ac_top_srcdir=$srcdir ;;
1098 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1099 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1101 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1103 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1104 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1105 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1106 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1109 # Check for guested configure; otherwise get Cygnus style configure.
1110 if test -f $ac_srcdir/configure.gnu; then
1112 $SHELL $ac_srcdir/configure.gnu --help=recursive
1113 elif test -f $ac_srcdir/configure; then
1115 $SHELL $ac_srcdir/configure --help=recursive
1116 elif test -f $ac_srcdir/configure.ac ||
1117 test -f $ac_srcdir/configure.in; then
1119 $ac_configure --help
1121 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127 test -n "$ac_init_help" && exit 0
1128 if $ac_init_version; then
1130 Heimdal configure 0.5.1
1131 generated by GNU Autoconf 2.53
1133 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1134 Free Software Foundation, Inc.
1135 This configure script is free software; the Free Software Foundation
1136 gives unlimited permission to copy, distribute and modify it.
1142 This file contains any messages produced by compilers while
1143 running configure, to aid debugging if configure makes a mistake.
1145 It was created by Heimdal $as_me 0.5.1, which was
1146 generated by GNU Autoconf 2.53. Invocation command line was
1157 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1158 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1159 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1160 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1161 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1163 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1164 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1166 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1167 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1168 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1169 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1170 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1171 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1172 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1180 test -z "$as_dir" && as_dir=.
1181 echo "PATH: $as_dir"
1196 # Keep a trace of the command line.
1197 # Strip out --no-create and --no-recursion so they do not pile up.
1198 # Also quote any args containing shell meta-characters.
1204 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1205 | --no-cr | --no-c | -n ) continue ;;
1206 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1207 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1209 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1210 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1212 case " $ac_configure_args " in
1213 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1214 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1217 # Get rid of the leading space.
1220 # When interrupted or exit'd, cleanup temporary files, and complete
1221 # config.log. We remove comments because anyway the quotes in there
1222 # would cause problems or look ugly.
1223 # WARNING: Be sure not to use single quotes in there, as some shells,
1224 # such as our DU 5.0 friend, will then `close' the trap.
1225 trap 'exit_status=$?
1226 # Save into config.log some information that might help in debugging.
1230 ## ---------------- ##
1231 ## Cache variables. ##
1232 ## ---------------- ##
1235 # The following way of writing the cache mishandles newlines in values,
1238 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1241 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1246 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1251 if test -s confdefs.h; then
1258 sed "/^$/d" confdefs.h
1261 test "$ac_signal" != 0 &&
1262 echo "$as_me: caught signal $ac_signal"
1263 echo "$as_me: exit $exit_status"
1265 rm -f core core.* *.core &&
1266 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1269 for ac_signal in 1 2 13 15; do
1270 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1274 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1275 rm -rf conftest* confdefs.h
1276 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1279 # Predefined preprocessor variables.
1281 cat >>confdefs.h <<_ACEOF
1282 #define PACKAGE_NAME "$PACKAGE_NAME"
1286 cat >>confdefs.h <<_ACEOF
1287 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1291 cat >>confdefs.h <<_ACEOF
1292 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1296 cat >>confdefs.h <<_ACEOF
1297 #define PACKAGE_STRING "$PACKAGE_STRING"
1301 cat >>confdefs.h <<_ACEOF
1302 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1306 # Let the site file select an alternate cache file if it wants to.
1307 # Prefer explicitly selected file to automatically selected ones.
1308 if test -z "$CONFIG_SITE"; then
1309 if test "x$prefix" != xNONE; then
1310 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1312 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1315 for ac_site_file in $CONFIG_SITE; do
1316 if test -r "$ac_site_file"; then
1317 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1318 echo "$as_me: loading site script $ac_site_file" >&6;}
1319 sed 's/^/| /' "$ac_site_file" >&5
1324 if test -r "$cache_file"; then
1325 # Some versions of bash will fail to source /dev/null (special
1326 # files actually), so we avoid doing that.
1327 if test -f "$cache_file"; then
1328 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1329 echo "$as_me: loading cache $cache_file" >&6;}
1331 [\\/]* | ?:[\\/]* ) . $cache_file;;
1332 *) . ./$cache_file;;
1336 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1337 echo "$as_me: creating cache $cache_file" >&6;}
1341 # Check that the precious variables saved in the cache have kept the same
1343 ac_cache_corrupted=false
1344 for ac_var in `(set) 2>&1 |
1345 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1346 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1347 eval ac_new_set=\$ac_env_${ac_var}_set
1348 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1349 eval ac_new_val="\$ac_env_${ac_var}_value"
1350 case $ac_old_set,$ac_new_set in
1352 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1353 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1354 ac_cache_corrupted=: ;;
1356 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1357 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1358 ac_cache_corrupted=: ;;
1361 if test "x$ac_old_val" != "x$ac_new_val"; then
1362 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1363 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1364 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1365 echo "$as_me: former value: $ac_old_val" >&2;}
1366 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1367 echo "$as_me: current value: $ac_new_val" >&2;}
1368 ac_cache_corrupted=:
1371 # Pass precious variables to config.status.
1372 if test "$ac_new_set" = set; then
1374 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1375 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1376 *) ac_arg=$ac_var=$ac_new_val ;;
1378 case " $ac_configure_args " in
1379 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1380 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1384 if $ac_cache_corrupted; then
1385 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1386 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1387 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1388 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1389 { (exit 1); exit 1; }; }
1393 ac_cpp='$CPP $CPPFLAGS'
1394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1424 # Add the stamp file to the list of files AC keeps track of,
1425 # along with our hook.
1426 ac_config_headers="$ac_config_headers include/config.h"
1432 ac_cpp='$CPP $CPPFLAGS'
1433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1436 if test -n "$ac_tool_prefix"; then
1437 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1438 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1439 echo "$as_me:$LINENO: checking for $ac_word" >&5
1440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1441 if test "${ac_cv_prog_CC+set}" = set; then
1442 echo $ECHO_N "(cached) $ECHO_C" >&6
1444 if test -n "$CC"; then
1445 ac_cv_prog_CC="$CC" # Let the user override the test.
1447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451 test -z "$as_dir" && as_dir=.
1452 for ac_exec_ext in '' $ac_executable_extensions; do
1453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1454 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1464 if test -n "$CC"; then
1465 echo "$as_me:$LINENO: result: $CC" >&5
1466 echo "${ECHO_T}$CC" >&6
1468 echo "$as_me:$LINENO: result: no" >&5
1469 echo "${ECHO_T}no" >&6
1473 if test -z "$ac_cv_prog_CC"; then
1475 # Extract the first word of "gcc", so it can be a program name with args.
1476 set dummy gcc; ac_word=$2
1477 echo "$as_me:$LINENO: checking for $ac_word" >&5
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1482 if test -n "$ac_ct_CC"; then
1483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 test -z "$as_dir" && as_dir=.
1490 for ac_exec_ext in '' $ac_executable_extensions; do
1491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492 ac_cv_prog_ac_ct_CC="gcc"
1493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1501 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1502 if test -n "$ac_ct_CC"; then
1503 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1504 echo "${ECHO_T}$ac_ct_CC" >&6
1506 echo "$as_me:$LINENO: result: no" >&5
1507 echo "${ECHO_T}no" >&6
1515 if test -z "$CC"; then
1516 if test -n "$ac_tool_prefix"; then
1517 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1518 set dummy ${ac_tool_prefix}cc; ac_word=$2
1519 echo "$as_me:$LINENO: checking for $ac_word" >&5
1520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521 if test "${ac_cv_prog_CC+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 if test -n "$CC"; then
1525 ac_cv_prog_CC="$CC" # Let the user override the test.
1527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 test -z "$as_dir" && as_dir=.
1532 for ac_exec_ext in '' $ac_executable_extensions; do
1533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534 ac_cv_prog_CC="${ac_tool_prefix}cc"
1535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544 if test -n "$CC"; then
1545 echo "$as_me:$LINENO: result: $CC" >&5
1546 echo "${ECHO_T}$CC" >&6
1548 echo "$as_me:$LINENO: result: no" >&5
1549 echo "${ECHO_T}no" >&6
1553 if test -z "$ac_cv_prog_CC"; then
1555 # Extract the first word of "cc", so it can be a program name with args.
1556 set dummy cc; ac_word=$2
1557 echo "$as_me:$LINENO: checking for $ac_word" >&5
1558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 if test -n "$ac_ct_CC"; then
1563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 test -z "$as_dir" && as_dir=.
1570 for ac_exec_ext in '' $ac_executable_extensions; do
1571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1572 ac_cv_prog_ac_ct_CC="cc"
1573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1582 if test -n "$ac_ct_CC"; then
1583 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1584 echo "${ECHO_T}$ac_ct_CC" >&6
1586 echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1596 if test -z "$CC"; then
1597 # Extract the first word of "cc", so it can be a program name with args.
1598 set dummy cc; ac_word=$2
1599 echo "$as_me:$LINENO: checking for $ac_word" >&5
1600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601 if test "${ac_cv_prog_CC+set}" = set; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 if test -n "$CC"; then
1605 ac_cv_prog_CC="$CC" # Let the user override the test.
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 test -z "$as_dir" && as_dir=.
1613 for ac_exec_ext in '' $ac_executable_extensions; do
1614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1616 ac_prog_rejected=yes
1620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626 if test $ac_prog_rejected = yes; then
1627 # We found a bogon in the path, so make sure we never use it.
1628 set dummy $ac_cv_prog_CC
1630 if test $# != 0; then
1631 # We chose a different compiler from the bogus one.
1632 # However, it has the same basename, so the bogon will be chosen
1633 # first if we set CC to just the basename; use the full file name.
1635 set dummy "$as_dir/$ac_word" ${1+"$@"}
1643 if test -n "$CC"; then
1644 echo "$as_me:$LINENO: result: $CC" >&5
1645 echo "${ECHO_T}$CC" >&6
1647 echo "$as_me:$LINENO: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1652 if test -z "$CC"; then
1653 if test -n "$ac_tool_prefix"; then
1656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1657 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1658 echo "$as_me:$LINENO: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_CC+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 if test -n "$CC"; then
1664 ac_cv_prog_CC="$CC" # Let the user override the test.
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 test -z "$as_dir" && as_dir=.
1671 for ac_exec_ext in '' $ac_executable_extensions; do
1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683 if test -n "$CC"; then
1684 echo "$as_me:$LINENO: result: $CC" >&5
1685 echo "${ECHO_T}$CC" >&6
1687 echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1691 test -n "$CC" && break
1694 if test -z "$CC"; then
1698 # Extract the first word of "$ac_prog", so it can be a program name with args.
1699 set dummy $ac_prog; ac_word=$2
1700 echo "$as_me:$LINENO: checking for $ac_word" >&5
1701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1705 if test -n "$ac_ct_CC"; then
1706 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 test -z "$as_dir" && as_dir=.
1713 for ac_exec_ext in '' $ac_executable_extensions; do
1714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1715 ac_cv_prog_ac_ct_CC="$ac_prog"
1716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1725 if test -n "$ac_ct_CC"; then
1726 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1727 echo "${ECHO_T}$ac_ct_CC" >&6
1729 echo "$as_me:$LINENO: result: no" >&5
1730 echo "${ECHO_T}no" >&6
1733 test -n "$ac_ct_CC" && break
1742 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1743 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1744 { (exit 1); exit 1; }; }
1746 # Provide some information about the compiler.
1747 echo "$as_me:$LINENO:" \
1748 "checking for C compiler version" >&5
1749 ac_compiler=`set X $ac_compile; echo $2`
1750 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1751 (eval $ac_compiler --version </dev/null >&5) 2>&5
1753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1754 (exit $ac_status); }
1755 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1756 (eval $ac_compiler -v </dev/null >&5) 2>&5
1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759 (exit $ac_status); }
1760 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1761 (eval $ac_compiler -V </dev/null >&5) 2>&5
1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764 (exit $ac_status); }
1766 cat >conftest.$ac_ext <<_ACEOF
1767 #line $LINENO "configure"
1768 #include "confdefs.h"
1770 #ifdef F77_DUMMY_MAIN
1774 int F77_DUMMY_MAIN() { return 1; }
1784 ac_clean_files_save=$ac_clean_files
1785 ac_clean_files="$ac_clean_files a.out a.exe"
1786 # Try to create an executable without -o first, disregard a.out.
1787 # It will help us diagnose broken compilers, and finding out an intuition
1789 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1790 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1791 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1792 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1793 (eval $ac_link_default) 2>&5
1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796 (exit $ac_status); }; then
1797 # Find the output, starting from the most likely. This scheme is
1798 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1801 # Be careful to initialize this variable, since it used to be cached.
1802 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1804 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1805 ls a.out conftest 2>/dev/null;
1806 ls a.* conftest.* 2>/dev/null`; do
1808 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1809 a.out ) # We found the default executable, but exeext='' is most
1812 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1813 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1820 echo "$as_me: failed program was:" >&5
1821 cat conftest.$ac_ext >&5
1822 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1823 echo "$as_me: error: C compiler cannot create executables" >&2;}
1824 { (exit 77); exit 77; }; }
1827 ac_exeext=$ac_cv_exeext
1828 echo "$as_me:$LINENO: result: $ac_file" >&5
1829 echo "${ECHO_T}$ac_file" >&6
1831 # Check the compiler produces executables we can run. If not, either
1832 # the compiler is broken, or we cross compile.
1833 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1834 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1835 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1836 # If not cross compiling, check that we can run a simple program.
1837 if test "$cross_compiling" != yes; then
1838 if { ac_try='./$ac_file'
1839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843 (exit $ac_status); }; }; then
1846 if test "$cross_compiling" = maybe; then
1849 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1850 If you meant to cross compile, use \`--host'." >&5
1851 echo "$as_me: error: cannot run C compiled programs.
1852 If you meant to cross compile, use \`--host'." >&2;}
1853 { (exit 1); exit 1; }; }
1857 echo "$as_me:$LINENO: result: yes" >&5
1858 echo "${ECHO_T}yes" >&6
1860 rm -f a.out a.exe conftest$ac_cv_exeext
1861 ac_clean_files=$ac_clean_files_save
1862 # Check the compiler produces executables we can run. If not, either
1863 # the compiler is broken, or we cross compile.
1864 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1865 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1866 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1867 echo "${ECHO_T}$cross_compiling" >&6
1869 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1870 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1872 (eval $ac_link) 2>&5
1874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875 (exit $ac_status); }; then
1876 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1877 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1878 # work properly (i.e., refer to `conftest.exe'), while it won't with
1880 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1882 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1883 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1890 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1891 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1892 { (exit 1); exit 1; }; }
1895 rm -f conftest$ac_cv_exeext
1896 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1897 echo "${ECHO_T}$ac_cv_exeext" >&6
1899 rm -f conftest.$ac_ext
1900 EXEEXT=$ac_cv_exeext
1902 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1903 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1904 if test "${ac_cv_objext+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 cat >conftest.$ac_ext <<_ACEOF
1908 #line $LINENO "configure"
1909 #include "confdefs.h"
1911 #ifdef F77_DUMMY_MAIN
1915 int F77_DUMMY_MAIN() { return 1; }
1925 rm -f conftest.o conftest.obj
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); }; then
1931 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1934 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1939 echo "$as_me: failed program was:" >&5
1940 cat conftest.$ac_ext >&5
1941 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1942 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1943 { (exit 1); exit 1; }; }
1946 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1948 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1949 echo "${ECHO_T}$ac_cv_objext" >&6
1950 OBJEXT=$ac_cv_objext
1952 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1953 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1954 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 cat >conftest.$ac_ext <<_ACEOF
1958 #line $LINENO "configure"
1959 #include "confdefs.h"
1961 #ifdef F77_DUMMY_MAIN
1965 int F77_DUMMY_MAIN() { return 1; }
1978 rm -f conftest.$ac_objext
1979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1980 (eval $ac_compile) 2>&5
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); } &&
1984 { ac_try='test -s conftest.$ac_objext'
1985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1989 (exit $ac_status); }; }; then
1992 echo "$as_me: failed program was:" >&5
1993 cat conftest.$ac_ext >&5
1996 rm -f conftest.$ac_objext conftest.$ac_ext
1997 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2000 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2001 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2002 GCC=`test $ac_compiler_gnu = yes && echo yes`
2003 ac_test_CFLAGS=${CFLAGS+set}
2004 ac_save_CFLAGS=$CFLAGS
2006 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2007 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2008 if test "${ac_cv_prog_cc_g+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 cat >conftest.$ac_ext <<_ACEOF
2012 #line $LINENO "configure"
2013 #include "confdefs.h"
2015 #ifdef F77_DUMMY_MAIN
2019 int F77_DUMMY_MAIN() { return 1; }
2029 rm -f conftest.$ac_objext
2030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2031 (eval $ac_compile) 2>&5
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); } &&
2035 { ac_try='test -s conftest.$ac_objext'
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; }; then
2043 echo "$as_me: failed program was:" >&5
2044 cat conftest.$ac_ext >&5
2047 rm -f conftest.$ac_objext conftest.$ac_ext
2049 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2050 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2051 if test "$ac_test_CFLAGS" = set; then
2052 CFLAGS=$ac_save_CFLAGS
2053 elif test $ac_cv_prog_cc_g = yes; then
2054 if test "$GCC" = yes; then
2060 if test "$GCC" = yes; then
2066 # Some people use a C++ compiler to compile C. Since we use `exit',
2067 # in C++ we need to declare it. In case someone uses the same compiler
2068 # for both compiling C and C++ we need to have the C++ compiler decide
2069 # the declaration of exit, since it's the most demanding environment.
2070 cat >conftest.$ac_ext <<_ACEOF
2075 rm -f conftest.$ac_objext
2076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2077 (eval $ac_compile) 2>&5
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); } &&
2081 { ac_try='test -s conftest.$ac_objext'
2082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }; }; then
2087 for ac_declaration in \
2089 '#include <stdlib.h>' \
2090 'extern "C" void std::exit (int) throw (); using std::exit;' \
2091 'extern "C" void std::exit (int); using std::exit;' \
2092 'extern "C" void exit (int) throw ();' \
2093 'extern "C" void exit (int);' \
2096 cat >conftest.$ac_ext <<_ACEOF
2097 #line $LINENO "configure"
2098 #include "confdefs.h"
2101 #ifdef F77_DUMMY_MAIN
2105 int F77_DUMMY_MAIN() { return 1; }
2115 rm -f conftest.$ac_objext
2116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2117 (eval $ac_compile) 2>&5
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); } &&
2121 { ac_try='test -s conftest.$ac_objext'
2122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; }; then
2129 echo "$as_me: failed program was:" >&5
2130 cat conftest.$ac_ext >&5
2133 rm -f conftest.$ac_objext conftest.$ac_ext
2134 cat >conftest.$ac_ext <<_ACEOF
2135 #line $LINENO "configure"
2136 #include "confdefs.h"
2138 #ifdef F77_DUMMY_MAIN
2142 int F77_DUMMY_MAIN() { return 1; }
2152 rm -f conftest.$ac_objext
2153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154 (eval $ac_compile) 2>&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); } &&
2158 { ac_try='test -s conftest.$ac_objext'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; }; then
2166 echo "$as_me: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2169 rm -f conftest.$ac_objext conftest.$ac_ext
2172 if test -n "$ac_declaration"; then
2173 echo '#ifdef __cplusplus' >>confdefs.h
2174 echo $ac_declaration >>confdefs.h
2175 echo '#endif' >>confdefs.h
2179 echo "$as_me: failed program was:" >&5
2180 cat conftest.$ac_ext >&5
2182 rm -f conftest.$ac_objext conftest.$ac_ext
2184 ac_cpp='$CPP $CPPFLAGS'
2185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2190 ac_cpp='$CPP $CPPFLAGS'
2191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2194 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2195 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2196 # On Suns, sometimes $CPP names a directory.
2197 if test -n "$CPP" && test -d "$CPP"; then
2200 if test -z "$CPP"; then
2201 if test "${ac_cv_prog_CPP+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 # Double quotes because CPP needs to be expanded
2205 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2208 for ac_c_preproc_warn_flag in '' yes
2210 # Use a header file that comes with gcc, so configuring glibc
2211 # with a fresh cross-compiler works.
2212 # On the NeXT, cc -E runs the code through the compiler's parser,
2213 # not just through cpp. "Syntax error" is here to catch this case.
2214 cat >conftest.$ac_ext <<_ACEOF
2215 #line $LINENO "configure"
2216 #include "confdefs.h"
2220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2223 egrep -v '^ *\+' conftest.er1 >conftest.err
2225 cat conftest.err >&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); } >/dev/null; then
2228 if test -s conftest.err; then
2229 ac_cpp_err=$ac_c_preproc_warn_flag
2236 if test -z "$ac_cpp_err"; then
2239 echo "$as_me: failed program was:" >&5
2240 cat conftest.$ac_ext >&5
2241 # Broken: fails on valid input.
2244 rm -f conftest.err conftest.$ac_ext
2246 # OK, works on sane cases. Now check whether non-existent headers
2247 # can be detected and how.
2248 cat >conftest.$ac_ext <<_ACEOF
2249 #line $LINENO "configure"
2250 #include "confdefs.h"
2251 #include <ac_nonexistent.h>
2253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2256 egrep -v '^ *\+' conftest.er1 >conftest.err
2258 cat conftest.err >&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); } >/dev/null; then
2261 if test -s conftest.err; then
2262 ac_cpp_err=$ac_c_preproc_warn_flag
2269 if test -z "$ac_cpp_err"; then
2270 # Broken: success on invalid input.
2273 echo "$as_me: failed program was:" >&5
2274 cat conftest.$ac_ext >&5
2275 # Passes both tests.
2279 rm -f conftest.err conftest.$ac_ext
2282 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2283 rm -f conftest.err conftest.$ac_ext
2284 if $ac_preproc_ok; then
2296 echo "$as_me:$LINENO: result: $CPP" >&5
2297 echo "${ECHO_T}$CPP" >&6
2299 for ac_c_preproc_warn_flag in '' yes
2301 # Use a header file that comes with gcc, so configuring glibc
2302 # with a fresh cross-compiler works.
2303 # On the NeXT, cc -E runs the code through the compiler's parser,
2304 # not just through cpp. "Syntax error" is here to catch this case.
2305 cat >conftest.$ac_ext <<_ACEOF
2306 #line $LINENO "configure"
2307 #include "confdefs.h"
2311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2314 egrep -v '^ *\+' conftest.er1 >conftest.err
2316 cat conftest.err >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } >/dev/null; then
2319 if test -s conftest.err; then
2320 ac_cpp_err=$ac_c_preproc_warn_flag
2327 if test -z "$ac_cpp_err"; then
2330 echo "$as_me: failed program was:" >&5
2331 cat conftest.$ac_ext >&5
2332 # Broken: fails on valid input.
2335 rm -f conftest.err conftest.$ac_ext
2337 # OK, works on sane cases. Now check whether non-existent headers
2338 # can be detected and how.
2339 cat >conftest.$ac_ext <<_ACEOF
2340 #line $LINENO "configure"
2341 #include "confdefs.h"
2342 #include <ac_nonexistent.h>
2344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2347 egrep -v '^ *\+' conftest.er1 >conftest.err
2349 cat conftest.err >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); } >/dev/null; then
2352 if test -s conftest.err; then
2353 ac_cpp_err=$ac_c_preproc_warn_flag
2360 if test -z "$ac_cpp_err"; then
2361 # Broken: success on invalid input.
2364 echo "$as_me: failed program was:" >&5
2365 cat conftest.$ac_ext >&5
2366 # Passes both tests.
2370 rm -f conftest.err conftest.$ac_ext
2373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2374 rm -f conftest.err conftest.$ac_ext
2375 if $ac_preproc_ok; then
2378 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2379 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2380 { (exit 1); exit 1; }; }
2384 ac_cpp='$CPP $CPPFLAGS'
2385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2391 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2392 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 ac_cv_prog_cc_stdc=no
2397 cat >conftest.$ac_ext <<_ACEOF
2398 #line $LINENO "configure"
2399 #include "confdefs.h"
2402 #include <sys/types.h>
2403 #include <sys/stat.h>
2404 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2405 struct buf { int x; };
2406 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2407 static char *e (p, i)
2413 static char *f (char * (*g) (char **, int), char **p, ...)
2418 s = g (p, va_arg (v,int));
2422 int test (int i, double x);
2423 struct s1 {int (*f) (int a);};
2424 struct s2 {int (*f) (double a);};
2425 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2428 #ifdef F77_DUMMY_MAIN
2432 int F77_DUMMY_MAIN() { return 1; }
2437 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2442 # Don't try gcc -ansi; that turns off useful extensions and
2443 # breaks some systems' header files.
2444 # AIX -qlanglvl=ansi
2445 # Ultrix and OSF/1 -std1
2446 # HP-UX 10.20 and later -Ae
2447 # HP-UX older versions -Aa -D_HPUX_SOURCE
2448 # SVR4 -Xc -D__EXTENSIONS__
2449 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2451 CC="$ac_save_CC $ac_arg"
2452 rm -f conftest.$ac_objext
2453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454 (eval $ac_compile) 2>&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); } &&
2458 { ac_try='test -s conftest.$ac_objext'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; }; then
2464 ac_cv_prog_cc_stdc=$ac_arg
2467 echo "$as_me: failed program was:" >&5
2468 cat conftest.$ac_ext >&5
2470 rm -f conftest.$ac_objext
2472 rm -f conftest.$ac_ext conftest.$ac_objext
2477 case "x$ac_cv_prog_cc_stdc" in
2479 echo "$as_me:$LINENO: result: none needed" >&5
2480 echo "${ECHO_T}none needed" >&6 ;;
2482 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2483 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2484 CC="$CC $ac_cv_prog_cc_stdc" ;;
2488 am__api_version="1.6"
2490 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2491 if test -f $ac_dir/install-sh; then
2493 ac_install_sh="$ac_aux_dir/install-sh -c"
2495 elif test -f $ac_dir/install.sh; then
2497 ac_install_sh="$ac_aux_dir/install.sh -c"
2499 elif test -f $ac_dir/shtool; then
2501 ac_install_sh="$ac_aux_dir/shtool install -c"
2505 if test -z "$ac_aux_dir"; then
2506 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2507 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2508 { (exit 1); exit 1; }; }
2510 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2511 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2512 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2514 # Find a good install program. We prefer a C program (faster),
2515 # so one script is as good as another. But avoid the broken or
2516 # incompatible versions:
2517 # SysV /etc/install, /usr/sbin/install
2518 # SunOS /usr/etc/install
2519 # IRIX /sbin/install
2521 # AmigaOS /C/install, which installs bootblocks on floppy discs
2522 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2523 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2524 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2525 # ./install, which can be erroneously created by make from ./install.sh.
2526 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2527 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2528 if test -z "$INSTALL"; then
2529 if test "${ac_cv_path_install+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 test -z "$as_dir" && as_dir=.
2537 # Account for people who put trailing slashes in PATH elements.
2539 ./ | .// | /cC/* | \
2540 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2543 # OSF1 and SCO ODT 3.0 have their own names for install.
2544 # Don't use installbsd from OSF since it installs stuff as root
2546 for ac_prog in ginstall scoinst install; do
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2549 if test $ac_prog = install &&
2550 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2551 # AIX install. It has an incompatible calling convention.
2553 elif test $ac_prog = install &&
2554 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2555 # program-specific install script used by HP pwplus--don't use.
2558 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2570 if test "${ac_cv_path_install+set}" = set; then
2571 INSTALL=$ac_cv_path_install
2573 # As a last resort, use the slow shell script. We don't cache a
2574 # path for INSTALL within a source directory, because that will
2575 # break other packages using the cache if that directory is
2576 # removed, or if the path is relative.
2577 INSTALL=$ac_install_sh
2580 echo "$as_me:$LINENO: result: $INSTALL" >&5
2581 echo "${ECHO_T}$INSTALL" >&6
2583 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2584 # It thinks the first close brace ends the variable substitution.
2585 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2587 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2589 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2591 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2592 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2595 echo timestamp > conftest.file
2596 # Do `set' in a subshell so we don't clobber the current shell's
2597 # arguments. Must try -L first in case configure is actually a
2598 # symlink; some systems play weird games with the mod time of symlinks
2599 # (eg FreeBSD returns the mod time of the symlink's containing
2602 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2603 if test "$*" = "X"; then
2605 set X `ls -t $srcdir/configure conftest.file`
2608 if test "$*" != "X $srcdir/configure conftest.file" \
2609 && test "$*" != "X conftest.file $srcdir/configure"; then
2611 # If neither matched, then we have a broken ls. This can happen
2612 # if, for instance, CONFIG_SHELL is bash and it inherits a
2613 # broken ls alias from the environment. This has actually
2614 # happened. Such a system could not be considered "sane".
2615 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2616 alias in your environment" >&5
2617 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2618 alias in your environment" >&2;}
2619 { (exit 1); exit 1; }; }
2622 test "$2" = conftest.file
2628 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2629 Check your system clock" >&5
2630 echo "$as_me: error: newly created file is older than distributed files!
2631 Check your system clock" >&2;}
2632 { (exit 1); exit 1; }; }
2634 echo "$as_me:$LINENO: result: yes" >&5
2635 echo "${ECHO_T}yes" >&6
2636 test "$program_prefix" != NONE &&
2637 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2638 # Use a double $ so make ignores it.
2639 test "$program_suffix" != NONE &&
2640 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2641 # Double any \ or $. echo might interpret backslashes.
2642 # By default was `s,x,x', remove it if useless.
2643 cat <<\_ACEOF >conftest.sed
2644 s/[\\$]/&&/g;s/;s,x,x,$//
2646 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2650 # expand $ac_aux_dir to an absolute path
2651 am_aux_dir=`cd $ac_aux_dir && pwd`
2653 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2654 # Use eval to expand $SHELL
2655 if eval "$MISSING --run true"; then
2656 am_missing_run="$MISSING --run "
2659 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2660 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2663 for ac_prog in gawk mawk nawk awk
2665 # Extract the first word of "$ac_prog", so it can be a program name with args.
2666 set dummy $ac_prog; ac_word=$2
2667 echo "$as_me:$LINENO: checking for $ac_word" >&5
2668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2669 if test "${ac_cv_prog_AWK+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 if test -n "$AWK"; then
2673 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 test -z "$as_dir" && as_dir=.
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2682 ac_cv_prog_AWK="$ac_prog"
2683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 if test -n "$AWK"; then
2693 echo "$as_me:$LINENO: result: $AWK" >&5
2694 echo "${ECHO_T}$AWK" >&6
2696 echo "$as_me:$LINENO: result: no" >&5
2697 echo "${ECHO_T}no" >&6
2700 test -n "$AWK" && break
2703 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
2704 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2705 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2706 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2709 cat >conftest.make <<\_ACEOF
2711 @echo 'ac_maketemp="${MAKE}"'
2713 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2714 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2715 if test -n "$ac_maketemp"; then
2716 eval ac_cv_prog_make_${ac_make}_set=yes
2718 eval ac_cv_prog_make_${ac_make}_set=no
2722 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2723 echo "$as_me:$LINENO: result: yes" >&5
2724 echo "${ECHO_T}yes" >&6
2727 echo "$as_me:$LINENO: result: no" >&5
2728 echo "${ECHO_T}no" >&6
2729 SET_MAKE="MAKE=${MAKE-make}"
2732 rm -f .deps 2>/dev/null
2733 mkdir .deps 2>/dev/null
2734 if test -d .deps; then
2737 # MS-DOS does not allow filenames that begin with a dot.
2740 rmdir .deps 2>/dev/null
2743 ac_config_commands="$ac_config_commands depfiles"
2746 am_make=${MAKE-make}
2747 cat > confinc << 'END'
2751 # If we don't find an include directive, just comment out the code.
2752 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2753 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2757 # First try GNU make style include.
2758 echo "include confinc" > confmf
2759 # We grep out `Entering directory' and `Leaving directory'
2760 # messages which can occur if `w' ends up in MAKEFLAGS.
2761 # In particular we don't look at `^make:' because GNU make might
2762 # be invoked under some other name (usually "gmake"), in which
2763 # case it prints its new name instead of `make'.
2764 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2769 # Now try BSD make style include.
2770 if test "$am__include" = "#"; then
2771 echo '.include "confinc"' > confmf
2772 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2773 am__include=.include
2780 echo "$as_me:$LINENO: result: $_am_result" >&5
2781 echo "${ECHO_T}$_am_result" >&6
2782 rm -f confinc confmf
2784 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2785 if test "${enable_dependency_tracking+set}" = set; then
2786 enableval="$enable_dependency_tracking"
2789 if test "x$enable_dependency_tracking" != xno; then
2790 am_depcomp="$ac_aux_dir/depcomp"
2795 if test "x$enable_dependency_tracking" != xno; then
2805 # test to see if srcdir already configured
2806 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2807 test -f $srcdir/config.status; then
2808 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2809 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2810 { (exit 1); exit 1; }; }
2813 # Define the identity of the package.
2818 cat >>confdefs.h <<_ACEOF
2819 #define PACKAGE "$PACKAGE"
2823 cat >>confdefs.h <<_ACEOF
2824 #define VERSION "$VERSION"
2827 # Some tools Automake needs.
2829 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2832 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2835 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2838 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2841 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2844 AMTAR=${AMTAR-"${am_missing_run}tar"}
2846 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2848 # Installed binaries are usually stripped using `strip' when the user
2849 # run `make install-strip'. However `strip' might not be the right
2850 # tool to use in cross-compilation environments, therefore Automake
2851 # will honor the `STRIP' environment variable to overrule this program.
2852 if test "$cross_compiling" != no; then
2853 if test -n "$ac_tool_prefix"; then
2854 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2855 set dummy ${ac_tool_prefix}strip; ac_word=$2
2856 echo "$as_me:$LINENO: checking for $ac_word" >&5
2857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2858 if test "${ac_cv_prog_STRIP+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 if test -n "$STRIP"; then
2862 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 STRIP=$ac_cv_prog_STRIP
2881 if test -n "$STRIP"; then
2882 echo "$as_me:$LINENO: result: $STRIP" >&5
2883 echo "${ECHO_T}$STRIP" >&6
2885 echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6
2890 if test -z "$ac_cv_prog_STRIP"; then
2892 # Extract the first word of "strip", so it can be a program name with args.
2893 set dummy strip; ac_word=$2
2894 echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2896 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 if test -n "$ac_ct_STRIP"; then
2900 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909 ac_cv_prog_ac_ct_STRIP="strip"
2910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2919 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2920 if test -n "$ac_ct_STRIP"; then
2921 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2922 echo "${ECHO_T}$ac_ct_STRIP" >&6
2924 echo "$as_me:$LINENO: result: no" >&5
2925 echo "${ECHO_T}no" >&6
2930 STRIP="$ac_cv_prog_STRIP"
2934 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2936 # We need awk for the "check" target. The system "awk" is bad on
2940 depcc="$CC" am_compiler_list=
2942 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2943 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2944 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2948 # We make a subdir and do the tests there. Otherwise we can end up
2949 # making bogus files that we don't know about and never remove. For
2950 # instance it was reported that on HP-UX the gcc test will end up
2951 # making a dummy file named `D' -- because `-MD' means `put the output
2954 # Copy depcomp to subdir because otherwise we won't find it if we're
2955 # using a relative directory.
2956 cp "$am_depcomp" conftest.dir
2959 am_cv_CC_dependencies_compiler_type=none
2960 if test "$am_compiler_list" = ""; then
2961 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2963 for depmode in $am_compiler_list; do
2964 # We need to recreate these files for each test, as the compiler may
2965 # overwrite some of them when testing with obscure command lines.
2966 # This happens at least with the AIX C compiler.
2967 echo '#include "conftest.h"' > conftest.c
2968 echo 'int i;' > conftest.h
2969 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2973 # after this tag, mechanisms are not by side-effect, so they'll
2974 # only be used when explicitly requested
2975 if test "x$enable_dependency_tracking" = xyes; then
2983 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2984 # mode. It turns out that the SunPro C++ compiler does not properly
2985 # handle `-M -o', and we need to detect this.
2986 if depmode=$depmode \
2987 source=conftest.c object=conftest.o \
2988 depfile=conftest.Po tmpdepfile=conftest.TPo \
2989 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2990 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2991 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2992 am_cv_CC_dependencies_compiler_type=$depmode
3000 am_cv_CC_dependencies_compiler_type=none
3004 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3005 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3006 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3013 test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
3014 test "$localstatedir" = '${prefix}/var' && localstatedir='/var/heimdal'
3016 # Make sure we can run config.sub.
3017 $ac_config_sub sun4 >/dev/null 2>&1 ||
3018 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3019 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3020 { (exit 1); exit 1; }; }
3022 echo "$as_me:$LINENO: checking build system type" >&5
3023 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3024 if test "${ac_cv_build+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3027 ac_cv_build_alias=$build_alias
3028 test -z "$ac_cv_build_alias" &&
3029 ac_cv_build_alias=`$ac_config_guess`
3030 test -z "$ac_cv_build_alias" &&
3031 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3032 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3033 { (exit 1); exit 1; }; }
3034 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3035 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3036 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3037 { (exit 1); exit 1; }; }
3040 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3041 echo "${ECHO_T}$ac_cv_build" >&6
3043 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3044 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3045 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3048 echo "$as_me:$LINENO: checking host system type" >&5
3049 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3050 if test "${ac_cv_host+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
3053 ac_cv_host_alias=$host_alias
3054 test -z "$ac_cv_host_alias" &&
3055 ac_cv_host_alias=$ac_cv_build_alias
3056 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3057 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3058 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3059 { (exit 1); exit 1; }; }
3062 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3063 echo "${ECHO_T}$ac_cv_host" >&6
3065 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3066 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3067 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3070 CANONICAL_HOST=$host
3073 # Check whether --enable-largefile or --disable-largefile was given.
3074 if test "${enable_largefile+set}" = set; then
3075 enableval="$enable_largefile"
3078 if test "$enable_largefile" != no; then
3080 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3081 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3082 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 ac_cv_sys_largefile_CC=no
3086 if test "$GCC" != yes; then
3089 # IRIX 6.2 and later do not support large files by default,
3090 # so use the C compiler's -n32 option if that helps.
3091 cat >conftest.$ac_ext <<_ACEOF
3092 #line $LINENO "configure"
3093 #include "confdefs.h"
3094 #include <sys/types.h>
3095 /* Check that off_t can represent 2**63 - 1 correctly.
3096 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3097 since some C++ compilers masquerading as C compilers
3098 incorrectly reject 9223372036854775807. */
3099 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3100 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3101 && LARGE_OFF_T % 2147483647 == 1)
3103 #ifdef F77_DUMMY_MAIN
3107 int F77_DUMMY_MAIN() { return 1; }
3117 rm -f conftest.$ac_objext
3118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3119 (eval $ac_compile) 2>&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } &&
3123 { ac_try='test -s conftest.$ac_objext'
3124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; }; then
3131 echo "$as_me: failed program was:" >&5
3132 cat conftest.$ac_ext >&5
3134 rm -f conftest.$ac_objext
3136 rm -f conftest.$ac_objext
3137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3138 (eval $ac_compile) 2>&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } &&
3142 { ac_try='test -s conftest.$ac_objext'
3143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; }; then
3148 ac_cv_sys_largefile_CC=' -n32'; break
3150 echo "$as_me: failed program was:" >&5
3151 cat conftest.$ac_ext >&5
3153 rm -f conftest.$ac_objext
3157 rm -f conftest.$ac_ext
3160 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3161 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3162 if test "$ac_cv_sys_largefile_CC" != no; then
3163 CC=$CC$ac_cv_sys_largefile_CC
3166 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3167 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3168 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 ac_cv_sys_file_offset_bits=no
3173 cat >conftest.$ac_ext <<_ACEOF
3174 #line $LINENO "configure"
3175 #include "confdefs.h"
3176 #include <sys/types.h>
3177 /* Check that off_t can represent 2**63 - 1 correctly.
3178 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3179 since some C++ compilers masquerading as C compilers
3180 incorrectly reject 9223372036854775807. */
3181 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3182 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3183 && LARGE_OFF_T % 2147483647 == 1)
3185 #ifdef F77_DUMMY_MAIN
3189 int F77_DUMMY_MAIN() { return 1; }
3199 rm -f conftest.$ac_objext
3200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3201 (eval $ac_compile) 2>&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } &&
3205 { ac_try='test -s conftest.$ac_objext'
3206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; }; then
3213 echo "$as_me: failed program was:" >&5
3214 cat conftest.$ac_ext >&5
3216 rm -f conftest.$ac_objext conftest.$ac_ext
3217 cat >conftest.$ac_ext <<_ACEOF
3218 #line $LINENO "configure"
3219 #include "confdefs.h"
3220 #define _FILE_OFFSET_BITS 64
3221 #include <sys/types.h>
3222 /* Check that off_t can represent 2**63 - 1 correctly.
3223 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3224 since some C++ compilers masquerading as C compilers
3225 incorrectly reject 9223372036854775807. */
3226 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3227 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3228 && LARGE_OFF_T % 2147483647 == 1)
3230 #ifdef F77_DUMMY_MAIN
3234 int F77_DUMMY_MAIN() { return 1; }
3244 rm -f conftest.$ac_objext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
3250 { ac_try='test -s conftest.$ac_objext'
3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; }; then
3256 ac_cv_sys_file_offset_bits=64; break
3258 echo "$as_me: failed program was:" >&5
3259 cat conftest.$ac_ext >&5
3261 rm -f conftest.$ac_objext conftest.$ac_ext
3265 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3266 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3267 if test "$ac_cv_sys_file_offset_bits" != no; then
3269 cat >>confdefs.h <<_ACEOF
3270 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3275 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3276 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3277 if test "${ac_cv_sys_large_files+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 ac_cv_sys_large_files=no
3282 cat >conftest.$ac_ext <<_ACEOF
3283 #line $LINENO "configure"
3284 #include "confdefs.h"
3285 #include <sys/types.h>
3286 /* Check that off_t can represent 2**63 - 1 correctly.
3287 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3288 since some C++ compilers masquerading as C compilers
3289 incorrectly reject 9223372036854775807. */
3290 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3291 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3292 && LARGE_OFF_T % 2147483647 == 1)
3294 #ifdef F77_DUMMY_MAIN
3298 int F77_DUMMY_MAIN() { return 1; }
3308 rm -f conftest.$ac_objext
3309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3310 (eval $ac_compile) 2>&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); } &&
3314 { ac_try='test -s conftest.$ac_objext'
3315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }; }; then
3322 echo "$as_me: failed program was:" >&5
3323 cat conftest.$ac_ext >&5
3325 rm -f conftest.$ac_objext conftest.$ac_ext
3326 cat >conftest.$ac_ext <<_ACEOF
3327 #line $LINENO "configure"
3328 #include "confdefs.h"
3329 #define _LARGE_FILES 1
3330 #include <sys/types.h>
3331 /* Check that off_t can represent 2**63 - 1 correctly.
3332 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3333 since some C++ compilers masquerading as C compilers
3334 incorrectly reject 9223372036854775807. */
3335 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3336 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3337 && LARGE_OFF_T % 2147483647 == 1)
3339 #ifdef F77_DUMMY_MAIN
3343 int F77_DUMMY_MAIN() { return 1; }
3353 rm -f conftest.$ac_objext
3354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3355 (eval $ac_compile) 2>&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } &&
3359 { ac_try='test -s conftest.$ac_objext'
3360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }; }; then
3365 ac_cv_sys_large_files=1; break
3367 echo "$as_me: failed program was:" >&5
3368 cat conftest.$ac_ext >&5
3370 rm -f conftest.$ac_objext conftest.$ac_ext
3374 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3375 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3376 if test "$ac_cv_sys_large_files" != no; then
3378 cat >>confdefs.h <<_ACEOF
3379 #define _LARGE_FILES $ac_cv_sys_large_files
3388 cat >>confdefs.h <<\_ACEOF
3389 #define _GNU_SOURCE 1
3396 for ac_prog in 'bison -y' byacc
3398 # Extract the first word of "$ac_prog", so it can be a program name with args.
3399 set dummy $ac_prog; ac_word=$2
3400 echo "$as_me:$LINENO: checking for $ac_word" >&5
3401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3402 if test "${ac_cv_prog_YACC+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 if test -n "$YACC"; then
3406 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3415 ac_cv_prog_YACC="$ac_prog"
3416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3424 YACC=$ac_cv_prog_YACC
3425 if test -n "$YACC"; then
3426 echo "$as_me:$LINENO: result: $YACC" >&5
3427 echo "${ECHO_T}$YACC" >&6
3429 echo "$as_me:$LINENO: result: no" >&5
3430 echo "${ECHO_T}no" >&6
3433 test -n "$YACC" && break
3435 test -n "$YACC" || YACC="yacc"
3437 for ac_prog in flex lex
3439 # Extract the first word of "$ac_prog", so it can be a program name with args.
3440 set dummy $ac_prog; ac_word=$2
3441 echo "$as_me:$LINENO: checking for $ac_word" >&5
3442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3443 if test "${ac_cv_prog_LEX+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 if test -n "$LEX"; then
3447 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 test -z "$as_dir" && as_dir=.
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3456 ac_cv_prog_LEX="$ac_prog"
3457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 if test -n "$LEX"; then
3467 echo "$as_me:$LINENO: result: $LEX" >&5
3468 echo "${ECHO_T}$LEX" >&6
3470 echo "$as_me:$LINENO: result: no" >&5
3471 echo "${ECHO_T}no" >&6
3474 test -n "$LEX" && break
3476 test -n "$LEX" || LEX=":"
3478 if test -z "$LEXLIB"
3480 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3481 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3482 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3483 echo $ECHO_N "(cached) $ECHO_C" >&6
3485 ac_check_lib_save_LIBS=$LIBS
3487 cat >conftest.$ac_ext <<_ACEOF
3488 #line $LINENO "configure"
3489 #include "confdefs.h"
3491 /* Override any gcc2 internal prototype to avoid an error. */
3495 /* We use char because int might match the return type of a gcc2
3496 builtin and then its argument prototype would still apply. */
3498 #ifdef F77_DUMMY_MAIN
3502 int F77_DUMMY_MAIN() { return 1; }
3512 rm -f conftest.$ac_objext conftest$ac_exeext
3513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3514 (eval $ac_link) 2>&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); } &&
3518 { ac_try='test -s conftest$ac_exeext'
3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; }; then
3524 ac_cv_lib_fl_yywrap=yes
3526 echo "$as_me: failed program was:" >&5
3527 cat conftest.$ac_ext >&5
3528 ac_cv_lib_fl_yywrap=no
3530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3531 LIBS=$ac_check_lib_save_LIBS
3533 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3534 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3535 if test $ac_cv_lib_fl_yywrap = yes; then
3538 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3539 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3540 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 ac_check_lib_save_LIBS=$LIBS
3545 cat >conftest.$ac_ext <<_ACEOF
3546 #line $LINENO "configure"
3547 #include "confdefs.h"
3549 /* Override any gcc2 internal prototype to avoid an error. */
3553 /* We use char because int might match the return type of a gcc2
3554 builtin and then its argument prototype would still apply. */
3556 #ifdef F77_DUMMY_MAIN
3560 int F77_DUMMY_MAIN() { return 1; }
3570 rm -f conftest.$ac_objext conftest$ac_exeext
3571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3572 (eval $ac_link) 2>&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } &&
3576 { ac_try='test -s conftest$ac_exeext'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; }; then
3582 ac_cv_lib_l_yywrap=yes
3584 echo "$as_me: failed program was:" >&5
3585 cat conftest.$ac_ext >&5
3586 ac_cv_lib_l_yywrap=no
3588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3589 LIBS=$ac_check_lib_save_LIBS
3591 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3592 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3593 if test $ac_cv_lib_l_yywrap = yes; then
3601 if test "x$LEX" != "x:"; then
3602 echo "$as_me:$LINENO: checking lex output file root" >&5
3603 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3604 if test "${ac_cv_prog_lex_root+set}" = set; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 # The minimal lex program is just a single line: %%. But some broken lexes
3608 # (Solaris, I think it was) want two %% lines, so accommodate them.
3609 cat >conftest.l <<_ACEOF
3613 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3614 (eval $LEX conftest.l) 2>&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }
3618 if test -f lex.yy.c; then
3619 ac_cv_prog_lex_root=lex.yy
3620 elif test -f lexyy.c; then
3621 ac_cv_prog_lex_root=lexyy
3623 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3624 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3625 { (exit 1); exit 1; }; }
3628 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3629 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3631 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3633 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3634 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3635 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 # POSIX says lex can declare yytext either as a pointer or an array; the
3639 # default is implementation-dependent. Figure out which it is, since
3640 # not all implementations provide the %pointer and %array declarations.
3641 ac_cv_prog_lex_yytext_pointer=no
3642 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3644 LIBS="$LIBS $LEXLIB"
3645 cat >conftest.$ac_ext <<_ACEOF
3646 `cat $LEX_OUTPUT_ROOT.c`
3648 rm -f conftest.$ac_objext conftest$ac_exeext
3649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3650 (eval $ac_link) 2>&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } &&
3654 { ac_try='test -s conftest$ac_exeext'
3655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; }; then
3660 ac_cv_prog_lex_yytext_pointer=yes
3662 echo "$as_me: failed program was:" >&5
3663 cat conftest.$ac_ext >&5
3665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3667 rm -f "${LEX_OUTPUT_ROOT}.c"
3670 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3671 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3672 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3674 cat >>confdefs.h <<\_ACEOF
3675 #define YYTEXT_POINTER 1
3681 if test "$LEX" = :; then
3682 LEX=${am_missing_run}flex
3684 for ac_prog in gawk mawk nawk awk
3686 # Extract the first word of "$ac_prog", so it can be a program name with args.
3687 set dummy $ac_prog; ac_word=$2
3688 echo "$as_me:$LINENO: checking for $ac_word" >&5
3689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3690 if test "${ac_cv_prog_AWK+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 if test -n "$AWK"; then
3694 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 test -z "$as_dir" && as_dir=.
3701 for ac_exec_ext in '' $ac_executable_extensions; do
3702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3703 ac_cv_prog_AWK="$ac_prog"
3704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 if test -n "$AWK"; then
3714 echo "$as_me:$LINENO: result: $AWK" >&5
3715 echo "${ECHO_T}$AWK" >&6
3717 echo "$as_me:$LINENO: result: no" >&5
3718 echo "${ECHO_T}no" >&6
3721 test -n "$AWK" && break
3724 echo "$as_me:$LINENO: checking for ln -s or something else" >&5
3725 echo $ECHO_N "checking for ln -s or something else... $ECHO_C" >&6
3726 if test "${ac_cv_prog_LN_S+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 if ln -s X conftestdata 2>/dev/null
3733 ac_cv_prog_LN_S="ln -s"
3736 if ln conftestdata1 conftestdata2; then
3744 LN_S="$ac_cv_prog_LN_S"
3745 echo "$as_me:$LINENO: result: $ac_cv_prog_LN_S" >&5
3746 echo "${ECHO_T}$ac_cv_prog_LN_S" >&6
3751 # Check whether --with-mips_abi or --without-mips_abi was given.
3752 if test "${with_mips_abi+set}" = set; then
3753 withval="$with_mips_abi"
3759 with_mips_abi="${with_mips_abi:-yes}"
3760 if test -n "$GCC"; then
3762 # GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select
3763 # which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs.
3765 # Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old
3766 # GCC and revert back to O32. The same goes if O32 is asked for - old
3767 # GCCs doesn't like the -mabi option, and new GCCs can't output O32.
3769 # Don't you just love *all* the different SGI ABIs?
3771 case "${with_mips_abi}" in
3772 32|o32) abi='-mabi=32'; abilibdirext='' ;;
3773 n32|yes) abi='-mabi=n32'; abilibdirext='32' ;;
3774 64) abi='-mabi=64'; abilibdirext='64' ;;
3775 no) abi=''; abilibdirext='';;
3776 *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
3777 echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
3778 { (exit 1); exit 1; }; } ;;
3780 if test -n "$abi" ; then
3781 ac_foo=krb_cv_gcc_`echo $abi | tr =- __`
3782 echo "$as_me:$LINENO: checking if $CC supports the $abi option" >&5
3783 echo $ECHO_N "checking if $CC supports the $abi option... $ECHO_C" >&6
3784 if eval "test \"\${$ac_foo+set}\" = set"; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3788 save_CFLAGS="$CFLAGS"
3789 CFLAGS="$CFLAGS $abi"
3790 cat >conftest.$ac_ext <<_ACEOF
3791 #line $LINENO "configure"
3792 #include "confdefs.h"
3794 #ifdef F77_DUMMY_MAIN
3798 int F77_DUMMY_MAIN() { return 1; }
3808 rm -f conftest.$ac_objext
3809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3810 (eval $ac_compile) 2>&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } &&
3814 { ac_try='test -s conftest.$ac_objext'
3815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }; }; then
3822 echo "$as_me: failed program was:" >&5
3823 cat conftest.$ac_ext >&5
3826 rm -f conftest.$ac_objext conftest.$ac_ext
3827 CFLAGS="$save_CFLAGS"
3831 ac_res=`eval echo \\\$$ac_foo`
3832 echo "$as_me:$LINENO: result: $ac_res" >&5
3833 echo "${ECHO_T}$ac_res" >&6
3834 if test $ac_res = no; then
3835 # Try to figure out why that failed...
3838 save_CFLAGS="$CFLAGS"
3839 CFLAGS="$CFLAGS -mabi=n32"
3840 cat >conftest.$ac_ext <<_ACEOF
3841 #line $LINENO "configure"
3842 #include "confdefs.h"
3844 #ifdef F77_DUMMY_MAIN
3848 int F77_DUMMY_MAIN() { return 1; }
3858 rm -f conftest.$ac_objext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3860 (eval $ac_compile) 2>&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } &&
3864 { ac_try='test -s conftest.$ac_objext'
3865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }; }; then
3872 echo "$as_me: failed program was:" >&5
3873 cat conftest.$ac_ext >&5
3876 rm -f conftest.$ac_objext conftest.$ac_ext
3877 CLAGS="$save_CFLAGS"
3878 if test $ac_res = yes; then
3880 { { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
3881 echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
3882 { (exit 1); exit 1; }; }
3889 if test $with_mips_abi = yes; then
3890 # Old GCC, default to O32
3895 { { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
3896 echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
3897 { (exit 1); exit 1; }; }
3901 fi #if test $ac_res = no; then
3902 fi #if test -n "$abi" ; then
3904 case "${with_mips_abi}" in
3905 32|o32) abi='-32'; abilibdirext='' ;;
3906 n32|yes) abi='-n32'; abilibdirext='32' ;;
3907 64) abi='-64'; abilibdirext='64' ;;
3908 no) abi=''; abilibdirext='';;
3909 *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
3910 echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
3911 { (exit 1); exit 1; }; } ;;
3913 fi #if test -n "$GCC"; then
3918 libdir="$libdir$abilibdirext"
3921 echo "$as_me:$LINENO: checking for __attribute__" >&5
3922 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
3923 if test "${ac_cv___attribute__+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 cat >conftest.$ac_ext <<_ACEOF
3928 #line $LINENO "configure"
3929 #include "confdefs.h"
3933 #ifdef F77_DUMMY_MAIN
3937 int F77_DUMMY_MAIN() { return 1; }
3943 static void foo(void) __attribute__ ((noreturn));
3955 rm -f conftest.$ac_objext
3956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3957 (eval $ac_compile) 2>&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } &&
3961 { ac_try='test -s conftest.$ac_objext'
3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; }; then
3967 ac_cv___attribute__=yes
3969 echo "$as_me: failed program was:" >&5
3970 cat conftest.$ac_ext >&5
3971 ac_cv___attribute__=no
3973 rm -f conftest.$ac_objext conftest.$ac_ext
3976 if test "$ac_cv___attribute__" = "yes"; then
3978 cat >>confdefs.h <<\_ACEOF
3979 #define HAVE___ATTRIBUTE__ 1
3983 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3984 echo "${ECHO_T}$ac_cv___attribute__" >&6
3987 # Check whether --enable-shared or --disable-shared was given.
3988 if test "${enable_shared+set}" = set; then
3989 enableval="$enable_shared"
3990 p=${PACKAGE-default}
3992 yes) enable_shared=yes ;;
3993 no) enable_shared=no ;;
3996 # Look at the argument we got. We use all the common list separators.
3997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3998 for pkg in $enableval; do
3999 if test "X$pkg" = "X$p"; then
4009 # Check whether --enable-static or --disable-static was given.
4010 if test "${enable_static+set}" = set; then
4011 enableval="$enable_static"
4012 p=${PACKAGE-default}
4014 yes) enable_static=yes ;;
4015 no) enable_static=no ;;
4018 # Look at the argument we got. We use all the common list separators.
4019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4020 for pkg in $enableval; do
4021 if test "X$pkg" = "X$p"; then
4031 # Check whether --enable-fast-install or --disable-fast-install was given.
4032 if test "${enable_fast_install+set}" = set; then
4033 enableval="$enable_fast_install"
4034 p=${PACKAGE-default}
4036 yes) enable_fast_install=yes ;;
4037 no) enable_fast_install=no ;;
4039 enable_fast_install=no
4040 # Look at the argument we got. We use all the common list separators.
4041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4042 for pkg in $enableval; do
4043 if test "X$pkg" = "X$p"; then
4044 enable_fast_install=yes
4051 enable_fast_install=yes
4053 # Find the correct PATH separator. Usually this is `:', but
4054 # DJGPP uses `;' like DOS.
4055 if test "X${PATH_SEPARATOR+set}" != Xset; then
4056 UNAME=${UNAME-`uname 2>/dev/null`}
4058 *-DOS) lt_cv_sys_path_separator=';' ;;
4059 *) lt_cv_sys_path_separator=':' ;;
4061 PATH_SEPARATOR=$lt_cv_sys_path_separator
4065 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4066 if test "${with_gnu_ld+set}" = set; then
4067 withval="$with_gnu_ld"
4068 test "$withval" = no || with_gnu_ld=yes
4073 if test "$GCC" = yes; then
4074 # Check if gcc -print-prog-name=ld gives a path.
4075 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4076 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4079 # gcc leaves a trailing carriage return which upsets mingw
4080 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4082 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4085 # Accept absolute paths.
4086 [\\/]* | [A-Za-z]:[\\/]*)
4087 re_direlt='/[^/][^/]*/\.\./'
4088 # Canonicalize the path of ld
4089 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4090 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4091 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4093 test -z "$LD" && LD="$ac_prog"
4096 # If it fails, then pretend we aren't using GCC.
4100 # If it is relative, then search for the first ld in PATH.
4104 elif test "$with_gnu_ld" = yes; then
4105 echo "$as_me:$LINENO: checking for GNU ld" >&5
4106 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4108 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4109 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4111 if test "${lt_cv_path_LD+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 if test -z "$LD"; then
4115 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4116 for ac_dir in $PATH; do
4117 test -z "$ac_dir" && ac_dir=.
4118 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4119 lt_cv_path_LD="$ac_dir/$ac_prog"
4120 # Check to see if the program is GNU ld. I'd rather use --version,
4121 # but apparently some GNU ld's only accept -v.
4122 # Break only if it was the GNU/non-GNU ld that we prefer.
4123 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4124 test "$with_gnu_ld" != no && break
4126 test "$with_gnu_ld" != yes && break
4132 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4137 if test -n "$LD"; then
4138 echo "$as_me:$LINENO: result: $LD" >&5
4139 echo "${ECHO_T}$LD" >&6
4141 echo "$as_me:$LINENO: result: no" >&5
4142 echo "${ECHO_T}no" >&6
4144 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4145 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4146 { (exit 1); exit 1; }; }
4147 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4148 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4149 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4153 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4154 lt_cv_prog_gnu_ld=yes
4156 lt_cv_prog_gnu_ld=no
4159 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4160 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4161 with_gnu_ld=$lt_cv_prog_gnu_ld
4164 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4165 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4166 if test "${lt_cv_ld_reload_flag+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 lt_cv_ld_reload_flag='-r'
4171 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4172 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4173 reload_flag=$lt_cv_ld_reload_flag
4174 test -n "$reload_flag" && reload_flag=" $reload_flag"
4176 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4177 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4178 if test "${lt_cv_path_NM+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 if test -n "$NM"; then
4182 # Let the user override the test.
4185 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4186 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4187 test -z "$ac_dir" && ac_dir=.
4188 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4189 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4190 # Check to see if the nm accepts a BSD-compat flag.
4191 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4192 # nm: unknown option "B" ignored
4193 # Tru64's nm complains that /dev/null is an invalid object file
4194 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4195 lt_cv_path_NM="$tmp_nm -B"
4197 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4198 lt_cv_path_NM="$tmp_nm -p"
4201 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4202 continue # so that we can try to find one that supports BSD flags
4207 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4212 echo "$as_me:$LINENO: result: $NM" >&5
4213 echo "${ECHO_T}$NM" >&6
4215 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4216 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4218 if test "$LN_S" = "ln -s"; then
4219 echo "$as_me:$LINENO: result: yes" >&5
4220 echo "${ECHO_T}yes" >&6
4222 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4223 echo "${ECHO_T}no, using $LN_S" >&6
4226 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4227 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4228 if test "${lt_cv_deplibs_check_method+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 lt_cv_file_magic_cmd='$MAGIC_CMD'
4232 lt_cv_file_magic_test_file=
4233 lt_cv_deplibs_check_method='unknown'
4234 # Need to set the preceding variable on all platforms that support
4235 # interlibrary dependencies.
4236 # 'none' -- dependencies not supported.
4237 # `unknown' -- same as none, but documents that we really don't know.
4238 # 'pass_all' -- all dependencies passed with no checks.
4239 # 'test_compile' -- check by making test program.
4240 # 'file_magic [[regex]]' -- check by looking for files in library path
4241 # which responds to the $file_magic_cmd with a given egrep regex.
4242 # If you have `file' or equivalent on your system and you're not sure
4243 # whether `pass_all' will *always* work, you probably want this one.
4247 lt_cv_deplibs_check_method=pass_all
4251 lt_cv_deplibs_check_method=pass_all
4255 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4256 lt_cv_file_magic_cmd='/usr/bin/file -L'
4257 lt_cv_file_magic_test_file=/shlib/libc.so
4260 cygwin* | mingw* | pw32*)
4261 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4262 lt_cv_file_magic_cmd='$OBJDUMP -f'
4265 darwin* | rhapsody*)
4266 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4267 lt_cv_file_magic_cmd='/usr/bin/file -L'
4269 rhapsody* | darwin1.[012])
4270 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4273 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4279 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4282 # Not sure whether the presence of OpenBSD here was a mistake.
4283 # Let's accept both of them until this is cleared up.
4284 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4285 lt_cv_file_magic_cmd=/usr/bin/file
4286 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4290 lt_cv_deplibs_check_method=pass_all
4295 lt_cv_deplibs_check_method=pass_all
4299 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4300 lt_cv_file_magic_cmd=/usr/bin/file
4301 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4307 # this will be overridden with pass_all, but let us keep it just in case
4308 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4312 *-32|*"-32 ") libmagic=32-bit;;
4313 *-n32|*"-n32 ") libmagic=N32;;
4314 *-64|*"-64 ") libmagic=64-bit;;
4315 *) libmagic=never-match;;
4317 # this will be overridden with pass_all, but let us keep it just in case
4318 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4321 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4322 lt_cv_deplibs_check_method=pass_all
4325 # This must be Linux ELF.
4328 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
4329 lt_cv_deplibs_check_method=pass_all ;;
4331 # glibc up to 2.1.1 does not perform some relocations on ARM
4332 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4334 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4338 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4339 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4341 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4346 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4347 lt_cv_file_magic_cmd=/usr/bin/file
4348 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4352 lt_cv_file_magic_cmd=/usr/bin/file
4353 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4354 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4355 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4357 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4361 osf3* | osf4* | osf5*)
4362 # this will be overridden with pass_all, but let us keep it just in case
4363 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4364 lt_cv_file_magic_test_file=/shlib/libc.so
4365 lt_cv_deplibs_check_method=pass_all
4369 lt_cv_deplibs_check_method=pass_all
4373 lt_cv_deplibs_check_method=pass_all
4374 lt_cv_file_magic_test_file=/lib/libc.so
4377 sysv5uw[78]* | sysv4*uw2*)
4378 lt_cv_deplibs_check_method=pass_all
4381 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4382 case $host_vendor in
4384 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4385 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4388 lt_cv_deplibs_check_method=pass_all
4391 lt_cv_file_magic_cmd='/bin/file'
4392 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4395 lt_cv_file_magic_cmd='/bin/file'
4396 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4397 lt_cv_file_magic_test_file=/lib/libc.so
4404 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4405 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4406 file_magic_cmd=$lt_cv_file_magic_cmd
4407 deplibs_check_method=$lt_cv_deplibs_check_method
4413 # Check for command to grab the raw symbol name followed by C symbol from nm.
4414 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4415 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4416 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4420 # These are sane defaults that work on at least a few old systems.
4421 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4423 # Character class describing NM global symbol codes.
4424 symcode='[BCDEGRST]'
4426 # Regexp to match symbols that can be accessed directly from C.
4427 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4429 # Transform the above into a raw symbol and a C symbol.
4430 symxfrm='\1 \2\3 \3'
4432 # Transform an extracted symbol line into a proper C declaration
4433 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4435 # Transform an extracted symbol line into symbol name and symbol address
4436 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4438 # Define system-specific variables.
4443 cygwin* | mingw* | pw32*)
4444 symcode='[ABCDGISTW]'
4446 hpux*) # Its linker distinguishes data from code symbols
4447 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4448 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4451 symcode='[BCDEGRST]'
4461 # Handle CRLF in mingw tool chain
4465 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4469 # If we're using GNU nm, then use its standard symbol codes.
4470 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4471 symcode='[ABCDGISTW]'
4474 # Try without a prefix undercore, then with it.
4475 for ac_symprfx in "" "_"; do
4477 # Write the raw and C identifiers.
4478 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4480 # Check to see that the pipe works correctly.
4483 cat > conftest.$ac_ext <<EOF
4488 void nm_test_func(){}
4492 int main(){nm_test_var='a';nm_test_func();return(0);}
4495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4496 (eval $ac_compile) 2>&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); }; then
4500 # Now try to grab the symbols.
4502 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4503 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); } && test -s "$nlist"; then
4507 # Try sorting and uniquifying the output.
4508 if sort "$nlist" | uniq > "$nlist"T; then
4509 mv -f "$nlist"T "$nlist"
4514 # Make sure that we snagged all the symbols we need.
4515 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4516 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4517 cat <<EOF > conftest.$ac_ext
4523 # Now generate the symbol file.
4524 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4526 cat <<EOF >> conftest.$ac_ext
4527 #if defined (__STDC__) && __STDC__
4528 # define lt_ptr void *
4530 # define lt_ptr char *
4534 /* The mapping between symbol names and symbols. */
4539 lt_preloaded_symbols[] =
4542 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4543 cat <<\EOF >> conftest.$ac_ext
4551 # Now try linking the two files.
4552 mv conftest.$ac_objext conftstm.$ac_objext
4554 save_CFLAGS="$CFLAGS"
4555 LIBS="conftstm.$ac_objext"
4556 CFLAGS="$CFLAGS$no_builtin_flag"
4557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4558 (eval $ac_link) 2>&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); } && test -s conftest; then
4565 CFLAGS="$save_CFLAGS"
4567 echo "cannot find nm_test_func in $nlist" >&5
4570 echo "cannot find nm_test_var in $nlist" >&5
4573 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4576 echo "$progname: failed program was:" >&5
4577 cat conftest.$ac_ext >&5
4579 rm -f conftest* conftst*
4581 # Do not use the global_symbol_pipe unless it works.
4582 if test "$pipe_works" = yes; then
4585 lt_cv_sys_global_symbol_pipe=
4591 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4592 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4593 global_symbol_to_cdecl=
4594 global_symbol_to_c_name_address=
4596 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4597 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4599 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4601 echo "$as_me:$LINENO: result: failed" >&5
4602 echo "${ECHO_T}failed" >&6
4604 echo "$as_me:$LINENO: result: ok" >&5
4605 echo "${ECHO_T}ok" >&6
4609 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4610 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4611 if test "${ac_cv_header_stdc+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 cat >conftest.$ac_ext <<_ACEOF
4615 #line $LINENO "configure"
4616 #include "confdefs.h"
4623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4626 egrep -v '^ *\+' conftest.er1 >conftest.err
4628 cat conftest.err >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } >/dev/null; then
4631 if test -s conftest.err; then
4632 ac_cpp_err=$ac_c_preproc_warn_flag
4639 if test -z "$ac_cpp_err"; then
4640 ac_cv_header_stdc=yes
4642 echo "$as_me: failed program was:" >&5
4643 cat conftest.$ac_ext >&5
4644 ac_cv_header_stdc=no
4646 rm -f conftest.err conftest.$ac_ext
4648 if test $ac_cv_header_stdc = yes; then
4649 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4650 cat >conftest.$ac_ext <<_ACEOF
4651 #line $LINENO "configure"
4652 #include "confdefs.h"
4656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4657 egrep "memchr" >/dev/null 2>&1; then
4660 ac_cv_header_stdc=no
4666 if test $ac_cv_header_stdc = yes; then
4667 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4668 cat >conftest.$ac_ext <<_ACEOF
4669 #line $LINENO "configure"
4670 #include "confdefs.h"
4674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4675 egrep "free" >/dev/null 2>&1; then
4678 ac_cv_header_stdc=no
4684 if test $ac_cv_header_stdc = yes; then
4685 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4686 if test "$cross_compiling" = yes; then
4689 cat >conftest.$ac_ext <<_ACEOF
4690 #line $LINENO "configure"
4691 #include "confdefs.h"
4693 #if ((' ' & 0x0FF) == 0x020)
4694 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4695 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4697 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4698 || ('j' <= (c) && (c) <= 'r') \
4699 || ('s' <= (c) && (c) <= 'z'))
4700 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4703 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4708 for (i = 0; i < 256; i++)
4709 if (XOR (islower (i), ISLOWER (i))
4710 || toupper (i) != TOUPPER (i))
4715 rm -f conftest$ac_exeext
4716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4717 (eval $ac_link) 2>&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; }; then
4728 echo "$as_me: program exited with status $ac_status" >&5
4729 echo "$as_me: failed program was:" >&5
4730 cat conftest.$ac_ext >&5
4732 ac_cv_header_stdc=no
4734 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4738 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4739 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4740 if test $ac_cv_header_stdc = yes; then
4742 cat >>confdefs.h <<\_ACEOF
4743 #define STDC_HEADERS 1
4748 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4758 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4759 inttypes.h stdint.h unistd.h
4761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4762 echo "$as_me:$LINENO: checking for $ac_header" >&5
4763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 cat >conftest.$ac_ext <<_ACEOF
4768 #line $LINENO "configure"
4769 #include "confdefs.h"
4770 $ac_includes_default
4772 #include <$ac_header>
4774 rm -f conftest.$ac_objext
4775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4776 (eval $ac_compile) 2>&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } &&
4780 { ac_try='test -s conftest.$ac_objext'
4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; }; then
4786 eval "$as_ac_Header=yes"
4788 echo "$as_me: failed program was:" >&5
4789 cat conftest.$ac_ext >&5
4790 eval "$as_ac_Header=no"
4792 rm -f conftest.$ac_objext conftest.$ac_ext
4794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4797 cat >>confdefs.h <<_ACEOF
4798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4807 for ac_header in dlfcn.h
4809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4811 echo "$as_me:$LINENO: checking for $ac_header" >&5
4812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4819 # Is the header compilable?
4820 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4822 cat >conftest.$ac_ext <<_ACEOF
4823 #line $LINENO "configure"
4824 #include "confdefs.h"
4825 $ac_includes_default
4826 #include <$ac_header>
4828 rm -f conftest.$ac_objext
4829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4830 (eval $ac_compile) 2>&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } &&
4834 { ac_try='test -s conftest.$ac_objext'
4835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }; }; then
4840 ac_header_compiler=yes
4842 echo "$as_me: failed program was:" >&5
4843 cat conftest.$ac_ext >&5
4844 ac_header_compiler=no
4846 rm -f conftest.$ac_objext conftest.$ac_ext
4847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4848 echo "${ECHO_T}$ac_header_compiler" >&6
4850 # Is the header present?
4851 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4853 cat >conftest.$ac_ext <<_ACEOF
4854 #line $LINENO "configure"
4855 #include "confdefs.h"
4856 #include <$ac_header>
4858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4861 egrep -v '^ *\+' conftest.er1 >conftest.err
4863 cat conftest.err >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } >/dev/null; then
4866 if test -s conftest.err; then
4867 ac_cpp_err=$ac_c_preproc_warn_flag
4874 if test -z "$ac_cpp_err"; then
4875 ac_header_preproc=yes
4877 echo "$as_me: failed program was:" >&5
4878 cat conftest.$ac_ext >&5
4879 ac_header_preproc=no
4881 rm -f conftest.err conftest.$ac_ext
4882 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4883 echo "${ECHO_T}$ac_header_preproc" >&6
4885 # So? What about this header?
4886 case $ac_header_compiler:$ac_header_preproc in
4888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4889 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4893 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4895 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4896 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4900 echo "$as_me:$LINENO: checking for $ac_header" >&5
4901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 eval "$as_ac_Header=$ac_header_preproc"
4907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4912 cat >>confdefs.h <<_ACEOF
4913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4924 # Only perform the check for file, if the check method requires it
4925 case $deplibs_check_method in
4927 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4928 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4929 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4930 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4938 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4941 ac_save_MAGIC_CMD="$MAGIC_CMD"
4942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4943 ac_dummy="/usr/bin:$PATH"
4944 for ac_dir in $ac_dummy; do
4945 test -z "$ac_dir" && ac_dir=.
4946 if test -f $ac_dir/${ac_tool_prefix}file; then
4947 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4948 if test -n "$file_magic_test_file"; then
4949 case $deplibs_check_method in
4951 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4952 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4953 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4954 egrep "$file_magic_regex" > /dev/null; then
4959 *** Warning: the command libtool uses to detect shared libraries,
4960 *** $file_magic_cmd, produces output that libtool cannot recognize.
4961 *** The result is that libtool may fail to recognize shared libraries
4962 *** as such. This will affect the creation of libtool libraries that
4963 *** depend on shared libraries, but programs linked with such libtool
4964 *** libraries will work regardless of this problem. Nevertheless, you
4965 *** may want to report the problem to your system manager and/or to
4966 *** bug-libtool@gnu.org
4976 MAGIC_CMD="$ac_save_MAGIC_CMD"
4981 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4982 if test -n "$MAGIC_CMD"; then
4983 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4984 echo "${ECHO_T}$MAGIC_CMD" >&6
4986 echo "$as_me:$LINENO: result: no" >&5
4987 echo "${ECHO_T}no" >&6
4990 if test -z "$lt_cv_path_MAGIC_CMD"; then
4991 if test -n "$ac_tool_prefix"; then
4992 echo "$as_me:$LINENO: checking for file" >&5
4993 echo $ECHO_N "checking for file... $ECHO_C" >&6
4994 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5002 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5005 ac_save_MAGIC_CMD="$MAGIC_CMD"
5006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5007 ac_dummy="/usr/bin:$PATH"
5008 for ac_dir in $ac_dummy; do
5009 test -z "$ac_dir" && ac_dir=.
5010 if test -f $ac_dir/file; then
5011 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5012 if test -n "$file_magic_test_file"; then
5013 case $deplibs_check_method in
5015 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5016 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5017 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5018 egrep "$file_magic_regex" > /dev/null; then
5023 *** Warning: the command libtool uses to detect shared libraries,
5024 *** $file_magic_cmd, produces output that libtool cannot recognize.
5025 *** The result is that libtool may fail to recognize shared libraries
5026 *** as such. This will affect the creation of libtool libraries that
5027 *** depend on shared libraries, but programs linked with such libtool
5028 *** libraries will work regardless of this problem. Nevertheless, you
5029 *** may want to report the problem to your system manager and/or to
5030 *** bug-libtool@gnu.org
5040 MAGIC_CMD="$ac_save_MAGIC_CMD"
5045 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5046 if test -n "$MAGIC_CMD"; then
5047 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5048 echo "${ECHO_T}$MAGIC_CMD" >&6
5050 echo "$as_me:$LINENO: result: no" >&5
5051 echo "${ECHO_T}no" >&6
5063 if test -n "$ac_tool_prefix"; then
5064 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5065 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5066 echo "$as_me:$LINENO: checking for $ac_word" >&5
5067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5068 if test "${ac_cv_prog_RANLIB+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 if test -n "$RANLIB"; then
5072 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5081 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 RANLIB=$ac_cv_prog_RANLIB
5091 if test -n "$RANLIB"; then
5092 echo "$as_me:$LINENO: result: $RANLIB" >&5
5093 echo "${ECHO_T}$RANLIB" >&6
5095 echo "$as_me:$LINENO: result: no" >&5
5096 echo "${ECHO_T}no" >&6
5100 if test -z "$ac_cv_prog_RANLIB"; then
5101 ac_ct_RANLIB=$RANLIB
5102 # Extract the first word of "ranlib", so it can be a program name with args.
5103 set dummy ranlib; ac_word=$2
5104 echo "$as_me:$LINENO: checking for $ac_word" >&5
5105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5106 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 if test -n "$ac_ct_RANLIB"; then
5110 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5119 ac_cv_prog_ac_ct_RANLIB="ranlib"
5120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5129 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5130 if test -n "$ac_ct_RANLIB"; then
5131 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5132 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5134 echo "$as_me:$LINENO: result: no" >&5
5135 echo "${ECHO_T}no" >&6
5138 RANLIB=$ac_ct_RANLIB
5140 RANLIB="$ac_cv_prog_RANLIB"
5143 if test -n "$ac_tool_prefix"; then
5144 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5145 set dummy ${ac_tool_prefix}strip; ac_word=$2
5146 echo "$as_me:$LINENO: checking for $ac_word" >&5
5147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5148 if test "${ac_cv_prog_STRIP+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5151 if test -n "$STRIP"; then
5152 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 STRIP=$ac_cv_prog_STRIP
5171 if test -n "$STRIP"; then
5172 echo "$as_me:$LINENO: result: $STRIP" >&5
5173 echo "${ECHO_T}$STRIP" >&6
5175 echo "$as_me:$LINENO: result: no" >&5
5176 echo "${ECHO_T}no" >&6
5180 if test -z "$ac_cv_prog_STRIP"; then
5182 # Extract the first word of "strip", so it can be a program name with args.
5183 set dummy strip; ac_word=$2
5184 echo "$as_me:$LINENO: checking for $ac_word" >&5
5185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5186 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 if test -n "$ac_ct_STRIP"; then
5190 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5199 ac_cv_prog_ac_ct_STRIP="strip"
5200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5209 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5210 if test -n "$ac_ct_STRIP"; then
5211 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5212 echo "${ECHO_T}$ac_ct_STRIP" >&6
5214 echo "$as_me:$LINENO: result: no" >&5
5215 echo "${ECHO_T}no" >&6
5220 STRIP="$ac_cv_prog_STRIP"
5227 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5228 if test "${enable_libtool_lock+set}" = set; then
5229 enableval="$enable_libtool_lock"
5232 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5234 # Some flags need to be propagated to the compiler or linker for good
5238 # Find out which ABI we are using.
5239 echo '#line 5239 "configure"' > conftest.$ac_ext
5240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5241 (eval $ac_compile) 2>&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; then
5245 case `/usr/bin/file conftest.$ac_objext` in
5261 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5262 SAVE_CFLAGS="$CFLAGS"
5263 CFLAGS="$CFLAGS -belf"
5264 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5265 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5266 if test "${lt_cv_cc_needs_belf+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 ac_cpp='$CPP $CPPFLAGS'
5273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5277 cat >conftest.$ac_ext <<_ACEOF
5278 #line $LINENO "configure"
5279 #include "confdefs.h"
5281 #ifdef F77_DUMMY_MAIN
5285 int F77_DUMMY_MAIN() { return 1; }
5295 rm -f conftest.$ac_objext conftest$ac_exeext
5296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5297 (eval $ac_link) 2>&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } &&
5301 { ac_try='test -s conftest$ac_exeext'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; }; then
5307 lt_cv_cc_needs_belf=yes
5309 echo "$as_me: failed program was:" >&5
5310 cat conftest.$ac_ext >&5
5311 lt_cv_cc_needs_belf=no
5313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5315 ac_cpp='$CPP $CPPFLAGS'
5316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5321 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5322 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5323 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5324 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5325 CFLAGS="$SAVE_CFLAGS"
5332 # Sed substitution that helps us do robust quoting. It backslashifies
5333 # metacharacters that are still active within double-quoted strings.
5334 Xsed='sed -e s/^X//'
5335 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5337 # Same as above, but do not quote variable references.
5338 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5340 # Sed substitution to delay expansion of an escaped shell variable in a
5341 # double_quote_subst'ed string.
5342 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5348 default_ofile=libtool
5349 can_build_shared=yes
5351 # All known linkers require a `.a' archive for static linking (except M$VC,
5352 # which needs '.lib').
5354 ltmain="$ac_aux_dir/ltmain.sh"
5355 ofile="$default_ofile"
5356 with_gnu_ld="$lt_cv_prog_gnu_ld"
5357 need_locks="$enable_libtool_lock"
5360 old_CFLAGS="$CFLAGS"
5362 # Set sane defaults for various variables
5363 test -z "$AR" && AR=ar
5364 test -z "$AR_FLAGS" && AR_FLAGS=cru
5365 test -z "$AS" && AS=as
5366 test -z "$CC" && CC=cc
5367 test -z "$DLLTOOL" && DLLTOOL=dlltool
5368 test -z "$LD" && LD=ld
5369 test -z "$LN_S" && LN_S="ln -s"
5370 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5371 test -z "$NM" && NM=nm
5372 test -z "$OBJDUMP" && OBJDUMP=objdump
5373 test -z "$RANLIB" && RANLIB=:
5374 test -z "$STRIP" && STRIP=:
5375 test -z "$ac_objext" && ac_objext=o
5377 if test x"$host" != x"$build"; then
5378 ac_tool_prefix=${host_alias}-
5383 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5386 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5391 # AIX sometimes has problems with the GCC collect2 program. For some
5392 # reason, if we set the COLLECT_NAMES environment variable, the problems
5393 # vanish in a puff of smoke.
5394 if test "X${COLLECT_NAMES+set}" != Xset; then
5396 export COLLECT_NAMES
5401 # Determine commands to create old-style static archives.
5402 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5403 old_postinstall_cmds='chmod 644 $oldlib'
5404 old_postuninstall_cmds=
5406 if test -n "$RANLIB"; then
5409 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5412 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5415 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5418 # Allow CC to be a program name with arguments.
5422 echo "$as_me:$LINENO: checking for objdir" >&5
5423 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5424 rm -f .libs 2>/dev/null
5425 mkdir .libs 2>/dev/null
5426 if test -d .libs; then
5429 # MS-DOS does not allow filenames that begin with a dot.
5432 rmdir .libs 2>/dev/null
5433 echo "$as_me:$LINENO: result: $objdir" >&5
5434 echo "${ECHO_T}$objdir" >&6
5438 # Check whether --with-pic or --without-pic was given.
5439 if test "${with_pic+set}" = set; then
5445 test -z "$pic_mode" && pic_mode=default
5447 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5448 # in isolation, and that seeing it set (from the cache) indicates that
5449 # the associated values are set (in the cache) correctly too.
5450 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5451 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5452 if test "${lt_cv_prog_cc_pic+set}" = set; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 lt_cv_prog_cc_shlib=
5458 lt_cv_prog_cc_static=
5459 lt_cv_prog_cc_no_builtin=
5460 lt_cv_prog_cc_can_build_shared=$can_build_shared
5462 if test "$GCC" = yes; then
5463 lt_cv_prog_cc_wl='-Wl,'
5464 lt_cv_prog_cc_static='-static'
5468 # Below there is a dirty hack to force normal static linking with -ldl
5469 # The problem is because libdl dynamically linked with both libc and
5470 # libC (AIX C++ library), which obviously doesn't included in libraries
5471 # list by gcc. This cause undefined symbols with -static flags.
5472 # This hack allows C programs to be linked with "-static -ldl", but
5473 # not sure about C++ programs.
5474 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5477 # FIXME: we need at least 68020 code to build shared libraries, but
5478 # adding the `-m68020' flag to GCC prevents building anything better,
5480 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5482 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5483 # PIC is the default for these OSes.
5485 darwin* | rhapsody*)
5486 # PIC is the default on this platform
5487 # Common symbols not allowed in MH_DYLIB files
5488 lt_cv_prog_cc_pic='-fno-common'
5490 cygwin* | mingw* | pw32* | os2*)
5491 # This hack is so that the source file can tell whether it is being
5492 # built for inclusion in a dll (and should export symbols for example).
5493 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5496 if test -d /usr/nec; then
5497 lt_cv_prog_cc_pic=-Kconform_pic
5501 lt_cv_prog_cc_pic='-fPIC'
5505 # PORTME Check for PIC flags for the system compiler.
5507 aix3* | aix4* | aix5*)
5508 lt_cv_prog_cc_wl='-Wl,'
5509 # All AIX code is PIC.
5510 if test "$host_cpu" = ia64; then
5511 # AIX 5 now supports IA64 processor
5512 lt_cv_prog_cc_static='-Bstatic'
5514 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5518 hpux9* | hpux10* | hpux11*)
5519 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5520 lt_cv_prog_cc_wl='-Wl,'
5521 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5522 lt_cv_prog_cc_pic='+Z'
5526 lt_cv_prog_cc_wl='-Wl,'
5527 lt_cv_prog_cc_static='-non_shared'
5528 # PIC (with -KPIC) is the default.
5531 cygwin* | mingw* | pw32* | os2*)
5532 # This hack is so that the source file can tell whether it is being
5533 # built for inclusion in a dll (and should export symbols for example).
5534 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5538 lt_cv_prog_cc_pic='-KPIC'
5539 lt_cv_prog_cc_static='-Bstatic'
5542 osf3* | osf4* | osf5*)
5543 # All OSF/1 code is PIC.
5544 lt_cv_prog_cc_wl='-Wl,'
5545 lt_cv_prog_cc_static='-non_shared'
5549 lt_cv_prog_cc_pic='-Kpic'
5550 lt_cv_prog_cc_static='-dn'
5551 lt_cv_prog_cc_shlib='-belf'
5555 lt_cv_prog_cc_pic='-KPIC'
5556 lt_cv_prog_cc_static='-Bstatic'
5557 lt_cv_prog_cc_wl='-Wl,'
5561 lt_cv_prog_cc_pic='-PIC'
5562 lt_cv_prog_cc_static='-Bstatic'
5563 lt_cv_prog_cc_wl='-Qoption ld '
5566 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5567 lt_cv_prog_cc_pic='-KPIC'
5568 lt_cv_prog_cc_static='-Bstatic'
5569 if test "x$host_vendor" = xsni; then
5570 lt_cv_prog_cc_wl='-LD'
5572 lt_cv_prog_cc_wl='-Wl,'
5577 lt_cv_prog_cc_pic='-pic'
5578 lt_cv_prog_cc_static='-Bstatic'
5582 if test -d /usr/nec ;then
5583 lt_cv_prog_cc_pic='-Kconform_pic'
5584 lt_cv_prog_cc_static='-Bstatic'
5589 lt_cv_prog_cc_can_build_shared=no
5596 if test -z "$lt_cv_prog_cc_pic"; then
5597 echo "$as_me:$LINENO: result: none" >&5
5598 echo "${ECHO_T}none" >&6
5600 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5601 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5603 # Check to make sure the pic_flag actually works.
5604 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5605 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5606 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 save_CFLAGS="$CFLAGS"
5610 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5611 cat >conftest.$ac_ext <<_ACEOF
5612 #line $LINENO "configure"
5613 #include "confdefs.h"
5615 #ifdef F77_DUMMY_MAIN
5619 int F77_DUMMY_MAIN() { return 1; }
5629 rm -f conftest.$ac_objext
5630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5631 (eval $ac_compile) 2>&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } &&
5635 { ac_try='test -s conftest.$ac_objext'
5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; }; then
5642 hpux9* | hpux10* | hpux11*)
5643 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5644 # they create non-PIC objects. So, if there were any warnings, we
5645 # assume that PIC is not supported.
5646 if test -s conftest.err; then
5647 lt_cv_prog_cc_pic_works=no
5649 lt_cv_prog_cc_pic_works=yes
5653 lt_cv_prog_cc_pic_works=yes
5658 echo "$as_me: failed program was:" >&5
5659 cat conftest.$ac_ext >&5
5660 lt_cv_prog_cc_pic_works=no
5663 rm -f conftest.$ac_objext conftest.$ac_ext
5664 CFLAGS="$save_CFLAGS"
5669 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5671 lt_cv_prog_cc_can_build_shared=no
5673 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5676 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5677 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5680 # Check for any special shared library compilation flags.
5681 if test -n "$lt_cv_prog_cc_shlib"; then
5682 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5683 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5684 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5686 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5687 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5688 lt_cv_prog_cc_can_build_shared=no
5692 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5693 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5694 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 lt_cv_prog_cc_static_works=no
5698 save_LDFLAGS="$LDFLAGS"
5699 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5700 cat >conftest.$ac_ext <<_ACEOF
5701 #line $LINENO "configure"
5702 #include "confdefs.h"
5704 #ifdef F77_DUMMY_MAIN
5708 int F77_DUMMY_MAIN() { return 1; }
5718 rm -f conftest.$ac_objext conftest$ac_exeext
5719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5720 (eval $ac_link) 2>&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } &&
5724 { ac_try='test -s conftest$ac_exeext'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; }; then
5730 lt_cv_prog_cc_static_works=yes
5732 echo "$as_me: failed program was:" >&5
5733 cat conftest.$ac_ext >&5
5735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5736 LDFLAGS="$save_LDFLAGS"
5741 # Belt *and* braces to stop my trousers falling down:
5742 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5743 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5744 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5746 pic_flag="$lt_cv_prog_cc_pic"
5747 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5748 wl="$lt_cv_prog_cc_wl"
5749 link_static_flag="$lt_cv_prog_cc_static"
5750 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5751 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5754 # Check to see if options -o and -c are simultaneously supported by compiler
5755 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5756 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5757 if test "${lt_cv_compiler_c_o+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 $rm -r conftest 2>/dev/null
5764 echo "int some_variable = 0;" > conftest.$ac_ext
5766 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5767 # that will create temporary files in the current directory regardless of
5768 # the output directory. Thus, making CWD read-only will cause this test
5769 # to fail, enabling locking or at least warning the user not to do parallel
5772 save_CFLAGS="$CFLAGS"
5773 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5775 if { (eval echo configure:5775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5776 # The compiler can only warn and ignore the option if not recognized
5777 # So say no if there are warnings
5778 if test -s out/conftest.err; then
5779 lt_cv_compiler_c_o=no
5781 lt_cv_compiler_c_o=yes
5784 # Append any errors to the config.log.
5785 cat out/conftest.err 1>&5
5786 lt_cv_compiler_c_o=no
5788 CFLAGS="$save_CFLAGS"
5794 $rm -r conftest 2>/dev/null
5798 compiler_c_o=$lt_cv_compiler_c_o
5799 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5800 echo "${ECHO_T}$compiler_c_o" >&6
5802 if test x"$compiler_c_o" = x"yes"; then
5803 # Check to see if we can write to a .lo
5804 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5805 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5806 if test "${lt_cv_compiler_o_lo+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 lt_cv_compiler_o_lo=no
5811 save_CFLAGS="$CFLAGS"
5812 CFLAGS="$CFLAGS -c -o conftest.lo"
5813 save_objext="$ac_objext"
5815 cat >conftest.$ac_ext <<_ACEOF
5816 #line $LINENO "configure"
5817 #include "confdefs.h"
5819 #ifdef F77_DUMMY_MAIN
5823 int F77_DUMMY_MAIN() { return 1; }
5828 int some_variable = 0;
5833 rm -f conftest.$ac_objext
5834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5835 (eval $ac_compile) 2>&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } &&
5839 { ac_try='test -s conftest.$ac_objext'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; }; then
5845 # The compiler can only warn and ignore the option if not recognized
5846 # So say no if there are warnings
5847 if test -s conftest.err; then
5848 lt_cv_compiler_o_lo=no
5850 lt_cv_compiler_o_lo=yes
5854 echo "$as_me: failed program was:" >&5
5855 cat conftest.$ac_ext >&5
5857 rm -f conftest.$ac_objext conftest.$ac_ext
5858 ac_objext="$save_objext"
5859 CFLAGS="$save_CFLAGS"
5863 compiler_o_lo=$lt_cv_compiler_o_lo
5864 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5865 echo "${ECHO_T}$compiler_o_lo" >&6
5870 # Check to see if we can do hard links to lock some files if needed
5871 hard_links="nottested"
5872 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5873 # do not overwrite the value of need_locks provided by the user
5874 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5875 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5880 ln conftest.a conftest.b 2>&5 || hard_links=no
5881 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5882 echo "$as_me:$LINENO: result: $hard_links" >&5
5883 echo "${ECHO_T}$hard_links" >&6
5884 if test "$hard_links" = no; then
5885 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5886 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5893 if test "$GCC" = yes; then
5894 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5895 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5896 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5897 echo "int some_variable = 0;" > conftest.$ac_ext
5898 save_CFLAGS="$CFLAGS"
5899 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5900 compiler_rtti_exceptions=no
5901 cat >conftest.$ac_ext <<_ACEOF
5902 #line $LINENO "configure"
5903 #include "confdefs.h"
5905 #ifdef F77_DUMMY_MAIN
5909 int F77_DUMMY_MAIN() { return 1; }
5914 int some_variable = 0;
5919 rm -f conftest.$ac_objext
5920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5921 (eval $ac_compile) 2>&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } &&
5925 { ac_try='test -s conftest.$ac_objext'
5926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; }; then
5931 # The compiler can only warn and ignore the option if not recognized
5932 # So say no if there are warnings
5933 if test -s conftest.err; then
5934 compiler_rtti_exceptions=no
5936 compiler_rtti_exceptions=yes
5940 echo "$as_me: failed program was:" >&5
5941 cat conftest.$ac_ext >&5
5943 rm -f conftest.$ac_objext conftest.$ac_ext
5944 CFLAGS="$save_CFLAGS"
5945 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5946 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5948 if test "$compiler_rtti_exceptions" = "yes"; then
5949 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5951 no_builtin_flag=' -fno-builtin'
5955 # See if the linker supports building shared libraries.
5956 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5957 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5959 allow_undefined_flag=
5961 need_lib_prefix=unknown
5962 need_version=unknown
5963 # when you set need_version to no, make sure it does not cause -set_version
5964 # flags to be left without arguments
5966 archive_expsym_cmds=
5967 old_archive_from_new_cmds=
5968 old_archive_from_expsyms_cmds=
5969 export_dynamic_flag_spec=
5970 whole_archive_flag_spec=
5971 thread_safe_flag_spec=
5972 hardcode_into_libs=no
5973 hardcode_libdir_flag_spec=
5974 hardcode_libdir_separator=
5977 hardcode_shlibpath_var=unsupported
5979 link_all_deplibs=unknown
5980 always_export_symbols=no
5981 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5982 # include_expsyms should be a list of space-separated symbols to be *always*
5983 # included in the symbol list
5985 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5986 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5987 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5988 # as well as any symbol that contains `d'.
5989 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5990 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5991 # platforms (ab)use it in PIC code, but their linkers get confused if
5992 # the symbol is explicitly referenced. Since portable code cannot
5993 # rely on this symbol name, it's probably fine to never include it in
5994 # preloaded symbol tables.
5995 extract_expsyms_cmds=
5998 cygwin* | mingw* | pw32*)
5999 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6000 # When not using gcc, we currently assume that we are using
6001 # Microsoft Visual C++.
6002 if test "$GCC" != yes; then
6012 if test "$with_gnu_ld" = yes; then
6013 # If archive_cmds runs LD, not CC, wlarc should be empty
6016 # See if GNU ld supports shared libraries.
6018 aix3* | aix4* | aix5*)
6019 # On AIX, the GNU linker is very broken
6020 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6024 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6025 *** to be unable to reliably create shared libraries on AIX.
6026 *** Therefore, libtool is disabling shared libraries support. If you
6027 *** really care for shared libraries, you may want to modify your PATH
6028 *** so that a non-GNU linker is found, and then restart.
6034 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6035 hardcode_libdir_flag_spec='-L$libdir'
6036 hardcode_minus_L=yes
6038 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6039 # that the semantics of dynamic libraries on AmigaOS, at least up
6040 # to version 4, is to share data among multiple programs linked
6041 # with the same dynamic library. Since this doesn't match the
6042 # behavior of shared libraries on other platforms, we can use
6048 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6049 allow_undefined_flag=unsupported
6050 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6051 # support --undefined. This deserves some investigation. FIXME
6052 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6058 cygwin* | mingw* | pw32*)
6059 # hardcode_libdir_flag_spec is actually meaningless, as there is
6060 # no search path for DLLs.
6061 hardcode_libdir_flag_spec='-L$libdir'
6062 allow_undefined_flag=unsupported
6063 always_export_symbols=yes
6065 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6066 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6067 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6068 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6069 else $CC -o impgen impgen.c ; fi)~
6070 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6072 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6074 # cygwin and mingw dlls have different entry points and sets of symbols
6076 # FIXME: what about values for MSVC?
6077 dll_entry=__cygwin_dll_entry@12
6078 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6082 dll_entry=_DllMainCRTStartup@12
6083 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6087 # mingw and cygwin differ, and it's simplest to just exclude the union
6088 # of the two symbol sets.
6089 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6091 # recent cygwin and mingw systems supply a stub DllMain which the user
6092 # can override, but on older systems we have to supply one (in ltdll.c)
6093 if test "x$lt_cv_need_dllmain" = "xyes"; then
6094 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6095 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6096 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6102 # Extract the symbol export list from an `--export-all' def file,
6103 # then regenerate the def file from the symbol export list, so that
6104 # the compiled dll only exports the symbol export list.
6105 # Be careful not to strip the DATA tag left be newer dlltools.
6106 export_symbols_cmds="$ltdll_cmds"'
6107 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6108 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6110 # If the export-symbols file already is a .def file (1st line
6111 # is EXPORTS), use it as is.
6112 # If DATA tags from a recent dlltool are present, honour them!
6113 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
6114 cp $export_symbols $output_objdir/$soname-def;
6116 echo EXPORTS > $output_objdir/$soname-def;
6118 cat $export_symbols | while read symbol; do
6121 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6122 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6124 _lt_hint=`expr 1 + \$_lt_hint`;
6128 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6129 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6130 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6131 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6132 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6136 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6137 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6140 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6141 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6146 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6150 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6151 *** create shared libraries on Solaris systems. Therefore, libtool
6152 *** is disabling shared libraries support. We urge you to upgrade GNU
6153 *** binutils to release 2.9.1 or newer. Another option is to modify
6154 *** your PATH or compiler configuration so that the native linker is
6155 *** used, and then restart.
6158 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6159 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6160 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6167 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6170 hardcode_shlibpath_var=no
6174 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6175 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6176 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6183 if test "$ld_shlibs" = yes; then
6184 runpath_var=LD_RUN_PATH
6185 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6186 export_dynamic_flag_spec='${wl}--export-dynamic'
6188 cygwin* | mingw* | pw32*)
6189 # dlltool doesn't understand --whole-archive et. al.
6190 whole_archive_flag_spec=
6193 # ancient GNU ld didn't support --whole-archive et. al.
6194 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6195 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6197 whole_archive_flag_spec=
6203 # PORTME fill in a description of your system's linker (not GNU ld)
6206 allow_undefined_flag=unsupported
6207 always_export_symbols=yes
6208 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6209 # Note: this linker hardcodes the directories in LIBPATH if there
6210 # are no directories specified by -L.
6211 hardcode_minus_L=yes
6212 if test "$GCC" = yes && test -z "$link_static_flag"; then
6213 # Neither direct hardcoding nor static linking is supported with a
6215 hardcode_direct=unsupported
6220 if test "$host_cpu" = ia64; then
6221 # On IA64, the linker does run time linking by default, so we don't
6222 # have to do anything special.
6223 aix_use_runtimelinking=no
6224 exp_sym_flag='-Bexport'
6227 aix_use_runtimelinking=no
6229 # Test if we are trying to use run time linking or normal
6230 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6231 # need to do runtime linking.
6232 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6233 for ld_flag in $LDFLAGS; do
6234 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6235 aix_use_runtimelinking=yes
6241 exp_sym_flag='-bexport'
6242 no_entry_flag='-bnoentry'
6245 # When large executables or shared objects are built, AIX ld can
6246 # have problems creating the table of contents. If linking a library
6247 # or program results in "error TOC overflow" add -mminimal-toc to
6248 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6249 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6253 hardcode_libdir_separator=':'
6254 if test "$GCC" = yes; then
6255 case $host_os in aix4.[012]|aix4.[012].*)
6256 collect2name=`${CC} -print-prog-name=collect2`
6257 if test -f "$collect2name" && \
6258 strings "$collect2name" | grep resolve_lib_name >/dev/null
6260 # We have reworked collect2
6263 # We have old collect2
6264 hardcode_direct=unsupported
6265 # It fails to find uninstalled libraries when the uninstalled
6266 # path is not listed in the libpath. Setting hardcode_minus_L
6267 # to unsupported forces relinking
6268 hardcode_minus_L=yes
6269 hardcode_libdir_flag_spec='-L$libdir'
6270 hardcode_libdir_separator=
6274 shared_flag='-shared'
6277 if test "$host_cpu" = ia64; then
6278 shared_flag='${wl}-G'
6280 if test "$aix_use_runtimelinking" = yes; then
6281 shared_flag='${wl}-G'
6283 shared_flag='${wl}-bM:SRE'
6288 # It seems that -bexpall can do strange things, so it is better to
6289 # generate a list of symbols to export.
6290 always_export_symbols=yes
6291 if test "$aix_use_runtimelinking" = yes; then
6292 # Warning - without using the other runtime loading flags (-brtl),
6293 # -berok will link without error, but may produce a broken library.
6294 allow_undefined_flag='-berok'
6295 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6296 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6298 if test "$host_cpu" = ia64; then
6299 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6300 allow_undefined_flag="-z nodefs"
6301 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6303 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6304 # Warning - without using the other run time loading flags,
6305 # -berok will link without error, but may produce a broken library.
6306 allow_undefined_flag='${wl}-berok'
6307 # This is a bit strange, but is similar to how AIX traditionally builds
6308 # it's shared libraries.
6309 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
6315 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6316 hardcode_libdir_flag_spec='-L$libdir'
6317 hardcode_minus_L=yes
6318 # see comment about different semantics on the GNU ld section
6322 cygwin* | mingw* | pw32*)
6323 # When not using gcc, we currently assume that we are using
6324 # Microsoft Visual C++.
6325 # hardcode_libdir_flag_spec is actually meaningless, as there is
6326 # no search path for DLLs.
6327 hardcode_libdir_flag_spec=' '
6328 allow_undefined_flag=unsupported
6329 # Tell ltmain to make .lib files, not .a files.
6331 # FIXME: Setting linknames here is a bad hack.
6332 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6333 # The linker will automatically build a .lib file if we build a DLL.
6334 old_archive_from_new_cmds='true'
6335 # FIXME: Should let the user specify the lib program.
6336 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6337 fix_srcfile_path='`cygpath -w "$srcfile"`'
6340 darwin* | rhapsody*)
6342 rhapsody* | darwin1.[012])
6343 allow_undefined_flag='-undefined suppress'
6346 allow_undefined_flag='-flat_namespace -undefined suppress'
6349 # FIXME: Relying on posixy $() will cause problems for
6350 # cross-compilation, but unfortunately the echo tests do not
6351 # yet detect zsh echo's removal of \ escapes.
6352 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
6353 # We need to add '_' to the symbols in $export_symbols first
6354 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6356 hardcode_shlibpath_var=no
6357 whole_archive_flag_spec='-all_load $convenience'
6364 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6365 # support. Future versions do this automatically, but an explicit c++rt0.o
6366 # does not break anything, and helps significantly (at the cost of a little
6369 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6370 hardcode_libdir_flag_spec='-R$libdir'
6372 hardcode_shlibpath_var=no
6375 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6377 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6379 hardcode_minus_L=yes
6380 hardcode_shlibpath_var=no
6383 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6385 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6386 hardcode_libdir_flag_spec='-R$libdir'
6388 hardcode_shlibpath_var=no
6391 hpux9* | hpux10* | hpux11*)
6393 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
6394 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6396 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6397 hardcode_libdir_separator=:
6399 hardcode_minus_L=yes # Not in the search PATH, but as the default
6400 # location of the library.
6401 export_dynamic_flag_spec='${wl}-E'
6405 if test "$GCC" = yes; then
6406 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6408 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6410 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6411 hardcode_libdir_separator=:
6412 link_all_deplibs=yes
6416 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6417 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6419 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6421 hardcode_libdir_flag_spec='-R$libdir'
6423 hardcode_shlibpath_var=no
6427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6429 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6430 hardcode_libdir_separator=:
6431 hardcode_shlibpath_var=no
6436 hardcode_shlibpath_var=no
6437 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6438 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6439 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6440 export_dynamic_flag_spec='${wl}-E'
6443 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6444 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6445 hardcode_libdir_flag_spec='-R$libdir'
6448 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6449 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6456 hardcode_libdir_flag_spec='-L$libdir'
6457 hardcode_minus_L=yes
6458 allow_undefined_flag=unsupported
6459 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6460 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6464 if test "$GCC" = yes; then
6465 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6466 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6468 allow_undefined_flag=' -expect_unresolved \*'
6469 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6471 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6472 hardcode_libdir_separator=:
6475 osf4* | osf5*) # as osf3* with the addition of -msym flag
6476 if test "$GCC" = yes; then
6477 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6478 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6479 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6481 allow_undefined_flag=' -expect_unresolved \*'
6482 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6483 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6484 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6486 #Both c and cxx compiler support -rpath directly
6487 hardcode_libdir_flag_spec='-rpath $libdir'
6489 hardcode_libdir_separator=:
6493 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6494 hardcode_shlibpath_var=no
6495 runpath_var=LD_RUN_PATH
6496 hardcode_runpath_var=yes
6497 export_dynamic_flag_spec='${wl}-Bexport'
6501 # gcc --version < 3.0 without binutils cannot create self contained
6502 # shared libraries reliably, requiring libgcc.a to resolve some of
6503 # the object symbols generated in some cases. Libraries that use
6504 # assert need libgcc.a to resolve __eprintf, for example. Linking
6505 # a copy of libgcc.a into every shared library to guarantee resolving
6506 # such symbols causes other problems: According to Tim Van Holder
6507 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6508 # (to the application) exception stack for one thing.
6509 no_undefined_flag=' -z defs'
6510 if test "$GCC" = yes; then
6511 case `$CC --version 2>/dev/null` in
6515 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6516 *** create self contained shared libraries on Solaris systems, without
6517 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6518 *** -no-undefined support, which will at least allow you to build shared
6519 *** libraries. However, you may find that when you link such libraries
6520 *** into an application without using GCC, you have to manually add
6521 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6522 *** upgrade to a newer version of GCC. Another option is to rebuild your
6523 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6530 # $CC -shared without GNU ld will not create a library from C++
6531 # object files and a static libstdc++, better avoid it by now
6532 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6533 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6534 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6535 hardcode_libdir_flag_spec='-R$libdir'
6536 hardcode_shlibpath_var=no
6538 solaris2.[0-5] | solaris2.[0-5].*) ;;
6539 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6540 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6542 link_all_deplibs=yes
6546 if test "x$host_vendor" = xsequent; then
6547 # Use $CC to link under sequent, because it throws in some extra .o
6548 # files that make .init and .fini sections work.
6549 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6551 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6553 hardcode_libdir_flag_spec='-L$libdir'
6555 hardcode_minus_L=yes
6556 hardcode_shlibpath_var=no
6560 if test "x$host_vendor" = xsno; then
6561 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
6562 hardcode_direct=yes # is this really true???
6564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6565 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6567 runpath_var='LD_RUN_PATH'
6568 hardcode_shlibpath_var=no
6572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6573 hardcode_shlibpath_var=no
6574 export_dynamic_flag_spec='-Bexport'
6578 no_undefined_flag=' -z text'
6579 # $CC -shared without GNU ld will not create a library from C++
6580 # object files and a static libstdc++, better avoid it by now
6581 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6582 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6583 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6584 hardcode_libdir_flag_spec=
6585 hardcode_shlibpath_var=no
6586 runpath_var='LD_RUN_PATH'
6590 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6591 hardcode_libdir_flag_spec='-L$libdir'
6592 hardcode_shlibpath_var=no
6596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6597 hardcode_libdir_flag_spec='-L$libdir'
6598 hardcode_shlibpath_var=no
6602 if test -d /usr/nec; then
6603 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6604 hardcode_shlibpath_var=no
6605 runpath_var=LD_RUN_PATH
6606 hardcode_runpath_var=yes
6612 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6615 hardcode_shlibpath_var=no
6616 hardcode_runpath_var=yes
6617 runpath_var=LD_RUN_PATH
6620 sysv5uw7* | unixware7*)
6621 no_undefined_flag='${wl}-z ${wl}text'
6622 if test "$GCC" = yes; then
6623 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6625 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6627 runpath_var='LD_RUN_PATH'
6628 hardcode_shlibpath_var=no
6636 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6637 echo "${ECHO_T}$ld_shlibs" >&6
6638 test "$ld_shlibs" = no && can_build_shared=no
6640 # Check hardcoding attributes.
6641 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6642 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6644 if test -n "$hardcode_libdir_flag_spec" || \
6645 test -n "$runpath_var"; then
6647 # We can hardcode non-existant directories.
6648 if test "$hardcode_direct" != no &&
6649 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6650 # have to relink, otherwise we might link with an installed library
6651 # when we should be linking with a yet-to-be-installed one
6652 ## test "$hardcode_shlibpath_var" != no &&
6653 test "$hardcode_minus_L" != no; then
6654 # Linking always hardcodes the temporary library directory.
6655 hardcode_action=relink
6657 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6658 hardcode_action=immediate
6661 # We cannot hardcode anything, or else we can only hardcode existing
6663 hardcode_action=unsupported
6665 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6666 echo "${ECHO_T}$hardcode_action" >&6
6670 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6671 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6672 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6673 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6674 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6675 echo "$as_me:$LINENO: result: yes" >&5
6676 echo "${ECHO_T}yes" >&6
6678 echo "$as_me:$LINENO: result: no" >&5
6679 echo "${ECHO_T}no" >&6
6682 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6683 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6685 # PORTME Fill in your ld.so characteristics
6686 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6687 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6689 libname_spec='lib$name'
6696 shlibpath_overrides_runpath=unknown
6698 dynamic_linker="$host_os ld.so"
6699 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6700 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6705 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6706 shlibpath_var=LIBPATH
6708 # AIX has no versioning support, so we append a major version to the name.
6709 soname_spec='${libname}${release}.so$major'
6714 if test "$host_cpu" = ia64; then
6715 # AIX 5 supports IA64
6716 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6717 shlibpath_var=LD_LIBRARY_PATH
6719 # With GCC up to 2.95.x, collect2 would create an import file
6720 # for dependence libraries. The import file would start with
6721 # the line `#! .'. This would cause the generated library to
6722 # depend on `.', always an invalid library. This was fixed in
6723 # development snapshots of GCC prior to 3.0.
6725 aix4 | aix4.[01] | aix4.[01].*)
6726 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6728 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6735 # AIX (on Power*) has no versioning support, so currently we can
6736 # not hardcode correct soname into executable. Probably we can
6737 # add versioning support to collect2, so additional links can
6738 # be useful in future.
6739 if test "$aix_use_runtimelinking" = yes; then
6740 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6741 # instead of lib<name>.a to let people know that these are not
6742 # typical AIX shared libraries.
6743 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6745 # We preserve .a as extension for shared libraries through AIX4.2
6746 # and later when we are not doing run time linking.
6747 library_names_spec='${libname}${release}.a $libname.a'
6748 soname_spec='${libname}${release}.so$major'
6750 shlibpath_var=LIBPATH
6755 library_names_spec='$libname.ixlibrary $libname.a'
6756 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6757 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6761 library_names_spec='${libname}.so'
6762 dynamic_linker="$host_os ld.so"
6763 shlibpath_var=LIBRARY_PATH
6769 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6770 soname_spec='${libname}${release}.so$major'
6771 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6772 shlibpath_var=LD_LIBRARY_PATH
6773 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6774 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6775 export_dynamic_flag_spec=-rdynamic
6776 # the default ld.so.conf also contains /usr/contrib/lib and
6777 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6778 # libtool to hard-code these into programs
6781 cygwin* | mingw* | pw32*)
6782 version_type=windows
6785 case $GCC,$host_os in
6787 library_names_spec='$libname.dll.a'
6788 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6789 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6790 dldir=$destdir/`dirname \$dlpath`~
6791 test -d \$dldir || mkdir -p \$dldir~
6792 $install_prog .libs/$dlname \$dldir/$dlname'
6793 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6794 dlpath=$dir/\$dldll~
6798 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6799 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6802 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6805 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6808 dynamic_linker='Win32 ld.exe'
6809 # FIXME: first we should search . and the directory the executable is in
6813 darwin* | rhapsody*)
6814 dynamic_linker="$host_os dyld"
6818 # FIXME: Relying on posixy $() will cause problems for
6819 # cross-compilation, but unfortunately the echo tests do not
6820 # yet detect zsh echo's removal of \ escapes.
6821 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6822 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6823 shlibpath_overrides_runpath=yes
6824 shlibpath_var=DYLD_LIBRARY_PATH
6832 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6833 version_type=freebsd-$objformat
6834 case $version_type in
6836 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6841 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6845 shlibpath_var=LD_LIBRARY_PATH
6848 shlibpath_overrides_runpath=yes
6851 shlibpath_overrides_runpath=no
6852 hardcode_into_libs=yes
6861 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6862 soname_spec='${libname}${release}.so$major'
6863 shlibpath_var=LD_LIBRARY_PATH
6864 hardcode_into_libs=yes
6867 hpux9* | hpux10* | hpux11*)
6868 # Give a soname corresponding to the major version so that dld.sl refuses to
6869 # link against other versions.
6870 dynamic_linker="$host_os dld.sl"
6874 shlibpath_var=SHLIB_PATH
6875 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6876 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6877 soname_spec='${libname}${release}.sl$major'
6878 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6879 postinstall_cmds='chmod 555 $lib'
6886 soname_spec='${libname}${release}.so$major'
6887 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6893 case $LD in # libtool.m4 will add one of these switches to LD
6894 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6895 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6896 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6897 *) libsuff= shlibsuff= libmagic=never-match;;
6901 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6902 shlibpath_overrides_runpath=no
6903 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6904 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6907 # No shared lib support for Linux oldld, aout, or coff.
6908 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6912 # This must be Linux ELF.
6917 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6918 soname_spec='${libname}${release}.so$major'
6919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6920 shlibpath_var=LD_LIBRARY_PATH
6921 shlibpath_overrides_runpath=no
6922 # This implies no fast_install, which is unacceptable.
6923 # Some rework will be needed to allow for fast_install
6924 # before this can be enabled.
6925 hardcode_into_libs=yes
6927 # We used to test for /lib/ld.so.1 and disable shared libraries on
6928 # powerpc, because MkLinux only supported shared libraries with the
6929 # GNU dynamic linker. Since this was broken with cross compilers,
6930 # most powerpc-linux boxes support dynamic linking these days and
6931 # people can always --disable-shared, the test was removed, and we
6932 # assume the GNU/Linux dynamic linker is in use.
6933 dynamic_linker='GNU/Linux ld.so'
6940 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6941 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6943 dynamic_linker='NetBSD (a.out) ld.so'
6945 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6946 soname_spec='${libname}${release}.so$major'
6947 dynamic_linker='NetBSD ld.elf_so'
6949 shlibpath_var=LD_LIBRARY_PATH
6950 shlibpath_overrides_runpath=yes
6951 hardcode_into_libs=yes
6956 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6957 shlibpath_var=LD_LIBRARY_PATH
6958 shlibpath_overrides_runpath=yes
6965 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6967 openbsd2.[89] | openbsd2.[89].*)
6968 shlibpath_overrides_runpath=no
6971 shlibpath_overrides_runpath=yes
6975 shlibpath_overrides_runpath=yes
6977 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6979 shlibpath_var=LD_LIBRARY_PATH
6983 libname_spec='$name'
6985 library_names_spec='$libname.dll $libname.a'
6986 dynamic_linker='OS/2 ld.exe'
6987 shlibpath_var=LIBPATH
6990 osf3* | osf4* | osf5*)
6993 soname_spec='${libname}${release}.so'
6994 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6995 shlibpath_var=LD_LIBRARY_PATH
6996 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6997 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7002 soname_spec='${libname}${release}.so$major'
7003 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7004 shlibpath_var=LD_LIBRARY_PATH
7011 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7012 soname_spec='${libname}${release}.so$major'
7013 shlibpath_var=LD_LIBRARY_PATH
7014 shlibpath_overrides_runpath=yes
7015 hardcode_into_libs=yes
7016 # ldd complains unless libraries are executable
7017 postinstall_cmds='chmod +x $lib'
7022 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7023 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7024 shlibpath_var=LD_LIBRARY_PATH
7025 shlibpath_overrides_runpath=yes
7026 if test "$with_gnu_ld" = yes; then
7032 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7034 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7035 soname_spec='${libname}${release}.so$major'
7036 shlibpath_var=LD_LIBRARY_PATH
7037 case $host_vendor in
7039 shlibpath_overrides_runpath=no
7044 shlibpath_overrides_runpath=no
7045 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7052 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7053 soname_spec='${libname}${release}.so$major'
7054 shlibpath_var=LD_LIBRARY_PATH
7061 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7062 soname_spec='${libname}${release}.so$major'
7063 shlibpath_var=LD_LIBRARY_PATH
7067 if test -d /usr/nec ;then
7069 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7070 soname_spec='$libname.so.$major'
7071 shlibpath_var=LD_LIBRARY_PATH
7079 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7080 echo "${ECHO_T}$dynamic_linker" >&6
7081 test "$dynamic_linker" = no && can_build_shared=no
7083 # Report the final consequences.
7084 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7085 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7086 echo "$as_me:$LINENO: result: $can_build_shared" >&5
7087 echo "${ECHO_T}$can_build_shared" >&6
7089 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7090 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7091 test "$can_build_shared" = "no" && enable_shared=no
7093 # On AIX, shared libraries and static libraries use the same namespace, and
7094 # are all built from PIC.
7097 test "$enable_shared" = yes && enable_static=no
7098 if test -n "$RANLIB"; then
7099 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7100 postinstall_cmds='$RANLIB $lib'
7105 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7106 test "$enable_shared" = yes && enable_static=no
7110 echo "$as_me:$LINENO: result: $enable_shared" >&5
7111 echo "${ECHO_T}$enable_shared" >&6
7113 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7114 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7115 # Make sure either enable_shared or enable_static is yes.
7116 test "$enable_shared" = yes || enable_static=yes
7117 echo "$as_me:$LINENO: result: $enable_static" >&5
7118 echo "${ECHO_T}$enable_static" >&6
7120 if test "$hardcode_action" = relink; then
7121 # Fast installation is not supported
7122 enable_fast_install=no
7123 elif test "$shlibpath_overrides_runpath" = yes ||
7124 test "$enable_shared" = no; then
7125 # Fast installation is not necessary
7126 enable_fast_install=needless
7129 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7130 if test "$GCC" = yes; then
7131 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7134 if test "x$enable_dlopen" != xyes; then
7135 enable_dlopen=unknown
7136 enable_dlopen_self=unknown
7137 enable_dlopen_self_static=unknown
7144 lt_cv_dlopen="load_add_on"
7146 lt_cv_dlopen_self=yes
7149 cygwin* | mingw* | pw32*)
7150 lt_cv_dlopen="LoadLibrary"
7155 echo "$as_me:$LINENO: checking for shl_load" >&5
7156 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7157 if test "${ac_cv_func_shl_load+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7160 cat >conftest.$ac_ext <<_ACEOF
7161 #line $LINENO "configure"
7162 #include "confdefs.h"
7163 /* System header to define __stub macros and hopefully few prototypes,
7164 which can conflict with char shl_load (); below. */
7166 /* Override any gcc2 internal prototype to avoid an error. */
7170 /* We use char because int might match the return type of a gcc2
7171 builtin and then its argument prototype would still apply. */
7175 #ifdef F77_DUMMY_MAIN
7179 int F77_DUMMY_MAIN() { return 1; }
7184 /* The GNU C library defines this for functions which it implements
7185 to always fail with ENOSYS. Some functions are actually named
7186 something starting with __ and the normal name is an alias. */
7187 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7197 rm -f conftest.$ac_objext conftest$ac_exeext
7198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7199 (eval $ac_link) 2>&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } &&
7203 { ac_try='test -s conftest$ac_exeext'
7204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; }; then
7209 ac_cv_func_shl_load=yes
7211 echo "$as_me: failed program was:" >&5
7212 cat conftest.$ac_ext >&5
7213 ac_cv_func_shl_load=no
7215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7217 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7218 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7219 if test $ac_cv_func_shl_load = yes; then
7220 lt_cv_dlopen="shl_load"
7222 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7223 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7224 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7227 ac_check_lib_save_LIBS=$LIBS
7229 cat >conftest.$ac_ext <<_ACEOF
7230 #line $LINENO "configure"
7231 #include "confdefs.h"
7233 /* Override any gcc2 internal prototype to avoid an error. */
7237 /* We use char because int might match the return type of a gcc2
7238 builtin and then its argument prototype would still apply. */
7240 #ifdef F77_DUMMY_MAIN
7244 int F77_DUMMY_MAIN() { return 1; }
7254 rm -f conftest.$ac_objext conftest$ac_exeext
7255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7256 (eval $ac_link) 2>&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); } &&
7260 { ac_try='test -s conftest$ac_exeext'
7261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); }; }; then
7266 ac_cv_lib_dld_shl_load=yes
7268 echo "$as_me: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7270 ac_cv_lib_dld_shl_load=no
7272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7273 LIBS=$ac_check_lib_save_LIBS
7275 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7276 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7277 if test $ac_cv_lib_dld_shl_load = yes; then
7278 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7280 echo "$as_me:$LINENO: checking for dlopen" >&5
7281 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7282 if test "${ac_cv_func_dlopen+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 cat >conftest.$ac_ext <<_ACEOF
7286 #line $LINENO "configure"
7287 #include "confdefs.h"
7288 /* System header to define __stub macros and hopefully few prototypes,
7289 which can conflict with char dlopen (); below. */
7291 /* Override any gcc2 internal prototype to avoid an error. */
7295 /* We use char because int might match the return type of a gcc2
7296 builtin and then its argument prototype would still apply. */
7300 #ifdef F77_DUMMY_MAIN
7304 int F77_DUMMY_MAIN() { return 1; }
7309 /* The GNU C library defines this for functions which it implements
7310 to always fail with ENOSYS. Some functions are actually named
7311 something starting with __ and the normal name is an alias. */
7312 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7322 rm -f conftest.$ac_objext conftest$ac_exeext
7323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7324 (eval $ac_link) 2>&5
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); } &&
7328 { ac_try='test -s conftest$ac_exeext'
7329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); }; }; then
7334 ac_cv_func_dlopen=yes
7336 echo "$as_me: failed program was:" >&5
7337 cat conftest.$ac_ext >&5
7338 ac_cv_func_dlopen=no
7340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7342 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7343 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7344 if test $ac_cv_func_dlopen = yes; then
7345 lt_cv_dlopen="dlopen"
7347 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7348 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7349 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 ac_check_lib_save_LIBS=$LIBS
7354 cat >conftest.$ac_ext <<_ACEOF
7355 #line $LINENO "configure"
7356 #include "confdefs.h"
7358 /* Override any gcc2 internal prototype to avoid an error. */
7362 /* We use char because int might match the return type of a gcc2
7363 builtin and then its argument prototype would still apply. */
7365 #ifdef F77_DUMMY_MAIN
7369 int F77_DUMMY_MAIN() { return 1; }
7379 rm -f conftest.$ac_objext conftest$ac_exeext
7380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7381 (eval $ac_link) 2>&5
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); } &&
7385 { ac_try='test -s conftest$ac_exeext'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; }; then
7391 ac_cv_lib_dl_dlopen=yes
7393 echo "$as_me: failed program was:" >&5
7394 cat conftest.$ac_ext >&5
7395 ac_cv_lib_dl_dlopen=no
7397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7398 LIBS=$ac_check_lib_save_LIBS
7400 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7401 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7402 if test $ac_cv_lib_dl_dlopen = yes; then
7403 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7405 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7406 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7407 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7410 ac_check_lib_save_LIBS=$LIBS
7412 cat >conftest.$ac_ext <<_ACEOF
7413 #line $LINENO "configure"
7414 #include "confdefs.h"
7416 /* Override any gcc2 internal prototype to avoid an error. */
7420 /* We use char because int might match the return type of a gcc2
7421 builtin and then its argument prototype would still apply. */
7423 #ifdef F77_DUMMY_MAIN
7427 int F77_DUMMY_MAIN() { return 1; }
7437 rm -f conftest.$ac_objext conftest$ac_exeext
7438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7439 (eval $ac_link) 2>&5
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); } &&
7443 { ac_try='test -s conftest$ac_exeext'
7444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); }; }; then
7449 ac_cv_lib_svld_dlopen=yes
7451 echo "$as_me: failed program was:" >&5
7452 cat conftest.$ac_ext >&5
7453 ac_cv_lib_svld_dlopen=no
7455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7456 LIBS=$ac_check_lib_save_LIBS
7458 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7459 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7460 if test $ac_cv_lib_svld_dlopen = yes; then
7461 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7463 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7464 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7465 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7468 ac_check_lib_save_LIBS=$LIBS
7470 cat >conftest.$ac_ext <<_ACEOF
7471 #line $LINENO "configure"
7472 #include "confdefs.h"
7474 /* Override any gcc2 internal prototype to avoid an error. */
7478 /* We use char because int might match the return type of a gcc2
7479 builtin and then its argument prototype would still apply. */
7481 #ifdef F77_DUMMY_MAIN
7485 int F77_DUMMY_MAIN() { return 1; }
7495 rm -f conftest.$ac_objext conftest$ac_exeext
7496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7497 (eval $ac_link) 2>&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } &&
7501 { ac_try='test -s conftest$ac_exeext'
7502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); }; }; then
7507 ac_cv_lib_dld_dld_link=yes
7509 echo "$as_me: failed program was:" >&5
7510 cat conftest.$ac_ext >&5
7511 ac_cv_lib_dld_dld_link=no
7513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7514 LIBS=$ac_check_lib_save_LIBS
7516 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7517 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7518 if test $ac_cv_lib_dld_dld_link = yes; then
7519 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7540 if test "x$lt_cv_dlopen" != xno; then
7546 case $lt_cv_dlopen in
7548 save_CPPFLAGS="$CPPFLAGS"
7549 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7551 save_LDFLAGS="$LDFLAGS"
7552 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7555 LIBS="$lt_cv_dlopen_libs $LIBS"
7557 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7558 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7559 if test "${lt_cv_dlopen_self+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 if test "$cross_compiling" = yes; then :
7563 lt_cv_dlopen_self=cross
7565 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7566 lt_status=$lt_dlunknown
7567 cat > conftest.$ac_ext <<EOF
7568 #line 7568 "configure"
7569 #include "confdefs.h"
7578 # define LT_DLGLOBAL RTLD_GLOBAL
7581 # define LT_DLGLOBAL DL_GLOBAL
7583 # define LT_DLGLOBAL 0
7587 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7588 find out it does not work in some platform. */
7589 #ifndef LT_DLLAZY_OR_NOW
7591 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7594 # define LT_DLLAZY_OR_NOW DL_LAZY
7597 # define LT_DLLAZY_OR_NOW RTLD_NOW
7600 # define LT_DLLAZY_OR_NOW DL_NOW
7602 # define LT_DLLAZY_OR_NOW 0
7610 extern "C" void exit (int);
7613 void fnord() { int i=42;}
7616 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7617 int status = $lt_dlunknown;
7621 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7622 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7623 /* dlclose (self); */
7629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7630 (eval $ac_link) 2>&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7634 (./conftest; exit; ) 2>/dev/null
7637 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7638 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7639 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7642 # compilation failed
7643 lt_cv_dlopen_self=no
7650 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7651 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7653 if test "x$lt_cv_dlopen_self" = xyes; then
7654 LDFLAGS="$LDFLAGS $link_static_flag"
7655 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7656 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7657 if test "${lt_cv_dlopen_self_static+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 if test "$cross_compiling" = yes; then :
7661 lt_cv_dlopen_self_static=cross
7663 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7664 lt_status=$lt_dlunknown
7665 cat > conftest.$ac_ext <<EOF
7666 #line 7666 "configure"
7667 #include "confdefs.h"
7676 # define LT_DLGLOBAL RTLD_GLOBAL
7679 # define LT_DLGLOBAL DL_GLOBAL
7681 # define LT_DLGLOBAL 0
7685 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7686 find out it does not work in some platform. */
7687 #ifndef LT_DLLAZY_OR_NOW
7689 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7692 # define LT_DLLAZY_OR_NOW DL_LAZY
7695 # define LT_DLLAZY_OR_NOW RTLD_NOW
7698 # define LT_DLLAZY_OR_NOW DL_NOW
7700 # define LT_DLLAZY_OR_NOW 0
7708 extern "C" void exit (int);
7711 void fnord() { int i=42;}
7714 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7715 int status = $lt_dlunknown;
7719 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7720 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7721 /* dlclose (self); */
7727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7728 (eval $ac_link) 2>&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7732 (./conftest; exit; ) 2>/dev/null
7735 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7736 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7737 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7740 # compilation failed
7741 lt_cv_dlopen_self_static=no
7748 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7749 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7752 CPPFLAGS="$save_CPPFLAGS"
7753 LDFLAGS="$save_LDFLAGS"
7758 case $lt_cv_dlopen_self in
7759 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7760 *) enable_dlopen_self=unknown ;;
7763 case $lt_cv_dlopen_self_static in
7764 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7765 *) enable_dlopen_self_static=unknown ;;
7770 if test "$enable_shared" = yes && test "$GCC" = yes; then
7771 case $archive_cmds in
7773 # FIXME: we may have to deal with multi-command sequences.
7776 # Test whether the compiler implicitly links with -lc since on some
7777 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7778 # to ld, don't add -lc before -lgcc.
7779 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7780 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7781 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7785 echo 'static int dummy;' > conftest.$ac_ext
7787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7788 (eval $ac_compile) 2>&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; then
7794 libobjs=conftest.$ac_objext
7796 wl=$lt_cv_prog_cc_wl
7802 save_allow_undefined_flag=$allow_undefined_flag
7803 allow_undefined_flag=
7804 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7805 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); }
7810 lt_cv_archive_cmds_need_lc=no
7812 lt_cv_archive_cmds_need_lc=yes
7814 allow_undefined_flag=$save_allow_undefined_flag
7816 cat conftest.err 1>&5
7820 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7821 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7825 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7827 # The second clause should only fire when bootstrapping the
7828 # libtool distribution, otherwise you forgot to ship ltmain.sh
7829 # with your package, and you will get complaints that there are
7830 # no rules to generate ltmain.sh.
7831 if test -f "$ltmain"; then
7834 # If there is no Makefile yet, we rely on a make rule to execute
7835 # `config.status --recheck' to rerun these tests and create the
7836 # libtool script then.
7837 test -f Makefile && make "$ltmain"
7840 if test -f "$ltmain"; then
7841 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7844 echo creating $ofile
7846 # Now quote all the things that may contain metacharacters while being
7847 # careful not to overquote the AC_SUBSTed values. We take copies of the
7848 # variables and quote the copies for generation of the libtool script.
7849 for var in echo old_CC old_CFLAGS \
7850 AR AR_FLAGS CC LD LN_S NM SHELL \
7851 reload_flag reload_cmds wl \
7852 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7853 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7854 library_names_spec soname_spec \
7855 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7856 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7857 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7858 old_striplib striplib file_magic_cmd export_symbols_cmds \
7859 deplibs_check_method allow_undefined_flag no_undefined_flag \
7860 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7861 global_symbol_to_c_name_address \
7862 hardcode_libdir_flag_spec hardcode_libdir_separator \
7863 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7864 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7867 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7868 old_postinstall_cmds | old_postuninstall_cmds | \
7869 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7870 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7871 postinstall_cmds | postuninstall_cmds | \
7872 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7873 # Double-quote double-evaled strings.
7874 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7877 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7882 cat <<__EOF__ > "${ofile}T"
7885 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7886 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7887 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7889 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7890 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7892 # This program is free software; you can redistribute it and/or modify
7893 # it under the terms of the GNU General Public License as published by
7894 # the Free Software Foundation; either version 2 of the License, or
7895 # (at your option) any later version.
7897 # This program is distributed in the hope that it will be useful, but
7898 # WITHOUT ANY WARRANTY; without even the implied warranty of
7899 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7900 # General Public License for more details.
7902 # You should have received a copy of the GNU General Public License
7903 # along with this program; if not, write to the Free Software
7904 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7906 # As a special exception to the GNU General Public License, if you
7907 # distribute this file as part of a program that contains a
7908 # configuration script generated by Autoconf, you may include it under
7909 # the same distribution terms that you use for the rest of that program.
7911 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7912 Xsed="sed -e s/^X//"
7914 # The HP-UX ksh and POSIX shell print the target directory to stdout
7916 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7918 # ### BEGIN LIBTOOL CONFIG
7920 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7922 # Shell to use when invoking shell scripts.
7925 # Whether or not to build shared libraries.
7926 build_libtool_libs=$enable_shared
7928 # Whether or not to build static libraries.
7929 build_old_libs=$enable_static
7931 # Whether or not to add -lc for building shared libraries.
7932 build_libtool_need_lc=$need_lc
7934 # Whether or not to optimize for fast installation.
7935 fast_install=$enable_fast_install
7938 host_alias=$host_alias
7941 # An echo program that does not interpret backslashes.
7946 AR_FLAGS=$lt_AR_FLAGS
7948 # The default C compiler.
7951 # Is the compiler the GNU C compiler?
7954 # The linker used to build libraries.
7957 # Whether we need hard or soft links.
7960 # A BSD-compatible nm program.
7963 # A symbol stripping program
7966 # Used to examine libraries when file_magic_cmd begins "file"
7967 MAGIC_CMD=$MAGIC_CMD
7969 # Used on cygwin: DLL creation program.
7972 # Used on cygwin: object dumper.
7975 # Used on cygwin: assembler.
7978 # The name of the directory that contains temporary libtool files.
7981 # How to create reloadable object files.
7982 reload_flag=$lt_reload_flag
7983 reload_cmds=$lt_reload_cmds
7985 # How to pass a linker flag through the compiler.
7988 # Object file suffix (normally "o").
7991 # Old archive suffix (normally "a").
7994 # Executable file suffix (normally "").
7997 # Additional compiler flags for building library objects.
7998 pic_flag=$lt_pic_flag
8001 # Does compiler simultaneously support -c and -o options?
8002 compiler_c_o=$lt_compiler_c_o
8004 # Can we write directly to a .lo ?
8005 compiler_o_lo=$lt_compiler_o_lo
8007 # Must we lock files when doing compilation ?
8008 need_locks=$lt_need_locks
8010 # Do we need the lib prefix for modules?
8011 need_lib_prefix=$need_lib_prefix
8013 # Do we need a version for libraries?
8014 need_version=$need_version
8016 # Whether dlopen is supported.
8017 dlopen_support=$enable_dlopen
8019 # Whether dlopen of programs is supported.
8020 dlopen_self=$enable_dlopen_self
8022 # Whether dlopen of statically linked programs is supported.
8023 dlopen_self_static=$enable_dlopen_self_static
8025 # Compiler flag to prevent dynamic linking.
8026 link_static_flag=$lt_link_static_flag
8028 # Compiler flag to turn off builtin functions.
8029 no_builtin_flag=$lt_no_builtin_flag
8031 # Compiler flag to allow reflexive dlopens.
8032 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8034 # Compiler flag to generate shared objects directly from archives.
8035 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8037 # Compiler flag to generate thread-safe objects.
8038 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8040 # Library versioning type.
8041 version_type=$version_type
8043 # Format of library name prefix.
8044 libname_spec=$lt_libname_spec
8046 # List of archive names. First name is the real one, the rest are links.
8047 # The last name is the one that the linker finds with -lNAME.
8048 library_names_spec=$lt_library_names_spec
8050 # The coded name of the library, if different from the real name.
8051 soname_spec=$lt_soname_spec
8053 # Commands used to build and install an old-style archive.
8055 old_archive_cmds=$lt_old_archive_cmds
8056 old_postinstall_cmds=$lt_old_postinstall_cmds
8057 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8059 # Create an old-style archive from a shared archive.
8060 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8062 # Create a temporary old-style archive to link instead of a shared archive.
8063 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8065 # Commands used to build and install a shared archive.
8066 archive_cmds=$lt_archive_cmds
8067 archive_expsym_cmds=$lt_archive_expsym_cmds
8068 postinstall_cmds=$lt_postinstall_cmds
8069 postuninstall_cmds=$lt_postuninstall_cmds
8071 # Commands to strip libraries.
8072 old_striplib=$lt_old_striplib
8073 striplib=$lt_striplib
8075 # Method to check whether dependent libraries are shared objects.
8076 deplibs_check_method=$lt_deplibs_check_method
8078 # Command to use when deplibs_check_method == file_magic.
8079 file_magic_cmd=$lt_file_magic_cmd
8081 # Flag that allows shared libraries with undefined symbols to be built.
8082 allow_undefined_flag=$lt_allow_undefined_flag
8084 # Flag that forces no undefined symbols.
8085 no_undefined_flag=$lt_no_undefined_flag
8087 # Commands used to finish a libtool library installation in a directory.
8088 finish_cmds=$lt_finish_cmds
8090 # Same as above, but a single script fragment to be evaled but not shown.
8091 finish_eval=$lt_finish_eval
8093 # Take the output of nm and produce a listing of raw symbols and C names.
8094 global_symbol_pipe=$lt_global_symbol_pipe
8096 # Transform the output of nm in a proper C declaration
8097 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8099 # Transform the output of nm in a C name address pair
8100 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8102 # This is the shared library runtime path variable.
8103 runpath_var=$runpath_var
8105 # This is the shared library path variable.
8106 shlibpath_var=$shlibpath_var
8108 # Is shlibpath searched before the hard-coded library search path?
8109 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8111 # How to hardcode a shared library path into an executable.
8112 hardcode_action=$hardcode_action
8114 # Whether we should hardcode library paths into libraries.
8115 hardcode_into_libs=$hardcode_into_libs
8117 # Flag to hardcode \$libdir into a binary during linking.
8118 # This must work even if \$libdir does not exist.
8119 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8121 # Whether we need a single -rpath flag with a separated argument.
8122 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8124 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8126 hardcode_direct=$hardcode_direct
8128 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8130 hardcode_minus_L=$hardcode_minus_L
8132 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8133 # the resulting binary.
8134 hardcode_shlibpath_var=$hardcode_shlibpath_var
8136 # Variables whose values should be saved in libtool wrapper scripts and
8137 # restored at relink time.
8138 variables_saved_for_relink="$variables_saved_for_relink"
8140 # Whether libtool must link a program against all its dependency libraries.
8141 link_all_deplibs=$link_all_deplibs
8143 # Compile-time system search path for libraries
8144 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8146 # Run-time system search path for libraries
8147 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8149 # Fix the shell variable \$srcfile for the compiler.
8150 fix_srcfile_path="$fix_srcfile_path"
8152 # Set to yes if exported symbols are required.
8153 always_export_symbols=$always_export_symbols
8155 # The commands to list exported symbols.
8156 export_symbols_cmds=$lt_export_symbols_cmds
8158 # The commands to extract the exported symbol list from a shared archive.
8159 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8161 # Symbols that should not be listed in the preloaded symbols.
8162 exclude_expsyms=$lt_exclude_expsyms
8164 # Symbols that must always be exported.
8165 include_expsyms=$lt_include_expsyms
8167 # ### END LIBTOOL CONFIG
8173 cat <<\EOF >> "${ofile}T"
8175 # AIX sometimes has problems with the GCC collect2 program. For some
8176 # reason, if we set the COLLECT_NAMES environment variable, the problems
8177 # vanish in a puff of smoke.
8178 if test "X${COLLECT_NAMES+set}" != Xset; then
8180 export COLLECT_NAMES
8187 cygwin* | mingw* | pw32* | os2*)
8188 cat <<'EOF' >> "${ofile}T"
8189 # This is a source program that is used to create dlls on Windows
8190 # Don't remove nor modify the starting and closing comments
8191 # /* ltdll.c starts here */
8192 # #define WIN32_LEAN_AND_MEAN
8193 # #include <windows.h>
8194 # #undef WIN32_LEAN_AND_MEAN
8195 # #include <stdio.h>
8197 # #ifndef __CYGWIN__
8198 # # ifdef __CYGWIN32__
8199 # # define __CYGWIN__ __CYGWIN32__
8203 # #ifdef __cplusplus
8206 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8207 # #ifdef __cplusplus
8212 # #include <cygwin/cygwin_dll.h>
8213 # DECLARE_CYGWIN_DLL( DllMain );
8215 # HINSTANCE __hDllInstance_base;
8218 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8220 # __hDllInstance_base = hInst;
8223 # /* ltdll.c ends here */
8224 # This is a source program that is used to create import libraries
8225 # on Windows for dlls which lack them. Don't remove nor modify the
8226 # starting and closing comments
8227 # /* impgen.c starts here */
8228 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8230 # This file is part of GNU libtool.
8232 # This program is free software; you can redistribute it and/or modify
8233 # it under the terms of the GNU General Public License as published by
8234 # the Free Software Foundation; either version 2 of the License, or
8235 # (at your option) any later version.
8237 # This program is distributed in the hope that it will be useful,
8238 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8239 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8240 # GNU General Public License for more details.
8242 # You should have received a copy of the GNU General Public License
8243 # along with this program; if not, write to the Free Software
8244 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8247 # #include <stdio.h> /* for printf() */
8248 # #include <unistd.h> /* for open(), lseek(), read() */
8249 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8250 # #include <string.h> /* for strdup() */
8252 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8254 # #define O_BINARY 0
8257 # static unsigned int
8258 # pe_get16 (fd, offset)
8262 # unsigned char b[2];
8263 # lseek (fd, offset, SEEK_SET);
8265 # return b[0] + (b[1]<<8);
8268 # static unsigned int
8269 # pe_get32 (fd, offset)
8273 # unsigned char b[4];
8274 # lseek (fd, offset, SEEK_SET);
8276 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8279 # static unsigned int
8283 # unsigned char *b = ptr;
8284 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8293 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8294 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8295 # unsigned long name_rvas, nexp;
8296 # unsigned char *expdata, *erva;
8297 # char *filename, *dll_name;
8299 # filename = argv[1];
8301 # dll = open(filename, O_RDONLY|O_BINARY);
8305 # dll_name = filename;
8307 # for (i=0; filename[i]; i++)
8308 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8309 # dll_name = filename + i +1;
8311 # pe_header_offset = pe_get32 (dll, 0x3c);
8312 # opthdr_ofs = pe_header_offset + 4 + 20;
8313 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8315 # if (num_entries < 1) /* no exports */
8318 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8319 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8320 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8321 # secptr = (pe_header_offset + 4 + 20 +
8322 # pe_get16 (dll, pe_header_offset + 4 + 16));
8325 # for (i = 0; i < nsections; i++)
8328 # unsigned long secptr1 = secptr + 40 * i;
8329 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8330 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8331 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8332 # lseek(dll, secptr1, SEEK_SET);
8333 # read(dll, sname, 8);
8334 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8336 # expptr = fptr + (export_rva - vaddr);
8337 # if (export_rva + export_size > vaddr + vsize)
8338 # export_size = vsize - (export_rva - vaddr);
8343 # expdata = (unsigned char*)malloc(export_size);
8344 # lseek (dll, expptr, SEEK_SET);
8345 # read (dll, expdata, export_size);
8346 # erva = expdata - export_rva;
8348 # nexp = pe_as32 (expdata+24);
8349 # name_rvas = pe_as32 (expdata+32);
8351 # printf ("EXPORTS\n");
8352 # for (i = 0; i<nexp; i++)
8354 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8355 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8360 # /* impgen.c ends here */
8366 # We use sed instead of cat because bash on DJGPP gets confused if
8367 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8368 # text mode, it properly converts lines to CR/LF. This bash problem
8369 # is reportedly fixed, but why not run on old versions too?
8370 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8372 mv -f "${ofile}T" "$ofile" || \
8373 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8381 # This can be used to rebuild libtool when needed
8382 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8384 # Always use our own libtool.
8385 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8387 # Prevent multiple expansion
8393 WFLAGS_NOIMPLICITINT=""
8394 if test -z "$WFLAGS" -a "$GCC" = "yes"; then
8395 # -Wno-implicit-int for broken X11 headers
8396 # leave these out for now:
8397 # -Wcast-align doesn't work well on alpha osf/1
8398 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
8399 # -Wmissing-declarations -Wnested-externs
8400 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
8401 WFLAGS_NOUNUSED="-Wno-unused"
8402 WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
8408 # Check whether --with-openldap or --without-openldap was given.
8409 if test "${with_openldap+set}" = set; then
8410 withval="$with_openldap"
8414 # Check whether --with-openldap-lib or --without-openldap-lib was given.
8415 if test "${with_openldap_lib+set}" = set; then
8416 withval="$with_openldap_lib"
8417 if test "$withval" = "yes" -o "$withval" = "no"; then
8418 { { echo "$as_me:$LINENO: error: No argument for --with-openldap-lib" >&5
8419 echo "$as_me: error: No argument for --with-openldap-lib" >&2;}
8420 { (exit 1); exit 1; }; }
8421 elif test "X$with_openldap" = "X"; then
8426 # Check whether --with-openldap-include or --without-openldap-include was given.
8427 if test "${with_openldap_include+set}" = set; then
8428 withval="$with_openldap_include"
8429 if test "$withval" = "yes" -o "$withval" = "no"; then
8430 { { echo "$as_me:$LINENO: error: No argument for --with-openldap-include" >&5
8431 echo "$as_me: error: No argument for --with-openldap-include" >&2;}
8432 { (exit 1); exit 1; }; }
8433 elif test "X$with_openldap" = "X"; then
8438 # Check whether --with-openldap-config or --without-openldap-config was given.
8439 if test "${with_openldap_config+set}" = set; then
8440 withval="$with_openldap_config"
8446 echo "$as_me:$LINENO: checking for openldap" >&5
8447 echo $ECHO_N "checking for openldap... $ECHO_C" >&6
8449 case "$with_openldap" in
8452 *) d="$with_openldap" ;;
8458 if test "$with_openldap_include" = ""; then
8459 if test -d "$i/include/openldap"; then
8460 header_dirs="$header_dirs $i/include/openldap"
8462 if test -d "$i/include"; then
8463 header_dirs="$header_dirs $i/include"
8466 if test "$with_openldap_lib" = ""; then
8467 if test -d "$i/lib$abilibdirext"; then
8468 lib_dirs="$lib_dirs $i/lib$abilibdirext"
8473 if test "$with_openldap_include"; then
8474 header_dirs="$with_openldap_include $header_dirs"
8476 if test "$with_openldap_lib"; then
8477 lib_dirs="$with_openldap_lib $lib_dirs"
8480 if test "$with_openldap_config" = ""; then
8481 with_openldap_config=''
8487 case "$with_openldap_config" in
8491 openldap_cflags="`$with_openldap_config --cflags 2>&1`"
8492 openldap_libs="`$with_openldap_config --libs 2>&1`"
8497 if test "$with_openldap" != no; then
8498 save_CFLAGS="$CFLAGS"
8500 if test "$openldap_cflags" -a "$openldap_libs"; then
8501 CFLAGS="$openldap_cflags $save_CFLAGS"
8502 LIBS="$openldap_libs $save_LIBS"
8503 cat >conftest.$ac_ext <<_ACEOF
8504 #line $LINENO "configure"
8505 #include "confdefs.h"
8508 #ifdef F77_DUMMY_MAIN
8512 int F77_DUMMY_MAIN() { return 1; }
8522 rm -f conftest.$ac_objext conftest$ac_exeext
8523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8524 (eval $ac_link) 2>&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } &&
8528 { ac_try='test -s conftest$ac_exeext'
8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; }; then
8535 INCLUDE_openldap="$openldap_cflags"
8536 LIB_openldap="$openldap_libs"
8537 echo "$as_me:$LINENO: result: from $with_openldap_config" >&5
8538 echo "${ECHO_T}from $with_openldap_config" >&6
8541 echo "$as_me: failed program was:" >&5
8542 cat conftest.$ac_ext >&5
8544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8546 if test "$found" = no; then
8548 for i in $header_dirs; do
8549 CFLAGS="-I$i $save_CFLAGS"
8550 cat >conftest.$ac_ext <<_ACEOF
8551 #line $LINENO "configure"
8552 #include "confdefs.h"
8555 #ifdef F77_DUMMY_MAIN
8559 int F77_DUMMY_MAIN() { return 1; }
8569 rm -f conftest.$ac_objext
8570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8571 (eval $ac_compile) 2>&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } &&
8575 { ac_try='test -s conftest.$ac_objext'
8576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; }; then
8583 echo "$as_me: failed program was:" >&5
8584 cat conftest.$ac_ext >&5
8586 rm -f conftest.$ac_objext conftest.$ac_ext
8588 for i in $lib_dirs; do
8589 LIBS="-L$i -lldap -llber $save_LIBS"
8590 cat >conftest.$ac_ext <<_ACEOF
8591 #line $LINENO "configure"
8592 #include "confdefs.h"
8595 #ifdef F77_DUMMY_MAIN
8599 int F77_DUMMY_MAIN() { return 1; }
8609 rm -f conftest.$ac_objext conftest$ac_exeext
8610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8611 (eval $ac_link) 2>&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
8615 { ac_try='test -s conftest$ac_exeext'
8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; }; then
8623 echo "$as_me: failed program was:" >&5
8624 cat conftest.$ac_ext >&5
8626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8628 if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
8629 INCLUDE_openldap="-I$ires"
8630 LIB_openldap="-L$lres -lldap -llber "
8632 echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
8633 echo "${ECHO_T}headers $ires, libraries $lres" >&6
8636 CFLAGS="$save_CFLAGS"
8640 if test "$found" = yes; then
8642 cat >>confdefs.h <<_ACEOF
8651 echo "$as_me:$LINENO: result: no" >&5
8652 echo "${ECHO_T}no" >&6
8661 # Check whether --with-krb4 or --without-krb4 was given.
8662 if test "${with_krb4+set}" = set; then
8663 withval="$with_krb4"
8667 # Check whether --with-krb4-lib or --without-krb4-lib was given.
8668 if test "${with_krb4_lib+set}" = set; then
8669 withval="$with_krb4_lib"
8670 if test "$withval" = "yes" -o "$withval" = "no"; then
8671 { { echo "$as_me:$LINENO: error: No argument for --with-krb4-lib" >&5
8672 echo "$as_me: error: No argument for --with-krb4-lib" >&2;}
8673 { (exit 1); exit 1; }; }
8674 elif test "X$with_krb4" = "X"; then
8679 # Check whether --with-krb4-include or --without-krb4-include was given.
8680 if test "${with_krb4_include+set}" = set; then
8681 withval="$with_krb4_include"
8682 if test "$withval" = "yes" -o "$withval" = "no"; then
8683 { { echo "$as_me:$LINENO: error: No argument for --with-krb4-include" >&5
8684 echo "$as_me: error: No argument for --with-krb4-include" >&2;}
8685 { (exit 1); exit 1; }; }
8686 elif test "X$with_krb4" = "X"; then
8691 # Check whether --with-krb4-config or --without-krb4-config was given.
8692 if test "${with_krb4_config+set}" = set; then
8693 withval="$with_krb4_config"
8699 echo "$as_me:$LINENO: checking for krb4" >&5
8700 echo $ECHO_N "checking for krb4... $ECHO_C" >&6
8702 case "$with_krb4" in
8703 yes|"") d='/usr/athena' ;;
8705 *) d="$with_krb4" ;;
8711 if test "$with_krb4_include" = ""; then
8712 if test -d "$i/include/krb4"; then
8713 header_dirs="$header_dirs $i/include/krb4"
8715 if test -d "$i/include"; then
8716 header_dirs="$header_dirs $i/include"
8719 if test "$with_krb4_lib" = ""; then
8720 if test -d "$i/lib$abilibdirext"; then
8721 lib_dirs="$lib_dirs $i/lib$abilibdirext"
8726 if test "$with_krb4_include"; then
8727 header_dirs="$with_krb4_include $header_dirs"
8729 if test "$with_krb4_lib"; then
8730 lib_dirs="$with_krb4_lib $lib_dirs"
8733 if test "$with_krb4_config" = ""; then
8734 with_krb4_config='krb4-config'
8740 case "$with_krb4_config" in
8744 krb4_cflags="`$with_krb4_config --cflags 2>&1`"
8745 krb4_libs="`$with_krb4_config --libs 2>&1`"
8750 if test "$with_krb4" != no; then
8751 save_CFLAGS="$CFLAGS"
8753 if test "$krb4_cflags" -a "$krb4_libs"; then
8754 CFLAGS="$krb4_cflags $save_CFLAGS"
8755 LIBS="$krb4_libs $save_LIBS"
8756 cat >conftest.$ac_ext <<_ACEOF
8757 #line $LINENO "configure"
8758 #include "confdefs.h"
8760 #ifdef F77_DUMMY_MAIN
8764 int F77_DUMMY_MAIN() { return 1; }
8774 rm -f conftest.$ac_objext conftest$ac_exeext
8775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8776 (eval $ac_link) 2>&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); } &&
8780 { ac_try='test -s conftest$ac_exeext'
8781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); }; }; then
8787 INCLUDE_krb4="$krb4_cflags"
8788 LIB_krb4="$krb4_libs"
8789 echo "$as_me:$LINENO: result: from $with_krb4_config" >&5
8790 echo "${ECHO_T}from $with_krb4_config" >&6
8793 echo "$as_me: failed program was:" >&5
8794 cat conftest.$ac_ext >&5
8796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8798 if test "$found" = no; then
8800 for i in $header_dirs; do
8801 CFLAGS="-I$i $save_CFLAGS"
8802 cat >conftest.$ac_ext <<_ACEOF
8803 #line $LINENO "configure"
8804 #include "confdefs.h"
8806 #ifdef F77_DUMMY_MAIN
8810 int F77_DUMMY_MAIN() { return 1; }
8820 rm -f conftest.$ac_objext
8821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8822 (eval $ac_compile) 2>&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } &&
8826 { ac_try='test -s conftest.$ac_objext'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; }; then
8834 echo "$as_me: failed program was:" >&5
8835 cat conftest.$ac_ext >&5
8837 rm -f conftest.$ac_objext conftest.$ac_ext
8839 for i in $lib_dirs; do
8840 LIBS="-L$i -lkrb -ldes $save_LIBS"
8841 cat >conftest.$ac_ext <<_ACEOF
8842 #line $LINENO "configure"
8843 #include "confdefs.h"
8845 #ifdef F77_DUMMY_MAIN
8849 int F77_DUMMY_MAIN() { return 1; }
8859 rm -f conftest.$ac_objext conftest$ac_exeext
8860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8861 (eval $ac_link) 2>&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
8865 { ac_try='test -s conftest$ac_exeext'
8866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; }; then
8873 echo "$as_me: failed program was:" >&5
8874 cat conftest.$ac_ext >&5
8876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8878 if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then
8879 INCLUDE_krb4="-I$ires"
8880 LIB_krb4="-L$lres -lkrb -ldes"
8882 echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
8883 echo "${ECHO_T}headers $ires, libraries $lres" >&6
8886 CFLAGS="$save_CFLAGS"
8890 if test "$found" = yes; then
8892 cat >>confdefs.h <<_ACEOF
8901 echo "$as_me:$LINENO: result: no" >&5
8902 echo "${ECHO_T}no" >&6
8910 if test "$with_krb4" != "no"; then
8911 save_CFLAGS="$CFLAGS"
8912 CFLAGS="$CFLAGS $INCLUDE_krb4"
8914 LIBS="$LIB_krb4 $LIBS"
8917 echo "$as_me:$LINENO: checking for four valued krb_put_int" >&5
8918 echo $ECHO_N "checking for four valued krb_put_int... $ECHO_C" >&6
8919 if test "${ac_cv_func_krb_put_int_four+set}" = set; then
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8922 cat >conftest.$ac_ext <<_ACEOF
8923 #line $LINENO "configure"
8924 #include "confdefs.h"
8926 #ifdef F77_DUMMY_MAIN
8930 int F77_DUMMY_MAIN() { return 1; }
8937 krb_put_int(17, tmp, 4, sizeof(tmp));
8942 rm -f conftest.$ac_objext
8943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8944 (eval $ac_compile) 2>&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); } &&
8948 { ac_try='test -s conftest.$ac_objext'
8949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); }; }; then
8954 ac_cv_func_krb_put_int_four=yes
8956 echo "$as_me: failed program was:" >&5
8957 cat conftest.$ac_ext >&5
8958 ac_cv_func_krb_put_int_four=no
8960 rm -f conftest.$ac_objext conftest.$ac_ext
8963 echo "$as_me:$LINENO: result: $ac_cv_func_krb_put_int_four" >&5
8964 echo "${ECHO_T}$ac_cv_func_krb_put_int_four" >&6
8965 if test "$ac_cv_func_krb_put_int_four" = yes; then
8967 cat >>confdefs.h <<\_ACEOF
8968 #define HAVE_FOUR_VALUED_KRB_PUT_INT 1
8974 echo "$as_me:$LINENO: checking for KRB_VERIFY_SECURE" >&5
8975 echo $ECHO_N "checking for KRB_VERIFY_SECURE... $ECHO_C" >&6
8976 if test "${ac_cv_func_krb_verify_secure+set}" = set; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8979 cat >conftest.$ac_ext <<_ACEOF
8980 #line $LINENO "configure"
8981 #include "confdefs.h"
8983 #ifdef F77_DUMMY_MAIN
8987 int F77_DUMMY_MAIN() { return 1; }
8993 int x = KRB_VERIFY_SECURE
8998 rm -f conftest.$ac_objext
8999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9000 (eval $ac_compile) 2>&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } &&
9004 { ac_try='test -s conftest.$ac_objext'
9005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; }; then
9010 ac_cv_func_krb_verify_secure=yes
9012 echo "$as_me: failed program was:" >&5
9013 cat conftest.$ac_ext >&5
9014 ac_cv_func_krb_verify_secure=no
9016 rm -f conftest.$ac_objext conftest.$ac_ext
9019 echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_secure" >&5
9020 echo "${ECHO_T}$ac_cv_func_krb_verify_secure" >&6
9021 if test "$ac_cv_func_krb_verify_secure" != yes; then
9023 cat >>confdefs.h <<\_ACEOF
9024 #define KRB_VERIFY_SECURE 1
9028 cat >>confdefs.h <<\_ACEOF
9029 #define KRB_VERIFY_SECURE_FAIL 2
9033 echo "$as_me:$LINENO: checking for KRB_VERIFY_NOT_SECURE" >&5
9034 echo $ECHO_N "checking for KRB_VERIFY_NOT_SECURE... $ECHO_C" >&6
9035 if test "${ac_cv_func_krb_verify_not_secure+set}" = set; then
9036 echo $ECHO_N "(cached) $ECHO_C" >&6
9038 cat >conftest.$ac_ext <<_ACEOF
9039 #line $LINENO "configure"
9040 #include "confdefs.h"
9042 #ifdef F77_DUMMY_MAIN
9046 int F77_DUMMY_MAIN() { return 1; }
9052 int x = KRB_VERIFY_NOT_SECURE
9057 rm -f conftest.$ac_objext
9058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9059 (eval $ac_compile) 2>&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } &&
9063 { ac_try='test -s conftest.$ac_objext'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; }; then
9069 ac_cv_func_krb_verify_not_secure=yes
9071 echo "$as_me: failed program was:" >&5
9072 cat conftest.$ac_ext >&5
9073 ac_cv_func_krb_verify_not_secure=no
9075 rm -f conftest.$ac_objext conftest.$ac_ext
9078 echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_not_secure" >&5
9079 echo "${ECHO_T}$ac_cv_func_krb_verify_not_secure" >&6
9080 if test "$ac_cv_func_krb_verify_not_secure" != yes; then
9082 cat >>confdefs.h <<\_ACEOF
9083 #define KRB_VERIFY_NOT_SECURE 0
9091 echo "$as_me:$LINENO: checking for krb_enable_debug" >&5
9092 echo $ECHO_N "checking for krb_enable_debug... $ECHO_C" >&6
9093 if test "${ac_cv_funclib_krb_enable_debug+set}" = set; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then
9098 ac_save_LIBS="$LIBS"
9099 for ac_lib in "" ; do
9105 *) ac_lib="-l$ac_lib" ;;
9107 LIBS=" $ac_lib $ac_save_LIBS"
9108 cat >conftest.$ac_ext <<_ACEOF
9109 #line $LINENO "configure"
9110 #include "confdefs.h"
9112 #ifdef F77_DUMMY_MAIN
9116 int F77_DUMMY_MAIN() { return 1; }
9126 rm -f conftest.$ac_objext conftest$ac_exeext
9127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9128 (eval $ac_link) 2>&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } &&
9132 { ac_try='test -s conftest$ac_exeext'
9133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; }; then
9138 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_enable_debug=$ac_lib; else ac_cv_funclib_krb_enable_debug=yes; fi";break
9140 echo "$as_me: failed program was:" >&5
9141 cat conftest.$ac_ext >&5
9143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9145 eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}"
9146 LIBS="$ac_save_LIBS"
9152 eval "ac_res=\$ac_cv_funclib_krb_enable_debug"
9156 for ac_func in krb_enable_debug
9158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9159 echo "$as_me:$LINENO: checking for $ac_func" >&5
9160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9161 if eval "test \"\${$as_ac_var+set}\" = set"; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 cat >conftest.$ac_ext <<_ACEOF
9165 #line $LINENO "configure"
9166 #include "confdefs.h"
9167 /* System header to define __stub macros and hopefully few prototypes,
9168 which can conflict with char $ac_func (); below. */
9170 /* Override any gcc2 internal prototype to avoid an error. */
9174 /* We use char because int might match the return type of a gcc2
9175 builtin and then its argument prototype would still apply. */
9179 #ifdef F77_DUMMY_MAIN
9183 int F77_DUMMY_MAIN() { return 1; }
9188 /* The GNU C library defines this for functions which it implements
9189 to always fail with ENOSYS. Some functions are actually named
9190 something starting with __ and the normal name is an alias. */
9191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9201 rm -f conftest.$ac_objext conftest$ac_exeext
9202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9203 (eval $ac_link) 2>&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } &&
9207 { ac_try='test -s conftest$ac_exeext'
9208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); }; }; then
9213 eval "$as_ac_var=yes"
9215 echo "$as_me: failed program was:" >&5
9216 cat conftest.$ac_ext >&5
9217 eval "$as_ac_var=no"
9219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9223 if test `eval echo '${'$as_ac_var'}'` = yes; then
9224 cat >>confdefs.h <<_ACEOF
9225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9233 eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9234 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9235 eval "LIB_krb_enable_debug=$ac_res"
9239 eval "ac_cv_func_krb_enable_debug=yes"
9240 eval "LIB_krb_enable_debug="
9241 cat >>confdefs.h <<_ACEOF
9242 #define $ac_tr_func 1
9245 echo "$as_me:$LINENO: result: yes" >&5
9246 echo "${ECHO_T}yes" >&6
9249 eval "ac_cv_func_krb_enable_debug=no"
9250 eval "LIB_krb_enable_debug="
9251 echo "$as_me:$LINENO: result: no" >&5
9252 echo "${ECHO_T}no" >&6
9255 eval "ac_cv_func_krb_enable_debug=yes"
9256 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
9257 cat >>confdefs.h <<_ACEOF
9258 #define $ac_tr_func 1
9261 cat >>confdefs.h <<_ACEOF
9262 #define $ac_tr_lib 1
9265 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
9266 echo "${ECHO_T}yes, in $ac_res" >&6
9271 if test -n "$LIB_krb_enable_debug"; then
9272 LIBS="$LIB_krb_enable_debug $LIBS"
9279 echo "$as_me:$LINENO: checking for krb_disable_debug" >&5
9280 echo $ECHO_N "checking for krb_disable_debug... $ECHO_C" >&6
9281 if test "${ac_cv_funclib_krb_disable_debug+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9285 if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then
9286 ac_save_LIBS="$LIBS"
9287 for ac_lib in "" ; do
9293 *) ac_lib="-l$ac_lib" ;;
9295 LIBS=" $ac_lib $ac_save_LIBS"
9296 cat >conftest.$ac_ext <<_ACEOF
9297 #line $LINENO "configure"
9298 #include "confdefs.h"
9300 #ifdef F77_DUMMY_MAIN
9304 int F77_DUMMY_MAIN() { return 1; }
9314 rm -f conftest.$ac_objext conftest$ac_exeext
9315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9316 (eval $ac_link) 2>&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } &&
9320 { ac_try='test -s conftest$ac_exeext'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; }; then
9326 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_disable_debug=$ac_lib; else ac_cv_funclib_krb_disable_debug=yes; fi";break
9328 echo "$as_me: failed program was:" >&5
9329 cat conftest.$ac_ext >&5
9331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9333 eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}"
9334 LIBS="$ac_save_LIBS"
9340 eval "ac_res=\$ac_cv_funclib_krb_disable_debug"
9344 for ac_func in krb_disable_debug
9346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9347 echo "$as_me:$LINENO: checking for $ac_func" >&5
9348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9349 if eval "test \"\${$as_ac_var+set}\" = set"; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 cat >conftest.$ac_ext <<_ACEOF
9353 #line $LINENO "configure"
9354 #include "confdefs.h"
9355 /* System header to define __stub macros and hopefully few prototypes,
9356 which can conflict with char $ac_func (); below. */
9358 /* Override any gcc2 internal prototype to avoid an error. */
9362 /* We use char because int might match the return type of a gcc2
9363 builtin and then its argument prototype would still apply. */
9367 #ifdef F77_DUMMY_MAIN
9371 int F77_DUMMY_MAIN() { return 1; }
9376 /* The GNU C library defines this for functions which it implements
9377 to always fail with ENOSYS. Some functions are actually named
9378 something starting with __ and the normal name is an alias. */
9379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9389 rm -f conftest.$ac_objext conftest$ac_exeext
9390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9391 (eval $ac_link) 2>&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } &&
9395 { ac_try='test -s conftest$ac_exeext'
9396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; }; then
9401 eval "$as_ac_var=yes"
9403 echo "$as_me: failed program was:" >&5
9404 cat conftest.$ac_ext >&5
9405 eval "$as_ac_var=no"
9407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9411 if test `eval echo '${'$as_ac_var'}'` = yes; then
9412 cat >>confdefs.h <<_ACEOF
9413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9421 eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9422 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9423 eval "LIB_krb_disable_debug=$ac_res"
9427 eval "ac_cv_func_krb_disable_debug=yes"
9428 eval "LIB_krb_disable_debug="
9429 cat >>confdefs.h <<_ACEOF
9430 #define $ac_tr_func 1
9433 echo "$as_me:$LINENO: result: yes" >&5
9434 echo "${ECHO_T}yes" >&6
9437 eval "ac_cv_func_krb_disable_debug=no"
9438 eval "LIB_krb_disable_debug="
9439 echo "$as_me:$LINENO: result: no" >&5
9440 echo "${ECHO_T}no" >&6
9443 eval "ac_cv_func_krb_disable_debug=yes"
9444 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
9445 cat >>confdefs.h <<_ACEOF
9446 #define $ac_tr_func 1
9449 cat >>confdefs.h <<_ACEOF
9450 #define $ac_tr_lib 1
9453 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
9454 echo "${ECHO_T}yes, in $ac_res" >&6
9459 if test -n "$LIB_krb_disable_debug"; then
9460 LIBS="$LIB_krb_disable_debug $LIBS"
9467 echo "$as_me:$LINENO: checking for krb_get_our_ip_for_realm" >&5
9468 echo $ECHO_N "checking for krb_get_our_ip_for_realm... $ECHO_C" >&6
9469 if test "${ac_cv_funclib_krb_get_our_ip_for_realm+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then
9474 ac_save_LIBS="$LIBS"
9475 for ac_lib in "" ; do
9481 *) ac_lib="-l$ac_lib" ;;
9483 LIBS=" $ac_lib $ac_save_LIBS"
9484 cat >conftest.$ac_ext <<_ACEOF
9485 #line $LINENO "configure"
9486 #include "confdefs.h"
9488 #ifdef F77_DUMMY_MAIN
9492 int F77_DUMMY_MAIN() { return 1; }
9497 krb_get_our_ip_for_realm()
9502 rm -f conftest.$ac_objext conftest$ac_exeext
9503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9504 (eval $ac_link) 2>&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } &&
9508 { ac_try='test -s conftest$ac_exeext'
9509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; }; then
9514 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_our_ip_for_realm=$ac_lib; else ac_cv_funclib_krb_get_our_ip_for_realm=yes; fi";break
9516 echo "$as_me: failed program was:" >&5
9517 cat conftest.$ac_ext >&5
9519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9521 eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}"
9522 LIBS="$ac_save_LIBS"
9528 eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm"
9532 for ac_func in krb_get_our_ip_for_realm
9534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9535 echo "$as_me:$LINENO: checking for $ac_func" >&5
9536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9537 if eval "test \"\${$as_ac_var+set}\" = set"; then
9538 echo $ECHO_N "(cached) $ECHO_C" >&6
9540 cat >conftest.$ac_ext <<_ACEOF
9541 #line $LINENO "configure"
9542 #include "confdefs.h"
9543 /* System header to define __stub macros and hopefully few prototypes,
9544 which can conflict with char $ac_func (); below. */
9546 /* Override any gcc2 internal prototype to avoid an error. */
9550 /* We use char because int might match the return type of a gcc2
9551 builtin and then its argument prototype would still apply. */
9555 #ifdef F77_DUMMY_MAIN
9559 int F77_DUMMY_MAIN() { return 1; }
9564 /* The GNU C library defines this for functions which it implements
9565 to always fail with ENOSYS. Some functions are actually named
9566 something starting with __ and the normal name is an alias. */
9567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9577 rm -f conftest.$ac_objext conftest$ac_exeext
9578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9579 (eval $ac_link) 2>&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); } &&
9583 { ac_try='test -s conftest$ac_exeext'
9584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); }; }; then
9589 eval "$as_ac_var=yes"
9591 echo "$as_me: failed program was:" >&5
9592 cat conftest.$ac_ext >&5
9593 eval "$as_ac_var=no"
9595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9599 if test `eval echo '${'$as_ac_var'}'` = yes; then
9600 cat >>confdefs.h <<_ACEOF
9601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9608 # krb_get_our_ip_for_realm
9609 eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9610 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9611 eval "LIB_krb_get_our_ip_for_realm=$ac_res"
9615 eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
9616 eval "LIB_krb_get_our_ip_for_realm="
9617 cat >>confdefs.h <<_ACEOF
9618 #define $ac_tr_func 1
9621 echo "$as_me:$LINENO: result: yes" >&5
9622 echo "${ECHO_T}yes" >&6
9625 eval "ac_cv_func_krb_get_our_ip_for_realm=no"
9626 eval "LIB_krb_get_our_ip_for_realm="
9627 echo "$as_me:$LINENO: result: no" >&5
9628 echo "${ECHO_T}no" >&6
9631 eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
9632 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
9633 cat >>confdefs.h <<_ACEOF
9634 #define $ac_tr_func 1
9637 cat >>confdefs.h <<_ACEOF
9638 #define $ac_tr_lib 1
9641 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
9642 echo "${ECHO_T}yes, in $ac_res" >&6
9647 if test -n "$LIB_krb_get_our_ip_for_realm"; then
9648 LIBS="$LIB_krb_get_our_ip_for_realm $LIBS"
9655 echo "$as_me:$LINENO: checking for krb_kdctimeofday" >&5
9656 echo $ECHO_N "checking for krb_kdctimeofday... $ECHO_C" >&6
9657 if test "${ac_cv_funclib_krb_kdctimeofday+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9661 if eval "test \"\$ac_cv_func_krb_kdctimeofday\" != yes" ; then
9662 ac_save_LIBS="$LIBS"
9663 for ac_lib in "" ; do
9669 *) ac_lib="-l$ac_lib" ;;
9671 LIBS=" $ac_lib $ac_save_LIBS"
9672 cat >conftest.$ac_ext <<_ACEOF
9673 #line $LINENO "configure"
9674 #include "confdefs.h"
9676 #ifdef F77_DUMMY_MAIN
9680 int F77_DUMMY_MAIN() { return 1; }
9690 rm -f conftest.$ac_objext conftest$ac_exeext
9691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9692 (eval $ac_link) 2>&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); } &&
9696 { ac_try='test -s conftest$ac_exeext'
9697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); }; }; then
9702 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_kdctimeofday=$ac_lib; else ac_cv_funclib_krb_kdctimeofday=yes; fi";break
9704 echo "$as_me: failed program was:" >&5
9705 cat conftest.$ac_ext >&5
9707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9709 eval "ac_cv_funclib_krb_kdctimeofday=\${ac_cv_funclib_krb_kdctimeofday-no}"
9710 LIBS="$ac_save_LIBS"
9716 eval "ac_res=\$ac_cv_funclib_krb_kdctimeofday"
9720 for ac_func in krb_kdctimeofday
9722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9723 echo "$as_me:$LINENO: checking for $ac_func" >&5
9724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9725 if eval "test \"\${$as_ac_var+set}\" = set"; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
9728 cat >conftest.$ac_ext <<_ACEOF
9729 #line $LINENO "configure"
9730 #include "confdefs.h"
9731 /* System header to define __stub macros and hopefully few prototypes,
9732 which can conflict with char $ac_func (); below. */
9734 /* Override any gcc2 internal prototype to avoid an error. */
9738 /* We use char because int might match the return type of a gcc2
9739 builtin and then its argument prototype would still apply. */
9743 #ifdef F77_DUMMY_MAIN
9747 int F77_DUMMY_MAIN() { return 1; }
9752 /* The GNU C library defines this for functions which it implements
9753 to always fail with ENOSYS. Some functions are actually named
9754 something starting with __ and the normal name is an alias. */
9755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9765 rm -f conftest.$ac_objext conftest$ac_exeext
9766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9767 (eval $ac_link) 2>&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } &&
9771 { ac_try='test -s conftest$ac_exeext'
9772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; }; then
9777 eval "$as_ac_var=yes"
9779 echo "$as_me: failed program was:" >&5
9780 cat conftest.$ac_ext >&5
9781 eval "$as_ac_var=no"
9783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9786 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9787 if test `eval echo '${'$as_ac_var'}'` = yes; then
9788 cat >>confdefs.h <<_ACEOF
9789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9797 eval "ac_tr_func=HAVE_`echo krb_kdctimeofday | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9798 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9799 eval "LIB_krb_kdctimeofday=$ac_res"
9803 eval "ac_cv_func_krb_kdctimeofday=yes"
9804 eval "LIB_krb_kdctimeofday="
9805 cat >>confdefs.h <<_ACEOF
9806 #define $ac_tr_func 1
9809 echo "$as_me:$LINENO: result: yes" >&5
9810 echo "${ECHO_T}yes" >&6
9813 eval "ac_cv_func_krb_kdctimeofday=no"
9814 eval "LIB_krb_kdctimeofday="
9815 echo "$as_me:$LINENO: result: no" >&5
9816 echo "${ECHO_T}no" >&6
9819 eval "ac_cv_func_krb_kdctimeofday=yes"
9820 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
9821 cat >>confdefs.h <<_ACEOF
9822 #define $ac_tr_func 1
9825 cat >>confdefs.h <<_ACEOF
9826 #define $ac_tr_lib 1
9829 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
9830 echo "${ECHO_T}yes, in $ac_res" >&6
9835 if test -n "$LIB_krb_kdctimeofday"; then
9836 LIBS="$LIB_krb_kdctimeofday $LIBS"
9845 echo "$as_me:$LINENO: checking for krb_get_kdc_time_diff" >&5
9846 echo $ECHO_N "checking for krb_get_kdc_time_diff... $ECHO_C" >&6
9847 if test "${ac_cv_funclib_krb_get_kdc_time_diff+set}" = set; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
9851 if eval "test \"\$ac_cv_func_krb_get_kdc_time_diff\" != yes" ; then
9852 ac_save_LIBS="$LIBS"
9853 for ac_lib in "" ; do
9859 *) ac_lib="-l$ac_lib" ;;
9861 LIBS=" $ac_lib $ac_save_LIBS"
9862 cat >conftest.$ac_ext <<_ACEOF
9863 #line $LINENO "configure"
9864 #include "confdefs.h"
9866 #ifdef F77_DUMMY_MAIN
9870 int F77_DUMMY_MAIN() { return 1; }
9875 krb_get_kdc_time_diff()
9880 rm -f conftest.$ac_objext conftest$ac_exeext
9881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9882 (eval $ac_link) 2>&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); } &&
9886 { ac_try='test -s conftest$ac_exeext'
9887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; }; then
9892 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_kdc_time_diff=$ac_lib; else ac_cv_funclib_krb_get_kdc_time_diff=yes; fi";break
9894 echo "$as_me: failed program was:" >&5
9895 cat conftest.$ac_ext >&5
9897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9899 eval "ac_cv_funclib_krb_get_kdc_time_diff=\${ac_cv_funclib_krb_get_kdc_time_diff-no}"
9900 LIBS="$ac_save_LIBS"
9906 eval "ac_res=\$ac_cv_funclib_krb_get_kdc_time_diff"
9910 for ac_func in krb_get_kdc_time_diff
9912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9913 echo "$as_me:$LINENO: checking for $ac_func" >&5
9914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9915 if eval "test \"\${$as_ac_var+set}\" = set"; then
9916 echo $ECHO_N "(cached) $ECHO_C" >&6
9918 cat >conftest.$ac_ext <<_ACEOF
9919 #line $LINENO "configure"
9920 #include "confdefs.h"
9921 /* System header to define __stub macros and hopefully few prototypes,
9922 which can conflict with char $ac_func (); below. */
9924 /* Override any gcc2 internal prototype to avoid an error. */
9928 /* We use char because int might match the return type of a gcc2
9929 builtin and then its argument prototype would still apply. */
9933 #ifdef F77_DUMMY_MAIN
9937 int F77_DUMMY_MAIN() { return 1; }
9942 /* The GNU C library defines this for functions which it implements
9943 to always fail with ENOSYS. Some functions are actually named
9944 something starting with __ and the normal name is an alias. */
9945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9955 rm -f conftest.$ac_objext conftest$ac_exeext
9956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9957 (eval $ac_link) 2>&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } &&
9961 { ac_try='test -s conftest$ac_exeext'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; }; then
9967 eval "$as_ac_var=yes"
9969 echo "$as_me: failed program was:" >&5
9970 cat conftest.$ac_ext >&5
9971 eval "$as_ac_var=no"
9973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9977 if test `eval echo '${'$as_ac_var'}'` = yes; then
9978 cat >>confdefs.h <<_ACEOF
9979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9986 # krb_get_kdc_time_diff
9987 eval "ac_tr_func=HAVE_`echo krb_get_kdc_time_diff | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9988 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9989 eval "LIB_krb_get_kdc_time_diff=$ac_res"
9993 eval "ac_cv_func_krb_get_kdc_time_diff=yes"
9994 eval "LIB_krb_get_kdc_time_diff="
9995 cat >>confdefs.h <<_ACEOF
9996 #define $ac_tr_func 1
9999 echo "$as_me:$LINENO: result: yes" >&5
10000 echo "${ECHO_T}yes" >&6
10003 eval "ac_cv_func_krb_get_kdc_time_diff=no"
10004 eval "LIB_krb_get_kdc_time_diff="
10005 echo "$as_me:$LINENO: result: no" >&5
10006 echo "${ECHO_T}no" >&6
10009 eval "ac_cv_func_krb_get_kdc_time_diff=yes"
10010 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
10011 cat >>confdefs.h <<_ACEOF
10012 #define $ac_tr_func 1
10015 cat >>confdefs.h <<_ACEOF
10016 #define $ac_tr_lib 1
10019 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
10020 echo "${ECHO_T}yes, in $ac_res" >&6
10025 if test -n "$LIB_krb_get_kdc_time_diff"; then
10026 LIBS="$LIB_krb_get_kdc_time_diff $LIBS"
10031 echo "$as_me:$LINENO: checking for KRB_SENDAUTH_VERS" >&5
10032 echo $ECHO_N "checking for KRB_SENDAUTH_VERS... $ECHO_C" >&6
10033 if test "${ac_cv_func_krb_sendauth_vers+set}" = set; then
10034 echo $ECHO_N "(cached) $ECHO_C" >&6
10036 cat >conftest.$ac_ext <<_ACEOF
10037 #line $LINENO "configure"
10038 #include "confdefs.h"
10041 #ifdef F77_DUMMY_MAIN
10042 # ifdef __cplusplus
10045 int F77_DUMMY_MAIN() { return 1; }
10051 char *x = KRB_SENDAUTH_VERS
10056 rm -f conftest.$ac_objext
10057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10058 (eval $ac_compile) 2>&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); } &&
10062 { ac_try='test -s conftest.$ac_objext'
10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064 (eval $ac_try) 2>&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; }; then
10068 ac_cv_func_krb_sendauth_vers=yes
10070 echo "$as_me: failed program was:" >&5
10071 cat conftest.$ac_ext >&5
10072 ac_cv_func_krb_sendauth_vers=no
10074 rm -f conftest.$ac_objext conftest.$ac_ext
10077 echo "$as_me:$LINENO: result: $ac_cv_func_krb_sendauth_vers" >&5
10078 echo "${ECHO_T}$ac_cv_func_krb_sendauth_vers" >&6
10079 if test "$ac_cv_func_krb_sendauth_vers" != yes; then
10081 cat >>confdefs.h <<\_ACEOF
10082 #define KRB_SENDAUTH_VERS "AUTHV0.1"
10086 echo "$as_me:$LINENO: checking for krb_mk_req with const arguments" >&5
10087 echo $ECHO_N "checking for krb_mk_req with const arguments... $ECHO_C" >&6
10088 if test "${ac_cv_func_krb_mk_req_const+set}" = set; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10091 cat >conftest.$ac_ext <<_ACEOF
10092 #line $LINENO "configure"
10093 #include "confdefs.h"
10095 int krb_mk_req(KTEXT a, const char *s, const char *i,
10096 const char *r, int32_t checksum)
10098 #ifdef F77_DUMMY_MAIN
10099 # ifdef __cplusplus
10102 int F77_DUMMY_MAIN() { return 1; }
10112 rm -f conftest.$ac_objext
10113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10114 (eval $ac_compile) 2>&5
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } &&
10118 { ac_try='test -s conftest.$ac_objext'
10119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120 (eval $ac_try) 2>&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); }; }; then
10124 ac_cv_func_krb_mk_req_const=yes
10126 echo "$as_me: failed program was:" >&5
10127 cat conftest.$ac_ext >&5
10128 ac_cv_func_krb_mk_req_const=no
10130 rm -f conftest.$ac_objext conftest.$ac_ext
10133 echo "$as_me:$LINENO: result: $ac_cv_func_krb_mk_req_const" >&5
10134 echo "${ECHO_T}$ac_cv_func_krb_mk_req_const" >&6
10135 if test "$ac_cv_func_krb_mk_req_const" = "yes"; then
10137 cat >>confdefs.h <<\_ACEOF
10138 #define KRB_MK_REQ_CONST 1
10144 CFLAGS="$save_CFLAGS"
10145 LIB_kdb="-lkdb -lkrb"
10149 if test "$with_krb4" != "no"; then
10170 do_roken_rename_TRUE=
10171 do_roken_rename_FALSE='#'
10173 do_roken_rename_TRUE='#'
10174 do_roken_rename_FALSE=
10179 cat >>confdefs.h <<\_ACEOF
10187 # Check whether --with-openssl or --without-openssl was given.
10188 if test "${with_openssl+set}" = set; then
10189 withval="$with_openssl"
10194 # Check whether --with-openssl-lib or --without-openssl-lib was given.
10195 if test "${with_openssl_lib+set}" = set; then
10196 withval="$with_openssl_lib"
10197 if test "$withval" = "yes" -o "$withval" = "no"; then
10198 { { echo "$as_me:$LINENO: error: No argument for --with-openssl-lib" >&5
10199 echo "$as_me: error: No argument for --with-openssl-lib" >&2;}
10200 { (exit 1); exit 1; }; }
10201 elif test "X$with_openssl" = "X"; then
10207 # Check whether --with-openssl-include or --without-openssl-include was given.
10208 if test "${with_openssl_include+set}" = set; then
10209 withval="$with_openssl_include"
10210 if test "$withval" = "yes" -o "$withval" = "no"; then
10211 { { echo "$as_me:$LINENO: error: No argument for --with-openssl-include" >&5
10212 echo "$as_me: error: No argument for --with-openssl-include" >&2;}
10213 { (exit 1); exit 1; }; }
10214 elif test "X$with_openssl" = "X"; then
10219 case "$with_openssl" in
10223 *) if test "$with_openssl_include" = ""; then
10224 with_openssl_include="$with_openssl/include"
10226 if test "$with_openssl_lib" = ""; then
10227 with_openssl_lib="$with_openssl/lib$abilibdirext"
10235 echo "$as_me:$LINENO: checking for crypto library" >&5
10236 echo $ECHO_N "checking for crypto library... $ECHO_C" >&6
10241 if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then
10242 save_CPPFLAGS="$CPPFLAGS"
10246 for i in $LIB_krb4; do
10248 -L*) cdirs="$cdirs $i";;
10249 -l*) clibs="$clibs $i";;
10254 for i in $INCLUDE_krb4; do
10255 CFLAGS="-DHAVE_OPENSSL $i $save_CFLAGS"
10256 cat >conftest.$ac_ext <<_ACEOF
10257 #line $LINENO "configure"
10258 #include "confdefs.h"
10260 #undef KRB5 /* makes md4.h et al unhappy */
10261 #ifdef HAVE_OPENSSL
10262 #include <openssl/md4.h>
10263 #include <openssl/md5.h>
10264 #include <openssl/sha.h>
10265 #include <openssl/des.h>
10266 #include <openssl/rc4.h>
10274 #ifdef OLD_HASH_NAMES
10275 typedef struct md4 MD4_CTX;
10276 #define MD4_Init(C) md4_init((C))
10277 #define MD4_Update(C, D, L) md4_update((C), (D), (L))
10278 #define MD4_Final(D, C) md4_finito((C), (D))
10279 typedef struct md5 MD5_CTX;
10280 #define MD5_Init(C) md5_init((C))
10281 #define MD5_Update(C, D, L) md5_update((C), (D), (L))
10282 #define MD5_Final(D, C) md5_finito((C), (D))
10283 typedef struct sha SHA_CTX;
10284 #define SHA1_Init(C) sha_init((C))
10285 #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
10286 #define SHA1_Final(D, C) sha_finito((C), (D))
10289 #ifdef F77_DUMMY_MAIN
10290 # ifdef __cplusplus
10293 int F77_DUMMY_MAIN() { return 1; }
10299 void *schedule = 0;
10308 des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
10314 rm -f conftest.$ac_objext
10315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10316 (eval $ac_compile) 2>&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); } &&
10320 { ac_try='test -s conftest.$ac_objext'
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322 (eval $ac_try) 2>&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; }; then
10326 openssl=yes ires="$i"; break
10328 echo "$as_me: failed program was:" >&5
10329 cat conftest.$ac_ext >&5
10331 rm -f conftest.$ac_objext conftest.$ac_ext
10332 CFLAGS="$i $save_CFLAGS"
10333 cat >conftest.$ac_ext <<_ACEOF
10334 #line $LINENO "configure"
10335 #include "confdefs.h"
10337 #undef KRB5 /* makes md4.h et al unhappy */
10338 #ifdef HAVE_OPENSSL
10339 #include <openssl/md4.h>
10340 #include <openssl/md5.h>
10341 #include <openssl/sha.h>
10342 #include <openssl/des.h>
10343 #include <openssl/rc4.h>
10351 #ifdef OLD_HASH_NAMES
10352 typedef struct md4 MD4_CTX;
10353 #define MD4_Init(C) md4_init((C))
10354 #define MD4_Update(C, D, L) md4_update((C), (D), (L))
10355 #define MD4_Final(D, C) md4_finito((C), (D))
10356 typedef struct md5 MD5_CTX;
10357 #define MD5_Init(C) md5_init((C))
10358 #define MD5_Update(C, D, L) md5_update((C), (D), (L))
10359 #define MD5_Final(D, C) md5_finito((C), (D))
10360 typedef struct sha SHA_CTX;
10361 #define SHA1_Init(C) sha_init((C))
10362 #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
10363 #define SHA1_Final(D, C) sha_finito((C), (D))
10366 #ifdef F77_DUMMY_MAIN
10367 # ifdef __cplusplus
10370 int F77_DUMMY_MAIN() { return 1; }
10376 void *schedule = 0;
10385 des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
10391 rm -f conftest.$ac_objext
10392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10393 (eval $ac_compile) 2>&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } &&
10397 { ac_try='test -s conftest.$ac_objext'
10398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399 (eval $ac_try) 2>&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; }; then
10403 openssl=no ires="$i"; break
10405 echo "$as_me: failed program was:" >&5
10406 cat conftest.$ac_ext >&5
10408 rm -f conftest.$ac_objext conftest.$ac_ext
10409 CFLAGS="-DOLD_HASH_NAMES $i $save_CFLAGS"
10410 cat >conftest.$ac_ext <<_ACEOF
10411 #line $LINENO "configure"
10412 #include "confdefs.h"
10414 #undef KRB5 /* makes md4.h et al unhappy */
10415 #ifdef HAVE_OPENSSL
10416 #include <openssl/md4.h>
10417 #include <openssl/md5.h>
10418 #include <openssl/sha.h>
10419 #include <openssl/des.h>
10420 #include <openssl/rc4.h>
10428 #ifdef OLD_HASH_NAMES
10429 typedef struct md4 MD4_CTX;
10430 #define MD4_Init(C) md4_init((C))
10431 #define MD4_Update(C, D, L) md4_update((C), (D), (L))
10432 #define MD4_Final(D, C) md4_finito((C), (D))
10433 typedef struct md5 MD5_CTX;
10434 #define MD5_Init(C) md5_init((C))
10435 #define MD5_Update(C, D, L) md5_update((C), (D), (L))
10436 #define MD5_Final(D, C) md5_finito((C), (D))
10437 typedef struct sha SHA_CTX;
10438 #define SHA1_Init(C) sha_init((C))
10439 #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
10440 #define SHA1_Final(D, C) sha_finito((C), (D))
10443 #ifdef F77_DUMMY_MAIN
10444 # ifdef __cplusplus
10447 int F77_DUMMY_MAIN() { return 1; }
10453 void *schedule = 0;
10462 des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
10468 rm -f conftest.$ac_objext
10469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10470 (eval $ac_compile) 2>&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } &&
10474 { ac_try='test -s conftest.$ac_objext'
10475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476 (eval $ac_try) 2>&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); }; }; then
10480 openssl=no ires="$i" old_hash=yes; break
10482 echo "$as_me: failed program was:" >&5
10483 cat conftest.$ac_ext >&5
10485 rm -f conftest.$ac_objext conftest.$ac_ext
10488 for i in $cdirs; do
10489 for j in $clibs; do
10490 LIBS="$i $j $save_LIBS"
10491 cat >conftest.$ac_ext <<_ACEOF
10492 #line $LINENO "configure"
10493 #include "confdefs.h"
10495 #undef KRB5 /* makes md4.h et al unhappy */
10496 #ifdef HAVE_OPENSSL
10497 #include <openssl/md4.h>
10498 #include <openssl/md5.h>
10499 #include <openssl/sha.h>
10500 #include <openssl/des.h>
10501 #include <openssl/rc4.h>
10509 #ifdef OLD_HASH_NAMES
10510 typedef struct md4 MD4_CTX;
10511 #define MD4_Init(C) md4_init((C))
10512 #define MD4_Update(C, D, L) md4_update((C), (D), (L))
10513 #define MD4_Final(D, C) md4_finito((C), (D))
10514 typedef struct md5 MD5_CTX;
10515 #define MD5_Init(C) md5_init((C))
10516 #define MD5_Update(C, D, L) md5_update((C), (D), (L))
10517 #define MD5_Final(D, C) md5_finito((C), (D))
10518 typedef struct sha SHA_CTX;
10519 #define SHA1_Init(C) sha_init((C))
10520 #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
10521 #define SHA1_Final(D, C) sha_finito((C), (D))
10524 #ifdef F77_DUMMY_MAIN
10525 # ifdef __cplusplus
10528 int F77_DUMMY_MAIN() { return 1; }
10534 void *schedule = 0;
10543 des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
10549 rm -f conftest.$ac_objext conftest$ac_exeext
10550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10551 (eval $ac_link) 2>&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); } &&
10555 { ac_try='test -s conftest$ac_exeext'
10556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10557 (eval $ac_try) 2>&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); }; }; then
10561 lres="$i $j"; break 2
10563 echo "$as_me: failed program was:" >&5
10564 cat conftest.$ac_ext >&5
10566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10569 CFLAGS="$save_CFLAGS"
10571 if test "$ires" -a "$lres"; then
10572 INCLUDE_des="$ires"
10575 echo "$as_me:$LINENO: result: same as krb4" >&5
10576 echo "${ECHO_T}same as krb4" >&6
10577 LIB_des_a='$(LIB_des)'
10578 LIB_des_so='$(LIB_des)'
10579 LIB_des_appl='$(LIB_des)'
10583 if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then
10584 save_CFLAGS="$CFLAGS"
10588 if test "$with_openssl_include" != ""; then
10589 INCLUDE_des="-I${with_openssl}/include"
10591 if test "$with_openssl_lib" != ""; then
10592 LIB_des="-L${with_openssl}/lib"
10594 CFLAGS="-DHAVE_OPENSSL ${INCLUDE_des} ${CFLAGS}"
10595 LIB_des="${LIB_des} -lcrypto"
10596 LIB_des_a="$LIB_des"
10597 LIB_des_so="$LIB_des"
10598 LIB_des_appl="$LIB_des"
10599 LIBS="${LIBS} ${LIB_des}"
10600 cat >conftest.$ac_ext <<_ACEOF
10601 #line $LINENO "configure"
10602 #include "confdefs.h"
10604 #undef KRB5 /* makes md4.h et al unhappy */
10605 #ifdef HAVE_OPENSSL
10606 #include <openssl/md4.h>
10607 #include <openssl/md5.h>
10608 #include <openssl/sha.h>
10609 #include <openssl/des.h>
10610 #include <openssl/rc4.h>
10618 #ifdef OLD_HASH_NAMES
10619 typedef struct md4 MD4_CTX;
10620 #define MD4_Init(C) md4_init((C))
10621 #define MD4_Update(C, D, L) md4_update((C), (D), (L))
10622 #define MD4_Final(D, C) md4_finito((C), (D))
10623 typedef struct md5 MD5_CTX;
10624 #define MD5_Init(C) md5_init((C))
10625 #define MD5_Update(C, D, L) md5_update((C), (D), (L))
10626 #define MD5_Final(D, C) md5_finito((C), (D))
10627 typedef struct sha SHA_CTX;
10628 #define SHA1_Init(C) sha_init((C))
10629 #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
10630 #define SHA1_Final(D, C) sha_finito((C), (D))
10633 #ifdef F77_DUMMY_MAIN
10634 # ifdef __cplusplus
10637 int F77_DUMMY_MAIN() { return 1; }
10643 void *schedule = 0;
10652 des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
10658 rm -f conftest.$ac_objext conftest$ac_exeext
10659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10660 (eval $ac_link) 2>&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } &&
10664 { ac_try='test -s conftest$ac_exeext'
10665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); }; }; then
10671 crypto_lib=libcrypto openssl=yes
10672 echo "$as_me:$LINENO: result: libcrypto" >&5
10673 echo "${ECHO_T}libcrypto" >&6
10676 echo "$as_me: failed program was:" >&5
10677 cat conftest.$ac_ext >&5
10679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10680 CFLAGS="$save_CFLAGS"
10684 if test "$crypto_lib" = "unknown"; then
10687 LIB_des='$(top_builddir)/lib/des/libdes.la'
10688 LIB_des_a='$(top_builddir)/lib/des/.libs/libdes.a'
10689 LIB_des_so='$(top_builddir)/lib/des/.libs/libdes.so'
10690 LIB_des_appl="-ldes"
10692 echo "$as_me:$LINENO: result: included libdes" >&5
10693 echo "${ECHO_T}included libdes" >&6
10697 if test "$with_krb4" != no -a "$crypto_lib" != krb4; then
10698 { { echo "$as_me:$LINENO: error: the crypto library used by krb4 lacks features
10699 required by Kerberos 5; to continue, you need to install a newer
10700 Kerberos 4 or configure --without-krb4" >&5
10701 echo "$as_me: error: the crypto library used by krb4 lacks features
10702 required by Kerberos 5; to continue, you need to install a newer
10703 Kerberos 4 or configure --without-krb4" >&2;}
10704 { (exit 1); exit 1; }; }
10707 if test "$openssl" = "yes"; then
10709 cat >>confdefs.h <<\_ACEOF
10710 #define HAVE_OPENSSL 1
10714 if test "$old_hash" = yes; then
10716 cat >>confdefs.h <<\_ACEOF
10717 #define HAVE_OLD_HASH_NAMES 1
10723 if test "$openssl" = yes; then
10725 HAVE_OPENSSL_FALSE='#'
10727 HAVE_OPENSSL_TRUE='#'
10728 HAVE_OPENSSL_FALSE=
10739 # Check whether --enable-dce or --disable-dce was given.
10740 if test "${enable_dce+set}" = set; then
10741 enableval="$enable_dce"
10744 if test "$enable_dce" = yes; then
10746 cat >>confdefs.h <<\_ACEOF
10753 if test "$enable_dce" = yes; then
10762 ## XXX quite horrible:
10763 if test -f /etc/ibmcxx.cfg; then
10764 dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'`
10765 dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
10768 dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
10769 dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
10770 dpagaix_ldflags="-Wl,-bI:dfspag.exp"
10777 # Check whether --enable-berkeley-db or --disable-berkeley-db was given.
10778 if test "${enable_berkeley_db+set}" = set; then
10779 enableval="$enable_berkeley_db"
10787 if test "$enable_berkeley_db" != no; then
10800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10802 echo "$as_me:$LINENO: checking for $ac_header" >&5
10803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10810 # Is the header compilable?
10811 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10813 cat >conftest.$ac_ext <<_ACEOF
10814 #line $LINENO "configure"
10815 #include "confdefs.h"
10816 $ac_includes_default
10817 #include <$ac_header>
10819 rm -f conftest.$ac_objext
10820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10821 (eval $ac_compile) 2>&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); } &&
10825 { ac_try='test -s conftest.$ac_objext'
10826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827 (eval $ac_try) 2>&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
10831 ac_header_compiler=yes
10833 echo "$as_me: failed program was:" >&5
10834 cat conftest.$ac_ext >&5
10835 ac_header_compiler=no
10837 rm -f conftest.$ac_objext conftest.$ac_ext
10838 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10839 echo "${ECHO_T}$ac_header_compiler" >&6
10841 # Is the header present?
10842 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10844 cat >conftest.$ac_ext <<_ACEOF
10845 #line $LINENO "configure"
10846 #include "confdefs.h"
10847 #include <$ac_header>
10849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10852 egrep -v '^ *\+' conftest.er1 >conftest.err
10854 cat conftest.err >&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } >/dev/null; then
10857 if test -s conftest.err; then
10858 ac_cpp_err=$ac_c_preproc_warn_flag
10865 if test -z "$ac_cpp_err"; then
10866 ac_header_preproc=yes
10868 echo "$as_me: failed program was:" >&5
10869 cat conftest.$ac_ext >&5
10870 ac_header_preproc=no
10872 rm -f conftest.err conftest.$ac_ext
10873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10874 echo "${ECHO_T}$ac_header_preproc" >&6
10876 # So? What about this header?
10877 case $ac_header_compiler:$ac_header_preproc in
10879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10887 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10891 echo "$as_me:$LINENO: checking for $ac_header" >&5
10892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10896 eval "$as_ac_Header=$ac_header_preproc"
10898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10903 cat >>confdefs.h <<_ACEOF
10904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10916 echo "$as_me:$LINENO: checking for db_create" >&5
10917 echo $ECHO_N "checking for db_create... $ECHO_C" >&6
10918 if test "${ac_cv_funclib_db_create+set}" = set; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10922 if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
10923 ac_save_LIBS="$LIBS"
10924 for ac_lib in "" db4 db3 db; do
10930 *) ac_lib="-l$ac_lib" ;;
10932 LIBS=" $ac_lib $ac_save_LIBS"
10933 cat >conftest.$ac_ext <<_ACEOF
10934 #line $LINENO "configure"
10935 #include "confdefs.h"
10938 #ifdef HAVE_DB4_DB_H
10939 #include <db4/db.h>
10940 #elif defined(HAVE_DB3_DB_H)
10941 #include <db3/db.h>
10946 #ifdef F77_DUMMY_MAIN
10947 # ifdef __cplusplus
10950 int F77_DUMMY_MAIN() { return 1; }
10955 db_create(NULL, NULL, 0)
10960 rm -f conftest.$ac_objext conftest$ac_exeext
10961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10962 (eval $ac_link) 2>&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); } &&
10966 { ac_try='test -s conftest$ac_exeext'
10967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10968 (eval $ac_try) 2>&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); }; }; then
10972 eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
10974 echo "$as_me: failed program was:" >&5
10975 cat conftest.$ac_ext >&5
10977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10979 eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
10980 LIBS="$ac_save_LIBS"
10986 eval "ac_res=\$ac_cv_funclib_db_create"
10990 for ac_func in db_create
10992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10993 echo "$as_me:$LINENO: checking for $ac_func" >&5
10994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10995 if eval "test \"\${$as_ac_var+set}\" = set"; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6
10998 cat >conftest.$ac_ext <<_ACEOF
10999 #line $LINENO "configure"
11000 #include "confdefs.h"
11001 /* System header to define __stub macros and hopefully few prototypes,
11002 which can conflict with char $ac_func (); below. */
11003 #include <assert.h>
11004 /* Override any gcc2 internal prototype to avoid an error. */
11008 /* We use char because int might match the return type of a gcc2
11009 builtin and then its argument prototype would still apply. */
11013 #ifdef F77_DUMMY_MAIN
11014 # ifdef __cplusplus
11017 int F77_DUMMY_MAIN() { return 1; }
11022 /* The GNU C library defines this for functions which it implements
11023 to always fail with ENOSYS. Some functions are actually named
11024 something starting with __ and the normal name is an alias. */
11025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11035 rm -f conftest.$ac_objext conftest$ac_exeext
11036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11037 (eval $ac_link) 2>&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); } &&
11041 { ac_try='test -s 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 eval "$as_ac_var=yes"
11049 echo "$as_me: failed program was:" >&5
11050 cat conftest.$ac_ext >&5
11051 eval "$as_ac_var=no"
11053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11057 if test `eval echo '${'$as_ac_var'}'` = yes; then
11058 cat >>confdefs.h <<_ACEOF
11059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11067 eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11068 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11069 eval "LIB_db_create=$ac_res"
11073 eval "ac_cv_func_db_create=yes"
11074 eval "LIB_db_create="
11075 cat >>confdefs.h <<_ACEOF
11076 #define $ac_tr_func 1
11079 echo "$as_me:$LINENO: result: yes" >&5
11080 echo "${ECHO_T}yes" >&6
11083 eval "ac_cv_func_db_create=no"
11084 eval "LIB_db_create="
11085 echo "$as_me:$LINENO: result: no" >&5
11086 echo "${ECHO_T}no" >&6
11089 eval "ac_cv_func_db_create=yes"
11090 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11091 cat >>confdefs.h <<_ACEOF
11092 #define $ac_tr_func 1
11095 cat >>confdefs.h <<_ACEOF
11096 #define $ac_tr_lib 1
11099 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
11100 echo "${ECHO_T}yes, in $ac_res" >&6
11106 if test "$ac_cv_func_db_create" = "yes"; then
11108 if test "$ac_cv_funclib_db_create" != "yes"; then
11109 DBLIB="$ac_cv_funclib_db_create"
11114 cat >>confdefs.h <<\_ACEOF
11124 echo "$as_me:$LINENO: checking for dbopen" >&5
11125 echo $ECHO_N "checking for dbopen... $ECHO_C" >&6
11126 if test "${ac_cv_funclib_dbopen+set}" = set; then
11127 echo $ECHO_N "(cached) $ECHO_C" >&6
11130 if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
11131 ac_save_LIBS="$LIBS"
11132 for ac_lib in "" db2 db; do
11138 *) ac_lib="-l$ac_lib" ;;
11140 LIBS=" $ac_lib $ac_save_LIBS"
11141 cat >conftest.$ac_ext <<_ACEOF
11142 #line $LINENO "configure"
11143 #include "confdefs.h"
11146 #if defined(HAVE_DB2_DB_H)
11147 #include <db2/db.h>
11148 #elif defined(HAVE_DB_185_H)
11149 #include <db_185.h>
11150 #elif defined(HAVE_DB_H)
11156 #ifdef F77_DUMMY_MAIN
11157 # ifdef __cplusplus
11160 int F77_DUMMY_MAIN() { return 1; }
11165 dbopen(NULL, 0, 0, 0, NULL)
11170 rm -f conftest.$ac_objext conftest$ac_exeext
11171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11172 (eval $ac_link) 2>&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } &&
11176 { ac_try='test -s conftest$ac_exeext'
11177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11178 (eval $ac_try) 2>&5
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; }; then
11182 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
11184 echo "$as_me: failed program was:" >&5
11185 cat conftest.$ac_ext >&5
11187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11189 eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
11190 LIBS="$ac_save_LIBS"
11196 eval "ac_res=\$ac_cv_funclib_dbopen"
11200 for ac_func in dbopen
11202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11203 echo "$as_me:$LINENO: checking for $ac_func" >&5
11204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11205 if eval "test \"\${$as_ac_var+set}\" = set"; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11208 cat >conftest.$ac_ext <<_ACEOF
11209 #line $LINENO "configure"
11210 #include "confdefs.h"
11211 /* System header to define __stub macros and hopefully few prototypes,
11212 which can conflict with char $ac_func (); below. */
11213 #include <assert.h>
11214 /* Override any gcc2 internal prototype to avoid an error. */
11218 /* We use char because int might match the return type of a gcc2
11219 builtin and then its argument prototype would still apply. */
11223 #ifdef F77_DUMMY_MAIN
11224 # ifdef __cplusplus
11227 int F77_DUMMY_MAIN() { return 1; }
11232 /* The GNU C library defines this for functions which it implements
11233 to always fail with ENOSYS. Some functions are actually named
11234 something starting with __ and the normal name is an alias. */
11235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11245 rm -f conftest.$ac_objext conftest$ac_exeext
11246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11247 (eval $ac_link) 2>&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } &&
11251 { ac_try='test -s conftest$ac_exeext'
11252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11253 (eval $ac_try) 2>&5
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); }; }; then
11257 eval "$as_ac_var=yes"
11259 echo "$as_me: failed program was:" >&5
11260 cat conftest.$ac_ext >&5
11261 eval "$as_ac_var=no"
11263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11267 if test `eval echo '${'$as_ac_var'}'` = yes; then
11268 cat >>confdefs.h <<_ACEOF
11269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11277 eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11278 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11279 eval "LIB_dbopen=$ac_res"
11283 eval "ac_cv_func_dbopen=yes"
11285 cat >>confdefs.h <<_ACEOF
11286 #define $ac_tr_func 1
11289 echo "$as_me:$LINENO: result: yes" >&5
11290 echo "${ECHO_T}yes" >&6
11293 eval "ac_cv_func_dbopen=no"
11295 echo "$as_me:$LINENO: result: no" >&5
11296 echo "${ECHO_T}no" >&6
11299 eval "ac_cv_func_dbopen=yes"
11300 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11301 cat >>confdefs.h <<_ACEOF
11302 #define $ac_tr_func 1
11305 cat >>confdefs.h <<_ACEOF
11306 #define $ac_tr_lib 1
11309 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
11310 echo "${ECHO_T}yes, in $ac_res" >&6
11316 if test "$ac_cv_func_dbopen" = "yes"; then
11318 if test "$ac_cv_funclib_dbopen" != "yes"; then
11319 DBLIB="$ac_cv_funclib_dbopen"
11324 cat >>confdefs.h <<\_ACEOF
11332 if test "$ac_cv_func_dbm_firstkey" != yes; then
11335 echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
11336 echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
11337 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11341 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
11342 ac_save_LIBS="$LIBS"
11343 for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do
11349 *) ac_lib="-l$ac_lib" ;;
11351 LIBS=" $ac_lib $ac_save_LIBS"
11352 cat >conftest.$ac_ext <<_ACEOF
11353 #line $LINENO "configure"
11354 #include "confdefs.h"
11357 #define DB_DBM_HSEARCH 1
11361 #ifdef F77_DUMMY_MAIN
11362 # ifdef __cplusplus
11365 int F77_DUMMY_MAIN() { return 1; }
11375 rm -f conftest.$ac_objext conftest$ac_exeext
11376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11377 (eval $ac_link) 2>&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); } &&
11381 { ac_try='test -s conftest$ac_exeext'
11382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11383 (eval $ac_try) 2>&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); }; }; then
11387 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
11389 echo "$as_me: failed program was:" >&5
11390 cat conftest.$ac_ext >&5
11392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11394 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
11395 LIBS="$ac_save_LIBS"
11401 eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
11405 for ac_func in dbm_firstkey
11407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11408 echo "$as_me:$LINENO: checking for $ac_func" >&5
11409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11410 if eval "test \"\${$as_ac_var+set}\" = set"; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11413 cat >conftest.$ac_ext <<_ACEOF
11414 #line $LINENO "configure"
11415 #include "confdefs.h"
11416 /* System header to define __stub macros and hopefully few prototypes,
11417 which can conflict with char $ac_func (); below. */
11418 #include <assert.h>
11419 /* Override any gcc2 internal prototype to avoid an error. */
11423 /* We use char because int might match the return type of a gcc2
11424 builtin and then its argument prototype would still apply. */
11428 #ifdef F77_DUMMY_MAIN
11429 # ifdef __cplusplus
11432 int F77_DUMMY_MAIN() { return 1; }
11437 /* The GNU C library defines this for functions which it implements
11438 to always fail with ENOSYS. Some functions are actually named
11439 something starting with __ and the normal name is an alias. */
11440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11450 rm -f conftest.$ac_objext conftest$ac_exeext
11451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11452 (eval $ac_link) 2>&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } &&
11456 { ac_try='test -s conftest$ac_exeext'
11457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458 (eval $ac_try) 2>&5
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; }; then
11462 eval "$as_ac_var=yes"
11464 echo "$as_me: failed program was:" >&5
11465 cat conftest.$ac_ext >&5
11466 eval "$as_ac_var=no"
11468 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11471 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11472 if test `eval echo '${'$as_ac_var'}'` = yes; then
11473 cat >>confdefs.h <<_ACEOF
11474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11482 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11483 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11484 eval "LIB_dbm_firstkey=$ac_res"
11488 eval "ac_cv_func_dbm_firstkey=yes"
11489 eval "LIB_dbm_firstkey="
11490 cat >>confdefs.h <<_ACEOF
11491 #define $ac_tr_func 1
11494 echo "$as_me:$LINENO: result: yes" >&5
11495 echo "${ECHO_T}yes" >&6
11498 eval "ac_cv_func_dbm_firstkey=no"
11499 eval "LIB_dbm_firstkey="
11500 echo "$as_me:$LINENO: result: no" >&5
11501 echo "${ECHO_T}no" >&6
11504 eval "ac_cv_func_dbm_firstkey=yes"
11505 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11506 cat >>confdefs.h <<_ACEOF
11507 #define $ac_tr_func 1
11510 cat >>confdefs.h <<_ACEOF
11511 #define $ac_tr_lib 1
11514 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
11515 echo "${ECHO_T}yes, in $ac_res" >&6
11521 if test "$ac_cv_func_dbm_firstkey" = "yes"; then
11522 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
11523 LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
11528 cat >>confdefs.h <<\_ACEOF
11529 #define HAVE_DB_NDBM 1
11533 cat >>confdefs.h <<\_ACEOF
11534 #define HAVE_NEW_DB 1
11538 $as_unset ac_cv_func_dbm_firstkey
11539 $as_unset ac_cv_funclib_dbm_firstkey
11545 if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then
11554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11556 echo "$as_me:$LINENO: checking for $ac_header" >&5
11557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11564 # Is the header compilable?
11565 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11567 cat >conftest.$ac_ext <<_ACEOF
11568 #line $LINENO "configure"
11569 #include "confdefs.h"
11570 $ac_includes_default
11571 #include <$ac_header>
11573 rm -f conftest.$ac_objext
11574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11575 (eval $ac_compile) 2>&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); } &&
11579 { ac_try='test -s conftest.$ac_objext'
11580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11581 (eval $ac_try) 2>&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); }; }; then
11585 ac_header_compiler=yes
11587 echo "$as_me: failed program was:" >&5
11588 cat conftest.$ac_ext >&5
11589 ac_header_compiler=no
11591 rm -f conftest.$ac_objext conftest.$ac_ext
11592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11593 echo "${ECHO_T}$ac_header_compiler" >&6
11595 # Is the header present?
11596 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11598 cat >conftest.$ac_ext <<_ACEOF
11599 #line $LINENO "configure"
11600 #include "confdefs.h"
11601 #include <$ac_header>
11603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11606 egrep -v '^ *\+' conftest.er1 >conftest.err
11608 cat conftest.err >&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } >/dev/null; then
11611 if test -s conftest.err; then
11612 ac_cpp_err=$ac_c_preproc_warn_flag
11619 if test -z "$ac_cpp_err"; then
11620 ac_header_preproc=yes
11622 echo "$as_me: failed program was:" >&5
11623 cat conftest.$ac_ext >&5
11624 ac_header_preproc=no
11626 rm -f conftest.err conftest.$ac_ext
11627 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11628 echo "${ECHO_T}$ac_header_preproc" >&6
11630 # So? What about this header?
11631 case $ac_header_compiler:$ac_header_preproc in
11633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11645 echo "$as_me:$LINENO: checking for $ac_header" >&5
11646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11650 eval "$as_ac_Header=$ac_header_preproc"
11652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11657 cat >>confdefs.h <<_ACEOF
11658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11669 echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
11670 echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
11671 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11675 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
11676 ac_save_LIBS="$LIBS"
11677 for ac_lib in "" ndbm; do
11683 *) ac_lib="-l$ac_lib" ;;
11685 LIBS=" $ac_lib $ac_save_LIBS"
11686 cat >conftest.$ac_ext <<_ACEOF
11687 #line $LINENO "configure"
11688 #include "confdefs.h"
11691 #if defined(HAVE_NDBM_H)
11693 #elif defined(HAVE_DBM_H)
11698 #ifdef F77_DUMMY_MAIN
11699 # ifdef __cplusplus
11702 int F77_DUMMY_MAIN() { return 1; }
11712 rm -f conftest.$ac_objext conftest$ac_exeext
11713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11714 (eval $ac_link) 2>&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } &&
11718 { ac_try='test -s conftest$ac_exeext'
11719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720 (eval $ac_try) 2>&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }; }; then
11724 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
11726 echo "$as_me: failed program was:" >&5
11727 cat conftest.$ac_ext >&5
11729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11731 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
11732 LIBS="$ac_save_LIBS"
11738 eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
11742 for ac_func in dbm_firstkey
11744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11745 echo "$as_me:$LINENO: checking for $ac_func" >&5
11746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11747 if eval "test \"\${$as_ac_var+set}\" = set"; then
11748 echo $ECHO_N "(cached) $ECHO_C" >&6
11750 cat >conftest.$ac_ext <<_ACEOF
11751 #line $LINENO "configure"
11752 #include "confdefs.h"
11753 /* System header to define __stub macros and hopefully few prototypes,
11754 which can conflict with char $ac_func (); below. */
11755 #include <assert.h>
11756 /* Override any gcc2 internal prototype to avoid an error. */
11760 /* We use char because int might match the return type of a gcc2
11761 builtin and then its argument prototype would still apply. */
11765 #ifdef F77_DUMMY_MAIN
11766 # ifdef __cplusplus
11769 int F77_DUMMY_MAIN() { return 1; }
11774 /* The GNU C library defines this for functions which it implements
11775 to always fail with ENOSYS. Some functions are actually named
11776 something starting with __ and the normal name is an alias. */
11777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11787 rm -f conftest.$ac_objext conftest$ac_exeext
11788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11789 (eval $ac_link) 2>&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } &&
11793 { ac_try='test -s conftest$ac_exeext'
11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; }; then
11799 eval "$as_ac_var=yes"
11801 echo "$as_me: failed program was:" >&5
11802 cat conftest.$ac_ext >&5
11803 eval "$as_ac_var=no"
11805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11808 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11809 if test `eval echo '${'$as_ac_var'}'` = yes; then
11810 cat >>confdefs.h <<_ACEOF
11811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11819 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11820 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11821 eval "LIB_dbm_firstkey=$ac_res"
11825 eval "ac_cv_func_dbm_firstkey=yes"
11826 eval "LIB_dbm_firstkey="
11827 cat >>confdefs.h <<_ACEOF
11828 #define $ac_tr_func 1
11831 echo "$as_me:$LINENO: result: yes" >&5
11832 echo "${ECHO_T}yes" >&6
11835 eval "ac_cv_func_dbm_firstkey=no"
11836 eval "LIB_dbm_firstkey="
11837 echo "$as_me:$LINENO: result: no" >&5
11838 echo "${ECHO_T}no" >&6
11841 eval "ac_cv_func_dbm_firstkey=yes"
11842 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11843 cat >>confdefs.h <<_ACEOF
11844 #define $ac_tr_func 1
11847 cat >>confdefs.h <<_ACEOF
11848 #define $ac_tr_lib 1
11851 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
11852 echo "${ECHO_T}yes, in $ac_res" >&6
11858 if test "$ac_cv_func_dbm_firstkey" = "yes"; then
11859 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
11860 LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
11865 cat >>confdefs.h <<\_ACEOF
11866 #define HAVE_NDBM 1
11869 if test "$db_type" = "unknown"; then
11875 $as_unset ac_cv_func_dbm_firstkey
11876 $as_unset ac_cv_funclib_dbm_firstkey
11883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11885 echo "$as_me:$LINENO: checking for $ac_header" >&5
11886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11888 echo $ECHO_N "(cached) $ECHO_C" >&6
11890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11893 # Is the header compilable?
11894 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11896 cat >conftest.$ac_ext <<_ACEOF
11897 #line $LINENO "configure"
11898 #include "confdefs.h"
11899 $ac_includes_default
11900 #include <$ac_header>
11902 rm -f conftest.$ac_objext
11903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11904 (eval $ac_compile) 2>&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } &&
11908 { ac_try='test -s conftest.$ac_objext'
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; }; then
11914 ac_header_compiler=yes
11916 echo "$as_me: failed program was:" >&5
11917 cat conftest.$ac_ext >&5
11918 ac_header_compiler=no
11920 rm -f conftest.$ac_objext conftest.$ac_ext
11921 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11922 echo "${ECHO_T}$ac_header_compiler" >&6
11924 # Is the header present?
11925 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11926 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11927 cat >conftest.$ac_ext <<_ACEOF
11928 #line $LINENO "configure"
11929 #include "confdefs.h"
11930 #include <$ac_header>
11932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11935 egrep -v '^ *\+' conftest.er1 >conftest.err
11937 cat conftest.err >&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } >/dev/null; then
11940 if test -s conftest.err; then
11941 ac_cpp_err=$ac_c_preproc_warn_flag
11948 if test -z "$ac_cpp_err"; then
11949 ac_header_preproc=yes
11951 echo "$as_me: failed program was:" >&5
11952 cat conftest.$ac_ext >&5
11953 ac_header_preproc=no
11955 rm -f conftest.err conftest.$ac_ext
11956 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11957 echo "${ECHO_T}$ac_header_preproc" >&6
11959 # So? What about this header?
11960 case $ac_header_compiler:$ac_header_preproc in
11962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11974 echo "$as_me:$LINENO: checking for $ac_header" >&5
11975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11977 echo $ECHO_N "(cached) $ECHO_C" >&6
11979 eval "$as_ac_Header=$ac_header_preproc"
11981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11986 cat >>confdefs.h <<_ACEOF
11987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11998 echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
11999 echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
12000 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12004 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
12005 ac_save_LIBS="$LIBS"
12006 for ac_lib in "" gdbm; do
12012 *) ac_lib="-l$ac_lib" ;;
12014 LIBS=" $ac_lib $ac_save_LIBS"
12015 cat >conftest.$ac_ext <<_ACEOF
12016 #line $LINENO "configure"
12017 #include "confdefs.h"
12020 #include <gdbm/ndbm.h>
12023 #ifdef F77_DUMMY_MAIN
12024 # ifdef __cplusplus
12027 int F77_DUMMY_MAIN() { return 1; }
12037 rm -f conftest.$ac_objext conftest$ac_exeext
12038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12039 (eval $ac_link) 2>&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } &&
12043 { ac_try='test -s conftest$ac_exeext'
12044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045 (eval $ac_try) 2>&5
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; }; then
12049 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
12051 echo "$as_me: failed program was:" >&5
12052 cat conftest.$ac_ext >&5
12054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12056 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
12057 LIBS="$ac_save_LIBS"
12063 eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
12067 for ac_func in dbm_firstkey
12069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12070 echo "$as_me:$LINENO: checking for $ac_func" >&5
12071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12072 if eval "test \"\${$as_ac_var+set}\" = set"; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 cat >conftest.$ac_ext <<_ACEOF
12076 #line $LINENO "configure"
12077 #include "confdefs.h"
12078 /* System header to define __stub macros and hopefully few prototypes,
12079 which can conflict with char $ac_func (); below. */
12080 #include <assert.h>
12081 /* Override any gcc2 internal prototype to avoid an error. */
12085 /* We use char because int might match the return type of a gcc2
12086 builtin and then its argument prototype would still apply. */
12090 #ifdef F77_DUMMY_MAIN
12091 # ifdef __cplusplus
12094 int F77_DUMMY_MAIN() { return 1; }
12099 /* The GNU C library defines this for functions which it implements
12100 to always fail with ENOSYS. Some functions are actually named
12101 something starting with __ and the normal name is an alias. */
12102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12112 rm -f conftest.$ac_objext conftest$ac_exeext
12113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12114 (eval $ac_link) 2>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } &&
12118 { ac_try='test -s conftest$ac_exeext'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 eval "$as_ac_var=yes"
12126 echo "$as_me: failed program was:" >&5
12127 cat conftest.$ac_ext >&5
12128 eval "$as_ac_var=no"
12130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12134 if test `eval echo '${'$as_ac_var'}'` = yes; then
12135 cat >>confdefs.h <<_ACEOF
12136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12144 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12145 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12146 eval "LIB_dbm_firstkey=$ac_res"
12150 eval "ac_cv_func_dbm_firstkey=yes"
12151 eval "LIB_dbm_firstkey="
12152 cat >>confdefs.h <<_ACEOF
12153 #define $ac_tr_func 1
12156 echo "$as_me:$LINENO: result: yes" >&5
12157 echo "${ECHO_T}yes" >&6
12160 eval "ac_cv_func_dbm_firstkey=no"
12161 eval "LIB_dbm_firstkey="
12162 echo "$as_me:$LINENO: result: no" >&5
12163 echo "${ECHO_T}no" >&6
12166 eval "ac_cv_func_dbm_firstkey=yes"
12167 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12168 cat >>confdefs.h <<_ACEOF
12169 #define $ac_tr_func 1
12172 cat >>confdefs.h <<_ACEOF
12173 #define $ac_tr_lib 1
12176 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
12177 echo "${ECHO_T}yes, in $ac_res" >&6
12183 if test "$ac_cv_func_dbm_firstkey" = "yes"; then
12184 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
12185 LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
12190 cat >>confdefs.h <<\_ACEOF
12191 #define HAVE_NDBM 1
12194 if test "$db_type" = "unknown"; then
12203 if test "$have_ndbm" = "yes"; then
12204 echo "$as_me:$LINENO: checking if ndbm is implemented with db" >&5
12205 echo $ECHO_N "checking if ndbm is implemented with db... $ECHO_C" >&6
12206 if test "$cross_compiling" = yes; then
12207 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12208 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12209 { (exit 1); exit 1; }; }
12211 cat >conftest.$ac_ext <<_ACEOF
12212 #line $LINENO "configure"
12213 #include "confdefs.h"
12215 #include <unistd.h>
12217 #if defined(HAVE_GDBM_NDBM_H)
12218 #include <gdbm/ndbm.h>
12219 #elif defined(HAVE_NDBM_H)
12221 #elif defined(HAVE_DBM_H)
12228 d = dbm_open("conftest", O_RDWR | O_CREAT, 0666);
12235 rm -f conftest$ac_exeext
12236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12237 (eval $ac_link) 2>&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12242 (eval $ac_try) 2>&5
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); }; }; then
12247 if test -f conftest.db; then
12248 echo "$as_me:$LINENO: result: yes" >&5
12249 echo "${ECHO_T}yes" >&6
12251 cat >>confdefs.h <<\_ACEOF
12252 #define HAVE_NEW_DB 1
12256 echo "$as_me:$LINENO: result: no" >&5
12257 echo "${ECHO_T}no" >&6
12260 echo "$as_me: program exited with status $ac_status" >&5
12261 echo "$as_me: failed program was:" >&5
12262 cat conftest.$ac_ext >&5
12263 ( exit $ac_status )
12264 echo "$as_me:$LINENO: result: no" >&5
12265 echo "${ECHO_T}no" >&6
12267 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12273 if test "$db_type" = db1; then
12282 if test "$db_type" = db3; then
12291 if test "$db_type" = ndbm; then
12293 HAVE_NDBM_FALSE='#'
12300 for i in $LDFLAGS; do
12311 echo "$as_me:$LINENO: checking for inline" >&5
12312 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12313 if test "${ac_cv_c_inline+set}" = set; then
12314 echo $ECHO_N "(cached) $ECHO_C" >&6
12317 for ac_kw in inline __inline__ __inline; do
12318 cat >conftest.$ac_ext <<_ACEOF
12319 #line $LINENO "configure"
12320 #include "confdefs.h"
12321 #ifndef __cplusplus
12322 static $ac_kw int static_foo () {return 0; }
12323 $ac_kw int foo () {return 0; }
12327 rm -f conftest.$ac_objext
12328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12329 (eval $ac_compile) 2>&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } &&
12333 { ac_try='test -s conftest.$ac_objext'
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; }; then
12339 ac_cv_c_inline=$ac_kw; break
12341 echo "$as_me: failed program was:" >&5
12342 cat conftest.$ac_ext >&5
12344 rm -f conftest.$ac_objext conftest.$ac_ext
12348 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12349 echo "${ECHO_T}$ac_cv_c_inline" >&6
12350 case $ac_cv_c_inline in
12353 cat >>confdefs.h <<\_ACEOF
12357 *) cat >>confdefs.h <<_ACEOF
12358 #define inline $ac_cv_c_inline
12363 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12364 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12365 if test "${ac_cv_c_const+set}" = set; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12368 cat >conftest.$ac_ext <<_ACEOF
12369 #line $LINENO "configure"
12370 #include "confdefs.h"
12372 #ifdef F77_DUMMY_MAIN
12373 # ifdef __cplusplus
12376 int F77_DUMMY_MAIN() { return 1; }
12381 /* FIXME: Include the comments suggested by Paul. */
12382 #ifndef __cplusplus
12383 /* Ultrix mips cc rejects this. */
12384 typedef int charset[2];
12386 /* SunOS 4.1.1 cc rejects this. */
12387 char const *const *ccp;
12389 /* NEC SVR4.0.2 mips cc rejects this. */
12390 struct point {int x, y;};
12391 static struct point const zero = {0,0};
12392 /* AIX XL C 1.02.0.0 rejects this.
12393 It does not let you subtract one const X* pointer from another in
12394 an arm of an if-expression whose if-part is not a constant
12396 const char *g = "string";
12397 ccp = &g + (g ? g-g : 0);
12398 /* HPUX 7.0 cc rejects these. */
12401 ccp = (char const *const *) p;
12402 { /* SCO 3.2v4 cc rejects this. */
12404 char const *s = 0 ? (char *) 0 : (char const *) 0;
12408 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12409 int x[] = {25, 17};
12410 const int *foo = &x[0];
12413 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12414 typedef const int *iptr;
12418 { /* AIX XL C 1.02.0.0 rejects this saying
12419 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12420 struct s { int j; const int *ap[3]; };
12421 struct s *b; b->j = 5;
12423 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12424 const int foo = 10;
12432 rm -f conftest.$ac_objext
12433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12434 (eval $ac_compile) 2>&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); } &&
12438 { ac_try='test -s conftest.$ac_objext'
12439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440 (eval $ac_try) 2>&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }; }; then
12446 echo "$as_me: failed program was:" >&5
12447 cat conftest.$ac_ext >&5
12450 rm -f conftest.$ac_objext conftest.$ac_ext
12452 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12453 echo "${ECHO_T}$ac_cv_c_const" >&6
12454 if test $ac_cv_c_const = no; then
12456 cat >>confdefs.h <<\_ACEOF
12462 echo "$as_me:$LINENO: checking for size_t" >&5
12463 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12464 if test "${ac_cv_type_size_t+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12467 cat >conftest.$ac_ext <<_ACEOF
12468 #line $LINENO "configure"
12469 #include "confdefs.h"
12470 $ac_includes_default
12471 #ifdef F77_DUMMY_MAIN
12472 # ifdef __cplusplus
12475 int F77_DUMMY_MAIN() { return 1; }
12482 if (sizeof (size_t))
12488 rm -f conftest.$ac_objext
12489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12490 (eval $ac_compile) 2>&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); } &&
12494 { ac_try='test -s conftest.$ac_objext'
12495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12496 (eval $ac_try) 2>&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); }; }; then
12500 ac_cv_type_size_t=yes
12502 echo "$as_me: failed program was:" >&5
12503 cat conftest.$ac_ext >&5
12504 ac_cv_type_size_t=no
12506 rm -f conftest.$ac_objext conftest.$ac_ext
12508 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12509 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12510 if test $ac_cv_type_size_t = yes; then
12514 cat >>confdefs.h <<_ACEOF
12515 #define size_t unsigned
12520 echo "$as_me:$LINENO: checking for pid_t" >&5
12521 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12522 if test "${ac_cv_type_pid_t+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 cat >conftest.$ac_ext <<_ACEOF
12526 #line $LINENO "configure"
12527 #include "confdefs.h"
12528 $ac_includes_default
12529 #ifdef F77_DUMMY_MAIN
12530 # ifdef __cplusplus
12533 int F77_DUMMY_MAIN() { return 1; }
12540 if (sizeof (pid_t))
12546 rm -f conftest.$ac_objext
12547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12548 (eval $ac_compile) 2>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } &&
12552 { ac_try='test -s conftest.$ac_objext'
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; }; then
12558 ac_cv_type_pid_t=yes
12560 echo "$as_me: failed program was:" >&5
12561 cat conftest.$ac_ext >&5
12562 ac_cv_type_pid_t=no
12564 rm -f conftest.$ac_objext conftest.$ac_ext
12566 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12567 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12568 if test $ac_cv_type_pid_t = yes; then
12572 cat >>confdefs.h <<_ACEOF
12578 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12579 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
12580 if test "${ac_cv_type_uid_t+set}" = set; then
12581 echo $ECHO_N "(cached) $ECHO_C" >&6
12583 cat >conftest.$ac_ext <<_ACEOF
12584 #line $LINENO "configure"
12585 #include "confdefs.h"
12586 #include <sys/types.h>
12589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12590 egrep "uid_t" >/dev/null 2>&1; then
12591 ac_cv_type_uid_t=yes
12593 ac_cv_type_uid_t=no
12598 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12599 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
12600 if test $ac_cv_type_uid_t = no; then
12602 cat >>confdefs.h <<\_ACEOF
12607 cat >>confdefs.h <<\_ACEOF
12614 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12615 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12616 if test "${ac_cv_type_signal+set}" = set; then
12617 echo $ECHO_N "(cached) $ECHO_C" >&6
12619 cat >conftest.$ac_ext <<_ACEOF
12620 #line $LINENO "configure"
12621 #include "confdefs.h"
12622 #include <sys/types.h>
12623 #include <signal.h>
12628 extern "C" void (*signal (int, void (*)(int)))(int);
12630 void (*signal ()) ();
12633 #ifdef F77_DUMMY_MAIN
12634 # ifdef __cplusplus
12637 int F77_DUMMY_MAIN() { return 1; }
12647 rm -f conftest.$ac_objext
12648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12649 (eval $ac_compile) 2>&5
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); } &&
12653 { ac_try='test -s conftest.$ac_objext'
12654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655 (eval $ac_try) 2>&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; }; then
12659 ac_cv_type_signal=void
12661 echo "$as_me: failed program was:" >&5
12662 cat conftest.$ac_ext >&5
12663 ac_cv_type_signal=int
12665 rm -f conftest.$ac_objext conftest.$ac_ext
12667 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12668 echo "${ECHO_T}$ac_cv_type_signal" >&6
12670 cat >>confdefs.h <<_ACEOF
12671 #define RETSIGTYPE $ac_cv_type_signal
12675 if test "$ac_cv_type_signal" = "void" ; then
12677 cat >>confdefs.h <<\_ACEOF
12678 #define VOID_RETSIGTYPE 1
12686 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12687 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12688 if test "${ac_cv_header_time+set}" = set; then
12689 echo $ECHO_N "(cached) $ECHO_C" >&6
12691 cat >conftest.$ac_ext <<_ACEOF
12692 #line $LINENO "configure"
12693 #include "confdefs.h"
12694 #include <sys/types.h>
12695 #include <sys/time.h>
12698 #ifdef F77_DUMMY_MAIN
12699 # ifdef __cplusplus
12702 int F77_DUMMY_MAIN() { return 1; }
12707 if ((struct tm *) 0)
12713 rm -f conftest.$ac_objext
12714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12715 (eval $ac_compile) 2>&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } &&
12719 { ac_try='test -s conftest.$ac_objext'
12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); }; }; then
12725 ac_cv_header_time=yes
12727 echo "$as_me: failed program was:" >&5
12728 cat conftest.$ac_ext >&5
12729 ac_cv_header_time=no
12731 rm -f conftest.$ac_objext conftest.$ac_ext
12733 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12734 echo "${ECHO_T}$ac_cv_header_time" >&6
12735 if test $ac_cv_header_time = yes; then
12737 cat >>confdefs.h <<\_ACEOF
12738 #define TIME_WITH_SYS_TIME 1
12745 for ac_header in standards.h
12747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12749 echo "$as_me:$LINENO: checking for $ac_header" >&5
12750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12752 echo $ECHO_N "(cached) $ECHO_C" >&6
12754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12757 # Is the header compilable?
12758 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12760 cat >conftest.$ac_ext <<_ACEOF
12761 #line $LINENO "configure"
12762 #include "confdefs.h"
12763 $ac_includes_default
12764 #include <$ac_header>
12766 rm -f conftest.$ac_objext
12767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12768 (eval $ac_compile) 2>&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } &&
12772 { ac_try='test -s conftest.$ac_objext'
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; }; then
12778 ac_header_compiler=yes
12780 echo "$as_me: failed program was:" >&5
12781 cat conftest.$ac_ext >&5
12782 ac_header_compiler=no
12784 rm -f conftest.$ac_objext conftest.$ac_ext
12785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12786 echo "${ECHO_T}$ac_header_compiler" >&6
12788 # Is the header present?
12789 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12791 cat >conftest.$ac_ext <<_ACEOF
12792 #line $LINENO "configure"
12793 #include "confdefs.h"
12794 #include <$ac_header>
12796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12799 egrep -v '^ *\+' conftest.er1 >conftest.err
12801 cat conftest.err >&5
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); } >/dev/null; then
12804 if test -s conftest.err; then
12805 ac_cpp_err=$ac_c_preproc_warn_flag
12812 if test -z "$ac_cpp_err"; then
12813 ac_header_preproc=yes
12815 echo "$as_me: failed program was:" >&5
12816 cat conftest.$ac_ext >&5
12817 ac_header_preproc=no
12819 rm -f conftest.err conftest.$ac_ext
12820 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12821 echo "${ECHO_T}$ac_header_preproc" >&6
12823 # So? What about this header?
12824 case $ac_header_compiler:$ac_header_preproc in
12826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12834 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12838 echo "$as_me:$LINENO: checking for $ac_header" >&5
12839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12843 eval "$as_ac_Header=$ac_header_preproc"
12845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12850 cat >>confdefs.h <<_ACEOF
12851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12858 for i in netinet/ip.h netinet/tcp.h; do
12860 cv=`echo "$i" | sed 'y%./+-%__p_%'`
12862 echo "$as_me:$LINENO: checking for $i" >&5
12863 echo $ECHO_N "checking for $i... $ECHO_C" >&6
12864 if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
12865 echo $ECHO_N "(cached) $ECHO_C" >&6
12867 cat >conftest.$ac_ext <<_ACEOF
12868 #line $LINENO "configure"
12869 #include "confdefs.h"
12871 #ifdef HAVE_STANDARDS_H
12872 #include <standards.h>
12877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12880 egrep -v '^ *\+' conftest.er1 >conftest.err
12882 cat conftest.err >&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); } >/dev/null; then
12885 if test -s conftest.err; then
12886 ac_cpp_err=$ac_c_preproc_warn_flag
12893 if test -z "$ac_cpp_err"; then
12894 eval "ac_cv_header_$cv=yes"
12896 echo "$as_me: failed program was:" >&5
12897 cat conftest.$ac_ext >&5
12898 eval "ac_cv_header_$cv=no"
12900 rm -f conftest.err conftest.$ac_ext
12902 echo "$as_me:$LINENO: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
12903 echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
12904 ac_res=`eval echo \\$ac_cv_header_$cv`
12905 if test "$ac_res" = yes; then
12906 ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12907 cat >>confdefs.h <<_ACEOF
12908 #define $ac_tr_hdr 1
12916 for ac_header in netinet/ip.h netinet/tcp.h
12918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12920 echo "$as_me:$LINENO: checking for $ac_header" >&5
12921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12928 # Is the header compilable?
12929 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12931 cat >conftest.$ac_ext <<_ACEOF
12932 #line $LINENO "configure"
12933 #include "confdefs.h"
12934 $ac_includes_default
12935 #include <$ac_header>
12937 rm -f conftest.$ac_objext
12938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12939 (eval $ac_compile) 2>&5
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); } &&
12943 { ac_try='test -s conftest.$ac_objext'
12944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12945 (eval $ac_try) 2>&5
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; }; then
12949 ac_header_compiler=yes
12951 echo "$as_me: failed program was:" >&5
12952 cat conftest.$ac_ext >&5
12953 ac_header_compiler=no
12955 rm -f conftest.$ac_objext conftest.$ac_ext
12956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12957 echo "${ECHO_T}$ac_header_compiler" >&6
12959 # Is the header present?
12960 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12962 cat >conftest.$ac_ext <<_ACEOF
12963 #line $LINENO "configure"
12964 #include "confdefs.h"
12965 #include <$ac_header>
12967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12970 egrep -v '^ *\+' conftest.er1 >conftest.err
12972 cat conftest.err >&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); } >/dev/null; then
12975 if test -s conftest.err; then
12976 ac_cpp_err=$ac_c_preproc_warn_flag
12983 if test -z "$ac_cpp_err"; then
12984 ac_header_preproc=yes
12986 echo "$as_me: failed program was:" >&5
12987 cat conftest.$ac_ext >&5
12988 ac_header_preproc=no
12990 rm -f conftest.err conftest.$ac_ext
12991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12992 echo "${ECHO_T}$ac_header_preproc" >&6
12994 # So? What about this header?
12995 case $ac_header_compiler:$ac_header_preproc in
12997 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13002 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13003 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13004 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13005 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13009 echo "$as_me:$LINENO: checking for $ac_header" >&5
13010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13012 echo $ECHO_N "(cached) $ECHO_C" >&6
13014 eval "$as_ac_Header=$ac_header_preproc"
13016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13021 cat >>confdefs.h <<_ACEOF
13022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13034 for ac_func in getlogin setlogin
13036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13037 echo "$as_me:$LINENO: checking for $ac_func" >&5
13038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13039 if eval "test \"\${$as_ac_var+set}\" = set"; then
13040 echo $ECHO_N "(cached) $ECHO_C" >&6
13042 cat >conftest.$ac_ext <<_ACEOF
13043 #line $LINENO "configure"
13044 #include "confdefs.h"
13045 /* System header to define __stub macros and hopefully few prototypes,
13046 which can conflict with char $ac_func (); below. */
13047 #include <assert.h>
13048 /* Override any gcc2 internal prototype to avoid an error. */
13052 /* We use char because int might match the return type of a gcc2
13053 builtin and then its argument prototype would still apply. */
13057 #ifdef F77_DUMMY_MAIN
13058 # ifdef __cplusplus
13061 int F77_DUMMY_MAIN() { return 1; }
13066 /* The GNU C library defines this for functions which it implements
13067 to always fail with ENOSYS. Some functions are actually named
13068 something starting with __ and the normal name is an alias. */
13069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13079 rm -f conftest.$ac_objext conftest$ac_exeext
13080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13081 (eval $ac_link) 2>&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); } &&
13085 { ac_try='test -s conftest$ac_exeext'
13086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13087 (eval $ac_try) 2>&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); }; }; then
13091 eval "$as_ac_var=yes"
13093 echo "$as_me: failed program was:" >&5
13094 cat conftest.$ac_ext >&5
13095 eval "$as_ac_var=no"
13097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13100 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13101 if test `eval echo '${'$as_ac_var'}'` = yes; then
13102 cat >>confdefs.h <<_ACEOF
13103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13109 if test "$ac_cv_func_getlogin" = yes; then
13110 echo "$as_me:$LINENO: checking if getlogin is posix" >&5
13111 echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6
13112 if test "${ac_cv_func_getlogin_posix+set}" = set; then
13113 echo $ECHO_N "(cached) $ECHO_C" >&6
13116 if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
13117 ac_cv_func_getlogin_posix=no
13119 ac_cv_func_getlogin_posix=yes
13123 echo "$as_me:$LINENO: result: $ac_cv_func_getlogin_posix" >&5
13124 echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6
13125 if test "$ac_cv_func_getlogin_posix" = yes; then
13127 cat >>confdefs.h <<\_ACEOF
13128 #define POSIX_GETLOGIN 1
13136 for ac_header in stdlib.h unistd.h
13138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13140 echo "$as_me:$LINENO: checking for $ac_header" >&5
13141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13143 echo $ECHO_N "(cached) $ECHO_C" >&6
13145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13148 # Is the header compilable?
13149 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13151 cat >conftest.$ac_ext <<_ACEOF
13152 #line $LINENO "configure"
13153 #include "confdefs.h"
13154 $ac_includes_default
13155 #include <$ac_header>
13157 rm -f conftest.$ac_objext
13158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13159 (eval $ac_compile) 2>&5
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); } &&
13163 { ac_try='test -s conftest.$ac_objext'
13164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13165 (eval $ac_try) 2>&5
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); }; }; then
13169 ac_header_compiler=yes
13171 echo "$as_me: failed program was:" >&5
13172 cat conftest.$ac_ext >&5
13173 ac_header_compiler=no
13175 rm -f conftest.$ac_objext conftest.$ac_ext
13176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13177 echo "${ECHO_T}$ac_header_compiler" >&6
13179 # Is the header present?
13180 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13182 cat >conftest.$ac_ext <<_ACEOF
13183 #line $LINENO "configure"
13184 #include "confdefs.h"
13185 #include <$ac_header>
13187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13190 egrep -v '^ *\+' conftest.er1 >conftest.err
13192 cat conftest.err >&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } >/dev/null; then
13195 if test -s conftest.err; then
13196 ac_cpp_err=$ac_c_preproc_warn_flag
13203 if test -z "$ac_cpp_err"; then
13204 ac_header_preproc=yes
13206 echo "$as_me: failed program was:" >&5
13207 cat conftest.$ac_ext >&5
13208 ac_header_preproc=no
13210 rm -f conftest.err conftest.$ac_ext
13211 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13212 echo "${ECHO_T}$ac_header_preproc" >&6
13214 # So? What about this header?
13215 case $ac_header_compiler:$ac_header_preproc in
13217 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13225 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13229 echo "$as_me:$LINENO: checking for $ac_header" >&5
13230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13232 echo $ECHO_N "(cached) $ECHO_C" >&6
13234 eval "$as_ac_Header=$ac_header_preproc"
13236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13241 cat >>confdefs.h <<_ACEOF
13242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13250 for ac_func in getpagesize
13252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13253 echo "$as_me:$LINENO: checking for $ac_func" >&5
13254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13255 if eval "test \"\${$as_ac_var+set}\" = set"; then
13256 echo $ECHO_N "(cached) $ECHO_C" >&6
13258 cat >conftest.$ac_ext <<_ACEOF
13259 #line $LINENO "configure"
13260 #include "confdefs.h"
13261 /* System header to define __stub macros and hopefully few prototypes,
13262 which can conflict with char $ac_func (); below. */
13263 #include <assert.h>
13264 /* Override any gcc2 internal prototype to avoid an error. */
13268 /* We use char because int might match the return type of a gcc2
13269 builtin and then its argument prototype would still apply. */
13273 #ifdef F77_DUMMY_MAIN
13274 # ifdef __cplusplus
13277 int F77_DUMMY_MAIN() { return 1; }
13282 /* The GNU C library defines this for functions which it implements
13283 to always fail with ENOSYS. Some functions are actually named
13284 something starting with __ and the normal name is an alias. */
13285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13295 rm -f conftest.$ac_objext conftest$ac_exeext
13296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13297 (eval $ac_link) 2>&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } &&
13301 { ac_try='test -s conftest$ac_exeext'
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 eval "$as_ac_var=yes"
13309 echo "$as_me: failed program was:" >&5
13310 cat conftest.$ac_ext >&5
13311 eval "$as_ac_var=no"
13313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13317 if test `eval echo '${'$as_ac_var'}'` = yes; then
13318 cat >>confdefs.h <<_ACEOF
13319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13325 echo "$as_me:$LINENO: checking for working mmap" >&5
13326 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
13327 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13328 echo $ECHO_N "(cached) $ECHO_C" >&6
13330 if test "$cross_compiling" = yes; then
13331 ac_cv_func_mmap_fixed_mapped=no
13333 cat >conftest.$ac_ext <<_ACEOF
13334 #line $LINENO "configure"
13335 #include "confdefs.h"
13336 $ac_includes_default
13337 /* malloc might have been renamed as rpl_malloc. */
13340 /* Thanks to Mike Haertel and Jim Avera for this test.
13341 Here is a matrix of mmap possibilities:
13342 mmap private not fixed
13343 mmap private fixed at somewhere currently unmapped
13344 mmap private fixed at somewhere already mapped
13345 mmap shared not fixed
13346 mmap shared fixed at somewhere currently unmapped
13347 mmap shared fixed at somewhere already mapped
13348 For private mappings, we should verify that changes cannot be read()
13349 back from the file, nor mmap's back from the file at a different
13350 address. (There have been systems where private was not correctly
13351 implemented like the infamous i386 svr4.0, and systems where the
13352 VM page cache was not coherent with the file system buffer cache
13353 like early versions of FreeBSD and possibly contemporary NetBSD.)
13354 For shared mappings, we should conversely verify that changes get
13355 propagated back to all the places they're supposed to be.
13357 Grep wants private fixed already mapped.
13358 The main things grep needs to know about mmap are:
13359 * does it exist and is it safe to write into the mmap'd area
13360 * how to use it (BSD variants) */
13363 #include <sys/mman.h>
13365 #if !STDC_HEADERS && !HAVE_STDLIB_H
13369 /* This mess was copied from the GNU getpagesize.h. */
13370 #if !HAVE_GETPAGESIZE
13371 /* Assume that all systems that can run configure have sys/param.h. */
13372 # if !HAVE_SYS_PARAM_H
13373 # define HAVE_SYS_PARAM_H 1
13376 # ifdef _SC_PAGESIZE
13377 # define getpagesize() sysconf(_SC_PAGESIZE)
13378 # else /* no _SC_PAGESIZE */
13379 # if HAVE_SYS_PARAM_H
13380 # include <sys/param.h>
13381 # ifdef EXEC_PAGESIZE
13382 # define getpagesize() EXEC_PAGESIZE
13383 # else /* no EXEC_PAGESIZE */
13385 # define getpagesize() NBPG * CLSIZE
13388 # endif /* no CLSIZE */
13389 # else /* no NBPG */
13391 # define getpagesize() NBPC
13392 # else /* no NBPC */
13394 # define getpagesize() PAGESIZE
13395 # endif /* PAGESIZE */
13396 # endif /* no NBPC */
13397 # endif /* no NBPG */
13398 # endif /* no EXEC_PAGESIZE */
13399 # else /* no HAVE_SYS_PARAM_H */
13400 # define getpagesize() 8192 /* punt totally */
13401 # endif /* no HAVE_SYS_PARAM_H */
13402 # endif /* no _SC_PAGESIZE */
13404 #endif /* no HAVE_GETPAGESIZE */
13409 char *data, *data2, *data3;
13413 pagesize = getpagesize ();
13415 /* First, make a file with some known garbage in it. */
13416 data = (char *) malloc (pagesize);
13419 for (i = 0; i < pagesize; ++i)
13420 *(data + i) = rand ();
13422 fd = creat ("conftest.mmap", 0600);
13425 if (write (fd, data, pagesize) != pagesize)
13429 /* Next, try to mmap the file at a fixed address which already has
13430 something else allocated at it. If we can, also make sure that
13431 we see the same garbage. */
13432 fd = open ("conftest.mmap", O_RDWR);
13435 data2 = (char *) malloc (2 * pagesize);
13438 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
13439 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13440 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13442 for (i = 0; i < pagesize; ++i)
13443 if (*(data + i) != *(data2 + i))
13446 /* Finally, make sure that changes to the mapped area do not
13447 percolate back to the file as seen by read(). (This is a bug on
13448 some variants of i386 svr4.0.) */
13449 for (i = 0; i < pagesize; ++i)
13450 *(data2 + i) = *(data2 + i) + 1;
13451 data3 = (char *) malloc (pagesize);
13454 if (read (fd, data3, pagesize) != pagesize)
13456 for (i = 0; i < pagesize; ++i)
13457 if (*(data + i) != *(data3 + i))
13463 rm -f conftest$ac_exeext
13464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13465 (eval $ac_link) 2>&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; }; then
13474 ac_cv_func_mmap_fixed_mapped=yes
13476 echo "$as_me: program exited with status $ac_status" >&5
13477 echo "$as_me: failed program was:" >&5
13478 cat conftest.$ac_ext >&5
13479 ( exit $ac_status )
13480 ac_cv_func_mmap_fixed_mapped=no
13482 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13485 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13486 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
13487 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13489 cat >>confdefs.h <<\_ACEOF
13490 #define HAVE_MMAP 1
13494 rm -f conftest.mmap
13497 echo "$as_me:$LINENO: checking if realloc if broken" >&5
13498 echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6
13499 if test "${ac_cv_func_realloc_broken+set}" = set; then
13500 echo $ECHO_N "(cached) $ECHO_C" >&6
13503 ac_cv_func_realloc_broken=no
13504 if test "$cross_compiling" = yes; then
13507 cat >conftest.$ac_ext <<_ACEOF
13508 #line $LINENO "configure"
13509 #include "confdefs.h"
13511 #include <stddef.h>
13512 #include <stdlib.h>
13516 return realloc(NULL, 17) == NULL;
13520 rm -f conftest$ac_exeext
13521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13522 (eval $ac_link) 2>&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13533 echo "$as_me: program exited with status $ac_status" >&5
13534 echo "$as_me: failed program was:" >&5
13535 cat conftest.$ac_ext >&5
13536 ( exit $ac_status )
13537 ac_cv_func_realloc_broken=yes
13539 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13543 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_broken" >&5
13544 echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6
13545 if test "$ac_cv_func_realloc_broken" = yes ; then
13547 cat >>confdefs.h <<\_ACEOF
13548 #define BROKEN_REALLOC 1
13560 LIB_roken='$(top_builddir)/lib/roken/libroken.la'
13561 INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'
13577 WFLAGS_NOIMPLICITINT=""
13578 if test -z "$WFLAGS" -a "$GCC" = "yes"; then
13579 # -Wno-implicit-int for broken X11 headers
13580 # leave these out for now:
13581 # -Wcast-align doesn't work well on alpha osf/1
13582 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
13583 # -Wmissing-declarations -Wnested-externs
13584 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
13585 WFLAGS_NOUNUSED="-Wno-unused"
13586 WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
13596 cv=`echo "ssize_t" | sed 'y%./+- %__p__%'`
13597 echo "$as_me:$LINENO: checking for ssize_t" >&5
13598 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13599 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
13600 echo $ECHO_N "(cached) $ECHO_C" >&6
13602 cat >conftest.$ac_ext <<_ACEOF
13603 #line $LINENO "configure"
13604 #include "confdefs.h"
13605 #include <sys/types.h>
13607 #include <stdlib.h>
13608 #include <stddef.h>
13610 #include <unistd.h>
13611 #ifdef F77_DUMMY_MAIN
13612 # ifdef __cplusplus
13615 int F77_DUMMY_MAIN() { return 1; }
13625 rm -f conftest.$ac_objext
13626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13627 (eval $ac_compile) 2>&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); } &&
13631 { ac_try='test -s conftest.$ac_objext'
13632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13633 (eval $ac_try) 2>&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); }; }; then
13637 eval "ac_cv_type_$cv=yes"
13639 echo "$as_me: failed program was:" >&5
13640 cat conftest.$ac_ext >&5
13641 eval "ac_cv_type_$cv=no"
13643 rm -f conftest.$ac_objext conftest.$ac_ext
13645 ac_foo=`eval echo \\$ac_cv_type_$cv`
13646 echo "$as_me:$LINENO: result: $ac_foo" >&5
13647 echo "${ECHO_T}$ac_foo" >&6
13648 if test "$ac_foo" = yes; then
13649 ac_tr_hdr=HAVE_`echo ssize_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
13651 echo "$as_me:$LINENO: checking for ssize_t" >&5
13652 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13653 if test "${ac_cv_type_ssize_t+set}" = set; then
13654 echo $ECHO_N "(cached) $ECHO_C" >&6
13656 cat >conftest.$ac_ext <<_ACEOF
13657 #line $LINENO "configure"
13658 #include "confdefs.h"
13659 $ac_includes_default
13660 #ifdef F77_DUMMY_MAIN
13661 # ifdef __cplusplus
13664 int F77_DUMMY_MAIN() { return 1; }
13671 if (sizeof (ssize_t))
13677 rm -f conftest.$ac_objext
13678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13679 (eval $ac_compile) 2>&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); } &&
13683 { ac_try='test -s conftest.$ac_objext'
13684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685 (eval $ac_try) 2>&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; }; then
13689 ac_cv_type_ssize_t=yes
13691 echo "$as_me: failed program was:" >&5
13692 cat conftest.$ac_ext >&5
13693 ac_cv_type_ssize_t=no
13695 rm -f conftest.$ac_objext conftest.$ac_ext
13697 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13698 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13699 if test $ac_cv_type_ssize_t = yes; then
13701 cat >>confdefs.h <<_ACEOF
13702 #define HAVE_SSIZE_T 1
13710 cat >>confdefs.h <<_ACEOF
13711 #define $ac_tr_hdr 1
13720 cv=`echo "long long" | sed 'y%./+- %__p__%'`
13721 echo "$as_me:$LINENO: checking for long long" >&5
13722 echo $ECHO_N "checking for long long... $ECHO_C" >&6
13723 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13726 cat >conftest.$ac_ext <<_ACEOF
13727 #line $LINENO "configure"
13728 #include "confdefs.h"
13729 #include <sys/types.h>
13731 #include <stdlib.h>
13732 #include <stddef.h>
13735 #ifdef F77_DUMMY_MAIN
13736 # ifdef __cplusplus
13739 int F77_DUMMY_MAIN() { return 1; }
13749 rm -f conftest.$ac_objext
13750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13751 (eval $ac_compile) 2>&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } &&
13755 { ac_try='test -s conftest.$ac_objext'
13756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757 (eval $ac_try) 2>&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; }; then
13761 eval "ac_cv_type_$cv=yes"
13763 echo "$as_me: failed program was:" >&5
13764 cat conftest.$ac_ext >&5
13765 eval "ac_cv_type_$cv=no"
13767 rm -f conftest.$ac_objext conftest.$ac_ext
13769 ac_foo=`eval echo \\$ac_cv_type_$cv`
13770 echo "$as_me:$LINENO: result: $ac_foo" >&5
13771 echo "${ECHO_T}$ac_foo" >&6
13772 if test "$ac_foo" = yes; then
13773 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
13775 echo "$as_me:$LINENO: checking for long long" >&5
13776 echo $ECHO_N "checking for long long... $ECHO_C" >&6
13777 if test "${ac_cv_type_long_long+set}" = set; then
13778 echo $ECHO_N "(cached) $ECHO_C" >&6
13780 cat >conftest.$ac_ext <<_ACEOF
13781 #line $LINENO "configure"
13782 #include "confdefs.h"
13783 $ac_includes_default
13784 #ifdef F77_DUMMY_MAIN
13785 # ifdef __cplusplus
13788 int F77_DUMMY_MAIN() { return 1; }
13793 if ((long long *) 0)
13795 if (sizeof (long long))
13801 rm -f conftest.$ac_objext
13802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13803 (eval $ac_compile) 2>&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } &&
13807 { ac_try='test -s conftest.$ac_objext'
13808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809 (eval $ac_try) 2>&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; }; then
13813 ac_cv_type_long_long=yes
13815 echo "$as_me: failed program was:" >&5
13816 cat conftest.$ac_ext >&5
13817 ac_cv_type_long_long=no
13819 rm -f conftest.$ac_objext conftest.$ac_ext
13821 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13822 echo "${ECHO_T}$ac_cv_type_long_long" >&6
13823 if test $ac_cv_type_long_long = yes; then
13825 cat >>confdefs.h <<_ACEOF
13826 #define HAVE_LONG_LONG 1
13834 cat >>confdefs.h <<_ACEOF
13835 #define $ac_tr_hdr 1
13906 netinet/in_systm.h \
13908 netinet6/in6_var.h \
13939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13941 echo "$as_me:$LINENO: checking for $ac_header" >&5
13942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13944 echo $ECHO_N "(cached) $ECHO_C" >&6
13946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13949 # Is the header compilable?
13950 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13952 cat >conftest.$ac_ext <<_ACEOF
13953 #line $LINENO "configure"
13954 #include "confdefs.h"
13955 $ac_includes_default
13956 #include <$ac_header>
13958 rm -f conftest.$ac_objext
13959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13960 (eval $ac_compile) 2>&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); } &&
13964 { ac_try='test -s conftest.$ac_objext'
13965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966 (eval $ac_try) 2>&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); }; }; then
13970 ac_header_compiler=yes
13972 echo "$as_me: failed program was:" >&5
13973 cat conftest.$ac_ext >&5
13974 ac_header_compiler=no
13976 rm -f conftest.$ac_objext conftest.$ac_ext
13977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13978 echo "${ECHO_T}$ac_header_compiler" >&6
13980 # Is the header present?
13981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13983 cat >conftest.$ac_ext <<_ACEOF
13984 #line $LINENO "configure"
13985 #include "confdefs.h"
13986 #include <$ac_header>
13988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13991 egrep -v '^ *\+' conftest.er1 >conftest.err
13993 cat conftest.err >&5
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); } >/dev/null; then
13996 if test -s conftest.err; then
13997 ac_cpp_err=$ac_c_preproc_warn_flag
14004 if test -z "$ac_cpp_err"; then
14005 ac_header_preproc=yes
14007 echo "$as_me: failed program was:" >&5
14008 cat conftest.$ac_ext >&5
14009 ac_header_preproc=no
14011 rm -f conftest.err conftest.$ac_ext
14012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14013 echo "${ECHO_T}$ac_header_preproc" >&6
14015 # So? What about this header?
14016 case $ac_header_compiler:$ac_header_preproc in
14018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14030 echo "$as_me:$LINENO: checking for $ac_header" >&5
14031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
14035 eval "$as_ac_Header=$ac_header_preproc"
14037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14042 cat >>confdefs.h <<_ACEOF
14043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14055 if test "$ac_cv_header_err_h" = yes; then
14057 have_err_h_FALSE='#'
14059 have_err_h_TRUE='#'
14065 if test "$ac_cv_header_fnmatch_h" = yes; then
14066 have_fnmatch_h_TRUE=
14067 have_fnmatch_h_FALSE='#'
14069 have_fnmatch_h_TRUE='#'
14070 have_fnmatch_h_FALSE=
14075 if test "$ac_cv_header_ifaddrs_h" = yes; then
14076 have_ifaddrs_h_TRUE=
14077 have_ifaddrs_h_FALSE='#'
14079 have_ifaddrs_h_TRUE='#'
14080 have_ifaddrs_h_FALSE=
14085 if test "$ac_cv_header_vis_h" = yes; then
14087 have_vis_h_FALSE='#'
14089 have_vis_h_TRUE='#'
14099 echo "$as_me:$LINENO: checking for socket" >&5
14100 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14101 if test "${ac_cv_funclib_socket+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14105 if eval "test \"\$ac_cv_func_socket\" != yes" ; then
14106 ac_save_LIBS="$LIBS"
14107 for ac_lib in "" socket; do
14113 *) ac_lib="-l$ac_lib" ;;
14115 LIBS=" $ac_lib $ac_save_LIBS"
14116 cat >conftest.$ac_ext <<_ACEOF
14117 #line $LINENO "configure"
14118 #include "confdefs.h"
14120 #ifdef F77_DUMMY_MAIN
14121 # ifdef __cplusplus
14124 int F77_DUMMY_MAIN() { return 1; }
14134 rm -f conftest.$ac_objext conftest$ac_exeext
14135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14136 (eval $ac_link) 2>&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); } &&
14140 { ac_try='test -s conftest$ac_exeext'
14141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14142 (eval $ac_try) 2>&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); }; }; then
14146 eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
14148 echo "$as_me: failed program was:" >&5
14149 cat conftest.$ac_ext >&5
14151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14153 eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
14154 LIBS="$ac_save_LIBS"
14160 eval "ac_res=\$ac_cv_funclib_socket"
14164 for ac_func in socket
14166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14167 echo "$as_me:$LINENO: checking for $ac_func" >&5
14168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14169 if eval "test \"\${$as_ac_var+set}\" = set"; then
14170 echo $ECHO_N "(cached) $ECHO_C" >&6
14172 cat >conftest.$ac_ext <<_ACEOF
14173 #line $LINENO "configure"
14174 #include "confdefs.h"
14175 /* System header to define __stub macros and hopefully few prototypes,
14176 which can conflict with char $ac_func (); below. */
14177 #include <assert.h>
14178 /* Override any gcc2 internal prototype to avoid an error. */
14182 /* We use char because int might match the return type of a gcc2
14183 builtin and then its argument prototype would still apply. */
14187 #ifdef F77_DUMMY_MAIN
14188 # ifdef __cplusplus
14191 int F77_DUMMY_MAIN() { return 1; }
14196 /* The GNU C library defines this for functions which it implements
14197 to always fail with ENOSYS. Some functions are actually named
14198 something starting with __ and the normal name is an alias. */
14199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14209 rm -f conftest.$ac_objext conftest$ac_exeext
14210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14211 (eval $ac_link) 2>&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); } &&
14215 { ac_try='test -s conftest$ac_exeext'
14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217 (eval $ac_try) 2>&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; }; then
14221 eval "$as_ac_var=yes"
14223 echo "$as_me: failed program was:" >&5
14224 cat conftest.$ac_ext >&5
14225 eval "$as_ac_var=no"
14227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14231 if test `eval echo '${'$as_ac_var'}'` = yes; then
14232 cat >>confdefs.h <<_ACEOF
14233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14241 eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14242 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14243 eval "LIB_socket=$ac_res"
14247 eval "ac_cv_func_socket=yes"
14249 cat >>confdefs.h <<_ACEOF
14250 #define $ac_tr_func 1
14253 echo "$as_me:$LINENO: result: yes" >&5
14254 echo "${ECHO_T}yes" >&6
14257 eval "ac_cv_func_socket=no"
14259 echo "$as_me:$LINENO: result: no" >&5
14260 echo "${ECHO_T}no" >&6
14263 eval "ac_cv_func_socket=yes"
14264 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
14265 cat >>confdefs.h <<_ACEOF
14266 #define $ac_tr_func 1
14269 cat >>confdefs.h <<_ACEOF
14270 #define $ac_tr_lib 1
14273 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
14274 echo "${ECHO_T}yes, in $ac_res" >&6
14279 if test -n "$LIB_socket"; then
14280 LIBS="$LIB_socket $LIBS"
14287 echo "$as_me:$LINENO: checking for gethostbyname" >&5
14288 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
14289 if test "${ac_cv_funclib_gethostbyname+set}" = set; then
14290 echo $ECHO_N "(cached) $ECHO_C" >&6
14293 if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
14294 ac_save_LIBS="$LIBS"
14295 for ac_lib in "" nsl; do
14301 *) ac_lib="-l$ac_lib" ;;
14303 LIBS=" $ac_lib $ac_save_LIBS"
14304 cat >conftest.$ac_ext <<_ACEOF
14305 #line $LINENO "configure"
14306 #include "confdefs.h"
14308 #ifdef F77_DUMMY_MAIN
14309 # ifdef __cplusplus
14312 int F77_DUMMY_MAIN() { return 1; }
14322 rm -f conftest.$ac_objext conftest$ac_exeext
14323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14324 (eval $ac_link) 2>&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } &&
14328 { ac_try='test -s conftest$ac_exeext'
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; }; then
14334 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
14336 echo "$as_me: failed program was:" >&5
14337 cat conftest.$ac_ext >&5
14339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14341 eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
14342 LIBS="$ac_save_LIBS"
14348 eval "ac_res=\$ac_cv_funclib_gethostbyname"
14352 for ac_func in gethostbyname
14354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14355 echo "$as_me:$LINENO: checking for $ac_func" >&5
14356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14357 if eval "test \"\${$as_ac_var+set}\" = set"; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
14360 cat >conftest.$ac_ext <<_ACEOF
14361 #line $LINENO "configure"
14362 #include "confdefs.h"
14363 /* System header to define __stub macros and hopefully few prototypes,
14364 which can conflict with char $ac_func (); below. */
14365 #include <assert.h>
14366 /* Override any gcc2 internal prototype to avoid an error. */
14370 /* We use char because int might match the return type of a gcc2
14371 builtin and then its argument prototype would still apply. */
14375 #ifdef F77_DUMMY_MAIN
14376 # ifdef __cplusplus
14379 int F77_DUMMY_MAIN() { return 1; }
14384 /* The GNU C library defines this for functions which it implements
14385 to always fail with ENOSYS. Some functions are actually named
14386 something starting with __ and the normal name is an alias. */
14387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14397 rm -f conftest.$ac_objext conftest$ac_exeext
14398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14399 (eval $ac_link) 2>&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } &&
14403 { ac_try='test -s conftest$ac_exeext'
14404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405 (eval $ac_try) 2>&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; }; then
14409 eval "$as_ac_var=yes"
14411 echo "$as_me: failed program was:" >&5
14412 cat conftest.$ac_ext >&5
14413 eval "$as_ac_var=no"
14415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14418 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14419 if test `eval echo '${'$as_ac_var'}'` = yes; then
14420 cat >>confdefs.h <<_ACEOF
14421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14429 eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14430 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14431 eval "LIB_gethostbyname=$ac_res"
14435 eval "ac_cv_func_gethostbyname=yes"
14436 eval "LIB_gethostbyname="
14437 cat >>confdefs.h <<_ACEOF
14438 #define $ac_tr_func 1
14441 echo "$as_me:$LINENO: result: yes" >&5
14442 echo "${ECHO_T}yes" >&6
14445 eval "ac_cv_func_gethostbyname=no"
14446 eval "LIB_gethostbyname="
14447 echo "$as_me:$LINENO: result: no" >&5
14448 echo "${ECHO_T}no" >&6
14451 eval "ac_cv_func_gethostbyname=yes"
14452 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
14453 cat >>confdefs.h <<_ACEOF
14454 #define $ac_tr_func 1
14457 cat >>confdefs.h <<_ACEOF
14458 #define $ac_tr_lib 1
14461 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
14462 echo "${ECHO_T}yes, in $ac_res" >&6
14467 if test -n "$LIB_gethostbyname"; then
14468 LIBS="$LIB_gethostbyname $LIBS"
14475 echo "$as_me:$LINENO: checking for syslog" >&5
14476 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
14477 if test "${ac_cv_funclib_syslog+set}" = set; then
14478 echo $ECHO_N "(cached) $ECHO_C" >&6
14481 if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
14482 ac_save_LIBS="$LIBS"
14483 for ac_lib in "" syslog; do
14489 *) ac_lib="-l$ac_lib" ;;
14491 LIBS=" $ac_lib $ac_save_LIBS"
14492 cat >conftest.$ac_ext <<_ACEOF
14493 #line $LINENO "configure"
14494 #include "confdefs.h"
14496 #ifdef F77_DUMMY_MAIN
14497 # ifdef __cplusplus
14500 int F77_DUMMY_MAIN() { return 1; }
14510 rm -f conftest.$ac_objext conftest$ac_exeext
14511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14512 (eval $ac_link) 2>&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); } &&
14516 { ac_try='test -s conftest$ac_exeext'
14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518 (eval $ac_try) 2>&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; }; then
14522 eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
14524 echo "$as_me: failed program was:" >&5
14525 cat conftest.$ac_ext >&5
14527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14529 eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
14530 LIBS="$ac_save_LIBS"
14536 eval "ac_res=\$ac_cv_funclib_syslog"
14540 for ac_func in syslog
14542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14543 echo "$as_me:$LINENO: checking for $ac_func" >&5
14544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14545 if eval "test \"\${$as_ac_var+set}\" = set"; then
14546 echo $ECHO_N "(cached) $ECHO_C" >&6
14548 cat >conftest.$ac_ext <<_ACEOF
14549 #line $LINENO "configure"
14550 #include "confdefs.h"
14551 /* System header to define __stub macros and hopefully few prototypes,
14552 which can conflict with char $ac_func (); below. */
14553 #include <assert.h>
14554 /* Override any gcc2 internal prototype to avoid an error. */
14558 /* We use char because int might match the return type of a gcc2
14559 builtin and then its argument prototype would still apply. */
14563 #ifdef F77_DUMMY_MAIN
14564 # ifdef __cplusplus
14567 int F77_DUMMY_MAIN() { return 1; }
14572 /* The GNU C library defines this for functions which it implements
14573 to always fail with ENOSYS. Some functions are actually named
14574 something starting with __ and the normal name is an alias. */
14575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14585 rm -f conftest.$ac_objext conftest$ac_exeext
14586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14587 (eval $ac_link) 2>&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); } &&
14591 { ac_try='test -s conftest$ac_exeext'
14592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593 (eval $ac_try) 2>&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; }; then
14597 eval "$as_ac_var=yes"
14599 echo "$as_me: failed program was:" >&5
14600 cat conftest.$ac_ext >&5
14601 eval "$as_ac_var=no"
14603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14606 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14607 if test `eval echo '${'$as_ac_var'}'` = yes; then
14608 cat >>confdefs.h <<_ACEOF
14609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14617 eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14618 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14619 eval "LIB_syslog=$ac_res"
14623 eval "ac_cv_func_syslog=yes"
14625 cat >>confdefs.h <<_ACEOF
14626 #define $ac_tr_func 1
14629 echo "$as_me:$LINENO: result: yes" >&5
14630 echo "${ECHO_T}yes" >&6
14633 eval "ac_cv_func_syslog=no"
14635 echo "$as_me:$LINENO: result: no" >&5
14636 echo "${ECHO_T}no" >&6
14639 eval "ac_cv_func_syslog=yes"
14640 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
14641 cat >>confdefs.h <<_ACEOF
14642 #define $ac_tr_func 1
14645 cat >>confdefs.h <<_ACEOF
14646 #define $ac_tr_lib 1
14649 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
14650 echo "${ECHO_T}yes, in $ac_res" >&6
14655 if test -n "$LIB_syslog"; then
14656 LIBS="$LIB_syslog $LIBS"
14662 # Check whether --with-ipv6 or --without-ipv6 was given.
14663 if test "${with_ipv6+set}" = set; then
14664 withval="$with_ipv6"
14666 if test "$withval" = "no"; then
14670 save_CFLAGS="${CFLAGS}"
14671 echo "$as_me:$LINENO: checking for IPv6 stack type" >&5
14672 echo $ECHO_N "checking for IPv6 stack type... $ECHO_C" >&6
14673 if test "${v6type+set}" = set; then
14674 echo $ECHO_N "(cached) $ECHO_C" >&6
14679 for i in v6d toshiba kame inria zeta linux; do
14682 cat >conftest.$ac_ext <<_ACEOF
14683 #line $LINENO "configure"
14684 #include "confdefs.h"
14686 #include </usr/local/v6/include/sys/types.h>
14691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14692 egrep "yes" >/dev/null 2>&1; then
14693 v6type=$i; v6lib=v6;
14694 v6libdir=/usr/local/v6/lib;
14695 CFLAGS="-I/usr/local/v6/include $CFLAGS"
14701 cat >conftest.$ac_ext <<_ACEOF
14702 #line $LINENO "configure"
14703 #include "confdefs.h"
14705 #include <sys/param.h>
14706 #ifdef _TOSHIBA_INET6
14710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14711 egrep "yes" >/dev/null 2>&1; then
14712 v6type=$i; v6lib=inet6;
14713 v6libdir=/usr/local/v6/lib;
14714 CFLAGS="-DINET6 $CFLAGS"
14720 cat >conftest.$ac_ext <<_ACEOF
14721 #line $LINENO "configure"
14722 #include "confdefs.h"
14724 #include <netinet/in.h>
14729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14730 egrep "yes" >/dev/null 2>&1; then
14731 v6type=$i; v6lib=inet6;
14732 v6libdir=/usr/local/v6/lib;
14733 CFLAGS="-DINET6 $CFLAGS"
14739 cat >conftest.$ac_ext <<_ACEOF
14740 #line $LINENO "configure"
14741 #include "confdefs.h"
14743 #include <netinet/in.h>
14744 #ifdef IPV6_INRIA_VERSION
14748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14749 egrep "yes" >/dev/null 2>&1; then
14750 v6type=$i; CFLAGS="-DINET6 $CFLAGS"
14756 cat >conftest.$ac_ext <<_ACEOF
14757 #line $LINENO "configure"
14758 #include "confdefs.h"
14760 #include <sys/param.h>
14761 #ifdef _ZETA_MINAMI_INET6
14765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14766 egrep "yes" >/dev/null 2>&1; then
14767 v6type=$i; v6lib=inet6;
14768 v6libdir=/usr/local/v6/lib;
14769 CFLAGS="-DINET6 $CFLAGS"
14775 if test -d /usr/inet6; then
14778 v6libdir=/usr/inet6
14779 CFLAGS="-DINET6 $CFLAGS"
14783 if test "$v6type" != "unknown"; then
14788 if test "$v6lib" != "none"; then
14789 for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
14790 if test -d $dir -a -f $dir/lib$v6lib.a; then
14791 LIBS="-L$dir -l$v6lib $LIBS"
14798 echo "$as_me:$LINENO: result: $v6type" >&5
14799 echo "${ECHO_T}$v6type" >&6
14801 echo "$as_me:$LINENO: checking for IPv6" >&5
14802 echo $ECHO_N "checking for IPv6... $ECHO_C" >&6
14803 if test "${ac_cv_lib_ipv6+set}" = set; then
14804 echo $ECHO_N "(cached) $ECHO_C" >&6
14807 cat >conftest.$ac_ext <<_ACEOF
14808 #line $LINENO "configure"
14809 #include "confdefs.h"
14811 #ifdef HAVE_SYS_TYPES_H
14812 #include <sys/types.h>
14814 #ifdef HAVE_SYS_SOCKET_H
14815 #include <sys/socket.h>
14817 #ifdef HAVE_NETINET_IN_H
14818 #include <netinet/in.h>
14820 #ifdef HAVE_NETINET_IN6_H
14821 #include <netinet/in6.h>
14824 #ifdef F77_DUMMY_MAIN
14825 # ifdef __cplusplus
14828 int F77_DUMMY_MAIN() { return 1; }
14834 struct sockaddr_in6 sin6;
14837 s = socket(AF_INET6, SOCK_DGRAM, 0);
14839 sin6.sin6_family = AF_INET6;
14840 sin6.sin6_port = htons(17);
14841 sin6.sin6_addr = in6addr_any;
14842 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));
14848 rm -f conftest.$ac_objext conftest$ac_exeext
14849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14850 (eval $ac_link) 2>&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } &&
14854 { ac_try='test -s conftest$ac_exeext'
14855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856 (eval $ac_try) 2>&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); }; }; then
14862 echo "$as_me: failed program was:" >&5
14863 cat conftest.$ac_ext >&5
14866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14868 echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6" >&5
14869 echo "${ECHO_T}$ac_cv_lib_ipv6" >&6
14870 if test "$ac_cv_lib_ipv6" = yes; then
14872 cat >>confdefs.h <<\_ACEOF
14873 #define HAVE_IPV6 1
14877 CFLAGS="${save_CFLAGS}"
14880 if test "$ac_cv_lib_ipv6" = yes; then
14881 echo "$as_me:$LINENO: checking for in6addr_loopback" >&5
14882 echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6
14883 if test "${ac_cv_var_in6addr_loopback+set}" = set; then
14884 echo $ECHO_N "(cached) $ECHO_C" >&6
14887 cat >conftest.$ac_ext <<_ACEOF
14888 #line $LINENO "configure"
14889 #include "confdefs.h"
14891 #ifdef HAVE_SYS_TYPES_H
14892 #include <sys/types.h>
14894 #ifdef HAVE_SYS_SOCKET_H
14895 #include <sys/socket.h>
14897 #ifdef HAVE_NETINET_IN_H
14898 #include <netinet/in.h>
14900 #ifdef HAVE_NETINET_IN6_H
14901 #include <netinet/in6.h>
14903 #ifdef F77_DUMMY_MAIN
14904 # ifdef __cplusplus
14907 int F77_DUMMY_MAIN() { return 1; }
14913 struct sockaddr_in6 sin6;
14914 sin6.sin6_addr = in6addr_loopback;
14920 rm -f conftest.$ac_objext conftest$ac_exeext
14921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14922 (eval $ac_link) 2>&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } &&
14926 { ac_try='test -s conftest$ac_exeext'
14927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928 (eval $ac_try) 2>&5
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); }; }; then
14932 ac_cv_var_in6addr_loopback=yes
14934 echo "$as_me: failed program was:" >&5
14935 cat conftest.$ac_ext >&5
14936 ac_cv_var_in6addr_loopback=no
14938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14940 echo "$as_me:$LINENO: result: $ac_cv_var_in6addr_loopback" >&5
14941 echo "${ECHO_T}$ac_cv_var_in6addr_loopback" >&6
14942 if test "$ac_cv_var_in6addr_loopback" = yes; then
14944 cat >>confdefs.h <<\_ACEOF
14945 #define HAVE_IN6ADDR_LOOPBACK 1
14956 echo "$as_me:$LINENO: checking for gethostbyname2" >&5
14957 echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6
14958 if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
14959 echo $ECHO_N "(cached) $ECHO_C" >&6
14962 if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
14963 ac_save_LIBS="$LIBS"
14964 for ac_lib in "" inet6 ip6; do
14970 *) ac_lib="-l$ac_lib" ;;
14972 LIBS=" $ac_lib $ac_save_LIBS"
14973 cat >conftest.$ac_ext <<_ACEOF
14974 #line $LINENO "configure"
14975 #include "confdefs.h"
14977 #ifdef F77_DUMMY_MAIN
14978 # ifdef __cplusplus
14981 int F77_DUMMY_MAIN() { return 1; }
14991 rm -f conftest.$ac_objext conftest$ac_exeext
14992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14993 (eval $ac_link) 2>&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } &&
14997 { ac_try='test -s conftest$ac_exeext'
14998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); }; }; then
15003 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
15005 echo "$as_me: failed program was:" >&5
15006 cat conftest.$ac_ext >&5
15008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15010 eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
15011 LIBS="$ac_save_LIBS"
15017 eval "ac_res=\$ac_cv_funclib_gethostbyname2"
15021 for ac_func in gethostbyname2
15023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15024 echo "$as_me:$LINENO: checking for $ac_func" >&5
15025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15026 if eval "test \"\${$as_ac_var+set}\" = set"; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15029 cat >conftest.$ac_ext <<_ACEOF
15030 #line $LINENO "configure"
15031 #include "confdefs.h"
15032 /* System header to define __stub macros and hopefully few prototypes,
15033 which can conflict with char $ac_func (); below. */
15034 #include <assert.h>
15035 /* Override any gcc2 internal prototype to avoid an error. */
15039 /* We use char because int might match the return type of a gcc2
15040 builtin and then its argument prototype would still apply. */
15044 #ifdef F77_DUMMY_MAIN
15045 # ifdef __cplusplus
15048 int F77_DUMMY_MAIN() { return 1; }
15053 /* The GNU C library defines this for functions which it implements
15054 to always fail with ENOSYS. Some functions are actually named
15055 something starting with __ and the normal name is an alias. */
15056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15066 rm -f conftest.$ac_objext conftest$ac_exeext
15067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15068 (eval $ac_link) 2>&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); } &&
15072 { ac_try='test -s conftest$ac_exeext'
15073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074 (eval $ac_try) 2>&5
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; }; then
15078 eval "$as_ac_var=yes"
15080 echo "$as_me: failed program was:" >&5
15081 cat conftest.$ac_ext >&5
15082 eval "$as_ac_var=no"
15084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15087 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15088 if test `eval echo '${'$as_ac_var'}'` = yes; then
15089 cat >>confdefs.h <<_ACEOF
15090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15098 eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15099 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15100 eval "LIB_gethostbyname2=$ac_res"
15104 eval "ac_cv_func_gethostbyname2=yes"
15105 eval "LIB_gethostbyname2="
15106 cat >>confdefs.h <<_ACEOF
15107 #define $ac_tr_func 1
15110 echo "$as_me:$LINENO: result: yes" >&5
15111 echo "${ECHO_T}yes" >&6
15114 eval "ac_cv_func_gethostbyname2=no"
15115 eval "LIB_gethostbyname2="
15116 echo "$as_me:$LINENO: result: no" >&5
15117 echo "${ECHO_T}no" >&6
15120 eval "ac_cv_func_gethostbyname2=yes"
15121 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15122 cat >>confdefs.h <<_ACEOF
15123 #define $ac_tr_func 1
15126 cat >>confdefs.h <<_ACEOF
15127 #define $ac_tr_lib 1
15130 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
15131 echo "${ECHO_T}yes, in $ac_res" >&6
15136 if test -n "$LIB_gethostbyname2"; then
15137 LIBS="$LIB_gethostbyname2 $LIBS"
15145 echo "$as_me:$LINENO: checking for res_search" >&5
15146 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
15147 if test "${ac_cv_funclib_res_search+set}" = set; then
15148 echo $ECHO_N "(cached) $ECHO_C" >&6
15151 if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
15152 ac_save_LIBS="$LIBS"
15153 for ac_lib in "" resolv; do
15159 *) ac_lib="-l$ac_lib" ;;
15161 LIBS=" $ac_lib $ac_save_LIBS"
15162 cat >conftest.$ac_ext <<_ACEOF
15163 #line $LINENO "configure"
15164 #include "confdefs.h"
15167 #ifdef HAVE_SYS_TYPES_H
15168 #include <sys/types.h>
15170 #ifdef HAVE_NETINET_IN_H
15171 #include <netinet/in.h>
15173 #ifdef HAVE_ARPA_NAMESER_H
15174 #include <arpa/nameser.h>
15176 #ifdef HAVE_RESOLV_H
15177 #include <resolv.h>
15180 #ifdef F77_DUMMY_MAIN
15181 # ifdef __cplusplus
15184 int F77_DUMMY_MAIN() { return 1; }
15189 res_search(0,0,0,0,0)
15194 rm -f conftest.$ac_objext conftest$ac_exeext
15195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15196 (eval $ac_link) 2>&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } &&
15200 { ac_try='test -s conftest$ac_exeext'
15201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15202 (eval $ac_try) 2>&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); }; }; then
15206 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
15208 echo "$as_me: failed program was:" >&5
15209 cat conftest.$ac_ext >&5
15211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15213 eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
15214 LIBS="$ac_save_LIBS"
15220 eval "ac_res=\$ac_cv_funclib_res_search"
15224 for ac_func in res_search
15226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15227 echo "$as_me:$LINENO: checking for $ac_func" >&5
15228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15229 if eval "test \"\${$as_ac_var+set}\" = set"; then
15230 echo $ECHO_N "(cached) $ECHO_C" >&6
15232 cat >conftest.$ac_ext <<_ACEOF
15233 #line $LINENO "configure"
15234 #include "confdefs.h"
15235 /* System header to define __stub macros and hopefully few prototypes,
15236 which can conflict with char $ac_func (); below. */
15237 #include <assert.h>
15238 /* Override any gcc2 internal prototype to avoid an error. */
15242 /* We use char because int might match the return type of a gcc2
15243 builtin and then its argument prototype would still apply. */
15247 #ifdef F77_DUMMY_MAIN
15248 # ifdef __cplusplus
15251 int F77_DUMMY_MAIN() { return 1; }
15256 /* The GNU C library defines this for functions which it implements
15257 to always fail with ENOSYS. Some functions are actually named
15258 something starting with __ and the normal name is an alias. */
15259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15269 rm -f conftest.$ac_objext conftest$ac_exeext
15270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15271 (eval $ac_link) 2>&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } &&
15275 { ac_try='test -s conftest$ac_exeext'
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15281 eval "$as_ac_var=yes"
15283 echo "$as_me: failed program was:" >&5
15284 cat conftest.$ac_ext >&5
15285 eval "$as_ac_var=no"
15287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15291 if test `eval echo '${'$as_ac_var'}'` = yes; then
15292 cat >>confdefs.h <<_ACEOF
15293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15301 eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15302 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15303 eval "LIB_res_search=$ac_res"
15307 eval "ac_cv_func_res_search=yes"
15308 eval "LIB_res_search="
15309 cat >>confdefs.h <<_ACEOF
15310 #define $ac_tr_func 1
15313 echo "$as_me:$LINENO: result: yes" >&5
15314 echo "${ECHO_T}yes" >&6
15317 eval "ac_cv_func_res_search=no"
15318 eval "LIB_res_search="
15319 echo "$as_me:$LINENO: result: no" >&5
15320 echo "${ECHO_T}no" >&6
15323 eval "ac_cv_func_res_search=yes"
15324 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15325 cat >>confdefs.h <<_ACEOF
15326 #define $ac_tr_func 1
15329 cat >>confdefs.h <<_ACEOF
15330 #define $ac_tr_lib 1
15333 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
15334 echo "${ECHO_T}yes, in $ac_res" >&6
15339 if test -n "$LIB_res_search"; then
15340 LIBS="$LIB_res_search $LIBS"
15348 echo "$as_me:$LINENO: checking for res_nsearch" >&5
15349 echo $ECHO_N "checking for res_nsearch... $ECHO_C" >&6
15350 if test "${ac_cv_funclib_res_nsearch+set}" = set; then
15351 echo $ECHO_N "(cached) $ECHO_C" >&6
15354 if eval "test \"\$ac_cv_func_res_nsearch\" != yes" ; then
15355 ac_save_LIBS="$LIBS"
15356 for ac_lib in "" resolv; do
15362 *) ac_lib="-l$ac_lib" ;;
15364 LIBS=" $ac_lib $ac_save_LIBS"
15365 cat >conftest.$ac_ext <<_ACEOF
15366 #line $LINENO "configure"
15367 #include "confdefs.h"
15370 #ifdef HAVE_SYS_TYPES_H
15371 #include <sys/types.h>
15373 #ifdef HAVE_NETINET_IN_H
15374 #include <netinet/in.h>
15376 #ifdef HAVE_ARPA_NAMESER_H
15377 #include <arpa/nameser.h>
15379 #ifdef HAVE_RESOLV_H
15380 #include <resolv.h>
15383 #ifdef F77_DUMMY_MAIN
15384 # ifdef __cplusplus
15387 int F77_DUMMY_MAIN() { return 1; }
15392 res_nsearch(0,0,0,0,0)
15397 rm -f conftest.$ac_objext conftest$ac_exeext
15398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15399 (eval $ac_link) 2>&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } &&
15403 { ac_try='test -s conftest$ac_exeext'
15404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15405 (eval $ac_try) 2>&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; }; then
15409 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_nsearch=$ac_lib; else ac_cv_funclib_res_nsearch=yes; fi";break
15411 echo "$as_me: failed program was:" >&5
15412 cat conftest.$ac_ext >&5
15414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15416 eval "ac_cv_funclib_res_nsearch=\${ac_cv_funclib_res_nsearch-no}"
15417 LIBS="$ac_save_LIBS"
15423 eval "ac_res=\$ac_cv_funclib_res_nsearch"
15427 for ac_func in res_nsearch
15429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15430 echo "$as_me:$LINENO: checking for $ac_func" >&5
15431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15432 if eval "test \"\${$as_ac_var+set}\" = set"; then
15433 echo $ECHO_N "(cached) $ECHO_C" >&6
15435 cat >conftest.$ac_ext <<_ACEOF
15436 #line $LINENO "configure"
15437 #include "confdefs.h"
15438 /* System header to define __stub macros and hopefully few prototypes,
15439 which can conflict with char $ac_func (); below. */
15440 #include <assert.h>
15441 /* Override any gcc2 internal prototype to avoid an error. */
15445 /* We use char because int might match the return type of a gcc2
15446 builtin and then its argument prototype would still apply. */
15450 #ifdef F77_DUMMY_MAIN
15451 # ifdef __cplusplus
15454 int F77_DUMMY_MAIN() { return 1; }
15459 /* The GNU C library defines this for functions which it implements
15460 to always fail with ENOSYS. Some functions are actually named
15461 something starting with __ and the normal name is an alias. */
15462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15472 rm -f conftest.$ac_objext conftest$ac_exeext
15473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15474 (eval $ac_link) 2>&5
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); } &&
15478 { ac_try='test -s conftest$ac_exeext'
15479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15480 (eval $ac_try) 2>&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); }; }; then
15484 eval "$as_ac_var=yes"
15486 echo "$as_me: failed program was:" >&5
15487 cat conftest.$ac_ext >&5
15488 eval "$as_ac_var=no"
15490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15494 if test `eval echo '${'$as_ac_var'}'` = yes; then
15495 cat >>confdefs.h <<_ACEOF
15496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15504 eval "ac_tr_func=HAVE_`echo res_nsearch | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15505 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15506 eval "LIB_res_nsearch=$ac_res"
15510 eval "ac_cv_func_res_nsearch=yes"
15511 eval "LIB_res_nsearch="
15512 cat >>confdefs.h <<_ACEOF
15513 #define $ac_tr_func 1
15516 echo "$as_me:$LINENO: result: yes" >&5
15517 echo "${ECHO_T}yes" >&6
15520 eval "ac_cv_func_res_nsearch=no"
15521 eval "LIB_res_nsearch="
15522 echo "$as_me:$LINENO: result: no" >&5
15523 echo "${ECHO_T}no" >&6
15526 eval "ac_cv_func_res_nsearch=yes"
15527 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15528 cat >>confdefs.h <<_ACEOF
15529 #define $ac_tr_func 1
15532 cat >>confdefs.h <<_ACEOF
15533 #define $ac_tr_lib 1
15536 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
15537 echo "${ECHO_T}yes, in $ac_res" >&6
15542 if test -n "$LIB_res_nsearch"; then
15543 LIBS="$LIB_res_nsearch $LIBS"
15551 echo "$as_me:$LINENO: checking for dn_expand" >&5
15552 echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6
15553 if test "${ac_cv_funclib_dn_expand+set}" = set; then
15554 echo $ECHO_N "(cached) $ECHO_C" >&6
15557 if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
15558 ac_save_LIBS="$LIBS"
15559 for ac_lib in "" resolv; do
15565 *) ac_lib="-l$ac_lib" ;;
15567 LIBS=" $ac_lib $ac_save_LIBS"
15568 cat >conftest.$ac_ext <<_ACEOF
15569 #line $LINENO "configure"
15570 #include "confdefs.h"
15573 #ifdef HAVE_SYS_TYPES_H
15574 #include <sys/types.h>
15576 #ifdef HAVE_NETINET_IN_H
15577 #include <netinet/in.h>
15579 #ifdef HAVE_ARPA_NAMESER_H
15580 #include <arpa/nameser.h>
15582 #ifdef HAVE_RESOLV_H
15583 #include <resolv.h>
15586 #ifdef F77_DUMMY_MAIN
15587 # ifdef __cplusplus
15590 int F77_DUMMY_MAIN() { return 1; }
15595 dn_expand(0,0,0,0,0)
15600 rm -f conftest.$ac_objext conftest$ac_exeext
15601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15602 (eval $ac_link) 2>&5
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); } &&
15606 { ac_try='test -s conftest$ac_exeext'
15607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15608 (eval $ac_try) 2>&5
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; }; then
15612 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
15614 echo "$as_me: failed program was:" >&5
15615 cat conftest.$ac_ext >&5
15617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15619 eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
15620 LIBS="$ac_save_LIBS"
15626 eval "ac_res=\$ac_cv_funclib_dn_expand"
15630 for ac_func in dn_expand
15632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15633 echo "$as_me:$LINENO: checking for $ac_func" >&5
15634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15635 if eval "test \"\${$as_ac_var+set}\" = set"; then
15636 echo $ECHO_N "(cached) $ECHO_C" >&6
15638 cat >conftest.$ac_ext <<_ACEOF
15639 #line $LINENO "configure"
15640 #include "confdefs.h"
15641 /* System header to define __stub macros and hopefully few prototypes,
15642 which can conflict with char $ac_func (); below. */
15643 #include <assert.h>
15644 /* Override any gcc2 internal prototype to avoid an error. */
15648 /* We use char because int might match the return type of a gcc2
15649 builtin and then its argument prototype would still apply. */
15653 #ifdef F77_DUMMY_MAIN
15654 # ifdef __cplusplus
15657 int F77_DUMMY_MAIN() { return 1; }
15662 /* The GNU C library defines this for functions which it implements
15663 to always fail with ENOSYS. Some functions are actually named
15664 something starting with __ and the normal name is an alias. */
15665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15675 rm -f conftest.$ac_objext conftest$ac_exeext
15676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15677 (eval $ac_link) 2>&5
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } &&
15681 { ac_try='test -s conftest$ac_exeext'
15682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15683 (eval $ac_try) 2>&5
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); }; }; then
15687 eval "$as_ac_var=yes"
15689 echo "$as_me: failed program was:" >&5
15690 cat conftest.$ac_ext >&5
15691 eval "$as_ac_var=no"
15693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15697 if test `eval echo '${'$as_ac_var'}'` = yes; then
15698 cat >>confdefs.h <<_ACEOF
15699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15707 eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15708 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15709 eval "LIB_dn_expand=$ac_res"
15713 eval "ac_cv_func_dn_expand=yes"
15714 eval "LIB_dn_expand="
15715 cat >>confdefs.h <<_ACEOF
15716 #define $ac_tr_func 1
15719 echo "$as_me:$LINENO: result: yes" >&5
15720 echo "${ECHO_T}yes" >&6
15723 eval "ac_cv_func_dn_expand=no"
15724 eval "LIB_dn_expand="
15725 echo "$as_me:$LINENO: result: no" >&5
15726 echo "${ECHO_T}no" >&6
15729 eval "ac_cv_func_dn_expand=yes"
15730 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15731 cat >>confdefs.h <<_ACEOF
15732 #define $ac_tr_func 1
15735 cat >>confdefs.h <<_ACEOF
15736 #define $ac_tr_lib 1
15739 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
15740 echo "${ECHO_T}yes, in $ac_res" >&6
15745 if test -n "$LIB_dn_expand"; then
15746 LIBS="$LIB_dn_expand $LIBS"
15751 echo "$as_me:$LINENO: checking for _res" >&5
15752 echo $ECHO_N "checking for _res... $ECHO_C" >&6
15753 if test "${ac_cv_var__res+set}" = set; then
15754 echo $ECHO_N "(cached) $ECHO_C" >&6
15757 cat >conftest.$ac_ext <<_ACEOF
15758 #line $LINENO "configure"
15759 #include "confdefs.h"
15761 int foo() { return _res; }
15762 #ifdef F77_DUMMY_MAIN
15763 # ifdef __cplusplus
15766 int F77_DUMMY_MAIN() { return 1; }
15776 rm -f conftest.$ac_objext conftest$ac_exeext
15777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15778 (eval $ac_link) 2>&5
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); } &&
15782 { ac_try='test -s conftest$ac_exeext'
15783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15784 (eval $ac_try) 2>&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; }; then
15790 echo "$as_me: failed program was:" >&5
15791 cat conftest.$ac_ext >&5
15794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15798 ac_foo=`eval echo \\$ac_cv_var__res`
15799 echo "$as_me:$LINENO: result: $ac_foo" >&5
15800 echo "${ECHO_T}$ac_foo" >&6
15801 if test "$ac_foo" = yes; then
15803 cat >>confdefs.h <<_ACEOF
15804 #define HAVE__RES 1
15808 echo "$as_me:$LINENO: checking if _res is properly declared" >&5
15809 echo $ECHO_N "checking if _res is properly declared... $ECHO_C" >&6
15810 if test "${ac_cv_var__res_declaration+set}" = set; then
15811 echo $ECHO_N "(cached) $ECHO_C" >&6
15814 cat >conftest.$ac_ext <<_ACEOF
15815 #line $LINENO "configure"
15816 #include "confdefs.h"
15818 #ifdef HAVE_SYS_TYPES_H
15819 #include <sys/types.h>
15821 #ifdef HAVE_NETINET_IN_H
15822 #include <netinet/in.h>
15824 #ifdef HAVE_ARPA_NAMESER_H
15825 #include <arpa/nameser.h>
15827 #ifdef HAVE_RESOLV_H
15828 #include <resolv.h>
15830 extern struct { int foo; } _res;
15831 #ifdef F77_DUMMY_MAIN
15832 # ifdef __cplusplus
15835 int F77_DUMMY_MAIN() { return 1; }
15845 rm -f conftest.$ac_objext
15846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15847 (eval $ac_compile) 2>&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } &&
15851 { ac_try='test -s conftest.$ac_objext'
15852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853 (eval $ac_try) 2>&5
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); }; }; then
15857 eval "ac_cv_var__res_declaration=no"
15859 echo "$as_me: failed program was:" >&5
15860 cat conftest.$ac_ext >&5
15861 eval "ac_cv_var__res_declaration=yes"
15863 rm -f conftest.$ac_objext conftest.$ac_ext
15870 echo "$as_me:$LINENO: result: $ac_cv_var__res_declaration" >&5
15871 echo "${ECHO_T}$ac_cv_var__res_declaration" >&6
15872 if eval "test \"\$ac_cv_var__res_declaration\" = yes"; then
15874 cat >>confdefs.h <<\_ACEOF
15875 #define HAVE__RES_DECLARATION 1
15886 echo "$as_me:$LINENO: checking for working snprintf" >&5
15887 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
15888 if test "${ac_cv_func_snprintf_working+set}" = set; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 ac_cv_func_snprintf_working=yes
15892 if test "$cross_compiling" = yes; then
15895 cat >conftest.$ac_ext <<_ACEOF
15896 #line $LINENO "configure"
15897 #include "confdefs.h"
15900 #include <string.h>
15904 snprintf(foo, 2, "12");
15905 return strcmp(foo, "1");
15908 rm -f conftest$ac_exeext
15909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15910 (eval $ac_link) 2>&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915 (eval $ac_try) 2>&5
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; }; then
15921 echo "$as_me: program exited with status $ac_status" >&5
15922 echo "$as_me: failed program was:" >&5
15923 cat conftest.$ac_ext >&5
15924 ( exit $ac_status )
15925 ac_cv_func_snprintf_working=no
15927 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15930 echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_working" >&5
15931 echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6
15933 if test "$ac_cv_func_snprintf_working" = yes; then
15935 cat >>confdefs.h <<_ACEOF
15936 #define HAVE_SNPRINTF 1
15940 if test "$ac_cv_func_snprintf_working" = yes; then
15942 if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
15943 echo "$as_me:$LINENO: checking if snprintf needs a prototype" >&5
15944 echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6
15945 if test "${ac_cv_func_snprintf_noproto+set}" = set; then
15946 echo $ECHO_N "(cached) $ECHO_C" >&6
15948 cat >conftest.$ac_ext <<_ACEOF
15949 #line $LINENO "configure"
15950 #include "confdefs.h"
15952 #ifdef F77_DUMMY_MAIN
15953 # ifdef __cplusplus
15956 int F77_DUMMY_MAIN() { return 1; }
15961 struct foo { int foo; } xx;
15962 extern int snprintf (struct foo*);
15969 rm -f conftest.$ac_objext
15970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15971 (eval $ac_compile) 2>&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } &&
15975 { ac_try='test -s conftest.$ac_objext'
15976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977 (eval $ac_try) 2>&5
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); }; }; then
15981 eval "ac_cv_func_snprintf_noproto=yes"
15983 echo "$as_me: failed program was:" >&5
15984 cat conftest.$ac_ext >&5
15985 eval "ac_cv_func_snprintf_noproto=no"
15987 rm -f conftest.$ac_objext conftest.$ac_ext
15989 echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_noproto" >&5
15990 echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6
15991 if test "$ac_cv_func_snprintf_noproto" = yes; then
15993 cat >>confdefs.h <<\_ACEOF
15994 #define NEED_SNPRINTF_PROTO 1
16003 echo "$as_me:$LINENO: checking for working vsnprintf" >&5
16004 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
16005 if test "${ac_cv_func_vsnprintf_working+set}" = set; then
16006 echo $ECHO_N "(cached) $ECHO_C" >&6
16008 ac_cv_func_vsnprintf_working=yes
16009 if test "$cross_compiling" = yes; then
16012 cat >conftest.$ac_ext <<_ACEOF
16013 #line $LINENO "configure"
16014 #include "confdefs.h"
16017 #include <string.h>
16018 #include <stdarg.h>
16020 int foo(int num, ...)
16024 va_start(arg, num);
16025 vsnprintf(bar, 2, "%s", arg);
16027 return strcmp(bar, "1");
16033 return foo(0, "12");
16036 rm -f conftest$ac_exeext
16037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16038 (eval $ac_link) 2>&5
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043 (eval $ac_try) 2>&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; }; then
16049 echo "$as_me: program exited with status $ac_status" >&5
16050 echo "$as_me: failed program was:" >&5
16051 cat conftest.$ac_ext >&5
16052 ( exit $ac_status )
16053 ac_cv_func_vsnprintf_working=no
16055 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16058 echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_working" >&5
16059 echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6
16061 if test "$ac_cv_func_vsnprintf_working" = yes; then
16063 cat >>confdefs.h <<_ACEOF
16064 #define HAVE_VSNPRINTF 1
16068 if test "$ac_cv_func_vsnprintf_working" = yes; then
16070 if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
16071 echo "$as_me:$LINENO: checking if vsnprintf needs a prototype" >&5
16072 echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6
16073 if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
16074 echo $ECHO_N "(cached) $ECHO_C" >&6
16076 cat >conftest.$ac_ext <<_ACEOF
16077 #line $LINENO "configure"
16078 #include "confdefs.h"
16080 #ifdef F77_DUMMY_MAIN
16081 # ifdef __cplusplus
16084 int F77_DUMMY_MAIN() { return 1; }
16089 struct foo { int foo; } xx;
16090 extern int vsnprintf (struct foo*);
16097 rm -f conftest.$ac_objext
16098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16099 (eval $ac_compile) 2>&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); } &&
16103 { ac_try='test -s conftest.$ac_objext'
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 eval "ac_cv_func_vsnprintf_noproto=yes"
16111 echo "$as_me: failed program was:" >&5
16112 cat conftest.$ac_ext >&5
16113 eval "ac_cv_func_vsnprintf_noproto=no"
16115 rm -f conftest.$ac_objext conftest.$ac_ext
16117 echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_noproto" >&5
16118 echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6
16119 if test "$ac_cv_func_vsnprintf_noproto" = yes; then
16121 cat >>confdefs.h <<\_ACEOF
16122 #define NEED_VSNPRINTF_PROTO 1
16132 echo "$as_me:$LINENO: checking for working glob" >&5
16133 echo $ECHO_N "checking for working glob... $ECHO_C" >&6
16134 if test "${ac_cv_func_glob_working+set}" = set; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16137 ac_cv_func_glob_working=yes
16138 cat >conftest.$ac_ext <<_ACEOF
16139 #line $LINENO "configure"
16140 #include "confdefs.h"
16144 #ifdef F77_DUMMY_MAIN
16145 # ifdef __cplusplus
16148 int F77_DUMMY_MAIN() { return 1; }
16154 glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
16155 #ifdef GLOB_MAXPATH
16167 rm -f conftest.$ac_objext conftest$ac_exeext
16168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16169 (eval $ac_link) 2>&5
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); } &&
16173 { ac_try='test -s conftest$ac_exeext'
16174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16175 (eval $ac_try) 2>&5
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); }; }; then
16181 echo "$as_me: failed program was:" >&5
16182 cat conftest.$ac_ext >&5
16183 ac_cv_func_glob_working=no
16185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16187 echo "$as_me:$LINENO: result: $ac_cv_func_glob_working" >&5
16188 echo "${ECHO_T}$ac_cv_func_glob_working" >&6
16190 if test "$ac_cv_func_glob_working" = yes; then
16192 cat >>confdefs.h <<\_ACEOF
16193 #define HAVE_GLOB 1
16197 if test "$ac_cv_func_glob_working" = yes; then
16199 if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
16200 echo "$as_me:$LINENO: checking if glob needs a prototype" >&5
16201 echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6
16202 if test "${ac_cv_func_glob_noproto+set}" = set; then
16203 echo $ECHO_N "(cached) $ECHO_C" >&6
16205 cat >conftest.$ac_ext <<_ACEOF
16206 #line $LINENO "configure"
16207 #include "confdefs.h"
16210 #ifdef F77_DUMMY_MAIN
16211 # ifdef __cplusplus
16214 int F77_DUMMY_MAIN() { return 1; }
16219 struct foo { int foo; } xx;
16220 extern int glob (struct foo*);
16227 rm -f conftest.$ac_objext
16228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16229 (eval $ac_compile) 2>&5
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); } &&
16233 { ac_try='test -s conftest.$ac_objext'
16234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235 (eval $ac_try) 2>&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; }; then
16239 eval "ac_cv_func_glob_noproto=yes"
16241 echo "$as_me: failed program was:" >&5
16242 cat conftest.$ac_ext >&5
16243 eval "ac_cv_func_glob_noproto=no"
16245 rm -f conftest.$ac_objext conftest.$ac_ext
16247 echo "$as_me:$LINENO: result: $ac_cv_func_glob_noproto" >&5
16248 echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6
16249 if test "$ac_cv_func_glob_noproto" = yes; then
16251 cat >>confdefs.h <<\_ACEOF
16252 #define NEED_GLOB_PROTO 1
16260 if test "$ac_cv_func_glob_working" != yes; then
16261 LIBOBJS="$LIBOBJS glob.$ac_objext"
16265 if test "$ac_cv_func_glob_working" = yes; then
16267 have_glob_h_FALSE='#'
16269 have_glob_h_TRUE='#'
16330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16331 echo "$as_me:$LINENO: checking for $ac_func" >&5
16332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16333 if eval "test \"\${$as_ac_var+set}\" = set"; then
16334 echo $ECHO_N "(cached) $ECHO_C" >&6
16336 cat >conftest.$ac_ext <<_ACEOF
16337 #line $LINENO "configure"
16338 #include "confdefs.h"
16339 /* System header to define __stub macros and hopefully few prototypes,
16340 which can conflict with char $ac_func (); below. */
16341 #include <assert.h>
16342 /* Override any gcc2 internal prototype to avoid an error. */
16346 /* We use char because int might match the return type of a gcc2
16347 builtin and then its argument prototype would still apply. */
16351 #ifdef F77_DUMMY_MAIN
16352 # ifdef __cplusplus
16355 int F77_DUMMY_MAIN() { return 1; }
16360 /* The GNU C library defines this for functions which it implements
16361 to always fail with ENOSYS. Some functions are actually named
16362 something starting with __ and the normal name is an alias. */
16363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16373 rm -f conftest.$ac_objext conftest$ac_exeext
16374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16375 (eval $ac_link) 2>&5
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); } &&
16379 { ac_try='test -s conftest$ac_exeext'
16380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381 (eval $ac_try) 2>&5
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); }; }; then
16385 eval "$as_ac_var=yes"
16387 echo "$as_me: failed program was:" >&5
16388 cat conftest.$ac_ext >&5
16389 eval "$as_ac_var=no"
16391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16394 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16395 if test `eval echo '${'$as_ac_var'}'` = yes; then
16396 cat >>confdefs.h <<_ACEOF
16397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16404 if test "$ac_cv_func_cgetent" = no; then
16405 LIBOBJS="$LIBOBJS getcap.$ac_objext"
16415 echo "$as_me:$LINENO: checking for getsockopt" >&5
16416 echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6
16417 if test "${ac_cv_funclib_getsockopt+set}" = set; then
16418 echo $ECHO_N "(cached) $ECHO_C" >&6
16421 if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
16422 ac_save_LIBS="$LIBS"
16423 for ac_lib in "" ; do
16429 *) ac_lib="-l$ac_lib" ;;
16431 LIBS=" $ac_lib $ac_save_LIBS"
16432 cat >conftest.$ac_ext <<_ACEOF
16433 #line $LINENO "configure"
16434 #include "confdefs.h"
16435 #ifdef HAVE_SYS_TYPES_H
16436 #include <sys/types.h>
16438 #ifdef HAVE_SYS_SOCKET_H
16439 #include <sys/socket.h>
16441 #ifdef F77_DUMMY_MAIN
16442 # ifdef __cplusplus
16445 int F77_DUMMY_MAIN() { return 1; }
16450 getsockopt(0,0,0,0,0)
16455 rm -f conftest.$ac_objext conftest$ac_exeext
16456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16457 (eval $ac_link) 2>&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); } &&
16461 { ac_try='test -s conftest$ac_exeext'
16462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16463 (eval $ac_try) 2>&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); }; }; then
16467 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
16469 echo "$as_me: failed program was:" >&5
16470 cat conftest.$ac_ext >&5
16472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16474 eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
16475 LIBS="$ac_save_LIBS"
16481 eval "ac_res=\$ac_cv_funclib_getsockopt"
16485 for ac_func in getsockopt
16487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16488 echo "$as_me:$LINENO: checking for $ac_func" >&5
16489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16490 if eval "test \"\${$as_ac_var+set}\" = set"; then
16491 echo $ECHO_N "(cached) $ECHO_C" >&6
16493 cat >conftest.$ac_ext <<_ACEOF
16494 #line $LINENO "configure"
16495 #include "confdefs.h"
16496 /* System header to define __stub macros and hopefully few prototypes,
16497 which can conflict with char $ac_func (); below. */
16498 #include <assert.h>
16499 /* Override any gcc2 internal prototype to avoid an error. */
16503 /* We use char because int might match the return type of a gcc2
16504 builtin and then its argument prototype would still apply. */
16508 #ifdef F77_DUMMY_MAIN
16509 # ifdef __cplusplus
16512 int F77_DUMMY_MAIN() { return 1; }
16517 /* The GNU C library defines this for functions which it implements
16518 to always fail with ENOSYS. Some functions are actually named
16519 something starting with __ and the normal name is an alias. */
16520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16530 rm -f conftest.$ac_objext conftest$ac_exeext
16531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16532 (eval $ac_link) 2>&5
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); } &&
16536 { ac_try='test -s conftest$ac_exeext'
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; }; then
16542 eval "$as_ac_var=yes"
16544 echo "$as_me: failed program was:" >&5
16545 cat conftest.$ac_ext >&5
16546 eval "$as_ac_var=no"
16548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16551 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16552 if test `eval echo '${'$as_ac_var'}'` = yes; then
16553 cat >>confdefs.h <<_ACEOF
16554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16562 eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16563 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16564 eval "LIB_getsockopt=$ac_res"
16568 eval "ac_cv_func_getsockopt=yes"
16569 eval "LIB_getsockopt="
16570 cat >>confdefs.h <<_ACEOF
16571 #define $ac_tr_func 1
16574 echo "$as_me:$LINENO: result: yes" >&5
16575 echo "${ECHO_T}yes" >&6
16578 eval "ac_cv_func_getsockopt=no"
16579 eval "LIB_getsockopt="
16580 echo "$as_me:$LINENO: result: no" >&5
16581 echo "${ECHO_T}no" >&6
16584 eval "ac_cv_func_getsockopt=yes"
16585 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16586 cat >>confdefs.h <<_ACEOF
16587 #define $ac_tr_func 1
16590 cat >>confdefs.h <<_ACEOF
16591 #define $ac_tr_lib 1
16594 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
16595 echo "${ECHO_T}yes, in $ac_res" >&6
16603 echo "$as_me:$LINENO: checking for setsockopt" >&5
16604 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
16605 if test "${ac_cv_funclib_setsockopt+set}" = set; then
16606 echo $ECHO_N "(cached) $ECHO_C" >&6
16609 if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
16610 ac_save_LIBS="$LIBS"
16611 for ac_lib in "" ; do
16617 *) ac_lib="-l$ac_lib" ;;
16619 LIBS=" $ac_lib $ac_save_LIBS"
16620 cat >conftest.$ac_ext <<_ACEOF
16621 #line $LINENO "configure"
16622 #include "confdefs.h"
16623 #ifdef HAVE_SYS_TYPES_H
16624 #include <sys/types.h>
16626 #ifdef HAVE_SYS_SOCKET_H
16627 #include <sys/socket.h>
16629 #ifdef F77_DUMMY_MAIN
16630 # ifdef __cplusplus
16633 int F77_DUMMY_MAIN() { return 1; }
16638 setsockopt(0,0,0,0,0)
16643 rm -f conftest.$ac_objext conftest$ac_exeext
16644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16645 (eval $ac_link) 2>&5
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); } &&
16649 { ac_try='test -s conftest$ac_exeext'
16650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16651 (eval $ac_try) 2>&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; }; then
16655 eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
16657 echo "$as_me: failed program was:" >&5
16658 cat conftest.$ac_ext >&5
16660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16662 eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
16663 LIBS="$ac_save_LIBS"
16669 eval "ac_res=\$ac_cv_funclib_setsockopt"
16673 for ac_func in setsockopt
16675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16676 echo "$as_me:$LINENO: checking for $ac_func" >&5
16677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16678 if eval "test \"\${$as_ac_var+set}\" = set"; then
16679 echo $ECHO_N "(cached) $ECHO_C" >&6
16681 cat >conftest.$ac_ext <<_ACEOF
16682 #line $LINENO "configure"
16683 #include "confdefs.h"
16684 /* System header to define __stub macros and hopefully few prototypes,
16685 which can conflict with char $ac_func (); below. */
16686 #include <assert.h>
16687 /* Override any gcc2 internal prototype to avoid an error. */
16691 /* We use char because int might match the return type of a gcc2
16692 builtin and then its argument prototype would still apply. */
16696 #ifdef F77_DUMMY_MAIN
16697 # ifdef __cplusplus
16700 int F77_DUMMY_MAIN() { return 1; }
16705 /* The GNU C library defines this for functions which it implements
16706 to always fail with ENOSYS. Some functions are actually named
16707 something starting with __ and the normal name is an alias. */
16708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16718 rm -f conftest.$ac_objext conftest$ac_exeext
16719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16720 (eval $ac_link) 2>&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); } &&
16724 { ac_try='test -s conftest$ac_exeext'
16725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726 (eval $ac_try) 2>&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; }; then
16730 eval "$as_ac_var=yes"
16732 echo "$as_me: failed program was:" >&5
16733 cat conftest.$ac_ext >&5
16734 eval "$as_ac_var=no"
16736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16740 if test `eval echo '${'$as_ac_var'}'` = yes; then
16741 cat >>confdefs.h <<_ACEOF
16742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16750 eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16751 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16752 eval "LIB_setsockopt=$ac_res"
16756 eval "ac_cv_func_setsockopt=yes"
16757 eval "LIB_setsockopt="
16758 cat >>confdefs.h <<_ACEOF
16759 #define $ac_tr_func 1
16762 echo "$as_me:$LINENO: result: yes" >&5
16763 echo "${ECHO_T}yes" >&6
16766 eval "ac_cv_func_setsockopt=no"
16767 eval "LIB_setsockopt="
16768 echo "$as_me:$LINENO: result: no" >&5
16769 echo "${ECHO_T}no" >&6
16772 eval "ac_cv_func_setsockopt=yes"
16773 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16774 cat >>confdefs.h <<_ACEOF
16775 #define $ac_tr_func 1
16778 cat >>confdefs.h <<_ACEOF
16779 #define $ac_tr_lib 1
16782 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
16783 echo "${ECHO_T}yes, in $ac_res" >&6
16793 echo "$as_me:$LINENO: checking for hstrerror" >&5
16794 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
16795 if test "${ac_cv_funclib_hstrerror+set}" = set; then
16796 echo $ECHO_N "(cached) $ECHO_C" >&6
16799 if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
16800 ac_save_LIBS="$LIBS"
16801 for ac_lib in "" resolv; do
16807 *) ac_lib="-l$ac_lib" ;;
16809 LIBS=" $ac_lib $ac_save_LIBS"
16810 cat >conftest.$ac_ext <<_ACEOF
16811 #line $LINENO "configure"
16812 #include "confdefs.h"
16813 #ifdef HAVE_NETDB_H
16816 #ifdef F77_DUMMY_MAIN
16817 # ifdef __cplusplus
16820 int F77_DUMMY_MAIN() { return 1; }
16830 rm -f conftest.$ac_objext conftest$ac_exeext
16831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16832 (eval $ac_link) 2>&5
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); } &&
16836 { ac_try='test -s conftest$ac_exeext'
16837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838 (eval $ac_try) 2>&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; }; then
16842 eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
16844 echo "$as_me: failed program was:" >&5
16845 cat conftest.$ac_ext >&5
16847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16849 eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
16850 LIBS="$ac_save_LIBS"
16856 eval "ac_res=\$ac_cv_funclib_hstrerror"
16860 for ac_func in hstrerror
16862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16863 echo "$as_me:$LINENO: checking for $ac_func" >&5
16864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16865 if eval "test \"\${$as_ac_var+set}\" = set"; then
16866 echo $ECHO_N "(cached) $ECHO_C" >&6
16868 cat >conftest.$ac_ext <<_ACEOF
16869 #line $LINENO "configure"
16870 #include "confdefs.h"
16871 /* System header to define __stub macros and hopefully few prototypes,
16872 which can conflict with char $ac_func (); below. */
16873 #include <assert.h>
16874 /* Override any gcc2 internal prototype to avoid an error. */
16878 /* We use char because int might match the return type of a gcc2
16879 builtin and then its argument prototype would still apply. */
16883 #ifdef F77_DUMMY_MAIN
16884 # ifdef __cplusplus
16887 int F77_DUMMY_MAIN() { return 1; }
16892 /* The GNU C library defines this for functions which it implements
16893 to always fail with ENOSYS. Some functions are actually named
16894 something starting with __ and the normal name is an alias. */
16895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16905 rm -f conftest.$ac_objext conftest$ac_exeext
16906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16907 (eval $ac_link) 2>&5
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } &&
16911 { ac_try='test -s conftest$ac_exeext'
16912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913 (eval $ac_try) 2>&5
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; }; then
16917 eval "$as_ac_var=yes"
16919 echo "$as_me: failed program was:" >&5
16920 cat conftest.$ac_ext >&5
16921 eval "$as_ac_var=no"
16923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16926 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16927 if test `eval echo '${'$as_ac_var'}'` = yes; then
16928 cat >>confdefs.h <<_ACEOF
16929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16937 eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16938 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16939 eval "LIB_hstrerror=$ac_res"
16943 eval "ac_cv_func_hstrerror=yes"
16944 eval "LIB_hstrerror="
16945 cat >>confdefs.h <<_ACEOF
16946 #define $ac_tr_func 1
16949 echo "$as_me:$LINENO: result: yes" >&5
16950 echo "${ECHO_T}yes" >&6
16953 eval "ac_cv_func_hstrerror=no"
16954 eval "LIB_hstrerror="
16955 echo "$as_me:$LINENO: result: no" >&5
16956 echo "${ECHO_T}no" >&6
16959 eval "ac_cv_func_hstrerror=yes"
16960 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16961 cat >>confdefs.h <<_ACEOF
16962 #define $ac_tr_func 1
16965 cat >>confdefs.h <<_ACEOF
16966 #define $ac_tr_lib 1
16969 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
16970 echo "${ECHO_T}yes, in $ac_res" >&6
16975 if test -n "$LIB_hstrerror"; then
16976 LIBS="$LIB_hstrerror $LIBS"
16979 if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
16980 LIBOBJS="$LIBOBJS hstrerror.$ac_objext"
16984 if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
16985 echo "$as_me:$LINENO: checking if hstrerror needs a prototype" >&5
16986 echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6
16987 if test "${ac_cv_func_hstrerror_noproto+set}" = set; then
16988 echo $ECHO_N "(cached) $ECHO_C" >&6
16990 cat >conftest.$ac_ext <<_ACEOF
16991 #line $LINENO "configure"
16992 #include "confdefs.h"
16994 #ifdef HAVE_NETDB_H
16997 #ifdef F77_DUMMY_MAIN
16998 # ifdef __cplusplus
17001 int F77_DUMMY_MAIN() { return 1; }
17006 struct foo { int foo; } xx;
17007 extern int hstrerror (struct foo*);
17014 rm -f conftest.$ac_objext
17015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17016 (eval $ac_compile) 2>&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } &&
17020 { ac_try='test -s conftest.$ac_objext'
17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022 (eval $ac_try) 2>&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; }; then
17026 eval "ac_cv_func_hstrerror_noproto=yes"
17028 echo "$as_me: failed program was:" >&5
17029 cat conftest.$ac_ext >&5
17030 eval "ac_cv_func_hstrerror_noproto=no"
17032 rm -f conftest.$ac_objext conftest.$ac_ext
17034 echo "$as_me:$LINENO: result: $ac_cv_func_hstrerror_noproto" >&5
17035 echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6
17036 if test "$ac_cv_func_hstrerror_noproto" = yes; then
17038 cat >>confdefs.h <<\_ACEOF
17039 #define NEED_HSTRERROR_PROTO 1
17047 if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
17048 echo "$as_me:$LINENO: checking if asprintf needs a prototype" >&5
17049 echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6
17050 if test "${ac_cv_func_asprintf_noproto+set}" = set; then
17051 echo $ECHO_N "(cached) $ECHO_C" >&6
17053 cat >conftest.$ac_ext <<_ACEOF
17054 #line $LINENO "configure"
17055 #include "confdefs.h"
17058 #include <string.h>
17059 #ifdef F77_DUMMY_MAIN
17060 # ifdef __cplusplus
17063 int F77_DUMMY_MAIN() { return 1; }
17068 struct foo { int foo; } xx;
17069 extern int asprintf (struct foo*);
17076 rm -f conftest.$ac_objext
17077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17078 (eval $ac_compile) 2>&5
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); } &&
17082 { ac_try='test -s conftest.$ac_objext'
17083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084 (eval $ac_try) 2>&5
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; }; then
17088 eval "ac_cv_func_asprintf_noproto=yes"
17090 echo "$as_me: failed program was:" >&5
17091 cat conftest.$ac_ext >&5
17092 eval "ac_cv_func_asprintf_noproto=no"
17094 rm -f conftest.$ac_objext conftest.$ac_ext
17096 echo "$as_me:$LINENO: result: $ac_cv_func_asprintf_noproto" >&5
17097 echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6
17098 if test "$ac_cv_func_asprintf_noproto" = yes; then
17100 cat >>confdefs.h <<\_ACEOF
17101 #define NEED_ASPRINTF_PROTO 1
17107 if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
17108 echo "$as_me:$LINENO: checking if vasprintf needs a prototype" >&5
17109 echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6
17110 if test "${ac_cv_func_vasprintf_noproto+set}" = set; then
17111 echo $ECHO_N "(cached) $ECHO_C" >&6
17113 cat >conftest.$ac_ext <<_ACEOF
17114 #line $LINENO "configure"
17115 #include "confdefs.h"
17118 #include <string.h>
17119 #ifdef F77_DUMMY_MAIN
17120 # ifdef __cplusplus
17123 int F77_DUMMY_MAIN() { return 1; }
17128 struct foo { int foo; } xx;
17129 extern int vasprintf (struct foo*);
17136 rm -f conftest.$ac_objext
17137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17138 (eval $ac_compile) 2>&5
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); } &&
17142 { ac_try='test -s conftest.$ac_objext'
17143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17144 (eval $ac_try) 2>&5
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); }; }; then
17148 eval "ac_cv_func_vasprintf_noproto=yes"
17150 echo "$as_me: failed program was:" >&5
17151 cat conftest.$ac_ext >&5
17152 eval "ac_cv_func_vasprintf_noproto=no"
17154 rm -f conftest.$ac_objext conftest.$ac_ext
17156 echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf_noproto" >&5
17157 echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6
17158 if test "$ac_cv_func_vasprintf_noproto" = yes; then
17160 cat >>confdefs.h <<\_ACEOF
17161 #define NEED_VASPRINTF_PROTO 1
17167 if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
17168 echo "$as_me:$LINENO: checking if asnprintf needs a prototype" >&5
17169 echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6
17170 if test "${ac_cv_func_asnprintf_noproto+set}" = set; then
17171 echo $ECHO_N "(cached) $ECHO_C" >&6
17173 cat >conftest.$ac_ext <<_ACEOF
17174 #line $LINENO "configure"
17175 #include "confdefs.h"
17178 #include <string.h>
17179 #ifdef F77_DUMMY_MAIN
17180 # ifdef __cplusplus
17183 int F77_DUMMY_MAIN() { return 1; }
17188 struct foo { int foo; } xx;
17189 extern int asnprintf (struct foo*);
17196 rm -f conftest.$ac_objext
17197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17198 (eval $ac_compile) 2>&5
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); } &&
17202 { ac_try='test -s conftest.$ac_objext'
17203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17204 (eval $ac_try) 2>&5
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); }; }; then
17208 eval "ac_cv_func_asnprintf_noproto=yes"
17210 echo "$as_me: failed program was:" >&5
17211 cat conftest.$ac_ext >&5
17212 eval "ac_cv_func_asnprintf_noproto=no"
17214 rm -f conftest.$ac_objext conftest.$ac_ext
17216 echo "$as_me:$LINENO: result: $ac_cv_func_asnprintf_noproto" >&5
17217 echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6
17218 if test "$ac_cv_func_asnprintf_noproto" = yes; then
17220 cat >>confdefs.h <<\_ACEOF
17221 #define NEED_ASNPRINTF_PROTO 1
17227 if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
17228 echo "$as_me:$LINENO: checking if vasnprintf needs a prototype" >&5
17229 echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6
17230 if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then
17231 echo $ECHO_N "(cached) $ECHO_C" >&6
17233 cat >conftest.$ac_ext <<_ACEOF
17234 #line $LINENO "configure"
17235 #include "confdefs.h"
17238 #include <string.h>
17239 #ifdef F77_DUMMY_MAIN
17240 # ifdef __cplusplus
17243 int F77_DUMMY_MAIN() { return 1; }
17248 struct foo { int foo; } xx;
17249 extern int vasnprintf (struct foo*);
17256 rm -f conftest.$ac_objext
17257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17258 (eval $ac_compile) 2>&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); } &&
17262 { ac_try='test -s conftest.$ac_objext'
17263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264 (eval $ac_try) 2>&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; }; then
17268 eval "ac_cv_func_vasnprintf_noproto=yes"
17270 echo "$as_me: failed program was:" >&5
17271 cat conftest.$ac_ext >&5
17272 eval "ac_cv_func_vasnprintf_noproto=no"
17274 rm -f conftest.$ac_objext conftest.$ac_ext
17276 echo "$as_me:$LINENO: result: $ac_cv_func_vasnprintf_noproto" >&5
17277 echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6
17278 if test "$ac_cv_func_vasnprintf_noproto" = yes; then
17280 cat >>confdefs.h <<\_ACEOF
17281 #define NEED_VASNPRINTF_PROTO 1
17291 echo "$as_me:$LINENO: checking for bswap16" >&5
17292 echo $ECHO_N "checking for bswap16... $ECHO_C" >&6
17293 if test "${ac_cv_funclib_bswap16+set}" = set; then
17294 echo $ECHO_N "(cached) $ECHO_C" >&6
17297 if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then
17298 ac_save_LIBS="$LIBS"
17299 for ac_lib in "" ; do
17305 *) ac_lib="-l$ac_lib" ;;
17307 LIBS=" $ac_lib $ac_save_LIBS"
17308 cat >conftest.$ac_ext <<_ACEOF
17309 #line $LINENO "configure"
17310 #include "confdefs.h"
17311 #ifdef HAVE_SYS_BSWAP_H
17312 #include <sys/bswap.h>
17314 #ifdef F77_DUMMY_MAIN
17315 # ifdef __cplusplus
17318 int F77_DUMMY_MAIN() { return 1; }
17328 rm -f conftest.$ac_objext conftest$ac_exeext
17329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17330 (eval $ac_link) 2>&5
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); } &&
17334 { ac_try='test -s conftest$ac_exeext'
17335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17336 (eval $ac_try) 2>&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); }; }; then
17340 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break
17342 echo "$as_me: failed program was:" >&5
17343 cat conftest.$ac_ext >&5
17345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17347 eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}"
17348 LIBS="$ac_save_LIBS"
17354 eval "ac_res=\$ac_cv_funclib_bswap16"
17358 for ac_func in bswap16
17360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17361 echo "$as_me:$LINENO: checking for $ac_func" >&5
17362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17363 if eval "test \"\${$as_ac_var+set}\" = set"; then
17364 echo $ECHO_N "(cached) $ECHO_C" >&6
17366 cat >conftest.$ac_ext <<_ACEOF
17367 #line $LINENO "configure"
17368 #include "confdefs.h"
17369 /* System header to define __stub macros and hopefully few prototypes,
17370 which can conflict with char $ac_func (); below. */
17371 #include <assert.h>
17372 /* Override any gcc2 internal prototype to avoid an error. */
17376 /* We use char because int might match the return type of a gcc2
17377 builtin and then its argument prototype would still apply. */
17381 #ifdef F77_DUMMY_MAIN
17382 # ifdef __cplusplus
17385 int F77_DUMMY_MAIN() { return 1; }
17390 /* The GNU C library defines this for functions which it implements
17391 to always fail with ENOSYS. Some functions are actually named
17392 something starting with __ and the normal name is an alias. */
17393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17403 rm -f conftest.$ac_objext conftest$ac_exeext
17404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17405 (eval $ac_link) 2>&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); } &&
17409 { ac_try='test -s conftest$ac_exeext'
17410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411 (eval $ac_try) 2>&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; }; then
17415 eval "$as_ac_var=yes"
17417 echo "$as_me: failed program was:" >&5
17418 cat conftest.$ac_ext >&5
17419 eval "$as_ac_var=no"
17421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17424 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17425 if test `eval echo '${'$as_ac_var'}'` = yes; then
17426 cat >>confdefs.h <<_ACEOF
17427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17435 eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17436 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17437 eval "LIB_bswap16=$ac_res"
17441 eval "ac_cv_func_bswap16=yes"
17442 eval "LIB_bswap16="
17443 cat >>confdefs.h <<_ACEOF
17444 #define $ac_tr_func 1
17447 echo "$as_me:$LINENO: result: yes" >&5
17448 echo "${ECHO_T}yes" >&6
17451 eval "ac_cv_func_bswap16=no"
17452 eval "LIB_bswap16="
17453 echo "$as_me:$LINENO: result: no" >&5
17454 echo "${ECHO_T}no" >&6
17457 eval "ac_cv_func_bswap16=yes"
17458 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
17459 cat >>confdefs.h <<_ACEOF
17460 #define $ac_tr_func 1
17463 cat >>confdefs.h <<_ACEOF
17464 #define $ac_tr_lib 1
17467 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
17468 echo "${ECHO_T}yes, in $ac_res" >&6
17477 echo "$as_me:$LINENO: checking for bswap32" >&5
17478 echo $ECHO_N "checking for bswap32... $ECHO_C" >&6
17479 if test "${ac_cv_funclib_bswap32+set}" = set; then
17480 echo $ECHO_N "(cached) $ECHO_C" >&6
17483 if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then
17484 ac_save_LIBS="$LIBS"
17485 for ac_lib in "" ; do
17491 *) ac_lib="-l$ac_lib" ;;
17493 LIBS=" $ac_lib $ac_save_LIBS"
17494 cat >conftest.$ac_ext <<_ACEOF
17495 #line $LINENO "configure"
17496 #include "confdefs.h"
17497 #ifdef HAVE_SYS_BSWAP_H
17498 #include <sys/bswap.h>
17500 #ifdef F77_DUMMY_MAIN
17501 # ifdef __cplusplus
17504 int F77_DUMMY_MAIN() { return 1; }
17514 rm -f conftest.$ac_objext conftest$ac_exeext
17515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17516 (eval $ac_link) 2>&5
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); } &&
17520 { ac_try='test -s conftest$ac_exeext'
17521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17522 (eval $ac_try) 2>&5
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); }; }; then
17526 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break
17528 echo "$as_me: failed program was:" >&5
17529 cat conftest.$ac_ext >&5
17531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17533 eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}"
17534 LIBS="$ac_save_LIBS"
17540 eval "ac_res=\$ac_cv_funclib_bswap32"
17544 for ac_func in bswap32
17546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17547 echo "$as_me:$LINENO: checking for $ac_func" >&5
17548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17549 if eval "test \"\${$as_ac_var+set}\" = set"; then
17550 echo $ECHO_N "(cached) $ECHO_C" >&6
17552 cat >conftest.$ac_ext <<_ACEOF
17553 #line $LINENO "configure"
17554 #include "confdefs.h"
17555 /* System header to define __stub macros and hopefully few prototypes,
17556 which can conflict with char $ac_func (); below. */
17557 #include <assert.h>
17558 /* Override any gcc2 internal prototype to avoid an error. */
17562 /* We use char because int might match the return type of a gcc2
17563 builtin and then its argument prototype would still apply. */
17567 #ifdef F77_DUMMY_MAIN
17568 # ifdef __cplusplus
17571 int F77_DUMMY_MAIN() { return 1; }
17576 /* The GNU C library defines this for functions which it implements
17577 to always fail with ENOSYS. Some functions are actually named
17578 something starting with __ and the normal name is an alias. */
17579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17589 rm -f conftest.$ac_objext conftest$ac_exeext
17590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17591 (eval $ac_link) 2>&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } &&
17595 { ac_try='test -s conftest$ac_exeext'
17596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597 (eval $ac_try) 2>&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; }; then
17601 eval "$as_ac_var=yes"
17603 echo "$as_me: failed program was:" >&5
17604 cat conftest.$ac_ext >&5
17605 eval "$as_ac_var=no"
17607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17610 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17611 if test `eval echo '${'$as_ac_var'}'` = yes; then
17612 cat >>confdefs.h <<_ACEOF
17613 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17621 eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17622 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17623 eval "LIB_bswap32=$ac_res"
17627 eval "ac_cv_func_bswap32=yes"
17628 eval "LIB_bswap32="
17629 cat >>confdefs.h <<_ACEOF
17630 #define $ac_tr_func 1
17633 echo "$as_me:$LINENO: result: yes" >&5
17634 echo "${ECHO_T}yes" >&6
17637 eval "ac_cv_func_bswap32=no"
17638 eval "LIB_bswap32="
17639 echo "$as_me:$LINENO: result: no" >&5
17640 echo "${ECHO_T}no" >&6
17643 eval "ac_cv_func_bswap32=yes"
17644 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
17645 cat >>confdefs.h <<_ACEOF
17646 #define $ac_tr_func 1
17649 cat >>confdefs.h <<_ACEOF
17650 #define $ac_tr_lib 1
17653 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
17654 echo "${ECHO_T}yes, in $ac_res" >&6
17663 echo "$as_me:$LINENO: checking for pidfile" >&5
17664 echo $ECHO_N "checking for pidfile... $ECHO_C" >&6
17665 if test "${ac_cv_funclib_pidfile+set}" = set; then
17666 echo $ECHO_N "(cached) $ECHO_C" >&6
17669 if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then
17670 ac_save_LIBS="$LIBS"
17671 for ac_lib in "" util; do
17677 *) ac_lib="-l$ac_lib" ;;
17679 LIBS=" $ac_lib $ac_save_LIBS"
17680 cat >conftest.$ac_ext <<_ACEOF
17681 #line $LINENO "configure"
17682 #include "confdefs.h"
17686 #ifdef F77_DUMMY_MAIN
17687 # ifdef __cplusplus
17690 int F77_DUMMY_MAIN() { return 1; }
17700 rm -f conftest.$ac_objext conftest$ac_exeext
17701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17702 (eval $ac_link) 2>&5
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); } &&
17706 { ac_try='test -s conftest$ac_exeext'
17707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708 (eval $ac_try) 2>&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; }; then
17712 eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break
17714 echo "$as_me: failed program was:" >&5
17715 cat conftest.$ac_ext >&5
17717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17719 eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}"
17720 LIBS="$ac_save_LIBS"
17726 eval "ac_res=\$ac_cv_funclib_pidfile"
17730 for ac_func in pidfile
17732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17733 echo "$as_me:$LINENO: checking for $ac_func" >&5
17734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17735 if eval "test \"\${$as_ac_var+set}\" = set"; then
17736 echo $ECHO_N "(cached) $ECHO_C" >&6
17738 cat >conftest.$ac_ext <<_ACEOF
17739 #line $LINENO "configure"
17740 #include "confdefs.h"
17741 /* System header to define __stub macros and hopefully few prototypes,
17742 which can conflict with char $ac_func (); below. */
17743 #include <assert.h>
17744 /* Override any gcc2 internal prototype to avoid an error. */
17748 /* We use char because int might match the return type of a gcc2
17749 builtin and then its argument prototype would still apply. */
17753 #ifdef F77_DUMMY_MAIN
17754 # ifdef __cplusplus
17757 int F77_DUMMY_MAIN() { return 1; }
17762 /* The GNU C library defines this for functions which it implements
17763 to always fail with ENOSYS. Some functions are actually named
17764 something starting with __ and the normal name is an alias. */
17765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17775 rm -f conftest.$ac_objext conftest$ac_exeext
17776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17777 (eval $ac_link) 2>&5
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); } &&
17781 { ac_try='test -s conftest$ac_exeext'
17782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17783 (eval $ac_try) 2>&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; }; then
17787 eval "$as_ac_var=yes"
17789 echo "$as_me: failed program was:" >&5
17790 cat conftest.$ac_ext >&5
17791 eval "$as_ac_var=no"
17793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17797 if test `eval echo '${'$as_ac_var'}'` = yes; then
17798 cat >>confdefs.h <<_ACEOF
17799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17807 eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17808 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17809 eval "LIB_pidfile=$ac_res"
17813 eval "ac_cv_func_pidfile=yes"
17814 eval "LIB_pidfile="
17815 cat >>confdefs.h <<_ACEOF
17816 #define $ac_tr_func 1
17819 echo "$as_me:$LINENO: result: yes" >&5
17820 echo "${ECHO_T}yes" >&6
17823 eval "ac_cv_func_pidfile=no"
17824 eval "LIB_pidfile="
17825 echo "$as_me:$LINENO: result: no" >&5
17826 echo "${ECHO_T}no" >&6
17829 eval "ac_cv_func_pidfile=yes"
17830 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
17831 cat >>confdefs.h <<_ACEOF
17832 #define $ac_tr_func 1
17835 cat >>confdefs.h <<_ACEOF
17836 #define $ac_tr_lib 1
17839 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
17840 echo "${ECHO_T}yes, in $ac_res" >&6
17850 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
17851 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
17852 if test "${ac_cv_funclib_getaddrinfo+set}" = set; then
17853 echo $ECHO_N "(cached) $ECHO_C" >&6
17856 if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then
17857 ac_save_LIBS="$LIBS"
17858 for ac_lib in "" ; do
17864 *) ac_lib="-l$ac_lib" ;;
17866 LIBS=" $ac_lib $ac_save_LIBS"
17867 cat >conftest.$ac_ext <<_ACEOF
17868 #line $LINENO "configure"
17869 #include "confdefs.h"
17870 #ifdef HAVE_NETDB_H
17873 #ifdef F77_DUMMY_MAIN
17874 # ifdef __cplusplus
17877 int F77_DUMMY_MAIN() { return 1; }
17882 getaddrinfo(0,0,0,0)
17887 rm -f conftest.$ac_objext conftest$ac_exeext
17888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17889 (eval $ac_link) 2>&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } &&
17893 { ac_try='test -s conftest$ac_exeext'
17894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895 (eval $ac_try) 2>&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); }; }; then
17899 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break
17901 echo "$as_me: failed program was:" >&5
17902 cat conftest.$ac_ext >&5
17904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17906 eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}"
17907 LIBS="$ac_save_LIBS"
17913 eval "ac_res=\$ac_cv_funclib_getaddrinfo"
17917 for ac_func in getaddrinfo
17919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17920 echo "$as_me:$LINENO: checking for $ac_func" >&5
17921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17922 if eval "test \"\${$as_ac_var+set}\" = set"; then
17923 echo $ECHO_N "(cached) $ECHO_C" >&6
17925 cat >conftest.$ac_ext <<_ACEOF
17926 #line $LINENO "configure"
17927 #include "confdefs.h"
17928 /* System header to define __stub macros and hopefully few prototypes,
17929 which can conflict with char $ac_func (); below. */
17930 #include <assert.h>
17931 /* Override any gcc2 internal prototype to avoid an error. */
17935 /* We use char because int might match the return type of a gcc2
17936 builtin and then its argument prototype would still apply. */
17940 #ifdef F77_DUMMY_MAIN
17941 # ifdef __cplusplus
17944 int F77_DUMMY_MAIN() { return 1; }
17949 /* The GNU C library defines this for functions which it implements
17950 to always fail with ENOSYS. Some functions are actually named
17951 something starting with __ and the normal name is an alias. */
17952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17962 rm -f conftest.$ac_objext conftest$ac_exeext
17963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17964 (eval $ac_link) 2>&5
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); } &&
17968 { ac_try='test -s conftest$ac_exeext'
17969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17970 (eval $ac_try) 2>&5
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); }; }; then
17974 eval "$as_ac_var=yes"
17976 echo "$as_me: failed program was:" >&5
17977 cat conftest.$ac_ext >&5
17978 eval "$as_ac_var=no"
17980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17983 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17984 if test `eval echo '${'$as_ac_var'}'` = yes; then
17985 cat >>confdefs.h <<_ACEOF
17986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17994 eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17995 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17996 eval "LIB_getaddrinfo=$ac_res"
18000 eval "ac_cv_func_getaddrinfo=yes"
18001 eval "LIB_getaddrinfo="
18002 cat >>confdefs.h <<_ACEOF
18003 #define $ac_tr_func 1
18006 echo "$as_me:$LINENO: result: yes" >&5
18007 echo "${ECHO_T}yes" >&6
18010 eval "ac_cv_func_getaddrinfo=no"
18011 eval "LIB_getaddrinfo="
18012 echo "$as_me:$LINENO: result: no" >&5
18013 echo "${ECHO_T}no" >&6
18016 eval "ac_cv_func_getaddrinfo=yes"
18017 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18018 cat >>confdefs.h <<_ACEOF
18019 #define $ac_tr_func 1
18022 cat >>confdefs.h <<_ACEOF
18023 #define $ac_tr_lib 1
18026 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
18027 echo "${ECHO_T}yes, in $ac_res" >&6
18032 if test -n "$LIB_getaddrinfo"; then
18033 LIBS="$LIB_getaddrinfo $LIBS"
18036 if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then
18037 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
18045 echo "$as_me:$LINENO: checking for getnameinfo" >&5
18046 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6
18047 if test "${ac_cv_funclib_getnameinfo+set}" = set; then
18048 echo $ECHO_N "(cached) $ECHO_C" >&6
18051 if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then
18052 ac_save_LIBS="$LIBS"
18053 for ac_lib in "" ; do
18059 *) ac_lib="-l$ac_lib" ;;
18061 LIBS=" $ac_lib $ac_save_LIBS"
18062 cat >conftest.$ac_ext <<_ACEOF
18063 #line $LINENO "configure"
18064 #include "confdefs.h"
18065 #ifdef HAVE_NETDB_H
18068 #ifdef F77_DUMMY_MAIN
18069 # ifdef __cplusplus
18072 int F77_DUMMY_MAIN() { return 1; }
18077 getnameinfo(0,0,0,0,0,0,0)
18082 rm -f conftest.$ac_objext conftest$ac_exeext
18083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18084 (eval $ac_link) 2>&5
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); } &&
18088 { ac_try='test -s conftest$ac_exeext'
18089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090 (eval $ac_try) 2>&5
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; }; then
18094 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break
18096 echo "$as_me: failed program was:" >&5
18097 cat conftest.$ac_ext >&5
18099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18101 eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}"
18102 LIBS="$ac_save_LIBS"
18108 eval "ac_res=\$ac_cv_funclib_getnameinfo"
18112 for ac_func in getnameinfo
18114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18115 echo "$as_me:$LINENO: checking for $ac_func" >&5
18116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18117 if eval "test \"\${$as_ac_var+set}\" = set"; then
18118 echo $ECHO_N "(cached) $ECHO_C" >&6
18120 cat >conftest.$ac_ext <<_ACEOF
18121 #line $LINENO "configure"
18122 #include "confdefs.h"
18123 /* System header to define __stub macros and hopefully few prototypes,
18124 which can conflict with char $ac_func (); below. */
18125 #include <assert.h>
18126 /* Override any gcc2 internal prototype to avoid an error. */
18130 /* We use char because int might match the return type of a gcc2
18131 builtin and then its argument prototype would still apply. */
18135 #ifdef F77_DUMMY_MAIN
18136 # ifdef __cplusplus
18139 int F77_DUMMY_MAIN() { return 1; }
18144 /* The GNU C library defines this for functions which it implements
18145 to always fail with ENOSYS. Some functions are actually named
18146 something starting with __ and the normal name is an alias. */
18147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18157 rm -f conftest.$ac_objext conftest$ac_exeext
18158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18159 (eval $ac_link) 2>&5
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); } &&
18163 { ac_try='test -s conftest$ac_exeext'
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; }; then
18169 eval "$as_ac_var=yes"
18171 echo "$as_me: failed program was:" >&5
18172 cat conftest.$ac_ext >&5
18173 eval "$as_ac_var=no"
18175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18178 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18179 if test `eval echo '${'$as_ac_var'}'` = yes; then
18180 cat >>confdefs.h <<_ACEOF
18181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18189 eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18190 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18191 eval "LIB_getnameinfo=$ac_res"
18195 eval "ac_cv_func_getnameinfo=yes"
18196 eval "LIB_getnameinfo="
18197 cat >>confdefs.h <<_ACEOF
18198 #define $ac_tr_func 1
18201 echo "$as_me:$LINENO: result: yes" >&5
18202 echo "${ECHO_T}yes" >&6
18205 eval "ac_cv_func_getnameinfo=no"
18206 eval "LIB_getnameinfo="
18207 echo "$as_me:$LINENO: result: no" >&5
18208 echo "${ECHO_T}no" >&6
18211 eval "ac_cv_func_getnameinfo=yes"
18212 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18213 cat >>confdefs.h <<_ACEOF
18214 #define $ac_tr_func 1
18217 cat >>confdefs.h <<_ACEOF
18218 #define $ac_tr_lib 1
18221 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
18222 echo "${ECHO_T}yes, in $ac_res" >&6
18227 if test -n "$LIB_getnameinfo"; then
18228 LIBS="$LIB_getnameinfo $LIBS"
18231 if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then
18232 LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
18240 echo "$as_me:$LINENO: checking for freeaddrinfo" >&5
18241 echo $ECHO_N "checking for freeaddrinfo... $ECHO_C" >&6
18242 if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then
18243 echo $ECHO_N "(cached) $ECHO_C" >&6
18246 if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then
18247 ac_save_LIBS="$LIBS"
18248 for ac_lib in "" ; do
18254 *) ac_lib="-l$ac_lib" ;;
18256 LIBS=" $ac_lib $ac_save_LIBS"
18257 cat >conftest.$ac_ext <<_ACEOF
18258 #line $LINENO "configure"
18259 #include "confdefs.h"
18260 #ifdef HAVE_NETDB_H
18263 #ifdef F77_DUMMY_MAIN
18264 # ifdef __cplusplus
18267 int F77_DUMMY_MAIN() { return 1; }
18277 rm -f conftest.$ac_objext conftest$ac_exeext
18278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18279 (eval $ac_link) 2>&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); } &&
18283 { ac_try='test -s conftest$ac_exeext'
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; }; then
18289 eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break
18291 echo "$as_me: failed program was:" >&5
18292 cat conftest.$ac_ext >&5
18294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18296 eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}"
18297 LIBS="$ac_save_LIBS"
18303 eval "ac_res=\$ac_cv_funclib_freeaddrinfo"
18307 for ac_func in freeaddrinfo
18309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18310 echo "$as_me:$LINENO: checking for $ac_func" >&5
18311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18312 if eval "test \"\${$as_ac_var+set}\" = set"; then
18313 echo $ECHO_N "(cached) $ECHO_C" >&6
18315 cat >conftest.$ac_ext <<_ACEOF
18316 #line $LINENO "configure"
18317 #include "confdefs.h"
18318 /* System header to define __stub macros and hopefully few prototypes,
18319 which can conflict with char $ac_func (); below. */
18320 #include <assert.h>
18321 /* Override any gcc2 internal prototype to avoid an error. */
18325 /* We use char because int might match the return type of a gcc2
18326 builtin and then its argument prototype would still apply. */
18330 #ifdef F77_DUMMY_MAIN
18331 # ifdef __cplusplus
18334 int F77_DUMMY_MAIN() { return 1; }
18339 /* The GNU C library defines this for functions which it implements
18340 to always fail with ENOSYS. Some functions are actually named
18341 something starting with __ and the normal name is an alias. */
18342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18352 rm -f conftest.$ac_objext conftest$ac_exeext
18353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18354 (eval $ac_link) 2>&5
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); } &&
18358 { ac_try='test -s conftest$ac_exeext'
18359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360 (eval $ac_try) 2>&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); }; }; then
18364 eval "$as_ac_var=yes"
18366 echo "$as_me: failed program was:" >&5
18367 cat conftest.$ac_ext >&5
18368 eval "$as_ac_var=no"
18370 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18373 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18374 if test `eval echo '${'$as_ac_var'}'` = yes; then
18375 cat >>confdefs.h <<_ACEOF
18376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18384 eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18385 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18386 eval "LIB_freeaddrinfo=$ac_res"
18390 eval "ac_cv_func_freeaddrinfo=yes"
18391 eval "LIB_freeaddrinfo="
18392 cat >>confdefs.h <<_ACEOF
18393 #define $ac_tr_func 1
18396 echo "$as_me:$LINENO: result: yes" >&5
18397 echo "${ECHO_T}yes" >&6
18400 eval "ac_cv_func_freeaddrinfo=no"
18401 eval "LIB_freeaddrinfo="
18402 echo "$as_me:$LINENO: result: no" >&5
18403 echo "${ECHO_T}no" >&6
18406 eval "ac_cv_func_freeaddrinfo=yes"
18407 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18408 cat >>confdefs.h <<_ACEOF
18409 #define $ac_tr_func 1
18412 cat >>confdefs.h <<_ACEOF
18413 #define $ac_tr_lib 1
18416 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
18417 echo "${ECHO_T}yes, in $ac_res" >&6
18422 if test -n "$LIB_freeaddrinfo"; then
18423 LIBS="$LIB_freeaddrinfo $LIBS"
18426 if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then
18427 LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
18435 echo "$as_me:$LINENO: checking for gai_strerror" >&5
18436 echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6
18437 if test "${ac_cv_funclib_gai_strerror+set}" = set; then
18438 echo $ECHO_N "(cached) $ECHO_C" >&6
18441 if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then
18442 ac_save_LIBS="$LIBS"
18443 for ac_lib in "" ; do
18449 *) ac_lib="-l$ac_lib" ;;
18451 LIBS=" $ac_lib $ac_save_LIBS"
18452 cat >conftest.$ac_ext <<_ACEOF
18453 #line $LINENO "configure"
18454 #include "confdefs.h"
18455 #ifdef HAVE_NETDB_H
18458 #ifdef F77_DUMMY_MAIN
18459 # ifdef __cplusplus
18462 int F77_DUMMY_MAIN() { return 1; }
18472 rm -f conftest.$ac_objext conftest$ac_exeext
18473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18474 (eval $ac_link) 2>&5
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); } &&
18478 { ac_try='test -s conftest$ac_exeext'
18479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480 (eval $ac_try) 2>&5
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; }; then
18484 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break
18486 echo "$as_me: failed program was:" >&5
18487 cat conftest.$ac_ext >&5
18489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18491 eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}"
18492 LIBS="$ac_save_LIBS"
18498 eval "ac_res=\$ac_cv_funclib_gai_strerror"
18502 for ac_func in gai_strerror
18504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18505 echo "$as_me:$LINENO: checking for $ac_func" >&5
18506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18507 if eval "test \"\${$as_ac_var+set}\" = set"; then
18508 echo $ECHO_N "(cached) $ECHO_C" >&6
18510 cat >conftest.$ac_ext <<_ACEOF
18511 #line $LINENO "configure"
18512 #include "confdefs.h"
18513 /* System header to define __stub macros and hopefully few prototypes,
18514 which can conflict with char $ac_func (); below. */
18515 #include <assert.h>
18516 /* Override any gcc2 internal prototype to avoid an error. */
18520 /* We use char because int might match the return type of a gcc2
18521 builtin and then its argument prototype would still apply. */
18525 #ifdef F77_DUMMY_MAIN
18526 # ifdef __cplusplus
18529 int F77_DUMMY_MAIN() { return 1; }
18534 /* The GNU C library defines this for functions which it implements
18535 to always fail with ENOSYS. Some functions are actually named
18536 something starting with __ and the normal name is an alias. */
18537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18547 rm -f conftest.$ac_objext conftest$ac_exeext
18548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18549 (eval $ac_link) 2>&5
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); } &&
18553 { ac_try='test -s conftest$ac_exeext'
18554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18555 (eval $ac_try) 2>&5
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); }; }; then
18559 eval "$as_ac_var=yes"
18561 echo "$as_me: failed program was:" >&5
18562 cat conftest.$ac_ext >&5
18563 eval "$as_ac_var=no"
18565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18568 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18569 if test `eval echo '${'$as_ac_var'}'` = yes; then
18570 cat >>confdefs.h <<_ACEOF
18571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18579 eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18580 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18581 eval "LIB_gai_strerror=$ac_res"
18585 eval "ac_cv_func_gai_strerror=yes"
18586 eval "LIB_gai_strerror="
18587 cat >>confdefs.h <<_ACEOF
18588 #define $ac_tr_func 1
18591 echo "$as_me:$LINENO: result: yes" >&5
18592 echo "${ECHO_T}yes" >&6
18595 eval "ac_cv_func_gai_strerror=no"
18596 eval "LIB_gai_strerror="
18597 echo "$as_me:$LINENO: result: no" >&5
18598 echo "${ECHO_T}no" >&6
18601 eval "ac_cv_func_gai_strerror=yes"
18602 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18603 cat >>confdefs.h <<_ACEOF
18604 #define $ac_tr_func 1
18607 cat >>confdefs.h <<_ACEOF
18608 #define $ac_tr_lib 1
18611 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
18612 echo "${ECHO_T}yes, in $ac_res" >&6
18617 if test -n "$LIB_gai_strerror"; then
18618 LIBS="$LIB_gai_strerror $LIBS"
18621 if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then
18622 LIBOBJS="$LIBOBJS gai_strerror.$ac_objext"
18626 echo "$as_me:$LINENO: checking for chown" >&5
18627 echo $ECHO_N "checking for chown... $ECHO_C" >&6
18628 if test "${ac_cv_func_chown+set}" = set; then
18629 echo $ECHO_N "(cached) $ECHO_C" >&6
18631 cat >conftest.$ac_ext <<_ACEOF
18632 #line $LINENO "configure"
18633 #include "confdefs.h"
18634 /* System header to define __stub macros and hopefully few prototypes,
18635 which can conflict with char chown (); below. */
18636 #include <assert.h>
18637 /* Override any gcc2 internal prototype to avoid an error. */
18641 /* We use char because int might match the return type of a gcc2
18642 builtin and then its argument prototype would still apply. */
18646 #ifdef F77_DUMMY_MAIN
18647 # ifdef __cplusplus
18650 int F77_DUMMY_MAIN() { return 1; }
18655 /* The GNU C library defines this for functions which it implements
18656 to always fail with ENOSYS. Some functions are actually named
18657 something starting with __ and the normal name is an alias. */
18658 #if defined (__stub_chown) || defined (__stub___chown)
18668 rm -f conftest.$ac_objext conftest$ac_exeext
18669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18670 (eval $ac_link) 2>&5
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); } &&
18674 { ac_try='test -s conftest$ac_exeext'
18675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18676 (eval $ac_try) 2>&5
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); }; }; then
18680 ac_cv_func_chown=yes
18682 echo "$as_me: failed program was:" >&5
18683 cat conftest.$ac_ext >&5
18684 ac_cv_func_chown=no
18686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18688 echo "$as_me:$LINENO: result: $ac_cv_func_chown" >&5
18689 echo "${ECHO_T}$ac_cv_func_chown" >&6
18690 if test $ac_cv_func_chown = yes; then
18692 cat >>confdefs.h <<_ACEOF
18693 #define HAVE_CHOWN 1
18697 LIBOBJS="$LIBOBJS chown.$ac_objext"
18699 echo "$as_me:$LINENO: checking for copyhostent" >&5
18700 echo $ECHO_N "checking for copyhostent... $ECHO_C" >&6
18701 if test "${ac_cv_func_copyhostent+set}" = set; then
18702 echo $ECHO_N "(cached) $ECHO_C" >&6
18704 cat >conftest.$ac_ext <<_ACEOF
18705 #line $LINENO "configure"
18706 #include "confdefs.h"
18707 /* System header to define __stub macros and hopefully few prototypes,
18708 which can conflict with char copyhostent (); below. */
18709 #include <assert.h>
18710 /* Override any gcc2 internal prototype to avoid an error. */
18714 /* We use char because int might match the return type of a gcc2
18715 builtin and then its argument prototype would still apply. */
18716 char copyhostent ();
18719 #ifdef F77_DUMMY_MAIN
18720 # ifdef __cplusplus
18723 int F77_DUMMY_MAIN() { return 1; }
18728 /* The GNU C library defines this for functions which it implements
18729 to always fail with ENOSYS. Some functions are actually named
18730 something starting with __ and the normal name is an alias. */
18731 #if defined (__stub_copyhostent) || defined (__stub___copyhostent)
18741 rm -f conftest.$ac_objext conftest$ac_exeext
18742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18743 (eval $ac_link) 2>&5
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); } &&
18747 { ac_try='test -s conftest$ac_exeext'
18748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18749 (eval $ac_try) 2>&5
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); }; }; then
18753 ac_cv_func_copyhostent=yes
18755 echo "$as_me: failed program was:" >&5
18756 cat conftest.$ac_ext >&5
18757 ac_cv_func_copyhostent=no
18759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18761 echo "$as_me:$LINENO: result: $ac_cv_func_copyhostent" >&5
18762 echo "${ECHO_T}$ac_cv_func_copyhostent" >&6
18763 if test $ac_cv_func_copyhostent = yes; then
18765 cat >>confdefs.h <<_ACEOF
18766 #define HAVE_COPYHOSTENT 1
18770 LIBOBJS="$LIBOBJS copyhostent.$ac_objext"
18772 echo "$as_me:$LINENO: checking for daemon" >&5
18773 echo $ECHO_N "checking for daemon... $ECHO_C" >&6
18774 if test "${ac_cv_func_daemon+set}" = set; then
18775 echo $ECHO_N "(cached) $ECHO_C" >&6
18777 cat >conftest.$ac_ext <<_ACEOF
18778 #line $LINENO "configure"
18779 #include "confdefs.h"
18780 /* System header to define __stub macros and hopefully few prototypes,
18781 which can conflict with char daemon (); below. */
18782 #include <assert.h>
18783 /* Override any gcc2 internal prototype to avoid an error. */
18787 /* We use char because int might match the return type of a gcc2
18788 builtin and then its argument prototype would still apply. */
18792 #ifdef F77_DUMMY_MAIN
18793 # ifdef __cplusplus
18796 int F77_DUMMY_MAIN() { return 1; }
18801 /* The GNU C library defines this for functions which it implements
18802 to always fail with ENOSYS. Some functions are actually named
18803 something starting with __ and the normal name is an alias. */
18804 #if defined (__stub_daemon) || defined (__stub___daemon)
18814 rm -f conftest.$ac_objext conftest$ac_exeext
18815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18816 (eval $ac_link) 2>&5
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); } &&
18820 { ac_try='test -s conftest$ac_exeext'
18821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18822 (eval $ac_try) 2>&5
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; }; then
18826 ac_cv_func_daemon=yes
18828 echo "$as_me: failed program was:" >&5
18829 cat conftest.$ac_ext >&5
18830 ac_cv_func_daemon=no
18832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18834 echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
18835 echo "${ECHO_T}$ac_cv_func_daemon" >&6
18836 if test $ac_cv_func_daemon = yes; then
18838 cat >>confdefs.h <<_ACEOF
18839 #define HAVE_DAEMON 1
18843 LIBOBJS="$LIBOBJS daemon.$ac_objext"
18845 echo "$as_me:$LINENO: checking for ecalloc" >&5
18846 echo $ECHO_N "checking for ecalloc... $ECHO_C" >&6
18847 if test "${ac_cv_func_ecalloc+set}" = set; then
18848 echo $ECHO_N "(cached) $ECHO_C" >&6
18850 cat >conftest.$ac_ext <<_ACEOF
18851 #line $LINENO "configure"
18852 #include "confdefs.h"
18853 /* System header to define __stub macros and hopefully few prototypes,
18854 which can conflict with char ecalloc (); below. */
18855 #include <assert.h>
18856 /* Override any gcc2 internal prototype to avoid an error. */
18860 /* We use char because int might match the return type of a gcc2
18861 builtin and then its argument prototype would still apply. */
18865 #ifdef F77_DUMMY_MAIN
18866 # ifdef __cplusplus
18869 int F77_DUMMY_MAIN() { return 1; }
18874 /* The GNU C library defines this for functions which it implements
18875 to always fail with ENOSYS. Some functions are actually named
18876 something starting with __ and the normal name is an alias. */
18877 #if defined (__stub_ecalloc) || defined (__stub___ecalloc)
18887 rm -f conftest.$ac_objext conftest$ac_exeext
18888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18889 (eval $ac_link) 2>&5
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); } &&
18893 { ac_try='test -s conftest$ac_exeext'
18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895 (eval $ac_try) 2>&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; }; then
18899 ac_cv_func_ecalloc=yes
18901 echo "$as_me: failed program was:" >&5
18902 cat conftest.$ac_ext >&5
18903 ac_cv_func_ecalloc=no
18905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18907 echo "$as_me:$LINENO: result: $ac_cv_func_ecalloc" >&5
18908 echo "${ECHO_T}$ac_cv_func_ecalloc" >&6
18909 if test $ac_cv_func_ecalloc = yes; then
18911 cat >>confdefs.h <<_ACEOF
18912 #define HAVE_ECALLOC 1
18916 LIBOBJS="$LIBOBJS ecalloc.$ac_objext"
18918 echo "$as_me:$LINENO: checking for emalloc" >&5
18919 echo $ECHO_N "checking for emalloc... $ECHO_C" >&6
18920 if test "${ac_cv_func_emalloc+set}" = set; then
18921 echo $ECHO_N "(cached) $ECHO_C" >&6
18923 cat >conftest.$ac_ext <<_ACEOF
18924 #line $LINENO "configure"
18925 #include "confdefs.h"
18926 /* System header to define __stub macros and hopefully few prototypes,
18927 which can conflict with char emalloc (); below. */
18928 #include <assert.h>
18929 /* Override any gcc2 internal prototype to avoid an error. */
18933 /* We use char because int might match the return type of a gcc2
18934 builtin and then its argument prototype would still apply. */
18938 #ifdef F77_DUMMY_MAIN
18939 # ifdef __cplusplus
18942 int F77_DUMMY_MAIN() { return 1; }
18947 /* The GNU C library defines this for functions which it implements
18948 to always fail with ENOSYS. Some functions are actually named
18949 something starting with __ and the normal name is an alias. */
18950 #if defined (__stub_emalloc) || defined (__stub___emalloc)
18960 rm -f conftest.$ac_objext conftest$ac_exeext
18961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18962 (eval $ac_link) 2>&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); } &&
18966 { ac_try='test -s conftest$ac_exeext'
18967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18968 (eval $ac_try) 2>&5
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); }; }; then
18972 ac_cv_func_emalloc=yes
18974 echo "$as_me: failed program was:" >&5
18975 cat conftest.$ac_ext >&5
18976 ac_cv_func_emalloc=no
18978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18980 echo "$as_me:$LINENO: result: $ac_cv_func_emalloc" >&5
18981 echo "${ECHO_T}$ac_cv_func_emalloc" >&6
18982 if test $ac_cv_func_emalloc = yes; then
18984 cat >>confdefs.h <<_ACEOF
18985 #define HAVE_EMALLOC 1
18989 LIBOBJS="$LIBOBJS emalloc.$ac_objext"
18991 echo "$as_me:$LINENO: checking for erealloc" >&5
18992 echo $ECHO_N "checking for erealloc... $ECHO_C" >&6
18993 if test "${ac_cv_func_erealloc+set}" = set; then
18994 echo $ECHO_N "(cached) $ECHO_C" >&6
18996 cat >conftest.$ac_ext <<_ACEOF
18997 #line $LINENO "configure"
18998 #include "confdefs.h"
18999 /* System header to define __stub macros and hopefully few prototypes,
19000 which can conflict with char erealloc (); below. */
19001 #include <assert.h>
19002 /* Override any gcc2 internal prototype to avoid an error. */
19006 /* We use char because int might match the return type of a gcc2
19007 builtin and then its argument prototype would still apply. */
19011 #ifdef F77_DUMMY_MAIN
19012 # ifdef __cplusplus
19015 int F77_DUMMY_MAIN() { return 1; }
19020 /* The GNU C library defines this for functions which it implements
19021 to always fail with ENOSYS. Some functions are actually named
19022 something starting with __ and the normal name is an alias. */
19023 #if defined (__stub_erealloc) || defined (__stub___erealloc)
19033 rm -f conftest.$ac_objext conftest$ac_exeext
19034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19035 (eval $ac_link) 2>&5
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); } &&
19039 { ac_try='test -s conftest$ac_exeext'
19040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041 (eval $ac_try) 2>&5
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; }; then
19045 ac_cv_func_erealloc=yes
19047 echo "$as_me: failed program was:" >&5
19048 cat conftest.$ac_ext >&5
19049 ac_cv_func_erealloc=no
19051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19053 echo "$as_me:$LINENO: result: $ac_cv_func_erealloc" >&5
19054 echo "${ECHO_T}$ac_cv_func_erealloc" >&6
19055 if test $ac_cv_func_erealloc = yes; then
19057 cat >>confdefs.h <<_ACEOF
19058 #define HAVE_EREALLOC 1
19062 LIBOBJS="$LIBOBJS erealloc.$ac_objext"
19064 echo "$as_me:$LINENO: checking for estrdup" >&5
19065 echo $ECHO_N "checking for estrdup... $ECHO_C" >&6
19066 if test "${ac_cv_func_estrdup+set}" = set; then
19067 echo $ECHO_N "(cached) $ECHO_C" >&6
19069 cat >conftest.$ac_ext <<_ACEOF
19070 #line $LINENO "configure"
19071 #include "confdefs.h"
19072 /* System header to define __stub macros and hopefully few prototypes,
19073 which can conflict with char estrdup (); below. */
19074 #include <assert.h>
19075 /* Override any gcc2 internal prototype to avoid an error. */
19079 /* We use char because int might match the return type of a gcc2
19080 builtin and then its argument prototype would still apply. */
19084 #ifdef F77_DUMMY_MAIN
19085 # ifdef __cplusplus
19088 int F77_DUMMY_MAIN() { return 1; }
19093 /* The GNU C library defines this for functions which it implements
19094 to always fail with ENOSYS. Some functions are actually named
19095 something starting with __ and the normal name is an alias. */
19096 #if defined (__stub_estrdup) || defined (__stub___estrdup)
19106 rm -f conftest.$ac_objext conftest$ac_exeext
19107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19108 (eval $ac_link) 2>&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); } &&
19112 { ac_try='test -s conftest$ac_exeext'
19113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19114 (eval $ac_try) 2>&5
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); }; }; then
19118 ac_cv_func_estrdup=yes
19120 echo "$as_me: failed program was:" >&5
19121 cat conftest.$ac_ext >&5
19122 ac_cv_func_estrdup=no
19124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19126 echo "$as_me:$LINENO: result: $ac_cv_func_estrdup" >&5
19127 echo "${ECHO_T}$ac_cv_func_estrdup" >&6
19128 if test $ac_cv_func_estrdup = yes; then
19130 cat >>confdefs.h <<_ACEOF
19131 #define HAVE_ESTRDUP 1
19135 LIBOBJS="$LIBOBJS estrdup.$ac_objext"
19137 echo "$as_me:$LINENO: checking for err" >&5
19138 echo $ECHO_N "checking for err... $ECHO_C" >&6
19139 if test "${ac_cv_func_err+set}" = set; then
19140 echo $ECHO_N "(cached) $ECHO_C" >&6
19142 cat >conftest.$ac_ext <<_ACEOF
19143 #line $LINENO "configure"
19144 #include "confdefs.h"
19145 /* System header to define __stub macros and hopefully few prototypes,
19146 which can conflict with char err (); below. */
19147 #include <assert.h>
19148 /* Override any gcc2 internal prototype to avoid an error. */
19152 /* We use char because int might match the return type of a gcc2
19153 builtin and then its argument prototype would still apply. */
19157 #ifdef F77_DUMMY_MAIN
19158 # ifdef __cplusplus
19161 int F77_DUMMY_MAIN() { return 1; }
19166 /* The GNU C library defines this for functions which it implements
19167 to always fail with ENOSYS. Some functions are actually named
19168 something starting with __ and the normal name is an alias. */
19169 #if defined (__stub_err) || defined (__stub___err)
19179 rm -f conftest.$ac_objext conftest$ac_exeext
19180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19181 (eval $ac_link) 2>&5
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); } &&
19185 { ac_try='test -s conftest$ac_exeext'
19186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187 (eval $ac_try) 2>&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; }; then
19193 echo "$as_me: failed program was:" >&5
19194 cat conftest.$ac_ext >&5
19197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19199 echo "$as_me:$LINENO: result: $ac_cv_func_err" >&5
19200 echo "${ECHO_T}$ac_cv_func_err" >&6
19201 if test $ac_cv_func_err = yes; then
19203 cat >>confdefs.h <<_ACEOF
19208 LIBOBJS="$LIBOBJS err.$ac_objext"
19210 echo "$as_me:$LINENO: checking for errx" >&5
19211 echo $ECHO_N "checking for errx... $ECHO_C" >&6
19212 if test "${ac_cv_func_errx+set}" = set; then
19213 echo $ECHO_N "(cached) $ECHO_C" >&6
19215 cat >conftest.$ac_ext <<_ACEOF
19216 #line $LINENO "configure"
19217 #include "confdefs.h"
19218 /* System header to define __stub macros and hopefully few prototypes,
19219 which can conflict with char errx (); below. */
19220 #include <assert.h>
19221 /* Override any gcc2 internal prototype to avoid an error. */
19225 /* We use char because int might match the return type of a gcc2
19226 builtin and then its argument prototype would still apply. */
19230 #ifdef F77_DUMMY_MAIN
19231 # ifdef __cplusplus
19234 int F77_DUMMY_MAIN() { return 1; }
19239 /* The GNU C library defines this for functions which it implements
19240 to always fail with ENOSYS. Some functions are actually named
19241 something starting with __ and the normal name is an alias. */
19242 #if defined (__stub_errx) || defined (__stub___errx)
19252 rm -f conftest.$ac_objext conftest$ac_exeext
19253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19254 (eval $ac_link) 2>&5
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); } &&
19258 { ac_try='test -s conftest$ac_exeext'
19259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19260 (eval $ac_try) 2>&5
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); }; }; then
19264 ac_cv_func_errx=yes
19266 echo "$as_me: failed program was:" >&5
19267 cat conftest.$ac_ext >&5
19270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19272 echo "$as_me:$LINENO: result: $ac_cv_func_errx" >&5
19273 echo "${ECHO_T}$ac_cv_func_errx" >&6
19274 if test $ac_cv_func_errx = yes; then
19276 cat >>confdefs.h <<_ACEOF
19277 #define HAVE_ERRX 1
19281 LIBOBJS="$LIBOBJS errx.$ac_objext"
19283 echo "$as_me:$LINENO: checking for fchown" >&5
19284 echo $ECHO_N "checking for fchown... $ECHO_C" >&6
19285 if test "${ac_cv_func_fchown+set}" = set; then
19286 echo $ECHO_N "(cached) $ECHO_C" >&6
19288 cat >conftest.$ac_ext <<_ACEOF
19289 #line $LINENO "configure"
19290 #include "confdefs.h"
19291 /* System header to define __stub macros and hopefully few prototypes,
19292 which can conflict with char fchown (); below. */
19293 #include <assert.h>
19294 /* Override any gcc2 internal prototype to avoid an error. */
19298 /* We use char because int might match the return type of a gcc2
19299 builtin and then its argument prototype would still apply. */
19303 #ifdef F77_DUMMY_MAIN
19304 # ifdef __cplusplus
19307 int F77_DUMMY_MAIN() { return 1; }
19312 /* The GNU C library defines this for functions which it implements
19313 to always fail with ENOSYS. Some functions are actually named
19314 something starting with __ and the normal name is an alias. */
19315 #if defined (__stub_fchown) || defined (__stub___fchown)
19325 rm -f conftest.$ac_objext conftest$ac_exeext
19326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19327 (eval $ac_link) 2>&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); } &&
19331 { ac_try='test -s conftest$ac_exeext'
19332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19333 (eval $ac_try) 2>&5
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); }; }; then
19337 ac_cv_func_fchown=yes
19339 echo "$as_me: failed program was:" >&5
19340 cat conftest.$ac_ext >&5
19341 ac_cv_func_fchown=no
19343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19345 echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
19346 echo "${ECHO_T}$ac_cv_func_fchown" >&6
19347 if test $ac_cv_func_fchown = yes; then
19349 cat >>confdefs.h <<_ACEOF
19350 #define HAVE_FCHOWN 1
19354 LIBOBJS="$LIBOBJS fchown.$ac_objext"
19356 echo "$as_me:$LINENO: checking for flock" >&5
19357 echo $ECHO_N "checking for flock... $ECHO_C" >&6
19358 if test "${ac_cv_func_flock+set}" = set; then
19359 echo $ECHO_N "(cached) $ECHO_C" >&6
19361 cat >conftest.$ac_ext <<_ACEOF
19362 #line $LINENO "configure"
19363 #include "confdefs.h"
19364 /* System header to define __stub macros and hopefully few prototypes,
19365 which can conflict with char flock (); below. */
19366 #include <assert.h>
19367 /* Override any gcc2 internal prototype to avoid an error. */
19371 /* We use char because int might match the return type of a gcc2
19372 builtin and then its argument prototype would still apply. */
19376 #ifdef F77_DUMMY_MAIN
19377 # ifdef __cplusplus
19380 int F77_DUMMY_MAIN() { return 1; }
19385 /* The GNU C library defines this for functions which it implements
19386 to always fail with ENOSYS. Some functions are actually named
19387 something starting with __ and the normal name is an alias. */
19388 #if defined (__stub_flock) || defined (__stub___flock)
19398 rm -f conftest.$ac_objext conftest$ac_exeext
19399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19400 (eval $ac_link) 2>&5
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); } &&
19404 { ac_try='test -s conftest$ac_exeext'
19405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19406 (eval $ac_try) 2>&5
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); }; }; then
19410 ac_cv_func_flock=yes
19412 echo "$as_me: failed program was:" >&5
19413 cat conftest.$ac_ext >&5
19414 ac_cv_func_flock=no
19416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19418 echo "$as_me:$LINENO: result: $ac_cv_func_flock" >&5
19419 echo "${ECHO_T}$ac_cv_func_flock" >&6
19420 if test $ac_cv_func_flock = yes; then
19422 cat >>confdefs.h <<_ACEOF
19423 #define HAVE_FLOCK 1
19427 LIBOBJS="$LIBOBJS flock.$ac_objext"
19429 echo "$as_me:$LINENO: checking for fnmatch" >&5
19430 echo $ECHO_N "checking for fnmatch... $ECHO_C" >&6
19431 if test "${ac_cv_func_fnmatch+set}" = set; then
19432 echo $ECHO_N "(cached) $ECHO_C" >&6
19434 cat >conftest.$ac_ext <<_ACEOF
19435 #line $LINENO "configure"
19436 #include "confdefs.h"
19437 /* System header to define __stub macros and hopefully few prototypes,
19438 which can conflict with char fnmatch (); below. */
19439 #include <assert.h>
19440 /* Override any gcc2 internal prototype to avoid an error. */
19444 /* We use char because int might match the return type of a gcc2
19445 builtin and then its argument prototype would still apply. */
19449 #ifdef F77_DUMMY_MAIN
19450 # ifdef __cplusplus
19453 int F77_DUMMY_MAIN() { return 1; }
19458 /* The GNU C library defines this for functions which it implements
19459 to always fail with ENOSYS. Some functions are actually named
19460 something starting with __ and the normal name is an alias. */
19461 #if defined (__stub_fnmatch) || defined (__stub___fnmatch)
19471 rm -f conftest.$ac_objext conftest$ac_exeext
19472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19473 (eval $ac_link) 2>&5
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); } &&
19477 { ac_try='test -s conftest$ac_exeext'
19478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19479 (eval $ac_try) 2>&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); }; }; then
19483 ac_cv_func_fnmatch=yes
19485 echo "$as_me: failed program was:" >&5
19486 cat conftest.$ac_ext >&5
19487 ac_cv_func_fnmatch=no
19489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19491 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch" >&5
19492 echo "${ECHO_T}$ac_cv_func_fnmatch" >&6
19493 if test $ac_cv_func_fnmatch = yes; then
19495 cat >>confdefs.h <<_ACEOF
19496 #define HAVE_FNMATCH 1
19500 LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
19502 echo "$as_me:$LINENO: checking for freehostent" >&5
19503 echo $ECHO_N "checking for freehostent... $ECHO_C" >&6
19504 if test "${ac_cv_func_freehostent+set}" = set; then
19505 echo $ECHO_N "(cached) $ECHO_C" >&6
19507 cat >conftest.$ac_ext <<_ACEOF
19508 #line $LINENO "configure"
19509 #include "confdefs.h"
19510 /* System header to define __stub macros and hopefully few prototypes,
19511 which can conflict with char freehostent (); below. */
19512 #include <assert.h>
19513 /* Override any gcc2 internal prototype to avoid an error. */
19517 /* We use char because int might match the return type of a gcc2
19518 builtin and then its argument prototype would still apply. */
19519 char freehostent ();
19522 #ifdef F77_DUMMY_MAIN
19523 # ifdef __cplusplus
19526 int F77_DUMMY_MAIN() { return 1; }
19531 /* The GNU C library defines this for functions which it implements
19532 to always fail with ENOSYS. Some functions are actually named
19533 something starting with __ and the normal name is an alias. */
19534 #if defined (__stub_freehostent) || defined (__stub___freehostent)
19544 rm -f conftest.$ac_objext conftest$ac_exeext
19545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19546 (eval $ac_link) 2>&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); } &&
19550 { ac_try='test -s conftest$ac_exeext'
19551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19552 (eval $ac_try) 2>&5
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); }; }; then
19556 ac_cv_func_freehostent=yes
19558 echo "$as_me: failed program was:" >&5
19559 cat conftest.$ac_ext >&5
19560 ac_cv_func_freehostent=no
19562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19564 echo "$as_me:$LINENO: result: $ac_cv_func_freehostent" >&5
19565 echo "${ECHO_T}$ac_cv_func_freehostent" >&6
19566 if test $ac_cv_func_freehostent = yes; then
19568 cat >>confdefs.h <<_ACEOF
19569 #define HAVE_FREEHOSTENT 1
19573 LIBOBJS="$LIBOBJS freehostent.$ac_objext"
19575 echo "$as_me:$LINENO: checking for getcwd" >&5
19576 echo $ECHO_N "checking for getcwd... $ECHO_C" >&6
19577 if test "${ac_cv_func_getcwd+set}" = set; then
19578 echo $ECHO_N "(cached) $ECHO_C" >&6
19580 cat >conftest.$ac_ext <<_ACEOF
19581 #line $LINENO "configure"
19582 #include "confdefs.h"
19583 /* System header to define __stub macros and hopefully few prototypes,
19584 which can conflict with char getcwd (); below. */
19585 #include <assert.h>
19586 /* Override any gcc2 internal prototype to avoid an error. */
19590 /* We use char because int might match the return type of a gcc2
19591 builtin and then its argument prototype would still apply. */
19595 #ifdef F77_DUMMY_MAIN
19596 # ifdef __cplusplus
19599 int F77_DUMMY_MAIN() { return 1; }
19604 /* The GNU C library defines this for functions which it implements
19605 to always fail with ENOSYS. Some functions are actually named
19606 something starting with __ and the normal name is an alias. */
19607 #if defined (__stub_getcwd) || defined (__stub___getcwd)
19617 rm -f conftest.$ac_objext conftest$ac_exeext
19618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19619 (eval $ac_link) 2>&5
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); } &&
19623 { ac_try='test -s conftest$ac_exeext'
19624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19625 (eval $ac_try) 2>&5
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); }; }; then
19629 ac_cv_func_getcwd=yes
19631 echo "$as_me: failed program was:" >&5
19632 cat conftest.$ac_ext >&5
19633 ac_cv_func_getcwd=no
19635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19637 echo "$as_me:$LINENO: result: $ac_cv_func_getcwd" >&5
19638 echo "${ECHO_T}$ac_cv_func_getcwd" >&6
19639 if test $ac_cv_func_getcwd = yes; then
19641 cat >>confdefs.h <<_ACEOF
19642 #define HAVE_GETCWD 1
19646 LIBOBJS="$LIBOBJS getcwd.$ac_objext"
19648 echo "$as_me:$LINENO: checking for getdtablesize" >&5
19649 echo $ECHO_N "checking for getdtablesize... $ECHO_C" >&6
19650 if test "${ac_cv_func_getdtablesize+set}" = set; then
19651 echo $ECHO_N "(cached) $ECHO_C" >&6
19653 cat >conftest.$ac_ext <<_ACEOF
19654 #line $LINENO "configure"
19655 #include "confdefs.h"
19656 /* System header to define __stub macros and hopefully few prototypes,
19657 which can conflict with char getdtablesize (); below. */
19658 #include <assert.h>
19659 /* Override any gcc2 internal prototype to avoid an error. */
19663 /* We use char because int might match the return type of a gcc2
19664 builtin and then its argument prototype would still apply. */
19665 char getdtablesize ();
19668 #ifdef F77_DUMMY_MAIN
19669 # ifdef __cplusplus
19672 int F77_DUMMY_MAIN() { return 1; }
19677 /* The GNU C library defines this for functions which it implements
19678 to always fail with ENOSYS. Some functions are actually named
19679 something starting with __ and the normal name is an alias. */
19680 #if defined (__stub_getdtablesize) || defined (__stub___getdtablesize)
19690 rm -f conftest.$ac_objext conftest$ac_exeext
19691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19692 (eval $ac_link) 2>&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } &&
19696 { ac_try='test -s conftest$ac_exeext'
19697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698 (eval $ac_try) 2>&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; }; then
19702 ac_cv_func_getdtablesize=yes
19704 echo "$as_me: failed program was:" >&5
19705 cat conftest.$ac_ext >&5
19706 ac_cv_func_getdtablesize=no
19708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19710 echo "$as_me:$LINENO: result: $ac_cv_func_getdtablesize" >&5
19711 echo "${ECHO_T}$ac_cv_func_getdtablesize" >&6
19712 if test $ac_cv_func_getdtablesize = yes; then
19714 cat >>confdefs.h <<_ACEOF
19715 #define HAVE_GETDTABLESIZE 1
19719 LIBOBJS="$LIBOBJS getdtablesize.$ac_objext"
19721 echo "$as_me:$LINENO: checking for getegid" >&5
19722 echo $ECHO_N "checking for getegid... $ECHO_C" >&6
19723 if test "${ac_cv_func_getegid+set}" = set; then
19724 echo $ECHO_N "(cached) $ECHO_C" >&6
19726 cat >conftest.$ac_ext <<_ACEOF
19727 #line $LINENO "configure"
19728 #include "confdefs.h"
19729 /* System header to define __stub macros and hopefully few prototypes,
19730 which can conflict with char getegid (); below. */
19731 #include <assert.h>
19732 /* Override any gcc2 internal prototype to avoid an error. */
19736 /* We use char because int might match the return type of a gcc2
19737 builtin and then its argument prototype would still apply. */
19741 #ifdef F77_DUMMY_MAIN
19742 # ifdef __cplusplus
19745 int F77_DUMMY_MAIN() { return 1; }
19750 /* The GNU C library defines this for functions which it implements
19751 to always fail with ENOSYS. Some functions are actually named
19752 something starting with __ and the normal name is an alias. */
19753 #if defined (__stub_getegid) || defined (__stub___getegid)
19763 rm -f conftest.$ac_objext conftest$ac_exeext
19764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19765 (eval $ac_link) 2>&5
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); } &&
19769 { ac_try='test -s conftest$ac_exeext'
19770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771 (eval $ac_try) 2>&5
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; }; then
19775 ac_cv_func_getegid=yes
19777 echo "$as_me: failed program was:" >&5
19778 cat conftest.$ac_ext >&5
19779 ac_cv_func_getegid=no
19781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19783 echo "$as_me:$LINENO: result: $ac_cv_func_getegid" >&5
19784 echo "${ECHO_T}$ac_cv_func_getegid" >&6
19785 if test $ac_cv_func_getegid = yes; then
19787 cat >>confdefs.h <<_ACEOF
19788 #define HAVE_GETEGID 1
19792 LIBOBJS="$LIBOBJS getegid.$ac_objext"
19794 echo "$as_me:$LINENO: checking for geteuid" >&5
19795 echo $ECHO_N "checking for geteuid... $ECHO_C" >&6
19796 if test "${ac_cv_func_geteuid+set}" = set; then
19797 echo $ECHO_N "(cached) $ECHO_C" >&6
19799 cat >conftest.$ac_ext <<_ACEOF
19800 #line $LINENO "configure"
19801 #include "confdefs.h"
19802 /* System header to define __stub macros and hopefully few prototypes,
19803 which can conflict with char geteuid (); below. */
19804 #include <assert.h>
19805 /* Override any gcc2 internal prototype to avoid an error. */
19809 /* We use char because int might match the return type of a gcc2
19810 builtin and then its argument prototype would still apply. */
19814 #ifdef F77_DUMMY_MAIN
19815 # ifdef __cplusplus
19818 int F77_DUMMY_MAIN() { return 1; }
19823 /* The GNU C library defines this for functions which it implements
19824 to always fail with ENOSYS. Some functions are actually named
19825 something starting with __ and the normal name is an alias. */
19826 #if defined (__stub_geteuid) || defined (__stub___geteuid)
19836 rm -f conftest.$ac_objext conftest$ac_exeext
19837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19838 (eval $ac_link) 2>&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); } &&
19842 { ac_try='test -s conftest$ac_exeext'
19843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19844 (eval $ac_try) 2>&5
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); }; }; then
19848 ac_cv_func_geteuid=yes
19850 echo "$as_me: failed program was:" >&5
19851 cat conftest.$ac_ext >&5
19852 ac_cv_func_geteuid=no
19854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19856 echo "$as_me:$LINENO: result: $ac_cv_func_geteuid" >&5
19857 echo "${ECHO_T}$ac_cv_func_geteuid" >&6
19858 if test $ac_cv_func_geteuid = yes; then
19860 cat >>confdefs.h <<_ACEOF
19861 #define HAVE_GETEUID 1
19865 LIBOBJS="$LIBOBJS geteuid.$ac_objext"
19867 echo "$as_me:$LINENO: checking for getgid" >&5
19868 echo $ECHO_N "checking for getgid... $ECHO_C" >&6
19869 if test "${ac_cv_func_getgid+set}" = set; then
19870 echo $ECHO_N "(cached) $ECHO_C" >&6
19872 cat >conftest.$ac_ext <<_ACEOF
19873 #line $LINENO "configure"
19874 #include "confdefs.h"
19875 /* System header to define __stub macros and hopefully few prototypes,
19876 which can conflict with char getgid (); below. */
19877 #include <assert.h>
19878 /* Override any gcc2 internal prototype to avoid an error. */
19882 /* We use char because int might match the return type of a gcc2
19883 builtin and then its argument prototype would still apply. */
19887 #ifdef F77_DUMMY_MAIN
19888 # ifdef __cplusplus
19891 int F77_DUMMY_MAIN() { return 1; }
19896 /* The GNU C library defines this for functions which it implements
19897 to always fail with ENOSYS. Some functions are actually named
19898 something starting with __ and the normal name is an alias. */
19899 #if defined (__stub_getgid) || defined (__stub___getgid)
19909 rm -f conftest.$ac_objext conftest$ac_exeext
19910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19911 (eval $ac_link) 2>&5
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); } &&
19915 { ac_try='test -s conftest$ac_exeext'
19916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917 (eval $ac_try) 2>&5
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; }; then
19921 ac_cv_func_getgid=yes
19923 echo "$as_me: failed program was:" >&5
19924 cat conftest.$ac_ext >&5
19925 ac_cv_func_getgid=no
19927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19929 echo "$as_me:$LINENO: result: $ac_cv_func_getgid" >&5
19930 echo "${ECHO_T}$ac_cv_func_getgid" >&6
19931 if test $ac_cv_func_getgid = yes; then
19933 cat >>confdefs.h <<_ACEOF
19934 #define HAVE_GETGID 1
19938 LIBOBJS="$LIBOBJS getgid.$ac_objext"
19940 echo "$as_me:$LINENO: checking for gethostname" >&5
19941 echo $ECHO_N "checking for gethostname... $ECHO_C" >&6
19942 if test "${ac_cv_func_gethostname+set}" = set; then
19943 echo $ECHO_N "(cached) $ECHO_C" >&6
19945 cat >conftest.$ac_ext <<_ACEOF
19946 #line $LINENO "configure"
19947 #include "confdefs.h"
19948 /* System header to define __stub macros and hopefully few prototypes,
19949 which can conflict with char gethostname (); below. */
19950 #include <assert.h>
19951 /* Override any gcc2 internal prototype to avoid an error. */
19955 /* We use char because int might match the return type of a gcc2
19956 builtin and then its argument prototype would still apply. */
19957 char gethostname ();
19960 #ifdef F77_DUMMY_MAIN
19961 # ifdef __cplusplus
19964 int F77_DUMMY_MAIN() { return 1; }
19969 /* The GNU C library defines this for functions which it implements
19970 to always fail with ENOSYS. Some functions are actually named
19971 something starting with __ and the normal name is an alias. */
19972 #if defined (__stub_gethostname) || defined (__stub___gethostname)
19982 rm -f conftest.$ac_objext conftest$ac_exeext
19983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19984 (eval $ac_link) 2>&5
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); } &&
19988 { ac_try='test -s conftest$ac_exeext'
19989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990 (eval $ac_try) 2>&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); }; }; then
19994 ac_cv_func_gethostname=yes
19996 echo "$as_me: failed program was:" >&5
19997 cat conftest.$ac_ext >&5
19998 ac_cv_func_gethostname=no
20000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20002 echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5
20003 echo "${ECHO_T}$ac_cv_func_gethostname" >&6
20004 if test $ac_cv_func_gethostname = yes; then
20006 cat >>confdefs.h <<_ACEOF
20007 #define HAVE_GETHOSTNAME 1
20011 LIBOBJS="$LIBOBJS gethostname.$ac_objext"
20013 echo "$as_me:$LINENO: checking for getifaddrs" >&5
20014 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6
20015 if test "${ac_cv_func_getifaddrs+set}" = set; then
20016 echo $ECHO_N "(cached) $ECHO_C" >&6
20018 cat >conftest.$ac_ext <<_ACEOF
20019 #line $LINENO "configure"
20020 #include "confdefs.h"
20021 /* System header to define __stub macros and hopefully few prototypes,
20022 which can conflict with char getifaddrs (); below. */
20023 #include <assert.h>
20024 /* Override any gcc2 internal prototype to avoid an error. */
20028 /* We use char because int might match the return type of a gcc2
20029 builtin and then its argument prototype would still apply. */
20030 char getifaddrs ();
20033 #ifdef F77_DUMMY_MAIN
20034 # ifdef __cplusplus
20037 int F77_DUMMY_MAIN() { return 1; }
20042 /* The GNU C library defines this for functions which it implements
20043 to always fail with ENOSYS. Some functions are actually named
20044 something starting with __ and the normal name is an alias. */
20045 #if defined (__stub_getifaddrs) || defined (__stub___getifaddrs)
20055 rm -f conftest.$ac_objext conftest$ac_exeext
20056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20057 (eval $ac_link) 2>&5
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); } &&
20061 { ac_try='test -s conftest$ac_exeext'
20062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20063 (eval $ac_try) 2>&5
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); }; }; then
20067 ac_cv_func_getifaddrs=yes
20069 echo "$as_me: failed program was:" >&5
20070 cat conftest.$ac_ext >&5
20071 ac_cv_func_getifaddrs=no
20073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20075 echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
20076 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6
20077 if test $ac_cv_func_getifaddrs = yes; then
20079 cat >>confdefs.h <<_ACEOF
20080 #define HAVE_GETIFADDRS 1
20084 LIBOBJS="$LIBOBJS getifaddrs.$ac_objext"
20086 echo "$as_me:$LINENO: checking for getipnodebyaddr" >&5
20087 echo $ECHO_N "checking for getipnodebyaddr... $ECHO_C" >&6
20088 if test "${ac_cv_func_getipnodebyaddr+set}" = set; then
20089 echo $ECHO_N "(cached) $ECHO_C" >&6
20091 cat >conftest.$ac_ext <<_ACEOF
20092 #line $LINENO "configure"
20093 #include "confdefs.h"
20094 /* System header to define __stub macros and hopefully few prototypes,
20095 which can conflict with char getipnodebyaddr (); below. */
20096 #include <assert.h>
20097 /* Override any gcc2 internal prototype to avoid an error. */
20101 /* We use char because int might match the return type of a gcc2
20102 builtin and then its argument prototype would still apply. */
20103 char getipnodebyaddr ();
20106 #ifdef F77_DUMMY_MAIN
20107 # ifdef __cplusplus
20110 int F77_DUMMY_MAIN() { return 1; }
20115 /* The GNU C library defines this for functions which it implements
20116 to always fail with ENOSYS. Some functions are actually named
20117 something starting with __ and the normal name is an alias. */
20118 #if defined (__stub_getipnodebyaddr) || defined (__stub___getipnodebyaddr)
20121 f = getipnodebyaddr;
20128 rm -f conftest.$ac_objext conftest$ac_exeext
20129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20130 (eval $ac_link) 2>&5
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); } &&
20134 { ac_try='test -s conftest$ac_exeext'
20135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20136 (eval $ac_try) 2>&5
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); }; }; then
20140 ac_cv_func_getipnodebyaddr=yes
20142 echo "$as_me: failed program was:" >&5
20143 cat conftest.$ac_ext >&5
20144 ac_cv_func_getipnodebyaddr=no
20146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20148 echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyaddr" >&5
20149 echo "${ECHO_T}$ac_cv_func_getipnodebyaddr" >&6
20150 if test $ac_cv_func_getipnodebyaddr = yes; then
20152 cat >>confdefs.h <<_ACEOF
20153 #define HAVE_GETIPNODEBYADDR 1
20157 LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext"
20159 echo "$as_me:$LINENO: checking for getipnodebyname" >&5
20160 echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6
20161 if test "${ac_cv_func_getipnodebyname+set}" = set; then
20162 echo $ECHO_N "(cached) $ECHO_C" >&6
20164 cat >conftest.$ac_ext <<_ACEOF
20165 #line $LINENO "configure"
20166 #include "confdefs.h"
20167 /* System header to define __stub macros and hopefully few prototypes,
20168 which can conflict with char getipnodebyname (); below. */
20169 #include <assert.h>
20170 /* Override any gcc2 internal prototype to avoid an error. */
20174 /* We use char because int might match the return type of a gcc2
20175 builtin and then its argument prototype would still apply. */
20176 char getipnodebyname ();
20179 #ifdef F77_DUMMY_MAIN
20180 # ifdef __cplusplus
20183 int F77_DUMMY_MAIN() { return 1; }
20188 /* The GNU C library defines this for functions which it implements
20189 to always fail with ENOSYS. Some functions are actually named
20190 something starting with __ and the normal name is an alias. */
20191 #if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
20194 f = getipnodebyname;
20201 rm -f conftest.$ac_objext conftest$ac_exeext
20202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20203 (eval $ac_link) 2>&5
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); } &&
20207 { ac_try='test -s conftest$ac_exeext'
20208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209 (eval $ac_try) 2>&5
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; }; then
20213 ac_cv_func_getipnodebyname=yes
20215 echo "$as_me: failed program was:" >&5
20216 cat conftest.$ac_ext >&5
20217 ac_cv_func_getipnodebyname=no
20219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20221 echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5
20222 echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6
20223 if test $ac_cv_func_getipnodebyname = yes; then
20225 cat >>confdefs.h <<_ACEOF
20226 #define HAVE_GETIPNODEBYNAME 1
20230 LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext"
20232 echo "$as_me:$LINENO: checking for getopt" >&5
20233 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
20234 if test "${ac_cv_func_getopt+set}" = set; then
20235 echo $ECHO_N "(cached) $ECHO_C" >&6
20237 cat >conftest.$ac_ext <<_ACEOF
20238 #line $LINENO "configure"
20239 #include "confdefs.h"
20240 /* System header to define __stub macros and hopefully few prototypes,
20241 which can conflict with char getopt (); below. */
20242 #include <assert.h>
20243 /* Override any gcc2 internal prototype to avoid an error. */
20247 /* We use char because int might match the return type of a gcc2
20248 builtin and then its argument prototype would still apply. */
20252 #ifdef F77_DUMMY_MAIN
20253 # ifdef __cplusplus
20256 int F77_DUMMY_MAIN() { return 1; }
20261 /* The GNU C library defines this for functions which it implements
20262 to always fail with ENOSYS. Some functions are actually named
20263 something starting with __ and the normal name is an alias. */
20264 #if defined (__stub_getopt) || defined (__stub___getopt)
20274 rm -f conftest.$ac_objext conftest$ac_exeext
20275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20276 (eval $ac_link) 2>&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } &&
20280 { ac_try='test -s conftest$ac_exeext'
20281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20282 (eval $ac_try) 2>&5
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); }; }; then
20286 ac_cv_func_getopt=yes
20288 echo "$as_me: failed program was:" >&5
20289 cat conftest.$ac_ext >&5
20290 ac_cv_func_getopt=no
20292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20294 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
20295 echo "${ECHO_T}$ac_cv_func_getopt" >&6
20296 if test $ac_cv_func_getopt = yes; then
20298 cat >>confdefs.h <<_ACEOF
20299 #define HAVE_GETOPT 1
20303 LIBOBJS="$LIBOBJS getopt.$ac_objext"
20305 echo "$as_me:$LINENO: checking for gettimeofday" >&5
20306 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
20307 if test "${ac_cv_func_gettimeofday+set}" = set; then
20308 echo $ECHO_N "(cached) $ECHO_C" >&6
20310 cat >conftest.$ac_ext <<_ACEOF
20311 #line $LINENO "configure"
20312 #include "confdefs.h"
20313 /* System header to define __stub macros and hopefully few prototypes,
20314 which can conflict with char gettimeofday (); below. */
20315 #include <assert.h>
20316 /* Override any gcc2 internal prototype to avoid an error. */
20320 /* We use char because int might match the return type of a gcc2
20321 builtin and then its argument prototype would still apply. */
20322 char gettimeofday ();
20325 #ifdef F77_DUMMY_MAIN
20326 # ifdef __cplusplus
20329 int F77_DUMMY_MAIN() { return 1; }
20334 /* The GNU C library defines this for functions which it implements
20335 to always fail with ENOSYS. Some functions are actually named
20336 something starting with __ and the normal name is an alias. */
20337 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
20347 rm -f conftest.$ac_objext conftest$ac_exeext
20348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20349 (eval $ac_link) 2>&5
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); } &&
20353 { ac_try='test -s conftest$ac_exeext'
20354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355 (eval $ac_try) 2>&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); }; }; then
20359 ac_cv_func_gettimeofday=yes
20361 echo "$as_me: failed program was:" >&5
20362 cat conftest.$ac_ext >&5
20363 ac_cv_func_gettimeofday=no
20365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20367 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
20368 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
20369 if test $ac_cv_func_gettimeofday = yes; then
20371 cat >>confdefs.h <<_ACEOF
20372 #define HAVE_GETTIMEOFDAY 1
20376 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
20378 echo "$as_me:$LINENO: checking for getuid" >&5
20379 echo $ECHO_N "checking for getuid... $ECHO_C" >&6
20380 if test "${ac_cv_func_getuid+set}" = set; then
20381 echo $ECHO_N "(cached) $ECHO_C" >&6
20383 cat >conftest.$ac_ext <<_ACEOF
20384 #line $LINENO "configure"
20385 #include "confdefs.h"
20386 /* System header to define __stub macros and hopefully few prototypes,
20387 which can conflict with char getuid (); below. */
20388 #include <assert.h>
20389 /* Override any gcc2 internal prototype to avoid an error. */
20393 /* We use char because int might match the return type of a gcc2
20394 builtin and then its argument prototype would still apply. */
20398 #ifdef F77_DUMMY_MAIN
20399 # ifdef __cplusplus
20402 int F77_DUMMY_MAIN() { return 1; }
20407 /* The GNU C library defines this for functions which it implements
20408 to always fail with ENOSYS. Some functions are actually named
20409 something starting with __ and the normal name is an alias. */
20410 #if defined (__stub_getuid) || defined (__stub___getuid)
20420 rm -f conftest.$ac_objext conftest$ac_exeext
20421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20422 (eval $ac_link) 2>&5
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); } &&
20426 { ac_try='test -s conftest$ac_exeext'
20427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20428 (eval $ac_try) 2>&5
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); }; }; then
20432 ac_cv_func_getuid=yes
20434 echo "$as_me: failed program was:" >&5
20435 cat conftest.$ac_ext >&5
20436 ac_cv_func_getuid=no
20438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20440 echo "$as_me:$LINENO: result: $ac_cv_func_getuid" >&5
20441 echo "${ECHO_T}$ac_cv_func_getuid" >&6
20442 if test $ac_cv_func_getuid = yes; then
20444 cat >>confdefs.h <<_ACEOF
20445 #define HAVE_GETUID 1
20449 LIBOBJS="$LIBOBJS getuid.$ac_objext"
20451 echo "$as_me:$LINENO: checking for getusershell" >&5
20452 echo $ECHO_N "checking for getusershell... $ECHO_C" >&6
20453 if test "${ac_cv_func_getusershell+set}" = set; then
20454 echo $ECHO_N "(cached) $ECHO_C" >&6
20456 cat >conftest.$ac_ext <<_ACEOF
20457 #line $LINENO "configure"
20458 #include "confdefs.h"
20459 /* System header to define __stub macros and hopefully few prototypes,
20460 which can conflict with char getusershell (); below. */
20461 #include <assert.h>
20462 /* Override any gcc2 internal prototype to avoid an error. */
20466 /* We use char because int might match the return type of a gcc2
20467 builtin and then its argument prototype would still apply. */
20468 char getusershell ();
20471 #ifdef F77_DUMMY_MAIN
20472 # ifdef __cplusplus
20475 int F77_DUMMY_MAIN() { return 1; }
20480 /* The GNU C library defines this for functions which it implements
20481 to always fail with ENOSYS. Some functions are actually named
20482 something starting with __ and the normal name is an alias. */
20483 #if defined (__stub_getusershell) || defined (__stub___getusershell)
20493 rm -f conftest.$ac_objext conftest$ac_exeext
20494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20495 (eval $ac_link) 2>&5
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); } &&
20499 { ac_try='test -s conftest$ac_exeext'
20500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20501 (eval $ac_try) 2>&5
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); }; }; then
20505 ac_cv_func_getusershell=yes
20507 echo "$as_me: failed program was:" >&5
20508 cat conftest.$ac_ext >&5
20509 ac_cv_func_getusershell=no
20511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20513 echo "$as_me:$LINENO: result: $ac_cv_func_getusershell" >&5
20514 echo "${ECHO_T}$ac_cv_func_getusershell" >&6
20515 if test $ac_cv_func_getusershell = yes; then
20517 cat >>confdefs.h <<_ACEOF
20518 #define HAVE_GETUSERSHELL 1
20522 LIBOBJS="$LIBOBJS getusershell.$ac_objext"
20524 echo "$as_me:$LINENO: checking for initgroups" >&5
20525 echo $ECHO_N "checking for initgroups... $ECHO_C" >&6
20526 if test "${ac_cv_func_initgroups+set}" = set; then
20527 echo $ECHO_N "(cached) $ECHO_C" >&6
20529 cat >conftest.$ac_ext <<_ACEOF
20530 #line $LINENO "configure"
20531 #include "confdefs.h"
20532 /* System header to define __stub macros and hopefully few prototypes,
20533 which can conflict with char initgroups (); below. */
20534 #include <assert.h>
20535 /* Override any gcc2 internal prototype to avoid an error. */
20539 /* We use char because int might match the return type of a gcc2
20540 builtin and then its argument prototype would still apply. */
20541 char initgroups ();
20544 #ifdef F77_DUMMY_MAIN
20545 # ifdef __cplusplus
20548 int F77_DUMMY_MAIN() { return 1; }
20553 /* The GNU C library defines this for functions which it implements
20554 to always fail with ENOSYS. Some functions are actually named
20555 something starting with __ and the normal name is an alias. */
20556 #if defined (__stub_initgroups) || defined (__stub___initgroups)
20566 rm -f conftest.$ac_objext conftest$ac_exeext
20567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20568 (eval $ac_link) 2>&5
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); } &&
20572 { ac_try='test -s conftest$ac_exeext'
20573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20574 (eval $ac_try) 2>&5
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); }; }; then
20578 ac_cv_func_initgroups=yes
20580 echo "$as_me: failed program was:" >&5
20581 cat conftest.$ac_ext >&5
20582 ac_cv_func_initgroups=no
20584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20586 echo "$as_me:$LINENO: result: $ac_cv_func_initgroups" >&5
20587 echo "${ECHO_T}$ac_cv_func_initgroups" >&6
20588 if test $ac_cv_func_initgroups = yes; then
20590 cat >>confdefs.h <<_ACEOF
20591 #define HAVE_INITGROUPS 1
20595 LIBOBJS="$LIBOBJS initgroups.$ac_objext"
20597 echo "$as_me:$LINENO: checking for innetgr" >&5
20598 echo $ECHO_N "checking for innetgr... $ECHO_C" >&6
20599 if test "${ac_cv_func_innetgr+set}" = set; then
20600 echo $ECHO_N "(cached) $ECHO_C" >&6
20602 cat >conftest.$ac_ext <<_ACEOF
20603 #line $LINENO "configure"
20604 #include "confdefs.h"
20605 /* System header to define __stub macros and hopefully few prototypes,
20606 which can conflict with char innetgr (); below. */
20607 #include <assert.h>
20608 /* Override any gcc2 internal prototype to avoid an error. */
20612 /* We use char because int might match the return type of a gcc2
20613 builtin and then its argument prototype would still apply. */
20617 #ifdef F77_DUMMY_MAIN
20618 # ifdef __cplusplus
20621 int F77_DUMMY_MAIN() { return 1; }
20626 /* The GNU C library defines this for functions which it implements
20627 to always fail with ENOSYS. Some functions are actually named
20628 something starting with __ and the normal name is an alias. */
20629 #if defined (__stub_innetgr) || defined (__stub___innetgr)
20639 rm -f conftest.$ac_objext conftest$ac_exeext
20640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20641 (eval $ac_link) 2>&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } &&
20645 { ac_try='test -s conftest$ac_exeext'
20646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20647 (eval $ac_try) 2>&5
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); }; }; then
20651 ac_cv_func_innetgr=yes
20653 echo "$as_me: failed program was:" >&5
20654 cat conftest.$ac_ext >&5
20655 ac_cv_func_innetgr=no
20657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20659 echo "$as_me:$LINENO: result: $ac_cv_func_innetgr" >&5
20660 echo "${ECHO_T}$ac_cv_func_innetgr" >&6
20661 if test $ac_cv_func_innetgr = yes; then
20663 cat >>confdefs.h <<_ACEOF
20664 #define HAVE_INNETGR 1
20668 LIBOBJS="$LIBOBJS innetgr.$ac_objext"
20670 echo "$as_me:$LINENO: checking for iruserok" >&5
20671 echo $ECHO_N "checking for iruserok... $ECHO_C" >&6
20672 if test "${ac_cv_func_iruserok+set}" = set; then
20673 echo $ECHO_N "(cached) $ECHO_C" >&6
20675 cat >conftest.$ac_ext <<_ACEOF
20676 #line $LINENO "configure"
20677 #include "confdefs.h"
20678 /* System header to define __stub macros and hopefully few prototypes,
20679 which can conflict with char iruserok (); below. */
20680 #include <assert.h>
20681 /* Override any gcc2 internal prototype to avoid an error. */
20685 /* We use char because int might match the return type of a gcc2
20686 builtin and then its argument prototype would still apply. */
20690 #ifdef F77_DUMMY_MAIN
20691 # ifdef __cplusplus
20694 int F77_DUMMY_MAIN() { return 1; }
20699 /* The GNU C library defines this for functions which it implements
20700 to always fail with ENOSYS. Some functions are actually named
20701 something starting with __ and the normal name is an alias. */
20702 #if defined (__stub_iruserok) || defined (__stub___iruserok)
20712 rm -f conftest.$ac_objext conftest$ac_exeext
20713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20714 (eval $ac_link) 2>&5
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); } &&
20718 { ac_try='test -s conftest$ac_exeext'
20719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20720 (eval $ac_try) 2>&5
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); }; }; then
20724 ac_cv_func_iruserok=yes
20726 echo "$as_me: failed program was:" >&5
20727 cat conftest.$ac_ext >&5
20728 ac_cv_func_iruserok=no
20730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20732 echo "$as_me:$LINENO: result: $ac_cv_func_iruserok" >&5
20733 echo "${ECHO_T}$ac_cv_func_iruserok" >&6
20734 if test $ac_cv_func_iruserok = yes; then
20736 cat >>confdefs.h <<_ACEOF
20737 #define HAVE_IRUSEROK 1
20741 LIBOBJS="$LIBOBJS iruserok.$ac_objext"
20743 echo "$as_me:$LINENO: checking for localtime_r" >&5
20744 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
20745 if test "${ac_cv_func_localtime_r+set}" = set; then
20746 echo $ECHO_N "(cached) $ECHO_C" >&6
20748 cat >conftest.$ac_ext <<_ACEOF
20749 #line $LINENO "configure"
20750 #include "confdefs.h"
20751 /* System header to define __stub macros and hopefully few prototypes,
20752 which can conflict with char localtime_r (); below. */
20753 #include <assert.h>
20754 /* Override any gcc2 internal prototype to avoid an error. */
20758 /* We use char because int might match the return type of a gcc2
20759 builtin and then its argument prototype would still apply. */
20760 char localtime_r ();
20763 #ifdef F77_DUMMY_MAIN
20764 # ifdef __cplusplus
20767 int F77_DUMMY_MAIN() { return 1; }
20772 /* The GNU C library defines this for functions which it implements
20773 to always fail with ENOSYS. Some functions are actually named
20774 something starting with __ and the normal name is an alias. */
20775 #if defined (__stub_localtime_r) || defined (__stub___localtime_r)
20785 rm -f conftest.$ac_objext conftest$ac_exeext
20786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20787 (eval $ac_link) 2>&5
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); } &&
20791 { ac_try='test -s conftest$ac_exeext'
20792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20793 (eval $ac_try) 2>&5
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); }; }; then
20797 ac_cv_func_localtime_r=yes
20799 echo "$as_me: failed program was:" >&5
20800 cat conftest.$ac_ext >&5
20801 ac_cv_func_localtime_r=no
20803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20805 echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
20806 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
20807 if test $ac_cv_func_localtime_r = yes; then
20809 cat >>confdefs.h <<_ACEOF
20810 #define HAVE_LOCALTIME_R 1
20814 LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
20816 echo "$as_me:$LINENO: checking for lstat" >&5
20817 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
20818 if test "${ac_cv_func_lstat+set}" = set; then
20819 echo $ECHO_N "(cached) $ECHO_C" >&6
20821 cat >conftest.$ac_ext <<_ACEOF
20822 #line $LINENO "configure"
20823 #include "confdefs.h"
20824 /* System header to define __stub macros and hopefully few prototypes,
20825 which can conflict with char lstat (); below. */
20826 #include <assert.h>
20827 /* Override any gcc2 internal prototype to avoid an error. */
20831 /* We use char because int might match the return type of a gcc2
20832 builtin and then its argument prototype would still apply. */
20836 #ifdef F77_DUMMY_MAIN
20837 # ifdef __cplusplus
20840 int F77_DUMMY_MAIN() { return 1; }
20845 /* The GNU C library defines this for functions which it implements
20846 to always fail with ENOSYS. Some functions are actually named
20847 something starting with __ and the normal name is an alias. */
20848 #if defined (__stub_lstat) || defined (__stub___lstat)
20858 rm -f conftest.$ac_objext conftest$ac_exeext
20859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20860 (eval $ac_link) 2>&5
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); } &&
20864 { ac_try='test -s conftest$ac_exeext'
20865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866 (eval $ac_try) 2>&5
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); }; }; then
20870 ac_cv_func_lstat=yes
20872 echo "$as_me: failed program was:" >&5
20873 cat conftest.$ac_ext >&5
20874 ac_cv_func_lstat=no
20876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20878 echo "$as_me:$LINENO: result: $ac_cv_func_lstat" >&5
20879 echo "${ECHO_T}$ac_cv_func_lstat" >&6
20880 if test $ac_cv_func_lstat = yes; then
20882 cat >>confdefs.h <<_ACEOF
20883 #define HAVE_LSTAT 1
20887 LIBOBJS="$LIBOBJS lstat.$ac_objext"
20889 echo "$as_me:$LINENO: checking for memmove" >&5
20890 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
20891 if test "${ac_cv_func_memmove+set}" = set; then
20892 echo $ECHO_N "(cached) $ECHO_C" >&6
20894 cat >conftest.$ac_ext <<_ACEOF
20895 #line $LINENO "configure"
20896 #include "confdefs.h"
20897 /* System header to define __stub macros and hopefully few prototypes,
20898 which can conflict with char memmove (); below. */
20899 #include <assert.h>
20900 /* Override any gcc2 internal prototype to avoid an error. */
20904 /* We use char because int might match the return type of a gcc2
20905 builtin and then its argument prototype would still apply. */
20909 #ifdef F77_DUMMY_MAIN
20910 # ifdef __cplusplus
20913 int F77_DUMMY_MAIN() { return 1; }
20918 /* The GNU C library defines this for functions which it implements
20919 to always fail with ENOSYS. Some functions are actually named
20920 something starting with __ and the normal name is an alias. */
20921 #if defined (__stub_memmove) || defined (__stub___memmove)
20931 rm -f conftest.$ac_objext conftest$ac_exeext
20932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20933 (eval $ac_link) 2>&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } &&
20937 { ac_try='test -s conftest$ac_exeext'
20938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20939 (eval $ac_try) 2>&5
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; }; then
20943 ac_cv_func_memmove=yes
20945 echo "$as_me: failed program was:" >&5
20946 cat conftest.$ac_ext >&5
20947 ac_cv_func_memmove=no
20949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20951 echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5
20952 echo "${ECHO_T}$ac_cv_func_memmove" >&6
20953 if test $ac_cv_func_memmove = yes; then
20955 cat >>confdefs.h <<_ACEOF
20956 #define HAVE_MEMMOVE 1
20960 LIBOBJS="$LIBOBJS memmove.$ac_objext"
20962 echo "$as_me:$LINENO: checking for mkstemp" >&5
20963 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
20964 if test "${ac_cv_func_mkstemp+set}" = set; then
20965 echo $ECHO_N "(cached) $ECHO_C" >&6
20967 cat >conftest.$ac_ext <<_ACEOF
20968 #line $LINENO "configure"
20969 #include "confdefs.h"
20970 /* System header to define __stub macros and hopefully few prototypes,
20971 which can conflict with char mkstemp (); below. */
20972 #include <assert.h>
20973 /* Override any gcc2 internal prototype to avoid an error. */
20977 /* We use char because int might match the return type of a gcc2
20978 builtin and then its argument prototype would still apply. */
20982 #ifdef F77_DUMMY_MAIN
20983 # ifdef __cplusplus
20986 int F77_DUMMY_MAIN() { return 1; }
20991 /* The GNU C library defines this for functions which it implements
20992 to always fail with ENOSYS. Some functions are actually named
20993 something starting with __ and the normal name is an alias. */
20994 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
21004 rm -f conftest.$ac_objext conftest$ac_exeext
21005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21006 (eval $ac_link) 2>&5
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); } &&
21010 { ac_try='test -s conftest$ac_exeext'
21011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21012 (eval $ac_try) 2>&5
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); }; }; then
21016 ac_cv_func_mkstemp=yes
21018 echo "$as_me: failed program was:" >&5
21019 cat conftest.$ac_ext >&5
21020 ac_cv_func_mkstemp=no
21022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21024 echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
21025 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
21026 if test $ac_cv_func_mkstemp = yes; then
21028 cat >>confdefs.h <<_ACEOF
21029 #define HAVE_MKSTEMP 1
21033 LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
21035 echo "$as_me:$LINENO: checking for putenv" >&5
21036 echo $ECHO_N "checking for putenv... $ECHO_C" >&6
21037 if test "${ac_cv_func_putenv+set}" = set; then
21038 echo $ECHO_N "(cached) $ECHO_C" >&6
21040 cat >conftest.$ac_ext <<_ACEOF
21041 #line $LINENO "configure"
21042 #include "confdefs.h"
21043 /* System header to define __stub macros and hopefully few prototypes,
21044 which can conflict with char putenv (); below. */
21045 #include <assert.h>
21046 /* Override any gcc2 internal prototype to avoid an error. */
21050 /* We use char because int might match the return type of a gcc2
21051 builtin and then its argument prototype would still apply. */
21055 #ifdef F77_DUMMY_MAIN
21056 # ifdef __cplusplus
21059 int F77_DUMMY_MAIN() { return 1; }
21064 /* The GNU C library defines this for functions which it implements
21065 to always fail with ENOSYS. Some functions are actually named
21066 something starting with __ and the normal name is an alias. */
21067 #if defined (__stub_putenv) || defined (__stub___putenv)
21077 rm -f conftest.$ac_objext conftest$ac_exeext
21078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21079 (eval $ac_link) 2>&5
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); } &&
21083 { ac_try='test -s conftest$ac_exeext'
21084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21085 (eval $ac_try) 2>&5
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); }; }; then
21089 ac_cv_func_putenv=yes
21091 echo "$as_me: failed program was:" >&5
21092 cat conftest.$ac_ext >&5
21093 ac_cv_func_putenv=no
21095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21097 echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5
21098 echo "${ECHO_T}$ac_cv_func_putenv" >&6
21099 if test $ac_cv_func_putenv = yes; then
21101 cat >>confdefs.h <<_ACEOF
21102 #define HAVE_PUTENV 1
21106 LIBOBJS="$LIBOBJS putenv.$ac_objext"
21108 echo "$as_me:$LINENO: checking for rcmd" >&5
21109 echo $ECHO_N "checking for rcmd... $ECHO_C" >&6
21110 if test "${ac_cv_func_rcmd+set}" = set; then
21111 echo $ECHO_N "(cached) $ECHO_C" >&6
21113 cat >conftest.$ac_ext <<_ACEOF
21114 #line $LINENO "configure"
21115 #include "confdefs.h"
21116 /* System header to define __stub macros and hopefully few prototypes,
21117 which can conflict with char rcmd (); below. */
21118 #include <assert.h>
21119 /* Override any gcc2 internal prototype to avoid an error. */
21123 /* We use char because int might match the return type of a gcc2
21124 builtin and then its argument prototype would still apply. */
21128 #ifdef F77_DUMMY_MAIN
21129 # ifdef __cplusplus
21132 int F77_DUMMY_MAIN() { return 1; }
21137 /* The GNU C library defines this for functions which it implements
21138 to always fail with ENOSYS. Some functions are actually named
21139 something starting with __ and the normal name is an alias. */
21140 #if defined (__stub_rcmd) || defined (__stub___rcmd)
21150 rm -f conftest.$ac_objext conftest$ac_exeext
21151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21152 (eval $ac_link) 2>&5
21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); } &&
21156 { ac_try='test -s conftest$ac_exeext'
21157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21158 (eval $ac_try) 2>&5
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); }; }; then
21162 ac_cv_func_rcmd=yes
21164 echo "$as_me: failed program was:" >&5
21165 cat conftest.$ac_ext >&5
21168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21170 echo "$as_me:$LINENO: result: $ac_cv_func_rcmd" >&5
21171 echo "${ECHO_T}$ac_cv_func_rcmd" >&6
21172 if test $ac_cv_func_rcmd = yes; then
21174 cat >>confdefs.h <<_ACEOF
21175 #define HAVE_RCMD 1
21179 LIBOBJS="$LIBOBJS rcmd.$ac_objext"
21181 echo "$as_me:$LINENO: checking for readv" >&5
21182 echo $ECHO_N "checking for readv... $ECHO_C" >&6
21183 if test "${ac_cv_func_readv+set}" = set; then
21184 echo $ECHO_N "(cached) $ECHO_C" >&6
21186 cat >conftest.$ac_ext <<_ACEOF
21187 #line $LINENO "configure"
21188 #include "confdefs.h"
21189 /* System header to define __stub macros and hopefully few prototypes,
21190 which can conflict with char readv (); below. */
21191 #include <assert.h>
21192 /* Override any gcc2 internal prototype to avoid an error. */
21196 /* We use char because int might match the return type of a gcc2
21197 builtin and then its argument prototype would still apply. */
21201 #ifdef F77_DUMMY_MAIN
21202 # ifdef __cplusplus
21205 int F77_DUMMY_MAIN() { return 1; }
21210 /* The GNU C library defines this for functions which it implements
21211 to always fail with ENOSYS. Some functions are actually named
21212 something starting with __ and the normal name is an alias. */
21213 #if defined (__stub_readv) || defined (__stub___readv)
21223 rm -f conftest.$ac_objext conftest$ac_exeext
21224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21225 (eval $ac_link) 2>&5
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); } &&
21229 { ac_try='test -s conftest$ac_exeext'
21230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231 (eval $ac_try) 2>&5
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); }; }; then
21235 ac_cv_func_readv=yes
21237 echo "$as_me: failed program was:" >&5
21238 cat conftest.$ac_ext >&5
21239 ac_cv_func_readv=no
21241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21243 echo "$as_me:$LINENO: result: $ac_cv_func_readv" >&5
21244 echo "${ECHO_T}$ac_cv_func_readv" >&6
21245 if test $ac_cv_func_readv = yes; then
21247 cat >>confdefs.h <<_ACEOF
21248 #define HAVE_READV 1
21252 LIBOBJS="$LIBOBJS readv.$ac_objext"
21254 echo "$as_me:$LINENO: checking for recvmsg" >&5
21255 echo $ECHO_N "checking for recvmsg... $ECHO_C" >&6
21256 if test "${ac_cv_func_recvmsg+set}" = set; then
21257 echo $ECHO_N "(cached) $ECHO_C" >&6
21259 cat >conftest.$ac_ext <<_ACEOF
21260 #line $LINENO "configure"
21261 #include "confdefs.h"
21262 /* System header to define __stub macros and hopefully few prototypes,
21263 which can conflict with char recvmsg (); below. */
21264 #include <assert.h>
21265 /* Override any gcc2 internal prototype to avoid an error. */
21269 /* We use char because int might match the return type of a gcc2
21270 builtin and then its argument prototype would still apply. */
21274 #ifdef F77_DUMMY_MAIN
21275 # ifdef __cplusplus
21278 int F77_DUMMY_MAIN() { return 1; }
21283 /* The GNU C library defines this for functions which it implements
21284 to always fail with ENOSYS. Some functions are actually named
21285 something starting with __ and the normal name is an alias. */
21286 #if defined (__stub_recvmsg) || defined (__stub___recvmsg)
21296 rm -f conftest.$ac_objext conftest$ac_exeext
21297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21298 (eval $ac_link) 2>&5
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); } &&
21302 { ac_try='test -s conftest$ac_exeext'
21303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21304 (eval $ac_try) 2>&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); }; }; then
21308 ac_cv_func_recvmsg=yes
21310 echo "$as_me: failed program was:" >&5
21311 cat conftest.$ac_ext >&5
21312 ac_cv_func_recvmsg=no
21314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21316 echo "$as_me:$LINENO: result: $ac_cv_func_recvmsg" >&5
21317 echo "${ECHO_T}$ac_cv_func_recvmsg" >&6
21318 if test $ac_cv_func_recvmsg = yes; then
21320 cat >>confdefs.h <<_ACEOF
21321 #define HAVE_RECVMSG 1
21325 LIBOBJS="$LIBOBJS recvmsg.$ac_objext"
21327 echo "$as_me:$LINENO: checking for sendmsg" >&5
21328 echo $ECHO_N "checking for sendmsg... $ECHO_C" >&6
21329 if test "${ac_cv_func_sendmsg+set}" = set; then
21330 echo $ECHO_N "(cached) $ECHO_C" >&6
21332 cat >conftest.$ac_ext <<_ACEOF
21333 #line $LINENO "configure"
21334 #include "confdefs.h"
21335 /* System header to define __stub macros and hopefully few prototypes,
21336 which can conflict with char sendmsg (); below. */
21337 #include <assert.h>
21338 /* Override any gcc2 internal prototype to avoid an error. */
21342 /* We use char because int might match the return type of a gcc2
21343 builtin and then its argument prototype would still apply. */
21347 #ifdef F77_DUMMY_MAIN
21348 # ifdef __cplusplus
21351 int F77_DUMMY_MAIN() { return 1; }
21356 /* The GNU C library defines this for functions which it implements
21357 to always fail with ENOSYS. Some functions are actually named
21358 something starting with __ and the normal name is an alias. */
21359 #if defined (__stub_sendmsg) || defined (__stub___sendmsg)
21369 rm -f conftest.$ac_objext conftest$ac_exeext
21370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21371 (eval $ac_link) 2>&5
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); } &&
21375 { ac_try='test -s conftest$ac_exeext'
21376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21377 (eval $ac_try) 2>&5
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); }; }; then
21381 ac_cv_func_sendmsg=yes
21383 echo "$as_me: failed program was:" >&5
21384 cat conftest.$ac_ext >&5
21385 ac_cv_func_sendmsg=no
21387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21389 echo "$as_me:$LINENO: result: $ac_cv_func_sendmsg" >&5
21390 echo "${ECHO_T}$ac_cv_func_sendmsg" >&6
21391 if test $ac_cv_func_sendmsg = yes; then
21393 cat >>confdefs.h <<_ACEOF
21394 #define HAVE_SENDMSG 1
21398 LIBOBJS="$LIBOBJS sendmsg.$ac_objext"
21400 echo "$as_me:$LINENO: checking for setegid" >&5
21401 echo $ECHO_N "checking for setegid... $ECHO_C" >&6
21402 if test "${ac_cv_func_setegid+set}" = set; then
21403 echo $ECHO_N "(cached) $ECHO_C" >&6
21405 cat >conftest.$ac_ext <<_ACEOF
21406 #line $LINENO "configure"
21407 #include "confdefs.h"
21408 /* System header to define __stub macros and hopefully few prototypes,
21409 which can conflict with char setegid (); below. */
21410 #include <assert.h>
21411 /* Override any gcc2 internal prototype to avoid an error. */
21415 /* We use char because int might match the return type of a gcc2
21416 builtin and then its argument prototype would still apply. */
21420 #ifdef F77_DUMMY_MAIN
21421 # ifdef __cplusplus
21424 int F77_DUMMY_MAIN() { return 1; }
21429 /* The GNU C library defines this for functions which it implements
21430 to always fail with ENOSYS. Some functions are actually named
21431 something starting with __ and the normal name is an alias. */
21432 #if defined (__stub_setegid) || defined (__stub___setegid)
21442 rm -f conftest.$ac_objext conftest$ac_exeext
21443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21444 (eval $ac_link) 2>&5
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); } &&
21448 { ac_try='test -s conftest$ac_exeext'
21449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450 (eval $ac_try) 2>&5
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; }; then
21454 ac_cv_func_setegid=yes
21456 echo "$as_me: failed program was:" >&5
21457 cat conftest.$ac_ext >&5
21458 ac_cv_func_setegid=no
21460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21462 echo "$as_me:$LINENO: result: $ac_cv_func_setegid" >&5
21463 echo "${ECHO_T}$ac_cv_func_setegid" >&6
21464 if test $ac_cv_func_setegid = yes; then
21466 cat >>confdefs.h <<_ACEOF
21467 #define HAVE_SETEGID 1
21471 LIBOBJS="$LIBOBJS setegid.$ac_objext"
21473 echo "$as_me:$LINENO: checking for setenv" >&5
21474 echo $ECHO_N "checking for setenv... $ECHO_C" >&6
21475 if test "${ac_cv_func_setenv+set}" = set; then
21476 echo $ECHO_N "(cached) $ECHO_C" >&6
21478 cat >conftest.$ac_ext <<_ACEOF
21479 #line $LINENO "configure"
21480 #include "confdefs.h"
21481 /* System header to define __stub macros and hopefully few prototypes,
21482 which can conflict with char setenv (); below. */
21483 #include <assert.h>
21484 /* Override any gcc2 internal prototype to avoid an error. */
21488 /* We use char because int might match the return type of a gcc2
21489 builtin and then its argument prototype would still apply. */
21493 #ifdef F77_DUMMY_MAIN
21494 # ifdef __cplusplus
21497 int F77_DUMMY_MAIN() { return 1; }
21502 /* The GNU C library defines this for functions which it implements
21503 to always fail with ENOSYS. Some functions are actually named
21504 something starting with __ and the normal name is an alias. */
21505 #if defined (__stub_setenv) || defined (__stub___setenv)
21515 rm -f conftest.$ac_objext conftest$ac_exeext
21516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21517 (eval $ac_link) 2>&5
21519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); } &&
21521 { ac_try='test -s conftest$ac_exeext'
21522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21523 (eval $ac_try) 2>&5
21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526 (exit $ac_status); }; }; then
21527 ac_cv_func_setenv=yes
21529 echo "$as_me: failed program was:" >&5
21530 cat conftest.$ac_ext >&5
21531 ac_cv_func_setenv=no
21533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21535 echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5
21536 echo "${ECHO_T}$ac_cv_func_setenv" >&6
21537 if test $ac_cv_func_setenv = yes; then
21539 cat >>confdefs.h <<_ACEOF
21540 #define HAVE_SETENV 1
21544 LIBOBJS="$LIBOBJS setenv.$ac_objext"
21546 echo "$as_me:$LINENO: checking for seteuid" >&5
21547 echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
21548 if test "${ac_cv_func_seteuid+set}" = set; then
21549 echo $ECHO_N "(cached) $ECHO_C" >&6
21551 cat >conftest.$ac_ext <<_ACEOF
21552 #line $LINENO "configure"
21553 #include "confdefs.h"
21554 /* System header to define __stub macros and hopefully few prototypes,
21555 which can conflict with char seteuid (); below. */
21556 #include <assert.h>
21557 /* Override any gcc2 internal prototype to avoid an error. */
21561 /* We use char because int might match the return type of a gcc2
21562 builtin and then its argument prototype would still apply. */
21566 #ifdef F77_DUMMY_MAIN
21567 # ifdef __cplusplus
21570 int F77_DUMMY_MAIN() { return 1; }
21575 /* The GNU C library defines this for functions which it implements
21576 to always fail with ENOSYS. Some functions are actually named
21577 something starting with __ and the normal name is an alias. */
21578 #if defined (__stub_seteuid) || defined (__stub___seteuid)
21588 rm -f conftest.$ac_objext conftest$ac_exeext
21589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21590 (eval $ac_link) 2>&5
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); } &&
21594 { ac_try='test -s conftest$ac_exeext'
21595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21596 (eval $ac_try) 2>&5
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); }; }; then
21600 ac_cv_func_seteuid=yes
21602 echo "$as_me: failed program was:" >&5
21603 cat conftest.$ac_ext >&5
21604 ac_cv_func_seteuid=no
21606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21608 echo "$as_me:$LINENO: result: $ac_cv_func_seteuid" >&5
21609 echo "${ECHO_T}$ac_cv_func_seteuid" >&6
21610 if test $ac_cv_func_seteuid = yes; then
21612 cat >>confdefs.h <<_ACEOF
21613 #define HAVE_SETEUID 1
21617 LIBOBJS="$LIBOBJS seteuid.$ac_objext"
21619 echo "$as_me:$LINENO: checking for strcasecmp" >&5
21620 echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
21621 if test "${ac_cv_func_strcasecmp+set}" = set; then
21622 echo $ECHO_N "(cached) $ECHO_C" >&6
21624 cat >conftest.$ac_ext <<_ACEOF
21625 #line $LINENO "configure"
21626 #include "confdefs.h"
21627 /* System header to define __stub macros and hopefully few prototypes,
21628 which can conflict with char strcasecmp (); below. */
21629 #include <assert.h>
21630 /* Override any gcc2 internal prototype to avoid an error. */
21634 /* We use char because int might match the return type of a gcc2
21635 builtin and then its argument prototype would still apply. */
21636 char strcasecmp ();
21639 #ifdef F77_DUMMY_MAIN
21640 # ifdef __cplusplus
21643 int F77_DUMMY_MAIN() { return 1; }
21648 /* The GNU C library defines this for functions which it implements
21649 to always fail with ENOSYS. Some functions are actually named
21650 something starting with __ and the normal name is an alias. */
21651 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
21661 rm -f conftest.$ac_objext conftest$ac_exeext
21662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21663 (eval $ac_link) 2>&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); } &&
21667 { ac_try='test -s conftest$ac_exeext'
21668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21669 (eval $ac_try) 2>&5
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); }; }; then
21673 ac_cv_func_strcasecmp=yes
21675 echo "$as_me: failed program was:" >&5
21676 cat conftest.$ac_ext >&5
21677 ac_cv_func_strcasecmp=no
21679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21681 echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
21682 echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
21683 if test $ac_cv_func_strcasecmp = yes; then
21685 cat >>confdefs.h <<_ACEOF
21686 #define HAVE_STRCASECMP 1
21690 LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
21692 echo "$as_me:$LINENO: checking for strdup" >&5
21693 echo $ECHO_N "checking for strdup... $ECHO_C" >&6
21694 if test "${ac_cv_func_strdup+set}" = set; then
21695 echo $ECHO_N "(cached) $ECHO_C" >&6
21697 cat >conftest.$ac_ext <<_ACEOF
21698 #line $LINENO "configure"
21699 #include "confdefs.h"
21700 /* System header to define __stub macros and hopefully few prototypes,
21701 which can conflict with char strdup (); below. */
21702 #include <assert.h>
21703 /* Override any gcc2 internal prototype to avoid an error. */
21707 /* We use char because int might match the return type of a gcc2
21708 builtin and then its argument prototype would still apply. */
21712 #ifdef F77_DUMMY_MAIN
21713 # ifdef __cplusplus
21716 int F77_DUMMY_MAIN() { return 1; }
21721 /* The GNU C library defines this for functions which it implements
21722 to always fail with ENOSYS. Some functions are actually named
21723 something starting with __ and the normal name is an alias. */
21724 #if defined (__stub_strdup) || defined (__stub___strdup)
21734 rm -f conftest.$ac_objext conftest$ac_exeext
21735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21736 (eval $ac_link) 2>&5
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); } &&
21740 { ac_try='test -s conftest$ac_exeext'
21741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21742 (eval $ac_try) 2>&5
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); }; }; then
21746 ac_cv_func_strdup=yes
21748 echo "$as_me: failed program was:" >&5
21749 cat conftest.$ac_ext >&5
21750 ac_cv_func_strdup=no
21752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21754 echo "$as_me:$LINENO: result: $ac_cv_func_strdup" >&5
21755 echo "${ECHO_T}$ac_cv_func_strdup" >&6
21756 if test $ac_cv_func_strdup = yes; then
21758 cat >>confdefs.h <<_ACEOF
21759 #define HAVE_STRDUP 1
21763 LIBOBJS="$LIBOBJS strdup.$ac_objext"
21765 echo "$as_me:$LINENO: checking for strerror" >&5
21766 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
21767 if test "${ac_cv_func_strerror+set}" = set; then
21768 echo $ECHO_N "(cached) $ECHO_C" >&6
21770 cat >conftest.$ac_ext <<_ACEOF
21771 #line $LINENO "configure"
21772 #include "confdefs.h"
21773 /* System header to define __stub macros and hopefully few prototypes,
21774 which can conflict with char strerror (); below. */
21775 #include <assert.h>
21776 /* Override any gcc2 internal prototype to avoid an error. */
21780 /* We use char because int might match the return type of a gcc2
21781 builtin and then its argument prototype would still apply. */
21785 #ifdef F77_DUMMY_MAIN
21786 # ifdef __cplusplus
21789 int F77_DUMMY_MAIN() { return 1; }
21794 /* The GNU C library defines this for functions which it implements
21795 to always fail with ENOSYS. Some functions are actually named
21796 something starting with __ and the normal name is an alias. */
21797 #if defined (__stub_strerror) || defined (__stub___strerror)
21807 rm -f conftest.$ac_objext conftest$ac_exeext
21808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21809 (eval $ac_link) 2>&5
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); } &&
21813 { ac_try='test -s conftest$ac_exeext'
21814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21815 (eval $ac_try) 2>&5
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); }; }; then
21819 ac_cv_func_strerror=yes
21821 echo "$as_me: failed program was:" >&5
21822 cat conftest.$ac_ext >&5
21823 ac_cv_func_strerror=no
21825 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21827 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
21828 echo "${ECHO_T}$ac_cv_func_strerror" >&6
21829 if test $ac_cv_func_strerror = yes; then
21831 cat >>confdefs.h <<_ACEOF
21832 #define HAVE_STRERROR 1
21836 LIBOBJS="$LIBOBJS strerror.$ac_objext"
21838 echo "$as_me:$LINENO: checking for strftime" >&5
21839 echo $ECHO_N "checking for strftime... $ECHO_C" >&6
21840 if test "${ac_cv_func_strftime+set}" = set; then
21841 echo $ECHO_N "(cached) $ECHO_C" >&6
21843 cat >conftest.$ac_ext <<_ACEOF
21844 #line $LINENO "configure"
21845 #include "confdefs.h"
21846 /* System header to define __stub macros and hopefully few prototypes,
21847 which can conflict with char strftime (); below. */
21848 #include <assert.h>
21849 /* Override any gcc2 internal prototype to avoid an error. */
21853 /* We use char because int might match the return type of a gcc2
21854 builtin and then its argument prototype would still apply. */
21858 #ifdef F77_DUMMY_MAIN
21859 # ifdef __cplusplus
21862 int F77_DUMMY_MAIN() { return 1; }
21867 /* The GNU C library defines this for functions which it implements
21868 to always fail with ENOSYS. Some functions are actually named
21869 something starting with __ and the normal name is an alias. */
21870 #if defined (__stub_strftime) || defined (__stub___strftime)
21880 rm -f conftest.$ac_objext conftest$ac_exeext
21881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21882 (eval $ac_link) 2>&5
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); } &&
21886 { ac_try='test -s conftest$ac_exeext'
21887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21888 (eval $ac_try) 2>&5
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); }; }; then
21892 ac_cv_func_strftime=yes
21894 echo "$as_me: failed program was:" >&5
21895 cat conftest.$ac_ext >&5
21896 ac_cv_func_strftime=no
21898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21900 echo "$as_me:$LINENO: result: $ac_cv_func_strftime" >&5
21901 echo "${ECHO_T}$ac_cv_func_strftime" >&6
21902 if test $ac_cv_func_strftime = yes; then
21904 cat >>confdefs.h <<_ACEOF
21905 #define HAVE_STRFTIME 1
21909 LIBOBJS="$LIBOBJS strftime.$ac_objext"
21911 echo "$as_me:$LINENO: checking for strlcat" >&5
21912 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
21913 if test "${ac_cv_func_strlcat+set}" = set; then
21914 echo $ECHO_N "(cached) $ECHO_C" >&6
21916 cat >conftest.$ac_ext <<_ACEOF
21917 #line $LINENO "configure"
21918 #include "confdefs.h"
21919 /* System header to define __stub macros and hopefully few prototypes,
21920 which can conflict with char strlcat (); below. */
21921 #include <assert.h>
21922 /* Override any gcc2 internal prototype to avoid an error. */
21926 /* We use char because int might match the return type of a gcc2
21927 builtin and then its argument prototype would still apply. */
21931 #ifdef F77_DUMMY_MAIN
21932 # ifdef __cplusplus
21935 int F77_DUMMY_MAIN() { return 1; }
21940 /* The GNU C library defines this for functions which it implements
21941 to always fail with ENOSYS. Some functions are actually named
21942 something starting with __ and the normal name is an alias. */
21943 #if defined (__stub_strlcat) || defined (__stub___strlcat)
21953 rm -f conftest.$ac_objext conftest$ac_exeext
21954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21955 (eval $ac_link) 2>&5
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); } &&
21959 { ac_try='test -s conftest$ac_exeext'
21960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21961 (eval $ac_try) 2>&5
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); }; }; then
21965 ac_cv_func_strlcat=yes
21967 echo "$as_me: failed program was:" >&5
21968 cat conftest.$ac_ext >&5
21969 ac_cv_func_strlcat=no
21971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21973 echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
21974 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
21975 if test $ac_cv_func_strlcat = yes; then
21977 cat >>confdefs.h <<_ACEOF
21978 #define HAVE_STRLCAT 1
21982 LIBOBJS="$LIBOBJS strlcat.$ac_objext"
21984 echo "$as_me:$LINENO: checking for strlcpy" >&5
21985 echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
21986 if test "${ac_cv_func_strlcpy+set}" = set; then
21987 echo $ECHO_N "(cached) $ECHO_C" >&6
21989 cat >conftest.$ac_ext <<_ACEOF
21990 #line $LINENO "configure"
21991 #include "confdefs.h"
21992 /* System header to define __stub macros and hopefully few prototypes,
21993 which can conflict with char strlcpy (); below. */
21994 #include <assert.h>
21995 /* Override any gcc2 internal prototype to avoid an error. */
21999 /* We use char because int might match the return type of a gcc2
22000 builtin and then its argument prototype would still apply. */
22004 #ifdef F77_DUMMY_MAIN
22005 # ifdef __cplusplus
22008 int F77_DUMMY_MAIN() { return 1; }
22013 /* The GNU C library defines this for functions which it implements
22014 to always fail with ENOSYS. Some functions are actually named
22015 something starting with __ and the normal name is an alias. */
22016 #if defined (__stub_strlcpy) || defined (__stub___strlcpy)
22026 rm -f conftest.$ac_objext conftest$ac_exeext
22027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22028 (eval $ac_link) 2>&5
22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); } &&
22032 { ac_try='test -s conftest$ac_exeext'
22033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22034 (eval $ac_try) 2>&5
22036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037 (exit $ac_status); }; }; then
22038 ac_cv_func_strlcpy=yes
22040 echo "$as_me: failed program was:" >&5
22041 cat conftest.$ac_ext >&5
22042 ac_cv_func_strlcpy=no
22044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22046 echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
22047 echo "${ECHO_T}$ac_cv_func_strlcpy" >&6
22048 if test $ac_cv_func_strlcpy = yes; then
22050 cat >>confdefs.h <<_ACEOF
22051 #define HAVE_STRLCPY 1
22055 LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
22057 echo "$as_me:$LINENO: checking for strlwr" >&5
22058 echo $ECHO_N "checking for strlwr... $ECHO_C" >&6
22059 if test "${ac_cv_func_strlwr+set}" = set; then
22060 echo $ECHO_N "(cached) $ECHO_C" >&6
22062 cat >conftest.$ac_ext <<_ACEOF
22063 #line $LINENO "configure"
22064 #include "confdefs.h"
22065 /* System header to define __stub macros and hopefully few prototypes,
22066 which can conflict with char strlwr (); below. */
22067 #include <assert.h>
22068 /* Override any gcc2 internal prototype to avoid an error. */
22072 /* We use char because int might match the return type of a gcc2
22073 builtin and then its argument prototype would still apply. */
22077 #ifdef F77_DUMMY_MAIN
22078 # ifdef __cplusplus
22081 int F77_DUMMY_MAIN() { return 1; }
22086 /* The GNU C library defines this for functions which it implements
22087 to always fail with ENOSYS. Some functions are actually named
22088 something starting with __ and the normal name is an alias. */
22089 #if defined (__stub_strlwr) || defined (__stub___strlwr)
22099 rm -f conftest.$ac_objext conftest$ac_exeext
22100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22101 (eval $ac_link) 2>&5
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); } &&
22105 { ac_try='test -s conftest$ac_exeext'
22106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22107 (eval $ac_try) 2>&5
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 (exit $ac_status); }; }; then
22111 ac_cv_func_strlwr=yes
22113 echo "$as_me: failed program was:" >&5
22114 cat conftest.$ac_ext >&5
22115 ac_cv_func_strlwr=no
22117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22119 echo "$as_me:$LINENO: result: $ac_cv_func_strlwr" >&5
22120 echo "${ECHO_T}$ac_cv_func_strlwr" >&6
22121 if test $ac_cv_func_strlwr = yes; then
22123 cat >>confdefs.h <<_ACEOF
22124 #define HAVE_STRLWR 1
22128 LIBOBJS="$LIBOBJS strlwr.$ac_objext"
22130 echo "$as_me:$LINENO: checking for strncasecmp" >&5
22131 echo $ECHO_N "checking for strncasecmp... $ECHO_C" >&6
22132 if test "${ac_cv_func_strncasecmp+set}" = set; then
22133 echo $ECHO_N "(cached) $ECHO_C" >&6
22135 cat >conftest.$ac_ext <<_ACEOF
22136 #line $LINENO "configure"
22137 #include "confdefs.h"
22138 /* System header to define __stub macros and hopefully few prototypes,
22139 which can conflict with char strncasecmp (); below. */
22140 #include <assert.h>
22141 /* Override any gcc2 internal prototype to avoid an error. */
22145 /* We use char because int might match the return type of a gcc2
22146 builtin and then its argument prototype would still apply. */
22147 char strncasecmp ();
22150 #ifdef F77_DUMMY_MAIN
22151 # ifdef __cplusplus
22154 int F77_DUMMY_MAIN() { return 1; }
22159 /* The GNU C library defines this for functions which it implements
22160 to always fail with ENOSYS. Some functions are actually named
22161 something starting with __ and the normal name is an alias. */
22162 #if defined (__stub_strncasecmp) || defined (__stub___strncasecmp)
22172 rm -f conftest.$ac_objext conftest$ac_exeext
22173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22174 (eval $ac_link) 2>&5
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); } &&
22178 { ac_try='test -s conftest$ac_exeext'
22179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22180 (eval $ac_try) 2>&5
22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183 (exit $ac_status); }; }; then
22184 ac_cv_func_strncasecmp=yes
22186 echo "$as_me: failed program was:" >&5
22187 cat conftest.$ac_ext >&5
22188 ac_cv_func_strncasecmp=no
22190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22192 echo "$as_me:$LINENO: result: $ac_cv_func_strncasecmp" >&5
22193 echo "${ECHO_T}$ac_cv_func_strncasecmp" >&6
22194 if test $ac_cv_func_strncasecmp = yes; then
22196 cat >>confdefs.h <<_ACEOF
22197 #define HAVE_STRNCASECMP 1
22201 LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
22203 echo "$as_me:$LINENO: checking for strndup" >&5
22204 echo $ECHO_N "checking for strndup... $ECHO_C" >&6
22205 if test "${ac_cv_func_strndup+set}" = set; then
22206 echo $ECHO_N "(cached) $ECHO_C" >&6
22208 cat >conftest.$ac_ext <<_ACEOF
22209 #line $LINENO "configure"
22210 #include "confdefs.h"
22211 /* System header to define __stub macros and hopefully few prototypes,
22212 which can conflict with char strndup (); below. */
22213 #include <assert.h>
22214 /* Override any gcc2 internal prototype to avoid an error. */
22218 /* We use char because int might match the return type of a gcc2
22219 builtin and then its argument prototype would still apply. */
22223 #ifdef F77_DUMMY_MAIN
22224 # ifdef __cplusplus
22227 int F77_DUMMY_MAIN() { return 1; }
22232 /* The GNU C library defines this for functions which it implements
22233 to always fail with ENOSYS. Some functions are actually named
22234 something starting with __ and the normal name is an alias. */
22235 #if defined (__stub_strndup) || defined (__stub___strndup)
22245 rm -f conftest.$ac_objext conftest$ac_exeext
22246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22247 (eval $ac_link) 2>&5
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); } &&
22251 { ac_try='test -s conftest$ac_exeext'
22252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22253 (eval $ac_try) 2>&5
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); }; }; then
22257 ac_cv_func_strndup=yes
22259 echo "$as_me: failed program was:" >&5
22260 cat conftest.$ac_ext >&5
22261 ac_cv_func_strndup=no
22263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22265 echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
22266 echo "${ECHO_T}$ac_cv_func_strndup" >&6
22267 if test $ac_cv_func_strndup = yes; then
22269 cat >>confdefs.h <<_ACEOF
22270 #define HAVE_STRNDUP 1
22274 LIBOBJS="$LIBOBJS strndup.$ac_objext"
22276 echo "$as_me:$LINENO: checking for strnlen" >&5
22277 echo $ECHO_N "checking for strnlen... $ECHO_C" >&6
22278 if test "${ac_cv_func_strnlen+set}" = set; then
22279 echo $ECHO_N "(cached) $ECHO_C" >&6
22281 cat >conftest.$ac_ext <<_ACEOF
22282 #line $LINENO "configure"
22283 #include "confdefs.h"
22284 /* System header to define __stub macros and hopefully few prototypes,
22285 which can conflict with char strnlen (); below. */
22286 #include <assert.h>
22287 /* Override any gcc2 internal prototype to avoid an error. */
22291 /* We use char because int might match the return type of a gcc2
22292 builtin and then its argument prototype would still apply. */
22296 #ifdef F77_DUMMY_MAIN
22297 # ifdef __cplusplus
22300 int F77_DUMMY_MAIN() { return 1; }
22305 /* The GNU C library defines this for functions which it implements
22306 to always fail with ENOSYS. Some functions are actually named
22307 something starting with __ and the normal name is an alias. */
22308 #if defined (__stub_strnlen) || defined (__stub___strnlen)
22318 rm -f conftest.$ac_objext conftest$ac_exeext
22319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22320 (eval $ac_link) 2>&5
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); } &&
22324 { ac_try='test -s conftest$ac_exeext'
22325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22326 (eval $ac_try) 2>&5
22328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329 (exit $ac_status); }; }; then
22330 ac_cv_func_strnlen=yes
22332 echo "$as_me: failed program was:" >&5
22333 cat conftest.$ac_ext >&5
22334 ac_cv_func_strnlen=no
22336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22338 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen" >&5
22339 echo "${ECHO_T}$ac_cv_func_strnlen" >&6
22340 if test $ac_cv_func_strnlen = yes; then
22342 cat >>confdefs.h <<_ACEOF
22343 #define HAVE_STRNLEN 1
22347 LIBOBJS="$LIBOBJS strnlen.$ac_objext"
22349 echo "$as_me:$LINENO: checking for strptime" >&5
22350 echo $ECHO_N "checking for strptime... $ECHO_C" >&6
22351 if test "${ac_cv_func_strptime+set}" = set; then
22352 echo $ECHO_N "(cached) $ECHO_C" >&6
22354 cat >conftest.$ac_ext <<_ACEOF
22355 #line $LINENO "configure"
22356 #include "confdefs.h"
22357 /* System header to define __stub macros and hopefully few prototypes,
22358 which can conflict with char strptime (); below. */
22359 #include <assert.h>
22360 /* Override any gcc2 internal prototype to avoid an error. */
22364 /* We use char because int might match the return type of a gcc2
22365 builtin and then its argument prototype would still apply. */
22369 #ifdef F77_DUMMY_MAIN
22370 # ifdef __cplusplus
22373 int F77_DUMMY_MAIN() { return 1; }
22378 /* The GNU C library defines this for functions which it implements
22379 to always fail with ENOSYS. Some functions are actually named
22380 something starting with __ and the normal name is an alias. */
22381 #if defined (__stub_strptime) || defined (__stub___strptime)
22391 rm -f conftest.$ac_objext conftest$ac_exeext
22392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22393 (eval $ac_link) 2>&5
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); } &&
22397 { ac_try='test -s conftest$ac_exeext'
22398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22399 (eval $ac_try) 2>&5
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); }; }; then
22403 ac_cv_func_strptime=yes
22405 echo "$as_me: failed program was:" >&5
22406 cat conftest.$ac_ext >&5
22407 ac_cv_func_strptime=no
22409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22411 echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
22412 echo "${ECHO_T}$ac_cv_func_strptime" >&6
22413 if test $ac_cv_func_strptime = yes; then
22415 cat >>confdefs.h <<_ACEOF
22416 #define HAVE_STRPTIME 1
22420 LIBOBJS="$LIBOBJS strptime.$ac_objext"
22422 echo "$as_me:$LINENO: checking for strsep" >&5
22423 echo $ECHO_N "checking for strsep... $ECHO_C" >&6
22424 if test "${ac_cv_func_strsep+set}" = set; then
22425 echo $ECHO_N "(cached) $ECHO_C" >&6
22427 cat >conftest.$ac_ext <<_ACEOF
22428 #line $LINENO "configure"
22429 #include "confdefs.h"
22430 /* System header to define __stub macros and hopefully few prototypes,
22431 which can conflict with char strsep (); below. */
22432 #include <assert.h>
22433 /* Override any gcc2 internal prototype to avoid an error. */
22437 /* We use char because int might match the return type of a gcc2
22438 builtin and then its argument prototype would still apply. */
22442 #ifdef F77_DUMMY_MAIN
22443 # ifdef __cplusplus
22446 int F77_DUMMY_MAIN() { return 1; }
22451 /* The GNU C library defines this for functions which it implements
22452 to always fail with ENOSYS. Some functions are actually named
22453 something starting with __ and the normal name is an alias. */
22454 #if defined (__stub_strsep) || defined (__stub___strsep)
22464 rm -f conftest.$ac_objext conftest$ac_exeext
22465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22466 (eval $ac_link) 2>&5
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); } &&
22470 { ac_try='test -s conftest$ac_exeext'
22471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472 (eval $ac_try) 2>&5
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); }; }; then
22476 ac_cv_func_strsep=yes
22478 echo "$as_me: failed program was:" >&5
22479 cat conftest.$ac_ext >&5
22480 ac_cv_func_strsep=no
22482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22484 echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
22485 echo "${ECHO_T}$ac_cv_func_strsep" >&6
22486 if test $ac_cv_func_strsep = yes; then
22488 cat >>confdefs.h <<_ACEOF
22489 #define HAVE_STRSEP 1
22493 LIBOBJS="$LIBOBJS strsep.$ac_objext"
22495 echo "$as_me:$LINENO: checking for strsep_copy" >&5
22496 echo $ECHO_N "checking for strsep_copy... $ECHO_C" >&6
22497 if test "${ac_cv_func_strsep_copy+set}" = set; then
22498 echo $ECHO_N "(cached) $ECHO_C" >&6
22500 cat >conftest.$ac_ext <<_ACEOF
22501 #line $LINENO "configure"
22502 #include "confdefs.h"
22503 /* System header to define __stub macros and hopefully few prototypes,
22504 which can conflict with char strsep_copy (); below. */
22505 #include <assert.h>
22506 /* Override any gcc2 internal prototype to avoid an error. */
22510 /* We use char because int might match the return type of a gcc2
22511 builtin and then its argument prototype would still apply. */
22512 char strsep_copy ();
22515 #ifdef F77_DUMMY_MAIN
22516 # ifdef __cplusplus
22519 int F77_DUMMY_MAIN() { return 1; }
22524 /* The GNU C library defines this for functions which it implements
22525 to always fail with ENOSYS. Some functions are actually named
22526 something starting with __ and the normal name is an alias. */
22527 #if defined (__stub_strsep_copy) || defined (__stub___strsep_copy)
22537 rm -f conftest.$ac_objext conftest$ac_exeext
22538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22539 (eval $ac_link) 2>&5
22541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542 (exit $ac_status); } &&
22543 { ac_try='test -s conftest$ac_exeext'
22544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22545 (eval $ac_try) 2>&5
22547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548 (exit $ac_status); }; }; then
22549 ac_cv_func_strsep_copy=yes
22551 echo "$as_me: failed program was:" >&5
22552 cat conftest.$ac_ext >&5
22553 ac_cv_func_strsep_copy=no
22555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22557 echo "$as_me:$LINENO: result: $ac_cv_func_strsep_copy" >&5
22558 echo "${ECHO_T}$ac_cv_func_strsep_copy" >&6
22559 if test $ac_cv_func_strsep_copy = yes; then
22561 cat >>confdefs.h <<_ACEOF
22562 #define HAVE_STRSEP_COPY 1
22566 LIBOBJS="$LIBOBJS strsep_copy.$ac_objext"
22568 echo "$as_me:$LINENO: checking for strtok_r" >&5
22569 echo $ECHO_N "checking for strtok_r... $ECHO_C" >&6
22570 if test "${ac_cv_func_strtok_r+set}" = set; then
22571 echo $ECHO_N "(cached) $ECHO_C" >&6
22573 cat >conftest.$ac_ext <<_ACEOF
22574 #line $LINENO "configure"
22575 #include "confdefs.h"
22576 /* System header to define __stub macros and hopefully few prototypes,
22577 which can conflict with char strtok_r (); below. */
22578 #include <assert.h>
22579 /* Override any gcc2 internal prototype to avoid an error. */
22583 /* We use char because int might match the return type of a gcc2
22584 builtin and then its argument prototype would still apply. */
22588 #ifdef F77_DUMMY_MAIN
22589 # ifdef __cplusplus
22592 int F77_DUMMY_MAIN() { return 1; }
22597 /* The GNU C library defines this for functions which it implements
22598 to always fail with ENOSYS. Some functions are actually named
22599 something starting with __ and the normal name is an alias. */
22600 #if defined (__stub_strtok_r) || defined (__stub___strtok_r)
22610 rm -f conftest.$ac_objext conftest$ac_exeext
22611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22612 (eval $ac_link) 2>&5
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); } &&
22616 { ac_try='test -s conftest$ac_exeext'
22617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22618 (eval $ac_try) 2>&5
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); }; }; then
22622 ac_cv_func_strtok_r=yes
22624 echo "$as_me: failed program was:" >&5
22625 cat conftest.$ac_ext >&5
22626 ac_cv_func_strtok_r=no
22628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22630 echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r" >&5
22631 echo "${ECHO_T}$ac_cv_func_strtok_r" >&6
22632 if test $ac_cv_func_strtok_r = yes; then
22634 cat >>confdefs.h <<_ACEOF
22635 #define HAVE_STRTOK_R 1
22639 LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
22641 echo "$as_me:$LINENO: checking for strupr" >&5
22642 echo $ECHO_N "checking for strupr... $ECHO_C" >&6
22643 if test "${ac_cv_func_strupr+set}" = set; then
22644 echo $ECHO_N "(cached) $ECHO_C" >&6
22646 cat >conftest.$ac_ext <<_ACEOF
22647 #line $LINENO "configure"
22648 #include "confdefs.h"
22649 /* System header to define __stub macros and hopefully few prototypes,
22650 which can conflict with char strupr (); below. */
22651 #include <assert.h>
22652 /* Override any gcc2 internal prototype to avoid an error. */
22656 /* We use char because int might match the return type of a gcc2
22657 builtin and then its argument prototype would still apply. */
22661 #ifdef F77_DUMMY_MAIN
22662 # ifdef __cplusplus
22665 int F77_DUMMY_MAIN() { return 1; }
22670 /* The GNU C library defines this for functions which it implements
22671 to always fail with ENOSYS. Some functions are actually named
22672 something starting with __ and the normal name is an alias. */
22673 #if defined (__stub_strupr) || defined (__stub___strupr)
22683 rm -f conftest.$ac_objext conftest$ac_exeext
22684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22685 (eval $ac_link) 2>&5
22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); } &&
22689 { ac_try='test -s conftest$ac_exeext'
22690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22691 (eval $ac_try) 2>&5
22693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); }; }; then
22695 ac_cv_func_strupr=yes
22697 echo "$as_me: failed program was:" >&5
22698 cat conftest.$ac_ext >&5
22699 ac_cv_func_strupr=no
22701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22703 echo "$as_me:$LINENO: result: $ac_cv_func_strupr" >&5
22704 echo "${ECHO_T}$ac_cv_func_strupr" >&6
22705 if test $ac_cv_func_strupr = yes; then
22707 cat >>confdefs.h <<_ACEOF
22708 #define HAVE_STRUPR 1
22712 LIBOBJS="$LIBOBJS strupr.$ac_objext"
22714 echo "$as_me:$LINENO: checking for swab" >&5
22715 echo $ECHO_N "checking for swab... $ECHO_C" >&6
22716 if test "${ac_cv_func_swab+set}" = set; then
22717 echo $ECHO_N "(cached) $ECHO_C" >&6
22719 cat >conftest.$ac_ext <<_ACEOF
22720 #line $LINENO "configure"
22721 #include "confdefs.h"
22722 /* System header to define __stub macros and hopefully few prototypes,
22723 which can conflict with char swab (); below. */
22724 #include <assert.h>
22725 /* Override any gcc2 internal prototype to avoid an error. */
22729 /* We use char because int might match the return type of a gcc2
22730 builtin and then its argument prototype would still apply. */
22734 #ifdef F77_DUMMY_MAIN
22735 # ifdef __cplusplus
22738 int F77_DUMMY_MAIN() { return 1; }
22743 /* The GNU C library defines this for functions which it implements
22744 to always fail with ENOSYS. Some functions are actually named
22745 something starting with __ and the normal name is an alias. */
22746 #if defined (__stub_swab) || defined (__stub___swab)
22756 rm -f conftest.$ac_objext conftest$ac_exeext
22757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22758 (eval $ac_link) 2>&5
22760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761 (exit $ac_status); } &&
22762 { ac_try='test -s conftest$ac_exeext'
22763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22764 (eval $ac_try) 2>&5
22766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22767 (exit $ac_status); }; }; then
22768 ac_cv_func_swab=yes
22770 echo "$as_me: failed program was:" >&5
22771 cat conftest.$ac_ext >&5
22774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22776 echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
22777 echo "${ECHO_T}$ac_cv_func_swab" >&6
22778 if test $ac_cv_func_swab = yes; then
22780 cat >>confdefs.h <<_ACEOF
22781 #define HAVE_SWAB 1
22785 LIBOBJS="$LIBOBJS swab.$ac_objext"
22787 echo "$as_me:$LINENO: checking for unsetenv" >&5
22788 echo $ECHO_N "checking for unsetenv... $ECHO_C" >&6
22789 if test "${ac_cv_func_unsetenv+set}" = set; then
22790 echo $ECHO_N "(cached) $ECHO_C" >&6
22792 cat >conftest.$ac_ext <<_ACEOF
22793 #line $LINENO "configure"
22794 #include "confdefs.h"
22795 /* System header to define __stub macros and hopefully few prototypes,
22796 which can conflict with char unsetenv (); below. */
22797 #include <assert.h>
22798 /* Override any gcc2 internal prototype to avoid an error. */
22802 /* We use char because int might match the return type of a gcc2
22803 builtin and then its argument prototype would still apply. */
22807 #ifdef F77_DUMMY_MAIN
22808 # ifdef __cplusplus
22811 int F77_DUMMY_MAIN() { return 1; }
22816 /* The GNU C library defines this for functions which it implements
22817 to always fail with ENOSYS. Some functions are actually named
22818 something starting with __ and the normal name is an alias. */
22819 #if defined (__stub_unsetenv) || defined (__stub___unsetenv)
22829 rm -f conftest.$ac_objext conftest$ac_exeext
22830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22831 (eval $ac_link) 2>&5
22833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834 (exit $ac_status); } &&
22835 { ac_try='test -s conftest$ac_exeext'
22836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22837 (eval $ac_try) 2>&5
22839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840 (exit $ac_status); }; }; then
22841 ac_cv_func_unsetenv=yes
22843 echo "$as_me: failed program was:" >&5
22844 cat conftest.$ac_ext >&5
22845 ac_cv_func_unsetenv=no
22847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22849 echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv" >&5
22850 echo "${ECHO_T}$ac_cv_func_unsetenv" >&6
22851 if test $ac_cv_func_unsetenv = yes; then
22853 cat >>confdefs.h <<_ACEOF
22854 #define HAVE_UNSETENV 1
22858 LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
22860 echo "$as_me:$LINENO: checking for verr" >&5
22861 echo $ECHO_N "checking for verr... $ECHO_C" >&6
22862 if test "${ac_cv_func_verr+set}" = set; then
22863 echo $ECHO_N "(cached) $ECHO_C" >&6
22865 cat >conftest.$ac_ext <<_ACEOF
22866 #line $LINENO "configure"
22867 #include "confdefs.h"
22868 /* System header to define __stub macros and hopefully few prototypes,
22869 which can conflict with char verr (); below. */
22870 #include <assert.h>
22871 /* Override any gcc2 internal prototype to avoid an error. */
22875 /* We use char because int might match the return type of a gcc2
22876 builtin and then its argument prototype would still apply. */
22880 #ifdef F77_DUMMY_MAIN
22881 # ifdef __cplusplus
22884 int F77_DUMMY_MAIN() { return 1; }
22889 /* The GNU C library defines this for functions which it implements
22890 to always fail with ENOSYS. Some functions are actually named
22891 something starting with __ and the normal name is an alias. */
22892 #if defined (__stub_verr) || defined (__stub___verr)
22902 rm -f conftest.$ac_objext conftest$ac_exeext
22903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22904 (eval $ac_link) 2>&5
22906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907 (exit $ac_status); } &&
22908 { ac_try='test -s conftest$ac_exeext'
22909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22910 (eval $ac_try) 2>&5
22912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913 (exit $ac_status); }; }; then
22914 ac_cv_func_verr=yes
22916 echo "$as_me: failed program was:" >&5
22917 cat conftest.$ac_ext >&5
22920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22922 echo "$as_me:$LINENO: result: $ac_cv_func_verr" >&5
22923 echo "${ECHO_T}$ac_cv_func_verr" >&6
22924 if test $ac_cv_func_verr = yes; then
22926 cat >>confdefs.h <<_ACEOF
22927 #define HAVE_VERR 1
22931 LIBOBJS="$LIBOBJS verr.$ac_objext"
22933 echo "$as_me:$LINENO: checking for verrx" >&5
22934 echo $ECHO_N "checking for verrx... $ECHO_C" >&6
22935 if test "${ac_cv_func_verrx+set}" = set; then
22936 echo $ECHO_N "(cached) $ECHO_C" >&6
22938 cat >conftest.$ac_ext <<_ACEOF
22939 #line $LINENO "configure"
22940 #include "confdefs.h"
22941 /* System header to define __stub macros and hopefully few prototypes,
22942 which can conflict with char verrx (); below. */
22943 #include <assert.h>
22944 /* Override any gcc2 internal prototype to avoid an error. */
22948 /* We use char because int might match the return type of a gcc2
22949 builtin and then its argument prototype would still apply. */
22953 #ifdef F77_DUMMY_MAIN
22954 # ifdef __cplusplus
22957 int F77_DUMMY_MAIN() { return 1; }
22962 /* The GNU C library defines this for functions which it implements
22963 to always fail with ENOSYS. Some functions are actually named
22964 something starting with __ and the normal name is an alias. */
22965 #if defined (__stub_verrx) || defined (__stub___verrx)
22975 rm -f conftest.$ac_objext conftest$ac_exeext
22976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22977 (eval $ac_link) 2>&5
22979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980 (exit $ac_status); } &&
22981 { ac_try='test -s conftest$ac_exeext'
22982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22983 (eval $ac_try) 2>&5
22985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986 (exit $ac_status); }; }; then
22987 ac_cv_func_verrx=yes
22989 echo "$as_me: failed program was:" >&5
22990 cat conftest.$ac_ext >&5
22991 ac_cv_func_verrx=no
22993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22995 echo "$as_me:$LINENO: result: $ac_cv_func_verrx" >&5
22996 echo "${ECHO_T}$ac_cv_func_verrx" >&6
22997 if test $ac_cv_func_verrx = yes; then
22999 cat >>confdefs.h <<_ACEOF
23000 #define HAVE_VERRX 1
23004 LIBOBJS="$LIBOBJS verrx.$ac_objext"
23006 echo "$as_me:$LINENO: checking for vsyslog" >&5
23007 echo $ECHO_N "checking for vsyslog... $ECHO_C" >&6
23008 if test "${ac_cv_func_vsyslog+set}" = set; then
23009 echo $ECHO_N "(cached) $ECHO_C" >&6
23011 cat >conftest.$ac_ext <<_ACEOF
23012 #line $LINENO "configure"
23013 #include "confdefs.h"
23014 /* System header to define __stub macros and hopefully few prototypes,
23015 which can conflict with char vsyslog (); below. */
23016 #include <assert.h>
23017 /* Override any gcc2 internal prototype to avoid an error. */
23021 /* We use char because int might match the return type of a gcc2
23022 builtin and then its argument prototype would still apply. */
23026 #ifdef F77_DUMMY_MAIN
23027 # ifdef __cplusplus
23030 int F77_DUMMY_MAIN() { return 1; }
23035 /* The GNU C library defines this for functions which it implements
23036 to always fail with ENOSYS. Some functions are actually named
23037 something starting with __ and the normal name is an alias. */
23038 #if defined (__stub_vsyslog) || defined (__stub___vsyslog)
23048 rm -f conftest.$ac_objext conftest$ac_exeext
23049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23050 (eval $ac_link) 2>&5
23052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053 (exit $ac_status); } &&
23054 { ac_try='test -s conftest$ac_exeext'
23055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23056 (eval $ac_try) 2>&5
23058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059 (exit $ac_status); }; }; then
23060 ac_cv_func_vsyslog=yes
23062 echo "$as_me: failed program was:" >&5
23063 cat conftest.$ac_ext >&5
23064 ac_cv_func_vsyslog=no
23066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23068 echo "$as_me:$LINENO: result: $ac_cv_func_vsyslog" >&5
23069 echo "${ECHO_T}$ac_cv_func_vsyslog" >&6
23070 if test $ac_cv_func_vsyslog = yes; then
23072 cat >>confdefs.h <<_ACEOF
23073 #define HAVE_VSYSLOG 1
23077 LIBOBJS="$LIBOBJS vsyslog.$ac_objext"
23079 echo "$as_me:$LINENO: checking for vwarn" >&5
23080 echo $ECHO_N "checking for vwarn... $ECHO_C" >&6
23081 if test "${ac_cv_func_vwarn+set}" = set; then
23082 echo $ECHO_N "(cached) $ECHO_C" >&6
23084 cat >conftest.$ac_ext <<_ACEOF
23085 #line $LINENO "configure"
23086 #include "confdefs.h"
23087 /* System header to define __stub macros and hopefully few prototypes,
23088 which can conflict with char vwarn (); below. */
23089 #include <assert.h>
23090 /* Override any gcc2 internal prototype to avoid an error. */
23094 /* We use char because int might match the return type of a gcc2
23095 builtin and then its argument prototype would still apply. */
23099 #ifdef F77_DUMMY_MAIN
23100 # ifdef __cplusplus
23103 int F77_DUMMY_MAIN() { return 1; }
23108 /* The GNU C library defines this for functions which it implements
23109 to always fail with ENOSYS. Some functions are actually named
23110 something starting with __ and the normal name is an alias. */
23111 #if defined (__stub_vwarn) || defined (__stub___vwarn)
23121 rm -f conftest.$ac_objext conftest$ac_exeext
23122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23123 (eval $ac_link) 2>&5
23125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126 (exit $ac_status); } &&
23127 { ac_try='test -s conftest$ac_exeext'
23128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23129 (eval $ac_try) 2>&5
23131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132 (exit $ac_status); }; }; then
23133 ac_cv_func_vwarn=yes
23135 echo "$as_me: failed program was:" >&5
23136 cat conftest.$ac_ext >&5
23137 ac_cv_func_vwarn=no
23139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23141 echo "$as_me:$LINENO: result: $ac_cv_func_vwarn" >&5
23142 echo "${ECHO_T}$ac_cv_func_vwarn" >&6
23143 if test $ac_cv_func_vwarn = yes; then
23145 cat >>confdefs.h <<_ACEOF
23146 #define HAVE_VWARN 1
23150 LIBOBJS="$LIBOBJS vwarn.$ac_objext"
23152 echo "$as_me:$LINENO: checking for vwarnx" >&5
23153 echo $ECHO_N "checking for vwarnx... $ECHO_C" >&6
23154 if test "${ac_cv_func_vwarnx+set}" = set; then
23155 echo $ECHO_N "(cached) $ECHO_C" >&6
23157 cat >conftest.$ac_ext <<_ACEOF
23158 #line $LINENO "configure"
23159 #include "confdefs.h"
23160 /* System header to define __stub macros and hopefully few prototypes,
23161 which can conflict with char vwarnx (); below. */
23162 #include <assert.h>
23163 /* Override any gcc2 internal prototype to avoid an error. */
23167 /* We use char because int might match the return type of a gcc2
23168 builtin and then its argument prototype would still apply. */
23172 #ifdef F77_DUMMY_MAIN
23173 # ifdef __cplusplus
23176 int F77_DUMMY_MAIN() { return 1; }
23181 /* The GNU C library defines this for functions which it implements
23182 to always fail with ENOSYS. Some functions are actually named
23183 something starting with __ and the normal name is an alias. */
23184 #if defined (__stub_vwarnx) || defined (__stub___vwarnx)
23194 rm -f conftest.$ac_objext conftest$ac_exeext
23195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23196 (eval $ac_link) 2>&5
23198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199 (exit $ac_status); } &&
23200 { ac_try='test -s conftest$ac_exeext'
23201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23202 (eval $ac_try) 2>&5
23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 (exit $ac_status); }; }; then
23206 ac_cv_func_vwarnx=yes
23208 echo "$as_me: failed program was:" >&5
23209 cat conftest.$ac_ext >&5
23210 ac_cv_func_vwarnx=no
23212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23214 echo "$as_me:$LINENO: result: $ac_cv_func_vwarnx" >&5
23215 echo "${ECHO_T}$ac_cv_func_vwarnx" >&6
23216 if test $ac_cv_func_vwarnx = yes; then
23218 cat >>confdefs.h <<_ACEOF
23219 #define HAVE_VWARNX 1
23223 LIBOBJS="$LIBOBJS vwarnx.$ac_objext"
23225 echo "$as_me:$LINENO: checking for warn" >&5
23226 echo $ECHO_N "checking for warn... $ECHO_C" >&6
23227 if test "${ac_cv_func_warn+set}" = set; then
23228 echo $ECHO_N "(cached) $ECHO_C" >&6
23230 cat >conftest.$ac_ext <<_ACEOF
23231 #line $LINENO "configure"
23232 #include "confdefs.h"
23233 /* System header to define __stub macros and hopefully few prototypes,
23234 which can conflict with char warn (); below. */
23235 #include <assert.h>
23236 /* Override any gcc2 internal prototype to avoid an error. */
23240 /* We use char because int might match the return type of a gcc2
23241 builtin and then its argument prototype would still apply. */
23245 #ifdef F77_DUMMY_MAIN
23246 # ifdef __cplusplus
23249 int F77_DUMMY_MAIN() { return 1; }
23254 /* The GNU C library defines this for functions which it implements
23255 to always fail with ENOSYS. Some functions are actually named
23256 something starting with __ and the normal name is an alias. */
23257 #if defined (__stub_warn) || defined (__stub___warn)
23267 rm -f conftest.$ac_objext conftest$ac_exeext
23268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23269 (eval $ac_link) 2>&5
23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); } &&
23273 { ac_try='test -s conftest$ac_exeext'
23274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23275 (eval $ac_try) 2>&5
23277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 (exit $ac_status); }; }; then
23279 ac_cv_func_warn=yes
23281 echo "$as_me: failed program was:" >&5
23282 cat conftest.$ac_ext >&5
23285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23287 echo "$as_me:$LINENO: result: $ac_cv_func_warn" >&5
23288 echo "${ECHO_T}$ac_cv_func_warn" >&6
23289 if test $ac_cv_func_warn = yes; then
23291 cat >>confdefs.h <<_ACEOF
23292 #define HAVE_WARN 1
23296 LIBOBJS="$LIBOBJS warn.$ac_objext"
23298 echo "$as_me:$LINENO: checking for warnx" >&5
23299 echo $ECHO_N "checking for warnx... $ECHO_C" >&6
23300 if test "${ac_cv_func_warnx+set}" = set; then
23301 echo $ECHO_N "(cached) $ECHO_C" >&6
23303 cat >conftest.$ac_ext <<_ACEOF
23304 #line $LINENO "configure"
23305 #include "confdefs.h"
23306 /* System header to define __stub macros and hopefully few prototypes,
23307 which can conflict with char warnx (); below. */
23308 #include <assert.h>
23309 /* Override any gcc2 internal prototype to avoid an error. */
23313 /* We use char because int might match the return type of a gcc2
23314 builtin and then its argument prototype would still apply. */
23318 #ifdef F77_DUMMY_MAIN
23319 # ifdef __cplusplus
23322 int F77_DUMMY_MAIN() { return 1; }
23327 /* The GNU C library defines this for functions which it implements
23328 to always fail with ENOSYS. Some functions are actually named
23329 something starting with __ and the normal name is an alias. */
23330 #if defined (__stub_warnx) || defined (__stub___warnx)
23340 rm -f conftest.$ac_objext conftest$ac_exeext
23341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23342 (eval $ac_link) 2>&5
23344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345 (exit $ac_status); } &&
23346 { ac_try='test -s conftest$ac_exeext'
23347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23348 (eval $ac_try) 2>&5
23350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351 (exit $ac_status); }; }; then
23352 ac_cv_func_warnx=yes
23354 echo "$as_me: failed program was:" >&5
23355 cat conftest.$ac_ext >&5
23356 ac_cv_func_warnx=no
23358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23360 echo "$as_me:$LINENO: result: $ac_cv_func_warnx" >&5
23361 echo "${ECHO_T}$ac_cv_func_warnx" >&6
23362 if test $ac_cv_func_warnx = yes; then
23364 cat >>confdefs.h <<_ACEOF
23365 #define HAVE_WARNX 1
23369 LIBOBJS="$LIBOBJS warnx.$ac_objext"
23371 echo "$as_me:$LINENO: checking for writev" >&5
23372 echo $ECHO_N "checking for writev... $ECHO_C" >&6
23373 if test "${ac_cv_func_writev+set}" = set; then
23374 echo $ECHO_N "(cached) $ECHO_C" >&6
23376 cat >conftest.$ac_ext <<_ACEOF
23377 #line $LINENO "configure"
23378 #include "confdefs.h"
23379 /* System header to define __stub macros and hopefully few prototypes,
23380 which can conflict with char writev (); below. */
23381 #include <assert.h>
23382 /* Override any gcc2 internal prototype to avoid an error. */
23386 /* We use char because int might match the return type of a gcc2
23387 builtin and then its argument prototype would still apply. */
23391 #ifdef F77_DUMMY_MAIN
23392 # ifdef __cplusplus
23395 int F77_DUMMY_MAIN() { return 1; }
23400 /* The GNU C library defines this for functions which it implements
23401 to always fail with ENOSYS. Some functions are actually named
23402 something starting with __ and the normal name is an alias. */
23403 #if defined (__stub_writev) || defined (__stub___writev)
23413 rm -f conftest.$ac_objext conftest$ac_exeext
23414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23415 (eval $ac_link) 2>&5
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); } &&
23419 { ac_try='test -s conftest$ac_exeext'
23420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23421 (eval $ac_try) 2>&5
23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); }; }; then
23425 ac_cv_func_writev=yes
23427 echo "$as_me: failed program was:" >&5
23428 cat conftest.$ac_ext >&5
23429 ac_cv_func_writev=no
23431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23433 echo "$as_me:$LINENO: result: $ac_cv_func_writev" >&5
23434 echo "${ECHO_T}$ac_cv_func_writev" >&6
23435 if test $ac_cv_func_writev = yes; then
23437 cat >>confdefs.h <<_ACEOF
23438 #define HAVE_WRITEV 1
23442 LIBOBJS="$LIBOBJS writev.$ac_objext"
23447 if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then
23448 echo "$as_me:$LINENO: checking if strndup needs a prototype" >&5
23449 echo $ECHO_N "checking if strndup needs a prototype... $ECHO_C" >&6
23450 if test "${ac_cv_func_strndup_noproto+set}" = set; then
23451 echo $ECHO_N "(cached) $ECHO_C" >&6
23453 cat >conftest.$ac_ext <<_ACEOF
23454 #line $LINENO "configure"
23455 #include "confdefs.h"
23456 #include <string.h>
23457 #ifdef F77_DUMMY_MAIN
23458 # ifdef __cplusplus
23461 int F77_DUMMY_MAIN() { return 1; }
23466 struct foo { int foo; } xx;
23467 extern int strndup (struct foo*);
23474 rm -f conftest.$ac_objext
23475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23476 (eval $ac_compile) 2>&5
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); } &&
23480 { ac_try='test -s conftest.$ac_objext'
23481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23482 (eval $ac_try) 2>&5
23484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485 (exit $ac_status); }; }; then
23486 eval "ac_cv_func_strndup_noproto=yes"
23488 echo "$as_me: failed program was:" >&5
23489 cat conftest.$ac_ext >&5
23490 eval "ac_cv_func_strndup_noproto=no"
23492 rm -f conftest.$ac_objext conftest.$ac_ext
23494 echo "$as_me:$LINENO: result: $ac_cv_func_strndup_noproto" >&5
23495 echo "${ECHO_T}$ac_cv_func_strndup_noproto" >&6
23496 if test "$ac_cv_func_strndup_noproto" = yes; then
23498 cat >>confdefs.h <<\_ACEOF
23499 #define NEED_STRNDUP_PROTO 1
23505 if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
23506 echo "$as_me:$LINENO: checking if strsep needs a prototype" >&5
23507 echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6
23508 if test "${ac_cv_func_strsep_noproto+set}" = set; then
23509 echo $ECHO_N "(cached) $ECHO_C" >&6
23511 cat >conftest.$ac_ext <<_ACEOF
23512 #line $LINENO "configure"
23513 #include "confdefs.h"
23514 #include <string.h>
23515 #ifdef F77_DUMMY_MAIN
23516 # ifdef __cplusplus
23519 int F77_DUMMY_MAIN() { return 1; }
23524 struct foo { int foo; } xx;
23525 extern int strsep (struct foo*);
23532 rm -f conftest.$ac_objext
23533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23534 (eval $ac_compile) 2>&5
23536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537 (exit $ac_status); } &&
23538 { ac_try='test -s conftest.$ac_objext'
23539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23540 (eval $ac_try) 2>&5
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); }; }; then
23544 eval "ac_cv_func_strsep_noproto=yes"
23546 echo "$as_me: failed program was:" >&5
23547 cat conftest.$ac_ext >&5
23548 eval "ac_cv_func_strsep_noproto=no"
23550 rm -f conftest.$ac_objext conftest.$ac_ext
23552 echo "$as_me:$LINENO: result: $ac_cv_func_strsep_noproto" >&5
23553 echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6
23554 if test "$ac_cv_func_strsep_noproto" = yes; then
23556 cat >>confdefs.h <<\_ACEOF
23557 #define NEED_STRSEP_PROTO 1
23563 if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
23564 echo "$as_me:$LINENO: checking if strtok_r needs a prototype" >&5
23565 echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6
23566 if test "${ac_cv_func_strtok_r_noproto+set}" = set; then
23567 echo $ECHO_N "(cached) $ECHO_C" >&6
23569 cat >conftest.$ac_ext <<_ACEOF
23570 #line $LINENO "configure"
23571 #include "confdefs.h"
23572 #include <string.h>
23573 #ifdef F77_DUMMY_MAIN
23574 # ifdef __cplusplus
23577 int F77_DUMMY_MAIN() { return 1; }
23582 struct foo { int foo; } xx;
23583 extern int strtok_r (struct foo*);
23590 rm -f conftest.$ac_objext
23591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23592 (eval $ac_compile) 2>&5
23594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595 (exit $ac_status); } &&
23596 { ac_try='test -s conftest.$ac_objext'
23597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23598 (eval $ac_try) 2>&5
23600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601 (exit $ac_status); }; }; then
23602 eval "ac_cv_func_strtok_r_noproto=yes"
23604 echo "$as_me: failed program was:" >&5
23605 cat conftest.$ac_ext >&5
23606 eval "ac_cv_func_strtok_r_noproto=no"
23608 rm -f conftest.$ac_objext conftest.$ac_ext
23610 echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r_noproto" >&5
23611 echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6
23612 if test "$ac_cv_func_strtok_r_noproto" = yes; then
23614 cat >>confdefs.h <<\_ACEOF
23615 #define NEED_STRTOK_R_PROTO 1
23623 if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then
23624 echo "$as_me:$LINENO: checking if strsvis needs a prototype" >&5
23625 echo $ECHO_N "checking if strsvis needs a prototype... $ECHO_C" >&6
23626 if test "${ac_cv_func_strsvis_noproto+set}" = set; then
23627 echo $ECHO_N "(cached) $ECHO_C" >&6
23629 cat >conftest.$ac_ext <<_ACEOF
23630 #line $LINENO "configure"
23631 #include "confdefs.h"
23635 #ifdef F77_DUMMY_MAIN
23636 # ifdef __cplusplus
23639 int F77_DUMMY_MAIN() { return 1; }
23644 struct foo { int foo; } xx;
23645 extern int strsvis (struct foo*);
23652 rm -f conftest.$ac_objext
23653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23654 (eval $ac_compile) 2>&5
23656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657 (exit $ac_status); } &&
23658 { ac_try='test -s conftest.$ac_objext'
23659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23660 (eval $ac_try) 2>&5
23662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663 (exit $ac_status); }; }; then
23664 eval "ac_cv_func_strsvis_noproto=yes"
23666 echo "$as_me: failed program was:" >&5
23667 cat conftest.$ac_ext >&5
23668 eval "ac_cv_func_strsvis_noproto=no"
23670 rm -f conftest.$ac_objext conftest.$ac_ext
23672 echo "$as_me:$LINENO: result: $ac_cv_func_strsvis_noproto" >&5
23673 echo "${ECHO_T}$ac_cv_func_strsvis_noproto" >&6
23674 if test "$ac_cv_func_strsvis_noproto" = yes; then
23676 cat >>confdefs.h <<\_ACEOF
23677 #define NEED_STRSVIS_PROTO 1
23683 if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then
23684 echo "$as_me:$LINENO: checking if strunvis needs a prototype" >&5
23685 echo $ECHO_N "checking if strunvis needs a prototype... $ECHO_C" >&6
23686 if test "${ac_cv_func_strunvis_noproto+set}" = set; then
23687 echo $ECHO_N "(cached) $ECHO_C" >&6
23689 cat >conftest.$ac_ext <<_ACEOF
23690 #line $LINENO "configure"
23691 #include "confdefs.h"
23695 #ifdef F77_DUMMY_MAIN
23696 # ifdef __cplusplus
23699 int F77_DUMMY_MAIN() { return 1; }
23704 struct foo { int foo; } xx;
23705 extern int strunvis (struct foo*);
23712 rm -f conftest.$ac_objext
23713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23714 (eval $ac_compile) 2>&5
23716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717 (exit $ac_status); } &&
23718 { ac_try='test -s conftest.$ac_objext'
23719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23720 (eval $ac_try) 2>&5
23722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723 (exit $ac_status); }; }; then
23724 eval "ac_cv_func_strunvis_noproto=yes"
23726 echo "$as_me: failed program was:" >&5
23727 cat conftest.$ac_ext >&5
23728 eval "ac_cv_func_strunvis_noproto=no"
23730 rm -f conftest.$ac_objext conftest.$ac_ext
23732 echo "$as_me:$LINENO: result: $ac_cv_func_strunvis_noproto" >&5
23733 echo "${ECHO_T}$ac_cv_func_strunvis_noproto" >&6
23734 if test "$ac_cv_func_strunvis_noproto" = yes; then
23736 cat >>confdefs.h <<\_ACEOF
23737 #define NEED_STRUNVIS_PROTO 1
23743 if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then
23744 echo "$as_me:$LINENO: checking if strvis needs a prototype" >&5
23745 echo $ECHO_N "checking if strvis needs a prototype... $ECHO_C" >&6
23746 if test "${ac_cv_func_strvis_noproto+set}" = set; then
23747 echo $ECHO_N "(cached) $ECHO_C" >&6
23749 cat >conftest.$ac_ext <<_ACEOF
23750 #line $LINENO "configure"
23751 #include "confdefs.h"
23755 #ifdef F77_DUMMY_MAIN
23756 # ifdef __cplusplus
23759 int F77_DUMMY_MAIN() { return 1; }
23764 struct foo { int foo; } xx;
23765 extern int strvis (struct foo*);
23772 rm -f conftest.$ac_objext
23773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23774 (eval $ac_compile) 2>&5
23776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777 (exit $ac_status); } &&
23778 { ac_try='test -s conftest.$ac_objext'
23779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23780 (eval $ac_try) 2>&5
23782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783 (exit $ac_status); }; }; then
23784 eval "ac_cv_func_strvis_noproto=yes"
23786 echo "$as_me: failed program was:" >&5
23787 cat conftest.$ac_ext >&5
23788 eval "ac_cv_func_strvis_noproto=no"
23790 rm -f conftest.$ac_objext conftest.$ac_ext
23792 echo "$as_me:$LINENO: result: $ac_cv_func_strvis_noproto" >&5
23793 echo "${ECHO_T}$ac_cv_func_strvis_noproto" >&6
23794 if test "$ac_cv_func_strvis_noproto" = yes; then
23796 cat >>confdefs.h <<\_ACEOF
23797 #define NEED_STRVIS_PROTO 1
23803 if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then
23804 echo "$as_me:$LINENO: checking if strvisx needs a prototype" >&5
23805 echo $ECHO_N "checking if strvisx needs a prototype... $ECHO_C" >&6
23806 if test "${ac_cv_func_strvisx_noproto+set}" = set; then
23807 echo $ECHO_N "(cached) $ECHO_C" >&6
23809 cat >conftest.$ac_ext <<_ACEOF
23810 #line $LINENO "configure"
23811 #include "confdefs.h"
23815 #ifdef F77_DUMMY_MAIN
23816 # ifdef __cplusplus
23819 int F77_DUMMY_MAIN() { return 1; }
23824 struct foo { int foo; } xx;
23825 extern int strvisx (struct foo*);
23832 rm -f conftest.$ac_objext
23833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23834 (eval $ac_compile) 2>&5
23836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23837 (exit $ac_status); } &&
23838 { ac_try='test -s conftest.$ac_objext'
23839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23840 (eval $ac_try) 2>&5
23842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843 (exit $ac_status); }; }; then
23844 eval "ac_cv_func_strvisx_noproto=yes"
23846 echo "$as_me: failed program was:" >&5
23847 cat conftest.$ac_ext >&5
23848 eval "ac_cv_func_strvisx_noproto=no"
23850 rm -f conftest.$ac_objext conftest.$ac_ext
23852 echo "$as_me:$LINENO: result: $ac_cv_func_strvisx_noproto" >&5
23853 echo "${ECHO_T}$ac_cv_func_strvisx_noproto" >&6
23854 if test "$ac_cv_func_strvisx_noproto" = yes; then
23856 cat >>confdefs.h <<\_ACEOF
23857 #define NEED_STRVISX_PROTO 1
23863 if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then
23864 echo "$as_me:$LINENO: checking if svis needs a prototype" >&5
23865 echo $ECHO_N "checking if svis needs a prototype... $ECHO_C" >&6
23866 if test "${ac_cv_func_svis_noproto+set}" = set; then
23867 echo $ECHO_N "(cached) $ECHO_C" >&6
23869 cat >conftest.$ac_ext <<_ACEOF
23870 #line $LINENO "configure"
23871 #include "confdefs.h"
23875 #ifdef F77_DUMMY_MAIN
23876 # ifdef __cplusplus
23879 int F77_DUMMY_MAIN() { return 1; }
23884 struct foo { int foo; } xx;
23885 extern int svis (struct foo*);
23892 rm -f conftest.$ac_objext
23893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23894 (eval $ac_compile) 2>&5
23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897 (exit $ac_status); } &&
23898 { ac_try='test -s conftest.$ac_objext'
23899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23900 (eval $ac_try) 2>&5
23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903 (exit $ac_status); }; }; then
23904 eval "ac_cv_func_svis_noproto=yes"
23906 echo "$as_me: failed program was:" >&5
23907 cat conftest.$ac_ext >&5
23908 eval "ac_cv_func_svis_noproto=no"
23910 rm -f conftest.$ac_objext conftest.$ac_ext
23912 echo "$as_me:$LINENO: result: $ac_cv_func_svis_noproto" >&5
23913 echo "${ECHO_T}$ac_cv_func_svis_noproto" >&6
23914 if test "$ac_cv_func_svis_noproto" = yes; then
23916 cat >>confdefs.h <<\_ACEOF
23917 #define NEED_SVIS_PROTO 1
23923 if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then
23924 echo "$as_me:$LINENO: checking if unvis needs a prototype" >&5
23925 echo $ECHO_N "checking if unvis needs a prototype... $ECHO_C" >&6
23926 if test "${ac_cv_func_unvis_noproto+set}" = set; then
23927 echo $ECHO_N "(cached) $ECHO_C" >&6
23929 cat >conftest.$ac_ext <<_ACEOF
23930 #line $LINENO "configure"
23931 #include "confdefs.h"
23935 #ifdef F77_DUMMY_MAIN
23936 # ifdef __cplusplus
23939 int F77_DUMMY_MAIN() { return 1; }
23944 struct foo { int foo; } xx;
23945 extern int unvis (struct foo*);
23952 rm -f conftest.$ac_objext
23953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23954 (eval $ac_compile) 2>&5
23956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23957 (exit $ac_status); } &&
23958 { ac_try='test -s conftest.$ac_objext'
23959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23960 (eval $ac_try) 2>&5
23962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963 (exit $ac_status); }; }; then
23964 eval "ac_cv_func_unvis_noproto=yes"
23966 echo "$as_me: failed program was:" >&5
23967 cat conftest.$ac_ext >&5
23968 eval "ac_cv_func_unvis_noproto=no"
23970 rm -f conftest.$ac_objext conftest.$ac_ext
23972 echo "$as_me:$LINENO: result: $ac_cv_func_unvis_noproto" >&5
23973 echo "${ECHO_T}$ac_cv_func_unvis_noproto" >&6
23974 if test "$ac_cv_func_unvis_noproto" = yes; then
23976 cat >>confdefs.h <<\_ACEOF
23977 #define NEED_UNVIS_PROTO 1
23983 if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then
23984 echo "$as_me:$LINENO: checking if vis needs a prototype" >&5
23985 echo $ECHO_N "checking if vis needs a prototype... $ECHO_C" >&6
23986 if test "${ac_cv_func_vis_noproto+set}" = set; then
23987 echo $ECHO_N "(cached) $ECHO_C" >&6
23989 cat >conftest.$ac_ext <<_ACEOF
23990 #line $LINENO "configure"
23991 #include "confdefs.h"
23995 #ifdef F77_DUMMY_MAIN
23996 # ifdef __cplusplus
23999 int F77_DUMMY_MAIN() { return 1; }
24004 struct foo { int foo; } xx;
24005 extern int vis (struct foo*);
24012 rm -f conftest.$ac_objext
24013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24014 (eval $ac_compile) 2>&5
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); } &&
24018 { ac_try='test -s conftest.$ac_objext'
24019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24020 (eval $ac_try) 2>&5
24022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023 (exit $ac_status); }; }; then
24024 eval "ac_cv_func_vis_noproto=yes"
24026 echo "$as_me: failed program was:" >&5
24027 cat conftest.$ac_ext >&5
24028 eval "ac_cv_func_vis_noproto=no"
24030 rm -f conftest.$ac_objext conftest.$ac_ext
24032 echo "$as_me:$LINENO: result: $ac_cv_func_vis_noproto" >&5
24033 echo "${ECHO_T}$ac_cv_func_vis_noproto" >&6
24034 if test "$ac_cv_func_vis_noproto" = yes; then
24036 cat >>confdefs.h <<\_ACEOF
24037 #define NEED_VIS_PROTO 1
24044 echo "$as_me:$LINENO: checking for inet_aton" >&5
24045 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
24046 if test "${ac_cv_func_inet_aton+set}" = set; then
24047 echo $ECHO_N "(cached) $ECHO_C" >&6
24049 cat >conftest.$ac_ext <<_ACEOF
24050 #line $LINENO "configure"
24051 #include "confdefs.h"
24052 #ifdef HAVE_SYS_TYPES_H
24053 #include <sys/types.h>
24055 #ifdef HAVE_SYS_SOCKET_H
24056 #include <sys/socket.h>
24058 #ifdef HAVE_NETINET_IN_H
24059 #include <netinet/in.h>
24061 #ifdef HAVE_ARPA_INET_H
24062 #include <arpa/inet.h>
24064 #ifdef F77_DUMMY_MAIN
24065 # ifdef __cplusplus
24068 int F77_DUMMY_MAIN() { return 1; }
24074 /* The GNU C library defines this for functions which it implements
24075 to always fail with ENOSYS. Some functions are actually named
24076 something starting with __ and the normal name is an alias. */
24077 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
24087 rm -f conftest.$ac_objext conftest$ac_exeext
24088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24089 (eval $ac_link) 2>&5
24091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092 (exit $ac_status); } &&
24093 { ac_try='test -s conftest$ac_exeext'
24094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24095 (eval $ac_try) 2>&5
24097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098 (exit $ac_status); }; }; then
24099 eval "ac_cv_func_inet_aton=yes"
24101 echo "$as_me: failed program was:" >&5
24102 cat conftest.$ac_ext >&5
24103 eval "ac_cv_func_inet_aton=no"
24105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24108 if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then
24110 cat >>confdefs.h <<_ACEOF
24111 #define HAVE_INET_ATON 1
24114 echo "$as_me:$LINENO: result: yes" >&5
24115 echo "${ECHO_T}yes" >&6
24117 echo "$as_me:$LINENO: result: no" >&5
24118 echo "${ECHO_T}no" >&6
24119 LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
24122 echo "$as_me:$LINENO: checking for inet_ntop" >&5
24123 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
24124 if test "${ac_cv_func_inet_ntop+set}" = set; then
24125 echo $ECHO_N "(cached) $ECHO_C" >&6
24127 cat >conftest.$ac_ext <<_ACEOF
24128 #line $LINENO "configure"
24129 #include "confdefs.h"
24130 #ifdef HAVE_SYS_TYPES_H
24131 #include <sys/types.h>
24133 #ifdef HAVE_SYS_SOCKET_H
24134 #include <sys/socket.h>
24136 #ifdef HAVE_NETINET_IN_H
24137 #include <netinet/in.h>
24139 #ifdef HAVE_ARPA_INET_H
24140 #include <arpa/inet.h>
24142 #ifdef F77_DUMMY_MAIN
24143 # ifdef __cplusplus
24146 int F77_DUMMY_MAIN() { return 1; }
24152 /* The GNU C library defines this for functions which it implements
24153 to always fail with ENOSYS. Some functions are actually named
24154 something starting with __ and the normal name is an alias. */
24155 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
24158 inet_ntop(0, 0, 0, 0)
24165 rm -f conftest.$ac_objext conftest$ac_exeext
24166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24167 (eval $ac_link) 2>&5
24169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170 (exit $ac_status); } &&
24171 { ac_try='test -s conftest$ac_exeext'
24172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24173 (eval $ac_try) 2>&5
24175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24176 (exit $ac_status); }; }; then
24177 eval "ac_cv_func_inet_ntop=yes"
24179 echo "$as_me: failed program was:" >&5
24180 cat conftest.$ac_ext >&5
24181 eval "ac_cv_func_inet_ntop=no"
24183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24186 if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then
24188 cat >>confdefs.h <<_ACEOF
24189 #define HAVE_INET_NTOP 1
24192 echo "$as_me:$LINENO: result: yes" >&5
24193 echo "${ECHO_T}yes" >&6
24195 echo "$as_me:$LINENO: result: no" >&5
24196 echo "${ECHO_T}no" >&6
24197 LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
24200 echo "$as_me:$LINENO: checking for inet_pton" >&5
24201 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
24202 if test "${ac_cv_func_inet_pton+set}" = set; then
24203 echo $ECHO_N "(cached) $ECHO_C" >&6
24205 cat >conftest.$ac_ext <<_ACEOF
24206 #line $LINENO "configure"
24207 #include "confdefs.h"
24208 #ifdef HAVE_SYS_TYPES_H
24209 #include <sys/types.h>
24211 #ifdef HAVE_SYS_SOCKET_H
24212 #include <sys/socket.h>
24214 #ifdef HAVE_NETINET_IN_H
24215 #include <netinet/in.h>
24217 #ifdef HAVE_ARPA_INET_H
24218 #include <arpa/inet.h>
24220 #ifdef F77_DUMMY_MAIN
24221 # ifdef __cplusplus
24224 int F77_DUMMY_MAIN() { return 1; }
24230 /* The GNU C library defines this for functions which it implements
24231 to always fail with ENOSYS. Some functions are actually named
24232 something starting with __ and the normal name is an alias. */
24233 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
24243 rm -f conftest.$ac_objext conftest$ac_exeext
24244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24245 (eval $ac_link) 2>&5
24247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248 (exit $ac_status); } &&
24249 { ac_try='test -s conftest$ac_exeext'
24250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24251 (eval $ac_try) 2>&5
24253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254 (exit $ac_status); }; }; then
24255 eval "ac_cv_func_inet_pton=yes"
24257 echo "$as_me: failed program was:" >&5
24258 cat conftest.$ac_ext >&5
24259 eval "ac_cv_func_inet_pton=no"
24261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24264 if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then
24266 cat >>confdefs.h <<_ACEOF
24267 #define HAVE_INET_PTON 1
24270 echo "$as_me:$LINENO: result: yes" >&5
24271 echo "${ECHO_T}yes" >&6
24273 echo "$as_me:$LINENO: result: no" >&5
24274 echo "${ECHO_T}no" >&6
24275 LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
24280 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
24281 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
24282 if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
24283 echo $ECHO_N "(cached) $ECHO_C" >&6
24286 cat >conftest.$ac_ext <<_ACEOF
24287 #line $LINENO "configure"
24288 #include "confdefs.h"
24289 #include <sys/types.h>
24290 #include <sys/socket.h>
24291 #ifdef F77_DUMMY_MAIN
24292 # ifdef __cplusplus
24295 int F77_DUMMY_MAIN() { return 1; }
24300 struct sockaddr x; x.sa_len;
24305 rm -f conftest.$ac_objext
24306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24307 (eval $ac_compile) 2>&5
24309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310 (exit $ac_status); } &&
24311 { ac_try='test -s conftest.$ac_objext'
24312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24313 (eval $ac_try) 2>&5
24315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24316 (exit $ac_status); }; }; then
24317 ac_cv_type_struct_sockaddr_sa_len=yes
24319 echo "$as_me: failed program was:" >&5
24320 cat conftest.$ac_ext >&5
24321 ac_cv_type_struct_sockaddr_sa_len=no
24323 rm -f conftest.$ac_objext conftest.$ac_ext
24325 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
24326 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6
24327 if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
24330 cat >>confdefs.h <<\_ACEOF
24331 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
24339 if test "$ac_cv_func_getnameinfo" = "yes"; then
24341 echo "$as_me:$LINENO: checking if getnameinfo is broken" >&5
24342 echo $ECHO_N "checking if getnameinfo is broken... $ECHO_C" >&6
24343 if test "${ac_cv_func_getnameinfo_broken+set}" = set; then
24344 echo $ECHO_N "(cached) $ECHO_C" >&6
24346 if test "$cross_compiling" = yes; then
24347 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
24348 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
24349 { (exit 1); exit 1; }; }
24351 cat >conftest.$ac_ext <<_ACEOF
24352 #line $LINENO "configure"
24353 #include "confdefs.h"
24355 #include <sys/types.h>
24356 #include <sys/socket.h>
24357 #include <netinet/in.h>
24361 main(int argc, char **argv)
24363 struct sockaddr_in sin;
24365 memset(&sin, 0, sizeof(sin));
24366 #ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
24367 sin.sin_len = sizeof(sin);
24369 sin.sin_family = AF_INET;
24370 sin.sin_addr.s_addr = 0xffffffff;
24372 return getnameinfo((struct sockaddr*)&sin, sizeof(sin), host, sizeof(host),
24377 rm -f conftest$ac_exeext
24378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24379 (eval $ac_link) 2>&5
24381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24384 (eval $ac_try) 2>&5
24386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24387 (exit $ac_status); }; }; then
24388 ac_cv_func_getnameinfo_broken=no
24390 echo "$as_me: program exited with status $ac_status" >&5
24391 echo "$as_me: failed program was:" >&5
24392 cat conftest.$ac_ext >&5
24393 ( exit $ac_status )
24394 ac_cv_func_getnameinfo_broken=yes
24396 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24399 echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo_broken" >&5
24400 echo "${ECHO_T}$ac_cv_func_getnameinfo_broken" >&6
24401 if test "$ac_cv_func_getnameinfo_broken" = yes; then
24402 LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
24406 if test "$ac_cv_func_getaddrinfo" = "yes"; then
24408 echo "$as_me:$LINENO: checking if getaddrinfo handles numeric services" >&5
24409 echo $ECHO_N "checking if getaddrinfo handles numeric services... $ECHO_C" >&6
24410 if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then
24411 echo $ECHO_N "(cached) $ECHO_C" >&6
24413 if test "$cross_compiling" = yes; then
24414 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
24415 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
24416 { (exit 1); exit 1; }; }
24418 cat >conftest.$ac_ext <<_ACEOF
24419 #line $LINENO "configure"
24420 #include "confdefs.h"
24422 #include <sys/types.h>
24423 #include <sys/socket.h>
24427 main(int argc, char **argv)
24429 struct addrinfo hints, *ai;
24430 memset(&hints, 0, sizeof(hints));
24431 hints.ai_flags = AI_PASSIVE;
24432 hints.ai_socktype = SOCK_STREAM;
24433 hints.ai_family = PF_UNSPEC;
24434 if(getaddrinfo(NULL, "17", &hints, &ai) != 0)
24440 rm -f conftest$ac_exeext
24441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24442 (eval $ac_link) 2>&5
24444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24447 (eval $ac_try) 2>&5
24449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450 (exit $ac_status); }; }; then
24451 ac_cv_func_getaddrinfo_numserv=yes
24453 echo "$as_me: program exited with status $ac_status" >&5
24454 echo "$as_me: failed program was:" >&5
24455 cat conftest.$ac_ext >&5
24456 ( exit $ac_status )
24457 ac_cv_func_getaddrinfo_numserv=no
24459 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24462 echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo_numserv" >&5
24463 echo "${ECHO_T}$ac_cv_func_getaddrinfo_numserv" >&6
24464 if test "$ac_cv_func_getaddrinfo_numserv" = no; then
24465 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
24466 LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
24471 if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
24472 echo "$as_me:$LINENO: checking if setenv needs a prototype" >&5
24473 echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6
24474 if test "${ac_cv_func_setenv_noproto+set}" = set; then
24475 echo $ECHO_N "(cached) $ECHO_C" >&6
24477 cat >conftest.$ac_ext <<_ACEOF
24478 #line $LINENO "configure"
24479 #include "confdefs.h"
24480 #include <stdlib.h>
24481 #ifdef F77_DUMMY_MAIN
24482 # ifdef __cplusplus
24485 int F77_DUMMY_MAIN() { return 1; }
24490 struct foo { int foo; } xx;
24491 extern int setenv (struct foo*);
24498 rm -f conftest.$ac_objext
24499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24500 (eval $ac_compile) 2>&5
24502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503 (exit $ac_status); } &&
24504 { ac_try='test -s conftest.$ac_objext'
24505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24506 (eval $ac_try) 2>&5
24508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509 (exit $ac_status); }; }; then
24510 eval "ac_cv_func_setenv_noproto=yes"
24512 echo "$as_me: failed program was:" >&5
24513 cat conftest.$ac_ext >&5
24514 eval "ac_cv_func_setenv_noproto=no"
24516 rm -f conftest.$ac_objext conftest.$ac_ext
24518 echo "$as_me:$LINENO: result: $ac_cv_func_setenv_noproto" >&5
24519 echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6
24520 if test "$ac_cv_func_setenv_noproto" = yes; then
24522 cat >>confdefs.h <<\_ACEOF
24523 #define NEED_SETENV_PROTO 1
24530 if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
24531 echo "$as_me:$LINENO: checking if unsetenv needs a prototype" >&5
24532 echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6
24533 if test "${ac_cv_func_unsetenv_noproto+set}" = set; then
24534 echo $ECHO_N "(cached) $ECHO_C" >&6
24536 cat >conftest.$ac_ext <<_ACEOF
24537 #line $LINENO "configure"
24538 #include "confdefs.h"
24539 #include <stdlib.h>
24540 #ifdef F77_DUMMY_MAIN
24541 # ifdef __cplusplus
24544 int F77_DUMMY_MAIN() { return 1; }
24549 struct foo { int foo; } xx;
24550 extern int unsetenv (struct foo*);
24557 rm -f conftest.$ac_objext
24558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24559 (eval $ac_compile) 2>&5
24561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562 (exit $ac_status); } &&
24563 { ac_try='test -s conftest.$ac_objext'
24564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24565 (eval $ac_try) 2>&5
24567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568 (exit $ac_status); }; }; then
24569 eval "ac_cv_func_unsetenv_noproto=yes"
24571 echo "$as_me: failed program was:" >&5
24572 cat conftest.$ac_ext >&5
24573 eval "ac_cv_func_unsetenv_noproto=no"
24575 rm -f conftest.$ac_objext conftest.$ac_ext
24577 echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv_noproto" >&5
24578 echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6
24579 if test "$ac_cv_func_unsetenv_noproto" = yes; then
24581 cat >>confdefs.h <<\_ACEOF
24582 #define NEED_UNSETENV_PROTO 1
24589 if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
24590 echo "$as_me:$LINENO: checking if gethostname needs a prototype" >&5
24591 echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6
24592 if test "${ac_cv_func_gethostname_noproto+set}" = set; then
24593 echo $ECHO_N "(cached) $ECHO_C" >&6
24595 cat >conftest.$ac_ext <<_ACEOF
24596 #line $LINENO "configure"
24597 #include "confdefs.h"
24598 #include <unistd.h>
24599 #ifdef F77_DUMMY_MAIN
24600 # ifdef __cplusplus
24603 int F77_DUMMY_MAIN() { return 1; }
24608 struct foo { int foo; } xx;
24609 extern int gethostname (struct foo*);
24616 rm -f conftest.$ac_objext
24617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24618 (eval $ac_compile) 2>&5
24620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24621 (exit $ac_status); } &&
24622 { ac_try='test -s conftest.$ac_objext'
24623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24624 (eval $ac_try) 2>&5
24626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24627 (exit $ac_status); }; }; then
24628 eval "ac_cv_func_gethostname_noproto=yes"
24630 echo "$as_me: failed program was:" >&5
24631 cat conftest.$ac_ext >&5
24632 eval "ac_cv_func_gethostname_noproto=no"
24634 rm -f conftest.$ac_objext conftest.$ac_ext
24636 echo "$as_me:$LINENO: result: $ac_cv_func_gethostname_noproto" >&5
24637 echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6
24638 if test "$ac_cv_func_gethostname_noproto" = yes; then
24640 cat >>confdefs.h <<\_ACEOF
24641 #define NEED_GETHOSTNAME_PROTO 1
24648 if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
24649 echo "$as_me:$LINENO: checking if mkstemp needs a prototype" >&5
24650 echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6
24651 if test "${ac_cv_func_mkstemp_noproto+set}" = set; then
24652 echo $ECHO_N "(cached) $ECHO_C" >&6
24654 cat >conftest.$ac_ext <<_ACEOF
24655 #line $LINENO "configure"
24656 #include "confdefs.h"
24657 #include <unistd.h>
24658 #ifdef F77_DUMMY_MAIN
24659 # ifdef __cplusplus
24662 int F77_DUMMY_MAIN() { return 1; }
24667 struct foo { int foo; } xx;
24668 extern int mkstemp (struct foo*);
24675 rm -f conftest.$ac_objext
24676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24677 (eval $ac_compile) 2>&5
24679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680 (exit $ac_status); } &&
24681 { ac_try='test -s conftest.$ac_objext'
24682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24683 (eval $ac_try) 2>&5
24685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24686 (exit $ac_status); }; }; then
24687 eval "ac_cv_func_mkstemp_noproto=yes"
24689 echo "$as_me: failed program was:" >&5
24690 cat conftest.$ac_ext >&5
24691 eval "ac_cv_func_mkstemp_noproto=no"
24693 rm -f conftest.$ac_objext conftest.$ac_ext
24695 echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp_noproto" >&5
24696 echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6
24697 if test "$ac_cv_func_mkstemp_noproto" = yes; then
24699 cat >>confdefs.h <<\_ACEOF
24700 #define NEED_MKSTEMP_PROTO 1
24707 if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
24708 echo "$as_me:$LINENO: checking if getusershell needs a prototype" >&5
24709 echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6
24710 if test "${ac_cv_func_getusershell_noproto+set}" = set; then
24711 echo $ECHO_N "(cached) $ECHO_C" >&6
24713 cat >conftest.$ac_ext <<_ACEOF
24714 #line $LINENO "configure"
24715 #include "confdefs.h"
24716 #include <unistd.h>
24717 #ifdef F77_DUMMY_MAIN
24718 # ifdef __cplusplus
24721 int F77_DUMMY_MAIN() { return 1; }
24726 struct foo { int foo; } xx;
24727 extern int getusershell (struct foo*);
24734 rm -f conftest.$ac_objext
24735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24736 (eval $ac_compile) 2>&5
24738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739 (exit $ac_status); } &&
24740 { ac_try='test -s conftest.$ac_objext'
24741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24742 (eval $ac_try) 2>&5
24744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24745 (exit $ac_status); }; }; then
24746 eval "ac_cv_func_getusershell_noproto=yes"
24748 echo "$as_me: failed program was:" >&5
24749 cat conftest.$ac_ext >&5
24750 eval "ac_cv_func_getusershell_noproto=no"
24752 rm -f conftest.$ac_objext conftest.$ac_ext
24754 echo "$as_me:$LINENO: result: $ac_cv_func_getusershell_noproto" >&5
24755 echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6
24756 if test "$ac_cv_func_getusershell_noproto" = yes; then
24758 cat >>confdefs.h <<\_ACEOF
24759 #define NEED_GETUSERSHELL_PROTO 1
24767 if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
24768 echo "$as_me:$LINENO: checking if inet_aton needs a prototype" >&5
24769 echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6
24770 if test "${ac_cv_func_inet_aton_noproto+set}" = set; then
24771 echo $ECHO_N "(cached) $ECHO_C" >&6
24773 cat >conftest.$ac_ext <<_ACEOF
24774 #line $LINENO "configure"
24775 #include "confdefs.h"
24777 #ifdef HAVE_SYS_TYPES_H
24778 #include <sys/types.h>
24780 #ifdef HAVE_SYS_SOCKET_H
24781 #include <sys/socket.h>
24783 #ifdef HAVE_NETINET_IN_H
24784 #include <netinet/in.h>
24786 #ifdef HAVE_ARPA_INET_H
24787 #include <arpa/inet.h>
24789 #ifdef F77_DUMMY_MAIN
24790 # ifdef __cplusplus
24793 int F77_DUMMY_MAIN() { return 1; }
24798 struct foo { int foo; } xx;
24799 extern int inet_aton (struct foo*);
24806 rm -f conftest.$ac_objext
24807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24808 (eval $ac_compile) 2>&5
24810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811 (exit $ac_status); } &&
24812 { ac_try='test -s conftest.$ac_objext'
24813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24814 (eval $ac_try) 2>&5
24816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817 (exit $ac_status); }; }; then
24818 eval "ac_cv_func_inet_aton_noproto=yes"
24820 echo "$as_me: failed program was:" >&5
24821 cat conftest.$ac_ext >&5
24822 eval "ac_cv_func_inet_aton_noproto=no"
24824 rm -f conftest.$ac_objext conftest.$ac_ext
24826 echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton_noproto" >&5
24827 echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6
24828 if test "$ac_cv_func_inet_aton_noproto" = yes; then
24830 cat >>confdefs.h <<\_ACEOF
24831 #define NEED_INET_ATON_PROTO 1
24841 echo "$as_me:$LINENO: checking for crypt" >&5
24842 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
24843 if test "${ac_cv_funclib_crypt+set}" = set; then
24844 echo $ECHO_N "(cached) $ECHO_C" >&6
24847 if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
24848 ac_save_LIBS="$LIBS"
24849 for ac_lib in "" crypt; do
24855 *) ac_lib="-l$ac_lib" ;;
24857 LIBS=" $ac_lib $ac_save_LIBS"
24858 cat >conftest.$ac_ext <<_ACEOF
24859 #line $LINENO "configure"
24860 #include "confdefs.h"
24862 #ifdef F77_DUMMY_MAIN
24863 # ifdef __cplusplus
24866 int F77_DUMMY_MAIN() { return 1; }
24876 rm -f conftest.$ac_objext conftest$ac_exeext
24877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24878 (eval $ac_link) 2>&5
24880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881 (exit $ac_status); } &&
24882 { ac_try='test -s conftest$ac_exeext'
24883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24884 (eval $ac_try) 2>&5
24886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887 (exit $ac_status); }; }; then
24888 eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
24890 echo "$as_me: failed program was:" >&5
24891 cat conftest.$ac_ext >&5
24893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24895 eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
24896 LIBS="$ac_save_LIBS"
24902 eval "ac_res=\$ac_cv_funclib_crypt"
24906 for ac_func in crypt
24908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24909 echo "$as_me:$LINENO: checking for $ac_func" >&5
24910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24911 if eval "test \"\${$as_ac_var+set}\" = set"; then
24912 echo $ECHO_N "(cached) $ECHO_C" >&6
24914 cat >conftest.$ac_ext <<_ACEOF
24915 #line $LINENO "configure"
24916 #include "confdefs.h"
24917 /* System header to define __stub macros and hopefully few prototypes,
24918 which can conflict with char $ac_func (); below. */
24919 #include <assert.h>
24920 /* Override any gcc2 internal prototype to avoid an error. */
24924 /* We use char because int might match the return type of a gcc2
24925 builtin and then its argument prototype would still apply. */
24929 #ifdef F77_DUMMY_MAIN
24930 # ifdef __cplusplus
24933 int F77_DUMMY_MAIN() { return 1; }
24938 /* The GNU C library defines this for functions which it implements
24939 to always fail with ENOSYS. Some functions are actually named
24940 something starting with __ and the normal name is an alias. */
24941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24951 rm -f conftest.$ac_objext conftest$ac_exeext
24952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24953 (eval $ac_link) 2>&5
24955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956 (exit $ac_status); } &&
24957 { ac_try='test -s conftest$ac_exeext'
24958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24959 (eval $ac_try) 2>&5
24961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962 (exit $ac_status); }; }; then
24963 eval "$as_ac_var=yes"
24965 echo "$as_me: failed program was:" >&5
24966 cat conftest.$ac_ext >&5
24967 eval "$as_ac_var=no"
24969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24973 if test `eval echo '${'$as_ac_var'}'` = yes; then
24974 cat >>confdefs.h <<_ACEOF
24975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24983 eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
24984 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
24985 eval "LIB_crypt=$ac_res"
24989 eval "ac_cv_func_crypt=yes"
24991 cat >>confdefs.h <<_ACEOF
24992 #define $ac_tr_func 1
24995 echo "$as_me:$LINENO: result: yes" >&5
24996 echo "${ECHO_T}yes" >&6
24999 eval "ac_cv_func_crypt=no"
25001 echo "$as_me:$LINENO: result: no" >&5
25002 echo "${ECHO_T}no" >&6
25005 eval "ac_cv_func_crypt=yes"
25006 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
25007 cat >>confdefs.h <<_ACEOF
25008 #define $ac_tr_func 1
25011 cat >>confdefs.h <<_ACEOF
25012 #define $ac_tr_lib 1
25015 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
25016 echo "${ECHO_T}yes, in $ac_res" >&6
25025 echo "$as_me:$LINENO: checking if gethostbyname is compatible with system prototype" >&5
25026 echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6
25027 if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then
25028 echo $ECHO_N "(cached) $ECHO_C" >&6
25030 cat >conftest.$ac_ext <<_ACEOF
25031 #line $LINENO "configure"
25032 #include "confdefs.h"
25034 #ifdef HAVE_SYS_TYPES_H
25035 #include <sys/types.h>
25037 #ifdef HAVE_SYS_SOCKET_H
25038 #include <sys/socket.h>
25040 #ifdef HAVE_NETINET_IN_H
25041 #include <netinet/in.h>
25043 #ifdef HAVE_ARPA_INET_H
25044 #include <arpa/inet.h>
25046 #ifdef HAVE_NETDB_H
25050 #ifdef F77_DUMMY_MAIN
25051 # ifdef __cplusplus
25054 int F77_DUMMY_MAIN() { return 1; }
25059 struct hostent *gethostbyname(const char *);
25064 rm -f conftest.$ac_objext
25065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25066 (eval $ac_compile) 2>&5
25068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069 (exit $ac_status); } &&
25070 { ac_try='test -s conftest.$ac_objext'
25071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25072 (eval $ac_try) 2>&5
25074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25075 (exit $ac_status); }; }; then
25076 eval "ac_cv_func_gethostbyname_proto_compat=yes"
25078 echo "$as_me: failed program was:" >&5
25079 cat conftest.$ac_ext >&5
25080 eval "ac_cv_func_gethostbyname_proto_compat=no"
25082 rm -f conftest.$ac_objext conftest.$ac_ext
25084 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_proto_compat" >&5
25085 echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6
25087 if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
25089 cat >>confdefs.h <<\_ACEOF
25090 #define GETHOSTBYNAME_PROTO_COMPATIBLE 1
25098 echo "$as_me:$LINENO: checking if gethostbyaddr is compatible with system prototype" >&5
25099 echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6
25100 if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then
25101 echo $ECHO_N "(cached) $ECHO_C" >&6
25103 cat >conftest.$ac_ext <<_ACEOF
25104 #line $LINENO "configure"
25105 #include "confdefs.h"
25107 #ifdef HAVE_SYS_TYPES_H
25108 #include <sys/types.h>
25110 #ifdef HAVE_SYS_SOCKET_H
25111 #include <sys/socket.h>
25113 #ifdef HAVE_NETINET_IN_H
25114 #include <netinet/in.h>
25116 #ifdef HAVE_ARPA_INET_H
25117 #include <arpa/inet.h>
25119 #ifdef HAVE_NETDB_H
25123 #ifdef F77_DUMMY_MAIN
25124 # ifdef __cplusplus
25127 int F77_DUMMY_MAIN() { return 1; }
25132 struct hostent *gethostbyaddr(const void *, size_t, int);
25137 rm -f conftest.$ac_objext
25138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25139 (eval $ac_compile) 2>&5
25141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142 (exit $ac_status); } &&
25143 { ac_try='test -s conftest.$ac_objext'
25144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25145 (eval $ac_try) 2>&5
25147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25148 (exit $ac_status); }; }; then
25149 eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
25151 echo "$as_me: failed program was:" >&5
25152 cat conftest.$ac_ext >&5
25153 eval "ac_cv_func_gethostbyaddr_proto_compat=no"
25155 rm -f conftest.$ac_objext conftest.$ac_ext
25157 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
25158 echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6
25160 if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
25162 cat >>confdefs.h <<\_ACEOF
25163 #define GETHOSTBYADDR_PROTO_COMPATIBLE 1
25171 echo "$as_me:$LINENO: checking if getservbyname is compatible with system prototype" >&5
25172 echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6
25173 if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then
25174 echo $ECHO_N "(cached) $ECHO_C" >&6
25176 cat >conftest.$ac_ext <<_ACEOF
25177 #line $LINENO "configure"
25178 #include "confdefs.h"
25180 #ifdef HAVE_SYS_TYPES_H
25181 #include <sys/types.h>
25183 #ifdef HAVE_SYS_SOCKET_H
25184 #include <sys/socket.h>
25186 #ifdef HAVE_NETINET_IN_H
25187 #include <netinet/in.h>
25189 #ifdef HAVE_ARPA_INET_H
25190 #include <arpa/inet.h>
25192 #ifdef HAVE_NETDB_H
25196 #ifdef F77_DUMMY_MAIN
25197 # ifdef __cplusplus
25200 int F77_DUMMY_MAIN() { return 1; }
25205 struct servent *getservbyname(const char *, const char *);
25210 rm -f conftest.$ac_objext
25211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25212 (eval $ac_compile) 2>&5
25214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215 (exit $ac_status); } &&
25216 { ac_try='test -s conftest.$ac_objext'
25217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25218 (eval $ac_try) 2>&5
25220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221 (exit $ac_status); }; }; then
25222 eval "ac_cv_func_getservbyname_proto_compat=yes"
25224 echo "$as_me: failed program was:" >&5
25225 cat conftest.$ac_ext >&5
25226 eval "ac_cv_func_getservbyname_proto_compat=no"
25228 rm -f conftest.$ac_objext conftest.$ac_ext
25230 echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_proto_compat" >&5
25231 echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6
25233 if test "$ac_cv_func_getservbyname_proto_compat" = yes; then
25235 cat >>confdefs.h <<\_ACEOF
25236 #define GETSERVBYNAME_PROTO_COMPATIBLE 1
25244 echo "$as_me:$LINENO: checking if getsockname is compatible with system prototype" >&5
25245 echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6
25246 if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then
25247 echo $ECHO_N "(cached) $ECHO_C" >&6
25249 cat >conftest.$ac_ext <<_ACEOF
25250 #line $LINENO "configure"
25251 #include "confdefs.h"
25253 #ifdef HAVE_SYS_TYPES_H
25254 #include <sys/types.h>
25256 #ifdef HAVE_SYS_SOCKET_H
25257 #include <sys/socket.h>
25260 #ifdef F77_DUMMY_MAIN
25261 # ifdef __cplusplus
25264 int F77_DUMMY_MAIN() { return 1; }
25269 int getsockname(int, struct sockaddr*, socklen_t*);
25274 rm -f conftest.$ac_objext
25275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25276 (eval $ac_compile) 2>&5
25278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279 (exit $ac_status); } &&
25280 { ac_try='test -s conftest.$ac_objext'
25281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25282 (eval $ac_try) 2>&5
25284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285 (exit $ac_status); }; }; then
25286 eval "ac_cv_func_getsockname_proto_compat=yes"
25288 echo "$as_me: failed program was:" >&5
25289 cat conftest.$ac_ext >&5
25290 eval "ac_cv_func_getsockname_proto_compat=no"
25292 rm -f conftest.$ac_objext conftest.$ac_ext
25294 echo "$as_me:$LINENO: result: $ac_cv_func_getsockname_proto_compat" >&5
25295 echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6
25297 if test "$ac_cv_func_getsockname_proto_compat" = yes; then
25299 cat >>confdefs.h <<\_ACEOF
25300 #define GETSOCKNAME_PROTO_COMPATIBLE 1
25308 echo "$as_me:$LINENO: checking if openlog is compatible with system prototype" >&5
25309 echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6
25310 if test "${ac_cv_func_openlog_proto_compat+set}" = set; then
25311 echo $ECHO_N "(cached) $ECHO_C" >&6
25313 cat >conftest.$ac_ext <<_ACEOF
25314 #line $LINENO "configure"
25315 #include "confdefs.h"
25317 #ifdef HAVE_SYSLOG_H
25318 #include <syslog.h>
25321 #ifdef F77_DUMMY_MAIN
25322 # ifdef __cplusplus
25325 int F77_DUMMY_MAIN() { return 1; }
25330 void openlog(const char *, int, int);
25335 rm -f conftest.$ac_objext
25336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25337 (eval $ac_compile) 2>&5
25339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340 (exit $ac_status); } &&
25341 { ac_try='test -s conftest.$ac_objext'
25342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25343 (eval $ac_try) 2>&5
25345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346 (exit $ac_status); }; }; then
25347 eval "ac_cv_func_openlog_proto_compat=yes"
25349 echo "$as_me: failed program was:" >&5
25350 cat conftest.$ac_ext >&5
25351 eval "ac_cv_func_openlog_proto_compat=no"
25353 rm -f conftest.$ac_objext conftest.$ac_ext
25355 echo "$as_me:$LINENO: result: $ac_cv_func_openlog_proto_compat" >&5
25356 echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6
25358 if test "$ac_cv_func_openlog_proto_compat" = yes; then
25360 cat >>confdefs.h <<\_ACEOF
25361 #define OPENLOG_PROTO_COMPATIBLE 1
25369 if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
25370 echo "$as_me:$LINENO: checking if crypt needs a prototype" >&5
25371 echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6
25372 if test "${ac_cv_func_crypt_noproto+set}" = set; then
25373 echo $ECHO_N "(cached) $ECHO_C" >&6
25375 cat >conftest.$ac_ext <<_ACEOF
25376 #line $LINENO "configure"
25377 #include "confdefs.h"
25379 #ifdef HAVE_CRYPT_H
25382 #ifdef HAVE_UNISTD_H
25383 #include <unistd.h>
25386 #ifdef F77_DUMMY_MAIN
25387 # ifdef __cplusplus
25390 int F77_DUMMY_MAIN() { return 1; }
25395 struct foo { int foo; } xx;
25396 extern int crypt (struct foo*);
25403 rm -f conftest.$ac_objext
25404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25405 (eval $ac_compile) 2>&5
25407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408 (exit $ac_status); } &&
25409 { ac_try='test -s conftest.$ac_objext'
25410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25411 (eval $ac_try) 2>&5
25413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414 (exit $ac_status); }; }; then
25415 eval "ac_cv_func_crypt_noproto=yes"
25417 echo "$as_me: failed program was:" >&5
25418 cat conftest.$ac_ext >&5
25419 eval "ac_cv_func_crypt_noproto=no"
25421 rm -f conftest.$ac_objext conftest.$ac_ext
25423 echo "$as_me:$LINENO: result: $ac_cv_func_crypt_noproto" >&5
25424 echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6
25425 if test "$ac_cv_func_crypt_noproto" = yes; then
25427 cat >>confdefs.h <<\_ACEOF
25428 #define NEED_CRYPT_PROTO 1
25437 echo "$as_me:$LINENO: checking for h_errno" >&5
25438 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
25439 if test "${ac_cv_var_h_errno+set}" = set; then
25440 echo $ECHO_N "(cached) $ECHO_C" >&6
25443 cat >conftest.$ac_ext <<_ACEOF
25444 #line $LINENO "configure"
25445 #include "confdefs.h"
25446 extern int h_errno;
25447 int foo() { return h_errno; }
25448 #ifdef F77_DUMMY_MAIN
25449 # ifdef __cplusplus
25452 int F77_DUMMY_MAIN() { return 1; }
25462 rm -f conftest.$ac_objext conftest$ac_exeext
25463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25464 (eval $ac_link) 2>&5
25466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467 (exit $ac_status); } &&
25468 { ac_try='test -s conftest$ac_exeext'
25469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25470 (eval $ac_try) 2>&5
25472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25473 (exit $ac_status); }; }; then
25474 ac_cv_var_h_errno=yes
25476 echo "$as_me: failed program was:" >&5
25477 cat conftest.$ac_ext >&5
25478 ac_cv_var_h_errno=no
25480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25484 ac_foo=`eval echo \\$ac_cv_var_h_errno`
25485 echo "$as_me:$LINENO: result: $ac_foo" >&5
25486 echo "${ECHO_T}$ac_foo" >&6
25487 if test "$ac_foo" = yes; then
25489 cat >>confdefs.h <<_ACEOF
25490 #define HAVE_H_ERRNO 1
25494 echo "$as_me:$LINENO: checking if h_errno is properly declared" >&5
25495 echo $ECHO_N "checking if h_errno is properly declared... $ECHO_C" >&6
25496 if test "${ac_cv_var_h_errno_declaration+set}" = set; then
25497 echo $ECHO_N "(cached) $ECHO_C" >&6
25500 cat >conftest.$ac_ext <<_ACEOF
25501 #line $LINENO "configure"
25502 #include "confdefs.h"
25503 #ifdef HAVE_SYS_TYPES_H
25504 #include <sys/types.h>
25506 #ifdef HAVE_NETDB_H
25509 extern struct { int foo; } h_errno;
25510 #ifdef F77_DUMMY_MAIN
25511 # ifdef __cplusplus
25514 int F77_DUMMY_MAIN() { return 1; }
25524 rm -f conftest.$ac_objext
25525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25526 (eval $ac_compile) 2>&5
25528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529 (exit $ac_status); } &&
25530 { ac_try='test -s conftest.$ac_objext'
25531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25532 (eval $ac_try) 2>&5
25534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535 (exit $ac_status); }; }; then
25536 eval "ac_cv_var_h_errno_declaration=no"
25538 echo "$as_me: failed program was:" >&5
25539 cat conftest.$ac_ext >&5
25540 eval "ac_cv_var_h_errno_declaration=yes"
25542 rm -f conftest.$ac_objext conftest.$ac_ext
25549 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno_declaration" >&5
25550 echo "${ECHO_T}$ac_cv_var_h_errno_declaration" >&6
25551 if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then
25553 cat >>confdefs.h <<\_ACEOF
25554 #define HAVE_H_ERRNO_DECLARATION 1
25564 echo "$as_me:$LINENO: checking for h_errlist" >&5
25565 echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6
25566 if test "${ac_cv_var_h_errlist+set}" = set; then
25567 echo $ECHO_N "(cached) $ECHO_C" >&6
25570 cat >conftest.$ac_ext <<_ACEOF
25571 #line $LINENO "configure"
25572 #include "confdefs.h"
25573 extern int h_errlist;
25574 int foo() { return h_errlist; }
25575 #ifdef F77_DUMMY_MAIN
25576 # ifdef __cplusplus
25579 int F77_DUMMY_MAIN() { return 1; }
25589 rm -f conftest.$ac_objext conftest$ac_exeext
25590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25591 (eval $ac_link) 2>&5
25593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594 (exit $ac_status); } &&
25595 { ac_try='test -s conftest$ac_exeext'
25596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25597 (eval $ac_try) 2>&5
25599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600 (exit $ac_status); }; }; then
25601 ac_cv_var_h_errlist=yes
25603 echo "$as_me: failed program was:" >&5
25604 cat conftest.$ac_ext >&5
25605 ac_cv_var_h_errlist=no
25607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25611 ac_foo=`eval echo \\$ac_cv_var_h_errlist`
25612 echo "$as_me:$LINENO: result: $ac_foo" >&5
25613 echo "${ECHO_T}$ac_foo" >&6
25614 if test "$ac_foo" = yes; then
25616 cat >>confdefs.h <<_ACEOF
25617 #define HAVE_H_ERRLIST 1
25621 echo "$as_me:$LINENO: checking if h_errlist is properly declared" >&5
25622 echo $ECHO_N "checking if h_errlist is properly declared... $ECHO_C" >&6
25623 if test "${ac_cv_var_h_errlist_declaration+set}" = set; then
25624 echo $ECHO_N "(cached) $ECHO_C" >&6
25627 cat >conftest.$ac_ext <<_ACEOF
25628 #line $LINENO "configure"
25629 #include "confdefs.h"
25630 #ifdef HAVE_NETDB_H
25633 extern struct { int foo; } h_errlist;
25634 #ifdef F77_DUMMY_MAIN
25635 # ifdef __cplusplus
25638 int F77_DUMMY_MAIN() { return 1; }
25648 rm -f conftest.$ac_objext
25649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25650 (eval $ac_compile) 2>&5
25652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25653 (exit $ac_status); } &&
25654 { ac_try='test -s conftest.$ac_objext'
25655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25656 (eval $ac_try) 2>&5
25658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659 (exit $ac_status); }; }; then
25660 eval "ac_cv_var_h_errlist_declaration=no"
25662 echo "$as_me: failed program was:" >&5
25663 cat conftest.$ac_ext >&5
25664 eval "ac_cv_var_h_errlist_declaration=yes"
25666 rm -f conftest.$ac_objext conftest.$ac_ext
25673 echo "$as_me:$LINENO: result: $ac_cv_var_h_errlist_declaration" >&5
25674 echo "${ECHO_T}$ac_cv_var_h_errlist_declaration" >&6
25675 if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then
25677 cat >>confdefs.h <<\_ACEOF
25678 #define HAVE_H_ERRLIST_DECLARATION 1
25688 echo "$as_me:$LINENO: checking for h_nerr" >&5
25689 echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6
25690 if test "${ac_cv_var_h_nerr+set}" = set; then
25691 echo $ECHO_N "(cached) $ECHO_C" >&6
25694 cat >conftest.$ac_ext <<_ACEOF
25695 #line $LINENO "configure"
25696 #include "confdefs.h"
25698 int foo() { return h_nerr; }
25699 #ifdef F77_DUMMY_MAIN
25700 # ifdef __cplusplus
25703 int F77_DUMMY_MAIN() { return 1; }
25713 rm -f conftest.$ac_objext conftest$ac_exeext
25714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25715 (eval $ac_link) 2>&5
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); } &&
25719 { ac_try='test -s conftest$ac_exeext'
25720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25721 (eval $ac_try) 2>&5
25723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25724 (exit $ac_status); }; }; then
25725 ac_cv_var_h_nerr=yes
25727 echo "$as_me: failed program was:" >&5
25728 cat conftest.$ac_ext >&5
25729 ac_cv_var_h_nerr=no
25731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25735 ac_foo=`eval echo \\$ac_cv_var_h_nerr`
25736 echo "$as_me:$LINENO: result: $ac_foo" >&5
25737 echo "${ECHO_T}$ac_foo" >&6
25738 if test "$ac_foo" = yes; then
25740 cat >>confdefs.h <<_ACEOF
25741 #define HAVE_H_NERR 1
25745 echo "$as_me:$LINENO: checking if h_nerr is properly declared" >&5
25746 echo $ECHO_N "checking if h_nerr is properly declared... $ECHO_C" >&6
25747 if test "${ac_cv_var_h_nerr_declaration+set}" = set; then
25748 echo $ECHO_N "(cached) $ECHO_C" >&6
25751 cat >conftest.$ac_ext <<_ACEOF
25752 #line $LINENO "configure"
25753 #include "confdefs.h"
25754 #ifdef HAVE_NETDB_H
25757 extern struct { int foo; } h_nerr;
25758 #ifdef F77_DUMMY_MAIN
25759 # ifdef __cplusplus
25762 int F77_DUMMY_MAIN() { return 1; }
25772 rm -f conftest.$ac_objext
25773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25774 (eval $ac_compile) 2>&5
25776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777 (exit $ac_status); } &&
25778 { ac_try='test -s conftest.$ac_objext'
25779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25780 (eval $ac_try) 2>&5
25782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783 (exit $ac_status); }; }; then
25784 eval "ac_cv_var_h_nerr_declaration=no"
25786 echo "$as_me: failed program was:" >&5
25787 cat conftest.$ac_ext >&5
25788 eval "ac_cv_var_h_nerr_declaration=yes"
25790 rm -f conftest.$ac_objext conftest.$ac_ext
25797 echo "$as_me:$LINENO: result: $ac_cv_var_h_nerr_declaration" >&5
25798 echo "${ECHO_T}$ac_cv_var_h_nerr_declaration" >&6
25799 if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then
25801 cat >>confdefs.h <<\_ACEOF
25802 #define HAVE_H_NERR_DECLARATION 1
25812 echo "$as_me:$LINENO: checking for __progname" >&5
25813 echo $ECHO_N "checking for __progname... $ECHO_C" >&6
25814 if test "${ac_cv_var___progname+set}" = set; then
25815 echo $ECHO_N "(cached) $ECHO_C" >&6
25818 cat >conftest.$ac_ext <<_ACEOF
25819 #line $LINENO "configure"
25820 #include "confdefs.h"
25821 extern int __progname;
25822 int foo() { return __progname; }
25823 #ifdef F77_DUMMY_MAIN
25824 # ifdef __cplusplus
25827 int F77_DUMMY_MAIN() { return 1; }
25837 rm -f conftest.$ac_objext conftest$ac_exeext
25838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25839 (eval $ac_link) 2>&5
25841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842 (exit $ac_status); } &&
25843 { ac_try='test -s conftest$ac_exeext'
25844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25845 (eval $ac_try) 2>&5
25847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848 (exit $ac_status); }; }; then
25849 ac_cv_var___progname=yes
25851 echo "$as_me: failed program was:" >&5
25852 cat conftest.$ac_ext >&5
25853 ac_cv_var___progname=no
25855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25859 ac_foo=`eval echo \\$ac_cv_var___progname`
25860 echo "$as_me:$LINENO: result: $ac_foo" >&5
25861 echo "${ECHO_T}$ac_foo" >&6
25862 if test "$ac_foo" = yes; then
25864 cat >>confdefs.h <<_ACEOF
25865 #define HAVE___PROGNAME 1
25869 echo "$as_me:$LINENO: checking if __progname is properly declared" >&5
25870 echo $ECHO_N "checking if __progname is properly declared... $ECHO_C" >&6
25871 if test "${ac_cv_var___progname_declaration+set}" = set; then
25872 echo $ECHO_N "(cached) $ECHO_C" >&6
25875 cat >conftest.$ac_ext <<_ACEOF
25876 #line $LINENO "configure"
25877 #include "confdefs.h"
25881 extern struct { int foo; } __progname;
25882 #ifdef F77_DUMMY_MAIN
25883 # ifdef __cplusplus
25886 int F77_DUMMY_MAIN() { return 1; }
25891 __progname.foo = 1;
25896 rm -f conftest.$ac_objext
25897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25898 (eval $ac_compile) 2>&5
25900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901 (exit $ac_status); } &&
25902 { ac_try='test -s conftest.$ac_objext'
25903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25904 (eval $ac_try) 2>&5
25906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25907 (exit $ac_status); }; }; then
25908 eval "ac_cv_var___progname_declaration=no"
25910 echo "$as_me: failed program was:" >&5
25911 cat conftest.$ac_ext >&5
25912 eval "ac_cv_var___progname_declaration=yes"
25914 rm -f conftest.$ac_objext conftest.$ac_ext
25921 echo "$as_me:$LINENO: result: $ac_cv_var___progname_declaration" >&5
25922 echo "${ECHO_T}$ac_cv_var___progname_declaration" >&6
25923 if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then
25925 cat >>confdefs.h <<\_ACEOF
25926 #define HAVE___PROGNAME_DECLARATION 1
25936 echo "$as_me:$LINENO: checking if optarg is properly declared" >&5
25937 echo $ECHO_N "checking if optarg is properly declared... $ECHO_C" >&6
25938 if test "${ac_cv_var_optarg_declaration+set}" = set; then
25939 echo $ECHO_N "(cached) $ECHO_C" >&6
25942 cat >conftest.$ac_ext <<_ACEOF
25943 #line $LINENO "configure"
25944 #include "confdefs.h"
25945 #include <stdlib.h>
25946 #ifdef HAVE_UNISTD_H
25947 #include <unistd.h>
25949 extern struct { int foo; } optarg;
25950 #ifdef F77_DUMMY_MAIN
25951 # ifdef __cplusplus
25954 int F77_DUMMY_MAIN() { return 1; }
25964 rm -f conftest.$ac_objext
25965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25966 (eval $ac_compile) 2>&5
25968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969 (exit $ac_status); } &&
25970 { ac_try='test -s conftest.$ac_objext'
25971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25972 (eval $ac_try) 2>&5
25974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975 (exit $ac_status); }; }; then
25976 eval "ac_cv_var_optarg_declaration=no"
25978 echo "$as_me: failed program was:" >&5
25979 cat conftest.$ac_ext >&5
25980 eval "ac_cv_var_optarg_declaration=yes"
25982 rm -f conftest.$ac_objext conftest.$ac_ext
25989 echo "$as_me:$LINENO: result: $ac_cv_var_optarg_declaration" >&5
25990 echo "${ECHO_T}$ac_cv_var_optarg_declaration" >&6
25991 if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then
25993 cat >>confdefs.h <<\_ACEOF
25994 #define HAVE_OPTARG_DECLARATION 1
26001 echo "$as_me:$LINENO: checking if optind is properly declared" >&5
26002 echo $ECHO_N "checking if optind is properly declared... $ECHO_C" >&6
26003 if test "${ac_cv_var_optind_declaration+set}" = set; then
26004 echo $ECHO_N "(cached) $ECHO_C" >&6
26007 cat >conftest.$ac_ext <<_ACEOF
26008 #line $LINENO "configure"
26009 #include "confdefs.h"
26010 #include <stdlib.h>
26011 #ifdef HAVE_UNISTD_H
26012 #include <unistd.h>
26014 extern struct { int foo; } optind;
26015 #ifdef F77_DUMMY_MAIN
26016 # ifdef __cplusplus
26019 int F77_DUMMY_MAIN() { return 1; }
26029 rm -f conftest.$ac_objext
26030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26031 (eval $ac_compile) 2>&5
26033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034 (exit $ac_status); } &&
26035 { ac_try='test -s conftest.$ac_objext'
26036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26037 (eval $ac_try) 2>&5
26039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040 (exit $ac_status); }; }; then
26041 eval "ac_cv_var_optind_declaration=no"
26043 echo "$as_me: failed program was:" >&5
26044 cat conftest.$ac_ext >&5
26045 eval "ac_cv_var_optind_declaration=yes"
26047 rm -f conftest.$ac_objext conftest.$ac_ext
26054 echo "$as_me:$LINENO: result: $ac_cv_var_optind_declaration" >&5
26055 echo "${ECHO_T}$ac_cv_var_optind_declaration" >&6
26056 if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then
26058 cat >>confdefs.h <<\_ACEOF
26059 #define HAVE_OPTIND_DECLARATION 1
26066 echo "$as_me:$LINENO: checking if opterr is properly declared" >&5
26067 echo $ECHO_N "checking if opterr is properly declared... $ECHO_C" >&6
26068 if test "${ac_cv_var_opterr_declaration+set}" = set; then
26069 echo $ECHO_N "(cached) $ECHO_C" >&6
26072 cat >conftest.$ac_ext <<_ACEOF
26073 #line $LINENO "configure"
26074 #include "confdefs.h"
26075 #include <stdlib.h>
26076 #ifdef HAVE_UNISTD_H
26077 #include <unistd.h>
26079 extern struct { int foo; } opterr;
26080 #ifdef F77_DUMMY_MAIN
26081 # ifdef __cplusplus
26084 int F77_DUMMY_MAIN() { return 1; }
26094 rm -f conftest.$ac_objext
26095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26096 (eval $ac_compile) 2>&5
26098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099 (exit $ac_status); } &&
26100 { ac_try='test -s conftest.$ac_objext'
26101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26102 (eval $ac_try) 2>&5
26104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105 (exit $ac_status); }; }; then
26106 eval "ac_cv_var_opterr_declaration=no"
26108 echo "$as_me: failed program was:" >&5
26109 cat conftest.$ac_ext >&5
26110 eval "ac_cv_var_opterr_declaration=yes"
26112 rm -f conftest.$ac_objext conftest.$ac_ext
26119 echo "$as_me:$LINENO: result: $ac_cv_var_opterr_declaration" >&5
26120 echo "${ECHO_T}$ac_cv_var_opterr_declaration" >&6
26121 if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then
26123 cat >>confdefs.h <<\_ACEOF
26124 #define HAVE_OPTERR_DECLARATION 1
26131 echo "$as_me:$LINENO: checking if optopt is properly declared" >&5
26132 echo $ECHO_N "checking if optopt is properly declared... $ECHO_C" >&6
26133 if test "${ac_cv_var_optopt_declaration+set}" = set; then
26134 echo $ECHO_N "(cached) $ECHO_C" >&6
26137 cat >conftest.$ac_ext <<_ACEOF
26138 #line $LINENO "configure"
26139 #include "confdefs.h"
26140 #include <stdlib.h>
26141 #ifdef HAVE_UNISTD_H
26142 #include <unistd.h>
26144 extern struct { int foo; } optopt;
26145 #ifdef F77_DUMMY_MAIN
26146 # ifdef __cplusplus
26149 int F77_DUMMY_MAIN() { return 1; }
26159 rm -f conftest.$ac_objext
26160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26161 (eval $ac_compile) 2>&5
26163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26164 (exit $ac_status); } &&
26165 { ac_try='test -s conftest.$ac_objext'
26166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26167 (eval $ac_try) 2>&5
26169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170 (exit $ac_status); }; }; then
26171 eval "ac_cv_var_optopt_declaration=no"
26173 echo "$as_me: failed program was:" >&5
26174 cat conftest.$ac_ext >&5
26175 eval "ac_cv_var_optopt_declaration=yes"
26177 rm -f conftest.$ac_objext conftest.$ac_ext
26184 echo "$as_me:$LINENO: result: $ac_cv_var_optopt_declaration" >&5
26185 echo "${ECHO_T}$ac_cv_var_optopt_declaration" >&6
26186 if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then
26188 cat >>confdefs.h <<\_ACEOF
26189 #define HAVE_OPTOPT_DECLARATION 1
26197 echo "$as_me:$LINENO: checking if environ is properly declared" >&5
26198 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
26199 if test "${ac_cv_var_environ_declaration+set}" = set; then
26200 echo $ECHO_N "(cached) $ECHO_C" >&6
26203 cat >conftest.$ac_ext <<_ACEOF
26204 #line $LINENO "configure"
26205 #include "confdefs.h"
26206 #include <stdlib.h>
26207 extern struct { int foo; } environ;
26208 #ifdef F77_DUMMY_MAIN
26209 # ifdef __cplusplus
26212 int F77_DUMMY_MAIN() { return 1; }
26222 rm -f conftest.$ac_objext
26223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26224 (eval $ac_compile) 2>&5
26226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26227 (exit $ac_status); } &&
26228 { ac_try='test -s conftest.$ac_objext'
26229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26230 (eval $ac_try) 2>&5
26232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26233 (exit $ac_status); }; }; then
26234 eval "ac_cv_var_environ_declaration=no"
26236 echo "$as_me: failed program was:" >&5
26237 cat conftest.$ac_ext >&5
26238 eval "ac_cv_var_environ_declaration=yes"
26240 rm -f conftest.$ac_objext conftest.$ac_ext
26247 echo "$as_me:$LINENO: result: $ac_cv_var_environ_declaration" >&5
26248 echo "${ECHO_T}$ac_cv_var_environ_declaration" >&6
26249 if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then
26251 cat >>confdefs.h <<\_ACEOF
26252 #define HAVE_ENVIRON_DECLARATION 1
26262 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
26263 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
26264 if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
26265 echo $ECHO_N "(cached) $ECHO_C" >&6
26268 cat >conftest.$ac_ext <<_ACEOF
26269 #line $LINENO "configure"
26270 #include "confdefs.h"
26272 #ifdef F77_DUMMY_MAIN
26273 # ifdef __cplusplus
26276 int F77_DUMMY_MAIN() { return 1; }
26281 struct tm x; x.tm_gmtoff;
26286 rm -f conftest.$ac_objext
26287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26288 (eval $ac_compile) 2>&5
26290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26291 (exit $ac_status); } &&
26292 { ac_try='test -s conftest.$ac_objext'
26293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26294 (eval $ac_try) 2>&5
26296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297 (exit $ac_status); }; }; then
26298 ac_cv_type_struct_tm_tm_gmtoff=yes
26300 echo "$as_me: failed program was:" >&5
26301 cat conftest.$ac_ext >&5
26302 ac_cv_type_struct_tm_tm_gmtoff=no
26304 rm -f conftest.$ac_objext conftest.$ac_ext
26306 echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
26307 echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6
26308 if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
26311 cat >>confdefs.h <<\_ACEOF
26312 #define HAVE_STRUCT_TM_TM_GMTOFF 1
26321 echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
26322 echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
26323 if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
26324 echo $ECHO_N "(cached) $ECHO_C" >&6
26327 cat >conftest.$ac_ext <<_ACEOF
26328 #line $LINENO "configure"
26329 #include "confdefs.h"
26331 #ifdef F77_DUMMY_MAIN
26332 # ifdef __cplusplus
26335 int F77_DUMMY_MAIN() { return 1; }
26340 struct tm x; x.tm_zone;
26345 rm -f conftest.$ac_objext
26346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26347 (eval $ac_compile) 2>&5
26349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26350 (exit $ac_status); } &&
26351 { ac_try='test -s conftest.$ac_objext'
26352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26353 (eval $ac_try) 2>&5
26355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356 (exit $ac_status); }; }; then
26357 ac_cv_type_struct_tm_tm_zone=yes
26359 echo "$as_me: failed program was:" >&5
26360 cat conftest.$ac_ext >&5
26361 ac_cv_type_struct_tm_tm_zone=no
26363 rm -f conftest.$ac_objext conftest.$ac_ext
26365 echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_zone" >&5
26366 echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6
26367 if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
26370 cat >>confdefs.h <<\_ACEOF
26371 #define HAVE_STRUCT_TM_TM_ZONE 1
26381 echo "$as_me:$LINENO: checking for timezone" >&5
26382 echo $ECHO_N "checking for timezone... $ECHO_C" >&6
26383 if test "${ac_cv_var_timezone+set}" = set; then
26384 echo $ECHO_N "(cached) $ECHO_C" >&6
26387 cat >conftest.$ac_ext <<_ACEOF
26388 #line $LINENO "configure"
26389 #include "confdefs.h"
26390 extern int timezone;
26391 int foo() { return timezone; }
26392 #ifdef F77_DUMMY_MAIN
26393 # ifdef __cplusplus
26396 int F77_DUMMY_MAIN() { return 1; }
26406 rm -f conftest.$ac_objext conftest$ac_exeext
26407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26408 (eval $ac_link) 2>&5
26410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411 (exit $ac_status); } &&
26412 { ac_try='test -s conftest$ac_exeext'
26413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26414 (eval $ac_try) 2>&5
26416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417 (exit $ac_status); }; }; then
26418 ac_cv_var_timezone=yes
26420 echo "$as_me: failed program was:" >&5
26421 cat conftest.$ac_ext >&5
26422 ac_cv_var_timezone=no
26424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26428 ac_foo=`eval echo \\$ac_cv_var_timezone`
26429 echo "$as_me:$LINENO: result: $ac_foo" >&5
26430 echo "${ECHO_T}$ac_foo" >&6
26431 if test "$ac_foo" = yes; then
26433 cat >>confdefs.h <<_ACEOF
26434 #define HAVE_TIMEZONE 1
26438 echo "$as_me:$LINENO: checking if timezone is properly declared" >&5
26439 echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6
26440 if test "${ac_cv_var_timezone_declaration+set}" = set; then
26441 echo $ECHO_N "(cached) $ECHO_C" >&6
26444 cat >conftest.$ac_ext <<_ACEOF
26445 #line $LINENO "configure"
26446 #include "confdefs.h"
26448 extern struct { int foo; } timezone;
26449 #ifdef F77_DUMMY_MAIN
26450 # ifdef __cplusplus
26453 int F77_DUMMY_MAIN() { return 1; }
26463 rm -f conftest.$ac_objext
26464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26465 (eval $ac_compile) 2>&5
26467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468 (exit $ac_status); } &&
26469 { ac_try='test -s conftest.$ac_objext'
26470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26471 (eval $ac_try) 2>&5
26473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474 (exit $ac_status); }; }; then
26475 eval "ac_cv_var_timezone_declaration=no"
26477 echo "$as_me: failed program was:" >&5
26478 cat conftest.$ac_ext >&5
26479 eval "ac_cv_var_timezone_declaration=yes"
26481 rm -f conftest.$ac_objext conftest.$ac_ext
26488 echo "$as_me:$LINENO: result: $ac_cv_var_timezone_declaration" >&5
26489 echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6
26490 if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then
26492 cat >>confdefs.h <<\_ACEOF
26493 #define HAVE_TIMEZONE_DECLARATION 1
26502 echo "$as_me:$LINENO: checking for altzone" >&5
26503 echo $ECHO_N "checking for altzone... $ECHO_C" >&6
26504 if test "${ac_cv_var_altzone+set}" = set; then
26505 echo $ECHO_N "(cached) $ECHO_C" >&6
26508 cat >conftest.$ac_ext <<_ACEOF
26509 #line $LINENO "configure"
26510 #include "confdefs.h"
26511 extern int altzone;
26512 int foo() { return altzone; }
26513 #ifdef F77_DUMMY_MAIN
26514 # ifdef __cplusplus
26517 int F77_DUMMY_MAIN() { return 1; }
26527 rm -f conftest.$ac_objext conftest$ac_exeext
26528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26529 (eval $ac_link) 2>&5
26531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532 (exit $ac_status); } &&
26533 { ac_try='test -s conftest$ac_exeext'
26534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26535 (eval $ac_try) 2>&5
26537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538 (exit $ac_status); }; }; then
26539 ac_cv_var_altzone=yes
26541 echo "$as_me: failed program was:" >&5
26542 cat conftest.$ac_ext >&5
26543 ac_cv_var_altzone=no
26545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26549 ac_foo=`eval echo \\$ac_cv_var_altzone`
26550 echo "$as_me:$LINENO: result: $ac_foo" >&5
26551 echo "${ECHO_T}$ac_foo" >&6
26552 if test "$ac_foo" = yes; then
26554 cat >>confdefs.h <<_ACEOF
26555 #define HAVE_ALTZONE 1
26559 echo "$as_me:$LINENO: checking if altzone is properly declared" >&5
26560 echo $ECHO_N "checking if altzone is properly declared... $ECHO_C" >&6
26561 if test "${ac_cv_var_altzone_declaration+set}" = set; then
26562 echo $ECHO_N "(cached) $ECHO_C" >&6
26565 cat >conftest.$ac_ext <<_ACEOF
26566 #line $LINENO "configure"
26567 #include "confdefs.h"
26569 extern struct { int foo; } altzone;
26570 #ifdef F77_DUMMY_MAIN
26571 # ifdef __cplusplus
26574 int F77_DUMMY_MAIN() { return 1; }
26584 rm -f conftest.$ac_objext
26585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26586 (eval $ac_compile) 2>&5
26588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589 (exit $ac_status); } &&
26590 { ac_try='test -s conftest.$ac_objext'
26591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26592 (eval $ac_try) 2>&5
26594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595 (exit $ac_status); }; }; then
26596 eval "ac_cv_var_altzone_declaration=no"
26598 echo "$as_me: failed program was:" >&5
26599 cat conftest.$ac_ext >&5
26600 eval "ac_cv_var_altzone_declaration=yes"
26602 rm -f conftest.$ac_objext conftest.$ac_ext
26609 echo "$as_me:$LINENO: result: $ac_cv_var_altzone_declaration" >&5
26610 echo "${ECHO_T}$ac_cv_var_altzone_declaration" >&6
26611 if eval "test \"\$ac_cv_var_altzone_declaration\" = yes"; then
26613 cat >>confdefs.h <<\_ACEOF
26614 #define HAVE_ALTZONE_DECLARATION 1
26625 cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
26626 echo "$as_me:$LINENO: checking for sa_family_t" >&5
26627 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
26628 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
26629 echo $ECHO_N "(cached) $ECHO_C" >&6
26631 cat >conftest.$ac_ext <<_ACEOF
26632 #line $LINENO "configure"
26633 #include "confdefs.h"
26634 #include <sys/types.h>
26636 #include <stdlib.h>
26637 #include <stddef.h>
26639 #include <sys/socket.h>
26640 #ifdef F77_DUMMY_MAIN
26641 # ifdef __cplusplus
26644 int F77_DUMMY_MAIN() { return 1; }
26654 rm -f conftest.$ac_objext
26655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26656 (eval $ac_compile) 2>&5
26658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659 (exit $ac_status); } &&
26660 { ac_try='test -s conftest.$ac_objext'
26661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26662 (eval $ac_try) 2>&5
26664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665 (exit $ac_status); }; }; then
26666 eval "ac_cv_type_$cv=yes"
26668 echo "$as_me: failed program was:" >&5
26669 cat conftest.$ac_ext >&5
26670 eval "ac_cv_type_$cv=no"
26672 rm -f conftest.$ac_objext conftest.$ac_ext
26674 ac_foo=`eval echo \\$ac_cv_type_$cv`
26675 echo "$as_me:$LINENO: result: $ac_foo" >&5
26676 echo "${ECHO_T}$ac_foo" >&6
26677 if test "$ac_foo" = yes; then
26678 ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
26680 echo "$as_me:$LINENO: checking for sa_family_t" >&5
26681 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
26682 if test "${ac_cv_type_sa_family_t+set}" = set; then
26683 echo $ECHO_N "(cached) $ECHO_C" >&6
26685 cat >conftest.$ac_ext <<_ACEOF
26686 #line $LINENO "configure"
26687 #include "confdefs.h"
26688 $ac_includes_default
26689 #ifdef F77_DUMMY_MAIN
26690 # ifdef __cplusplus
26693 int F77_DUMMY_MAIN() { return 1; }
26698 if ((sa_family_t *) 0)
26700 if (sizeof (sa_family_t))
26706 rm -f conftest.$ac_objext
26707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26708 (eval $ac_compile) 2>&5
26710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26711 (exit $ac_status); } &&
26712 { ac_try='test -s conftest.$ac_objext'
26713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26714 (eval $ac_try) 2>&5
26716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26717 (exit $ac_status); }; }; then
26718 ac_cv_type_sa_family_t=yes
26720 echo "$as_me: failed program was:" >&5
26721 cat conftest.$ac_ext >&5
26722 ac_cv_type_sa_family_t=no
26724 rm -f conftest.$ac_objext conftest.$ac_ext
26726 echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
26727 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
26728 if test $ac_cv_type_sa_family_t = yes; then
26730 cat >>confdefs.h <<_ACEOF
26731 #define HAVE_SA_FAMILY_T 1
26739 cat >>confdefs.h <<_ACEOF
26740 #define $ac_tr_hdr 1
26747 cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
26748 echo "$as_me:$LINENO: checking for socklen_t" >&5
26749 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
26750 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
26751 echo $ECHO_N "(cached) $ECHO_C" >&6
26753 cat >conftest.$ac_ext <<_ACEOF
26754 #line $LINENO "configure"
26755 #include "confdefs.h"
26756 #include <sys/types.h>
26758 #include <stdlib.h>
26759 #include <stddef.h>
26761 #include <sys/socket.h>
26762 #ifdef F77_DUMMY_MAIN
26763 # ifdef __cplusplus
26766 int F77_DUMMY_MAIN() { return 1; }
26776 rm -f conftest.$ac_objext
26777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26778 (eval $ac_compile) 2>&5
26780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781 (exit $ac_status); } &&
26782 { ac_try='test -s conftest.$ac_objext'
26783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26784 (eval $ac_try) 2>&5
26786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26787 (exit $ac_status); }; }; then
26788 eval "ac_cv_type_$cv=yes"
26790 echo "$as_me: failed program was:" >&5
26791 cat conftest.$ac_ext >&5
26792 eval "ac_cv_type_$cv=no"
26794 rm -f conftest.$ac_objext conftest.$ac_ext
26796 ac_foo=`eval echo \\$ac_cv_type_$cv`
26797 echo "$as_me:$LINENO: result: $ac_foo" >&5
26798 echo "${ECHO_T}$ac_foo" >&6
26799 if test "$ac_foo" = yes; then
26800 ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
26802 echo "$as_me:$LINENO: checking for socklen_t" >&5
26803 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
26804 if test "${ac_cv_type_socklen_t+set}" = set; then
26805 echo $ECHO_N "(cached) $ECHO_C" >&6
26807 cat >conftest.$ac_ext <<_ACEOF
26808 #line $LINENO "configure"
26809 #include "confdefs.h"
26810 $ac_includes_default
26811 #ifdef F77_DUMMY_MAIN
26812 # ifdef __cplusplus
26815 int F77_DUMMY_MAIN() { return 1; }
26820 if ((socklen_t *) 0)
26822 if (sizeof (socklen_t))
26828 rm -f conftest.$ac_objext
26829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26830 (eval $ac_compile) 2>&5
26832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833 (exit $ac_status); } &&
26834 { ac_try='test -s conftest.$ac_objext'
26835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26836 (eval $ac_try) 2>&5
26838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839 (exit $ac_status); }; }; then
26840 ac_cv_type_socklen_t=yes
26842 echo "$as_me: failed program was:" >&5
26843 cat conftest.$ac_ext >&5
26844 ac_cv_type_socklen_t=no
26846 rm -f conftest.$ac_objext conftest.$ac_ext
26848 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
26849 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
26850 if test $ac_cv_type_socklen_t = yes; then
26852 cat >>confdefs.h <<_ACEOF
26853 #define HAVE_SOCKLEN_T 1
26861 cat >>confdefs.h <<_ACEOF
26862 #define $ac_tr_hdr 1
26869 cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
26870 echo "$as_me:$LINENO: checking for struct sockaddr" >&5
26871 echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
26872 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
26873 echo $ECHO_N "(cached) $ECHO_C" >&6
26875 cat >conftest.$ac_ext <<_ACEOF
26876 #line $LINENO "configure"
26877 #include "confdefs.h"
26878 #include <sys/types.h>
26880 #include <stdlib.h>
26881 #include <stddef.h>
26883 #include <sys/socket.h>
26884 #ifdef F77_DUMMY_MAIN
26885 # ifdef __cplusplus
26888 int F77_DUMMY_MAIN() { return 1; }
26893 struct sockaddr foo;
26898 rm -f conftest.$ac_objext
26899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26900 (eval $ac_compile) 2>&5
26902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26903 (exit $ac_status); } &&
26904 { ac_try='test -s conftest.$ac_objext'
26905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26906 (eval $ac_try) 2>&5
26908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909 (exit $ac_status); }; }; then
26910 eval "ac_cv_type_$cv=yes"
26912 echo "$as_me: failed program was:" >&5
26913 cat conftest.$ac_ext >&5
26914 eval "ac_cv_type_$cv=no"
26916 rm -f conftest.$ac_objext conftest.$ac_ext
26918 ac_foo=`eval echo \\$ac_cv_type_$cv`
26919 echo "$as_me:$LINENO: result: $ac_foo" >&5
26920 echo "${ECHO_T}$ac_foo" >&6
26921 if test "$ac_foo" = yes; then
26922 ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
26924 echo "$as_me:$LINENO: checking for struct sockaddr" >&5
26925 echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
26926 if test "${ac_cv_type_struct_sockaddr+set}" = set; then
26927 echo $ECHO_N "(cached) $ECHO_C" >&6
26929 cat >conftest.$ac_ext <<_ACEOF
26930 #line $LINENO "configure"
26931 #include "confdefs.h"
26932 $ac_includes_default
26933 #ifdef F77_DUMMY_MAIN
26934 # ifdef __cplusplus
26937 int F77_DUMMY_MAIN() { return 1; }
26942 if ((struct sockaddr *) 0)
26944 if (sizeof (struct sockaddr))
26950 rm -f conftest.$ac_objext
26951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26952 (eval $ac_compile) 2>&5
26954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26955 (exit $ac_status); } &&
26956 { ac_try='test -s conftest.$ac_objext'
26957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26958 (eval $ac_try) 2>&5
26960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26961 (exit $ac_status); }; }; then
26962 ac_cv_type_struct_sockaddr=yes
26964 echo "$as_me: failed program was:" >&5
26965 cat conftest.$ac_ext >&5
26966 ac_cv_type_struct_sockaddr=no
26968 rm -f conftest.$ac_objext conftest.$ac_ext
26970 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr" >&5
26971 echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6
26972 if test $ac_cv_type_struct_sockaddr = yes; then
26974 cat >>confdefs.h <<_ACEOF
26975 #define HAVE_STRUCT_SOCKADDR 1
26983 cat >>confdefs.h <<_ACEOF
26984 #define $ac_tr_hdr 1
26991 cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
26992 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
26993 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
26994 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
26995 echo $ECHO_N "(cached) $ECHO_C" >&6
26997 cat >conftest.$ac_ext <<_ACEOF
26998 #line $LINENO "configure"
26999 #include "confdefs.h"
27000 #include <sys/types.h>
27002 #include <stdlib.h>
27003 #include <stddef.h>
27005 #include <sys/socket.h>
27006 #ifdef F77_DUMMY_MAIN
27007 # ifdef __cplusplus
27010 int F77_DUMMY_MAIN() { return 1; }
27015 struct sockaddr_storage foo;
27020 rm -f conftest.$ac_objext
27021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27022 (eval $ac_compile) 2>&5
27024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025 (exit $ac_status); } &&
27026 { ac_try='test -s conftest.$ac_objext'
27027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27028 (eval $ac_try) 2>&5
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); }; }; then
27032 eval "ac_cv_type_$cv=yes"
27034 echo "$as_me: failed program was:" >&5
27035 cat conftest.$ac_ext >&5
27036 eval "ac_cv_type_$cv=no"
27038 rm -f conftest.$ac_objext conftest.$ac_ext
27040 ac_foo=`eval echo \\$ac_cv_type_$cv`
27041 echo "$as_me:$LINENO: result: $ac_foo" >&5
27042 echo "${ECHO_T}$ac_foo" >&6
27043 if test "$ac_foo" = yes; then
27044 ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
27046 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
27047 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
27048 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
27049 echo $ECHO_N "(cached) $ECHO_C" >&6
27051 cat >conftest.$ac_ext <<_ACEOF
27052 #line $LINENO "configure"
27053 #include "confdefs.h"
27054 $ac_includes_default
27055 #ifdef F77_DUMMY_MAIN
27056 # ifdef __cplusplus
27059 int F77_DUMMY_MAIN() { return 1; }
27064 if ((struct sockaddr_storage *) 0)
27066 if (sizeof (struct sockaddr_storage))
27072 rm -f conftest.$ac_objext
27073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27074 (eval $ac_compile) 2>&5
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); } &&
27078 { ac_try='test -s conftest.$ac_objext'
27079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27080 (eval $ac_try) 2>&5
27082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27083 (exit $ac_status); }; }; then
27084 ac_cv_type_struct_sockaddr_storage=yes
27086 echo "$as_me: failed program was:" >&5
27087 cat conftest.$ac_ext >&5
27088 ac_cv_type_struct_sockaddr_storage=no
27090 rm -f conftest.$ac_objext conftest.$ac_ext
27092 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
27093 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
27094 if test $ac_cv_type_struct_sockaddr_storage = yes; then
27096 cat >>confdefs.h <<_ACEOF
27097 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
27105 cat >>confdefs.h <<_ACEOF
27106 #define $ac_tr_hdr 1
27113 cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
27114 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
27115 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
27116 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
27117 echo $ECHO_N "(cached) $ECHO_C" >&6
27119 cat >conftest.$ac_ext <<_ACEOF
27120 #line $LINENO "configure"
27121 #include "confdefs.h"
27122 #include <sys/types.h>
27124 #include <stdlib.h>
27125 #include <stddef.h>
27128 #ifdef F77_DUMMY_MAIN
27129 # ifdef __cplusplus
27132 int F77_DUMMY_MAIN() { return 1; }
27137 struct addrinfo foo;
27142 rm -f conftest.$ac_objext
27143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27144 (eval $ac_compile) 2>&5
27146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147 (exit $ac_status); } &&
27148 { ac_try='test -s conftest.$ac_objext'
27149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27150 (eval $ac_try) 2>&5
27152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153 (exit $ac_status); }; }; then
27154 eval "ac_cv_type_$cv=yes"
27156 echo "$as_me: failed program was:" >&5
27157 cat conftest.$ac_ext >&5
27158 eval "ac_cv_type_$cv=no"
27160 rm -f conftest.$ac_objext conftest.$ac_ext
27162 ac_foo=`eval echo \\$ac_cv_type_$cv`
27163 echo "$as_me:$LINENO: result: $ac_foo" >&5
27164 echo "${ECHO_T}$ac_foo" >&6
27165 if test "$ac_foo" = yes; then
27166 ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
27168 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
27169 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
27170 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
27171 echo $ECHO_N "(cached) $ECHO_C" >&6
27173 cat >conftest.$ac_ext <<_ACEOF
27174 #line $LINENO "configure"
27175 #include "confdefs.h"
27176 $ac_includes_default
27177 #ifdef F77_DUMMY_MAIN
27178 # ifdef __cplusplus
27181 int F77_DUMMY_MAIN() { return 1; }
27186 if ((struct addrinfo *) 0)
27188 if (sizeof (struct addrinfo))
27194 rm -f conftest.$ac_objext
27195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27196 (eval $ac_compile) 2>&5
27198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199 (exit $ac_status); } &&
27200 { ac_try='test -s conftest.$ac_objext'
27201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27202 (eval $ac_try) 2>&5
27204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205 (exit $ac_status); }; }; then
27206 ac_cv_type_struct_addrinfo=yes
27208 echo "$as_me: failed program was:" >&5
27209 cat conftest.$ac_ext >&5
27210 ac_cv_type_struct_addrinfo=no
27212 rm -f conftest.$ac_objext conftest.$ac_ext
27214 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
27215 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
27216 if test $ac_cv_type_struct_addrinfo = yes; then
27218 cat >>confdefs.h <<_ACEOF
27219 #define HAVE_STRUCT_ADDRINFO 1
27227 cat >>confdefs.h <<_ACEOF
27228 #define $ac_tr_hdr 1
27235 cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'`
27236 echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
27237 echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
27238 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
27239 echo $ECHO_N "(cached) $ECHO_C" >&6
27241 cat >conftest.$ac_ext <<_ACEOF
27242 #line $LINENO "configure"
27243 #include "confdefs.h"
27244 #include <sys/types.h>
27246 #include <stdlib.h>
27247 #include <stddef.h>
27249 #include <ifaddrs.h>
27250 #ifdef F77_DUMMY_MAIN
27251 # ifdef __cplusplus
27254 int F77_DUMMY_MAIN() { return 1; }
27259 struct ifaddrs foo;
27264 rm -f conftest.$ac_objext
27265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27266 (eval $ac_compile) 2>&5
27268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269 (exit $ac_status); } &&
27270 { ac_try='test -s conftest.$ac_objext'
27271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27272 (eval $ac_try) 2>&5
27274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275 (exit $ac_status); }; }; then
27276 eval "ac_cv_type_$cv=yes"
27278 echo "$as_me: failed program was:" >&5
27279 cat conftest.$ac_ext >&5
27280 eval "ac_cv_type_$cv=no"
27282 rm -f conftest.$ac_objext conftest.$ac_ext
27284 ac_foo=`eval echo \\$ac_cv_type_$cv`
27285 echo "$as_me:$LINENO: result: $ac_foo" >&5
27286 echo "${ECHO_T}$ac_foo" >&6
27287 if test "$ac_foo" = yes; then
27288 ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
27290 echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
27291 echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
27292 if test "${ac_cv_type_struct_ifaddrs+set}" = set; then
27293 echo $ECHO_N "(cached) $ECHO_C" >&6
27295 cat >conftest.$ac_ext <<_ACEOF
27296 #line $LINENO "configure"
27297 #include "confdefs.h"
27298 $ac_includes_default
27299 #ifdef F77_DUMMY_MAIN
27300 # ifdef __cplusplus
27303 int F77_DUMMY_MAIN() { return 1; }
27308 if ((struct ifaddrs *) 0)
27310 if (sizeof (struct ifaddrs))
27316 rm -f conftest.$ac_objext
27317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27318 (eval $ac_compile) 2>&5
27320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27321 (exit $ac_status); } &&
27322 { ac_try='test -s conftest.$ac_objext'
27323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27324 (eval $ac_try) 2>&5
27326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327 (exit $ac_status); }; }; then
27328 ac_cv_type_struct_ifaddrs=yes
27330 echo "$as_me: failed program was:" >&5
27331 cat conftest.$ac_ext >&5
27332 ac_cv_type_struct_ifaddrs=no
27334 rm -f conftest.$ac_objext conftest.$ac_ext
27336 echo "$as_me:$LINENO: result: $ac_cv_type_struct_ifaddrs" >&5
27337 echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6
27338 if test $ac_cv_type_struct_ifaddrs = yes; then
27340 cat >>confdefs.h <<_ACEOF
27341 #define HAVE_STRUCT_IFADDRS 1
27349 cat >>confdefs.h <<_ACEOF
27350 #define $ac_tr_hdr 1
27357 cv=`echo "struct iovec" | sed 'y%./+- %__p__%'`
27358 echo "$as_me:$LINENO: checking for struct iovec" >&5
27359 echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
27360 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
27361 echo $ECHO_N "(cached) $ECHO_C" >&6
27363 cat >conftest.$ac_ext <<_ACEOF
27364 #line $LINENO "configure"
27365 #include "confdefs.h"
27366 #include <sys/types.h>
27368 #include <stdlib.h>
27369 #include <stddef.h>
27372 #include <sys/types.h>
27373 #include <sys/uio.h>
27375 #ifdef F77_DUMMY_MAIN
27376 # ifdef __cplusplus
27379 int F77_DUMMY_MAIN() { return 1; }
27389 rm -f conftest.$ac_objext
27390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27391 (eval $ac_compile) 2>&5
27393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394 (exit $ac_status); } &&
27395 { ac_try='test -s conftest.$ac_objext'
27396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27397 (eval $ac_try) 2>&5
27399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400 (exit $ac_status); }; }; then
27401 eval "ac_cv_type_$cv=yes"
27403 echo "$as_me: failed program was:" >&5
27404 cat conftest.$ac_ext >&5
27405 eval "ac_cv_type_$cv=no"
27407 rm -f conftest.$ac_objext conftest.$ac_ext
27409 ac_foo=`eval echo \\$ac_cv_type_$cv`
27410 echo "$as_me:$LINENO: result: $ac_foo" >&5
27411 echo "${ECHO_T}$ac_foo" >&6
27412 if test "$ac_foo" = yes; then
27413 ac_tr_hdr=HAVE_`echo struct iovec | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
27415 echo "$as_me:$LINENO: checking for struct iovec" >&5
27416 echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
27417 if test "${ac_cv_type_struct_iovec+set}" = set; then
27418 echo $ECHO_N "(cached) $ECHO_C" >&6
27420 cat >conftest.$ac_ext <<_ACEOF
27421 #line $LINENO "configure"
27422 #include "confdefs.h"
27423 $ac_includes_default
27424 #ifdef F77_DUMMY_MAIN
27425 # ifdef __cplusplus
27428 int F77_DUMMY_MAIN() { return 1; }
27433 if ((struct iovec *) 0)
27435 if (sizeof (struct iovec))
27441 rm -f conftest.$ac_objext
27442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27443 (eval $ac_compile) 2>&5
27445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446 (exit $ac_status); } &&
27447 { ac_try='test -s conftest.$ac_objext'
27448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27449 (eval $ac_try) 2>&5
27451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452 (exit $ac_status); }; }; then
27453 ac_cv_type_struct_iovec=yes
27455 echo "$as_me: failed program was:" >&5
27456 cat conftest.$ac_ext >&5
27457 ac_cv_type_struct_iovec=no
27459 rm -f conftest.$ac_objext conftest.$ac_ext
27461 echo "$as_me:$LINENO: result: $ac_cv_type_struct_iovec" >&5
27462 echo "${ECHO_T}$ac_cv_type_struct_iovec" >&6
27463 if test $ac_cv_type_struct_iovec = yes; then
27465 cat >>confdefs.h <<_ACEOF
27466 #define HAVE_STRUCT_IOVEC 1
27474 cat >>confdefs.h <<_ACEOF
27475 #define $ac_tr_hdr 1
27482 cv=`echo "struct msghdr" | sed 'y%./+- %__p__%'`
27483 echo "$as_me:$LINENO: checking for struct msghdr" >&5
27484 echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
27485 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
27486 echo $ECHO_N "(cached) $ECHO_C" >&6
27488 cat >conftest.$ac_ext <<_ACEOF
27489 #line $LINENO "configure"
27490 #include "confdefs.h"
27491 #include <sys/types.h>
27493 #include <stdlib.h>
27494 #include <stddef.h>
27497 #include <sys/types.h>
27498 #include <sys/socket.h>
27500 #ifdef F77_DUMMY_MAIN
27501 # ifdef __cplusplus
27504 int F77_DUMMY_MAIN() { return 1; }
27514 rm -f conftest.$ac_objext
27515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27516 (eval $ac_compile) 2>&5
27518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519 (exit $ac_status); } &&
27520 { ac_try='test -s conftest.$ac_objext'
27521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27522 (eval $ac_try) 2>&5
27524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525 (exit $ac_status); }; }; then
27526 eval "ac_cv_type_$cv=yes"
27528 echo "$as_me: failed program was:" >&5
27529 cat conftest.$ac_ext >&5
27530 eval "ac_cv_type_$cv=no"
27532 rm -f conftest.$ac_objext conftest.$ac_ext
27534 ac_foo=`eval echo \\$ac_cv_type_$cv`
27535 echo "$as_me:$LINENO: result: $ac_foo" >&5
27536 echo "${ECHO_T}$ac_foo" >&6
27537 if test "$ac_foo" = yes; then
27538 ac_tr_hdr=HAVE_`echo struct msghdr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
27540 echo "$as_me:$LINENO: checking for struct msghdr" >&5
27541 echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
27542 if test "${ac_cv_type_struct_msghdr+set}" = set; then
27543 echo $ECHO_N "(cached) $ECHO_C" >&6
27545 cat >conftest.$ac_ext <<_ACEOF
27546 #line $LINENO "configure"
27547 #include "confdefs.h"
27548 $ac_includes_default
27549 #ifdef F77_DUMMY_MAIN
27550 # ifdef __cplusplus
27553 int F77_DUMMY_MAIN() { return 1; }
27558 if ((struct msghdr *) 0)
27560 if (sizeof (struct msghdr))
27566 rm -f conftest.$ac_objext
27567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27568 (eval $ac_compile) 2>&5
27570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571 (exit $ac_status); } &&
27572 { ac_try='test -s conftest.$ac_objext'
27573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27574 (eval $ac_try) 2>&5
27576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27577 (exit $ac_status); }; }; then
27578 ac_cv_type_struct_msghdr=yes
27580 echo "$as_me: failed program was:" >&5
27581 cat conftest.$ac_ext >&5
27582 ac_cv_type_struct_msghdr=no
27584 rm -f conftest.$ac_objext conftest.$ac_ext
27586 echo "$as_me:$LINENO: result: $ac_cv_type_struct_msghdr" >&5
27587 echo "${ECHO_T}$ac_cv_type_struct_msghdr" >&6
27588 if test $ac_cv_type_struct_msghdr = yes; then
27590 cat >>confdefs.h <<_ACEOF
27591 #define HAVE_STRUCT_MSGHDR 1
27599 cat >>confdefs.h <<_ACEOF
27600 #define $ac_tr_hdr 1
27608 echo "$as_me:$LINENO: checking for struct winsize" >&5
27609 echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6
27610 if test "${ac_cv_struct_winsize+set}" = set; then
27611 echo $ECHO_N "(cached) $ECHO_C" >&6
27614 ac_cv_struct_winsize=no
27615 for i in sys/termios.h sys/ioctl.h; do
27616 cat >conftest.$ac_ext <<_ACEOF
27617 #line $LINENO "configure"
27618 #include "confdefs.h"
27622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27623 egrep "struct[ ]*winsize" >/dev/null 2>&1; then
27624 ac_cv_struct_winsize=yes; break
27631 if test "$ac_cv_struct_winsize" = "yes"; then
27633 cat >>confdefs.h <<\_ACEOF
27634 #define HAVE_STRUCT_WINSIZE 1
27638 echo "$as_me:$LINENO: result: $ac_cv_struct_winsize" >&5
27639 echo "${ECHO_T}$ac_cv_struct_winsize" >&6
27640 cat >conftest.$ac_ext <<_ACEOF
27641 #line $LINENO "configure"
27642 #include "confdefs.h"
27643 #include <termios.h>
27646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27647 egrep "ws_xpixel" >/dev/null 2>&1; then
27649 cat >>confdefs.h <<\_ACEOF
27650 #define HAVE_WS_XPIXEL 1
27656 cat >conftest.$ac_ext <<_ACEOF
27657 #line $LINENO "configure"
27658 #include "confdefs.h"
27659 #include <termios.h>
27662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27663 egrep "ws_ypixel" >/dev/null 2>&1; then
27665 cat >>confdefs.h <<\_ACEOF
27666 #define HAVE_WS_YPIXEL 1
27676 echo "$as_me:$LINENO: checking for struct spwd" >&5
27677 echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6
27678 if test "${ac_cv_struct_spwd+set}" = set; then
27679 echo $ECHO_N "(cached) $ECHO_C" >&6
27682 cat >conftest.$ac_ext <<_ACEOF
27683 #line $LINENO "configure"
27684 #include "confdefs.h"
27686 #ifdef HAVE_SHADOW_H
27687 #include <shadow.h>
27689 #ifdef F77_DUMMY_MAIN
27690 # ifdef __cplusplus
27693 int F77_DUMMY_MAIN() { return 1; }
27703 rm -f conftest.$ac_objext
27704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27705 (eval $ac_compile) 2>&5
27707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708 (exit $ac_status); } &&
27709 { ac_try='test -s conftest.$ac_objext'
27710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27711 (eval $ac_try) 2>&5
27713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27714 (exit $ac_status); }; }; then
27715 ac_cv_struct_spwd=yes
27717 echo "$as_me: failed program was:" >&5
27718 cat conftest.$ac_ext >&5
27719 ac_cv_struct_spwd=no
27721 rm -f conftest.$ac_objext conftest.$ac_ext
27725 echo "$as_me:$LINENO: result: $ac_cv_struct_spwd" >&5
27726 echo "${ECHO_T}$ac_cv_struct_spwd" >&6
27728 if test "$ac_cv_struct_spwd" = "yes"; then
27730 cat >>confdefs.h <<\_ACEOF
27731 #define HAVE_STRUCT_SPWD 1
27738 LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
27741 LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"
27744 # Check whether --enable-otp or --disable-otp was given.
27745 if test "${enable_otp+set}" = set; then
27746 enableval="$enable_otp"
27749 if test "$enable_otp" = yes -a "$db_type" = unknown; then
27750 { { echo "$as_me:$LINENO: error: OTP requires a NDBM/DB compatible library" >&5
27751 echo "$as_me: error: OTP requires a NDBM/DB compatible library" >&2;}
27752 { (exit 1); exit 1; }; }
27754 if test "$enable_otp" != no; then
27755 if test "$db_type" != unknown; then
27761 if test "$enable_otp" = yes; then
27763 cat >>confdefs.h <<\_ACEOF
27767 LIB_otp='$(top_builddir)/lib/otp/libotp.la'
27770 echo "$as_me:$LINENO: checking whether to enable OTP library" >&5
27771 echo $ECHO_N "checking whether to enable OTP library... $ECHO_C" >&6
27772 echo "$as_me:$LINENO: result: $enable_otp" >&5
27773 echo "${ECHO_T}$enable_otp" >&6
27776 if test "$enable_otp" = yes; then
27786 # Check whether --enable-osfc2 or --disable-osfc2 was given.
27787 if test "${enable_osfc2+set}" = set; then
27788 enableval="$enable_osfc2"
27792 if test "$enable_osfc2" = yes; then
27794 cat >>confdefs.h <<\_ACEOF
27795 #define HAVE_OSFC2 1
27798 LIB_security=-lsecurity
27803 # Check whether --enable-mmap or --disable-mmap was given.
27804 if test "${enable_mmap+set}" = set; then
27805 enableval="$enable_mmap"
27808 if test "$enable_mmap" = "no"; then
27810 cat >>confdefs.h <<\_ACEOF
27816 # Extract the first word of "nroff", so it can be a program name with args.
27817 set dummy nroff; ac_word=$2
27818 echo "$as_me:$LINENO: checking for $ac_word" >&5
27819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27820 if test "${ac_cv_path_NROFF+set}" = set; then
27821 echo $ECHO_N "(cached) $ECHO_C" >&6
27825 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
27828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27829 for as_dir in $PATH
27832 test -z "$as_dir" && as_dir=.
27833 for ac_exec_ext in '' $ac_executable_extensions; do
27834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27835 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
27836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27845 NROFF=$ac_cv_path_NROFF
27847 if test -n "$NROFF"; then
27848 echo "$as_me:$LINENO: result: $NROFF" >&5
27849 echo "${ECHO_T}$NROFF" >&6
27851 echo "$as_me:$LINENO: result: no" >&5
27852 echo "${ECHO_T}no" >&6
27855 # Extract the first word of "groff", so it can be a program name with args.
27856 set dummy groff; ac_word=$2
27857 echo "$as_me:$LINENO: checking for $ac_word" >&5
27858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27859 if test "${ac_cv_path_GROFF+set}" = set; then
27860 echo $ECHO_N "(cached) $ECHO_C" >&6
27864 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
27867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27868 for as_dir in $PATH
27871 test -z "$as_dir" && as_dir=.
27872 for ac_exec_ext in '' $ac_executable_extensions; do
27873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27874 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
27875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27884 GROFF=$ac_cv_path_GROFF
27886 if test -n "$GROFF"; then
27887 echo "$as_me:$LINENO: result: $GROFF" >&5
27888 echo "${ECHO_T}$GROFF" >&6
27890 echo "$as_me:$LINENO: result: no" >&5
27891 echo "${ECHO_T}no" >&6
27894 echo "$as_me:$LINENO: checking how to format man pages" >&5
27895 echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6
27896 if test "${ac_cv_sys_man_format+set}" = set; then
27897 echo $ECHO_N "(cached) $ECHO_C" >&6
27899 cat > conftest.1 << END
27900 .Dd January 1, 1970
27908 if test "$NROFF" ; then
27909 for i in "-mdoc" "-mandoc"; do
27910 if "$NROFF" $i conftest.1 2> /dev/null | \
27911 grep Jan > /dev/null 2>&1 ; then
27912 ac_cv_sys_man_format="$NROFF $i"
27917 if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
27918 for i in "-mdoc" "-mandoc"; do
27919 if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
27920 grep Jan > /dev/null 2>&1 ; then
27921 ac_cv_sys_man_format="$GROFF -Tascii $i"
27926 if test "$ac_cv_sys_man_format"; then
27927 ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@"
27931 echo "$as_me:$LINENO: result: $ac_cv_sys_man_format" >&5
27932 echo "${ECHO_T}$ac_cv_sys_man_format" >&6
27933 if test "$ac_cv_sys_man_format"; then
27934 CATMAN="$ac_cv_sys_man_format"
27939 if test "$CATMAN"; then
27947 echo "$as_me:$LINENO: checking extension of pre-formatted manual pages" >&5
27948 echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6
27949 if test "${ac_cv_sys_catman_ext+set}" = set; then
27950 echo $ECHO_N "(cached) $ECHO_C" >&6
27952 if grep _suffix /etc/man.conf > /dev/null 2>&1; then
27953 ac_cv_sys_catman_ext=0
27955 ac_cv_sys_catman_ext=number
27959 echo "$as_me:$LINENO: result: $ac_cv_sys_catman_ext" >&5
27960 echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6
27961 if test "$ac_cv_sys_catman_ext" = number; then
27962 CATMANEXT='$$section'
27971 # Check whether --with-readline or --without-readline was given.
27972 if test "${with_readline+set}" = set; then
27973 withval="$with_readline"
27977 # Check whether --with-readline-lib or --without-readline-lib was given.
27978 if test "${with_readline_lib+set}" = set; then
27979 withval="$with_readline_lib"
27980 if test "$withval" = "yes" -o "$withval" = "no"; then
27981 { { echo "$as_me:$LINENO: error: No argument for --with-readline-lib" >&5
27982 echo "$as_me: error: No argument for --with-readline-lib" >&2;}
27983 { (exit 1); exit 1; }; }
27984 elif test "X$with_readline" = "X"; then
27989 # Check whether --with-readline-include or --without-readline-include was given.
27990 if test "${with_readline_include+set}" = set; then
27991 withval="$with_readline_include"
27992 if test "$withval" = "yes" -o "$withval" = "no"; then
27993 { { echo "$as_me:$LINENO: error: No argument for --with-readline-include" >&5
27994 echo "$as_me: error: No argument for --with-readline-include" >&2;}
27995 { (exit 1); exit 1; }; }
27996 elif test "X$with_readline" = "X"; then
28001 # Check whether --with-readline-config or --without-readline-config was given.
28002 if test "${with_readline_config+set}" = set; then
28003 withval="$with_readline_config"
28009 echo "$as_me:$LINENO: checking for readline" >&5
28010 echo $ECHO_N "checking for readline... $ECHO_C" >&6
28012 case "$with_readline" in
28015 *) d="$with_readline" ;;
28021 if test "$with_readline_include" = ""; then
28022 if test -d "$i/include/readline"; then
28023 header_dirs="$header_dirs $i/include/readline"
28025 if test -d "$i/include"; then
28026 header_dirs="$header_dirs $i/include"
28029 if test "$with_readline_lib" = ""; then
28030 if test -d "$i/lib$abilibdirext"; then
28031 lib_dirs="$lib_dirs $i/lib$abilibdirext"
28036 if test "$with_readline_include"; then
28037 header_dirs="$with_readline_include $header_dirs"
28039 if test "$with_readline_lib"; then
28040 lib_dirs="$with_readline_lib $lib_dirs"
28043 if test "$with_readline_config" = ""; then
28044 with_readline_config=''
28050 case "$with_readline_config" in
28054 readline_cflags="`$with_readline_config --cflags 2>&1`"
28055 readline_libs="`$with_readline_config --libs 2>&1`"
28060 if test "$with_readline" != no; then
28061 save_CFLAGS="$CFLAGS"
28063 if test "$readline_cflags" -a "$readline_libs"; then
28064 CFLAGS="$readline_cflags $save_CFLAGS"
28065 LIBS="$readline_libs $save_LIBS"
28066 cat >conftest.$ac_ext <<_ACEOF
28067 #line $LINENO "configure"
28068 #include "confdefs.h"
28070 #include <readline.h>
28071 #ifdef F77_DUMMY_MAIN
28072 # ifdef __cplusplus
28075 int F77_DUMMY_MAIN() { return 1; }
28085 rm -f conftest.$ac_objext conftest$ac_exeext
28086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28087 (eval $ac_link) 2>&5
28089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28090 (exit $ac_status); } &&
28091 { ac_try='test -s conftest$ac_exeext'
28092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28093 (eval $ac_try) 2>&5
28095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28096 (exit $ac_status); }; }; then
28098 INCLUDE_readline="$readline_cflags"
28099 LIB_readline="$readline_libs"
28100 echo "$as_me:$LINENO: result: from $with_readline_config" >&5
28101 echo "${ECHO_T}from $with_readline_config" >&6
28104 echo "$as_me: failed program was:" >&5
28105 cat conftest.$ac_ext >&5
28107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28109 if test "$found" = no; then
28111 for i in $header_dirs; do
28112 CFLAGS="-I$i $save_CFLAGS"
28113 cat >conftest.$ac_ext <<_ACEOF
28114 #line $LINENO "configure"
28115 #include "confdefs.h"
28117 #include <readline.h>
28118 #ifdef F77_DUMMY_MAIN
28119 # ifdef __cplusplus
28122 int F77_DUMMY_MAIN() { return 1; }
28132 rm -f conftest.$ac_objext
28133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28134 (eval $ac_compile) 2>&5
28136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137 (exit $ac_status); } &&
28138 { ac_try='test -s conftest.$ac_objext'
28139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28140 (eval $ac_try) 2>&5
28142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28143 (exit $ac_status); }; }; then
28146 echo "$as_me: failed program was:" >&5
28147 cat conftest.$ac_ext >&5
28149 rm -f conftest.$ac_objext conftest.$ac_ext
28151 for i in $lib_dirs; do
28152 LIBS="-L$i -lreadline $save_LIBS"
28153 cat >conftest.$ac_ext <<_ACEOF
28154 #line $LINENO "configure"
28155 #include "confdefs.h"
28157 #include <readline.h>
28158 #ifdef F77_DUMMY_MAIN
28159 # ifdef __cplusplus
28162 int F77_DUMMY_MAIN() { return 1; }
28172 rm -f conftest.$ac_objext conftest$ac_exeext
28173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28174 (eval $ac_link) 2>&5
28176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177 (exit $ac_status); } &&
28178 { ac_try='test -s conftest$ac_exeext'
28179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28180 (eval $ac_try) 2>&5
28182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183 (exit $ac_status); }; }; then
28186 echo "$as_me: failed program was:" >&5
28187 cat conftest.$ac_ext >&5
28189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28191 if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
28192 INCLUDE_readline="-I$ires"
28193 LIB_readline="-L$lres -lreadline "
28195 echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
28196 echo "${ECHO_T}headers $ires, libraries $lres" >&6
28199 CFLAGS="$save_CFLAGS"
28203 if test "$found" = yes; then
28205 cat >>confdefs.h <<_ACEOF
28214 echo "$as_me:$LINENO: result: no" >&5
28215 echo "${ECHO_T}no" >&6
28224 # Check whether --with-hesiod or --without-hesiod was given.
28225 if test "${with_hesiod+set}" = set; then
28226 withval="$with_hesiod"
28230 # Check whether --with-hesiod-lib or --without-hesiod-lib was given.
28231 if test "${with_hesiod_lib+set}" = set; then
28232 withval="$with_hesiod_lib"
28233 if test "$withval" = "yes" -o "$withval" = "no"; then
28234 { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-lib" >&5
28235 echo "$as_me: error: No argument for --with-hesiod-lib" >&2;}
28236 { (exit 1); exit 1; }; }
28237 elif test "X$with_hesiod" = "X"; then
28242 # Check whether --with-hesiod-include or --without-hesiod-include was given.
28243 if test "${with_hesiod_include+set}" = set; then
28244 withval="$with_hesiod_include"
28245 if test "$withval" = "yes" -o "$withval" = "no"; then
28246 { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-include" >&5
28247 echo "$as_me: error: No argument for --with-hesiod-include" >&2;}
28248 { (exit 1); exit 1; }; }
28249 elif test "X$with_hesiod" = "X"; then
28254 # Check whether --with-hesiod-config or --without-hesiod-config was given.
28255 if test "${with_hesiod_config+set}" = set; then
28256 withval="$with_hesiod_config"
28262 echo "$as_me:$LINENO: checking for hesiod" >&5
28263 echo $ECHO_N "checking for hesiod... $ECHO_C" >&6
28265 case "$with_hesiod" in
28268 *) d="$with_hesiod" ;;
28274 if test "$with_hesiod_include" = ""; then
28275 if test -d "$i/include/hesiod"; then
28276 header_dirs="$header_dirs $i/include/hesiod"
28278 if test -d "$i/include"; then
28279 header_dirs="$header_dirs $i/include"
28282 if test "$with_hesiod_lib" = ""; then
28283 if test -d "$i/lib$abilibdirext"; then
28284 lib_dirs="$lib_dirs $i/lib$abilibdirext"
28289 if test "$with_hesiod_include"; then
28290 header_dirs="$with_hesiod_include $header_dirs"
28292 if test "$with_hesiod_lib"; then
28293 lib_dirs="$with_hesiod_lib $lib_dirs"
28296 if test "$with_hesiod_config" = ""; then
28297 with_hesiod_config=''
28303 case "$with_hesiod_config" in
28307 hesiod_cflags="`$with_hesiod_config --cflags 2>&1`"
28308 hesiod_libs="`$with_hesiod_config --libs 2>&1`"
28313 if test "$with_hesiod" != no; then
28314 save_CFLAGS="$CFLAGS"
28316 if test "$hesiod_cflags" -a "$hesiod_libs"; then
28317 CFLAGS="$hesiod_cflags $save_CFLAGS"
28318 LIBS="$hesiod_libs $save_LIBS"
28319 cat >conftest.$ac_ext <<_ACEOF
28320 #line $LINENO "configure"
28321 #include "confdefs.h"
28322 #include <hesiod.h>
28323 #ifdef F77_DUMMY_MAIN
28324 # ifdef __cplusplus
28327 int F77_DUMMY_MAIN() { return 1; }
28337 rm -f conftest.$ac_objext conftest$ac_exeext
28338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28339 (eval $ac_link) 2>&5
28341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342 (exit $ac_status); } &&
28343 { ac_try='test -s conftest$ac_exeext'
28344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28345 (eval $ac_try) 2>&5
28347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28348 (exit $ac_status); }; }; then
28350 INCLUDE_hesiod="$hesiod_cflags"
28351 LIB_hesiod="$hesiod_libs"
28352 echo "$as_me:$LINENO: result: from $with_hesiod_config" >&5
28353 echo "${ECHO_T}from $with_hesiod_config" >&6
28356 echo "$as_me: failed program was:" >&5
28357 cat conftest.$ac_ext >&5
28359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28361 if test "$found" = no; then
28363 for i in $header_dirs; do
28364 CFLAGS="-I$i $save_CFLAGS"
28365 cat >conftest.$ac_ext <<_ACEOF
28366 #line $LINENO "configure"
28367 #include "confdefs.h"
28368 #include <hesiod.h>
28369 #ifdef F77_DUMMY_MAIN
28370 # ifdef __cplusplus
28373 int F77_DUMMY_MAIN() { return 1; }
28383 rm -f conftest.$ac_objext
28384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28385 (eval $ac_compile) 2>&5
28387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388 (exit $ac_status); } &&
28389 { ac_try='test -s conftest.$ac_objext'
28390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28391 (eval $ac_try) 2>&5
28393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394 (exit $ac_status); }; }; then
28397 echo "$as_me: failed program was:" >&5
28398 cat conftest.$ac_ext >&5
28400 rm -f conftest.$ac_objext conftest.$ac_ext
28402 for i in $lib_dirs; do
28403 LIBS="-L$i -lhesiod $save_LIBS"
28404 cat >conftest.$ac_ext <<_ACEOF
28405 #line $LINENO "configure"
28406 #include "confdefs.h"
28407 #include <hesiod.h>
28408 #ifdef F77_DUMMY_MAIN
28409 # ifdef __cplusplus
28412 int F77_DUMMY_MAIN() { return 1; }
28422 rm -f conftest.$ac_objext conftest$ac_exeext
28423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28424 (eval $ac_link) 2>&5
28426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28427 (exit $ac_status); } &&
28428 { ac_try='test -s conftest$ac_exeext'
28429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28430 (eval $ac_try) 2>&5
28432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433 (exit $ac_status); }; }; then
28436 echo "$as_me: failed program was:" >&5
28437 cat conftest.$ac_ext >&5
28439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28441 if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
28442 INCLUDE_hesiod="-I$ires"
28443 LIB_hesiod="-L$lres -lhesiod "
28445 echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
28446 echo "${ECHO_T}headers $ires, libraries $lres" >&6
28449 CFLAGS="$save_CFLAGS"
28453 if test "$found" = yes; then
28455 cat >>confdefs.h <<_ACEOF
28464 echo "$as_me:$LINENO: result: no" >&5
28465 echo "${ECHO_T}no" >&6
28473 # Check whether --enable-bigendian or --disable-bigendian was given.
28474 if test "${enable_bigendian+set}" = set; then
28475 enableval="$enable_bigendian"
28476 krb_cv_c_bigendian=yes
28478 # Check whether --enable-littleendian or --disable-littleendian was given.
28479 if test "${enable_littleendian+set}" = set; then
28480 enableval="$enable_littleendian"
28481 krb_cv_c_bigendian=no
28483 echo "$as_me:$LINENO: checking whether byte order is known at compile time" >&5
28484 echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6
28485 if test "${krb_cv_c_bigendian_compile+set}" = set; then
28486 echo $ECHO_N "(cached) $ECHO_C" >&6
28488 cat >conftest.$ac_ext <<_ACEOF
28489 #line $LINENO "configure"
28490 #include "confdefs.h"
28492 #include <sys/types.h>
28493 #include <sys/param.h>
28494 #ifdef F77_DUMMY_MAIN
28495 # ifdef __cplusplus
28498 int F77_DUMMY_MAIN() { return 1; }
28504 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
28505 bogus endian macros
28511 rm -f conftest.$ac_objext
28512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28513 (eval $ac_compile) 2>&5
28515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28516 (exit $ac_status); } &&
28517 { ac_try='test -s conftest.$ac_objext'
28518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28519 (eval $ac_try) 2>&5
28521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28522 (exit $ac_status); }; }; then
28523 krb_cv_c_bigendian_compile=yes
28525 echo "$as_me: failed program was:" >&5
28526 cat conftest.$ac_ext >&5
28527 krb_cv_c_bigendian_compile=no
28529 rm -f conftest.$ac_objext conftest.$ac_ext
28531 echo "$as_me:$LINENO: result: $krb_cv_c_bigendian_compile" >&5
28532 echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6
28533 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
28534 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
28535 if test "${krb_cv_c_bigendian+set}" = set; then
28536 echo $ECHO_N "(cached) $ECHO_C" >&6
28539 if test "$krb_cv_c_bigendian_compile" = "yes"; then
28540 cat >conftest.$ac_ext <<_ACEOF
28541 #line $LINENO "configure"
28542 #include "confdefs.h"
28544 #include <sys/types.h>
28545 #include <sys/param.h>
28546 #ifdef F77_DUMMY_MAIN
28547 # ifdef __cplusplus
28550 int F77_DUMMY_MAIN() { return 1; }
28556 #if BYTE_ORDER != BIG_ENDIAN
28563 rm -f conftest.$ac_objext
28564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28565 (eval $ac_compile) 2>&5
28567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568 (exit $ac_status); } &&
28569 { ac_try='test -s conftest.$ac_objext'
28570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28571 (eval $ac_try) 2>&5
28573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28574 (exit $ac_status); }; }; then
28575 krb_cv_c_bigendian=yes
28577 echo "$as_me: failed program was:" >&5
28578 cat conftest.$ac_ext >&5
28579 krb_cv_c_bigendian=no
28581 rm -f conftest.$ac_objext conftest.$ac_ext
28583 if test "$cross_compiling" = yes; then
28584 { { echo "$as_me:$LINENO: error: specify either --enable-bigendian or --enable-littleendian" >&5
28585 echo "$as_me: error: specify either --enable-bigendian or --enable-littleendian" >&2;}
28586 { (exit 1); exit 1; }; }
28588 cat >conftest.$ac_ext <<_ACEOF
28589 #line $LINENO "configure"
28590 #include "confdefs.h"
28592 /* Are we little or big endian? From Harbison&Steele. */
28596 char c[sizeof (long)];
28599 exit (u.c[sizeof (long) - 1] == 1);
28602 rm -f conftest$ac_exeext
28603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28604 (eval $ac_link) 2>&5
28606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28609 (eval $ac_try) 2>&5
28611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612 (exit $ac_status); }; }; then
28613 krb_cv_c_bigendian=no
28615 echo "$as_me: program exited with status $ac_status" >&5
28616 echo "$as_me: failed program was:" >&5
28617 cat conftest.$ac_ext >&5
28618 ( exit $ac_status )
28619 krb_cv_c_bigendian=yes
28621 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28626 echo "$as_me:$LINENO: result: $krb_cv_c_bigendian" >&5
28627 echo "${ECHO_T}$krb_cv_c_bigendian" >&6
28628 if test "$krb_cv_c_bigendian" = "yes"; then
28630 cat >>confdefs.h <<\_ACEOF
28631 #define WORDS_BIGENDIAN 1
28634 if test "$krb_cv_c_bigendian_compile" = "yes"; then
28636 cat >>confdefs.h <<\_ACEOF
28637 #define ENDIANESS_IN_SYS_PARAM_H 1
28643 echo "$as_me:$LINENO: checking for inline" >&5
28644 echo $ECHO_N "checking for inline... $ECHO_C" >&6
28645 if test "${ac_cv_c_inline+set}" = set; then
28646 echo $ECHO_N "(cached) $ECHO_C" >&6
28649 for ac_kw in inline __inline__ __inline; do
28650 cat >conftest.$ac_ext <<_ACEOF
28651 #line $LINENO "configure"
28652 #include "confdefs.h"
28653 #ifndef __cplusplus
28654 static $ac_kw int static_foo () {return 0; }
28655 $ac_kw int foo () {return 0; }
28659 rm -f conftest.$ac_objext
28660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28661 (eval $ac_compile) 2>&5
28663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28664 (exit $ac_status); } &&
28665 { ac_try='test -s conftest.$ac_objext'
28666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28667 (eval $ac_try) 2>&5
28669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28670 (exit $ac_status); }; }; then
28671 ac_cv_c_inline=$ac_kw; break
28673 echo "$as_me: failed program was:" >&5
28674 cat conftest.$ac_ext >&5
28676 rm -f conftest.$ac_objext conftest.$ac_ext
28680 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
28681 echo "${ECHO_T}$ac_cv_c_inline" >&6
28682 case $ac_cv_c_inline in
28685 cat >>confdefs.h <<\_ACEOF
28689 *) cat >>confdefs.h <<_ACEOF
28690 #define inline $ac_cv_c_inline
28700 echo "$as_me:$LINENO: checking for dlopen" >&5
28701 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
28702 if test "${ac_cv_funclib_dlopen+set}" = set; then
28703 echo $ECHO_N "(cached) $ECHO_C" >&6
28706 if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
28707 ac_save_LIBS="$LIBS"
28708 for ac_lib in "" dl; do
28714 *) ac_lib="-l$ac_lib" ;;
28716 LIBS=" $ac_lib $ac_save_LIBS"
28717 cat >conftest.$ac_ext <<_ACEOF
28718 #line $LINENO "configure"
28719 #include "confdefs.h"
28721 #ifdef F77_DUMMY_MAIN
28722 # ifdef __cplusplus
28725 int F77_DUMMY_MAIN() { return 1; }
28735 rm -f conftest.$ac_objext conftest$ac_exeext
28736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28737 (eval $ac_link) 2>&5
28739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740 (exit $ac_status); } &&
28741 { ac_try='test -s conftest$ac_exeext'
28742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28743 (eval $ac_try) 2>&5
28745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746 (exit $ac_status); }; }; then
28747 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
28749 echo "$as_me: failed program was:" >&5
28750 cat conftest.$ac_ext >&5
28752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28754 eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
28755 LIBS="$ac_save_LIBS"
28761 eval "ac_res=\$ac_cv_funclib_dlopen"
28765 for ac_func in dlopen
28767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28768 echo "$as_me:$LINENO: checking for $ac_func" >&5
28769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28770 if eval "test \"\${$as_ac_var+set}\" = set"; then
28771 echo $ECHO_N "(cached) $ECHO_C" >&6
28773 cat >conftest.$ac_ext <<_ACEOF
28774 #line $LINENO "configure"
28775 #include "confdefs.h"
28776 /* System header to define __stub macros and hopefully few prototypes,
28777 which can conflict with char $ac_func (); below. */
28778 #include <assert.h>
28779 /* Override any gcc2 internal prototype to avoid an error. */
28783 /* We use char because int might match the return type of a gcc2
28784 builtin and then its argument prototype would still apply. */
28788 #ifdef F77_DUMMY_MAIN
28789 # ifdef __cplusplus
28792 int F77_DUMMY_MAIN() { return 1; }
28797 /* The GNU C library defines this for functions which it implements
28798 to always fail with ENOSYS. Some functions are actually named
28799 something starting with __ and the normal name is an alias. */
28800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28810 rm -f conftest.$ac_objext conftest$ac_exeext
28811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28812 (eval $ac_link) 2>&5
28814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815 (exit $ac_status); } &&
28816 { ac_try='test -s conftest$ac_exeext'
28817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28818 (eval $ac_try) 2>&5
28820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28821 (exit $ac_status); }; }; then
28822 eval "$as_ac_var=yes"
28824 echo "$as_me: failed program was:" >&5
28825 cat conftest.$ac_ext >&5
28826 eval "$as_ac_var=no"
28828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28832 if test `eval echo '${'$as_ac_var'}'` = yes; then
28833 cat >>confdefs.h <<_ACEOF
28834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28842 eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
28843 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
28844 eval "LIB_dlopen=$ac_res"
28848 eval "ac_cv_func_dlopen=yes"
28850 cat >>confdefs.h <<_ACEOF
28851 #define $ac_tr_func 1
28854 echo "$as_me:$LINENO: result: yes" >&5
28855 echo "${ECHO_T}yes" >&6
28858 eval "ac_cv_func_dlopen=no"
28860 echo "$as_me:$LINENO: result: no" >&5
28861 echo "${ECHO_T}no" >&6
28864 eval "ac_cv_func_dlopen=yes"
28865 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
28866 cat >>confdefs.h <<_ACEOF
28867 #define $ac_tr_func 1
28870 cat >>confdefs.h <<_ACEOF
28871 #define $ac_tr_lib 1
28874 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
28875 echo "${ECHO_T}yes, in $ac_res" >&6
28882 if test "$ac_cv_funclib_dlopen" != no; then
28884 HAVE_DLOPEN_FALSE='#'
28886 HAVE_DLOPEN_TRUE='#'
28898 *-*-aix4*|*-*-aix5*)
28905 if test "$aix" != no; then
28914 if test "$aix" = 4; then
28924 # Check whether --enable-dynamic-afs or --disable-dynamic-afs was given.
28925 if test "${enable_dynamic_afs+set}" = set; then
28926 enableval="$enable_dynamic_afs"
28930 if test "$aix" != no; then
28931 if test "$enable_dynamic_afs" != no; then
28933 if test "$ac_cv_func_dlopen" = no; then
28937 echo "$as_me:$LINENO: checking for loadquery" >&5
28938 echo $ECHO_N "checking for loadquery... $ECHO_C" >&6
28939 if test "${ac_cv_funclib_loadquery+set}" = set; then
28940 echo $ECHO_N "(cached) $ECHO_C" >&6
28943 if eval "test \"\$ac_cv_func_loadquery\" != yes" ; then
28944 ac_save_LIBS="$LIBS"
28945 for ac_lib in "" ld; do
28951 *) ac_lib="-l$ac_lib" ;;
28953 LIBS=" $ac_lib $ac_save_LIBS"
28954 cat >conftest.$ac_ext <<_ACEOF
28955 #line $LINENO "configure"
28956 #include "confdefs.h"
28958 #ifdef F77_DUMMY_MAIN
28959 # ifdef __cplusplus
28962 int F77_DUMMY_MAIN() { return 1; }
28972 rm -f conftest.$ac_objext conftest$ac_exeext
28973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28974 (eval $ac_link) 2>&5
28976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977 (exit $ac_status); } &&
28978 { ac_try='test -s conftest$ac_exeext'
28979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28980 (eval $ac_try) 2>&5
28982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28983 (exit $ac_status); }; }; then
28984 eval "if test -n \"$ac_lib\";then ac_cv_funclib_loadquery=$ac_lib; else ac_cv_funclib_loadquery=yes; fi";break
28986 echo "$as_me: failed program was:" >&5
28987 cat conftest.$ac_ext >&5
28989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28991 eval "ac_cv_funclib_loadquery=\${ac_cv_funclib_loadquery-no}"
28992 LIBS="$ac_save_LIBS"
28998 eval "ac_res=\$ac_cv_funclib_loadquery"
29002 for ac_func in loadquery
29004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29005 echo "$as_me:$LINENO: checking for $ac_func" >&5
29006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29007 if eval "test \"\${$as_ac_var+set}\" = set"; then
29008 echo $ECHO_N "(cached) $ECHO_C" >&6
29010 cat >conftest.$ac_ext <<_ACEOF
29011 #line $LINENO "configure"
29012 #include "confdefs.h"
29013 /* System header to define __stub macros and hopefully few prototypes,
29014 which can conflict with char $ac_func (); below. */
29015 #include <assert.h>
29016 /* Override any gcc2 internal prototype to avoid an error. */
29020 /* We use char because int might match the return type of a gcc2
29021 builtin and then its argument prototype would still apply. */
29025 #ifdef F77_DUMMY_MAIN
29026 # ifdef __cplusplus
29029 int F77_DUMMY_MAIN() { return 1; }
29034 /* The GNU C library defines this for functions which it implements
29035 to always fail with ENOSYS. Some functions are actually named
29036 something starting with __ and the normal name is an alias. */
29037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29047 rm -f conftest.$ac_objext conftest$ac_exeext
29048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29049 (eval $ac_link) 2>&5
29051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29052 (exit $ac_status); } &&
29053 { ac_try='test -s conftest$ac_exeext'
29054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29055 (eval $ac_try) 2>&5
29057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058 (exit $ac_status); }; }; then
29059 eval "$as_ac_var=yes"
29061 echo "$as_me: failed program was:" >&5
29062 cat conftest.$ac_ext >&5
29063 eval "$as_ac_var=no"
29065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29068 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29069 if test `eval echo '${'$as_ac_var'}'` = yes; then
29070 cat >>confdefs.h <<_ACEOF
29071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29079 eval "ac_tr_func=HAVE_`echo loadquery | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29080 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29081 eval "LIB_loadquery=$ac_res"
29085 eval "ac_cv_func_loadquery=yes"
29086 eval "LIB_loadquery="
29087 cat >>confdefs.h <<_ACEOF
29088 #define $ac_tr_func 1
29091 echo "$as_me:$LINENO: result: yes" >&5
29092 echo "${ECHO_T}yes" >&6
29095 eval "ac_cv_func_loadquery=no"
29096 eval "LIB_loadquery="
29097 echo "$as_me:$LINENO: result: no" >&5
29098 echo "${ECHO_T}no" >&6
29101 eval "ac_cv_func_loadquery=yes"
29102 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29103 cat >>confdefs.h <<_ACEOF
29104 #define $ac_tr_func 1
29107 cat >>confdefs.h <<_ACEOF
29108 #define $ac_tr_lib 1
29111 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
29112 echo "${ECHO_T}yes, in $ac_res" >&6
29118 if test "$ac_cv_func_dlopen" != no; then
29119 AIX_EXTRA_KAFS='$(LIB_dlopen)'
29120 elif test "$ac_cv_func_loadquery" != no; then
29121 AIX_EXTRA_KAFS='$(LIB_loadquery)'
29123 { echo "$as_me:$LINENO: not using dynloaded AFS library" >&5
29124 echo "$as_me: not using dynloaded AFS library" >&6;}
29126 enable_dynamic_afs=no
29135 if test "$enable_dynamic_afs" != no; then
29136 AIX_DYNAMIC_AFS_TRUE=
29137 AIX_DYNAMIC_AFS_FALSE='#'
29139 AIX_DYNAMIC_AFS_TRUE='#'
29140 AIX_DYNAMIC_AFS_FALSE=
29152 cat >>confdefs.h <<\_ACEOF
29164 if test "$irix" != no; then
29191 if test "$sunos" != no; then
29193 cat >>confdefs.h <<_ACEOF
29194 #define SunOS $sunos
29200 echo "$as_me:$LINENO: checking for X" >&5
29201 echo $ECHO_N "checking for X... $ECHO_C" >&6
29204 # Check whether --with-x or --without-x was given.
29205 if test "${with_x+set}" = set; then
29209 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29210 if test "x$with_x" = xno; then
29211 # The user explicitly disabled X.
29214 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
29215 # Both variables are already set.
29218 if test "${ac_cv_have_x+set}" = set; then
29219 echo $ECHO_N "(cached) $ECHO_C" >&6
29221 # One or both of the vars are not set, and there is no cached value.
29222 ac_x_includes=no ac_x_libraries=no
29223 rm -fr conftest.dir
29224 if mkdir conftest.dir; then
29226 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
29227 cat >Imakefile <<'_ACEOF'
29229 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
29231 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
29232 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29233 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
29234 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29235 for ac_extension in a so sl; do
29236 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
29237 test -f $ac_im_libdir/libX11.$ac_extension; then
29238 ac_im_usrlibdir=$ac_im_libdir; break
29241 # Screen out bogus values from the imake configuration. They are
29242 # bogus both because they are the default anyway, and because
29243 # using them would break gcc on systems where it needs fixed includes.
29244 case $ac_im_incroot in
29246 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29248 case $ac_im_usrlibdir in
29249 /usr/lib | /lib) ;;
29250 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29254 rm -fr conftest.dir
29257 # Standard set of common directories for X headers.
29258 # Check X11 before X11Rn because it is often a symlink to the current release.
29270 /usr/local/X11/include
29271 /usr/local/X11R6/include
29272 /usr/local/X11R5/include
29273 /usr/local/X11R4/include
29275 /usr/local/include/X11
29276 /usr/local/include/X11R6
29277 /usr/local/include/X11R5
29278 /usr/local/include/X11R4
29282 /usr/XFree86/include/X11
29286 /usr/unsupported/include
29287 /usr/athena/include
29288 /usr/local/x11r5/include
29289 /usr/lpp/Xamples/include
29291 /usr/openwin/include
29292 /usr/openwin/share/include'
29294 if test "$ac_x_includes" = no; then
29295 # Guess where to find include files, by looking for Intrinsic.h.
29296 # First, try using that file with no special directory specified.
29297 cat >conftest.$ac_ext <<_ACEOF
29298 #line $LINENO "configure"
29299 #include "confdefs.h"
29300 #include <X11/Intrinsic.h>
29302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29305 egrep -v '^ *\+' conftest.er1 >conftest.err
29307 cat conftest.err >&5
29308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309 (exit $ac_status); } >/dev/null; then
29310 if test -s conftest.err; then
29311 ac_cpp_err=$ac_c_preproc_warn_flag
29318 if test -z "$ac_cpp_err"; then
29319 # We can compile using X headers with no special include directory.
29322 echo "$as_me: failed program was:" >&5
29323 cat conftest.$ac_ext >&5
29324 for ac_dir in $ac_x_header_dirs; do
29325 if test -r "$ac_dir/X11/Intrinsic.h"; then
29326 ac_x_includes=$ac_dir
29331 rm -f conftest.err conftest.$ac_ext
29332 fi # $ac_x_includes = no
29334 if test "$ac_x_libraries" = no; then
29335 # Check for the libraries.
29336 # See if we find them without any special options.
29337 # Don't add to $LIBS permanently.
29340 cat >conftest.$ac_ext <<_ACEOF
29341 #line $LINENO "configure"
29342 #include "confdefs.h"
29343 #include <X11/Intrinsic.h>
29344 #ifdef F77_DUMMY_MAIN
29345 # ifdef __cplusplus
29348 int F77_DUMMY_MAIN() { return 1; }
29358 rm -f conftest.$ac_objext conftest$ac_exeext
29359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29360 (eval $ac_link) 2>&5
29362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29363 (exit $ac_status); } &&
29364 { ac_try='test -s conftest$ac_exeext'
29365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29366 (eval $ac_try) 2>&5
29368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29369 (exit $ac_status); }; }; then
29371 # We can link X programs with no special library path.
29374 echo "$as_me: failed program was:" >&5
29375 cat conftest.$ac_ext >&5
29377 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29379 # Don't even attempt the hair of trying to link an X program!
29380 for ac_extension in a so sl; do
29381 if test -r $ac_dir/libXt.$ac_extension; then
29382 ac_x_libraries=$ac_dir
29388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29389 fi # $ac_x_libraries = no
29391 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
29392 # Didn't find X anywhere. Cache the known absence of X.
29393 ac_cv_have_x="have_x=no"
29395 # Record where we found X for the cache.
29396 ac_cv_have_x="have_x=yes \
29397 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
29402 eval "$ac_cv_have_x"
29405 if test "$have_x" != yes; then
29406 echo "$as_me:$LINENO: result: $have_x" >&5
29407 echo "${ECHO_T}$have_x" >&6
29410 # If each of the values was on the command line, it overrides each guess.
29411 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29412 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29413 # Update the cache value to reflect the command line values.
29414 ac_cv_have_x="have_x=yes \
29415 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
29416 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29417 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
29421 if test "$no_x" = yes; then
29422 # Not all programs may use this symbol, but it does not hurt to define it.
29424 cat >>confdefs.h <<\_ACEOF
29425 #define X_DISPLAY_MISSING 1
29428 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29430 if test -n "$x_includes"; then
29431 X_CFLAGS="$X_CFLAGS -I$x_includes"
29434 # It would also be nice to do this for all -L options, not just this one.
29435 if test -n "$x_libraries"; then
29436 X_LIBS="$X_LIBS -L$x_libraries"
29437 # For Solaris; some versions of Sun CC require a space after -R and
29438 # others require no space. Words are not sufficient . . . .
29439 case `(uname -sr) 2>/dev/null` in
29441 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29442 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
29443 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29444 cat >conftest.$ac_ext <<_ACEOF
29445 #line $LINENO "configure"
29446 #include "confdefs.h"
29448 #ifdef F77_DUMMY_MAIN
29449 # ifdef __cplusplus
29452 int F77_DUMMY_MAIN() { return 1; }
29462 rm -f conftest.$ac_objext conftest$ac_exeext
29463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29464 (eval $ac_link) 2>&5
29466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29467 (exit $ac_status); } &&
29468 { ac_try='test -s conftest$ac_exeext'
29469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29470 (eval $ac_try) 2>&5
29472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473 (exit $ac_status); }; }; then
29476 echo "$as_me: failed program was:" >&5
29477 cat conftest.$ac_ext >&5
29480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29481 if test $ac_R_nospace = yes; then
29482 echo "$as_me:$LINENO: result: no" >&5
29483 echo "${ECHO_T}no" >&6
29484 X_LIBS="$X_LIBS -R$x_libraries"
29486 LIBS="$ac_xsave_LIBS -R $x_libraries"
29487 cat >conftest.$ac_ext <<_ACEOF
29488 #line $LINENO "configure"
29489 #include "confdefs.h"
29491 #ifdef F77_DUMMY_MAIN
29492 # ifdef __cplusplus
29495 int F77_DUMMY_MAIN() { return 1; }
29505 rm -f conftest.$ac_objext conftest$ac_exeext
29506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29507 (eval $ac_link) 2>&5
29509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510 (exit $ac_status); } &&
29511 { ac_try='test -s conftest$ac_exeext'
29512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29513 (eval $ac_try) 2>&5
29515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516 (exit $ac_status); }; }; then
29519 echo "$as_me: failed program was:" >&5
29520 cat conftest.$ac_ext >&5
29523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29524 if test $ac_R_space = yes; then
29525 echo "$as_me:$LINENO: result: yes" >&5
29526 echo "${ECHO_T}yes" >&6
29527 X_LIBS="$X_LIBS -R $x_libraries"
29529 echo "$as_me:$LINENO: result: neither works" >&5
29530 echo "${ECHO_T}neither works" >&6
29533 LIBS=$ac_xsave_LIBS
29537 # Check for system-dependent libraries X programs must link with.
29538 # Do this before checking for the system-independent R6 libraries
29539 # (-lICE), since we may need -lsocket or whatever for X linking.
29541 if test "$ISC" = yes; then
29542 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29544 # Martyn Johnson says this is needed for Ultrix, if the X
29545 # libraries were built with DECnet support. And Karl Berry says
29546 # the Alpha needs dnet_stub (dnet does not exist).
29547 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29548 cat >conftest.$ac_ext <<_ACEOF
29549 #line $LINENO "configure"
29550 #include "confdefs.h"
29552 /* Override any gcc2 internal prototype to avoid an error. */
29556 /* We use char because int might match the return type of a gcc2
29557 builtin and then its argument prototype would still apply. */
29558 char XOpenDisplay ();
29559 #ifdef F77_DUMMY_MAIN
29560 # ifdef __cplusplus
29563 int F77_DUMMY_MAIN() { return 1; }
29573 rm -f conftest.$ac_objext conftest$ac_exeext
29574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29575 (eval $ac_link) 2>&5
29577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29578 (exit $ac_status); } &&
29579 { ac_try='test -s conftest$ac_exeext'
29580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29581 (eval $ac_try) 2>&5
29583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584 (exit $ac_status); }; }; then
29587 echo "$as_me: failed program was:" >&5
29588 cat conftest.$ac_ext >&5
29589 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29590 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29591 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29592 echo $ECHO_N "(cached) $ECHO_C" >&6
29594 ac_check_lib_save_LIBS=$LIBS
29595 LIBS="-ldnet $LIBS"
29596 cat >conftest.$ac_ext <<_ACEOF
29597 #line $LINENO "configure"
29598 #include "confdefs.h"
29600 /* Override any gcc2 internal prototype to avoid an error. */
29604 /* We use char because int might match the return type of a gcc2
29605 builtin and then its argument prototype would still apply. */
29607 #ifdef F77_DUMMY_MAIN
29608 # ifdef __cplusplus
29611 int F77_DUMMY_MAIN() { return 1; }
29621 rm -f conftest.$ac_objext conftest$ac_exeext
29622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29623 (eval $ac_link) 2>&5
29625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626 (exit $ac_status); } &&
29627 { ac_try='test -s conftest$ac_exeext'
29628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29629 (eval $ac_try) 2>&5
29631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29632 (exit $ac_status); }; }; then
29633 ac_cv_lib_dnet_dnet_ntoa=yes
29635 echo "$as_me: failed program was:" >&5
29636 cat conftest.$ac_ext >&5
29637 ac_cv_lib_dnet_dnet_ntoa=no
29639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29640 LIBS=$ac_check_lib_save_LIBS
29642 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29643 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
29644 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29645 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29648 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29649 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29650 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
29651 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29652 echo $ECHO_N "(cached) $ECHO_C" >&6
29654 ac_check_lib_save_LIBS=$LIBS
29655 LIBS="-ldnet_stub $LIBS"
29656 cat >conftest.$ac_ext <<_ACEOF
29657 #line $LINENO "configure"
29658 #include "confdefs.h"
29660 /* Override any gcc2 internal prototype to avoid an error. */
29664 /* We use char because int might match the return type of a gcc2
29665 builtin and then its argument prototype would still apply. */
29667 #ifdef F77_DUMMY_MAIN
29668 # ifdef __cplusplus
29671 int F77_DUMMY_MAIN() { return 1; }
29681 rm -f conftest.$ac_objext conftest$ac_exeext
29682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29683 (eval $ac_link) 2>&5
29685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686 (exit $ac_status); } &&
29687 { ac_try='test -s conftest$ac_exeext'
29688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29689 (eval $ac_try) 2>&5
29691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692 (exit $ac_status); }; }; then
29693 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29695 echo "$as_me: failed program was:" >&5
29696 cat conftest.$ac_ext >&5
29697 ac_cv_lib_dnet_stub_dnet_ntoa=no
29699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29700 LIBS=$ac_check_lib_save_LIBS
29702 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29703 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
29704 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29705 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29710 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29711 LIBS="$ac_xsave_LIBS"
29713 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29714 # to get the SysV transport functions.
29715 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29717 # The nsl library prevents programs from opening the X display
29718 # on Irix 5.2, according to T.E. Dickey.
29719 # The functions gethostbyname, getservbyname, and inet_addr are
29720 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29721 echo "$as_me:$LINENO: checking for gethostbyname" >&5
29722 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
29723 if test "${ac_cv_func_gethostbyname+set}" = set; then
29724 echo $ECHO_N "(cached) $ECHO_C" >&6
29726 cat >conftest.$ac_ext <<_ACEOF
29727 #line $LINENO "configure"
29728 #include "confdefs.h"
29729 /* System header to define __stub macros and hopefully few prototypes,
29730 which can conflict with char gethostbyname (); below. */
29731 #include <assert.h>
29732 /* Override any gcc2 internal prototype to avoid an error. */
29736 /* We use char because int might match the return type of a gcc2
29737 builtin and then its argument prototype would still apply. */
29738 char gethostbyname ();
29741 #ifdef F77_DUMMY_MAIN
29742 # ifdef __cplusplus
29745 int F77_DUMMY_MAIN() { return 1; }
29750 /* The GNU C library defines this for functions which it implements
29751 to always fail with ENOSYS. Some functions are actually named
29752 something starting with __ and the normal name is an alias. */
29753 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
29763 rm -f conftest.$ac_objext conftest$ac_exeext
29764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29765 (eval $ac_link) 2>&5
29767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29768 (exit $ac_status); } &&
29769 { ac_try='test -s conftest$ac_exeext'
29770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29771 (eval $ac_try) 2>&5
29773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774 (exit $ac_status); }; }; then
29775 ac_cv_func_gethostbyname=yes
29777 echo "$as_me: failed program was:" >&5
29778 cat conftest.$ac_ext >&5
29779 ac_cv_func_gethostbyname=no
29781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29783 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29784 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
29786 if test $ac_cv_func_gethostbyname = no; then
29787 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29788 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
29789 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29790 echo $ECHO_N "(cached) $ECHO_C" >&6
29792 ac_check_lib_save_LIBS=$LIBS
29794 cat >conftest.$ac_ext <<_ACEOF
29795 #line $LINENO "configure"
29796 #include "confdefs.h"
29798 /* Override any gcc2 internal prototype to avoid an error. */
29802 /* We use char because int might match the return type of a gcc2
29803 builtin and then its argument prototype would still apply. */
29804 char gethostbyname ();
29805 #ifdef F77_DUMMY_MAIN
29806 # ifdef __cplusplus
29809 int F77_DUMMY_MAIN() { return 1; }
29819 rm -f conftest.$ac_objext conftest$ac_exeext
29820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29821 (eval $ac_link) 2>&5
29823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824 (exit $ac_status); } &&
29825 { ac_try='test -s conftest$ac_exeext'
29826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29827 (eval $ac_try) 2>&5
29829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830 (exit $ac_status); }; }; then
29831 ac_cv_lib_nsl_gethostbyname=yes
29833 echo "$as_me: failed program was:" >&5
29834 cat conftest.$ac_ext >&5
29835 ac_cv_lib_nsl_gethostbyname=no
29837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29838 LIBS=$ac_check_lib_save_LIBS
29840 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29841 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
29842 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29843 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29846 if test $ac_cv_lib_nsl_gethostbyname = no; then
29847 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29848 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
29849 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29850 echo $ECHO_N "(cached) $ECHO_C" >&6
29852 ac_check_lib_save_LIBS=$LIBS
29854 cat >conftest.$ac_ext <<_ACEOF
29855 #line $LINENO "configure"
29856 #include "confdefs.h"
29858 /* Override any gcc2 internal prototype to avoid an error. */
29862 /* We use char because int might match the return type of a gcc2
29863 builtin and then its argument prototype would still apply. */
29864 char gethostbyname ();
29865 #ifdef F77_DUMMY_MAIN
29866 # ifdef __cplusplus
29869 int F77_DUMMY_MAIN() { return 1; }
29879 rm -f conftest.$ac_objext conftest$ac_exeext
29880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29881 (eval $ac_link) 2>&5
29883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884 (exit $ac_status); } &&
29885 { ac_try='test -s conftest$ac_exeext'
29886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29887 (eval $ac_try) 2>&5
29889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890 (exit $ac_status); }; }; then
29891 ac_cv_lib_bsd_gethostbyname=yes
29893 echo "$as_me: failed program was:" >&5
29894 cat conftest.$ac_ext >&5
29895 ac_cv_lib_bsd_gethostbyname=no
29897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29898 LIBS=$ac_check_lib_save_LIBS
29900 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29901 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
29902 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29903 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29909 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29910 # socket/setsockopt and other routines are undefined under SCO ODT
29911 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29912 # on later versions), says Simon Leinen: it contains gethostby*
29913 # variants that don't use the nameserver (or something). -lsocket
29914 # must be given before -lnsl if both are needed. We assume that
29915 # if connect needs -lnsl, so does gethostbyname.
29916 echo "$as_me:$LINENO: checking for connect" >&5
29917 echo $ECHO_N "checking for connect... $ECHO_C" >&6
29918 if test "${ac_cv_func_connect+set}" = set; then
29919 echo $ECHO_N "(cached) $ECHO_C" >&6
29921 cat >conftest.$ac_ext <<_ACEOF
29922 #line $LINENO "configure"
29923 #include "confdefs.h"
29924 /* System header to define __stub macros and hopefully few prototypes,
29925 which can conflict with char connect (); below. */
29926 #include <assert.h>
29927 /* Override any gcc2 internal prototype to avoid an error. */
29931 /* We use char because int might match the return type of a gcc2
29932 builtin and then its argument prototype would still apply. */
29936 #ifdef F77_DUMMY_MAIN
29937 # ifdef __cplusplus
29940 int F77_DUMMY_MAIN() { return 1; }
29945 /* The GNU C library defines this for functions which it implements
29946 to always fail with ENOSYS. Some functions are actually named
29947 something starting with __ and the normal name is an alias. */
29948 #if defined (__stub_connect) || defined (__stub___connect)
29958 rm -f conftest.$ac_objext conftest$ac_exeext
29959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29960 (eval $ac_link) 2>&5
29962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29963 (exit $ac_status); } &&
29964 { ac_try='test -s conftest$ac_exeext'
29965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29966 (eval $ac_try) 2>&5
29968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29969 (exit $ac_status); }; }; then
29970 ac_cv_func_connect=yes
29972 echo "$as_me: failed program was:" >&5
29973 cat conftest.$ac_ext >&5
29974 ac_cv_func_connect=no
29976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29978 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29979 echo "${ECHO_T}$ac_cv_func_connect" >&6
29981 if test $ac_cv_func_connect = no; then
29982 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29983 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
29984 if test "${ac_cv_lib_socket_connect+set}" = set; then
29985 echo $ECHO_N "(cached) $ECHO_C" >&6
29987 ac_check_lib_save_LIBS=$LIBS
29988 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29989 cat >conftest.$ac_ext <<_ACEOF
29990 #line $LINENO "configure"
29991 #include "confdefs.h"
29993 /* Override any gcc2 internal prototype to avoid an error. */
29997 /* We use char because int might match the return type of a gcc2
29998 builtin and then its argument prototype would still apply. */
30000 #ifdef F77_DUMMY_MAIN
30001 # ifdef __cplusplus
30004 int F77_DUMMY_MAIN() { return 1; }
30014 rm -f conftest.$ac_objext conftest$ac_exeext
30015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30016 (eval $ac_link) 2>&5
30018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30019 (exit $ac_status); } &&
30020 { ac_try='test -s conftest$ac_exeext'
30021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30022 (eval $ac_try) 2>&5
30024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30025 (exit $ac_status); }; }; then
30026 ac_cv_lib_socket_connect=yes
30028 echo "$as_me: failed program was:" >&5
30029 cat conftest.$ac_ext >&5
30030 ac_cv_lib_socket_connect=no
30032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30033 LIBS=$ac_check_lib_save_LIBS
30035 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30036 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
30037 if test $ac_cv_lib_socket_connect = yes; then
30038 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30043 # Guillermo Gomez says -lposix is necessary on A/UX.
30044 echo "$as_me:$LINENO: checking for remove" >&5
30045 echo $ECHO_N "checking for remove... $ECHO_C" >&6
30046 if test "${ac_cv_func_remove+set}" = set; then
30047 echo $ECHO_N "(cached) $ECHO_C" >&6
30049 cat >conftest.$ac_ext <<_ACEOF
30050 #line $LINENO "configure"
30051 #include "confdefs.h"
30052 /* System header to define __stub macros and hopefully few prototypes,
30053 which can conflict with char remove (); below. */
30054 #include <assert.h>
30055 /* Override any gcc2 internal prototype to avoid an error. */
30059 /* We use char because int might match the return type of a gcc2
30060 builtin and then its argument prototype would still apply. */
30064 #ifdef F77_DUMMY_MAIN
30065 # ifdef __cplusplus
30068 int F77_DUMMY_MAIN() { return 1; }
30073 /* The GNU C library defines this for functions which it implements
30074 to always fail with ENOSYS. Some functions are actually named
30075 something starting with __ and the normal name is an alias. */
30076 #if defined (__stub_remove) || defined (__stub___remove)
30086 rm -f conftest.$ac_objext conftest$ac_exeext
30087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30088 (eval $ac_link) 2>&5
30090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30091 (exit $ac_status); } &&
30092 { ac_try='test -s conftest$ac_exeext'
30093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30094 (eval $ac_try) 2>&5
30096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30097 (exit $ac_status); }; }; then
30098 ac_cv_func_remove=yes
30100 echo "$as_me: failed program was:" >&5
30101 cat conftest.$ac_ext >&5
30102 ac_cv_func_remove=no
30104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30106 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30107 echo "${ECHO_T}$ac_cv_func_remove" >&6
30109 if test $ac_cv_func_remove = no; then
30110 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30111 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
30112 if test "${ac_cv_lib_posix_remove+set}" = set; then
30113 echo $ECHO_N "(cached) $ECHO_C" >&6
30115 ac_check_lib_save_LIBS=$LIBS
30116 LIBS="-lposix $LIBS"
30117 cat >conftest.$ac_ext <<_ACEOF
30118 #line $LINENO "configure"
30119 #include "confdefs.h"
30121 /* Override any gcc2 internal prototype to avoid an error. */
30125 /* We use char because int might match the return type of a gcc2
30126 builtin and then its argument prototype would still apply. */
30128 #ifdef F77_DUMMY_MAIN
30129 # ifdef __cplusplus
30132 int F77_DUMMY_MAIN() { return 1; }
30142 rm -f conftest.$ac_objext conftest$ac_exeext
30143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30144 (eval $ac_link) 2>&5
30146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147 (exit $ac_status); } &&
30148 { ac_try='test -s conftest$ac_exeext'
30149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30150 (eval $ac_try) 2>&5
30152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30153 (exit $ac_status); }; }; then
30154 ac_cv_lib_posix_remove=yes
30156 echo "$as_me: failed program was:" >&5
30157 cat conftest.$ac_ext >&5
30158 ac_cv_lib_posix_remove=no
30160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30161 LIBS=$ac_check_lib_save_LIBS
30163 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30164 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
30165 if test $ac_cv_lib_posix_remove = yes; then
30166 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30171 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30172 echo "$as_me:$LINENO: checking for shmat" >&5
30173 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
30174 if test "${ac_cv_func_shmat+set}" = set; then
30175 echo $ECHO_N "(cached) $ECHO_C" >&6
30177 cat >conftest.$ac_ext <<_ACEOF
30178 #line $LINENO "configure"
30179 #include "confdefs.h"
30180 /* System header to define __stub macros and hopefully few prototypes,
30181 which can conflict with char shmat (); below. */
30182 #include <assert.h>
30183 /* Override any gcc2 internal prototype to avoid an error. */
30187 /* We use char because int might match the return type of a gcc2
30188 builtin and then its argument prototype would still apply. */
30192 #ifdef F77_DUMMY_MAIN
30193 # ifdef __cplusplus
30196 int F77_DUMMY_MAIN() { return 1; }
30201 /* The GNU C library defines this for functions which it implements
30202 to always fail with ENOSYS. Some functions are actually named
30203 something starting with __ and the normal name is an alias. */
30204 #if defined (__stub_shmat) || defined (__stub___shmat)
30214 rm -f conftest.$ac_objext conftest$ac_exeext
30215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30216 (eval $ac_link) 2>&5
30218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30219 (exit $ac_status); } &&
30220 { ac_try='test -s conftest$ac_exeext'
30221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30222 (eval $ac_try) 2>&5
30224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225 (exit $ac_status); }; }; then
30226 ac_cv_func_shmat=yes
30228 echo "$as_me: failed program was:" >&5
30229 cat conftest.$ac_ext >&5
30230 ac_cv_func_shmat=no
30232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30234 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30235 echo "${ECHO_T}$ac_cv_func_shmat" >&6
30237 if test $ac_cv_func_shmat = no; then
30238 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30239 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
30240 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30241 echo $ECHO_N "(cached) $ECHO_C" >&6
30243 ac_check_lib_save_LIBS=$LIBS
30245 cat >conftest.$ac_ext <<_ACEOF
30246 #line $LINENO "configure"
30247 #include "confdefs.h"
30249 /* Override any gcc2 internal prototype to avoid an error. */
30253 /* We use char because int might match the return type of a gcc2
30254 builtin and then its argument prototype would still apply. */
30256 #ifdef F77_DUMMY_MAIN
30257 # ifdef __cplusplus
30260 int F77_DUMMY_MAIN() { return 1; }
30270 rm -f conftest.$ac_objext conftest$ac_exeext
30271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30272 (eval $ac_link) 2>&5
30274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275 (exit $ac_status); } &&
30276 { ac_try='test -s conftest$ac_exeext'
30277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30278 (eval $ac_try) 2>&5
30280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281 (exit $ac_status); }; }; then
30282 ac_cv_lib_ipc_shmat=yes
30284 echo "$as_me: failed program was:" >&5
30285 cat conftest.$ac_ext >&5
30286 ac_cv_lib_ipc_shmat=no
30288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30289 LIBS=$ac_check_lib_save_LIBS
30291 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30292 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
30293 if test $ac_cv_lib_ipc_shmat = yes; then
30294 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30300 # Check for libraries that X11R6 Xt/Xaw programs need.
30301 ac_save_LDFLAGS=$LDFLAGS
30302 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30303 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30304 # check for ICE first), but we must link in the order -lSM -lICE or
30305 # we get undefined symbols. So assume we have SM if we have ICE.
30306 # These have to be linked with before -lX11, unlike the other
30307 # libraries we check for below, so use a different variable.
30308 # John Interrante, Karl Berry
30309 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30310 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
30311 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30312 echo $ECHO_N "(cached) $ECHO_C" >&6
30314 ac_check_lib_save_LIBS=$LIBS
30315 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30316 cat >conftest.$ac_ext <<_ACEOF
30317 #line $LINENO "configure"
30318 #include "confdefs.h"
30320 /* Override any gcc2 internal prototype to avoid an error. */
30324 /* We use char because int might match the return type of a gcc2
30325 builtin and then its argument prototype would still apply. */
30326 char IceConnectionNumber ();
30327 #ifdef F77_DUMMY_MAIN
30328 # ifdef __cplusplus
30331 int F77_DUMMY_MAIN() { return 1; }
30336 IceConnectionNumber ();
30341 rm -f conftest.$ac_objext conftest$ac_exeext
30342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30343 (eval $ac_link) 2>&5
30345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30346 (exit $ac_status); } &&
30347 { ac_try='test -s conftest$ac_exeext'
30348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30349 (eval $ac_try) 2>&5
30351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30352 (exit $ac_status); }; }; then
30353 ac_cv_lib_ICE_IceConnectionNumber=yes
30355 echo "$as_me: failed program was:" >&5
30356 cat conftest.$ac_ext >&5
30357 ac_cv_lib_ICE_IceConnectionNumber=no
30359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30360 LIBS=$ac_check_lib_save_LIBS
30362 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30363 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
30364 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30365 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30368 LDFLAGS=$ac_save_LDFLAGS
30373 # try to figure out if we need any additional ld flags, like -R
30374 # and yes, the autoconf X test is utterly broken
30375 if test "$no_x" != yes; then
30376 echo "$as_me:$LINENO: checking for special X linker flags" >&5
30377 echo $ECHO_N "checking for special X linker flags... $ECHO_C" >&6
30378 if test "${krb_cv_sys_x_libs_rpath+set}" = set; then
30379 echo $ECHO_N "(cached) $ECHO_C" >&6
30382 ac_save_libs="$LIBS"
30383 ac_save_cflags="$CFLAGS"
30384 CFLAGS="$CFLAGS $X_CFLAGS"
30385 krb_cv_sys_x_libs_rpath=""
30386 krb_cv_sys_x_libs=""
30387 for rflag in "" "-R" "-R " "-rpath "; do
30388 if test "$rflag" = ""; then
30392 for flag in $X_LIBS; do
30395 foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
30403 LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
30404 if test "$cross_compiling" = yes; then
30405 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
30406 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
30407 { (exit 1); exit 1; }; }
30409 cat >conftest.$ac_ext <<_ACEOF
30410 #line $LINENO "configure"
30411 #include "confdefs.h"
30413 #include <X11/Xlib.h>
30416 XOpenDisplay(NULL);
30424 rm -f conftest$ac_exeext
30425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30426 (eval $ac_link) 2>&5
30428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30431 (eval $ac_try) 2>&5
30433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30434 (exit $ac_status); }; }; then
30435 krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
30437 echo "$as_me: program exited with status $ac_status" >&5
30438 echo "$as_me: failed program was:" >&5
30439 cat conftest.$ac_ext >&5
30440 ( exit $ac_status )
30443 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30446 LIBS="$ac_save_libs"
30447 CFLAGS="$ac_save_cflags"
30450 echo "$as_me:$LINENO: result: $krb_cv_sys_x_libs_rpath" >&5
30451 echo "${ECHO_T}$krb_cv_sys_x_libs_rpath" >&6
30452 X_LIBS="$krb_cv_sys_x_libs"
30458 if test "$no_x" != yes; then
30468 save_CFLAGS="$CFLAGS"
30469 CFLAGS="$X_CFLAGS $CFLAGS"
30471 LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
30472 save_LDFLAGS="$LDFLAGS"
30473 LDFLAGS="$LDFLAGS $X_LIBS"
30479 echo "$as_me:$LINENO: checking for XauWriteAuth" >&5
30480 echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6
30481 if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then
30482 echo $ECHO_N "(cached) $ECHO_C" >&6
30485 if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
30486 ac_save_LIBS="$LIBS"
30487 for ac_lib in "" X11 Xau; do
30493 *) ac_lib="-l$ac_lib" ;;
30495 LIBS=" $ac_lib $ac_save_LIBS"
30496 cat >conftest.$ac_ext <<_ACEOF
30497 #line $LINENO "configure"
30498 #include "confdefs.h"
30500 #ifdef F77_DUMMY_MAIN
30501 # ifdef __cplusplus
30504 int F77_DUMMY_MAIN() { return 1; }
30514 rm -f conftest.$ac_objext conftest$ac_exeext
30515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30516 (eval $ac_link) 2>&5
30518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519 (exit $ac_status); } &&
30520 { ac_try='test -s conftest$ac_exeext'
30521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30522 (eval $ac_try) 2>&5
30524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525 (exit $ac_status); }; }; then
30526 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
30528 echo "$as_me: failed program was:" >&5
30529 cat conftest.$ac_ext >&5
30531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30533 eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
30534 LIBS="$ac_save_LIBS"
30540 eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
30544 for ac_func in XauWriteAuth
30546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30547 echo "$as_me:$LINENO: checking for $ac_func" >&5
30548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30549 if eval "test \"\${$as_ac_var+set}\" = set"; then
30550 echo $ECHO_N "(cached) $ECHO_C" >&6
30552 cat >conftest.$ac_ext <<_ACEOF
30553 #line $LINENO "configure"
30554 #include "confdefs.h"
30555 /* System header to define __stub macros and hopefully few prototypes,
30556 which can conflict with char $ac_func (); below. */
30557 #include <assert.h>
30558 /* Override any gcc2 internal prototype to avoid an error. */
30562 /* We use char because int might match the return type of a gcc2
30563 builtin and then its argument prototype would still apply. */
30567 #ifdef F77_DUMMY_MAIN
30568 # ifdef __cplusplus
30571 int F77_DUMMY_MAIN() { return 1; }
30576 /* The GNU C library defines this for functions which it implements
30577 to always fail with ENOSYS. Some functions are actually named
30578 something starting with __ and the normal name is an alias. */
30579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30589 rm -f conftest.$ac_objext conftest$ac_exeext
30590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30591 (eval $ac_link) 2>&5
30593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30594 (exit $ac_status); } &&
30595 { ac_try='test -s conftest$ac_exeext'
30596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30597 (eval $ac_try) 2>&5
30599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30600 (exit $ac_status); }; }; then
30601 eval "$as_ac_var=yes"
30603 echo "$as_me: failed program was:" >&5
30604 cat conftest.$ac_ext >&5
30605 eval "$as_ac_var=no"
30607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30610 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30611 if test `eval echo '${'$as_ac_var'}'` = yes; then
30612 cat >>confdefs.h <<_ACEOF
30613 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30621 eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30622 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30623 eval "LIB_XauWriteAuth=$ac_res"
30627 eval "ac_cv_func_XauWriteAuth=yes"
30628 eval "LIB_XauWriteAuth="
30629 cat >>confdefs.h <<_ACEOF
30630 #define $ac_tr_func 1
30633 echo "$as_me:$LINENO: result: yes" >&5
30634 echo "${ECHO_T}yes" >&6
30637 eval "ac_cv_func_XauWriteAuth=no"
30638 eval "LIB_XauWriteAuth="
30639 echo "$as_me:$LINENO: result: no" >&5
30640 echo "${ECHO_T}no" >&6
30643 eval "ac_cv_func_XauWriteAuth=yes"
30644 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30645 cat >>confdefs.h <<_ACEOF
30646 #define $ac_tr_func 1
30649 cat >>confdefs.h <<_ACEOF
30650 #define $ac_tr_lib 1
30653 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30654 echo "${ECHO_T}yes, in $ac_res" >&6
30660 LIBS="$LIB_XauWriteAuth $LIBS"
30664 echo "$as_me:$LINENO: checking for XauReadAuth" >&5
30665 echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6
30666 if test "${ac_cv_funclib_XauReadAuth+set}" = set; then
30667 echo $ECHO_N "(cached) $ECHO_C" >&6
30670 if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
30671 ac_save_LIBS="$LIBS"
30672 for ac_lib in "" X11 Xau; do
30678 *) ac_lib="-l$ac_lib" ;;
30680 LIBS=" $ac_lib $ac_save_LIBS"
30681 cat >conftest.$ac_ext <<_ACEOF
30682 #line $LINENO "configure"
30683 #include "confdefs.h"
30685 #ifdef F77_DUMMY_MAIN
30686 # ifdef __cplusplus
30689 int F77_DUMMY_MAIN() { return 1; }
30699 rm -f conftest.$ac_objext conftest$ac_exeext
30700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30701 (eval $ac_link) 2>&5
30703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30704 (exit $ac_status); } &&
30705 { ac_try='test -s conftest$ac_exeext'
30706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30707 (eval $ac_try) 2>&5
30709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30710 (exit $ac_status); }; }; then
30711 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
30713 echo "$as_me: failed program was:" >&5
30714 cat conftest.$ac_ext >&5
30716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30718 eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
30719 LIBS="$ac_save_LIBS"
30725 eval "ac_res=\$ac_cv_funclib_XauReadAuth"
30729 for ac_func in XauReadAuth
30731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30732 echo "$as_me:$LINENO: checking for $ac_func" >&5
30733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30734 if eval "test \"\${$as_ac_var+set}\" = set"; then
30735 echo $ECHO_N "(cached) $ECHO_C" >&6
30737 cat >conftest.$ac_ext <<_ACEOF
30738 #line $LINENO "configure"
30739 #include "confdefs.h"
30740 /* System header to define __stub macros and hopefully few prototypes,
30741 which can conflict with char $ac_func (); below. */
30742 #include <assert.h>
30743 /* Override any gcc2 internal prototype to avoid an error. */
30747 /* We use char because int might match the return type of a gcc2
30748 builtin and then its argument prototype would still apply. */
30752 #ifdef F77_DUMMY_MAIN
30753 # ifdef __cplusplus
30756 int F77_DUMMY_MAIN() { return 1; }
30761 /* The GNU C library defines this for functions which it implements
30762 to always fail with ENOSYS. Some functions are actually named
30763 something starting with __ and the normal name is an alias. */
30764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30774 rm -f conftest.$ac_objext conftest$ac_exeext
30775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30776 (eval $ac_link) 2>&5
30778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30779 (exit $ac_status); } &&
30780 { ac_try='test -s conftest$ac_exeext'
30781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30782 (eval $ac_try) 2>&5
30784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785 (exit $ac_status); }; }; then
30786 eval "$as_ac_var=yes"
30788 echo "$as_me: failed program was:" >&5
30789 cat conftest.$ac_ext >&5
30790 eval "$as_ac_var=no"
30792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30796 if test `eval echo '${'$as_ac_var'}'` = yes; then
30797 cat >>confdefs.h <<_ACEOF
30798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30806 eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30807 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30808 eval "LIB_XauReadAuth=$ac_res"
30812 eval "ac_cv_func_XauReadAuth=yes"
30813 eval "LIB_XauReadAuth="
30814 cat >>confdefs.h <<_ACEOF
30815 #define $ac_tr_func 1
30818 echo "$as_me:$LINENO: result: yes" >&5
30819 echo "${ECHO_T}yes" >&6
30822 eval "ac_cv_func_XauReadAuth=no"
30823 eval "LIB_XauReadAuth="
30824 echo "$as_me:$LINENO: result: no" >&5
30825 echo "${ECHO_T}no" >&6
30828 eval "ac_cv_func_XauReadAuth=yes"
30829 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30830 cat >>confdefs.h <<_ACEOF
30831 #define $ac_tr_func 1
30834 cat >>confdefs.h <<_ACEOF
30835 #define $ac_tr_lib 1
30838 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30839 echo "${ECHO_T}yes, in $ac_res" >&6
30844 LIBS="$LIB_XauReadAauth $LIBS"
30848 echo "$as_me:$LINENO: checking for XauFileName" >&5
30849 echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6
30850 if test "${ac_cv_funclib_XauFileName+set}" = set; then
30851 echo $ECHO_N "(cached) $ECHO_C" >&6
30854 if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
30855 ac_save_LIBS="$LIBS"
30856 for ac_lib in "" X11 Xau; do
30862 *) ac_lib="-l$ac_lib" ;;
30864 LIBS=" $ac_lib $ac_save_LIBS"
30865 cat >conftest.$ac_ext <<_ACEOF
30866 #line $LINENO "configure"
30867 #include "confdefs.h"
30869 #ifdef F77_DUMMY_MAIN
30870 # ifdef __cplusplus
30873 int F77_DUMMY_MAIN() { return 1; }
30883 rm -f conftest.$ac_objext conftest$ac_exeext
30884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30885 (eval $ac_link) 2>&5
30887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30888 (exit $ac_status); } &&
30889 { ac_try='test -s conftest$ac_exeext'
30890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30891 (eval $ac_try) 2>&5
30893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30894 (exit $ac_status); }; }; then
30895 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
30897 echo "$as_me: failed program was:" >&5
30898 cat conftest.$ac_ext >&5
30900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30902 eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
30903 LIBS="$ac_save_LIBS"
30909 eval "ac_res=\$ac_cv_funclib_XauFileName"
30913 for ac_func in XauFileName
30915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30916 echo "$as_me:$LINENO: checking for $ac_func" >&5
30917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30918 if eval "test \"\${$as_ac_var+set}\" = set"; then
30919 echo $ECHO_N "(cached) $ECHO_C" >&6
30921 cat >conftest.$ac_ext <<_ACEOF
30922 #line $LINENO "configure"
30923 #include "confdefs.h"
30924 /* System header to define __stub macros and hopefully few prototypes,
30925 which can conflict with char $ac_func (); below. */
30926 #include <assert.h>
30927 /* Override any gcc2 internal prototype to avoid an error. */
30931 /* We use char because int might match the return type of a gcc2
30932 builtin and then its argument prototype would still apply. */
30936 #ifdef F77_DUMMY_MAIN
30937 # ifdef __cplusplus
30940 int F77_DUMMY_MAIN() { return 1; }
30945 /* The GNU C library defines this for functions which it implements
30946 to always fail with ENOSYS. Some functions are actually named
30947 something starting with __ and the normal name is an alias. */
30948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30958 rm -f conftest.$ac_objext conftest$ac_exeext
30959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30960 (eval $ac_link) 2>&5
30962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963 (exit $ac_status); } &&
30964 { ac_try='test -s conftest$ac_exeext'
30965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30966 (eval $ac_try) 2>&5
30968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30969 (exit $ac_status); }; }; then
30970 eval "$as_ac_var=yes"
30972 echo "$as_me: failed program was:" >&5
30973 cat conftest.$ac_ext >&5
30974 eval "$as_ac_var=no"
30976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30980 if test `eval echo '${'$as_ac_var'}'` = yes; then
30981 cat >>confdefs.h <<_ACEOF
30982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30990 eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30991 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30992 eval "LIB_XauFileName=$ac_res"
30996 eval "ac_cv_func_XauFileName=yes"
30997 eval "LIB_XauFileName="
30998 cat >>confdefs.h <<_ACEOF
30999 #define $ac_tr_func 1
31002 echo "$as_me:$LINENO: result: yes" >&5
31003 echo "${ECHO_T}yes" >&6
31006 eval "ac_cv_func_XauFileName=no"
31007 eval "LIB_XauFileName="
31008 echo "$as_me:$LINENO: result: no" >&5
31009 echo "${ECHO_T}no" >&6
31012 eval "ac_cv_func_XauFileName=yes"
31013 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
31014 cat >>confdefs.h <<_ACEOF
31015 #define $ac_tr_func 1
31018 cat >>confdefs.h <<_ACEOF
31019 #define $ac_tr_lib 1
31022 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
31023 echo "${ECHO_T}yes, in $ac_res" >&6
31030 case "$ac_cv_funclib_XauWriteAuth" in
31033 *) if test "$ac_cv_funclib_XauReadAuth" = yes; then
31034 if test "$ac_cv_funclib_XauFileName" = yes; then
31035 LIB_XauReadAuth="$LIB_XauWriteAuth"
31037 LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
31040 if test "$ac_cv_funclib_XauFileName" = yes; then
31041 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
31043 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
31049 if test "$AUTOMAKE" != ""; then
31052 if test "$ac_cv_func_XauWriteAuth" != "yes"; then
31053 NEED_WRITEAUTH_TRUE=
31054 NEED_WRITEAUTH_FALSE='#'
31056 NEED_WRITEAUTH_TRUE='#'
31057 NEED_WRITEAUTH_FALSE=
31063 if test "$ac_cv_func_XauWriteAuth" != "yes"; then
31064 NEED_WRITEAUTH_TRUE=
31065 NEED_WRITEAUTH_FALSE='#'
31067 NEED_WRITEAUTH_TRUE='#'
31068 NEED_WRITEAUTH_FALSE=
31071 CFLAGS=$save_CFLAGS
31073 LDFLAGS=$save_LDFLAGS
31077 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
31078 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
31079 if test "${ac_cv_c_const+set}" = set; then
31080 echo $ECHO_N "(cached) $ECHO_C" >&6
31082 cat >conftest.$ac_ext <<_ACEOF
31083 #line $LINENO "configure"
31084 #include "confdefs.h"
31086 #ifdef F77_DUMMY_MAIN
31087 # ifdef __cplusplus
31090 int F77_DUMMY_MAIN() { return 1; }
31095 /* FIXME: Include the comments suggested by Paul. */
31096 #ifndef __cplusplus
31097 /* Ultrix mips cc rejects this. */
31098 typedef int charset[2];
31100 /* SunOS 4.1.1 cc rejects this. */
31101 char const *const *ccp;
31103 /* NEC SVR4.0.2 mips cc rejects this. */
31104 struct point {int x, y;};
31105 static struct point const zero = {0,0};
31106 /* AIX XL C 1.02.0.0 rejects this.
31107 It does not let you subtract one const X* pointer from another in
31108 an arm of an if-expression whose if-part is not a constant
31110 const char *g = "string";
31111 ccp = &g + (g ? g-g : 0);
31112 /* HPUX 7.0 cc rejects these. */
31115 ccp = (char const *const *) p;
31116 { /* SCO 3.2v4 cc rejects this. */
31118 char const *s = 0 ? (char *) 0 : (char const *) 0;
31122 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
31123 int x[] = {25, 17};
31124 const int *foo = &x[0];
31127 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
31128 typedef const int *iptr;
31132 { /* AIX XL C 1.02.0.0 rejects this saying
31133 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
31134 struct s { int j; const int *ap[3]; };
31135 struct s *b; b->j = 5;
31137 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
31138 const int foo = 10;
31146 rm -f conftest.$ac_objext
31147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31148 (eval $ac_compile) 2>&5
31150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151 (exit $ac_status); } &&
31152 { ac_try='test -s conftest.$ac_objext'
31153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31154 (eval $ac_try) 2>&5
31156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31157 (exit $ac_status); }; }; then
31160 echo "$as_me: failed program was:" >&5
31161 cat conftest.$ac_ext >&5
31164 rm -f conftest.$ac_objext conftest.$ac_ext
31166 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
31167 echo "${ECHO_T}$ac_cv_c_const" >&6
31168 if test $ac_cv_c_const = no; then
31170 cat >>confdefs.h <<\_ACEOF
31176 echo "$as_me:$LINENO: checking for off_t" >&5
31177 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
31178 if test "${ac_cv_type_off_t+set}" = set; then
31179 echo $ECHO_N "(cached) $ECHO_C" >&6
31181 cat >conftest.$ac_ext <<_ACEOF
31182 #line $LINENO "configure"
31183 #include "confdefs.h"
31184 $ac_includes_default
31185 #ifdef F77_DUMMY_MAIN
31186 # ifdef __cplusplus
31189 int F77_DUMMY_MAIN() { return 1; }
31196 if (sizeof (off_t))
31202 rm -f conftest.$ac_objext
31203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31204 (eval $ac_compile) 2>&5
31206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207 (exit $ac_status); } &&
31208 { ac_try='test -s conftest.$ac_objext'
31209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31210 (eval $ac_try) 2>&5
31212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31213 (exit $ac_status); }; }; then
31214 ac_cv_type_off_t=yes
31216 echo "$as_me: failed program was:" >&5
31217 cat conftest.$ac_ext >&5
31218 ac_cv_type_off_t=no
31220 rm -f conftest.$ac_objext conftest.$ac_ext
31222 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31223 echo "${ECHO_T}$ac_cv_type_off_t" >&6
31224 if test $ac_cv_type_off_t = yes; then
31228 cat >>confdefs.h <<_ACEOF
31234 echo "$as_me:$LINENO: checking for mode_t" >&5
31235 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
31236 if test "${ac_cv_type_mode_t+set}" = set; then
31237 echo $ECHO_N "(cached) $ECHO_C" >&6
31239 cat >conftest.$ac_ext <<_ACEOF
31240 #line $LINENO "configure"
31241 #include "confdefs.h"
31242 #include <sys/types.h>
31244 #include <stdlib.h>
31245 #include <stddef.h>
31249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31250 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
31251 ac_cv_type_mode_t=yes
31253 ac_cv_type_mode_t=no
31258 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31259 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
31260 if test $ac_cv_type_mode_t = no; then
31262 cat >>confdefs.h <<\_ACEOF
31263 #define mode_t unsigned short
31268 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
31269 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
31270 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
31271 echo $ECHO_N "(cached) $ECHO_C" >&6
31273 cat >conftest.$ac_ext <<_ACEOF
31274 #line $LINENO "configure"
31275 #include "confdefs.h"
31276 #include <sys/types.h>
31278 #include <stdlib.h>
31279 #include <stddef.h>
31281 #include <signal.h>
31283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31284 egrep "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
31285 ac_cv_type_sig_atomic_t=yes
31287 ac_cv_type_sig_atomic_t=no
31292 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
31293 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
31294 if test $ac_cv_type_sig_atomic_t = no; then
31296 cat >>confdefs.h <<\_ACEOF
31297 #define sig_atomic_t int
31304 cv=`echo "long long" | sed 'y%./+- %__p__%'`
31305 echo "$as_me:$LINENO: checking for long long" >&5
31306 echo $ECHO_N "checking for long long... $ECHO_C" >&6
31307 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
31308 echo $ECHO_N "(cached) $ECHO_C" >&6
31310 cat >conftest.$ac_ext <<_ACEOF
31311 #line $LINENO "configure"
31312 #include "confdefs.h"
31313 #include <sys/types.h>
31315 #include <stdlib.h>
31316 #include <stddef.h>
31319 #ifdef F77_DUMMY_MAIN
31320 # ifdef __cplusplus
31323 int F77_DUMMY_MAIN() { return 1; }
31333 rm -f conftest.$ac_objext
31334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31335 (eval $ac_compile) 2>&5
31337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338 (exit $ac_status); } &&
31339 { ac_try='test -s conftest.$ac_objext'
31340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31341 (eval $ac_try) 2>&5
31343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31344 (exit $ac_status); }; }; then
31345 eval "ac_cv_type_$cv=yes"
31347 echo "$as_me: failed program was:" >&5
31348 cat conftest.$ac_ext >&5
31349 eval "ac_cv_type_$cv=no"
31351 rm -f conftest.$ac_objext conftest.$ac_ext
31353 ac_foo=`eval echo \\$ac_cv_type_$cv`
31354 echo "$as_me:$LINENO: result: $ac_foo" >&5
31355 echo "${ECHO_T}$ac_foo" >&6
31356 if test "$ac_foo" = yes; then
31357 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
31359 echo "$as_me:$LINENO: checking for long long" >&5
31360 echo $ECHO_N "checking for long long... $ECHO_C" >&6
31361 if test "${ac_cv_type_long_long+set}" = set; then
31362 echo $ECHO_N "(cached) $ECHO_C" >&6
31364 cat >conftest.$ac_ext <<_ACEOF
31365 #line $LINENO "configure"
31366 #include "confdefs.h"
31367 $ac_includes_default
31368 #ifdef F77_DUMMY_MAIN
31369 # ifdef __cplusplus
31372 int F77_DUMMY_MAIN() { return 1; }
31377 if ((long long *) 0)
31379 if (sizeof (long long))
31385 rm -f conftest.$ac_objext
31386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31387 (eval $ac_compile) 2>&5
31389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31390 (exit $ac_status); } &&
31391 { ac_try='test -s conftest.$ac_objext'
31392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31393 (eval $ac_try) 2>&5
31395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31396 (exit $ac_status); }; }; then
31397 ac_cv_type_long_long=yes
31399 echo "$as_me: failed program was:" >&5
31400 cat conftest.$ac_ext >&5
31401 ac_cv_type_long_long=no
31403 rm -f conftest.$ac_objext conftest.$ac_ext
31405 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
31406 echo "${ECHO_T}$ac_cv_type_long_long" >&6
31407 if test $ac_cv_type_long_long = yes; then
31409 cat >>confdefs.h <<_ACEOF
31410 #define HAVE_LONG_LONG 1
31418 cat >>confdefs.h <<_ACEOF
31419 #define $ac_tr_hdr 1
31424 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31425 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
31426 if test "${ac_cv_header_time+set}" = set; then
31427 echo $ECHO_N "(cached) $ECHO_C" >&6
31429 cat >conftest.$ac_ext <<_ACEOF
31430 #line $LINENO "configure"
31431 #include "confdefs.h"
31432 #include <sys/types.h>
31433 #include <sys/time.h>
31436 #ifdef F77_DUMMY_MAIN
31437 # ifdef __cplusplus
31440 int F77_DUMMY_MAIN() { return 1; }
31445 if ((struct tm *) 0)
31451 rm -f conftest.$ac_objext
31452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31453 (eval $ac_compile) 2>&5
31455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31456 (exit $ac_status); } &&
31457 { ac_try='test -s conftest.$ac_objext'
31458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31459 (eval $ac_try) 2>&5
31461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31462 (exit $ac_status); }; }; then
31463 ac_cv_header_time=yes
31465 echo "$as_me: failed program was:" >&5
31466 cat conftest.$ac_ext >&5
31467 ac_cv_header_time=no
31469 rm -f conftest.$ac_objext conftest.$ac_ext
31471 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31472 echo "${ECHO_T}$ac_cv_header_time" >&6
31473 if test $ac_cv_header_time = yes; then
31475 cat >>confdefs.h <<\_ACEOF
31476 #define TIME_WITH_SYS_TIME 1
31481 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31482 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
31483 if test "${ac_cv_struct_tm+set}" = set; then
31484 echo $ECHO_N "(cached) $ECHO_C" >&6
31486 cat >conftest.$ac_ext <<_ACEOF
31487 #line $LINENO "configure"
31488 #include "confdefs.h"
31489 #include <sys/types.h>
31492 #ifdef F77_DUMMY_MAIN
31493 # ifdef __cplusplus
31496 int F77_DUMMY_MAIN() { return 1; }
31501 struct tm *tp; tp->tm_sec;
31506 rm -f conftest.$ac_objext
31507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31508 (eval $ac_compile) 2>&5
31510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31511 (exit $ac_status); } &&
31512 { ac_try='test -s conftest.$ac_objext'
31513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31514 (eval $ac_try) 2>&5
31516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517 (exit $ac_status); }; }; then
31518 ac_cv_struct_tm=time.h
31520 echo "$as_me: failed program was:" >&5
31521 cat conftest.$ac_ext >&5
31522 ac_cv_struct_tm=sys/time.h
31524 rm -f conftest.$ac_objext conftest.$ac_ext
31526 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31527 echo "${ECHO_T}$ac_cv_struct_tm" >&6
31528 if test $ac_cv_struct_tm = sys/time.h; then
31530 cat >>confdefs.h <<\_ACEOF
31531 #define TM_IN_SYS_TIME 1
31537 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31538 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
31539 if test "${ac_cv_header_stdc+set}" = set; then
31540 echo $ECHO_N "(cached) $ECHO_C" >&6
31542 cat >conftest.$ac_ext <<_ACEOF
31543 #line $LINENO "configure"
31544 #include "confdefs.h"
31545 #include <stdlib.h>
31546 #include <stdarg.h>
31547 #include <string.h>
31551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31554 egrep -v '^ *\+' conftest.er1 >conftest.err
31556 cat conftest.err >&5
31557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31558 (exit $ac_status); } >/dev/null; then
31559 if test -s conftest.err; then
31560 ac_cpp_err=$ac_c_preproc_warn_flag
31567 if test -z "$ac_cpp_err"; then
31568 ac_cv_header_stdc=yes
31570 echo "$as_me: failed program was:" >&5
31571 cat conftest.$ac_ext >&5
31572 ac_cv_header_stdc=no
31574 rm -f conftest.err conftest.$ac_ext
31576 if test $ac_cv_header_stdc = yes; then
31577 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31578 cat >conftest.$ac_ext <<_ACEOF
31579 #line $LINENO "configure"
31580 #include "confdefs.h"
31581 #include <string.h>
31584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31585 egrep "memchr" >/dev/null 2>&1; then
31588 ac_cv_header_stdc=no
31594 if test $ac_cv_header_stdc = yes; then
31595 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
31596 cat >conftest.$ac_ext <<_ACEOF
31597 #line $LINENO "configure"
31598 #include "confdefs.h"
31599 #include <stdlib.h>
31602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31603 egrep "free" >/dev/null 2>&1; then
31606 ac_cv_header_stdc=no
31612 if test $ac_cv_header_stdc = yes; then
31613 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
31614 if test "$cross_compiling" = yes; then
31617 cat >conftest.$ac_ext <<_ACEOF
31618 #line $LINENO "configure"
31619 #include "confdefs.h"
31621 #if ((' ' & 0x0FF) == 0x020)
31622 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31623 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31625 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
31626 || ('j' <= (c) && (c) <= 'r') \
31627 || ('s' <= (c) && (c) <= 'z'))
31628 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31631 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31636 for (i = 0; i < 256; i++)
31637 if (XOR (islower (i), ISLOWER (i))
31638 || toupper (i) != TOUPPER (i))
31643 rm -f conftest$ac_exeext
31644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31645 (eval $ac_link) 2>&5
31647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31650 (eval $ac_try) 2>&5
31652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31653 (exit $ac_status); }; }; then
31656 echo "$as_me: program exited with status $ac_status" >&5
31657 echo "$as_me: failed program was:" >&5
31658 cat conftest.$ac_ext >&5
31659 ( exit $ac_status )
31660 ac_cv_header_stdc=no
31662 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31666 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31667 echo "${ECHO_T}$ac_cv_header_stdc" >&6
31668 if test $ac_cv_header_stdc = yes; then
31670 cat >>confdefs.h <<\_ACEOF
31671 #define STDC_HEADERS 1
31741 netinet/in6_machtypes.h \
31746 security/pam_modules.h \
31780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31782 echo "$as_me:$LINENO: checking for $ac_header" >&5
31783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31785 echo $ECHO_N "(cached) $ECHO_C" >&6
31787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31790 # Is the header compilable?
31791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31793 cat >conftest.$ac_ext <<_ACEOF
31794 #line $LINENO "configure"
31795 #include "confdefs.h"
31796 $ac_includes_default
31797 #include <$ac_header>
31799 rm -f conftest.$ac_objext
31800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31801 (eval $ac_compile) 2>&5
31803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804 (exit $ac_status); } &&
31805 { ac_try='test -s conftest.$ac_objext'
31806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31807 (eval $ac_try) 2>&5
31809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31810 (exit $ac_status); }; }; then
31811 ac_header_compiler=yes
31813 echo "$as_me: failed program was:" >&5
31814 cat conftest.$ac_ext >&5
31815 ac_header_compiler=no
31817 rm -f conftest.$ac_objext conftest.$ac_ext
31818 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31819 echo "${ECHO_T}$ac_header_compiler" >&6
31821 # Is the header present?
31822 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31823 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31824 cat >conftest.$ac_ext <<_ACEOF
31825 #line $LINENO "configure"
31826 #include "confdefs.h"
31827 #include <$ac_header>
31829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31832 egrep -v '^ *\+' conftest.er1 >conftest.err
31834 cat conftest.err >&5
31835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31836 (exit $ac_status); } >/dev/null; then
31837 if test -s conftest.err; then
31838 ac_cpp_err=$ac_c_preproc_warn_flag
31845 if test -z "$ac_cpp_err"; then
31846 ac_header_preproc=yes
31848 echo "$as_me: failed program was:" >&5
31849 cat conftest.$ac_ext >&5
31850 ac_header_preproc=no
31852 rm -f conftest.err conftest.$ac_ext
31853 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31854 echo "${ECHO_T}$ac_header_preproc" >&6
31856 # So? What about this header?
31857 case $ac_header_compiler:$ac_header_preproc in
31859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
31864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31867 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
31871 echo "$as_me:$LINENO: checking for $ac_header" >&5
31872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31874 echo $ECHO_N "(cached) $ECHO_C" >&6
31876 eval "$as_ac_Header=$ac_header_preproc"
31878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31883 cat >>confdefs.h <<_ACEOF
31884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31892 # Check whether --enable-netinfo or --disable-netinfo was given.
31893 if test "${enable_netinfo+set}" = set; then
31894 enableval="$enable_netinfo"
31898 if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then
31900 cat >>confdefs.h <<\_ACEOF
31901 #define HAVE_NETINFO 1
31910 echo "$as_me:$LINENO: checking for logwtmp" >&5
31911 echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6
31912 if test "${ac_cv_funclib_logwtmp+set}" = set; then
31913 echo $ECHO_N "(cached) $ECHO_C" >&6
31916 if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
31917 ac_save_LIBS="$LIBS"
31918 for ac_lib in "" util; do
31924 *) ac_lib="-l$ac_lib" ;;
31926 LIBS=" $ac_lib $ac_save_LIBS"
31927 cat >conftest.$ac_ext <<_ACEOF
31928 #line $LINENO "configure"
31929 #include "confdefs.h"
31931 #ifdef F77_DUMMY_MAIN
31932 # ifdef __cplusplus
31935 int F77_DUMMY_MAIN() { return 1; }
31945 rm -f conftest.$ac_objext conftest$ac_exeext
31946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31947 (eval $ac_link) 2>&5
31949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31950 (exit $ac_status); } &&
31951 { ac_try='test -s conftest$ac_exeext'
31952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31953 (eval $ac_try) 2>&5
31955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31956 (exit $ac_status); }; }; then
31957 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
31959 echo "$as_me: failed program was:" >&5
31960 cat conftest.$ac_ext >&5
31962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31964 eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
31965 LIBS="$ac_save_LIBS"
31971 eval "ac_res=\$ac_cv_funclib_logwtmp"
31975 for ac_func in logwtmp
31977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31978 echo "$as_me:$LINENO: checking for $ac_func" >&5
31979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31980 if eval "test \"\${$as_ac_var+set}\" = set"; then
31981 echo $ECHO_N "(cached) $ECHO_C" >&6
31983 cat >conftest.$ac_ext <<_ACEOF
31984 #line $LINENO "configure"
31985 #include "confdefs.h"
31986 /* System header to define __stub macros and hopefully few prototypes,
31987 which can conflict with char $ac_func (); below. */
31988 #include <assert.h>
31989 /* Override any gcc2 internal prototype to avoid an error. */
31993 /* We use char because int might match the return type of a gcc2
31994 builtin and then its argument prototype would still apply. */
31998 #ifdef F77_DUMMY_MAIN
31999 # ifdef __cplusplus
32002 int F77_DUMMY_MAIN() { return 1; }
32007 /* The GNU C library defines this for functions which it implements
32008 to always fail with ENOSYS. Some functions are actually named
32009 something starting with __ and the normal name is an alias. */
32010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32020 rm -f conftest.$ac_objext conftest$ac_exeext
32021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32022 (eval $ac_link) 2>&5
32024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32025 (exit $ac_status); } &&
32026 { ac_try='test -s conftest$ac_exeext'
32027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32028 (eval $ac_try) 2>&5
32030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32031 (exit $ac_status); }; }; then
32032 eval "$as_ac_var=yes"
32034 echo "$as_me: failed program was:" >&5
32035 cat conftest.$ac_ext >&5
32036 eval "$as_ac_var=no"
32038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32041 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32042 if test `eval echo '${'$as_ac_var'}'` = yes; then
32043 cat >>confdefs.h <<_ACEOF
32044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32052 eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32053 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32054 eval "LIB_logwtmp=$ac_res"
32058 eval "ac_cv_func_logwtmp=yes"
32059 eval "LIB_logwtmp="
32060 cat >>confdefs.h <<_ACEOF
32061 #define $ac_tr_func 1
32064 echo "$as_me:$LINENO: result: yes" >&5
32065 echo "${ECHO_T}yes" >&6
32068 eval "ac_cv_func_logwtmp=no"
32069 eval "LIB_logwtmp="
32070 echo "$as_me:$LINENO: result: no" >&5
32071 echo "${ECHO_T}no" >&6
32074 eval "ac_cv_func_logwtmp=yes"
32075 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
32076 cat >>confdefs.h <<_ACEOF
32077 #define $ac_tr_func 1
32080 cat >>confdefs.h <<_ACEOF
32081 #define $ac_tr_lib 1
32084 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
32085 echo "${ECHO_T}yes, in $ac_res" >&6
32093 echo "$as_me:$LINENO: checking for logout" >&5
32094 echo $ECHO_N "checking for logout... $ECHO_C" >&6
32095 if test "${ac_cv_funclib_logout+set}" = set; then
32096 echo $ECHO_N "(cached) $ECHO_C" >&6
32099 if eval "test \"\$ac_cv_func_logout\" != yes" ; then
32100 ac_save_LIBS="$LIBS"
32101 for ac_lib in "" util; do
32107 *) ac_lib="-l$ac_lib" ;;
32109 LIBS=" $ac_lib $ac_save_LIBS"
32110 cat >conftest.$ac_ext <<_ACEOF
32111 #line $LINENO "configure"
32112 #include "confdefs.h"
32114 #ifdef F77_DUMMY_MAIN
32115 # ifdef __cplusplus
32118 int F77_DUMMY_MAIN() { return 1; }
32128 rm -f conftest.$ac_objext conftest$ac_exeext
32129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32130 (eval $ac_link) 2>&5
32132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32133 (exit $ac_status); } &&
32134 { ac_try='test -s conftest$ac_exeext'
32135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32136 (eval $ac_try) 2>&5
32138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32139 (exit $ac_status); }; }; then
32140 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break
32142 echo "$as_me: failed program was:" >&5
32143 cat conftest.$ac_ext >&5
32145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32147 eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}"
32148 LIBS="$ac_save_LIBS"
32154 eval "ac_res=\$ac_cv_funclib_logout"
32158 for ac_func in logout
32160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32161 echo "$as_me:$LINENO: checking for $ac_func" >&5
32162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32163 if eval "test \"\${$as_ac_var+set}\" = set"; then
32164 echo $ECHO_N "(cached) $ECHO_C" >&6
32166 cat >conftest.$ac_ext <<_ACEOF
32167 #line $LINENO "configure"
32168 #include "confdefs.h"
32169 /* System header to define __stub macros and hopefully few prototypes,
32170 which can conflict with char $ac_func (); below. */
32171 #include <assert.h>
32172 /* Override any gcc2 internal prototype to avoid an error. */
32176 /* We use char because int might match the return type of a gcc2
32177 builtin and then its argument prototype would still apply. */
32181 #ifdef F77_DUMMY_MAIN
32182 # ifdef __cplusplus
32185 int F77_DUMMY_MAIN() { return 1; }
32190 /* The GNU C library defines this for functions which it implements
32191 to always fail with ENOSYS. Some functions are actually named
32192 something starting with __ and the normal name is an alias. */
32193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32203 rm -f conftest.$ac_objext conftest$ac_exeext
32204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32205 (eval $ac_link) 2>&5
32207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32208 (exit $ac_status); } &&
32209 { ac_try='test -s conftest$ac_exeext'
32210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32211 (eval $ac_try) 2>&5
32213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32214 (exit $ac_status); }; }; then
32215 eval "$as_ac_var=yes"
32217 echo "$as_me: failed program was:" >&5
32218 cat conftest.$ac_ext >&5
32219 eval "$as_ac_var=no"
32221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32225 if test `eval echo '${'$as_ac_var'}'` = yes; then
32226 cat >>confdefs.h <<_ACEOF
32227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32235 eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32236 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32237 eval "LIB_logout=$ac_res"
32241 eval "ac_cv_func_logout=yes"
32243 cat >>confdefs.h <<_ACEOF
32244 #define $ac_tr_func 1
32247 echo "$as_me:$LINENO: result: yes" >&5
32248 echo "${ECHO_T}yes" >&6
32251 eval "ac_cv_func_logout=no"
32253 echo "$as_me:$LINENO: result: no" >&5
32254 echo "${ECHO_T}no" >&6
32257 eval "ac_cv_func_logout=yes"
32258 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
32259 cat >>confdefs.h <<_ACEOF
32260 #define $ac_tr_func 1
32263 cat >>confdefs.h <<_ACEOF
32264 #define $ac_tr_lib 1
32267 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
32268 echo "${ECHO_T}yes, in $ac_res" >&6
32276 echo "$as_me:$LINENO: checking for openpty" >&5
32277 echo $ECHO_N "checking for openpty... $ECHO_C" >&6
32278 if test "${ac_cv_funclib_openpty+set}" = set; then
32279 echo $ECHO_N "(cached) $ECHO_C" >&6
32282 if eval "test \"\$ac_cv_func_openpty\" != yes" ; then
32283 ac_save_LIBS="$LIBS"
32284 for ac_lib in "" util; do
32290 *) ac_lib="-l$ac_lib" ;;
32292 LIBS=" $ac_lib $ac_save_LIBS"
32293 cat >conftest.$ac_ext <<_ACEOF
32294 #line $LINENO "configure"
32295 #include "confdefs.h"
32297 #ifdef F77_DUMMY_MAIN
32298 # ifdef __cplusplus
32301 int F77_DUMMY_MAIN() { return 1; }
32311 rm -f conftest.$ac_objext conftest$ac_exeext
32312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32313 (eval $ac_link) 2>&5
32315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32316 (exit $ac_status); } &&
32317 { ac_try='test -s conftest$ac_exeext'
32318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32319 (eval $ac_try) 2>&5
32321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322 (exit $ac_status); }; }; then
32323 eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break
32325 echo "$as_me: failed program was:" >&5
32326 cat conftest.$ac_ext >&5
32328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32330 eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}"
32331 LIBS="$ac_save_LIBS"
32337 eval "ac_res=\$ac_cv_funclib_openpty"
32341 for ac_func in openpty
32343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32344 echo "$as_me:$LINENO: checking for $ac_func" >&5
32345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32346 if eval "test \"\${$as_ac_var+set}\" = set"; then
32347 echo $ECHO_N "(cached) $ECHO_C" >&6
32349 cat >conftest.$ac_ext <<_ACEOF
32350 #line $LINENO "configure"
32351 #include "confdefs.h"
32352 /* System header to define __stub macros and hopefully few prototypes,
32353 which can conflict with char $ac_func (); below. */
32354 #include <assert.h>
32355 /* Override any gcc2 internal prototype to avoid an error. */
32359 /* We use char because int might match the return type of a gcc2
32360 builtin and then its argument prototype would still apply. */
32364 #ifdef F77_DUMMY_MAIN
32365 # ifdef __cplusplus
32368 int F77_DUMMY_MAIN() { return 1; }
32373 /* The GNU C library defines this for functions which it implements
32374 to always fail with ENOSYS. Some functions are actually named
32375 something starting with __ and the normal name is an alias. */
32376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32386 rm -f conftest.$ac_objext conftest$ac_exeext
32387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32388 (eval $ac_link) 2>&5
32390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391 (exit $ac_status); } &&
32392 { ac_try='test -s conftest$ac_exeext'
32393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32394 (eval $ac_try) 2>&5
32396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32397 (exit $ac_status); }; }; then
32398 eval "$as_ac_var=yes"
32400 echo "$as_me: failed program was:" >&5
32401 cat conftest.$ac_ext >&5
32402 eval "$as_ac_var=no"
32404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32408 if test `eval echo '${'$as_ac_var'}'` = yes; then
32409 cat >>confdefs.h <<_ACEOF
32410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32418 eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32419 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32420 eval "LIB_openpty=$ac_res"
32424 eval "ac_cv_func_openpty=yes"
32425 eval "LIB_openpty="
32426 cat >>confdefs.h <<_ACEOF
32427 #define $ac_tr_func 1
32430 echo "$as_me:$LINENO: result: yes" >&5
32431 echo "${ECHO_T}yes" >&6
32434 eval "ac_cv_func_openpty=no"
32435 eval "LIB_openpty="
32436 echo "$as_me:$LINENO: result: no" >&5
32437 echo "${ECHO_T}no" >&6
32440 eval "ac_cv_func_openpty=yes"
32441 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
32442 cat >>confdefs.h <<_ACEOF
32443 #define $ac_tr_func 1
32446 cat >>confdefs.h <<_ACEOF
32447 #define $ac_tr_lib 1
32450 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
32451 echo "${ECHO_T}yes, in $ac_res" >&6
32459 echo "$as_me:$LINENO: checking for tgetent" >&5
32460 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
32461 if test "${ac_cv_funclib_tgetent+set}" = set; then
32462 echo $ECHO_N "(cached) $ECHO_C" >&6
32465 if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
32466 ac_save_LIBS="$LIBS"
32467 for ac_lib in "" termcap ncurses curses; do
32473 *) ac_lib="-l$ac_lib" ;;
32475 LIBS=" $ac_lib $ac_save_LIBS"
32476 cat >conftest.$ac_ext <<_ACEOF
32477 #line $LINENO "configure"
32478 #include "confdefs.h"
32480 #ifdef F77_DUMMY_MAIN
32481 # ifdef __cplusplus
32484 int F77_DUMMY_MAIN() { return 1; }
32494 rm -f conftest.$ac_objext conftest$ac_exeext
32495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32496 (eval $ac_link) 2>&5
32498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499 (exit $ac_status); } &&
32500 { ac_try='test -s conftest$ac_exeext'
32501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32502 (eval $ac_try) 2>&5
32504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32505 (exit $ac_status); }; }; then
32506 eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
32508 echo "$as_me: failed program was:" >&5
32509 cat conftest.$ac_ext >&5
32511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32513 eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
32514 LIBS="$ac_save_LIBS"
32520 eval "ac_res=\$ac_cv_funclib_tgetent"
32524 for ac_func in tgetent
32526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32527 echo "$as_me:$LINENO: checking for $ac_func" >&5
32528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32529 if eval "test \"\${$as_ac_var+set}\" = set"; then
32530 echo $ECHO_N "(cached) $ECHO_C" >&6
32532 cat >conftest.$ac_ext <<_ACEOF
32533 #line $LINENO "configure"
32534 #include "confdefs.h"
32535 /* System header to define __stub macros and hopefully few prototypes,
32536 which can conflict with char $ac_func (); below. */
32537 #include <assert.h>
32538 /* Override any gcc2 internal prototype to avoid an error. */
32542 /* We use char because int might match the return type of a gcc2
32543 builtin and then its argument prototype would still apply. */
32547 #ifdef F77_DUMMY_MAIN
32548 # ifdef __cplusplus
32551 int F77_DUMMY_MAIN() { return 1; }
32556 /* The GNU C library defines this for functions which it implements
32557 to always fail with ENOSYS. Some functions are actually named
32558 something starting with __ and the normal name is an alias. */
32559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32569 rm -f conftest.$ac_objext conftest$ac_exeext
32570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32571 (eval $ac_link) 2>&5
32573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32574 (exit $ac_status); } &&
32575 { ac_try='test -s conftest$ac_exeext'
32576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32577 (eval $ac_try) 2>&5
32579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32580 (exit $ac_status); }; }; then
32581 eval "$as_ac_var=yes"
32583 echo "$as_me: failed program was:" >&5
32584 cat conftest.$ac_ext >&5
32585 eval "$as_ac_var=no"
32587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32591 if test `eval echo '${'$as_ac_var'}'` = yes; then
32592 cat >>confdefs.h <<_ACEOF
32593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32601 eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32602 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32603 eval "LIB_tgetent=$ac_res"
32607 eval "ac_cv_func_tgetent=yes"
32608 eval "LIB_tgetent="
32609 cat >>confdefs.h <<_ACEOF
32610 #define $ac_tr_func 1
32613 echo "$as_me:$LINENO: result: yes" >&5
32614 echo "${ECHO_T}yes" >&6
32617 eval "ac_cv_func_tgetent=no"
32618 eval "LIB_tgetent="
32619 echo "$as_me:$LINENO: result: no" >&5
32620 echo "${ECHO_T}no" >&6
32623 eval "ac_cv_func_tgetent=yes"
32624 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
32625 cat >>confdefs.h <<_ACEOF
32626 #define $ac_tr_func 1
32629 cat >>confdefs.h <<_ACEOF
32630 #define $ac_tr_lib 1
32633 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
32634 echo "${ECHO_T}yes, in $ac_res" >&6
32697 yp_get_default_domain \
32700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32701 echo "$as_me:$LINENO: checking for $ac_func" >&5
32702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32703 if eval "test \"\${$as_ac_var+set}\" = set"; then
32704 echo $ECHO_N "(cached) $ECHO_C" >&6
32706 cat >conftest.$ac_ext <<_ACEOF
32707 #line $LINENO "configure"
32708 #include "confdefs.h"
32709 /* System header to define __stub macros and hopefully few prototypes,
32710 which can conflict with char $ac_func (); below. */
32711 #include <assert.h>
32712 /* Override any gcc2 internal prototype to avoid an error. */
32716 /* We use char because int might match the return type of a gcc2
32717 builtin and then its argument prototype would still apply. */
32721 #ifdef F77_DUMMY_MAIN
32722 # ifdef __cplusplus
32725 int F77_DUMMY_MAIN() { return 1; }
32730 /* The GNU C library defines this for functions which it implements
32731 to always fail with ENOSYS. Some functions are actually named
32732 something starting with __ and the normal name is an alias. */
32733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32743 rm -f conftest.$ac_objext conftest$ac_exeext
32744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32745 (eval $ac_link) 2>&5
32747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748 (exit $ac_status); } &&
32749 { ac_try='test -s conftest$ac_exeext'
32750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32751 (eval $ac_try) 2>&5
32753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32754 (exit $ac_status); }; }; then
32755 eval "$as_ac_var=yes"
32757 echo "$as_me: failed program was:" >&5
32758 cat conftest.$ac_ext >&5
32759 eval "$as_ac_var=no"
32761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32765 if test `eval echo '${'$as_ac_var'}'` = yes; then
32766 cat >>confdefs.h <<_ACEOF
32767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32776 for ac_header in stdlib.h unistd.h
32778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32780 echo "$as_me:$LINENO: checking for $ac_header" >&5
32781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32783 echo $ECHO_N "(cached) $ECHO_C" >&6
32785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32788 # Is the header compilable?
32789 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32791 cat >conftest.$ac_ext <<_ACEOF
32792 #line $LINENO "configure"
32793 #include "confdefs.h"
32794 $ac_includes_default
32795 #include <$ac_header>
32797 rm -f conftest.$ac_objext
32798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32799 (eval $ac_compile) 2>&5
32801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32802 (exit $ac_status); } &&
32803 { ac_try='test -s conftest.$ac_objext'
32804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32805 (eval $ac_try) 2>&5
32807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808 (exit $ac_status); }; }; then
32809 ac_header_compiler=yes
32811 echo "$as_me: failed program was:" >&5
32812 cat conftest.$ac_ext >&5
32813 ac_header_compiler=no
32815 rm -f conftest.$ac_objext conftest.$ac_ext
32816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32817 echo "${ECHO_T}$ac_header_compiler" >&6
32819 # Is the header present?
32820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32822 cat >conftest.$ac_ext <<_ACEOF
32823 #line $LINENO "configure"
32824 #include "confdefs.h"
32825 #include <$ac_header>
32827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32830 egrep -v '^ *\+' conftest.er1 >conftest.err
32832 cat conftest.err >&5
32833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32834 (exit $ac_status); } >/dev/null; then
32835 if test -s conftest.err; then
32836 ac_cpp_err=$ac_c_preproc_warn_flag
32843 if test -z "$ac_cpp_err"; then
32844 ac_header_preproc=yes
32846 echo "$as_me: failed program was:" >&5
32847 cat conftest.$ac_ext >&5
32848 ac_header_preproc=no
32850 rm -f conftest.err conftest.$ac_ext
32851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32852 echo "${ECHO_T}$ac_header_preproc" >&6
32854 # So? What about this header?
32855 case $ac_header_compiler:$ac_header_preproc in
32857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
32862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32865 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
32869 echo "$as_me:$LINENO: checking for $ac_header" >&5
32870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32872 echo $ECHO_N "(cached) $ECHO_C" >&6
32874 eval "$as_ac_Header=$ac_header_preproc"
32876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32881 cat >>confdefs.h <<_ACEOF
32882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32890 for ac_func in getpagesize
32892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32893 echo "$as_me:$LINENO: checking for $ac_func" >&5
32894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32895 if eval "test \"\${$as_ac_var+set}\" = set"; then
32896 echo $ECHO_N "(cached) $ECHO_C" >&6
32898 cat >conftest.$ac_ext <<_ACEOF
32899 #line $LINENO "configure"
32900 #include "confdefs.h"
32901 /* System header to define __stub macros and hopefully few prototypes,
32902 which can conflict with char $ac_func (); below. */
32903 #include <assert.h>
32904 /* Override any gcc2 internal prototype to avoid an error. */
32908 /* We use char because int might match the return type of a gcc2
32909 builtin and then its argument prototype would still apply. */
32913 #ifdef F77_DUMMY_MAIN
32914 # ifdef __cplusplus
32917 int F77_DUMMY_MAIN() { return 1; }
32922 /* The GNU C library defines this for functions which it implements
32923 to always fail with ENOSYS. Some functions are actually named
32924 something starting with __ and the normal name is an alias. */
32925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32935 rm -f conftest.$ac_objext conftest$ac_exeext
32936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32937 (eval $ac_link) 2>&5
32939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32940 (exit $ac_status); } &&
32941 { ac_try='test -s conftest$ac_exeext'
32942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32943 (eval $ac_try) 2>&5
32945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32946 (exit $ac_status); }; }; then
32947 eval "$as_ac_var=yes"
32949 echo "$as_me: failed program was:" >&5
32950 cat conftest.$ac_ext >&5
32951 eval "$as_ac_var=no"
32953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32956 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32957 if test `eval echo '${'$as_ac_var'}'` = yes; then
32958 cat >>confdefs.h <<_ACEOF
32959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32965 echo "$as_me:$LINENO: checking for working mmap" >&5
32966 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
32967 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32968 echo $ECHO_N "(cached) $ECHO_C" >&6
32970 if test "$cross_compiling" = yes; then
32971 ac_cv_func_mmap_fixed_mapped=no
32973 cat >conftest.$ac_ext <<_ACEOF
32974 #line $LINENO "configure"
32975 #include "confdefs.h"
32976 $ac_includes_default
32977 /* malloc might have been renamed as rpl_malloc. */
32980 /* Thanks to Mike Haertel and Jim Avera for this test.
32981 Here is a matrix of mmap possibilities:
32982 mmap private not fixed
32983 mmap private fixed at somewhere currently unmapped
32984 mmap private fixed at somewhere already mapped
32985 mmap shared not fixed
32986 mmap shared fixed at somewhere currently unmapped
32987 mmap shared fixed at somewhere already mapped
32988 For private mappings, we should verify that changes cannot be read()
32989 back from the file, nor mmap's back from the file at a different
32990 address. (There have been systems where private was not correctly
32991 implemented like the infamous i386 svr4.0, and systems where the
32992 VM page cache was not coherent with the file system buffer cache
32993 like early versions of FreeBSD and possibly contemporary NetBSD.)
32994 For shared mappings, we should conversely verify that changes get
32995 propagated back to all the places they're supposed to be.
32997 Grep wants private fixed already mapped.
32998 The main things grep needs to know about mmap are:
32999 * does it exist and is it safe to write into the mmap'd area
33000 * how to use it (BSD variants) */
33003 #include <sys/mman.h>
33005 #if !STDC_HEADERS && !HAVE_STDLIB_H
33009 /* This mess was copied from the GNU getpagesize.h. */
33010 #if !HAVE_GETPAGESIZE
33011 /* Assume that all systems that can run configure have sys/param.h. */
33012 # if !HAVE_SYS_PARAM_H
33013 # define HAVE_SYS_PARAM_H 1
33016 # ifdef _SC_PAGESIZE
33017 # define getpagesize() sysconf(_SC_PAGESIZE)
33018 # else /* no _SC_PAGESIZE */
33019 # if HAVE_SYS_PARAM_H
33020 # include <sys/param.h>
33021 # ifdef EXEC_PAGESIZE
33022 # define getpagesize() EXEC_PAGESIZE
33023 # else /* no EXEC_PAGESIZE */
33025 # define getpagesize() NBPG * CLSIZE
33028 # endif /* no CLSIZE */
33029 # else /* no NBPG */
33031 # define getpagesize() NBPC
33032 # else /* no NBPC */
33034 # define getpagesize() PAGESIZE
33035 # endif /* PAGESIZE */
33036 # endif /* no NBPC */
33037 # endif /* no NBPG */
33038 # endif /* no EXEC_PAGESIZE */
33039 # else /* no HAVE_SYS_PARAM_H */
33040 # define getpagesize() 8192 /* punt totally */
33041 # endif /* no HAVE_SYS_PARAM_H */
33042 # endif /* no _SC_PAGESIZE */
33044 #endif /* no HAVE_GETPAGESIZE */
33049 char *data, *data2, *data3;
33053 pagesize = getpagesize ();
33055 /* First, make a file with some known garbage in it. */
33056 data = (char *) malloc (pagesize);
33059 for (i = 0; i < pagesize; ++i)
33060 *(data + i) = rand ();
33062 fd = creat ("conftest.mmap", 0600);
33065 if (write (fd, data, pagesize) != pagesize)
33069 /* Next, try to mmap the file at a fixed address which already has
33070 something else allocated at it. If we can, also make sure that
33071 we see the same garbage. */
33072 fd = open ("conftest.mmap", O_RDWR);
33075 data2 = (char *) malloc (2 * pagesize);
33078 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
33079 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33080 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33082 for (i = 0; i < pagesize; ++i)
33083 if (*(data + i) != *(data2 + i))
33086 /* Finally, make sure that changes to the mapped area do not
33087 percolate back to the file as seen by read(). (This is a bug on
33088 some variants of i386 svr4.0.) */
33089 for (i = 0; i < pagesize; ++i)
33090 *(data2 + i) = *(data2 + i) + 1;
33091 data3 = (char *) malloc (pagesize);
33094 if (read (fd, data3, pagesize) != pagesize)
33096 for (i = 0; i < pagesize; ++i)
33097 if (*(data + i) != *(data3 + i))
33103 rm -f conftest$ac_exeext
33104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33105 (eval $ac_link) 2>&5
33107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33110 (eval $ac_try) 2>&5
33112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33113 (exit $ac_status); }; }; then
33114 ac_cv_func_mmap_fixed_mapped=yes
33116 echo "$as_me: program exited with status $ac_status" >&5
33117 echo "$as_me: failed program was:" >&5
33118 cat conftest.$ac_ext >&5
33119 ( exit $ac_status )
33120 ac_cv_func_mmap_fixed_mapped=no
33122 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33125 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33126 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
33127 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33129 cat >>confdefs.h <<\_ACEOF
33130 #define HAVE_MMAP 1
33134 rm -f conftest.mmap
33141 for ac_header in capability.h sys/capability.h
33143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33145 echo "$as_me:$LINENO: checking for $ac_header" >&5
33146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33148 echo $ECHO_N "(cached) $ECHO_C" >&6
33150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33153 # Is the header compilable?
33154 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33156 cat >conftest.$ac_ext <<_ACEOF
33157 #line $LINENO "configure"
33158 #include "confdefs.h"
33159 $ac_includes_default
33160 #include <$ac_header>
33162 rm -f conftest.$ac_objext
33163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33164 (eval $ac_compile) 2>&5
33166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33167 (exit $ac_status); } &&
33168 { ac_try='test -s conftest.$ac_objext'
33169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33170 (eval $ac_try) 2>&5
33172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33173 (exit $ac_status); }; }; then
33174 ac_header_compiler=yes
33176 echo "$as_me: failed program was:" >&5
33177 cat conftest.$ac_ext >&5
33178 ac_header_compiler=no
33180 rm -f conftest.$ac_objext conftest.$ac_ext
33181 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33182 echo "${ECHO_T}$ac_header_compiler" >&6
33184 # Is the header present?
33185 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33186 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33187 cat >conftest.$ac_ext <<_ACEOF
33188 #line $LINENO "configure"
33189 #include "confdefs.h"
33190 #include <$ac_header>
33192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33195 egrep -v '^ *\+' conftest.er1 >conftest.err
33197 cat conftest.err >&5
33198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199 (exit $ac_status); } >/dev/null; then
33200 if test -s conftest.err; then
33201 ac_cpp_err=$ac_c_preproc_warn_flag
33208 if test -z "$ac_cpp_err"; then
33209 ac_header_preproc=yes
33211 echo "$as_me: failed program was:" >&5
33212 cat conftest.$ac_ext >&5
33213 ac_header_preproc=no
33215 rm -f conftest.err conftest.$ac_ext
33216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33217 echo "${ECHO_T}$ac_header_preproc" >&6
33219 # So? What about this header?
33220 case $ac_header_compiler:$ac_header_preproc in
33222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
33227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33228 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33230 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
33234 echo "$as_me:$LINENO: checking for $ac_header" >&5
33235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33237 echo $ECHO_N "(cached) $ECHO_C" >&6
33239 eval "$as_ac_Header=$ac_header_preproc"
33241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33246 cat >>confdefs.h <<_ACEOF
33247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33257 for ac_func in sgi_getcapabilitybyname cap_set_proc
33259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33260 echo "$as_me:$LINENO: checking for $ac_func" >&5
33261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33262 if eval "test \"\${$as_ac_var+set}\" = set"; then
33263 echo $ECHO_N "(cached) $ECHO_C" >&6
33265 cat >conftest.$ac_ext <<_ACEOF
33266 #line $LINENO "configure"
33267 #include "confdefs.h"
33268 /* System header to define __stub macros and hopefully few prototypes,
33269 which can conflict with char $ac_func (); below. */
33270 #include <assert.h>
33271 /* Override any gcc2 internal prototype to avoid an error. */
33275 /* We use char because int might match the return type of a gcc2
33276 builtin and then its argument prototype would still apply. */
33280 #ifdef F77_DUMMY_MAIN
33281 # ifdef __cplusplus
33284 int F77_DUMMY_MAIN() { return 1; }
33289 /* The GNU C library defines this for functions which it implements
33290 to always fail with ENOSYS. Some functions are actually named
33291 something starting with __ and the normal name is an alias. */
33292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33302 rm -f conftest.$ac_objext conftest$ac_exeext
33303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33304 (eval $ac_link) 2>&5
33306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33307 (exit $ac_status); } &&
33308 { ac_try='test -s conftest$ac_exeext'
33309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33310 (eval $ac_try) 2>&5
33312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313 (exit $ac_status); }; }; then
33314 eval "$as_ac_var=yes"
33316 echo "$as_me: failed program was:" >&5
33317 cat conftest.$ac_ext >&5
33318 eval "$as_ac_var=no"
33320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33323 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33324 if test `eval echo '${'$as_ac_var'}'` = yes; then
33325 cat >>confdefs.h <<_ACEOF
33326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33338 echo "$as_me:$LINENO: checking for getpwnam_r" >&5
33339 echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6
33340 if test "${ac_cv_funclib_getpwnam_r+set}" = set; then
33341 echo $ECHO_N "(cached) $ECHO_C" >&6
33344 if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
33345 ac_save_LIBS="$LIBS"
33346 for ac_lib in "" c_r; do
33352 *) ac_lib="-l$ac_lib" ;;
33354 LIBS=" $ac_lib $ac_save_LIBS"
33355 cat >conftest.$ac_ext <<_ACEOF
33356 #line $LINENO "configure"
33357 #include "confdefs.h"
33359 #ifdef F77_DUMMY_MAIN
33360 # ifdef __cplusplus
33363 int F77_DUMMY_MAIN() { return 1; }
33373 rm -f conftest.$ac_objext conftest$ac_exeext
33374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33375 (eval $ac_link) 2>&5
33377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33378 (exit $ac_status); } &&
33379 { ac_try='test -s conftest$ac_exeext'
33380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33381 (eval $ac_try) 2>&5
33383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33384 (exit $ac_status); }; }; then
33385 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
33387 echo "$as_me: failed program was:" >&5
33388 cat conftest.$ac_ext >&5
33390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33392 eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
33393 LIBS="$ac_save_LIBS"
33399 eval "ac_res=\$ac_cv_funclib_getpwnam_r"
33403 for ac_func in getpwnam_r
33405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33406 echo "$as_me:$LINENO: checking for $ac_func" >&5
33407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33408 if eval "test \"\${$as_ac_var+set}\" = set"; then
33409 echo $ECHO_N "(cached) $ECHO_C" >&6
33411 cat >conftest.$ac_ext <<_ACEOF
33412 #line $LINENO "configure"
33413 #include "confdefs.h"
33414 /* System header to define __stub macros and hopefully few prototypes,
33415 which can conflict with char $ac_func (); below. */
33416 #include <assert.h>
33417 /* Override any gcc2 internal prototype to avoid an error. */
33421 /* We use char because int might match the return type of a gcc2
33422 builtin and then its argument prototype would still apply. */
33426 #ifdef F77_DUMMY_MAIN
33427 # ifdef __cplusplus
33430 int F77_DUMMY_MAIN() { return 1; }
33435 /* The GNU C library defines this for functions which it implements
33436 to always fail with ENOSYS. Some functions are actually named
33437 something starting with __ and the normal name is an alias. */
33438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33448 rm -f conftest.$ac_objext conftest$ac_exeext
33449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33450 (eval $ac_link) 2>&5
33452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453 (exit $ac_status); } &&
33454 { ac_try='test -s conftest$ac_exeext'
33455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33456 (eval $ac_try) 2>&5
33458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33459 (exit $ac_status); }; }; then
33460 eval "$as_ac_var=yes"
33462 echo "$as_me: failed program was:" >&5
33463 cat conftest.$ac_ext >&5
33464 eval "$as_ac_var=no"
33466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33469 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33470 if test `eval echo '${'$as_ac_var'}'` = yes; then
33471 cat >>confdefs.h <<_ACEOF
33472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33480 eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
33481 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
33482 eval "LIB_getpwnam_r=$ac_res"
33486 eval "ac_cv_func_getpwnam_r=yes"
33487 eval "LIB_getpwnam_r="
33488 cat >>confdefs.h <<_ACEOF
33489 #define $ac_tr_func 1
33492 echo "$as_me:$LINENO: result: yes" >&5
33493 echo "${ECHO_T}yes" >&6
33496 eval "ac_cv_func_getpwnam_r=no"
33497 eval "LIB_getpwnam_r="
33498 echo "$as_me:$LINENO: result: no" >&5
33499 echo "${ECHO_T}no" >&6
33502 eval "ac_cv_func_getpwnam_r=yes"
33503 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
33504 cat >>confdefs.h <<_ACEOF
33505 #define $ac_tr_func 1
33508 cat >>confdefs.h <<_ACEOF
33509 #define $ac_tr_lib 1
33512 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
33513 echo "${ECHO_T}yes, in $ac_res" >&6
33518 if test "$ac_cv_func_getpwnam_r" = yes; then
33519 echo "$as_me:$LINENO: checking if getpwnam_r is posix" >&5
33520 echo $ECHO_N "checking if getpwnam_r is posix... $ECHO_C" >&6
33521 if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then
33522 echo $ECHO_N "(cached) $ECHO_C" >&6
33525 LIBS="$LIBS $LIB_getpwnam_r"
33526 if test "$cross_compiling" = yes; then
33529 cat >conftest.$ac_ext <<_ACEOF
33530 #line $LINENO "configure"
33531 #include "confdefs.h"
33536 struct passwd pw, *pwd;
33537 return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
33541 rm -f conftest$ac_exeext
33542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33543 (eval $ac_link) 2>&5
33545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33548 (eval $ac_try) 2>&5
33550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33551 (exit $ac_status); }; }; then
33552 ac_cv_func_getpwnam_r_posix=yes
33554 echo "$as_me: program exited with status $ac_status" >&5
33555 echo "$as_me: failed program was:" >&5
33556 cat conftest.$ac_ext >&5
33557 ( exit $ac_status )
33558 ac_cv_func_getpwnam_r_posix=no
33560 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33564 echo "$as_me:$LINENO: result: $ac_cv_func_getpwnam_r_posix" >&5
33565 echo "${ECHO_T}$ac_cv_func_getpwnam_r_posix" >&6
33566 if test "$ac_cv_func_getpwnam_r_posix" = yes; then
33568 cat >>confdefs.h <<\_ACEOF
33569 #define POSIX_GETPWNAM_R 1
33578 for ac_func in getudbnam setlim
33580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33581 echo "$as_me:$LINENO: checking for $ac_func" >&5
33582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33583 if eval "test \"\${$as_ac_var+set}\" = set"; then
33584 echo $ECHO_N "(cached) $ECHO_C" >&6
33586 cat >conftest.$ac_ext <<_ACEOF
33587 #line $LINENO "configure"
33588 #include "confdefs.h"
33589 /* System header to define __stub macros and hopefully few prototypes,
33590 which can conflict with char $ac_func (); below. */
33591 #include <assert.h>
33592 /* Override any gcc2 internal prototype to avoid an error. */
33596 /* We use char because int might match the return type of a gcc2
33597 builtin and then its argument prototype would still apply. */
33601 #ifdef F77_DUMMY_MAIN
33602 # ifdef __cplusplus
33605 int F77_DUMMY_MAIN() { return 1; }
33610 /* The GNU C library defines this for functions which it implements
33611 to always fail with ENOSYS. Some functions are actually named
33612 something starting with __ and the normal name is an alias. */
33613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33623 rm -f conftest.$ac_objext conftest$ac_exeext
33624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33625 (eval $ac_link) 2>&5
33627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33628 (exit $ac_status); } &&
33629 { ac_try='test -s conftest$ac_exeext'
33630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33631 (eval $ac_try) 2>&5
33633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33634 (exit $ac_status); }; }; then
33635 eval "$as_ac_var=yes"
33637 echo "$as_me: failed program was:" >&5
33638 cat conftest.$ac_ext >&5
33639 eval "$as_ac_var=no"
33641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33645 if test `eval echo '${'$as_ac_var'}'` = yes; then
33646 cat >>confdefs.h <<_ACEOF
33647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33658 echo "$as_me:$LINENO: checking for ut_addr in struct utmp" >&5
33659 echo $ECHO_N "checking for ut_addr in struct utmp... $ECHO_C" >&6
33660 if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then
33661 echo $ECHO_N "(cached) $ECHO_C" >&6
33664 cat >conftest.$ac_ext <<_ACEOF
33665 #line $LINENO "configure"
33666 #include "confdefs.h"
33668 #ifdef F77_DUMMY_MAIN
33669 # ifdef __cplusplus
33672 int F77_DUMMY_MAIN() { return 1; }
33677 struct utmp x; x.ut_addr;
33682 rm -f conftest.$ac_objext
33683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33684 (eval $ac_compile) 2>&5
33686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33687 (exit $ac_status); } &&
33688 { ac_try='test -s conftest.$ac_objext'
33689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33690 (eval $ac_try) 2>&5
33692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33693 (exit $ac_status); }; }; then
33694 ac_cv_type_struct_utmp_ut_addr=yes
33696 echo "$as_me: failed program was:" >&5
33697 cat conftest.$ac_ext >&5
33698 ac_cv_type_struct_utmp_ut_addr=no
33700 rm -f conftest.$ac_objext conftest.$ac_ext
33702 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_addr" >&5
33703 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_addr" >&6
33704 if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then
33707 cat >>confdefs.h <<\_ACEOF
33708 #define HAVE_STRUCT_UTMP_UT_ADDR 1
33717 echo "$as_me:$LINENO: checking for ut_host in struct utmp" >&5
33718 echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6
33719 if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then
33720 echo $ECHO_N "(cached) $ECHO_C" >&6
33723 cat >conftest.$ac_ext <<_ACEOF
33724 #line $LINENO "configure"
33725 #include "confdefs.h"
33727 #ifdef F77_DUMMY_MAIN
33728 # ifdef __cplusplus
33731 int F77_DUMMY_MAIN() { return 1; }
33736 struct utmp x; x.ut_host;
33741 rm -f conftest.$ac_objext
33742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33743 (eval $ac_compile) 2>&5
33745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33746 (exit $ac_status); } &&
33747 { ac_try='test -s conftest.$ac_objext'
33748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33749 (eval $ac_try) 2>&5
33751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33752 (exit $ac_status); }; }; then
33753 ac_cv_type_struct_utmp_ut_host=yes
33755 echo "$as_me: failed program was:" >&5
33756 cat conftest.$ac_ext >&5
33757 ac_cv_type_struct_utmp_ut_host=no
33759 rm -f conftest.$ac_objext conftest.$ac_ext
33761 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_host" >&5
33762 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_host" >&6
33763 if test "$ac_cv_type_struct_utmp_ut_host" = yes; then
33766 cat >>confdefs.h <<\_ACEOF
33767 #define HAVE_STRUCT_UTMP_UT_HOST 1
33776 echo "$as_me:$LINENO: checking for ut_id in struct utmp" >&5
33777 echo $ECHO_N "checking for ut_id in struct utmp... $ECHO_C" >&6
33778 if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then
33779 echo $ECHO_N "(cached) $ECHO_C" >&6
33782 cat >conftest.$ac_ext <<_ACEOF
33783 #line $LINENO "configure"
33784 #include "confdefs.h"
33786 #ifdef F77_DUMMY_MAIN
33787 # ifdef __cplusplus
33790 int F77_DUMMY_MAIN() { return 1; }
33795 struct utmp x; x.ut_id;
33800 rm -f conftest.$ac_objext
33801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33802 (eval $ac_compile) 2>&5
33804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805 (exit $ac_status); } &&
33806 { ac_try='test -s conftest.$ac_objext'
33807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33808 (eval $ac_try) 2>&5
33810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811 (exit $ac_status); }; }; then
33812 ac_cv_type_struct_utmp_ut_id=yes
33814 echo "$as_me: failed program was:" >&5
33815 cat conftest.$ac_ext >&5
33816 ac_cv_type_struct_utmp_ut_id=no
33818 rm -f conftest.$ac_objext conftest.$ac_ext
33820 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_id" >&5
33821 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_id" >&6
33822 if test "$ac_cv_type_struct_utmp_ut_id" = yes; then
33825 cat >>confdefs.h <<\_ACEOF
33826 #define HAVE_STRUCT_UTMP_UT_ID 1
33835 echo "$as_me:$LINENO: checking for ut_pid in struct utmp" >&5
33836 echo $ECHO_N "checking for ut_pid in struct utmp... $ECHO_C" >&6
33837 if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then
33838 echo $ECHO_N "(cached) $ECHO_C" >&6
33841 cat >conftest.$ac_ext <<_ACEOF
33842 #line $LINENO "configure"
33843 #include "confdefs.h"
33845 #ifdef F77_DUMMY_MAIN
33846 # ifdef __cplusplus
33849 int F77_DUMMY_MAIN() { return 1; }
33854 struct utmp x; x.ut_pid;
33859 rm -f conftest.$ac_objext
33860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33861 (eval $ac_compile) 2>&5
33863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33864 (exit $ac_status); } &&
33865 { ac_try='test -s conftest.$ac_objext'
33866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33867 (eval $ac_try) 2>&5
33869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33870 (exit $ac_status); }; }; then
33871 ac_cv_type_struct_utmp_ut_pid=yes
33873 echo "$as_me: failed program was:" >&5
33874 cat conftest.$ac_ext >&5
33875 ac_cv_type_struct_utmp_ut_pid=no
33877 rm -f conftest.$ac_objext conftest.$ac_ext
33879 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_pid" >&5
33880 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_pid" >&6
33881 if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then
33884 cat >>confdefs.h <<\_ACEOF
33885 #define HAVE_STRUCT_UTMP_UT_PID 1
33894 echo "$as_me:$LINENO: checking for ut_type in struct utmp" >&5
33895 echo $ECHO_N "checking for ut_type in struct utmp... $ECHO_C" >&6
33896 if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then
33897 echo $ECHO_N "(cached) $ECHO_C" >&6
33900 cat >conftest.$ac_ext <<_ACEOF
33901 #line $LINENO "configure"
33902 #include "confdefs.h"
33904 #ifdef F77_DUMMY_MAIN
33905 # ifdef __cplusplus
33908 int F77_DUMMY_MAIN() { return 1; }
33913 struct utmp x; x.ut_type;
33918 rm -f conftest.$ac_objext
33919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33920 (eval $ac_compile) 2>&5
33922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33923 (exit $ac_status); } &&
33924 { ac_try='test -s conftest.$ac_objext'
33925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33926 (eval $ac_try) 2>&5
33928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33929 (exit $ac_status); }; }; then
33930 ac_cv_type_struct_utmp_ut_type=yes
33932 echo "$as_me: failed program was:" >&5
33933 cat conftest.$ac_ext >&5
33934 ac_cv_type_struct_utmp_ut_type=no
33936 rm -f conftest.$ac_objext conftest.$ac_ext
33938 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_type" >&5
33939 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_type" >&6
33940 if test "$ac_cv_type_struct_utmp_ut_type" = yes; then
33943 cat >>confdefs.h <<\_ACEOF
33944 #define HAVE_STRUCT_UTMP_UT_TYPE 1
33953 echo "$as_me:$LINENO: checking for ut_user in struct utmp" >&5
33954 echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6
33955 if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then
33956 echo $ECHO_N "(cached) $ECHO_C" >&6
33959 cat >conftest.$ac_ext <<_ACEOF
33960 #line $LINENO "configure"
33961 #include "confdefs.h"
33963 #ifdef F77_DUMMY_MAIN
33964 # ifdef __cplusplus
33967 int F77_DUMMY_MAIN() { return 1; }
33972 struct utmp x; x.ut_user;
33977 rm -f conftest.$ac_objext
33978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33979 (eval $ac_compile) 2>&5
33981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33982 (exit $ac_status); } &&
33983 { ac_try='test -s conftest.$ac_objext'
33984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33985 (eval $ac_try) 2>&5
33987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33988 (exit $ac_status); }; }; then
33989 ac_cv_type_struct_utmp_ut_user=yes
33991 echo "$as_me: failed program was:" >&5
33992 cat conftest.$ac_ext >&5
33993 ac_cv_type_struct_utmp_ut_user=no
33995 rm -f conftest.$ac_objext conftest.$ac_ext
33997 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_user" >&5
33998 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_user" >&6
33999 if test "$ac_cv_type_struct_utmp_ut_user" = yes; then
34002 cat >>confdefs.h <<\_ACEOF
34003 #define HAVE_STRUCT_UTMP_UT_USER 1
34012 echo "$as_me:$LINENO: checking for ut_exit in struct utmpx" >&5
34013 echo $ECHO_N "checking for ut_exit in struct utmpx... $ECHO_C" >&6
34014 if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then
34015 echo $ECHO_N "(cached) $ECHO_C" >&6
34018 cat >conftest.$ac_ext <<_ACEOF
34019 #line $LINENO "configure"
34020 #include "confdefs.h"
34022 #ifdef F77_DUMMY_MAIN
34023 # ifdef __cplusplus
34026 int F77_DUMMY_MAIN() { return 1; }
34031 struct utmpx x; x.ut_exit;
34036 rm -f conftest.$ac_objext
34037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34038 (eval $ac_compile) 2>&5
34040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34041 (exit $ac_status); } &&
34042 { ac_try='test -s conftest.$ac_objext'
34043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34044 (eval $ac_try) 2>&5
34046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34047 (exit $ac_status); }; }; then
34048 ac_cv_type_struct_utmpx_ut_exit=yes
34050 echo "$as_me: failed program was:" >&5
34051 cat conftest.$ac_ext >&5
34052 ac_cv_type_struct_utmpx_ut_exit=no
34054 rm -f conftest.$ac_objext conftest.$ac_ext
34056 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
34057 echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_exit" >&6
34058 if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then
34061 cat >>confdefs.h <<\_ACEOF
34062 #define HAVE_STRUCT_UTMPX_UT_EXIT 1
34071 echo "$as_me:$LINENO: checking for ut_syslen in struct utmpx" >&5
34072 echo $ECHO_N "checking for ut_syslen in struct utmpx... $ECHO_C" >&6
34073 if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then
34074 echo $ECHO_N "(cached) $ECHO_C" >&6
34077 cat >conftest.$ac_ext <<_ACEOF
34078 #line $LINENO "configure"
34079 #include "confdefs.h"
34081 #ifdef F77_DUMMY_MAIN
34082 # ifdef __cplusplus
34085 int F77_DUMMY_MAIN() { return 1; }
34090 struct utmpx x; x.ut_syslen;
34095 rm -f conftest.$ac_objext
34096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34097 (eval $ac_compile) 2>&5
34099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34100 (exit $ac_status); } &&
34101 { ac_try='test -s conftest.$ac_objext'
34102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34103 (eval $ac_try) 2>&5
34105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34106 (exit $ac_status); }; }; then
34107 ac_cv_type_struct_utmpx_ut_syslen=yes
34109 echo "$as_me: failed program was:" >&5
34110 cat conftest.$ac_ext >&5
34111 ac_cv_type_struct_utmpx_ut_syslen=no
34113 rm -f conftest.$ac_objext conftest.$ac_ext
34115 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
34116 echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_syslen" >&6
34117 if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then
34120 cat >>confdefs.h <<\_ACEOF
34121 #define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
34129 echo "$as_me:$LINENO: checking for int8_t" >&5
34130 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
34131 if test "${ac_cv_type_int8_t+set}" = set; then
34132 echo $ECHO_N "(cached) $ECHO_C" >&6
34134 cat >conftest.$ac_ext <<_ACEOF
34135 #line $LINENO "configure"
34136 #include "confdefs.h"
34138 #ifdef HAVE_INTTYPES_H
34139 #include <inttypes.h>
34141 #ifdef HAVE_SYS_TYPES_H
34142 #include <sys/types.h>
34144 #ifdef HAVE_SYS_BITYPES_H
34145 #include <sys/bitypes.h>
34147 #ifdef HAVE_BIND_BITYPES_H
34148 #include <bind/bitypes.h>
34150 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
34151 #include <netinet/in6_machtypes.h>
34155 #ifdef F77_DUMMY_MAIN
34156 # ifdef __cplusplus
34159 int F77_DUMMY_MAIN() { return 1; }
34166 if (sizeof (int8_t))
34172 rm -f conftest.$ac_objext
34173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34174 (eval $ac_compile) 2>&5
34176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34177 (exit $ac_status); } &&
34178 { ac_try='test -s conftest.$ac_objext'
34179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34180 (eval $ac_try) 2>&5
34182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34183 (exit $ac_status); }; }; then
34184 ac_cv_type_int8_t=yes
34186 echo "$as_me: failed program was:" >&5
34187 cat conftest.$ac_ext >&5
34188 ac_cv_type_int8_t=no
34190 rm -f conftest.$ac_objext conftest.$ac_ext
34192 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
34193 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
34194 if test $ac_cv_type_int8_t = yes; then
34196 cat >>confdefs.h <<_ACEOF
34197 #define HAVE_INT8_T 1
34202 echo "$as_me:$LINENO: checking for int16_t" >&5
34203 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
34204 if test "${ac_cv_type_int16_t+set}" = set; then
34205 echo $ECHO_N "(cached) $ECHO_C" >&6
34207 cat >conftest.$ac_ext <<_ACEOF
34208 #line $LINENO "configure"
34209 #include "confdefs.h"
34211 #ifdef HAVE_INTTYPES_H
34212 #include <inttypes.h>
34214 #ifdef HAVE_SYS_TYPES_H
34215 #include <sys/types.h>
34217 #ifdef HAVE_SYS_BITYPES_H
34218 #include <sys/bitypes.h>
34220 #ifdef HAVE_BIND_BITYPES_H
34221 #include <bind/bitypes.h>
34223 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
34224 #include <netinet/in6_machtypes.h>
34228 #ifdef F77_DUMMY_MAIN
34229 # ifdef __cplusplus
34232 int F77_DUMMY_MAIN() { return 1; }
34239 if (sizeof (int16_t))
34245 rm -f conftest.$ac_objext
34246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34247 (eval $ac_compile) 2>&5
34249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34250 (exit $ac_status); } &&
34251 { ac_try='test -s conftest.$ac_objext'
34252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34253 (eval $ac_try) 2>&5
34255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34256 (exit $ac_status); }; }; then
34257 ac_cv_type_int16_t=yes
34259 echo "$as_me: failed program was:" >&5
34260 cat conftest.$ac_ext >&5
34261 ac_cv_type_int16_t=no
34263 rm -f conftest.$ac_objext conftest.$ac_ext
34265 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
34266 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
34267 if test $ac_cv_type_int16_t = yes; then
34269 cat >>confdefs.h <<_ACEOF
34270 #define HAVE_INT16_T 1
34275 echo "$as_me:$LINENO: checking for int32_t" >&5
34276 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
34277 if test "${ac_cv_type_int32_t+set}" = set; then
34278 echo $ECHO_N "(cached) $ECHO_C" >&6
34280 cat >conftest.$ac_ext <<_ACEOF
34281 #line $LINENO "configure"
34282 #include "confdefs.h"
34284 #ifdef HAVE_INTTYPES_H
34285 #include <inttypes.h>
34287 #ifdef HAVE_SYS_TYPES_H
34288 #include <sys/types.h>
34290 #ifdef HAVE_SYS_BITYPES_H
34291 #include <sys/bitypes.h>
34293 #ifdef HAVE_BIND_BITYPES_H
34294 #include <bind/bitypes.h>
34296 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
34297 #include <netinet/in6_machtypes.h>
34301 #ifdef F77_DUMMY_MAIN
34302 # ifdef __cplusplus
34305 int F77_DUMMY_MAIN() { return 1; }
34312 if (sizeof (int32_t))
34318 rm -f conftest.$ac_objext
34319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34320 (eval $ac_compile) 2>&5
34322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34323 (exit $ac_status); } &&
34324 { ac_try='test -s conftest.$ac_objext'
34325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34326 (eval $ac_try) 2>&5
34328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34329 (exit $ac_status); }; }; then
34330 ac_cv_type_int32_t=yes
34332 echo "$as_me: failed program was:" >&5
34333 cat conftest.$ac_ext >&5
34334 ac_cv_type_int32_t=no
34336 rm -f conftest.$ac_objext conftest.$ac_ext
34338 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
34339 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
34340 if test $ac_cv_type_int32_t = yes; then
34342 cat >>confdefs.h <<_ACEOF
34343 #define HAVE_INT32_T 1
34348 echo "$as_me:$LINENO: checking for int64_t" >&5
34349 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
34350 if test "${ac_cv_type_int64_t+set}" = set; then
34351 echo $ECHO_N "(cached) $ECHO_C" >&6
34353 cat >conftest.$ac_ext <<_ACEOF
34354 #line $LINENO "configure"
34355 #include "confdefs.h"
34357 #ifdef HAVE_INTTYPES_H
34358 #include <inttypes.h>
34360 #ifdef HAVE_SYS_TYPES_H
34361 #include <sys/types.h>
34363 #ifdef HAVE_SYS_BITYPES_H
34364 #include <sys/bitypes.h>
34366 #ifdef HAVE_BIND_BITYPES_H
34367 #include <bind/bitypes.h>
34369 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
34370 #include <netinet/in6_machtypes.h>
34374 #ifdef F77_DUMMY_MAIN
34375 # ifdef __cplusplus
34378 int F77_DUMMY_MAIN() { return 1; }
34385 if (sizeof (int64_t))
34391 rm -f conftest.$ac_objext
34392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34393 (eval $ac_compile) 2>&5
34395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34396 (exit $ac_status); } &&
34397 { ac_try='test -s conftest.$ac_objext'
34398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34399 (eval $ac_try) 2>&5
34401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34402 (exit $ac_status); }; }; then
34403 ac_cv_type_int64_t=yes
34405 echo "$as_me: failed program was:" >&5
34406 cat conftest.$ac_ext >&5
34407 ac_cv_type_int64_t=no
34409 rm -f conftest.$ac_objext conftest.$ac_ext
34411 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
34412 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
34413 if test $ac_cv_type_int64_t = yes; then
34415 cat >>confdefs.h <<_ACEOF
34416 #define HAVE_INT64_T 1
34421 echo "$as_me:$LINENO: checking for u_int8_t" >&5
34422 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
34423 if test "${ac_cv_type_u_int8_t+set}" = set; then
34424 echo $ECHO_N "(cached) $ECHO_C" >&6
34426 cat >conftest.$ac_ext <<_ACEOF
34427 #line $LINENO "configure"
34428 #include "confdefs.h"
34430 #ifdef HAVE_INTTYPES_H
34431 #include <inttypes.h>
34433 #ifdef HAVE_SYS_TYPES_H
34434 #include <sys/types.h>
34436 #ifdef HAVE_SYS_BITYPES_H
34437 #include <sys/bitypes.h>
34439 #ifdef HAVE_BIND_BITYPES_H
34440 #include <bind/bitypes.h>
34442 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
34443 #include <netinet/in6_machtypes.h>
34447 #ifdef F77_DUMMY_MAIN
34448 # ifdef __cplusplus
34451 int F77_DUMMY_MAIN() { return 1; }
34456 if ((u_int8_t *) 0)
34458 if (sizeof (u_int8_t))
34464 rm -f conftest.$ac_objext
34465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34466 (eval $ac_compile) 2>&5
34468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34469 (exit $ac_status); } &&
34470 { ac_try='test -s conftest.$ac_objext'
34471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34472 (eval $ac_try) 2>&5
34474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34475 (exit $ac_status); }; }; then
34476 ac_cv_type_u_int8_t=yes
34478 echo "$as_me: failed program was:" >&5
34479 cat conftest.$ac_ext >&5
34480 ac_cv_type_u_int8_t=no
34482 rm -f conftest.$ac_objext conftest.$ac_ext
34484 echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
34485 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
34486 if test $ac_cv_type_u_int8_t = yes; then
34488 cat >>confdefs.h <<_ACEOF
34489 #define HAVE_U_INT8_T 1
34494 echo "$as_me:$LINENO: checking for u_int16_t" >&5
34495 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
34496 if test "${ac_cv_type_u_int16_t+set}" = set; then
34497 echo $ECHO_N "(cached) $ECHO_C" >&6
34499 cat >conftest.$ac_ext <<_ACEOF
34500 #line $LINENO "configure"
34501 #include "confdefs.h"
34503 #ifdef HAVE_INTTYPES_H
34504 #include <inttypes.h>
34506 #ifdef HAVE_SYS_TYPES_H
34507 #include <sys/types.h>
34509 #ifdef HAVE_SYS_BITYPES_H
34510 #include <sys/bitypes.h>
34512 #ifdef HAVE_BIND_BITYPES_H
34513 #include <bind/bitypes.h>
34515 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
34516 #include <netinet/in6_machtypes.h>
34520 #ifdef F77_DUMMY_MAIN
34521 # ifdef __cplusplus
34524 int F77_DUMMY_MAIN() { return 1; }
34529 if ((u_int16_t *) 0)
34531 if (sizeof (u_int16_t))
34537 rm -f conftest.$ac_objext
34538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34539 (eval $ac_compile) 2>&5
34541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34542 (exit $ac_status); } &&
34543 { ac_try='test -s conftest.$ac_objext'
34544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34545 (eval $ac_try) 2>&5
34547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34548 (exit $ac_status); }; }; then
34549 ac_cv_type_u_int16_t=yes
34551 echo "$as_me: failed program was:" >&5
34552 cat conftest.$ac_ext >&5
34553 ac_cv_type_u_int16_t=no
34555 rm -f conftest.$ac_objext conftest.$ac_ext
34557 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
34558 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
34559 if test $ac_cv_type_u_int16_t = yes; then
34561 cat >>confdefs.h <<_ACEOF
34562 #define HAVE_U_INT16_T 1
34567 echo "$as_me:$LINENO: checking for u_int32_t" >&5
34568 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
34569 if test "${ac_cv_type_u_int32_t+set}" = set; then
34570 echo $ECHO_N "(cached) $ECHO_C" >&6
34572 cat >conftest.$ac_ext <<_ACEOF
34573 #line $LINENO "configure"
34574 #include "confdefs.h"
34576 #ifdef HAVE_INTTYPES_H
34577 #include <inttypes.h>
34579 #ifdef HAVE_SYS_TYPES_H
34580 #include <sys/types.h>
34582 #ifdef HAVE_SYS_BITYPES_H
34583 #include <sys/bitypes.h>
34585 #ifdef HAVE_BIND_BITYPES_H
34586 #include <bind/bitypes.h>
34588 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
34589 #include <netinet/in6_machtypes.h>
34593 #ifdef F77_DUMMY_MAIN
34594 # ifdef __cplusplus
34597 int F77_DUMMY_MAIN() { return 1; }
34602 if ((u_int32_t *) 0)
34604 if (sizeof (u_int32_t))
34610 rm -f conftest.$ac_objext
34611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34612 (eval $ac_compile) 2>&5
34614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34615 (exit $ac_status); } &&
34616 { ac_try='test -s conftest.$ac_objext'
34617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34618 (eval $ac_try) 2>&5
34620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34621 (exit $ac_status); }; }; then
34622 ac_cv_type_u_int32_t=yes
34624 echo "$as_me: failed program was:" >&5
34625 cat conftest.$ac_ext >&5
34626 ac_cv_type_u_int32_t=no
34628 rm -f conftest.$ac_objext conftest.$ac_ext
34630 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
34631 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
34632 if test $ac_cv_type_u_int32_t = yes; then
34634 cat >>confdefs.h <<_ACEOF
34635 #define HAVE_U_INT32_T 1
34640 echo "$as_me:$LINENO: checking for u_int64_t" >&5
34641 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
34642 if test "${ac_cv_type_u_int64_t+set}" = set; then
34643 echo $ECHO_N "(cached) $ECHO_C" >&6
34645 cat >conftest.$ac_ext <<_ACEOF
34646 #line $LINENO "configure"
34647 #include "confdefs.h"
34649 #ifdef HAVE_INTTYPES_H
34650 #include <inttypes.h>
34652 #ifdef HAVE_SYS_TYPES_H
34653 #include <sys/types.h>
34655 #ifdef HAVE_SYS_BITYPES_H
34656 #include <sys/bitypes.h>
34658 #ifdef HAVE_BIND_BITYPES_H
34659 #include <bind/bitypes.h>
34661 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
34662 #include <netinet/in6_machtypes.h>
34666 #ifdef F77_DUMMY_MAIN
34667 # ifdef __cplusplus
34670 int F77_DUMMY_MAIN() { return 1; }
34675 if ((u_int64_t *) 0)
34677 if (sizeof (u_int64_t))
34683 rm -f conftest.$ac_objext
34684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34685 (eval $ac_compile) 2>&5
34687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34688 (exit $ac_status); } &&
34689 { ac_try='test -s conftest.$ac_objext'
34690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34691 (eval $ac_try) 2>&5
34693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34694 (exit $ac_status); }; }; then
34695 ac_cv_type_u_int64_t=yes
34697 echo "$as_me: failed program was:" >&5
34698 cat conftest.$ac_ext >&5
34699 ac_cv_type_u_int64_t=no
34701 rm -f conftest.$ac_objext conftest.$ac_ext
34703 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
34704 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
34705 if test $ac_cv_type_u_int64_t = yes; then
34707 cat >>confdefs.h <<_ACEOF
34708 #define HAVE_U_INT64_T 1
34713 echo "$as_me:$LINENO: checking for uint8_t" >&5
34714 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
34715 if test "${ac_cv_type_uint8_t+set}" = set; then
34716 echo $ECHO_N "(cached) $ECHO_C" >&6
34718 cat >conftest.$ac_ext <<_ACEOF
34719 #line $LINENO "configure"
34720 #include "confdefs.h"
34722 #ifdef HAVE_INTTYPES_H
34723 #include <inttypes.h>
34725 #ifdef HAVE_SYS_TYPES_H
34726 #include <sys/types.h>
34728 #ifdef HAVE_SYS_BITYPES_H
34729 #include <sys/bitypes.h>
34731 #ifdef HAVE_BIND_BITYPES_H
34732 #include <bind/bitypes.h>
34734 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
34735 #include <netinet/in6_machtypes.h>
34739 #ifdef F77_DUMMY_MAIN
34740 # ifdef __cplusplus
34743 int F77_DUMMY_MAIN() { return 1; }
34750 if (sizeof (uint8_t))
34756 rm -f conftest.$ac_objext
34757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34758 (eval $ac_compile) 2>&5
34760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34761 (exit $ac_status); } &&
34762 { ac_try='test -s conftest.$ac_objext'
34763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34764 (eval $ac_try) 2>&5
34766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34767 (exit $ac_status); }; }; then
34768 ac_cv_type_uint8_t=yes
34770 echo "$as_me: failed program was:" >&5
34771 cat conftest.$ac_ext >&5
34772 ac_cv_type_uint8_t=no
34774 rm -f conftest.$ac_objext conftest.$ac_ext
34776 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
34777 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
34778 if test $ac_cv_type_uint8_t = yes; then
34780 cat >>confdefs.h <<_ACEOF
34781 #define HAVE_UINT8_T 1
34786 echo "$as_me:$LINENO: checking for uint16_t" >&5
34787 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
34788 if test "${ac_cv_type_uint16_t+set}" = set; then
34789 echo $ECHO_N "(cached) $ECHO_C" >&6
34791 cat >conftest.$ac_ext <<_ACEOF
34792 #line $LINENO "configure"
34793 #include "confdefs.h"
34795 #ifdef HAVE_INTTYPES_H
34796 #include <inttypes.h>
34798 #ifdef HAVE_SYS_TYPES_H
34799 #include <sys/types.h>
34801 #ifdef HAVE_SYS_BITYPES_H
34802 #include <sys/bitypes.h>
34804 #ifdef HAVE_BIND_BITYPES_H
34805 #include <bind/bitypes.h>
34807 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
34808 #include <netinet/in6_machtypes.h>
34812 #ifdef F77_DUMMY_MAIN
34813 # ifdef __cplusplus
34816 int F77_DUMMY_MAIN() { return 1; }
34821 if ((uint16_t *) 0)
34823 if (sizeof (uint16_t))
34829 rm -f conftest.$ac_objext
34830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34831 (eval $ac_compile) 2>&5
34833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34834 (exit $ac_status); } &&
34835 { ac_try='test -s conftest.$ac_objext'
34836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34837 (eval $ac_try) 2>&5
34839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34840 (exit $ac_status); }; }; then
34841 ac_cv_type_uint16_t=yes
34843 echo "$as_me: failed program was:" >&5
34844 cat conftest.$ac_ext >&5
34845 ac_cv_type_uint16_t=no
34847 rm -f conftest.$ac_objext conftest.$ac_ext
34849 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
34850 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
34851 if test $ac_cv_type_uint16_t = yes; then
34853 cat >>confdefs.h <<_ACEOF
34854 #define HAVE_UINT16_T 1
34859 echo "$as_me:$LINENO: checking for uint32_t" >&5
34860 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
34861 if test "${ac_cv_type_uint32_t+set}" = set; then
34862 echo $ECHO_N "(cached) $ECHO_C" >&6
34864 cat >conftest.$ac_ext <<_ACEOF
34865 #line $LINENO "configure"
34866 #include "confdefs.h"
34868 #ifdef HAVE_INTTYPES_H
34869 #include <inttypes.h>
34871 #ifdef HAVE_SYS_TYPES_H
34872 #include <sys/types.h>
34874 #ifdef HAVE_SYS_BITYPES_H
34875 #include <sys/bitypes.h>
34877 #ifdef HAVE_BIND_BITYPES_H
34878 #include <bind/bitypes.h>
34880 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
34881 #include <netinet/in6_machtypes.h>
34885 #ifdef F77_DUMMY_MAIN
34886 # ifdef __cplusplus
34889 int F77_DUMMY_MAIN() { return 1; }
34894 if ((uint32_t *) 0)
34896 if (sizeof (uint32_t))
34902 rm -f conftest.$ac_objext
34903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34904 (eval $ac_compile) 2>&5
34906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34907 (exit $ac_status); } &&
34908 { ac_try='test -s conftest.$ac_objext'
34909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34910 (eval $ac_try) 2>&5
34912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34913 (exit $ac_status); }; }; then
34914 ac_cv_type_uint32_t=yes
34916 echo "$as_me: failed program was:" >&5
34917 cat conftest.$ac_ext >&5
34918 ac_cv_type_uint32_t=no
34920 rm -f conftest.$ac_objext conftest.$ac_ext
34922 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
34923 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
34924 if test $ac_cv_type_uint32_t = yes; then
34926 cat >>confdefs.h <<_ACEOF
34927 #define HAVE_UINT32_T 1
34932 echo "$as_me:$LINENO: checking for uint64_t" >&5
34933 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
34934 if test "${ac_cv_type_uint64_t+set}" = set; then
34935 echo $ECHO_N "(cached) $ECHO_C" >&6
34937 cat >conftest.$ac_ext <<_ACEOF
34938 #line $LINENO "configure"
34939 #include "confdefs.h"
34941 #ifdef HAVE_INTTYPES_H
34942 #include <inttypes.h>
34944 #ifdef HAVE_SYS_TYPES_H
34945 #include <sys/types.h>
34947 #ifdef HAVE_SYS_BITYPES_H
34948 #include <sys/bitypes.h>
34950 #ifdef HAVE_BIND_BITYPES_H
34951 #include <bind/bitypes.h>
34953 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
34954 #include <netinet/in6_machtypes.h>
34958 #ifdef F77_DUMMY_MAIN
34959 # ifdef __cplusplus
34962 int F77_DUMMY_MAIN() { return 1; }
34967 if ((uint64_t *) 0)
34969 if (sizeof (uint64_t))
34975 rm -f conftest.$ac_objext
34976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34977 (eval $ac_compile) 2>&5
34979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34980 (exit $ac_status); } &&
34981 { ac_try='test -s conftest.$ac_objext'
34982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34983 (eval $ac_try) 2>&5
34985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34986 (exit $ac_status); }; }; then
34987 ac_cv_type_uint64_t=yes
34989 echo "$as_me: failed program was:" >&5
34990 cat conftest.$ac_ext >&5
34991 ac_cv_type_uint64_t=no
34993 rm -f conftest.$ac_objext conftest.$ac_ext
34995 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
34996 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
34997 if test $ac_cv_type_uint64_t = yes; then
34999 cat >>confdefs.h <<_ACEOF
35000 #define HAVE_UINT64_T 1
35011 echo "$as_me:$LINENO: checking for el_init" >&5
35012 echo $ECHO_N "checking for el_init... $ECHO_C" >&6
35013 if test "${ac_cv_funclib_el_init+set}" = set; then
35014 echo $ECHO_N "(cached) $ECHO_C" >&6
35017 if eval "test \"\$ac_cv_func_el_init\" != yes" ; then
35018 ac_save_LIBS="$LIBS"
35019 for ac_lib in "" edit; do
35025 *) ac_lib="-l$ac_lib" ;;
35027 LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS"
35028 cat >conftest.$ac_ext <<_ACEOF
35029 #line $LINENO "configure"
35030 #include "confdefs.h"
35032 #ifdef F77_DUMMY_MAIN
35033 # ifdef __cplusplus
35036 int F77_DUMMY_MAIN() { return 1; }
35046 rm -f conftest.$ac_objext conftest$ac_exeext
35047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35048 (eval $ac_link) 2>&5
35050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35051 (exit $ac_status); } &&
35052 { ac_try='test -s conftest$ac_exeext'
35053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35054 (eval $ac_try) 2>&5
35056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35057 (exit $ac_status); }; }; then
35058 eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break
35060 echo "$as_me: failed program was:" >&5
35061 cat conftest.$ac_ext >&5
35063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35065 eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}"
35066 LIBS="$ac_save_LIBS"
35072 eval "ac_res=\$ac_cv_funclib_el_init"
35076 for ac_func in el_init
35078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35079 echo "$as_me:$LINENO: checking for $ac_func" >&5
35080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35081 if eval "test \"\${$as_ac_var+set}\" = set"; then
35082 echo $ECHO_N "(cached) $ECHO_C" >&6
35084 cat >conftest.$ac_ext <<_ACEOF
35085 #line $LINENO "configure"
35086 #include "confdefs.h"
35087 /* System header to define __stub macros and hopefully few prototypes,
35088 which can conflict with char $ac_func (); below. */
35089 #include <assert.h>
35090 /* Override any gcc2 internal prototype to avoid an error. */
35094 /* We use char because int might match the return type of a gcc2
35095 builtin and then its argument prototype would still apply. */
35099 #ifdef F77_DUMMY_MAIN
35100 # ifdef __cplusplus
35103 int F77_DUMMY_MAIN() { return 1; }
35108 /* The GNU C library defines this for functions which it implements
35109 to always fail with ENOSYS. Some functions are actually named
35110 something starting with __ and the normal name is an alias. */
35111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35121 rm -f conftest.$ac_objext conftest$ac_exeext
35122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35123 (eval $ac_link) 2>&5
35125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35126 (exit $ac_status); } &&
35127 { ac_try='test -s conftest$ac_exeext'
35128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35129 (eval $ac_try) 2>&5
35131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35132 (exit $ac_status); }; }; then
35133 eval "$as_ac_var=yes"
35135 echo "$as_me: failed program was:" >&5
35136 cat conftest.$ac_ext >&5
35137 eval "$as_ac_var=no"
35139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35142 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35143 if test `eval echo '${'$as_ac_var'}'` = yes; then
35144 cat >>confdefs.h <<_ACEOF
35145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35153 eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
35154 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
35155 eval "LIB_el_init=$ac_res"
35159 eval "ac_cv_func_el_init=yes"
35160 eval "LIB_el_init="
35161 cat >>confdefs.h <<_ACEOF
35162 #define $ac_tr_func 1
35165 echo "$as_me:$LINENO: result: yes" >&5
35166 echo "${ECHO_T}yes" >&6
35169 eval "ac_cv_func_el_init=no"
35170 eval "LIB_el_init="
35171 echo "$as_me:$LINENO: result: no" >&5
35172 echo "${ECHO_T}no" >&6
35175 eval "ac_cv_func_el_init=yes"
35176 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
35177 cat >>confdefs.h <<_ACEOF
35178 #define $ac_tr_func 1
35181 cat >>confdefs.h <<_ACEOF
35182 #define $ac_tr_lib 1
35185 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
35186 echo "${ECHO_T}yes, in $ac_res" >&6
35191 if test "$ac_cv_func_el_init" = yes ; then
35192 echo "$as_me:$LINENO: checking for four argument el_init" >&5
35193 echo $ECHO_N "checking for four argument el_init... $ECHO_C" >&6
35194 if test "${ac_cv_func_el_init_four+set}" = set; then
35195 echo $ECHO_N "(cached) $ECHO_C" >&6
35198 cat >conftest.$ac_ext <<_ACEOF
35199 #line $LINENO "configure"
35200 #include "confdefs.h"
35202 #include <histedit.h>
35203 #ifdef F77_DUMMY_MAIN
35204 # ifdef __cplusplus
35207 int F77_DUMMY_MAIN() { return 1; }
35212 el_init("", NULL, NULL, NULL);
35217 rm -f conftest.$ac_objext
35218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35219 (eval $ac_compile) 2>&5
35221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35222 (exit $ac_status); } &&
35223 { ac_try='test -s conftest.$ac_objext'
35224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35225 (eval $ac_try) 2>&5
35227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35228 (exit $ac_status); }; }; then
35229 ac_cv_func_el_init_four=yes
35231 echo "$as_me: failed program was:" >&5
35232 cat conftest.$ac_ext >&5
35233 ac_cv_func_el_init_four=no
35235 rm -f conftest.$ac_objext conftest.$ac_ext
35237 echo "$as_me:$LINENO: result: $ac_cv_func_el_init_four" >&5
35238 echo "${ECHO_T}$ac_cv_func_el_init_four" >&6
35239 if test "$ac_cv_func_el_init_four" = yes; then
35241 cat >>confdefs.h <<\_ACEOF
35242 #define HAVE_FOUR_VALUED_EL_INIT 1
35250 if test "$with_readline" = yes; then
35252 elif test "$ac_cv_func_readline" = yes; then
35254 elif test "$ac_cv_func_el_init" = yes; then
35256 LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la \$(LIB_el_init) \$(LIB_tgetent)"
35258 LIB_readline="\$(top_builddir)/lib/editline/libeditline.la \$(LIB_tgetent)"
35262 if test "$ac_foo" = yes; then
35264 el_compat_FALSE='#'
35271 cat >>confdefs.h <<\_ACEOF
35272 #define HAVE_READLINE 1
35279 cat >>confdefs.h <<\_ACEOF
35280 #define AUTHENTICATION 1
35283 cat >>confdefs.h <<\_ACEOF
35284 #define ENCRYPTION 1
35287 cat >>confdefs.h <<\_ACEOF
35288 #define DES_ENCRYPTION 1
35291 cat >>confdefs.h <<\_ACEOF
35292 #define DIAGNOSTICS 1
35295 cat >>confdefs.h <<\_ACEOF
35296 #define OLD_ENVIRON 1
35300 cat >>confdefs.h <<\_ACEOF
35306 # Simple test for streamspty, based on the existance of getmsg(), alas
35307 # this breaks on SunOS4 which have streams but BSD-like ptys
35309 # And also something wierd has happend with dec-osf1, fallback to bsd-ptys
35312 *-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*)
35315 echo "$as_me:$LINENO: checking for getmsg" >&5
35316 echo $ECHO_N "checking for getmsg... $ECHO_C" >&6
35317 if test "${ac_cv_func_getmsg+set}" = set; then
35318 echo $ECHO_N "(cached) $ECHO_C" >&6
35320 cat >conftest.$ac_ext <<_ACEOF
35321 #line $LINENO "configure"
35322 #include "confdefs.h"
35323 /* System header to define __stub macros and hopefully few prototypes,
35324 which can conflict with char getmsg (); below. */
35325 #include <assert.h>
35326 /* Override any gcc2 internal prototype to avoid an error. */
35330 /* We use char because int might match the return type of a gcc2
35331 builtin and then its argument prototype would still apply. */
35335 #ifdef F77_DUMMY_MAIN
35336 # ifdef __cplusplus
35339 int F77_DUMMY_MAIN() { return 1; }
35344 /* The GNU C library defines this for functions which it implements
35345 to always fail with ENOSYS. Some functions are actually named
35346 something starting with __ and the normal name is an alias. */
35347 #if defined (__stub_getmsg) || defined (__stub___getmsg)
35357 rm -f conftest.$ac_objext conftest$ac_exeext
35358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35359 (eval $ac_link) 2>&5
35361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35362 (exit $ac_status); } &&
35363 { ac_try='test -s conftest$ac_exeext'
35364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35365 (eval $ac_try) 2>&5
35367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35368 (exit $ac_status); }; }; then
35369 ac_cv_func_getmsg=yes
35371 echo "$as_me: failed program was:" >&5
35372 cat conftest.$ac_ext >&5
35373 ac_cv_func_getmsg=no
35375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35377 echo "$as_me:$LINENO: result: $ac_cv_func_getmsg" >&5
35378 echo "${ECHO_T}$ac_cv_func_getmsg" >&6
35380 if test "$ac_cv_func_getmsg" = "yes"; then
35381 echo "$as_me:$LINENO: checking if getmsg works" >&5
35382 echo $ECHO_N "checking if getmsg works... $ECHO_C" >&6
35383 if test "${ac_cv_func_getmsg_works+set}" = set; then
35384 echo $ECHO_N "(cached) $ECHO_C" >&6
35386 if test "$cross_compiling" = yes; then
35387 ac_cv_func_getmsg_works=no
35389 cat >conftest.$ac_ext <<_ACEOF
35390 #line $LINENO "configure"
35391 #include "confdefs.h"
35399 ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
35400 if(ret < 0 && errno == ENOSYS)
35406 rm -f conftest$ac_exeext
35407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35408 (eval $ac_link) 2>&5
35410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35413 (eval $ac_try) 2>&5
35415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35416 (exit $ac_status); }; }; then
35417 ac_cv_func_getmsg_works=yes
35419 echo "$as_me: program exited with status $ac_status" >&5
35420 echo "$as_me: failed program was:" >&5
35421 cat conftest.$ac_ext >&5
35422 ( exit $ac_status )
35423 ac_cv_func_getmsg_works=no
35425 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35428 echo "$as_me:$LINENO: result: $ac_cv_func_getmsg_works" >&5
35429 echo "${ECHO_T}$ac_cv_func_getmsg_works" >&6
35430 if test "$ac_cv_func_getmsg_works" = "yes"; then
35432 cat >>confdefs.h <<\_ACEOF
35433 #define HAVE_GETMSG 1
35437 cat >>confdefs.h <<\_ACEOF
35438 #define STREAMSPTY 1
35452 # Extract the first word of "compile_et", so it can be a program name with args.
35453 set dummy compile_et; ac_word=$2
35454 echo "$as_me:$LINENO: checking for $ac_word" >&5
35455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35456 if test "${ac_cv_prog_COMPILE_ET+set}" = set; then
35457 echo $ECHO_N "(cached) $ECHO_C" >&6
35459 if test -n "$COMPILE_ET"; then
35460 ac_cv_prog_COMPILE_ET="$COMPILE_ET" # Let the user override the test.
35462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35463 for as_dir in $PATH
35466 test -z "$as_dir" && as_dir=.
35467 for ac_exec_ext in '' $ac_executable_extensions; do
35468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35469 ac_cv_prog_COMPILE_ET="compile_et"
35470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35478 COMPILE_ET=$ac_cv_prog_COMPILE_ET
35479 if test -n "$COMPILE_ET"; then
35480 echo "$as_me:$LINENO: result: $COMPILE_ET" >&5
35481 echo "${ECHO_T}$COMPILE_ET" >&6
35483 echo "$as_me:$LINENO: result: no" >&5
35484 echo "${ECHO_T}no" >&6
35488 krb_cv_compile_et="no"
35489 if test "${COMPILE_ET}" = "compile_et"; then
35491 echo "$as_me:$LINENO: checking whether compile_et has the features we need" >&5
35492 echo $ECHO_N "checking whether compile_et has the features we need... $ECHO_C" >&6
35493 cat > conftest_et.et <<'EOF'
35497 error_code CODE1, "CODE1"
35499 error_code CODE2, "CODE2"
35502 if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then
35503 save_CPPFLAGS="${save_CPPFLAGS}"
35504 if test -d "/usr/include/et"; then
35505 CPPFLAGS="-I/usr/include/et ${CPPFLAGS}"
35507 if test "$cross_compiling" = yes; then
35508 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
35509 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
35510 { (exit 1); exit 1; }; }
35512 cat >conftest.$ac_ext <<_ACEOF
35513 #line $LINENO "configure"
35514 #include "confdefs.h"
35516 #include <com_err.h>
35517 #include <string.h>
35518 #include "conftest_et.h"
35519 int main(){return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;}
35522 rm -f conftest$ac_exeext
35523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35524 (eval $ac_link) 2>&5
35526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35529 (eval $ac_try) 2>&5
35531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35532 (exit $ac_status); }; }; then
35533 krb_cv_compile_et="yes"
35535 echo "$as_me: program exited with status $ac_status" >&5
35536 echo "$as_me: failed program was:" >&5
35537 cat conftest.$ac_ext >&5
35538 ( exit $ac_status )
35539 CPPFLAGS="${save_CPPFLAGS}"
35541 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35544 echo "$as_me:$LINENO: result: ${krb_cv_compile_et}" >&5
35545 echo "${ECHO_T}${krb_cv_compile_et}" >&6
35549 if test "${krb_cv_compile_et}" = "yes"; then
35550 krb_cv_save_LIBS="${LIBS}"
35551 LIBS="${LIBS} -lcom_err"
35552 echo "$as_me:$LINENO: checking for com_err" >&5
35553 echo $ECHO_N "checking for com_err... $ECHO_C" >&6
35554 cat >conftest.$ac_ext <<_ACEOF
35555 #line $LINENO "configure"
35556 #include "confdefs.h"
35557 #include <com_err.h>
35558 #ifdef F77_DUMMY_MAIN
35559 # ifdef __cplusplus
35562 int F77_DUMMY_MAIN() { return 1; }
35569 p = error_message(0);
35575 rm -f conftest.$ac_objext conftest$ac_exeext
35576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35577 (eval $ac_link) 2>&5
35579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35580 (exit $ac_status); } &&
35581 { ac_try='test -s conftest$ac_exeext'
35582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35583 (eval $ac_try) 2>&5
35585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35586 (exit $ac_status); }; }; then
35587 krb_cv_com_err="yes"
35589 echo "$as_me: failed program was:" >&5
35590 cat conftest.$ac_ext >&5
35591 krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}"
35593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35594 echo "$as_me:$LINENO: result: ${krb_cv_com_err}" >&5
35595 echo "${ECHO_T}${krb_cv_com_err}" >&6
35596 LIBS="${krb_cv_save_LIBS}"
35598 krb_cv_com_err="no"
35601 if test "${krb_cv_com_err}" = "yes"; then
35603 LIB_com_err="-lcom_err"
35606 { echo "$as_me:$LINENO: Using the already-installed com_err" >&5
35607 echo "$as_me: Using the already-installed com_err" >&6;}
35609 COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et"
35610 DIR_com_err="com_err"
35611 LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
35612 LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
35613 LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
35614 { echo "$as_me:$LINENO: Using our own com_err" >&5
35615 echo "$as_me: Using our own com_err" >&6;}
35625 echo "$as_me:$LINENO: checking which authentication modules should be built" >&5
35626 echo $ECHO_N "checking which authentication modules should be built... $ECHO_C" >&6
35628 z='sia afskauthlib'
35633 if test "$ac_cv_header_siad_h" = yes; then
35634 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
35639 *-*-freebsd*) ac_cv_want_pam_krb4=no ;;
35640 *) ac_cv_want_pam_krb4=yes ;;
35643 if test "$ac_cv_want_pam_krb4" = yes -a \
35644 "$ac_cv_header_security_pam_modules_h" = yes -a \
35645 "$enable_shared" = yes; then
35646 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
35651 *-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
35656 if test "$LIB_AUTH_SUBDIRS"; then
35657 echo "$as_me:$LINENO: result: $LIB_AUTH_SUBDIRS" >&5
35658 echo "${ECHO_T}$LIB_AUTH_SUBDIRS" >&6
35660 echo "$as_me:$LINENO: result: none" >&5
35661 echo "${ECHO_T}none" >&6
35667 # This is done by AC_OUTPUT but we need the result here.
35668 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35669 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35674 while test "x$y" != "x$x"; do
35679 cat >>confdefs.h <<_ACEOF
35680 #define BINDIR "$x"
35685 while test "x$y" != "x$x"; do
35690 cat >>confdefs.h <<_ACEOF
35691 #define LIBDIR "$x"
35696 while test "x$y" != "x$x"; do
35701 cat >>confdefs.h <<_ACEOF
35702 #define LIBEXECDIR "$x"
35705 x="${localstatedir}"
35707 while test "x$y" != "x$x"; do
35712 cat >>confdefs.h <<_ACEOF
35713 #define LOCALSTATEDIR "$x"
35718 while test "x$y" != "x$x"; do
35723 cat >>confdefs.h <<_ACEOF
35724 #define SBINDIR "$x"
35729 while test "x$y" != "x$x"; do
35734 cat >>confdefs.h <<_ACEOF
35735 #define SYSCONFDIR "$x"
35740 LTLIBOBJS=`echo "$LIBOBJS" |
35741 sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
35747 ac_config_files="$ac_config_files Makefile include/Makefile include/kadm5/Makefile lib/Makefile lib/45/Makefile lib/auth/Makefile lib/auth/afskauthlib/Makefile lib/auth/pam/Makefile lib/auth/sia/Makefile lib/asn1/Makefile lib/com_err/Makefile lib/des/Makefile lib/editline/Makefile lib/gssapi/Makefile lib/hdb/Makefile lib/kadm5/Makefile lib/kafs/Makefile lib/kdfs/Makefile lib/krb5/Makefile lib/otp/Makefile lib/roken/Makefile lib/sl/Makefile lib/vers/Makefile kuser/Makefile kpasswd/Makefile kadmin/Makefile admin/Makefile kdc/Makefile appl/Makefile appl/afsutil/Makefile appl/ftp/Makefile appl/ftp/common/Makefile appl/ftp/ftp/Makefile appl/ftp/ftpd/Makefile appl/kx/Makefile appl/login/Makefile appl/otp/Makefile appl/popper/Makefile appl/push/Makefile appl/rsh/Makefile appl/rcp/Makefile appl/su/Makefile appl/xnlock/Makefile appl/telnet/Makefile appl/telnet/libtelnet/Makefile appl/telnet/telnet/Makefile appl/telnet/telnetd/Makefile appl/test/Makefile appl/kf/Makefile appl/dceutils/Makefile doc/Makefile tools/Makefile"
35750 cat >confcache <<\_ACEOF
35751 # This file is a shell script that caches the results of configure
35752 # tests run on this system so they can be shared between configure
35753 # scripts and configure runs, see configure's option --config-cache.
35754 # It is not useful on other systems. If it contains results you don't
35755 # want to keep, you may remove or edit it.
35757 # config.status only pays attention to the cache file if you give it
35758 # the --recheck option to rerun configure.
35760 # `ac_cv_env_foo' variables (set or unset) will be overriden when
35761 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35762 # following values.
35766 # The following way of writing the cache mishandles newlines in values,
35767 # but we know of no workaround that is simple, portable, and efficient.
35768 # So, don't put newlines in cache variables' values.
35769 # Ultrix sh set writes to stderr and can't be redirected directly,
35770 # and sets the high bit in the cache file unless we assign to the vars.
35773 case `(ac_space=' '; set | grep ac_space) 2>&1` in
35775 # `set' does not quote correctly, so add quotes (double-quote
35776 # substitution turns \\\\ into \\, and sed turns \\ into \).
35779 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35782 # `set' quotes correctly as required by POSIX, so do not add quotes.
35784 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
35791 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35793 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35795 if cmp -s $cache_file confcache; then :; else
35796 if test -w $cache_file; then
35797 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35798 cat confcache >$cache_file
35800 echo "not updating unwritable cache $cache_file"
35805 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35806 # Let make expand exec_prefix.
35807 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35809 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35810 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35811 # trailing colons and then remove the whole line if VPATH becomes empty
35812 # (actually we leave an empty line to preserve line numbers).
35813 if test "x$srcdir" = x.; then
35814 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35815 s/:*\$(srcdir):*/:/;
35816 s/:*\${srcdir}:*/:/;
35818 s/^\([^=]*=[ ]*\):*/\1/;
35824 DEFS=-DHAVE_CONFIG_H
35826 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
35827 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
35828 Usually this means the macro was only invoked conditionally." >&5
35829 echo "$as_me: error: conditional \"AMDEP\" was never defined.
35830 Usually this means the macro was only invoked conditionally." >&2;}
35831 { (exit 1); exit 1; }; }
35833 if test -z "${KRB4_TRUE}" && test -z "${KRB4_FALSE}"; then
35834 { { echo "$as_me:$LINENO: error: conditional \"KRB4\" was never defined.
35835 Usually this means the macro was only invoked conditionally." >&5
35836 echo "$as_me: error: conditional \"KRB4\" was never defined.
35837 Usually this means the macro was only invoked conditionally." >&2;}
35838 { (exit 1); exit 1; }; }
35840 if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then
35841 { { echo "$as_me:$LINENO: error: conditional \"KRB5\" was never defined.
35842 Usually this means the macro was only invoked conditionally." >&5
35843 echo "$as_me: error: conditional \"KRB5\" was never defined.
35844 Usually this means the macro was only invoked conditionally." >&2;}
35845 { (exit 1); exit 1; }; }
35847 if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then
35848 { { echo "$as_me:$LINENO: error: conditional \"do_roken_rename\" was never defined.
35849 Usually this means the macro was only invoked conditionally." >&5
35850 echo "$as_me: error: conditional \"do_roken_rename\" was never defined.
35851 Usually this means the macro was only invoked conditionally." >&2;}
35852 { (exit 1); exit 1; }; }
35854 if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
35855 { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENSSL\" was never defined.
35856 Usually this means the macro was only invoked conditionally." >&5
35857 echo "$as_me: error: conditional \"HAVE_OPENSSL\" was never defined.
35858 Usually this means the macro was only invoked conditionally." >&2;}
35859 { (exit 1); exit 1; }; }
35861 if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then
35862 { { echo "$as_me:$LINENO: error: conditional \"DCE\" was never defined.
35863 Usually this means the macro was only invoked conditionally." >&5
35864 echo "$as_me: error: conditional \"DCE\" was never defined.
35865 Usually this means the macro was only invoked conditionally." >&2;}
35866 { (exit 1); exit 1; }; }
35868 if test -z "${HAVE_DB1_TRUE}" && test -z "${HAVE_DB1_FALSE}"; then
35869 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB1\" was never defined.
35870 Usually this means the macro was only invoked conditionally." >&5
35871 echo "$as_me: error: conditional \"HAVE_DB1\" was never defined.
35872 Usually this means the macro was only invoked conditionally." >&2;}
35873 { (exit 1); exit 1; }; }
35875 if test -z "${HAVE_DB3_TRUE}" && test -z "${HAVE_DB3_FALSE}"; then
35876 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB3\" was never defined.
35877 Usually this means the macro was only invoked conditionally." >&5
35878 echo "$as_me: error: conditional \"HAVE_DB3\" was never defined.
35879 Usually this means the macro was only invoked conditionally." >&2;}
35880 { (exit 1); exit 1; }; }
35882 if test -z "${HAVE_NDBM_TRUE}" && test -z "${HAVE_NDBM_FALSE}"; then
35883 { { echo "$as_me:$LINENO: error: conditional \"HAVE_NDBM\" was never defined.
35884 Usually this means the macro was only invoked conditionally." >&5
35885 echo "$as_me: error: conditional \"HAVE_NDBM\" was never defined.
35886 Usually this means the macro was only invoked conditionally." >&2;}
35887 { (exit 1); exit 1; }; }
35889 if test -z "${have_err_h_TRUE}" && test -z "${have_err_h_FALSE}"; then
35890 { { echo "$as_me:$LINENO: error: conditional \"have_err_h\" was never defined.
35891 Usually this means the macro was only invoked conditionally." >&5
35892 echo "$as_me: error: conditional \"have_err_h\" was never defined.
35893 Usually this means the macro was only invoked conditionally." >&2;}
35894 { (exit 1); exit 1; }; }
35896 if test -z "${have_fnmatch_h_TRUE}" && test -z "${have_fnmatch_h_FALSE}"; then
35897 { { echo "$as_me:$LINENO: error: conditional \"have_fnmatch_h\" was never defined.
35898 Usually this means the macro was only invoked conditionally." >&5
35899 echo "$as_me: error: conditional \"have_fnmatch_h\" was never defined.
35900 Usually this means the macro was only invoked conditionally." >&2;}
35901 { (exit 1); exit 1; }; }
35903 if test -z "${have_ifaddrs_h_TRUE}" && test -z "${have_ifaddrs_h_FALSE}"; then
35904 { { echo "$as_me:$LINENO: error: conditional \"have_ifaddrs_h\" was never defined.
35905 Usually this means the macro was only invoked conditionally." >&5
35906 echo "$as_me: error: conditional \"have_ifaddrs_h\" was never defined.
35907 Usually this means the macro was only invoked conditionally." >&2;}
35908 { (exit 1); exit 1; }; }
35910 if test -z "${have_vis_h_TRUE}" && test -z "${have_vis_h_FALSE}"; then
35911 { { echo "$as_me:$LINENO: error: conditional \"have_vis_h\" was never defined.
35912 Usually this means the macro was only invoked conditionally." >&5
35913 echo "$as_me: error: conditional \"have_vis_h\" was never defined.
35914 Usually this means the macro was only invoked conditionally." >&2;}
35915 { (exit 1); exit 1; }; }
35917 if test -z "${have_glob_h_TRUE}" && test -z "${have_glob_h_FALSE}"; then
35918 { { echo "$as_me:$LINENO: error: conditional \"have_glob_h\" was never defined.
35919 Usually this means the macro was only invoked conditionally." >&5
35920 echo "$as_me: error: conditional \"have_glob_h\" was never defined.
35921 Usually this means the macro was only invoked conditionally." >&2;}
35922 { (exit 1); exit 1; }; }
35924 if test -z "${OTP_TRUE}" && test -z "${OTP_FALSE}"; then
35925 { { echo "$as_me:$LINENO: error: conditional \"OTP\" was never defined.
35926 Usually this means the macro was only invoked conditionally." >&5
35927 echo "$as_me: error: conditional \"OTP\" was never defined.
35928 Usually this means the macro was only invoked conditionally." >&2;}
35929 { (exit 1); exit 1; }; }
35931 if test -z "${CATMAN_TRUE}" && test -z "${CATMAN_FALSE}"; then
35932 { { echo "$as_me:$LINENO: error: conditional \"CATMAN\" was never defined.
35933 Usually this means the macro was only invoked conditionally." >&5
35934 echo "$as_me: error: conditional \"CATMAN\" was never defined.
35935 Usually this means the macro was only invoked conditionally." >&2;}
35936 { (exit 1); exit 1; }; }
35938 if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then
35939 { { echo "$as_me:$LINENO: error: conditional \"AIX\" was never defined.
35940 Usually this means the macro was only invoked conditionally." >&5
35941 echo "$as_me: error: conditional \"AIX\" was never defined.
35942 Usually this means the macro was only invoked conditionally." >&2;}
35943 { (exit 1); exit 1; }; }
35945 if test -z "${AIX4_TRUE}" && test -z "${AIX4_FALSE}"; then
35946 { { echo "$as_me:$LINENO: error: conditional \"AIX4\" was never defined.
35947 Usually this means the macro was only invoked conditionally." >&5
35948 echo "$as_me: error: conditional \"AIX4\" was never defined.
35949 Usually this means the macro was only invoked conditionally." >&2;}
35950 { (exit 1); exit 1; }; }
35952 if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then
35953 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DLOPEN\" was never defined.
35954 Usually this means the macro was only invoked conditionally." >&5
35955 echo "$as_me: error: conditional \"HAVE_DLOPEN\" was never defined.
35956 Usually this means the macro was only invoked conditionally." >&2;}
35957 { (exit 1); exit 1; }; }
35959 if test -z "${AIX_DYNAMIC_AFS_TRUE}" && test -z "${AIX_DYNAMIC_AFS_FALSE}"; then
35960 { { echo "$as_me:$LINENO: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
35961 Usually this means the macro was only invoked conditionally." >&5
35962 echo "$as_me: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
35963 Usually this means the macro was only invoked conditionally." >&2;}
35964 { (exit 1); exit 1; }; }
35966 if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then
35967 { { echo "$as_me:$LINENO: error: conditional \"IRIX\" was never defined.
35968 Usually this means the macro was only invoked conditionally." >&5
35969 echo "$as_me: error: conditional \"IRIX\" was never defined.
35970 Usually this means the macro was only invoked conditionally." >&2;}
35971 { (exit 1); exit 1; }; }
35973 if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then
35974 { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined.
35975 Usually this means the macro was only invoked conditionally." >&5
35976 echo "$as_me: error: conditional \"HAVE_X\" was never defined.
35977 Usually this means the macro was only invoked conditionally." >&2;}
35978 { (exit 1); exit 1; }; }
35980 if test -z "${NEED_WRITEAUTH_TRUE}" && test -z "${NEED_WRITEAUTH_FALSE}"; then
35981 { { echo "$as_me:$LINENO: error: conditional \"NEED_WRITEAUTH\" was never defined.
35982 Usually this means the macro was only invoked conditionally." >&5
35983 echo "$as_me: error: conditional \"NEED_WRITEAUTH\" was never defined.
35984 Usually this means the macro was only invoked conditionally." >&2;}
35985 { (exit 1); exit 1; }; }
35987 if test -z "${el_compat_TRUE}" && test -z "${el_compat_FALSE}"; then
35988 { { echo "$as_me:$LINENO: error: conditional \"el_compat\" was never defined.
35989 Usually this means the macro was only invoked conditionally." >&5
35990 echo "$as_me: error: conditional \"el_compat\" was never defined.
35991 Usually this means the macro was only invoked conditionally." >&2;}
35992 { (exit 1); exit 1; }; }
35995 : ${CONFIG_STATUS=./config.status}
35996 ac_clean_files_save=$ac_clean_files
35997 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35998 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35999 echo "$as_me: creating $CONFIG_STATUS" >&6;}
36000 cat >$CONFIG_STATUS <<_ACEOF
36002 # Generated by $as_me.
36003 # Run this file to recreate the current configuration.
36004 # Compiler output produced by configure, useful for debugging
36005 # configure, is in config.log if it exists.
36008 SHELL=\${CONFIG_SHELL-$SHELL}
36011 cat >>$CONFIG_STATUS <<\_ACEOF
36013 ## --------------------- ##
36014 ## M4sh Initialization. ##
36015 ## --------------------- ##
36017 # Be Bourne compatible
36018 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
36021 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
36026 # Support unset when possible.
36027 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
36033 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
36034 { $as_unset LANG || test "${LANG+set}" != set; } ||
36035 { LANG=C; export LANG; }
36036 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
36037 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
36038 { LC_ALL=C; export LC_ALL; }
36039 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
36040 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
36041 { LC_TIME=C; export LC_TIME; }
36042 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
36043 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
36044 { LC_CTYPE=C; export LC_CTYPE; }
36045 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
36046 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
36047 { LANGUAGE=C; export LANGUAGE; }
36048 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
36049 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
36050 { LC_COLLATE=C; export LC_COLLATE; }
36051 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
36052 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
36053 { LC_NUMERIC=C; export LC_NUMERIC; }
36054 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
36055 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
36056 { LC_MESSAGES=C; export LC_MESSAGES; }
36059 # Name of the executable.
36060 as_me=`(basename "$0") 2>/dev/null ||
36061 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36062 X"$0" : 'X\(//\)$' \| \
36063 X"$0" : 'X\(/\)$' \| \
36064 . : '\(.\)' 2>/dev/null ||
36066 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
36067 /^X\/\(\/\/\)$/{ s//\1/; q; }
36068 /^X\/\(\/\).*/{ s//\1/; q; }
36071 # PATH needs CR, and LINENO needs CR and PATH.
36072 # Avoid depending upon Character Ranges.
36073 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36074 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36075 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36076 as_cr_digits='0123456789'
36077 as_cr_alnum=$as_cr_Letters$as_cr_digits
36079 # The user is always right.
36080 if test "${PATH_SEPARATOR+set}" != set; then
36081 echo "#! /bin/sh" >conftest.sh
36082 echo "exit 0" >>conftest.sh
36083 chmod +x conftest.sh
36084 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
36093 as_lineno_1=$LINENO
36094 as_lineno_2=$LINENO
36095 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
36096 test "x$as_lineno_1" != "x$as_lineno_2" &&
36097 test "x$as_lineno_3" = "x$as_lineno_2" || {
36098 # Find who we are. Look in the path if we contain no path at all
36101 *[\\/]* ) as_myself=$0 ;;
36102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36103 for as_dir in $PATH
36106 test -z "$as_dir" && as_dir=.
36107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36112 # We did not find ourselves, most probably we were run as `sh COMMAND'
36113 # in which case we are not to be found in the path.
36114 if test "x$as_myself" = x; then
36117 if test ! -f "$as_myself"; then
36118 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
36119 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
36120 { (exit 1); exit 1; }; }
36122 case $CONFIG_SHELL in
36124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36125 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
36128 test -z "$as_dir" && as_dir=.
36129 for as_base in sh bash ksh sh5; do
36132 if ("$as_dir/$as_base" -c '
36133 as_lineno_1=$LINENO
36134 as_lineno_2=$LINENO
36135 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
36136 test "x$as_lineno_1" != "x$as_lineno_2" &&
36137 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
36138 CONFIG_SHELL=$as_dir/$as_base
36139 export CONFIG_SHELL
36140 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
36148 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
36149 # uniformly replaced by the line number. The first 'sed' inserts a
36150 # line-number line before each line; the second 'sed' does the real
36151 # work. The second script uses 'N' to pair each line-number line
36152 # with the numbered line, and appends trailing '-' during
36153 # substitution so that $LINENO is not a special case at line end.
36154 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
36155 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
36156 sed '=' <$as_myself |
36161 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
36164 s,^['$as_cr_digits']*\n,,
36165 ' >$as_me.lineno &&
36166 chmod +x $as_me.lineno ||
36167 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
36168 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
36169 { (exit 1); exit 1; }; }
36171 # Don't try to exec as it changes $[0], causing all sort of problems
36172 # (the dirname of $[0] is not the place where we might find the
36173 # original and so on. Autoconf is especially sensible to this).
36175 # Exit status is that of the last command.
36180 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
36181 *c*,-n*) ECHO_N= ECHO_C='
36183 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
36184 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
36187 if expr a : '\(a\)' >/dev/null 2>&1; then
36193 rm -f conf$$ conf$$.exe conf$$.file
36195 if ln -s conf$$.file conf$$ 2>/dev/null; then
36196 # We could just check for DJGPP; but this test a) works b) is more generic
36197 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
36198 if test -f conf$$.exe; then
36199 # Don't use ln at all; we don't have any links
36204 elif ln conf$$.file conf$$ 2>/dev/null; then
36209 rm -f conf$$ conf$$.exe conf$$.file
36211 as_executable_p="test -f"
36213 # Sed expression to map a string onto a valid CPP name.
36214 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
36216 # Sed expression to map a string onto a valid variable name.
36217 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
36221 # We need space, tab and new line, in precisely that order.
36227 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
36231 # Open the log real soon, to keep \$[0] and so on meaningful, and to
36232 # report actual input values of CONFIG_FILES etc. instead of their
36233 # values after options handling. Logging --version etc. is OK.
36237 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36238 ## Running $as_me. ##
36243 This file was extended by Heimdal $as_me 0.5.1, which was
36244 generated by GNU Autoconf 2.53. Invocation command line was
36246 CONFIG_FILES = $CONFIG_FILES
36247 CONFIG_HEADERS = $CONFIG_HEADERS
36248 CONFIG_LINKS = $CONFIG_LINKS
36249 CONFIG_COMMANDS = $CONFIG_COMMANDS
36253 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
36257 # Files that config.status was made for.
36258 if test -n "$ac_config_files"; then
36259 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
36262 if test -n "$ac_config_headers"; then
36263 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
36266 if test -n "$ac_config_links"; then
36267 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
36270 if test -n "$ac_config_commands"; then
36271 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
36274 cat >>$CONFIG_STATUS <<\_ACEOF
36277 \`$as_me' instantiates files from templates according to the
36278 current configuration.
36280 Usage: $0 [OPTIONS] [FILE]...
36282 -h, --help print this help, then exit
36283 -V, --version print version number, then exit
36284 -d, --debug don't remove temporary files
36285 --recheck update $as_me by reconfiguring in the same conditions
36286 --file=FILE[:TEMPLATE]
36287 instantiate the configuration file FILE
36288 --header=FILE[:TEMPLATE]
36289 instantiate the configuration header FILE
36291 Configuration files:
36294 Configuration headers:
36297 Configuration commands:
36300 Report bugs to <bug-autoconf@gnu.org>."
36303 cat >>$CONFIG_STATUS <<_ACEOF
36305 Heimdal config.status 0.5.1
36306 configured by $0, generated by GNU Autoconf 2.53,
36307 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
36309 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
36310 Free Software Foundation, Inc.
36311 This config.status script is free software; the Free Software Foundation
36312 gives unlimited permission to copy, distribute and modify it."
36317 cat >>$CONFIG_STATUS <<\_ACEOF
36318 # If no file are specified by the user, then we need to provide default
36319 # value. By we need to know if files were specified by the user.
36325 ac_option=`expr "x$1" : 'x\([^=]*\)='`
36326 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
36328 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
36332 *) # This is not an option, so the user has probably given explicit
36334 ac_need_defaults=false;;
36338 # Handling of the options.
36340 cat >>$CONFIG_STATUS <<_ACEOF
36341 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36342 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
36343 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
36345 cat >>$CONFIG_STATUS <<\_ACEOF
36346 --version | --vers* | -V )
36347 echo "$ac_cs_version"; exit 0 ;;
36349 # Conflict between --help and --header
36350 { { echo "$as_me:$LINENO: error: ambiguous option: $1
36351 Try \`$0 --help' for more information." >&5
36352 echo "$as_me: error: ambiguous option: $1
36353 Try \`$0 --help' for more information." >&2;}
36354 { (exit 1); exit 1; }; };;
36355 --help | --hel | -h )
36356 echo "$ac_cs_usage"; exit 0 ;;
36357 --debug | --d* | -d )
36359 --file | --fil | --fi | --f )
36361 CONFIG_FILES="$CONFIG_FILES $1"
36362 ac_need_defaults=false;;
36363 --header | --heade | --head | --hea )
36365 CONFIG_HEADERS="$CONFIG_HEADERS $1"
36366 ac_need_defaults=false;;
36368 # This is an error.
36369 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
36370 Try \`$0 --help' for more information." >&5
36371 echo "$as_me: error: unrecognized option: $1
36372 Try \`$0 --help' for more information." >&2;}
36373 { (exit 1); exit 1; }; } ;;
36375 *) ac_config_targets="$ac_config_targets $1" ;;
36383 cat >>$CONFIG_STATUS <<_ACEOF
36385 # INIT-COMMANDS section.
36388 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36394 cat >>$CONFIG_STATUS <<\_ACEOF
36395 for ac_config_target in $ac_config_targets
36397 case "$ac_config_target" in
36398 # Handling of arguments.
36399 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36400 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
36401 "include/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;;
36402 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
36403 "lib/45/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/45/Makefile" ;;
36404 "lib/auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
36405 "lib/auth/afskauthlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;;
36406 "lib/auth/pam/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;;
36407 "lib/auth/sia/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;;
36408 "lib/asn1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;;
36409 "lib/com_err/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;;
36410 "lib/des/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/des/Makefile" ;;
36411 "lib/editline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;;
36412 "lib/gssapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;;
36413 "lib/hdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;;
36414 "lib/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;;
36415 "lib/kafs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;;
36416 "lib/kdfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;;
36417 "lib/krb5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;;
36418 "lib/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;;
36419 "lib/roken/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;;
36420 "lib/sl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;;
36421 "lib/vers/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;;
36422 "kuser/Makefile" ) CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;;
36423 "kpasswd/Makefile" ) CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;;
36424 "kadmin/Makefile" ) CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;;
36425 "admin/Makefile" ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
36426 "kdc/Makefile" ) CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;;
36427 "appl/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;;
36428 "appl/afsutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;;
36429 "appl/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;;
36430 "appl/ftp/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;;
36431 "appl/ftp/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;;
36432 "appl/ftp/ftpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;;
36433 "appl/kx/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;;
36434 "appl/login/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;;
36435 "appl/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;;
36436 "appl/popper/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;;
36437 "appl/push/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;;
36438 "appl/rsh/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;;
36439 "appl/rcp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;;
36440 "appl/su/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;;
36441 "appl/xnlock/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;;
36442 "appl/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;;
36443 "appl/telnet/libtelnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;;
36444 "appl/telnet/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;;
36445 "appl/telnet/telnetd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;;
36446 "appl/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;;
36447 "appl/kf/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;;
36448 "appl/dceutils/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;;
36449 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
36450 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
36451 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36452 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
36453 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36454 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36455 { (exit 1); exit 1; }; };;
36459 # If the user did not use the arguments to specify the items to instantiate,
36460 # then the envvar interface is used. Set only those that are not.
36461 # We use the long form for the default assignment because of an extremely
36462 # bizarre bug on SunOS 4.1.3.
36463 if $ac_need_defaults; then
36464 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36465 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36466 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36469 # Create a temporary directory, and hook for its removal unless debugging.
36472 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
36473 trap '{ (exit 1); exit 1; }' 1 2 13 15
36476 # Create a (secure) tmp directory for tmp files.
36479 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
36480 test -n "$tmp" && test -d "$tmp"
36483 tmp=$TMPDIR/cs$$-$RANDOM
36484 (umask 077 && mkdir $tmp)
36487 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
36488 { (exit 1); exit 1; }
36493 cat >>$CONFIG_STATUS <<_ACEOF
36496 # CONFIG_FILES section.
36499 # No need to generate the scripts if there are no CONFIG_FILES.
36500 # This happens for instance when ./config.status config.h
36501 if test -n "\$CONFIG_FILES"; then
36502 # Protect against being on the right side of a sed subst in config.status.
36503 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
36504 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
36505 s,@SHELL@,$SHELL,;t t
36506 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
36507 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
36508 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
36509 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
36510 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
36511 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
36512 s,@exec_prefix@,$exec_prefix,;t t
36513 s,@prefix@,$prefix,;t t
36514 s,@program_transform_name@,$program_transform_name,;t t
36515 s,@bindir@,$bindir,;t t
36516 s,@sbindir@,$sbindir,;t t
36517 s,@libexecdir@,$libexecdir,;t t
36518 s,@datadir@,$datadir,;t t
36519 s,@sysconfdir@,$sysconfdir,;t t
36520 s,@sharedstatedir@,$sharedstatedir,;t t
36521 s,@localstatedir@,$localstatedir,;t t
36522 s,@libdir@,$libdir,;t t
36523 s,@includedir@,$includedir,;t t
36524 s,@oldincludedir@,$oldincludedir,;t t
36525 s,@infodir@,$infodir,;t t
36526 s,@mandir@,$mandir,;t t
36527 s,@build_alias@,$build_alias,;t t
36528 s,@host_alias@,$host_alias,;t t
36529 s,@target_alias@,$target_alias,;t t
36530 s,@DEFS@,$DEFS,;t t
36531 s,@ECHO_C@,$ECHO_C,;t t
36532 s,@ECHO_N@,$ECHO_N,;t t
36533 s,@ECHO_T@,$ECHO_T,;t t
36534 s,@LIBS@,$LIBS,;t t
36536 s,@CFLAGS@,$CFLAGS,;t t
36537 s,@LDFLAGS@,$LDFLAGS,;t t
36538 s,@CPPFLAGS@,$CPPFLAGS,;t t
36539 s,@ac_ct_CC@,$ac_ct_CC,;t t
36540 s,@EXEEXT@,$EXEEXT,;t t
36541 s,@OBJEXT@,$OBJEXT,;t t
36543 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
36544 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
36545 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
36546 s,@PACKAGE@,$PACKAGE,;t t
36547 s,@VERSION@,$VERSION,;t t
36548 s,@ACLOCAL@,$ACLOCAL,;t t
36549 s,@AUTOCONF@,$AUTOCONF,;t t
36550 s,@AUTOMAKE@,$AUTOMAKE,;t t
36551 s,@AUTOHEADER@,$AUTOHEADER,;t t
36552 s,@MAKEINFO@,$MAKEINFO,;t t
36553 s,@AMTAR@,$AMTAR,;t t
36554 s,@install_sh@,$install_sh,;t t
36555 s,@STRIP@,$STRIP,;t t
36556 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
36557 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
36559 s,@SET_MAKE@,$SET_MAKE,;t t
36560 s,@DEPDIR@,$DEPDIR,;t t
36561 s,@am__include@,$am__include,;t t
36562 s,@am__quote@,$am__quote,;t t
36563 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
36564 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
36565 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
36566 s,@CCDEPMODE@,$CCDEPMODE,;t t
36567 s,@build@,$build,;t t
36568 s,@build_cpu@,$build_cpu,;t t
36569 s,@build_vendor@,$build_vendor,;t t
36570 s,@build_os@,$build_os,;t t
36571 s,@host@,$host,;t t
36572 s,@host_cpu@,$host_cpu,;t t
36573 s,@host_vendor@,$host_vendor,;t t
36574 s,@host_os@,$host_os,;t t
36575 s,@CANONICAL_HOST@,$CANONICAL_HOST,;t t
36576 s,@YACC@,$YACC,;t t
36578 s,@LEXLIB@,$LEXLIB,;t t
36579 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
36580 s,@LN_S@,$LN_S,;t t
36581 s,@ECHO@,$ECHO,;t t
36582 s,@RANLIB@,$RANLIB,;t t
36583 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
36584 s,@LIBTOOL@,$LIBTOOL,;t t
36585 s,@WFLAGS@,$WFLAGS,;t t
36586 s,@WFLAGS_NOUNUSED@,$WFLAGS_NOUNUSED,;t t
36587 s,@WFLAGS_NOIMPLICITINT@,$WFLAGS_NOIMPLICITINT,;t t
36588 s,@INCLUDE_openldap@,$INCLUDE_openldap,;t t
36589 s,@LIB_openldap@,$LIB_openldap,;t t
36590 s,@INCLUDE_krb4@,$INCLUDE_krb4,;t t
36591 s,@LIB_krb4@,$LIB_krb4,;t t
36592 s,@EXTRA_LIB45@,$EXTRA_LIB45,;t t
36593 s,@LIB_krb_enable_debug@,$LIB_krb_enable_debug,;t t
36594 s,@LIB_krb_disable_debug@,$LIB_krb_disable_debug,;t t
36595 s,@LIB_krb_get_our_ip_for_realm@,$LIB_krb_get_our_ip_for_realm,;t t
36596 s,@LIB_krb_kdctimeofday@,$LIB_krb_kdctimeofday,;t t
36597 s,@LIB_krb_get_kdc_time_diff@,$LIB_krb_get_kdc_time_diff,;t t
36598 s,@KRB4_TRUE@,$KRB4_TRUE,;t t
36599 s,@KRB4_FALSE@,$KRB4_FALSE,;t t
36600 s,@KRB5_TRUE@,$KRB5_TRUE,;t t
36601 s,@KRB5_FALSE@,$KRB5_FALSE,;t t
36602 s,@do_roken_rename_TRUE@,$do_roken_rename_TRUE,;t t
36603 s,@do_roken_rename_FALSE@,$do_roken_rename_FALSE,;t t
36604 s,@LIB_kdb@,$LIB_kdb,;t t
36605 s,@HAVE_OPENSSL_TRUE@,$HAVE_OPENSSL_TRUE,;t t
36606 s,@HAVE_OPENSSL_FALSE@,$HAVE_OPENSSL_FALSE,;t t
36607 s,@DIR_des@,$DIR_des,;t t
36608 s,@INCLUDE_des@,$INCLUDE_des,;t t
36609 s,@LIB_des@,$LIB_des,;t t
36610 s,@LIB_des_a@,$LIB_des_a,;t t
36611 s,@LIB_des_so@,$LIB_des_so,;t t
36612 s,@LIB_des_appl@,$LIB_des_appl,;t t
36613 s,@DCE_TRUE@,$DCE_TRUE,;t t
36614 s,@DCE_FALSE@,$DCE_FALSE,;t t
36615 s,@dpagaix_cflags@,$dpagaix_cflags,;t t
36616 s,@dpagaix_ldadd@,$dpagaix_ldadd,;t t
36617 s,@dpagaix_ldflags@,$dpagaix_ldflags,;t t
36618 s,@LIB_db_create@,$LIB_db_create,;t t
36619 s,@LIB_dbopen@,$LIB_dbopen,;t t
36620 s,@LIB_dbm_firstkey@,$LIB_dbm_firstkey,;t t
36621 s,@HAVE_DB1_TRUE@,$HAVE_DB1_TRUE,;t t
36622 s,@HAVE_DB1_FALSE@,$HAVE_DB1_FALSE,;t t
36623 s,@HAVE_DB3_TRUE@,$HAVE_DB3_TRUE,;t t
36624 s,@HAVE_DB3_FALSE@,$HAVE_DB3_FALSE,;t t
36625 s,@HAVE_NDBM_TRUE@,$HAVE_NDBM_TRUE,;t t
36626 s,@HAVE_NDBM_FALSE@,$HAVE_NDBM_FALSE,;t t
36627 s,@DBLIB@,$DBLIB,;t t
36628 s,@LIB_NDBM@,$LIB_NDBM,;t t
36629 s,@VOID_RETSIGTYPE@,$VOID_RETSIGTYPE,;t t
36630 s,@have_err_h_TRUE@,$have_err_h_TRUE,;t t
36631 s,@have_err_h_FALSE@,$have_err_h_FALSE,;t t
36632 s,@have_fnmatch_h_TRUE@,$have_fnmatch_h_TRUE,;t t
36633 s,@have_fnmatch_h_FALSE@,$have_fnmatch_h_FALSE,;t t
36634 s,@have_ifaddrs_h_TRUE@,$have_ifaddrs_h_TRUE,;t t
36635 s,@have_ifaddrs_h_FALSE@,$have_ifaddrs_h_FALSE,;t t
36636 s,@have_vis_h_TRUE@,$have_vis_h_TRUE,;t t
36637 s,@have_vis_h_FALSE@,$have_vis_h_FALSE,;t t
36638 s,@LIB_socket@,$LIB_socket,;t t
36639 s,@LIB_gethostbyname@,$LIB_gethostbyname,;t t
36640 s,@LIB_syslog@,$LIB_syslog,;t t
36641 s,@LIB_gethostbyname2@,$LIB_gethostbyname2,;t t
36642 s,@LIB_res_search@,$LIB_res_search,;t t
36643 s,@LIB_res_nsearch@,$LIB_res_nsearch,;t t
36644 s,@LIB_dn_expand@,$LIB_dn_expand,;t t
36645 s,@LIBOBJS@,$LIBOBJS,;t t
36646 s,@have_glob_h_TRUE@,$have_glob_h_TRUE,;t t
36647 s,@have_glob_h_FALSE@,$have_glob_h_FALSE,;t t
36648 s,@LIB_getsockopt@,$LIB_getsockopt,;t t
36649 s,@LIB_setsockopt@,$LIB_setsockopt,;t t
36650 s,@LIB_hstrerror@,$LIB_hstrerror,;t t
36651 s,@LIB_bswap16@,$LIB_bswap16,;t t
36652 s,@LIB_bswap32@,$LIB_bswap32,;t t
36653 s,@LIB_pidfile@,$LIB_pidfile,;t t
36654 s,@LIB_getaddrinfo@,$LIB_getaddrinfo,;t t
36655 s,@LIB_getnameinfo@,$LIB_getnameinfo,;t t
36656 s,@LIB_freeaddrinfo@,$LIB_freeaddrinfo,;t t
36657 s,@LIB_gai_strerror@,$LIB_gai_strerror,;t t
36658 s,@LIB_crypt@,$LIB_crypt,;t t
36659 s,@DIR_roken@,$DIR_roken,;t t
36660 s,@LIB_roken@,$LIB_roken,;t t
36661 s,@INCLUDES_roken@,$INCLUDES_roken,;t t
36662 s,@LIB_otp@,$LIB_otp,;t t
36663 s,@OTP_TRUE@,$OTP_TRUE,;t t
36664 s,@OTP_FALSE@,$OTP_FALSE,;t t
36665 s,@LIB_security@,$LIB_security,;t t
36666 s,@NROFF@,$NROFF,;t t
36667 s,@GROFF@,$GROFF,;t t
36668 s,@CATMAN@,$CATMAN,;t t
36669 s,@CATMAN_TRUE@,$CATMAN_TRUE,;t t
36670 s,@CATMAN_FALSE@,$CATMAN_FALSE,;t t
36671 s,@CATMANEXT@,$CATMANEXT,;t t
36672 s,@INCLUDE_readline@,$INCLUDE_readline,;t t
36673 s,@LIB_readline@,$LIB_readline,;t t
36674 s,@INCLUDE_hesiod@,$INCLUDE_hesiod,;t t
36675 s,@LIB_hesiod@,$LIB_hesiod,;t t
36676 s,@AIX_TRUE@,$AIX_TRUE,;t t
36677 s,@AIX_FALSE@,$AIX_FALSE,;t t
36678 s,@AIX4_TRUE@,$AIX4_TRUE,;t t
36679 s,@AIX4_FALSE@,$AIX4_FALSE,;t t
36680 s,@LIB_dlopen@,$LIB_dlopen,;t t
36681 s,@HAVE_DLOPEN_TRUE@,$HAVE_DLOPEN_TRUE,;t t
36682 s,@HAVE_DLOPEN_FALSE@,$HAVE_DLOPEN_FALSE,;t t
36683 s,@LIB_loadquery@,$LIB_loadquery,;t t
36684 s,@AIX_DYNAMIC_AFS_TRUE@,$AIX_DYNAMIC_AFS_TRUE,;t t
36685 s,@AIX_DYNAMIC_AFS_FALSE@,$AIX_DYNAMIC_AFS_FALSE,;t t
36686 s,@AIX_EXTRA_KAFS@,$AIX_EXTRA_KAFS,;t t
36687 s,@IRIX_TRUE@,$IRIX_TRUE,;t t
36688 s,@IRIX_FALSE@,$IRIX_FALSE,;t t
36689 s,@X_CFLAGS@,$X_CFLAGS,;t t
36690 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
36691 s,@X_LIBS@,$X_LIBS,;t t
36692 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
36693 s,@HAVE_X_TRUE@,$HAVE_X_TRUE,;t t
36694 s,@HAVE_X_FALSE@,$HAVE_X_FALSE,;t t
36695 s,@LIB_XauWriteAuth@,$LIB_XauWriteAuth,;t t
36696 s,@LIB_XauReadAuth@,$LIB_XauReadAuth,;t t
36697 s,@LIB_XauFileName@,$LIB_XauFileName,;t t
36698 s,@NEED_WRITEAUTH_TRUE@,$NEED_WRITEAUTH_TRUE,;t t
36699 s,@NEED_WRITEAUTH_FALSE@,$NEED_WRITEAUTH_FALSE,;t t
36700 s,@LIB_logwtmp@,$LIB_logwtmp,;t t
36701 s,@LIB_logout@,$LIB_logout,;t t
36702 s,@LIB_openpty@,$LIB_openpty,;t t
36703 s,@LIB_tgetent@,$LIB_tgetent,;t t
36704 s,@LIB_getpwnam_r@,$LIB_getpwnam_r,;t t
36705 s,@LIB_el_init@,$LIB_el_init,;t t
36706 s,@el_compat_TRUE@,$el_compat_TRUE,;t t
36707 s,@el_compat_FALSE@,$el_compat_FALSE,;t t
36708 s,@COMPILE_ET@,$COMPILE_ET,;t t
36709 s,@DIR_com_err@,$DIR_com_err,;t t
36710 s,@LIB_com_err@,$LIB_com_err,;t t
36711 s,@LIB_com_err_a@,$LIB_com_err_a,;t t
36712 s,@LIB_com_err_so@,$LIB_com_err_so,;t t
36713 s,@LIB_AUTH_SUBDIRS@,$LIB_AUTH_SUBDIRS,;t t
36714 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
36719 cat >>$CONFIG_STATUS <<\_ACEOF
36720 # Split the substitutions into bite-sized pieces for seds with
36721 # small command number limits, like on Digital OSF/1 and HP-UX.
36722 ac_max_sed_lines=48
36723 ac_sed_frag=1 # Number of current file.
36724 ac_beg=1 # First line for current file.
36725 ac_end=$ac_max_sed_lines # Line after last line for current file.
36728 while $ac_more_lines; do
36729 if test $ac_beg -gt 1; then
36730 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36732 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36734 if test ! -s $tmp/subs.frag; then
36735 ac_more_lines=false
36737 # The purpose of the label and of the branching condition is to
36738 # speed up the sed processing (if there are no `@' at all, there
36739 # is no need to browse any of the substitutions).
36740 # These are the two extra sed commands mentioned above.
36742 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
36743 if test -z "$ac_sed_cmds"; then
36744 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
36746 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
36748 ac_sed_frag=`expr $ac_sed_frag + 1`
36750 ac_end=`expr $ac_end + $ac_max_sed_lines`
36753 if test -z "$ac_sed_cmds"; then
36756 fi # test -n "$CONFIG_FILES"
36759 cat >>$CONFIG_STATUS <<\_ACEOF
36760 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
36761 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
36763 - | *:- | *:-:* ) # input from stdin
36765 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36766 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36767 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36768 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36769 * ) ac_file_in=$ac_file.in ;;
36772 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
36773 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36774 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36775 X"$ac_file" : 'X\(//\)[^/]' \| \
36776 X"$ac_file" : 'X\(//\)$' \| \
36777 X"$ac_file" : 'X\(/\)' \| \
36778 . : '\(.\)' 2>/dev/null ||
36780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36781 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36782 /^X\(\/\/\)$/{ s//\1/; q; }
36783 /^X\(\/\).*/{ s//\1/; q; }
36785 { case "$ac_dir" in
36786 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
36790 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
36791 case $as_mkdir_dir in
36792 # Skip DOS drivespec
36793 ?:) as_incr_dir=$as_mkdir_dir ;;
36795 as_incr_dir=$as_incr_dir/$as_mkdir_dir
36796 test -d "$as_incr_dir" ||
36797 mkdir "$as_incr_dir" ||
36798 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
36799 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
36800 { (exit 1); exit 1; }; }
36807 if test "$ac_dir" != .; then
36808 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36809 # A "../" for each directory in $ac_dir_suffix.
36810 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36812 ac_dir_suffix= ac_top_builddir=
36816 .) # No --srcdir option. We are building in place.
36818 if test -z "$ac_top_builddir"; then
36821 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36823 [\\/]* | ?:[\\/]* ) # Absolute path.
36824 ac_srcdir=$srcdir$ac_dir_suffix;
36825 ac_top_srcdir=$srcdir ;;
36826 *) # Relative path.
36827 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36828 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36830 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36832 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36833 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
36834 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36835 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
36839 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36840 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
36843 if test x"$ac_file" != x-; then
36844 { echo "$as_me:$LINENO: creating $ac_file" >&5
36845 echo "$as_me: creating $ac_file" >&6;}
36848 # Let's still pretend it is `configure' which instantiates (i.e., don't
36849 # use $as_me), people would be surprised to read:
36850 # /* config.h. Generated by config.status. */
36851 if test x"$ac_file" = x-; then
36854 configure_input="$ac_file. "
36856 configure_input=$configure_input"Generated from `echo $ac_file_in |
36857 sed 's,.*/,,'` by configure."
36859 # First look for the input files in the build tree, otherwise in the
36861 ac_file_inputs=`IFS=:
36862 for f in $ac_file_in; do
36864 -) echo $tmp/stdin ;;
36866 # Absolute (can't be DOS-style, as IFS=:)
36867 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36868 echo "$as_me: error: cannot find input file: $f" >&2;}
36869 { (exit 1); exit 1; }; }
36872 if test -f "$f"; then
36875 elif test -f "$srcdir/$f"; then
36880 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36881 echo "$as_me: error: cannot find input file: $f" >&2;}
36882 { (exit 1); exit 1; }; }
36885 done` || { (exit 1); exit 1; }
36887 cat >>$CONFIG_STATUS <<_ACEOF
36891 cat >>$CONFIG_STATUS <<\_ACEOF
36893 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36894 s,@configure_input@,$configure_input,;t t
36895 s,@srcdir@,$ac_srcdir,;t t
36896 s,@abs_srcdir@,$ac_abs_srcdir,;t t
36897 s,@top_srcdir@,$ac_top_srcdir,;t t
36898 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
36899 s,@builddir@,$ac_builddir,;t t
36900 s,@abs_builddir@,$ac_abs_builddir,;t t
36901 s,@top_builddir@,$ac_top_builddir,;t t
36902 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
36903 s,@INSTALL@,$ac_INSTALL,;t t
36904 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
36906 if test x"$ac_file" != x-; then
36907 mv $tmp/out $ac_file
36915 cat >>$CONFIG_STATUS <<\_ACEOF
36918 # CONFIG_HEADER section.
36921 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
36922 # NAME is the cpp macro being defined and VALUE is the value it is being given.
36924 # ac_d sets the value in "#define NAME VALUE" lines.
36925 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
36926 ac_dB='[ ].*$,\1#\2'
36929 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
36930 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
36931 ac_uB='$,\1#\2define\3'
36935 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
36936 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
36938 - | *:- | *:-:* ) # input from stdin
36940 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36941 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36942 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36943 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36944 * ) ac_file_in=$ac_file.in ;;
36947 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
36948 echo "$as_me: creating $ac_file" >&6;}
36950 # First look for the input files in the build tree, otherwise in the
36952 ac_file_inputs=`IFS=:
36953 for f in $ac_file_in; do
36955 -) echo $tmp/stdin ;;
36957 # Absolute (can't be DOS-style, as IFS=:)
36958 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36959 echo "$as_me: error: cannot find input file: $f" >&2;}
36960 { (exit 1); exit 1; }; }
36963 if test -f "$f"; then
36966 elif test -f "$srcdir/$f"; then
36971 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36972 echo "$as_me: error: cannot find input file: $f" >&2;}
36973 { (exit 1); exit 1; }; }
36976 done` || { (exit 1); exit 1; }
36977 # Remove the trailing spaces.
36978 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
36982 # Transform confdefs.h into two sed scripts, `conftest.defines' and
36983 # `conftest.undefs', that substitutes the proper values into
36984 # config.h.in to produce config.h. The first handles `#define'
36985 # templates, and the second `#undef' templates.
36986 # And first: Protect against being on the right side of a sed subst in
36987 # config.status. Protect against being in an unquoted here document
36988 # in config.status.
36989 rm -f conftest.defines conftest.undefs
36990 # Using a here document instead of a string reduces the quoting nightmare.
36991 # Putting comments in sed scripts is not portable.
36993 # `end' is used to avoid that the second main sed command (meant for
36994 # 0-ary CPP macros) applies to n-ary macro definitions.
36995 # See the Autoconf documentation for `clear'.
36996 cat >confdef2sed.sed <<\_ACEOF
37001 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
37003 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
37006 # If some macros were called several times there might be several times
37007 # the same #defines, which is useless. Nevertheless, we may not want to
37008 # sort them, since we want the *last* AC-DEFINE to be honored.
37009 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
37010 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
37011 rm -f confdef2sed.sed
37013 # This sed command replaces #undef with comments. This is necessary, for
37014 # example, in the case of _POSIX_SOURCE, which is predefined and required
37015 # on some systems where configure will not decide to define it.
37016 cat >>conftest.undefs <<\_ACEOF
37017 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
37020 # Break up conftest.defines because some shells have a limit on the size
37021 # of here documents, and old seds have small limits too (100 cmds).
37022 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
37023 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
37024 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
37025 echo ' :' >>$CONFIG_STATUS
37026 rm -f conftest.tail
37027 while grep . conftest.defines >/dev/null
37029 # Write a limited-size here document to $tmp/defines.sed.
37030 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
37031 # Speed up: don't consider the non `#define' lines.
37032 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
37033 # Work around the forget-to-reset-the-flag bug.
37034 echo 't clr' >>$CONFIG_STATUS
37035 echo ': clr' >>$CONFIG_STATUS
37036 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
37038 sed -f $tmp/defines.sed $tmp/in >$tmp/out
37040 mv $tmp/out $tmp/in
37042 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
37043 rm -f conftest.defines
37044 mv conftest.tail conftest.defines
37046 rm -f conftest.defines
37047 echo ' fi # egrep' >>$CONFIG_STATUS
37048 echo >>$CONFIG_STATUS
37050 # Break up conftest.undefs because some shells have a limit on the size
37051 # of here documents, and old seds have small limits too (100 cmds).
37052 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
37053 rm -f conftest.tail
37054 while grep . conftest.undefs >/dev/null
37056 # Write a limited-size here document to $tmp/undefs.sed.
37057 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
37058 # Speed up: don't consider the non `#undef'
37059 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
37060 # Work around the forget-to-reset-the-flag bug.
37061 echo 't clr' >>$CONFIG_STATUS
37062 echo ': clr' >>$CONFIG_STATUS
37063 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
37065 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
37067 mv $tmp/out $tmp/in
37069 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
37070 rm -f conftest.undefs
37071 mv conftest.tail conftest.undefs
37073 rm -f conftest.undefs
37075 cat >>$CONFIG_STATUS <<\_ACEOF
37076 # Let's still pretend it is `configure' which instantiates (i.e., don't
37077 # use $as_me), people would be surprised to read:
37078 # /* config.h. Generated by config.status. */
37079 if test x"$ac_file" = x-; then
37080 echo "/* Generated by configure. */" >$tmp/config.h
37082 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
37084 cat $tmp/in >>$tmp/config.h
37086 if test x"$ac_file" != x-; then
37087 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
37088 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
37089 echo "$as_me: $ac_file is unchanged" >&6;}
37091 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
37092 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37093 X"$ac_file" : 'X\(//\)[^/]' \| \
37094 X"$ac_file" : 'X\(//\)$' \| \
37095 X"$ac_file" : 'X\(/\)' \| \
37096 . : '\(.\)' 2>/dev/null ||
37098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37099 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37100 /^X\(\/\/\)$/{ s//\1/; q; }
37101 /^X\(\/\).*/{ s//\1/; q; }
37103 { case "$ac_dir" in
37104 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
37108 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
37109 case $as_mkdir_dir in
37110 # Skip DOS drivespec
37111 ?:) as_incr_dir=$as_mkdir_dir ;;
37113 as_incr_dir=$as_incr_dir/$as_mkdir_dir
37114 test -d "$as_incr_dir" ||
37115 mkdir "$as_incr_dir" ||
37116 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
37117 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
37118 { (exit 1); exit 1; }; }
37124 mv $tmp/config.h $ac_file
37128 rm -f $tmp/config.h
37130 # Run the commands associated with the file.
37132 include/config.h ) # update the timestamp
37133 echo 'timestamp for include/config.h' >"include/stamp-h1"
37138 cat >>$CONFIG_STATUS <<\_ACEOF
37141 # CONFIG_COMMANDS section.
37143 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
37144 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
37145 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
37146 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
37147 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37148 X"$ac_dest" : 'X\(//\)[^/]' \| \
37149 X"$ac_dest" : 'X\(//\)$' \| \
37150 X"$ac_dest" : 'X\(/\)' \| \
37151 . : '\(.\)' 2>/dev/null ||
37153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37154 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37155 /^X\(\/\/\)$/{ s//\1/; q; }
37156 /^X\(\/\).*/{ s//\1/; q; }
37160 if test "$ac_dir" != .; then
37161 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37162 # A "../" for each directory in $ac_dir_suffix.
37163 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37165 ac_dir_suffix= ac_top_builddir=
37169 .) # No --srcdir option. We are building in place.
37171 if test -z "$ac_top_builddir"; then
37174 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37176 [\\/]* | ?:[\\/]* ) # Absolute path.
37177 ac_srcdir=$srcdir$ac_dir_suffix;
37178 ac_top_srcdir=$srcdir ;;
37179 *) # Relative path.
37180 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37181 ac_top_srcdir=$ac_top_builddir$srcdir ;;
37183 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37185 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37186 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
37187 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37188 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
37191 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
37192 echo "$as_me: executing $ac_dest commands" >&6;}
37194 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
37195 # Strip MF so we end up with the name of the file.
37196 mf=`echo "$mf" | sed -e 's/:.*$//'`
37197 if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
37198 dirpart=`(dirname "$mf") 2>/dev/null ||
37199 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37200 X"$mf" : 'X\(//\)[^/]' \| \
37201 X"$mf" : 'X\(//\)$' \| \
37202 X"$mf" : 'X\(/\)' \| \
37203 . : '\(.\)' 2>/dev/null ||
37205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37206 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37207 /^X\(\/\/\)$/{ s//\1/; q; }
37208 /^X\(\/\).*/{ s//\1/; q; }
37213 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
37214 # Extract the definition of DEP_FILES from the Makefile without
37216 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
37217 test -z "$DEPDIR" && continue
37218 # When using ansi2knr, U may be empty or an underscore; expand it
37219 U=`sed -n -e '/^U = / s///p' < "$mf"`
37220 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
37221 # We invoke sed twice because it is the simplest approach to
37222 # changing $(DEPDIR) to its actual value in the expansion.
37223 for file in `sed -n -e '
37224 /^DEP_FILES = .*\\\\$/ {
37233 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
37234 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37235 # Make sure the directory exists.
37236 test -f "$dirpart/$file" && continue
37237 fdir=`(dirname "$file") 2>/dev/null ||
37238 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37239 X"$file" : 'X\(//\)[^/]' \| \
37240 X"$file" : 'X\(//\)$' \| \
37241 X"$file" : 'X\(/\)' \| \
37242 . : '\(.\)' 2>/dev/null ||
37244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37245 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37246 /^X\(\/\/\)$/{ s//\1/; q; }
37247 /^X\(\/\).*/{ s//\1/; q; }
37249 { case $dirpart/$fdir in
37250 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
37253 as_dummy=$dirpart/$fdir
37254 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
37255 case $as_mkdir_dir in
37256 # Skip DOS drivespec
37257 ?:) as_incr_dir=$as_mkdir_dir ;;
37259 as_incr_dir=$as_incr_dir/$as_mkdir_dir
37260 test -d "$as_incr_dir" ||
37261 mkdir "$as_incr_dir" ||
37262 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
37263 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
37264 { (exit 1); exit 1; }; }
37269 # echo "creating $dirpart/$file"
37270 echo '# dummy' > "$dirpart/$file"
37278 cat >>$CONFIG_STATUS <<\_ACEOF
37280 { (exit 0); exit 0; }
37282 chmod +x $CONFIG_STATUS
37283 ac_clean_files=$ac_clean_files_save
37286 # configure is writing to config.log, and then calls config.status.
37287 # config.status does its own redirection, appending to config.log.
37288 # Unfortunately, on DOS this fails, as config.log is still kept open
37289 # by configure, so config.status won't be able to write to it; its
37290 # output is simply discarded. So we exec the FD to /dev/null,
37291 # effectively closing config.log, so it can be properly (re)opened and
37292 # appended to by config.status. When coming back to configure, we
37293 # need to make the FD available again.
37294 if test "$no_create" != yes; then
37297 $SHELL $CONFIG_STATUS || ac_cs_success=false
37299 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37300 # would make configure fail if this is the last instruction.
37301 $ac_cs_success || { (exit 1); exit 1; }
37306 cat > include/newversion.h.in <<EOF
37307 const char *heimdal_long_version = "@(#)\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$";
37308 const char *heimdal_version = "Heimdal 0.5.1";
37311 if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then
37312 echo "include/version.h is unchanged"
37313 rm -f include/newversion.h.in
37315 echo "creating include/version.h"
37316 User=${USER-${LOGNAME}}
37317 Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q`
37319 mv -f include/newversion.h.in include/version.h.in
37320 sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h