2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57b for GNU coreutils 5.0.91.
5 # Report bugs to <bug-coreutils@gnu.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25 # Support unset when possible.
26 if ((MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 s,^['$as_cr_digits']*\n,,
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
183 # Exit status is that of the last command.
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 if expr a : '\(a\)' >/dev/null 2>&1; then
201 rm -f conf$$ conf$$.exe conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
212 elif ln conf$$.file conf$$ 2>/dev/null; then
217 rm -f conf$$ conf$$.exe conf$$.file
219 if mkdir -p . 2>/dev/null; then
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='GNU coreutils'
269 PACKAGE_TARNAME='coreutils'
270 PACKAGE_VERSION='5.0.91'
271 PACKAGE_STRING='GNU coreutils 5.0.91'
272 PACKAGE_BUGREPORT='bug-coreutils@gnu.org'
274 ac_unique_file="src/ls.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
314 ac_config_libobj_dir=lib
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot PERL CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB LN_S GNU_PACKAGE HELP2MAN OPTIONAL_BIN_PROGS MAN DF_PROG U ANSI2KNR LIBOBJS STDBOOL_H HAVE__BOOL ALLOCA ALLOCA_H FNMATCH_H NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS POW_LIB YACC LIB_CLOCK_GETTIME LIB_NANOSLEEP SEQ_LIBM GLIBC21 LIBICONV LTLIBICONV SQRT_LIBM FESETROUND_LIBM LIB_CRYPT MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTLLIBS LIBINTL LTLIBINTL POSUB LTLIBOBJS'
318 # Initialize some variables set by options.
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
330 program_transform_name=s,x,x,
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
390 cache_file=config.cache ;;
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 datadir=$ac_optarg ;;
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
433 -help | --help | --hel | --he | -h)
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
457 -libdir | --libdir | --libdi | --libd)
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
484 # Obsolete; use --without-fp.
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 sbindir=$ac_optarg ;;
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 sharedstatedir=$ac_optarg ;;
561 -site | --site | --sit)
563 -site=* | --site=* | --sit=*)
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
586 -version | --version | --versio | --versi | --vers | -V)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
612 # Obsolete; use --with-x.
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
664 eval ac_val=$`echo $ac_var`
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val=$`echo $ac_var`
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705 test "$silent" = yes && exec 6>/dev/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
725 if test ! -r $srcdir/$ac_unique_file; then
729 ac_srcdir_defaulted=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
784 \`configure' configures GNU coreutils 5.0.91 to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
838 --program-prefix=PREFIX prepend PREFIX to installed program names
839 --program-suffix=SUFFIX append SUFFIX to installed program names
840 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
843 --build=BUILD configure for building on BUILD [guessed]
844 --host=HOST cross-compile to build programs to run on HOST [BUILD]
848 if test -n "$ac_init_help"; then
849 case $ac_init_help in
850 short | recursive ) echo "Configuration of GNU coreutils 5.0.91:";;
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --disable-dependency-tracking Speeds up one-time builds
858 --enable-dependency-tracking Do not reject slow dependency extractors
859 --disable-largefile omit support for large files
860 --disable-assert turn off assertions
861 --disable-rpath do not hardcode runtime library paths
862 --disable-nls do not use Native Language Support
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --without-included-regex don't compile regex; this is the default on
868 systems with version 2 of the GNU C library
869 (use with caution on other system)
870 --with-gnu-ld assume the C compiler uses GNU ld default=no
871 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
872 --without-libiconv-prefix don't search for libiconv in includedir and libdir
873 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
874 --without-libintl-prefix don't search for libintl in includedir and libdir
876 Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
885 Use these variables to override the choices made by `configure' or to help
886 it to find libraries and programs with nonstandard names/locations.
888 Report bugs to <bug-coreutils@gnu.org>.
892 if test "$ac_init_help" = "recursive"; then
893 # If there are subdirs, report their specific --help.
895 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
896 test -d $ac_dir || continue
899 if test "$ac_dir" != .; then
900 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
901 # A "../" for each directory in $ac_dir_suffix.
902 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 ac_dir_suffix= ac_top_builddir=
908 .) # No --srcdir option. We are building in place.
910 if test -z "$ac_top_builddir"; then
913 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915 [\\/]* | ?:[\\/]* ) # Absolute path.
916 ac_srcdir=$srcdir$ac_dir_suffix;
917 ac_top_srcdir=$srcdir ;;
919 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
920 ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
924 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
925 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
926 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
927 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
930 # Check for guested configure; otherwise get Cygnus style configure.
931 if test -f $ac_srcdir/configure.gnu; then
933 $SHELL $ac_srcdir/configure.gnu --help=recursive
934 elif test -f $ac_srcdir/configure; then
936 $SHELL $ac_srcdir/configure --help=recursive
937 elif test -f $ac_srcdir/configure.ac ||
938 test -f $ac_srcdir/configure.in; then
942 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
948 test -n "$ac_init_help" && exit 0
949 if $ac_init_version; then
951 GNU coreutils configure 5.0.91
952 generated by GNU Autoconf 2.57b
954 Copyright (C) 2003 Free Software Foundation, Inc.
955 This configure script is free software; the Free Software Foundation
956 gives unlimited permission to copy, distribute and modify it.
962 This file contains any messages produced by compilers while
963 running configure, to aid debugging if configure makes a mistake.
965 It was created by GNU coreutils $as_me 5.0.91, which was
966 generated by GNU Autoconf 2.57b. Invocation command line was
977 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
978 uname -m = `(uname -m) 2>/dev/null || echo unknown`
979 uname -r = `(uname -r) 2>/dev/null || echo unknown`
980 uname -s = `(uname -s) 2>/dev/null || echo unknown`
981 uname -v = `(uname -v) 2>/dev/null || echo unknown`
983 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
984 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
986 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
987 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
988 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
989 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
990 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
991 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
992 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1000 test -z "$as_dir" && as_dir=.
1001 echo "PATH: $as_dir"
1016 # Keep a trace of the command line.
1017 # Strip out --no-create and --no-recursion so they do not pile up.
1018 # Strip out --silent because we don't want to record it for future runs.
1019 # Also quote any args containing shell meta-characters.
1020 # Make two passes to allow for proper duplicate-argument suppression.
1025 ac_must_keep_next=false
1031 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033 | -silent | --silent | --silen | --sile | --sil)
1035 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1036 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1039 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1041 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1042 if test $ac_must_keep_next = true; then
1043 ac_must_keep_next=false # Got value, back to normal.
1046 *=* | --config-cache | -C | -disable-* | --disable-* \
1047 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1048 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1049 | -with-* | --with-* | -without-* | --without-* | --x)
1050 case "$ac_configure_args0 " in
1051 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1054 -* ) ac_must_keep_next=true ;;
1057 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1058 # Get rid of the leading space.
1064 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1065 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1067 # When interrupted or exit'd, cleanup temporary files, and complete
1068 # config.log. We remove comments because anyway the quotes in there
1069 # would cause problems or look ugly.
1070 # WARNING: Be sure not to use single quotes in there, as some shells,
1071 # such as our DU 5.0 friend, will then `close' the trap.
1072 trap 'exit_status=$?
1073 # Save into config.log some information that might help in debugging.
1078 ## ---------------- ##
1079 ## Cache variables. ##
1080 ## ---------------- ##
1083 # The following way of writing the cache mishandles newlines in values,
1086 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1089 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1094 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1101 ## ----------------- ##
1102 ## Output variables. ##
1103 ## ----------------- ##
1106 for ac_var in $ac_subst_vars
1108 eval ac_val=$`echo $ac_var`
1109 echo "$ac_var='"'"'$ac_val'"'"'"
1113 if test -n "$ac_subst_files"; then
1120 for ac_var in $ac_subst_files
1122 eval ac_val=$`echo $ac_var`
1123 echo "$ac_var='"'"'$ac_val'"'"'"
1128 if test -s confdefs.h; then
1135 sed "/^$/d" confdefs.h | sort
1138 test "$ac_signal" != 0 &&
1139 echo "$as_me: caught signal $ac_signal"
1140 echo "$as_me: exit $exit_status"
1142 rm -f core core.* *.core &&
1143 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1146 for ac_signal in 1 2 13 15; do
1147 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1151 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1152 rm -rf conftest* confdefs.h
1153 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1156 # Predefined preprocessor variables.
1158 cat >>confdefs.h <<_ACEOF
1159 #define PACKAGE_NAME "$PACKAGE_NAME"
1163 cat >>confdefs.h <<_ACEOF
1164 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_STRING "$PACKAGE_STRING"
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1183 # Let the site file select an alternate cache file if it wants to.
1184 # Prefer explicitly selected file to automatically selected ones.
1185 if test -z "$CONFIG_SITE"; then
1186 if test "x$prefix" != xNONE; then
1187 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1189 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1192 for ac_site_file in $CONFIG_SITE; do
1193 if test -r "$ac_site_file"; then
1194 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1195 echo "$as_me: loading site script $ac_site_file" >&6;}
1196 sed 's/^/| /' "$ac_site_file" >&5
1201 if test -r "$cache_file"; then
1202 # Some versions of bash will fail to source /dev/null (special
1203 # files actually), so we avoid doing that.
1204 if test -f "$cache_file"; then
1205 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1206 echo "$as_me: loading cache $cache_file" >&6;}
1208 [\\/]* | ?:[\\/]* ) . $cache_file;;
1209 *) . ./$cache_file;;
1213 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1214 echo "$as_me: creating cache $cache_file" >&6;}
1218 # Check that the precious variables saved in the cache have kept the same
1220 ac_cache_corrupted=false
1221 for ac_var in `(set) 2>&1 |
1222 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1223 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1224 eval ac_new_set=\$ac_env_${ac_var}_set
1225 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1226 eval ac_new_val="\$ac_env_${ac_var}_value"
1227 case $ac_old_set,$ac_new_set in
1229 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1230 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1231 ac_cache_corrupted=: ;;
1233 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1234 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1235 ac_cache_corrupted=: ;;
1238 if test "x$ac_old_val" != "x$ac_new_val"; then
1239 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1240 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1241 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1242 echo "$as_me: former value: $ac_old_val" >&2;}
1243 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1244 echo "$as_me: current value: $ac_new_val" >&2;}
1245 ac_cache_corrupted=:
1248 # Pass precious variables to config.status.
1249 if test "$ac_new_set" = set; then
1251 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1253 *) ac_arg=$ac_var=$ac_new_val ;;
1255 case " $ac_configure_args " in
1256 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1257 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1261 if $ac_cache_corrupted; then
1262 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1263 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1264 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1265 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1266 { (exit 1); exit 1; }; }
1270 ac_cpp='$CPP $CPPFLAGS'
1271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1276 gl_header_list="$gl_header_list sys/time.h"
1277 gl_header_list="$gl_header_list utime.h"
1278 gl_header_list="$gl_header_list stdlib.h"
1279 gl_header_list="$gl_header_list string.h"
1280 gl_header_list="$gl_header_list fcntl.h"
1281 gl_header_list="$gl_header_list unistd.h"
1282 gl_header_list="$gl_header_list strings.h"
1283 gl_func_list="$gl_func_list isascii"
1284 gl_header_list="$gl_header_list sys/param.h"
1285 gl_header_list="$gl_header_list locale.h"
1286 gl_header_list="$gl_header_list limits.h"
1287 gl_header_list="$gl_header_list memory.h"
1288 gl_func_list="$gl_func_list setlocale"
1289 gl_func_list="$gl_func_list localeconv"
1290 gl_header_list="$gl_header_list wchar.h"
1291 gl_header_list="$gl_header_list wctype.h"
1292 gl_func_list="$gl_func_list iswprint"
1293 gl_func_list="$gl_func_list mbsinit"
1294 gl_header_list="$gl_header_list stddef.h"
1295 gl_func_list="$gl_func_list mempcpy"
1296 gl_func_list="$gl_func_list memcpy"
1325 for ac_dir in config $srcdir/config; do
1326 if test -f $ac_dir/install-sh; then
1328 ac_install_sh="$ac_aux_dir/install-sh -c"
1330 elif test -f $ac_dir/install.sh; then
1332 ac_install_sh="$ac_aux_dir/install.sh -c"
1334 elif test -f $ac_dir/shtool; then
1336 ac_install_sh="$ac_aux_dir/shtool install -c"
1340 if test -z "$ac_aux_dir"; then
1341 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1342 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1343 { (exit 1); exit 1; }; }
1345 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1346 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1347 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1349 ac_config_headers="$ac_config_headers config.h:config.hin"
1351 # Make sure we can run config.sub.
1352 $ac_config_sub sun4 >/dev/null 2>&1 ||
1353 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1354 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1355 { (exit 1); exit 1; }; }
1357 echo "$as_me:$LINENO: checking build system type" >&5
1358 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1359 if test "${ac_cv_build+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1362 ac_cv_build_alias=$build_alias
1363 test -z "$ac_cv_build_alias" &&
1364 ac_cv_build_alias=`$ac_config_guess`
1365 test -z "$ac_cv_build_alias" &&
1366 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1367 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1368 { (exit 1); exit 1; }; }
1369 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1370 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1371 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1372 { (exit 1); exit 1; }; }
1375 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1376 echo "${ECHO_T}$ac_cv_build" >&6
1378 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1379 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1380 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1383 echo "$as_me:$LINENO: checking host system type" >&5
1384 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1385 if test "${ac_cv_host+set}" = set; then
1386 echo $ECHO_N "(cached) $ECHO_C" >&6
1388 ac_cv_host_alias=$host_alias
1389 test -z "$ac_cv_host_alias" &&
1390 ac_cv_host_alias=$ac_cv_build_alias
1391 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1392 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1393 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1394 { (exit 1); exit 1; }; }
1397 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1398 echo "${ECHO_T}$ac_cv_host" >&6
1400 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1401 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1402 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1406 am__api_version="1.7"
1407 # Find a good install program. We prefer a C program (faster),
1408 # so one script is as good as another. But avoid the broken or
1409 # incompatible versions:
1410 # SysV /etc/install, /usr/sbin/install
1411 # SunOS /usr/etc/install
1412 # IRIX /sbin/install
1414 # AmigaOS /C/install, which installs bootblocks on floppy discs
1415 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1416 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1417 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1418 # OS/2's system install, which has a completely different semantic
1419 # ./install, which can be erroneously created by make from ./install.sh.
1420 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1421 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1422 if test -z "$INSTALL"; then
1423 if test "${ac_cv_path_install+set}" = set; then
1424 echo $ECHO_N "(cached) $ECHO_C" >&6
1426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1430 test -z "$as_dir" && as_dir=.
1431 # Account for people who put trailing slashes in PATH elements.
1433 ./ | .// | /cC/* | \
1434 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1435 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1438 # OSF1 and SCO ODT 3.0 have their own names for install.
1439 # Don't use installbsd from OSF since it installs stuff as root
1441 for ac_prog in ginstall scoinst install; do
1442 for ac_exec_ext in '' $ac_executable_extensions; do
1443 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1444 if test $ac_prog = install &&
1445 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1446 # AIX install. It has an incompatible calling convention.
1448 elif test $ac_prog = install &&
1449 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1450 # program-specific install script used by HP pwplus--don't use.
1453 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1465 if test "${ac_cv_path_install+set}" = set; then
1466 INSTALL=$ac_cv_path_install
1468 # As a last resort, use the slow shell script. We don't cache a
1469 # path for INSTALL within a source directory, because that will
1470 # break other packages using the cache if that directory is
1471 # removed, or if the path is relative.
1472 INSTALL=$ac_install_sh
1475 echo "$as_me:$LINENO: result: $INSTALL" >&5
1476 echo "${ECHO_T}$INSTALL" >&6
1478 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1479 # It thinks the first close brace ends the variable substitution.
1480 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1482 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1484 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1486 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1487 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1490 echo timestamp > conftest.file
1491 # Do `set' in a subshell so we don't clobber the current shell's
1492 # arguments. Must try -L first in case configure is actually a
1493 # symlink; some systems play weird games with the mod time of symlinks
1494 # (eg FreeBSD returns the mod time of the symlink's containing
1497 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1498 if test "$*" = "X"; then
1500 set X `ls -t $srcdir/configure conftest.file`
1503 if test "$*" != "X $srcdir/configure conftest.file" \
1504 && test "$*" != "X conftest.file $srcdir/configure"; then
1506 # If neither matched, then we have a broken ls. This can happen
1507 # if, for instance, CONFIG_SHELL is bash and it inherits a
1508 # broken ls alias from the environment. This has actually
1509 # happened. Such a system could not be considered "sane".
1510 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1511 alias in your environment" >&5
1512 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1513 alias in your environment" >&2;}
1514 { (exit 1); exit 1; }; }
1517 test "$2" = conftest.file
1523 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1524 Check your system clock" >&5
1525 echo "$as_me: error: newly created file is older than distributed files!
1526 Check your system clock" >&2;}
1527 { (exit 1); exit 1; }; }
1529 echo "$as_me:$LINENO: result: yes" >&5
1530 echo "${ECHO_T}yes" >&6
1531 test "$program_prefix" != NONE &&
1532 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1533 # Use a double $ so make ignores it.
1534 test "$program_suffix" != NONE &&
1535 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1536 # Double any \ or $. echo might interpret backslashes.
1537 # By default was `s,x,x', remove it if useless.
1538 cat <<\_ACEOF >conftest.sed
1539 s/[\\$]/&&/g;s/;s,x,x,$//
1541 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1545 # expand $ac_aux_dir to an absolute path
1546 am_aux_dir=`cd $ac_aux_dir && pwd`
1548 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1549 # Use eval to expand $SHELL
1550 if eval "$MISSING --run true"; then
1551 am_missing_run="$MISSING --run "
1554 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1555 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1558 for ac_prog in gawk mawk nawk awk
1560 # Extract the first word of "$ac_prog", so it can be a program name with args.
1561 set dummy $ac_prog; ac_word=$2
1562 echo "$as_me:$LINENO: checking for $ac_word" >&5
1563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564 if test "${ac_cv_prog_AWK+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1567 if test -n "$AWK"; then
1568 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574 test -z "$as_dir" && as_dir=.
1575 for ac_exec_ext in '' $ac_executable_extensions; do
1576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1577 ac_cv_prog_AWK="$ac_prog"
1578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1587 if test -n "$AWK"; then
1588 echo "$as_me:$LINENO: result: $AWK" >&5
1589 echo "${ECHO_T}$AWK" >&6
1591 echo "$as_me:$LINENO: result: no" >&5
1592 echo "${ECHO_T}no" >&6
1595 test -n "$AWK" && break
1598 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1599 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1600 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1601 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 cat >conftest.make <<\_ACEOF
1606 @echo 'ac_maketemp="$(MAKE)"'
1608 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1609 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1610 if test -n "$ac_maketemp"; then
1611 eval ac_cv_prog_make_${ac_make}_set=yes
1613 eval ac_cv_prog_make_${ac_make}_set=no
1617 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1618 echo "$as_me:$LINENO: result: yes" >&5
1619 echo "${ECHO_T}yes" >&6
1622 echo "$as_me:$LINENO: result: no" >&5
1623 echo "${ECHO_T}no" >&6
1624 SET_MAKE="MAKE=${MAKE-make}"
1627 rm -rf .tst 2>/dev/null
1628 mkdir .tst 2>/dev/null
1629 if test -d .tst; then
1634 rmdir .tst 2>/dev/null
1636 # test to see if srcdir already configured
1637 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1638 test -f $srcdir/config.status; then
1639 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1640 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1641 { (exit 1); exit 1; }; }
1644 # test whether we have cygpath
1645 if test -z "$CYGPATH_W"; then
1646 if (cygpath --version) >/dev/null 2>/dev/null; then
1647 CYGPATH_W='cygpath -w'
1654 # Define the identity of the package.
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE "$PACKAGE"
1664 cat >>confdefs.h <<_ACEOF
1665 #define VERSION "$VERSION"
1668 # Some tools Automake needs.
1670 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1673 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1676 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1679 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1682 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1685 AMTAR=${AMTAR-"${am_missing_run}tar"}
1687 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1689 # Installed binaries are usually stripped using `strip' when the user
1690 # run `make install-strip'. However `strip' might not be the right
1691 # tool to use in cross-compilation environments, therefore Automake
1692 # will honor the `STRIP' environment variable to overrule this program.
1693 if test "$cross_compiling" != no; then
1694 if test -n "$ac_tool_prefix"; then
1695 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1696 set dummy ${ac_tool_prefix}strip; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_STRIP+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 if test -n "$STRIP"; then
1703 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721 STRIP=$ac_cv_prog_STRIP
1722 if test -n "$STRIP"; then
1723 echo "$as_me:$LINENO: result: $STRIP" >&5
1724 echo "${ECHO_T}$STRIP" >&6
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1731 if test -z "$ac_cv_prog_STRIP"; then
1733 # Extract the first word of "strip", so it can be a program name with args.
1734 set dummy strip; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1740 if test -n "$ac_ct_STRIP"; then
1741 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_ac_ct_STRIP="strip"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1760 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1761 if test -n "$ac_ct_STRIP"; then
1762 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1763 echo "${ECHO_T}$ac_ct_STRIP" >&6
1765 echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1771 STRIP="$ac_cv_prog_STRIP"
1775 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1777 # We need awk for the "check" target. The system "awk" is bad on
1784 cat >>confdefs.h <<\_ACEOF
1785 #define _GNU_SOURCE 1
1793 cat >>confdefs.h <<\_ACEOF
1794 #define __EXTENSIONS__ 1
1799 echo "$as_me:$LINENO: checking for perl5.003 or newer" >&5
1800 echo $ECHO_N "checking for perl5.003 or newer... $ECHO_C" >&6
1801 if test "${PERL+set}" = set; then
1802 # `PERL' is set in the user's environment.
1803 candidate_perl_names="$PERL"
1806 candidate_perl_names='perl perl5'
1812 PERL="$am_missing_run perl"
1813 for perl in $candidate_perl_names; do
1814 # Run test in a subshell; some versions of sh will print an error if
1815 # an executable is not found, even if stderr is redirected.
1816 if ( $perl -e 'require 5.003; use File::Compare' ) > /dev/null 2>&1; then
1823 echo "$as_me:$LINENO: result: $found" >&5
1824 echo "${ECHO_T}$found" >&6
1825 test $found = no && { echo "$as_me:$LINENO: WARNING:
1826 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
1827 a usable version of the Perl File::Compare module. As a result,
1828 you may be unable to run a few tests or to regenerate certain
1829 files if you modify the sources from which they are derived.
1831 echo "$as_me: WARNING:
1832 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
1833 a usable version of the Perl File::Compare module. As a result,
1834 you may be unable to run a few tests or to regenerate certain
1835 files if you modify the sources from which they are derived.
1839 ac_cpp='$CPP $CPPFLAGS'
1840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1843 if test -n "$ac_tool_prefix"; then
1844 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1845 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1846 echo "$as_me:$LINENO: checking for $ac_word" >&5
1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848 if test "${ac_cv_prog_CC+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 if test -n "$CC"; then
1852 ac_cv_prog_CC="$CC" # Let the user override the test.
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 test -z "$as_dir" && as_dir=.
1859 for ac_exec_ext in '' $ac_executable_extensions; do
1860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1861 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871 if test -n "$CC"; then
1872 echo "$as_me:$LINENO: result: $CC" >&5
1873 echo "${ECHO_T}$CC" >&6
1875 echo "$as_me:$LINENO: result: no" >&5
1876 echo "${ECHO_T}no" >&6
1880 if test -z "$ac_cv_prog_CC"; then
1882 # Extract the first word of "gcc", so it can be a program name with args.
1883 set dummy gcc; ac_word=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 if test -n "$ac_ct_CC"; then
1890 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 test -z "$as_dir" && as_dir=.
1897 for ac_exec_ext in '' $ac_executable_extensions; do
1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899 ac_cv_prog_ac_ct_CC="gcc"
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1909 if test -n "$ac_ct_CC"; then
1910 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1911 echo "${ECHO_T}$ac_ct_CC" >&6
1913 echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1922 if test -z "$CC"; then
1923 if test -n "$ac_tool_prefix"; then
1924 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1925 set dummy ${ac_tool_prefix}cc; ac_word=$2
1926 echo "$as_me:$LINENO: checking for $ac_word" >&5
1927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928 if test "${ac_cv_prog_CC+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 if test -n "$CC"; then
1932 ac_cv_prog_CC="$CC" # Let the user override the test.
1934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 test -z "$as_dir" && as_dir=.
1939 for ac_exec_ext in '' $ac_executable_extensions; do
1940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1941 ac_cv_prog_CC="${ac_tool_prefix}cc"
1942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951 if test -n "$CC"; then
1952 echo "$as_me:$LINENO: result: $CC" >&5
1953 echo "${ECHO_T}$CC" >&6
1955 echo "$as_me:$LINENO: result: no" >&5
1956 echo "${ECHO_T}no" >&6
1960 if test -z "$ac_cv_prog_CC"; then
1962 # Extract the first word of "cc", so it can be a program name with args.
1963 set dummy cc; ac_word=$2
1964 echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1966 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 if test -n "$ac_ct_CC"; then
1970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 test -z "$as_dir" && as_dir=.
1977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1979 ac_cv_prog_ac_ct_CC="cc"
1980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1988 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1989 if test -n "$ac_ct_CC"; then
1990 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1991 echo "${ECHO_T}$ac_ct_CC" >&6
1993 echo "$as_me:$LINENO: result: no" >&5
1994 echo "${ECHO_T}no" >&6
2003 if test -z "$CC"; then
2004 # Extract the first word of "cc", so it can be a program name with args.
2005 set dummy cc; ac_word=$2
2006 echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008 if test "${ac_cv_prog_CC+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 if test -n "$CC"; then
2012 ac_cv_prog_CC="$CC" # Let the user override the test.
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 test -z "$as_dir" && as_dir=.
2020 for ac_exec_ext in '' $ac_executable_extensions; do
2021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2022 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2023 ac_prog_rejected=yes
2027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033 if test $ac_prog_rejected = yes; then
2034 # We found a bogon in the path, so make sure we never use it.
2035 set dummy $ac_cv_prog_CC
2037 if test $# != 0; then
2038 # We chose a different compiler from the bogus one.
2039 # However, it has the same basename, so the bogon will be chosen
2040 # first if we set CC to just the basename; use the full file name.
2042 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2048 if test -n "$CC"; then
2049 echo "$as_me:$LINENO: result: $CC" >&5
2050 echo "${ECHO_T}$CC" >&6
2052 echo "$as_me:$LINENO: result: no" >&5
2053 echo "${ECHO_T}no" >&6
2057 if test -z "$CC"; then
2058 if test -n "$ac_tool_prefix"; then
2061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2062 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2063 echo "$as_me:$LINENO: checking for $ac_word" >&5
2064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2065 if test "${ac_cv_prog_CC+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 if test -n "$CC"; then
2069 ac_cv_prog_CC="$CC" # Let the user override the test.
2071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075 test -z "$as_dir" && as_dir=.
2076 for ac_exec_ext in '' $ac_executable_extensions; do
2077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2078 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088 if test -n "$CC"; then
2089 echo "$as_me:$LINENO: result: $CC" >&5
2090 echo "${ECHO_T}$CC" >&6
2092 echo "$as_me:$LINENO: result: no" >&5
2093 echo "${ECHO_T}no" >&6
2096 test -n "$CC" && break
2099 if test -z "$CC"; then
2103 # Extract the first word of "$ac_prog", so it can be a program name with args.
2104 set dummy $ac_prog; ac_word=$2
2105 echo "$as_me:$LINENO: checking for $ac_word" >&5
2106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2107 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 if test -n "$ac_ct_CC"; then
2111 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 test -z "$as_dir" && as_dir=.
2118 for ac_exec_ext in '' $ac_executable_extensions; do
2119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2120 ac_cv_prog_ac_ct_CC="$ac_prog"
2121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2130 if test -n "$ac_ct_CC"; then
2131 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2132 echo "${ECHO_T}$ac_ct_CC" >&6
2134 echo "$as_me:$LINENO: result: no" >&5
2135 echo "${ECHO_T}no" >&6
2138 test -n "$ac_ct_CC" && break
2147 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2148 See \`config.log' for more details." >&5
2149 echo "$as_me: error: no acceptable C compiler found in \$PATH
2150 See \`config.log' for more details." >&2;}
2151 { (exit 1); exit 1; }; }
2153 # Provide some information about the compiler.
2154 echo "$as_me:$LINENO:" \
2155 "checking for C compiler version" >&5
2156 ac_compiler=`set X $ac_compile; echo $2`
2157 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2158 (eval $ac_compiler --version </dev/null >&5) 2>&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }
2162 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2163 (eval $ac_compiler -v </dev/null >&5) 2>&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }
2167 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2168 (eval $ac_compiler -V </dev/null >&5) 2>&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }
2173 cat >conftest.$ac_ext <<_ACEOF
2176 cat confdefs.h >>conftest.$ac_ext
2177 cat >>conftest.$ac_ext <<_ACEOF
2178 /* end confdefs.h. */
2188 ac_clean_files_save=$ac_clean_files
2189 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2190 # Try to create an executable without -o first, disregard a.out.
2191 # It will help us diagnose broken compilers, and finding out an intuition
2193 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2194 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2195 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2196 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2197 (eval $ac_link_default) 2>&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; then
2201 # Find the output, starting from the most likely. This scheme is
2202 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2205 # Be careful to initialize this variable, since it used to be cached.
2206 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2208 # b.out is created by i960 compilers.
2209 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2211 test -f "$ac_file" || continue
2213 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2216 # This is the source file.
2219 # We found the default executable, but exeext='' is most
2223 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2224 # FIXME: I believe we export ac_cv_exeext for Libtool,
2225 # but it would be cool to find out if it's true. Does anybody
2226 # maintain Libtool? --akim.
2234 echo "$as_me: failed program was:" >&5
2235 sed 's/^/| /' conftest.$ac_ext >&5
2237 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2238 See \`config.log' for more details." >&5
2239 echo "$as_me: error: C compiler cannot create executables
2240 See \`config.log' for more details." >&2;}
2241 { (exit 77); exit 77; }; }
2244 ac_exeext=$ac_cv_exeext
2245 echo "$as_me:$LINENO: result: $ac_file" >&5
2246 echo "${ECHO_T}$ac_file" >&6
2248 # Check the compiler produces executables we can run. If not, either
2249 # the compiler is broken, or we cross compile.
2250 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2251 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2252 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2253 # If not cross compiling, check that we can run a simple program.
2254 if test "$cross_compiling" != yes; then
2255 if { ac_try='./$ac_file'
2256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; }; then
2263 if test "$cross_compiling" = maybe; then
2266 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2267 If you meant to cross compile, use \`--host'.
2268 See \`config.log' for more details." >&5
2269 echo "$as_me: error: cannot run C compiled programs.
2270 If you meant to cross compile, use \`--host'.
2271 See \`config.log' for more details." >&2;}
2272 { (exit 1); exit 1; }; }
2276 echo "$as_me:$LINENO: result: yes" >&5
2277 echo "${ECHO_T}yes" >&6
2279 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2280 ac_clean_files=$ac_clean_files_save
2281 # Check the compiler produces executables we can run. If not, either
2282 # the compiler is broken, or we cross compile.
2283 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2284 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2285 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2286 echo "${ECHO_T}$cross_compiling" >&6
2288 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2289 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2291 (eval $ac_link) 2>&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; then
2295 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2296 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2297 # work properly (i.e., refer to `conftest.exe'), while it won't with
2299 for ac_file in conftest.exe conftest conftest.*; do
2300 test -f "$ac_file" || continue
2302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2303 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2310 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2311 See \`config.log' for more details." >&5
2312 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2313 See \`config.log' for more details." >&2;}
2314 { (exit 1); exit 1; }; }
2317 rm -f conftest$ac_cv_exeext
2318 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2319 echo "${ECHO_T}$ac_cv_exeext" >&6
2321 rm -f conftest.$ac_ext
2322 EXEEXT=$ac_cv_exeext
2324 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2325 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2326 if test "${ac_cv_objext+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2329 cat >conftest.$ac_ext <<_ACEOF
2332 cat confdefs.h >>conftest.$ac_ext
2333 cat >>conftest.$ac_ext <<_ACEOF
2334 /* end confdefs.h. */
2344 rm -f conftest.o conftest.obj
2345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2346 (eval $ac_compile) 2>&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; then
2350 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2353 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2358 echo "$as_me: failed program was:" >&5
2359 sed 's/^/| /' conftest.$ac_ext >&5
2361 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2362 See \`config.log' for more details." >&5
2363 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2364 See \`config.log' for more details." >&2;}
2365 { (exit 1); exit 1; }; }
2368 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2370 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2371 echo "${ECHO_T}$ac_cv_objext" >&6
2372 OBJEXT=$ac_cv_objext
2374 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2375 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2376 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 cat >conftest.$ac_ext <<_ACEOF
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h. */
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } &&
2403 { ac_try='test -s conftest.$ac_objext'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
2411 echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2416 rm -f conftest.$ac_objext conftest.$ac_ext
2417 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2420 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2421 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2422 GCC=`test $ac_compiler_gnu = yes && echo yes`
2423 ac_test_CFLAGS=${CFLAGS+set}
2424 ac_save_CFLAGS=$CFLAGS
2426 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2427 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2428 if test "${ac_cv_prog_cc_g+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 cat >conftest.$ac_ext <<_ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h. */
2446 rm -f conftest.$ac_objext
2447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2448 (eval $ac_compile) 2>&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
2452 { ac_try='test -s conftest.$ac_objext'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; }; then
2460 echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2465 rm -f conftest.$ac_objext conftest.$ac_ext
2467 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2468 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2469 if test "$ac_test_CFLAGS" = set; then
2470 CFLAGS=$ac_save_CFLAGS
2471 elif test $ac_cv_prog_cc_g = yes; then
2472 if test "$GCC" = yes; then
2478 if test "$GCC" = yes; then
2484 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2485 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2486 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 ac_cv_prog_cc_stdc=no
2491 cat >conftest.$ac_ext <<_ACEOF
2494 cat confdefs.h >>conftest.$ac_ext
2495 cat >>conftest.$ac_ext <<_ACEOF
2496 /* end confdefs.h. */
2499 #include <sys/types.h>
2500 #include <sys/stat.h>
2501 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2502 struct buf { int x; };
2503 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2504 static char *e (p, i)
2510 static char *f (char * (*g) (char **, int), char **p, ...)
2515 s = g (p, va_arg (v,int));
2520 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2521 function prototypes and stuff, but not '\xHH' hex character constants.
2522 These don't provoke an error unfortunately, instead are silently treated
2523 as 'x'. The following induces an error, until -std1 is added to get
2524 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2525 array size at least. It's necessary to write '\x00'==0 to get something
2526 that's true only with -std1. */
2527 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2529 int test (int i, double x);
2530 struct s1 {int (*f) (int a);};
2531 struct s2 {int (*f) (double a);};
2532 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2538 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2543 # Don't try gcc -ansi; that turns off useful extensions and
2544 # breaks some systems' header files.
2545 # AIX -qlanglvl=ansi
2546 # Ultrix and OSF/1 -std1
2547 # HP-UX 10.20 and later -Ae
2548 # HP-UX older versions -Aa -D_HPUX_SOURCE
2549 # SVR4 -Xc -D__EXTENSIONS__
2550 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2552 CC="$ac_save_CC $ac_arg"
2553 rm -f conftest.$ac_objext
2554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555 (eval $ac_compile) 2>&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); } &&
2559 { ac_try='test -s conftest.$ac_objext'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; }; then
2565 ac_cv_prog_cc_stdc=$ac_arg
2568 echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2572 rm -f conftest.$ac_objext
2574 rm -f conftest.$ac_ext conftest.$ac_objext
2579 case "x$ac_cv_prog_cc_stdc" in
2581 echo "$as_me:$LINENO: result: none needed" >&5
2582 echo "${ECHO_T}none needed" >&6 ;;
2584 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2585 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2586 CC="$CC $ac_cv_prog_cc_stdc" ;;
2589 # Some people use a C++ compiler to compile C. Since we use `exit',
2590 # in C++ we need to declare it. In case someone uses the same compiler
2591 # for both compiling C and C++ we need to have the C++ compiler decide
2592 # the declaration of exit, since it's the most demanding environment.
2593 cat >conftest.$ac_ext <<_ACEOF
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600 (eval $ac_compile) 2>&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); } &&
2604 { ac_try='test -s conftest.$ac_objext'
2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; }; then
2610 for ac_declaration in \
2612 'extern "C" void std::exit (int) throw (); using std::exit;' \
2613 'extern "C" void std::exit (int); using std::exit;' \
2614 'extern "C" void exit (int) throw ();' \
2615 'extern "C" void exit (int);' \
2618 cat >conftest.$ac_ext <<_ACEOF
2621 cat confdefs.h >>conftest.$ac_ext
2622 cat >>conftest.$ac_ext <<_ACEOF
2623 /* end confdefs.h. */
2634 rm -f conftest.$ac_objext
2635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2636 (eval $ac_compile) 2>&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); } &&
2640 { ac_try='test -s conftest.$ac_objext'
2641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }; }; then
2648 echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2653 rm -f conftest.$ac_objext conftest.$ac_ext
2654 cat >conftest.$ac_ext <<_ACEOF
2657 cat confdefs.h >>conftest.$ac_ext
2658 cat >>conftest.$ac_ext <<_ACEOF
2659 /* end confdefs.h. */
2669 rm -f conftest.$ac_objext
2670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2671 (eval $ac_compile) 2>&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } &&
2675 { ac_try='test -s conftest.$ac_objext'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; }; then
2683 echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2687 rm -f conftest.$ac_objext conftest.$ac_ext
2690 if test -n "$ac_declaration"; then
2691 echo '#ifdef __cplusplus' >>confdefs.h
2692 echo $ac_declaration >>confdefs.h
2693 echo '#endif' >>confdefs.h
2697 echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2701 rm -f conftest.$ac_objext conftest.$ac_ext
2703 ac_cpp='$CPP $CPPFLAGS'
2704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2707 DEPDIR="${am__leading_dot}deps"
2709 ac_config_commands="$ac_config_commands depfiles"
2712 am_make=${MAKE-make}
2713 cat > confinc << 'END'
2718 # If we don't find an include directive, just comment out the code.
2719 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2720 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2724 # First try GNU make style include.
2725 echo "include confinc" > confmf
2726 # We grep out `Entering directory' and `Leaving directory'
2727 # messages which can occur if `w' ends up in MAKEFLAGS.
2728 # In particular we don't look at `^make:' because GNU make might
2729 # be invoked under some other name (usually "gmake"), in which
2730 # case it prints its new name instead of `make'.
2731 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2736 # Now try BSD make style include.
2737 if test "$am__include" = "#"; then
2738 echo '.include "confinc"' > confmf
2739 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2740 am__include=.include
2747 echo "$as_me:$LINENO: result: $_am_result" >&5
2748 echo "${ECHO_T}$_am_result" >&6
2749 rm -f confinc confmf
2751 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2752 if test "${enable_dependency_tracking+set}" = set; then
2753 enableval="$enable_dependency_tracking"
2756 if test "x$enable_dependency_tracking" != xno; then
2757 am_depcomp="$ac_aux_dir/depcomp"
2762 if test "x$enable_dependency_tracking" != xno; then
2773 depcc="$CC" am_compiler_list=
2775 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2776 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2777 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2781 # We make a subdir and do the tests there. Otherwise we can end up
2782 # making bogus files that we don't know about and never remove. For
2783 # instance it was reported that on HP-UX the gcc test will end up
2784 # making a dummy file named `D' -- because `-MD' means `put the output
2787 # Copy depcomp to subdir because otherwise we won't find it if we're
2788 # using a relative directory.
2789 cp "$am_depcomp" conftest.dir
2791 # We will build objects and dependencies in a subdirectory because
2792 # it helps to detect inapplicable dependency modes. For instance
2793 # both Tru64's cc and ICC support -MD to output dependencies as a
2794 # side effect of compilation, but ICC will put the dependencies in
2795 # the current directory while Tru64 will put them in the object
2799 am_cv_CC_dependencies_compiler_type=none
2800 if test "$am_compiler_list" = ""; then
2801 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2803 for depmode in $am_compiler_list; do
2804 # Setup a source with many dependencies, because some compilers
2805 # like to wrap large dependency lists on column 80 (with \), and
2806 # we should not choose a depcomp mode which is confused by this.
2808 # We need to recreate these files for each test, as the compiler may
2809 # overwrite some of them when testing with obscure command lines.
2810 # This happens at least with the AIX C compiler.
2812 for i in 1 2 3 4 5 6; do
2813 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2816 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2820 # after this tag, mechanisms are not by side-effect, so they'll
2821 # only be used when explicitly requested
2822 if test "x$enable_dependency_tracking" = xyes; then
2830 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2831 # mode. It turns out that the SunPro C++ compiler does not properly
2832 # handle `-M -o', and we need to detect this.
2833 if depmode=$depmode \
2834 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2835 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2836 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2837 >/dev/null 2>conftest.err &&
2838 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2839 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2840 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2841 # icc doesn't choke on unknown options, it will just issue warnings
2842 # (even with -Werror). So we grep stderr for any message
2843 # that says an option was ignored.
2844 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2845 am_cv_CC_dependencies_compiler_type=$depmode
2854 am_cv_CC_dependencies_compiler_type=none
2858 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2859 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2860 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2865 test "x$enable_dependency_tracking" != xno \
2866 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2868 am__fastdepCC_FALSE='#'
2870 am__fastdepCC_TRUE='#'
2871 am__fastdepCC_FALSE=
2876 ac_cpp='$CPP $CPPFLAGS'
2877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2880 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2881 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2882 # On Suns, sometimes $CPP names a directory.
2883 if test -n "$CPP" && test -d "$CPP"; then
2886 if test -z "$CPP"; then
2887 if test "${ac_cv_prog_CPP+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 # Double quotes because CPP needs to be expanded
2891 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2894 for ac_c_preproc_warn_flag in '' yes
2896 # Use a header file that comes with gcc, so configuring glibc
2897 # with a fresh cross-compiler works.
2898 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2899 # <limits.h> exists even on freestanding compilers.
2900 # On the NeXT, cc -E runs the code through the compiler's parser,
2901 # not just through cpp. "Syntax error" is here to catch this case.
2902 cat >conftest.$ac_ext <<_ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2909 # include <limits.h>
2911 # include <assert.h>
2915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2918 grep -v '^ *+' conftest.er1 >conftest.err
2920 cat conftest.err >&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); } >/dev/null; then
2923 if test -s conftest.err; then
2924 ac_cpp_err=$ac_c_preproc_warn_flag
2931 if test -z "$ac_cpp_err"; then
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2937 # Broken: fails on valid input.
2940 rm -f conftest.err conftest.$ac_ext
2942 # OK, works on sane cases. Now check whether non-existent headers
2943 # can be detected and how.
2944 cat >conftest.$ac_ext <<_ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2950 #include <ac_nonexistent.h>
2952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2955 grep -v '^ *+' conftest.er1 >conftest.err
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } >/dev/null; then
2960 if test -s conftest.err; then
2961 ac_cpp_err=$ac_c_preproc_warn_flag
2968 if test -z "$ac_cpp_err"; then
2969 # Broken: success on invalid input.
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2975 # Passes both tests.
2979 rm -f conftest.err conftest.$ac_ext
2982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2983 rm -f conftest.err conftest.$ac_ext
2984 if $ac_preproc_ok; then
2996 echo "$as_me:$LINENO: result: $CPP" >&5
2997 echo "${ECHO_T}$CPP" >&6
2999 for ac_c_preproc_warn_flag in '' yes
3001 # Use a header file that comes with gcc, so configuring glibc
3002 # with a fresh cross-compiler works.
3003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3004 # <limits.h> exists even on freestanding compilers.
3005 # On the NeXT, cc -E runs the code through the compiler's parser,
3006 # not just through cpp. "Syntax error" is here to catch this case.
3007 cat >conftest.$ac_ext <<_ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3014 # include <limits.h>
3016 # include <assert.h>
3020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3023 grep -v '^ *+' conftest.er1 >conftest.err
3025 cat conftest.err >&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); } >/dev/null; then
3028 if test -s conftest.err; then
3029 ac_cpp_err=$ac_c_preproc_warn_flag
3036 if test -z "$ac_cpp_err"; then
3039 echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3042 # Broken: fails on valid input.
3045 rm -f conftest.err conftest.$ac_ext
3047 # OK, works on sane cases. Now check whether non-existent headers
3048 # can be detected and how.
3049 cat >conftest.$ac_ext <<_ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3055 #include <ac_nonexistent.h>
3057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3060 grep -v '^ *+' conftest.er1 >conftest.err
3062 cat conftest.err >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } >/dev/null; then
3065 if test -s conftest.err; then
3066 ac_cpp_err=$ac_c_preproc_warn_flag
3073 if test -z "$ac_cpp_err"; then
3074 # Broken: success on invalid input.
3077 echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3080 # Passes both tests.
3084 rm -f conftest.err conftest.$ac_ext
3087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3088 rm -f conftest.err conftest.$ac_ext
3089 if $ac_preproc_ok; then
3092 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3093 See \`config.log' for more details." >&5
3094 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3095 See \`config.log' for more details." >&2;}
3096 { (exit 1); exit 1; }; }
3100 ac_cpp='$CPP $CPPFLAGS'
3101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3107 echo "$as_me:$LINENO: checking for egrep" >&5
3108 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3109 if test "${ac_cv_prog_egrep+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3113 then ac_cv_prog_egrep='grep -E'
3114 else ac_cv_prog_egrep='egrep'
3117 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3118 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3119 EGREP=$ac_cv_prog_egrep
3122 if test $ac_cv_c_compiler_gnu = yes; then
3123 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3124 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3125 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3128 ac_pattern="Autoconf.*'x'"
3129 cat >conftest.$ac_ext <<_ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3139 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3140 ac_cv_prog_gcc_traditional=yes
3142 ac_cv_prog_gcc_traditional=no
3147 if test $ac_cv_prog_gcc_traditional = no; then
3148 cat >conftest.$ac_ext <<_ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3158 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3159 ac_cv_prog_gcc_traditional=yes
3165 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3166 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3167 if test $ac_cv_prog_gcc_traditional = yes; then
3168 CC="$CC -traditional"
3172 if test -n "$ac_tool_prefix"; then
3173 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3174 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3175 echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3177 if test "${ac_cv_prog_RANLIB+set}" = set; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
3180 if test -n "$RANLIB"; then
3181 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 RANLIB=$ac_cv_prog_RANLIB
3200 if test -n "$RANLIB"; then
3201 echo "$as_me:$LINENO: result: $RANLIB" >&5
3202 echo "${ECHO_T}$RANLIB" >&6
3204 echo "$as_me:$LINENO: result: no" >&5
3205 echo "${ECHO_T}no" >&6
3209 if test -z "$ac_cv_prog_RANLIB"; then
3210 ac_ct_RANLIB=$RANLIB
3211 # Extract the first word of "ranlib", so it can be a program name with args.
3212 set dummy ranlib; ac_word=$2
3213 echo "$as_me:$LINENO: checking for $ac_word" >&5
3214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3215 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 if test -n "$ac_ct_RANLIB"; then
3219 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 test -z "$as_dir" && as_dir=.
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228 ac_cv_prog_ac_ct_RANLIB="ranlib"
3229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3238 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3239 if test -n "$ac_ct_RANLIB"; then
3240 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3241 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3243 echo "$as_me:$LINENO: result: no" >&5
3244 echo "${ECHO_T}no" >&6
3247 RANLIB=$ac_ct_RANLIB
3249 RANLIB="$ac_cv_prog_RANLIB"
3252 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3253 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3255 if test "$LN_S" = "ln -s"; then
3256 echo "$as_me:$LINENO: result: yes" >&5
3257 echo "${ECHO_T}yes" >&6
3259 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3260 echo "${ECHO_T}no, using $LN_S" >&6
3264 echo "$as_me:$LINENO: checking for AIX" >&5
3265 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3266 cat >conftest.$ac_ext <<_ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3278 $EGREP "yes" >/dev/null 2>&1; then
3279 echo "$as_me:$LINENO: result: yes" >&5
3280 echo "${ECHO_T}yes" >&6
3281 cat >>confdefs.h <<\_ACEOF
3282 #define _ALL_SOURCE 1
3286 echo "$as_me:$LINENO: result: no" >&5
3287 echo "${ECHO_T}no" >&6
3292 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3293 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3294 if test "${ac_cv_header_stdc+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 cat >conftest.$ac_ext <<_ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3316 rm -f conftest.$ac_objext
3317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3318 (eval $ac_compile) 2>&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); } &&
3322 { ac_try='test -s conftest.$ac_objext'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; }; then
3328 ac_cv_header_stdc=yes
3330 echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3333 ac_cv_header_stdc=no
3335 rm -f conftest.$ac_objext conftest.$ac_ext
3337 if test $ac_cv_header_stdc = yes; then
3338 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3339 cat >conftest.$ac_ext <<_ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h. */
3348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3349 $EGREP "memchr" >/dev/null 2>&1; then
3352 ac_cv_header_stdc=no
3358 if test $ac_cv_header_stdc = yes; then
3359 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3360 cat >conftest.$ac_ext <<_ACEOF
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h. */
3369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3370 $EGREP "free" >/dev/null 2>&1; then
3373 ac_cv_header_stdc=no
3379 if test $ac_cv_header_stdc = yes; then
3380 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3381 if test "$cross_compiling" = yes; then
3384 cat >conftest.$ac_ext <<_ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3391 #if ((' ' & 0x0FF) == 0x020)
3392 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3393 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3395 # define ISLOWER(c) \
3396 (('a' <= (c) && (c) <= 'i') \
3397 || ('j' <= (c) && (c) <= 'r') \
3398 || ('s' <= (c) && (c) <= 'z'))
3399 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3402 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3407 for (i = 0; i < 256; i++)
3408 if (XOR (islower (i), ISLOWER (i))
3409 || toupper (i) != TOUPPER (i))
3414 rm -f conftest$ac_exeext
3415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3416 (eval $ac_link) 2>&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; }; then
3427 echo "$as_me: program exited with status $ac_status" >&5
3428 echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3432 ac_cv_header_stdc=no
3434 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3438 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3439 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3440 if test $ac_cv_header_stdc = yes; then
3442 cat >>confdefs.h <<\_ACEOF
3443 #define STDC_HEADERS 1
3448 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3458 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3459 inttypes.h stdint.h unistd.h
3461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3462 echo "$as_me:$LINENO: checking for $ac_header" >&5
3463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 cat >conftest.$ac_ext <<_ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h. */
3473 $ac_includes_default
3475 #include <$ac_header>
3477 rm -f conftest.$ac_objext
3478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3479 (eval $ac_compile) 2>&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } &&
3483 { ac_try='test -s conftest.$ac_objext'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3489 eval "$as_ac_Header=yes"
3491 echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3494 eval "$as_ac_Header=no"
3496 rm -f conftest.$ac_objext conftest.$ac_ext
3498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3501 cat >>confdefs.h <<_ACEOF
3502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3510 if test "${ac_cv_header_minix_config_h+set}" = set; then
3511 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3512 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3513 if test "${ac_cv_header_minix_config_h+set}" = set; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3516 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3517 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3519 # Is the header compilable?
3520 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3521 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3522 cat >conftest.$ac_ext <<_ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3528 $ac_includes_default
3529 #include <minix/config.h>
3531 rm -f conftest.$ac_objext
3532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3533 (eval $ac_compile) 2>&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); } &&
3537 { ac_try='test -s conftest.$ac_objext'
3538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); }; }; then
3543 ac_header_compiler=yes
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3548 ac_header_compiler=no
3550 rm -f conftest.$ac_objext conftest.$ac_ext
3551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3552 echo "${ECHO_T}$ac_header_compiler" >&6
3554 # Is the header present?
3555 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3556 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3557 cat >conftest.$ac_ext <<_ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h. */
3563 #include <minix/config.h>
3565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3568 grep -v '^ *+' conftest.er1 >conftest.err
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } >/dev/null; then
3573 if test -s conftest.err; then
3574 ac_cpp_err=$ac_c_preproc_warn_flag
3581 if test -z "$ac_cpp_err"; then
3582 ac_header_preproc=yes
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3587 ac_header_preproc=no
3589 rm -f conftest.err conftest.$ac_ext
3590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3591 echo "${ECHO_T}$ac_header_preproc" >&6
3593 # So? What about this header?
3594 case $ac_header_compiler:$ac_header_preproc in
3596 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3597 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3598 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3599 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3600 ac_header_preproc=yes
3603 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3604 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3605 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3606 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3607 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3608 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3609 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3610 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3611 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3612 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3613 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3614 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3617 ## ------------------------------------ ##
3618 ## Report this to bug-coreutils@gnu.org ##
3619 ## ------------------------------------ ##
3622 sed "s/^/$as_me: WARNING: /" >&2
3625 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3626 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3627 if test "${ac_cv_header_minix_config_h+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3630 ac_cv_header_minix_config_h=$ac_header_preproc
3632 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3633 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3636 if test $ac_cv_header_minix_config_h = yes; then
3643 if test "$MINIX" = yes; then
3645 cat >>confdefs.h <<\_ACEOF
3646 #define _POSIX_SOURCE 1
3650 cat >>confdefs.h <<\_ACEOF
3651 #define _POSIX_1_SOURCE 2
3655 cat >>confdefs.h <<\_ACEOF
3663 for ac_func in uname
3665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3666 echo "$as_me:$LINENO: checking for $ac_func" >&5
3667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3668 if eval "test \"\${$as_ac_var+set}\" = set"; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 cat >conftest.$ac_ext <<_ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h. */
3677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3679 #define $ac_func innocuous_$ac_func
3681 /* System header to define __stub macros and hopefully few prototypes,
3682 which can conflict with char $ac_func (); below.
3683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3684 <limits.h> exists even on freestanding compilers. */
3687 # include <limits.h>
3689 # include <assert.h>
3694 /* Override any gcc2 internal prototype to avoid an error. */
3699 /* We use char because int might match the return type of a gcc2
3700 builtin and then its argument prototype would still apply. */
3702 /* The GNU C library defines this for functions which it implements
3703 to always fail with ENOSYS. Some functions are actually named
3704 something starting with __ and the normal name is an alias. */
3705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3708 char (*f) () = $ac_func;
3717 return f != $ac_func;
3722 rm -f conftest.$ac_objext conftest$ac_exeext
3723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3724 (eval $ac_link) 2>&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } &&
3728 { ac_try='test -s conftest$ac_exeext'
3729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; }; then
3734 eval "$as_ac_var=yes"
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3739 eval "$as_ac_var=no"
3741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3745 if test `eval echo '${'$as_ac_var'}'` = yes; then
3746 cat >>confdefs.h <<_ACEOF
3747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3749 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uname\$(EXEEXT)"
3755 for ac_func in chroot
3757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3758 echo "$as_me:$LINENO: checking for $ac_func" >&5
3759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3760 if eval "test \"\${$as_ac_var+set}\" = set"; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 cat >conftest.$ac_ext <<_ACEOF
3766 cat confdefs.h >>conftest.$ac_ext
3767 cat >>conftest.$ac_ext <<_ACEOF
3768 /* end confdefs.h. */
3769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3771 #define $ac_func innocuous_$ac_func
3773 /* System header to define __stub macros and hopefully few prototypes,
3774 which can conflict with char $ac_func (); below.
3775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3776 <limits.h> exists even on freestanding compilers. */
3779 # include <limits.h>
3781 # include <assert.h>
3786 /* Override any gcc2 internal prototype to avoid an error. */
3791 /* We use char because int might match the return type of a gcc2
3792 builtin and then its argument prototype would still apply. */
3794 /* The GNU C library defines this for functions which it implements
3795 to always fail with ENOSYS. Some functions are actually named
3796 something starting with __ and the normal name is an alias. */
3797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3800 char (*f) () = $ac_func;
3809 return f != $ac_func;
3814 rm -f conftest.$ac_objext conftest$ac_exeext
3815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3816 (eval $ac_link) 2>&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } &&
3820 { ac_try='test -s conftest$ac_exeext'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; }; then
3826 eval "$as_ac_var=yes"
3828 echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3831 eval "$as_ac_var=no"
3833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3837 if test `eval echo '${'$as_ac_var'}'` = yes; then
3838 cat >>confdefs.h <<_ACEOF
3839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3841 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS chroot\$(EXEEXT)"
3847 for ac_func in gethostid
3849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3850 echo "$as_me:$LINENO: checking for $ac_func" >&5
3851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3852 if eval "test \"\${$as_ac_var+set}\" = set"; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 cat >conftest.$ac_ext <<_ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h. */
3861 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3863 #define $ac_func innocuous_$ac_func
3865 /* System header to define __stub macros and hopefully few prototypes,
3866 which can conflict with char $ac_func (); below.
3867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3868 <limits.h> exists even on freestanding compilers. */
3871 # include <limits.h>
3873 # include <assert.h>
3878 /* Override any gcc2 internal prototype to avoid an error. */
3883 /* We use char because int might match the return type of a gcc2
3884 builtin and then its argument prototype would still apply. */
3886 /* The GNU C library defines this for functions which it implements
3887 to always fail with ENOSYS. Some functions are actually named
3888 something starting with __ and the normal name is an alias. */
3889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3892 char (*f) () = $ac_func;
3901 return f != $ac_func;
3906 rm -f conftest.$ac_objext conftest$ac_exeext
3907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3908 (eval $ac_link) 2>&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } &&
3912 { ac_try='test -s conftest$ac_exeext'
3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; }; then
3918 eval "$as_ac_var=yes"
3920 echo "$as_me: failed program was:" >&5
3921 sed 's/^/| /' conftest.$ac_ext >&5
3923 eval "$as_ac_var=no"
3925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3928 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3929 if test `eval echo '${'$as_ac_var'}'` = yes; then
3930 cat >>confdefs.h <<_ACEOF
3931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3933 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS hostid\$(EXEEXT)"
3940 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3941 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3942 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 ac_check_lib_save_LIBS=$LIBS
3946 LIBS="-lcposix $LIBS"
3947 cat >conftest.$ac_ext <<_ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3954 /* Override any gcc2 internal prototype to avoid an error. */
3958 /* We use char because int might match the return type of a gcc2
3959 builtin and then its argument prototype would still apply. */
3969 rm -f conftest.$ac_objext conftest$ac_exeext
3970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3971 (eval $ac_link) 2>&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } &&
3975 { ac_try='test -s conftest$ac_exeext'
3976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }; }; then
3981 ac_cv_lib_cposix_strerror=yes
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3986 ac_cv_lib_cposix_strerror=no
3988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3989 LIBS=$ac_check_lib_save_LIBS
3991 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3992 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3993 if test $ac_cv_lib_cposix_strerror = yes; then
3994 LIBS="$LIBS -lcposix"
3999 # Check whether --enable-largefile or --disable-largefile was given.
4000 if test "${enable_largefile+set}" = set; then
4001 enableval="$enable_largefile"
4004 if test "$enable_largefile" != no; then
4006 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4007 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4008 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 ac_cv_sys_largefile_CC=no
4012 if test "$GCC" != yes; then
4015 # IRIX 6.2 and later do not support large files by default,
4016 # so use the C compiler's -n32 option if that helps.
4017 cat >conftest.$ac_ext <<_ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4023 #include <sys/types.h>
4024 /* Check that off_t can represent 2**63 - 1 correctly.
4025 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4026 since some C++ compilers masquerading as C compilers
4027 incorrectly reject 9223372036854775807. */
4028 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4029 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4030 && LARGE_OFF_T % 2147483647 == 1)
4040 rm -f conftest.$ac_objext
4041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042 (eval $ac_compile) 2>&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); } &&
4046 { ac_try='test -s conftest.$ac_objext'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; }; then
4054 echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4058 rm -f conftest.$ac_objext
4060 rm -f conftest.$ac_objext
4061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4062 (eval $ac_compile) 2>&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } &&
4066 { ac_try='test -s conftest.$ac_objext'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; }; then
4072 ac_cv_sys_largefile_CC=' -n32'; break
4074 echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4078 rm -f conftest.$ac_objext
4082 rm -f conftest.$ac_ext
4085 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4086 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4087 if test "$ac_cv_sys_largefile_CC" != no; then
4088 CC=$CC$ac_cv_sys_largefile_CC
4091 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4092 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4093 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 ac_cv_sys_file_offset_bits=no
4098 cat >conftest.$ac_ext <<_ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4104 #include <sys/types.h>
4105 /* Check that off_t can represent 2**63 - 1 correctly.
4106 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4107 since some C++ compilers masquerading as C compilers
4108 incorrectly reject 9223372036854775807. */
4109 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4110 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4111 && LARGE_OFF_T % 2147483647 == 1)
4121 rm -f conftest.$ac_objext
4122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4123 (eval $ac_compile) 2>&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } &&
4127 { ac_try='test -s conftest.$ac_objext'
4128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; }; then
4135 echo "$as_me: failed program was:" >&5
4136 sed 's/^/| /' conftest.$ac_ext >&5
4139 rm -f conftest.$ac_objext conftest.$ac_ext
4140 cat >conftest.$ac_ext <<_ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4146 #define _FILE_OFFSET_BITS 64
4147 #include <sys/types.h>
4148 /* Check that off_t can represent 2**63 - 1 correctly.
4149 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4150 since some C++ compilers masquerading as C compilers
4151 incorrectly reject 9223372036854775807. */
4152 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4153 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4154 && LARGE_OFF_T % 2147483647 == 1)
4164 rm -f conftest.$ac_objext
4165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4166 (eval $ac_compile) 2>&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } &&
4170 { ac_try='test -s conftest.$ac_objext'
4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; }; then
4176 ac_cv_sys_file_offset_bits=64; break
4178 echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4182 rm -f conftest.$ac_objext conftest.$ac_ext
4186 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4187 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4188 if test "$ac_cv_sys_file_offset_bits" != no; then
4190 cat >>confdefs.h <<_ACEOF
4191 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4196 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4197 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4198 if test "${ac_cv_sys_large_files+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 ac_cv_sys_large_files=no
4203 cat >conftest.$ac_ext <<_ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h. */
4209 #include <sys/types.h>
4210 /* Check that off_t can represent 2**63 - 1 correctly.
4211 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4212 since some C++ compilers masquerading as C compilers
4213 incorrectly reject 9223372036854775807. */
4214 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4215 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4216 && LARGE_OFF_T % 2147483647 == 1)
4226 rm -f conftest.$ac_objext
4227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4228 (eval $ac_compile) 2>&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } &&
4232 { ac_try='test -s conftest.$ac_objext'
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; }; then
4240 echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4244 rm -f conftest.$ac_objext conftest.$ac_ext
4245 cat >conftest.$ac_ext <<_ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4251 #define _LARGE_FILES 1
4252 #include <sys/types.h>
4253 /* Check that off_t can represent 2**63 - 1 correctly.
4254 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4255 since some C++ compilers masquerading as C compilers
4256 incorrectly reject 9223372036854775807. */
4257 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4258 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4259 && LARGE_OFF_T % 2147483647 == 1)
4269 rm -f conftest.$ac_objext
4270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4271 (eval $ac_compile) 2>&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } &&
4275 { ac_try='test -s conftest.$ac_objext'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4281 ac_cv_sys_large_files=1; break
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4287 rm -f conftest.$ac_objext conftest.$ac_ext
4291 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4292 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4293 if test "$ac_cv_sys_large_files" != no; then
4295 cat >>confdefs.h <<_ACEOF
4296 #define _LARGE_FILES $ac_cv_sys_large_files
4306 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4307 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
4308 if test "${am_cv_prog_cc_stdc+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 am_cv_prog_cc_stdc=no
4313 # Don't try gcc -ansi; that turns off useful extensions and
4314 # breaks some systems' header files.
4315 # AIX -qlanglvl=ansi
4316 # Ultrix and OSF/1 -std1
4317 # HP-UX 10.20 and later -Ae
4318 # HP-UX older versions -Aa -D_HPUX_SOURCE
4319 # SVR4 -Xc -D__EXTENSIONS__
4320 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4322 CC="$ac_save_CC $ac_arg"
4324 cat >conftest.$ac_ext <<_ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4332 #include <sys/types.h>
4333 #include <sys/stat.h>
4334 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4335 struct buf { int x; };
4336 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4337 static char *e (p, i)
4343 static char *f (char * (*g) (char **, int), char **p, ...)
4348 s = g (p, va_arg (v,int));
4352 int test (int i, double x);
4353 struct s1 {int (*f) (int a);};
4354 struct s2 {int (*f) (double a);};
4355 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4363 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4369 rm -f conftest.$ac_objext
4370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4371 (eval $ac_compile) 2>&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } &&
4375 { ac_try='test -s conftest.$ac_objext'
4376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; }; then
4381 am_cv_prog_cc_stdc="$ac_arg"; break
4383 echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.$ac_ext >&5
4387 rm -f conftest.$ac_objext conftest.$ac_ext
4393 if test -z "$am_cv_prog_cc_stdc"; then
4394 echo "$as_me:$LINENO: result: none needed" >&5
4395 echo "${ECHO_T}none needed" >&6
4397 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4398 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
4400 case "x$am_cv_prog_cc_stdc" in
4402 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4407 echo "$as_me:$LINENO: checking for function prototypes" >&5
4408 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4409 if test "$am_cv_prog_cc_stdc" != no; then
4410 echo "$as_me:$LINENO: result: yes" >&5
4411 echo "${ECHO_T}yes" >&6
4413 cat >>confdefs.h <<\_ACEOF
4414 #define PROTOTYPES 1
4419 echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6
4421 U=_ ANSI2KNR=./ansi2knr
4423 # Ensure some checks needed by ansi2knr itself.
4424 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4425 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4426 if test "${ac_cv_header_stdc+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 cat >conftest.$ac_ext <<_ACEOF
4432 cat confdefs.h >>conftest.$ac_ext
4433 cat >>conftest.$ac_ext <<_ACEOF
4434 /* end confdefs.h. */
4448 rm -f conftest.$ac_objext
4449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4450 (eval $ac_compile) 2>&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } &&
4454 { ac_try='test -s conftest.$ac_objext'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; }; then
4460 ac_cv_header_stdc=yes
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4465 ac_cv_header_stdc=no
4467 rm -f conftest.$ac_objext conftest.$ac_ext
4469 if test $ac_cv_header_stdc = yes; then
4470 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4471 cat >conftest.$ac_ext <<_ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h. */
4480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4481 $EGREP "memchr" >/dev/null 2>&1; then
4484 ac_cv_header_stdc=no
4490 if test $ac_cv_header_stdc = yes; then
4491 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4492 cat >conftest.$ac_ext <<_ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h. */
4501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4502 $EGREP "free" >/dev/null 2>&1; then
4505 ac_cv_header_stdc=no
4511 if test $ac_cv_header_stdc = yes; then
4512 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4513 if test "$cross_compiling" = yes; then
4516 cat >conftest.$ac_ext <<_ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h. */
4523 #if ((' ' & 0x0FF) == 0x020)
4524 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4525 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4527 # define ISLOWER(c) \
4528 (('a' <= (c) && (c) <= 'i') \
4529 || ('j' <= (c) && (c) <= 'r') \
4530 || ('s' <= (c) && (c) <= 'z'))
4531 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4534 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4539 for (i = 0; i < 256; i++)
4540 if (XOR (islower (i), ISLOWER (i))
4541 || toupper (i) != TOUPPER (i))
4546 rm -f conftest$ac_exeext
4547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4548 (eval $ac_link) 2>&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; }; then
4559 echo "$as_me: program exited with status $ac_status" >&5
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4564 ac_cv_header_stdc=no
4566 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4570 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4571 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4572 if test $ac_cv_header_stdc = yes; then
4574 cat >>confdefs.h <<\_ACEOF
4575 #define STDC_HEADERS 1
4581 for ac_header in string.h
4583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4585 echo "$as_me:$LINENO: checking for $ac_header" >&5
4586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4593 # Is the header compilable?
4594 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4596 cat >conftest.$ac_ext <<_ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4602 $ac_includes_default
4603 #include <$ac_header>
4605 rm -f conftest.$ac_objext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4607 (eval $ac_compile) 2>&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
4611 { ac_try='test -s conftest.$ac_objext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 ac_header_compiler=yes
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4622 ac_header_compiler=no
4624 rm -f conftest.$ac_objext conftest.$ac_ext
4625 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4626 echo "${ECHO_T}$ac_header_compiler" >&6
4628 # Is the header present?
4629 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4631 cat >conftest.$ac_ext <<_ACEOF
4634 cat confdefs.h >>conftest.$ac_ext
4635 cat >>conftest.$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4637 #include <$ac_header>
4639 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4642 grep -v '^ *+' conftest.er1 >conftest.err
4644 cat conftest.err >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); } >/dev/null; then
4647 if test -s conftest.err; then
4648 ac_cpp_err=$ac_c_preproc_warn_flag
4655 if test -z "$ac_cpp_err"; then
4656 ac_header_preproc=yes
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4661 ac_header_preproc=no
4663 rm -f conftest.err conftest.$ac_ext
4664 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4665 echo "${ECHO_T}$ac_header_preproc" >&6
4667 # So? What about this header?
4668 case $ac_header_compiler:$ac_header_preproc in
4670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4671 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4673 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4674 ac_header_preproc=yes
4677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4680 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4681 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4682 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4683 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4684 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4687 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4688 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4691 ## ------------------------------------ ##
4692 ## Report this to bug-coreutils@gnu.org ##
4693 ## ------------------------------------ ##
4696 sed "s/^/$as_me: WARNING: /" >&2
4699 echo "$as_me:$LINENO: checking for $ac_header" >&5
4700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 eval "$as_ac_Header=\$ac_header_preproc"
4706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4711 cat >>confdefs.h <<_ACEOF
4712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4720 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4721 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4722 if test "${ac_cv_c_bigendian+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 # See if sys/param.h defines the BYTE_ORDER macro.
4726 cat >conftest.$ac_ext <<_ACEOF
4729 cat confdefs.h >>conftest.$ac_ext
4730 cat >>conftest.$ac_ext <<_ACEOF
4731 /* end confdefs.h. */
4732 #include <sys/types.h>
4733 #include <sys/param.h>
4738 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4746 rm -f conftest.$ac_objext
4747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4748 (eval $ac_compile) 2>&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); } &&
4752 { ac_try='test -s conftest.$ac_objext'
4753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; }; then
4758 # It does; now see whether it defined to BIG_ENDIAN or not.
4759 cat >conftest.$ac_ext <<_ACEOF
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h. */
4765 #include <sys/types.h>
4766 #include <sys/param.h>
4771 #if BYTE_ORDER != BIG_ENDIAN
4779 rm -f conftest.$ac_objext
4780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4781 (eval $ac_compile) 2>&5
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); } &&
4785 { ac_try='test -s conftest.$ac_objext'
4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; }; then
4791 ac_cv_c_bigendian=yes
4793 echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4796 ac_cv_c_bigendian=no
4798 rm -f conftest.$ac_objext conftest.$ac_ext
4800 echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4803 # It does not; compile a test program.
4804 if test "$cross_compiling" = yes; then
4805 # try to guess the endianness by grepping values into an object file
4806 ac_cv_c_bigendian=unknown
4807 cat >conftest.$ac_ext <<_ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4813 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4814 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4815 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4816 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4817 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4818 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4822 _ascii (); _ebcdic ();
4827 rm -f conftest.$ac_objext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829 (eval $ac_compile) 2>&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); } &&
4833 { ac_try='test -s conftest.$ac_objext'
4834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; }; then
4839 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4840 ac_cv_c_bigendian=yes
4842 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4843 if test "$ac_cv_c_bigendian" = unknown; then
4844 ac_cv_c_bigendian=no
4846 # finding both strings is unlikely to happen, but who knows?
4847 ac_cv_c_bigendian=unknown
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4855 rm -f conftest.$ac_objext conftest.$ac_ext
4857 cat >conftest.$ac_ext <<_ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h. */
4866 /* Are we little or big endian? From Harbison&Steele. */
4870 char c[sizeof (long)];
4873 exit (u.c[sizeof (long) - 1] == 1);
4876 rm -f conftest$ac_exeext
4877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4878 (eval $ac_link) 2>&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4887 ac_cv_c_bigendian=no
4889 echo "$as_me: program exited with status $ac_status" >&5
4890 echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4894 ac_cv_c_bigendian=yes
4896 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4899 rm -f conftest.$ac_objext conftest.$ac_ext
4901 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4902 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4903 case $ac_cv_c_bigendian in
4906 cat >>confdefs.h <<\_ACEOF
4907 #define WORDS_BIGENDIAN 1
4913 { { echo "$as_me:$LINENO: error: unknown endianness
4914 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4915 echo "$as_me: error: unknown endianness
4916 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4917 { (exit 1); exit 1; }; } ;;
4920 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4921 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4922 if test "${ac_cv_c_const+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 cat >conftest.$ac_ext <<_ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4935 /* FIXME: Include the comments suggested by Paul. */
4937 /* Ultrix mips cc rejects this. */
4938 typedef int charset[2];
4940 /* SunOS 4.1.1 cc rejects this. */
4941 char const *const *ccp;
4943 /* NEC SVR4.0.2 mips cc rejects this. */
4944 struct point {int x, y;};
4945 static struct point const zero = {0,0};
4946 /* AIX XL C 1.02.0.0 rejects this.
4947 It does not let you subtract one const X* pointer from another in
4948 an arm of an if-expression whose if-part is not a constant
4950 const char *g = "string";
4951 ccp = &g + (g ? g-g : 0);
4952 /* HPUX 7.0 cc rejects these. */
4955 ccp = (char const *const *) p;
4956 { /* SCO 3.2v4 cc rejects this. */
4958 char const *s = 0 ? (char *) 0 : (char const *) 0;
4962 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4964 const int *foo = &x[0];
4967 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4968 typedef const int *iptr;
4972 { /* AIX XL C 1.02.0.0 rejects this saying
4973 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4974 struct s { int j; const int *ap[3]; };
4975 struct s *b; b->j = 5;
4977 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4986 rm -f conftest.$ac_objext
4987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4988 (eval $ac_compile) 2>&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } &&
4992 { ac_try='test -s conftest.$ac_objext'
4993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; }; then
5000 echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5005 rm -f conftest.$ac_objext conftest.$ac_ext
5007 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5008 echo "${ECHO_T}$ac_cv_c_const" >&6
5009 if test $ac_cv_c_const = no; then
5011 cat >>confdefs.h <<\_ACEOF
5017 echo "$as_me:$LINENO: checking for working volatile" >&5
5018 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
5019 if test "${ac_cv_c_volatile+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 cat >conftest.$ac_ext <<_ACEOF
5025 cat confdefs.h >>conftest.$ac_ext
5026 cat >>conftest.$ac_ext <<_ACEOF
5027 /* end confdefs.h. */
5039 rm -f conftest.$ac_objext
5040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5041 (eval $ac_compile) 2>&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } &&
5045 { ac_try='test -s conftest.$ac_objext'
5046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); }; }; then
5051 ac_cv_c_volatile=yes
5053 echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.$ac_ext >&5
5058 rm -f conftest.$ac_objext conftest.$ac_ext
5060 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5061 echo "${ECHO_T}$ac_cv_c_volatile" >&6
5062 if test $ac_cv_c_volatile = no; then
5064 cat >>confdefs.h <<\_ACEOF
5070 echo "$as_me:$LINENO: checking for inline" >&5
5071 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5072 if test "${ac_cv_c_inline+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 for ac_kw in inline __inline__ __inline; do
5077 cat >conftest.$ac_ext <<_ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5085 static $ac_kw foo_t static_foo () {return 0; }
5086 $ac_kw foo_t foo () {return 0; }
5090 rm -f conftest.$ac_objext
5091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5092 (eval $ac_compile) 2>&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } &&
5096 { ac_try='test -s conftest.$ac_objext'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; }; then
5102 ac_cv_c_inline=$ac_kw; break
5104 echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5108 rm -f conftest.$ac_objext conftest.$ac_ext
5112 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5113 echo "${ECHO_T}$ac_cv_c_inline" >&6
5116 case $ac_cv_c_inline in
5119 case $ac_cv_c_inline in
5121 *) ac_val=$ac_cv_c_inline;;
5123 cat >>confdefs.h <<_ACEOF
5125 #define inline $ac_val
5131 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
5132 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
5133 if test "${ac_cv_c_long_double+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 cat >conftest.$ac_ext <<_ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h. */
5143 long double foo = 0.0;
5147 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
5148 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
5149 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
5156 rm -f conftest.$ac_objext
5157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5158 (eval $ac_compile) 2>&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); } &&
5162 { ac_try='test -s conftest.$ac_objext'
5163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }; }; then
5168 ac_cv_c_long_double=yes
5170 echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5173 ac_cv_c_long_double=no
5175 rm -f conftest.$ac_objext conftest.$ac_ext
5177 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
5178 echo "${ECHO_T}$ac_cv_c_long_double" >&6
5179 if test $ac_cv_c_long_double = yes; then
5181 cat >>confdefs.h <<\_ACEOF
5182 #define HAVE_LONG_DOUBLE 1
5265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5267 echo "$as_me:$LINENO: checking for $ac_header" >&5
5268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5275 # Is the header compilable?
5276 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5277 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5278 cat >conftest.$ac_ext <<_ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h. */
5284 $ac_includes_default
5285 #include <$ac_header>
5287 rm -f conftest.$ac_objext
5288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5289 (eval $ac_compile) 2>&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } &&
5293 { ac_try='test -s conftest.$ac_objext'
5294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; }; then
5299 ac_header_compiler=yes
5301 echo "$as_me: failed program was:" >&5
5302 sed 's/^/| /' conftest.$ac_ext >&5
5304 ac_header_compiler=no
5306 rm -f conftest.$ac_objext conftest.$ac_ext
5307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5308 echo "${ECHO_T}$ac_header_compiler" >&6
5310 # Is the header present?
5311 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5313 cat >conftest.$ac_ext <<_ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5319 #include <$ac_header>
5321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5324 grep -v '^ *+' conftest.er1 >conftest.err
5326 cat conftest.err >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } >/dev/null; then
5329 if test -s conftest.err; then
5330 ac_cpp_err=$ac_c_preproc_warn_flag
5337 if test -z "$ac_cpp_err"; then
5338 ac_header_preproc=yes
5340 echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5343 ac_header_preproc=no
5345 rm -f conftest.err conftest.$ac_ext
5346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5347 echo "${ECHO_T}$ac_header_preproc" >&6
5349 # So? What about this header?
5350 case $ac_header_compiler:$ac_header_preproc in
5352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5356 ac_header_preproc=yes
5359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5362 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5366 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5373 ## ------------------------------------ ##
5374 ## Report this to bug-coreutils@gnu.org ##
5375 ## ------------------------------------ ##
5378 sed "s/^/$as_me: WARNING: /" >&2
5381 echo "$as_me:$LINENO: checking for $ac_header" >&5
5382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 eval "$as_ac_Header=\$ac_header_preproc"
5388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5393 cat >>confdefs.h <<_ACEOF
5394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5408 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5409 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5410 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5411 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 cat >conftest.$ac_ext <<_ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h. */
5421 #include <sys/types.h>
5433 rm -f conftest.$ac_objext
5434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5435 (eval $ac_compile) 2>&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } &&
5439 { ac_try='test -s conftest.$ac_objext'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5445 eval "$as_ac_Header=yes"
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5450 eval "$as_ac_Header=no"
5452 rm -f conftest.$ac_objext conftest.$ac_ext
5454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5457 cat >>confdefs.h <<_ACEOF
5458 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5461 ac_header_dirent=$ac_hdr; break
5465 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5466 if test $ac_header_dirent = dirent.h; then
5468 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5469 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5470 if test "${ac_cv_search_opendir+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 ac_func_search_save_LIBS=$LIBS
5475 ac_cv_search_opendir=no
5476 cat >conftest.$ac_ext <<_ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5483 /* Override any gcc2 internal prototype to avoid an error. */
5487 /* We use char because int might match the return type of a gcc2
5488 builtin and then its argument prototype would still apply. */
5498 rm -f conftest.$ac_objext conftest$ac_exeext
5499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5500 (eval $ac_link) 2>&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } &&
5504 { ac_try='test -s conftest$ac_exeext'
5505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }; }; then
5510 ac_cv_search_opendir='none required'
5512 echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5517 if test "$ac_cv_search_opendir" = no; then
5518 for ac_lib in dir; do
5519 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5520 cat >conftest.$ac_ext <<_ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h. */
5527 /* Override any gcc2 internal prototype to avoid an error. */
5531 /* We use char because int might match the return type of a gcc2
5532 builtin and then its argument prototype would still apply. */
5542 rm -f conftest.$ac_objext conftest$ac_exeext
5543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5544 (eval $ac_link) 2>&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } &&
5548 { ac_try='test -s conftest$ac_exeext'
5549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); }; }; then
5554 ac_cv_search_opendir="-l$ac_lib"; break
5556 echo "$as_me: failed program was:" >&5
5557 sed 's/^/| /' conftest.$ac_ext >&5
5560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5563 LIBS=$ac_func_search_save_LIBS
5566 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5567 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5569 if test "$ac_cv_search_opendir" = no; then :
5572 if test "$ac_cv_search_opendir" = 'none required'; then :
5575 LIBS="$ac_cv_search_opendir $LIBS"
5582 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5583 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5584 if test "${ac_cv_search_opendir+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 ac_func_search_save_LIBS=$LIBS
5589 ac_cv_search_opendir=no
5590 cat >conftest.$ac_ext <<_ACEOF
5593 cat confdefs.h >>conftest.$ac_ext
5594 cat >>conftest.$ac_ext <<_ACEOF
5595 /* end confdefs.h. */
5597 /* Override any gcc2 internal prototype to avoid an error. */
5601 /* We use char because int might match the return type of a gcc2
5602 builtin and then its argument prototype would still apply. */
5612 rm -f conftest.$ac_objext conftest$ac_exeext
5613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5614 (eval $ac_link) 2>&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } &&
5618 { ac_try='test -s conftest$ac_exeext'
5619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); }; }; then
5624 ac_cv_search_opendir='none required'
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5631 if test "$ac_cv_search_opendir" = no; then
5633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5634 cat >conftest.$ac_ext <<_ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5641 /* Override any gcc2 internal prototype to avoid an error. */
5645 /* We use char because int might match the return type of a gcc2
5646 builtin and then its argument prototype would still apply. */
5656 rm -f conftest.$ac_objext conftest$ac_exeext
5657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5658 (eval $ac_link) 2>&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } &&
5662 { ac_try='test -s conftest$ac_exeext'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; }; then
5668 ac_cv_search_opendir="-l$ac_lib"; break
5670 echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5677 LIBS=$ac_func_search_save_LIBS
5680 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5681 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5683 if test "$ac_cv_search_opendir" = no; then :
5686 if test "$ac_cv_search_opendir" = 'none required'; then :
5689 LIBS="$ac_cv_search_opendir $LIBS"
5696 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
5697 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
5698 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 cat >conftest.$ac_ext <<_ACEOF
5704 cat confdefs.h >>conftest.$ac_ext
5705 cat >>conftest.$ac_ext <<_ACEOF
5706 /* end confdefs.h. */
5707 $ac_includes_default
5711 static struct stat ac_aggr;
5712 if (ac_aggr.st_blocks)
5718 rm -f conftest.$ac_objext
5719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5720 (eval $ac_compile) 2>&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } &&
5724 { ac_try='test -s conftest.$ac_objext'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; }; then
5730 ac_cv_member_struct_stat_st_blocks=yes
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5735 cat >conftest.$ac_ext <<_ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h. */
5741 $ac_includes_default
5745 static struct stat ac_aggr;
5746 if (sizeof ac_aggr.st_blocks)
5752 rm -f conftest.$ac_objext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5754 (eval $ac_compile) 2>&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } &&
5758 { ac_try='test -s conftest.$ac_objext'
5759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; }; then
5764 ac_cv_member_struct_stat_st_blocks=yes
5766 echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5769 ac_cv_member_struct_stat_st_blocks=no
5771 rm -f conftest.$ac_objext conftest.$ac_ext
5773 rm -f conftest.$ac_objext conftest.$ac_ext
5775 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
5776 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
5777 if test $ac_cv_member_struct_stat_st_blocks = yes; then
5779 cat >>confdefs.h <<_ACEOF
5780 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5784 cat >>confdefs.h <<\_ACEOF
5785 #define HAVE_ST_BLOCKS 1
5789 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
5793 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5794 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5795 if test "${ac_cv_header_stat_broken+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5798 cat >conftest.$ac_ext <<_ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5804 #include <sys/types.h>
5805 #include <sys/stat.h>
5807 #if defined(S_ISBLK) && defined(S_IFDIR)
5808 # if S_ISBLK (S_IFDIR)
5813 #if defined(S_ISBLK) && defined(S_IFCHR)
5814 # if S_ISBLK (S_IFCHR)
5819 #if defined(S_ISLNK) && defined(S_IFREG)
5820 # if S_ISLNK (S_IFREG)
5825 #if defined(S_ISSOCK) && defined(S_IFREG)
5826 # if S_ISSOCK (S_IFREG)
5832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5833 $EGREP "You lose" >/dev/null 2>&1; then
5834 ac_cv_header_stat_broken=yes
5836 ac_cv_header_stat_broken=no
5841 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5842 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5843 if test $ac_cv_header_stat_broken = yes; then
5845 cat >>confdefs.h <<\_ACEOF
5846 #define STAT_MACROS_BROKEN 1
5851 echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
5852 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
5853 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 ac_save_CPPFLAGS="$CPPFLAGS"
5857 ac_cv_struct_st_mtim_nsec=no
5858 # tv_nsec -- the usual case
5859 # _tv_nsec -- Solaris 2.6, if
5860 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
5861 # && !defined __EXTENSIONS__)
5862 # st__tim.tv_nsec -- UnixWare 2.1.2
5863 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
5864 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
5866 cat >conftest.$ac_ext <<_ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h. */
5872 #include <sys/types.h>
5873 #include <sys/stat.h>
5877 struct stat s; s.st_mtim.ST_MTIM_NSEC;
5882 rm -f conftest.$ac_objext
5883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5884 (eval $ac_compile) 2>&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } &&
5888 { ac_try='test -s conftest.$ac_objext'
5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; }; then
5894 ac_cv_struct_st_mtim_nsec=$ac_val; break
5896 echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.$ac_ext >&5
5900 rm -f conftest.$ac_objext conftest.$ac_ext
5902 CPPFLAGS="$ac_save_CPPFLAGS"
5904 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
5905 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
5907 if test $ac_cv_struct_st_mtim_nsec != no; then
5909 cat >>confdefs.h <<_ACEOF
5910 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
5916 echo "$as_me:$LINENO: checking for st_dm_mode in struct stat" >&5
5917 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" >&6
5918 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 cat >conftest.$ac_ext <<_ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h. */
5928 #include <sys/types.h>
5929 #include <sys/stat.h>
5933 struct stat s; s.st_dm_mode;
5938 rm -f conftest.$ac_objext
5939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5940 (eval $ac_compile) 2>&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 ac_cv_struct_st_dm_mode=yes
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5955 ac_cv_struct_st_dm_mode=no
5957 rm -f conftest.$ac_objext conftest.$ac_ext
5959 echo "$as_me:$LINENO: result: $ac_cv_struct_st_dm_mode" >&5
5960 echo "${ECHO_T}$ac_cv_struct_st_dm_mode" >&6
5962 if test $ac_cv_struct_st_dm_mode = yes; then
5964 cat >>confdefs.h <<\_ACEOF
5965 #define HAVE_ST_DM_MODE 1
5971 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5972 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5973 if test "${ac_cv_type_uid_t+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 cat >conftest.$ac_ext <<_ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5982 #include <sys/types.h>
5985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5986 $EGREP "uid_t" >/dev/null 2>&1; then
5987 ac_cv_type_uid_t=yes
5994 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5995 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5996 if test $ac_cv_type_uid_t = no; then
5998 cat >>confdefs.h <<\_ACEOF
6003 cat >>confdefs.h <<\_ACEOF
6009 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6010 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6011 if test "${ac_cv_type_getgroups+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 if test "$cross_compiling" = yes; then
6015 ac_cv_type_getgroups=cross
6017 cat >conftest.$ac_ext <<_ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h. */
6023 /* Thanks to Mike Rendell for this test. */
6024 #include <sys/types.h>
6027 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6034 union { gid_t gval; long lval; } val;
6037 for (i = 0; i < NGID; i++)
6038 gidset[i] = val.gval;
6039 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6041 /* Exit non-zero if getgroups seems to require an array of ints. This
6042 happens when gid_t is short but getgroups modifies an array of ints. */
6043 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6046 rm -f conftest$ac_exeext
6047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6048 (eval $ac_link) 2>&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; }; then
6057 ac_cv_type_getgroups=gid_t
6059 echo "$as_me: program exited with status $ac_status" >&5
6060 echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6064 ac_cv_type_getgroups=int
6066 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6068 if test $ac_cv_type_getgroups = cross; then
6069 cat >conftest.$ac_ext <<_ACEOF
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h. */
6078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6079 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6080 ac_cv_type_getgroups=gid_t
6082 ac_cv_type_getgroups=int
6088 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
6089 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
6091 cat >>confdefs.h <<_ACEOF
6092 #define GETGROUPS_T $ac_cv_type_getgroups
6096 echo "$as_me:$LINENO: checking for mode_t" >&5
6097 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
6098 if test "${ac_cv_type_mode_t+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 cat >conftest.$ac_ext <<_ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6107 $ac_includes_default
6113 if (sizeof (mode_t))
6119 rm -f conftest.$ac_objext
6120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6121 (eval $ac_compile) 2>&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } &&
6125 { ac_try='test -s conftest.$ac_objext'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; }; then
6131 ac_cv_type_mode_t=yes
6133 echo "$as_me: failed program was:" >&5
6134 sed 's/^/| /' conftest.$ac_ext >&5
6136 ac_cv_type_mode_t=no
6138 rm -f conftest.$ac_objext conftest.$ac_ext
6140 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6141 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
6142 if test $ac_cv_type_mode_t = yes; then
6146 cat >>confdefs.h <<_ACEOF
6152 echo "$as_me:$LINENO: checking for off_t" >&5
6153 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6154 if test "${ac_cv_type_off_t+set}" = set; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 cat >conftest.$ac_ext <<_ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6163 $ac_includes_default
6175 rm -f conftest.$ac_objext
6176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6177 (eval $ac_compile) 2>&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } &&
6181 { ac_try='test -s conftest.$ac_objext'
6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; }; then
6187 ac_cv_type_off_t=yes
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6194 rm -f conftest.$ac_objext conftest.$ac_ext
6196 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6197 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6198 if test $ac_cv_type_off_t = yes; then
6202 cat >>confdefs.h <<_ACEOF
6208 echo "$as_me:$LINENO: checking for pid_t" >&5
6209 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6210 if test "${ac_cv_type_pid_t+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6213 cat >conftest.$ac_ext <<_ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h. */
6219 $ac_includes_default
6231 rm -f conftest.$ac_objext
6232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6233 (eval $ac_compile) 2>&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } &&
6237 { ac_try='test -s conftest.$ac_objext'
6238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; }; then
6243 ac_cv_type_pid_t=yes
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6250 rm -f conftest.$ac_objext conftest.$ac_ext
6252 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6253 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6254 if test $ac_cv_type_pid_t = yes; then
6258 cat >>confdefs.h <<_ACEOF
6264 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6265 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6266 if test "${ac_cv_type_signal+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 cat >conftest.$ac_ext <<_ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6275 #include <sys/types.h>
6281 extern "C" void (*signal (int, void (*)(int)))(int);
6283 void (*signal ()) ();
6294 rm -f conftest.$ac_objext
6295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6296 (eval $ac_compile) 2>&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); } &&
6300 { ac_try='test -s conftest.$ac_objext'
6301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; }; then
6306 ac_cv_type_signal=void
6308 echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6311 ac_cv_type_signal=int
6313 rm -f conftest.$ac_objext conftest.$ac_ext
6315 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6316 echo "${ECHO_T}$ac_cv_type_signal" >&6
6318 cat >>confdefs.h <<_ACEOF
6319 #define RETSIGTYPE $ac_cv_type_signal
6323 echo "$as_me:$LINENO: checking for size_t" >&5
6324 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6325 if test "${ac_cv_type_size_t+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 cat >conftest.$ac_ext <<_ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6334 $ac_includes_default
6340 if (sizeof (size_t))
6346 rm -f conftest.$ac_objext
6347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6348 (eval $ac_compile) 2>&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } &&
6352 { ac_try='test -s conftest.$ac_objext'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; }; then
6358 ac_cv_type_size_t=yes
6360 echo "$as_me: failed program was:" >&5
6361 sed 's/^/| /' conftest.$ac_ext >&5
6363 ac_cv_type_size_t=no
6365 rm -f conftest.$ac_objext conftest.$ac_ext
6367 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6368 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6369 if test $ac_cv_type_size_t = yes; then
6373 cat >>confdefs.h <<_ACEOF
6374 #define size_t unsigned
6380 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6381 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6382 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 cat >conftest.$ac_ext <<_ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h. */
6392 #include <sys/types.h>
6393 #include <inttypes.h>
6397 uintmax_t i = (uintmax_t) -1;
6402 rm -f conftest.$ac_objext
6403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6404 (eval $ac_compile) 2>&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } &&
6408 { ac_try='test -s conftest.$ac_objext'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
6414 jm_ac_cv_header_inttypes_h=yes
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6419 jm_ac_cv_header_inttypes_h=no
6421 rm -f conftest.$ac_objext conftest.$ac_ext
6423 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
6424 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
6425 if test $jm_ac_cv_header_inttypes_h = yes; then
6427 cat >>confdefs.h <<_ACEOF
6428 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6434 echo "$as_me:$LINENO: checking for stdint.h" >&5
6435 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
6436 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6440 cat >conftest.$ac_ext <<_ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6446 #include <sys/types.h>
6451 uintmax_t i = (uintmax_t) -1;
6456 rm -f conftest.$ac_objext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6458 (eval $ac_compile) 2>&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); } &&
6462 { ac_try='test -s conftest.$ac_objext'
6463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); }; }; then
6468 jm_ac_cv_header_stdint_h=yes
6470 echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.$ac_ext >&5
6473 jm_ac_cv_header_stdint_h=no
6475 rm -f conftest.$ac_objext conftest.$ac_ext
6477 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
6478 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
6479 if test $jm_ac_cv_header_stdint_h = yes; then
6481 cat >>confdefs.h <<_ACEOF
6482 #define HAVE_STDINT_H_WITH_UINTMAX 1
6488 echo "$as_me:$LINENO: checking for unsigned long long" >&5
6489 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
6490 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 cat >conftest.$ac_ext <<_ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6500 unsigned long long ull = 1ULL; int i = 63;
6504 unsigned long long ullmax = (unsigned long long) -1;
6505 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6510 rm -f conftest.$ac_objext conftest$ac_exeext
6511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6512 (eval $ac_link) 2>&5
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); } &&
6516 { ac_try='test -s conftest$ac_exeext'
6517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); }; }; then
6522 ac_cv_type_unsigned_long_long=yes
6524 echo "$as_me: failed program was:" >&5
6525 sed 's/^/| /' conftest.$ac_ext >&5
6527 ac_cv_type_unsigned_long_long=no
6529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6531 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6532 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
6533 if test $ac_cv_type_unsigned_long_long = yes; then
6535 cat >>confdefs.h <<\_ACEOF
6536 #define HAVE_UNSIGNED_LONG_LONG 1
6544 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6546 test $ac_cv_type_unsigned_long_long = yes \
6547 && ac_type='unsigned long long' \
6548 || ac_type='unsigned long'
6550 cat >>confdefs.h <<_ACEOF
6551 #define uintmax_t $ac_type
6556 cat >>confdefs.h <<\_ACEOF
6557 #define HAVE_UINTMAX_T 1
6562 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6563 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
6564 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 cat >conftest.$ac_ext <<_ACEOF
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h. */
6573 #include <sys/types.h>
6577 return makedev(0, 0);
6582 rm -f conftest.$ac_objext conftest$ac_exeext
6583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6584 (eval $ac_link) 2>&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try='test -s conftest$ac_exeext'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; }; then
6594 ac_cv_header_sys_types_h_makedev=yes
6596 echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6599 ac_cv_header_sys_types_h_makedev=no
6601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6604 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6605 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
6607 if test $ac_cv_header_sys_types_h_makedev = no; then
6608 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6609 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6610 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
6611 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6615 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
6617 # Is the header compilable?
6618 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6619 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
6620 cat >conftest.$ac_ext <<_ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h. */
6626 $ac_includes_default
6627 #include <sys/mkdev.h>
6629 rm -f conftest.$ac_objext
6630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6631 (eval $ac_compile) 2>&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } &&
6635 { ac_try='test -s conftest.$ac_objext'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; }; then
6641 ac_header_compiler=yes
6643 echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6646 ac_header_compiler=no
6648 rm -f conftest.$ac_objext conftest.$ac_ext
6649 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6650 echo "${ECHO_T}$ac_header_compiler" >&6
6652 # Is the header present?
6653 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6654 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
6655 cat >conftest.$ac_ext <<_ACEOF
6658 cat confdefs.h >>conftest.$ac_ext
6659 cat >>conftest.$ac_ext <<_ACEOF
6660 /* end confdefs.h. */
6661 #include <sys/mkdev.h>
6663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6666 grep -v '^ *+' conftest.er1 >conftest.err
6668 cat conftest.err >&5
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); } >/dev/null; then
6671 if test -s conftest.err; then
6672 ac_cpp_err=$ac_c_preproc_warn_flag
6679 if test -z "$ac_cpp_err"; then
6680 ac_header_preproc=yes
6682 echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6685 ac_header_preproc=no
6687 rm -f conftest.err conftest.$ac_ext
6688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6689 echo "${ECHO_T}$ac_header_preproc" >&6
6691 # So? What about this header?
6692 case $ac_header_compiler:$ac_header_preproc in
6694 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6695 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6696 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6697 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6698 ac_header_preproc=yes
6701 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6702 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6703 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6704 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6705 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6706 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6707 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6708 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6709 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6710 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6711 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6712 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6715 ## ------------------------------------ ##
6716 ## Report this to bug-coreutils@gnu.org ##
6717 ## ------------------------------------ ##
6720 sed "s/^/$as_me: WARNING: /" >&2
6723 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6724 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
6725 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6730 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6731 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
6734 if test $ac_cv_header_sys_mkdev_h = yes; then
6736 cat >>confdefs.h <<\_ACEOF
6737 #define MAJOR_IN_MKDEV 1
6744 if test $ac_cv_header_sys_mkdev_h = no; then
6745 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6746 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6747 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
6748 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
6751 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6752 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
6754 # Is the header compilable?
6755 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6756 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
6757 cat >conftest.$ac_ext <<_ACEOF
6760 cat confdefs.h >>conftest.$ac_ext
6761 cat >>conftest.$ac_ext <<_ACEOF
6762 /* end confdefs.h. */
6763 $ac_includes_default
6764 #include <sys/sysmacros.h>
6766 rm -f conftest.$ac_objext
6767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6768 (eval $ac_compile) 2>&5
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); } &&
6772 { ac_try='test -s conftest.$ac_objext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 ac_header_compiler=yes
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6783 ac_header_compiler=no
6785 rm -f conftest.$ac_objext conftest.$ac_ext
6786 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6787 echo "${ECHO_T}$ac_header_compiler" >&6
6789 # Is the header present?
6790 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6791 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
6792 cat >conftest.$ac_ext <<_ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798 #include <sys/sysmacros.h>
6800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6803 grep -v '^ *+' conftest.er1 >conftest.err
6805 cat conftest.err >&5
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); } >/dev/null; then
6808 if test -s conftest.err; then
6809 ac_cpp_err=$ac_c_preproc_warn_flag
6816 if test -z "$ac_cpp_err"; then
6817 ac_header_preproc=yes
6819 echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6822 ac_header_preproc=no
6824 rm -f conftest.err conftest.$ac_ext
6825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6826 echo "${ECHO_T}$ac_header_preproc" >&6
6828 # So? What about this header?
6829 case $ac_header_compiler:$ac_header_preproc in
6831 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6832 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6833 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6834 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6835 ac_header_preproc=yes
6838 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6839 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6840 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6841 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6842 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6843 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6844 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6845 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6846 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6847 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6848 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6849 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6852 ## ------------------------------------ ##
6853 ## Report this to bug-coreutils@gnu.org ##
6854 ## ------------------------------------ ##
6857 sed "s/^/$as_me: WARNING: /" >&2
6860 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6861 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
6862 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6865 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6867 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6868 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
6871 if test $ac_cv_header_sys_sysmacros_h = yes; then
6873 cat >>confdefs.h <<\_ACEOF
6874 #define MAJOR_IN_SYSMACROS 1
6884 echo "$as_me:$LINENO: checking host operating system" >&5
6885 echo $ECHO_N "checking host operating system... $ECHO_C" >&6
6886 if test "${utils_cv_host_operating_system+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 # These operating system names do not use the default heuristic below.
6892 # They are in reverse order, so that more-specific prefixes come first.
6893 winnt*) os='Windows NT';;
6895 sysv*) os='Unix System V';;
6896 superux*) os='SUPER-UX';;
6897 sunos*) os='SunOS';;
6899 sco*) os='SCO Unix';;
6900 riscos*) os='RISC OS';;
6901 riscix*) os='RISCiX';;
6905 plan9*) os='Plan 9';;
6908 openbsd*) os='OpenBSD';;
6909 nsk*) os='NonStop Kernel';;
6910 nonstopux*) os='NonStop-UX';;
6911 netbsd*-gnu*) os='GNU/NetBSD';;
6912 netbsd*) os='NetBSD';;
6913 msdosdjgpp*) os='DJGPP';;
6914 mpeix*) os='MPE/iX';;
6916 mingw*) os='MinGW';;
6917 lynxos*) os='LynxOS';;
6918 linux*) os='GNU/Linux';;
6922 freebsd*-gnu*) os='GNU/FreeBSD';;
6923 freebsd*) os='FreeBSD';;
6925 bsdi*) os='BSD/OS';;
6929 atheos*) os='AtheOS';;
6930 amigaos*) os='Amiga OS';;
6933 # The default heuristic takes the initial alphabetic string
6934 # from $host_os, but capitalizes its first letter.
6937 expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]'
6939 expr "X$host_os" : 'X.\([A-Za-z]*\)'
6943 # If $host_os does not start with an alphabetic string, use it unchanged.
6947 utils_cv_host_operating_system=$os
6949 echo "$as_me:$LINENO: result: $utils_cv_host_operating_system" >&5
6950 echo "${ECHO_T}$utils_cv_host_operating_system" >&6
6952 cat >>confdefs.h <<_ACEOF
6953 #define HOST_OPERATING_SYSTEM "$utils_cv_host_operating_system"
6958 echo "$as_me:$LINENO: checking whether to enable assertions" >&5
6959 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6
6960 # Check whether --enable-assert or --disable-assert was given.
6961 if test "${enable_assert+set}" = set; then
6962 enableval="$enable_assert"
6963 echo "$as_me:$LINENO: result: no" >&5
6964 echo "${ECHO_T}no" >&6
6966 cat >>confdefs.h <<\_ACEOF
6971 echo "$as_me:$LINENO: result: yes" >&5
6972 echo "${ECHO_T}yes" >&6
6981 for ac_header in $gl_header_list
6983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6985 echo "$as_me:$LINENO: checking for $ac_header" >&5
6986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6993 # Is the header compilable?
6994 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6996 cat >conftest.$ac_ext <<_ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7002 $ac_includes_default
7003 #include <$ac_header>
7005 rm -f conftest.$ac_objext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7007 (eval $ac_compile) 2>&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } &&
7011 { ac_try='test -s conftest.$ac_objext'
7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; }; then
7017 ac_header_compiler=yes
7019 echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7022 ac_header_compiler=no
7024 rm -f conftest.$ac_objext conftest.$ac_ext
7025 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7026 echo "${ECHO_T}$ac_header_compiler" >&6
7028 # Is the header present?
7029 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7031 cat >conftest.$ac_ext <<_ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7037 #include <$ac_header>
7039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7042 grep -v '^ *+' conftest.er1 >conftest.err
7044 cat conftest.err >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } >/dev/null; then
7047 if test -s conftest.err; then
7048 ac_cpp_err=$ac_c_preproc_warn_flag
7055 if test -z "$ac_cpp_err"; then
7056 ac_header_preproc=yes
7058 echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.$ac_ext >&5
7061 ac_header_preproc=no
7063 rm -f conftest.err conftest.$ac_ext
7064 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7065 echo "${ECHO_T}$ac_header_preproc" >&6
7067 # So? What about this header?
7068 case $ac_header_compiler:$ac_header_preproc in
7070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7074 ac_header_preproc=yes
7077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7080 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7084 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7091 ## ------------------------------------ ##
7092 ## Report this to bug-coreutils@gnu.org ##
7093 ## ------------------------------------ ##
7096 sed "s/^/$as_me: WARNING: /" >&2
7099 echo "$as_me:$LINENO: checking for $ac_header" >&5
7100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 eval "$as_ac_Header=\$ac_header_preproc"
7106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7111 cat >>confdefs.h <<_ACEOF
7112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7130 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7131 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7132 if test "${ac_cv_header_time+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 cat >conftest.$ac_ext <<_ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h. */
7141 #include <sys/types.h>
7142 #include <sys/time.h>
7148 if ((struct tm *) 0)
7154 rm -f conftest.$ac_objext
7155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7156 (eval $ac_compile) 2>&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); } &&
7160 { ac_try='test -s conftest.$ac_objext'
7161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }; }; then
7166 ac_cv_header_time=yes
7168 echo "$as_me: failed program was:" >&5
7169 sed 's/^/| /' conftest.$ac_ext >&5
7171 ac_cv_header_time=no
7173 rm -f conftest.$ac_objext conftest.$ac_ext
7175 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7176 echo "${ECHO_T}$ac_cv_header_time" >&6
7177 if test $ac_cv_header_time = yes; then
7179 cat >>confdefs.h <<\_ACEOF
7180 #define TIME_WITH_SYS_TIME 1
7197 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7198 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
7199 if test "${fu_cv_sys_struct_utimbuf+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7203 cat >conftest.$ac_ext <<_ACEOF
7206 cat confdefs.h >>conftest.$ac_ext
7207 cat >>conftest.$ac_ext <<_ACEOF
7208 /* end confdefs.h. */
7210 #ifdef TIME_WITH_SYS_TIME
7211 # include <sys/time.h>
7214 # ifdef HAVE_SYS_TIME_H
7215 # include <sys/time.h>
7227 static struct utimbuf x; x.actime = x.modtime;
7232 rm -f conftest.$ac_objext
7233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7234 (eval $ac_compile) 2>&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); } &&
7238 { ac_try='test -s conftest.$ac_objext'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; }; then
7244 fu_cv_sys_struct_utimbuf=yes
7246 echo "$as_me: failed program was:" >&5
7247 sed 's/^/| /' conftest.$ac_ext >&5
7249 fu_cv_sys_struct_utimbuf=no
7251 rm -f conftest.$ac_objext conftest.$ac_ext
7254 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_utimbuf" >&5
7255 echo "${ECHO_T}$fu_cv_sys_struct_utimbuf" >&6
7257 if test $fu_cv_sys_struct_utimbuf = yes; then
7259 cat >>confdefs.h <<\_ACEOF
7260 #define HAVE_STRUCT_UTIMBUF 1
7265 echo "$as_me:$LINENO: checking for d_type member in directory struct" >&5
7266 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" >&6
7267 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 cat >conftest.$ac_ext <<_ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7278 #include <sys/types.h>
7279 #ifdef HAVE_DIRENT_H
7280 # include <dirent.h>
7281 #else /* not HAVE_DIRENT_H */
7282 # define dirent direct
7283 # ifdef HAVE_SYS_NDIR_H
7284 # include <sys/ndir.h>
7285 # endif /* HAVE_SYS_NDIR_H */
7286 # ifdef HAVE_SYS_DIR_H
7287 # include <sys/dir.h>
7288 # endif /* HAVE_SYS_DIR_H */
7291 # endif /* HAVE_NDIR_H */
7292 #endif /* HAVE_DIRENT_H */
7297 struct dirent dp; dp.d_type = 0;
7302 rm -f conftest.$ac_objext conftest$ac_exeext
7303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7304 (eval $ac_link) 2>&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); } &&
7308 { ac_try='test -s conftest$ac_exeext'
7309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); }; }; then
7314 jm_cv_struct_dirent_d_type=yes
7316 echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.$ac_ext >&5
7319 jm_cv_struct_dirent_d_type=no
7321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7325 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_type" >&5
7326 echo "${ECHO_T}$jm_cv_struct_dirent_d_type" >&6
7327 if test $jm_cv_struct_dirent_d_type = yes; then
7329 cat >>confdefs.h <<\_ACEOF
7330 #define HAVE_STRUCT_DIRENT_D_TYPE 1
7336 echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
7337 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6
7338 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 cat >conftest.$ac_ext <<_ACEOF
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h. */
7349 #include <sys/types.h>
7350 #ifdef HAVE_DIRENT_H
7351 # include <dirent.h>
7352 #else /* not HAVE_DIRENT_H */
7353 # define dirent direct
7354 # ifdef HAVE_SYS_NDIR_H
7355 # include <sys/ndir.h>
7356 # endif /* HAVE_SYS_NDIR_H */
7357 # ifdef HAVE_SYS_DIR_H
7358 # include <sys/dir.h>
7359 # endif /* HAVE_SYS_DIR_H */
7362 # endif /* HAVE_NDIR_H */
7363 #endif /* HAVE_DIRENT_H */
7368 struct dirent dp; dp.d_ino = 0;
7373 rm -f conftest.$ac_objext conftest$ac_exeext
7374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7375 (eval $ac_link) 2>&5
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); } &&
7379 { ac_try='test -s conftest$ac_exeext'
7380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); }; }; then
7385 jm_cv_struct_dirent_d_ino=yes
7387 echo "$as_me: failed program was:" >&5
7388 sed 's/^/| /' conftest.$ac_ext >&5
7390 jm_cv_struct_dirent_d_ino=no
7392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7396 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
7397 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6
7398 if test $jm_cv_struct_dirent_d_ino = yes; then
7400 cat >>confdefs.h <<\_ACEOF
7401 #define D_INO_IN_DIRENT 1
7419 for ac_header in grp.h memory.h pwd.h string.h strings.h stdlib.h \
7420 unistd.h sys/time.h utmp.h utmpx.h
7422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7424 echo "$as_me:$LINENO: checking for $ac_header" >&5
7425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7432 # Is the header compilable?
7433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7435 cat >conftest.$ac_ext <<_ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h. */
7441 $ac_includes_default
7442 #include <$ac_header>
7444 rm -f conftest.$ac_objext
7445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7446 (eval $ac_compile) 2>&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } &&
7450 { ac_try='test -s conftest.$ac_objext'
7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); }; }; then
7456 ac_header_compiler=yes
7458 echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7461 ac_header_compiler=no
7463 rm -f conftest.$ac_objext conftest.$ac_ext
7464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7465 echo "${ECHO_T}$ac_header_compiler" >&6
7467 # Is the header present?
7468 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7470 cat >conftest.$ac_ext <<_ACEOF
7473 cat confdefs.h >>conftest.$ac_ext
7474 cat >>conftest.$ac_ext <<_ACEOF
7475 /* end confdefs.h. */
7476 #include <$ac_header>
7478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7481 grep -v '^ *+' conftest.er1 >conftest.err
7483 cat conftest.err >&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); } >/dev/null; then
7486 if test -s conftest.err; then
7487 ac_cpp_err=$ac_c_preproc_warn_flag
7494 if test -z "$ac_cpp_err"; then
7495 ac_header_preproc=yes
7497 echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.$ac_ext >&5
7500 ac_header_preproc=no
7502 rm -f conftest.err conftest.$ac_ext
7503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7504 echo "${ECHO_T}$ac_header_preproc" >&6
7506 # So? What about this header?
7507 case $ac_header_compiler:$ac_header_preproc in
7509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7513 ac_header_preproc=yes
7516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7530 ## ------------------------------------ ##
7531 ## Report this to bug-coreutils@gnu.org ##
7532 ## ------------------------------------ ##
7535 sed "s/^/$as_me: WARNING: /" >&2
7538 echo "$as_me:$LINENO: checking for $ac_header" >&5
7539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7543 eval "$as_ac_Header=\$ac_header_preproc"
7545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7550 cat >>confdefs.h <<_ACEOF
7551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7565 # if !STDC_HEADERS && HAVE_MEMORY_H
7566 # include <memory.h>
7568 # include <string.h>
7571 # include <strings.h>
7575 # include <stdlib.h>
7578 # include <unistd.h>
7581 #include <sys/types.h>
7582 #if TIME_WITH_SYS_TIME
7583 # include <sys/time.h>
7586 # if HAVE_SYS_TIME_H
7587 # include <sys/time.h>
7606 echo "$as_me:$LINENO: checking whether free is declared" >&5
7607 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
7608 if test "${ac_cv_have_decl_free+set}" = set; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7611 cat >conftest.$ac_ext <<_ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7623 char *p = (char *) free;
7630 rm -f conftest.$ac_objext
7631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7632 (eval $ac_compile) 2>&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } &&
7636 { ac_try='test -s conftest.$ac_objext'
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; }; then
7642 ac_cv_have_decl_free=yes
7644 echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7647 ac_cv_have_decl_free=no
7649 rm -f conftest.$ac_objext conftest.$ac_ext
7651 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
7652 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
7653 if test $ac_cv_have_decl_free = yes; then
7655 cat >>confdefs.h <<_ACEOF
7656 #define HAVE_DECL_FREE 1
7661 cat >>confdefs.h <<_ACEOF
7662 #define HAVE_DECL_FREE 0
7667 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
7668 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
7669 if test "${ac_cv_have_decl_getenv+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7672 cat >conftest.$ac_ext <<_ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7684 char *p = (char *) getenv;
7691 rm -f conftest.$ac_objext
7692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7693 (eval $ac_compile) 2>&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); } &&
7697 { ac_try='test -s conftest.$ac_objext'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; }; then
7703 ac_cv_have_decl_getenv=yes
7705 echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7708 ac_cv_have_decl_getenv=no
7710 rm -f conftest.$ac_objext conftest.$ac_ext
7712 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
7713 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
7714 if test $ac_cv_have_decl_getenv = yes; then
7716 cat >>confdefs.h <<_ACEOF
7717 #define HAVE_DECL_GETENV 1
7722 cat >>confdefs.h <<_ACEOF
7723 #define HAVE_DECL_GETENV 0
7728 echo "$as_me:$LINENO: checking whether geteuid is declared" >&5
7729 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" >&6
7730 if test "${ac_cv_have_decl_geteuid+set}" = set; then
7731 echo $ECHO_N "(cached) $ECHO_C" >&6
7733 cat >conftest.$ac_ext <<_ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7745 char *p = (char *) geteuid;
7752 rm -f conftest.$ac_objext
7753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7754 (eval $ac_compile) 2>&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); } &&
7758 { ac_try='test -s conftest.$ac_objext'
7759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; }; then
7764 ac_cv_have_decl_geteuid=yes
7766 echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7769 ac_cv_have_decl_geteuid=no
7771 rm -f conftest.$ac_objext conftest.$ac_ext
7773 echo "$as_me:$LINENO: result: $ac_cv_have_decl_geteuid" >&5
7774 echo "${ECHO_T}$ac_cv_have_decl_geteuid" >&6
7775 if test $ac_cv_have_decl_geteuid = yes; then
7777 cat >>confdefs.h <<_ACEOF
7778 #define HAVE_DECL_GETEUID 1
7783 cat >>confdefs.h <<_ACEOF
7784 #define HAVE_DECL_GETEUID 0
7789 echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
7790 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6
7791 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7794 cat >conftest.$ac_ext <<_ACEOF
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h. */
7806 char *p = (char *) getgrgid;
7813 rm -f conftest.$ac_objext
7814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7815 (eval $ac_compile) 2>&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } &&
7819 { ac_try='test -s conftest.$ac_objext'
7820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }; }; then
7825 ac_cv_have_decl_getgrgid=yes
7827 echo "$as_me: failed program was:" >&5
7828 sed 's/^/| /' conftest.$ac_ext >&5
7830 ac_cv_have_decl_getgrgid=no
7832 rm -f conftest.$ac_objext conftest.$ac_ext
7834 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
7835 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6
7836 if test $ac_cv_have_decl_getgrgid = yes; then
7838 cat >>confdefs.h <<_ACEOF
7839 #define HAVE_DECL_GETGRGID 1
7844 cat >>confdefs.h <<_ACEOF
7845 #define HAVE_DECL_GETGRGID 0
7850 echo "$as_me:$LINENO: checking whether getlogin is declared" >&5
7851 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" >&6
7852 if test "${ac_cv_have_decl_getlogin+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 cat >conftest.$ac_ext <<_ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h. */
7867 char *p = (char *) getlogin;
7874 rm -f conftest.$ac_objext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7876 (eval $ac_compile) 2>&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } &&
7880 { ac_try='test -s conftest.$ac_objext'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; }; then
7886 ac_cv_have_decl_getlogin=yes
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7891 ac_cv_have_decl_getlogin=no
7893 rm -f conftest.$ac_objext conftest.$ac_ext
7895 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getlogin" >&5
7896 echo "${ECHO_T}$ac_cv_have_decl_getlogin" >&6
7897 if test $ac_cv_have_decl_getlogin = yes; then
7899 cat >>confdefs.h <<_ACEOF
7900 #define HAVE_DECL_GETLOGIN 1
7905 cat >>confdefs.h <<_ACEOF
7906 #define HAVE_DECL_GETLOGIN 0
7911 echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
7912 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6
7913 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7916 cat >conftest.$ac_ext <<_ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7928 char *p = (char *) getpwuid;
7935 rm -f conftest.$ac_objext
7936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7937 (eval $ac_compile) 2>&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); } &&
7941 { ac_try='test -s conftest.$ac_objext'
7942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); }; }; then
7947 ac_cv_have_decl_getpwuid=yes
7949 echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.$ac_ext >&5
7952 ac_cv_have_decl_getpwuid=no
7954 rm -f conftest.$ac_objext conftest.$ac_ext
7956 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
7957 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6
7958 if test $ac_cv_have_decl_getpwuid = yes; then
7960 cat >>confdefs.h <<_ACEOF
7961 #define HAVE_DECL_GETPWUID 1
7966 cat >>confdefs.h <<_ACEOF
7967 #define HAVE_DECL_GETPWUID 0
7972 echo "$as_me:$LINENO: checking whether getuid is declared" >&5
7973 echo $ECHO_N "checking whether getuid is declared... $ECHO_C" >&6
7974 if test "${ac_cv_have_decl_getuid+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7977 cat >conftest.$ac_ext <<_ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h. */
7989 char *p = (char *) getuid;
7996 rm -f conftest.$ac_objext
7997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7998 (eval $ac_compile) 2>&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); } &&
8002 { ac_try='test -s conftest.$ac_objext'
8003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
8008 ac_cv_have_decl_getuid=yes
8010 echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8013 ac_cv_have_decl_getuid=no
8015 rm -f conftest.$ac_objext conftest.$ac_ext
8017 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getuid" >&5
8018 echo "${ECHO_T}$ac_cv_have_decl_getuid" >&6
8019 if test $ac_cv_have_decl_getuid = yes; then
8021 cat >>confdefs.h <<_ACEOF
8022 #define HAVE_DECL_GETUID 1
8027 cat >>confdefs.h <<_ACEOF
8028 #define HAVE_DECL_GETUID 0
8033 echo "$as_me:$LINENO: checking whether getutent is declared" >&5
8034 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6
8035 if test "${ac_cv_have_decl_getutent+set}" = set; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6
8038 cat >conftest.$ac_ext <<_ACEOF
8041 cat confdefs.h >>conftest.$ac_ext
8042 cat >>conftest.$ac_ext <<_ACEOF
8043 /* end confdefs.h. */
8050 char *p = (char *) getutent;
8057 rm -f conftest.$ac_objext
8058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8059 (eval $ac_compile) 2>&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } &&
8063 { ac_try='test -s conftest.$ac_objext'
8064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; }; then
8069 ac_cv_have_decl_getutent=yes
8071 echo "$as_me: failed program was:" >&5
8072 sed 's/^/| /' conftest.$ac_ext >&5
8074 ac_cv_have_decl_getutent=no
8076 rm -f conftest.$ac_objext conftest.$ac_ext
8078 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
8079 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6
8080 if test $ac_cv_have_decl_getutent = yes; then
8082 cat >>confdefs.h <<_ACEOF
8083 #define HAVE_DECL_GETUTENT 1
8088 cat >>confdefs.h <<_ACEOF
8089 #define HAVE_DECL_GETUTENT 0
8094 echo "$as_me:$LINENO: checking whether lseek is declared" >&5
8095 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" >&6
8096 if test "${ac_cv_have_decl_lseek+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 cat >conftest.$ac_ext <<_ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h. */
8111 char *p = (char *) lseek;
8118 rm -f conftest.$ac_objext
8119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8120 (eval $ac_compile) 2>&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); } &&
8124 { ac_try='test -s conftest.$ac_objext'
8125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; }; then
8130 ac_cv_have_decl_lseek=yes
8132 echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8135 ac_cv_have_decl_lseek=no
8137 rm -f conftest.$ac_objext conftest.$ac_ext
8139 echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek" >&5
8140 echo "${ECHO_T}$ac_cv_have_decl_lseek" >&6
8141 if test $ac_cv_have_decl_lseek = yes; then
8143 cat >>confdefs.h <<_ACEOF
8144 #define HAVE_DECL_LSEEK 1
8149 cat >>confdefs.h <<_ACEOF
8150 #define HAVE_DECL_LSEEK 0
8155 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
8156 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
8157 if test "${ac_cv_have_decl_malloc+set}" = set; then
8158 echo $ECHO_N "(cached) $ECHO_C" >&6
8160 cat >conftest.$ac_ext <<_ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8172 char *p = (char *) malloc;
8179 rm -f conftest.$ac_objext
8180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8181 (eval $ac_compile) 2>&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } &&
8185 { ac_try='test -s conftest.$ac_objext'
8186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; }; then
8191 ac_cv_have_decl_malloc=yes
8193 echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8196 ac_cv_have_decl_malloc=no
8198 rm -f conftest.$ac_objext conftest.$ac_ext
8200 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
8201 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
8202 if test $ac_cv_have_decl_malloc = yes; then
8204 cat >>confdefs.h <<_ACEOF
8205 #define HAVE_DECL_MALLOC 1
8210 cat >>confdefs.h <<_ACEOF
8211 #define HAVE_DECL_MALLOC 0
8216 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
8217 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
8218 if test "${ac_cv_have_decl_memchr+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8221 cat >conftest.$ac_ext <<_ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8233 char *p = (char *) memchr;
8240 rm -f conftest.$ac_objext
8241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8242 (eval $ac_compile) 2>&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); } &&
8246 { ac_try='test -s conftest.$ac_objext'
8247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); }; }; then
8252 ac_cv_have_decl_memchr=yes
8254 echo "$as_me: failed program was:" >&5
8255 sed 's/^/| /' conftest.$ac_ext >&5
8257 ac_cv_have_decl_memchr=no
8259 rm -f conftest.$ac_objext conftest.$ac_ext
8261 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
8262 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
8263 if test $ac_cv_have_decl_memchr = yes; then
8265 cat >>confdefs.h <<_ACEOF
8266 #define HAVE_DECL_MEMCHR 1
8271 cat >>confdefs.h <<_ACEOF
8272 #define HAVE_DECL_MEMCHR 0
8277 echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
8278 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
8279 if test "${ac_cv_have_decl_memrchr+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8282 cat >conftest.$ac_ext <<_ACEOF
8285 cat confdefs.h >>conftest.$ac_ext
8286 cat >>conftest.$ac_ext <<_ACEOF
8287 /* end confdefs.h. */
8294 char *p = (char *) memrchr;
8301 rm -f conftest.$ac_objext
8302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8303 (eval $ac_compile) 2>&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } &&
8307 { ac_try='test -s conftest.$ac_objext'
8308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; }; then
8313 ac_cv_have_decl_memrchr=yes
8315 echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8318 ac_cv_have_decl_memrchr=no
8320 rm -f conftest.$ac_objext conftest.$ac_ext
8322 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
8323 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
8324 if test $ac_cv_have_decl_memrchr = yes; then
8326 cat >>confdefs.h <<_ACEOF
8327 #define HAVE_DECL_MEMRCHR 1
8332 cat >>confdefs.h <<_ACEOF
8333 #define HAVE_DECL_MEMRCHR 0
8338 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
8339 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
8340 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 cat >conftest.$ac_ext <<_ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8355 char *p = (char *) nanosleep;
8362 rm -f conftest.$ac_objext
8363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8364 (eval $ac_compile) 2>&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } &&
8368 { ac_try='test -s conftest.$ac_objext'
8369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); }; }; then
8374 ac_cv_have_decl_nanosleep=yes
8376 echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.$ac_ext >&5
8379 ac_cv_have_decl_nanosleep=no
8381 rm -f conftest.$ac_objext conftest.$ac_ext
8383 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
8384 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
8385 if test $ac_cv_have_decl_nanosleep = yes; then
8387 cat >>confdefs.h <<_ACEOF
8388 #define HAVE_DECL_NANOSLEEP 1
8393 cat >>confdefs.h <<_ACEOF
8394 #define HAVE_DECL_NANOSLEEP 0
8399 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
8400 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
8401 if test "${ac_cv_have_decl_realloc+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 cat >conftest.$ac_ext <<_ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8416 char *p = (char *) realloc;
8423 rm -f conftest.$ac_objext
8424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8425 (eval $ac_compile) 2>&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); } &&
8429 { ac_try='test -s conftest.$ac_objext'
8430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); }; }; then
8435 ac_cv_have_decl_realloc=yes
8437 echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8440 ac_cv_have_decl_realloc=no
8442 rm -f conftest.$ac_objext conftest.$ac_ext
8444 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
8445 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
8446 if test $ac_cv_have_decl_realloc = yes; then
8448 cat >>confdefs.h <<_ACEOF
8449 #define HAVE_DECL_REALLOC 1
8454 cat >>confdefs.h <<_ACEOF
8455 #define HAVE_DECL_REALLOC 0
8460 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
8461 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
8462 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
8465 cat >conftest.$ac_ext <<_ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h. */
8477 char *p = (char *) stpcpy;
8484 rm -f conftest.$ac_objext
8485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8486 (eval $ac_compile) 2>&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } &&
8490 { ac_try='test -s conftest.$ac_objext'
8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; }; then
8496 ac_cv_have_decl_stpcpy=yes
8498 echo "$as_me: failed program was:" >&5
8499 sed 's/^/| /' conftest.$ac_ext >&5
8501 ac_cv_have_decl_stpcpy=no
8503 rm -f conftest.$ac_objext conftest.$ac_ext
8505 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
8506 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
8507 if test $ac_cv_have_decl_stpcpy = yes; then
8509 cat >>confdefs.h <<_ACEOF
8510 #define HAVE_DECL_STPCPY 1
8515 cat >>confdefs.h <<_ACEOF
8516 #define HAVE_DECL_STPCPY 0
8521 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
8522 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
8523 if test "${ac_cv_have_decl_strndup+set}" = set; then
8524 echo $ECHO_N "(cached) $ECHO_C" >&6
8526 cat >conftest.$ac_ext <<_ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8538 char *p = (char *) strndup;
8545 rm -f conftest.$ac_objext
8546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8547 (eval $ac_compile) 2>&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); } &&
8551 { ac_try='test -s conftest.$ac_objext'
8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; }; then
8557 ac_cv_have_decl_strndup=yes
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8562 ac_cv_have_decl_strndup=no
8564 rm -f conftest.$ac_objext conftest.$ac_ext
8566 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
8567 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
8568 if test $ac_cv_have_decl_strndup = yes; then
8570 cat >>confdefs.h <<_ACEOF
8571 #define HAVE_DECL_STRNDUP 1
8576 cat >>confdefs.h <<_ACEOF
8577 #define HAVE_DECL_STRNDUP 0
8582 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
8583 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
8584 if test "${ac_cv_have_decl_strnlen+set}" = set; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8587 cat >conftest.$ac_ext <<_ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h. */
8599 char *p = (char *) strnlen;
8606 rm -f conftest.$ac_objext
8607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8608 (eval $ac_compile) 2>&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } &&
8612 { ac_try='test -s conftest.$ac_objext'
8613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; }; then
8618 ac_cv_have_decl_strnlen=yes
8620 echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8623 ac_cv_have_decl_strnlen=no
8625 rm -f conftest.$ac_objext conftest.$ac_ext
8627 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
8628 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
8629 if test $ac_cv_have_decl_strnlen = yes; then
8631 cat >>confdefs.h <<_ACEOF
8632 #define HAVE_DECL_STRNLEN 1
8637 cat >>confdefs.h <<_ACEOF
8638 #define HAVE_DECL_STRNLEN 0
8643 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
8644 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
8645 if test "${ac_cv_have_decl_strstr+set}" = set; then
8646 echo $ECHO_N "(cached) $ECHO_C" >&6
8648 cat >conftest.$ac_ext <<_ACEOF
8651 cat confdefs.h >>conftest.$ac_ext
8652 cat >>conftest.$ac_ext <<_ACEOF
8653 /* end confdefs.h. */
8660 char *p = (char *) strstr;
8667 rm -f conftest.$ac_objext
8668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8669 (eval $ac_compile) 2>&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); } &&
8673 { ac_try='test -s conftest.$ac_objext'
8674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); }; }; then
8679 ac_cv_have_decl_strstr=yes
8681 echo "$as_me: failed program was:" >&5
8682 sed 's/^/| /' conftest.$ac_ext >&5
8684 ac_cv_have_decl_strstr=no
8686 rm -f conftest.$ac_objext conftest.$ac_ext
8688 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
8689 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
8690 if test $ac_cv_have_decl_strstr = yes; then
8692 cat >>confdefs.h <<_ACEOF
8693 #define HAVE_DECL_STRSTR 1
8698 cat >>confdefs.h <<_ACEOF
8699 #define HAVE_DECL_STRSTR 0
8704 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
8705 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
8706 if test "${ac_cv_have_decl_strtoul+set}" = set; then
8707 echo $ECHO_N "(cached) $ECHO_C" >&6
8709 cat >conftest.$ac_ext <<_ACEOF
8712 cat confdefs.h >>conftest.$ac_ext
8713 cat >>conftest.$ac_ext <<_ACEOF
8714 /* end confdefs.h. */
8721 char *p = (char *) strtoul;
8728 rm -f conftest.$ac_objext
8729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8730 (eval $ac_compile) 2>&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); } &&
8734 { ac_try='test -s conftest.$ac_objext'
8735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; }; then
8740 ac_cv_have_decl_strtoul=yes
8742 echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8745 ac_cv_have_decl_strtoul=no
8747 rm -f conftest.$ac_objext conftest.$ac_ext
8749 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
8750 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
8751 if test $ac_cv_have_decl_strtoul = yes; then
8753 cat >>confdefs.h <<_ACEOF
8754 #define HAVE_DECL_STRTOUL 1
8759 cat >>confdefs.h <<_ACEOF
8760 #define HAVE_DECL_STRTOUL 0
8765 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
8766 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
8767 if test "${ac_cv_have_decl_strtoull+set}" = set; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 cat >conftest.$ac_ext <<_ACEOF
8773 cat confdefs.h >>conftest.$ac_ext
8774 cat >>conftest.$ac_ext <<_ACEOF
8775 /* end confdefs.h. */
8782 char *p = (char *) strtoull;
8789 rm -f conftest.$ac_objext
8790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8791 (eval $ac_compile) 2>&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); } &&
8795 { ac_try='test -s conftest.$ac_objext'
8796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); }; }; then
8801 ac_cv_have_decl_strtoull=yes
8803 echo "$as_me: failed program was:" >&5
8804 sed 's/^/| /' conftest.$ac_ext >&5
8806 ac_cv_have_decl_strtoull=no
8808 rm -f conftest.$ac_objext conftest.$ac_ext
8810 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
8811 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
8812 if test $ac_cv_have_decl_strtoull = yes; then
8814 cat >>confdefs.h <<_ACEOF
8815 #define HAVE_DECL_STRTOULL 1
8820 cat >>confdefs.h <<_ACEOF
8821 #define HAVE_DECL_STRTOULL 0
8826 echo "$as_me:$LINENO: checking whether ttyname is declared" >&5
8827 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" >&6
8828 if test "${ac_cv_have_decl_ttyname+set}" = set; then
8829 echo $ECHO_N "(cached) $ECHO_C" >&6
8831 cat >conftest.$ac_ext <<_ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h. */
8843 char *p = (char *) ttyname;
8850 rm -f conftest.$ac_objext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8852 (eval $ac_compile) 2>&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } &&
8856 { ac_try='test -s conftest.$ac_objext'
8857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); }; }; then
8862 ac_cv_have_decl_ttyname=yes
8864 echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8867 ac_cv_have_decl_ttyname=no
8869 rm -f conftest.$ac_objext conftest.$ac_ext
8871 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ttyname" >&5
8872 echo "${ECHO_T}$ac_cv_have_decl_ttyname" >&6
8873 if test $ac_cv_have_decl_ttyname = yes; then
8875 cat >>confdefs.h <<_ACEOF
8876 #define HAVE_DECL_TTYNAME 1
8881 cat >>confdefs.h <<_ACEOF
8882 #define HAVE_DECL_TTYNAME 0
8893 am_getline_needs_run_time_check=no
8894 echo "$as_me:$LINENO: checking for getline" >&5
8895 echo $ECHO_N "checking for getline... $ECHO_C" >&6
8896 if test "${ac_cv_func_getline+set}" = set; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8899 cat >conftest.$ac_ext <<_ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8905 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
8906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8907 #define getline innocuous_getline
8909 /* System header to define __stub macros and hopefully few prototypes,
8910 which can conflict with char getline (); below.
8911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8912 <limits.h> exists even on freestanding compilers. */
8915 # include <limits.h>
8917 # include <assert.h>
8922 /* Override any gcc2 internal prototype to avoid an error. */
8927 /* We use char because int might match the return type of a gcc2
8928 builtin and then its argument prototype would still apply. */
8930 /* The GNU C library defines this for functions which it implements
8931 to always fail with ENOSYS. Some functions are actually named
8932 something starting with __ and the normal name is an alias. */
8933 #if defined (__stub_getline) || defined (__stub___getline)
8936 char (*f) () = getline;
8945 return f != getline;
8950 rm -f conftest.$ac_objext conftest$ac_exeext
8951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8952 (eval $ac_link) 2>&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); } &&
8956 { ac_try='test -s conftest$ac_exeext'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; }; then
8962 ac_cv_func_getline=yes
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8967 ac_cv_func_getline=no
8969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8971 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
8972 echo "${ECHO_T}$ac_cv_func_getline" >&6
8973 if test $ac_cv_func_getline = yes; then
8974 am_getline_needs_run_time_check=yes
8976 am_cv_func_working_getline=no
8979 if test $am_getline_needs_run_time_check = yes; then
8980 echo "$as_me:$LINENO: checking for working getline function" >&5
8981 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
8982 if test "${am_cv_func_working_getline+set}" = set; then
8983 echo $ECHO_N "(cached) $ECHO_C" >&6
8985 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
8987 if test "$cross_compiling" = yes; then
8988 am_cv_func_working_getline=no
8990 cat >conftest.$ac_ext <<_ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
8998 # include <stdlib.h>
8999 # include <string.h>
9001 { /* Based on a test program from Karl Heuer. */
9005 FILE *in = fopen ("./conftest.data", "r");
9008 len = getline (&line, &siz, in);
9009 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
9013 rm -f conftest$ac_exeext
9014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9015 (eval $ac_link) 2>&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); }; }; then
9024 am_cv_func_working_getline=yes
9026 echo "$as_me: program exited with status $ac_status" >&5
9027 echo "$as_me: failed program was:" >&5
9028 sed 's/^/| /' conftest.$ac_ext >&5
9031 am_cv_func_working_getline=no
9033 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9036 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
9037 echo "${ECHO_T}$am_cv_func_working_getline" >&6
9040 if test $am_cv_func_working_getline = no; then
9042 cat >>confdefs.h <<\_ACEOF
9043 #define getline gnu_getline
9046 LIBOBJS="$LIBOBJS getline.$ac_objext"
9047 LIBOBJS="$LIBOBJS getndelim2.$ac_objext"
9050 for ac_func in getdelim
9052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9053 echo "$as_me:$LINENO: checking for $ac_func" >&5
9054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9055 if eval "test \"\${$as_ac_var+set}\" = set"; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9058 cat >conftest.$ac_ext <<_ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h. */
9064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9066 #define $ac_func innocuous_$ac_func
9068 /* System header to define __stub macros and hopefully few prototypes,
9069 which can conflict with char $ac_func (); below.
9070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9071 <limits.h> exists even on freestanding compilers. */
9074 # include <limits.h>
9076 # include <assert.h>
9081 /* Override any gcc2 internal prototype to avoid an error. */
9086 /* We use char because int might match the return type of a gcc2
9087 builtin and then its argument prototype would still apply. */
9089 /* The GNU C library defines this for functions which it implements
9090 to always fail with ENOSYS. Some functions are actually named
9091 something starting with __ and the normal name is an alias. */
9092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9095 char (*f) () = $ac_func;
9104 return f != $ac_func;
9109 rm -f conftest.$ac_objext conftest$ac_exeext
9110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9111 (eval $ac_link) 2>&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); } &&
9115 { ac_try='test -s conftest$ac_exeext'
9116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }; }; then
9121 eval "$as_ac_var=yes"
9123 echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.$ac_ext >&5
9126 eval "$as_ac_var=no"
9128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9131 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9132 if test `eval echo '${'$as_ac_var'}'` = yes; then
9133 cat >>confdefs.h <<_ACEOF
9134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9147 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9148 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
9149 if test "${ac_cv_header_stdbool_h+set}" = set; then
9150 echo $ECHO_N "(cached) $ECHO_C" >&6
9153 cat >conftest.$ac_ext <<_ACEOF
9156 cat confdefs.h >>conftest.$ac_ext
9157 cat >>conftest.$ac_ext <<_ACEOF
9158 /* end confdefs.h. */
9160 #include <stdbool.h>
9162 "error: bool is not defined"
9165 "error: false is not defined"
9168 "error: false is not 0"
9171 "error: false is not defined"
9174 "error: true is not 1"
9176 #ifndef __bool_true_false_are_defined
9177 "error: __bool_true_false_are_defined is not defined"
9180 struct s { _Bool s: 1; _Bool t; } s;
9182 char a[true == 1 ? 1 : -1];
9183 char b[false == 0 ? 1 : -1];
9184 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9185 char d[(bool) -0.5 == true ? 1 : -1];
9187 char f[(_Bool) -0.0 == false ? 1 : -1];
9189 char h[sizeof (_Bool)];
9195 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
9200 rm -f conftest.$ac_objext
9201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9202 (eval $ac_compile) 2>&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); } &&
9206 { ac_try='test -s conftest.$ac_objext'
9207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); }; }; then
9212 ac_cv_header_stdbool_h=yes
9214 echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9217 ac_cv_header_stdbool_h=no
9219 rm -f conftest.$ac_objext conftest.$ac_ext
9221 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9222 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
9223 echo "$as_me:$LINENO: checking for _Bool" >&5
9224 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
9225 if test "${ac_cv_type__Bool+set}" = set; then
9226 echo $ECHO_N "(cached) $ECHO_C" >&6
9228 cat >conftest.$ac_ext <<_ACEOF
9231 cat confdefs.h >>conftest.$ac_ext
9232 cat >>conftest.$ac_ext <<_ACEOF
9233 /* end confdefs.h. */
9234 $ac_includes_default
9246 rm -f conftest.$ac_objext
9247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9248 (eval $ac_compile) 2>&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } &&
9252 { ac_try='test -s conftest.$ac_objext'
9253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); }; }; then
9258 ac_cv_type__Bool=yes
9260 echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9265 rm -f conftest.$ac_objext conftest.$ac_ext
9267 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9268 echo "${ECHO_T}$ac_cv_type__Bool" >&6
9269 if test $ac_cv_type__Bool = yes; then
9271 cat >>confdefs.h <<_ACEOF
9272 #define HAVE__BOOL 1
9278 if test $ac_cv_header_stdbool_h = yes; then
9280 cat >>confdefs.h <<\_ACEOF
9281 #define HAVE_STDBOOL_H 1
9288 # Define two additional variables used in the Makefile substitution.
9290 if test "$ac_cv_header_stdbool_h" = yes; then
9293 STDBOOL_H='stdbool.h'
9297 if test "$ac_cv_type__Bool" = yes; then
9317 echo "$as_me:$LINENO: checking whether free is declared" >&5
9318 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
9319 if test "${ac_cv_have_decl_free+set}" = set; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
9322 cat >conftest.$ac_ext <<_ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h. */
9328 $ac_includes_default
9333 char *p = (char *) free;
9340 rm -f conftest.$ac_objext
9341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9342 (eval $ac_compile) 2>&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); } &&
9346 { ac_try='test -s conftest.$ac_objext'
9347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); }; }; then
9352 ac_cv_have_decl_free=yes
9354 echo "$as_me: failed program was:" >&5
9355 sed 's/^/| /' conftest.$ac_ext >&5
9357 ac_cv_have_decl_free=no
9359 rm -f conftest.$ac_objext conftest.$ac_ext
9361 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
9362 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
9363 if test $ac_cv_have_decl_free = yes; then
9365 cat >>confdefs.h <<_ACEOF
9366 #define HAVE_DECL_FREE 1
9371 cat >>confdefs.h <<_ACEOF
9372 #define HAVE_DECL_FREE 0
9380 echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
9381 echo $ECHO_N "checking whether mkdir fails due to a trailing slash... $ECHO_C" >&6
9382 if test "${utils_cv_func_mkdir_trailing_slash_bug+set}" = set; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9386 # Arrange for deletion of the temporary directory this test might create.
9387 ac_clean_files="$ac_clean_files confdir-slash"
9389 if test "$cross_compiling" = yes; then
9390 utils_cv_func_mkdir_trailing_slash_bug=yes
9393 cat >conftest.$ac_ext <<_ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h. */
9400 # include <sys/types.h>
9401 # include <sys/stat.h>
9402 # include <stdlib.h>
9405 rmdir ("confdir-slash");
9406 exit (mkdir ("confdir-slash/", 0700));
9410 rm -f conftest$ac_exeext
9411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9412 (eval $ac_link) 2>&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); }; }; then
9421 utils_cv_func_mkdir_trailing_slash_bug=no
9423 echo "$as_me: program exited with status $ac_status" >&5
9424 echo "$as_me: failed program was:" >&5
9425 sed 's/^/| /' conftest.$ac_ext >&5
9428 utils_cv_func_mkdir_trailing_slash_bug=yes
9430 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9435 echo "$as_me:$LINENO: result: $utils_cv_func_mkdir_trailing_slash_bug" >&5
9436 echo "${ECHO_T}$utils_cv_func_mkdir_trailing_slash_bug" >&6
9438 if test $utils_cv_func_mkdir_trailing_slash_bug = yes; then
9439 LIBOBJS="$LIBOBJS mkdir.$ac_objext"
9441 cat >>confdefs.h <<\_ACEOF
9442 #define mkdir rpl_mkdir
9479 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
9480 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
9481 if test "${ac_cv_have_decl_getenv+set}" = set; then
9482 echo $ECHO_N "(cached) $ECHO_C" >&6
9484 cat >conftest.$ac_ext <<_ACEOF
9487 cat confdefs.h >>conftest.$ac_ext
9488 cat >>conftest.$ac_ext <<_ACEOF
9489 /* end confdefs.h. */
9490 $ac_includes_default
9495 char *p = (char *) getenv;
9502 rm -f conftest.$ac_objext
9503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9504 (eval $ac_compile) 2>&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } &&
9508 { ac_try='test -s conftest.$ac_objext'
9509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; }; then
9514 ac_cv_have_decl_getenv=yes
9516 echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9519 ac_cv_have_decl_getenv=no
9521 rm -f conftest.$ac_objext conftest.$ac_ext
9523 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9524 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
9525 if test $ac_cv_have_decl_getenv = yes; then
9527 cat >>confdefs.h <<_ACEOF
9528 #define HAVE_DECL_GETENV 1
9533 cat >>confdefs.h <<_ACEOF
9534 #define HAVE_DECL_GETENV 0
9543 for ac_func in mkstemp
9545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9546 echo "$as_me:$LINENO: checking for $ac_func" >&5
9547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9548 if eval "test \"\${$as_ac_var+set}\" = set"; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9551 cat >conftest.$ac_ext <<_ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h. */
9557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9559 #define $ac_func innocuous_$ac_func
9561 /* System header to define __stub macros and hopefully few prototypes,
9562 which can conflict with char $ac_func (); below.
9563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9564 <limits.h> exists even on freestanding compilers. */
9567 # include <limits.h>
9569 # include <assert.h>
9574 /* Override any gcc2 internal prototype to avoid an error. */
9579 /* We use char because int might match the return type of a gcc2
9580 builtin and then its argument prototype would still apply. */
9582 /* The GNU C library defines this for functions which it implements
9583 to always fail with ENOSYS. Some functions are actually named
9584 something starting with __ and the normal name is an alias. */
9585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9588 char (*f) () = $ac_func;
9597 return f != $ac_func;
9602 rm -f conftest.$ac_objext conftest$ac_exeext
9603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9604 (eval $ac_link) 2>&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } &&
9608 { ac_try='test -s conftest$ac_exeext'
9609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); }; }; then
9614 eval "$as_ac_var=yes"
9616 echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.$ac_ext >&5
9619 eval "$as_ac_var=no"
9621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9625 if test `eval echo '${'$as_ac_var'}'` = yes; then
9626 cat >>confdefs.h <<_ACEOF
9627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9631 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9636 if test $ac_cv_func_mkstemp = no; then
9637 utils_cv_func_mkstemp_limitations=yes
9639 echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
9640 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
9641 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then
9642 echo $ECHO_N "(cached) $ECHO_C" >&6
9646 if test "$cross_compiling" = yes; then
9647 utils_cv_func_mkstemp_limitations=yes
9650 cat >conftest.$ac_ext <<_ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h. */
9657 # include <stdlib.h>
9661 for (i = 0; i < 70; i++)
9663 char template[] = "conftestXXXXXX";
9664 int fd = mkstemp (template);
9673 rm -f conftest$ac_exeext
9674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9675 (eval $ac_link) 2>&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); }; }; then
9684 utils_cv_func_mkstemp_limitations=no
9686 echo "$as_me: program exited with status $ac_status" >&5
9687 echo "$as_me: failed program was:" >&5
9688 sed 's/^/| /' conftest.$ac_ext >&5
9691 utils_cv_func_mkstemp_limitations=yes
9693 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9698 echo "$as_me:$LINENO: result: $utils_cv_func_mkstemp_limitations" >&5
9699 echo "${ECHO_T}$utils_cv_func_mkstemp_limitations" >&6
9702 if test $utils_cv_func_mkstemp_limitations = yes; then
9703 LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
9704 LIBOBJS="$LIBOBJS tempname.$ac_objext"
9706 cat >>confdefs.h <<\_ACEOF
9707 #define mkstemp rpl_mkstemp
9729 for ac_header in stdint.h
9731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9733 echo "$as_me:$LINENO: checking for $ac_header" >&5
9734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9741 # Is the header compilable?
9742 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9743 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9744 cat >conftest.$ac_ext <<_ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9750 $ac_includes_default
9751 #include <$ac_header>
9753 rm -f conftest.$ac_objext
9754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9755 (eval $ac_compile) 2>&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } &&
9759 { ac_try='test -s conftest.$ac_objext'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
9765 ac_header_compiler=yes
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9770 ac_header_compiler=no
9772 rm -f conftest.$ac_objext conftest.$ac_ext
9773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9774 echo "${ECHO_T}$ac_header_compiler" >&6
9776 # Is the header present?
9777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9779 cat >conftest.$ac_ext <<_ACEOF
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h. */
9785 #include <$ac_header>
9787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9790 grep -v '^ *+' conftest.er1 >conftest.err
9792 cat conftest.err >&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); } >/dev/null; then
9795 if test -s conftest.err; then
9796 ac_cpp_err=$ac_c_preproc_warn_flag
9803 if test -z "$ac_cpp_err"; then
9804 ac_header_preproc=yes
9806 echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9809 ac_header_preproc=no
9811 rm -f conftest.err conftest.$ac_ext
9812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9813 echo "${ECHO_T}$ac_header_preproc" >&6
9815 # So? What about this header?
9816 case $ac_header_compiler:$ac_header_preproc in
9818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9822 ac_header_preproc=yes
9825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9832 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9839 ## ------------------------------------ ##
9840 ## Report this to bug-coreutils@gnu.org ##
9841 ## ------------------------------------ ##
9844 sed "s/^/$as_me: WARNING: /" >&2
9847 echo "$as_me:$LINENO: checking for $ac_header" >&5
9848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9850 echo $ECHO_N "(cached) $ECHO_C" >&6
9852 eval "$as_ac_Header=\$ac_header_preproc"
9854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9859 cat >>confdefs.h <<_ACEOF
9860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9869 for ac_func in __secure_getenv gettimeofday
9871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9872 echo "$as_me:$LINENO: checking for $ac_func" >&5
9873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9874 if eval "test \"\${$as_ac_var+set}\" = set"; then
9875 echo $ECHO_N "(cached) $ECHO_C" >&6
9877 cat >conftest.$ac_ext <<_ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h. */
9883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9885 #define $ac_func innocuous_$ac_func
9887 /* System header to define __stub macros and hopefully few prototypes,
9888 which can conflict with char $ac_func (); below.
9889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9890 <limits.h> exists even on freestanding compilers. */
9893 # include <limits.h>
9895 # include <assert.h>
9900 /* Override any gcc2 internal prototype to avoid an error. */
9905 /* We use char because int might match the return type of a gcc2
9906 builtin and then its argument prototype would still apply. */
9908 /* The GNU C library defines this for functions which it implements
9909 to always fail with ENOSYS. Some functions are actually named
9910 something starting with __ and the normal name is an alias. */
9911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9914 char (*f) () = $ac_func;
9923 return f != $ac_func;
9928 rm -f conftest.$ac_objext conftest$ac_exeext
9929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9930 (eval $ac_link) 2>&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } &&
9934 { ac_try='test -s conftest$ac_exeext'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; }; then
9940 eval "$as_ac_var=yes"
9942 echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9945 eval "$as_ac_var=no"
9947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9950 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9951 if test `eval echo '${'$as_ac_var'}'` = yes; then
9952 cat >>confdefs.h <<_ACEOF
9953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9970 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
9971 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
9972 if test "${ac_cv_func_closedir_void+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9975 if test "$cross_compiling" = yes; then
9976 ac_cv_func_closedir_void=yes
9978 cat >conftest.$ac_ext <<_ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984 $ac_includes_default
9985 #include <$ac_header_dirent>
9993 exit (closedir (opendir (".")) != 0);
9998 rm -f conftest$ac_exeext
9999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10000 (eval $ac_link) 2>&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10009 ac_cv_func_closedir_void=no
10011 echo "$as_me: program exited with status $ac_status" >&5
10012 echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10015 ( exit $ac_status )
10016 ac_cv_func_closedir_void=yes
10018 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10021 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10022 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
10023 if test $ac_cv_func_closedir_void = yes; then
10025 cat >>confdefs.h <<\_ACEOF
10026 #define CLOSEDIR_VOID 1
10032 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
10033 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
10034 if test "${ac_cv_have_decl_malloc+set}" = set; then
10035 echo $ECHO_N "(cached) $ECHO_C" >&6
10037 cat >conftest.$ac_ext <<_ACEOF
10040 cat confdefs.h >>conftest.$ac_ext
10041 cat >>conftest.$ac_ext <<_ACEOF
10042 /* end confdefs.h. */
10043 $ac_includes_default
10048 char *p = (char *) malloc;
10055 rm -f conftest.$ac_objext
10056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10057 (eval $ac_compile) 2>&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } &&
10061 { ac_try='test -s conftest.$ac_objext'
10062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063 (eval $ac_try) 2>&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; }; then
10067 ac_cv_have_decl_malloc=yes
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10072 ac_cv_have_decl_malloc=no
10074 rm -f conftest.$ac_objext conftest.$ac_ext
10076 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
10077 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
10078 if test $ac_cv_have_decl_malloc = yes; then
10080 cat >>confdefs.h <<_ACEOF
10081 #define HAVE_DECL_MALLOC 1
10086 cat >>confdefs.h <<_ACEOF
10087 #define HAVE_DECL_MALLOC 0
10096 echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
10097 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
10098 if test "${ac_cv_win_or_dos+set}" = set; then
10099 echo $ECHO_N "(cached) $ECHO_C" >&6
10103 cat >conftest.$ac_ext <<_ACEOF
10106 cat confdefs.h >>conftest.$ac_ext
10107 cat >>conftest.$ac_ext <<_ACEOF
10108 /* end confdefs.h. */
10113 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__
10114 neither MSDOS nor Windows
10120 rm -f conftest.$ac_objext
10121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10122 (eval $ac_compile) 2>&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); } &&
10126 { ac_try='test -s conftest.$ac_objext'
10127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10128 (eval $ac_try) 2>&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; }; then
10132 ac_cv_win_or_dos=yes
10134 echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10137 ac_cv_win_or_dos=no
10139 rm -f conftest.$ac_objext conftest.$ac_ext
10142 echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
10143 echo "${ECHO_T}$ac_cv_win_or_dos" >&6
10145 if test x"$ac_cv_win_or_dos" = xyes; then
10146 ac_fs_accepts_drive_letter_prefix=1
10147 ac_fs_backslash_is_file_name_separator=1
10149 ac_fs_accepts_drive_letter_prefix=0
10150 ac_fs_backslash_is_file_name_separator=0
10157 cat >>confdefs.h <<_ACEOF
10158 #define FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
10166 cat >>confdefs.h <<_ACEOF
10167 #define FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
10194 echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
10195 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6
10196 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10200 cat >conftest.$ac_ext <<_ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10207 #include <sys/types.h>
10208 #ifdef HAVE_DIRENT_H
10209 # include <dirent.h>
10210 #else /* not HAVE_DIRENT_H */
10211 # define dirent direct
10212 # ifdef HAVE_SYS_NDIR_H
10213 # include <sys/ndir.h>
10214 # endif /* HAVE_SYS_NDIR_H */
10215 # ifdef HAVE_SYS_DIR_H
10216 # include <sys/dir.h>
10217 # endif /* HAVE_SYS_DIR_H */
10218 # ifdef HAVE_NDIR_H
10220 # endif /* HAVE_NDIR_H */
10221 #endif /* HAVE_DIRENT_H */
10226 struct dirent dp; dp.d_ino = 0;
10231 rm -f conftest.$ac_objext conftest$ac_exeext
10232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10233 (eval $ac_link) 2>&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } &&
10237 { ac_try='test -s conftest$ac_exeext'
10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239 (eval $ac_try) 2>&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; }; then
10243 jm_cv_struct_dirent_d_ino=yes
10245 echo "$as_me: failed program was:" >&5
10246 sed 's/^/| /' conftest.$ac_ext >&5
10248 jm_cv_struct_dirent_d_ino=no
10250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10254 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
10255 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6
10256 if test $jm_cv_struct_dirent_d_ino = yes; then
10258 cat >>confdefs.h <<\_ACEOF
10259 #define D_INO_IN_DIRENT 1
10267 echo "$as_me:$LINENO: checking for long file names" >&5
10268 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
10269 if test "${ac_cv_sys_long_file_names+set}" = set; then
10270 echo $ECHO_N "(cached) $ECHO_C" >&6
10272 ac_cv_sys_long_file_names=yes
10273 # Test for long file names in all the places we know might matter:
10274 # . the current directory, where building will happen
10275 # $prefix/lib where we will be installing things
10276 # $exec_prefix/lib likewise
10277 # eval it to expand exec_prefix.
10278 # $TMPDIR if set, where it might want to write temporary files
10279 # if $TMPDIR is not set:
10280 # /tmp where it might want to write temporary files
10281 # /var/tmp likewise
10282 # /usr/tmp likewise
10283 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
10286 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
10288 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
10289 test -d $ac_dir || continue
10290 test -w $ac_dir || continue # It is less confusing to not echo anything here.
10291 ac_xdir=$ac_dir/cf$$
10292 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
10293 ac_tf1=$ac_xdir/conftest9012345
10294 ac_tf2=$ac_xdir/conftest9012346
10295 (echo 1 >$ac_tf1) 2>/dev/null
10296 (echo 2 >$ac_tf2) 2>/dev/null
10297 ac_val=`cat $ac_tf1 2>/dev/null`
10298 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
10299 ac_cv_sys_long_file_names=no
10300 rm -rf $ac_xdir 2>/dev/null
10303 rm -rf $ac_xdir 2>/dev/null
10306 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
10307 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
10308 if test $ac_cv_sys_long_file_names = yes; then
10310 cat >>confdefs.h <<\_ACEOF
10311 #define HAVE_LONG_FILE_NAMES 1
10327 for ac_func in pathconf
10329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10330 echo "$as_me:$LINENO: checking for $ac_func" >&5
10331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10332 if eval "test \"\${$as_ac_var+set}\" = set"; then
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
10335 cat >conftest.$ac_ext <<_ACEOF
10338 cat confdefs.h >>conftest.$ac_ext
10339 cat >>conftest.$ac_ext <<_ACEOF
10340 /* end confdefs.h. */
10341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10343 #define $ac_func innocuous_$ac_func
10345 /* System header to define __stub macros and hopefully few prototypes,
10346 which can conflict with char $ac_func (); below.
10347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10348 <limits.h> exists even on freestanding compilers. */
10351 # include <limits.h>
10353 # include <assert.h>
10358 /* Override any gcc2 internal prototype to avoid an error. */
10363 /* We use char because int might match the return type of a gcc2
10364 builtin and then its argument prototype would still apply. */
10366 /* The GNU C library defines this for functions which it implements
10367 to always fail with ENOSYS. Some functions are actually named
10368 something starting with __ and the normal name is an alias. */
10369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10372 char (*f) () = $ac_func;
10381 return f != $ac_func;
10386 rm -f conftest.$ac_objext conftest$ac_exeext
10387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10388 (eval $ac_link) 2>&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); } &&
10392 { ac_try='test -s conftest$ac_exeext'
10393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10394 (eval $ac_try) 2>&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); }; }; then
10398 eval "$as_ac_var=yes"
10400 echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.$ac_ext >&5
10403 eval "$as_ac_var=no"
10405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10409 if test `eval echo '${'$as_ac_var'}'` = yes; then
10410 cat >>confdefs.h <<_ACEOF
10411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10436 for ac_header in netdb.h sys/socket.h netinet/in.h arpa/inet.h
10438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10440 echo "$as_me:$LINENO: checking for $ac_header" >&5
10441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10448 # Is the header compilable?
10449 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10450 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10451 cat >conftest.$ac_ext <<_ACEOF
10454 cat confdefs.h >>conftest.$ac_ext
10455 cat >>conftest.$ac_ext <<_ACEOF
10456 /* end confdefs.h. */
10457 $ac_includes_default
10458 #include <$ac_header>
10460 rm -f conftest.$ac_objext
10461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10462 (eval $ac_compile) 2>&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } &&
10466 { ac_try='test -s conftest.$ac_objext'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }; then
10472 ac_header_compiler=yes
10474 echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.$ac_ext >&5
10477 ac_header_compiler=no
10479 rm -f conftest.$ac_objext conftest.$ac_ext
10480 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10481 echo "${ECHO_T}$ac_header_compiler" >&6
10483 # Is the header present?
10484 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10486 cat >conftest.$ac_ext <<_ACEOF
10489 cat confdefs.h >>conftest.$ac_ext
10490 cat >>conftest.$ac_ext <<_ACEOF
10491 /* end confdefs.h. */
10492 #include <$ac_header>
10494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10497 grep -v '^ *+' conftest.er1 >conftest.err
10499 cat conftest.err >&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); } >/dev/null; then
10502 if test -s conftest.err; then
10503 ac_cpp_err=$ac_c_preproc_warn_flag
10510 if test -z "$ac_cpp_err"; then
10511 ac_header_preproc=yes
10513 echo "$as_me: failed program was:" >&5
10514 sed 's/^/| /' conftest.$ac_ext >&5
10516 ac_header_preproc=no
10518 rm -f conftest.err conftest.$ac_ext
10519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10520 echo "${ECHO_T}$ac_header_preproc" >&6
10522 # So? What about this header?
10523 case $ac_header_compiler:$ac_header_preproc in
10525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10529 ac_header_preproc=yes
10532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10539 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10546 ## ------------------------------------ ##
10547 ## Report this to bug-coreutils@gnu.org ##
10548 ## ------------------------------------ ##
10551 sed "s/^/$as_me: WARNING: /" >&2
10554 echo "$as_me:$LINENO: checking for $ac_header" >&5
10555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10557 echo $ECHO_N "(cached) $ECHO_C" >&6
10559 eval "$as_ac_Header=\$ac_header_preproc"
10561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10566 cat >>confdefs.h <<_ACEOF
10567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10576 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
10577 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
10578 if test "${ac_cv_search_gethostbyname+set}" = set; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
10582 ac_func_search_save_LIBS=$LIBS
10583 ac_cv_search_gethostbyname=no
10584 cat >conftest.$ac_ext <<_ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10591 /* Override any gcc2 internal prototype to avoid an error. */
10595 /* We use char because int might match the return type of a gcc2
10596 builtin and then its argument prototype would still apply. */
10597 char gethostbyname ();
10606 rm -f conftest.$ac_objext conftest$ac_exeext
10607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10608 (eval $ac_link) 2>&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } &&
10612 { ac_try='test -s conftest$ac_exeext'
10613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614 (eval $ac_try) 2>&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }; then
10618 ac_cv_search_gethostbyname='none required'
10620 echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10625 if test "$ac_cv_search_gethostbyname" = no; then
10626 for ac_lib in inet nsl; do
10627 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10628 cat >conftest.$ac_ext <<_ACEOF
10631 cat confdefs.h >>conftest.$ac_ext
10632 cat >>conftest.$ac_ext <<_ACEOF
10633 /* end confdefs.h. */
10635 /* Override any gcc2 internal prototype to avoid an error. */
10639 /* We use char because int might match the return type of a gcc2
10640 builtin and then its argument prototype would still apply. */
10641 char gethostbyname ();
10650 rm -f conftest.$ac_objext conftest$ac_exeext
10651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10652 (eval $ac_link) 2>&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } &&
10656 { ac_try='test -s conftest$ac_exeext'
10657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; }; then
10662 ac_cv_search_gethostbyname="-l$ac_lib"; break
10664 echo "$as_me: failed program was:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10671 LIBS=$ac_func_search_save_LIBS
10674 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
10675 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
10677 if test "$ac_cv_search_gethostbyname" = no; then :
10680 if test "$ac_cv_search_gethostbyname" = 'none required'; then :
10683 LIBS="$ac_cv_search_gethostbyname $LIBS"
10692 for ac_func in gethostbyname gethostbyaddr inet_ntoa
10694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10695 echo "$as_me:$LINENO: checking for $ac_func" >&5
10696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10697 if eval "test \"\${$as_ac_var+set}\" = set"; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10700 cat >conftest.$ac_ext <<_ACEOF
10703 cat confdefs.h >>conftest.$ac_ext
10704 cat >>conftest.$ac_ext <<_ACEOF
10705 /* end confdefs.h. */
10706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10708 #define $ac_func innocuous_$ac_func
10710 /* System header to define __stub macros and hopefully few prototypes,
10711 which can conflict with char $ac_func (); below.
10712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10713 <limits.h> exists even on freestanding compilers. */
10716 # include <limits.h>
10718 # include <assert.h>
10723 /* Override any gcc2 internal prototype to avoid an error. */
10728 /* We use char because int might match the return type of a gcc2
10729 builtin and then its argument prototype would still apply. */
10731 /* The GNU C library defines this for functions which it implements
10732 to always fail with ENOSYS. Some functions are actually named
10733 something starting with __ and the normal name is an alias. */
10734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10737 char (*f) () = $ac_func;
10746 return f != $ac_func;
10751 rm -f conftest.$ac_objext conftest$ac_exeext
10752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10753 (eval $ac_link) 2>&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } &&
10757 { ac_try='test -s conftest$ac_exeext'
10758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10759 (eval $ac_try) 2>&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); }; }; then
10763 eval "$as_ac_var=yes"
10765 echo "$as_me: failed program was:" >&5
10766 sed 's/^/| /' conftest.$ac_ext >&5
10768 eval "$as_ac_var=no"
10770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10773 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10774 if test `eval echo '${'$as_ac_var'}'` = yes; then
10775 cat >>confdefs.h <<_ACEOF
10776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10823 for ac_func in vprintf
10825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10826 echo "$as_me:$LINENO: checking for $ac_func" >&5
10827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10828 if eval "test \"\${$as_ac_var+set}\" = set"; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10831 cat >conftest.$ac_ext <<_ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h. */
10837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10839 #define $ac_func innocuous_$ac_func
10841 /* System header to define __stub macros and hopefully few prototypes,
10842 which can conflict with char $ac_func (); below.
10843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10844 <limits.h> exists even on freestanding compilers. */
10847 # include <limits.h>
10849 # include <assert.h>
10854 /* Override any gcc2 internal prototype to avoid an error. */
10859 /* We use char because int might match the return type of a gcc2
10860 builtin and then its argument prototype would still apply. */
10862 /* The GNU C library defines this for functions which it implements
10863 to always fail with ENOSYS. Some functions are actually named
10864 something starting with __ and the normal name is an alias. */
10865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10868 char (*f) () = $ac_func;
10877 return f != $ac_func;
10882 rm -f conftest.$ac_objext conftest$ac_exeext
10883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10884 (eval $ac_link) 2>&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); } &&
10888 { ac_try='test -s conftest$ac_exeext'
10889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890 (eval $ac_try) 2>&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; }; then
10894 eval "$as_ac_var=yes"
10896 echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10899 eval "$as_ac_var=no"
10901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10905 if test `eval echo '${'$as_ac_var'}'` = yes; then
10906 cat >>confdefs.h <<_ACEOF
10907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10910 echo "$as_me:$LINENO: checking for _doprnt" >&5
10911 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10912 if test "${ac_cv_func__doprnt+set}" = set; then
10913 echo $ECHO_N "(cached) $ECHO_C" >&6
10915 cat >conftest.$ac_ext <<_ACEOF
10918 cat confdefs.h >>conftest.$ac_ext
10919 cat >>conftest.$ac_ext <<_ACEOF
10920 /* end confdefs.h. */
10921 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10923 #define _doprnt innocuous__doprnt
10925 /* System header to define __stub macros and hopefully few prototypes,
10926 which can conflict with char _doprnt (); below.
10927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10928 <limits.h> exists even on freestanding compilers. */
10931 # include <limits.h>
10933 # include <assert.h>
10938 /* Override any gcc2 internal prototype to avoid an error. */
10943 /* We use char because int might match the return type of a gcc2
10944 builtin and then its argument prototype would still apply. */
10946 /* The GNU C library defines this for functions which it implements
10947 to always fail with ENOSYS. Some functions are actually named
10948 something starting with __ and the normal name is an alias. */
10949 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10952 char (*f) () = _doprnt;
10961 return f != _doprnt;
10966 rm -f conftest.$ac_objext conftest$ac_exeext
10967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10968 (eval $ac_link) 2>&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } &&
10972 { ac_try='test -s conftest$ac_exeext'
10973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10974 (eval $ac_try) 2>&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); }; }; then
10978 ac_cv_func__doprnt=yes
10980 echo "$as_me: failed program was:" >&5
10981 sed 's/^/| /' conftest.$ac_ext >&5
10983 ac_cv_func__doprnt=no
10985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10987 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10988 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10989 if test $ac_cv_func__doprnt = yes; then
10991 cat >>confdefs.h <<\_ACEOF
10992 #define HAVE_DOPRNT 1
11002 echo "$as_me:$LINENO: checking for error_at_line" >&5
11003 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
11004 if test "${ac_cv_lib_error_at_line+set}" = set; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11007 cat >conftest.$ac_ext <<_ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h. */
11013 $ac_includes_default
11017 error_at_line (0, 0, "", 0, "");
11022 rm -f conftest.$ac_objext conftest$ac_exeext
11023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11024 (eval $ac_link) 2>&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); } &&
11028 { ac_try='test -s conftest$ac_exeext'
11029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11030 (eval $ac_try) 2>&5
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; }; then
11034 ac_cv_lib_error_at_line=yes
11036 echo "$as_me: failed program was:" >&5
11037 sed 's/^/| /' conftest.$ac_ext >&5
11039 ac_cv_lib_error_at_line=no
11041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11043 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
11044 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
11045 if test $ac_cv_lib_error_at_line = no; then
11046 LIBOBJS="$LIBOBJS error.$ac_objext"
11053 for ac_func in strerror
11055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11056 echo "$as_me:$LINENO: checking for $ac_func" >&5
11057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11058 if eval "test \"\${$as_ac_var+set}\" = set"; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
11061 cat >conftest.$ac_ext <<_ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h. */
11067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11069 #define $ac_func innocuous_$ac_func
11071 /* System header to define __stub macros and hopefully few prototypes,
11072 which can conflict with char $ac_func (); below.
11073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11074 <limits.h> exists even on freestanding compilers. */
11077 # include <limits.h>
11079 # include <assert.h>
11084 /* Override any gcc2 internal prototype to avoid an error. */
11089 /* We use char because int might match the return type of a gcc2
11090 builtin and then its argument prototype would still apply. */
11092 /* The GNU C library defines this for functions which it implements
11093 to always fail with ENOSYS. Some functions are actually named
11094 something starting with __ and the normal name is an alias. */
11095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11098 char (*f) () = $ac_func;
11107 return f != $ac_func;
11112 rm -f conftest.$ac_objext conftest$ac_exeext
11113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11114 (eval $ac_link) 2>&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } &&
11118 { ac_try='test -s conftest$ac_exeext'
11119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11120 (eval $ac_try) 2>&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; }; then
11124 eval "$as_ac_var=yes"
11126 echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.$ac_ext >&5
11129 eval "$as_ac_var=no"
11131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11134 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11135 if test `eval echo '${'$as_ac_var'}'` = yes; then
11136 cat >>confdefs.h <<_ACEOF
11137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11143 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
11144 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
11145 if test "${ac_cv_have_decl_strerror+set}" = set; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11148 cat >conftest.$ac_ext <<_ACEOF
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11154 $ac_includes_default
11159 char *p = (char *) strerror;
11166 rm -f conftest.$ac_objext
11167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11168 (eval $ac_compile) 2>&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); } &&
11172 { ac_try='test -s conftest.$ac_objext'
11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174 (eval $ac_try) 2>&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; }; then
11178 ac_cv_have_decl_strerror=yes
11180 echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.$ac_ext >&5
11183 ac_cv_have_decl_strerror=no
11185 rm -f conftest.$ac_objext conftest.$ac_ext
11187 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
11188 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
11189 if test $ac_cv_have_decl_strerror = yes; then
11191 cat >>confdefs.h <<_ACEOF
11192 #define HAVE_DECL_STRERROR 1
11197 cat >>confdefs.h <<_ACEOF
11198 #define HAVE_DECL_STRERROR 0
11205 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
11206 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
11207 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11210 cat >conftest.$ac_ext <<_ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h. */
11216 $ac_includes_default
11221 char *p = (char *) strerror_r;
11228 rm -f conftest.$ac_objext
11229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11230 (eval $ac_compile) 2>&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } &&
11234 { ac_try='test -s conftest.$ac_objext'
11235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236 (eval $ac_try) 2>&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; }; then
11240 ac_cv_have_decl_strerror_r=yes
11242 echo "$as_me: failed program was:" >&5
11243 sed 's/^/| /' conftest.$ac_ext >&5
11245 ac_cv_have_decl_strerror_r=no
11247 rm -f conftest.$ac_objext conftest.$ac_ext
11249 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
11250 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
11251 if test $ac_cv_have_decl_strerror_r = yes; then
11253 cat >>confdefs.h <<_ACEOF
11254 #define HAVE_DECL_STRERROR_R 1
11259 cat >>confdefs.h <<_ACEOF
11260 #define HAVE_DECL_STRERROR_R 0
11268 for ac_func in strerror_r
11270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11271 echo "$as_me:$LINENO: checking for $ac_func" >&5
11272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11273 if eval "test \"\${$as_ac_var+set}\" = set"; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 cat >conftest.$ac_ext <<_ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h. */
11282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11284 #define $ac_func innocuous_$ac_func
11286 /* System header to define __stub macros and hopefully few prototypes,
11287 which can conflict with char $ac_func (); below.
11288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11289 <limits.h> exists even on freestanding compilers. */
11292 # include <limits.h>
11294 # include <assert.h>
11299 /* Override any gcc2 internal prototype to avoid an error. */
11304 /* We use char because int might match the return type of a gcc2
11305 builtin and then its argument prototype would still apply. */
11307 /* The GNU C library defines this for functions which it implements
11308 to always fail with ENOSYS. Some functions are actually named
11309 something starting with __ and the normal name is an alias. */
11310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11313 char (*f) () = $ac_func;
11322 return f != $ac_func;
11327 rm -f conftest.$ac_objext conftest$ac_exeext
11328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11329 (eval $ac_link) 2>&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } &&
11333 { ac_try='test -s conftest$ac_exeext'
11334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335 (eval $ac_try) 2>&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; }; then
11339 eval "$as_ac_var=yes"
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11344 eval "$as_ac_var=no"
11346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11350 if test `eval echo '${'$as_ac_var'}'` = yes; then
11351 cat >>confdefs.h <<_ACEOF
11352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11358 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
11359 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
11360 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
11361 echo $ECHO_N "(cached) $ECHO_C" >&6
11364 ac_cv_func_strerror_r_char_p=no
11365 if test $ac_cv_have_decl_strerror_r = yes; then
11366 cat >conftest.$ac_ext <<_ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11372 $ac_includes_default
11378 char x = *strerror_r (0, buf, sizeof buf);
11379 char *p = strerror_r (0, buf, sizeof buf);
11385 rm -f conftest.$ac_objext
11386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11387 (eval $ac_compile) 2>&5
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); } &&
11391 { ac_try='test -s conftest.$ac_objext'
11392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11393 (eval $ac_try) 2>&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); }; }; then
11397 ac_cv_func_strerror_r_char_p=yes
11399 echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11403 rm -f conftest.$ac_objext conftest.$ac_ext
11405 # strerror_r is not declared. Choose between
11406 # systems that have relatively inaccessible declarations for the
11407 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
11408 # former has a strerror_r that returns char*, while the latter
11409 # has a strerror_r that returns `int'.
11410 # This test should segfault on the DEC system.
11411 if test "$cross_compiling" = yes; then
11414 cat >conftest.$ac_ext <<_ACEOF
11417 cat confdefs.h >>conftest.$ac_ext
11418 cat >>conftest.$ac_ext <<_ACEOF
11419 /* end confdefs.h. */
11420 $ac_includes_default
11421 extern char *strerror_r ();
11426 char x = *strerror_r (0, buf, sizeof buf);
11427 exit (!isalpha (x));
11432 rm -f conftest$ac_exeext
11433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11434 (eval $ac_link) 2>&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11439 (eval $ac_try) 2>&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); }; }; then
11443 ac_cv_func_strerror_r_char_p=yes
11445 echo "$as_me: program exited with status $ac_status" >&5
11446 echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11450 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11455 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
11456 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
11457 if test $ac_cv_func_strerror_r_char_p = yes; then
11459 cat >>confdefs.h <<\_ACEOF
11460 #define STRERROR_R_CHAR_P 1
11478 for ac_func in $gl_func_list
11480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11481 echo "$as_me:$LINENO: checking for $ac_func" >&5
11482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11483 if eval "test \"\${$as_ac_var+set}\" = set"; then
11484 echo $ECHO_N "(cached) $ECHO_C" >&6
11486 cat >conftest.$ac_ext <<_ACEOF
11489 cat confdefs.h >>conftest.$ac_ext
11490 cat >>conftest.$ac_ext <<_ACEOF
11491 /* end confdefs.h. */
11492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11494 #define $ac_func innocuous_$ac_func
11496 /* System header to define __stub macros and hopefully few prototypes,
11497 which can conflict with char $ac_func (); below.
11498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11499 <limits.h> exists even on freestanding compilers. */
11502 # include <limits.h>
11504 # include <assert.h>
11509 /* Override any gcc2 internal prototype to avoid an error. */
11514 /* We use char because int might match the return type of a gcc2
11515 builtin and then its argument prototype would still apply. */
11517 /* The GNU C library defines this for functions which it implements
11518 to always fail with ENOSYS. Some functions are actually named
11519 something starting with __ and the normal name is an alias. */
11520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11523 char (*f) () = $ac_func;
11532 return f != $ac_func;
11537 rm -f conftest.$ac_objext conftest$ac_exeext
11538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11539 (eval $ac_link) 2>&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); } &&
11543 { ac_try='test -s conftest$ac_exeext'
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; }; then
11549 eval "$as_ac_var=yes"
11551 echo "$as_me: failed program was:" >&5
11552 sed 's/^/| /' conftest.$ac_ext >&5
11554 eval "$as_ac_var=no"
11556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11560 if test `eval echo '${'$as_ac_var'}'` = yes; then
11561 cat >>confdefs.h <<_ACEOF
11562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11613 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11614 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11615 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
11618 cat >conftest.$ac_ext <<_ACEOF
11621 cat confdefs.h >>conftest.$ac_ext
11622 cat >>conftest.$ac_ext <<_ACEOF
11623 /* end confdefs.h. */
11624 $ac_includes_default
11628 static struct stat ac_aggr;
11629 if (ac_aggr.st_blocks)
11635 rm -f conftest.$ac_objext
11636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11637 (eval $ac_compile) 2>&5
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); } &&
11641 { ac_try='test -s conftest.$ac_objext'
11642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11643 (eval $ac_try) 2>&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then
11647 ac_cv_member_struct_stat_st_blocks=yes
11649 echo "$as_me: failed program was:" >&5
11650 sed 's/^/| /' conftest.$ac_ext >&5
11652 cat >conftest.$ac_ext <<_ACEOF
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h. */
11658 $ac_includes_default
11662 static struct stat ac_aggr;
11663 if (sizeof ac_aggr.st_blocks)
11669 rm -f conftest.$ac_objext
11670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11671 (eval $ac_compile) 2>&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } &&
11675 { ac_try='test -s conftest.$ac_objext'
11676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677 (eval $ac_try) 2>&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; }; then
11681 ac_cv_member_struct_stat_st_blocks=yes
11683 echo "$as_me: failed program was:" >&5
11684 sed 's/^/| /' conftest.$ac_ext >&5
11686 ac_cv_member_struct_stat_st_blocks=no
11688 rm -f conftest.$ac_objext conftest.$ac_ext
11690 rm -f conftest.$ac_objext conftest.$ac_ext
11692 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11693 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11694 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11696 cat >>confdefs.h <<_ACEOF
11697 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11701 cat >>confdefs.h <<\_ACEOF
11702 #define HAVE_ST_BLOCKS 1
11706 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11710 if test $ac_cv_member_struct_stat_st_blocks = no; then
11742 for ac_header in sys/mount.h sys/vfs.h sys/fs_types.h
11744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11746 echo "$as_me:$LINENO: checking for $ac_header" >&5
11747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
11751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11754 # Is the header compilable?
11755 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11757 cat >conftest.$ac_ext <<_ACEOF
11760 cat confdefs.h >>conftest.$ac_ext
11761 cat >>conftest.$ac_ext <<_ACEOF
11762 /* end confdefs.h. */
11763 $ac_includes_default
11764 #include <$ac_header>
11766 rm -f conftest.$ac_objext
11767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11768 (eval $ac_compile) 2>&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } &&
11772 { ac_try='test -s conftest.$ac_objext'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; }; then
11778 ac_header_compiler=yes
11780 echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11783 ac_header_compiler=no
11785 rm -f conftest.$ac_objext conftest.$ac_ext
11786 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11787 echo "${ECHO_T}$ac_header_compiler" >&6
11789 # Is the header present?
11790 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11791 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11792 cat >conftest.$ac_ext <<_ACEOF
11795 cat confdefs.h >>conftest.$ac_ext
11796 cat >>conftest.$ac_ext <<_ACEOF
11797 /* end confdefs.h. */
11798 #include <$ac_header>
11800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11803 grep -v '^ *+' conftest.er1 >conftest.err
11805 cat conftest.err >&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); } >/dev/null; then
11808 if test -s conftest.err; then
11809 ac_cpp_err=$ac_c_preproc_warn_flag
11816 if test -z "$ac_cpp_err"; then
11817 ac_header_preproc=yes
11819 echo "$as_me: failed program was:" >&5
11820 sed 's/^/| /' conftest.$ac_ext >&5
11822 ac_header_preproc=no
11824 rm -f conftest.err conftest.$ac_ext
11825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11826 echo "${ECHO_T}$ac_header_preproc" >&6
11828 # So? What about this header?
11829 case $ac_header_compiler:$ac_header_preproc in
11831 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11835 ac_header_preproc=yes
11838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11841 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11842 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11843 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11844 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11845 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11848 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11849 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11852 ## ------------------------------------ ##
11853 ## Report this to bug-coreutils@gnu.org ##
11854 ## ------------------------------------ ##
11857 sed "s/^/$as_me: WARNING: /" >&2
11860 echo "$as_me:$LINENO: checking for $ac_header" >&5
11861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11863 echo $ECHO_N "(cached) $ECHO_C" >&6
11865 eval "$as_ac_Header=\$ac_header_preproc"
11867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11872 cat >>confdefs.h <<_ACEOF
11873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11882 echo "checking how to get filesystem space usage..."
11883 ac_fsusage_space=no
11885 # Perform only the link test since it seems there are no variants of the
11886 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11887 # because that got a false positive on SCO OSR5. Adding the declaration
11888 # of a `struct statvfs' causes this test to fail (as it should) on such
11889 # systems. That system is reported to work fine with STAT_STATFS4 which
11890 # is what it gets when this test fails.
11891 if test $ac_fsusage_space = no; then
11893 echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
11894 echo $ECHO_N "checking for statvfs function (SVR4)... $ECHO_C" >&6
11895 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
11896 echo $ECHO_N "(cached) $ECHO_C" >&6
11899 cat >conftest.$ac_ext <<_ACEOF
11902 cat confdefs.h >>conftest.$ac_ext
11903 cat >>conftest.$ac_ext <<_ACEOF
11904 /* end confdefs.h. */
11905 #include <sys/types.h>
11907 Do not use statvfs on systems with GNU libc, because that function stats
11908 all preceding entries in /proc/mounts, and that makes df hang if even
11909 one of the corresponding file systems is hard-mounted, but not available.
11911 #include <sys/statvfs.h>
11915 struct statvfs fsd; statvfs (0, &fsd);
11920 rm -f conftest.$ac_objext conftest$ac_exeext
11921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11922 (eval $ac_link) 2>&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } &&
11926 { ac_try='test -s conftest$ac_exeext'
11927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11928 (eval $ac_try) 2>&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; }; then
11932 fu_cv_sys_stat_statvfs=yes
11934 echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11937 fu_cv_sys_stat_statvfs=no
11939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11941 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
11942 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
11943 if test $fu_cv_sys_stat_statvfs = yes; then
11944 ac_fsusage_space=yes
11946 cat >>confdefs.h <<\_ACEOF
11947 #define STAT_STATVFS 1
11953 if test $ac_fsusage_space = no; then
11954 # DEC Alpha running OSF/1
11955 echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
11956 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
11957 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
11958 echo $ECHO_N "(cached) $ECHO_C" >&6
11961 if test "$cross_compiling" = yes; then
11962 fu_cv_sys_stat_statfs3_osf1=no
11964 cat >conftest.$ac_ext <<_ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h. */
11971 #include <sys/param.h>
11972 #include <sys/types.h>
11973 #include <sys/mount.h>
11978 exit (statfs (".", &fsd, sizeof (struct statfs)));
11981 rm -f conftest$ac_exeext
11982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11983 (eval $ac_link) 2>&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988 (eval $ac_try) 2>&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); }; }; then
11992 fu_cv_sys_stat_statfs3_osf1=yes
11994 echo "$as_me: program exited with status $ac_status" >&5
11995 echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
11998 ( exit $ac_status )
11999 fu_cv_sys_stat_statfs3_osf1=no
12001 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12005 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
12006 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
12007 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12008 ac_fsusage_space=yes
12010 cat >>confdefs.h <<\_ACEOF
12011 #define STAT_STATFS3_OSF1 1
12017 if test $ac_fsusage_space = no; then
12019 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12020 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
12021 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12025 if test "$cross_compiling" = yes; then
12026 fu_cv_sys_stat_statfs2_bsize=no
12028 cat >conftest.$ac_ext <<_ACEOF
12031 cat confdefs.h >>conftest.$ac_ext
12032 cat >>conftest.$ac_ext <<_ACEOF
12033 /* end confdefs.h. */
12035 #ifdef HAVE_SYS_PARAM_H
12036 #include <sys/param.h>
12038 #ifdef HAVE_SYS_MOUNT_H
12039 #include <sys/mount.h>
12041 #ifdef HAVE_SYS_VFS_H
12042 #include <sys/vfs.h>
12048 exit (statfs (".", &fsd));
12051 rm -f conftest$ac_exeext
12052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12053 (eval $ac_link) 2>&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12058 (eval $ac_try) 2>&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }; }; then
12062 fu_cv_sys_stat_statfs2_bsize=yes
12064 echo "$as_me: program exited with status $ac_status" >&5
12065 echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12068 ( exit $ac_status )
12069 fu_cv_sys_stat_statfs2_bsize=no
12071 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12075 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
12076 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
12077 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12078 ac_fsusage_space=yes
12080 cat >>confdefs.h <<\_ACEOF
12081 #define STAT_STATFS2_BSIZE 1
12087 if test $ac_fsusage_space = no; then
12089 echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12090 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
12091 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12095 if test "$cross_compiling" = yes; then
12096 fu_cv_sys_stat_statfs4=no
12098 cat >conftest.$ac_ext <<_ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12104 #include <sys/types.h>
12105 #include <sys/statfs.h>
12109 exit (statfs (".", &fsd, sizeof fsd, 0));
12112 rm -f 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); } && { ac_try='./conftest$ac_exeext'
12118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12119 (eval $ac_try) 2>&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); }; }; then
12123 fu_cv_sys_stat_statfs4=yes
12125 echo "$as_me: program exited with status $ac_status" >&5
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12129 ( exit $ac_status )
12130 fu_cv_sys_stat_statfs4=no
12132 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12136 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
12137 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
12138 if test $fu_cv_sys_stat_statfs4 = yes; then
12139 ac_fsusage_space=yes
12141 cat >>confdefs.h <<\_ACEOF
12142 #define STAT_STATFS4 1
12148 if test $ac_fsusage_space = no; then
12149 # 4.4BSD and NetBSD
12150 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12151 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
12152 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12156 if test "$cross_compiling" = yes; then
12157 fu_cv_sys_stat_statfs2_fsize=no
12159 cat >conftest.$ac_ext <<_ACEOF
12162 cat confdefs.h >>conftest.$ac_ext
12163 cat >>conftest.$ac_ext <<_ACEOF
12164 /* end confdefs.h. */
12165 #include <sys/types.h>
12166 #ifdef HAVE_SYS_PARAM_H
12167 #include <sys/param.h>
12169 #ifdef HAVE_SYS_MOUNT_H
12170 #include <sys/mount.h>
12176 exit (statfs (".", &fsd));
12179 rm -f conftest$ac_exeext
12180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12181 (eval $ac_link) 2>&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12186 (eval $ac_try) 2>&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); }; }; then
12190 fu_cv_sys_stat_statfs2_fsize=yes
12192 echo "$as_me: program exited with status $ac_status" >&5
12193 echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12196 ( exit $ac_status )
12197 fu_cv_sys_stat_statfs2_fsize=no
12199 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12203 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
12204 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
12205 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12206 ac_fsusage_space=yes
12208 cat >>confdefs.h <<\_ACEOF
12209 #define STAT_STATFS2_FSIZE 1
12215 if test $ac_fsusage_space = no; then
12217 echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12218 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
12219 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
12220 echo $ECHO_N "(cached) $ECHO_C" >&6
12223 if test "$cross_compiling" = yes; then
12224 fu_cv_sys_stat_fs_data=no
12226 cat >conftest.$ac_ext <<_ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12232 #include <sys/types.h>
12233 #ifdef HAVE_SYS_PARAM_H
12234 #include <sys/param.h>
12236 #ifdef HAVE_SYS_MOUNT_H
12237 #include <sys/mount.h>
12239 #ifdef HAVE_SYS_FS_TYPES_H
12240 #include <sys/fs_types.h>
12244 struct fs_data fsd;
12245 /* Ultrix's statfs returns 1 for success,
12246 0 for not mounted, -1 for failure. */
12247 exit (statfs (".", &fsd) != 1);
12250 rm -f conftest$ac_exeext
12251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12252 (eval $ac_link) 2>&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257 (eval $ac_try) 2>&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); }; }; then
12261 fu_cv_sys_stat_fs_data=yes
12263 echo "$as_me: program exited with status $ac_status" >&5
12264 echo "$as_me: failed program was:" >&5
12265 sed 's/^/| /' conftest.$ac_ext >&5
12267 ( exit $ac_status )
12268 fu_cv_sys_stat_fs_data=no
12270 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12274 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
12275 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
12276 if test $fu_cv_sys_stat_fs_data = yes; then
12277 ac_fsusage_space=yes
12279 cat >>confdefs.h <<\_ACEOF
12280 #define STAT_STATFS2_FS_DATA 1
12286 if test $ac_fsusage_space = no; then
12289 cat >conftest.$ac_ext <<_ACEOF
12292 cat confdefs.h >>conftest.$ac_ext
12293 cat >>conftest.$ac_ext <<_ACEOF
12294 /* end confdefs.h. */
12295 #include <sys/filsys.h>
12298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12301 grep -v '^ *+' conftest.er1 >conftest.err
12303 cat conftest.err >&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } >/dev/null; then
12306 if test -s conftest.err; then
12307 ac_cpp_err=$ac_c_preproc_warn_flag
12314 if test -z "$ac_cpp_err"; then
12316 cat >>confdefs.h <<\_ACEOF
12317 #define STAT_READ_FILSYS 1
12320 ac_fsusage_space=yes
12322 echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12327 rm -f conftest.err conftest.$ac_ext
12330 if test $ac_fsusage_space = yes; then
12338 if test $gl_cv_fs_space = yes; then
12339 LIBOBJS="$LIBOBJS fsusage.$ac_objext"
12354 for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h sys/statvfs.h
12356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12358 echo "$as_me:$LINENO: checking for $ac_header" >&5
12359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12361 echo $ECHO_N "(cached) $ECHO_C" >&6
12363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12366 # Is the header compilable?
12367 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12369 cat >conftest.$ac_ext <<_ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h. */
12375 $ac_includes_default
12376 #include <$ac_header>
12378 rm -f conftest.$ac_objext
12379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12380 (eval $ac_compile) 2>&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); } &&
12384 { ac_try='test -s conftest.$ac_objext'
12385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386 (eval $ac_try) 2>&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); }; }; then
12390 ac_header_compiler=yes
12392 echo "$as_me: failed program was:" >&5
12393 sed 's/^/| /' conftest.$ac_ext >&5
12395 ac_header_compiler=no
12397 rm -f conftest.$ac_objext conftest.$ac_ext
12398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12399 echo "${ECHO_T}$ac_header_compiler" >&6
12401 # Is the header present?
12402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12404 cat >conftest.$ac_ext <<_ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12410 #include <$ac_header>
12412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12415 grep -v '^ *+' conftest.er1 >conftest.err
12417 cat conftest.err >&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } >/dev/null; then
12420 if test -s conftest.err; then
12421 ac_cpp_err=$ac_c_preproc_warn_flag
12428 if test -z "$ac_cpp_err"; then
12429 ac_header_preproc=yes
12431 echo "$as_me: failed program was:" >&5
12432 sed 's/^/| /' conftest.$ac_ext >&5
12434 ac_header_preproc=no
12436 rm -f conftest.err conftest.$ac_ext
12437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12438 echo "${ECHO_T}$ac_header_preproc" >&6
12440 # So? What about this header?
12441 case $ac_header_compiler:$ac_header_preproc in
12443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12447 ac_header_preproc=yes
12450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12453 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12457 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12464 ## ------------------------------------ ##
12465 ## Report this to bug-coreutils@gnu.org ##
12466 ## ------------------------------------ ##
12469 sed "s/^/$as_me: WARNING: /" >&2
12472 echo "$as_me:$LINENO: checking for $ac_header" >&5
12473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12477 eval "$as_ac_Header=\$ac_header_preproc"
12479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12484 cat >>confdefs.h <<_ACEOF
12485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12493 echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
12494 echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6
12495 if test "${fu_cv_sys_truncating_statfs+set}" = set; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12498 cat >conftest.$ac_ext <<_ACEOF
12501 cat confdefs.h >>conftest.$ac_ext
12502 cat >>conftest.$ac_ext <<_ACEOF
12503 /* end confdefs.h. */
12505 #if !defined(sun) && !defined(__sun)
12506 choke -- this is a workaround for a Sun-specific problem
12508 #include <sys/types.h>
12509 #include <sys/vfs.h>
12513 struct statfs t; long c = *(t.f_spare);
12518 rm -f conftest.$ac_objext
12519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12520 (eval $ac_compile) 2>&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); } &&
12524 { ac_try='test -s conftest.$ac_objext'
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; }; then
12530 fu_cv_sys_truncating_statfs=yes
12532 echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.$ac_ext >&5
12535 fu_cv_sys_truncating_statfs=no
12537 rm -f conftest.$ac_objext conftest.$ac_ext
12540 if test $fu_cv_sys_truncating_statfs = yes; then
12542 cat >>confdefs.h <<\_ACEOF
12543 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
12547 echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
12548 echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6
12553 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12554 # for constant arguments. Useless!
12555 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12556 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12557 if test "${ac_cv_working_alloca_h+set}" = set; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12560 cat >conftest.$ac_ext <<_ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h. */
12566 #include <alloca.h>
12570 char *p = (char *) alloca (2 * sizeof (int));
12575 rm -f conftest.$ac_objext conftest$ac_exeext
12576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12577 (eval $ac_link) 2>&5
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); } &&
12581 { ac_try='test -s conftest$ac_exeext'
12582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583 (eval $ac_try) 2>&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; }; then
12587 ac_cv_working_alloca_h=yes
12589 echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12592 ac_cv_working_alloca_h=no
12594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12596 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12597 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12598 if test $ac_cv_working_alloca_h = yes; then
12600 cat >>confdefs.h <<\_ACEOF
12601 #define HAVE_ALLOCA_H 1
12606 echo "$as_me:$LINENO: checking for alloca" >&5
12607 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12608 if test "${ac_cv_func_alloca_works+set}" = set; then
12609 echo $ECHO_N "(cached) $ECHO_C" >&6
12611 cat >conftest.$ac_ext <<_ACEOF
12614 cat confdefs.h >>conftest.$ac_ext
12615 cat >>conftest.$ac_ext <<_ACEOF
12616 /* end confdefs.h. */
12618 # define alloca __builtin_alloca
12621 # include <malloc.h>
12622 # define alloca _alloca
12625 # include <alloca.h>
12630 # ifndef alloca /* predefined by HP cc +Olibcalls */
12641 char *p = (char *) alloca (1);
12646 rm -f conftest.$ac_objext conftest$ac_exeext
12647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12648 (eval $ac_link) 2>&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } &&
12652 { ac_try='test -s conftest$ac_exeext'
12653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654 (eval $ac_try) 2>&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; }; then
12658 ac_cv_func_alloca_works=yes
12660 echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12663 ac_cv_func_alloca_works=no
12665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12667 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12668 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12670 if test $ac_cv_func_alloca_works = yes; then
12672 cat >>confdefs.h <<\_ACEOF
12673 #define HAVE_ALLOCA 1
12677 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12678 # that cause trouble. Some versions do not even contain alloca or
12679 # contain a buggy version. If you still want to use their alloca,
12680 # use ar to extract alloca.o from them instead of compiling alloca.c.
12682 ALLOCA=alloca.$ac_objext
12684 cat >>confdefs.h <<\_ACEOF
12689 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12690 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12691 if test "${ac_cv_os_cray+set}" = set; then
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12694 cat >conftest.$ac_ext <<_ACEOF
12697 cat confdefs.h >>conftest.$ac_ext
12698 cat >>conftest.$ac_ext <<_ACEOF
12699 /* end confdefs.h. */
12700 #if defined(CRAY) && ! defined(CRAY2)
12707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12708 $EGREP "webecray" >/dev/null 2>&1; then
12716 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12717 echo "${ECHO_T}$ac_cv_os_cray" >&6
12718 if test $ac_cv_os_cray = yes; then
12719 for ac_func in _getb67 GETB67 getb67; do
12720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12721 echo "$as_me:$LINENO: checking for $ac_func" >&5
12722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12723 if eval "test \"\${$as_ac_var+set}\" = set"; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12726 cat >conftest.$ac_ext <<_ACEOF
12729 cat confdefs.h >>conftest.$ac_ext
12730 cat >>conftest.$ac_ext <<_ACEOF
12731 /* end confdefs.h. */
12732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12734 #define $ac_func innocuous_$ac_func
12736 /* System header to define __stub macros and hopefully few prototypes,
12737 which can conflict with char $ac_func (); below.
12738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12739 <limits.h> exists even on freestanding compilers. */
12742 # include <limits.h>
12744 # include <assert.h>
12749 /* Override any gcc2 internal prototype to avoid an error. */
12754 /* We use char because int might match the return type of a gcc2
12755 builtin and then its argument prototype would still apply. */
12757 /* The GNU C library defines this for functions which it implements
12758 to always fail with ENOSYS. Some functions are actually named
12759 something starting with __ and the normal name is an alias. */
12760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12763 char (*f) () = $ac_func;
12772 return f != $ac_func;
12777 rm -f conftest.$ac_objext conftest$ac_exeext
12778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12779 (eval $ac_link) 2>&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } &&
12783 { ac_try='test -s conftest$ac_exeext'
12784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12785 (eval $ac_try) 2>&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); }; }; then
12789 eval "$as_ac_var=yes"
12791 echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.$ac_ext >&5
12794 eval "$as_ac_var=no"
12796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12800 if test `eval echo '${'$as_ac_var'}'` = yes; then
12802 cat >>confdefs.h <<_ACEOF
12803 #define CRAY_STACKSEG_END $ac_func
12812 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12813 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12814 if test "${ac_cv_c_stack_direction+set}" = set; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12817 if test "$cross_compiling" = yes; then
12818 ac_cv_c_stack_direction=0
12820 cat >conftest.$ac_ext <<_ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h. */
12827 find_stack_direction ()
12829 static char *addr = 0;
12834 return find_stack_direction ();
12837 return (&dummy > addr) ? 1 : -1;
12843 exit (find_stack_direction () < 0);
12846 rm -f conftest$ac_exeext
12847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12848 (eval $ac_link) 2>&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
12857 ac_cv_c_stack_direction=1
12859 echo "$as_me: program exited with status $ac_status" >&5
12860 echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12863 ( exit $ac_status )
12864 ac_cv_c_stack_direction=-1
12866 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12869 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12870 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12872 cat >>confdefs.h <<_ACEOF
12873 #define STACK_DIRECTION $ac_cv_c_stack_direction
12884 if test $ac_cv_func_alloca_works = no; then
12899 # Define an additional variable used in the Makefile substitution.
12901 cat >conftest.$ac_ext <<_ACEOF
12904 cat confdefs.h >>conftest.$ac_ext
12905 cat >>conftest.$ac_ext <<_ACEOF
12906 /* end confdefs.h. */
12908 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
12913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12914 $EGREP "Need own alloca" >/dev/null 2>&1; then
12925 for ac_func in atexit
12927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12928 echo "$as_me:$LINENO: checking for $ac_func" >&5
12929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12930 if eval "test \"\${$as_ac_var+set}\" = set"; then
12931 echo $ECHO_N "(cached) $ECHO_C" >&6
12933 cat >conftest.$ac_ext <<_ACEOF
12936 cat confdefs.h >>conftest.$ac_ext
12937 cat >>conftest.$ac_ext <<_ACEOF
12938 /* end confdefs.h. */
12939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12941 #define $ac_func innocuous_$ac_func
12943 /* System header to define __stub macros and hopefully few prototypes,
12944 which can conflict with char $ac_func (); below.
12945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12946 <limits.h> exists even on freestanding compilers. */
12949 # include <limits.h>
12951 # include <assert.h>
12956 /* Override any gcc2 internal prototype to avoid an error. */
12961 /* We use char because int might match the return type of a gcc2
12962 builtin and then its argument prototype would still apply. */
12964 /* The GNU C library defines this for functions which it implements
12965 to always fail with ENOSYS. Some functions are actually named
12966 something starting with __ and the normal name is an alias. */
12967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12970 char (*f) () = $ac_func;
12979 return f != $ac_func;
12984 rm -f conftest.$ac_objext conftest$ac_exeext
12985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12986 (eval $ac_link) 2>&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); } &&
12990 { ac_try='test -s conftest$ac_exeext'
12991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992 (eval $ac_try) 2>&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
12996 eval "$as_ac_var=yes"
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13001 eval "$as_ac_var=no"
13003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13007 if test `eval echo '${'$as_ac_var'}'` = yes; then
13008 cat >>confdefs.h <<_ACEOF
13009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13013 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13018 if test $ac_cv_func_atexit = no; then
13026 for ac_func in dup2
13028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13029 echo "$as_me:$LINENO: checking for $ac_func" >&5
13030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13031 if eval "test \"\${$as_ac_var+set}\" = set"; then
13032 echo $ECHO_N "(cached) $ECHO_C" >&6
13034 cat >conftest.$ac_ext <<_ACEOF
13037 cat confdefs.h >>conftest.$ac_ext
13038 cat >>conftest.$ac_ext <<_ACEOF
13039 /* end confdefs.h. */
13040 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13042 #define $ac_func innocuous_$ac_func
13044 /* System header to define __stub macros and hopefully few prototypes,
13045 which can conflict with char $ac_func (); below.
13046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13047 <limits.h> exists even on freestanding compilers. */
13050 # include <limits.h>
13052 # include <assert.h>
13057 /* Override any gcc2 internal prototype to avoid an error. */
13062 /* We use char because int might match the return type of a gcc2
13063 builtin and then its argument prototype would still apply. */
13065 /* The GNU C library defines this for functions which it implements
13066 to always fail with ENOSYS. Some functions are actually named
13067 something starting with __ and the normal name is an alias. */
13068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13071 char (*f) () = $ac_func;
13080 return f != $ac_func;
13085 rm -f conftest.$ac_objext conftest$ac_exeext
13086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13087 (eval $ac_link) 2>&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); } &&
13091 { ac_try='test -s conftest$ac_exeext'
13092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13093 (eval $ac_try) 2>&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); }; }; then
13097 eval "$as_ac_var=yes"
13099 echo "$as_me: failed program was:" >&5
13100 sed 's/^/| /' conftest.$ac_ext >&5
13102 eval "$as_ac_var=no"
13104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13107 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13108 if test `eval echo '${'$as_ac_var'}'` = yes; then
13109 cat >>confdefs.h <<_ACEOF
13110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13114 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13119 if test $ac_cv_func_dup2 = no; then
13134 echo "$as_me:$LINENO: checking for getgroups" >&5
13135 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
13136 if test "${ac_cv_func_getgroups+set}" = set; then
13137 echo $ECHO_N "(cached) $ECHO_C" >&6
13139 cat >conftest.$ac_ext <<_ACEOF
13142 cat confdefs.h >>conftest.$ac_ext
13143 cat >>conftest.$ac_ext <<_ACEOF
13144 /* end confdefs.h. */
13145 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
13146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13147 #define getgroups innocuous_getgroups
13149 /* System header to define __stub macros and hopefully few prototypes,
13150 which can conflict with char getgroups (); below.
13151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13152 <limits.h> exists even on freestanding compilers. */
13155 # include <limits.h>
13157 # include <assert.h>
13162 /* Override any gcc2 internal prototype to avoid an error. */
13167 /* We use char because int might match the return type of a gcc2
13168 builtin and then its argument prototype would still apply. */
13170 /* The GNU C library defines this for functions which it implements
13171 to always fail with ENOSYS. Some functions are actually named
13172 something starting with __ and the normal name is an alias. */
13173 #if defined (__stub_getgroups) || defined (__stub___getgroups)
13176 char (*f) () = getgroups;
13185 return f != getgroups;
13190 rm -f conftest.$ac_objext conftest$ac_exeext
13191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13192 (eval $ac_link) 2>&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } &&
13196 { ac_try='test -s conftest$ac_exeext'
13197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198 (eval $ac_try) 2>&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; }; then
13202 ac_cv_func_getgroups=yes
13204 echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13207 ac_cv_func_getgroups=no
13209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13211 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
13212 echo "${ECHO_T}$ac_cv_func_getgroups" >&6
13215 # If we don't yet have getgroups, see if it's in -lbsd.
13216 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
13218 if test $ac_cv_func_getgroups = no; then
13219 echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
13220 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
13221 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
13222 echo $ECHO_N "(cached) $ECHO_C" >&6
13224 ac_check_lib_save_LIBS=$LIBS
13226 cat >conftest.$ac_ext <<_ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h. */
13233 /* Override any gcc2 internal prototype to avoid an error. */
13237 /* We use char because int might match the return type of a gcc2
13238 builtin and then its argument prototype would still apply. */
13248 rm -f conftest.$ac_objext conftest$ac_exeext
13249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13250 (eval $ac_link) 2>&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); } &&
13254 { ac_try='test -s conftest$ac_exeext'
13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256 (eval $ac_try) 2>&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
13260 ac_cv_lib_bsd_getgroups=yes
13262 echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13265 ac_cv_lib_bsd_getgroups=no
13267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13268 LIBS=$ac_check_lib_save_LIBS
13270 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
13271 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
13272 if test $ac_cv_lib_bsd_getgroups = yes; then
13273 GETGROUPS_LIB=-lbsd
13278 # Run the program to test the functionality of the system-supplied
13279 # getgroups function only if there is such a function.
13280 if test $ac_cv_func_getgroups = yes; then
13281 echo "$as_me:$LINENO: checking for working getgroups" >&5
13282 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
13283 if test "${ac_cv_func_getgroups_works+set}" = set; then
13284 echo $ECHO_N "(cached) $ECHO_C" >&6
13286 if test "$cross_compiling" = yes; then
13287 ac_cv_func_getgroups_works=no
13289 cat >conftest.$ac_ext <<_ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13295 $ac_includes_default
13299 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
13300 exit (getgroups (0, 0) == -1 ? 1 : 0);
13305 rm -f conftest$ac_exeext
13306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13307 (eval $ac_link) 2>&5
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13312 (eval $ac_try) 2>&5
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }; }; then
13316 ac_cv_func_getgroups_works=yes
13318 echo "$as_me: program exited with status $ac_status" >&5
13319 echo "$as_me: failed program was:" >&5
13320 sed 's/^/| /' conftest.$ac_ext >&5
13322 ( exit $ac_status )
13323 ac_cv_func_getgroups_works=no
13325 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13329 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
13330 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
13331 if test $ac_cv_func_getgroups_works = yes; then
13333 cat >>confdefs.h <<\_ACEOF
13334 #define HAVE_GETGROUPS 1
13344 echo "$as_me:$LINENO: checking whether euidaccess is declared" >&5
13345 echo $ECHO_N "checking whether euidaccess is declared... $ECHO_C" >&6
13346 if test "${ac_cv_have_decl_euidaccess+set}" = set; then
13347 echo $ECHO_N "(cached) $ECHO_C" >&6
13349 cat >conftest.$ac_ext <<_ACEOF
13352 cat confdefs.h >>conftest.$ac_ext
13353 cat >>conftest.$ac_ext <<_ACEOF
13354 /* end confdefs.h. */
13355 $ac_includes_default
13360 char *p = (char *) euidaccess;
13367 rm -f conftest.$ac_objext
13368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13369 (eval $ac_compile) 2>&5
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); } &&
13373 { ac_try='test -s conftest.$ac_objext'
13374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13375 (eval $ac_try) 2>&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); }; }; then
13379 ac_cv_have_decl_euidaccess=yes
13381 echo "$as_me: failed program was:" >&5
13382 sed 's/^/| /' conftest.$ac_ext >&5
13384 ac_cv_have_decl_euidaccess=no
13386 rm -f conftest.$ac_objext conftest.$ac_ext
13388 echo "$as_me:$LINENO: result: $ac_cv_have_decl_euidaccess" >&5
13389 echo "${ECHO_T}$ac_cv_have_decl_euidaccess" >&6
13390 if test $ac_cv_have_decl_euidaccess = yes; then
13392 cat >>confdefs.h <<_ACEOF
13393 #define HAVE_DECL_EUIDACCESS 1
13398 cat >>confdefs.h <<_ACEOF
13399 #define HAVE_DECL_EUIDACCESS 0
13407 for ac_func in euidaccess
13409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13410 echo "$as_me:$LINENO: checking for $ac_func" >&5
13411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13412 if eval "test \"\${$as_ac_var+set}\" = set"; then
13413 echo $ECHO_N "(cached) $ECHO_C" >&6
13415 cat >conftest.$ac_ext <<_ACEOF
13418 cat confdefs.h >>conftest.$ac_ext
13419 cat >>conftest.$ac_ext <<_ACEOF
13420 /* end confdefs.h. */
13421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13423 #define $ac_func innocuous_$ac_func
13425 /* System header to define __stub macros and hopefully few prototypes,
13426 which can conflict with char $ac_func (); below.
13427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13428 <limits.h> exists even on freestanding compilers. */
13431 # include <limits.h>
13433 # include <assert.h>
13438 /* Override any gcc2 internal prototype to avoid an error. */
13443 /* We use char because int might match the return type of a gcc2
13444 builtin and then its argument prototype would still apply. */
13446 /* The GNU C library defines this for functions which it implements
13447 to always fail with ENOSYS. Some functions are actually named
13448 something starting with __ and the normal name is an alias. */
13449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13452 char (*f) () = $ac_func;
13461 return f != $ac_func;
13466 rm -f conftest.$ac_objext conftest$ac_exeext
13467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13468 (eval $ac_link) 2>&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } &&
13472 { ac_try='test -s conftest$ac_exeext'
13473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 (eval $ac_try) 2>&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; }; then
13478 eval "$as_ac_var=yes"
13480 echo "$as_me: failed program was:" >&5
13481 sed 's/^/| /' conftest.$ac_ext >&5
13483 eval "$as_ac_var=no"
13485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13488 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13489 if test `eval echo '${'$as_ac_var'}'` = yes; then
13490 cat >>confdefs.h <<_ACEOF
13491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13495 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13500 if test $ac_cv_func_euidaccess = no; then
13513 echo "$as_me:$LINENO: checking for mbstate_t" >&5
13514 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
13515 if test "${ac_cv_type_mbstate_t+set}" = set; then
13516 echo $ECHO_N "(cached) $ECHO_C" >&6
13518 cat >conftest.$ac_ext <<_ACEOF
13521 cat confdefs.h >>conftest.$ac_ext
13522 cat >>conftest.$ac_ext <<_ACEOF
13523 /* end confdefs.h. */
13524 $ac_includes_default
13525 # include <wchar.h>
13529 mbstate_t x; return sizeof x;
13534 rm -f conftest.$ac_objext
13535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13536 (eval $ac_compile) 2>&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); } &&
13540 { ac_try='test -s conftest.$ac_objext'
13541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542 (eval $ac_try) 2>&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; }; then
13546 ac_cv_type_mbstate_t=yes
13548 echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.$ac_ext >&5
13551 ac_cv_type_mbstate_t=no
13553 rm -f conftest.$ac_objext conftest.$ac_ext
13555 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
13556 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
13557 if test $ac_cv_type_mbstate_t = yes; then
13559 cat >>confdefs.h <<\_ACEOF
13560 #define HAVE_MBSTATE_T 1
13565 cat >>confdefs.h <<\_ACEOF
13566 #define mbstate_t int
13574 echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
13575 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6
13576 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
13579 # Some versions of Solaris, SCO, and the GNU C Library
13580 # have a broken or incompatible fnmatch.
13581 # So we run a test program. If we are cross-compiling, take no chance.
13582 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
13583 if test "$cross_compiling" = yes; then
13584 ac_cv_func_fnmatch_gnu=cross
13586 cat >conftest.$ac_ext <<_ACEOF
13589 cat confdefs.h >>conftest.$ac_ext
13590 cat >>conftest.$ac_ext <<_ACEOF
13591 /* end confdefs.h. */
13593 # include <stdlib.h>
13594 # include <fnmatch.h>
13595 # define y(a, b, c) (fnmatch (a, b, c) == 0)
13596 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
13602 (!(y ("a*", "abc", 0)
13603 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
13604 && y ("a\\\\bc", "abc", 0)
13605 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
13606 && y ("*x", ".x", 0)
13607 && n ("*x", ".x", FNM_PERIOD)
13608 && y ("xxXX", "xXxX", FNM_CASEFOLD)
13609 && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
13610 && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
13611 && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
13612 && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
13613 && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)));
13618 rm -f conftest$ac_exeext
13619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13620 (eval $ac_link) 2>&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; }; then
13629 ac_cv_func_fnmatch_gnu=yes
13631 echo "$as_me: program exited with status $ac_status" >&5
13632 echo "$as_me: failed program was:" >&5
13633 sed 's/^/| /' conftest.$ac_ext >&5
13635 ( exit $ac_status )
13636 ac_cv_func_fnmatch_gnu=no
13638 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13641 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
13642 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6
13643 if test $ac_cv_func_fnmatch_gnu = yes; then
13644 rm -f lib/fnmatch.h
13646 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13647 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13648 if test "${ac_cv_have_decl_getenv+set}" = set; then
13649 echo $ECHO_N "(cached) $ECHO_C" >&6
13651 cat >conftest.$ac_ext <<_ACEOF
13654 cat confdefs.h >>conftest.$ac_ext
13655 cat >>conftest.$ac_ext <<_ACEOF
13656 /* end confdefs.h. */
13657 $ac_includes_default
13662 char *p = (char *) getenv;
13669 rm -f conftest.$ac_objext
13670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13671 (eval $ac_compile) 2>&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } &&
13675 { ac_try='test -s conftest.$ac_objext'
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }; then
13681 ac_cv_have_decl_getenv=yes
13683 echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13686 ac_cv_have_decl_getenv=no
13688 rm -f conftest.$ac_objext conftest.$ac_ext
13690 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13691 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13692 if test $ac_cv_have_decl_getenv = yes; then
13694 cat >>confdefs.h <<_ACEOF
13695 #define HAVE_DECL_GETENV 1
13700 cat >>confdefs.h <<_ACEOF
13701 #define HAVE_DECL_GETENV 0
13712 for ac_func in btowc mbsrtowcs mempcpy wmempcpy
13714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13715 echo "$as_me:$LINENO: checking for $ac_func" >&5
13716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13717 if eval "test \"\${$as_ac_var+set}\" = set"; then
13718 echo $ECHO_N "(cached) $ECHO_C" >&6
13720 cat >conftest.$ac_ext <<_ACEOF
13723 cat confdefs.h >>conftest.$ac_ext
13724 cat >>conftest.$ac_ext <<_ACEOF
13725 /* end confdefs.h. */
13726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13728 #define $ac_func innocuous_$ac_func
13730 /* System header to define __stub macros and hopefully few prototypes,
13731 which can conflict with char $ac_func (); below.
13732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13733 <limits.h> exists even on freestanding compilers. */
13736 # include <limits.h>
13738 # include <assert.h>
13743 /* Override any gcc2 internal prototype to avoid an error. */
13748 /* We use char because int might match the return type of a gcc2
13749 builtin and then its argument prototype would still apply. */
13751 /* The GNU C library defines this for functions which it implements
13752 to always fail with ENOSYS. Some functions are actually named
13753 something starting with __ and the normal name is an alias. */
13754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13757 char (*f) () = $ac_func;
13766 return f != $ac_func;
13771 rm -f conftest.$ac_objext conftest$ac_exeext
13772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13773 (eval $ac_link) 2>&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } &&
13777 { ac_try='test -s conftest$ac_exeext'
13778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779 (eval $ac_try) 2>&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); }; }; then
13783 eval "$as_ac_var=yes"
13785 echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.$ac_ext >&5
13788 eval "$as_ac_var=no"
13790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13793 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13794 if test `eval echo '${'$as_ac_var'}'` = yes; then
13795 cat >>confdefs.h <<_ACEOF
13796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13804 for ac_header in wchar.h wctype.h
13806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13808 echo "$as_me:$LINENO: checking for $ac_header" >&5
13809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13811 echo $ECHO_N "(cached) $ECHO_C" >&6
13813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13816 # Is the header compilable?
13817 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13819 cat >conftest.$ac_ext <<_ACEOF
13822 cat confdefs.h >>conftest.$ac_ext
13823 cat >>conftest.$ac_ext <<_ACEOF
13824 /* end confdefs.h. */
13825 $ac_includes_default
13826 #include <$ac_header>
13828 rm -f conftest.$ac_objext
13829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13830 (eval $ac_compile) 2>&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); } &&
13834 { ac_try='test -s conftest.$ac_objext'
13835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836 (eval $ac_try) 2>&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; }; then
13840 ac_header_compiler=yes
13842 echo "$as_me: failed program was:" >&5
13843 sed 's/^/| /' conftest.$ac_ext >&5
13845 ac_header_compiler=no
13847 rm -f conftest.$ac_objext conftest.$ac_ext
13848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13849 echo "${ECHO_T}$ac_header_compiler" >&6
13851 # Is the header present?
13852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13854 cat >conftest.$ac_ext <<_ACEOF
13857 cat confdefs.h >>conftest.$ac_ext
13858 cat >>conftest.$ac_ext <<_ACEOF
13859 /* end confdefs.h. */
13860 #include <$ac_header>
13862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13865 grep -v '^ *+' conftest.er1 >conftest.err
13867 cat conftest.err >&5
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); } >/dev/null; then
13870 if test -s conftest.err; then
13871 ac_cpp_err=$ac_c_preproc_warn_flag
13878 if test -z "$ac_cpp_err"; then
13879 ac_header_preproc=yes
13881 echo "$as_me: failed program was:" >&5
13882 sed 's/^/| /' conftest.$ac_ext >&5
13884 ac_header_preproc=no
13886 rm -f conftest.err conftest.$ac_ext
13887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13888 echo "${ECHO_T}$ac_header_preproc" >&6
13890 # So? What about this header?
13891 case $ac_header_compiler:$ac_header_preproc in
13893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13897 ac_header_preproc=yes
13900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13903 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13907 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13914 ## ------------------------------------ ##
13915 ## Report this to bug-coreutils@gnu.org ##
13916 ## ------------------------------------ ##
13919 sed "s/^/$as_me: WARNING: /" >&2
13922 echo "$as_me:$LINENO: checking for $ac_header" >&5
13923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13927 eval "$as_ac_Header=\$ac_header_preproc"
13929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13934 cat >>confdefs.h <<_ACEOF
13935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13942 LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
13943 FNMATCH_H=fnmatch.h
13945 cat >>confdefs.h <<\_ACEOF
13946 #define fnmatch rpl_fnmatch
13953 if test $ac_cv_func_fnmatch_gnu != yes; then
13968 cat >>confdefs.h <<\_ACEOF
13969 #define fnmatch gnu_fnmatch
13977 for ac_func in gethostname
13979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13980 echo "$as_me:$LINENO: checking for $ac_func" >&5
13981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13982 if eval "test \"\${$as_ac_var+set}\" = set"; then
13983 echo $ECHO_N "(cached) $ECHO_C" >&6
13985 cat >conftest.$ac_ext <<_ACEOF
13988 cat confdefs.h >>conftest.$ac_ext
13989 cat >>conftest.$ac_ext <<_ACEOF
13990 /* end confdefs.h. */
13991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13993 #define $ac_func innocuous_$ac_func
13995 /* System header to define __stub macros and hopefully few prototypes,
13996 which can conflict with char $ac_func (); below.
13997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13998 <limits.h> exists even on freestanding compilers. */
14001 # include <limits.h>
14003 # include <assert.h>
14008 /* Override any gcc2 internal prototype to avoid an error. */
14013 /* We use char because int might match the return type of a gcc2
14014 builtin and then its argument prototype would still apply. */
14016 /* The GNU C library defines this for functions which it implements
14017 to always fail with ENOSYS. Some functions are actually named
14018 something starting with __ and the normal name is an alias. */
14019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14022 char (*f) () = $ac_func;
14031 return f != $ac_func;
14036 rm -f conftest.$ac_objext conftest$ac_exeext
14037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14038 (eval $ac_link) 2>&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); } &&
14042 { ac_try='test -s conftest$ac_exeext'
14043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14044 (eval $ac_try) 2>&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); }; }; then
14048 eval "$as_ac_var=yes"
14050 echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14053 eval "$as_ac_var=no"
14055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14059 if test `eval echo '${'$as_ac_var'}'` = yes; then
14060 cat >>confdefs.h <<_ACEOF
14061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14065 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14070 if test $ac_cv_func_gethostname = no; then
14073 for ac_func in uname
14075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14076 echo "$as_me:$LINENO: checking for $ac_func" >&5
14077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14078 if eval "test \"\${$as_ac_var+set}\" = set"; then
14079 echo $ECHO_N "(cached) $ECHO_C" >&6
14081 cat >conftest.$ac_ext <<_ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h. */
14087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14089 #define $ac_func innocuous_$ac_func
14091 /* System header to define __stub macros and hopefully few prototypes,
14092 which can conflict with char $ac_func (); below.
14093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14094 <limits.h> exists even on freestanding compilers. */
14097 # include <limits.h>
14099 # include <assert.h>
14104 /* Override any gcc2 internal prototype to avoid an error. */
14109 /* We use char because int might match the return type of a gcc2
14110 builtin and then its argument prototype would still apply. */
14112 /* The GNU C library defines this for functions which it implements
14113 to always fail with ENOSYS. Some functions are actually named
14114 something starting with __ and the normal name is an alias. */
14115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14118 char (*f) () = $ac_func;
14127 return f != $ac_func;
14132 rm -f conftest.$ac_objext conftest$ac_exeext
14133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14134 (eval $ac_link) 2>&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } &&
14138 { ac_try='test -s conftest$ac_exeext'
14139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140 (eval $ac_try) 2>&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; }; then
14144 eval "$as_ac_var=yes"
14146 echo "$as_me: failed program was:" >&5
14147 sed 's/^/| /' conftest.$ac_ext >&5
14149 eval "$as_ac_var=no"
14151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14155 if test `eval echo '${'$as_ac_var'}'` = yes; then
14156 cat >>confdefs.h <<_ACEOF
14157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14173 ac_have_func=no # yes means we've found a way to get the load average.
14189 for ac_header in mach/mach.h
14191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14193 echo "$as_me:$LINENO: checking for $ac_header" >&5
14194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14196 echo $ECHO_N "(cached) $ECHO_C" >&6
14198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14201 # Is the header compilable?
14202 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14204 cat >conftest.$ac_ext <<_ACEOF
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h. */
14210 $ac_includes_default
14211 #include <$ac_header>
14213 rm -f conftest.$ac_objext
14214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14215 (eval $ac_compile) 2>&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } &&
14219 { ac_try='test -s conftest.$ac_objext'
14220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14221 (eval $ac_try) 2>&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); }; }; then
14225 ac_header_compiler=yes
14227 echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.$ac_ext >&5
14230 ac_header_compiler=no
14232 rm -f conftest.$ac_objext conftest.$ac_ext
14233 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14234 echo "${ECHO_T}$ac_header_compiler" >&6
14236 # Is the header present?
14237 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14238 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14239 cat >conftest.$ac_ext <<_ACEOF
14242 cat confdefs.h >>conftest.$ac_ext
14243 cat >>conftest.$ac_ext <<_ACEOF
14244 /* end confdefs.h. */
14245 #include <$ac_header>
14247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14250 grep -v '^ *+' conftest.er1 >conftest.err
14252 cat conftest.err >&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); } >/dev/null; then
14255 if test -s conftest.err; then
14256 ac_cpp_err=$ac_c_preproc_warn_flag
14263 if test -z "$ac_cpp_err"; then
14264 ac_header_preproc=yes
14266 echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14269 ac_header_preproc=no
14271 rm -f conftest.err conftest.$ac_ext
14272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14273 echo "${ECHO_T}$ac_header_preproc" >&6
14275 # So? What about this header?
14276 case $ac_header_compiler:$ac_header_preproc in
14278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14282 ac_header_preproc=yes
14285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14292 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14299 ## ------------------------------------ ##
14300 ## Report this to bug-coreutils@gnu.org ##
14301 ## ------------------------------------ ##
14304 sed "s/^/$as_me: WARNING: /" >&2
14307 echo "$as_me:$LINENO: checking for $ac_header" >&5
14308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14310 echo $ECHO_N "(cached) $ECHO_C" >&6
14312 eval "$as_ac_Header=\$ac_header_preproc"
14314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14319 cat >>confdefs.h <<_ACEOF
14320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14328 for ac_func in setlocale
14330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14331 echo "$as_me:$LINENO: checking for $ac_func" >&5
14332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14333 if eval "test \"\${$as_ac_var+set}\" = set"; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
14336 cat >conftest.$ac_ext <<_ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h. */
14342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14344 #define $ac_func innocuous_$ac_func
14346 /* System header to define __stub macros and hopefully few prototypes,
14347 which can conflict with char $ac_func (); below.
14348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14349 <limits.h> exists even on freestanding compilers. */
14352 # include <limits.h>
14354 # include <assert.h>
14359 /* Override any gcc2 internal prototype to avoid an error. */
14364 /* We use char because int might match the return type of a gcc2
14365 builtin and then its argument prototype would still apply. */
14367 /* The GNU C library defines this for functions which it implements
14368 to always fail with ENOSYS. Some functions are actually named
14369 something starting with __ and the normal name is an alias. */
14370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14373 char (*f) () = $ac_func;
14382 return f != $ac_func;
14387 rm -f conftest.$ac_objext conftest$ac_exeext
14388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14389 (eval $ac_link) 2>&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); } &&
14393 { ac_try='test -s conftest$ac_exeext'
14394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14395 (eval $ac_try) 2>&5
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); }; }; then
14399 eval "$as_ac_var=yes"
14401 echo "$as_me: failed program was:" >&5
14402 sed 's/^/| /' conftest.$ac_ext >&5
14404 eval "$as_ac_var=no"
14406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14410 if test `eval echo '${'$as_ac_var'}'` = yes; then
14411 cat >>confdefs.h <<_ACEOF
14412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14419 # By default, expect to find getloadavg.c in $srcdir/.
14420 ac_lib_dir_getloadavg=$srcdir
14421 # But if there's an argument, DIR, expect to find getloadavg.c in $srcdir/DIR.
14422 ac_lib_dir_getloadavg=$srcdir/lib
14423 # Make sure getloadavg.c is where it belongs, at ./configure-time.
14424 test -f $ac_lib_dir_getloadavg/getloadavg.c \
14425 || { { echo "$as_me:$LINENO: error: getloadavg.c is not in $ac_lib_dir_getloadavg" >&5
14426 echo "$as_me: error: getloadavg.c is not in $ac_lib_dir_getloadavg" >&2;}
14427 { (exit 1); exit 1; }; }
14428 # FIXME: Add an autoconf-time test, too?
14432 # Check for getloadavg, but be sure not to touch the cache variable.
14433 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14434 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14435 if test "${ac_cv_func_getloadavg+set}" = set; then
14436 echo $ECHO_N "(cached) $ECHO_C" >&6
14438 cat >conftest.$ac_ext <<_ACEOF
14441 cat confdefs.h >>conftest.$ac_ext
14442 cat >>conftest.$ac_ext <<_ACEOF
14443 /* end confdefs.h. */
14444 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14446 #define getloadavg innocuous_getloadavg
14448 /* System header to define __stub macros and hopefully few prototypes,
14449 which can conflict with char getloadavg (); below.
14450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14451 <limits.h> exists even on freestanding compilers. */
14454 # include <limits.h>
14456 # include <assert.h>
14461 /* Override any gcc2 internal prototype to avoid an error. */
14466 /* We use char because int might match the return type of a gcc2
14467 builtin and then its argument prototype would still apply. */
14468 char getloadavg ();
14469 /* The GNU C library defines this for functions which it implements
14470 to always fail with ENOSYS. Some functions are actually named
14471 something starting with __ and the normal name is an alias. */
14472 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14475 char (*f) () = getloadavg;
14484 return f != getloadavg;
14489 rm -f conftest.$ac_objext conftest$ac_exeext
14490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14491 (eval $ac_link) 2>&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); } &&
14495 { ac_try='test -s conftest$ac_exeext'
14496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14497 (eval $ac_try) 2>&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; }; then
14501 ac_cv_func_getloadavg=yes
14503 echo "$as_me: failed program was:" >&5
14504 sed 's/^/| /' conftest.$ac_ext >&5
14506 ac_cv_func_getloadavg=no
14508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14510 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14511 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14512 if test $ac_cv_func_getloadavg = yes; then
14517 ) && ac_have_func=yes
14519 # On HPUX9, an unprivileged user can get load averages through this function.
14521 for ac_func in pstat_getdynamic
14523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14524 echo "$as_me:$LINENO: checking for $ac_func" >&5
14525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14526 if eval "test \"\${$as_ac_var+set}\" = set"; then
14527 echo $ECHO_N "(cached) $ECHO_C" >&6
14529 cat >conftest.$ac_ext <<_ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h. */
14535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14537 #define $ac_func innocuous_$ac_func
14539 /* System header to define __stub macros and hopefully few prototypes,
14540 which can conflict with char $ac_func (); below.
14541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14542 <limits.h> exists even on freestanding compilers. */
14545 # include <limits.h>
14547 # include <assert.h>
14552 /* Override any gcc2 internal prototype to avoid an error. */
14557 /* We use char because int might match the return type of a gcc2
14558 builtin and then its argument prototype would still apply. */
14560 /* The GNU C library defines this for functions which it implements
14561 to always fail with ENOSYS. Some functions are actually named
14562 something starting with __ and the normal name is an alias. */
14563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14566 char (*f) () = $ac_func;
14575 return f != $ac_func;
14580 rm -f conftest.$ac_objext conftest$ac_exeext
14581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14582 (eval $ac_link) 2>&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); } &&
14586 { ac_try='test -s conftest$ac_exeext'
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; }; then
14592 eval "$as_ac_var=yes"
14594 echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14597 eval "$as_ac_var=no"
14599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14603 if test `eval echo '${'$as_ac_var'}'` = yes; then
14604 cat >>confdefs.h <<_ACEOF
14605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14612 # Solaris has libkstat which does not require root.
14614 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14615 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14616 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14619 ac_check_lib_save_LIBS=$LIBS
14620 LIBS="-lkstat $LIBS"
14621 cat >conftest.$ac_ext <<_ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h. */
14628 /* Override any gcc2 internal prototype to avoid an error. */
14632 /* We use char because int might match the return type of a gcc2
14633 builtin and then its argument prototype would still apply. */
14634 char kstat_open ();
14643 rm -f conftest.$ac_objext conftest$ac_exeext
14644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14645 (eval $ac_link) 2>&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); } &&
14649 { ac_try='test -s conftest$ac_exeext'
14650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651 (eval $ac_try) 2>&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; }; then
14655 ac_cv_lib_kstat_kstat_open=yes
14657 echo "$as_me: failed program was:" >&5
14658 sed 's/^/| /' conftest.$ac_ext >&5
14660 ac_cv_lib_kstat_kstat_open=no
14662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14663 LIBS=$ac_check_lib_save_LIBS
14665 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14666 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14667 if test $ac_cv_lib_kstat_kstat_open = yes; then
14668 cat >>confdefs.h <<_ACEOF
14669 #define HAVE_LIBKSTAT 1
14672 LIBS="-lkstat $LIBS"
14676 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
14678 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14679 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14680 # to get the right answer into the cache.
14681 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14682 if test $ac_have_func = no; then
14683 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14684 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14685 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14686 echo $ECHO_N "(cached) $ECHO_C" >&6
14688 ac_check_lib_save_LIBS=$LIBS
14690 cat >conftest.$ac_ext <<_ACEOF
14693 cat confdefs.h >>conftest.$ac_ext
14694 cat >>conftest.$ac_ext <<_ACEOF
14695 /* end confdefs.h. */
14697 /* Override any gcc2 internal prototype to avoid an error. */
14701 /* We use char because int might match the return type of a gcc2
14702 builtin and then its argument prototype would still apply. */
14712 rm -f conftest.$ac_objext conftest$ac_exeext
14713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14714 (eval $ac_link) 2>&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); } &&
14718 { ac_try='test -s conftest$ac_exeext'
14719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720 (eval $ac_try) 2>&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; }; then
14724 ac_cv_lib_elf_elf_begin=yes
14726 echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.$ac_ext >&5
14729 ac_cv_lib_elf_elf_begin=no
14731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14732 LIBS=$ac_check_lib_save_LIBS
14734 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
14735 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
14736 if test $ac_cv_lib_elf_elf_begin = yes; then
14741 if test $ac_have_func = no; then
14742 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
14743 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
14744 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
14745 echo $ECHO_N "(cached) $ECHO_C" >&6
14747 ac_check_lib_save_LIBS=$LIBS
14749 cat >conftest.$ac_ext <<_ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14756 /* Override any gcc2 internal prototype to avoid an error. */
14760 /* We use char because int might match the return type of a gcc2
14761 builtin and then its argument prototype would still apply. */
14771 rm -f conftest.$ac_objext conftest$ac_exeext
14772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14773 (eval $ac_link) 2>&5
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); } &&
14777 { ac_try='test -s conftest$ac_exeext'
14778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779 (eval $ac_try) 2>&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); }; }; then
14783 ac_cv_lib_kvm_kvm_open=yes
14785 echo "$as_me: failed program was:" >&5
14786 sed 's/^/| /' conftest.$ac_ext >&5
14788 ac_cv_lib_kvm_kvm_open=no
14790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14791 LIBS=$ac_check_lib_save_LIBS
14793 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
14794 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14795 if test $ac_cv_lib_kvm_kvm_open = yes; then
14799 # Check for the 4.4BSD definition of getloadavg.
14800 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
14801 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
14802 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
14803 echo $ECHO_N "(cached) $ECHO_C" >&6
14805 ac_check_lib_save_LIBS=$LIBS
14806 LIBS="-lutil $LIBS"
14807 cat >conftest.$ac_ext <<_ACEOF
14810 cat confdefs.h >>conftest.$ac_ext
14811 cat >>conftest.$ac_ext <<_ACEOF
14812 /* end confdefs.h. */
14814 /* Override any gcc2 internal prototype to avoid an error. */
14818 /* We use char because int might match the return type of a gcc2
14819 builtin and then its argument prototype would still apply. */
14820 char getloadavg ();
14829 rm -f conftest.$ac_objext conftest$ac_exeext
14830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14831 (eval $ac_link) 2>&5
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); } &&
14835 { ac_try='test -s conftest$ac_exeext'
14836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14837 (eval $ac_try) 2>&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); }; }; then
14841 ac_cv_lib_util_getloadavg=yes
14843 echo "$as_me: failed program was:" >&5
14844 sed 's/^/| /' conftest.$ac_ext >&5
14846 ac_cv_lib_util_getloadavg=no
14848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14849 LIBS=$ac_check_lib_save_LIBS
14851 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
14852 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
14853 if test $ac_cv_lib_util_getloadavg = yes; then
14854 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
14859 if test $ac_have_func = no; then
14860 # There is a commonly available library for RS/6000 AIX.
14861 # Since it is not a standard part of AIX, it might be installed locally.
14862 ac_getloadavg_LIBS=$LIBS
14863 LIBS="-L/usr/local/lib $LIBS"
14864 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
14865 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
14866 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
14867 echo $ECHO_N "(cached) $ECHO_C" >&6
14869 ac_check_lib_save_LIBS=$LIBS
14870 LIBS="-lgetloadavg $LIBS"
14871 cat >conftest.$ac_ext <<_ACEOF
14874 cat confdefs.h >>conftest.$ac_ext
14875 cat >>conftest.$ac_ext <<_ACEOF
14876 /* end confdefs.h. */
14878 /* Override any gcc2 internal prototype to avoid an error. */
14882 /* We use char because int might match the return type of a gcc2
14883 builtin and then its argument prototype would still apply. */
14884 char getloadavg ();
14893 rm -f conftest.$ac_objext conftest$ac_exeext
14894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14895 (eval $ac_link) 2>&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); } &&
14899 { ac_try='test -s conftest$ac_exeext'
14900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901 (eval $ac_try) 2>&5
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; }; then
14905 ac_cv_lib_getloadavg_getloadavg=yes
14907 echo "$as_me: failed program was:" >&5
14908 sed 's/^/| /' conftest.$ac_ext >&5
14910 ac_cv_lib_getloadavg_getloadavg=no
14912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14913 LIBS=$ac_check_lib_save_LIBS
14915 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14916 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
14917 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
14918 LIBS="-lgetloadavg $LIBS"
14920 LIBS=$ac_getloadavg_LIBS
14925 # Make sure it is really in the library, if we think we found it,
14926 # otherwise set up the replacement function.
14928 for ac_func in getloadavg
14930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14931 echo "$as_me:$LINENO: checking for $ac_func" >&5
14932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14933 if eval "test \"\${$as_ac_var+set}\" = set"; then
14934 echo $ECHO_N "(cached) $ECHO_C" >&6
14936 cat >conftest.$ac_ext <<_ACEOF
14939 cat confdefs.h >>conftest.$ac_ext
14940 cat >>conftest.$ac_ext <<_ACEOF
14941 /* end confdefs.h. */
14942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14944 #define $ac_func innocuous_$ac_func
14946 /* System header to define __stub macros and hopefully few prototypes,
14947 which can conflict with char $ac_func (); below.
14948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14949 <limits.h> exists even on freestanding compilers. */
14952 # include <limits.h>
14954 # include <assert.h>
14959 /* Override any gcc2 internal prototype to avoid an error. */
14964 /* We use char because int might match the return type of a gcc2
14965 builtin and then its argument prototype would still apply. */
14967 /* The GNU C library defines this for functions which it implements
14968 to always fail with ENOSYS. Some functions are actually named
14969 something starting with __ and the normal name is an alias. */
14970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14973 char (*f) () = $ac_func;
14982 return f != $ac_func;
14987 rm -f conftest.$ac_objext conftest$ac_exeext
14988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14989 (eval $ac_link) 2>&5
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); } &&
14993 { ac_try='test -s conftest$ac_exeext'
14994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14995 (eval $ac_try) 2>&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); }; }; then
14999 eval "$as_ac_var=yes"
15001 echo "$as_me: failed program was:" >&5
15002 sed 's/^/| /' conftest.$ac_ext >&5
15004 eval "$as_ac_var=no"
15006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15010 if test `eval echo '${'$as_ac_var'}'` = yes; then
15011 cat >>confdefs.h <<_ACEOF
15012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15016 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
15018 cat >>confdefs.h <<\_ACEOF
15019 #define C_GETLOADAVG 1
15022 # Figure out what our getloadavg.c needs.
15024 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15025 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15026 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15027 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15028 echo $ECHO_N "(cached) $ECHO_C" >&6
15030 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15031 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15033 # Is the header compilable?
15034 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15035 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15036 cat >conftest.$ac_ext <<_ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h. */
15042 $ac_includes_default
15043 #include <sys/dg_sys_info.h>
15045 rm -f conftest.$ac_objext
15046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15047 (eval $ac_compile) 2>&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); } &&
15051 { ac_try='test -s conftest.$ac_objext'
15052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15053 (eval $ac_try) 2>&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); }; }; then
15057 ac_header_compiler=yes
15059 echo "$as_me: failed program was:" >&5
15060 sed 's/^/| /' conftest.$ac_ext >&5
15062 ac_header_compiler=no
15064 rm -f conftest.$ac_objext conftest.$ac_ext
15065 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15066 echo "${ECHO_T}$ac_header_compiler" >&6
15068 # Is the header present?
15069 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15070 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15071 cat >conftest.$ac_ext <<_ACEOF
15074 cat confdefs.h >>conftest.$ac_ext
15075 cat >>conftest.$ac_ext <<_ACEOF
15076 /* end confdefs.h. */
15077 #include <sys/dg_sys_info.h>
15079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15082 grep -v '^ *+' conftest.er1 >conftest.err
15084 cat conftest.err >&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); } >/dev/null; then
15087 if test -s conftest.err; then
15088 ac_cpp_err=$ac_c_preproc_warn_flag
15095 if test -z "$ac_cpp_err"; then
15096 ac_header_preproc=yes
15098 echo "$as_me: failed program was:" >&5
15099 sed 's/^/| /' conftest.$ac_ext >&5
15101 ac_header_preproc=no
15103 rm -f conftest.err conftest.$ac_ext
15104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15105 echo "${ECHO_T}$ac_header_preproc" >&6
15107 # So? What about this header?
15108 case $ac_header_compiler:$ac_header_preproc in
15110 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15111 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15112 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15113 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15114 ac_header_preproc=yes
15117 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15118 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15119 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15120 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15121 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15122 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15123 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15124 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15125 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15126 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15127 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15128 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15131 ## ------------------------------------ ##
15132 ## Report this to bug-coreutils@gnu.org ##
15133 ## ------------------------------------ ##
15136 sed "s/^/$as_me: WARNING: /" >&2
15139 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15140 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15141 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15142 echo $ECHO_N "(cached) $ECHO_C" >&6
15144 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15146 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15147 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15150 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15153 cat >>confdefs.h <<\_ACEOF
15158 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15159 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15160 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15161 echo $ECHO_N "(cached) $ECHO_C" >&6
15163 ac_check_lib_save_LIBS=$LIBS
15165 cat >conftest.$ac_ext <<_ACEOF
15168 cat confdefs.h >>conftest.$ac_ext
15169 cat >>conftest.$ac_ext <<_ACEOF
15170 /* end confdefs.h. */
15172 /* Override any gcc2 internal prototype to avoid an error. */
15176 /* We use char because int might match the return type of a gcc2
15177 builtin and then its argument prototype would still apply. */
15178 char dg_sys_info ();
15187 rm -f conftest.$ac_objext conftest$ac_exeext
15188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15189 (eval $ac_link) 2>&5
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); } &&
15193 { ac_try='test -s conftest$ac_exeext'
15194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15195 (eval $ac_try) 2>&5
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); }; }; then
15199 ac_cv_lib_dgc_dg_sys_info=yes
15201 echo "$as_me: failed program was:" >&5
15202 sed 's/^/| /' conftest.$ac_ext >&5
15204 ac_cv_lib_dgc_dg_sys_info=no
15206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15207 LIBS=$ac_check_lib_save_LIBS
15209 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15210 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15211 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15212 cat >>confdefs.h <<_ACEOF
15213 #define HAVE_LIBDGC 1
15224 if test "${ac_cv_header_locale_h+set}" = set; then
15225 echo "$as_me:$LINENO: checking for locale.h" >&5
15226 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15227 if test "${ac_cv_header_locale_h+set}" = set; then
15228 echo $ECHO_N "(cached) $ECHO_C" >&6
15230 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15231 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15233 # Is the header compilable?
15234 echo "$as_me:$LINENO: checking locale.h usability" >&5
15235 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15236 cat >conftest.$ac_ext <<_ACEOF
15239 cat confdefs.h >>conftest.$ac_ext
15240 cat >>conftest.$ac_ext <<_ACEOF
15241 /* end confdefs.h. */
15242 $ac_includes_default
15243 #include <locale.h>
15245 rm -f conftest.$ac_objext
15246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15247 (eval $ac_compile) 2>&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); } &&
15251 { ac_try='test -s conftest.$ac_objext'
15252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253 (eval $ac_try) 2>&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; }; then
15257 ac_header_compiler=yes
15259 echo "$as_me: failed program was:" >&5
15260 sed 's/^/| /' conftest.$ac_ext >&5
15262 ac_header_compiler=no
15264 rm -f conftest.$ac_objext conftest.$ac_ext
15265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15266 echo "${ECHO_T}$ac_header_compiler" >&6
15268 # Is the header present?
15269 echo "$as_me:$LINENO: checking locale.h presence" >&5
15270 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15271 cat >conftest.$ac_ext <<_ACEOF
15274 cat confdefs.h >>conftest.$ac_ext
15275 cat >>conftest.$ac_ext <<_ACEOF
15276 /* end confdefs.h. */
15277 #include <locale.h>
15279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15282 grep -v '^ *+' conftest.er1 >conftest.err
15284 cat conftest.err >&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); } >/dev/null; then
15287 if test -s conftest.err; then
15288 ac_cpp_err=$ac_c_preproc_warn_flag
15295 if test -z "$ac_cpp_err"; then
15296 ac_header_preproc=yes
15298 echo "$as_me: failed program was:" >&5
15299 sed 's/^/| /' conftest.$ac_ext >&5
15301 ac_header_preproc=no
15303 rm -f conftest.err conftest.$ac_ext
15304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15305 echo "${ECHO_T}$ac_header_preproc" >&6
15307 # So? What about this header?
15308 case $ac_header_compiler:$ac_header_preproc in
15310 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15311 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15312 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15313 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15314 ac_header_preproc=yes
15317 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15318 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15319 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15320 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15321 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15322 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15323 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15324 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15325 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15326 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15327 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15328 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15331 ## ------------------------------------ ##
15332 ## Report this to bug-coreutils@gnu.org ##
15333 ## ------------------------------------ ##
15336 sed "s/^/$as_me: WARNING: /" >&2
15339 echo "$as_me:$LINENO: checking for locale.h" >&5
15340 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15341 if test "${ac_cv_header_locale_h+set}" = set; then
15342 echo $ECHO_N "(cached) $ECHO_C" >&6
15344 ac_cv_header_locale_h=$ac_header_preproc
15346 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15347 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15353 for ac_func in setlocale
15355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15356 echo "$as_me:$LINENO: checking for $ac_func" >&5
15357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15358 if eval "test \"\${$as_ac_var+set}\" = set"; then
15359 echo $ECHO_N "(cached) $ECHO_C" >&6
15361 cat >conftest.$ac_ext <<_ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h. */
15367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15369 #define $ac_func innocuous_$ac_func
15371 /* System header to define __stub macros and hopefully few prototypes,
15372 which can conflict with char $ac_func (); below.
15373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15374 <limits.h> exists even on freestanding compilers. */
15377 # include <limits.h>
15379 # include <assert.h>
15384 /* Override any gcc2 internal prototype to avoid an error. */
15389 /* We use char because int might match the return type of a gcc2
15390 builtin and then its argument prototype would still apply. */
15392 /* The GNU C library defines this for functions which it implements
15393 to always fail with ENOSYS. Some functions are actually named
15394 something starting with __ and the normal name is an alias. */
15395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15398 char (*f) () = $ac_func;
15407 return f != $ac_func;
15412 rm -f conftest.$ac_objext conftest$ac_exeext
15413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15414 (eval $ac_link) 2>&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } &&
15418 { ac_try='test -s conftest$ac_exeext'
15419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420 (eval $ac_try) 2>&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; }; then
15424 eval "$as_ac_var=yes"
15426 echo "$as_me: failed program was:" >&5
15427 sed 's/^/| /' conftest.$ac_ext >&5
15429 eval "$as_ac_var=no"
15431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15434 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15435 if test `eval echo '${'$as_ac_var'}'` = yes; then
15436 cat >>confdefs.h <<_ACEOF
15437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15444 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15445 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15446 # Irix 4.0.5F has the header but not the library.
15447 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15450 cat >>confdefs.h <<\_ACEOF
15456 if test $ac_have_func = no; then
15457 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15458 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15459 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15460 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15461 echo $ECHO_N "(cached) $ECHO_C" >&6
15463 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15464 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15466 # Is the header compilable?
15467 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15468 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15469 cat >conftest.$ac_ext <<_ACEOF
15472 cat confdefs.h >>conftest.$ac_ext
15473 cat >>conftest.$ac_ext <<_ACEOF
15474 /* end confdefs.h. */
15475 $ac_includes_default
15476 #include <inq_stats/cpustats.h>
15478 rm -f conftest.$ac_objext
15479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15480 (eval $ac_compile) 2>&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } &&
15484 { ac_try='test -s conftest.$ac_objext'
15485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15486 (eval $ac_try) 2>&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); }; }; then
15490 ac_header_compiler=yes
15492 echo "$as_me: failed program was:" >&5
15493 sed 's/^/| /' conftest.$ac_ext >&5
15495 ac_header_compiler=no
15497 rm -f conftest.$ac_objext conftest.$ac_ext
15498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15499 echo "${ECHO_T}$ac_header_compiler" >&6
15501 # Is the header present?
15502 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15503 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15504 cat >conftest.$ac_ext <<_ACEOF
15507 cat confdefs.h >>conftest.$ac_ext
15508 cat >>conftest.$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15510 #include <inq_stats/cpustats.h>
15512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15515 grep -v '^ *+' conftest.er1 >conftest.err
15517 cat conftest.err >&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); } >/dev/null; then
15520 if test -s conftest.err; then
15521 ac_cpp_err=$ac_c_preproc_warn_flag
15528 if test -z "$ac_cpp_err"; then
15529 ac_header_preproc=yes
15531 echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.$ac_ext >&5
15534 ac_header_preproc=no
15536 rm -f conftest.err conftest.$ac_ext
15537 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15538 echo "${ECHO_T}$ac_header_preproc" >&6
15540 # So? What about this header?
15541 case $ac_header_compiler:$ac_header_preproc in
15543 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15544 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15545 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15546 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15547 ac_header_preproc=yes
15550 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15551 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15552 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15553 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15554 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15555 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15556 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15557 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15558 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15559 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15560 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15561 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15564 ## ------------------------------------ ##
15565 ## Report this to bug-coreutils@gnu.org ##
15566 ## ------------------------------------ ##
15569 sed "s/^/$as_me: WARNING: /" >&2
15572 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15573 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15574 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15575 echo $ECHO_N "(cached) $ECHO_C" >&6
15577 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
15579 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15580 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15583 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15586 cat >>confdefs.h <<\_ACEOF
15591 cat >>confdefs.h <<\_ACEOF
15600 if test $ac_have_func = no; then
15601 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15602 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15603 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15604 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15605 echo $ECHO_N "(cached) $ECHO_C" >&6
15607 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15608 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15610 # Is the header compilable?
15611 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15612 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15613 cat >conftest.$ac_ext <<_ACEOF
15616 cat confdefs.h >>conftest.$ac_ext
15617 cat >>conftest.$ac_ext <<_ACEOF
15618 /* end confdefs.h. */
15619 $ac_includes_default
15620 #include <sys/cpustats.h>
15622 rm -f conftest.$ac_objext
15623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15624 (eval $ac_compile) 2>&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } &&
15628 { ac_try='test -s conftest.$ac_objext'
15629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; }; then
15634 ac_header_compiler=yes
15636 echo "$as_me: failed program was:" >&5
15637 sed 's/^/| /' conftest.$ac_ext >&5
15639 ac_header_compiler=no
15641 rm -f conftest.$ac_objext conftest.$ac_ext
15642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15643 echo "${ECHO_T}$ac_header_compiler" >&6
15645 # Is the header present?
15646 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
15647 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
15648 cat >conftest.$ac_ext <<_ACEOF
15651 cat confdefs.h >>conftest.$ac_ext
15652 cat >>conftest.$ac_ext <<_ACEOF
15653 /* end confdefs.h. */
15654 #include <sys/cpustats.h>
15656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15659 grep -v '^ *+' conftest.er1 >conftest.err
15661 cat conftest.err >&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); } >/dev/null; then
15664 if test -s conftest.err; then
15665 ac_cpp_err=$ac_c_preproc_warn_flag
15672 if test -z "$ac_cpp_err"; then
15673 ac_header_preproc=yes
15675 echo "$as_me: failed program was:" >&5
15676 sed 's/^/| /' conftest.$ac_ext >&5
15678 ac_header_preproc=no
15680 rm -f conftest.err conftest.$ac_ext
15681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15682 echo "${ECHO_T}$ac_header_preproc" >&6
15684 # So? What about this header?
15685 case $ac_header_compiler:$ac_header_preproc in
15687 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15688 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15689 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
15690 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
15691 ac_header_preproc=yes
15694 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
15695 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
15696 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
15697 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
15698 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
15699 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
15700 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15701 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15702 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
15703 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
15704 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
15705 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
15708 ## ------------------------------------ ##
15709 ## Report this to bug-coreutils@gnu.org ##
15710 ## ------------------------------------ ##
15713 sed "s/^/$as_me: WARNING: /" >&2
15716 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15717 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15718 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15719 echo $ECHO_N "(cached) $ECHO_C" >&6
15721 ac_cv_header_sys_cpustats_h=$ac_header_preproc
15723 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15724 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15727 if test $ac_cv_header_sys_cpustats_h = yes; then
15728 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
15737 if test $ac_have_func = no; then
15739 for ac_header in mach/mach.h
15741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15743 echo "$as_me:$LINENO: checking for $ac_header" >&5
15744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15751 # Is the header compilable?
15752 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15754 cat >conftest.$ac_ext <<_ACEOF
15757 cat confdefs.h >>conftest.$ac_ext
15758 cat >>conftest.$ac_ext <<_ACEOF
15759 /* end confdefs.h. */
15760 $ac_includes_default
15761 #include <$ac_header>
15763 rm -f conftest.$ac_objext
15764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15765 (eval $ac_compile) 2>&5
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); } &&
15769 { ac_try='test -s conftest.$ac_objext'
15770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15771 (eval $ac_try) 2>&5
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); }; }; then
15775 ac_header_compiler=yes
15777 echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15780 ac_header_compiler=no
15782 rm -f conftest.$ac_objext conftest.$ac_ext
15783 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15784 echo "${ECHO_T}$ac_header_compiler" >&6
15786 # Is the header present?
15787 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15788 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15789 cat >conftest.$ac_ext <<_ACEOF
15792 cat confdefs.h >>conftest.$ac_ext
15793 cat >>conftest.$ac_ext <<_ACEOF
15794 /* end confdefs.h. */
15795 #include <$ac_header>
15797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15800 grep -v '^ *+' conftest.er1 >conftest.err
15802 cat conftest.err >&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); } >/dev/null; then
15805 if test -s conftest.err; then
15806 ac_cpp_err=$ac_c_preproc_warn_flag
15813 if test -z "$ac_cpp_err"; then
15814 ac_header_preproc=yes
15816 echo "$as_me: failed program was:" >&5
15817 sed 's/^/| /' conftest.$ac_ext >&5
15819 ac_header_preproc=no
15821 rm -f conftest.err conftest.$ac_ext
15822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15823 echo "${ECHO_T}$ac_header_preproc" >&6
15825 # So? What about this header?
15826 case $ac_header_compiler:$ac_header_preproc in
15828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15832 ac_header_preproc=yes
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15842 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15849 ## ------------------------------------ ##
15850 ## Report this to bug-coreutils@gnu.org ##
15851 ## ------------------------------------ ##
15854 sed "s/^/$as_me: WARNING: /" >&2
15857 echo "$as_me:$LINENO: checking for $ac_header" >&5
15858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15860 echo $ECHO_N "(cached) $ECHO_C" >&6
15862 eval "$as_ac_Header=\$ac_header_preproc"
15864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15869 cat >>confdefs.h <<_ACEOF
15870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15880 for ac_header in nlist.h
15882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15884 echo "$as_me:$LINENO: checking for $ac_header" >&5
15885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15887 echo $ECHO_N "(cached) $ECHO_C" >&6
15889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15892 # Is the header compilable?
15893 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15895 cat >conftest.$ac_ext <<_ACEOF
15898 cat confdefs.h >>conftest.$ac_ext
15899 cat >>conftest.$ac_ext <<_ACEOF
15900 /* end confdefs.h. */
15901 $ac_includes_default
15902 #include <$ac_header>
15904 rm -f conftest.$ac_objext
15905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15906 (eval $ac_compile) 2>&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } &&
15910 { ac_try='test -s conftest.$ac_objext'
15911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15912 (eval $ac_try) 2>&5
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); }; }; then
15916 ac_header_compiler=yes
15918 echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15921 ac_header_compiler=no
15923 rm -f conftest.$ac_objext conftest.$ac_ext
15924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15925 echo "${ECHO_T}$ac_header_compiler" >&6
15927 # Is the header present?
15928 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15930 cat >conftest.$ac_ext <<_ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h. */
15936 #include <$ac_header>
15938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15941 grep -v '^ *+' conftest.er1 >conftest.err
15943 cat conftest.err >&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } >/dev/null; then
15946 if test -s conftest.err; then
15947 ac_cpp_err=$ac_c_preproc_warn_flag
15954 if test -z "$ac_cpp_err"; then
15955 ac_header_preproc=yes
15957 echo "$as_me: failed program was:" >&5
15958 sed 's/^/| /' conftest.$ac_ext >&5
15960 ac_header_preproc=no
15962 rm -f conftest.err conftest.$ac_ext
15963 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15964 echo "${ECHO_T}$ac_header_preproc" >&6
15966 # So? What about this header?
15967 case $ac_header_compiler:$ac_header_preproc in
15969 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15970 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15972 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15973 ac_header_preproc=yes
15976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15979 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15980 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15981 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15982 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15983 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15986 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15987 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15990 ## ------------------------------------ ##
15991 ## Report this to bug-coreutils@gnu.org ##
15992 ## ------------------------------------ ##
15995 sed "s/^/$as_me: WARNING: /" >&2
15998 echo "$as_me:$LINENO: checking for $ac_header" >&5
15999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16001 echo $ECHO_N "(cached) $ECHO_C" >&6
16003 eval "$as_ac_Header=\$ac_header_preproc"
16005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16010 cat >>confdefs.h <<_ACEOF
16011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16013 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16014 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16015 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16016 echo $ECHO_N "(cached) $ECHO_C" >&6
16018 cat >conftest.$ac_ext <<_ACEOF
16021 cat confdefs.h >>conftest.$ac_ext
16022 cat >>conftest.$ac_ext <<_ACEOF
16023 /* end confdefs.h. */
16029 static struct nlist ac_aggr;
16030 if (ac_aggr.n_un.n_name)
16036 rm -f conftest.$ac_objext
16037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16038 (eval $ac_compile) 2>&5
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); } &&
16042 { ac_try='test -s conftest.$ac_objext'
16043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16044 (eval $ac_try) 2>&5
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); }; }; then
16048 ac_cv_member_struct_nlist_n_un_n_name=yes
16050 echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16053 cat >conftest.$ac_ext <<_ACEOF
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h. */
16064 static struct nlist ac_aggr;
16065 if (sizeof ac_aggr.n_un.n_name)
16071 rm -f conftest.$ac_objext
16072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16073 (eval $ac_compile) 2>&5
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); } &&
16077 { ac_try='test -s conftest.$ac_objext'
16078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079 (eval $ac_try) 2>&5
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); }; }; then
16083 ac_cv_member_struct_nlist_n_un_n_name=yes
16085 echo "$as_me: failed program was:" >&5
16086 sed 's/^/| /' conftest.$ac_ext >&5
16088 ac_cv_member_struct_nlist_n_un_n_name=no
16090 rm -f conftest.$ac_objext conftest.$ac_ext
16092 rm -f conftest.$ac_objext conftest.$ac_ext
16094 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16095 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16096 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16098 cat >>confdefs.h <<_ACEOF
16099 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16103 cat >>confdefs.h <<\_ACEOF
16104 #define NLIST_NAME_UNION 1
16118 # Some definitions of getloadavg require that the program be installed setgid.
16119 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16120 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16121 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16122 echo $ECHO_N "(cached) $ECHO_C" >&6
16124 cat >conftest.$ac_ext <<_ACEOF
16127 cat confdefs.h >>conftest.$ac_ext
16128 cat >>conftest.$ac_ext <<_ACEOF
16129 /* end confdefs.h. */
16130 #include "$ac_lib_dir_getloadavg/getloadavg.c"
16131 #ifdef LDAV_PRIVILEGED
16132 Yowza Am I SETGID yet
16135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16136 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
16137 ac_cv_func_getloadavg_setgid=yes
16139 ac_cv_func_getloadavg_setgid=no
16144 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16145 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16146 if test $ac_cv_func_getloadavg_setgid = yes; then
16149 cat >>confdefs.h <<\_ACEOF
16150 #define GETLOADAVG_PRIVILEGED 1
16157 if test $ac_cv_func_getloadavg_setgid = yes; then
16158 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16159 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16160 if test "${ac_cv_group_kmem+set}" = set; then
16161 echo $ECHO_N "(cached) $ECHO_C" >&6
16163 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16164 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
16165 # If we got an error (system does not support symlinks), try without -L.
16166 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
16167 ac_cv_group_kmem=`echo $ac_ls_output \
16168 | sed -ne 's/[ ][ ]*/ /g;
16169 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16173 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16174 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16175 KMEM_GROUP=$ac_cv_group_kmem
16177 if test "x$ac_save_LIBS" = x; then
16178 GETLOADAVG_LIBS=$LIBS
16180 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16185 if test $ac_cv_func_getloadavg = no; then
16202 for ac_func in getpass
16204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16205 echo "$as_me:$LINENO: checking for $ac_func" >&5
16206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16207 if eval "test \"\${$as_ac_var+set}\" = set"; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16210 cat >conftest.$ac_ext <<_ACEOF
16213 cat confdefs.h >>conftest.$ac_ext
16214 cat >>conftest.$ac_ext <<_ACEOF
16215 /* end confdefs.h. */
16216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16218 #define $ac_func innocuous_$ac_func
16220 /* System header to define __stub macros and hopefully few prototypes,
16221 which can conflict with char $ac_func (); below.
16222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16223 <limits.h> exists even on freestanding compilers. */
16226 # include <limits.h>
16228 # include <assert.h>
16233 /* Override any gcc2 internal prototype to avoid an error. */
16238 /* We use char because int might match the return type of a gcc2
16239 builtin and then its argument prototype would still apply. */
16241 /* The GNU C library defines this for functions which it implements
16242 to always fail with ENOSYS. Some functions are actually named
16243 something starting with __ and the normal name is an alias. */
16244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16247 char (*f) () = $ac_func;
16256 return f != $ac_func;
16261 rm -f conftest.$ac_objext conftest$ac_exeext
16262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16263 (eval $ac_link) 2>&5
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } &&
16267 { ac_try='test -s conftest$ac_exeext'
16268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16269 (eval $ac_try) 2>&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); }; }; then
16273 eval "$as_ac_var=yes"
16275 echo "$as_me: failed program was:" >&5
16276 sed 's/^/| /' conftest.$ac_ext >&5
16278 eval "$as_ac_var=no"
16280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16284 if test `eval echo '${'$as_ac_var'}'` = yes; then
16285 cat >>confdefs.h <<_ACEOF
16286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16290 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16295 if test $ac_cv_func_getpass = no; then
16303 for ac_func in getusershell
16305 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16306 echo "$as_me:$LINENO: checking for $ac_func" >&5
16307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16308 if eval "test \"\${$as_ac_var+set}\" = set"; then
16309 echo $ECHO_N "(cached) $ECHO_C" >&6
16311 cat >conftest.$ac_ext <<_ACEOF
16314 cat confdefs.h >>conftest.$ac_ext
16315 cat >>conftest.$ac_ext <<_ACEOF
16316 /* end confdefs.h. */
16317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16319 #define $ac_func innocuous_$ac_func
16321 /* System header to define __stub macros and hopefully few prototypes,
16322 which can conflict with char $ac_func (); below.
16323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16324 <limits.h> exists even on freestanding compilers. */
16327 # include <limits.h>
16329 # include <assert.h>
16334 /* Override any gcc2 internal prototype to avoid an error. */
16339 /* We use char because int might match the return type of a gcc2
16340 builtin and then its argument prototype would still apply. */
16342 /* The GNU C library defines this for functions which it implements
16343 to always fail with ENOSYS. Some functions are actually named
16344 something starting with __ and the normal name is an alias. */
16345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16348 char (*f) () = $ac_func;
16357 return f != $ac_func;
16362 rm -f conftest.$ac_objext conftest$ac_exeext
16363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16364 (eval $ac_link) 2>&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); } &&
16368 { ac_try='test -s conftest$ac_exeext'
16369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16370 (eval $ac_try) 2>&5
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); }; }; then
16374 eval "$as_ac_var=yes"
16376 echo "$as_me: failed program was:" >&5
16377 sed 's/^/| /' conftest.$ac_ext >&5
16379 eval "$as_ac_var=no"
16381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16384 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16385 if test `eval echo '${'$as_ac_var'}'` = yes; then
16386 cat >>confdefs.h <<_ACEOF
16387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16391 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16396 if test $ac_cv_func_getusershell = no; then
16424 for ac_func in memchr
16426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16427 echo "$as_me:$LINENO: checking for $ac_func" >&5
16428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16429 if eval "test \"\${$as_ac_var+set}\" = set"; then
16430 echo $ECHO_N "(cached) $ECHO_C" >&6
16432 cat >conftest.$ac_ext <<_ACEOF
16435 cat confdefs.h >>conftest.$ac_ext
16436 cat >>conftest.$ac_ext <<_ACEOF
16437 /* end confdefs.h. */
16438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16440 #define $ac_func innocuous_$ac_func
16442 /* System header to define __stub macros and hopefully few prototypes,
16443 which can conflict with char $ac_func (); below.
16444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16445 <limits.h> exists even on freestanding compilers. */
16448 # include <limits.h>
16450 # include <assert.h>
16455 /* Override any gcc2 internal prototype to avoid an error. */
16460 /* We use char because int might match the return type of a gcc2
16461 builtin and then its argument prototype would still apply. */
16463 /* The GNU C library defines this for functions which it implements
16464 to always fail with ENOSYS. Some functions are actually named
16465 something starting with __ and the normal name is an alias. */
16466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16469 char (*f) () = $ac_func;
16478 return f != $ac_func;
16483 rm -f conftest.$ac_objext conftest$ac_exeext
16484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16485 (eval $ac_link) 2>&5
16487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488 (exit $ac_status); } &&
16489 { ac_try='test -s conftest$ac_exeext'
16490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491 (eval $ac_try) 2>&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; }; then
16495 eval "$as_ac_var=yes"
16497 echo "$as_me: failed program was:" >&5
16498 sed 's/^/| /' conftest.$ac_ext >&5
16500 eval "$as_ac_var=no"
16502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16506 if test `eval echo '${'$as_ac_var'}'` = yes; then
16507 cat >>confdefs.h <<_ACEOF
16508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16512 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16517 if test $ac_cv_func_memchr = no; then
16530 for ac_header in bp-sym.h
16532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16534 echo "$as_me:$LINENO: checking for $ac_header" >&5
16535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16537 echo $ECHO_N "(cached) $ECHO_C" >&6
16539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16542 # Is the header compilable?
16543 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16545 cat >conftest.$ac_ext <<_ACEOF
16548 cat confdefs.h >>conftest.$ac_ext
16549 cat >>conftest.$ac_ext <<_ACEOF
16550 /* end confdefs.h. */
16551 $ac_includes_default
16552 #include <$ac_header>
16554 rm -f conftest.$ac_objext
16555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16556 (eval $ac_compile) 2>&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } &&
16560 { ac_try='test -s conftest.$ac_objext'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16566 ac_header_compiler=yes
16568 echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.$ac_ext >&5
16571 ac_header_compiler=no
16573 rm -f conftest.$ac_objext conftest.$ac_ext
16574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16575 echo "${ECHO_T}$ac_header_compiler" >&6
16577 # Is the header present?
16578 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16580 cat >conftest.$ac_ext <<_ACEOF
16583 cat confdefs.h >>conftest.$ac_ext
16584 cat >>conftest.$ac_ext <<_ACEOF
16585 /* end confdefs.h. */
16586 #include <$ac_header>
16588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16591 grep -v '^ *+' conftest.er1 >conftest.err
16593 cat conftest.err >&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } >/dev/null; then
16596 if test -s conftest.err; then
16597 ac_cpp_err=$ac_c_preproc_warn_flag
16604 if test -z "$ac_cpp_err"; then
16605 ac_header_preproc=yes
16607 echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16610 ac_header_preproc=no
16612 rm -f conftest.err conftest.$ac_ext
16613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16614 echo "${ECHO_T}$ac_header_preproc" >&6
16616 # So? What about this header?
16617 case $ac_header_compiler:$ac_header_preproc in
16619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16623 ac_header_preproc=yes
16626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16629 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16631 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16633 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16637 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16640 ## ------------------------------------ ##
16641 ## Report this to bug-coreutils@gnu.org ##
16642 ## ------------------------------------ ##
16645 sed "s/^/$as_me: WARNING: /" >&2
16648 echo "$as_me:$LINENO: checking for $ac_header" >&5
16649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16651 echo $ECHO_N "(cached) $ECHO_C" >&6
16653 eval "$as_ac_Header=\$ac_header_preproc"
16655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16660 cat >>confdefs.h <<_ACEOF
16661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16673 for ac_func in memcpy
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
16684 cat confdefs.h >>conftest.$ac_ext
16685 cat >>conftest.$ac_ext <<_ACEOF
16686 /* end confdefs.h. */
16687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16689 #define $ac_func innocuous_$ac_func
16691 /* System header to define __stub macros and hopefully few prototypes,
16692 which can conflict with char $ac_func (); below.
16693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16694 <limits.h> exists even on freestanding compilers. */
16697 # include <limits.h>
16699 # include <assert.h>
16704 /* Override any gcc2 internal prototype to avoid an error. */
16709 /* We use char because int might match the return type of a gcc2
16710 builtin and then its argument prototype would still apply. */
16712 /* The GNU C library defines this for functions which it implements
16713 to always fail with ENOSYS. Some functions are actually named
16714 something starting with __ and the normal name is an alias. */
16715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16718 char (*f) () = $ac_func;
16727 return f != $ac_func;
16732 rm -f conftest.$ac_objext conftest$ac_exeext
16733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16734 (eval $ac_link) 2>&5
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } &&
16738 { ac_try='test -s conftest$ac_exeext'
16739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740 (eval $ac_try) 2>&5
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); }; }; then
16744 eval "$as_ac_var=yes"
16746 echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16749 eval "$as_ac_var=no"
16751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16754 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16755 if test `eval echo '${'$as_ac_var'}'` = yes; then
16756 cat >>confdefs.h <<_ACEOF
16757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16761 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16766 if test $ac_cv_func_memcpy = no; then
16774 for ac_func in memmove
16776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16777 echo "$as_me:$LINENO: checking for $ac_func" >&5
16778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16779 if eval "test \"\${$as_ac_var+set}\" = set"; then
16780 echo $ECHO_N "(cached) $ECHO_C" >&6
16782 cat >conftest.$ac_ext <<_ACEOF
16785 cat confdefs.h >>conftest.$ac_ext
16786 cat >>conftest.$ac_ext <<_ACEOF
16787 /* end confdefs.h. */
16788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16790 #define $ac_func innocuous_$ac_func
16792 /* System header to define __stub macros and hopefully few prototypes,
16793 which can conflict with char $ac_func (); below.
16794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16795 <limits.h> exists even on freestanding compilers. */
16798 # include <limits.h>
16800 # include <assert.h>
16805 /* Override any gcc2 internal prototype to avoid an error. */
16810 /* We use char because int might match the return type of a gcc2
16811 builtin and then its argument prototype would still apply. */
16813 /* The GNU C library defines this for functions which it implements
16814 to always fail with ENOSYS. Some functions are actually named
16815 something starting with __ and the normal name is an alias. */
16816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16819 char (*f) () = $ac_func;
16828 return f != $ac_func;
16833 rm -f conftest.$ac_objext conftest$ac_exeext
16834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16835 (eval $ac_link) 2>&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); } &&
16839 { ac_try='test -s conftest$ac_exeext'
16840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16841 (eval $ac_try) 2>&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; }; then
16845 eval "$as_ac_var=yes"
16847 echo "$as_me: failed program was:" >&5
16848 sed 's/^/| /' conftest.$ac_ext >&5
16850 eval "$as_ac_var=no"
16852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16855 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16856 if test `eval echo '${'$as_ac_var'}'` = yes; then
16857 cat >>confdefs.h <<_ACEOF
16858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16862 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16867 if test $ac_cv_func_memmove = no; then
16877 for ac_func in memrchr
16879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16880 echo "$as_me:$LINENO: checking for $ac_func" >&5
16881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16882 if eval "test \"\${$as_ac_var+set}\" = set"; then
16883 echo $ECHO_N "(cached) $ECHO_C" >&6
16885 cat >conftest.$ac_ext <<_ACEOF
16888 cat confdefs.h >>conftest.$ac_ext
16889 cat >>conftest.$ac_ext <<_ACEOF
16890 /* end confdefs.h. */
16891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16893 #define $ac_func innocuous_$ac_func
16895 /* System header to define __stub macros and hopefully few prototypes,
16896 which can conflict with char $ac_func (); below.
16897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16898 <limits.h> exists even on freestanding compilers. */
16901 # include <limits.h>
16903 # include <assert.h>
16908 /* Override any gcc2 internal prototype to avoid an error. */
16913 /* We use char because int might match the return type of a gcc2
16914 builtin and then its argument prototype would still apply. */
16916 /* The GNU C library defines this for functions which it implements
16917 to always fail with ENOSYS. Some functions are actually named
16918 something starting with __ and the normal name is an alias. */
16919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16922 char (*f) () = $ac_func;
16931 return f != $ac_func;
16936 rm -f conftest.$ac_objext conftest$ac_exeext
16937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16938 (eval $ac_link) 2>&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } &&
16942 { ac_try='test -s conftest$ac_exeext'
16943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944 (eval $ac_try) 2>&5
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; }; then
16948 eval "$as_ac_var=yes"
16950 echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16953 eval "$as_ac_var=no"
16955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16958 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16959 if test `eval echo '${'$as_ac_var'}'` = yes; then
16960 cat >>confdefs.h <<_ACEOF
16961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16965 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16970 if test $ac_cv_func_memrchr = no; then
16984 for ac_func in memset
16986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16987 echo "$as_me:$LINENO: checking for $ac_func" >&5
16988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16989 if eval "test \"\${$as_ac_var+set}\" = set"; then
16990 echo $ECHO_N "(cached) $ECHO_C" >&6
16992 cat >conftest.$ac_ext <<_ACEOF
16995 cat confdefs.h >>conftest.$ac_ext
16996 cat >>conftest.$ac_ext <<_ACEOF
16997 /* end confdefs.h. */
16998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17000 #define $ac_func innocuous_$ac_func
17002 /* System header to define __stub macros and hopefully few prototypes,
17003 which can conflict with char $ac_func (); below.
17004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17005 <limits.h> exists even on freestanding compilers. */
17008 # include <limits.h>
17010 # include <assert.h>
17015 /* Override any gcc2 internal prototype to avoid an error. */
17020 /* We use char because int might match the return type of a gcc2
17021 builtin and then its argument prototype would still apply. */
17023 /* The GNU C library defines this for functions which it implements
17024 to always fail with ENOSYS. Some functions are actually named
17025 something starting with __ and the normal name is an alias. */
17026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17029 char (*f) () = $ac_func;
17038 return f != $ac_func;
17043 rm -f conftest.$ac_objext conftest$ac_exeext
17044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17045 (eval $ac_link) 2>&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); } &&
17049 { ac_try='test -s conftest$ac_exeext'
17050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; }; then
17055 eval "$as_ac_var=yes"
17057 echo "$as_me: failed program was:" >&5
17058 sed 's/^/| /' conftest.$ac_ext >&5
17060 eval "$as_ac_var=no"
17062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17065 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17066 if test `eval echo '${'$as_ac_var'}'` = yes; then
17067 cat >>confdefs.h <<_ACEOF
17068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17072 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17077 if test $ac_cv_func_memset = no; then
17086 for ac_header in stdlib.h sys/time.h unistd.h
17088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17090 echo "$as_me:$LINENO: checking for $ac_header" >&5
17091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17093 echo $ECHO_N "(cached) $ECHO_C" >&6
17095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17098 # Is the header compilable?
17099 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17101 cat >conftest.$ac_ext <<_ACEOF
17104 cat confdefs.h >>conftest.$ac_ext
17105 cat >>conftest.$ac_ext <<_ACEOF
17106 /* end confdefs.h. */
17107 $ac_includes_default
17108 #include <$ac_header>
17110 rm -f conftest.$ac_objext
17111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17112 (eval $ac_compile) 2>&5
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); } &&
17116 { ac_try='test -s conftest.$ac_objext'
17117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17118 (eval $ac_try) 2>&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); }; }; then
17122 ac_header_compiler=yes
17124 echo "$as_me: failed program was:" >&5
17125 sed 's/^/| /' conftest.$ac_ext >&5
17127 ac_header_compiler=no
17129 rm -f conftest.$ac_objext conftest.$ac_ext
17130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17131 echo "${ECHO_T}$ac_header_compiler" >&6
17133 # Is the header present?
17134 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17136 cat >conftest.$ac_ext <<_ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h. */
17142 #include <$ac_header>
17144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17147 grep -v '^ *+' conftest.er1 >conftest.err
17149 cat conftest.err >&5
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); } >/dev/null; then
17152 if test -s conftest.err; then
17153 ac_cpp_err=$ac_c_preproc_warn_flag
17160 if test -z "$ac_cpp_err"; then
17161 ac_header_preproc=yes
17163 echo "$as_me: failed program was:" >&5
17164 sed 's/^/| /' conftest.$ac_ext >&5
17166 ac_header_preproc=no
17168 rm -f conftest.err conftest.$ac_ext
17169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17170 echo "${ECHO_T}$ac_header_preproc" >&6
17172 # So? What about this header?
17173 case $ac_header_compiler:$ac_header_preproc in
17175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17179 ac_header_preproc=yes
17182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17196 ## ------------------------------------ ##
17197 ## Report this to bug-coreutils@gnu.org ##
17198 ## ------------------------------------ ##
17201 sed "s/^/$as_me: WARNING: /" >&2
17204 echo "$as_me:$LINENO: checking for $ac_header" >&5
17205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17207 echo $ECHO_N "(cached) $ECHO_C" >&6
17209 eval "$as_ac_Header=\$ac_header_preproc"
17211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17216 cat >>confdefs.h <<_ACEOF
17217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17225 for ac_func in alarm
17227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17228 echo "$as_me:$LINENO: checking for $ac_func" >&5
17229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17230 if eval "test \"\${$as_ac_var+set}\" = set"; then
17231 echo $ECHO_N "(cached) $ECHO_C" >&6
17233 cat >conftest.$ac_ext <<_ACEOF
17236 cat confdefs.h >>conftest.$ac_ext
17237 cat >>conftest.$ac_ext <<_ACEOF
17238 /* end confdefs.h. */
17239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17241 #define $ac_func innocuous_$ac_func
17243 /* System header to define __stub macros and hopefully few prototypes,
17244 which can conflict with char $ac_func (); below.
17245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17246 <limits.h> exists even on freestanding compilers. */
17249 # include <limits.h>
17251 # include <assert.h>
17256 /* Override any gcc2 internal prototype to avoid an error. */
17261 /* We use char because int might match the return type of a gcc2
17262 builtin and then its argument prototype would still apply. */
17264 /* The GNU C library defines this for functions which it implements
17265 to always fail with ENOSYS. Some functions are actually named
17266 something starting with __ and the normal name is an alias. */
17267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17270 char (*f) () = $ac_func;
17279 return f != $ac_func;
17284 rm -f conftest.$ac_objext conftest$ac_exeext
17285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17286 (eval $ac_link) 2>&5
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); } &&
17290 { ac_try='test -s conftest$ac_exeext'
17291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17292 (eval $ac_try) 2>&5
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); }; }; then
17296 eval "$as_ac_var=yes"
17298 echo "$as_me: failed program was:" >&5
17299 sed 's/^/| /' conftest.$ac_ext >&5
17301 eval "$as_ac_var=no"
17303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17307 if test `eval echo '${'$as_ac_var'}'` = yes; then
17308 cat >>confdefs.h <<_ACEOF
17309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17315 echo "$as_me:$LINENO: checking for working mktime" >&5
17316 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
17317 if test "${ac_cv_func_working_mktime+set}" = set; then
17318 echo $ECHO_N "(cached) $ECHO_C" >&6
17320 if test "$cross_compiling" = yes; then
17321 ac_cv_func_working_mktime=no
17323 cat >conftest.$ac_ext <<_ACEOF
17326 cat confdefs.h >>conftest.$ac_ext
17327 cat >>conftest.$ac_ext <<_ACEOF
17328 /* end confdefs.h. */
17329 /* Test program from Paul Eggert and Tony Leneis. */
17330 #if TIME_WITH_SYS_TIME
17331 # include <sys/time.h>
17334 # if HAVE_SYS_TIME_H
17335 # include <sys/time.h>
17342 # include <stdlib.h>
17346 # include <unistd.h>
17350 # define alarm(X) /* empty */
17353 /* Work around redefinition to rpl_putenv by other config tests. */
17356 static time_t time_t_max;
17357 static time_t time_t_min;
17359 /* Values we'll use to set the TZ environment variable. */
17360 static char *tz_strings[] = {
17361 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17362 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17364 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17366 /* Fail if mktime fails to convert a date in the spring-forward gap.
17367 Based on a problem report from Andreas Jaeger. */
17369 spring_forward_gap ()
17371 /* glibc (up to about 1998-10-07) failed this test. */
17374 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17375 instead of "TZ=America/Vancouver" in order to detect the bug even
17376 on systems that don't support the Olson extension, or don't have the
17377 full zoneinfo tables installed. */
17378 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17387 if (mktime (&tm) == (time_t)-1)
17396 if ((lt = localtime (&now)) && mktime (lt) != now)
17404 mktime_test1 (now);
17405 mktime_test1 ((time_t) (time_t_max - now));
17406 mktime_test1 ((time_t) (time_t_min + now));
17412 /* Based on code from Ariel Faigon. */
17422 if (tm.tm_mon != 2 || tm.tm_mday != 31)
17432 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17433 now = mktime (&tm);
17434 if (now != (time_t) -1)
17436 struct tm *lt = localtime (&now);
17438 && lt->tm_year == tm.tm_year
17439 && lt->tm_mon == tm.tm_mon
17440 && lt->tm_mday == tm.tm_mday
17441 && lt->tm_hour == tm.tm_hour
17442 && lt->tm_min == tm.tm_min
17443 && lt->tm_sec == tm.tm_sec
17444 && lt->tm_yday == tm.tm_yday
17445 && lt->tm_wday == tm.tm_wday
17446 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17447 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17458 /* This test makes some buggy mktime implementations loop.
17459 Give up after 60 seconds; a mktime slower than that
17460 isn't worth using anyway. */
17463 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
17466 if ((time_t) -1 < 0)
17467 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
17469 delta = time_t_max / 997; /* a suitable prime number */
17470 for (i = 0; i < N_STRINGS; i++)
17473 putenv (tz_strings[i]);
17475 for (t = 0; t <= time_t_max - delta; t += delta)
17477 mktime_test ((time_t) 1);
17478 mktime_test ((time_t) (60 * 60));
17479 mktime_test ((time_t) (60 * 60 * 24));
17481 for (j = 1; 0 < j; j *= 2)
17483 bigtime_test (j - 1);
17486 spring_forward_gap ();
17490 rm -f conftest$ac_exeext
17491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17492 (eval $ac_link) 2>&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17497 (eval $ac_try) 2>&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); }; }; then
17501 ac_cv_func_working_mktime=yes
17503 echo "$as_me: program exited with status $ac_status" >&5
17504 echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17507 ( exit $ac_status )
17508 ac_cv_func_working_mktime=no
17510 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17513 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17514 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
17515 if test $ac_cv_func_working_mktime = no; then
17516 LIBOBJS="$LIBOBJS mktime.$ac_objext"
17521 if test $ac_cv_func_working_mktime = no; then
17523 cat >>confdefs.h <<\_ACEOF
17524 #define mktime rpl_mktime
17541 for ac_func in readlink
17543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17544 echo "$as_me:$LINENO: checking for $ac_func" >&5
17545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17546 if eval "test \"\${$as_ac_var+set}\" = set"; then
17547 echo $ECHO_N "(cached) $ECHO_C" >&6
17549 cat >conftest.$ac_ext <<_ACEOF
17552 cat confdefs.h >>conftest.$ac_ext
17553 cat >>conftest.$ac_ext <<_ACEOF
17554 /* end confdefs.h. */
17555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17557 #define $ac_func innocuous_$ac_func
17559 /* System header to define __stub macros and hopefully few prototypes,
17560 which can conflict with char $ac_func (); below.
17561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17562 <limits.h> exists even on freestanding compilers. */
17565 # include <limits.h>
17567 # include <assert.h>
17572 /* Override any gcc2 internal prototype to avoid an error. */
17577 /* We use char because int might match the return type of a gcc2
17578 builtin and then its argument prototype would still apply. */
17580 /* The GNU C library defines this for functions which it implements
17581 to always fail with ENOSYS. Some functions are actually named
17582 something starting with __ and the normal name is an alias. */
17583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17586 char (*f) () = $ac_func;
17595 return f != $ac_func;
17600 rm -f conftest.$ac_objext conftest$ac_exeext
17601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17602 (eval $ac_link) 2>&5
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); } &&
17606 { ac_try='test -s conftest$ac_exeext'
17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608 (eval $ac_try) 2>&5
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; }; then
17612 eval "$as_ac_var=yes"
17614 echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17617 eval "$as_ac_var=no"
17619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17623 if test `eval echo '${'$as_ac_var'}'` = yes; then
17624 cat >>confdefs.h <<_ACEOF
17625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17631 if test $ac_cv_func_readlink = no; then
17632 LIBOBJS="$LIBOBJS readlink.$ac_objext"
17640 for ac_func in rmdir
17642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17643 echo "$as_me:$LINENO: checking for $ac_func" >&5
17644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17645 if eval "test \"\${$as_ac_var+set}\" = set"; then
17646 echo $ECHO_N "(cached) $ECHO_C" >&6
17648 cat >conftest.$ac_ext <<_ACEOF
17651 cat confdefs.h >>conftest.$ac_ext
17652 cat >>conftest.$ac_ext <<_ACEOF
17653 /* end confdefs.h. */
17654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17656 #define $ac_func innocuous_$ac_func
17658 /* System header to define __stub macros and hopefully few prototypes,
17659 which can conflict with char $ac_func (); below.
17660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17661 <limits.h> exists even on freestanding compilers. */
17664 # include <limits.h>
17666 # include <assert.h>
17671 /* Override any gcc2 internal prototype to avoid an error. */
17676 /* We use char because int might match the return type of a gcc2
17677 builtin and then its argument prototype would still apply. */
17679 /* The GNU C library defines this for functions which it implements
17680 to always fail with ENOSYS. Some functions are actually named
17681 something starting with __ and the normal name is an alias. */
17682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17685 char (*f) () = $ac_func;
17694 return f != $ac_func;
17699 rm -f conftest.$ac_objext conftest$ac_exeext
17700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17701 (eval $ac_link) 2>&5
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); } &&
17705 { ac_try='test -s conftest$ac_exeext'
17706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707 (eval $ac_try) 2>&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); }; }; then
17711 eval "$as_ac_var=yes"
17713 echo "$as_me: failed program was:" >&5
17714 sed 's/^/| /' conftest.$ac_ext >&5
17716 eval "$as_ac_var=no"
17718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17722 if test `eval echo '${'$as_ac_var'}'` = yes; then
17723 cat >>confdefs.h <<_ACEOF
17724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17728 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17733 if test $ac_cv_func_rmdir = no; then
17742 for ac_func in rpmatch
17744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17745 echo "$as_me:$LINENO: checking for $ac_func" >&5
17746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17747 if eval "test \"\${$as_ac_var+set}\" = set"; then
17748 echo $ECHO_N "(cached) $ECHO_C" >&6
17750 cat >conftest.$ac_ext <<_ACEOF
17753 cat confdefs.h >>conftest.$ac_ext
17754 cat >>conftest.$ac_ext <<_ACEOF
17755 /* end confdefs.h. */
17756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17758 #define $ac_func innocuous_$ac_func
17760 /* System header to define __stub macros and hopefully few prototypes,
17761 which can conflict with char $ac_func (); below.
17762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17763 <limits.h> exists even on freestanding compilers. */
17766 # include <limits.h>
17768 # include <assert.h>
17773 /* Override any gcc2 internal prototype to avoid an error. */
17778 /* We use char because int might match the return type of a gcc2
17779 builtin and then its argument prototype would still apply. */
17781 /* The GNU C library defines this for functions which it implements
17782 to always fail with ENOSYS. Some functions are actually named
17783 something starting with __ and the normal name is an alias. */
17784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17787 char (*f) () = $ac_func;
17796 return f != $ac_func;
17801 rm -f conftest.$ac_objext conftest$ac_exeext
17802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17803 (eval $ac_link) 2>&5
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); } &&
17807 { ac_try='test -s conftest$ac_exeext'
17808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809 (eval $ac_try) 2>&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); }; }; then
17813 eval "$as_ac_var=yes"
17815 echo "$as_me: failed program was:" >&5
17816 sed 's/^/| /' conftest.$ac_ext >&5
17818 eval "$as_ac_var=no"
17820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17823 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17824 if test `eval echo '${'$as_ac_var'}'` = yes; then
17825 cat >>confdefs.h <<_ACEOF
17826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17830 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17835 if test $ac_cv_func_rpmatch = no; then
17844 for ac_func in sig2str
17846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17847 echo "$as_me:$LINENO: checking for $ac_func" >&5
17848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17849 if eval "test \"\${$as_ac_var+set}\" = set"; then
17850 echo $ECHO_N "(cached) $ECHO_C" >&6
17852 cat >conftest.$ac_ext <<_ACEOF
17855 cat confdefs.h >>conftest.$ac_ext
17856 cat >>conftest.$ac_ext <<_ACEOF
17857 /* end confdefs.h. */
17858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17860 #define $ac_func innocuous_$ac_func
17862 /* System header to define __stub macros and hopefully few prototypes,
17863 which can conflict with char $ac_func (); below.
17864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17865 <limits.h> exists even on freestanding compilers. */
17868 # include <limits.h>
17870 # include <assert.h>
17875 /* Override any gcc2 internal prototype to avoid an error. */
17880 /* We use char because int might match the return type of a gcc2
17881 builtin and then its argument prototype would still apply. */
17883 /* The GNU C library defines this for functions which it implements
17884 to always fail with ENOSYS. Some functions are actually named
17885 something starting with __ and the normal name is an alias. */
17886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17889 char (*f) () = $ac_func;
17898 return f != $ac_func;
17903 rm -f conftest.$ac_objext conftest$ac_exeext
17904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17905 (eval $ac_link) 2>&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } &&
17909 { ac_try='test -s conftest$ac_exeext'
17910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17911 (eval $ac_try) 2>&5
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); }; }; then
17915 eval "$as_ac_var=yes"
17917 echo "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.$ac_ext >&5
17920 eval "$as_ac_var=no"
17922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17926 if test `eval echo '${'$as_ac_var'}'` = yes; then
17927 cat >>confdefs.h <<_ACEOF
17928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17932 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17937 if test $ac_cv_func_sig2str = no; then
17947 for ac_func in stpcpy
17949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17950 echo "$as_me:$LINENO: checking for $ac_func" >&5
17951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17952 if eval "test \"\${$as_ac_var+set}\" = set"; then
17953 echo $ECHO_N "(cached) $ECHO_C" >&6
17955 cat >conftest.$ac_ext <<_ACEOF
17958 cat confdefs.h >>conftest.$ac_ext
17959 cat >>conftest.$ac_ext <<_ACEOF
17960 /* end confdefs.h. */
17961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17963 #define $ac_func innocuous_$ac_func
17965 /* System header to define __stub macros and hopefully few prototypes,
17966 which can conflict with char $ac_func (); below.
17967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17968 <limits.h> exists even on freestanding compilers. */
17971 # include <limits.h>
17973 # include <assert.h>
17978 /* Override any gcc2 internal prototype to avoid an error. */
17983 /* We use char because int might match the return type of a gcc2
17984 builtin and then its argument prototype would still apply. */
17986 /* The GNU C library defines this for functions which it implements
17987 to always fail with ENOSYS. Some functions are actually named
17988 something starting with __ and the normal name is an alias. */
17989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17992 char (*f) () = $ac_func;
18001 return f != $ac_func;
18006 rm -f conftest.$ac_objext conftest$ac_exeext
18007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18008 (eval $ac_link) 2>&5
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); } &&
18012 { ac_try='test -s conftest$ac_exeext'
18013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18014 (eval $ac_try) 2>&5
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); }; }; then
18018 eval "$as_ac_var=yes"
18020 echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18023 eval "$as_ac_var=no"
18025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18028 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18029 if test `eval echo '${'$as_ac_var'}'` = yes; then
18030 cat >>confdefs.h <<_ACEOF
18031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18035 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18040 if test $ac_cv_func_stpcpy = no; then
18048 for ac_func in strcspn
18050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18051 echo "$as_me:$LINENO: checking for $ac_func" >&5
18052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18053 if eval "test \"\${$as_ac_var+set}\" = set"; then
18054 echo $ECHO_N "(cached) $ECHO_C" >&6
18056 cat >conftest.$ac_ext <<_ACEOF
18059 cat confdefs.h >>conftest.$ac_ext
18060 cat >>conftest.$ac_ext <<_ACEOF
18061 /* end confdefs.h. */
18062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18064 #define $ac_func innocuous_$ac_func
18066 /* System header to define __stub macros and hopefully few prototypes,
18067 which can conflict with char $ac_func (); below.
18068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18069 <limits.h> exists even on freestanding compilers. */
18072 # include <limits.h>
18074 # include <assert.h>
18079 /* Override any gcc2 internal prototype to avoid an error. */
18084 /* We use char because int might match the return type of a gcc2
18085 builtin and then its argument prototype would still apply. */
18087 /* The GNU C library defines this for functions which it implements
18088 to always fail with ENOSYS. Some functions are actually named
18089 something starting with __ and the normal name is an alias. */
18090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18093 char (*f) () = $ac_func;
18102 return f != $ac_func;
18107 rm -f conftest.$ac_objext conftest$ac_exeext
18108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18109 (eval $ac_link) 2>&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
18113 { ac_try='test -s conftest$ac_exeext'
18114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115 (eval $ac_try) 2>&5
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); }; }; then
18119 eval "$as_ac_var=yes"
18121 echo "$as_me: failed program was:" >&5
18122 sed 's/^/| /' conftest.$ac_ext >&5
18124 eval "$as_ac_var=no"
18126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18129 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18130 if test `eval echo '${'$as_ac_var'}'` = yes; then
18131 cat >>confdefs.h <<_ACEOF
18132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18136 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18141 if test $ac_cv_func_strcspn = no; then
18155 for ac_func in strdup
18157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18158 echo "$as_me:$LINENO: checking for $ac_func" >&5
18159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18160 if eval "test \"\${$as_ac_var+set}\" = set"; then
18161 echo $ECHO_N "(cached) $ECHO_C" >&6
18163 cat >conftest.$ac_ext <<_ACEOF
18166 cat confdefs.h >>conftest.$ac_ext
18167 cat >>conftest.$ac_ext <<_ACEOF
18168 /* end confdefs.h. */
18169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18171 #define $ac_func innocuous_$ac_func
18173 /* System header to define __stub macros and hopefully few prototypes,
18174 which can conflict with char $ac_func (); below.
18175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18176 <limits.h> exists even on freestanding compilers. */
18179 # include <limits.h>
18181 # include <assert.h>
18186 /* Override any gcc2 internal prototype to avoid an error. */
18191 /* We use char because int might match the return type of a gcc2
18192 builtin and then its argument prototype would still apply. */
18194 /* The GNU C library defines this for functions which it implements
18195 to always fail with ENOSYS. Some functions are actually named
18196 something starting with __ and the normal name is an alias. */
18197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18200 char (*f) () = $ac_func;
18209 return f != $ac_func;
18214 rm -f conftest.$ac_objext conftest$ac_exeext
18215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18216 (eval $ac_link) 2>&5
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); } &&
18220 { ac_try='test -s conftest$ac_exeext'
18221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18222 (eval $ac_try) 2>&5
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); }; }; then
18226 eval "$as_ac_var=yes"
18228 echo "$as_me: failed program was:" >&5
18229 sed 's/^/| /' conftest.$ac_ext >&5
18231 eval "$as_ac_var=no"
18233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18237 if test `eval echo '${'$as_ac_var'}'` = yes; then
18238 cat >>confdefs.h <<_ACEOF
18239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18243 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18248 if test $ac_cv_func_strdup = no; then
18259 for ac_func in strndup
18261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18262 echo "$as_me:$LINENO: checking for $ac_func" >&5
18263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18264 if eval "test \"\${$as_ac_var+set}\" = set"; then
18265 echo $ECHO_N "(cached) $ECHO_C" >&6
18267 cat >conftest.$ac_ext <<_ACEOF
18270 cat confdefs.h >>conftest.$ac_ext
18271 cat >>conftest.$ac_ext <<_ACEOF
18272 /* end confdefs.h. */
18273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18275 #define $ac_func innocuous_$ac_func
18277 /* System header to define __stub macros and hopefully few prototypes,
18278 which can conflict with char $ac_func (); below.
18279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18280 <limits.h> exists even on freestanding compilers. */
18283 # include <limits.h>
18285 # include <assert.h>
18290 /* Override any gcc2 internal prototype to avoid an error. */
18295 /* We use char because int might match the return type of a gcc2
18296 builtin and then its argument prototype would still apply. */
18298 /* The GNU C library defines this for functions which it implements
18299 to always fail with ENOSYS. Some functions are actually named
18300 something starting with __ and the normal name is an alias. */
18301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18304 char (*f) () = $ac_func;
18313 return f != $ac_func;
18318 rm -f conftest.$ac_objext conftest$ac_exeext
18319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18320 (eval $ac_link) 2>&5
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); } &&
18324 { ac_try='test -s conftest$ac_exeext'
18325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326 (eval $ac_try) 2>&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; }; then
18330 eval "$as_ac_var=yes"
18332 echo "$as_me: failed program was:" >&5
18333 sed 's/^/| /' conftest.$ac_ext >&5
18335 eval "$as_ac_var=no"
18337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18340 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18341 if test `eval echo '${'$as_ac_var'}'` = yes; then
18342 cat >>confdefs.h <<_ACEOF
18343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18347 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18352 if test $ac_cv_func_strndup = no; then
18355 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
18356 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
18357 if test "${ac_cv_have_decl_strnlen+set}" = set; then
18358 echo $ECHO_N "(cached) $ECHO_C" >&6
18360 cat >conftest.$ac_ext <<_ACEOF
18363 cat confdefs.h >>conftest.$ac_ext
18364 cat >>conftest.$ac_ext <<_ACEOF
18365 /* end confdefs.h. */
18366 $ac_includes_default
18371 char *p = (char *) strnlen;
18378 rm -f conftest.$ac_objext
18379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18380 (eval $ac_compile) 2>&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); } &&
18384 { ac_try='test -s conftest.$ac_objext'
18385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386 (eval $ac_try) 2>&5
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; }; then
18390 ac_cv_have_decl_strnlen=yes
18392 echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18395 ac_cv_have_decl_strnlen=no
18397 rm -f conftest.$ac_objext conftest.$ac_ext
18399 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
18400 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
18401 if test $ac_cv_have_decl_strnlen = yes; then
18403 cat >>confdefs.h <<_ACEOF
18404 #define HAVE_DECL_STRNLEN 1
18409 cat >>confdefs.h <<_ACEOF
18410 #define HAVE_DECL_STRNLEN 0
18429 echo "$as_me:$LINENO: checking for working strnlen" >&5
18430 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
18431 if test "${ac_cv_func_strnlen_working+set}" = set; then
18432 echo $ECHO_N "(cached) $ECHO_C" >&6
18434 if test "$cross_compiling" = yes; then
18435 ac_cv_func_strnlen_working=no
18437 cat >conftest.$ac_ext <<_ACEOF
18440 cat confdefs.h >>conftest.$ac_ext
18441 cat >>conftest.$ac_ext <<_ACEOF
18442 /* end confdefs.h. */
18443 $ac_includes_default
18449 #define S_LEN (sizeof S - 1)
18451 /* At least one implementation is buggy: that of AIX 4.3 would
18452 give strnlen (S, 1) == 3. */
18455 for (i = 0; i < S_LEN + 1; ++i)
18457 int expected = i <= S_LEN ? i : S_LEN;
18458 if (strnlen (S, i) != expected)
18467 rm -f conftest$ac_exeext
18468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18469 (eval $ac_link) 2>&5
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474 (eval $ac_try) 2>&5
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); }; }; then
18478 ac_cv_func_strnlen_working=yes
18480 echo "$as_me: program exited with status $ac_status" >&5
18481 echo "$as_me: failed program was:" >&5
18482 sed 's/^/| /' conftest.$ac_ext >&5
18484 ( exit $ac_status )
18485 ac_cv_func_strnlen_working=no
18487 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18490 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
18491 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
18492 test $ac_cv_func_strnlen_working = no && LIBOBJS="$LIBOBJS strnlen.$ac_objext"
18494 if test $ac_cv_func_strnlen_working = no; then
18495 # This is necessary because automake-1.6.1 doens't understand
18496 # that the above use of AC_FUNC_STRNLEN means we may have to use
18498 #AC_LIBOBJ(strnlen)
18500 cat >>confdefs.h <<\_ACEOF
18501 #define strnlen rpl_strnlen
18516 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
18517 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
18518 if test "${ac_cv_have_decl_memchr+set}" = set; then
18519 echo $ECHO_N "(cached) $ECHO_C" >&6
18521 cat >conftest.$ac_ext <<_ACEOF
18524 cat confdefs.h >>conftest.$ac_ext
18525 cat >>conftest.$ac_ext <<_ACEOF
18526 /* end confdefs.h. */
18527 $ac_includes_default
18532 char *p = (char *) memchr;
18539 rm -f conftest.$ac_objext
18540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18541 (eval $ac_compile) 2>&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); } &&
18545 { ac_try='test -s conftest.$ac_objext'
18546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18547 (eval $ac_try) 2>&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); }; }; then
18551 ac_cv_have_decl_memchr=yes
18553 echo "$as_me: failed program was:" >&5
18554 sed 's/^/| /' conftest.$ac_ext >&5
18556 ac_cv_have_decl_memchr=no
18558 rm -f conftest.$ac_objext conftest.$ac_ext
18560 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
18561 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
18562 if test $ac_cv_have_decl_memchr = yes; then
18564 cat >>confdefs.h <<_ACEOF
18565 #define HAVE_DECL_MEMCHR 1
18570 cat >>confdefs.h <<_ACEOF
18571 #define HAVE_DECL_MEMCHR 0
18583 for ac_func in strpbrk
18585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18586 echo "$as_me:$LINENO: checking for $ac_func" >&5
18587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18588 if eval "test \"\${$as_ac_var+set}\" = set"; then
18589 echo $ECHO_N "(cached) $ECHO_C" >&6
18591 cat >conftest.$ac_ext <<_ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h. */
18597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18599 #define $ac_func innocuous_$ac_func
18601 /* System header to define __stub macros and hopefully few prototypes,
18602 which can conflict with char $ac_func (); below.
18603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18604 <limits.h> exists even on freestanding compilers. */
18607 # include <limits.h>
18609 # include <assert.h>
18614 /* Override any gcc2 internal prototype to avoid an error. */
18619 /* We use char because int might match the return type of a gcc2
18620 builtin and then its argument prototype would still apply. */
18622 /* The GNU C library defines this for functions which it implements
18623 to always fail with ENOSYS. Some functions are actually named
18624 something starting with __ and the normal name is an alias. */
18625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18628 char (*f) () = $ac_func;
18637 return f != $ac_func;
18642 rm -f conftest.$ac_objext conftest$ac_exeext
18643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18644 (eval $ac_link) 2>&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); } &&
18648 { ac_try='test -s conftest$ac_exeext'
18649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18650 (eval $ac_try) 2>&5
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); }; }; then
18654 eval "$as_ac_var=yes"
18656 echo "$as_me: failed program was:" >&5
18657 sed 's/^/| /' conftest.$ac_ext >&5
18659 eval "$as_ac_var=no"
18661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18665 if test `eval echo '${'$as_ac_var'}'` = yes; then
18666 cat >>confdefs.h <<_ACEOF
18667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18671 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18676 if test $ac_cv_func_strpbrk = no; then
18690 for ac_func in strstr
18692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18693 echo "$as_me:$LINENO: checking for $ac_func" >&5
18694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18695 if eval "test \"\${$as_ac_var+set}\" = set"; then
18696 echo $ECHO_N "(cached) $ECHO_C" >&6
18698 cat >conftest.$ac_ext <<_ACEOF
18701 cat confdefs.h >>conftest.$ac_ext
18702 cat >>conftest.$ac_ext <<_ACEOF
18703 /* end confdefs.h. */
18704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18706 #define $ac_func innocuous_$ac_func
18708 /* System header to define __stub macros and hopefully few prototypes,
18709 which can conflict with char $ac_func (); below.
18710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18711 <limits.h> exists even on freestanding compilers. */
18714 # include <limits.h>
18716 # include <assert.h>
18721 /* Override any gcc2 internal prototype to avoid an error. */
18726 /* We use char because int might match the return type of a gcc2
18727 builtin and then its argument prototype would still apply. */
18729 /* The GNU C library defines this for functions which it implements
18730 to always fail with ENOSYS. Some functions are actually named
18731 something starting with __ and the normal name is an alias. */
18732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18735 char (*f) () = $ac_func;
18744 return f != $ac_func;
18749 rm -f conftest.$ac_objext conftest$ac_exeext
18750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18751 (eval $ac_link) 2>&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); } &&
18755 { ac_try='test -s conftest$ac_exeext'
18756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18757 (eval $ac_try) 2>&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; }; then
18761 eval "$as_ac_var=yes"
18763 echo "$as_me: failed program was:" >&5
18764 sed 's/^/| /' conftest.$ac_ext >&5
18766 eval "$as_ac_var=no"
18768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18772 if test `eval echo '${'$as_ac_var'}'` = yes; then
18773 cat >>confdefs.h <<_ACEOF
18774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18778 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18783 if test $ac_cv_func_strstr = no; then
18795 echo "$as_me:$LINENO: checking for working strtod" >&5
18796 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
18797 if test "${ac_cv_func_strtod+set}" = set; then
18798 echo $ECHO_N "(cached) $ECHO_C" >&6
18800 if test "$cross_compiling" = yes; then
18801 ac_cv_func_strtod=no
18803 cat >conftest.$ac_ext <<_ACEOF
18806 cat confdefs.h >>conftest.$ac_ext
18807 cat >>conftest.$ac_ext <<_ACEOF
18808 /* end confdefs.h. */
18815 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
18816 char *string = " +69";
18819 value = strtod (string, &term);
18820 if (value != 69 || term != (string + 4))
18825 /* Under Solaris 2.4, strtod returns the wrong value for the
18826 terminating character under some conditions. */
18827 char *string = "NaN";
18829 strtod (string, &term);
18830 if (term != string && *(term - 1) == 0)
18837 rm -f conftest$ac_exeext
18838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18839 (eval $ac_link) 2>&5
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18844 (eval $ac_try) 2>&5
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); }; }; then
18848 ac_cv_func_strtod=yes
18850 echo "$as_me: program exited with status $ac_status" >&5
18851 echo "$as_me: failed program was:" >&5
18852 sed 's/^/| /' conftest.$ac_ext >&5
18854 ( exit $ac_status )
18855 ac_cv_func_strtod=no
18857 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18860 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
18861 echo "${ECHO_T}$ac_cv_func_strtod" >&6
18862 if test $ac_cv_func_strtod = no; then
18863 LIBOBJS="$LIBOBJS strtod.$ac_objext"
18864 echo "$as_me:$LINENO: checking for pow" >&5
18865 echo $ECHO_N "checking for pow... $ECHO_C" >&6
18866 if test "${ac_cv_func_pow+set}" = set; then
18867 echo $ECHO_N "(cached) $ECHO_C" >&6
18869 cat >conftest.$ac_ext <<_ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h. */
18875 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
18876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18877 #define pow innocuous_pow
18879 /* System header to define __stub macros and hopefully few prototypes,
18880 which can conflict with char pow (); below.
18881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18882 <limits.h> exists even on freestanding compilers. */
18885 # include <limits.h>
18887 # include <assert.h>
18892 /* Override any gcc2 internal prototype to avoid an error. */
18897 /* We use char because int might match the return type of a gcc2
18898 builtin and then its argument prototype would still apply. */
18900 /* The GNU C library defines this for functions which it implements
18901 to always fail with ENOSYS. Some functions are actually named
18902 something starting with __ and the normal name is an alias. */
18903 #if defined (__stub_pow) || defined (__stub___pow)
18906 char (*f) () = pow;
18920 rm -f conftest.$ac_objext conftest$ac_exeext
18921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18922 (eval $ac_link) 2>&5
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); } &&
18926 { ac_try='test -s conftest$ac_exeext'
18927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18928 (eval $ac_try) 2>&5
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); }; }; then
18934 echo "$as_me: failed program was:" >&5
18935 sed 's/^/| /' conftest.$ac_ext >&5
18939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18941 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
18942 echo "${ECHO_T}$ac_cv_func_pow" >&6
18944 if test $ac_cv_func_pow = no; then
18945 echo "$as_me:$LINENO: checking for pow in -lm" >&5
18946 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
18947 if test "${ac_cv_lib_m_pow+set}" = set; then
18948 echo $ECHO_N "(cached) $ECHO_C" >&6
18950 ac_check_lib_save_LIBS=$LIBS
18952 cat >conftest.$ac_ext <<_ACEOF
18955 cat confdefs.h >>conftest.$ac_ext
18956 cat >>conftest.$ac_ext <<_ACEOF
18957 /* end confdefs.h. */
18959 /* Override any gcc2 internal prototype to avoid an error. */
18963 /* We use char because int might match the return type of a gcc2
18964 builtin and then its argument prototype would still apply. */
18974 rm -f conftest.$ac_objext conftest$ac_exeext
18975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18976 (eval $ac_link) 2>&5
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); } &&
18980 { ac_try='test -s conftest$ac_exeext'
18981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18982 (eval $ac_try) 2>&5
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); }; }; then
18986 ac_cv_lib_m_pow=yes
18988 echo "$as_me: failed program was:" >&5
18989 sed 's/^/| /' conftest.$ac_ext >&5
18993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18994 LIBS=$ac_check_lib_save_LIBS
18996 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
18997 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
18998 if test $ac_cv_lib_m_pow = yes; then
19001 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
19002 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
19011 if test $ac_cv_func_strtod = no; then
19013 cat >>confdefs.h <<\_ACEOF
19014 #define strtod rpl_strtod
19020 for ac_header in float.h
19022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19024 echo "$as_me:$LINENO: checking for $ac_header" >&5
19025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19027 echo $ECHO_N "(cached) $ECHO_C" >&6
19029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19032 # Is the header compilable?
19033 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19035 cat >conftest.$ac_ext <<_ACEOF
19038 cat confdefs.h >>conftest.$ac_ext
19039 cat >>conftest.$ac_ext <<_ACEOF
19040 /* end confdefs.h. */
19041 $ac_includes_default
19042 #include <$ac_header>
19044 rm -f conftest.$ac_objext
19045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19046 (eval $ac_compile) 2>&5
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); } &&
19050 { ac_try='test -s conftest.$ac_objext'
19051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19052 (eval $ac_try) 2>&5
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); }; }; then
19056 ac_header_compiler=yes
19058 echo "$as_me: failed program was:" >&5
19059 sed 's/^/| /' conftest.$ac_ext >&5
19061 ac_header_compiler=no
19063 rm -f conftest.$ac_objext conftest.$ac_ext
19064 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19065 echo "${ECHO_T}$ac_header_compiler" >&6
19067 # Is the header present?
19068 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19070 cat >conftest.$ac_ext <<_ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h. */
19076 #include <$ac_header>
19078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19081 grep -v '^ *+' conftest.er1 >conftest.err
19083 cat conftest.err >&5
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); } >/dev/null; then
19086 if test -s conftest.err; then
19087 ac_cpp_err=$ac_c_preproc_warn_flag
19094 if test -z "$ac_cpp_err"; then
19095 ac_header_preproc=yes
19097 echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19100 ac_header_preproc=no
19102 rm -f conftest.err conftest.$ac_ext
19103 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19104 echo "${ECHO_T}$ac_header_preproc" >&6
19106 # So? What about this header?
19107 case $ac_header_compiler:$ac_header_preproc in
19109 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19113 ac_header_preproc=yes
19116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19119 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19120 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19121 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19122 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19123 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19126 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19127 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19130 ## ------------------------------------ ##
19131 ## Report this to bug-coreutils@gnu.org ##
19132 ## ------------------------------------ ##
19135 sed "s/^/$as_me: WARNING: /" >&2
19138 echo "$as_me:$LINENO: checking for $ac_header" >&5
19139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19141 echo $ECHO_N "(cached) $ECHO_C" >&6
19143 eval "$as_ac_Header=\$ac_header_preproc"
19145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19150 cat >>confdefs.h <<_ACEOF
19151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19169 echo "$as_me:$LINENO: checking for long long" >&5
19170 echo $ECHO_N "checking for long long... $ECHO_C" >&6
19171 if test "${ac_cv_type_long_long+set}" = set; then
19172 echo $ECHO_N "(cached) $ECHO_C" >&6
19175 cat >conftest.$ac_ext <<_ACEOF
19178 cat confdefs.h >>conftest.$ac_ext
19179 cat >>conftest.$ac_ext <<_ACEOF
19180 /* end confdefs.h. */
19181 long long ll = 1LL; int i = 63;
19185 long long llmax = (long long) -1;
19186 return ll << i | ll >> i | llmax / ll | llmax % ll;
19191 rm -f conftest.$ac_objext conftest$ac_exeext
19192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19193 (eval $ac_link) 2>&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); } &&
19197 { ac_try='test -s conftest$ac_exeext'
19198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199 (eval $ac_try) 2>&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; }; then
19203 ac_cv_type_long_long=yes
19205 echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19208 ac_cv_type_long_long=no
19210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19212 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19213 echo "${ECHO_T}$ac_cv_type_long_long" >&6
19214 if test $ac_cv_type_long_long = yes; then
19216 cat >>confdefs.h <<\_ACEOF
19217 #define HAVE_LONG_LONG 1
19223 echo "$as_me:$LINENO: checking whether strtol is declared" >&5
19224 echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
19225 if test "${ac_cv_have_decl_strtol+set}" = set; then
19226 echo $ECHO_N "(cached) $ECHO_C" >&6
19228 cat >conftest.$ac_ext <<_ACEOF
19231 cat confdefs.h >>conftest.$ac_ext
19232 cat >>conftest.$ac_ext <<_ACEOF
19233 /* end confdefs.h. */
19234 $ac_includes_default
19239 char *p = (char *) strtol;
19246 rm -f conftest.$ac_objext
19247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19248 (eval $ac_compile) 2>&5
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); } &&
19252 { ac_try='test -s conftest.$ac_objext'
19253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19254 (eval $ac_try) 2>&5
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); }; }; then
19258 ac_cv_have_decl_strtol=yes
19260 echo "$as_me: failed program was:" >&5
19261 sed 's/^/| /' conftest.$ac_ext >&5
19263 ac_cv_have_decl_strtol=no
19265 rm -f conftest.$ac_objext conftest.$ac_ext
19267 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
19268 echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
19269 if test $ac_cv_have_decl_strtol = yes; then
19271 cat >>confdefs.h <<_ACEOF
19272 #define HAVE_DECL_STRTOL 1
19277 cat >>confdefs.h <<_ACEOF
19278 #define HAVE_DECL_STRTOL 0
19290 echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
19291 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6
19292 if test "${jm_cv_func_strtoimax_macro+set}" = set; then
19293 echo $ECHO_N "(cached) $ECHO_C" >&6
19295 cat >conftest.$ac_ext <<_ACEOF
19298 cat confdefs.h >>conftest.$ac_ext
19299 cat >>conftest.$ac_ext <<_ACEOF
19300 /* end confdefs.h. */
19301 #include <inttypes.h>
19303 inttypes_h_defines_strtoimax
19306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19307 $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
19308 jm_cv_func_strtoimax_macro=yes
19310 jm_cv_func_strtoimax_macro=no
19315 echo "$as_me:$LINENO: result: $jm_cv_func_strtoimax_macro" >&5
19316 echo "${ECHO_T}$jm_cv_func_strtoimax_macro" >&6
19318 if test "$jm_cv_func_strtoimax_macro" != yes; then
19320 for ac_func in strtoimax
19322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19323 echo "$as_me:$LINENO: checking for $ac_func" >&5
19324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19325 if eval "test \"\${$as_ac_var+set}\" = set"; then
19326 echo $ECHO_N "(cached) $ECHO_C" >&6
19328 cat >conftest.$ac_ext <<_ACEOF
19331 cat confdefs.h >>conftest.$ac_ext
19332 cat >>conftest.$ac_ext <<_ACEOF
19333 /* end confdefs.h. */
19334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19336 #define $ac_func innocuous_$ac_func
19338 /* System header to define __stub macros and hopefully few prototypes,
19339 which can conflict with char $ac_func (); below.
19340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19341 <limits.h> exists even on freestanding compilers. */
19344 # include <limits.h>
19346 # include <assert.h>
19351 /* Override any gcc2 internal prototype to avoid an error. */
19356 /* We use char because int might match the return type of a gcc2
19357 builtin and then its argument prototype would still apply. */
19359 /* The GNU C library defines this for functions which it implements
19360 to always fail with ENOSYS. Some functions are actually named
19361 something starting with __ and the normal name is an alias. */
19362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19365 char (*f) () = $ac_func;
19374 return f != $ac_func;
19379 rm -f conftest.$ac_objext conftest$ac_exeext
19380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19381 (eval $ac_link) 2>&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); } &&
19385 { ac_try='test -s conftest$ac_exeext'
19386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387 (eval $ac_try) 2>&5
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); }; }; then
19391 eval "$as_ac_var=yes"
19393 echo "$as_me: failed program was:" >&5
19394 sed 's/^/| /' conftest.$ac_ext >&5
19396 eval "$as_ac_var=no"
19398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19402 if test `eval echo '${'$as_ac_var'}'` = yes; then
19403 cat >>confdefs.h <<_ACEOF
19404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19408 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19413 if test $ac_cv_func_strtoimax = no; then
19418 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
19420 test $ac_cv_type_long_long = yes \
19421 && ac_type='long long' \
19424 cat >>confdefs.h <<_ACEOF
19425 #define intmax_t $ac_type
19430 cat >>confdefs.h <<\_ACEOF
19431 #define HAVE_INTMAX_T 1
19450 echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
19451 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6
19452 if test "${ac_cv_have_decl_strtoll+set}" = set; then
19453 echo $ECHO_N "(cached) $ECHO_C" >&6
19455 cat >conftest.$ac_ext <<_ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h. */
19461 $ac_includes_default
19466 char *p = (char *) strtoll;
19473 rm -f conftest.$ac_objext
19474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19475 (eval $ac_compile) 2>&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } &&
19479 { ac_try='test -s conftest.$ac_objext'
19480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481 (eval $ac_try) 2>&5
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; }; then
19485 ac_cv_have_decl_strtoll=yes
19487 echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.$ac_ext >&5
19490 ac_cv_have_decl_strtoll=no
19492 rm -f conftest.$ac_objext conftest.$ac_ext
19494 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
19495 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6
19496 if test $ac_cv_have_decl_strtoll = yes; then
19498 cat >>confdefs.h <<_ACEOF
19499 #define HAVE_DECL_STRTOLL 1
19504 cat >>confdefs.h <<_ACEOF
19505 #define HAVE_DECL_STRTOLL 0
19519 if test "$ac_cv_type_long_long" = yes; then
19521 for ac_func in strtoll
19523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19524 echo "$as_me:$LINENO: checking for $ac_func" >&5
19525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19526 if eval "test \"\${$as_ac_var+set}\" = set"; then
19527 echo $ECHO_N "(cached) $ECHO_C" >&6
19529 cat >conftest.$ac_ext <<_ACEOF
19532 cat confdefs.h >>conftest.$ac_ext
19533 cat >>conftest.$ac_ext <<_ACEOF
19534 /* end confdefs.h. */
19535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19537 #define $ac_func innocuous_$ac_func
19539 /* System header to define __stub macros and hopefully few prototypes,
19540 which can conflict with char $ac_func (); below.
19541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19542 <limits.h> exists even on freestanding compilers. */
19545 # include <limits.h>
19547 # include <assert.h>
19552 /* Override any gcc2 internal prototype to avoid an error. */
19557 /* We use char because int might match the return type of a gcc2
19558 builtin and then its argument prototype would still apply. */
19560 /* The GNU C library defines this for functions which it implements
19561 to always fail with ENOSYS. Some functions are actually named
19562 something starting with __ and the normal name is an alias. */
19563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19566 char (*f) () = $ac_func;
19575 return f != $ac_func;
19580 rm -f conftest.$ac_objext conftest$ac_exeext
19581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19582 (eval $ac_link) 2>&5
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); } &&
19586 { ac_try='test -s conftest$ac_exeext'
19587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588 (eval $ac_try) 2>&5
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; }; then
19592 eval "$as_ac_var=yes"
19594 echo "$as_me: failed program was:" >&5
19595 sed 's/^/| /' conftest.$ac_ext >&5
19597 eval "$as_ac_var=no"
19599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19603 if test `eval echo '${'$as_ac_var'}'` = yes; then
19604 cat >>confdefs.h <<_ACEOF
19605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19609 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19614 if test $ac_cv_func_strtoll = no; then
19623 for ac_func in strtol
19625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19626 echo "$as_me:$LINENO: checking for $ac_func" >&5
19627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19628 if eval "test \"\${$as_ac_var+set}\" = set"; then
19629 echo $ECHO_N "(cached) $ECHO_C" >&6
19631 cat >conftest.$ac_ext <<_ACEOF
19634 cat confdefs.h >>conftest.$ac_ext
19635 cat >>conftest.$ac_ext <<_ACEOF
19636 /* end confdefs.h. */
19637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19639 #define $ac_func innocuous_$ac_func
19641 /* System header to define __stub macros and hopefully few prototypes,
19642 which can conflict with char $ac_func (); below.
19643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19644 <limits.h> exists even on freestanding compilers. */
19647 # include <limits.h>
19649 # include <assert.h>
19654 /* Override any gcc2 internal prototype to avoid an error. */
19659 /* We use char because int might match the return type of a gcc2
19660 builtin and then its argument prototype would still apply. */
19662 /* The GNU C library defines this for functions which it implements
19663 to always fail with ENOSYS. Some functions are actually named
19664 something starting with __ and the normal name is an alias. */
19665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19668 char (*f) () = $ac_func;
19677 return f != $ac_func;
19682 rm -f conftest.$ac_objext conftest$ac_exeext
19683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19684 (eval $ac_link) 2>&5
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); } &&
19688 { ac_try='test -s conftest$ac_exeext'
19689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19690 (eval $ac_try) 2>&5
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); }; }; then
19694 eval "$as_ac_var=yes"
19696 echo "$as_me: failed program was:" >&5
19697 sed 's/^/| /' conftest.$ac_ext >&5
19699 eval "$as_ac_var=no"
19701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19705 if test `eval echo '${'$as_ac_var'}'` = yes; then
19706 cat >>confdefs.h <<_ACEOF
19707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19711 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19716 if test $ac_cv_func_strtol = no; then
19738 if test "$ac_cv_type_unsigned_long_long" = yes; then
19740 for ac_func in strtoull
19742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19743 echo "$as_me:$LINENO: checking for $ac_func" >&5
19744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19745 if eval "test \"\${$as_ac_var+set}\" = set"; then
19746 echo $ECHO_N "(cached) $ECHO_C" >&6
19748 cat >conftest.$ac_ext <<_ACEOF
19751 cat confdefs.h >>conftest.$ac_ext
19752 cat >>conftest.$ac_ext <<_ACEOF
19753 /* end confdefs.h. */
19754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19756 #define $ac_func innocuous_$ac_func
19758 /* System header to define __stub macros and hopefully few prototypes,
19759 which can conflict with char $ac_func (); below.
19760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19761 <limits.h> exists even on freestanding compilers. */
19764 # include <limits.h>
19766 # include <assert.h>
19771 /* Override any gcc2 internal prototype to avoid an error. */
19776 /* We use char because int might match the return type of a gcc2
19777 builtin and then its argument prototype would still apply. */
19779 /* The GNU C library defines this for functions which it implements
19780 to always fail with ENOSYS. Some functions are actually named
19781 something starting with __ and the normal name is an alias. */
19782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19785 char (*f) () = $ac_func;
19794 return f != $ac_func;
19799 rm -f conftest.$ac_objext conftest$ac_exeext
19800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19801 (eval $ac_link) 2>&5
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); } &&
19805 { ac_try='test -s conftest$ac_exeext'
19806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807 (eval $ac_try) 2>&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; }; then
19811 eval "$as_ac_var=yes"
19813 echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19816 eval "$as_ac_var=no"
19818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19821 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19822 if test `eval echo '${'$as_ac_var'}'` = yes; then
19823 cat >>confdefs.h <<_ACEOF
19824 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19828 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19833 if test $ac_cv_func_strtoull = no; then
19842 for ac_func in strtoul
19844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19845 echo "$as_me:$LINENO: checking for $ac_func" >&5
19846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19847 if eval "test \"\${$as_ac_var+set}\" = set"; then
19848 echo $ECHO_N "(cached) $ECHO_C" >&6
19850 cat >conftest.$ac_ext <<_ACEOF
19853 cat confdefs.h >>conftest.$ac_ext
19854 cat >>conftest.$ac_ext <<_ACEOF
19855 /* end confdefs.h. */
19856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19858 #define $ac_func innocuous_$ac_func
19860 /* System header to define __stub macros and hopefully few prototypes,
19861 which can conflict with char $ac_func (); below.
19862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19863 <limits.h> exists even on freestanding compilers. */
19866 # include <limits.h>
19868 # include <assert.h>
19873 /* Override any gcc2 internal prototype to avoid an error. */
19878 /* We use char because int might match the return type of a gcc2
19879 builtin and then its argument prototype would still apply. */
19881 /* The GNU C library defines this for functions which it implements
19882 to always fail with ENOSYS. Some functions are actually named
19883 something starting with __ and the normal name is an alias. */
19884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19887 char (*f) () = $ac_func;
19896 return f != $ac_func;
19901 rm -f conftest.$ac_objext conftest$ac_exeext
19902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19903 (eval $ac_link) 2>&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); } &&
19907 { ac_try='test -s conftest$ac_exeext'
19908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19909 (eval $ac_try) 2>&5
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); }; }; then
19913 eval "$as_ac_var=yes"
19915 echo "$as_me: failed program was:" >&5
19916 sed 's/^/| /' conftest.$ac_ext >&5
19918 eval "$as_ac_var=no"
19920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19924 if test `eval echo '${'$as_ac_var'}'` = yes; then
19925 cat >>confdefs.h <<_ACEOF
19926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19930 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19935 if test $ac_cv_func_strtoul = no; then
19958 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
19959 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
19960 if test "${ac_cv_have_decl_strtoul+set}" = set; then
19961 echo $ECHO_N "(cached) $ECHO_C" >&6
19963 cat >conftest.$ac_ext <<_ACEOF
19966 cat confdefs.h >>conftest.$ac_ext
19967 cat >>conftest.$ac_ext <<_ACEOF
19968 /* end confdefs.h. */
19969 $ac_includes_default
19974 char *p = (char *) strtoul;
19981 rm -f conftest.$ac_objext
19982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19983 (eval $ac_compile) 2>&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); } &&
19987 { ac_try='test -s conftest.$ac_objext'
19988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19989 (eval $ac_try) 2>&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); }; }; then
19993 ac_cv_have_decl_strtoul=yes
19995 echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
19998 ac_cv_have_decl_strtoul=no
20000 rm -f conftest.$ac_objext conftest.$ac_ext
20002 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
20003 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
20004 if test $ac_cv_have_decl_strtoul = yes; then
20006 cat >>confdefs.h <<_ACEOF
20007 #define HAVE_DECL_STRTOUL 1
20012 cat >>confdefs.h <<_ACEOF
20013 #define HAVE_DECL_STRTOUL 0
20025 echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
20026 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6
20027 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
20028 echo $ECHO_N "(cached) $ECHO_C" >&6
20030 cat >conftest.$ac_ext <<_ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h. */
20036 #include <inttypes.h>
20038 inttypes_h_defines_strtoumax
20041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20042 $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
20043 jm_cv_func_strtoumax_macro=yes
20045 jm_cv_func_strtoumax_macro=no
20050 echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
20051 echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6
20053 if test "$jm_cv_func_strtoumax_macro" != yes; then
20055 for ac_func in strtoumax
20057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20058 echo "$as_me:$LINENO: checking for $ac_func" >&5
20059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20060 if eval "test \"\${$as_ac_var+set}\" = set"; then
20061 echo $ECHO_N "(cached) $ECHO_C" >&6
20063 cat >conftest.$ac_ext <<_ACEOF
20066 cat confdefs.h >>conftest.$ac_ext
20067 cat >>conftest.$ac_ext <<_ACEOF
20068 /* end confdefs.h. */
20069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20071 #define $ac_func innocuous_$ac_func
20073 /* System header to define __stub macros and hopefully few prototypes,
20074 which can conflict with char $ac_func (); below.
20075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20076 <limits.h> exists even on freestanding compilers. */
20079 # include <limits.h>
20081 # include <assert.h>
20086 /* Override any gcc2 internal prototype to avoid an error. */
20091 /* We use char because int might match the return type of a gcc2
20092 builtin and then its argument prototype would still apply. */
20094 /* The GNU C library defines this for functions which it implements
20095 to always fail with ENOSYS. Some functions are actually named
20096 something starting with __ and the normal name is an alias. */
20097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20100 char (*f) () = $ac_func;
20109 return f != $ac_func;
20114 rm -f conftest.$ac_objext conftest$ac_exeext
20115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20116 (eval $ac_link) 2>&5
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); } &&
20120 { ac_try='test -s conftest$ac_exeext'
20121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122 (eval $ac_try) 2>&5
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); }; }; then
20126 eval "$as_ac_var=yes"
20128 echo "$as_me: failed program was:" >&5
20129 sed 's/^/| /' conftest.$ac_ext >&5
20131 eval "$as_ac_var=no"
20133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20137 if test `eval echo '${'$as_ac_var'}'` = yes; then
20138 cat >>confdefs.h <<_ACEOF
20139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20143 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20148 if test $ac_cv_func_strtoumax = no; then
20153 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
20155 test $ac_cv_type_unsigned_long_long = yes \
20156 && ac_type='unsigned long long' \
20157 || ac_type='unsigned long'
20159 cat >>confdefs.h <<_ACEOF
20160 #define uintmax_t $ac_type
20165 cat >>confdefs.h <<\_ACEOF
20166 #define HAVE_UINTMAX_T 1
20185 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
20186 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
20187 if test "${ac_cv_have_decl_strtoull+set}" = set; then
20188 echo $ECHO_N "(cached) $ECHO_C" >&6
20190 cat >conftest.$ac_ext <<_ACEOF
20193 cat confdefs.h >>conftest.$ac_ext
20194 cat >>conftest.$ac_ext <<_ACEOF
20195 /* end confdefs.h. */
20196 $ac_includes_default
20201 char *p = (char *) strtoull;
20208 rm -f conftest.$ac_objext
20209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20210 (eval $ac_compile) 2>&5
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); } &&
20214 { ac_try='test -s conftest.$ac_objext'
20215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20216 (eval $ac_try) 2>&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); }; }; then
20220 ac_cv_have_decl_strtoull=yes
20222 echo "$as_me: failed program was:" >&5
20223 sed 's/^/| /' conftest.$ac_ext >&5
20225 ac_cv_have_decl_strtoull=no
20227 rm -f conftest.$ac_objext conftest.$ac_ext
20229 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
20230 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
20231 if test $ac_cv_have_decl_strtoull = yes; then
20233 cat >>confdefs.h <<_ACEOF
20234 #define HAVE_DECL_STRTOULL 1
20239 cat >>confdefs.h <<_ACEOF
20240 #define HAVE_DECL_STRTOULL 0
20256 for ac_func in strverscmp
20258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20259 echo "$as_me:$LINENO: checking for $ac_func" >&5
20260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20261 if eval "test \"\${$as_ac_var+set}\" = set"; then
20262 echo $ECHO_N "(cached) $ECHO_C" >&6
20264 cat >conftest.$ac_ext <<_ACEOF
20267 cat confdefs.h >>conftest.$ac_ext
20268 cat >>conftest.$ac_ext <<_ACEOF
20269 /* end confdefs.h. */
20270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20272 #define $ac_func innocuous_$ac_func
20274 /* System header to define __stub macros and hopefully few prototypes,
20275 which can conflict with char $ac_func (); below.
20276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20277 <limits.h> exists even on freestanding compilers. */
20280 # include <limits.h>
20282 # include <assert.h>
20287 /* Override any gcc2 internal prototype to avoid an error. */
20292 /* We use char because int might match the return type of a gcc2
20293 builtin and then its argument prototype would still apply. */
20295 /* The GNU C library defines this for functions which it implements
20296 to always fail with ENOSYS. Some functions are actually named
20297 something starting with __ and the normal name is an alias. */
20298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20301 char (*f) () = $ac_func;
20310 return f != $ac_func;
20315 rm -f conftest.$ac_objext conftest$ac_exeext
20316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20317 (eval $ac_link) 2>&5
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); } &&
20321 { ac_try='test -s conftest$ac_exeext'
20322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20323 (eval $ac_try) 2>&5
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); }; }; then
20327 eval "$as_ac_var=yes"
20329 echo "$as_me: failed program was:" >&5
20330 sed 's/^/| /' conftest.$ac_ext >&5
20332 eval "$as_ac_var=no"
20334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20338 if test `eval echo '${'$as_ac_var'}'` = yes; then
20339 cat >>confdefs.h <<_ACEOF
20340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20344 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20349 if test $ac_cv_func_strverscmp = no; then
20356 echo "$as_me:$LINENO: checking for signed" >&5
20357 echo $ECHO_N "checking for signed... $ECHO_C" >&6
20358 if test "${bh_cv_c_signed+set}" = set; then
20359 echo $ECHO_N "(cached) $ECHO_C" >&6
20362 cat >conftest.$ac_ext <<_ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h. */
20377 rm -f conftest.$ac_objext
20378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20379 (eval $ac_compile) 2>&5
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); } &&
20383 { ac_try='test -s conftest.$ac_objext'
20384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385 (eval $ac_try) 2>&5
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); }; }; then
20391 echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20396 rm -f conftest.$ac_objext conftest.$ac_ext
20398 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
20399 echo "${ECHO_T}$bh_cv_c_signed" >&6
20400 if test $bh_cv_c_signed = no; then
20402 cat >>confdefs.h <<\_ACEOF
20409 echo "$as_me:$LINENO: checking for long double" >&5
20410 echo $ECHO_N "checking for long double... $ECHO_C" >&6
20411 if test "${gt_cv_c_long_double+set}" = set; then
20412 echo $ECHO_N "(cached) $ECHO_C" >&6
20414 if test "$GCC" = yes; then
20415 gt_cv_c_long_double=yes
20418 cat >conftest.$ac_ext <<_ACEOF
20421 cat confdefs.h >>conftest.$ac_ext
20422 cat >>conftest.$ac_ext <<_ACEOF
20423 /* end confdefs.h. */
20425 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
20426 long double foo = 0.0;
20427 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
20428 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
20438 rm -f conftest.$ac_objext
20439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20440 (eval $ac_compile) 2>&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); } &&
20444 { ac_try='test -s conftest.$ac_objext'
20445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446 (eval $ac_try) 2>&5
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; }; then
20450 gt_cv_c_long_double=yes
20452 echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20455 gt_cv_c_long_double=no
20457 rm -f conftest.$ac_objext conftest.$ac_ext
20460 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
20461 echo "${ECHO_T}$gt_cv_c_long_double" >&6
20462 if test $gt_cv_c_long_double = yes; then
20464 cat >>confdefs.h <<\_ACEOF
20465 #define HAVE_LONG_DOUBLE 1
20471 echo "$as_me:$LINENO: checking for wchar_t" >&5
20472 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20473 if test "${gt_cv_c_wchar_t+set}" = set; then
20474 echo $ECHO_N "(cached) $ECHO_C" >&6
20477 cat >conftest.$ac_ext <<_ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h. */
20483 #include <stddef.h>
20484 wchar_t foo = (wchar_t)'\0';
20493 rm -f conftest.$ac_objext
20494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20495 (eval $ac_compile) 2>&5
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); } &&
20499 { ac_try='test -s conftest.$ac_objext'
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 gt_cv_c_wchar_t=yes
20507 echo "$as_me: failed program was:" >&5
20508 sed 's/^/| /' conftest.$ac_ext >&5
20512 rm -f conftest.$ac_objext conftest.$ac_ext
20514 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
20515 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
20516 if test $gt_cv_c_wchar_t = yes; then
20518 cat >>confdefs.h <<\_ACEOF
20519 #define HAVE_WCHAR_T 1
20525 echo "$as_me:$LINENO: checking for wint_t" >&5
20526 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
20527 if test "${gt_cv_c_wint_t+set}" = set; then
20528 echo $ECHO_N "(cached) $ECHO_C" >&6
20531 cat >conftest.$ac_ext <<_ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h. */
20538 wint_t foo = (wchar_t)'\0';
20547 rm -f conftest.$ac_objext
20548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20549 (eval $ac_compile) 2>&5
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); } &&
20553 { ac_try='test -s conftest.$ac_objext'
20554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20555 (eval $ac_try) 2>&5
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); }; }; then
20561 echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20566 rm -f conftest.$ac_objext conftest.$ac_ext
20568 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
20569 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
20570 if test $gt_cv_c_wint_t = yes; then
20572 cat >>confdefs.h <<\_ACEOF
20573 #define HAVE_WINT_T 1
20581 echo "$as_me:$LINENO: checking for intmax_t" >&5
20582 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
20583 if test "${gt_cv_c_intmax_t+set}" = set; then
20584 echo $ECHO_N "(cached) $ECHO_C" >&6
20587 cat >conftest.$ac_ext <<_ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h. */
20594 #include <stddef.h>
20595 #include <stdlib.h>
20596 #if HAVE_STDINT_H_WITH_UINTMAX
20597 #include <stdint.h>
20599 #if HAVE_INTTYPES_H_WITH_UINTMAX
20600 #include <inttypes.h>
20611 rm -f conftest.$ac_objext
20612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20613 (eval $ac_compile) 2>&5
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); } &&
20617 { ac_try='test -s conftest.$ac_objext'
20618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619 (eval $ac_try) 2>&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; }; then
20623 gt_cv_c_intmax_t=yes
20625 echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.$ac_ext >&5
20628 gt_cv_c_intmax_t=no
20630 rm -f conftest.$ac_objext conftest.$ac_ext
20632 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
20633 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
20634 if test $gt_cv_c_intmax_t = yes; then
20636 cat >>confdefs.h <<\_ACEOF
20637 #define HAVE_INTMAX_T 1
20642 test $ac_cv_type_long_long = yes \
20643 && ac_type='long long' \
20646 cat >>confdefs.h <<_ACEOF
20647 #define intmax_t $ac_type
20654 for ac_func in vasnprintf
20656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20657 echo "$as_me:$LINENO: checking for $ac_func" >&5
20658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20659 if eval "test \"\${$as_ac_var+set}\" = set"; then
20660 echo $ECHO_N "(cached) $ECHO_C" >&6
20662 cat >conftest.$ac_ext <<_ACEOF
20665 cat confdefs.h >>conftest.$ac_ext
20666 cat >>conftest.$ac_ext <<_ACEOF
20667 /* end confdefs.h. */
20668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20670 #define $ac_func innocuous_$ac_func
20672 /* System header to define __stub macros and hopefully few prototypes,
20673 which can conflict with char $ac_func (); below.
20674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20675 <limits.h> exists even on freestanding compilers. */
20678 # include <limits.h>
20680 # include <assert.h>
20685 /* Override any gcc2 internal prototype to avoid an error. */
20690 /* We use char because int might match the return type of a gcc2
20691 builtin and then its argument prototype would still apply. */
20693 /* The GNU C library defines this for functions which it implements
20694 to always fail with ENOSYS. Some functions are actually named
20695 something starting with __ and the normal name is an alias. */
20696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20699 char (*f) () = $ac_func;
20708 return f != $ac_func;
20713 rm -f conftest.$ac_objext conftest$ac_exeext
20714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20715 (eval $ac_link) 2>&5
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); } &&
20719 { ac_try='test -s conftest$ac_exeext'
20720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20721 (eval $ac_try) 2>&5
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); }; }; then
20725 eval "$as_ac_var=yes"
20727 echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20730 eval "$as_ac_var=no"
20732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20735 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20736 if test `eval echo '${'$as_ac_var'}'` = yes; then
20737 cat >>confdefs.h <<_ACEOF
20738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20742 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20747 if test $ac_cv_func_vasnprintf = no; then
20748 LIBOBJS="$LIBOBJS printf-args.$ac_objext"
20749 LIBOBJS="$LIBOBJS printf-parse.$ac_objext"
20750 LIBOBJS="$LIBOBJS asnprintf.$ac_objext"
20764 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
20765 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
20766 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
20767 echo $ECHO_N "(cached) $ECHO_C" >&6
20769 cat >conftest.$ac_ext <<_ACEOF
20772 cat confdefs.h >>conftest.$ac_ext
20773 cat >>conftest.$ac_ext <<_ACEOF
20774 /* end confdefs.h. */
20775 $ac_includes_default
20779 if ((ptrdiff_t *) 0)
20781 if (sizeof (ptrdiff_t))
20787 rm -f conftest.$ac_objext
20788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20789 (eval $ac_compile) 2>&5
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); } &&
20793 { ac_try='test -s conftest.$ac_objext'
20794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20795 (eval $ac_try) 2>&5
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); }; }; then
20799 ac_cv_type_ptrdiff_t=yes
20801 echo "$as_me: failed program was:" >&5
20802 sed 's/^/| /' conftest.$ac_ext >&5
20804 ac_cv_type_ptrdiff_t=no
20806 rm -f conftest.$ac_objext conftest.$ac_ext
20808 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
20809 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
20810 if test $ac_cv_type_ptrdiff_t = yes; then
20812 cat >>confdefs.h <<_ACEOF
20813 #define HAVE_PTRDIFF_T 1
20829 for ac_func in snprintf wcslen
20831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20832 echo "$as_me:$LINENO: checking for $ac_func" >&5
20833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20834 if eval "test \"\${$as_ac_var+set}\" = set"; then
20835 echo $ECHO_N "(cached) $ECHO_C" >&6
20837 cat >conftest.$ac_ext <<_ACEOF
20840 cat confdefs.h >>conftest.$ac_ext
20841 cat >>conftest.$ac_ext <<_ACEOF
20842 /* end confdefs.h. */
20843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20845 #define $ac_func innocuous_$ac_func
20847 /* System header to define __stub macros and hopefully few prototypes,
20848 which can conflict with char $ac_func (); below.
20849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20850 <limits.h> exists even on freestanding compilers. */
20853 # include <limits.h>
20855 # include <assert.h>
20860 /* Override any gcc2 internal prototype to avoid an error. */
20865 /* We use char because int might match the return type of a gcc2
20866 builtin and then its argument prototype would still apply. */
20868 /* The GNU C library defines this for functions which it implements
20869 to always fail with ENOSYS. Some functions are actually named
20870 something starting with __ and the normal name is an alias. */
20871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20874 char (*f) () = $ac_func;
20883 return f != $ac_func;
20888 rm -f conftest.$ac_objext conftest$ac_exeext
20889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20890 (eval $ac_link) 2>&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); } &&
20894 { ac_try='test -s conftest$ac_exeext'
20895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896 (eval $ac_try) 2>&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; }; then
20900 eval "$as_ac_var=yes"
20902 echo "$as_me: failed program was:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20905 eval "$as_ac_var=no"
20907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20911 if test `eval echo '${'$as_ac_var'}'` = yes; then
20912 cat >>confdefs.h <<_ACEOF
20913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20926 for ac_func in vasprintf
20928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20929 echo "$as_me:$LINENO: checking for $ac_func" >&5
20930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20931 if eval "test \"\${$as_ac_var+set}\" = set"; then
20932 echo $ECHO_N "(cached) $ECHO_C" >&6
20934 cat >conftest.$ac_ext <<_ACEOF
20937 cat confdefs.h >>conftest.$ac_ext
20938 cat >>conftest.$ac_ext <<_ACEOF
20939 /* end confdefs.h. */
20940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20942 #define $ac_func innocuous_$ac_func
20944 /* System header to define __stub macros and hopefully few prototypes,
20945 which can conflict with char $ac_func (); below.
20946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20947 <limits.h> exists even on freestanding compilers. */
20950 # include <limits.h>
20952 # include <assert.h>
20957 /* Override any gcc2 internal prototype to avoid an error. */
20962 /* We use char because int might match the return type of a gcc2
20963 builtin and then its argument prototype would still apply. */
20965 /* The GNU C library defines this for functions which it implements
20966 to always fail with ENOSYS. Some functions are actually named
20967 something starting with __ and the normal name is an alias. */
20968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20971 char (*f) () = $ac_func;
20980 return f != $ac_func;
20985 rm -f conftest.$ac_objext conftest$ac_exeext
20986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20987 (eval $ac_link) 2>&5
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); } &&
20991 { ac_try='test -s conftest$ac_exeext'
20992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20993 (eval $ac_try) 2>&5
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; }; then
20997 eval "$as_ac_var=yes"
20999 echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21002 eval "$as_ac_var=no"
21004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21007 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21008 if test `eval echo '${'$as_ac_var'}'` = yes; then
21009 cat >>confdefs.h <<_ACEOF
21010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21014 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21019 if test $ac_cv_func_vasprintf = no; then
21020 LIBOBJS="$LIBOBJS asprintf.$ac_objext"
21028 # getdate.y works with bison only.
21029 : ${YACC='bison -y'}
21032 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21033 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21034 if test "${ac_cv_struct_tm+set}" = set; then
21035 echo $ECHO_N "(cached) $ECHO_C" >&6
21037 cat >conftest.$ac_ext <<_ACEOF
21040 cat confdefs.h >>conftest.$ac_ext
21041 cat >>conftest.$ac_ext <<_ACEOF
21042 /* end confdefs.h. */
21043 #include <sys/types.h>
21049 struct tm *tp; tp->tm_sec;
21054 rm -f conftest.$ac_objext
21055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21056 (eval $ac_compile) 2>&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); } &&
21060 { ac_try='test -s conftest.$ac_objext'
21061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21062 (eval $ac_try) 2>&5
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); }; }; then
21066 ac_cv_struct_tm=time.h
21068 echo "$as_me: failed program was:" >&5
21069 sed 's/^/| /' conftest.$ac_ext >&5
21071 ac_cv_struct_tm=sys/time.h
21073 rm -f conftest.$ac_objext conftest.$ac_ext
21075 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21076 echo "${ECHO_T}$ac_cv_struct_tm" >&6
21077 if test $ac_cv_struct_tm = sys/time.h; then
21079 cat >>confdefs.h <<\_ACEOF
21080 #define TM_IN_SYS_TIME 1
21086 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
21087 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
21088 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
21089 echo $ECHO_N "(cached) $ECHO_C" >&6
21091 cat >conftest.$ac_ext <<_ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h. */
21102 static struct tm ac_aggr;
21103 if (ac_aggr.tm_gmtoff)
21109 rm -f conftest.$ac_objext
21110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21111 (eval $ac_compile) 2>&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); } &&
21115 { ac_try='test -s conftest.$ac_objext'
21116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21117 (eval $ac_try) 2>&5
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); }; }; then
21121 ac_cv_member_struct_tm_tm_gmtoff=yes
21123 echo "$as_me: failed program was:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21126 cat >conftest.$ac_ext <<_ACEOF
21129 cat confdefs.h >>conftest.$ac_ext
21130 cat >>conftest.$ac_ext <<_ACEOF
21131 /* end confdefs.h. */
21137 static struct tm ac_aggr;
21138 if (sizeof ac_aggr.tm_gmtoff)
21144 rm -f conftest.$ac_objext
21145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21146 (eval $ac_compile) 2>&5
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); } &&
21150 { ac_try='test -s conftest.$ac_objext'
21151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21152 (eval $ac_try) 2>&5
21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); }; }; then
21156 ac_cv_member_struct_tm_tm_gmtoff=yes
21158 echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21161 ac_cv_member_struct_tm_tm_gmtoff=no
21163 rm -f conftest.$ac_objext conftest.$ac_ext
21165 rm -f conftest.$ac_objext conftest.$ac_ext
21167 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
21168 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
21169 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
21171 cat >>confdefs.h <<\_ACEOF
21172 #define HAVE_TM_GMTOFF 1
21179 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21180 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21181 if test "${ac_cv_header_time+set}" = set; then
21182 echo $ECHO_N "(cached) $ECHO_C" >&6
21184 cat >conftest.$ac_ext <<_ACEOF
21187 cat confdefs.h >>conftest.$ac_ext
21188 cat >>conftest.$ac_ext <<_ACEOF
21189 /* end confdefs.h. */
21190 #include <sys/types.h>
21191 #include <sys/time.h>
21197 if ((struct tm *) 0)
21203 rm -f conftest.$ac_objext
21204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21205 (eval $ac_compile) 2>&5
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); } &&
21209 { ac_try='test -s conftest.$ac_objext'
21210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211 (eval $ac_try) 2>&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); }; }; then
21215 ac_cv_header_time=yes
21217 echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21220 ac_cv_header_time=no
21222 rm -f conftest.$ac_objext conftest.$ac_ext
21224 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21225 echo "${ECHO_T}$ac_cv_header_time" >&6
21226 if test $ac_cv_header_time = yes; then
21228 cat >>confdefs.h <<\_ACEOF
21229 #define TIME_WITH_SYS_TIME 1
21262 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21263 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21264 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21265 echo $ECHO_N "(cached) $ECHO_C" >&6
21267 cat >conftest.$ac_ext <<_ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h. */
21273 #include <sys/types.h>
21274 #include <$ac_cv_struct_tm>
21280 static struct tm ac_aggr;
21281 if (ac_aggr.tm_zone)
21287 rm -f conftest.$ac_objext
21288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21289 (eval $ac_compile) 2>&5
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); } &&
21293 { ac_try='test -s conftest.$ac_objext'
21294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21295 (eval $ac_try) 2>&5
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); }; }; then
21299 ac_cv_member_struct_tm_tm_zone=yes
21301 echo "$as_me: failed program was:" >&5
21302 sed 's/^/| /' conftest.$ac_ext >&5
21304 cat >conftest.$ac_ext <<_ACEOF
21307 cat confdefs.h >>conftest.$ac_ext
21308 cat >>conftest.$ac_ext <<_ACEOF
21309 /* end confdefs.h. */
21310 #include <sys/types.h>
21311 #include <$ac_cv_struct_tm>
21317 static struct tm ac_aggr;
21318 if (sizeof ac_aggr.tm_zone)
21324 rm -f conftest.$ac_objext
21325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21326 (eval $ac_compile) 2>&5
21328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329 (exit $ac_status); } &&
21330 { ac_try='test -s conftest.$ac_objext'
21331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21332 (eval $ac_try) 2>&5
21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); }; }; then
21336 ac_cv_member_struct_tm_tm_zone=yes
21338 echo "$as_me: failed program was:" >&5
21339 sed 's/^/| /' conftest.$ac_ext >&5
21341 ac_cv_member_struct_tm_tm_zone=no
21343 rm -f conftest.$ac_objext conftest.$ac_ext
21345 rm -f conftest.$ac_objext conftest.$ac_ext
21347 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21348 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21349 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21351 cat >>confdefs.h <<_ACEOF
21352 #define HAVE_STRUCT_TM_TM_ZONE 1
21358 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21360 cat >>confdefs.h <<\_ACEOF
21361 #define HAVE_TM_ZONE 1
21365 echo "$as_me:$LINENO: checking for tzname" >&5
21366 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21367 if test "${ac_cv_var_tzname+set}" = set; then
21368 echo $ECHO_N "(cached) $ECHO_C" >&6
21370 cat >conftest.$ac_ext <<_ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h. */
21377 #ifndef tzname /* For SGI. */
21378 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21389 rm -f conftest.$ac_objext conftest$ac_exeext
21390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21391 (eval $ac_link) 2>&5
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); } &&
21395 { ac_try='test -s conftest$ac_exeext'
21396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21397 (eval $ac_try) 2>&5
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); }; }; then
21401 ac_cv_var_tzname=yes
21403 echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21406 ac_cv_var_tzname=no
21408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21410 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21411 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21412 if test $ac_cv_var_tzname = yes; then
21414 cat >>confdefs.h <<\_ACEOF
21415 #define HAVE_TZNAME 1
21424 LIBOBJS="$LIBOBJS getndelim2.$ac_objext"
21448 for ac_header in OS.h
21450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21452 echo "$as_me:$LINENO: checking for $ac_header" >&5
21453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21455 echo $ECHO_N "(cached) $ECHO_C" >&6
21457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21460 # Is the header compilable?
21461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21463 cat >conftest.$ac_ext <<_ACEOF
21466 cat confdefs.h >>conftest.$ac_ext
21467 cat >>conftest.$ac_ext <<_ACEOF
21468 /* end confdefs.h. */
21469 $ac_includes_default
21470 #include <$ac_header>
21472 rm -f conftest.$ac_objext
21473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21474 (eval $ac_compile) 2>&5
21476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); } &&
21478 { ac_try='test -s conftest.$ac_objext'
21479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21480 (eval $ac_try) 2>&5
21482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 (exit $ac_status); }; }; then
21484 ac_header_compiler=yes
21486 echo "$as_me: failed program was:" >&5
21487 sed 's/^/| /' conftest.$ac_ext >&5
21489 ac_header_compiler=no
21491 rm -f conftest.$ac_objext conftest.$ac_ext
21492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21493 echo "${ECHO_T}$ac_header_compiler" >&6
21495 # Is the header present?
21496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21498 cat >conftest.$ac_ext <<_ACEOF
21501 cat confdefs.h >>conftest.$ac_ext
21502 cat >>conftest.$ac_ext <<_ACEOF
21503 /* end confdefs.h. */
21504 #include <$ac_header>
21506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21509 grep -v '^ *+' conftest.er1 >conftest.err
21511 cat conftest.err >&5
21512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513 (exit $ac_status); } >/dev/null; then
21514 if test -s conftest.err; then
21515 ac_cpp_err=$ac_c_preproc_warn_flag
21522 if test -z "$ac_cpp_err"; then
21523 ac_header_preproc=yes
21525 echo "$as_me: failed program was:" >&5
21526 sed 's/^/| /' conftest.$ac_ext >&5
21528 ac_header_preproc=no
21530 rm -f conftest.err conftest.$ac_ext
21531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21532 echo "${ECHO_T}$ac_header_preproc" >&6
21534 # So? What about this header?
21535 case $ac_header_compiler:$ac_header_preproc in
21537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21541 ac_header_preproc=yes
21544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21551 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21558 ## ------------------------------------ ##
21559 ## Report this to bug-coreutils@gnu.org ##
21560 ## ------------------------------------ ##
21563 sed "s/^/$as_me: WARNING: /" >&2
21566 echo "$as_me:$LINENO: checking for $ac_header" >&5
21567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21569 echo $ECHO_N "(cached) $ECHO_C" >&6
21571 eval "$as_ac_Header=\$ac_header_preproc"
21573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21578 cat >>confdefs.h <<_ACEOF
21579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21587 for ac_func in getpagesize
21589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21590 echo "$as_me:$LINENO: checking for $ac_func" >&5
21591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21592 if eval "test \"\${$as_ac_var+set}\" = set"; then
21593 echo $ECHO_N "(cached) $ECHO_C" >&6
21595 cat >conftest.$ac_ext <<_ACEOF
21598 cat confdefs.h >>conftest.$ac_ext
21599 cat >>conftest.$ac_ext <<_ACEOF
21600 /* end confdefs.h. */
21601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21603 #define $ac_func innocuous_$ac_func
21605 /* System header to define __stub macros and hopefully few prototypes,
21606 which can conflict with char $ac_func (); below.
21607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21608 <limits.h> exists even on freestanding compilers. */
21611 # include <limits.h>
21613 # include <assert.h>
21618 /* Override any gcc2 internal prototype to avoid an error. */
21623 /* We use char because int might match the return type of a gcc2
21624 builtin and then its argument prototype would still apply. */
21626 /* The GNU C library defines this for functions which it implements
21627 to always fail with ENOSYS. Some functions are actually named
21628 something starting with __ and the normal name is an alias. */
21629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21632 char (*f) () = $ac_func;
21641 return f != $ac_func;
21646 rm -f conftest.$ac_objext conftest$ac_exeext
21647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21648 (eval $ac_link) 2>&5
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } &&
21652 { ac_try='test -s conftest$ac_exeext'
21653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21654 (eval $ac_try) 2>&5
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); }; }; then
21658 eval "$as_ac_var=yes"
21660 echo "$as_me: failed program was:" >&5
21661 sed 's/^/| /' conftest.$ac_ext >&5
21663 eval "$as_ac_var=no"
21665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21668 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21669 if test `eval echo '${'$as_ac_var'}'` = yes; then
21670 cat >>confdefs.h <<_ACEOF
21671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21814 for ac_func in iswcntrl wcwidth
21816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21817 echo "$as_me:$LINENO: checking for $ac_func" >&5
21818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21819 if eval "test \"\${$as_ac_var+set}\" = set"; then
21820 echo $ECHO_N "(cached) $ECHO_C" >&6
21822 cat >conftest.$ac_ext <<_ACEOF
21825 cat confdefs.h >>conftest.$ac_ext
21826 cat >>conftest.$ac_ext <<_ACEOF
21827 /* end confdefs.h. */
21828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21830 #define $ac_func innocuous_$ac_func
21832 /* System header to define __stub macros and hopefully few prototypes,
21833 which can conflict with char $ac_func (); below.
21834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21835 <limits.h> exists even on freestanding compilers. */
21838 # include <limits.h>
21840 # include <assert.h>
21845 /* Override any gcc2 internal prototype to avoid an error. */
21850 /* We use char because int might match the return type of a gcc2
21851 builtin and then its argument prototype would still apply. */
21853 /* The GNU C library defines this for functions which it implements
21854 to always fail with ENOSYS. Some functions are actually named
21855 something starting with __ and the normal name is an alias. */
21856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21859 char (*f) () = $ac_func;
21868 return f != $ac_func;
21873 rm -f conftest.$ac_objext conftest$ac_exeext
21874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21875 (eval $ac_link) 2>&5
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); } &&
21879 { ac_try='test -s conftest$ac_exeext'
21880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21881 (eval $ac_try) 2>&5
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); }; }; then
21885 eval "$as_ac_var=yes"
21887 echo "$as_me: failed program was:" >&5
21888 sed 's/^/| /' conftest.$ac_ext >&5
21890 eval "$as_ac_var=no"
21892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21896 if test `eval echo '${'$as_ac_var'}'` = yes; then
21897 cat >>confdefs.h <<_ACEOF
21898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21905 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
21906 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
21907 if test "${jm_cv_func_mbrtowc+set}" = set; then
21908 echo $ECHO_N "(cached) $ECHO_C" >&6
21911 cat >conftest.$ac_ext <<_ACEOF
21914 cat confdefs.h >>conftest.$ac_ext
21915 cat >>conftest.$ac_ext <<_ACEOF
21916 /* end confdefs.h. */
21921 mbstate_t state; return ! (sizeof state && mbrtowc);
21926 rm -f conftest.$ac_objext conftest$ac_exeext
21927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21928 (eval $ac_link) 2>&5
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); } &&
21932 { ac_try='test -s conftest$ac_exeext'
21933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21934 (eval $ac_try) 2>&5
21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); }; }; then
21938 jm_cv_func_mbrtowc=yes
21940 echo "$as_me: failed program was:" >&5
21941 sed 's/^/| /' conftest.$ac_ext >&5
21943 jm_cv_func_mbrtowc=no
21945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21947 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
21948 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
21949 if test $jm_cv_func_mbrtowc = yes; then
21951 cat >>confdefs.h <<\_ACEOF
21952 #define HAVE_MBRTOWC 1
21958 echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
21959 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
21960 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
21961 echo $ECHO_N "(cached) $ECHO_C" >&6
21964 cat >conftest.$ac_ext <<_ACEOF
21967 cat confdefs.h >>conftest.$ac_ext
21968 cat >>conftest.$ac_ext <<_ACEOF
21969 /* end confdefs.h. */
21971 /* AIX 3.2.5 declares wcwidth in <string.h>. */
21973 # include <string.h>
21976 # include <wchar.h>
21984 char *p = (char *) wcwidth;
21991 rm -f conftest.$ac_objext
21992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21993 (eval $ac_compile) 2>&5
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); } &&
21997 { ac_try='test -s conftest.$ac_objext'
21998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21999 (eval $ac_try) 2>&5
22001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002 (exit $ac_status); }; }; then
22003 ac_cv_have_decl_wcwidth=yes
22005 echo "$as_me: failed program was:" >&5
22006 sed 's/^/| /' conftest.$ac_ext >&5
22008 ac_cv_have_decl_wcwidth=no
22010 rm -f conftest.$ac_objext conftest.$ac_ext
22012 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
22013 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
22014 if test $ac_cv_have_decl_wcwidth = yes; then
22020 cat >>confdefs.h <<_ACEOF
22021 #define HAVE_DECL_WCWIDTH $ac_val
22025 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22026 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22027 if test "${ac_cv_type_mbstate_t+set}" = set; then
22028 echo $ECHO_N "(cached) $ECHO_C" >&6
22030 cat >conftest.$ac_ext <<_ACEOF
22033 cat confdefs.h >>conftest.$ac_ext
22034 cat >>conftest.$ac_ext <<_ACEOF
22035 /* end confdefs.h. */
22036 $ac_includes_default
22037 # include <wchar.h>
22041 mbstate_t x; return sizeof x;
22046 rm -f conftest.$ac_objext
22047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22048 (eval $ac_compile) 2>&5
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); } &&
22052 { ac_try='test -s conftest.$ac_objext'
22053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054 (eval $ac_try) 2>&5
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); }; }; then
22058 ac_cv_type_mbstate_t=yes
22060 echo "$as_me: failed program was:" >&5
22061 sed 's/^/| /' conftest.$ac_ext >&5
22063 ac_cv_type_mbstate_t=no
22065 rm -f conftest.$ac_objext conftest.$ac_ext
22067 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22068 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22069 if test $ac_cv_type_mbstate_t = yes; then
22071 cat >>confdefs.h <<\_ACEOF
22072 #define HAVE_MBSTATE_T 1
22077 cat >>confdefs.h <<\_ACEOF
22078 #define mbstate_t int
22083 echo "$as_me:$LINENO: checking for working memcmp" >&5
22084 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
22085 if test "${ac_cv_func_memcmp_working+set}" = set; then
22086 echo $ECHO_N "(cached) $ECHO_C" >&6
22088 if test "$cross_compiling" = yes; then
22089 ac_cv_func_memcmp_working=no
22091 cat >conftest.$ac_ext <<_ACEOF
22094 cat confdefs.h >>conftest.$ac_ext
22095 cat >>conftest.$ac_ext <<_ACEOF
22096 /* end confdefs.h. */
22097 $ac_includes_default
22102 /* Some versions of memcmp are not 8-bit clean. */
22103 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22104 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22107 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22108 or more and with at least one buffer not starting on a 4-byte boundary.
22109 William Lewis provided this test program. */
22114 for (i = 0; i < 4; i++)
22118 strcpy (a, "--------01111111");
22119 strcpy (b, "--------10000000");
22120 if (memcmp (a, b, 16) >= 0)
22130 rm -f conftest$ac_exeext
22131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22132 (eval $ac_link) 2>&5
22134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22137 (eval $ac_try) 2>&5
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); }; }; then
22141 ac_cv_func_memcmp_working=yes
22143 echo "$as_me: program exited with status $ac_status" >&5
22144 echo "$as_me: failed program was:" >&5
22145 sed 's/^/| /' conftest.$ac_ext >&5
22147 ( exit $ac_status )
22148 ac_cv_func_memcmp_working=no
22150 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22153 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22154 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
22155 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22166 echo "$as_me:$LINENO: checking for working strcoll" >&5
22167 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
22168 if test "${ac_cv_func_strcoll_works+set}" = set; then
22169 echo $ECHO_N "(cached) $ECHO_C" >&6
22171 if test "$cross_compiling" = yes; then
22172 ac_cv_func_strcoll_works=no
22174 cat >conftest.$ac_ext <<_ACEOF
22177 cat confdefs.h >>conftest.$ac_ext
22178 cat >>conftest.$ac_ext <<_ACEOF
22179 /* end confdefs.h. */
22180 $ac_includes_default
22184 exit (strcoll ("abc", "def") >= 0 ||
22185 strcoll ("ABC", "DEF") >= 0 ||
22186 strcoll ("123", "456") >= 0)
22191 rm -f conftest$ac_exeext
22192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22193 (eval $ac_link) 2>&5
22195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22198 (eval $ac_try) 2>&5
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); }; }; then
22202 ac_cv_func_strcoll_works=yes
22204 echo "$as_me: program exited with status $ac_status" >&5
22205 echo "$as_me: failed program was:" >&5
22206 sed 's/^/| /' conftest.$ac_ext >&5
22208 ( exit $ac_status )
22209 ac_cv_func_strcoll_works=no
22211 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22214 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
22215 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
22216 if test $ac_cv_func_strcoll_works = yes; then
22218 cat >>confdefs.h <<\_ACEOF
22219 #define HAVE_STRCOLL 1
22233 for ac_func in listmntent getmntinfo
22235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22236 echo "$as_me:$LINENO: checking for $ac_func" >&5
22237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22238 if eval "test \"\${$as_ac_var+set}\" = set"; then
22239 echo $ECHO_N "(cached) $ECHO_C" >&6
22241 cat >conftest.$ac_ext <<_ACEOF
22244 cat confdefs.h >>conftest.$ac_ext
22245 cat >>conftest.$ac_ext <<_ACEOF
22246 /* end confdefs.h. */
22247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22249 #define $ac_func innocuous_$ac_func
22251 /* System header to define __stub macros and hopefully few prototypes,
22252 which can conflict with char $ac_func (); below.
22253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22254 <limits.h> exists even on freestanding compilers. */
22257 # include <limits.h>
22259 # include <assert.h>
22264 /* Override any gcc2 internal prototype to avoid an error. */
22269 /* We use char because int might match the return type of a gcc2
22270 builtin and then its argument prototype would still apply. */
22272 /* The GNU C library defines this for functions which it implements
22273 to always fail with ENOSYS. Some functions are actually named
22274 something starting with __ and the normal name is an alias. */
22275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22278 char (*f) () = $ac_func;
22287 return f != $ac_func;
22292 rm -f conftest.$ac_objext conftest$ac_exeext
22293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22294 (eval $ac_link) 2>&5
22296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); } &&
22298 { ac_try='test -s conftest$ac_exeext'
22299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22300 (eval $ac_try) 2>&5
22302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); }; }; then
22304 eval "$as_ac_var=yes"
22306 echo "$as_me: failed program was:" >&5
22307 sed 's/^/| /' conftest.$ac_ext >&5
22309 eval "$as_ac_var=no"
22311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22314 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22315 if test `eval echo '${'$as_ac_var'}'` = yes; then
22316 cat >>confdefs.h <<_ACEOF
22317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22334 for ac_header in mntent.h sys/ucred.h sys/mount.h sys/fs_types.h
22336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22338 echo "$as_me:$LINENO: checking for $ac_header" >&5
22339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22341 echo $ECHO_N "(cached) $ECHO_C" >&6
22343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22346 # Is the header compilable?
22347 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22349 cat >conftest.$ac_ext <<_ACEOF
22352 cat confdefs.h >>conftest.$ac_ext
22353 cat >>conftest.$ac_ext <<_ACEOF
22354 /* end confdefs.h. */
22355 $ac_includes_default
22356 #include <$ac_header>
22358 rm -f conftest.$ac_objext
22359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22360 (eval $ac_compile) 2>&5
22362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363 (exit $ac_status); } &&
22364 { ac_try='test -s conftest.$ac_objext'
22365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22366 (eval $ac_try) 2>&5
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); }; }; then
22370 ac_header_compiler=yes
22372 echo "$as_me: failed program was:" >&5
22373 sed 's/^/| /' conftest.$ac_ext >&5
22375 ac_header_compiler=no
22377 rm -f conftest.$ac_objext conftest.$ac_ext
22378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22379 echo "${ECHO_T}$ac_header_compiler" >&6
22381 # Is the header present?
22382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22384 cat >conftest.$ac_ext <<_ACEOF
22387 cat confdefs.h >>conftest.$ac_ext
22388 cat >>conftest.$ac_ext <<_ACEOF
22389 /* end confdefs.h. */
22390 #include <$ac_header>
22392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22395 grep -v '^ *+' conftest.er1 >conftest.err
22397 cat conftest.err >&5
22398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399 (exit $ac_status); } >/dev/null; then
22400 if test -s conftest.err; then
22401 ac_cpp_err=$ac_c_preproc_warn_flag
22408 if test -z "$ac_cpp_err"; then
22409 ac_header_preproc=yes
22411 echo "$as_me: failed program was:" >&5
22412 sed 's/^/| /' conftest.$ac_ext >&5
22414 ac_header_preproc=no
22416 rm -f conftest.err conftest.$ac_ext
22417 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22418 echo "${ECHO_T}$ac_header_preproc" >&6
22420 # So? What about this header?
22421 case $ac_header_compiler:$ac_header_preproc in
22423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22427 ac_header_preproc=yes
22430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22444 ## ------------------------------------ ##
22445 ## Report this to bug-coreutils@gnu.org ##
22446 ## ------------------------------------ ##
22449 sed "s/^/$as_me: WARNING: /" >&2
22452 echo "$as_me:$LINENO: checking for $ac_header" >&5
22453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22455 echo $ECHO_N "(cached) $ECHO_C" >&6
22457 eval "$as_ac_Header=\$ac_header_preproc"
22459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22464 cat >>confdefs.h <<_ACEOF
22465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22472 getfsstat_includes="\
22473 $ac_includes_default
22474 #if HAVE_SYS_PARAM_H
22475 # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */
22477 #if HAVE_SYS_UCRED_H
22478 # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
22480 #if HAVE_SYS_MOUNT_H
22481 # include <sys/mount.h>
22483 #if HAVE_SYS_FS_TYPES_H
22484 # include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */
22487 echo "$as_me:$LINENO: checking for struct fsstat.f_fstypename" >&5
22488 echo $ECHO_N "checking for struct fsstat.f_fstypename... $ECHO_C" >&6
22489 if test "${ac_cv_member_struct_fsstat_f_fstypename+set}" = set; then
22490 echo $ECHO_N "(cached) $ECHO_C" >&6
22492 cat >conftest.$ac_ext <<_ACEOF
22495 cat confdefs.h >>conftest.$ac_ext
22496 cat >>conftest.$ac_ext <<_ACEOF
22497 /* end confdefs.h. */
22498 $getfsstat_includes
22503 static struct fsstat ac_aggr;
22504 if (ac_aggr.f_fstypename)
22510 rm -f conftest.$ac_objext
22511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22512 (eval $ac_compile) 2>&5
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); } &&
22516 { ac_try='test -s conftest.$ac_objext'
22517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22518 (eval $ac_try) 2>&5
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); }; }; then
22522 ac_cv_member_struct_fsstat_f_fstypename=yes
22524 echo "$as_me: failed program was:" >&5
22525 sed 's/^/| /' conftest.$ac_ext >&5
22527 cat >conftest.$ac_ext <<_ACEOF
22530 cat confdefs.h >>conftest.$ac_ext
22531 cat >>conftest.$ac_ext <<_ACEOF
22532 /* end confdefs.h. */
22533 $getfsstat_includes
22538 static struct fsstat ac_aggr;
22539 if (sizeof ac_aggr.f_fstypename)
22545 rm -f conftest.$ac_objext
22546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22547 (eval $ac_compile) 2>&5
22549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550 (exit $ac_status); } &&
22551 { ac_try='test -s conftest.$ac_objext'
22552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22553 (eval $ac_try) 2>&5
22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 (exit $ac_status); }; }; then
22557 ac_cv_member_struct_fsstat_f_fstypename=yes
22559 echo "$as_me: failed program was:" >&5
22560 sed 's/^/| /' conftest.$ac_ext >&5
22562 ac_cv_member_struct_fsstat_f_fstypename=no
22564 rm -f conftest.$ac_objext conftest.$ac_ext
22566 rm -f conftest.$ac_objext conftest.$ac_ext
22568 echo "$as_me:$LINENO: result: $ac_cv_member_struct_fsstat_f_fstypename" >&5
22569 echo "${ECHO_T}$ac_cv_member_struct_fsstat_f_fstypename" >&6
22570 if test $ac_cv_member_struct_fsstat_f_fstypename = yes; then
22572 cat >>confdefs.h <<_ACEOF
22573 #define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1
22580 # Determine how to get the list of mounted filesystems.
22581 ac_list_mounted_fs=
22583 # If the getmntent function is available but not in the standard library,
22584 # make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
22585 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
22586 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
22587 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
22588 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
22589 echo $ECHO_N "(cached) $ECHO_C" >&6
22591 ac_check_lib_save_LIBS=$LIBS
22593 cat >conftest.$ac_ext <<_ACEOF
22596 cat confdefs.h >>conftest.$ac_ext
22597 cat >>conftest.$ac_ext <<_ACEOF
22598 /* end confdefs.h. */
22600 /* Override any gcc2 internal prototype to avoid an error. */
22604 /* We use char because int might match the return type of a gcc2
22605 builtin and then its argument prototype would still apply. */
22615 rm -f conftest.$ac_objext conftest$ac_exeext
22616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22617 (eval $ac_link) 2>&5
22619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620 (exit $ac_status); } &&
22621 { ac_try='test -s conftest$ac_exeext'
22622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22623 (eval $ac_try) 2>&5
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); }; }; then
22627 ac_cv_lib_sun_getmntent=yes
22629 echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22632 ac_cv_lib_sun_getmntent=no
22634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22635 LIBS=$ac_check_lib_save_LIBS
22637 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
22638 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
22639 if test $ac_cv_lib_sun_getmntent = yes; then
22642 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
22643 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
22644 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
22645 echo $ECHO_N "(cached) $ECHO_C" >&6
22647 ac_check_lib_save_LIBS=$LIBS
22649 cat >conftest.$ac_ext <<_ACEOF
22652 cat confdefs.h >>conftest.$ac_ext
22653 cat >>conftest.$ac_ext <<_ACEOF
22654 /* end confdefs.h. */
22656 /* Override any gcc2 internal prototype to avoid an error. */
22660 /* We use char because int might match the return type of a gcc2
22661 builtin and then its argument prototype would still apply. */
22671 rm -f conftest.$ac_objext conftest$ac_exeext
22672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22673 (eval $ac_link) 2>&5
22675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); } &&
22677 { ac_try='test -s conftest$ac_exeext'
22678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22679 (eval $ac_try) 2>&5
22681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682 (exit $ac_status); }; }; then
22683 ac_cv_lib_seq_getmntent=yes
22685 echo "$as_me: failed program was:" >&5
22686 sed 's/^/| /' conftest.$ac_ext >&5
22688 ac_cv_lib_seq_getmntent=no
22690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22691 LIBS=$ac_check_lib_save_LIBS
22693 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
22694 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
22695 if test $ac_cv_lib_seq_getmntent = yes; then
22698 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
22699 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
22700 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
22701 echo $ECHO_N "(cached) $ECHO_C" >&6
22703 ac_check_lib_save_LIBS=$LIBS
22705 cat >conftest.$ac_ext <<_ACEOF
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h. */
22712 /* Override any gcc2 internal prototype to avoid an error. */
22716 /* We use char because int might match the return type of a gcc2
22717 builtin and then its argument prototype would still apply. */
22727 rm -f conftest.$ac_objext conftest$ac_exeext
22728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22729 (eval $ac_link) 2>&5
22731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732 (exit $ac_status); } &&
22733 { ac_try='test -s conftest$ac_exeext'
22734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22735 (eval $ac_try) 2>&5
22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); }; }; then
22739 ac_cv_lib_gen_getmntent=yes
22741 echo "$as_me: failed program was:" >&5
22742 sed 's/^/| /' conftest.$ac_ext >&5
22744 ac_cv_lib_gen_getmntent=no
22746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22747 LIBS=$ac_check_lib_save_LIBS
22749 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
22750 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
22751 if test $ac_cv_lib_gen_getmntent = yes; then
22760 for ac_func in getmntent
22762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22763 echo "$as_me:$LINENO: checking for $ac_func" >&5
22764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22765 if eval "test \"\${$as_ac_var+set}\" = set"; then
22766 echo $ECHO_N "(cached) $ECHO_C" >&6
22768 cat >conftest.$ac_ext <<_ACEOF
22771 cat confdefs.h >>conftest.$ac_ext
22772 cat >>conftest.$ac_ext <<_ACEOF
22773 /* end confdefs.h. */
22774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22776 #define $ac_func innocuous_$ac_func
22778 /* System header to define __stub macros and hopefully few prototypes,
22779 which can conflict with char $ac_func (); below.
22780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22781 <limits.h> exists even on freestanding compilers. */
22784 # include <limits.h>
22786 # include <assert.h>
22791 /* Override any gcc2 internal prototype to avoid an error. */
22796 /* We use char because int might match the return type of a gcc2
22797 builtin and then its argument prototype would still apply. */
22799 /* The GNU C library defines this for functions which it implements
22800 to always fail with ENOSYS. Some functions are actually named
22801 something starting with __ and the normal name is an alias. */
22802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22805 char (*f) () = $ac_func;
22814 return f != $ac_func;
22819 rm -f conftest.$ac_objext conftest$ac_exeext
22820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22821 (eval $ac_link) 2>&5
22823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824 (exit $ac_status); } &&
22825 { ac_try='test -s conftest$ac_exeext'
22826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22827 (eval $ac_try) 2>&5
22829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22830 (exit $ac_status); }; }; then
22831 eval "$as_ac_var=yes"
22833 echo "$as_me: failed program was:" >&5
22834 sed 's/^/| /' conftest.$ac_ext >&5
22836 eval "$as_ac_var=no"
22838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22842 if test `eval echo '${'$as_ac_var'}'` = yes; then
22843 cat >>confdefs.h <<_ACEOF
22844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22852 # This test must precede the ones for getmntent because Unicos-9 is
22853 # reported to have the getmntent function, but its support is incompatible
22854 # with other getmntent implementations.
22856 # NOTE: Normally, I wouldn't use a check for system type as I've done for
22857 # `CRAY' below since that goes against the whole autoconf philosophy. But
22858 # I think there is too great a chance that some non-Cray system has a
22859 # function named listmntent to risk the false positive.
22861 if test -z "$ac_list_mounted_fs"; then
22863 echo "$as_me:$LINENO: checking for listmntent of Cray/Unicos-9" >&5
22864 echo $ECHO_N "checking for listmntent of Cray/Unicos-9... $ECHO_C" >&6
22865 if test "${fu_cv_sys_mounted_cray_listmntent+set}" = set; then
22866 echo $ECHO_N "(cached) $ECHO_C" >&6
22868 fu_cv_sys_mounted_cray_listmntent=no
22869 cat >conftest.$ac_ext <<_ACEOF
22872 cat confdefs.h >>conftest.$ac_ext
22873 cat >>conftest.$ac_ext <<_ACEOF
22874 /* end confdefs.h. */
22880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22881 $EGREP "yes" >/dev/null 2>&1; then
22882 test $ac_cv_func_listmntent = yes \
22883 && fu_cv_sys_mounted_cray_listmntent=yes
22892 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_cray_listmntent" >&5
22893 echo "${ECHO_T}$fu_cv_sys_mounted_cray_listmntent" >&6
22894 if test $fu_cv_sys_mounted_cray_listmntent = yes; then
22895 ac_list_mounted_fs=found
22897 cat >>confdefs.h <<\_ACEOF
22898 #define MOUNTED_LISTMNTENT 1
22904 if test -z "$ac_list_mounted_fs"; then
22906 echo "$as_me:$LINENO: checking for mntctl function and struct vmount" >&5
22907 echo $ECHO_N "checking for mntctl function and struct vmount... $ECHO_C" >&6
22908 if test "${fu_cv_sys_mounted_vmount+set}" = set; then
22909 echo $ECHO_N "(cached) $ECHO_C" >&6
22912 cat >conftest.$ac_ext <<_ACEOF
22915 cat confdefs.h >>conftest.$ac_ext
22916 cat >>conftest.$ac_ext <<_ACEOF
22917 /* end confdefs.h. */
22918 #include <fshelp.h>
22920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22923 grep -v '^ *+' conftest.er1 >conftest.err
22925 cat conftest.err >&5
22926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927 (exit $ac_status); } >/dev/null; then
22928 if test -s conftest.err; then
22929 ac_cpp_err=$ac_c_preproc_warn_flag
22936 if test -z "$ac_cpp_err"; then
22937 fu_cv_sys_mounted_vmount=yes
22939 echo "$as_me: failed program was:" >&5
22940 sed 's/^/| /' conftest.$ac_ext >&5
22942 fu_cv_sys_mounted_vmount=no
22944 rm -f conftest.err conftest.$ac_ext
22947 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_vmount" >&5
22948 echo "${ECHO_T}$fu_cv_sys_mounted_vmount" >&6
22949 if test $fu_cv_sys_mounted_vmount = yes; then
22950 ac_list_mounted_fs=found
22952 cat >>confdefs.h <<\_ACEOF
22953 #define MOUNTED_VMOUNT 1
22959 if test $ac_cv_func_getmntent = yes; then
22961 # This system has the getmntent function.
22962 # Determine whether it's the one-argument variant or the two-argument one.
22964 if test -z "$ac_list_mounted_fs"; then
22965 # 4.3BSD, SunOS, HP-UX, Dynix, Irix
22966 echo "$as_me:$LINENO: checking for one-argument getmntent function" >&5
22967 echo $ECHO_N "checking for one-argument getmntent function... $ECHO_C" >&6
22968 if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then
22969 echo $ECHO_N "(cached) $ECHO_C" >&6
22972 cat >conftest.$ac_ext <<_ACEOF
22975 cat confdefs.h >>conftest.$ac_ext
22976 cat >>conftest.$ac_ext <<_ACEOF
22977 /* end confdefs.h. */
22979 /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */
22982 #include <mntent.h>
22983 #if !defined MOUNTED
22984 # if defined _PATH_MOUNTED /* GNU libc */
22985 # define MOUNTED _PATH_MOUNTED
22987 # if defined MNT_MNTTAB /* HP-UX. */
22988 # define MOUNTED MNT_MNTTAB
22990 # if defined MNTTABNAME /* Dynix. */
22991 # define MOUNTED MNTTABNAME
22998 struct mntent *mnt = 0; char *table = MOUNTED;
23003 rm -f conftest.$ac_objext
23004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23005 (eval $ac_compile) 2>&5
23007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008 (exit $ac_status); } &&
23009 { ac_try='test -s conftest.$ac_objext'
23010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23011 (eval $ac_try) 2>&5
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); }; }; then
23015 fu_cv_sys_mounted_getmntent1=yes
23017 echo "$as_me: failed program was:" >&5
23018 sed 's/^/| /' conftest.$ac_ext >&5
23020 fu_cv_sys_mounted_getmntent1=no
23022 rm -f conftest.$ac_objext conftest.$ac_ext
23025 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent1" >&5
23026 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent1" >&6
23027 if test $fu_cv_sys_mounted_getmntent1 = yes; then
23028 ac_list_mounted_fs=found
23030 cat >>confdefs.h <<\_ACEOF
23031 #define MOUNTED_GETMNTENT1 1
23037 if test -z "$ac_list_mounted_fs"; then
23039 echo "$as_me:$LINENO: checking for two-argument getmntent function" >&5
23040 echo $ECHO_N "checking for two-argument getmntent function... $ECHO_C" >&6
23041 if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then
23042 echo $ECHO_N "(cached) $ECHO_C" >&6
23044 cat >conftest.$ac_ext <<_ACEOF
23047 cat confdefs.h >>conftest.$ac_ext
23048 cat >>conftest.$ac_ext <<_ACEOF
23049 /* end confdefs.h. */
23050 #include <sys/mnttab.h>
23053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23054 $EGREP "getmntent" >/dev/null 2>&1; then
23055 fu_cv_sys_mounted_getmntent2=yes
23057 fu_cv_sys_mounted_getmntent2=no
23063 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent2" >&5
23064 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent2" >&6
23065 if test $fu_cv_sys_mounted_getmntent2 = yes; then
23066 ac_list_mounted_fs=found
23068 cat >>confdefs.h <<\_ACEOF
23069 #define MOUNTED_GETMNTENT2 1
23077 if test -z "$ac_list_mounted_fs"; then
23078 # DEC Alpha running OSF/1, and Apple Darwin 1.3.
23079 # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h
23081 echo "$as_me:$LINENO: checking for getfsstat function" >&5
23082 echo $ECHO_N "checking for getfsstat function... $ECHO_C" >&6
23083 if test "${fu_cv_sys_mounted_getfsstat+set}" = set; then
23084 echo $ECHO_N "(cached) $ECHO_C" >&6
23087 cat >conftest.$ac_ext <<_ACEOF
23090 cat confdefs.h >>conftest.$ac_ext
23091 cat >>conftest.$ac_ext <<_ACEOF
23092 /* end confdefs.h. */
23094 #include <sys/types.h>
23095 #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME
23096 # define FS_TYPE(Ent) ((Ent).f_fstypename)
23098 # define FS_TYPE(Ent) mnt_names[(Ent).f_type]
23100 $getfsstat_includes
23105 struct statfs *stats;
23106 int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
23107 char *t = FS_TYPE (*stats);
23112 rm -f conftest.$ac_objext conftest$ac_exeext
23113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23114 (eval $ac_link) 2>&5
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); } &&
23118 { ac_try='test -s conftest$ac_exeext'
23119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23120 (eval $ac_try) 2>&5
23122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123 (exit $ac_status); }; }; then
23124 fu_cv_sys_mounted_getfsstat=yes
23126 echo "$as_me: failed program was:" >&5
23127 sed 's/^/| /' conftest.$ac_ext >&5
23129 fu_cv_sys_mounted_getfsstat=no
23131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23134 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getfsstat" >&5
23135 echo "${ECHO_T}$fu_cv_sys_mounted_getfsstat" >&6
23136 if test $fu_cv_sys_mounted_getfsstat = yes; then
23137 ac_list_mounted_fs=found
23139 cat >>confdefs.h <<\_ACEOF
23140 #define MOUNTED_GETFSSTAT 1
23146 if test -z "$ac_list_mounted_fs"; then
23148 echo "$as_me:$LINENO: checking for FIXME existence of three headers" >&5
23149 echo $ECHO_N "checking for FIXME existence of three headers... $ECHO_C" >&6
23150 if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then
23151 echo $ECHO_N "(cached) $ECHO_C" >&6
23154 cat >conftest.$ac_ext <<_ACEOF
23157 cat confdefs.h >>conftest.$ac_ext
23158 cat >>conftest.$ac_ext <<_ACEOF
23159 /* end confdefs.h. */
23161 #include <sys/statfs.h>
23162 #include <sys/fstyp.h>
23163 #include <mnttab.h>
23165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23168 grep -v '^ *+' conftest.er1 >conftest.err
23170 cat conftest.err >&5
23171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172 (exit $ac_status); } >/dev/null; then
23173 if test -s conftest.err; then
23174 ac_cpp_err=$ac_c_preproc_warn_flag
23181 if test -z "$ac_cpp_err"; then
23182 fu_cv_sys_mounted_fread_fstyp=yes
23184 echo "$as_me: failed program was:" >&5
23185 sed 's/^/| /' conftest.$ac_ext >&5
23187 fu_cv_sys_mounted_fread_fstyp=no
23189 rm -f conftest.err conftest.$ac_ext
23192 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread_fstyp" >&5
23193 echo "${ECHO_T}$fu_cv_sys_mounted_fread_fstyp" >&6
23194 if test $fu_cv_sys_mounted_fread_fstyp = yes; then
23195 ac_list_mounted_fs=found
23197 cat >>confdefs.h <<\_ACEOF
23198 #define MOUNTED_FREAD_FSTYP 1
23204 if test -z "$ac_list_mounted_fs"; then
23205 # 4.4BSD and DEC OSF/1.
23206 echo "$as_me:$LINENO: checking for getmntinfo function" >&5
23207 echo $ECHO_N "checking for getmntinfo function... $ECHO_C" >&6
23208 if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then
23209 echo $ECHO_N "(cached) $ECHO_C" >&6
23212 test "$ac_cv_func_getmntinfo" = yes \
23213 && fu_cv_sys_mounted_getmntinfo=yes \
23214 || fu_cv_sys_mounted_getmntinfo=no
23218 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo" >&5
23219 echo "${ECHO_T}$fu_cv_sys_mounted_getmntinfo" >&6
23220 if test $fu_cv_sys_mounted_getmntinfo = yes; then
23221 ac_list_mounted_fs=found
23223 cat >>confdefs.h <<\_ACEOF
23224 #define MOUNTED_GETMNTINFO 1
23230 if test -z "$ac_list_mounted_fs"; then
23232 echo "$as_me:$LINENO: checking for getmnt function" >&5
23233 echo $ECHO_N "checking for getmnt function... $ECHO_C" >&6
23234 if test "${fu_cv_sys_mounted_getmnt+set}" = set; then
23235 echo $ECHO_N "(cached) $ECHO_C" >&6
23238 cat >conftest.$ac_ext <<_ACEOF
23241 cat confdefs.h >>conftest.$ac_ext
23242 cat >>conftest.$ac_ext <<_ACEOF
23243 /* end confdefs.h. */
23245 #include <sys/fs_types.h>
23246 #include <sys/mount.h>
23248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23251 grep -v '^ *+' conftest.er1 >conftest.err
23253 cat conftest.err >&5
23254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255 (exit $ac_status); } >/dev/null; then
23256 if test -s conftest.err; then
23257 ac_cpp_err=$ac_c_preproc_warn_flag
23264 if test -z "$ac_cpp_err"; then
23265 fu_cv_sys_mounted_getmnt=yes
23267 echo "$as_me: failed program was:" >&5
23268 sed 's/^/| /' conftest.$ac_ext >&5
23270 fu_cv_sys_mounted_getmnt=no
23272 rm -f conftest.err conftest.$ac_ext
23275 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmnt" >&5
23276 echo "${ECHO_T}$fu_cv_sys_mounted_getmnt" >&6
23277 if test $fu_cv_sys_mounted_getmnt = yes; then
23278 ac_list_mounted_fs=found
23280 cat >>confdefs.h <<\_ACEOF
23281 #define MOUNTED_GETMNT 1
23287 if test -z "$ac_list_mounted_fs"; then
23291 for ac_func in next_dev fs_stat_dev
23293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23294 echo "$as_me:$LINENO: checking for $ac_func" >&5
23295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23296 if eval "test \"\${$as_ac_var+set}\" = set"; then
23297 echo $ECHO_N "(cached) $ECHO_C" >&6
23299 cat >conftest.$ac_ext <<_ACEOF
23302 cat confdefs.h >>conftest.$ac_ext
23303 cat >>conftest.$ac_ext <<_ACEOF
23304 /* end confdefs.h. */
23305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23307 #define $ac_func innocuous_$ac_func
23309 /* System header to define __stub macros and hopefully few prototypes,
23310 which can conflict with char $ac_func (); below.
23311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23312 <limits.h> exists even on freestanding compilers. */
23315 # include <limits.h>
23317 # include <assert.h>
23322 /* Override any gcc2 internal prototype to avoid an error. */
23327 /* We use char because int might match the return type of a gcc2
23328 builtin and then its argument prototype would still apply. */
23330 /* The GNU C library defines this for functions which it implements
23331 to always fail with ENOSYS. Some functions are actually named
23332 something starting with __ and the normal name is an alias. */
23333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23336 char (*f) () = $ac_func;
23345 return f != $ac_func;
23350 rm -f conftest.$ac_objext conftest$ac_exeext
23351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23352 (eval $ac_link) 2>&5
23354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355 (exit $ac_status); } &&
23356 { ac_try='test -s conftest$ac_exeext'
23357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23358 (eval $ac_try) 2>&5
23360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361 (exit $ac_status); }; }; then
23362 eval "$as_ac_var=yes"
23364 echo "$as_me: failed program was:" >&5
23365 sed 's/^/| /' conftest.$ac_ext >&5
23367 eval "$as_ac_var=no"
23369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23372 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23373 if test `eval echo '${'$as_ac_var'}'` = yes; then
23374 cat >>confdefs.h <<_ACEOF
23375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23382 for ac_header in fs_info.h
23384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23386 echo "$as_me:$LINENO: checking for $ac_header" >&5
23387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23389 echo $ECHO_N "(cached) $ECHO_C" >&6
23391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23394 # Is the header compilable?
23395 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23397 cat >conftest.$ac_ext <<_ACEOF
23400 cat confdefs.h >>conftest.$ac_ext
23401 cat >>conftest.$ac_ext <<_ACEOF
23402 /* end confdefs.h. */
23403 $ac_includes_default
23404 #include <$ac_header>
23406 rm -f conftest.$ac_objext
23407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23408 (eval $ac_compile) 2>&5
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); } &&
23412 { ac_try='test -s conftest.$ac_objext'
23413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23414 (eval $ac_try) 2>&5
23416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417 (exit $ac_status); }; }; then
23418 ac_header_compiler=yes
23420 echo "$as_me: failed program was:" >&5
23421 sed 's/^/| /' conftest.$ac_ext >&5
23423 ac_header_compiler=no
23425 rm -f conftest.$ac_objext conftest.$ac_ext
23426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23427 echo "${ECHO_T}$ac_header_compiler" >&6
23429 # Is the header present?
23430 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23432 cat >conftest.$ac_ext <<_ACEOF
23435 cat confdefs.h >>conftest.$ac_ext
23436 cat >>conftest.$ac_ext <<_ACEOF
23437 /* end confdefs.h. */
23438 #include <$ac_header>
23440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23443 grep -v '^ *+' conftest.er1 >conftest.err
23445 cat conftest.err >&5
23446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); } >/dev/null; then
23448 if test -s conftest.err; then
23449 ac_cpp_err=$ac_c_preproc_warn_flag
23456 if test -z "$ac_cpp_err"; then
23457 ac_header_preproc=yes
23459 echo "$as_me: failed program was:" >&5
23460 sed 's/^/| /' conftest.$ac_ext >&5
23462 ac_header_preproc=no
23464 rm -f conftest.err conftest.$ac_ext
23465 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23466 echo "${ECHO_T}$ac_header_preproc" >&6
23468 # So? What about this header?
23469 case $ac_header_compiler:$ac_header_preproc in
23471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23475 ac_header_preproc=yes
23478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23481 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23485 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23492 ## ------------------------------------ ##
23493 ## Report this to bug-coreutils@gnu.org ##
23494 ## ------------------------------------ ##
23497 sed "s/^/$as_me: WARNING: /" >&2
23500 echo "$as_me:$LINENO: checking for $ac_header" >&5
23501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23503 echo $ECHO_N "(cached) $ECHO_C" >&6
23505 eval "$as_ac_Header=\$ac_header_preproc"
23507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23512 cat >>confdefs.h <<_ACEOF
23513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23520 echo "$as_me:$LINENO: checking for BEOS mounted file system support functions" >&5
23521 echo $ECHO_N "checking for BEOS mounted file system support functions... $ECHO_C" >&6
23522 if test $ac_cv_header_fs_info_h = yes \
23523 && test $ac_cv_func_next_dev = yes \
23524 && test $ac_cv_func_fs_stat_dev = yes; then
23529 echo "$as_me:$LINENO: result: $fu_result" >&5
23530 echo "${ECHO_T}$fu_result" >&6
23531 if test $fu_result = yes; then
23532 ac_list_mounted_fs=found
23534 cat >>confdefs.h <<\_ACEOF
23535 #define MOUNTED_FS_STAT_DEV 1
23541 if test -z "$ac_list_mounted_fs"; then
23543 echo "$as_me:$LINENO: checking whether it is possible to resort to fread on /etc/mnttab" >&5
23544 echo $ECHO_N "checking whether it is possible to resort to fread on /etc/mnttab... $ECHO_C" >&6
23545 if test "${fu_cv_sys_mounted_fread+set}" = set; then
23546 echo $ECHO_N "(cached) $ECHO_C" >&6
23549 cat >conftest.$ac_ext <<_ACEOF
23552 cat confdefs.h >>conftest.$ac_ext
23553 cat >>conftest.$ac_ext <<_ACEOF
23554 /* end confdefs.h. */
23555 #include <mnttab.h>
23557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23560 grep -v '^ *+' conftest.er1 >conftest.err
23562 cat conftest.err >&5
23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 (exit $ac_status); } >/dev/null; then
23565 if test -s conftest.err; then
23566 ac_cpp_err=$ac_c_preproc_warn_flag
23573 if test -z "$ac_cpp_err"; then
23574 fu_cv_sys_mounted_fread=yes
23576 echo "$as_me: failed program was:" >&5
23577 sed 's/^/| /' conftest.$ac_ext >&5
23579 fu_cv_sys_mounted_fread=no
23581 rm -f conftest.err conftest.$ac_ext
23584 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread" >&5
23585 echo "${ECHO_T}$fu_cv_sys_mounted_fread" >&6
23586 if test $fu_cv_sys_mounted_fread = yes; then
23587 ac_list_mounted_fs=found
23589 cat >>confdefs.h <<\_ACEOF
23590 #define MOUNTED_FREAD 1
23596 if test -z "$ac_list_mounted_fs"; then
23597 { { echo "$as_me:$LINENO: error: could not determine how to read list of mounted filesystems" >&5
23598 echo "$as_me: error: could not determine how to read list of mounted filesystems" >&2;}
23599 { (exit 1); exit 1; }; }
23600 # FIXME -- no need to abort building the whole package
23601 # Can't build mountlist.c or anything that needs its functions
23604 if test $ac_list_mounted_fs = found; then
23605 gl_cv_list_mounted_fs=yes
23607 gl_cv_list_mounted_fs=no
23612 if test $gl_cv_list_mounted_fs = yes; then
23613 LIBOBJS="$LIBOBJS mountlist.$ac_objext"
23630 for ac_header in sys/mntent.h
23632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23634 echo "$as_me:$LINENO: checking for $ac_header" >&5
23635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23637 echo $ECHO_N "(cached) $ECHO_C" >&6
23639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23642 # Is the header compilable?
23643 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23645 cat >conftest.$ac_ext <<_ACEOF
23648 cat confdefs.h >>conftest.$ac_ext
23649 cat >>conftest.$ac_ext <<_ACEOF
23650 /* end confdefs.h. */
23651 $ac_includes_default
23652 #include <$ac_header>
23654 rm -f conftest.$ac_objext
23655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23656 (eval $ac_compile) 2>&5
23658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659 (exit $ac_status); } &&
23660 { ac_try='test -s conftest.$ac_objext'
23661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23662 (eval $ac_try) 2>&5
23664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665 (exit $ac_status); }; }; then
23666 ac_header_compiler=yes
23668 echo "$as_me: failed program was:" >&5
23669 sed 's/^/| /' conftest.$ac_ext >&5
23671 ac_header_compiler=no
23673 rm -f conftest.$ac_objext conftest.$ac_ext
23674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23675 echo "${ECHO_T}$ac_header_compiler" >&6
23677 # Is the header present?
23678 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23680 cat >conftest.$ac_ext <<_ACEOF
23683 cat confdefs.h >>conftest.$ac_ext
23684 cat >>conftest.$ac_ext <<_ACEOF
23685 /* end confdefs.h. */
23686 #include <$ac_header>
23688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23691 grep -v '^ *+' conftest.er1 >conftest.err
23693 cat conftest.err >&5
23694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695 (exit $ac_status); } >/dev/null; then
23696 if test -s conftest.err; then
23697 ac_cpp_err=$ac_c_preproc_warn_flag
23704 if test -z "$ac_cpp_err"; then
23705 ac_header_preproc=yes
23707 echo "$as_me: failed program was:" >&5
23708 sed 's/^/| /' conftest.$ac_ext >&5
23710 ac_header_preproc=no
23712 rm -f conftest.err conftest.$ac_ext
23713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23714 echo "${ECHO_T}$ac_header_preproc" >&6
23716 # So? What about this header?
23717 case $ac_header_compiler:$ac_header_preproc in
23719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23723 ac_header_preproc=yes
23726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23733 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23740 ## ------------------------------------ ##
23741 ## Report this to bug-coreutils@gnu.org ##
23742 ## ------------------------------------ ##
23745 sed "s/^/$as_me: WARNING: /" >&2
23748 echo "$as_me:$LINENO: checking for $ac_header" >&5
23749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23751 echo $ECHO_N "(cached) $ECHO_C" >&6
23753 eval "$as_ac_Header=\$ac_header_preproc"
23755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23760 cat >>confdefs.h <<_ACEOF
23761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23769 echo "$as_me:$LINENO: checking for f_fstypename in struct statfs" >&5
23770 echo $ECHO_N "checking for f_fstypename in struct statfs... $ECHO_C" >&6
23771 if test "${fu_cv_sys_f_fstypename_in_statfs+set}" = set; then
23772 echo $ECHO_N "(cached) $ECHO_C" >&6
23776 cat >conftest.$ac_ext <<_ACEOF
23779 cat confdefs.h >>conftest.$ac_ext
23780 cat >>conftest.$ac_ext <<_ACEOF
23781 /* end confdefs.h. */
23783 #include <sys/param.h>
23784 #include <sys/types.h>
23785 #include <sys/mount.h>
23790 struct statfs s; int i = sizeof s.f_fstypename;
23795 rm -f conftest.$ac_objext
23796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23797 (eval $ac_compile) 2>&5
23799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800 (exit $ac_status); } &&
23801 { ac_try='test -s conftest.$ac_objext'
23802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23803 (eval $ac_try) 2>&5
23805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806 (exit $ac_status); }; }; then
23807 fu_cv_sys_f_fstypename_in_statfs=yes
23809 echo "$as_me: failed program was:" >&5
23810 sed 's/^/| /' conftest.$ac_ext >&5
23812 fu_cv_sys_f_fstypename_in_statfs=no
23815 rm -f conftest.$ac_objext conftest.$ac_ext
23819 echo "$as_me:$LINENO: result: $fu_cv_sys_f_fstypename_in_statfs" >&5
23820 echo "${ECHO_T}$fu_cv_sys_f_fstypename_in_statfs" >&6
23822 if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
23824 cat >>confdefs.h <<\_ACEOF
23825 #define HAVE_F_FSTYPENAME_IN_STATFS 1
23852 echo "$as_me:$LINENO: checking for obstacks" >&5
23853 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
23854 if test "${ac_cv_func_obstack+set}" = set; then
23855 echo $ECHO_N "(cached) $ECHO_C" >&6
23857 cat >conftest.$ac_ext <<_ACEOF
23860 cat confdefs.h >>conftest.$ac_ext
23861 cat >>conftest.$ac_ext <<_ACEOF
23862 /* end confdefs.h. */
23863 #include "obstack.h"
23867 struct obstack *mem; obstack_free(mem,(char *) 0)
23872 rm -f conftest.$ac_objext conftest$ac_exeext
23873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23874 (eval $ac_link) 2>&5
23876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877 (exit $ac_status); } &&
23878 { ac_try='test -s conftest$ac_exeext'
23879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23880 (eval $ac_try) 2>&5
23882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23883 (exit $ac_status); }; }; then
23884 ac_cv_func_obstack=yes
23886 echo "$as_me: failed program was:" >&5
23887 sed 's/^/| /' conftest.$ac_ext >&5
23889 ac_cv_func_obstack=no
23891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23893 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
23894 echo "${ECHO_T}$ac_cv_func_obstack" >&6
23895 if test $ac_cv_func_obstack = yes; then
23897 cat >>confdefs.h <<\_ACEOF
23898 #define HAVE_OBSTACK 1
23902 LIBOBJS="$LIBOBJS obstack.$ac_objext"
23905 if test $ac_cv_func_obstack = no; then
23972 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
23973 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
23974 if test "${gl_cv_var__system_configuration+set}" = set; then
23975 echo $ECHO_N "(cached) $ECHO_C" >&6
23977 cat >conftest.$ac_ext <<_ACEOF
23980 cat confdefs.h >>conftest.$ac_ext
23981 cat >>conftest.$ac_ext <<_ACEOF
23982 /* end confdefs.h. */
23983 #include <sys/systemcfg.h>
23988 double x = _system_configuration.physmem;
23993 rm -f conftest.$ac_objext conftest$ac_exeext
23994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23995 (eval $ac_link) 2>&5
23997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998 (exit $ac_status); } &&
23999 { ac_try='test -s conftest$ac_exeext'
24000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24001 (eval $ac_try) 2>&5
24003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004 (exit $ac_status); }; }; then
24005 gl_cv_var__system_configuration=yes
24007 echo "$as_me: failed program was:" >&5
24008 sed 's/^/| /' conftest.$ac_ext >&5
24010 gl_cv_var__system_configuration=no
24012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24014 echo "$as_me:$LINENO: result: $gl_cv_var__system_configuration" >&5
24015 echo "${ECHO_T}$gl_cv_var__system_configuration" >&6
24017 if test $gl_cv_var__system_configuration = yes; then
24019 cat >>confdefs.h <<\_ACEOF
24020 #define HAVE__SYSTEM_CONFIGURATION 1
24027 # Prerequisites of lib/physmem.c.
24043 for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
24044 machine/hal_sysinfo.h sys/table.h sys/param.h sys/sysctl.h \
24047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24048 echo "$as_me:$LINENO: checking for $ac_header" >&5
24049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24051 echo $ECHO_N "(cached) $ECHO_C" >&6
24053 cat >conftest.$ac_ext <<_ACEOF
24056 cat confdefs.h >>conftest.$ac_ext
24057 cat >>conftest.$ac_ext <<_ACEOF
24058 /* end confdefs.h. */
24059 $ac_includes_default
24061 #include <$ac_header>
24063 rm -f conftest.$ac_objext
24064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24065 (eval $ac_compile) 2>&5
24067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24068 (exit $ac_status); } &&
24069 { ac_try='test -s conftest.$ac_objext'
24070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24071 (eval $ac_try) 2>&5
24073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074 (exit $ac_status); }; }; then
24075 eval "$as_ac_Header=yes"
24077 echo "$as_me: failed program was:" >&5
24078 sed 's/^/| /' conftest.$ac_ext >&5
24080 eval "$as_ac_Header=no"
24082 rm -f conftest.$ac_objext conftest.$ac_ext
24084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24087 cat >>confdefs.h <<_ACEOF
24088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24102 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
24104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24105 echo "$as_me:$LINENO: checking for $ac_func" >&5
24106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24107 if eval "test \"\${$as_ac_var+set}\" = set"; then
24108 echo $ECHO_N "(cached) $ECHO_C" >&6
24110 cat >conftest.$ac_ext <<_ACEOF
24113 cat confdefs.h >>conftest.$ac_ext
24114 cat >>conftest.$ac_ext <<_ACEOF
24115 /* end confdefs.h. */
24116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24118 #define $ac_func innocuous_$ac_func
24120 /* System header to define __stub macros and hopefully few prototypes,
24121 which can conflict with char $ac_func (); below.
24122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24123 <limits.h> exists even on freestanding compilers. */
24126 # include <limits.h>
24128 # include <assert.h>
24133 /* Override any gcc2 internal prototype to avoid an error. */
24138 /* We use char because int might match the return type of a gcc2
24139 builtin and then its argument prototype would still apply. */
24141 /* The GNU C library defines this for functions which it implements
24142 to always fail with ENOSYS. Some functions are actually named
24143 something starting with __ and the normal name is an alias. */
24144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24147 char (*f) () = $ac_func;
24156 return f != $ac_func;
24161 rm -f conftest.$ac_objext conftest$ac_exeext
24162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24163 (eval $ac_link) 2>&5
24165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166 (exit $ac_status); } &&
24167 { ac_try='test -s conftest$ac_exeext'
24168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24169 (eval $ac_try) 2>&5
24171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24172 (exit $ac_status); }; }; then
24173 eval "$as_ac_var=yes"
24175 echo "$as_me: failed program was:" >&5
24176 sed 's/^/| /' conftest.$ac_ext >&5
24178 eval "$as_ac_var=no"
24180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24183 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24184 if test `eval echo '${'$as_ac_var'}'` = yes; then
24185 cat >>confdefs.h <<_ACEOF
24186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24195 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24196 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
24197 if test "${ac_cv_struct_tm+set}" = set; then
24198 echo $ECHO_N "(cached) $ECHO_C" >&6
24200 cat >conftest.$ac_ext <<_ACEOF
24203 cat confdefs.h >>conftest.$ac_ext
24204 cat >>conftest.$ac_ext <<_ACEOF
24205 /* end confdefs.h. */
24206 #include <sys/types.h>
24212 struct tm *tp; tp->tm_sec;
24217 rm -f conftest.$ac_objext
24218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24219 (eval $ac_compile) 2>&5
24221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222 (exit $ac_status); } &&
24223 { ac_try='test -s conftest.$ac_objext'
24224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24225 (eval $ac_try) 2>&5
24227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228 (exit $ac_status); }; }; then
24229 ac_cv_struct_tm=time.h
24231 echo "$as_me: failed program was:" >&5
24232 sed 's/^/| /' conftest.$ac_ext >&5
24234 ac_cv_struct_tm=sys/time.h
24236 rm -f conftest.$ac_objext conftest.$ac_ext
24238 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24239 echo "${ECHO_T}$ac_cv_struct_tm" >&6
24240 if test $ac_cv_struct_tm = sys/time.h; then
24242 cat >>confdefs.h <<\_ACEOF
24243 #define TM_IN_SYS_TIME 1
24296 echo "$as_me:$LINENO: checking for mbstate_t" >&5
24297 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
24298 if test "${ac_cv_type_mbstate_t+set}" = set; then
24299 echo $ECHO_N "(cached) $ECHO_C" >&6
24301 cat >conftest.$ac_ext <<_ACEOF
24304 cat confdefs.h >>conftest.$ac_ext
24305 cat >>conftest.$ac_ext <<_ACEOF
24306 /* end confdefs.h. */
24307 $ac_includes_default
24308 # include <wchar.h>
24312 mbstate_t x; return sizeof x;
24317 rm -f conftest.$ac_objext
24318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24319 (eval $ac_compile) 2>&5
24321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322 (exit $ac_status); } &&
24323 { ac_try='test -s conftest.$ac_objext'
24324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24325 (eval $ac_try) 2>&5
24327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24328 (exit $ac_status); }; }; then
24329 ac_cv_type_mbstate_t=yes
24331 echo "$as_me: failed program was:" >&5
24332 sed 's/^/| /' conftest.$ac_ext >&5
24334 ac_cv_type_mbstate_t=no
24336 rm -f conftest.$ac_objext conftest.$ac_ext
24338 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
24339 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
24340 if test $ac_cv_type_mbstate_t = yes; then
24342 cat >>confdefs.h <<\_ACEOF
24343 #define HAVE_MBSTATE_T 1
24348 cat >>confdefs.h <<\_ACEOF
24349 #define mbstate_t int
24354 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
24355 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
24356 if test "${jm_cv_func_mbrtowc+set}" = set; then
24357 echo $ECHO_N "(cached) $ECHO_C" >&6
24360 cat >conftest.$ac_ext <<_ACEOF
24363 cat confdefs.h >>conftest.$ac_ext
24364 cat >>conftest.$ac_ext <<_ACEOF
24365 /* end confdefs.h. */
24370 mbstate_t state; return ! (sizeof state && mbrtowc);
24375 rm -f conftest.$ac_objext conftest$ac_exeext
24376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24377 (eval $ac_link) 2>&5
24379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380 (exit $ac_status); } &&
24381 { ac_try='test -s conftest$ac_exeext'
24382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24383 (eval $ac_try) 2>&5
24385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24386 (exit $ac_status); }; }; then
24387 jm_cv_func_mbrtowc=yes
24389 echo "$as_me: failed program was:" >&5
24390 sed 's/^/| /' conftest.$ac_ext >&5
24392 jm_cv_func_mbrtowc=no
24394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24396 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
24397 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
24398 if test $jm_cv_func_mbrtowc = yes; then
24400 cat >>confdefs.h <<\_ACEOF
24401 #define HAVE_MBRTOWC 1
24419 for ac_header in utmp.h utmpx.h
24421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24423 echo "$as_me:$LINENO: checking for $ac_header" >&5
24424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24426 echo $ECHO_N "(cached) $ECHO_C" >&6
24428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24431 # Is the header compilable?
24432 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24434 cat >conftest.$ac_ext <<_ACEOF
24437 cat confdefs.h >>conftest.$ac_ext
24438 cat >>conftest.$ac_ext <<_ACEOF
24439 /* end confdefs.h. */
24440 $ac_includes_default
24441 #include <$ac_header>
24443 rm -f conftest.$ac_objext
24444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24445 (eval $ac_compile) 2>&5
24447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448 (exit $ac_status); } &&
24449 { ac_try='test -s conftest.$ac_objext'
24450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24451 (eval $ac_try) 2>&5
24453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454 (exit $ac_status); }; }; then
24455 ac_header_compiler=yes
24457 echo "$as_me: failed program was:" >&5
24458 sed 's/^/| /' conftest.$ac_ext >&5
24460 ac_header_compiler=no
24462 rm -f conftest.$ac_objext conftest.$ac_ext
24463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24464 echo "${ECHO_T}$ac_header_compiler" >&6
24466 # Is the header present?
24467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24469 cat >conftest.$ac_ext <<_ACEOF
24472 cat confdefs.h >>conftest.$ac_ext
24473 cat >>conftest.$ac_ext <<_ACEOF
24474 /* end confdefs.h. */
24475 #include <$ac_header>
24477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24480 grep -v '^ *+' conftest.er1 >conftest.err
24482 cat conftest.err >&5
24483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484 (exit $ac_status); } >/dev/null; then
24485 if test -s conftest.err; then
24486 ac_cpp_err=$ac_c_preproc_warn_flag
24493 if test -z "$ac_cpp_err"; then
24494 ac_header_preproc=yes
24496 echo "$as_me: failed program was:" >&5
24497 sed 's/^/| /' conftest.$ac_ext >&5
24499 ac_header_preproc=no
24501 rm -f conftest.err conftest.$ac_ext
24502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24503 echo "${ECHO_T}$ac_header_preproc" >&6
24505 # So? What about this header?
24506 case $ac_header_compiler:$ac_header_preproc in
24508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24512 ac_header_preproc=yes
24515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24529 ## ------------------------------------ ##
24530 ## Report this to bug-coreutils@gnu.org ##
24531 ## ------------------------------------ ##
24534 sed "s/^/$as_me: WARNING: /" >&2
24537 echo "$as_me:$LINENO: checking for $ac_header" >&5
24538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24540 echo $ECHO_N "(cached) $ECHO_C" >&6
24542 eval "$as_ac_Header=\$ac_header_preproc"
24544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24549 cat >>confdefs.h <<_ACEOF
24550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24559 for ac_func in utmpname utmpxname
24561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24562 echo "$as_me:$LINENO: checking for $ac_func" >&5
24563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24564 if eval "test \"\${$as_ac_var+set}\" = set"; then
24565 echo $ECHO_N "(cached) $ECHO_C" >&6
24567 cat >conftest.$ac_ext <<_ACEOF
24570 cat confdefs.h >>conftest.$ac_ext
24571 cat >>conftest.$ac_ext <<_ACEOF
24572 /* end confdefs.h. */
24573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24575 #define $ac_func innocuous_$ac_func
24577 /* System header to define __stub macros and hopefully few prototypes,
24578 which can conflict with char $ac_func (); below.
24579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24580 <limits.h> exists even on freestanding compilers. */
24583 # include <limits.h>
24585 # include <assert.h>
24590 /* Override any gcc2 internal prototype to avoid an error. */
24595 /* We use char because int might match the return type of a gcc2
24596 builtin and then its argument prototype would still apply. */
24598 /* The GNU C library defines this for functions which it implements
24599 to always fail with ENOSYS. Some functions are actually named
24600 something starting with __ and the normal name is an alias. */
24601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24604 char (*f) () = $ac_func;
24613 return f != $ac_func;
24618 rm -f conftest.$ac_objext conftest$ac_exeext
24619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24620 (eval $ac_link) 2>&5
24622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24623 (exit $ac_status); } &&
24624 { ac_try='test -s conftest$ac_exeext'
24625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24626 (eval $ac_try) 2>&5
24628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24629 (exit $ac_status); }; }; then
24630 eval "$as_ac_var=yes"
24632 echo "$as_me: failed program was:" >&5
24633 sed 's/^/| /' conftest.$ac_ext >&5
24635 eval "$as_ac_var=no"
24637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24641 if test `eval echo '${'$as_ac_var'}'` = yes; then
24642 cat >>confdefs.h <<_ACEOF
24643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24649 echo "$as_me:$LINENO: checking whether getutent is declared" >&5
24650 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6
24651 if test "${ac_cv_have_decl_getutent+set}" = set; then
24652 echo $ECHO_N "(cached) $ECHO_C" >&6
24654 cat >conftest.$ac_ext <<_ACEOF
24657 cat confdefs.h >>conftest.$ac_ext
24658 cat >>conftest.$ac_ext <<_ACEOF
24659 /* end confdefs.h. */
24670 char *p = (char *) getutent;
24677 rm -f conftest.$ac_objext
24678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24679 (eval $ac_compile) 2>&5
24681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682 (exit $ac_status); } &&
24683 { ac_try='test -s conftest.$ac_objext'
24684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24685 (eval $ac_try) 2>&5
24687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688 (exit $ac_status); }; }; then
24689 ac_cv_have_decl_getutent=yes
24691 echo "$as_me: failed program was:" >&5
24692 sed 's/^/| /' conftest.$ac_ext >&5
24694 ac_cv_have_decl_getutent=no
24696 rm -f conftest.$ac_objext conftest.$ac_ext
24698 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
24699 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6
24700 if test $ac_cv_have_decl_getutent = yes; then
24702 cat >>confdefs.h <<_ACEOF
24703 #define HAVE_DECL_GETUTENT 1
24708 cat >>confdefs.h <<_ACEOF
24709 #define HAVE_DECL_GETUTENT 0
24716 if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
24718 $ac_includes_default
24719 #ifdef HAVE_UTMPX_H
24720 # include <utmpx.h>
24726 echo "$as_me:$LINENO: checking for struct utmpx.ut_user" >&5
24727 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" >&6
24728 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
24729 echo $ECHO_N "(cached) $ECHO_C" >&6
24731 cat >conftest.$ac_ext <<_ACEOF
24734 cat confdefs.h >>conftest.$ac_ext
24735 cat >>conftest.$ac_ext <<_ACEOF
24736 /* end confdefs.h. */
24742 static struct utmpx ac_aggr;
24743 if (ac_aggr.ut_user)
24749 rm -f conftest.$ac_objext
24750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24751 (eval $ac_compile) 2>&5
24753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754 (exit $ac_status); } &&
24755 { ac_try='test -s conftest.$ac_objext'
24756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24757 (eval $ac_try) 2>&5
24759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760 (exit $ac_status); }; }; then
24761 ac_cv_member_struct_utmpx_ut_user=yes
24763 echo "$as_me: failed program was:" >&5
24764 sed 's/^/| /' conftest.$ac_ext >&5
24766 cat >conftest.$ac_ext <<_ACEOF
24769 cat confdefs.h >>conftest.$ac_ext
24770 cat >>conftest.$ac_ext <<_ACEOF
24771 /* end confdefs.h. */
24777 static struct utmpx ac_aggr;
24778 if (sizeof ac_aggr.ut_user)
24784 rm -f conftest.$ac_objext
24785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24786 (eval $ac_compile) 2>&5
24788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789 (exit $ac_status); } &&
24790 { ac_try='test -s conftest.$ac_objext'
24791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24792 (eval $ac_try) 2>&5
24794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795 (exit $ac_status); }; }; then
24796 ac_cv_member_struct_utmpx_ut_user=yes
24798 echo "$as_me: failed program was:" >&5
24799 sed 's/^/| /' conftest.$ac_ext >&5
24801 ac_cv_member_struct_utmpx_ut_user=no
24803 rm -f conftest.$ac_objext conftest.$ac_ext
24805 rm -f conftest.$ac_objext conftest.$ac_ext
24807 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_user" >&5
24808 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_user" >&6
24809 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
24811 cat >>confdefs.h <<_ACEOF
24812 #define HAVE_STRUCT_UTMPX_UT_USER 1
24818 echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
24819 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6
24820 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
24821 echo $ECHO_N "(cached) $ECHO_C" >&6
24823 cat >conftest.$ac_ext <<_ACEOF
24826 cat confdefs.h >>conftest.$ac_ext
24827 cat >>conftest.$ac_ext <<_ACEOF
24828 /* end confdefs.h. */
24834 static struct utmp ac_aggr;
24835 if (ac_aggr.ut_user)
24841 rm -f conftest.$ac_objext
24842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24843 (eval $ac_compile) 2>&5
24845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); } &&
24847 { ac_try='test -s conftest.$ac_objext'
24848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24849 (eval $ac_try) 2>&5
24851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24852 (exit $ac_status); }; }; then
24853 ac_cv_member_struct_utmp_ut_user=yes
24855 echo "$as_me: failed program was:" >&5
24856 sed 's/^/| /' conftest.$ac_ext >&5
24858 cat >conftest.$ac_ext <<_ACEOF
24861 cat confdefs.h >>conftest.$ac_ext
24862 cat >>conftest.$ac_ext <<_ACEOF
24863 /* end confdefs.h. */
24869 static struct utmp ac_aggr;
24870 if (sizeof ac_aggr.ut_user)
24876 rm -f conftest.$ac_objext
24877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24878 (eval $ac_compile) 2>&5
24880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881 (exit $ac_status); } &&
24882 { ac_try='test -s conftest.$ac_objext'
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 ac_cv_member_struct_utmp_ut_user=yes
24890 echo "$as_me: failed program was:" >&5
24891 sed 's/^/| /' conftest.$ac_ext >&5
24893 ac_cv_member_struct_utmp_ut_user=no
24895 rm -f conftest.$ac_objext conftest.$ac_ext
24897 rm -f conftest.$ac_objext conftest.$ac_ext
24899 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
24900 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6
24901 if test $ac_cv_member_struct_utmp_ut_user = yes; then
24903 cat >>confdefs.h <<_ACEOF
24904 #define HAVE_STRUCT_UTMP_UT_USER 1
24910 echo "$as_me:$LINENO: checking for struct utmpx.ut_name" >&5
24911 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" >&6
24912 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
24913 echo $ECHO_N "(cached) $ECHO_C" >&6
24915 cat >conftest.$ac_ext <<_ACEOF
24918 cat confdefs.h >>conftest.$ac_ext
24919 cat >>conftest.$ac_ext <<_ACEOF
24920 /* end confdefs.h. */
24926 static struct utmpx ac_aggr;
24927 if (ac_aggr.ut_name)
24933 rm -f conftest.$ac_objext
24934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24935 (eval $ac_compile) 2>&5
24937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938 (exit $ac_status); } &&
24939 { ac_try='test -s conftest.$ac_objext'
24940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24941 (eval $ac_try) 2>&5
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); }; }; then
24945 ac_cv_member_struct_utmpx_ut_name=yes
24947 echo "$as_me: failed program was:" >&5
24948 sed 's/^/| /' conftest.$ac_ext >&5
24950 cat >conftest.$ac_ext <<_ACEOF
24953 cat confdefs.h >>conftest.$ac_ext
24954 cat >>conftest.$ac_ext <<_ACEOF
24955 /* end confdefs.h. */
24961 static struct utmpx ac_aggr;
24962 if (sizeof ac_aggr.ut_name)
24968 rm -f conftest.$ac_objext
24969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24970 (eval $ac_compile) 2>&5
24972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973 (exit $ac_status); } &&
24974 { ac_try='test -s conftest.$ac_objext'
24975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24976 (eval $ac_try) 2>&5
24978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979 (exit $ac_status); }; }; then
24980 ac_cv_member_struct_utmpx_ut_name=yes
24982 echo "$as_me: failed program was:" >&5
24983 sed 's/^/| /' conftest.$ac_ext >&5
24985 ac_cv_member_struct_utmpx_ut_name=no
24987 rm -f conftest.$ac_objext conftest.$ac_ext
24989 rm -f conftest.$ac_objext conftest.$ac_ext
24991 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_name" >&5
24992 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_name" >&6
24993 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
24995 cat >>confdefs.h <<_ACEOF
24996 #define HAVE_STRUCT_UTMPX_UT_NAME 1
25002 echo "$as_me:$LINENO: checking for struct utmp.ut_name" >&5
25003 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" >&6
25004 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
25005 echo $ECHO_N "(cached) $ECHO_C" >&6
25007 cat >conftest.$ac_ext <<_ACEOF
25010 cat confdefs.h >>conftest.$ac_ext
25011 cat >>conftest.$ac_ext <<_ACEOF
25012 /* end confdefs.h. */
25018 static struct utmp ac_aggr;
25019 if (ac_aggr.ut_name)
25025 rm -f conftest.$ac_objext
25026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25027 (eval $ac_compile) 2>&5
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); } &&
25031 { ac_try='test -s conftest.$ac_objext'
25032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25033 (eval $ac_try) 2>&5
25035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); }; }; then
25037 ac_cv_member_struct_utmp_ut_name=yes
25039 echo "$as_me: failed program was:" >&5
25040 sed 's/^/| /' conftest.$ac_ext >&5
25042 cat >conftest.$ac_ext <<_ACEOF
25045 cat confdefs.h >>conftest.$ac_ext
25046 cat >>conftest.$ac_ext <<_ACEOF
25047 /* end confdefs.h. */
25053 static struct utmp ac_aggr;
25054 if (sizeof ac_aggr.ut_name)
25060 rm -f conftest.$ac_objext
25061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25062 (eval $ac_compile) 2>&5
25064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065 (exit $ac_status); } &&
25066 { ac_try='test -s conftest.$ac_objext'
25067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25068 (eval $ac_try) 2>&5
25070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071 (exit $ac_status); }; }; then
25072 ac_cv_member_struct_utmp_ut_name=yes
25074 echo "$as_me: failed program was:" >&5
25075 sed 's/^/| /' conftest.$ac_ext >&5
25077 ac_cv_member_struct_utmp_ut_name=no
25079 rm -f conftest.$ac_objext conftest.$ac_ext
25081 rm -f conftest.$ac_objext conftest.$ac_ext
25083 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_name" >&5
25084 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_name" >&6
25085 if test $ac_cv_member_struct_utmp_ut_name = yes; then
25087 cat >>confdefs.h <<_ACEOF
25088 #define HAVE_STRUCT_UTMP_UT_NAME 1
25094 echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5
25095 echo $ECHO_N "checking for struct utmpx.ut_type... $ECHO_C" >&6
25096 if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then
25097 echo $ECHO_N "(cached) $ECHO_C" >&6
25099 cat >conftest.$ac_ext <<_ACEOF
25102 cat confdefs.h >>conftest.$ac_ext
25103 cat >>conftest.$ac_ext <<_ACEOF
25104 /* end confdefs.h. */
25110 static struct utmpx ac_aggr;
25111 if (ac_aggr.ut_type)
25117 rm -f conftest.$ac_objext
25118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25119 (eval $ac_compile) 2>&5
25121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122 (exit $ac_status); } &&
25123 { ac_try='test -s conftest.$ac_objext'
25124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25125 (eval $ac_try) 2>&5
25127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 (exit $ac_status); }; }; then
25129 ac_cv_member_struct_utmpx_ut_type=yes
25131 echo "$as_me: failed program was:" >&5
25132 sed 's/^/| /' conftest.$ac_ext >&5
25134 cat >conftest.$ac_ext <<_ACEOF
25137 cat confdefs.h >>conftest.$ac_ext
25138 cat >>conftest.$ac_ext <<_ACEOF
25139 /* end confdefs.h. */
25145 static struct utmpx ac_aggr;
25146 if (sizeof ac_aggr.ut_type)
25152 rm -f conftest.$ac_objext
25153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25154 (eval $ac_compile) 2>&5
25156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157 (exit $ac_status); } &&
25158 { ac_try='test -s conftest.$ac_objext'
25159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25160 (eval $ac_try) 2>&5
25162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163 (exit $ac_status); }; }; then
25164 ac_cv_member_struct_utmpx_ut_type=yes
25166 echo "$as_me: failed program was:" >&5
25167 sed 's/^/| /' conftest.$ac_ext >&5
25169 ac_cv_member_struct_utmpx_ut_type=no
25171 rm -f conftest.$ac_objext conftest.$ac_ext
25173 rm -f conftest.$ac_objext conftest.$ac_ext
25175 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5
25176 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_type" >&6
25177 if test $ac_cv_member_struct_utmpx_ut_type = yes; then
25179 cat >>confdefs.h <<_ACEOF
25180 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
25186 echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5
25187 echo $ECHO_N "checking for struct utmp.ut_type... $ECHO_C" >&6
25188 if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then
25189 echo $ECHO_N "(cached) $ECHO_C" >&6
25191 cat >conftest.$ac_ext <<_ACEOF
25194 cat confdefs.h >>conftest.$ac_ext
25195 cat >>conftest.$ac_ext <<_ACEOF
25196 /* end confdefs.h. */
25202 static struct utmp ac_aggr;
25203 if (ac_aggr.ut_type)
25209 rm -f conftest.$ac_objext
25210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25211 (eval $ac_compile) 2>&5
25213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214 (exit $ac_status); } &&
25215 { ac_try='test -s conftest.$ac_objext'
25216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25217 (eval $ac_try) 2>&5
25219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220 (exit $ac_status); }; }; then
25221 ac_cv_member_struct_utmp_ut_type=yes
25223 echo "$as_me: failed program was:" >&5
25224 sed 's/^/| /' conftest.$ac_ext >&5
25226 cat >conftest.$ac_ext <<_ACEOF
25229 cat confdefs.h >>conftest.$ac_ext
25230 cat >>conftest.$ac_ext <<_ACEOF
25231 /* end confdefs.h. */
25237 static struct utmp ac_aggr;
25238 if (sizeof ac_aggr.ut_type)
25244 rm -f conftest.$ac_objext
25245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25246 (eval $ac_compile) 2>&5
25248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249 (exit $ac_status); } &&
25250 { ac_try='test -s conftest.$ac_objext'
25251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25252 (eval $ac_try) 2>&5
25254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255 (exit $ac_status); }; }; then
25256 ac_cv_member_struct_utmp_ut_type=yes
25258 echo "$as_me: failed program was:" >&5
25259 sed 's/^/| /' conftest.$ac_ext >&5
25261 ac_cv_member_struct_utmp_ut_type=no
25263 rm -f conftest.$ac_objext conftest.$ac_ext
25265 rm -f conftest.$ac_objext conftest.$ac_ext
25267 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5
25268 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_type" >&6
25269 if test $ac_cv_member_struct_utmp_ut_type = yes; then
25271 cat >>confdefs.h <<_ACEOF
25272 #define HAVE_STRUCT_UTMP_UT_TYPE 1
25278 echo "$as_me:$LINENO: checking for struct utmpx.ut_pid" >&5
25279 echo $ECHO_N "checking for struct utmpx.ut_pid... $ECHO_C" >&6
25280 if test "${ac_cv_member_struct_utmpx_ut_pid+set}" = set; then
25281 echo $ECHO_N "(cached) $ECHO_C" >&6
25283 cat >conftest.$ac_ext <<_ACEOF
25286 cat confdefs.h >>conftest.$ac_ext
25287 cat >>conftest.$ac_ext <<_ACEOF
25288 /* end confdefs.h. */
25294 static struct utmpx ac_aggr;
25295 if (ac_aggr.ut_pid)
25301 rm -f conftest.$ac_objext
25302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25303 (eval $ac_compile) 2>&5
25305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25306 (exit $ac_status); } &&
25307 { ac_try='test -s conftest.$ac_objext'
25308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25309 (eval $ac_try) 2>&5
25311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312 (exit $ac_status); }; }; then
25313 ac_cv_member_struct_utmpx_ut_pid=yes
25315 echo "$as_me: failed program was:" >&5
25316 sed 's/^/| /' conftest.$ac_ext >&5
25318 cat >conftest.$ac_ext <<_ACEOF
25321 cat confdefs.h >>conftest.$ac_ext
25322 cat >>conftest.$ac_ext <<_ACEOF
25323 /* end confdefs.h. */
25329 static struct utmpx ac_aggr;
25330 if (sizeof ac_aggr.ut_pid)
25336 rm -f conftest.$ac_objext
25337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25338 (eval $ac_compile) 2>&5
25340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341 (exit $ac_status); } &&
25342 { ac_try='test -s conftest.$ac_objext'
25343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25344 (eval $ac_try) 2>&5
25346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347 (exit $ac_status); }; }; then
25348 ac_cv_member_struct_utmpx_ut_pid=yes
25350 echo "$as_me: failed program was:" >&5
25351 sed 's/^/| /' conftest.$ac_ext >&5
25353 ac_cv_member_struct_utmpx_ut_pid=no
25355 rm -f conftest.$ac_objext conftest.$ac_ext
25357 rm -f conftest.$ac_objext conftest.$ac_ext
25359 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_pid" >&5
25360 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_pid" >&6
25361 if test $ac_cv_member_struct_utmpx_ut_pid = yes; then
25363 cat >>confdefs.h <<_ACEOF
25364 #define HAVE_STRUCT_UTMPX_UT_PID 1
25370 echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5
25371 echo $ECHO_N "checking for struct utmp.ut_pid... $ECHO_C" >&6
25372 if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then
25373 echo $ECHO_N "(cached) $ECHO_C" >&6
25375 cat >conftest.$ac_ext <<_ACEOF
25378 cat confdefs.h >>conftest.$ac_ext
25379 cat >>conftest.$ac_ext <<_ACEOF
25380 /* end confdefs.h. */
25386 static struct utmp ac_aggr;
25387 if (ac_aggr.ut_pid)
25393 rm -f conftest.$ac_objext
25394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25395 (eval $ac_compile) 2>&5
25397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25398 (exit $ac_status); } &&
25399 { ac_try='test -s conftest.$ac_objext'
25400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25401 (eval $ac_try) 2>&5
25403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404 (exit $ac_status); }; }; then
25405 ac_cv_member_struct_utmp_ut_pid=yes
25407 echo "$as_me: failed program was:" >&5
25408 sed 's/^/| /' conftest.$ac_ext >&5
25410 cat >conftest.$ac_ext <<_ACEOF
25413 cat confdefs.h >>conftest.$ac_ext
25414 cat >>conftest.$ac_ext <<_ACEOF
25415 /* end confdefs.h. */
25421 static struct utmp ac_aggr;
25422 if (sizeof ac_aggr.ut_pid)
25428 rm -f conftest.$ac_objext
25429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25430 (eval $ac_compile) 2>&5
25432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433 (exit $ac_status); } &&
25434 { ac_try='test -s conftest.$ac_objext'
25435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25436 (eval $ac_try) 2>&5
25438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439 (exit $ac_status); }; }; then
25440 ac_cv_member_struct_utmp_ut_pid=yes
25442 echo "$as_me: failed program was:" >&5
25443 sed 's/^/| /' conftest.$ac_ext >&5
25445 ac_cv_member_struct_utmp_ut_pid=no
25447 rm -f conftest.$ac_objext conftest.$ac_ext
25449 rm -f conftest.$ac_objext conftest.$ac_ext
25451 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5
25452 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_pid" >&6
25453 if test $ac_cv_member_struct_utmp_ut_pid = yes; then
25455 cat >>confdefs.h <<_ACEOF
25456 #define HAVE_STRUCT_UTMP_UT_PID 1
25462 echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5
25463 echo $ECHO_N "checking for struct utmpx.ut_id... $ECHO_C" >&6
25464 if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then
25465 echo $ECHO_N "(cached) $ECHO_C" >&6
25467 cat >conftest.$ac_ext <<_ACEOF
25470 cat confdefs.h >>conftest.$ac_ext
25471 cat >>conftest.$ac_ext <<_ACEOF
25472 /* end confdefs.h. */
25478 static struct utmpx ac_aggr;
25485 rm -f conftest.$ac_objext
25486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25487 (eval $ac_compile) 2>&5
25489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490 (exit $ac_status); } &&
25491 { ac_try='test -s conftest.$ac_objext'
25492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25493 (eval $ac_try) 2>&5
25495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496 (exit $ac_status); }; }; then
25497 ac_cv_member_struct_utmpx_ut_id=yes
25499 echo "$as_me: failed program was:" >&5
25500 sed 's/^/| /' conftest.$ac_ext >&5
25502 cat >conftest.$ac_ext <<_ACEOF
25505 cat confdefs.h >>conftest.$ac_ext
25506 cat >>conftest.$ac_ext <<_ACEOF
25507 /* end confdefs.h. */
25513 static struct utmpx ac_aggr;
25514 if (sizeof ac_aggr.ut_id)
25520 rm -f conftest.$ac_objext
25521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25522 (eval $ac_compile) 2>&5
25524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25525 (exit $ac_status); } &&
25526 { ac_try='test -s conftest.$ac_objext'
25527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25528 (eval $ac_try) 2>&5
25530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531 (exit $ac_status); }; }; then
25532 ac_cv_member_struct_utmpx_ut_id=yes
25534 echo "$as_me: failed program was:" >&5
25535 sed 's/^/| /' conftest.$ac_ext >&5
25537 ac_cv_member_struct_utmpx_ut_id=no
25539 rm -f conftest.$ac_objext conftest.$ac_ext
25541 rm -f conftest.$ac_objext conftest.$ac_ext
25543 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5
25544 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_id" >&6
25545 if test $ac_cv_member_struct_utmpx_ut_id = yes; then
25547 cat >>confdefs.h <<_ACEOF
25548 #define HAVE_STRUCT_UTMPX_UT_ID 1
25554 echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5
25555 echo $ECHO_N "checking for struct utmp.ut_id... $ECHO_C" >&6
25556 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then
25557 echo $ECHO_N "(cached) $ECHO_C" >&6
25559 cat >conftest.$ac_ext <<_ACEOF
25562 cat confdefs.h >>conftest.$ac_ext
25563 cat >>conftest.$ac_ext <<_ACEOF
25564 /* end confdefs.h. */
25570 static struct utmp ac_aggr;
25577 rm -f conftest.$ac_objext
25578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25579 (eval $ac_compile) 2>&5
25581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582 (exit $ac_status); } &&
25583 { ac_try='test -s conftest.$ac_objext'
25584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25585 (eval $ac_try) 2>&5
25587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588 (exit $ac_status); }; }; then
25589 ac_cv_member_struct_utmp_ut_id=yes
25591 echo "$as_me: failed program was:" >&5
25592 sed 's/^/| /' conftest.$ac_ext >&5
25594 cat >conftest.$ac_ext <<_ACEOF
25597 cat confdefs.h >>conftest.$ac_ext
25598 cat >>conftest.$ac_ext <<_ACEOF
25599 /* end confdefs.h. */
25605 static struct utmp ac_aggr;
25606 if (sizeof ac_aggr.ut_id)
25612 rm -f conftest.$ac_objext
25613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25614 (eval $ac_compile) 2>&5
25616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617 (exit $ac_status); } &&
25618 { ac_try='test -s conftest.$ac_objext'
25619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25620 (eval $ac_try) 2>&5
25622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623 (exit $ac_status); }; }; then
25624 ac_cv_member_struct_utmp_ut_id=yes
25626 echo "$as_me: failed program was:" >&5
25627 sed 's/^/| /' conftest.$ac_ext >&5
25629 ac_cv_member_struct_utmp_ut_id=no
25631 rm -f conftest.$ac_objext conftest.$ac_ext
25633 rm -f conftest.$ac_objext conftest.$ac_ext
25635 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5
25636 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_id" >&6
25637 if test $ac_cv_member_struct_utmp_ut_id = yes; then
25639 cat >>confdefs.h <<_ACEOF
25640 #define HAVE_STRUCT_UTMP_UT_ID 1
25646 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit" >&5
25647 echo $ECHO_N "checking for struct utmpx.ut_exit... $ECHO_C" >&6
25648 if test "${ac_cv_member_struct_utmpx_ut_exit+set}" = set; then
25649 echo $ECHO_N "(cached) $ECHO_C" >&6
25651 cat >conftest.$ac_ext <<_ACEOF
25654 cat confdefs.h >>conftest.$ac_ext
25655 cat >>conftest.$ac_ext <<_ACEOF
25656 /* end confdefs.h. */
25662 static struct utmpx ac_aggr;
25663 if (ac_aggr.ut_exit)
25669 rm -f conftest.$ac_objext
25670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25671 (eval $ac_compile) 2>&5
25673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674 (exit $ac_status); } &&
25675 { ac_try='test -s conftest.$ac_objext'
25676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25677 (eval $ac_try) 2>&5
25679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680 (exit $ac_status); }; }; then
25681 ac_cv_member_struct_utmpx_ut_exit=yes
25683 echo "$as_me: failed program was:" >&5
25684 sed 's/^/| /' conftest.$ac_ext >&5
25686 cat >conftest.$ac_ext <<_ACEOF
25689 cat confdefs.h >>conftest.$ac_ext
25690 cat >>conftest.$ac_ext <<_ACEOF
25691 /* end confdefs.h. */
25697 static struct utmpx ac_aggr;
25698 if (sizeof ac_aggr.ut_exit)
25704 rm -f conftest.$ac_objext
25705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25706 (eval $ac_compile) 2>&5
25708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709 (exit $ac_status); } &&
25710 { ac_try='test -s conftest.$ac_objext'
25711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25712 (eval $ac_try) 2>&5
25714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715 (exit $ac_status); }; }; then
25716 ac_cv_member_struct_utmpx_ut_exit=yes
25718 echo "$as_me: failed program was:" >&5
25719 sed 's/^/| /' conftest.$ac_ext >&5
25721 ac_cv_member_struct_utmpx_ut_exit=no
25723 rm -f conftest.$ac_objext conftest.$ac_ext
25725 rm -f conftest.$ac_objext conftest.$ac_ext
25727 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit" >&5
25728 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit" >&6
25729 if test $ac_cv_member_struct_utmpx_ut_exit = yes; then
25731 cat >>confdefs.h <<_ACEOF
25732 #define HAVE_STRUCT_UTMPX_UT_EXIT 1
25738 echo "$as_me:$LINENO: checking for struct utmp.ut_exit" >&5
25739 echo $ECHO_N "checking for struct utmp.ut_exit... $ECHO_C" >&6
25740 if test "${ac_cv_member_struct_utmp_ut_exit+set}" = set; then
25741 echo $ECHO_N "(cached) $ECHO_C" >&6
25743 cat >conftest.$ac_ext <<_ACEOF
25746 cat confdefs.h >>conftest.$ac_ext
25747 cat >>conftest.$ac_ext <<_ACEOF
25748 /* end confdefs.h. */
25754 static struct utmp ac_aggr;
25755 if (ac_aggr.ut_exit)
25761 rm -f conftest.$ac_objext
25762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25763 (eval $ac_compile) 2>&5
25765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766 (exit $ac_status); } &&
25767 { ac_try='test -s conftest.$ac_objext'
25768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25769 (eval $ac_try) 2>&5
25771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25772 (exit $ac_status); }; }; then
25773 ac_cv_member_struct_utmp_ut_exit=yes
25775 echo "$as_me: failed program was:" >&5
25776 sed 's/^/| /' conftest.$ac_ext >&5
25778 cat >conftest.$ac_ext <<_ACEOF
25781 cat confdefs.h >>conftest.$ac_ext
25782 cat >>conftest.$ac_ext <<_ACEOF
25783 /* end confdefs.h. */
25789 static struct utmp ac_aggr;
25790 if (sizeof ac_aggr.ut_exit)
25796 rm -f conftest.$ac_objext
25797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25798 (eval $ac_compile) 2>&5
25800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801 (exit $ac_status); } &&
25802 { ac_try='test -s conftest.$ac_objext'
25803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25804 (eval $ac_try) 2>&5
25806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25807 (exit $ac_status); }; }; then
25808 ac_cv_member_struct_utmp_ut_exit=yes
25810 echo "$as_me: failed program was:" >&5
25811 sed 's/^/| /' conftest.$ac_ext >&5
25813 ac_cv_member_struct_utmp_ut_exit=no
25815 rm -f conftest.$ac_objext conftest.$ac_ext
25817 rm -f conftest.$ac_objext conftest.$ac_ext
25819 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit" >&5
25820 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit" >&6
25821 if test $ac_cv_member_struct_utmp_ut_exit = yes; then
25823 cat >>confdefs.h <<_ACEOF
25824 #define HAVE_STRUCT_UTMP_UT_EXIT 1
25831 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_exit" >&5
25832 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_exit... $ECHO_C" >&6
25833 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_exit+set}" = set; then
25834 echo $ECHO_N "(cached) $ECHO_C" >&6
25836 cat >conftest.$ac_ext <<_ACEOF
25839 cat confdefs.h >>conftest.$ac_ext
25840 cat >>conftest.$ac_ext <<_ACEOF
25841 /* end confdefs.h. */
25847 static struct utmpx ac_aggr;
25848 if (ac_aggr.ut_exit.ut_exit)
25854 rm -f conftest.$ac_objext
25855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25856 (eval $ac_compile) 2>&5
25858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25859 (exit $ac_status); } &&
25860 { ac_try='test -s conftest.$ac_objext'
25861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25862 (eval $ac_try) 2>&5
25864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865 (exit $ac_status); }; }; then
25866 ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
25868 echo "$as_me: failed program was:" >&5
25869 sed 's/^/| /' conftest.$ac_ext >&5
25871 cat >conftest.$ac_ext <<_ACEOF
25874 cat confdefs.h >>conftest.$ac_ext
25875 cat >>conftest.$ac_ext <<_ACEOF
25876 /* end confdefs.h. */
25882 static struct utmpx ac_aggr;
25883 if (sizeof ac_aggr.ut_exit.ut_exit)
25889 rm -f conftest.$ac_objext
25890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25891 (eval $ac_compile) 2>&5
25893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894 (exit $ac_status); } &&
25895 { ac_try='test -s conftest.$ac_objext'
25896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25897 (eval $ac_try) 2>&5
25899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25900 (exit $ac_status); }; }; then
25901 ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
25903 echo "$as_me: failed program was:" >&5
25904 sed 's/^/| /' conftest.$ac_ext >&5
25906 ac_cv_member_struct_utmpx_ut_exit_ut_exit=no
25908 rm -f conftest.$ac_objext conftest.$ac_ext
25910 rm -f conftest.$ac_objext conftest.$ac_ext
25912 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&5
25913 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&6
25914 if test $ac_cv_member_struct_utmpx_ut_exit_ut_exit = yes; then
25916 cat >>confdefs.h <<_ACEOF
25917 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_EXIT 1
25923 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_exit" >&5
25924 echo $ECHO_N "checking for struct utmp.ut_exit.ut_exit... $ECHO_C" >&6
25925 if test "${ac_cv_member_struct_utmp_ut_exit_ut_exit+set}" = set; then
25926 echo $ECHO_N "(cached) $ECHO_C" >&6
25928 cat >conftest.$ac_ext <<_ACEOF
25931 cat confdefs.h >>conftest.$ac_ext
25932 cat >>conftest.$ac_ext <<_ACEOF
25933 /* end confdefs.h. */
25939 static struct utmp ac_aggr;
25940 if (ac_aggr.ut_exit.ut_exit)
25946 rm -f conftest.$ac_objext
25947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25948 (eval $ac_compile) 2>&5
25950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25951 (exit $ac_status); } &&
25952 { ac_try='test -s conftest.$ac_objext'
25953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25954 (eval $ac_try) 2>&5
25956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957 (exit $ac_status); }; }; then
25958 ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
25960 echo "$as_me: failed program was:" >&5
25961 sed 's/^/| /' conftest.$ac_ext >&5
25963 cat >conftest.$ac_ext <<_ACEOF
25966 cat confdefs.h >>conftest.$ac_ext
25967 cat >>conftest.$ac_ext <<_ACEOF
25968 /* end confdefs.h. */
25974 static struct utmp ac_aggr;
25975 if (sizeof ac_aggr.ut_exit.ut_exit)
25981 rm -f conftest.$ac_objext
25982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25983 (eval $ac_compile) 2>&5
25985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986 (exit $ac_status); } &&
25987 { ac_try='test -s conftest.$ac_objext'
25988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25989 (eval $ac_try) 2>&5
25991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992 (exit $ac_status); }; }; then
25993 ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
25995 echo "$as_me: failed program was:" >&5
25996 sed 's/^/| /' conftest.$ac_ext >&5
25998 ac_cv_member_struct_utmp_ut_exit_ut_exit=no
26000 rm -f conftest.$ac_objext conftest.$ac_ext
26002 rm -f conftest.$ac_objext conftest.$ac_ext
26004 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_exit" >&5
26005 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_exit" >&6
26006 if test $ac_cv_member_struct_utmp_ut_exit_ut_exit = yes; then
26008 cat >>confdefs.h <<_ACEOF
26009 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_EXIT 1
26015 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_exit" >&5
26016 echo $ECHO_N "checking for struct utmpx.ut_exit.e_exit... $ECHO_C" >&6
26017 if test "${ac_cv_member_struct_utmpx_ut_exit_e_exit+set}" = set; then
26018 echo $ECHO_N "(cached) $ECHO_C" >&6
26020 cat >conftest.$ac_ext <<_ACEOF
26023 cat confdefs.h >>conftest.$ac_ext
26024 cat >>conftest.$ac_ext <<_ACEOF
26025 /* end confdefs.h. */
26031 static struct utmpx ac_aggr;
26032 if (ac_aggr.ut_exit.e_exit)
26038 rm -f conftest.$ac_objext
26039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26040 (eval $ac_compile) 2>&5
26042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043 (exit $ac_status); } &&
26044 { ac_try='test -s conftest.$ac_objext'
26045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26046 (eval $ac_try) 2>&5
26048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26049 (exit $ac_status); }; }; then
26050 ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
26052 echo "$as_me: failed program was:" >&5
26053 sed 's/^/| /' conftest.$ac_ext >&5
26055 cat >conftest.$ac_ext <<_ACEOF
26058 cat confdefs.h >>conftest.$ac_ext
26059 cat >>conftest.$ac_ext <<_ACEOF
26060 /* end confdefs.h. */
26066 static struct utmpx ac_aggr;
26067 if (sizeof ac_aggr.ut_exit.e_exit)
26073 rm -f conftest.$ac_objext
26074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26075 (eval $ac_compile) 2>&5
26077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078 (exit $ac_status); } &&
26079 { ac_try='test -s conftest.$ac_objext'
26080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26081 (eval $ac_try) 2>&5
26083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26084 (exit $ac_status); }; }; then
26085 ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
26087 echo "$as_me: failed program was:" >&5
26088 sed 's/^/| /' conftest.$ac_ext >&5
26090 ac_cv_member_struct_utmpx_ut_exit_e_exit=no
26092 rm -f conftest.$ac_objext conftest.$ac_ext
26094 rm -f conftest.$ac_objext conftest.$ac_ext
26096 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_exit" >&5
26097 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_exit" >&6
26098 if test $ac_cv_member_struct_utmpx_ut_exit_e_exit = yes; then
26100 cat >>confdefs.h <<_ACEOF
26101 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_EXIT 1
26107 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_exit" >&5
26108 echo $ECHO_N "checking for struct utmp.ut_exit.e_exit... $ECHO_C" >&6
26109 if test "${ac_cv_member_struct_utmp_ut_exit_e_exit+set}" = set; then
26110 echo $ECHO_N "(cached) $ECHO_C" >&6
26112 cat >conftest.$ac_ext <<_ACEOF
26115 cat confdefs.h >>conftest.$ac_ext
26116 cat >>conftest.$ac_ext <<_ACEOF
26117 /* end confdefs.h. */
26123 static struct utmp ac_aggr;
26124 if (ac_aggr.ut_exit.e_exit)
26130 rm -f conftest.$ac_objext
26131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26132 (eval $ac_compile) 2>&5
26134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26135 (exit $ac_status); } &&
26136 { ac_try='test -s conftest.$ac_objext'
26137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26138 (eval $ac_try) 2>&5
26140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26141 (exit $ac_status); }; }; then
26142 ac_cv_member_struct_utmp_ut_exit_e_exit=yes
26144 echo "$as_me: failed program was:" >&5
26145 sed 's/^/| /' conftest.$ac_ext >&5
26147 cat >conftest.$ac_ext <<_ACEOF
26150 cat confdefs.h >>conftest.$ac_ext
26151 cat >>conftest.$ac_ext <<_ACEOF
26152 /* end confdefs.h. */
26158 static struct utmp ac_aggr;
26159 if (sizeof ac_aggr.ut_exit.e_exit)
26165 rm -f conftest.$ac_objext
26166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26167 (eval $ac_compile) 2>&5
26169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170 (exit $ac_status); } &&
26171 { ac_try='test -s conftest.$ac_objext'
26172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26173 (eval $ac_try) 2>&5
26175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176 (exit $ac_status); }; }; then
26177 ac_cv_member_struct_utmp_ut_exit_e_exit=yes
26179 echo "$as_me: failed program was:" >&5
26180 sed 's/^/| /' conftest.$ac_ext >&5
26182 ac_cv_member_struct_utmp_ut_exit_e_exit=no
26184 rm -f conftest.$ac_objext conftest.$ac_ext
26186 rm -f conftest.$ac_objext conftest.$ac_ext
26188 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_exit" >&5
26189 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_exit" >&6
26190 if test $ac_cv_member_struct_utmp_ut_exit_e_exit = yes; then
26192 cat >>confdefs.h <<_ACEOF
26193 #define HAVE_STRUCT_UTMP_UT_EXIT_E_EXIT 1
26200 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_termination" >&5
26201 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_termination... $ECHO_C" >&6
26202 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_termination+set}" = set; then
26203 echo $ECHO_N "(cached) $ECHO_C" >&6
26205 cat >conftest.$ac_ext <<_ACEOF
26208 cat confdefs.h >>conftest.$ac_ext
26209 cat >>conftest.$ac_ext <<_ACEOF
26210 /* end confdefs.h. */
26216 static struct utmpx ac_aggr;
26217 if (ac_aggr.ut_exit.ut_termination)
26223 rm -f conftest.$ac_objext
26224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26225 (eval $ac_compile) 2>&5
26227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228 (exit $ac_status); } &&
26229 { ac_try='test -s conftest.$ac_objext'
26230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26231 (eval $ac_try) 2>&5
26233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26234 (exit $ac_status); }; }; then
26235 ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
26237 echo "$as_me: failed program was:" >&5
26238 sed 's/^/| /' conftest.$ac_ext >&5
26240 cat >conftest.$ac_ext <<_ACEOF
26243 cat confdefs.h >>conftest.$ac_ext
26244 cat >>conftest.$ac_ext <<_ACEOF
26245 /* end confdefs.h. */
26251 static struct utmpx ac_aggr;
26252 if (sizeof ac_aggr.ut_exit.ut_termination)
26258 rm -f conftest.$ac_objext
26259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26260 (eval $ac_compile) 2>&5
26262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263 (exit $ac_status); } &&
26264 { ac_try='test -s conftest.$ac_objext'
26265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26266 (eval $ac_try) 2>&5
26268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269 (exit $ac_status); }; }; then
26270 ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
26272 echo "$as_me: failed program was:" >&5
26273 sed 's/^/| /' conftest.$ac_ext >&5
26275 ac_cv_member_struct_utmpx_ut_exit_ut_termination=no
26277 rm -f conftest.$ac_objext conftest.$ac_ext
26279 rm -f conftest.$ac_objext conftest.$ac_ext
26281 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&5
26282 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&6
26283 if test $ac_cv_member_struct_utmpx_ut_exit_ut_termination = yes; then
26285 cat >>confdefs.h <<_ACEOF
26286 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_TERMINATION 1
26292 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_termination" >&5
26293 echo $ECHO_N "checking for struct utmp.ut_exit.ut_termination... $ECHO_C" >&6
26294 if test "${ac_cv_member_struct_utmp_ut_exit_ut_termination+set}" = set; then
26295 echo $ECHO_N "(cached) $ECHO_C" >&6
26297 cat >conftest.$ac_ext <<_ACEOF
26300 cat confdefs.h >>conftest.$ac_ext
26301 cat >>conftest.$ac_ext <<_ACEOF
26302 /* end confdefs.h. */
26308 static struct utmp ac_aggr;
26309 if (ac_aggr.ut_exit.ut_termination)
26315 rm -f conftest.$ac_objext
26316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26317 (eval $ac_compile) 2>&5
26319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320 (exit $ac_status); } &&
26321 { ac_try='test -s conftest.$ac_objext'
26322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26323 (eval $ac_try) 2>&5
26325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326 (exit $ac_status); }; }; then
26327 ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
26329 echo "$as_me: failed program was:" >&5
26330 sed 's/^/| /' conftest.$ac_ext >&5
26332 cat >conftest.$ac_ext <<_ACEOF
26335 cat confdefs.h >>conftest.$ac_ext
26336 cat >>conftest.$ac_ext <<_ACEOF
26337 /* end confdefs.h. */
26343 static struct utmp ac_aggr;
26344 if (sizeof ac_aggr.ut_exit.ut_termination)
26350 rm -f conftest.$ac_objext
26351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26352 (eval $ac_compile) 2>&5
26354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355 (exit $ac_status); } &&
26356 { ac_try='test -s conftest.$ac_objext'
26357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26358 (eval $ac_try) 2>&5
26360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361 (exit $ac_status); }; }; then
26362 ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
26364 echo "$as_me: failed program was:" >&5
26365 sed 's/^/| /' conftest.$ac_ext >&5
26367 ac_cv_member_struct_utmp_ut_exit_ut_termination=no
26369 rm -f conftest.$ac_objext conftest.$ac_ext
26371 rm -f conftest.$ac_objext conftest.$ac_ext
26373 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_termination" >&5
26374 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_termination" >&6
26375 if test $ac_cv_member_struct_utmp_ut_exit_ut_termination = yes; then
26377 cat >>confdefs.h <<_ACEOF
26378 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_TERMINATION 1
26384 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_termination" >&5
26385 echo $ECHO_N "checking for struct utmpx.ut_exit.e_termination... $ECHO_C" >&6
26386 if test "${ac_cv_member_struct_utmpx_ut_exit_e_termination+set}" = set; then
26387 echo $ECHO_N "(cached) $ECHO_C" >&6
26389 cat >conftest.$ac_ext <<_ACEOF
26392 cat confdefs.h >>conftest.$ac_ext
26393 cat >>conftest.$ac_ext <<_ACEOF
26394 /* end confdefs.h. */
26400 static struct utmpx ac_aggr;
26401 if (ac_aggr.ut_exit.e_termination)
26407 rm -f conftest.$ac_objext
26408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26409 (eval $ac_compile) 2>&5
26411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26412 (exit $ac_status); } &&
26413 { ac_try='test -s conftest.$ac_objext'
26414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26415 (eval $ac_try) 2>&5
26417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418 (exit $ac_status); }; }; then
26419 ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
26421 echo "$as_me: failed program was:" >&5
26422 sed 's/^/| /' conftest.$ac_ext >&5
26424 cat >conftest.$ac_ext <<_ACEOF
26427 cat confdefs.h >>conftest.$ac_ext
26428 cat >>conftest.$ac_ext <<_ACEOF
26429 /* end confdefs.h. */
26435 static struct utmpx ac_aggr;
26436 if (sizeof ac_aggr.ut_exit.e_termination)
26442 rm -f conftest.$ac_objext
26443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26444 (eval $ac_compile) 2>&5
26446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447 (exit $ac_status); } &&
26448 { ac_try='test -s conftest.$ac_objext'
26449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26450 (eval $ac_try) 2>&5
26452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26453 (exit $ac_status); }; }; then
26454 ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
26456 echo "$as_me: failed program was:" >&5
26457 sed 's/^/| /' conftest.$ac_ext >&5
26459 ac_cv_member_struct_utmpx_ut_exit_e_termination=no
26461 rm -f conftest.$ac_objext conftest.$ac_ext
26463 rm -f conftest.$ac_objext conftest.$ac_ext
26465 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_termination" >&5
26466 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_termination" >&6
26467 if test $ac_cv_member_struct_utmpx_ut_exit_e_termination = yes; then
26469 cat >>confdefs.h <<_ACEOF
26470 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
26476 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_termination" >&5
26477 echo $ECHO_N "checking for struct utmp.ut_exit.e_termination... $ECHO_C" >&6
26478 if test "${ac_cv_member_struct_utmp_ut_exit_e_termination+set}" = set; then
26479 echo $ECHO_N "(cached) $ECHO_C" >&6
26481 cat >conftest.$ac_ext <<_ACEOF
26484 cat confdefs.h >>conftest.$ac_ext
26485 cat >>conftest.$ac_ext <<_ACEOF
26486 /* end confdefs.h. */
26492 static struct utmp ac_aggr;
26493 if (ac_aggr.ut_exit.e_termination)
26499 rm -f conftest.$ac_objext
26500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26501 (eval $ac_compile) 2>&5
26503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504 (exit $ac_status); } &&
26505 { ac_try='test -s conftest.$ac_objext'
26506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26507 (eval $ac_try) 2>&5
26509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510 (exit $ac_status); }; }; then
26511 ac_cv_member_struct_utmp_ut_exit_e_termination=yes
26513 echo "$as_me: failed program was:" >&5
26514 sed 's/^/| /' conftest.$ac_ext >&5
26516 cat >conftest.$ac_ext <<_ACEOF
26519 cat confdefs.h >>conftest.$ac_ext
26520 cat >>conftest.$ac_ext <<_ACEOF
26521 /* end confdefs.h. */
26527 static struct utmp ac_aggr;
26528 if (sizeof ac_aggr.ut_exit.e_termination)
26534 rm -f conftest.$ac_objext
26535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26536 (eval $ac_compile) 2>&5
26538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539 (exit $ac_status); } &&
26540 { ac_try='test -s conftest.$ac_objext'
26541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26542 (eval $ac_try) 2>&5
26544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26545 (exit $ac_status); }; }; then
26546 ac_cv_member_struct_utmp_ut_exit_e_termination=yes
26548 echo "$as_me: failed program was:" >&5
26549 sed 's/^/| /' conftest.$ac_ext >&5
26551 ac_cv_member_struct_utmp_ut_exit_e_termination=no
26553 rm -f conftest.$ac_objext conftest.$ac_ext
26555 rm -f conftest.$ac_objext conftest.$ac_ext
26557 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_termination" >&5
26558 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_termination" >&6
26559 if test $ac_cv_member_struct_utmp_ut_exit_e_termination = yes; then
26561 cat >>confdefs.h <<_ACEOF
26562 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
26569 LIBOBJS="$LIBOBJS readutmp.$ac_objext"
26582 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
26583 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
26584 if test "${gl_cv_c_restrict+set}" = set; then
26585 echo $ECHO_N "(cached) $ECHO_C" >&6
26587 gl_cv_c_restrict=no
26588 # Try the official restrict keyword, then gcc's __restrict, and
26589 # the less common variants.
26590 for ac_kw in restrict __restrict __restrict__ _Restrict; do
26591 cat >conftest.$ac_ext <<_ACEOF
26594 cat confdefs.h >>conftest.$ac_ext
26595 cat >>conftest.$ac_ext <<_ACEOF
26596 /* end confdefs.h. */
26599 rm -f conftest.$ac_objext
26600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26601 (eval $ac_compile) 2>&5
26603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26604 (exit $ac_status); } &&
26605 { ac_try='test -s conftest.$ac_objext'
26606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26607 (eval $ac_try) 2>&5
26609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26610 (exit $ac_status); }; }; then
26611 gl_cv_c_restrict=$ac_kw; break
26613 echo "$as_me: failed program was:" >&5
26614 sed 's/^/| /' conftest.$ac_ext >&5
26617 rm -f conftest.$ac_objext conftest.$ac_ext
26621 echo "$as_me:$LINENO: result: $gl_cv_c_restrict" >&5
26622 echo "${ECHO_T}$gl_cv_c_restrict" >&6
26623 case $gl_cv_c_restrict in
26626 cat >>confdefs.h <<\_ACEOF
26630 *) cat >>confdefs.h <<_ACEOF
26631 #define restrict $gl_cv_c_restrict
26639 # Assume we'll default to using the included regex.c.
26640 ac_use_included_regex=yes
26642 # However, if the system regex support is good enough that it passes the
26643 # the following run test, then default to *not* using the included regex.c.
26644 # If cross compiling, assume the test would fail and use the included
26645 # regex.c. The first failing regular expression is from `Spencer ere
26646 # test #75' in grep-2.3.
26647 echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
26648 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
26649 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
26650 echo $ECHO_N "(cached) $ECHO_C" >&6
26653 if test "$cross_compiling" = yes; then
26654 jm_cv_func_working_re_compile_pattern=no
26656 cat >conftest.$ac_ext <<_ACEOF
26659 cat confdefs.h >>conftest.$ac_ext
26660 cat >>conftest.$ac_ext <<_ACEOF
26661 /* end confdefs.h. */
26663 #include <string.h>
26668 static struct re_pattern_buffer regex;
26670 struct re_registers regs;
26671 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
26672 memset (®ex, 0, sizeof (regex));
26673 s = re_compile_pattern ("a[[:]:]]b\n", 9, ®ex);
26674 /* This should fail with _Invalid character class name_ error. */
26678 /* This should succeed, but doesn't for e.g. glibc-2.1.3. */
26679 memset (®ex, 0, sizeof (regex));
26680 s = re_compile_pattern ("{1", 2, ®ex);
26685 /* The following example is derived from a problem report
26686 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
26687 memset (®ex, 0, sizeof (regex));
26688 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
26692 /* This should match, but doesn't for e.g. glibc-2.2.1. */
26693 if (re_match (®ex, "an", 2, 0, ®s) != 2)
26696 memset (®ex, 0, sizeof (regex));
26697 s = re_compile_pattern ("x", 1, ®ex);
26701 /* The version of regex.c in e.g. GNU libc-2.2.93 didn't
26702 work with a negative RANGE argument. */
26703 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
26710 rm -f conftest$ac_exeext
26711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26712 (eval $ac_link) 2>&5
26714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26717 (eval $ac_try) 2>&5
26719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26720 (exit $ac_status); }; }; then
26721 jm_cv_func_working_re_compile_pattern=yes
26723 echo "$as_me: program exited with status $ac_status" >&5
26724 echo "$as_me: failed program was:" >&5
26725 sed 's/^/| /' conftest.$ac_ext >&5
26727 ( exit $ac_status )
26728 jm_cv_func_working_re_compile_pattern=no
26730 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26733 echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
26734 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
26735 if test $jm_cv_func_working_re_compile_pattern = yes; then
26736 ac_use_included_regex=no
26739 test -n "lib/regex.c" || { { echo "$as_me:$LINENO: error: missing argument" >&5
26740 echo "$as_me: error: missing argument" >&2;}
26741 { (exit 1); exit 1; }; }
26745 # Check whether --with-included-regex or --without-included-regex was given.
26746 if test "${with_included_regex+set}" = set; then
26747 withval="$with_included_regex"
26748 jm_with_regex=$withval
26750 jm_with_regex=$ac_use_included_regex
26752 if test "$jm_with_regex" = yes; then
26753 LIBOBJS="$LIBOBJS regex.$ac_objext"
26788 for ac_func in btowc
26790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26791 echo "$as_me:$LINENO: checking for $ac_func" >&5
26792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26793 if eval "test \"\${$as_ac_var+set}\" = set"; then
26794 echo $ECHO_N "(cached) $ECHO_C" >&6
26796 cat >conftest.$ac_ext <<_ACEOF
26799 cat confdefs.h >>conftest.$ac_ext
26800 cat >>conftest.$ac_ext <<_ACEOF
26801 /* end confdefs.h. */
26802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26804 #define $ac_func innocuous_$ac_func
26806 /* System header to define __stub macros and hopefully few prototypes,
26807 which can conflict with char $ac_func (); below.
26808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26809 <limits.h> exists even on freestanding compilers. */
26812 # include <limits.h>
26814 # include <assert.h>
26819 /* Override any gcc2 internal prototype to avoid an error. */
26824 /* We use char because int might match the return type of a gcc2
26825 builtin and then its argument prototype would still apply. */
26827 /* The GNU C library defines this for functions which it implements
26828 to always fail with ENOSYS. Some functions are actually named
26829 something starting with __ and the normal name is an alias. */
26830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26833 char (*f) () = $ac_func;
26842 return f != $ac_func;
26847 rm -f conftest.$ac_objext conftest$ac_exeext
26848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26849 (eval $ac_link) 2>&5
26851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26852 (exit $ac_status); } &&
26853 { ac_try='test -s conftest$ac_exeext'
26854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26855 (eval $ac_try) 2>&5
26857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858 (exit $ac_status); }; }; then
26859 eval "$as_ac_var=yes"
26861 echo "$as_me: failed program was:" >&5
26862 sed 's/^/| /' conftest.$ac_ext >&5
26864 eval "$as_ac_var=no"
26866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26870 if test `eval echo '${'$as_ac_var'}'` = yes; then
26871 cat >>confdefs.h <<_ACEOF
26872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26919 for ac_func in pathconf
26921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26922 echo "$as_me:$LINENO: checking for $ac_func" >&5
26923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26924 if eval "test \"\${$as_ac_var+set}\" = set"; then
26925 echo $ECHO_N "(cached) $ECHO_C" >&6
26927 cat >conftest.$ac_ext <<_ACEOF
26930 cat confdefs.h >>conftest.$ac_ext
26931 cat >>conftest.$ac_ext <<_ACEOF
26932 /* end confdefs.h. */
26933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26935 #define $ac_func innocuous_$ac_func
26937 /* System header to define __stub macros and hopefully few prototypes,
26938 which can conflict with char $ac_func (); below.
26939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26940 <limits.h> exists even on freestanding compilers. */
26943 # include <limits.h>
26945 # include <assert.h>
26950 /* Override any gcc2 internal prototype to avoid an error. */
26955 /* We use char because int might match the return type of a gcc2
26956 builtin and then its argument prototype would still apply. */
26958 /* The GNU C library defines this for functions which it implements
26959 to always fail with ENOSYS. Some functions are actually named
26960 something starting with __ and the normal name is an alias. */
26961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26964 char (*f) () = $ac_func;
26973 return f != $ac_func;
26978 rm -f conftest.$ac_objext conftest$ac_exeext
26979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26980 (eval $ac_link) 2>&5
26982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26983 (exit $ac_status); } &&
26984 { ac_try='test -s conftest$ac_exeext'
26985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26986 (eval $ac_try) 2>&5
26988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989 (exit $ac_status); }; }; then
26990 eval "$as_ac_var=yes"
26992 echo "$as_me: failed program was:" >&5
26993 sed 's/^/| /' conftest.$ac_ext >&5
26995 eval "$as_ac_var=no"
26997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27001 if test `eval echo '${'$as_ac_var'}'` = yes; then
27002 cat >>confdefs.h <<_ACEOF
27003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27028 for ac_func in fchdir
27030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27031 echo "$as_me:$LINENO: checking for $ac_func" >&5
27032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27033 if eval "test \"\${$as_ac_var+set}\" = set"; then
27034 echo $ECHO_N "(cached) $ECHO_C" >&6
27036 cat >conftest.$ac_ext <<_ACEOF
27039 cat confdefs.h >>conftest.$ac_ext
27040 cat >>conftest.$ac_ext <<_ACEOF
27041 /* end confdefs.h. */
27042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27044 #define $ac_func innocuous_$ac_func
27046 /* System header to define __stub macros and hopefully few prototypes,
27047 which can conflict with char $ac_func (); below.
27048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27049 <limits.h> exists even on freestanding compilers. */
27052 # include <limits.h>
27054 # include <assert.h>
27059 /* Override any gcc2 internal prototype to avoid an error. */
27064 /* We use char because int might match the return type of a gcc2
27065 builtin and then its argument prototype would still apply. */
27067 /* The GNU C library defines this for functions which it implements
27068 to always fail with ENOSYS. Some functions are actually named
27069 something starting with __ and the normal name is an alias. */
27070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27073 char (*f) () = $ac_func;
27082 return f != $ac_func;
27087 rm -f conftest.$ac_objext conftest$ac_exeext
27088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27089 (eval $ac_link) 2>&5
27091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092 (exit $ac_status); } &&
27093 { ac_try='test -s conftest$ac_exeext'
27094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27095 (eval $ac_try) 2>&5
27097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27098 (exit $ac_status); }; }; then
27099 eval "$as_ac_var=yes"
27101 echo "$as_me: failed program was:" >&5
27102 sed 's/^/| /' conftest.$ac_ext >&5
27104 eval "$as_ac_var=no"
27106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27109 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27110 if test `eval echo '${'$as_ac_var'}'` = yes; then
27111 cat >>confdefs.h <<_ACEOF
27112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27120 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
27121 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
27123 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
27124 # programs in the package would end up linked with that potentially-shared
27125 # library, inducing unnecessary run-time overhead.
27126 fetish_saved_libs=$LIBS
27128 echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
27129 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
27130 if test "${ac_cv_search_clock_gettime+set}" = set; then
27131 echo $ECHO_N "(cached) $ECHO_C" >&6
27134 ac_func_search_save_LIBS=$LIBS
27135 ac_cv_search_clock_gettime=no
27136 cat >conftest.$ac_ext <<_ACEOF
27139 cat confdefs.h >>conftest.$ac_ext
27140 cat >>conftest.$ac_ext <<_ACEOF
27141 /* end confdefs.h. */
27143 /* Override any gcc2 internal prototype to avoid an error. */
27147 /* We use char because int might match the return type of a gcc2
27148 builtin and then its argument prototype would still apply. */
27149 char clock_gettime ();
27158 rm -f conftest.$ac_objext conftest$ac_exeext
27159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27160 (eval $ac_link) 2>&5
27162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27163 (exit $ac_status); } &&
27164 { ac_try='test -s conftest$ac_exeext'
27165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27166 (eval $ac_try) 2>&5
27168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169 (exit $ac_status); }; }; then
27170 ac_cv_search_clock_gettime='none required'
27172 echo "$as_me: failed program was:" >&5
27173 sed 's/^/| /' conftest.$ac_ext >&5
27176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27177 if test "$ac_cv_search_clock_gettime" = no; then
27178 for ac_lib in rt posix4; do
27179 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27180 cat >conftest.$ac_ext <<_ACEOF
27183 cat confdefs.h >>conftest.$ac_ext
27184 cat >>conftest.$ac_ext <<_ACEOF
27185 /* end confdefs.h. */
27187 /* Override any gcc2 internal prototype to avoid an error. */
27191 /* We use char because int might match the return type of a gcc2
27192 builtin and then its argument prototype would still apply. */
27193 char clock_gettime ();
27202 rm -f conftest.$ac_objext conftest$ac_exeext
27203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27204 (eval $ac_link) 2>&5
27206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27207 (exit $ac_status); } &&
27208 { ac_try='test -s conftest$ac_exeext'
27209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27210 (eval $ac_try) 2>&5
27212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213 (exit $ac_status); }; }; then
27214 ac_cv_search_clock_gettime="-l$ac_lib"; break
27216 echo "$as_me: failed program was:" >&5
27217 sed 's/^/| /' conftest.$ac_ext >&5
27220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27223 LIBS=$ac_func_search_save_LIBS
27226 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
27227 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
27229 if test "$ac_cv_search_clock_gettime" = no; then :
27232 if test "$ac_cv_search_clock_gettime" = 'none required'; then :
27235 LIBS="$ac_cv_search_clock_gettime $LIBS"
27236 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
27243 for ac_func in clock_gettime clock_settime
27245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27246 echo "$as_me:$LINENO: checking for $ac_func" >&5
27247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27248 if eval "test \"\${$as_ac_var+set}\" = set"; then
27249 echo $ECHO_N "(cached) $ECHO_C" >&6
27251 cat >conftest.$ac_ext <<_ACEOF
27254 cat confdefs.h >>conftest.$ac_ext
27255 cat >>conftest.$ac_ext <<_ACEOF
27256 /* end confdefs.h. */
27257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27259 #define $ac_func innocuous_$ac_func
27261 /* System header to define __stub macros and hopefully few prototypes,
27262 which can conflict with char $ac_func (); below.
27263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27264 <limits.h> exists even on freestanding compilers. */
27267 # include <limits.h>
27269 # include <assert.h>
27274 /* Override any gcc2 internal prototype to avoid an error. */
27279 /* We use char because int might match the return type of a gcc2
27280 builtin and then its argument prototype would still apply. */
27282 /* The GNU C library defines this for functions which it implements
27283 to always fail with ENOSYS. Some functions are actually named
27284 something starting with __ and the normal name is an alias. */
27285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27288 char (*f) () = $ac_func;
27297 return f != $ac_func;
27302 rm -f conftest.$ac_objext conftest$ac_exeext
27303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27304 (eval $ac_link) 2>&5
27306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307 (exit $ac_status); } &&
27308 { ac_try='test -s conftest$ac_exeext'
27309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27310 (eval $ac_try) 2>&5
27312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313 (exit $ac_status); }; }; then
27314 eval "$as_ac_var=yes"
27316 echo "$as_me: failed program was:" >&5
27317 sed 's/^/| /' conftest.$ac_ext >&5
27319 eval "$as_ac_var=no"
27321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27325 if test `eval echo '${'$as_ac_var'}'` = yes; then
27326 cat >>confdefs.h <<_ACEOF
27327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27333 LIBS=$fetish_saved_libs
27336 # Need clock_settime.
27367 for ac_func in strcasecmp
27369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27370 echo "$as_me:$LINENO: checking for $ac_func" >&5
27371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27372 if eval "test \"\${$as_ac_var+set}\" = set"; then
27373 echo $ECHO_N "(cached) $ECHO_C" >&6
27375 cat >conftest.$ac_ext <<_ACEOF
27378 cat confdefs.h >>conftest.$ac_ext
27379 cat >>conftest.$ac_ext <<_ACEOF
27380 /* end confdefs.h. */
27381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27383 #define $ac_func innocuous_$ac_func
27385 /* System header to define __stub macros and hopefully few prototypes,
27386 which can conflict with char $ac_func (); below.
27387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27388 <limits.h> exists even on freestanding compilers. */
27391 # include <limits.h>
27393 # include <assert.h>
27398 /* Override any gcc2 internal prototype to avoid an error. */
27403 /* We use char because int might match the return type of a gcc2
27404 builtin and then its argument prototype would still apply. */
27406 /* The GNU C library defines this for functions which it implements
27407 to always fail with ENOSYS. Some functions are actually named
27408 something starting with __ and the normal name is an alias. */
27409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27412 char (*f) () = $ac_func;
27421 return f != $ac_func;
27426 rm -f conftest.$ac_objext conftest$ac_exeext
27427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27428 (eval $ac_link) 2>&5
27430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27431 (exit $ac_status); } &&
27432 { ac_try='test -s conftest$ac_exeext'
27433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27434 (eval $ac_try) 2>&5
27436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27437 (exit $ac_status); }; }; then
27438 eval "$as_ac_var=yes"
27440 echo "$as_me: failed program was:" >&5
27441 sed 's/^/| /' conftest.$ac_ext >&5
27443 eval "$as_ac_var=no"
27445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27449 if test `eval echo '${'$as_ac_var'}'` = yes; then
27450 cat >>confdefs.h <<_ACEOF
27451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27455 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27460 if test $ac_cv_func_strcasecmp = no; then
27468 for ac_func in strncasecmp
27470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27471 echo "$as_me:$LINENO: checking for $ac_func" >&5
27472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27473 if eval "test \"\${$as_ac_var+set}\" = set"; then
27474 echo $ECHO_N "(cached) $ECHO_C" >&6
27476 cat >conftest.$ac_ext <<_ACEOF
27479 cat confdefs.h >>conftest.$ac_ext
27480 cat >>conftest.$ac_ext <<_ACEOF
27481 /* end confdefs.h. */
27482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27484 #define $ac_func innocuous_$ac_func
27486 /* System header to define __stub macros and hopefully few prototypes,
27487 which can conflict with char $ac_func (); below.
27488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27489 <limits.h> exists even on freestanding compilers. */
27492 # include <limits.h>
27494 # include <assert.h>
27499 /* Override any gcc2 internal prototype to avoid an error. */
27504 /* We use char because int might match the return type of a gcc2
27505 builtin and then its argument prototype would still apply. */
27507 /* The GNU C library defines this for functions which it implements
27508 to always fail with ENOSYS. Some functions are actually named
27509 something starting with __ and the normal name is an alias. */
27510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27513 char (*f) () = $ac_func;
27522 return f != $ac_func;
27527 rm -f conftest.$ac_objext conftest$ac_exeext
27528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27529 (eval $ac_link) 2>&5
27531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27532 (exit $ac_status); } &&
27533 { ac_try='test -s conftest$ac_exeext'
27534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27535 (eval $ac_try) 2>&5
27537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27538 (exit $ac_status); }; }; then
27539 eval "$as_ac_var=yes"
27541 echo "$as_me: failed program was:" >&5
27542 sed 's/^/| /' conftest.$ac_ext >&5
27544 eval "$as_ac_var=no"
27546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27549 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27550 if test `eval echo '${'$as_ac_var'}'` = yes; then
27551 cat >>confdefs.h <<_ACEOF
27552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27556 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27561 if test $ac_cv_func_strncasecmp = no; then
27588 echo "$as_me:$LINENO: checking for struct timespec" >&5
27589 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
27590 if test "${fu_cv_sys_struct_timespec+set}" = set; then
27591 echo $ECHO_N "(cached) $ECHO_C" >&6
27594 cat >conftest.$ac_ext <<_ACEOF
27597 cat confdefs.h >>conftest.$ac_ext
27598 cat >>conftest.$ac_ext <<_ACEOF
27599 /* end confdefs.h. */
27601 # if TIME_WITH_SYS_TIME
27602 # include <sys/time.h>
27605 # if HAVE_SYS_TIME_H
27606 # include <sys/time.h>
27615 static struct timespec x; x.tv_sec = x.tv_nsec;
27620 rm -f conftest.$ac_objext
27621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27622 (eval $ac_compile) 2>&5
27624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625 (exit $ac_status); } &&
27626 { ac_try='test -s conftest.$ac_objext'
27627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27628 (eval $ac_try) 2>&5
27630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631 (exit $ac_status); }; }; then
27632 fu_cv_sys_struct_timespec=yes
27634 echo "$as_me: failed program was:" >&5
27635 sed 's/^/| /' conftest.$ac_ext >&5
27637 fu_cv_sys_struct_timespec=no
27639 rm -f conftest.$ac_objext conftest.$ac_ext
27642 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
27643 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
27645 if test $fu_cv_sys_struct_timespec = yes; then
27647 cat >>confdefs.h <<\_ACEOF
27648 #define HAVE_STRUCT_TIMESPEC 1
27653 echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
27654 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
27655 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
27656 echo $ECHO_N "(cached) $ECHO_C" >&6
27658 ac_save_CPPFLAGS="$CPPFLAGS"
27659 ac_cv_struct_st_mtim_nsec=no
27660 # tv_nsec -- the usual case
27661 # _tv_nsec -- Solaris 2.6, if
27662 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
27663 # && !defined __EXTENSIONS__)
27664 # st__tim.tv_nsec -- UnixWare 2.1.2
27665 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
27666 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
27668 cat >conftest.$ac_ext <<_ACEOF
27671 cat confdefs.h >>conftest.$ac_ext
27672 cat >>conftest.$ac_ext <<_ACEOF
27673 /* end confdefs.h. */
27674 #include <sys/types.h>
27675 #include <sys/stat.h>
27679 struct stat s; s.st_mtim.ST_MTIM_NSEC;
27684 rm -f conftest.$ac_objext
27685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27686 (eval $ac_compile) 2>&5
27688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689 (exit $ac_status); } &&
27690 { ac_try='test -s conftest.$ac_objext'
27691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27692 (eval $ac_try) 2>&5
27694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695 (exit $ac_status); }; }; then
27696 ac_cv_struct_st_mtim_nsec=$ac_val; break
27698 echo "$as_me: failed program was:" >&5
27699 sed 's/^/| /' conftest.$ac_ext >&5
27702 rm -f conftest.$ac_objext conftest.$ac_ext
27704 CPPFLAGS="$ac_save_CPPFLAGS"
27706 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
27707 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
27709 if test $ac_cv_struct_st_mtim_nsec != no; then
27711 cat >>confdefs.h <<_ACEOF
27712 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
27721 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
27722 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
27723 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
27724 echo $ECHO_N "(cached) $ECHO_C" >&6
27726 cat >conftest.$ac_ext <<_ACEOF
27729 cat confdefs.h >>conftest.$ac_ext
27730 cat >>conftest.$ac_ext <<_ACEOF
27731 /* end confdefs.h. */
27738 char *p = (char *) nanosleep;
27745 rm -f conftest.$ac_objext
27746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27747 (eval $ac_compile) 2>&5
27749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750 (exit $ac_status); } &&
27751 { ac_try='test -s conftest.$ac_objext'
27752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27753 (eval $ac_try) 2>&5
27755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27756 (exit $ac_status); }; }; then
27757 ac_cv_have_decl_nanosleep=yes
27759 echo "$as_me: failed program was:" >&5
27760 sed 's/^/| /' conftest.$ac_ext >&5
27762 ac_cv_have_decl_nanosleep=no
27764 rm -f conftest.$ac_objext conftest.$ac_ext
27766 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
27767 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
27768 if test $ac_cv_have_decl_nanosleep = yes; then
27770 cat >>confdefs.h <<_ACEOF
27771 #define HAVE_DECL_NANOSLEEP 1
27776 cat >>confdefs.h <<_ACEOF
27777 #define HAVE_DECL_NANOSLEEP 0
27826 echo "$as_me:$LINENO: checking determine whether the utimes function works" >&5
27827 echo $ECHO_N "checking determine whether the utimes function works... $ECHO_C" >&6
27828 if test "${gl_cv_func_working_utimes+set}" = set; then
27829 echo $ECHO_N "(cached) $ECHO_C" >&6
27832 if test "$cross_compiling" = yes; then
27833 gl_cv_func_working_utimes=no
27835 cat >conftest.$ac_ext <<_ACEOF
27838 cat confdefs.h >>conftest.$ac_ext
27839 cat >>conftest.$ac_ext <<_ACEOF
27840 /* end confdefs.h. */
27842 #include <sys/types.h>
27843 #include <sys/stat.h>
27844 #include <sys/time.h>
27845 #include <unistd.h>
27846 #include <stdlib.h>
27853 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
27855 char const *file = "conftest.utimes";
27858 exit ( ! ((f = fopen (file, "w"))
27860 && utimes (file, timeval) == 0
27861 && lstat (file, &sbuf) == 0
27862 && sbuf.st_atime == timeval[0].tv_sec
27863 && sbuf.st_mtime == timeval[1].tv_sec) );
27867 rm -f conftest$ac_exeext
27868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27869 (eval $ac_link) 2>&5
27871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27874 (eval $ac_try) 2>&5
27876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877 (exit $ac_status); }; }; then
27878 gl_cv_func_working_utimes=yes
27880 echo "$as_me: program exited with status $ac_status" >&5
27881 echo "$as_me: failed program was:" >&5
27882 sed 's/^/| /' conftest.$ac_ext >&5
27884 ( exit $ac_status )
27885 gl_cv_func_working_utimes=no
27887 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27890 echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
27891 echo "${ECHO_T}$gl_cv_func_working_utimes" >&6
27893 if test $gl_cv_func_working_utimes = yes; then
27895 cat >>confdefs.h <<\_ACEOF
27896 #define HAVE_WORKING_UTIMES 1
27908 for ac_header in stdlib.h
27910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27912 echo "$as_me:$LINENO: checking for $ac_header" >&5
27913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27915 echo $ECHO_N "(cached) $ECHO_C" >&6
27917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27920 # Is the header compilable?
27921 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27923 cat >conftest.$ac_ext <<_ACEOF
27926 cat confdefs.h >>conftest.$ac_ext
27927 cat >>conftest.$ac_ext <<_ACEOF
27928 /* end confdefs.h. */
27929 $ac_includes_default
27930 #include <$ac_header>
27932 rm -f conftest.$ac_objext
27933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27934 (eval $ac_compile) 2>&5
27936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27937 (exit $ac_status); } &&
27938 { ac_try='test -s conftest.$ac_objext'
27939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27940 (eval $ac_try) 2>&5
27942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27943 (exit $ac_status); }; }; then
27944 ac_header_compiler=yes
27946 echo "$as_me: failed program was:" >&5
27947 sed 's/^/| /' conftest.$ac_ext >&5
27949 ac_header_compiler=no
27951 rm -f conftest.$ac_objext conftest.$ac_ext
27952 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27953 echo "${ECHO_T}$ac_header_compiler" >&6
27955 # Is the header present?
27956 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27958 cat >conftest.$ac_ext <<_ACEOF
27961 cat confdefs.h >>conftest.$ac_ext
27962 cat >>conftest.$ac_ext <<_ACEOF
27963 /* end confdefs.h. */
27964 #include <$ac_header>
27966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27969 grep -v '^ *+' conftest.er1 >conftest.err
27971 cat conftest.err >&5
27972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973 (exit $ac_status); } >/dev/null; then
27974 if test -s conftest.err; then
27975 ac_cpp_err=$ac_c_preproc_warn_flag
27982 if test -z "$ac_cpp_err"; then
27983 ac_header_preproc=yes
27985 echo "$as_me: failed program was:" >&5
27986 sed 's/^/| /' conftest.$ac_ext >&5
27988 ac_header_preproc=no
27990 rm -f conftest.err conftest.$ac_ext
27991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27992 echo "${ECHO_T}$ac_header_preproc" >&6
27994 # So? What about this header?
27995 case $ac_header_compiler:$ac_header_preproc in
27997 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28000 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28001 ac_header_preproc=yes
28004 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28006 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28007 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28008 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28009 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28010 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28011 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28014 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28015 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28018 ## ------------------------------------ ##
28019 ## Report this to bug-coreutils@gnu.org ##
28020 ## ------------------------------------ ##
28023 sed "s/^/$as_me: WARNING: /" >&2
28026 echo "$as_me:$LINENO: checking for $ac_header" >&5
28027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28029 echo $ECHO_N "(cached) $ECHO_C" >&6
28031 eval "$as_ac_Header=\$ac_header_preproc"
28033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28038 cat >>confdefs.h <<_ACEOF
28039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28046 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
28047 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
28048 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
28049 echo $ECHO_N "(cached) $ECHO_C" >&6
28051 if test "$cross_compiling" = yes; then
28052 ac_cv_func_malloc_0_nonnull=no
28054 cat >conftest.$ac_ext <<_ACEOF
28057 cat confdefs.h >>conftest.$ac_ext
28058 cat >>conftest.$ac_ext <<_ACEOF
28059 /* end confdefs.h. */
28060 #if STDC_HEADERS || HAVE_STDLIB_H
28061 # include <stdlib.h>
28069 exit (malloc (0) ? 0 : 1);
28074 rm -f conftest$ac_exeext
28075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28076 (eval $ac_link) 2>&5
28078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28081 (eval $ac_try) 2>&5
28083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28084 (exit $ac_status); }; }; then
28085 ac_cv_func_malloc_0_nonnull=yes
28087 echo "$as_me: program exited with status $ac_status" >&5
28088 echo "$as_me: failed program was:" >&5
28089 sed 's/^/| /' conftest.$ac_ext >&5
28091 ( exit $ac_status )
28092 ac_cv_func_malloc_0_nonnull=no
28094 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28097 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
28098 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
28099 if test $ac_cv_func_malloc_0_nonnull = yes; then
28101 cat >>confdefs.h <<\_ACEOF
28102 #define HAVE_MALLOC 1
28106 cat >>confdefs.h <<\_ACEOF
28107 #define HAVE_MALLOC 0
28110 LIBOBJS="$LIBOBJS malloc.$ac_objext"
28112 cat >>confdefs.h <<\_ACEOF
28113 #define malloc rpl_malloc
28122 if test X"$ac_cv_func_malloc_0_nonnull" = Xno || test X"$ac_cv_func_malloc_works" = Xno; then
28129 for ac_header in stdlib.h
28131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28133 echo "$as_me:$LINENO: checking for $ac_header" >&5
28134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28136 echo $ECHO_N "(cached) $ECHO_C" >&6
28138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28141 # Is the header compilable?
28142 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28144 cat >conftest.$ac_ext <<_ACEOF
28147 cat confdefs.h >>conftest.$ac_ext
28148 cat >>conftest.$ac_ext <<_ACEOF
28149 /* end confdefs.h. */
28150 $ac_includes_default
28151 #include <$ac_header>
28153 rm -f conftest.$ac_objext
28154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28155 (eval $ac_compile) 2>&5
28157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28158 (exit $ac_status); } &&
28159 { ac_try='test -s conftest.$ac_objext'
28160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28161 (eval $ac_try) 2>&5
28163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164 (exit $ac_status); }; }; then
28165 ac_header_compiler=yes
28167 echo "$as_me: failed program was:" >&5
28168 sed 's/^/| /' conftest.$ac_ext >&5
28170 ac_header_compiler=no
28172 rm -f conftest.$ac_objext conftest.$ac_ext
28173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28174 echo "${ECHO_T}$ac_header_compiler" >&6
28176 # Is the header present?
28177 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28179 cat >conftest.$ac_ext <<_ACEOF
28182 cat confdefs.h >>conftest.$ac_ext
28183 cat >>conftest.$ac_ext <<_ACEOF
28184 /* end confdefs.h. */
28185 #include <$ac_header>
28187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28190 grep -v '^ *+' conftest.er1 >conftest.err
28192 cat conftest.err >&5
28193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28194 (exit $ac_status); } >/dev/null; then
28195 if test -s conftest.err; then
28196 ac_cpp_err=$ac_c_preproc_warn_flag
28203 if test -z "$ac_cpp_err"; then
28204 ac_header_preproc=yes
28206 echo "$as_me: failed program was:" >&5
28207 sed 's/^/| /' conftest.$ac_ext >&5
28209 ac_header_preproc=no
28211 rm -f conftest.err conftest.$ac_ext
28212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28213 echo "${ECHO_T}$ac_header_preproc" >&6
28215 # So? What about this header?
28216 case $ac_header_compiler:$ac_header_preproc in
28218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28222 ac_header_preproc=yes
28225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28228 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28229 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28231 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28232 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28235 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28239 ## ------------------------------------ ##
28240 ## Report this to bug-coreutils@gnu.org ##
28241 ## ------------------------------------ ##
28244 sed "s/^/$as_me: WARNING: /" >&2
28247 echo "$as_me:$LINENO: checking for $ac_header" >&5
28248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28250 echo $ECHO_N "(cached) $ECHO_C" >&6
28252 eval "$as_ac_Header=\$ac_header_preproc"
28254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28259 cat >>confdefs.h <<_ACEOF
28260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28267 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
28268 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
28269 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
28270 echo $ECHO_N "(cached) $ECHO_C" >&6
28272 if test "$cross_compiling" = yes; then
28273 ac_cv_func_realloc_0_nonnull=no
28275 cat >conftest.$ac_ext <<_ACEOF
28278 cat confdefs.h >>conftest.$ac_ext
28279 cat >>conftest.$ac_ext <<_ACEOF
28280 /* end confdefs.h. */
28281 #if STDC_HEADERS || HAVE_STDLIB_H
28282 # include <stdlib.h>
28290 exit (realloc (0, 0) ? 0 : 1);
28295 rm -f conftest$ac_exeext
28296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28297 (eval $ac_link) 2>&5
28299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28302 (eval $ac_try) 2>&5
28304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28305 (exit $ac_status); }; }; then
28306 ac_cv_func_realloc_0_nonnull=yes
28308 echo "$as_me: program exited with status $ac_status" >&5
28309 echo "$as_me: failed program was:" >&5
28310 sed 's/^/| /' conftest.$ac_ext >&5
28312 ( exit $ac_status )
28313 ac_cv_func_realloc_0_nonnull=no
28315 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28318 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
28319 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
28320 if test $ac_cv_func_realloc_0_nonnull = yes; then
28322 cat >>confdefs.h <<\_ACEOF
28323 #define HAVE_REALLOC 1
28327 cat >>confdefs.h <<\_ACEOF
28328 #define HAVE_REALLOC 0
28331 LIBOBJS="$LIBOBJS realloc.$ac_objext"
28333 cat >>confdefs.h <<\_ACEOF
28334 #define realloc rpl_realloc
28343 if test X"$ac_cv_func_realloc_0_nonnull" = Xno || test X"$ac_cv_func_realloc_works" = Xno; then
28378 for ac_func in getcwd
28380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28381 echo "$as_me:$LINENO: checking for $ac_func" >&5
28382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28383 if eval "test \"\${$as_ac_var+set}\" = set"; then
28384 echo $ECHO_N "(cached) $ECHO_C" >&6
28386 cat >conftest.$ac_ext <<_ACEOF
28389 cat confdefs.h >>conftest.$ac_ext
28390 cat >>conftest.$ac_ext <<_ACEOF
28391 /* end confdefs.h. */
28392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28394 #define $ac_func innocuous_$ac_func
28396 /* System header to define __stub macros and hopefully few prototypes,
28397 which can conflict with char $ac_func (); below.
28398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28399 <limits.h> exists even on freestanding compilers. */
28402 # include <limits.h>
28404 # include <assert.h>
28409 /* Override any gcc2 internal prototype to avoid an error. */
28414 /* We use char because int might match the return type of a gcc2
28415 builtin and then its argument prototype would still apply. */
28417 /* The GNU C library defines this for functions which it implements
28418 to always fail with ENOSYS. Some functions are actually named
28419 something starting with __ and the normal name is an alias. */
28420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28423 char (*f) () = $ac_func;
28432 return f != $ac_func;
28437 rm -f conftest.$ac_objext conftest$ac_exeext
28438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28439 (eval $ac_link) 2>&5
28441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28442 (exit $ac_status); } &&
28443 { ac_try='test -s conftest$ac_exeext'
28444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28445 (eval $ac_try) 2>&5
28447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448 (exit $ac_status); }; }; then
28449 eval "$as_ac_var=yes"
28451 echo "$as_me: failed program was:" >&5
28452 sed 's/^/| /' conftest.$ac_ext >&5
28454 eval "$as_ac_var=no"
28456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28459 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28460 if test `eval echo '${'$as_ac_var'}'` = yes; then
28461 cat >>confdefs.h <<_ACEOF
28462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28479 echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
28480 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6
28481 if test "${ac_cv_func_getcwd_null+set}" = set; then
28482 echo $ECHO_N "(cached) $ECHO_C" >&6
28485 if test "$cross_compiling" = yes; then
28486 ac_cv_func_getcwd_null=no
28488 cat >conftest.$ac_ext <<_ACEOF
28491 cat confdefs.h >>conftest.$ac_ext
28492 cat >>conftest.$ac_ext <<_ACEOF
28493 /* end confdefs.h. */
28495 # ifdef HAVE_STDLIB_H
28496 # include <stdlib.h>
28498 # ifdef HAVE_UNISTD_H
28499 # include <unistd.h>
28507 if (chdir ("/") != 0)
28511 char *f = getcwd (NULL, 0);
28512 exit (! (f && f[0] == '/' && !f[1]));
28516 rm -f conftest$ac_exeext
28517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28518 (eval $ac_link) 2>&5
28520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28523 (eval $ac_try) 2>&5
28525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28526 (exit $ac_status); }; }; then
28527 ac_cv_func_getcwd_null=yes
28529 echo "$as_me: program exited with status $ac_status" >&5
28530 echo "$as_me: failed program was:" >&5
28531 sed 's/^/| /' conftest.$ac_ext >&5
28533 ( exit $ac_status )
28534 ac_cv_func_getcwd_null=no
28536 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28539 echo "$as_me:$LINENO: result: $ac_cv_func_getcwd_null" >&5
28540 echo "${ECHO_T}$ac_cv_func_getcwd_null" >&6
28541 if test $ac_cv_func_getcwd_null = yes; then
28543 cat >>confdefs.h <<\_ACEOF
28544 #define HAVE_GETCWD_NULL 1
28596 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
28597 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
28598 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
28599 echo $ECHO_N "(cached) $ECHO_C" >&6
28601 cat >conftest.$ac_ext <<_ACEOF
28604 cat confdefs.h >>conftest.$ac_ext
28605 cat >>conftest.$ac_ext <<_ACEOF
28606 /* end confdefs.h. */
28607 $ac_includes_default
28612 char *p = (char *) strtoimax;
28619 rm -f conftest.$ac_objext
28620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28621 (eval $ac_compile) 2>&5
28623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624 (exit $ac_status); } &&
28625 { ac_try='test -s conftest.$ac_objext'
28626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28627 (eval $ac_try) 2>&5
28629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630 (exit $ac_status); }; }; then
28631 ac_cv_have_decl_strtoimax=yes
28633 echo "$as_me: failed program was:" >&5
28634 sed 's/^/| /' conftest.$ac_ext >&5
28636 ac_cv_have_decl_strtoimax=no
28638 rm -f conftest.$ac_objext conftest.$ac_ext
28640 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
28641 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
28642 if test $ac_cv_have_decl_strtoimax = yes; then
28644 cat >>confdefs.h <<_ACEOF
28645 #define HAVE_DECL_STRTOIMAX 1
28650 cat >>confdefs.h <<_ACEOF
28651 #define HAVE_DECL_STRTOIMAX 0
28656 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
28657 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
28658 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
28659 echo $ECHO_N "(cached) $ECHO_C" >&6
28661 cat >conftest.$ac_ext <<_ACEOF
28664 cat confdefs.h >>conftest.$ac_ext
28665 cat >>conftest.$ac_ext <<_ACEOF
28666 /* end confdefs.h. */
28667 $ac_includes_default
28672 char *p = (char *) strtoumax;
28679 rm -f conftest.$ac_objext
28680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28681 (eval $ac_compile) 2>&5
28683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684 (exit $ac_status); } &&
28685 { ac_try='test -s conftest.$ac_objext'
28686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28687 (eval $ac_try) 2>&5
28689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28690 (exit $ac_status); }; }; then
28691 ac_cv_have_decl_strtoumax=yes
28693 echo "$as_me: failed program was:" >&5
28694 sed 's/^/| /' conftest.$ac_ext >&5
28696 ac_cv_have_decl_strtoumax=no
28698 rm -f conftest.$ac_objext conftest.$ac_ext
28700 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
28701 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
28702 if test $ac_cv_have_decl_strtoumax = yes; then
28704 cat >>confdefs.h <<_ACEOF
28705 #define HAVE_DECL_STRTOUMAX 1
28710 cat >>confdefs.h <<_ACEOF
28711 #define HAVE_DECL_STRTOUMAX 0
28736 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
28737 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
28738 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
28739 echo $ECHO_N "(cached) $ECHO_C" >&6
28741 cat >conftest.$ac_ext <<_ACEOF
28744 cat confdefs.h >>conftest.$ac_ext
28745 cat >>conftest.$ac_ext <<_ACEOF
28746 /* end confdefs.h. */
28747 $ac_includes_default
28751 #ifndef clearerr_unlocked
28752 char *p = (char *) clearerr_unlocked;
28759 rm -f conftest.$ac_objext
28760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28761 (eval $ac_compile) 2>&5
28763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28764 (exit $ac_status); } &&
28765 { ac_try='test -s conftest.$ac_objext'
28766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28767 (eval $ac_try) 2>&5
28769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770 (exit $ac_status); }; }; then
28771 ac_cv_have_decl_clearerr_unlocked=yes
28773 echo "$as_me: failed program was:" >&5
28774 sed 's/^/| /' conftest.$ac_ext >&5
28776 ac_cv_have_decl_clearerr_unlocked=no
28778 rm -f conftest.$ac_objext conftest.$ac_ext
28780 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
28781 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
28782 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
28784 cat >>confdefs.h <<_ACEOF
28785 #define HAVE_DECL_CLEARERR_UNLOCKED 1
28790 cat >>confdefs.h <<_ACEOF
28791 #define HAVE_DECL_CLEARERR_UNLOCKED 0
28800 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
28801 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
28802 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
28803 echo $ECHO_N "(cached) $ECHO_C" >&6
28805 cat >conftest.$ac_ext <<_ACEOF
28808 cat confdefs.h >>conftest.$ac_ext
28809 cat >>conftest.$ac_ext <<_ACEOF
28810 /* end confdefs.h. */
28811 $ac_includes_default
28815 #ifndef feof_unlocked
28816 char *p = (char *) feof_unlocked;
28823 rm -f conftest.$ac_objext
28824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28825 (eval $ac_compile) 2>&5
28827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828 (exit $ac_status); } &&
28829 { ac_try='test -s conftest.$ac_objext'
28830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28831 (eval $ac_try) 2>&5
28833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834 (exit $ac_status); }; }; then
28835 ac_cv_have_decl_feof_unlocked=yes
28837 echo "$as_me: failed program was:" >&5
28838 sed 's/^/| /' conftest.$ac_ext >&5
28840 ac_cv_have_decl_feof_unlocked=no
28842 rm -f conftest.$ac_objext conftest.$ac_ext
28844 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
28845 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
28846 if test $ac_cv_have_decl_feof_unlocked = yes; then
28848 cat >>confdefs.h <<_ACEOF
28849 #define HAVE_DECL_FEOF_UNLOCKED 1
28854 cat >>confdefs.h <<_ACEOF
28855 #define HAVE_DECL_FEOF_UNLOCKED 0
28864 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
28865 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
28866 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
28867 echo $ECHO_N "(cached) $ECHO_C" >&6
28869 cat >conftest.$ac_ext <<_ACEOF
28872 cat confdefs.h >>conftest.$ac_ext
28873 cat >>conftest.$ac_ext <<_ACEOF
28874 /* end confdefs.h. */
28875 $ac_includes_default
28879 #ifndef ferror_unlocked
28880 char *p = (char *) ferror_unlocked;
28887 rm -f conftest.$ac_objext
28888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28889 (eval $ac_compile) 2>&5
28891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28892 (exit $ac_status); } &&
28893 { ac_try='test -s conftest.$ac_objext'
28894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28895 (eval $ac_try) 2>&5
28897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898 (exit $ac_status); }; }; then
28899 ac_cv_have_decl_ferror_unlocked=yes
28901 echo "$as_me: failed program was:" >&5
28902 sed 's/^/| /' conftest.$ac_ext >&5
28904 ac_cv_have_decl_ferror_unlocked=no
28906 rm -f conftest.$ac_objext conftest.$ac_ext
28908 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
28909 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
28910 if test $ac_cv_have_decl_ferror_unlocked = yes; then
28912 cat >>confdefs.h <<_ACEOF
28913 #define HAVE_DECL_FERROR_UNLOCKED 1
28918 cat >>confdefs.h <<_ACEOF
28919 #define HAVE_DECL_FERROR_UNLOCKED 0
28928 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
28929 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
28930 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
28931 echo $ECHO_N "(cached) $ECHO_C" >&6
28933 cat >conftest.$ac_ext <<_ACEOF
28936 cat confdefs.h >>conftest.$ac_ext
28937 cat >>conftest.$ac_ext <<_ACEOF
28938 /* end confdefs.h. */
28939 $ac_includes_default
28943 #ifndef fflush_unlocked
28944 char *p = (char *) fflush_unlocked;
28951 rm -f conftest.$ac_objext
28952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28953 (eval $ac_compile) 2>&5
28955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956 (exit $ac_status); } &&
28957 { ac_try='test -s conftest.$ac_objext'
28958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28959 (eval $ac_try) 2>&5
28961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962 (exit $ac_status); }; }; then
28963 ac_cv_have_decl_fflush_unlocked=yes
28965 echo "$as_me: failed program was:" >&5
28966 sed 's/^/| /' conftest.$ac_ext >&5
28968 ac_cv_have_decl_fflush_unlocked=no
28970 rm -f conftest.$ac_objext conftest.$ac_ext
28972 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
28973 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
28974 if test $ac_cv_have_decl_fflush_unlocked = yes; then
28976 cat >>confdefs.h <<_ACEOF
28977 #define HAVE_DECL_FFLUSH_UNLOCKED 1
28982 cat >>confdefs.h <<_ACEOF
28983 #define HAVE_DECL_FFLUSH_UNLOCKED 0
28992 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
28993 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
28994 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
28995 echo $ECHO_N "(cached) $ECHO_C" >&6
28997 cat >conftest.$ac_ext <<_ACEOF
29000 cat confdefs.h >>conftest.$ac_ext
29001 cat >>conftest.$ac_ext <<_ACEOF
29002 /* end confdefs.h. */
29003 $ac_includes_default
29007 #ifndef fgets_unlocked
29008 char *p = (char *) fgets_unlocked;
29015 rm -f conftest.$ac_objext
29016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29017 (eval $ac_compile) 2>&5
29019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29020 (exit $ac_status); } &&
29021 { ac_try='test -s conftest.$ac_objext'
29022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29023 (eval $ac_try) 2>&5
29025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29026 (exit $ac_status); }; }; then
29027 ac_cv_have_decl_fgets_unlocked=yes
29029 echo "$as_me: failed program was:" >&5
29030 sed 's/^/| /' conftest.$ac_ext >&5
29032 ac_cv_have_decl_fgets_unlocked=no
29034 rm -f conftest.$ac_objext conftest.$ac_ext
29036 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
29037 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
29038 if test $ac_cv_have_decl_fgets_unlocked = yes; then
29040 cat >>confdefs.h <<_ACEOF
29041 #define HAVE_DECL_FGETS_UNLOCKED 1
29046 cat >>confdefs.h <<_ACEOF
29047 #define HAVE_DECL_FGETS_UNLOCKED 0
29056 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
29057 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
29058 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
29059 echo $ECHO_N "(cached) $ECHO_C" >&6
29061 cat >conftest.$ac_ext <<_ACEOF
29064 cat confdefs.h >>conftest.$ac_ext
29065 cat >>conftest.$ac_ext <<_ACEOF
29066 /* end confdefs.h. */
29067 $ac_includes_default
29071 #ifndef fputc_unlocked
29072 char *p = (char *) fputc_unlocked;
29079 rm -f conftest.$ac_objext
29080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29081 (eval $ac_compile) 2>&5
29083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29084 (exit $ac_status); } &&
29085 { ac_try='test -s conftest.$ac_objext'
29086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29087 (eval $ac_try) 2>&5
29089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090 (exit $ac_status); }; }; then
29091 ac_cv_have_decl_fputc_unlocked=yes
29093 echo "$as_me: failed program was:" >&5
29094 sed 's/^/| /' conftest.$ac_ext >&5
29096 ac_cv_have_decl_fputc_unlocked=no
29098 rm -f conftest.$ac_objext conftest.$ac_ext
29100 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
29101 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
29102 if test $ac_cv_have_decl_fputc_unlocked = yes; then
29104 cat >>confdefs.h <<_ACEOF
29105 #define HAVE_DECL_FPUTC_UNLOCKED 1
29110 cat >>confdefs.h <<_ACEOF
29111 #define HAVE_DECL_FPUTC_UNLOCKED 0
29120 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
29121 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
29122 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
29123 echo $ECHO_N "(cached) $ECHO_C" >&6
29125 cat >conftest.$ac_ext <<_ACEOF
29128 cat confdefs.h >>conftest.$ac_ext
29129 cat >>conftest.$ac_ext <<_ACEOF
29130 /* end confdefs.h. */
29131 $ac_includes_default
29135 #ifndef fputs_unlocked
29136 char *p = (char *) fputs_unlocked;
29143 rm -f conftest.$ac_objext
29144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29145 (eval $ac_compile) 2>&5
29147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148 (exit $ac_status); } &&
29149 { ac_try='test -s conftest.$ac_objext'
29150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29151 (eval $ac_try) 2>&5
29153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154 (exit $ac_status); }; }; then
29155 ac_cv_have_decl_fputs_unlocked=yes
29157 echo "$as_me: failed program was:" >&5
29158 sed 's/^/| /' conftest.$ac_ext >&5
29160 ac_cv_have_decl_fputs_unlocked=no
29162 rm -f conftest.$ac_objext conftest.$ac_ext
29164 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
29165 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
29166 if test $ac_cv_have_decl_fputs_unlocked = yes; then
29168 cat >>confdefs.h <<_ACEOF
29169 #define HAVE_DECL_FPUTS_UNLOCKED 1
29174 cat >>confdefs.h <<_ACEOF
29175 #define HAVE_DECL_FPUTS_UNLOCKED 0
29184 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
29185 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
29186 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
29187 echo $ECHO_N "(cached) $ECHO_C" >&6
29189 cat >conftest.$ac_ext <<_ACEOF
29192 cat confdefs.h >>conftest.$ac_ext
29193 cat >>conftest.$ac_ext <<_ACEOF
29194 /* end confdefs.h. */
29195 $ac_includes_default
29199 #ifndef fread_unlocked
29200 char *p = (char *) fread_unlocked;
29207 rm -f conftest.$ac_objext
29208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29209 (eval $ac_compile) 2>&5
29211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29212 (exit $ac_status); } &&
29213 { ac_try='test -s conftest.$ac_objext'
29214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29215 (eval $ac_try) 2>&5
29217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29218 (exit $ac_status); }; }; then
29219 ac_cv_have_decl_fread_unlocked=yes
29221 echo "$as_me: failed program was:" >&5
29222 sed 's/^/| /' conftest.$ac_ext >&5
29224 ac_cv_have_decl_fread_unlocked=no
29226 rm -f conftest.$ac_objext conftest.$ac_ext
29228 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
29229 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
29230 if test $ac_cv_have_decl_fread_unlocked = yes; then
29232 cat >>confdefs.h <<_ACEOF
29233 #define HAVE_DECL_FREAD_UNLOCKED 1
29238 cat >>confdefs.h <<_ACEOF
29239 #define HAVE_DECL_FREAD_UNLOCKED 0
29248 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
29249 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
29250 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
29251 echo $ECHO_N "(cached) $ECHO_C" >&6
29253 cat >conftest.$ac_ext <<_ACEOF
29256 cat confdefs.h >>conftest.$ac_ext
29257 cat >>conftest.$ac_ext <<_ACEOF
29258 /* end confdefs.h. */
29259 $ac_includes_default
29263 #ifndef fwrite_unlocked
29264 char *p = (char *) fwrite_unlocked;
29271 rm -f conftest.$ac_objext
29272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29273 (eval $ac_compile) 2>&5
29275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276 (exit $ac_status); } &&
29277 { ac_try='test -s conftest.$ac_objext'
29278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29279 (eval $ac_try) 2>&5
29281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282 (exit $ac_status); }; }; then
29283 ac_cv_have_decl_fwrite_unlocked=yes
29285 echo "$as_me: failed program was:" >&5
29286 sed 's/^/| /' conftest.$ac_ext >&5
29288 ac_cv_have_decl_fwrite_unlocked=no
29290 rm -f conftest.$ac_objext conftest.$ac_ext
29292 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
29293 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
29294 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
29296 cat >>confdefs.h <<_ACEOF
29297 #define HAVE_DECL_FWRITE_UNLOCKED 1
29302 cat >>confdefs.h <<_ACEOF
29303 #define HAVE_DECL_FWRITE_UNLOCKED 0
29312 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
29313 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
29314 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
29315 echo $ECHO_N "(cached) $ECHO_C" >&6
29317 cat >conftest.$ac_ext <<_ACEOF
29320 cat confdefs.h >>conftest.$ac_ext
29321 cat >>conftest.$ac_ext <<_ACEOF
29322 /* end confdefs.h. */
29323 $ac_includes_default
29327 #ifndef getc_unlocked
29328 char *p = (char *) getc_unlocked;
29335 rm -f conftest.$ac_objext
29336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29337 (eval $ac_compile) 2>&5
29339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340 (exit $ac_status); } &&
29341 { ac_try='test -s conftest.$ac_objext'
29342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29343 (eval $ac_try) 2>&5
29345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29346 (exit $ac_status); }; }; then
29347 ac_cv_have_decl_getc_unlocked=yes
29349 echo "$as_me: failed program was:" >&5
29350 sed 's/^/| /' conftest.$ac_ext >&5
29352 ac_cv_have_decl_getc_unlocked=no
29354 rm -f conftest.$ac_objext conftest.$ac_ext
29356 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
29357 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
29358 if test $ac_cv_have_decl_getc_unlocked = yes; then
29360 cat >>confdefs.h <<_ACEOF
29361 #define HAVE_DECL_GETC_UNLOCKED 1
29366 cat >>confdefs.h <<_ACEOF
29367 #define HAVE_DECL_GETC_UNLOCKED 0
29376 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
29377 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
29378 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
29379 echo $ECHO_N "(cached) $ECHO_C" >&6
29381 cat >conftest.$ac_ext <<_ACEOF
29384 cat confdefs.h >>conftest.$ac_ext
29385 cat >>conftest.$ac_ext <<_ACEOF
29386 /* end confdefs.h. */
29387 $ac_includes_default
29391 #ifndef getchar_unlocked
29392 char *p = (char *) getchar_unlocked;
29399 rm -f conftest.$ac_objext
29400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29401 (eval $ac_compile) 2>&5
29403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29404 (exit $ac_status); } &&
29405 { ac_try='test -s conftest.$ac_objext'
29406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29407 (eval $ac_try) 2>&5
29409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29410 (exit $ac_status); }; }; then
29411 ac_cv_have_decl_getchar_unlocked=yes
29413 echo "$as_me: failed program was:" >&5
29414 sed 's/^/| /' conftest.$ac_ext >&5
29416 ac_cv_have_decl_getchar_unlocked=no
29418 rm -f conftest.$ac_objext conftest.$ac_ext
29420 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
29421 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
29422 if test $ac_cv_have_decl_getchar_unlocked = yes; then
29424 cat >>confdefs.h <<_ACEOF
29425 #define HAVE_DECL_GETCHAR_UNLOCKED 1
29430 cat >>confdefs.h <<_ACEOF
29431 #define HAVE_DECL_GETCHAR_UNLOCKED 0
29440 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
29441 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
29442 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
29443 echo $ECHO_N "(cached) $ECHO_C" >&6
29445 cat >conftest.$ac_ext <<_ACEOF
29448 cat confdefs.h >>conftest.$ac_ext
29449 cat >>conftest.$ac_ext <<_ACEOF
29450 /* end confdefs.h. */
29451 $ac_includes_default
29455 #ifndef putc_unlocked
29456 char *p = (char *) putc_unlocked;
29463 rm -f conftest.$ac_objext
29464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29465 (eval $ac_compile) 2>&5
29467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468 (exit $ac_status); } &&
29469 { ac_try='test -s conftest.$ac_objext'
29470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29471 (eval $ac_try) 2>&5
29473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474 (exit $ac_status); }; }; then
29475 ac_cv_have_decl_putc_unlocked=yes
29477 echo "$as_me: failed program was:" >&5
29478 sed 's/^/| /' conftest.$ac_ext >&5
29480 ac_cv_have_decl_putc_unlocked=no
29482 rm -f conftest.$ac_objext conftest.$ac_ext
29484 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
29485 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
29486 if test $ac_cv_have_decl_putc_unlocked = yes; then
29488 cat >>confdefs.h <<_ACEOF
29489 #define HAVE_DECL_PUTC_UNLOCKED 1
29494 cat >>confdefs.h <<_ACEOF
29495 #define HAVE_DECL_PUTC_UNLOCKED 0
29504 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
29505 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
29506 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
29507 echo $ECHO_N "(cached) $ECHO_C" >&6
29509 cat >conftest.$ac_ext <<_ACEOF
29512 cat confdefs.h >>conftest.$ac_ext
29513 cat >>conftest.$ac_ext <<_ACEOF
29514 /* end confdefs.h. */
29515 $ac_includes_default
29519 #ifndef putchar_unlocked
29520 char *p = (char *) putchar_unlocked;
29527 rm -f conftest.$ac_objext
29528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29529 (eval $ac_compile) 2>&5
29531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29532 (exit $ac_status); } &&
29533 { ac_try='test -s conftest.$ac_objext'
29534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29535 (eval $ac_try) 2>&5
29537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538 (exit $ac_status); }; }; then
29539 ac_cv_have_decl_putchar_unlocked=yes
29541 echo "$as_me: failed program was:" >&5
29542 sed 's/^/| /' conftest.$ac_ext >&5
29544 ac_cv_have_decl_putchar_unlocked=no
29546 rm -f conftest.$ac_objext conftest.$ac_ext
29548 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
29549 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
29550 if test $ac_cv_have_decl_putchar_unlocked = yes; then
29552 cat >>confdefs.h <<_ACEOF
29553 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
29558 cat >>confdefs.h <<_ACEOF
29559 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
29616 echo "$as_me:$LINENO: checking whether tzset clobbers localtime buffer" >&5
29617 echo $ECHO_N "checking whether tzset clobbers localtime buffer... $ECHO_C" >&6
29618 if test "${gl_cv_func_tzset_clobber+set}" = set; then
29619 echo $ECHO_N "(cached) $ECHO_C" >&6
29622 if test "$cross_compiling" = yes; then
29623 gl_cv_func_tzset_clobber=yes
29625 cat >conftest.$ac_ext <<_ACEOF
29628 cat confdefs.h >>conftest.$ac_ext
29629 cat >>conftest.$ac_ext <<_ACEOF
29630 /* end confdefs.h. */
29632 #if TIME_WITH_SYS_TIME
29633 # include <sys/time.h>
29636 # if HAVE_SYS_TIME_H
29637 # include <sys/time.h>
29642 #include <stdlib.h>
29647 time_t t1 = 853958121;
29649 putenv ("TZ=GMT0");
29650 p = localtime (&t1);
29652 putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
29654 exit (p->tm_year != s.tm_year
29655 || p->tm_mon != s.tm_mon
29656 || p->tm_mday != s.tm_mday
29657 || p->tm_hour != s.tm_hour
29658 || p->tm_min != s.tm_min
29659 || p->tm_sec != s.tm_sec);
29663 rm -f conftest$ac_exeext
29664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29665 (eval $ac_link) 2>&5
29667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29670 (eval $ac_try) 2>&5
29672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673 (exit $ac_status); }; }; then
29674 gl_cv_func_tzset_clobber=no
29676 echo "$as_me: program exited with status $ac_status" >&5
29677 echo "$as_me: failed program was:" >&5
29678 sed 's/^/| /' conftest.$ac_ext >&5
29680 ( exit $ac_status )
29681 gl_cv_func_tzset_clobber=yes
29683 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29686 echo "$as_me:$LINENO: result: $gl_cv_func_tzset_clobber" >&5
29687 echo "${ECHO_T}$gl_cv_func_tzset_clobber" >&6
29690 cat >>confdefs.h <<\_ACEOF
29691 #define HAVE_RUN_TZSET_TEST 1
29695 if test $gl_cv_func_tzset_clobber = yes; then
29697 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
29699 cat >>confdefs.h <<\_ACEOF
29700 #define gmtime rpl_gmtime
29704 cat >>confdefs.h <<\_ACEOF
29705 #define localtime rpl_localtime
29711 cat >>confdefs.h <<\_ACEOF
29712 #define tzset rpl_tzset
29716 cat >>confdefs.h <<\_ACEOF
29717 #define TZSET_CLOBBERS_LOCALTIME_BUFFER 1
29725 for ac_func in strftime
29727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29728 echo "$as_me:$LINENO: checking for $ac_func" >&5
29729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29730 if eval "test \"\${$as_ac_var+set}\" = set"; then
29731 echo $ECHO_N "(cached) $ECHO_C" >&6
29733 cat >conftest.$ac_ext <<_ACEOF
29736 cat confdefs.h >>conftest.$ac_ext
29737 cat >>conftest.$ac_ext <<_ACEOF
29738 /* end confdefs.h. */
29739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29741 #define $ac_func innocuous_$ac_func
29743 /* System header to define __stub macros and hopefully few prototypes,
29744 which can conflict with char $ac_func (); below.
29745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29746 <limits.h> exists even on freestanding compilers. */
29749 # include <limits.h>
29751 # include <assert.h>
29756 /* Override any gcc2 internal prototype to avoid an error. */
29761 /* We use char because int might match the return type of a gcc2
29762 builtin and then its argument prototype would still apply. */
29764 /* The GNU C library defines this for functions which it implements
29765 to always fail with ENOSYS. Some functions are actually named
29766 something starting with __ and the normal name is an alias. */
29767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29770 char (*f) () = $ac_func;
29779 return f != $ac_func;
29784 rm -f conftest.$ac_objext conftest$ac_exeext
29785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29786 (eval $ac_link) 2>&5
29788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789 (exit $ac_status); } &&
29790 { ac_try='test -s conftest$ac_exeext'
29791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29792 (eval $ac_try) 2>&5
29794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795 (exit $ac_status); }; }; then
29796 eval "$as_ac_var=yes"
29798 echo "$as_me: failed program was:" >&5
29799 sed 's/^/| /' conftest.$ac_ext >&5
29801 eval "$as_ac_var=no"
29803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29807 if test `eval echo '${'$as_ac_var'}'` = yes; then
29808 cat >>confdefs.h <<_ACEOF
29809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29813 # strftime is in -lintl on SCO UNIX.
29814 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
29815 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
29816 if test "${ac_cv_lib_intl_strftime+set}" = set; then
29817 echo $ECHO_N "(cached) $ECHO_C" >&6
29819 ac_check_lib_save_LIBS=$LIBS
29820 LIBS="-lintl $LIBS"
29821 cat >conftest.$ac_ext <<_ACEOF
29824 cat confdefs.h >>conftest.$ac_ext
29825 cat >>conftest.$ac_ext <<_ACEOF
29826 /* end confdefs.h. */
29828 /* Override any gcc2 internal prototype to avoid an error. */
29832 /* We use char because int might match the return type of a gcc2
29833 builtin and then its argument prototype would still apply. */
29843 rm -f conftest.$ac_objext conftest$ac_exeext
29844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29845 (eval $ac_link) 2>&5
29847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29848 (exit $ac_status); } &&
29849 { ac_try='test -s conftest$ac_exeext'
29850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29851 (eval $ac_try) 2>&5
29853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854 (exit $ac_status); }; }; then
29855 ac_cv_lib_intl_strftime=yes
29857 echo "$as_me: failed program was:" >&5
29858 sed 's/^/| /' conftest.$ac_ext >&5
29860 ac_cv_lib_intl_strftime=no
29862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29863 LIBS=$ac_check_lib_save_LIBS
29865 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
29866 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
29867 if test $ac_cv_lib_intl_strftime = yes; then
29868 cat >>confdefs.h <<\_ACEOF
29869 #define HAVE_STRFTIME 1
29872 LIBS="-lintl $LIBS"
29898 for ac_func in tzset memset
29900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29901 echo "$as_me:$LINENO: checking for $ac_func" >&5
29902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29903 if eval "test \"\${$as_ac_var+set}\" = set"; then
29904 echo $ECHO_N "(cached) $ECHO_C" >&6
29906 cat >conftest.$ac_ext <<_ACEOF
29909 cat confdefs.h >>conftest.$ac_ext
29910 cat >>conftest.$ac_ext <<_ACEOF
29911 /* end confdefs.h. */
29912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29914 #define $ac_func innocuous_$ac_func
29916 /* System header to define __stub macros and hopefully few prototypes,
29917 which can conflict with char $ac_func (); below.
29918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29919 <limits.h> exists even on freestanding compilers. */
29922 # include <limits.h>
29924 # include <assert.h>
29929 /* Override any gcc2 internal prototype to avoid an error. */
29934 /* We use char because int might match the return type of a gcc2
29935 builtin and then its argument prototype would still apply. */
29937 /* The GNU C library defines this for functions which it implements
29938 to always fail with ENOSYS. Some functions are actually named
29939 something starting with __ and the normal name is an alias. */
29940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29943 char (*f) () = $ac_func;
29952 return f != $ac_func;
29957 rm -f conftest.$ac_objext conftest$ac_exeext
29958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29959 (eval $ac_link) 2>&5
29961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962 (exit $ac_status); } &&
29963 { ac_try='test -s conftest$ac_exeext'
29964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29965 (eval $ac_try) 2>&5
29967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29968 (exit $ac_status); }; }; then
29969 eval "$as_ac_var=yes"
29971 echo "$as_me: failed program was:" >&5
29972 sed 's/^/| /' conftest.$ac_ext >&5
29974 eval "$as_ac_var=no"
29976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29980 if test `eval echo '${'$as_ac_var'}'` = yes; then
29981 cat >>confdefs.h <<_ACEOF
29982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29989 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
29990 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
29991 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
29992 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
29993 echo $ECHO_N "(cached) $ECHO_C" >&6
29995 cat >conftest.$ac_ext <<_ACEOF
29998 cat confdefs.h >>conftest.$ac_ext
29999 cat >>conftest.$ac_ext <<_ACEOF
30000 /* end confdefs.h. */
30001 #include <sys/types.h>
30002 #include <$ac_cv_struct_tm>
30008 static struct tm ac_aggr;
30009 if (ac_aggr.tm_zone)
30015 rm -f conftest.$ac_objext
30016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30017 (eval $ac_compile) 2>&5
30019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30020 (exit $ac_status); } &&
30021 { ac_try='test -s conftest.$ac_objext'
30022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30023 (eval $ac_try) 2>&5
30025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30026 (exit $ac_status); }; }; then
30027 ac_cv_member_struct_tm_tm_zone=yes
30029 echo "$as_me: failed program was:" >&5
30030 sed 's/^/| /' conftest.$ac_ext >&5
30032 cat >conftest.$ac_ext <<_ACEOF
30035 cat confdefs.h >>conftest.$ac_ext
30036 cat >>conftest.$ac_ext <<_ACEOF
30037 /* end confdefs.h. */
30038 #include <sys/types.h>
30039 #include <$ac_cv_struct_tm>
30045 static struct tm ac_aggr;
30046 if (sizeof ac_aggr.tm_zone)
30052 rm -f conftest.$ac_objext
30053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30054 (eval $ac_compile) 2>&5
30056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30057 (exit $ac_status); } &&
30058 { ac_try='test -s conftest.$ac_objext'
30059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30060 (eval $ac_try) 2>&5
30062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063 (exit $ac_status); }; }; then
30064 ac_cv_member_struct_tm_tm_zone=yes
30066 echo "$as_me: failed program was:" >&5
30067 sed 's/^/| /' conftest.$ac_ext >&5
30069 ac_cv_member_struct_tm_tm_zone=no
30071 rm -f conftest.$ac_objext conftest.$ac_ext
30073 rm -f conftest.$ac_objext conftest.$ac_ext
30075 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
30076 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
30077 if test $ac_cv_member_struct_tm_tm_zone = yes; then
30079 cat >>confdefs.h <<_ACEOF
30080 #define HAVE_STRUCT_TM_TM_ZONE 1
30086 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
30088 cat >>confdefs.h <<\_ACEOF
30089 #define HAVE_TM_ZONE 1
30093 echo "$as_me:$LINENO: checking for tzname" >&5
30094 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
30095 if test "${ac_cv_var_tzname+set}" = set; then
30096 echo $ECHO_N "(cached) $ECHO_C" >&6
30098 cat >conftest.$ac_ext <<_ACEOF
30101 cat confdefs.h >>conftest.$ac_ext
30102 cat >>conftest.$ac_ext <<_ACEOF
30103 /* end confdefs.h. */
30105 #ifndef tzname /* For SGI. */
30106 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
30117 rm -f conftest.$ac_objext conftest$ac_exeext
30118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30119 (eval $ac_link) 2>&5
30121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122 (exit $ac_status); } &&
30123 { ac_try='test -s conftest$ac_exeext'
30124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30125 (eval $ac_try) 2>&5
30127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30128 (exit $ac_status); }; }; then
30129 ac_cv_var_tzname=yes
30131 echo "$as_me: failed program was:" >&5
30132 sed 's/^/| /' conftest.$ac_ext >&5
30134 ac_cv_var_tzname=no
30136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30138 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
30139 echo "${ECHO_T}$ac_cv_var_tzname" >&6
30140 if test $ac_cv_var_tzname = yes; then
30142 cat >>confdefs.h <<\_ACEOF
30143 #define HAVE_TZNAME 1
30152 for ac_func in mblen mbrlen
30154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30155 echo "$as_me:$LINENO: checking for $ac_func" >&5
30156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30157 if eval "test \"\${$as_ac_var+set}\" = set"; then
30158 echo $ECHO_N "(cached) $ECHO_C" >&6
30160 cat >conftest.$ac_ext <<_ACEOF
30163 cat confdefs.h >>conftest.$ac_ext
30164 cat >>conftest.$ac_ext <<_ACEOF
30165 /* end confdefs.h. */
30166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30168 #define $ac_func innocuous_$ac_func
30170 /* System header to define __stub macros and hopefully few prototypes,
30171 which can conflict with char $ac_func (); below.
30172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30173 <limits.h> exists even on freestanding compilers. */
30176 # include <limits.h>
30178 # include <assert.h>
30183 /* Override any gcc2 internal prototype to avoid an error. */
30188 /* We use char because int might match the return type of a gcc2
30189 builtin and then its argument prototype would still apply. */
30191 /* The GNU C library defines this for functions which it implements
30192 to always fail with ENOSYS. Some functions are actually named
30193 something starting with __ and the normal name is an alias. */
30194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30197 char (*f) () = $ac_func;
30206 return f != $ac_func;
30211 rm -f conftest.$ac_objext conftest$ac_exeext
30212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30213 (eval $ac_link) 2>&5
30215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216 (exit $ac_status); } &&
30217 { ac_try='test -s conftest$ac_exeext'
30218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30219 (eval $ac_try) 2>&5
30221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222 (exit $ac_status); }; }; then
30223 eval "$as_ac_var=yes"
30225 echo "$as_me: failed program was:" >&5
30226 sed 's/^/| /' conftest.$ac_ext >&5
30228 eval "$as_ac_var=no"
30230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30233 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30234 if test `eval echo '${'$as_ac_var'}'` = yes; then
30235 cat >>confdefs.h <<_ACEOF
30236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30242 echo "$as_me:$LINENO: checking for mbstate_t" >&5
30243 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
30244 if test "${ac_cv_type_mbstate_t+set}" = set; then
30245 echo $ECHO_N "(cached) $ECHO_C" >&6
30247 cat >conftest.$ac_ext <<_ACEOF
30250 cat confdefs.h >>conftest.$ac_ext
30251 cat >>conftest.$ac_ext <<_ACEOF
30252 /* end confdefs.h. */
30253 $ac_includes_default
30254 # include <wchar.h>
30258 mbstate_t x; return sizeof x;
30263 rm -f conftest.$ac_objext
30264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30265 (eval $ac_compile) 2>&5
30267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30268 (exit $ac_status); } &&
30269 { ac_try='test -s conftest.$ac_objext'
30270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30271 (eval $ac_try) 2>&5
30273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30274 (exit $ac_status); }; }; then
30275 ac_cv_type_mbstate_t=yes
30277 echo "$as_me: failed program was:" >&5
30278 sed 's/^/| /' conftest.$ac_ext >&5
30280 ac_cv_type_mbstate_t=no
30282 rm -f conftest.$ac_objext conftest.$ac_ext
30284 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
30285 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
30286 if test $ac_cv_type_mbstate_t = yes; then
30288 cat >>confdefs.h <<\_ACEOF
30289 #define HAVE_MBSTATE_T 1
30294 cat >>confdefs.h <<\_ACEOF
30295 #define mbstate_t int
30312 cat >>confdefs.h <<\_ACEOF
30313 #define my_strftime nstrftime
30317 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
30318 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
30319 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
30320 echo $ECHO_N "(cached) $ECHO_C" >&6
30322 rm -f conftest.sym conftest.file
30323 echo >conftest.file
30324 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
30325 if test "$cross_compiling" = yes; then
30326 ac_cv_func_lstat_dereferences_slashed_symlink=no
30328 cat >conftest.$ac_ext <<_ACEOF
30331 cat confdefs.h >>conftest.$ac_ext
30332 cat >>conftest.$ac_ext <<_ACEOF
30333 /* end confdefs.h. */
30334 $ac_includes_default
30339 /* Linux will dereference the symlink and fail.
30340 That is better in the sense that it means we will not
30341 have to compile and use the lstat wrapper. */
30342 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
30347 rm -f conftest$ac_exeext
30348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30349 (eval $ac_link) 2>&5
30351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30354 (eval $ac_try) 2>&5
30356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357 (exit $ac_status); }; }; then
30358 ac_cv_func_lstat_dereferences_slashed_symlink=yes
30360 echo "$as_me: program exited with status $ac_status" >&5
30361 echo "$as_me: failed program was:" >&5
30362 sed 's/^/| /' conftest.$ac_ext >&5
30364 ( exit $ac_status )
30365 ac_cv_func_lstat_dereferences_slashed_symlink=no
30367 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30370 # If the `ln -s' command failed, then we probably don't even
30371 # have an lstat function.
30372 ac_cv_func_lstat_dereferences_slashed_symlink=no
30374 rm -f conftest.sym conftest.file
30377 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
30378 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
30380 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
30382 cat >>confdefs.h <<_ACEOF
30383 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
30387 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
30388 LIBOBJS="$LIBOBJS lstat.$ac_objext"
30392 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
30393 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
30394 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
30395 echo $ECHO_N "(cached) $ECHO_C" >&6
30397 if test "$cross_compiling" = yes; then
30398 ac_cv_func_lstat_empty_string_bug=yes
30400 cat >conftest.$ac_ext <<_ACEOF
30403 cat confdefs.h >>conftest.$ac_ext
30404 cat >>conftest.$ac_ext <<_ACEOF
30405 /* end confdefs.h. */
30406 $ac_includes_default
30411 exit (lstat ("", &sbuf) ? 1 : 0);
30416 rm -f conftest$ac_exeext
30417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30418 (eval $ac_link) 2>&5
30420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30423 (eval $ac_try) 2>&5
30425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30426 (exit $ac_status); }; }; then
30427 ac_cv_func_lstat_empty_string_bug=yes
30429 echo "$as_me: program exited with status $ac_status" >&5
30430 echo "$as_me: failed program was:" >&5
30431 sed 's/^/| /' conftest.$ac_ext >&5
30433 ( exit $ac_status )
30434 ac_cv_func_lstat_empty_string_bug=no
30436 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30439 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
30440 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
30441 if test $ac_cv_func_lstat_empty_string_bug = yes; then
30442 LIBOBJS="$LIBOBJS lstat.$ac_objext"
30444 cat >>confdefs.h <<_ACEOF
30445 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
30450 if test $ac_cv_func_lstat_empty_string_bug = yes; then
30472 if test $ac_cv_func_memcmp_working = no; then
30474 cat >>confdefs.h <<\_ACEOF
30475 #define memcmp rpl_memcmp
30490 nanosleep_save_libs=$LIBS
30492 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
30493 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
30495 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
30496 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
30497 if test "${ac_cv_search_nanosleep+set}" = set; then
30498 echo $ECHO_N "(cached) $ECHO_C" >&6
30501 ac_func_search_save_LIBS=$LIBS
30502 ac_cv_search_nanosleep=no
30503 cat >conftest.$ac_ext <<_ACEOF
30506 cat confdefs.h >>conftest.$ac_ext
30507 cat >>conftest.$ac_ext <<_ACEOF
30508 /* end confdefs.h. */
30510 /* Override any gcc2 internal prototype to avoid an error. */
30514 /* We use char because int might match the return type of a gcc2
30515 builtin and then its argument prototype would still apply. */
30525 rm -f conftest.$ac_objext conftest$ac_exeext
30526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30527 (eval $ac_link) 2>&5
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 (exit $ac_status); } &&
30531 { ac_try='test -s conftest$ac_exeext'
30532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30533 (eval $ac_try) 2>&5
30535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30536 (exit $ac_status); }; }; then
30537 ac_cv_search_nanosleep='none required'
30539 echo "$as_me: failed program was:" >&5
30540 sed 's/^/| /' conftest.$ac_ext >&5
30543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30544 if test "$ac_cv_search_nanosleep" = no; then
30545 for ac_lib in rt posix4; do
30546 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30547 cat >conftest.$ac_ext <<_ACEOF
30550 cat confdefs.h >>conftest.$ac_ext
30551 cat >>conftest.$ac_ext <<_ACEOF
30552 /* end confdefs.h. */
30554 /* Override any gcc2 internal prototype to avoid an error. */
30558 /* We use char because int might match the return type of a gcc2
30559 builtin and then its argument prototype would still apply. */
30569 rm -f conftest.$ac_objext conftest$ac_exeext
30570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30571 (eval $ac_link) 2>&5
30573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30574 (exit $ac_status); } &&
30575 { ac_try='test -s conftest$ac_exeext'
30576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30577 (eval $ac_try) 2>&5
30579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30580 (exit $ac_status); }; }; then
30581 ac_cv_search_nanosleep="-l$ac_lib"; break
30583 echo "$as_me: failed program was:" >&5
30584 sed 's/^/| /' conftest.$ac_ext >&5
30587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30590 LIBS=$ac_func_search_save_LIBS
30593 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
30594 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
30596 if test "$ac_cv_search_nanosleep" = no; then :
30599 if test "$ac_cv_search_nanosleep" = 'none required'; then :
30602 LIBS="$ac_cv_search_nanosleep $LIBS"
30603 LIB_NANOSLEEP=$ac_cv_search_nanosleep
30609 echo "$as_me:$LINENO: checking whether nanosleep works" >&5
30610 echo $ECHO_N "checking whether nanosleep works... $ECHO_C" >&6
30611 if test "${jm_cv_func_nanosleep_works+set}" = set; then
30612 echo $ECHO_N "(cached) $ECHO_C" >&6
30624 if test "$cross_compiling" = yes; then
30625 jm_cv_func_nanosleep_works=no
30627 cat >conftest.$ac_ext <<_ACEOF
30630 cat confdefs.h >>conftest.$ac_ext
30631 cat >>conftest.$ac_ext <<_ACEOF
30632 /* end confdefs.h. */
30634 # if TIME_WITH_SYS_TIME
30635 # include <sys/time.h>
30638 # if HAVE_SYS_TIME_H
30639 # include <sys/time.h>
30648 struct timespec ts_sleep, ts_remaining;
30649 ts_sleep.tv_sec = 0;
30650 ts_sleep.tv_nsec = 1;
30651 exit (nanosleep (&ts_sleep, &ts_remaining) == 0 ? 0 : 1);
30655 rm -f conftest$ac_exeext
30656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30657 (eval $ac_link) 2>&5
30659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30662 (eval $ac_try) 2>&5
30664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30665 (exit $ac_status); }; }; then
30666 jm_cv_func_nanosleep_works=yes
30668 echo "$as_me: program exited with status $ac_status" >&5
30669 echo "$as_me: failed program was:" >&5
30670 sed 's/^/| /' conftest.$ac_ext >&5
30672 ( exit $ac_status )
30673 jm_cv_func_nanosleep_works=no
30675 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30679 echo "$as_me:$LINENO: result: $jm_cv_func_nanosleep_works" >&5
30680 echo "${ECHO_T}$jm_cv_func_nanosleep_works" >&6
30681 if test $jm_cv_func_nanosleep_works = no; then
30682 LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
30684 cat >>confdefs.h <<\_ACEOF
30685 #define nanosleep rpl_nanosleep
30699 LIBS=$nanosleep_save_libs
30701 echo "$as_me:$LINENO: checking for SVID conformant putenv" >&5
30702 echo $ECHO_N "checking for SVID conformant putenv... $ECHO_C" >&6
30703 if test "${jm_cv_func_svid_putenv+set}" = set; then
30704 echo $ECHO_N "(cached) $ECHO_C" >&6
30707 if test "$cross_compiling" = yes; then
30708 jm_cv_func_svid_putenv=no
30710 cat >conftest.$ac_ext <<_ACEOF
30713 cat confdefs.h >>conftest.$ac_ext
30714 cat >>conftest.$ac_ext <<_ACEOF
30715 /* end confdefs.h. */
30720 /* Put it in env. */
30721 if (putenv ("CONFTEST_putenv=val"))
30724 /* Try to remove it. */
30725 if (putenv ("CONFTEST_putenv"))
30728 /* Make sure it was deleted. */
30729 if (getenv ("CONFTEST_putenv") != 0)
30736 rm -f conftest$ac_exeext
30737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30738 (eval $ac_link) 2>&5
30740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30743 (eval $ac_try) 2>&5
30745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30746 (exit $ac_status); }; }; then
30747 jm_cv_func_svid_putenv=yes
30749 echo "$as_me: program exited with status $ac_status" >&5
30750 echo "$as_me: failed program was:" >&5
30751 sed 's/^/| /' conftest.$ac_ext >&5
30753 ( exit $ac_status )
30754 jm_cv_func_svid_putenv=no
30756 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30760 echo "$as_me:$LINENO: result: $jm_cv_func_svid_putenv" >&5
30761 echo "${ECHO_T}$jm_cv_func_svid_putenv" >&6
30762 if test $jm_cv_func_svid_putenv = no; then
30763 LIBOBJS="$LIBOBJS putenv.$ac_objext"
30765 cat >>confdefs.h <<\_ACEOF
30766 #define putenv rpl_putenv
30788 for ac_func in strchr
30790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30791 echo "$as_me:$LINENO: checking for $ac_func" >&5
30792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30793 if eval "test \"\${$as_ac_var+set}\" = set"; then
30794 echo $ECHO_N "(cached) $ECHO_C" >&6
30796 cat >conftest.$ac_ext <<_ACEOF
30799 cat confdefs.h >>conftest.$ac_ext
30800 cat >>conftest.$ac_ext <<_ACEOF
30801 /* end confdefs.h. */
30802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30804 #define $ac_func innocuous_$ac_func
30806 /* System header to define __stub macros and hopefully few prototypes,
30807 which can conflict with char $ac_func (); below.
30808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30809 <limits.h> exists even on freestanding compilers. */
30812 # include <limits.h>
30814 # include <assert.h>
30819 /* Override any gcc2 internal prototype to avoid an error. */
30824 /* We use char because int might match the return type of a gcc2
30825 builtin and then its argument prototype would still apply. */
30827 /* The GNU C library defines this for functions which it implements
30828 to always fail with ENOSYS. Some functions are actually named
30829 something starting with __ and the normal name is an alias. */
30830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30833 char (*f) () = $ac_func;
30842 return f != $ac_func;
30847 rm -f conftest.$ac_objext conftest$ac_exeext
30848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30849 (eval $ac_link) 2>&5
30851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30852 (exit $ac_status); } &&
30853 { ac_try='test -s conftest$ac_exeext'
30854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30855 (eval $ac_try) 2>&5
30857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30858 (exit $ac_status); }; }; then
30859 eval "$as_ac_var=yes"
30861 echo "$as_me: failed program was:" >&5
30862 sed 's/^/| /' conftest.$ac_ext >&5
30864 eval "$as_ac_var=no"
30866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30870 if test `eval echo '${'$as_ac_var'}'` = yes; then
30871 cat >>confdefs.h <<_ACEOF
30872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30882 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
30883 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
30884 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
30885 echo $ECHO_N "(cached) $ECHO_C" >&6
30887 if test "$cross_compiling" = yes; then
30888 ac_cv_func_stat_empty_string_bug=yes
30890 cat >conftest.$ac_ext <<_ACEOF
30893 cat confdefs.h >>conftest.$ac_ext
30894 cat >>conftest.$ac_ext <<_ACEOF
30895 /* end confdefs.h. */
30896 $ac_includes_default
30901 exit (stat ("", &sbuf) ? 1 : 0);
30906 rm -f conftest$ac_exeext
30907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30908 (eval $ac_link) 2>&5
30910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30913 (eval $ac_try) 2>&5
30915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30916 (exit $ac_status); }; }; then
30917 ac_cv_func_stat_empty_string_bug=yes
30919 echo "$as_me: program exited with status $ac_status" >&5
30920 echo "$as_me: failed program was:" >&5
30921 sed 's/^/| /' conftest.$ac_ext >&5
30923 ( exit $ac_status )
30924 ac_cv_func_stat_empty_string_bug=no
30926 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30929 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
30930 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
30931 if test $ac_cv_func_stat_empty_string_bug = yes; then
30932 LIBOBJS="$LIBOBJS stat.$ac_objext"
30934 cat >>confdefs.h <<_ACEOF
30935 #define HAVE_STAT_EMPTY_STRING_BUG 1
30940 if test $ac_cv_func_stat_empty_string_bug = yes; then
30946 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
30947 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
30948 if test "${ac_cv_func_utime_null+set}" = set; then
30949 echo $ECHO_N "(cached) $ECHO_C" >&6
30951 rm -f conftest.data; >conftest.data
30952 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
30953 if test "$cross_compiling" = yes; then
30954 ac_cv_func_utime_null=no
30956 cat >conftest.$ac_ext <<_ACEOF
30959 cat confdefs.h >>conftest.$ac_ext
30960 cat >>conftest.$ac_ext <<_ACEOF
30961 /* end confdefs.h. */
30962 $ac_includes_default
30967 exit (!(stat ("conftest.data", &s) == 0
30968 && utime ("conftest.data", (long *)0) == 0
30969 && stat ("conftest.data", &t) == 0
30970 && t.st_mtime >= s.st_mtime
30971 && t.st_mtime - s.st_mtime < 120));
30976 rm -f conftest$ac_exeext
30977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30978 (eval $ac_link) 2>&5
30980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30983 (eval $ac_try) 2>&5
30985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986 (exit $ac_status); }; }; then
30987 ac_cv_func_utime_null=yes
30989 echo "$as_me: program exited with status $ac_status" >&5
30990 echo "$as_me: failed program was:" >&5
30991 sed 's/^/| /' conftest.$ac_ext >&5
30993 ( exit $ac_status )
30994 ac_cv_func_utime_null=no
30996 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30998 rm -f core core.* *.core
31000 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
31001 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
31002 if test $ac_cv_func_utime_null = yes; then
31004 cat >>confdefs.h <<\_ACEOF
31005 #define HAVE_UTIME_NULL 1
31009 rm -f conftest.data
31013 if test $ac_cv_func_utime_null = no; then
31014 LIBOBJS="$LIBOBJS utime.$ac_objext"
31016 cat >>confdefs.h <<\_ACEOF
31017 #define utime rpl_utime
31029 echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
31030 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6
31031 if test "${ac_cv_func_utimes_null+set}" = set; then
31032 echo $ECHO_N "(cached) $ECHO_C" >&6
31034 rm -f conftest.data; > conftest.data
31036 if test "$cross_compiling" = yes; then
31037 ac_cv_func_utimes_null=no
31039 cat >conftest.$ac_ext <<_ACEOF
31042 cat confdefs.h >>conftest.$ac_ext
31043 cat >>conftest.$ac_ext <<_ACEOF
31044 /* end confdefs.h. */
31046 /* In case stat has been defined to rpl_stat, undef it here. */
31048 #include <sys/types.h>
31049 #include <sys/stat.h>
31052 exit(!(stat ("conftest.data", &s) == 0
31053 && utimes("conftest.data", (long *)0) == 0
31054 && stat("conftest.data", &t) == 0
31055 && t.st_mtime >= s.st_mtime
31056 && t.st_mtime - s.st_mtime < 120));
31059 rm -f conftest$ac_exeext
31060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31061 (eval $ac_link) 2>&5
31063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31066 (eval $ac_try) 2>&5
31068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069 (exit $ac_status); }; }; then
31070 ac_cv_func_utimes_null=yes
31072 echo "$as_me: program exited with status $ac_status" >&5
31073 echo "$as_me: failed program was:" >&5
31074 sed 's/^/| /' conftest.$ac_ext >&5
31076 ( exit $ac_status )
31077 ac_cv_func_utimes_null=no
31079 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31081 rm -f core core.* *.core
31083 echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
31084 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6
31086 if test $ac_cv_func_utimes_null = yes; then
31088 cat >>confdefs.h <<\_ACEOF
31089 #define HAVE_UTIMES_NULL 1
31101 for ac_func in pathconf
31103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31104 echo "$as_me:$LINENO: checking for $ac_func" >&5
31105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31106 if eval "test \"\${$as_ac_var+set}\" = set"; then
31107 echo $ECHO_N "(cached) $ECHO_C" >&6
31109 cat >conftest.$ac_ext <<_ACEOF
31112 cat confdefs.h >>conftest.$ac_ext
31113 cat >>conftest.$ac_ext <<_ACEOF
31114 /* end confdefs.h. */
31115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31117 #define $ac_func innocuous_$ac_func
31119 /* System header to define __stub macros and hopefully few prototypes,
31120 which can conflict with char $ac_func (); below.
31121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31122 <limits.h> exists even on freestanding compilers. */
31125 # include <limits.h>
31127 # include <assert.h>
31132 /* Override any gcc2 internal prototype to avoid an error. */
31137 /* We use char because int might match the return type of a gcc2
31138 builtin and then its argument prototype would still apply. */
31140 /* The GNU C library defines this for functions which it implements
31141 to always fail with ENOSYS. Some functions are actually named
31142 something starting with __ and the normal name is an alias. */
31143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31146 char (*f) () = $ac_func;
31155 return f != $ac_func;
31160 rm -f conftest.$ac_objext conftest$ac_exeext
31161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31162 (eval $ac_link) 2>&5
31164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31165 (exit $ac_status); } &&
31166 { ac_try='test -s conftest$ac_exeext'
31167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31168 (eval $ac_try) 2>&5
31170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31171 (exit $ac_status); }; }; then
31172 eval "$as_ac_var=yes"
31174 echo "$as_me: failed program was:" >&5
31175 sed 's/^/| /' conftest.$ac_ext >&5
31177 eval "$as_ac_var=no"
31179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31183 if test `eval echo '${'$as_ac_var'}'` = yes; then
31184 cat >>confdefs.h <<_ACEOF
31185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31194 for ac_header in limits.h string.h unistd.h
31196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31198 echo "$as_me:$LINENO: checking for $ac_header" >&5
31199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31201 echo $ECHO_N "(cached) $ECHO_C" >&6
31203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31206 # Is the header compilable?
31207 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31209 cat >conftest.$ac_ext <<_ACEOF
31212 cat confdefs.h >>conftest.$ac_ext
31213 cat >>conftest.$ac_ext <<_ACEOF
31214 /* end confdefs.h. */
31215 $ac_includes_default
31216 #include <$ac_header>
31218 rm -f conftest.$ac_objext
31219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31220 (eval $ac_compile) 2>&5
31222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31223 (exit $ac_status); } &&
31224 { ac_try='test -s conftest.$ac_objext'
31225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31226 (eval $ac_try) 2>&5
31228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229 (exit $ac_status); }; }; then
31230 ac_header_compiler=yes
31232 echo "$as_me: failed program was:" >&5
31233 sed 's/^/| /' conftest.$ac_ext >&5
31235 ac_header_compiler=no
31237 rm -f conftest.$ac_objext conftest.$ac_ext
31238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31239 echo "${ECHO_T}$ac_header_compiler" >&6
31241 # Is the header present?
31242 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31244 cat >conftest.$ac_ext <<_ACEOF
31247 cat confdefs.h >>conftest.$ac_ext
31248 cat >>conftest.$ac_ext <<_ACEOF
31249 /* end confdefs.h. */
31250 #include <$ac_header>
31252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31255 grep -v '^ *+' conftest.er1 >conftest.err
31257 cat conftest.err >&5
31258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31259 (exit $ac_status); } >/dev/null; then
31260 if test -s conftest.err; then
31261 ac_cpp_err=$ac_c_preproc_warn_flag
31268 if test -z "$ac_cpp_err"; then
31269 ac_header_preproc=yes
31271 echo "$as_me: failed program was:" >&5
31272 sed 's/^/| /' conftest.$ac_ext >&5
31274 ac_header_preproc=no
31276 rm -f conftest.err conftest.$ac_ext
31277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31278 echo "${ECHO_T}$ac_header_preproc" >&6
31280 # So? What about this header?
31281 case $ac_header_compiler:$ac_header_preproc in
31283 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31284 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31286 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31287 ac_header_preproc=yes
31290 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31291 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31292 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31293 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31294 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31295 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31296 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31297 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31300 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31301 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31304 ## ------------------------------------ ##
31305 ## Report this to bug-coreutils@gnu.org ##
31306 ## ------------------------------------ ##
31309 sed "s/^/$as_me: WARNING: /" >&2
31312 echo "$as_me:$LINENO: checking for $ac_header" >&5
31313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31315 echo $ECHO_N "(cached) $ECHO_C" >&6
31317 eval "$as_ac_Header=\$ac_header_preproc"
31319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31324 cat >>confdefs.h <<_ACEOF
31325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31338 for ac_header in sys/sysmacros.h sys/statvfs.h sys/vfs.h inttypes.h
31340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31342 echo "$as_me:$LINENO: checking for $ac_header" >&5
31343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31345 echo $ECHO_N "(cached) $ECHO_C" >&6
31347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31350 # Is the header compilable?
31351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31353 cat >conftest.$ac_ext <<_ACEOF
31356 cat confdefs.h >>conftest.$ac_ext
31357 cat >>conftest.$ac_ext <<_ACEOF
31358 /* end confdefs.h. */
31359 $ac_includes_default
31360 #include <$ac_header>
31362 rm -f conftest.$ac_objext
31363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31364 (eval $ac_compile) 2>&5
31366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31367 (exit $ac_status); } &&
31368 { ac_try='test -s conftest.$ac_objext'
31369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31370 (eval $ac_try) 2>&5
31372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31373 (exit $ac_status); }; }; then
31374 ac_header_compiler=yes
31376 echo "$as_me: failed program was:" >&5
31377 sed 's/^/| /' conftest.$ac_ext >&5
31379 ac_header_compiler=no
31381 rm -f conftest.$ac_objext conftest.$ac_ext
31382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31383 echo "${ECHO_T}$ac_header_compiler" >&6
31385 # Is the header present?
31386 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31388 cat >conftest.$ac_ext <<_ACEOF
31391 cat confdefs.h >>conftest.$ac_ext
31392 cat >>conftest.$ac_ext <<_ACEOF
31393 /* end confdefs.h. */
31394 #include <$ac_header>
31396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31399 grep -v '^ *+' conftest.er1 >conftest.err
31401 cat conftest.err >&5
31402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31403 (exit $ac_status); } >/dev/null; then
31404 if test -s conftest.err; then
31405 ac_cpp_err=$ac_c_preproc_warn_flag
31412 if test -z "$ac_cpp_err"; then
31413 ac_header_preproc=yes
31415 echo "$as_me: failed program was:" >&5
31416 sed 's/^/| /' conftest.$ac_ext >&5
31418 ac_header_preproc=no
31420 rm -f conftest.err conftest.$ac_ext
31421 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31422 echo "${ECHO_T}$ac_header_preproc" >&6
31424 # So? What about this header?
31425 case $ac_header_compiler:$ac_header_preproc in
31427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31430 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31431 ac_header_preproc=yes
31434 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31435 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31436 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31437 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31438 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31439 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31440 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31441 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31443 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31444 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31445 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31448 ## ------------------------------------ ##
31449 ## Report this to bug-coreutils@gnu.org ##
31450 ## ------------------------------------ ##
31453 sed "s/^/$as_me: WARNING: /" >&2
31456 echo "$as_me:$LINENO: checking for $ac_header" >&5
31457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31459 echo $ECHO_N "(cached) $ECHO_C" >&6
31461 eval "$as_ac_Header=\$ac_header_preproc"
31463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31468 cat >>confdefs.h <<_ACEOF
31469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31478 for ac_header in sys/param.h sys/mount.h
31480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31482 echo "$as_me:$LINENO: checking for $ac_header" >&5
31483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31485 echo $ECHO_N "(cached) $ECHO_C" >&6
31487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31490 # Is the header compilable?
31491 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31492 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31493 cat >conftest.$ac_ext <<_ACEOF
31496 cat confdefs.h >>conftest.$ac_ext
31497 cat >>conftest.$ac_ext <<_ACEOF
31498 /* end confdefs.h. */
31499 $ac_includes_default
31500 #include <$ac_header>
31502 rm -f conftest.$ac_objext
31503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31504 (eval $ac_compile) 2>&5
31506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507 (exit $ac_status); } &&
31508 { ac_try='test -s conftest.$ac_objext'
31509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31510 (eval $ac_try) 2>&5
31512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31513 (exit $ac_status); }; }; then
31514 ac_header_compiler=yes
31516 echo "$as_me: failed program was:" >&5
31517 sed 's/^/| /' conftest.$ac_ext >&5
31519 ac_header_compiler=no
31521 rm -f conftest.$ac_objext conftest.$ac_ext
31522 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31523 echo "${ECHO_T}$ac_header_compiler" >&6
31525 # Is the header present?
31526 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31528 cat >conftest.$ac_ext <<_ACEOF
31531 cat confdefs.h >>conftest.$ac_ext
31532 cat >>conftest.$ac_ext <<_ACEOF
31533 /* end confdefs.h. */
31534 #include <$ac_header>
31536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31539 grep -v '^ *+' conftest.er1 >conftest.err
31541 cat conftest.err >&5
31542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31543 (exit $ac_status); } >/dev/null; then
31544 if test -s conftest.err; then
31545 ac_cpp_err=$ac_c_preproc_warn_flag
31552 if test -z "$ac_cpp_err"; then
31553 ac_header_preproc=yes
31555 echo "$as_me: failed program was:" >&5
31556 sed 's/^/| /' conftest.$ac_ext >&5
31558 ac_header_preproc=no
31560 rm -f conftest.err conftest.$ac_ext
31561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31562 echo "${ECHO_T}$ac_header_preproc" >&6
31564 # So? What about this header?
31565 case $ac_header_compiler:$ac_header_preproc in
31567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31571 ac_header_preproc=yes
31574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31581 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31588 ## ------------------------------------ ##
31589 ## Report this to bug-coreutils@gnu.org ##
31590 ## ------------------------------------ ##
31593 sed "s/^/$as_me: WARNING: /" >&2
31596 echo "$as_me:$LINENO: checking for $ac_header" >&5
31597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31599 echo $ECHO_N "(cached) $ECHO_C" >&6
31601 eval "$as_ac_Header=\$ac_header_preproc"
31603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31608 cat >>confdefs.h <<_ACEOF
31609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31617 for ac_func in statvfs
31619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31620 echo "$as_me:$LINENO: checking for $ac_func" >&5
31621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31622 if eval "test \"\${$as_ac_var+set}\" = set"; then
31623 echo $ECHO_N "(cached) $ECHO_C" >&6
31625 cat >conftest.$ac_ext <<_ACEOF
31628 cat confdefs.h >>conftest.$ac_ext
31629 cat >>conftest.$ac_ext <<_ACEOF
31630 /* end confdefs.h. */
31631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31633 #define $ac_func innocuous_$ac_func
31635 /* System header to define __stub macros and hopefully few prototypes,
31636 which can conflict with char $ac_func (); below.
31637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31638 <limits.h> exists even on freestanding compilers. */
31641 # include <limits.h>
31643 # include <assert.h>
31648 /* Override any gcc2 internal prototype to avoid an error. */
31653 /* We use char because int might match the return type of a gcc2
31654 builtin and then its argument prototype would still apply. */
31656 /* The GNU C library defines this for functions which it implements
31657 to always fail with ENOSYS. Some functions are actually named
31658 something starting with __ and the normal name is an alias. */
31659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31662 char (*f) () = $ac_func;
31671 return f != $ac_func;
31676 rm -f conftest.$ac_objext conftest$ac_exeext
31677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31678 (eval $ac_link) 2>&5
31680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31681 (exit $ac_status); } &&
31682 { ac_try='test -s conftest$ac_exeext'
31683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31684 (eval $ac_try) 2>&5
31686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31687 (exit $ac_status); }; }; then
31688 eval "$as_ac_var=yes"
31690 echo "$as_me: failed program was:" >&5
31691 sed 's/^/| /' conftest.$ac_ext >&5
31693 eval "$as_ac_var=no"
31695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31699 if test `eval echo '${'$as_ac_var'}'` = yes; then
31700 cat >>confdefs.h <<_ACEOF
31701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31708 # For `struct statfs' on Ultrix 4.4.
31712 for ac_header in netinet/in.h nfs/nfs_clnt.h nfs/vfs.h
31714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31715 echo "$as_me:$LINENO: checking for $ac_header" >&5
31716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31718 echo $ECHO_N "(cached) $ECHO_C" >&6
31720 cat >conftest.$ac_ext <<_ACEOF
31723 cat confdefs.h >>conftest.$ac_ext
31724 cat >>conftest.$ac_ext <<_ACEOF
31725 /* end confdefs.h. */
31726 $ac_includes_default
31728 #include <$ac_header>
31730 rm -f conftest.$ac_objext
31731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31732 (eval $ac_compile) 2>&5
31734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735 (exit $ac_status); } &&
31736 { ac_try='test -s conftest.$ac_objext'
31737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31738 (eval $ac_try) 2>&5
31740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31741 (exit $ac_status); }; }; then
31742 eval "$as_ac_Header=yes"
31744 echo "$as_me: failed program was:" >&5
31745 sed 's/^/| /' conftest.$ac_ext >&5
31747 eval "$as_ac_Header=no"
31749 rm -f conftest.$ac_objext conftest.$ac_ext
31751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31754 cat >>confdefs.h <<_ACEOF
31755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31765 statxfs_includes="\
31766 $ac_includes_default
31767 #if HAVE_SYS_STATVFS_H
31768 # include <sys/statvfs.h>
31771 # include <sys/vfs.h>
31773 #if !HAVE_SYS_STATVFS_H && !HAVE_SYS_VFS_H
31774 # if HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H
31775 /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
31776 # include <sys/param.h>
31777 # include <sys/mount.h>
31778 # elif HAVE_NETINET_IN_H && HAVE_NFS_NFS_CLNT_H && HAVE_NFS_VFS_H
31779 /* Ultrix 4.4 needs these for the declaration of struct statfs. */
31780 # include <netinet/in.h>
31781 # include <nfs/nfs_clnt.h>
31782 # include <nfs/vfs.h>
31786 echo "$as_me:$LINENO: checking for struct statfs.f_basetype" >&5
31787 echo $ECHO_N "checking for struct statfs.f_basetype... $ECHO_C" >&6
31788 if test "${ac_cv_member_struct_statfs_f_basetype+set}" = set; then
31789 echo $ECHO_N "(cached) $ECHO_C" >&6
31791 cat >conftest.$ac_ext <<_ACEOF
31794 cat confdefs.h >>conftest.$ac_ext
31795 cat >>conftest.$ac_ext <<_ACEOF
31796 /* end confdefs.h. */
31802 static struct statfs ac_aggr;
31803 if (ac_aggr.f_basetype)
31809 rm -f conftest.$ac_objext
31810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31811 (eval $ac_compile) 2>&5
31813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31814 (exit $ac_status); } &&
31815 { ac_try='test -s conftest.$ac_objext'
31816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31817 (eval $ac_try) 2>&5
31819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820 (exit $ac_status); }; }; then
31821 ac_cv_member_struct_statfs_f_basetype=yes
31823 echo "$as_me: failed program was:" >&5
31824 sed 's/^/| /' conftest.$ac_ext >&5
31826 cat >conftest.$ac_ext <<_ACEOF
31829 cat confdefs.h >>conftest.$ac_ext
31830 cat >>conftest.$ac_ext <<_ACEOF
31831 /* end confdefs.h. */
31837 static struct statfs ac_aggr;
31838 if (sizeof ac_aggr.f_basetype)
31844 rm -f conftest.$ac_objext
31845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31846 (eval $ac_compile) 2>&5
31848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31849 (exit $ac_status); } &&
31850 { ac_try='test -s conftest.$ac_objext'
31851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31852 (eval $ac_try) 2>&5
31854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31855 (exit $ac_status); }; }; then
31856 ac_cv_member_struct_statfs_f_basetype=yes
31858 echo "$as_me: failed program was:" >&5
31859 sed 's/^/| /' conftest.$ac_ext >&5
31861 ac_cv_member_struct_statfs_f_basetype=no
31863 rm -f conftest.$ac_objext conftest.$ac_ext
31865 rm -f conftest.$ac_objext conftest.$ac_ext
31867 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_basetype" >&5
31868 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_basetype" >&6
31869 if test $ac_cv_member_struct_statfs_f_basetype = yes; then
31871 cat >>confdefs.h <<_ACEOF
31872 #define HAVE_STRUCT_STATFS_F_BASETYPE 1
31878 echo "$as_me:$LINENO: checking for struct statvfs.f_basetype" >&5
31879 echo $ECHO_N "checking for struct statvfs.f_basetype... $ECHO_C" >&6
31880 if test "${ac_cv_member_struct_statvfs_f_basetype+set}" = set; then
31881 echo $ECHO_N "(cached) $ECHO_C" >&6
31883 cat >conftest.$ac_ext <<_ACEOF
31886 cat confdefs.h >>conftest.$ac_ext
31887 cat >>conftest.$ac_ext <<_ACEOF
31888 /* end confdefs.h. */
31894 static struct statvfs ac_aggr;
31895 if (ac_aggr.f_basetype)
31901 rm -f conftest.$ac_objext
31902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31903 (eval $ac_compile) 2>&5
31905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906 (exit $ac_status); } &&
31907 { ac_try='test -s conftest.$ac_objext'
31908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31909 (eval $ac_try) 2>&5
31911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31912 (exit $ac_status); }; }; then
31913 ac_cv_member_struct_statvfs_f_basetype=yes
31915 echo "$as_me: failed program was:" >&5
31916 sed 's/^/| /' conftest.$ac_ext >&5
31918 cat >conftest.$ac_ext <<_ACEOF
31921 cat confdefs.h >>conftest.$ac_ext
31922 cat >>conftest.$ac_ext <<_ACEOF
31923 /* end confdefs.h. */
31929 static struct statvfs ac_aggr;
31930 if (sizeof ac_aggr.f_basetype)
31936 rm -f conftest.$ac_objext
31937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31938 (eval $ac_compile) 2>&5
31940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941 (exit $ac_status); } &&
31942 { ac_try='test -s conftest.$ac_objext'
31943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31944 (eval $ac_try) 2>&5
31946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31947 (exit $ac_status); }; }; then
31948 ac_cv_member_struct_statvfs_f_basetype=yes
31950 echo "$as_me: failed program was:" >&5
31951 sed 's/^/| /' conftest.$ac_ext >&5
31953 ac_cv_member_struct_statvfs_f_basetype=no
31955 rm -f conftest.$ac_objext conftest.$ac_ext
31957 rm -f conftest.$ac_objext conftest.$ac_ext
31959 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_basetype" >&5
31960 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_basetype" >&6
31961 if test $ac_cv_member_struct_statvfs_f_basetype = yes; then
31963 cat >>confdefs.h <<_ACEOF
31964 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
31970 echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
31971 echo $ECHO_N "checking for struct statfs.f_fstypename... $ECHO_C" >&6
31972 if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
31973 echo $ECHO_N "(cached) $ECHO_C" >&6
31975 cat >conftest.$ac_ext <<_ACEOF
31978 cat confdefs.h >>conftest.$ac_ext
31979 cat >>conftest.$ac_ext <<_ACEOF
31980 /* end confdefs.h. */
31986 static struct statfs ac_aggr;
31987 if (ac_aggr.f_fstypename)
31993 rm -f conftest.$ac_objext
31994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31995 (eval $ac_compile) 2>&5
31997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31998 (exit $ac_status); } &&
31999 { ac_try='test -s conftest.$ac_objext'
32000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32001 (eval $ac_try) 2>&5
32003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004 (exit $ac_status); }; }; then
32005 ac_cv_member_struct_statfs_f_fstypename=yes
32007 echo "$as_me: failed program was:" >&5
32008 sed 's/^/| /' conftest.$ac_ext >&5
32010 cat >conftest.$ac_ext <<_ACEOF
32013 cat confdefs.h >>conftest.$ac_ext
32014 cat >>conftest.$ac_ext <<_ACEOF
32015 /* end confdefs.h. */
32021 static struct statfs ac_aggr;
32022 if (sizeof ac_aggr.f_fstypename)
32028 rm -f conftest.$ac_objext
32029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32030 (eval $ac_compile) 2>&5
32032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32033 (exit $ac_status); } &&
32034 { ac_try='test -s conftest.$ac_objext'
32035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32036 (eval $ac_try) 2>&5
32038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32039 (exit $ac_status); }; }; then
32040 ac_cv_member_struct_statfs_f_fstypename=yes
32042 echo "$as_me: failed program was:" >&5
32043 sed 's/^/| /' conftest.$ac_ext >&5
32045 ac_cv_member_struct_statfs_f_fstypename=no
32047 rm -f conftest.$ac_objext conftest.$ac_ext
32049 rm -f conftest.$ac_objext conftest.$ac_ext
32051 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
32052 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fstypename" >&6
32053 if test $ac_cv_member_struct_statfs_f_fstypename = yes; then
32055 cat >>confdefs.h <<_ACEOF
32056 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
32062 echo "$as_me:$LINENO: checking for struct statfs.f_type" >&5
32063 echo $ECHO_N "checking for struct statfs.f_type... $ECHO_C" >&6
32064 if test "${ac_cv_member_struct_statfs_f_type+set}" = set; then
32065 echo $ECHO_N "(cached) $ECHO_C" >&6
32067 cat >conftest.$ac_ext <<_ACEOF
32070 cat confdefs.h >>conftest.$ac_ext
32071 cat >>conftest.$ac_ext <<_ACEOF
32072 /* end confdefs.h. */
32078 static struct statfs ac_aggr;
32079 if (ac_aggr.f_type)
32085 rm -f conftest.$ac_objext
32086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32087 (eval $ac_compile) 2>&5
32089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32090 (exit $ac_status); } &&
32091 { ac_try='test -s conftest.$ac_objext'
32092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32093 (eval $ac_try) 2>&5
32095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32096 (exit $ac_status); }; }; then
32097 ac_cv_member_struct_statfs_f_type=yes
32099 echo "$as_me: failed program was:" >&5
32100 sed 's/^/| /' conftest.$ac_ext >&5
32102 cat >conftest.$ac_ext <<_ACEOF
32105 cat confdefs.h >>conftest.$ac_ext
32106 cat >>conftest.$ac_ext <<_ACEOF
32107 /* end confdefs.h. */
32113 static struct statfs ac_aggr;
32114 if (sizeof ac_aggr.f_type)
32120 rm -f conftest.$ac_objext
32121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32122 (eval $ac_compile) 2>&5
32124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32125 (exit $ac_status); } &&
32126 { ac_try='test -s conftest.$ac_objext'
32127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32128 (eval $ac_try) 2>&5
32130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131 (exit $ac_status); }; }; then
32132 ac_cv_member_struct_statfs_f_type=yes
32134 echo "$as_me: failed program was:" >&5
32135 sed 's/^/| /' conftest.$ac_ext >&5
32137 ac_cv_member_struct_statfs_f_type=no
32139 rm -f conftest.$ac_objext conftest.$ac_ext
32141 rm -f conftest.$ac_objext conftest.$ac_ext
32143 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_type" >&5
32144 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_type" >&6
32145 if test $ac_cv_member_struct_statfs_f_type = yes; then
32147 cat >>confdefs.h <<_ACEOF
32148 #define HAVE_STRUCT_STATFS_F_TYPE 1
32154 echo "$as_me:$LINENO: checking for struct statvfs.f_type" >&5
32155 echo $ECHO_N "checking for struct statvfs.f_type... $ECHO_C" >&6
32156 if test "${ac_cv_member_struct_statvfs_f_type+set}" = set; then
32157 echo $ECHO_N "(cached) $ECHO_C" >&6
32159 cat >conftest.$ac_ext <<_ACEOF
32162 cat confdefs.h >>conftest.$ac_ext
32163 cat >>conftest.$ac_ext <<_ACEOF
32164 /* end confdefs.h. */
32170 static struct statvfs ac_aggr;
32171 if (ac_aggr.f_type)
32177 rm -f conftest.$ac_objext
32178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32179 (eval $ac_compile) 2>&5
32181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32182 (exit $ac_status); } &&
32183 { ac_try='test -s conftest.$ac_objext'
32184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32185 (eval $ac_try) 2>&5
32187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32188 (exit $ac_status); }; }; then
32189 ac_cv_member_struct_statvfs_f_type=yes
32191 echo "$as_me: failed program was:" >&5
32192 sed 's/^/| /' conftest.$ac_ext >&5
32194 cat >conftest.$ac_ext <<_ACEOF
32197 cat confdefs.h >>conftest.$ac_ext
32198 cat >>conftest.$ac_ext <<_ACEOF
32199 /* end confdefs.h. */
32205 static struct statvfs ac_aggr;
32206 if (sizeof ac_aggr.f_type)
32212 rm -f conftest.$ac_objext
32213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32214 (eval $ac_compile) 2>&5
32216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32217 (exit $ac_status); } &&
32218 { ac_try='test -s conftest.$ac_objext'
32219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32220 (eval $ac_try) 2>&5
32222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32223 (exit $ac_status); }; }; then
32224 ac_cv_member_struct_statvfs_f_type=yes
32226 echo "$as_me: failed program was:" >&5
32227 sed 's/^/| /' conftest.$ac_ext >&5
32229 ac_cv_member_struct_statvfs_f_type=no
32231 rm -f conftest.$ac_objext conftest.$ac_ext
32233 rm -f conftest.$ac_objext conftest.$ac_ext
32235 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_type" >&5
32236 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_type" >&6
32237 if test $ac_cv_member_struct_statvfs_f_type = yes; then
32239 cat >>confdefs.h <<_ACEOF
32240 #define HAVE_STRUCT_STATVFS_F_TYPE 1
32246 echo "$as_me:$LINENO: checking for struct statfs.f_fsid.__val" >&5
32247 echo $ECHO_N "checking for struct statfs.f_fsid.__val... $ECHO_C" >&6
32248 if test "${ac_cv_member_struct_statfs_f_fsid___val+set}" = set; then
32249 echo $ECHO_N "(cached) $ECHO_C" >&6
32251 cat >conftest.$ac_ext <<_ACEOF
32254 cat confdefs.h >>conftest.$ac_ext
32255 cat >>conftest.$ac_ext <<_ACEOF
32256 /* end confdefs.h. */
32262 static struct statfs ac_aggr;
32263 if (ac_aggr.f_fsid.__val)
32269 rm -f conftest.$ac_objext
32270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32271 (eval $ac_compile) 2>&5
32273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274 (exit $ac_status); } &&
32275 { ac_try='test -s conftest.$ac_objext'
32276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32277 (eval $ac_try) 2>&5
32279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32280 (exit $ac_status); }; }; then
32281 ac_cv_member_struct_statfs_f_fsid___val=yes
32283 echo "$as_me: failed program was:" >&5
32284 sed 's/^/| /' conftest.$ac_ext >&5
32286 cat >conftest.$ac_ext <<_ACEOF
32289 cat confdefs.h >>conftest.$ac_ext
32290 cat >>conftest.$ac_ext <<_ACEOF
32291 /* end confdefs.h. */
32297 static struct statfs ac_aggr;
32298 if (sizeof ac_aggr.f_fsid.__val)
32304 rm -f conftest.$ac_objext
32305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32306 (eval $ac_compile) 2>&5
32308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309 (exit $ac_status); } &&
32310 { ac_try='test -s conftest.$ac_objext'
32311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32312 (eval $ac_try) 2>&5
32314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315 (exit $ac_status); }; }; then
32316 ac_cv_member_struct_statfs_f_fsid___val=yes
32318 echo "$as_me: failed program was:" >&5
32319 sed 's/^/| /' conftest.$ac_ext >&5
32321 ac_cv_member_struct_statfs_f_fsid___val=no
32323 rm -f conftest.$ac_objext conftest.$ac_ext
32325 rm -f conftest.$ac_objext conftest.$ac_ext
32327 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fsid___val" >&5
32328 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fsid___val" >&6
32329 if test $ac_cv_member_struct_statfs_f_fsid___val = yes; then
32331 cat >>confdefs.h <<_ACEOF
32332 #define HAVE_STRUCT_STATFS_F_FSID___VAL 1
32338 echo "$as_me:$LINENO: checking for struct statvfs.f_fsid.__val" >&5
32339 echo $ECHO_N "checking for struct statvfs.f_fsid.__val... $ECHO_C" >&6
32340 if test "${ac_cv_member_struct_statvfs_f_fsid___val+set}" = set; then
32341 echo $ECHO_N "(cached) $ECHO_C" >&6
32343 cat >conftest.$ac_ext <<_ACEOF
32346 cat confdefs.h >>conftest.$ac_ext
32347 cat >>conftest.$ac_ext <<_ACEOF
32348 /* end confdefs.h. */
32354 static struct statvfs ac_aggr;
32355 if (ac_aggr.f_fsid.__val)
32361 rm -f conftest.$ac_objext
32362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32363 (eval $ac_compile) 2>&5
32365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366 (exit $ac_status); } &&
32367 { ac_try='test -s conftest.$ac_objext'
32368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32369 (eval $ac_try) 2>&5
32371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32372 (exit $ac_status); }; }; then
32373 ac_cv_member_struct_statvfs_f_fsid___val=yes
32375 echo "$as_me: failed program was:" >&5
32376 sed 's/^/| /' conftest.$ac_ext >&5
32378 cat >conftest.$ac_ext <<_ACEOF
32381 cat confdefs.h >>conftest.$ac_ext
32382 cat >>conftest.$ac_ext <<_ACEOF
32383 /* end confdefs.h. */
32389 static struct statvfs ac_aggr;
32390 if (sizeof ac_aggr.f_fsid.__val)
32396 rm -f conftest.$ac_objext
32397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32398 (eval $ac_compile) 2>&5
32400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401 (exit $ac_status); } &&
32402 { ac_try='test -s conftest.$ac_objext'
32403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32404 (eval $ac_try) 2>&5
32406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407 (exit $ac_status); }; }; then
32408 ac_cv_member_struct_statvfs_f_fsid___val=yes
32410 echo "$as_me: failed program was:" >&5
32411 sed 's/^/| /' conftest.$ac_ext >&5
32413 ac_cv_member_struct_statvfs_f_fsid___val=no
32415 rm -f conftest.$ac_objext conftest.$ac_ext
32417 rm -f conftest.$ac_objext conftest.$ac_ext
32419 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_fsid___val" >&5
32420 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_fsid___val" >&6
32421 if test $ac_cv_member_struct_statvfs_f_fsid___val = yes; then
32423 cat >>confdefs.h <<_ACEOF
32424 #define HAVE_STRUCT_STATVFS_F_FSID___VAL 1
32430 echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
32431 echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6
32432 if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
32433 echo $ECHO_N "(cached) $ECHO_C" >&6
32435 cat >conftest.$ac_ext <<_ACEOF
32438 cat confdefs.h >>conftest.$ac_ext
32439 cat >>conftest.$ac_ext <<_ACEOF
32440 /* end confdefs.h. */
32446 static struct statfs ac_aggr;
32447 if (ac_aggr.f_namemax)
32453 rm -f conftest.$ac_objext
32454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32455 (eval $ac_compile) 2>&5
32457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458 (exit $ac_status); } &&
32459 { ac_try='test -s conftest.$ac_objext'
32460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32461 (eval $ac_try) 2>&5
32463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464 (exit $ac_status); }; }; then
32465 ac_cv_member_struct_statfs_f_namemax=yes
32467 echo "$as_me: failed program was:" >&5
32468 sed 's/^/| /' conftest.$ac_ext >&5
32470 cat >conftest.$ac_ext <<_ACEOF
32473 cat confdefs.h >>conftest.$ac_ext
32474 cat >>conftest.$ac_ext <<_ACEOF
32475 /* end confdefs.h. */
32481 static struct statfs ac_aggr;
32482 if (sizeof ac_aggr.f_namemax)
32488 rm -f conftest.$ac_objext
32489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32490 (eval $ac_compile) 2>&5
32492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32493 (exit $ac_status); } &&
32494 { ac_try='test -s conftest.$ac_objext'
32495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32496 (eval $ac_try) 2>&5
32498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499 (exit $ac_status); }; }; then
32500 ac_cv_member_struct_statfs_f_namemax=yes
32502 echo "$as_me: failed program was:" >&5
32503 sed 's/^/| /' conftest.$ac_ext >&5
32505 ac_cv_member_struct_statfs_f_namemax=no
32507 rm -f conftest.$ac_objext conftest.$ac_ext
32509 rm -f conftest.$ac_objext conftest.$ac_ext
32511 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
32512 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6
32513 if test $ac_cv_member_struct_statfs_f_namemax = yes; then
32515 cat >>confdefs.h <<_ACEOF
32516 #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
32522 echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
32523 echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6
32524 if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
32525 echo $ECHO_N "(cached) $ECHO_C" >&6
32527 cat >conftest.$ac_ext <<_ACEOF
32530 cat confdefs.h >>conftest.$ac_ext
32531 cat >>conftest.$ac_ext <<_ACEOF
32532 /* end confdefs.h. */
32538 static struct statvfs ac_aggr;
32539 if (ac_aggr.f_namemax)
32545 rm -f conftest.$ac_objext
32546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32547 (eval $ac_compile) 2>&5
32549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32550 (exit $ac_status); } &&
32551 { ac_try='test -s conftest.$ac_objext'
32552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32553 (eval $ac_try) 2>&5
32555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32556 (exit $ac_status); }; }; then
32557 ac_cv_member_struct_statvfs_f_namemax=yes
32559 echo "$as_me: failed program was:" >&5
32560 sed 's/^/| /' conftest.$ac_ext >&5
32562 cat >conftest.$ac_ext <<_ACEOF
32565 cat confdefs.h >>conftest.$ac_ext
32566 cat >>conftest.$ac_ext <<_ACEOF
32567 /* end confdefs.h. */
32573 static struct statvfs ac_aggr;
32574 if (sizeof ac_aggr.f_namemax)
32580 rm -f conftest.$ac_objext
32581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32582 (eval $ac_compile) 2>&5
32584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32585 (exit $ac_status); } &&
32586 { ac_try='test -s conftest.$ac_objext'
32587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32588 (eval $ac_try) 2>&5
32590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32591 (exit $ac_status); }; }; then
32592 ac_cv_member_struct_statvfs_f_namemax=yes
32594 echo "$as_me: failed program was:" >&5
32595 sed 's/^/| /' conftest.$ac_ext >&5
32597 ac_cv_member_struct_statvfs_f_namemax=no
32599 rm -f conftest.$ac_objext conftest.$ac_ext
32601 rm -f conftest.$ac_objext conftest.$ac_ext
32603 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
32604 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6
32605 if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
32607 cat >>confdefs.h <<_ACEOF
32608 #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
32614 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
32615 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
32616 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
32617 echo $ECHO_N "(cached) $ECHO_C" >&6
32619 cat >conftest.$ac_ext <<_ACEOF
32622 cat confdefs.h >>conftest.$ac_ext
32623 cat >>conftest.$ac_ext <<_ACEOF
32624 /* end confdefs.h. */
32630 static struct statfs ac_aggr;
32631 if (ac_aggr.f_namelen)
32637 rm -f conftest.$ac_objext
32638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32639 (eval $ac_compile) 2>&5
32641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32642 (exit $ac_status); } &&
32643 { ac_try='test -s conftest.$ac_objext'
32644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32645 (eval $ac_try) 2>&5
32647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648 (exit $ac_status); }; }; then
32649 ac_cv_member_struct_statfs_f_namelen=yes
32651 echo "$as_me: failed program was:" >&5
32652 sed 's/^/| /' conftest.$ac_ext >&5
32654 cat >conftest.$ac_ext <<_ACEOF
32657 cat confdefs.h >>conftest.$ac_ext
32658 cat >>conftest.$ac_ext <<_ACEOF
32659 /* end confdefs.h. */
32665 static struct statfs ac_aggr;
32666 if (sizeof ac_aggr.f_namelen)
32672 rm -f conftest.$ac_objext
32673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32674 (eval $ac_compile) 2>&5
32676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677 (exit $ac_status); } &&
32678 { ac_try='test -s conftest.$ac_objext'
32679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32680 (eval $ac_try) 2>&5
32682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32683 (exit $ac_status); }; }; then
32684 ac_cv_member_struct_statfs_f_namelen=yes
32686 echo "$as_me: failed program was:" >&5
32687 sed 's/^/| /' conftest.$ac_ext >&5
32689 ac_cv_member_struct_statfs_f_namelen=no
32691 rm -f conftest.$ac_objext conftest.$ac_ext
32693 rm -f conftest.$ac_objext conftest.$ac_ext
32695 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
32696 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
32697 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
32699 cat >>confdefs.h <<_ACEOF
32700 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
32706 echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
32707 echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6
32708 if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
32709 echo $ECHO_N "(cached) $ECHO_C" >&6
32711 cat >conftest.$ac_ext <<_ACEOF
32714 cat confdefs.h >>conftest.$ac_ext
32715 cat >>conftest.$ac_ext <<_ACEOF
32716 /* end confdefs.h. */
32722 static struct statvfs ac_aggr;
32723 if (ac_aggr.f_namelen)
32729 rm -f conftest.$ac_objext
32730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32731 (eval $ac_compile) 2>&5
32733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32734 (exit $ac_status); } &&
32735 { ac_try='test -s conftest.$ac_objext'
32736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32737 (eval $ac_try) 2>&5
32739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32740 (exit $ac_status); }; }; then
32741 ac_cv_member_struct_statvfs_f_namelen=yes
32743 echo "$as_me: failed program was:" >&5
32744 sed 's/^/| /' conftest.$ac_ext >&5
32746 cat >conftest.$ac_ext <<_ACEOF
32749 cat confdefs.h >>conftest.$ac_ext
32750 cat >>conftest.$ac_ext <<_ACEOF
32751 /* end confdefs.h. */
32757 static struct statvfs ac_aggr;
32758 if (sizeof ac_aggr.f_namelen)
32764 rm -f conftest.$ac_objext
32765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32766 (eval $ac_compile) 2>&5
32768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32769 (exit $ac_status); } &&
32770 { ac_try='test -s conftest.$ac_objext'
32771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32772 (eval $ac_try) 2>&5
32774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775 (exit $ac_status); }; }; then
32776 ac_cv_member_struct_statvfs_f_namelen=yes
32778 echo "$as_me: failed program was:" >&5
32779 sed 's/^/| /' conftest.$ac_ext >&5
32781 ac_cv_member_struct_statvfs_f_namelen=no
32783 rm -f conftest.$ac_objext conftest.$ac_ext
32785 rm -f conftest.$ac_objext conftest.$ac_ext
32787 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
32788 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6
32789 if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
32791 cat >>confdefs.h <<_ACEOF
32792 #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
32808 echo "$as_me:$LINENO: checking whether rename is broken" >&5
32809 echo $ECHO_N "checking whether rename is broken... $ECHO_C" >&6
32810 if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then
32811 echo $ECHO_N "(cached) $ECHO_C" >&6
32814 rm -rf conftest.d1 conftest.d2
32815 mkdir conftest.d1 ||
32816 { { echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
32817 echo "$as_me: error: cannot create temporary directory" >&2;}
32818 { (exit 1); exit 1; }; }
32820 if test "$cross_compiling" = yes; then
32821 vb_cv_func_rename_trailing_slash_bug=yes
32823 cat >conftest.$ac_ext <<_ACEOF
32826 cat confdefs.h >>conftest.$ac_ext
32827 cat >>conftest.$ac_ext <<_ACEOF
32828 /* end confdefs.h. */
32830 # include <stdio.h>
32834 exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
32838 rm -f conftest$ac_exeext
32839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32840 (eval $ac_link) 2>&5
32842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32845 (eval $ac_try) 2>&5
32847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32848 (exit $ac_status); }; }; then
32849 vb_cv_func_rename_trailing_slash_bug=no
32851 echo "$as_me: program exited with status $ac_status" >&5
32852 echo "$as_me: failed program was:" >&5
32853 sed 's/^/| /' conftest.$ac_ext >&5
32855 ( exit $ac_status )
32856 vb_cv_func_rename_trailing_slash_bug=yes
32858 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32861 rm -rf conftest.d1 conftest.d2
32864 echo "$as_me:$LINENO: result: $vb_cv_func_rename_trailing_slash_bug" >&5
32865 echo "${ECHO_T}$vb_cv_func_rename_trailing_slash_bug" >&6
32866 if test $vb_cv_func_rename_trailing_slash_bug = yes; then
32867 LIBOBJS="$LIBOBJS rename.$ac_objext"
32869 cat >>confdefs.h <<\_ACEOF
32870 #define rename rpl_rename
32874 cat >>confdefs.h <<\_ACEOF
32875 #define RENAME_TRAILING_SLASH_BUG 1
32900 # We don't yet use c-stack.c.
32901 # AC_REQUIRE([gl_C_STACK])
33020 ac_header_dirent=no
33021 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
33022 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
33023 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
33024 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
33025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33026 echo $ECHO_N "(cached) $ECHO_C" >&6
33028 cat >conftest.$ac_ext <<_ACEOF
33031 cat confdefs.h >>conftest.$ac_ext
33032 cat >>conftest.$ac_ext <<_ACEOF
33033 /* end confdefs.h. */
33034 #include <sys/types.h>
33046 rm -f conftest.$ac_objext
33047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33048 (eval $ac_compile) 2>&5
33050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33051 (exit $ac_status); } &&
33052 { ac_try='test -s conftest.$ac_objext'
33053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33054 (eval $ac_try) 2>&5
33056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057 (exit $ac_status); }; }; then
33058 eval "$as_ac_Header=yes"
33060 echo "$as_me: failed program was:" >&5
33061 sed 's/^/| /' conftest.$ac_ext >&5
33063 eval "$as_ac_Header=no"
33065 rm -f conftest.$ac_objext conftest.$ac_ext
33067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33070 cat >>confdefs.h <<_ACEOF
33071 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
33074 ac_header_dirent=$ac_hdr; break
33078 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
33079 if test $ac_header_dirent = dirent.h; then
33081 echo "$as_me:$LINENO: checking for library containing opendir" >&5
33082 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
33083 if test "${ac_cv_search_opendir+set}" = set; then
33084 echo $ECHO_N "(cached) $ECHO_C" >&6
33087 ac_func_search_save_LIBS=$LIBS
33088 ac_cv_search_opendir=no
33089 cat >conftest.$ac_ext <<_ACEOF
33092 cat confdefs.h >>conftest.$ac_ext
33093 cat >>conftest.$ac_ext <<_ACEOF
33094 /* end confdefs.h. */
33096 /* Override any gcc2 internal prototype to avoid an error. */
33100 /* We use char because int might match the return type of a gcc2
33101 builtin and then its argument prototype would still apply. */
33111 rm -f conftest.$ac_objext conftest$ac_exeext
33112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33113 (eval $ac_link) 2>&5
33115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33116 (exit $ac_status); } &&
33117 { ac_try='test -s conftest$ac_exeext'
33118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33119 (eval $ac_try) 2>&5
33121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122 (exit $ac_status); }; }; then
33123 ac_cv_search_opendir='none required'
33125 echo "$as_me: failed program was:" >&5
33126 sed 's/^/| /' conftest.$ac_ext >&5
33129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33130 if test "$ac_cv_search_opendir" = no; then
33131 for ac_lib in dir; do
33132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
33133 cat >conftest.$ac_ext <<_ACEOF
33136 cat confdefs.h >>conftest.$ac_ext
33137 cat >>conftest.$ac_ext <<_ACEOF
33138 /* end confdefs.h. */
33140 /* Override any gcc2 internal prototype to avoid an error. */
33144 /* We use char because int might match the return type of a gcc2
33145 builtin and then its argument prototype would still apply. */
33155 rm -f conftest.$ac_objext conftest$ac_exeext
33156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33157 (eval $ac_link) 2>&5
33159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33160 (exit $ac_status); } &&
33161 { ac_try='test -s conftest$ac_exeext'
33162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33163 (eval $ac_try) 2>&5
33165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166 (exit $ac_status); }; }; then
33167 ac_cv_search_opendir="-l$ac_lib"; break
33169 echo "$as_me: failed program was:" >&5
33170 sed 's/^/| /' conftest.$ac_ext >&5
33173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33176 LIBS=$ac_func_search_save_LIBS
33179 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
33180 echo "${ECHO_T}$ac_cv_search_opendir" >&6
33182 if test "$ac_cv_search_opendir" = no; then :
33185 if test "$ac_cv_search_opendir" = 'none required'; then :
33188 LIBS="$ac_cv_search_opendir $LIBS"
33195 echo "$as_me:$LINENO: checking for library containing opendir" >&5
33196 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
33197 if test "${ac_cv_search_opendir+set}" = set; then
33198 echo $ECHO_N "(cached) $ECHO_C" >&6
33201 ac_func_search_save_LIBS=$LIBS
33202 ac_cv_search_opendir=no
33203 cat >conftest.$ac_ext <<_ACEOF
33206 cat confdefs.h >>conftest.$ac_ext
33207 cat >>conftest.$ac_ext <<_ACEOF
33208 /* end confdefs.h. */
33210 /* Override any gcc2 internal prototype to avoid an error. */
33214 /* We use char because int might match the return type of a gcc2
33215 builtin and then its argument prototype would still apply. */
33225 rm -f conftest.$ac_objext conftest$ac_exeext
33226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33227 (eval $ac_link) 2>&5
33229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33230 (exit $ac_status); } &&
33231 { ac_try='test -s conftest$ac_exeext'
33232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33233 (eval $ac_try) 2>&5
33235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33236 (exit $ac_status); }; }; then
33237 ac_cv_search_opendir='none required'
33239 echo "$as_me: failed program was:" >&5
33240 sed 's/^/| /' conftest.$ac_ext >&5
33243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33244 if test "$ac_cv_search_opendir" = no; then
33245 for ac_lib in x; do
33246 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
33247 cat >conftest.$ac_ext <<_ACEOF
33250 cat confdefs.h >>conftest.$ac_ext
33251 cat >>conftest.$ac_ext <<_ACEOF
33252 /* end confdefs.h. */
33254 /* Override any gcc2 internal prototype to avoid an error. */
33258 /* We use char because int might match the return type of a gcc2
33259 builtin and then its argument prototype would still apply. */
33269 rm -f conftest.$ac_objext conftest$ac_exeext
33270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33271 (eval $ac_link) 2>&5
33273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274 (exit $ac_status); } &&
33275 { ac_try='test -s conftest$ac_exeext'
33276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33277 (eval $ac_try) 2>&5
33279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33280 (exit $ac_status); }; }; then
33281 ac_cv_search_opendir="-l$ac_lib"; break
33283 echo "$as_me: failed program was:" >&5
33284 sed 's/^/| /' conftest.$ac_ext >&5
33287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33290 LIBS=$ac_func_search_save_LIBS
33293 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
33294 echo "${ECHO_T}$ac_cv_search_opendir" >&6
33296 if test "$ac_cv_search_opendir" = no; then :
33299 if test "$ac_cv_search_opendir" = 'none required'; then :
33302 LIBS="$ac_cv_search_opendir $LIBS"
33311 # include <dirent.h>
33312 #else /* not HAVE_DIRENT_H */
33313 # define dirent direct
33314 # if HAVE_SYS_NDIR_H
33315 # include <sys/ndir.h>
33316 # endif /* HAVE_SYS_NDIR_H */
33317 # if HAVE_SYS_DIR_H
33318 # include <sys/dir.h>
33319 # endif /* HAVE_SYS_DIR_H */
33322 # endif /* HAVE_NDIR_H */
33323 #endif /* HAVE_DIRENT_H */
33326 for ac_func in dirfd
33328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33329 echo "$as_me:$LINENO: checking for $ac_func" >&5
33330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33331 if eval "test \"\${$as_ac_var+set}\" = set"; then
33332 echo $ECHO_N "(cached) $ECHO_C" >&6
33334 cat >conftest.$ac_ext <<_ACEOF
33337 cat confdefs.h >>conftest.$ac_ext
33338 cat >>conftest.$ac_ext <<_ACEOF
33339 /* end confdefs.h. */
33340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33342 #define $ac_func innocuous_$ac_func
33344 /* System header to define __stub macros and hopefully few prototypes,
33345 which can conflict with char $ac_func (); below.
33346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33347 <limits.h> exists even on freestanding compilers. */
33350 # include <limits.h>
33352 # include <assert.h>
33357 /* Override any gcc2 internal prototype to avoid an error. */
33362 /* We use char because int might match the return type of a gcc2
33363 builtin and then its argument prototype would still apply. */
33365 /* The GNU C library defines this for functions which it implements
33366 to always fail with ENOSYS. Some functions are actually named
33367 something starting with __ and the normal name is an alias. */
33368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33371 char (*f) () = $ac_func;
33380 return f != $ac_func;
33385 rm -f conftest.$ac_objext conftest$ac_exeext
33386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33387 (eval $ac_link) 2>&5
33389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33390 (exit $ac_status); } &&
33391 { ac_try='test -s conftest$ac_exeext'
33392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33393 (eval $ac_try) 2>&5
33395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33396 (exit $ac_status); }; }; then
33397 eval "$as_ac_var=yes"
33399 echo "$as_me: failed program was:" >&5
33400 sed 's/^/| /' conftest.$ac_ext >&5
33402 eval "$as_ac_var=no"
33404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33408 if test `eval echo '${'$as_ac_var'}'` = yes; then
33409 cat >>confdefs.h <<_ACEOF
33410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33416 echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
33417 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6
33418 if test "${ac_cv_have_decl_dirfd+set}" = set; then
33419 echo $ECHO_N "(cached) $ECHO_C" >&6
33421 cat >conftest.$ac_ext <<_ACEOF
33424 cat confdefs.h >>conftest.$ac_ext
33425 cat >>conftest.$ac_ext <<_ACEOF
33426 /* end confdefs.h. */
33433 char *p = (char *) dirfd;
33440 rm -f conftest.$ac_objext
33441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33442 (eval $ac_compile) 2>&5
33444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33445 (exit $ac_status); } &&
33446 { ac_try='test -s conftest.$ac_objext'
33447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33448 (eval $ac_try) 2>&5
33450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33451 (exit $ac_status); }; }; then
33452 ac_cv_have_decl_dirfd=yes
33454 echo "$as_me: failed program was:" >&5
33455 sed 's/^/| /' conftest.$ac_ext >&5
33457 ac_cv_have_decl_dirfd=no
33459 rm -f conftest.$ac_objext conftest.$ac_ext
33461 echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
33462 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6
33463 if test $ac_cv_have_decl_dirfd = yes; then
33465 cat >>confdefs.h <<_ACEOF
33466 #define HAVE_DECL_DIRFD 1
33471 cat >>confdefs.h <<_ACEOF
33472 #define HAVE_DECL_DIRFD 0
33480 echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
33481 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6
33482 if test "${jm_cv_func_dirfd_macro+set}" = set; then
33483 echo $ECHO_N "(cached) $ECHO_C" >&6
33485 cat >conftest.$ac_ext <<_ACEOF
33488 cat confdefs.h >>conftest.$ac_ext
33489 cat >>conftest.$ac_ext <<_ACEOF
33490 /* end confdefs.h. */
33493 dirent_header_defines_dirfd
33496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33497 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
33498 jm_cv_func_dirfd_macro=yes
33500 jm_cv_func_dirfd_macro=no
33505 echo "$as_me:$LINENO: result: $jm_cv_func_dirfd_macro" >&5
33506 echo "${ECHO_T}$jm_cv_func_dirfd_macro" >&6
33508 # Use the replacement only if we have no function, macro,
33509 # or declaration with that name.
33510 if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
33513 for ac_func in dirfd
33515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33516 echo "$as_me:$LINENO: checking for $ac_func" >&5
33517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33518 if eval "test \"\${$as_ac_var+set}\" = set"; then
33519 echo $ECHO_N "(cached) $ECHO_C" >&6
33521 cat >conftest.$ac_ext <<_ACEOF
33524 cat confdefs.h >>conftest.$ac_ext
33525 cat >>conftest.$ac_ext <<_ACEOF
33526 /* end confdefs.h. */
33527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33529 #define $ac_func innocuous_$ac_func
33531 /* System header to define __stub macros and hopefully few prototypes,
33532 which can conflict with char $ac_func (); below.
33533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33534 <limits.h> exists even on freestanding compilers. */
33537 # include <limits.h>
33539 # include <assert.h>
33544 /* Override any gcc2 internal prototype to avoid an error. */
33549 /* We use char because int might match the return type of a gcc2
33550 builtin and then its argument prototype would still apply. */
33552 /* The GNU C library defines this for functions which it implements
33553 to always fail with ENOSYS. Some functions are actually named
33554 something starting with __ and the normal name is an alias. */
33555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33558 char (*f) () = $ac_func;
33567 return f != $ac_func;
33572 rm -f conftest.$ac_objext conftest$ac_exeext
33573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33574 (eval $ac_link) 2>&5
33576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33577 (exit $ac_status); } &&
33578 { ac_try='test -s conftest$ac_exeext'
33579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33580 (eval $ac_try) 2>&5
33582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33583 (exit $ac_status); }; }; then
33584 eval "$as_ac_var=yes"
33586 echo "$as_me: failed program was:" >&5
33587 sed 's/^/| /' conftest.$ac_ext >&5
33589 eval "$as_ac_var=no"
33591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33595 if test `eval echo '${'$as_ac_var'}'` = yes; then
33596 cat >>confdefs.h <<_ACEOF
33597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33601 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
33606 echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
33607 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6
33608 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
33609 echo $ECHO_N "(cached) $ECHO_C" >&6
33612 dirfd_save_CFLAGS=$CFLAGS
33613 for ac_expr in d_fd dd_fd; do
33615 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
33617 cat >conftest.$ac_ext <<_ACEOF
33620 cat confdefs.h >>conftest.$ac_ext
33621 cat >>conftest.$ac_ext <<_ACEOF
33622 /* end confdefs.h. */
33628 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
33633 rm -f conftest.$ac_objext
33634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33635 (eval $ac_compile) 2>&5
33637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33638 (exit $ac_status); } &&
33639 { ac_try='test -s conftest.$ac_objext'
33640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33641 (eval $ac_try) 2>&5
33643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33644 (exit $ac_status); }; }; then
33648 echo "$as_me: failed program was:" >&5
33649 sed 's/^/| /' conftest.$ac_ext >&5
33652 rm -f conftest.$ac_objext conftest.$ac_ext
33653 CFLAGS=$dirfd_save_CFLAGS
33654 test "$dir_fd_found" = yes && break
33656 test "$dir_fd_found" = yes || ac_expr=no_such_member
33658 gl_cv_sys_dir_fd_member_name=$ac_expr
33662 echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
33663 echo "${ECHO_T}$gl_cv_sys_dir_fd_member_name" >&6
33664 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
33666 cat >>confdefs.h <<_ACEOF
33667 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
33677 for ac_header in sys/acl.h
33679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33681 echo "$as_me:$LINENO: checking for $ac_header" >&5
33682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33684 echo $ECHO_N "(cached) $ECHO_C" >&6
33686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33689 # Is the header compilable?
33690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33692 cat >conftest.$ac_ext <<_ACEOF
33695 cat confdefs.h >>conftest.$ac_ext
33696 cat >>conftest.$ac_ext <<_ACEOF
33697 /* end confdefs.h. */
33698 $ac_includes_default
33699 #include <$ac_header>
33701 rm -f conftest.$ac_objext
33702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33703 (eval $ac_compile) 2>&5
33705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33706 (exit $ac_status); } &&
33707 { ac_try='test -s conftest.$ac_objext'
33708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33709 (eval $ac_try) 2>&5
33711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33712 (exit $ac_status); }; }; then
33713 ac_header_compiler=yes
33715 echo "$as_me: failed program was:" >&5
33716 sed 's/^/| /' conftest.$ac_ext >&5
33718 ac_header_compiler=no
33720 rm -f conftest.$ac_objext conftest.$ac_ext
33721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33722 echo "${ECHO_T}$ac_header_compiler" >&6
33724 # Is the header present?
33725 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33727 cat >conftest.$ac_ext <<_ACEOF
33730 cat confdefs.h >>conftest.$ac_ext
33731 cat >>conftest.$ac_ext <<_ACEOF
33732 /* end confdefs.h. */
33733 #include <$ac_header>
33735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33738 grep -v '^ *+' conftest.er1 >conftest.err
33740 cat conftest.err >&5
33741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33742 (exit $ac_status); } >/dev/null; then
33743 if test -s conftest.err; then
33744 ac_cpp_err=$ac_c_preproc_warn_flag
33751 if test -z "$ac_cpp_err"; then
33752 ac_header_preproc=yes
33754 echo "$as_me: failed program was:" >&5
33755 sed 's/^/| /' conftest.$ac_ext >&5
33757 ac_header_preproc=no
33759 rm -f conftest.err conftest.$ac_ext
33760 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33761 echo "${ECHO_T}$ac_header_preproc" >&6
33763 # So? What about this header?
33764 case $ac_header_compiler:$ac_header_preproc in
33766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33770 ac_header_preproc=yes
33773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33776 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33777 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33778 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33779 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33780 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33783 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33784 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33787 ## ------------------------------------ ##
33788 ## Report this to bug-coreutils@gnu.org ##
33789 ## ------------------------------------ ##
33792 sed "s/^/$as_me: WARNING: /" >&2
33795 echo "$as_me:$LINENO: checking for $ac_header" >&5
33796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33798 echo $ECHO_N "(cached) $ECHO_C" >&6
33800 eval "$as_ac_Header=\$ac_header_preproc"
33802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33807 cat >>confdefs.h <<_ACEOF
33808 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33819 echo "$as_me:$LINENO: checking for $ac_func" >&5
33820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33821 if eval "test \"\${$as_ac_var+set}\" = set"; then
33822 echo $ECHO_N "(cached) $ECHO_C" >&6
33824 cat >conftest.$ac_ext <<_ACEOF
33827 cat confdefs.h >>conftest.$ac_ext
33828 cat >>conftest.$ac_ext <<_ACEOF
33829 /* end confdefs.h. */
33830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33832 #define $ac_func innocuous_$ac_func
33834 /* System header to define __stub macros and hopefully few prototypes,
33835 which can conflict with char $ac_func (); below.
33836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33837 <limits.h> exists even on freestanding compilers. */
33840 # include <limits.h>
33842 # include <assert.h>
33847 /* Override any gcc2 internal prototype to avoid an error. */
33852 /* We use char because int might match the return type of a gcc2
33853 builtin and then its argument prototype would still apply. */
33855 /* The GNU C library defines this for functions which it implements
33856 to always fail with ENOSYS. Some functions are actually named
33857 something starting with __ and the normal name is an alias. */
33858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33861 char (*f) () = $ac_func;
33870 return f != $ac_func;
33875 rm -f conftest.$ac_objext conftest$ac_exeext
33876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33877 (eval $ac_link) 2>&5
33879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33880 (exit $ac_status); } &&
33881 { ac_try='test -s conftest$ac_exeext'
33882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33883 (eval $ac_try) 2>&5
33885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33886 (exit $ac_status); }; }; then
33887 eval "$as_ac_var=yes"
33889 echo "$as_me: failed program was:" >&5
33890 sed 's/^/| /' conftest.$ac_ext >&5
33892 eval "$as_ac_var=no"
33894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33897 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33898 if test `eval echo '${'$as_ac_var'}'` = yes; then
33899 cat >>confdefs.h <<_ACEOF
33900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33913 for ac_header in sys/param.h
33915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33917 echo "$as_me:$LINENO: checking for $ac_header" >&5
33918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33920 echo $ECHO_N "(cached) $ECHO_C" >&6
33922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33925 # Is the header compilable?
33926 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33928 cat >conftest.$ac_ext <<_ACEOF
33931 cat confdefs.h >>conftest.$ac_ext
33932 cat >>conftest.$ac_ext <<_ACEOF
33933 /* end confdefs.h. */
33934 $ac_includes_default
33935 #include <$ac_header>
33937 rm -f conftest.$ac_objext
33938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33939 (eval $ac_compile) 2>&5
33941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33942 (exit $ac_status); } &&
33943 { ac_try='test -s conftest.$ac_objext'
33944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33945 (eval $ac_try) 2>&5
33947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33948 (exit $ac_status); }; }; then
33949 ac_header_compiler=yes
33951 echo "$as_me: failed program was:" >&5
33952 sed 's/^/| /' conftest.$ac_ext >&5
33954 ac_header_compiler=no
33956 rm -f conftest.$ac_objext conftest.$ac_ext
33957 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33958 echo "${ECHO_T}$ac_header_compiler" >&6
33960 # Is the header present?
33961 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33963 cat >conftest.$ac_ext <<_ACEOF
33966 cat confdefs.h >>conftest.$ac_ext
33967 cat >>conftest.$ac_ext <<_ACEOF
33968 /* end confdefs.h. */
33969 #include <$ac_header>
33971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33974 grep -v '^ *+' conftest.er1 >conftest.err
33976 cat conftest.err >&5
33977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33978 (exit $ac_status); } >/dev/null; then
33979 if test -s conftest.err; then
33980 ac_cpp_err=$ac_c_preproc_warn_flag
33987 if test -z "$ac_cpp_err"; then
33988 ac_header_preproc=yes
33990 echo "$as_me: failed program was:" >&5
33991 sed 's/^/| /' conftest.$ac_ext >&5
33993 ac_header_preproc=no
33995 rm -f conftest.err conftest.$ac_ext
33996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33997 echo "${ECHO_T}$ac_header_preproc" >&6
33999 # So? What about this header?
34000 case $ac_header_compiler:$ac_header_preproc in
34002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34006 ac_header_preproc=yes
34009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34012 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34016 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34023 ## ------------------------------------ ##
34024 ## Report this to bug-coreutils@gnu.org ##
34025 ## ------------------------------------ ##
34028 sed "s/^/$as_me: WARNING: /" >&2
34031 echo "$as_me:$LINENO: checking for $ac_header" >&5
34032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34034 echo $ECHO_N "(cached) $ECHO_C" >&6
34036 eval "$as_ac_Header=\$ac_header_preproc"
34038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34043 cat >>confdefs.h <<_ACEOF
34044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34051 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
34052 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
34053 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
34054 echo $ECHO_N "(cached) $ECHO_C" >&6
34056 cat >conftest.$ac_ext <<_ACEOF
34059 cat confdefs.h >>conftest.$ac_ext
34060 cat >>conftest.$ac_ext <<_ACEOF
34061 /* end confdefs.h. */
34062 $ac_includes_default
34067 char *p = (char *) stpcpy;
34074 rm -f conftest.$ac_objext
34075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34076 (eval $ac_compile) 2>&5
34078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34079 (exit $ac_status); } &&
34080 { ac_try='test -s conftest.$ac_objext'
34081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34082 (eval $ac_try) 2>&5
34084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34085 (exit $ac_status); }; }; then
34086 ac_cv_have_decl_stpcpy=yes
34088 echo "$as_me: failed program was:" >&5
34089 sed 's/^/| /' conftest.$ac_ext >&5
34091 ac_cv_have_decl_stpcpy=no
34093 rm -f conftest.$ac_objext conftest.$ac_ext
34095 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
34096 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
34097 if test $ac_cv_have_decl_stpcpy = yes; then
34099 cat >>confdefs.h <<_ACEOF
34100 #define HAVE_DECL_STPCPY 1
34105 cat >>confdefs.h <<_ACEOF
34106 #define HAVE_DECL_STPCPY 0
34114 # In the event that we have to use the replacement ftw.c,
34115 # see if we'll also need the replacement tsearch.c.
34116 echo "$as_me:$LINENO: checking for tdestroy" >&5
34117 echo $ECHO_N "checking for tdestroy... $ECHO_C" >&6
34118 if test "${ac_cv_func_tdestroy+set}" = set; then
34119 echo $ECHO_N "(cached) $ECHO_C" >&6
34121 cat >conftest.$ac_ext <<_ACEOF
34124 cat confdefs.h >>conftest.$ac_ext
34125 cat >>conftest.$ac_ext <<_ACEOF
34126 /* end confdefs.h. */
34127 /* Define tdestroy to an innocuous variant, in case <limits.h> declares tdestroy.
34128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34129 #define tdestroy innocuous_tdestroy
34131 /* System header to define __stub macros and hopefully few prototypes,
34132 which can conflict with char tdestroy (); below.
34133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34134 <limits.h> exists even on freestanding compilers. */
34137 # include <limits.h>
34139 # include <assert.h>
34144 /* Override any gcc2 internal prototype to avoid an error. */
34149 /* We use char because int might match the return type of a gcc2
34150 builtin and then its argument prototype would still apply. */
34152 /* The GNU C library defines this for functions which it implements
34153 to always fail with ENOSYS. Some functions are actually named
34154 something starting with __ and the normal name is an alias. */
34155 #if defined (__stub_tdestroy) || defined (__stub___tdestroy)
34158 char (*f) () = tdestroy;
34167 return f != tdestroy;
34172 rm -f conftest.$ac_objext conftest$ac_exeext
34173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34174 (eval $ac_link) 2>&5
34176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34177 (exit $ac_status); } &&
34178 { ac_try='test -s conftest$ac_exeext'
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_func_tdestroy=yes
34186 echo "$as_me: failed program was:" >&5
34187 sed 's/^/| /' conftest.$ac_ext >&5
34189 ac_cv_func_tdestroy=no
34191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34193 echo "$as_me:$LINENO: result: $ac_cv_func_tdestroy" >&5
34194 echo "${ECHO_T}$ac_cv_func_tdestroy" >&6
34195 if test $ac_cv_func_tdestroy = yes; then
34202 echo "$as_me:$LINENO: checking for ftw/FTW_CHDIR that informs callback of failed chdir" >&5
34203 echo $ECHO_N "checking for ftw/FTW_CHDIR that informs callback of failed chdir... $ECHO_C" >&6
34204 if test "${ac_cv_func_ftw_working+set}" = set; then
34205 echo $ECHO_N "(cached) $ECHO_C" >&6
34208 # The following test would fail prior to glibc-2.3.2, because `depth'
34209 # would be 2 rather than 4. Of course, now that we require FTW_DCH
34210 # and FTW_DCHP, this test fails even with GNU libc's fixed ftw.
34211 mkdir -p conftest.dir/a/b/c
34212 if test "$cross_compiling" = yes; then
34213 ac_cv_func_ftw_working=no
34215 cat >conftest.$ac_ext <<_ACEOF
34218 cat confdefs.h >>conftest.$ac_ext
34219 cat >>conftest.$ac_ext <<_ACEOF
34220 /* end confdefs.h. */
34222 #include <string.h>
34223 #include <stdlib.h>
34226 static char *_f[] = { "conftest.dir", "conftest.dir/a",
34227 "conftest.dir/a/b", "conftest.dir/a/b/c" };
34228 static char **p = _f;
34232 cb (const char *file, const struct stat *sb, int file_type, struct FTW *info)
34234 if (strcmp (file, *p++) != 0)
34243 /* Require these symbols, too. */
34247 int err = nftw ("conftest.dir", cb, 30, FTW_PHYS | FTW_MOUNT | FTW_CHDIR);
34248 exit ((err == 0 && depth == 4) ? 0 : 1);
34252 rm -f conftest$ac_exeext
34253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34254 (eval $ac_link) 2>&5
34256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34259 (eval $ac_try) 2>&5
34261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34262 (exit $ac_status); }; }; then
34263 ac_cv_func_ftw_working=yes
34265 echo "$as_me: program exited with status $ac_status" >&5
34266 echo "$as_me: failed program was:" >&5
34267 sed 's/^/| /' conftest.$ac_ext >&5
34269 ( exit $ac_status )
34270 ac_cv_func_ftw_working=no
34272 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34275 echo "$as_me:$LINENO: result: $ac_cv_func_ftw_working" >&5
34276 echo "${ECHO_T}$ac_cv_func_ftw_working" >&6
34277 rm -rf conftest.dir
34278 if test $ac_cv_func_ftw_working = no; then
34279 LIBOBJS="$LIBOBJS ftw.$ac_objext"
34280 ac_config_links="$ac_config_links $ac_config_libobj_dir/ftw.h:$ac_config_libobj_dir/ftw_.h"
34282 # Add tsearch.o IFF we have to use the replacement ftw.c.
34283 if test -n "$need_tdestroy"; then
34284 LIBOBJS="$LIBOBJS tsearch.$ac_objext"
34285 # Link search.h to search_.h if we use the replacement tsearch.c.
34286 ac_config_links="$ac_config_links $ac_config_libobj_dir/search.h:$ac_config_libobj_dir/search_.h"
34294 for ac_func in lchown
34296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34297 echo "$as_me:$LINENO: checking for $ac_func" >&5
34298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34299 if eval "test \"\${$as_ac_var+set}\" = set"; then
34300 echo $ECHO_N "(cached) $ECHO_C" >&6
34302 cat >conftest.$ac_ext <<_ACEOF
34305 cat confdefs.h >>conftest.$ac_ext
34306 cat >>conftest.$ac_ext <<_ACEOF
34307 /* end confdefs.h. */
34308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34310 #define $ac_func innocuous_$ac_func
34312 /* System header to define __stub macros and hopefully few prototypes,
34313 which can conflict with char $ac_func (); below.
34314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34315 <limits.h> exists even on freestanding compilers. */
34318 # include <limits.h>
34320 # include <assert.h>
34325 /* Override any gcc2 internal prototype to avoid an error. */
34330 /* We use char because int might match the return type of a gcc2
34331 builtin and then its argument prototype would still apply. */
34333 /* The GNU C library defines this for functions which it implements
34334 to always fail with ENOSYS. Some functions are actually named
34335 something starting with __ and the normal name is an alias. */
34336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34339 char (*f) () = $ac_func;
34348 return f != $ac_func;
34353 rm -f conftest.$ac_objext conftest$ac_exeext
34354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34355 (eval $ac_link) 2>&5
34357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34358 (exit $ac_status); } &&
34359 { ac_try='test -s conftest$ac_exeext'
34360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34361 (eval $ac_try) 2>&5
34363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34364 (exit $ac_status); }; }; then
34365 eval "$as_ac_var=yes"
34367 echo "$as_me: failed program was:" >&5
34368 sed 's/^/| /' conftest.$ac_ext >&5
34370 eval "$as_ac_var=no"
34372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34375 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34376 if test `eval echo '${'$as_ac_var'}'` = yes; then
34377 cat >>confdefs.h <<_ACEOF
34378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34382 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
34387 if test $ac_cv_func_lchown = no; then
34394 echo "$as_me:$LINENO: checking for rmdir-not-empty errno value" >&5
34395 echo $ECHO_N "checking for rmdir-not-empty errno value... $ECHO_C" >&6
34396 if test "${fetish_cv_func_rmdir_errno_not_empty+set}" = set; then
34397 echo $ECHO_N "(cached) $ECHO_C" >&6
34400 # Arrange for deletion of the temporary directory this test creates.
34401 ac_clean_files="$ac_clean_files confdir2"
34402 mkdir confdir2; : > confdir2/file
34404 if test "$cross_compiling" = yes; then
34405 fetish_cv_func_rmdir_errno_not_empty=ENOTEMPTY
34408 cat >conftest.$ac_ext <<_ACEOF
34411 cat confdefs.h >>conftest.$ac_ext
34412 cat >>conftest.$ac_ext <<_ACEOF
34413 /* end confdefs.h. */
34424 rmdir ("confdir2");
34426 s = fopen ("confdir2/errno", "w");
34427 fprintf (s, "%d\n", val);
34432 rm -f conftest$ac_exeext
34433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34434 (eval $ac_link) 2>&5
34436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34437 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34439 (eval $ac_try) 2>&5
34441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34442 (exit $ac_status); }; }; then
34443 fetish_cv_func_rmdir_errno_not_empty=`cat confdir2/errno`
34445 echo "$as_me: program exited with status $ac_status" >&5
34446 echo "$as_me: failed program was:" >&5
34447 sed 's/^/| /' conftest.$ac_ext >&5
34449 ( exit $ac_status )
34450 fetish_cv_func_rmdir_errno_not_empty='configure error in rmdir-errno.m4'
34452 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34457 echo "$as_me:$LINENO: result: $fetish_cv_func_rmdir_errno_not_empty" >&5
34458 echo "${ECHO_T}$fetish_cv_func_rmdir_errno_not_empty" >&6
34461 cat >>confdefs.h <<_ACEOF
34462 #define RMDIR_ERRNO_NOT_EMPTY $fetish_cv_func_rmdir_errno_not_empty
34467 for ac_header in unistd.h
34469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34471 echo "$as_me:$LINENO: checking for $ac_header" >&5
34472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34474 echo $ECHO_N "(cached) $ECHO_C" >&6
34476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34479 # Is the header compilable?
34480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34482 cat >conftest.$ac_ext <<_ACEOF
34485 cat confdefs.h >>conftest.$ac_ext
34486 cat >>conftest.$ac_ext <<_ACEOF
34487 /* end confdefs.h. */
34488 $ac_includes_default
34489 #include <$ac_header>
34491 rm -f conftest.$ac_objext
34492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34493 (eval $ac_compile) 2>&5
34495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34496 (exit $ac_status); } &&
34497 { ac_try='test -s conftest.$ac_objext'
34498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34499 (eval $ac_try) 2>&5
34501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34502 (exit $ac_status); }; }; then
34503 ac_header_compiler=yes
34505 echo "$as_me: failed program was:" >&5
34506 sed 's/^/| /' conftest.$ac_ext >&5
34508 ac_header_compiler=no
34510 rm -f conftest.$ac_objext conftest.$ac_ext
34511 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34512 echo "${ECHO_T}$ac_header_compiler" >&6
34514 # Is the header present?
34515 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34517 cat >conftest.$ac_ext <<_ACEOF
34520 cat confdefs.h >>conftest.$ac_ext
34521 cat >>conftest.$ac_ext <<_ACEOF
34522 /* end confdefs.h. */
34523 #include <$ac_header>
34525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34528 grep -v '^ *+' conftest.er1 >conftest.err
34530 cat conftest.err >&5
34531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34532 (exit $ac_status); } >/dev/null; then
34533 if test -s conftest.err; then
34534 ac_cpp_err=$ac_c_preproc_warn_flag
34541 if test -z "$ac_cpp_err"; then
34542 ac_header_preproc=yes
34544 echo "$as_me: failed program was:" >&5
34545 sed 's/^/| /' conftest.$ac_ext >&5
34547 ac_header_preproc=no
34549 rm -f conftest.err conftest.$ac_ext
34550 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34551 echo "${ECHO_T}$ac_header_preproc" >&6
34553 # So? What about this header?
34554 case $ac_header_compiler:$ac_header_preproc in
34556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34560 ac_header_preproc=yes
34563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34570 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34577 ## ------------------------------------ ##
34578 ## Report this to bug-coreutils@gnu.org ##
34579 ## ------------------------------------ ##
34582 sed "s/^/$as_me: WARNING: /" >&2
34585 echo "$as_me:$LINENO: checking for $ac_header" >&5
34586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34588 echo $ECHO_N "(cached) $ECHO_C" >&6
34590 eval "$as_ac_Header=\$ac_header_preproc"
34592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34597 cat >>confdefs.h <<_ACEOF
34598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34605 echo "$as_me:$LINENO: checking for working chown" >&5
34606 echo $ECHO_N "checking for working chown... $ECHO_C" >&6
34607 if test "${ac_cv_func_chown_works+set}" = set; then
34608 echo $ECHO_N "(cached) $ECHO_C" >&6
34610 if test "$cross_compiling" = yes; then
34611 ac_cv_func_chown_works=no
34613 cat >conftest.$ac_ext <<_ACEOF
34616 cat confdefs.h >>conftest.$ac_ext
34617 cat >>conftest.$ac_ext <<_ACEOF
34618 /* end confdefs.h. */
34619 $ac_includes_default
34625 char *f = "conftest.chown";
34626 struct stat before, after;
34628 if (creat (f, 0600) < 0)
34630 if (stat (f, &before) < 0)
34632 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
34634 if (stat (f, &after) < 0)
34636 exit ((before.st_uid == after.st_uid
34637 && before.st_gid == after.st_gid) ? 0 : 1);
34643 rm -f conftest$ac_exeext
34644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34645 (eval $ac_link) 2>&5
34647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34650 (eval $ac_try) 2>&5
34652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34653 (exit $ac_status); }; }; then
34654 ac_cv_func_chown_works=yes
34656 echo "$as_me: program exited with status $ac_status" >&5
34657 echo "$as_me: failed program was:" >&5
34658 sed 's/^/| /' conftest.$ac_ext >&5
34660 ( exit $ac_status )
34661 ac_cv_func_chown_works=no
34663 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34665 rm -f conftest.chown
34668 echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
34669 echo "${ECHO_T}$ac_cv_func_chown_works" >&6
34670 if test $ac_cv_func_chown_works = yes; then
34672 cat >>confdefs.h <<\_ACEOF
34673 #define HAVE_CHOWN 1
34680 if test $ac_cv_func_chown_works = no; then
34681 LIBOBJS="$LIBOBJS chown.$ac_objext"
34683 cat >>confdefs.h <<\_ACEOF
34684 #define chown rpl_chown
34701 echo "$as_me:$LINENO: checking for group_member" >&5
34702 echo $ECHO_N "checking for group_member... $ECHO_C" >&6
34703 if test "${ac_cv_func_group_member+set}" = set; then
34704 echo $ECHO_N "(cached) $ECHO_C" >&6
34706 cat >conftest.$ac_ext <<_ACEOF
34709 cat confdefs.h >>conftest.$ac_ext
34710 cat >>conftest.$ac_ext <<_ACEOF
34711 /* end confdefs.h. */
34712 /* Define group_member to an innocuous variant, in case <limits.h> declares group_member.
34713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34714 #define group_member innocuous_group_member
34716 /* System header to define __stub macros and hopefully few prototypes,
34717 which can conflict with char group_member (); below.
34718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34719 <limits.h> exists even on freestanding compilers. */
34722 # include <limits.h>
34724 # include <assert.h>
34727 #undef group_member
34729 /* Override any gcc2 internal prototype to avoid an error. */
34734 /* We use char because int might match the return type of a gcc2
34735 builtin and then its argument prototype would still apply. */
34736 char group_member ();
34737 /* The GNU C library defines this for functions which it implements
34738 to always fail with ENOSYS. Some functions are actually named
34739 something starting with __ and the normal name is an alias. */
34740 #if defined (__stub_group_member) || defined (__stub___group_member)
34743 char (*f) () = group_member;
34752 return f != group_member;
34757 rm -f conftest.$ac_objext conftest$ac_exeext
34758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34759 (eval $ac_link) 2>&5
34761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34762 (exit $ac_status); } &&
34763 { ac_try='test -s conftest$ac_exeext'
34764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34765 (eval $ac_try) 2>&5
34767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34768 (exit $ac_status); }; }; then
34769 ac_cv_func_group_member=yes
34771 echo "$as_me: failed program was:" >&5
34772 sed 's/^/| /' conftest.$ac_ext >&5
34774 ac_cv_func_group_member=no
34776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34778 echo "$as_me:$LINENO: result: $ac_cv_func_group_member" >&5
34779 echo "${ECHO_T}$ac_cv_func_group_member" >&6
34780 if test $ac_cv_func_group_member = yes; then
34784 LIBOBJS="$LIBOBJS group-member.$ac_objext"
34801 echo "$as_me:$LINENO: checking for AFS" >&5
34802 echo $ECHO_N "checking for AFS... $ECHO_C" >&6
34803 if test -d /afs; then
34805 cat >>confdefs.h <<\_ACEOF
34813 echo "$as_me:$LINENO: result: $ac_result" >&5
34814 echo "${ECHO_T}$ac_result" >&6
34816 echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink specified with a trailing slash" >&5
34817 echo $ECHO_N "checking whether link(2) dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
34818 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
34819 echo $ECHO_N "(cached) $ECHO_C" >&6
34822 test -z "$ac_cv_header_unistd_h" \
34824 for ac_header in unistd.h
34826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34828 echo "$as_me:$LINENO: checking for $ac_header" >&5
34829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34831 echo $ECHO_N "(cached) $ECHO_C" >&6
34833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34836 # Is the header compilable?
34837 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34839 cat >conftest.$ac_ext <<_ACEOF
34842 cat confdefs.h >>conftest.$ac_ext
34843 cat >>conftest.$ac_ext <<_ACEOF
34844 /* end confdefs.h. */
34845 $ac_includes_default
34846 #include <$ac_header>
34848 rm -f conftest.$ac_objext
34849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34850 (eval $ac_compile) 2>&5
34852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34853 (exit $ac_status); } &&
34854 { ac_try='test -s conftest.$ac_objext'
34855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34856 (eval $ac_try) 2>&5
34858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34859 (exit $ac_status); }; }; then
34860 ac_header_compiler=yes
34862 echo "$as_me: failed program was:" >&5
34863 sed 's/^/| /' conftest.$ac_ext >&5
34865 ac_header_compiler=no
34867 rm -f conftest.$ac_objext conftest.$ac_ext
34868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34869 echo "${ECHO_T}$ac_header_compiler" >&6
34871 # Is the header present?
34872 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34874 cat >conftest.$ac_ext <<_ACEOF
34877 cat confdefs.h >>conftest.$ac_ext
34878 cat >>conftest.$ac_ext <<_ACEOF
34879 /* end confdefs.h. */
34880 #include <$ac_header>
34882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34885 grep -v '^ *+' conftest.er1 >conftest.err
34887 cat conftest.err >&5
34888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34889 (exit $ac_status); } >/dev/null; then
34890 if test -s conftest.err; then
34891 ac_cpp_err=$ac_c_preproc_warn_flag
34898 if test -z "$ac_cpp_err"; then
34899 ac_header_preproc=yes
34901 echo "$as_me: failed program was:" >&5
34902 sed 's/^/| /' conftest.$ac_ext >&5
34904 ac_header_preproc=no
34906 rm -f conftest.err conftest.$ac_ext
34907 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34908 echo "${ECHO_T}$ac_header_preproc" >&6
34910 # So? What about this header?
34911 case $ac_header_compiler:$ac_header_preproc in
34913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34917 ac_header_preproc=yes
34920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34923 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34927 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34934 ## ------------------------------------ ##
34935 ## Report this to bug-coreutils@gnu.org ##
34936 ## ------------------------------------ ##
34939 sed "s/^/$as_me: WARNING: /" >&2
34942 echo "$as_me:$LINENO: checking for $ac_header" >&5
34943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34945 echo $ECHO_N "(cached) $ECHO_C" >&6
34947 eval "$as_ac_Header=\$ac_header_preproc"
34949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34954 cat >>confdefs.h <<_ACEOF
34955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34963 # Create a regular file.
34964 echo > conftest.file
34966 if test "$cross_compiling" = yes; then
34967 jm_ac_cv_func_link_follows_symlink=yes
34969 cat >conftest.$ac_ext <<_ACEOF
34972 cat confdefs.h >>conftest.$ac_ext
34973 cat >>conftest.$ac_ext <<_ACEOF
34974 /* end confdefs.h. */
34976 # include <sys/types.h>
34977 # include <sys/stat.h>
34978 # ifdef HAVE_UNISTD_H
34979 # include <unistd.h>
34982 # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
34983 ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
34984 && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
34989 const char *file = "conftest.file";
34990 const char *sym = "conftest.sym";
34991 const char *hard = "conftest.hard";
34992 struct stat sb_file, sb_hard;
34994 /* Create a symlink to the regular file. */
34995 if (symlink (file, sym))
34998 /* Create a hard link to that symlink. */
34999 if (link (sym, hard))
35002 if (lstat (hard, &sb_hard))
35004 if (lstat (file, &sb_file))
35007 /* If the dev/inode of hard and file are the same, then
35008 the link call followed the symlink. */
35009 return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
35013 rm -f conftest$ac_exeext
35014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35015 (eval $ac_link) 2>&5
35017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35020 (eval $ac_try) 2>&5
35022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35023 (exit $ac_status); }; }; then
35024 jm_ac_cv_func_link_follows_symlink=yes
35026 echo "$as_me: program exited with status $ac_status" >&5
35027 echo "$as_me: failed program was:" >&5
35028 sed 's/^/| /' conftest.$ac_ext >&5
35030 ( exit $ac_status )
35031 jm_ac_cv_func_link_follows_symlink=no
35033 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35037 echo "$as_me:$LINENO: result: $jm_ac_cv_func_link_follows_symlink" >&5
35038 echo "${ECHO_T}$jm_ac_cv_func_link_follows_symlink" >&6
35039 if test $jm_ac_cv_func_link_follows_symlink = yes; then
35041 cat >>confdefs.h <<\_ACEOF
35042 #define LINK_FOLLOWS_SYMLINKS 1
35049 for ac_header in stdio_ext.h
35051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35053 echo "$as_me:$LINENO: checking for $ac_header" >&5
35054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35056 echo $ECHO_N "(cached) $ECHO_C" >&6
35058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35061 # Is the header compilable?
35062 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35064 cat >conftest.$ac_ext <<_ACEOF
35067 cat confdefs.h >>conftest.$ac_ext
35068 cat >>conftest.$ac_ext <<_ACEOF
35069 /* end confdefs.h. */
35070 $ac_includes_default
35071 #include <$ac_header>
35073 rm -f conftest.$ac_objext
35074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35075 (eval $ac_compile) 2>&5
35077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35078 (exit $ac_status); } &&
35079 { ac_try='test -s conftest.$ac_objext'
35080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35081 (eval $ac_try) 2>&5
35083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35084 (exit $ac_status); }; }; then
35085 ac_header_compiler=yes
35087 echo "$as_me: failed program was:" >&5
35088 sed 's/^/| /' conftest.$ac_ext >&5
35090 ac_header_compiler=no
35092 rm -f conftest.$ac_objext conftest.$ac_ext
35093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35094 echo "${ECHO_T}$ac_header_compiler" >&6
35096 # Is the header present?
35097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35099 cat >conftest.$ac_ext <<_ACEOF
35102 cat confdefs.h >>conftest.$ac_ext
35103 cat >>conftest.$ac_ext <<_ACEOF
35104 /* end confdefs.h. */
35105 #include <$ac_header>
35107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35110 grep -v '^ *+' conftest.er1 >conftest.err
35112 cat conftest.err >&5
35113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35114 (exit $ac_status); } >/dev/null; then
35115 if test -s conftest.err; then
35116 ac_cpp_err=$ac_c_preproc_warn_flag
35123 if test -z "$ac_cpp_err"; then
35124 ac_header_preproc=yes
35126 echo "$as_me: failed program was:" >&5
35127 sed 's/^/| /' conftest.$ac_ext >&5
35129 ac_header_preproc=no
35131 rm -f conftest.err conftest.$ac_ext
35132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35133 echo "${ECHO_T}$ac_header_preproc" >&6
35135 # So? What about this header?
35136 case $ac_header_compiler:$ac_header_preproc in
35138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35142 ac_header_preproc=yes
35145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35152 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35159 ## ------------------------------------ ##
35160 ## Report this to bug-coreutils@gnu.org ##
35161 ## ------------------------------------ ##
35164 sed "s/^/$as_me: WARNING: /" >&2
35167 echo "$as_me:$LINENO: checking for $ac_header" >&5
35168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35170 echo $ECHO_N "(cached) $ECHO_C" >&6
35172 eval "$as_ac_Header=\$ac_header_preproc"
35174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35179 cat >>confdefs.h <<_ACEOF
35180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35188 for ac_func in __fpending
35190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35191 echo "$as_me:$LINENO: checking for $ac_func" >&5
35192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35193 if eval "test \"\${$as_ac_var+set}\" = set"; then
35194 echo $ECHO_N "(cached) $ECHO_C" >&6
35196 cat >conftest.$ac_ext <<_ACEOF
35199 cat confdefs.h >>conftest.$ac_ext
35200 cat >>conftest.$ac_ext <<_ACEOF
35201 /* end confdefs.h. */
35202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35204 #define $ac_func innocuous_$ac_func
35206 /* System header to define __stub macros and hopefully few prototypes,
35207 which can conflict with char $ac_func (); below.
35208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35209 <limits.h> exists even on freestanding compilers. */
35212 # include <limits.h>
35214 # include <assert.h>
35219 /* Override any gcc2 internal prototype to avoid an error. */
35224 /* We use char because int might match the return type of a gcc2
35225 builtin and then its argument prototype would still apply. */
35227 /* The GNU C library defines this for functions which it implements
35228 to always fail with ENOSYS. Some functions are actually named
35229 something starting with __ and the normal name is an alias. */
35230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35233 char (*f) () = $ac_func;
35242 return f != $ac_func;
35247 rm -f conftest.$ac_objext conftest$ac_exeext
35248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35249 (eval $ac_link) 2>&5
35251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35252 (exit $ac_status); } &&
35253 { ac_try='test -s conftest$ac_exeext'
35254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35255 (eval $ac_try) 2>&5
35257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35258 (exit $ac_status); }; }; then
35259 eval "$as_ac_var=yes"
35261 echo "$as_me: failed program was:" >&5
35262 sed 's/^/| /' conftest.$ac_ext >&5
35264 eval "$as_ac_var=no"
35266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35270 if test `eval echo '${'$as_ac_var'}'` = yes; then
35271 cat >>confdefs.h <<_ACEOF
35272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35276 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
35282 # if HAVE_STDIO_EXT_H
35283 # include <stdio_ext.h>
35286 echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
35287 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6
35288 if test "${ac_cv_have_decl___fpending+set}" = set; then
35289 echo $ECHO_N "(cached) $ECHO_C" >&6
35291 cat >conftest.$ac_ext <<_ACEOF
35294 cat confdefs.h >>conftest.$ac_ext
35295 cat >>conftest.$ac_ext <<_ACEOF
35296 /* end confdefs.h. */
35303 char *p = (char *) __fpending;
35310 rm -f conftest.$ac_objext
35311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35312 (eval $ac_compile) 2>&5
35314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315 (exit $ac_status); } &&
35316 { ac_try='test -s conftest.$ac_objext'
35317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35318 (eval $ac_try) 2>&5
35320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35321 (exit $ac_status); }; }; then
35322 ac_cv_have_decl___fpending=yes
35324 echo "$as_me: failed program was:" >&5
35325 sed 's/^/| /' conftest.$ac_ext >&5
35327 ac_cv_have_decl___fpending=no
35329 rm -f conftest.$ac_objext conftest.$ac_ext
35331 echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
35332 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6
35333 if test $ac_cv_have_decl___fpending = yes; then
35335 cat >>confdefs.h <<_ACEOF
35336 #define HAVE_DECL___FPENDING 1
35341 cat >>confdefs.h <<_ACEOF
35342 #define HAVE_DECL___FPENDING 0
35349 if test $ac_cv_func___fpending = no; then
35350 echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
35351 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6
35352 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
35353 echo $ECHO_N "(cached) $ECHO_C" >&6
35359 'fp->_IO_write_ptr - fp->_IO_write_base' \
35361 '# traditional Unix' \
35362 'fp->_ptr - fp->_base' \
35365 'fp->_p - fp->_bf._base' \
35367 '# SCO, Unixware' \
35368 'fp->__ptr - fp->__base' \
35371 'fp->__bufp - fp->__buffer' \
35373 '# old glibc iostream?' \
35374 'fp->_pptr - fp->_pbase' \
35377 '(*fp)->_ptr - (*fp)->_base' \
35379 '# e.g., DGUX R4.11; the info is not available' \
35383 # Skip each embedded comment.
35384 case "$ac_expr" in '#'*) continue;; esac
35387 cat >conftest.$ac_ext <<_ACEOF
35390 cat confdefs.h >>conftest.$ac_ext
35391 cat >>conftest.$ac_ext <<_ACEOF
35392 /* end confdefs.h. */
35398 FILE *fp = stdin; (void) ($ac_expr);
35403 rm -f conftest.$ac_objext
35404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35405 (eval $ac_compile) 2>&5
35407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35408 (exit $ac_status); } &&
35409 { ac_try='test -s conftest.$ac_objext'
35410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35411 (eval $ac_try) 2>&5
35413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35414 (exit $ac_status); }; }; then
35418 echo "$as_me: failed program was:" >&5
35419 sed 's/^/| /' conftest.$ac_ext >&5
35422 rm -f conftest.$ac_objext conftest.$ac_ext
35423 test "$fp_done" = yes && break
35426 ac_cv_sys_pending_output_n_bytes=$ac_expr
35430 echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
35431 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6
35433 cat >>confdefs.h <<_ACEOF
35434 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
35441 gt_cv_header_inttypes_h=$ac_cv_header_inttypes_h
35445 if test $gt_cv_header_inttypes_h = yes; then
35446 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
35447 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
35448 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
35449 echo $ECHO_N "(cached) $ECHO_C" >&6
35453 cat >conftest.$ac_ext <<_ACEOF
35456 cat confdefs.h >>conftest.$ac_ext
35457 cat >>conftest.$ac_ext <<_ACEOF
35458 /* end confdefs.h. */
35459 #include <inttypes.h>
35472 rm -f conftest.$ac_objext
35473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35474 (eval $ac_compile) 2>&5
35476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35477 (exit $ac_status); } &&
35478 { ac_try='test -s conftest.$ac_objext'
35479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35480 (eval $ac_try) 2>&5
35482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35483 (exit $ac_status); }; }; then
35484 gt_cv_inttypes_pri_broken=no
35486 echo "$as_me: failed program was:" >&5
35487 sed 's/^/| /' conftest.$ac_ext >&5
35489 gt_cv_inttypes_pri_broken=yes
35491 rm -f conftest.$ac_objext conftest.$ac_ext
35494 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
35495 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
35497 if test "$gt_cv_inttypes_pri_broken" = yes; then
35499 cat >>confdefs.h <<_ACEOF
35500 #define PRI_MACROS_BROKEN 1
35507 if test $ac_cv_func_getgroups_works = no; then
35508 LIBOBJS="$LIBOBJS getgroups.$ac_objext"
35510 cat >>confdefs.h <<\_ACEOF
35511 #define getgroups rpl_getgroups
35518 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
35520 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
35521 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
35522 if test "${ac_cv_sys_largefile_source+set}" = set; then
35523 echo $ECHO_N "(cached) $ECHO_C" >&6
35526 ac_cv_sys_largefile_source=no
35527 cat >conftest.$ac_ext <<_ACEOF
35530 cat confdefs.h >>conftest.$ac_ext
35531 cat >>conftest.$ac_ext <<_ACEOF
35532 /* end confdefs.h. */
35542 rm -f conftest.$ac_objext
35543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35544 (eval $ac_compile) 2>&5
35546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35547 (exit $ac_status); } &&
35548 { ac_try='test -s conftest.$ac_objext'
35549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35550 (eval $ac_try) 2>&5
35552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35553 (exit $ac_status); }; }; then
35556 echo "$as_me: failed program was:" >&5
35557 sed 's/^/| /' conftest.$ac_ext >&5
35560 rm -f conftest.$ac_objext conftest.$ac_ext
35561 cat >conftest.$ac_ext <<_ACEOF
35564 cat confdefs.h >>conftest.$ac_ext
35565 cat >>conftest.$ac_ext <<_ACEOF
35566 /* end confdefs.h. */
35567 #define _LARGEFILE_SOURCE 1
35577 rm -f conftest.$ac_objext
35578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35579 (eval $ac_compile) 2>&5
35581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35582 (exit $ac_status); } &&
35583 { ac_try='test -s conftest.$ac_objext'
35584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35585 (eval $ac_try) 2>&5
35587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35588 (exit $ac_status); }; }; then
35589 ac_cv_sys_largefile_source=1; break
35591 echo "$as_me: failed program was:" >&5
35592 sed 's/^/| /' conftest.$ac_ext >&5
35595 rm -f conftest.$ac_objext conftest.$ac_ext
35599 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
35600 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
35601 if test "$ac_cv_sys_largefile_source" != no; then
35603 cat >>confdefs.h <<_ACEOF
35604 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
35610 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
35611 # in glibc 2.1.3, but that breaks too many other things.
35612 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
35613 echo "$as_me:$LINENO: checking for fseeko" >&5
35614 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
35615 if test "${ac_cv_func_fseeko+set}" = set; then
35616 echo $ECHO_N "(cached) $ECHO_C" >&6
35618 cat >conftest.$ac_ext <<_ACEOF
35621 cat confdefs.h >>conftest.$ac_ext
35622 cat >>conftest.$ac_ext <<_ACEOF
35623 /* end confdefs.h. */
35628 return fseeko && fseeko (stdin, 0, 0);
35633 rm -f conftest.$ac_objext conftest$ac_exeext
35634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35635 (eval $ac_link) 2>&5
35637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35638 (exit $ac_status); } &&
35639 { ac_try='test -s conftest$ac_exeext'
35640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35641 (eval $ac_try) 2>&5
35643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35644 (exit $ac_status); }; }; then
35645 ac_cv_func_fseeko=yes
35647 echo "$as_me: failed program was:" >&5
35648 sed 's/^/| /' conftest.$ac_ext >&5
35650 ac_cv_func_fseeko=no
35652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35654 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
35655 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
35656 if test $ac_cv_func_fseeko = yes; then
35658 cat >>confdefs.h <<\_ACEOF
35659 #define HAVE_FSEEKO 1
35665 echo "$as_me:$LINENO: checking for /proc/uptime" >&5
35666 echo $ECHO_N "checking for /proc/uptime... $ECHO_C" >&6
35667 if test "${jm_cv_have_proc_uptime+set}" = set; then
35668 echo $ECHO_N "(cached) $ECHO_C" >&6
35670 jm_cv_have_proc_uptime=no
35671 test -f /proc/uptime \
35672 && test "$cross_compiling" = no \
35673 && cat < /proc/uptime >/dev/null 2>/dev/null \
35674 && jm_cv_have_proc_uptime=yes
35676 echo "$as_me:$LINENO: result: $jm_cv_have_proc_uptime" >&5
35677 echo "${ECHO_T}$jm_cv_have_proc_uptime" >&6
35678 if test $jm_cv_have_proc_uptime = yes; then
35680 cat >>confdefs.h <<\_ACEOF
35681 #define HAVE_PROC_UPTIME 1
35688 for ac_func in ftruncate
35690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35691 echo "$as_me:$LINENO: checking for $ac_func" >&5
35692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35693 if eval "test \"\${$as_ac_var+set}\" = set"; then
35694 echo $ECHO_N "(cached) $ECHO_C" >&6
35696 cat >conftest.$ac_ext <<_ACEOF
35699 cat confdefs.h >>conftest.$ac_ext
35700 cat >>conftest.$ac_ext <<_ACEOF
35701 /* end confdefs.h. */
35702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35704 #define $ac_func innocuous_$ac_func
35706 /* System header to define __stub macros and hopefully few prototypes,
35707 which can conflict with char $ac_func (); below.
35708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35709 <limits.h> exists even on freestanding compilers. */
35712 # include <limits.h>
35714 # include <assert.h>
35719 /* Override any gcc2 internal prototype to avoid an error. */
35724 /* We use char because int might match the return type of a gcc2
35725 builtin and then its argument prototype would still apply. */
35727 /* The GNU C library defines this for functions which it implements
35728 to always fail with ENOSYS. Some functions are actually named
35729 something starting with __ and the normal name is an alias. */
35730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35733 char (*f) () = $ac_func;
35742 return f != $ac_func;
35747 rm -f conftest.$ac_objext conftest$ac_exeext
35748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35749 (eval $ac_link) 2>&5
35751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35752 (exit $ac_status); } &&
35753 { ac_try='test -s conftest$ac_exeext'
35754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35755 (eval $ac_try) 2>&5
35757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35758 (exit $ac_status); }; }; then
35759 eval "$as_ac_var=yes"
35761 echo "$as_me: failed program was:" >&5
35762 sed 's/^/| /' conftest.$ac_ext >&5
35764 eval "$as_ac_var=no"
35766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35770 if test `eval echo '${'$as_ac_var'}'` = yes; then
35771 cat >>confdefs.h <<_ACEOF
35772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35776 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
35781 if test $ac_cv_func_ftruncate = no; then
35791 for ac_func in chsize
35793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35794 echo "$as_me:$LINENO: checking for $ac_func" >&5
35795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35796 if eval "test \"\${$as_ac_var+set}\" = set"; then
35797 echo $ECHO_N "(cached) $ECHO_C" >&6
35799 cat >conftest.$ac_ext <<_ACEOF
35802 cat confdefs.h >>conftest.$ac_ext
35803 cat >>conftest.$ac_ext <<_ACEOF
35804 /* end confdefs.h. */
35805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35807 #define $ac_func innocuous_$ac_func
35809 /* System header to define __stub macros and hopefully few prototypes,
35810 which can conflict with char $ac_func (); below.
35811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35812 <limits.h> exists even on freestanding compilers. */
35815 # include <limits.h>
35817 # include <assert.h>
35822 /* Override any gcc2 internal prototype to avoid an error. */
35827 /* We use char because int might match the return type of a gcc2
35828 builtin and then its argument prototype would still apply. */
35830 /* The GNU C library defines this for functions which it implements
35831 to always fail with ENOSYS. Some functions are actually named
35832 something starting with __ and the normal name is an alias. */
35833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35836 char (*f) () = $ac_func;
35845 return f != $ac_func;
35850 rm -f conftest.$ac_objext conftest$ac_exeext
35851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35852 (eval $ac_link) 2>&5
35854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35855 (exit $ac_status); } &&
35856 { ac_try='test -s conftest$ac_exeext'
35857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35858 (eval $ac_try) 2>&5
35860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35861 (exit $ac_status); }; }; then
35862 eval "$as_ac_var=yes"
35864 echo "$as_me: failed program was:" >&5
35865 sed 's/^/| /' conftest.$ac_ext >&5
35867 eval "$as_ac_var=no"
35869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35872 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35873 if test `eval echo '${'$as_ac_var'}'` = yes; then
35874 cat >>confdefs.h <<_ACEOF
35875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35884 echo "$as_me:$LINENO: checking for function prototypes" >&5
35885 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
35886 if test "$ac_cv_prog_cc_stdc" != no; then
35887 echo "$as_me:$LINENO: result: yes" >&5
35888 echo "${ECHO_T}yes" >&6
35890 cat >>confdefs.h <<\_ACEOF
35891 #define PROTOTYPES 1
35895 cat >>confdefs.h <<\_ACEOF
35896 #define __PROTOTYPES 1
35900 echo "$as_me:$LINENO: result: no" >&5
35901 echo "${ECHO_T}no" >&6
35905 echo "$as_me:$LINENO: checking determine how many files may be open simultaneously" >&5
35906 echo $ECHO_N "checking determine how many files may be open simultaneously... $ECHO_C" >&6
35907 if test "${utils_cv_sys_open_max+set}" = set; then
35908 echo $ECHO_N "(cached) $ECHO_C" >&6
35911 if test "$cross_compiling" = yes; then
35912 utils_cv_sys_open_max='cross compiling run-test in open-max.m4'
35914 cat >conftest.$ac_ext <<_ACEOF
35917 cat confdefs.h >>conftest.$ac_ext
35918 cat >>conftest.$ac_ext <<_ACEOF
35919 /* end confdefs.h. */
35922 #include <stdlib.h>
35923 #include <unistd.h>
35927 FILE *result = fopen ("conftest.omax", "w");
35929 /* Impose an arbitrary limit, in case some system has no
35930 effective limit on the number of simultaneously open files. */
35933 FILE *s = fopen ("conftest.op", "w");
35938 fprintf (result, "%d\n", i);
35939 exit (fclose (result) == EOF);
35943 rm -f conftest$ac_exeext
35944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35945 (eval $ac_link) 2>&5
35947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35950 (eval $ac_try) 2>&5
35952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35953 (exit $ac_status); }; }; then
35954 utils_cv_sys_open_max=`cat conftest.omax`
35956 echo "$as_me: program exited with status $ac_status" >&5
35957 echo "$as_me: failed program was:" >&5
35958 sed 's/^/| /' conftest.$ac_ext >&5
35960 ( exit $ac_status )
35961 utils_cv_sys_open_max='internal error in open-max.m4'
35963 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35966 echo "$as_me:$LINENO: result: $utils_cv_sys_open_max" >&5
35967 echo "${ECHO_T}$utils_cv_sys_open_max" >&6
35970 cat >>confdefs.h <<_ACEOF
35971 #define UTILS_OPEN_MAX $utils_cv_sys_open_max
35976 echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
35977 echo $ECHO_N "checking whether getcwd is declared... $ECHO_C" >&6
35978 if test "${ac_cv_have_decl_getcwd+set}" = set; then
35979 echo $ECHO_N "(cached) $ECHO_C" >&6
35981 cat >conftest.$ac_ext <<_ACEOF
35984 cat confdefs.h >>conftest.$ac_ext
35985 cat >>conftest.$ac_ext <<_ACEOF
35986 /* end confdefs.h. */
35987 $ac_includes_default
35992 char *p = (char *) getcwd;
35999 rm -f conftest.$ac_objext
36000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36001 (eval $ac_compile) 2>&5
36003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36004 (exit $ac_status); } &&
36005 { ac_try='test -s conftest.$ac_objext'
36006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36007 (eval $ac_try) 2>&5
36009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36010 (exit $ac_status); }; }; then
36011 ac_cv_have_decl_getcwd=yes
36013 echo "$as_me: failed program was:" >&5
36014 sed 's/^/| /' conftest.$ac_ext >&5
36016 ac_cv_have_decl_getcwd=no
36018 rm -f conftest.$ac_objext conftest.$ac_ext
36020 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
36021 echo "${ECHO_T}$ac_cv_have_decl_getcwd" >&6
36022 if test $ac_cv_have_decl_getcwd = yes; then
36024 cat >>confdefs.h <<_ACEOF
36025 #define HAVE_DECL_GETCWD 1
36030 cat >>confdefs.h <<_ACEOF
36031 #define HAVE_DECL_GETCWD 0
36038 echo "$as_me:$LINENO: checking whether getcwd properly handles paths longer than PATH_MAX" >&5
36039 echo $ECHO_N "checking whether getcwd properly handles paths longer than PATH_MAX... $ECHO_C" >&6
36040 if test "${gl_cv_func_getcwd_vs_path_max+set}" = set; then
36041 echo $ECHO_N "(cached) $ECHO_C" >&6
36044 # Arrange for deletion of the temporary directory this test creates.
36045 ac_clean_files="$ac_clean_files confdir3"
36046 if test "$cross_compiling" = yes; then
36047 gl_cv_func_getcwd_vs_path_max=no
36049 cat >conftest.$ac_ext <<_ACEOF
36052 cat confdefs.h >>conftest.$ac_ext
36053 cat >>conftest.$ac_ext <<_ACEOF
36054 /* end confdefs.h. */
36056 #include <stdlib.h>
36057 #include <unistd.h>
36058 #include <string.h>
36059 #include <limits.h>
36060 #include <sys/stat.h>
36061 #include <sys/types.h>
36063 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
36067 # define CHAR_BIT 8
36070 /* The extra casts work around common compiler bugs. */
36071 #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
36072 /* The outer cast is needed to work around a bug in Cray C 5.0.3.0.
36073 It is necessary at least when t == time_t. */
36074 #define TYPE_MINIMUM(t) ((t) (TYPE_SIGNED (t) \
36075 ? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) : (t) 0))
36076 #define TYPE_MAXIMUM(t) ((t) (~ (t) 0 - TYPE_MINIMUM (t)))
36079 # define INT_MAX TYPE_MAXIMUM (int)
36082 /* The length of this name must be 8. */
36083 #define DIR_NAME "confdir3"
36089 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
36090 at least not on a local file system. And if we were to start worrying
36091 about remote file systems, we'd have to enable the wrapper function
36092 all of the time, just to be safe. That's not worth the cost. */
36094 #elif INT_MAX - 9 <= PATH_MAX
36095 /* The '9', above, comes from strlen (DIR_NAME) + 1. */
36096 /* FIXME: Assuming there's a system for which this is true,
36097 this should be done in a compile test. */
36100 char buf[PATH_MAX + 20];
36101 char *cwd = getcwd (buf, PATH_MAX);
36104 size_t n_chdirs = 0;
36109 cwd_len = strlen (cwd);
36116 cwd_len += 1 + strlen (DIR_NAME);
36117 /* If mkdir or chdir fails, be pessimistic and consider that
36118 as a failure, too. */
36119 if (mkdir (DIR_NAME, 0700) < 0 || chdir (DIR_NAME) < 0)
36124 if ((c = getcwd (buf, PATH_MAX)) == NULL)
36126 /* This allows any failure to indicate there is no bug.
36127 FIXME: check errno? */
36130 if ((len = strlen (c)) != cwd_len)
36136 if (PATH_MAX < len)
36140 /* Leaving behind such a deep directory is not polite.
36141 So clean up here, right away, even though the driving
36142 shell script would also clean up. */
36146 /* Unlink first, in case the chdir failed. */
36148 for (i = 0; i <= n_chdirs; i++)
36150 if (chdir ("..") < 0)
36161 rm -f conftest$ac_exeext
36162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36163 (eval $ac_link) 2>&5
36165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36168 (eval $ac_try) 2>&5
36170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36171 (exit $ac_status); }; }; then
36172 gl_cv_func_getcwd_vs_path_max=yes
36174 echo "$as_me: program exited with status $ac_status" >&5
36175 echo "$as_me: failed program was:" >&5
36176 sed 's/^/| /' conftest.$ac_ext >&5
36178 ( exit $ac_status )
36179 gl_cv_func_getcwd_vs_path_max=no
36181 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36184 echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_vs_path_max" >&5
36185 echo "${ECHO_T}$gl_cv_func_getcwd_vs_path_max" >&6
36187 if test $gl_cv_func_getcwd_vs_path_max = yes; then
36188 LIBOBJS="$LIBOBJS getcwd.$ac_objext"
36190 cat >>confdefs.h <<\_ACEOF
36191 #define getcwd rpl_getcwd
36204 echo "$as_me:$LINENO: checking for working readdir" >&5
36205 echo $ECHO_N "checking for working readdir... $ECHO_C" >&6
36206 if test "${gl_cv_func_working_readdir+set}" = set; then
36207 echo $ECHO_N "(cached) $ECHO_C" >&6
36209 # Arrange for deletion of the temporary directory this test creates, in
36210 # case the test itself fails to delete everything -- as happens on Sunos.
36211 ac_clean_files="$ac_clean_files conf-dir"
36214 if test "$cross_compiling" = yes; then
36215 gl_cv_func_working_readdir=no
36217 cat >conftest.$ac_ext <<_ACEOF
36220 cat confdefs.h >>conftest.$ac_ext
36221 cat >>conftest.$ac_ext <<_ACEOF
36222 /* end confdefs.h. */
36223 # include <stdio.h>
36224 # include <sys/types.h>
36226 # include <string.h>
36229 # ifdef HAVE_DIRENT_H
36230 # include <dirent.h>
36231 # define NLENGTH(direct) (strlen((direct)->d_name))
36232 # else /* not HAVE_DIRENT_H */
36233 # define dirent direct
36234 # define NLENGTH(direct) ((direct)->d_namlen)
36235 # ifdef HAVE_SYS_NDIR_H
36236 # include <sys/ndir.h>
36237 # endif /* HAVE_SYS_NDIR_H */
36238 # ifdef HAVE_SYS_DIR_H
36239 # include <sys/dir.h>
36240 # endif /* HAVE_SYS_DIR_H */
36241 # ifdef HAVE_NDIR_H
36243 # endif /* HAVE_NDIR_H */
36244 # endif /* HAVE_DIRENT_H */
36246 # define DOT_OR_DOTDOT(Basename) \
36247 (Basename[0] == '.' && (Basename[1] == '\0' \
36248 || (Basename[1] == '.' && Basename[2] == '\0')))
36250 /* Don't try to use replacement mkdir; it wouldn't resolve at link time. */
36254 create_N_file_dir (const char *dir, size_t n_files)
36258 if (mkdir (dir, 0700))
36263 for (i = 0; i < n_files; i++)
36268 sprintf (file_name, "%03d", i);
36269 out = fopen (file_name, "w");
36272 if (fclose (out) == EOF)
36281 remove_dir (const char *dir)
36288 dirp = opendir (".");
36294 struct dirent *dp = readdir (dirp);
36298 if (DOT_OR_DOTDOT (dp->d_name))
36301 if (unlink (dp->d_name))
36316 const char *dir = "conf-dir";
36317 create_N_file_dir (dir, 500);
36322 rm -f conftest$ac_exeext
36323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36324 (eval $ac_link) 2>&5
36326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36329 (eval $ac_try) 2>&5
36331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36332 (exit $ac_status); }; }; then
36333 gl_cv_func_working_readdir=yes
36335 echo "$as_me: program exited with status $ac_status" >&5
36336 echo "$as_me: failed program was:" >&5
36337 sed 's/^/| /' conftest.$ac_ext >&5
36339 ( exit $ac_status )
36340 gl_cv_func_working_readdir=no
36342 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36345 echo "$as_me:$LINENO: result: $gl_cv_func_working_readdir" >&5
36346 echo "${ECHO_T}$gl_cv_func_working_readdir" >&6
36348 if test $gl_cv_func_working_readdir = yes; then
36350 cat >>confdefs.h <<\_ACEOF
36351 #define HAVE_WORKING_READDIR 1
36357 if test "X$prefix" = "XNONE"; then
36358 acl_final_prefix="$ac_default_prefix"
36360 acl_final_prefix="$prefix"
36362 if test "X$exec_prefix" = "XNONE"; then
36363 acl_final_exec_prefix='${prefix}'
36365 acl_final_exec_prefix="$exec_prefix"
36367 acl_save_prefix="$prefix"
36368 prefix="$acl_final_prefix"
36369 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
36370 prefix="$acl_save_prefix"
36373 # Check whether --with-gnu-ld or --without-gnu-ld was given.
36374 if test "${with_gnu_ld+set}" = set; then
36375 withval="$with_gnu_ld"
36376 test "$withval" = no || with_gnu_ld=yes
36380 # Prepare PATH_SEPARATOR.
36381 # The user is always right.
36382 if test "${PATH_SEPARATOR+set}" != set; then
36383 echo "#! /bin/sh" >conf$$.sh
36384 echo "exit 0" >>conf$$.sh
36386 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
36394 if test "$GCC" = yes; then
36395 # Check if gcc -print-prog-name=ld gives a path.
36396 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
36397 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
36400 # gcc leaves a trailing carriage return which upsets mingw
36401 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
36403 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
36406 # Accept absolute paths.
36407 [\\/]* | [A-Za-z]:[\\/]*)
36408 re_direlt='/[^/][^/]*/\.\./'
36409 # Canonicalize the path of ld
36410 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
36411 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
36412 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
36414 test -z "$LD" && LD="$ac_prog"
36417 # If it fails, then pretend we aren't using GCC.
36421 # If it is relative, then search for the first ld in PATH.
36422 with_gnu_ld=unknown
36425 elif test "$with_gnu_ld" = yes; then
36426 echo "$as_me:$LINENO: checking for GNU ld" >&5
36427 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
36429 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
36430 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
36432 if test "${acl_cv_path_LD+set}" = set; then
36433 echo $ECHO_N "(cached) $ECHO_C" >&6
36435 if test -z "$LD"; then
36436 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
36437 for ac_dir in $PATH; do
36438 test -z "$ac_dir" && ac_dir=.
36439 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
36440 acl_cv_path_LD="$ac_dir/$ac_prog"
36441 # Check to see if the program is GNU ld. I'd rather use --version,
36442 # but apparently some GNU ld's only accept -v.
36443 # Break only if it was the GNU/non-GNU ld that we prefer.
36444 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
36445 test "$with_gnu_ld" != no && break
36447 test "$with_gnu_ld" != yes && break
36453 acl_cv_path_LD="$LD" # Let the user override the test with a path.
36457 LD="$acl_cv_path_LD"
36458 if test -n "$LD"; then
36459 echo "$as_me:$LINENO: result: $LD" >&5
36460 echo "${ECHO_T}$LD" >&6
36462 echo "$as_me:$LINENO: result: no" >&5
36463 echo "${ECHO_T}no" >&6
36465 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
36466 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
36467 { (exit 1); exit 1; }; }
36468 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
36469 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
36470 if test "${acl_cv_prog_gnu_ld+set}" = set; then
36471 echo $ECHO_N "(cached) $ECHO_C" >&6
36473 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
36474 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
36475 acl_cv_prog_gnu_ld=yes
36477 acl_cv_prog_gnu_ld=no
36480 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
36481 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
36482 with_gnu_ld=$acl_cv_prog_gnu_ld
36486 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
36487 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
36488 if test "${acl_cv_rpath+set}" = set; then
36489 echo $ECHO_N "(cached) $ECHO_C" >&6
36492 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
36493 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
36495 rm -f ./conftest.sh
36499 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
36500 echo "${ECHO_T}$acl_cv_rpath" >&6
36502 libext="$acl_cv_libext"
36503 shlibext="$acl_cv_shlibext"
36504 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
36505 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
36506 hardcode_direct="$acl_cv_hardcode_direct"
36507 hardcode_minus_L="$acl_cv_hardcode_minus_L"
36508 # Check whether --enable-rpath or --disable-rpath was given.
36509 if test "${enable_rpath+set}" = set; then
36510 enableval="$enable_rpath"
36524 acl_save_prefix="$prefix"
36525 prefix="$acl_final_prefix"
36526 acl_save_exec_prefix="$exec_prefix"
36527 exec_prefix="$acl_final_exec_prefix"
36529 eval additional_includedir=\"$includedir\"
36530 eval additional_libdir=\"$libdir\"
36532 exec_prefix="$acl_save_exec_prefix"
36533 prefix="$acl_save_prefix"
36536 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
36537 if test "${with_libiconv_prefix+set}" = set; then
36538 withval="$with_libiconv_prefix"
36540 if test "X$withval" = "Xno"; then
36543 if test "X$withval" = "X"; then
36545 acl_save_prefix="$prefix"
36546 prefix="$acl_final_prefix"
36547 acl_save_exec_prefix="$exec_prefix"
36548 exec_prefix="$acl_final_exec_prefix"
36550 eval additional_includedir=\"$includedir\"
36551 eval additional_libdir=\"$libdir\"
36553 exec_prefix="$acl_save_exec_prefix"
36554 prefix="$acl_save_prefix"
36557 additional_includedir="$withval/include"
36558 additional_libdir="$withval/lib"
36568 names_already_handled=
36569 names_next_round='iconv '
36570 while test -n "$names_next_round"; do
36571 names_this_round="$names_next_round"
36573 for name in $names_this_round; do
36575 for n in $names_already_handled; do
36576 if test "$n" = "$name"; then
36577 already_handled=yes
36581 if test -z "$already_handled"; then
36582 names_already_handled="$names_already_handled $name"
36583 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
36584 eval value=\"\$HAVE_LIB$uppername\"
36585 if test -n "$value"; then
36586 if test "$value" = yes; then
36587 eval value=\"\$LIB$uppername\"
36588 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
36589 eval value=\"\$LTLIB$uppername\"
36590 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
36599 if test $use_additional = yes; then
36600 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
36601 found_dir="$additional_libdir"
36602 found_so="$additional_libdir/lib$name.$shlibext"
36603 if test -f "$additional_libdir/lib$name.la"; then
36604 found_la="$additional_libdir/lib$name.la"
36607 if test -f "$additional_libdir/lib$name.$libext"; then
36608 found_dir="$additional_libdir"
36609 found_a="$additional_libdir/lib$name.$libext"
36610 if test -f "$additional_libdir/lib$name.la"; then
36611 found_la="$additional_libdir/lib$name.la"
36616 if test "X$found_dir" = "X"; then
36617 for x in $LDFLAGS $LTLIBICONV; do
36619 acl_save_prefix="$prefix"
36620 prefix="$acl_final_prefix"
36621 acl_save_exec_prefix="$exec_prefix"
36622 exec_prefix="$acl_final_exec_prefix"
36624 exec_prefix="$acl_save_exec_prefix"
36625 prefix="$acl_save_prefix"
36629 dir=`echo "X$x" | sed -e 's/^X-L//'`
36630 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
36632 found_so="$dir/lib$name.$shlibext"
36633 if test -f "$dir/lib$name.la"; then
36634 found_la="$dir/lib$name.la"
36637 if test -f "$dir/lib$name.$libext"; then
36639 found_a="$dir/lib$name.$libext"
36640 if test -f "$dir/lib$name.la"; then
36641 found_la="$dir/lib$name.la"
36647 if test "X$found_dir" != "X"; then
36652 if test "X$found_dir" != "X"; then
36653 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
36654 if test "X$found_so" != "X"; then
36655 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
36656 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
36659 for x in $ltrpathdirs; do
36660 if test "X$x" = "X$found_dir"; then
36665 if test -z "$haveit"; then
36666 ltrpathdirs="$ltrpathdirs $found_dir"
36668 if test "$hardcode_direct" = yes; then
36669 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
36671 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
36672 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
36674 for x in $rpathdirs; do
36675 if test "X$x" = "X$found_dir"; then
36680 if test -z "$haveit"; then
36681 rpathdirs="$rpathdirs $found_dir"
36685 for x in $LDFLAGS $LIBICONV; do
36687 acl_save_prefix="$prefix"
36688 prefix="$acl_final_prefix"
36689 acl_save_exec_prefix="$exec_prefix"
36690 exec_prefix="$acl_final_exec_prefix"
36692 exec_prefix="$acl_save_exec_prefix"
36693 prefix="$acl_save_prefix"
36695 if test "X$x" = "X-L$found_dir"; then
36700 if test -z "$haveit"; then
36701 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
36703 if test "$hardcode_minus_L" != no; then
36704 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
36706 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
36712 if test "X$found_a" != "X"; then
36713 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
36715 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
36718 additional_includedir=
36719 case "$found_dir" in
36721 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
36722 additional_includedir="$basedir/include"
36725 if test "X$additional_includedir" != "X"; then
36726 if test "X$additional_includedir" != "X/usr/include"; then
36728 if test "X$additional_includedir" = "X/usr/local/include"; then
36729 if test -n "$GCC"; then
36731 linux*) haveit=yes;;
36735 if test -z "$haveit"; then
36736 for x in $CPPFLAGS $INCICONV; do
36738 acl_save_prefix="$prefix"
36739 prefix="$acl_final_prefix"
36740 acl_save_exec_prefix="$exec_prefix"
36741 exec_prefix="$acl_final_exec_prefix"
36743 exec_prefix="$acl_save_exec_prefix"
36744 prefix="$acl_save_prefix"
36746 if test "X$x" = "X-I$additional_includedir"; then
36751 if test -z "$haveit"; then
36752 if test -d "$additional_includedir"; then
36753 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
36759 if test -n "$found_la"; then
36760 save_libdir="$libdir"
36761 case "$found_la" in
36762 */* | *\\*) . "$found_la" ;;
36763 *) . "./$found_la" ;;
36765 libdir="$save_libdir"
36766 for dep in $dependency_libs; do
36769 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
36770 if test "X$additional_libdir" != "X/usr/lib"; then
36772 if test "X$additional_libdir" = "X/usr/local/lib"; then
36773 if test -n "$GCC"; then
36775 linux*) haveit=yes;;
36779 if test -z "$haveit"; then
36781 for x in $LDFLAGS $LIBICONV; do
36783 acl_save_prefix="$prefix"
36784 prefix="$acl_final_prefix"
36785 acl_save_exec_prefix="$exec_prefix"
36786 exec_prefix="$acl_final_exec_prefix"
36788 exec_prefix="$acl_save_exec_prefix"
36789 prefix="$acl_save_prefix"
36791 if test "X$x" = "X-L$additional_libdir"; then
36796 if test -z "$haveit"; then
36797 if test -d "$additional_libdir"; then
36798 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
36802 for x in $LDFLAGS $LTLIBICONV; do
36804 acl_save_prefix="$prefix"
36805 prefix="$acl_final_prefix"
36806 acl_save_exec_prefix="$exec_prefix"
36807 exec_prefix="$acl_final_exec_prefix"
36809 exec_prefix="$acl_save_exec_prefix"
36810 prefix="$acl_save_prefix"
36812 if test "X$x" = "X-L$additional_libdir"; then
36817 if test -z "$haveit"; then
36818 if test -d "$additional_libdir"; then
36819 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
36826 dir=`echo "X$dep" | sed -e 's/^X-R//'`
36827 if test "$enable_rpath" != no; then
36829 for x in $rpathdirs; do
36830 if test "X$x" = "X$dir"; then
36835 if test -z "$haveit"; then
36836 rpathdirs="$rpathdirs $dir"
36839 for x in $ltrpathdirs; do
36840 if test "X$x" = "X$dir"; then
36845 if test -z "$haveit"; then
36846 ltrpathdirs="$ltrpathdirs $dir"
36851 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
36854 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
36857 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
36858 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
36864 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
36865 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
36871 if test "X$rpathdirs" != "X"; then
36872 if test -n "$hardcode_libdir_separator"; then
36874 for found_dir in $rpathdirs; do
36875 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
36877 acl_save_libdir="$libdir"
36879 eval flag=\"$hardcode_libdir_flag_spec\"
36880 libdir="$acl_save_libdir"
36881 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
36883 for found_dir in $rpathdirs; do
36884 acl_save_libdir="$libdir"
36885 libdir="$found_dir"
36886 eval flag=\"$hardcode_libdir_flag_spec\"
36887 libdir="$acl_save_libdir"
36888 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
36892 if test "X$ltrpathdirs" != "X"; then
36893 for found_dir in $ltrpathdirs; do
36894 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
36904 for ac_header in string.h sys/param.h stddef.h
36906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36908 echo "$as_me:$LINENO: checking for $ac_header" >&5
36909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36911 echo $ECHO_N "(cached) $ECHO_C" >&6
36913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36916 # Is the header compilable?
36917 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36919 cat >conftest.$ac_ext <<_ACEOF
36922 cat confdefs.h >>conftest.$ac_ext
36923 cat >>conftest.$ac_ext <<_ACEOF
36924 /* end confdefs.h. */
36925 $ac_includes_default
36926 #include <$ac_header>
36928 rm -f conftest.$ac_objext
36929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36930 (eval $ac_compile) 2>&5
36932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36933 (exit $ac_status); } &&
36934 { ac_try='test -s conftest.$ac_objext'
36935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36936 (eval $ac_try) 2>&5
36938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36939 (exit $ac_status); }; }; then
36940 ac_header_compiler=yes
36942 echo "$as_me: failed program was:" >&5
36943 sed 's/^/| /' conftest.$ac_ext >&5
36945 ac_header_compiler=no
36947 rm -f conftest.$ac_objext conftest.$ac_ext
36948 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36949 echo "${ECHO_T}$ac_header_compiler" >&6
36951 # Is the header present?
36952 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36954 cat >conftest.$ac_ext <<_ACEOF
36957 cat confdefs.h >>conftest.$ac_ext
36958 cat >>conftest.$ac_ext <<_ACEOF
36959 /* end confdefs.h. */
36960 #include <$ac_header>
36962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36965 grep -v '^ *+' conftest.er1 >conftest.err
36967 cat conftest.err >&5
36968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36969 (exit $ac_status); } >/dev/null; then
36970 if test -s conftest.err; then
36971 ac_cpp_err=$ac_c_preproc_warn_flag
36978 if test -z "$ac_cpp_err"; then
36979 ac_header_preproc=yes
36981 echo "$as_me: failed program was:" >&5
36982 sed 's/^/| /' conftest.$ac_ext >&5
36984 ac_header_preproc=no
36986 rm -f conftest.err conftest.$ac_ext
36987 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36988 echo "${ECHO_T}$ac_header_preproc" >&6
36990 # So? What about this header?
36991 case $ac_header_compiler:$ac_header_preproc in
36993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36997 ac_header_preproc=yes
37000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37004 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37006 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37007 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37010 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37014 ## ------------------------------------ ##
37015 ## Report this to bug-coreutils@gnu.org ##
37016 ## ------------------------------------ ##
37019 sed "s/^/$as_me: WARNING: /" >&2
37022 echo "$as_me:$LINENO: checking for $ac_header" >&5
37023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37025 echo $ECHO_N "(cached) $ECHO_C" >&6
37027 eval "$as_ac_Header=\$ac_header_preproc"
37029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37034 cat >>confdefs.h <<_ACEOF
37035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37043 for ac_func in resolvepath
37045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37046 echo "$as_me:$LINENO: checking for $ac_func" >&5
37047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37048 if eval "test \"\${$as_ac_var+set}\" = set"; then
37049 echo $ECHO_N "(cached) $ECHO_C" >&6
37051 cat >conftest.$ac_ext <<_ACEOF
37054 cat confdefs.h >>conftest.$ac_ext
37055 cat >>conftest.$ac_ext <<_ACEOF
37056 /* end confdefs.h. */
37057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37059 #define $ac_func innocuous_$ac_func
37061 /* System header to define __stub macros and hopefully few prototypes,
37062 which can conflict with char $ac_func (); below.
37063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37064 <limits.h> exists even on freestanding compilers. */
37067 # include <limits.h>
37069 # include <assert.h>
37074 /* Override any gcc2 internal prototype to avoid an error. */
37079 /* We use char because int might match the return type of a gcc2
37080 builtin and then its argument prototype would still apply. */
37082 /* The GNU C library defines this for functions which it implements
37083 to always fail with ENOSYS. Some functions are actually named
37084 something starting with __ and the normal name is an alias. */
37085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37088 char (*f) () = $ac_func;
37097 return f != $ac_func;
37102 rm -f conftest.$ac_objext conftest$ac_exeext
37103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37104 (eval $ac_link) 2>&5
37106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37107 (exit $ac_status); } &&
37108 { ac_try='test -s conftest$ac_exeext'
37109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37110 (eval $ac_try) 2>&5
37112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37113 (exit $ac_status); }; }; then
37114 eval "$as_ac_var=yes"
37116 echo "$as_me: failed program was:" >&5
37117 sed 's/^/| /' conftest.$ac_ext >&5
37119 eval "$as_ac_var=no"
37121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37125 if test `eval echo '${'$as_ac_var'}'` = yes; then
37126 cat >>confdefs.h <<_ACEOF
37127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37135 # This would simply be AC_REPLACE_FUNC([canonicalize_file_name])
37136 # if the function name weren't so long. Besides, I would rather
37137 # not have underscores in file names.
37138 echo "$as_me:$LINENO: checking for canonicalize_file_name" >&5
37139 echo $ECHO_N "checking for canonicalize_file_name... $ECHO_C" >&6
37140 if test "${ac_cv_func_canonicalize_file_name+set}" = set; then
37141 echo $ECHO_N "(cached) $ECHO_C" >&6
37143 cat >conftest.$ac_ext <<_ACEOF
37146 cat confdefs.h >>conftest.$ac_ext
37147 cat >>conftest.$ac_ext <<_ACEOF
37148 /* end confdefs.h. */
37149 /* Define canonicalize_file_name to an innocuous variant, in case <limits.h> declares canonicalize_file_name.
37150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37151 #define canonicalize_file_name innocuous_canonicalize_file_name
37153 /* System header to define __stub macros and hopefully few prototypes,
37154 which can conflict with char canonicalize_file_name (); below.
37155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37156 <limits.h> exists even on freestanding compilers. */
37159 # include <limits.h>
37161 # include <assert.h>
37164 #undef canonicalize_file_name
37166 /* Override any gcc2 internal prototype to avoid an error. */
37171 /* We use char because int might match the return type of a gcc2
37172 builtin and then its argument prototype would still apply. */
37173 char canonicalize_file_name ();
37174 /* The GNU C library defines this for functions which it implements
37175 to always fail with ENOSYS. Some functions are actually named
37176 something starting with __ and the normal name is an alias. */
37177 #if defined (__stub_canonicalize_file_name) || defined (__stub___canonicalize_file_name)
37180 char (*f) () = canonicalize_file_name;
37189 return f != canonicalize_file_name;
37194 rm -f conftest.$ac_objext conftest$ac_exeext
37195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37196 (eval $ac_link) 2>&5
37198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37199 (exit $ac_status); } &&
37200 { ac_try='test -s conftest$ac_exeext'
37201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37202 (eval $ac_try) 2>&5
37204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37205 (exit $ac_status); }; }; then
37206 ac_cv_func_canonicalize_file_name=yes
37208 echo "$as_me: failed program was:" >&5
37209 sed 's/^/| /' conftest.$ac_ext >&5
37211 ac_cv_func_canonicalize_file_name=no
37213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37215 echo "$as_me:$LINENO: result: $ac_cv_func_canonicalize_file_name" >&5
37216 echo "${ECHO_T}$ac_cv_func_canonicalize_file_name" >&6
37217 if test $ac_cv_func_canonicalize_file_name = yes; then
37220 LIBOBJS="$LIBOBJS canonicalize.$ac_objext"
37227 GNU_PACKAGE="GNU $PACKAGE"
37229 cat >>confdefs.h <<_ACEOF
37230 #define GNU_PACKAGE "$GNU_PACKAGE"
37236 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
37257 echo "$as_me:$LINENO: checking for struct stat.st_author" >&5
37258 echo $ECHO_N "checking for struct stat.st_author... $ECHO_C" >&6
37259 if test "${ac_cv_member_struct_stat_st_author+set}" = set; then
37260 echo $ECHO_N "(cached) $ECHO_C" >&6
37262 cat >conftest.$ac_ext <<_ACEOF
37265 cat confdefs.h >>conftest.$ac_ext
37266 cat >>conftest.$ac_ext <<_ACEOF
37267 /* end confdefs.h. */
37268 $ac_includes_default
37269 #include <sys/stat.h>
37275 static struct stat ac_aggr;
37276 if (ac_aggr.st_author)
37282 rm -f conftest.$ac_objext
37283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37284 (eval $ac_compile) 2>&5
37286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37287 (exit $ac_status); } &&
37288 { ac_try='test -s conftest.$ac_objext'
37289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37290 (eval $ac_try) 2>&5
37292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37293 (exit $ac_status); }; }; then
37294 ac_cv_member_struct_stat_st_author=yes
37296 echo "$as_me: failed program was:" >&5
37297 sed 's/^/| /' conftest.$ac_ext >&5
37299 cat >conftest.$ac_ext <<_ACEOF
37302 cat confdefs.h >>conftest.$ac_ext
37303 cat >>conftest.$ac_ext <<_ACEOF
37304 /* end confdefs.h. */
37305 $ac_includes_default
37306 #include <sys/stat.h>
37312 static struct stat ac_aggr;
37313 if (sizeof ac_aggr.st_author)
37319 rm -f conftest.$ac_objext
37320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37321 (eval $ac_compile) 2>&5
37323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37324 (exit $ac_status); } &&
37325 { ac_try='test -s conftest.$ac_objext'
37326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37327 (eval $ac_try) 2>&5
37329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37330 (exit $ac_status); }; }; then
37331 ac_cv_member_struct_stat_st_author=yes
37333 echo "$as_me: failed program was:" >&5
37334 sed 's/^/| /' conftest.$ac_ext >&5
37336 ac_cv_member_struct_stat_st_author=no
37338 rm -f conftest.$ac_objext conftest.$ac_ext
37340 rm -f conftest.$ac_objext conftest.$ac_ext
37342 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_author" >&5
37343 echo "${ECHO_T}$ac_cv_member_struct_stat_st_author" >&6
37344 if test $ac_cv_member_struct_stat_st_author = yes; then
37346 cat >>confdefs.h <<_ACEOF
37347 #define HAVE_STRUCT_STAT_ST_AUTHOR 1
37352 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
37353 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
37354 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
37355 echo $ECHO_N "(cached) $ECHO_C" >&6
37357 cat >conftest.$ac_ext <<_ACEOF
37360 cat confdefs.h >>conftest.$ac_ext
37361 cat >>conftest.$ac_ext <<_ACEOF
37362 /* end confdefs.h. */
37363 $ac_includes_default
37364 #include <sys/stat.h>
37370 static struct stat ac_aggr;
37371 if (ac_aggr.st_blksize)
37377 rm -f conftest.$ac_objext
37378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37379 (eval $ac_compile) 2>&5
37381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37382 (exit $ac_status); } &&
37383 { ac_try='test -s conftest.$ac_objext'
37384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37385 (eval $ac_try) 2>&5
37387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37388 (exit $ac_status); }; }; then
37389 ac_cv_member_struct_stat_st_blksize=yes
37391 echo "$as_me: failed program was:" >&5
37392 sed 's/^/| /' conftest.$ac_ext >&5
37394 cat >conftest.$ac_ext <<_ACEOF
37397 cat confdefs.h >>conftest.$ac_ext
37398 cat >>conftest.$ac_ext <<_ACEOF
37399 /* end confdefs.h. */
37400 $ac_includes_default
37401 #include <sys/stat.h>
37407 static struct stat ac_aggr;
37408 if (sizeof ac_aggr.st_blksize)
37414 rm -f conftest.$ac_objext
37415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37416 (eval $ac_compile) 2>&5
37418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37419 (exit $ac_status); } &&
37420 { ac_try='test -s conftest.$ac_objext'
37421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37422 (eval $ac_try) 2>&5
37424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37425 (exit $ac_status); }; }; then
37426 ac_cv_member_struct_stat_st_blksize=yes
37428 echo "$as_me: failed program was:" >&5
37429 sed 's/^/| /' conftest.$ac_ext >&5
37431 ac_cv_member_struct_stat_st_blksize=no
37433 rm -f conftest.$ac_objext conftest.$ac_ext
37435 rm -f conftest.$ac_objext conftest.$ac_ext
37437 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
37438 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
37439 if test $ac_cv_member_struct_stat_st_blksize = yes; then
37441 cat >>confdefs.h <<_ACEOF
37442 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
37461 echo "$as_me:$LINENO: checking for ino_t" >&5
37462 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
37463 if test "${ac_cv_type_ino_t+set}" = set; then
37464 echo $ECHO_N "(cached) $ECHO_C" >&6
37466 cat >conftest.$ac_ext <<_ACEOF
37469 cat confdefs.h >>conftest.$ac_ext
37470 cat >>conftest.$ac_ext <<_ACEOF
37471 /* end confdefs.h. */
37472 $ac_includes_default
37478 if (sizeof (ino_t))
37484 rm -f conftest.$ac_objext
37485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37486 (eval $ac_compile) 2>&5
37488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37489 (exit $ac_status); } &&
37490 { ac_try='test -s conftest.$ac_objext'
37491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37492 (eval $ac_try) 2>&5
37494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37495 (exit $ac_status); }; }; then
37496 ac_cv_type_ino_t=yes
37498 echo "$as_me: failed program was:" >&5
37499 sed 's/^/| /' conftest.$ac_ext >&5
37501 ac_cv_type_ino_t=no
37503 rm -f conftest.$ac_objext conftest.$ac_ext
37505 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
37506 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
37507 if test $ac_cv_type_ino_t = yes; then
37511 cat >>confdefs.h <<_ACEOF
37512 #define ino_t unsigned long
37519 echo "$as_me:$LINENO: checking for ssize_t" >&5
37520 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
37521 if test "${gt_cv_ssize_t+set}" = set; then
37522 echo $ECHO_N "(cached) $ECHO_C" >&6
37525 cat >conftest.$ac_ext <<_ACEOF
37528 cat confdefs.h >>conftest.$ac_ext
37529 cat >>conftest.$ac_ext <<_ACEOF
37530 /* end confdefs.h. */
37531 #include <sys/types.h>
37535 int x = sizeof (ssize_t *) + sizeof (ssize_t);
37540 rm -f conftest.$ac_objext
37541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37542 (eval $ac_compile) 2>&5
37544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37545 (exit $ac_status); } &&
37546 { ac_try='test -s conftest.$ac_objext'
37547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37548 (eval $ac_try) 2>&5
37550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37551 (exit $ac_status); }; }; then
37554 echo "$as_me: failed program was:" >&5
37555 sed 's/^/| /' conftest.$ac_ext >&5
37559 rm -f conftest.$ac_objext conftest.$ac_ext
37561 echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
37562 echo "${ECHO_T}$gt_cv_ssize_t" >&6
37563 if test $gt_cv_ssize_t = no; then
37565 cat >>confdefs.h <<\_ACEOF
37566 #define ssize_t int
37572 echo "$as_me:$LINENO: checking for major_t" >&5
37573 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
37574 if test "${ac_cv_type_major_t+set}" = set; then
37575 echo $ECHO_N "(cached) $ECHO_C" >&6
37577 cat >conftest.$ac_ext <<_ACEOF
37580 cat confdefs.h >>conftest.$ac_ext
37581 cat >>conftest.$ac_ext <<_ACEOF
37582 /* end confdefs.h. */
37583 $ac_includes_default
37589 if (sizeof (major_t))
37595 rm -f conftest.$ac_objext
37596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37597 (eval $ac_compile) 2>&5
37599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37600 (exit $ac_status); } &&
37601 { ac_try='test -s conftest.$ac_objext'
37602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37603 (eval $ac_try) 2>&5
37605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37606 (exit $ac_status); }; }; then
37607 ac_cv_type_major_t=yes
37609 echo "$as_me: failed program was:" >&5
37610 sed 's/^/| /' conftest.$ac_ext >&5
37612 ac_cv_type_major_t=no
37614 rm -f conftest.$ac_objext conftest.$ac_ext
37616 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
37617 echo "${ECHO_T}$ac_cv_type_major_t" >&6
37618 if test $ac_cv_type_major_t = yes; then
37622 cat >>confdefs.h <<_ACEOF
37623 #define major_t unsigned int
37628 echo "$as_me:$LINENO: checking for minor_t" >&5
37629 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
37630 if test "${ac_cv_type_minor_t+set}" = set; then
37631 echo $ECHO_N "(cached) $ECHO_C" >&6
37633 cat >conftest.$ac_ext <<_ACEOF
37636 cat confdefs.h >>conftest.$ac_ext
37637 cat >>conftest.$ac_ext <<_ACEOF
37638 /* end confdefs.h. */
37639 $ac_includes_default
37645 if (sizeof (minor_t))
37651 rm -f conftest.$ac_objext
37652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37653 (eval $ac_compile) 2>&5
37655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37656 (exit $ac_status); } &&
37657 { ac_try='test -s conftest.$ac_objext'
37658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37659 (eval $ac_try) 2>&5
37661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37662 (exit $ac_status); }; }; then
37663 ac_cv_type_minor_t=yes
37665 echo "$as_me: failed program was:" >&5
37666 sed 's/^/| /' conftest.$ac_ext >&5
37668 ac_cv_type_minor_t=no
37670 rm -f conftest.$ac_objext conftest.$ac_ext
37672 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
37673 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
37674 if test $ac_cv_type_minor_t = yes; then
37678 cat >>confdefs.h <<_ACEOF
37679 #define minor_t unsigned int
37715 # This is for od and stat, and any other program that
37716 # uses the PRI.MAX macros from inttypes.h.
37725 ac_have_func=no # yes means we've found a way to get the load average.
37741 for ac_header in mach/mach.h
37743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37745 echo "$as_me:$LINENO: checking for $ac_header" >&5
37746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37748 echo $ECHO_N "(cached) $ECHO_C" >&6
37750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37753 # Is the header compilable?
37754 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37756 cat >conftest.$ac_ext <<_ACEOF
37759 cat confdefs.h >>conftest.$ac_ext
37760 cat >>conftest.$ac_ext <<_ACEOF
37761 /* end confdefs.h. */
37762 $ac_includes_default
37763 #include <$ac_header>
37765 rm -f conftest.$ac_objext
37766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37767 (eval $ac_compile) 2>&5
37769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37770 (exit $ac_status); } &&
37771 { ac_try='test -s conftest.$ac_objext'
37772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37773 (eval $ac_try) 2>&5
37775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37776 (exit $ac_status); }; }; then
37777 ac_header_compiler=yes
37779 echo "$as_me: failed program was:" >&5
37780 sed 's/^/| /' conftest.$ac_ext >&5
37782 ac_header_compiler=no
37784 rm -f conftest.$ac_objext conftest.$ac_ext
37785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37786 echo "${ECHO_T}$ac_header_compiler" >&6
37788 # Is the header present?
37789 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37791 cat >conftest.$ac_ext <<_ACEOF
37794 cat confdefs.h >>conftest.$ac_ext
37795 cat >>conftest.$ac_ext <<_ACEOF
37796 /* end confdefs.h. */
37797 #include <$ac_header>
37799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37802 grep -v '^ *+' conftest.er1 >conftest.err
37804 cat conftest.err >&5
37805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37806 (exit $ac_status); } >/dev/null; then
37807 if test -s conftest.err; then
37808 ac_cpp_err=$ac_c_preproc_warn_flag
37815 if test -z "$ac_cpp_err"; then
37816 ac_header_preproc=yes
37818 echo "$as_me: failed program was:" >&5
37819 sed 's/^/| /' conftest.$ac_ext >&5
37821 ac_header_preproc=no
37823 rm -f conftest.err conftest.$ac_ext
37824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37825 echo "${ECHO_T}$ac_header_preproc" >&6
37827 # So? What about this header?
37828 case $ac_header_compiler:$ac_header_preproc in
37830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37834 ac_header_preproc=yes
37837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37844 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37851 ## ------------------------------------ ##
37852 ## Report this to bug-coreutils@gnu.org ##
37853 ## ------------------------------------ ##
37856 sed "s/^/$as_me: WARNING: /" >&2
37859 echo "$as_me:$LINENO: checking for $ac_header" >&5
37860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37862 echo $ECHO_N "(cached) $ECHO_C" >&6
37864 eval "$as_ac_Header=\$ac_header_preproc"
37866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37871 cat >>confdefs.h <<_ACEOF
37872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37880 for ac_func in setlocale
37882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37883 echo "$as_me:$LINENO: checking for $ac_func" >&5
37884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37885 if eval "test \"\${$as_ac_var+set}\" = set"; then
37886 echo $ECHO_N "(cached) $ECHO_C" >&6
37888 cat >conftest.$ac_ext <<_ACEOF
37891 cat confdefs.h >>conftest.$ac_ext
37892 cat >>conftest.$ac_ext <<_ACEOF
37893 /* end confdefs.h. */
37894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37896 #define $ac_func innocuous_$ac_func
37898 /* System header to define __stub macros and hopefully few prototypes,
37899 which can conflict with char $ac_func (); below.
37900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37901 <limits.h> exists even on freestanding compilers. */
37904 # include <limits.h>
37906 # include <assert.h>
37911 /* Override any gcc2 internal prototype to avoid an error. */
37916 /* We use char because int might match the return type of a gcc2
37917 builtin and then its argument prototype would still apply. */
37919 /* The GNU C library defines this for functions which it implements
37920 to always fail with ENOSYS. Some functions are actually named
37921 something starting with __ and the normal name is an alias. */
37922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37925 char (*f) () = $ac_func;
37934 return f != $ac_func;
37939 rm -f conftest.$ac_objext conftest$ac_exeext
37940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37941 (eval $ac_link) 2>&5
37943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37944 (exit $ac_status); } &&
37945 { ac_try='test -s conftest$ac_exeext'
37946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37947 (eval $ac_try) 2>&5
37949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37950 (exit $ac_status); }; }; then
37951 eval "$as_ac_var=yes"
37953 echo "$as_me: failed program was:" >&5
37954 sed 's/^/| /' conftest.$ac_ext >&5
37956 eval "$as_ac_var=no"
37958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37962 if test `eval echo '${'$as_ac_var'}'` = yes; then
37963 cat >>confdefs.h <<_ACEOF
37964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37971 # By default, expect to find getloadavg.c in $srcdir/.
37972 ac_lib_dir_getloadavg=$srcdir
37973 # But if there's an argument, DIR, expect to find getloadavg.c in $srcdir/DIR.
37974 ac_lib_dir_getloadavg=$srcdir/lib
37975 # Make sure getloadavg.c is where it belongs, at ./configure-time.
37976 test -f $ac_lib_dir_getloadavg/getloadavg.c \
37977 || { { echo "$as_me:$LINENO: error: getloadavg.c is not in $ac_lib_dir_getloadavg" >&5
37978 echo "$as_me: error: getloadavg.c is not in $ac_lib_dir_getloadavg" >&2;}
37979 { (exit 1); exit 1; }; }
37980 # FIXME: Add an autoconf-time test, too?
37984 # Check for getloadavg, but be sure not to touch the cache variable.
37985 (echo "$as_me:$LINENO: checking for getloadavg" >&5
37986 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
37987 if test "${ac_cv_func_getloadavg+set}" = set; then
37988 echo $ECHO_N "(cached) $ECHO_C" >&6
37990 cat >conftest.$ac_ext <<_ACEOF
37993 cat confdefs.h >>conftest.$ac_ext
37994 cat >>conftest.$ac_ext <<_ACEOF
37995 /* end confdefs.h. */
37996 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
37997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37998 #define getloadavg innocuous_getloadavg
38000 /* System header to define __stub macros and hopefully few prototypes,
38001 which can conflict with char getloadavg (); below.
38002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38003 <limits.h> exists even on freestanding compilers. */
38006 # include <limits.h>
38008 # include <assert.h>
38013 /* Override any gcc2 internal prototype to avoid an error. */
38018 /* We use char because int might match the return type of a gcc2
38019 builtin and then its argument prototype would still apply. */
38020 char getloadavg ();
38021 /* The GNU C library defines this for functions which it implements
38022 to always fail with ENOSYS. Some functions are actually named
38023 something starting with __ and the normal name is an alias. */
38024 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
38027 char (*f) () = getloadavg;
38036 return f != getloadavg;
38041 rm -f conftest.$ac_objext conftest$ac_exeext
38042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38043 (eval $ac_link) 2>&5
38045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38046 (exit $ac_status); } &&
38047 { ac_try='test -s conftest$ac_exeext'
38048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38049 (eval $ac_try) 2>&5
38051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38052 (exit $ac_status); }; }; then
38053 ac_cv_func_getloadavg=yes
38055 echo "$as_me: failed program was:" >&5
38056 sed 's/^/| /' conftest.$ac_ext >&5
38058 ac_cv_func_getloadavg=no
38060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38062 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
38063 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
38064 if test $ac_cv_func_getloadavg = yes; then
38069 ) && ac_have_func=yes
38071 # On HPUX9, an unprivileged user can get load averages through this function.
38073 for ac_func in pstat_getdynamic
38075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38076 echo "$as_me:$LINENO: checking for $ac_func" >&5
38077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38078 if eval "test \"\${$as_ac_var+set}\" = set"; then
38079 echo $ECHO_N "(cached) $ECHO_C" >&6
38081 cat >conftest.$ac_ext <<_ACEOF
38084 cat confdefs.h >>conftest.$ac_ext
38085 cat >>conftest.$ac_ext <<_ACEOF
38086 /* end confdefs.h. */
38087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38089 #define $ac_func innocuous_$ac_func
38091 /* System header to define __stub macros and hopefully few prototypes,
38092 which can conflict with char $ac_func (); below.
38093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38094 <limits.h> exists even on freestanding compilers. */
38097 # include <limits.h>
38099 # include <assert.h>
38104 /* Override any gcc2 internal prototype to avoid an error. */
38109 /* We use char because int might match the return type of a gcc2
38110 builtin and then its argument prototype would still apply. */
38112 /* The GNU C library defines this for functions which it implements
38113 to always fail with ENOSYS. Some functions are actually named
38114 something starting with __ and the normal name is an alias. */
38115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38118 char (*f) () = $ac_func;
38127 return f != $ac_func;
38132 rm -f conftest.$ac_objext conftest$ac_exeext
38133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38134 (eval $ac_link) 2>&5
38136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38137 (exit $ac_status); } &&
38138 { ac_try='test -s conftest$ac_exeext'
38139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38140 (eval $ac_try) 2>&5
38142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38143 (exit $ac_status); }; }; then
38144 eval "$as_ac_var=yes"
38146 echo "$as_me: failed program was:" >&5
38147 sed 's/^/| /' conftest.$ac_ext >&5
38149 eval "$as_ac_var=no"
38151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38155 if test `eval echo '${'$as_ac_var'}'` = yes; then
38156 cat >>confdefs.h <<_ACEOF
38157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38164 # Solaris has libkstat which does not require root.
38166 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
38167 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
38168 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
38169 echo $ECHO_N "(cached) $ECHO_C" >&6
38171 ac_check_lib_save_LIBS=$LIBS
38172 LIBS="-lkstat $LIBS"
38173 cat >conftest.$ac_ext <<_ACEOF
38176 cat confdefs.h >>conftest.$ac_ext
38177 cat >>conftest.$ac_ext <<_ACEOF
38178 /* end confdefs.h. */
38180 /* Override any gcc2 internal prototype to avoid an error. */
38184 /* We use char because int might match the return type of a gcc2
38185 builtin and then its argument prototype would still apply. */
38186 char kstat_open ();
38195 rm -f conftest.$ac_objext conftest$ac_exeext
38196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38197 (eval $ac_link) 2>&5
38199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38200 (exit $ac_status); } &&
38201 { ac_try='test -s conftest$ac_exeext'
38202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38203 (eval $ac_try) 2>&5
38205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38206 (exit $ac_status); }; }; then
38207 ac_cv_lib_kstat_kstat_open=yes
38209 echo "$as_me: failed program was:" >&5
38210 sed 's/^/| /' conftest.$ac_ext >&5
38212 ac_cv_lib_kstat_kstat_open=no
38214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38215 LIBS=$ac_check_lib_save_LIBS
38217 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
38218 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
38219 if test $ac_cv_lib_kstat_kstat_open = yes; then
38220 cat >>confdefs.h <<_ACEOF
38221 #define HAVE_LIBKSTAT 1
38224 LIBS="-lkstat $LIBS"
38228 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
38230 # Some systems with -lutil have (and need) -lkvm as well, some do not.
38231 # On Solaris, -lkvm requires nlist from -lelf, so check that first
38232 # to get the right answer into the cache.
38233 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
38234 if test $ac_have_func = no; then
38235 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
38236 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
38237 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
38238 echo $ECHO_N "(cached) $ECHO_C" >&6
38240 ac_check_lib_save_LIBS=$LIBS
38242 cat >conftest.$ac_ext <<_ACEOF
38245 cat confdefs.h >>conftest.$ac_ext
38246 cat >>conftest.$ac_ext <<_ACEOF
38247 /* end confdefs.h. */
38249 /* Override any gcc2 internal prototype to avoid an error. */
38253 /* We use char because int might match the return type of a gcc2
38254 builtin and then its argument prototype would still apply. */
38264 rm -f conftest.$ac_objext conftest$ac_exeext
38265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38266 (eval $ac_link) 2>&5
38268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38269 (exit $ac_status); } &&
38270 { ac_try='test -s conftest$ac_exeext'
38271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38272 (eval $ac_try) 2>&5
38274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38275 (exit $ac_status); }; }; then
38276 ac_cv_lib_elf_elf_begin=yes
38278 echo "$as_me: failed program was:" >&5
38279 sed 's/^/| /' conftest.$ac_ext >&5
38281 ac_cv_lib_elf_elf_begin=no
38283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38284 LIBS=$ac_check_lib_save_LIBS
38286 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
38287 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
38288 if test $ac_cv_lib_elf_elf_begin = yes; then
38293 if test $ac_have_func = no; then
38294 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
38295 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
38296 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
38297 echo $ECHO_N "(cached) $ECHO_C" >&6
38299 ac_check_lib_save_LIBS=$LIBS
38301 cat >conftest.$ac_ext <<_ACEOF
38304 cat confdefs.h >>conftest.$ac_ext
38305 cat >>conftest.$ac_ext <<_ACEOF
38306 /* end confdefs.h. */
38308 /* Override any gcc2 internal prototype to avoid an error. */
38312 /* We use char because int might match the return type of a gcc2
38313 builtin and then its argument prototype would still apply. */
38323 rm -f conftest.$ac_objext conftest$ac_exeext
38324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38325 (eval $ac_link) 2>&5
38327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38328 (exit $ac_status); } &&
38329 { ac_try='test -s conftest$ac_exeext'
38330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38331 (eval $ac_try) 2>&5
38333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38334 (exit $ac_status); }; }; then
38335 ac_cv_lib_kvm_kvm_open=yes
38337 echo "$as_me: failed program was:" >&5
38338 sed 's/^/| /' conftest.$ac_ext >&5
38340 ac_cv_lib_kvm_kvm_open=no
38342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38343 LIBS=$ac_check_lib_save_LIBS
38345 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
38346 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
38347 if test $ac_cv_lib_kvm_kvm_open = yes; then
38351 # Check for the 4.4BSD definition of getloadavg.
38352 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
38353 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
38354 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
38355 echo $ECHO_N "(cached) $ECHO_C" >&6
38357 ac_check_lib_save_LIBS=$LIBS
38358 LIBS="-lutil $LIBS"
38359 cat >conftest.$ac_ext <<_ACEOF
38362 cat confdefs.h >>conftest.$ac_ext
38363 cat >>conftest.$ac_ext <<_ACEOF
38364 /* end confdefs.h. */
38366 /* Override any gcc2 internal prototype to avoid an error. */
38370 /* We use char because int might match the return type of a gcc2
38371 builtin and then its argument prototype would still apply. */
38372 char getloadavg ();
38381 rm -f conftest.$ac_objext conftest$ac_exeext
38382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38383 (eval $ac_link) 2>&5
38385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38386 (exit $ac_status); } &&
38387 { ac_try='test -s conftest$ac_exeext'
38388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38389 (eval $ac_try) 2>&5
38391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38392 (exit $ac_status); }; }; then
38393 ac_cv_lib_util_getloadavg=yes
38395 echo "$as_me: failed program was:" >&5
38396 sed 's/^/| /' conftest.$ac_ext >&5
38398 ac_cv_lib_util_getloadavg=no
38400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38401 LIBS=$ac_check_lib_save_LIBS
38403 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
38404 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
38405 if test $ac_cv_lib_util_getloadavg = yes; then
38406 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
38411 if test $ac_have_func = no; then
38412 # There is a commonly available library for RS/6000 AIX.
38413 # Since it is not a standard part of AIX, it might be installed locally.
38414 ac_getloadavg_LIBS=$LIBS
38415 LIBS="-L/usr/local/lib $LIBS"
38416 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
38417 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
38418 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
38419 echo $ECHO_N "(cached) $ECHO_C" >&6
38421 ac_check_lib_save_LIBS=$LIBS
38422 LIBS="-lgetloadavg $LIBS"
38423 cat >conftest.$ac_ext <<_ACEOF
38426 cat confdefs.h >>conftest.$ac_ext
38427 cat >>conftest.$ac_ext <<_ACEOF
38428 /* end confdefs.h. */
38430 /* Override any gcc2 internal prototype to avoid an error. */
38434 /* We use char because int might match the return type of a gcc2
38435 builtin and then its argument prototype would still apply. */
38436 char getloadavg ();
38445 rm -f conftest.$ac_objext conftest$ac_exeext
38446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38447 (eval $ac_link) 2>&5
38449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38450 (exit $ac_status); } &&
38451 { ac_try='test -s conftest$ac_exeext'
38452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38453 (eval $ac_try) 2>&5
38455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38456 (exit $ac_status); }; }; then
38457 ac_cv_lib_getloadavg_getloadavg=yes
38459 echo "$as_me: failed program was:" >&5
38460 sed 's/^/| /' conftest.$ac_ext >&5
38462 ac_cv_lib_getloadavg_getloadavg=no
38464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38465 LIBS=$ac_check_lib_save_LIBS
38467 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
38468 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
38469 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
38470 LIBS="-lgetloadavg $LIBS"
38472 LIBS=$ac_getloadavg_LIBS
38477 # Make sure it is really in the library, if we think we found it,
38478 # otherwise set up the replacement function.
38480 for ac_func in getloadavg
38482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38483 echo "$as_me:$LINENO: checking for $ac_func" >&5
38484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38485 if eval "test \"\${$as_ac_var+set}\" = set"; then
38486 echo $ECHO_N "(cached) $ECHO_C" >&6
38488 cat >conftest.$ac_ext <<_ACEOF
38491 cat confdefs.h >>conftest.$ac_ext
38492 cat >>conftest.$ac_ext <<_ACEOF
38493 /* end confdefs.h. */
38494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38496 #define $ac_func innocuous_$ac_func
38498 /* System header to define __stub macros and hopefully few prototypes,
38499 which can conflict with char $ac_func (); below.
38500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38501 <limits.h> exists even on freestanding compilers. */
38504 # include <limits.h>
38506 # include <assert.h>
38511 /* Override any gcc2 internal prototype to avoid an error. */
38516 /* We use char because int might match the return type of a gcc2
38517 builtin and then its argument prototype would still apply. */
38519 /* The GNU C library defines this for functions which it implements
38520 to always fail with ENOSYS. Some functions are actually named
38521 something starting with __ and the normal name is an alias. */
38522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38525 char (*f) () = $ac_func;
38534 return f != $ac_func;
38539 rm -f conftest.$ac_objext conftest$ac_exeext
38540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38541 (eval $ac_link) 2>&5
38543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38544 (exit $ac_status); } &&
38545 { ac_try='test -s conftest$ac_exeext'
38546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38547 (eval $ac_try) 2>&5
38549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38550 (exit $ac_status); }; }; then
38551 eval "$as_ac_var=yes"
38553 echo "$as_me: failed program was:" >&5
38554 sed 's/^/| /' conftest.$ac_ext >&5
38556 eval "$as_ac_var=no"
38558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38562 if test `eval echo '${'$as_ac_var'}'` = yes; then
38563 cat >>confdefs.h <<_ACEOF
38564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38568 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
38570 cat >>confdefs.h <<\_ACEOF
38571 #define C_GETLOADAVG 1
38574 # Figure out what our getloadavg.c needs.
38576 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
38577 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
38578 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
38579 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
38580 echo $ECHO_N "(cached) $ECHO_C" >&6
38582 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
38583 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
38585 # Is the header compilable?
38586 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
38587 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
38588 cat >conftest.$ac_ext <<_ACEOF
38591 cat confdefs.h >>conftest.$ac_ext
38592 cat >>conftest.$ac_ext <<_ACEOF
38593 /* end confdefs.h. */
38594 $ac_includes_default
38595 #include <sys/dg_sys_info.h>
38597 rm -f conftest.$ac_objext
38598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38599 (eval $ac_compile) 2>&5
38601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38602 (exit $ac_status); } &&
38603 { ac_try='test -s conftest.$ac_objext'
38604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38605 (eval $ac_try) 2>&5
38607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38608 (exit $ac_status); }; }; then
38609 ac_header_compiler=yes
38611 echo "$as_me: failed program was:" >&5
38612 sed 's/^/| /' conftest.$ac_ext >&5
38614 ac_header_compiler=no
38616 rm -f conftest.$ac_objext conftest.$ac_ext
38617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38618 echo "${ECHO_T}$ac_header_compiler" >&6
38620 # Is the header present?
38621 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
38622 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
38623 cat >conftest.$ac_ext <<_ACEOF
38626 cat confdefs.h >>conftest.$ac_ext
38627 cat >>conftest.$ac_ext <<_ACEOF
38628 /* end confdefs.h. */
38629 #include <sys/dg_sys_info.h>
38631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38634 grep -v '^ *+' conftest.er1 >conftest.err
38636 cat conftest.err >&5
38637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38638 (exit $ac_status); } >/dev/null; then
38639 if test -s conftest.err; then
38640 ac_cpp_err=$ac_c_preproc_warn_flag
38647 if test -z "$ac_cpp_err"; then
38648 ac_header_preproc=yes
38650 echo "$as_me: failed program was:" >&5
38651 sed 's/^/| /' conftest.$ac_ext >&5
38653 ac_header_preproc=no
38655 rm -f conftest.err conftest.$ac_ext
38656 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38657 echo "${ECHO_T}$ac_header_preproc" >&6
38659 # So? What about this header?
38660 case $ac_header_compiler:$ac_header_preproc in
38662 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
38663 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38664 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
38665 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
38666 ac_header_preproc=yes
38669 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
38670 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
38671 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
38672 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
38673 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
38674 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
38675 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
38676 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
38677 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
38678 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
38679 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
38680 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
38683 ## ------------------------------------ ##
38684 ## Report this to bug-coreutils@gnu.org ##
38685 ## ------------------------------------ ##
38688 sed "s/^/$as_me: WARNING: /" >&2
38691 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
38692 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
38693 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
38694 echo $ECHO_N "(cached) $ECHO_C" >&6
38696 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
38698 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
38699 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
38702 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
38705 cat >>confdefs.h <<\_ACEOF
38710 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
38711 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
38712 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
38713 echo $ECHO_N "(cached) $ECHO_C" >&6
38715 ac_check_lib_save_LIBS=$LIBS
38717 cat >conftest.$ac_ext <<_ACEOF
38720 cat confdefs.h >>conftest.$ac_ext
38721 cat >>conftest.$ac_ext <<_ACEOF
38722 /* end confdefs.h. */
38724 /* Override any gcc2 internal prototype to avoid an error. */
38728 /* We use char because int might match the return type of a gcc2
38729 builtin and then its argument prototype would still apply. */
38730 char dg_sys_info ();
38739 rm -f conftest.$ac_objext conftest$ac_exeext
38740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38741 (eval $ac_link) 2>&5
38743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38744 (exit $ac_status); } &&
38745 { ac_try='test -s conftest$ac_exeext'
38746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38747 (eval $ac_try) 2>&5
38749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38750 (exit $ac_status); }; }; then
38751 ac_cv_lib_dgc_dg_sys_info=yes
38753 echo "$as_me: failed program was:" >&5
38754 sed 's/^/| /' conftest.$ac_ext >&5
38756 ac_cv_lib_dgc_dg_sys_info=no
38758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38759 LIBS=$ac_check_lib_save_LIBS
38761 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
38762 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
38763 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
38764 cat >>confdefs.h <<_ACEOF
38765 #define HAVE_LIBDGC 1
38776 if test "${ac_cv_header_locale_h+set}" = set; then
38777 echo "$as_me:$LINENO: checking for locale.h" >&5
38778 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
38779 if test "${ac_cv_header_locale_h+set}" = set; then
38780 echo $ECHO_N "(cached) $ECHO_C" >&6
38782 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
38783 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
38785 # Is the header compilable?
38786 echo "$as_me:$LINENO: checking locale.h usability" >&5
38787 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
38788 cat >conftest.$ac_ext <<_ACEOF
38791 cat confdefs.h >>conftest.$ac_ext
38792 cat >>conftest.$ac_ext <<_ACEOF
38793 /* end confdefs.h. */
38794 $ac_includes_default
38795 #include <locale.h>
38797 rm -f conftest.$ac_objext
38798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38799 (eval $ac_compile) 2>&5
38801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38802 (exit $ac_status); } &&
38803 { ac_try='test -s conftest.$ac_objext'
38804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38805 (eval $ac_try) 2>&5
38807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38808 (exit $ac_status); }; }; then
38809 ac_header_compiler=yes
38811 echo "$as_me: failed program was:" >&5
38812 sed 's/^/| /' conftest.$ac_ext >&5
38814 ac_header_compiler=no
38816 rm -f conftest.$ac_objext conftest.$ac_ext
38817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38818 echo "${ECHO_T}$ac_header_compiler" >&6
38820 # Is the header present?
38821 echo "$as_me:$LINENO: checking locale.h presence" >&5
38822 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
38823 cat >conftest.$ac_ext <<_ACEOF
38826 cat confdefs.h >>conftest.$ac_ext
38827 cat >>conftest.$ac_ext <<_ACEOF
38828 /* end confdefs.h. */
38829 #include <locale.h>
38831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38834 grep -v '^ *+' conftest.er1 >conftest.err
38836 cat conftest.err >&5
38837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38838 (exit $ac_status); } >/dev/null; then
38839 if test -s conftest.err; then
38840 ac_cpp_err=$ac_c_preproc_warn_flag
38847 if test -z "$ac_cpp_err"; then
38848 ac_header_preproc=yes
38850 echo "$as_me: failed program was:" >&5
38851 sed 's/^/| /' conftest.$ac_ext >&5
38853 ac_header_preproc=no
38855 rm -f conftest.err conftest.$ac_ext
38856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38857 echo "${ECHO_T}$ac_header_preproc" >&6
38859 # So? What about this header?
38860 case $ac_header_compiler:$ac_header_preproc in
38862 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
38863 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38864 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
38865 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
38866 ac_header_preproc=yes
38869 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
38870 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
38871 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
38872 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
38873 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
38874 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
38875 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
38876 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
38877 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
38878 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
38879 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
38880 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
38883 ## ------------------------------------ ##
38884 ## Report this to bug-coreutils@gnu.org ##
38885 ## ------------------------------------ ##
38888 sed "s/^/$as_me: WARNING: /" >&2
38891 echo "$as_me:$LINENO: checking for locale.h" >&5
38892 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
38893 if test "${ac_cv_header_locale_h+set}" = set; then
38894 echo $ECHO_N "(cached) $ECHO_C" >&6
38896 ac_cv_header_locale_h=$ac_header_preproc
38898 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
38899 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
38905 for ac_func in setlocale
38907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38908 echo "$as_me:$LINENO: checking for $ac_func" >&5
38909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38910 if eval "test \"\${$as_ac_var+set}\" = set"; then
38911 echo $ECHO_N "(cached) $ECHO_C" >&6
38913 cat >conftest.$ac_ext <<_ACEOF
38916 cat confdefs.h >>conftest.$ac_ext
38917 cat >>conftest.$ac_ext <<_ACEOF
38918 /* end confdefs.h. */
38919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38921 #define $ac_func innocuous_$ac_func
38923 /* System header to define __stub macros and hopefully few prototypes,
38924 which can conflict with char $ac_func (); below.
38925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38926 <limits.h> exists even on freestanding compilers. */
38929 # include <limits.h>
38931 # include <assert.h>
38936 /* Override any gcc2 internal prototype to avoid an error. */
38941 /* We use char because int might match the return type of a gcc2
38942 builtin and then its argument prototype would still apply. */
38944 /* The GNU C library defines this for functions which it implements
38945 to always fail with ENOSYS. Some functions are actually named
38946 something starting with __ and the normal name is an alias. */
38947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38950 char (*f) () = $ac_func;
38959 return f != $ac_func;
38964 rm -f conftest.$ac_objext conftest$ac_exeext
38965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38966 (eval $ac_link) 2>&5
38968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38969 (exit $ac_status); } &&
38970 { ac_try='test -s conftest$ac_exeext'
38971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38972 (eval $ac_try) 2>&5
38974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38975 (exit $ac_status); }; }; then
38976 eval "$as_ac_var=yes"
38978 echo "$as_me: failed program was:" >&5
38979 sed 's/^/| /' conftest.$ac_ext >&5
38981 eval "$as_ac_var=no"
38983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38987 if test `eval echo '${'$as_ac_var'}'` = yes; then
38988 cat >>confdefs.h <<_ACEOF
38989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38996 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
38997 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
38998 # Irix 4.0.5F has the header but not the library.
38999 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
39002 cat >>confdefs.h <<\_ACEOF
39008 if test $ac_have_func = no; then
39009 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
39010 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
39011 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
39012 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
39013 echo $ECHO_N "(cached) $ECHO_C" >&6
39015 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
39016 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
39018 # Is the header compilable?
39019 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
39020 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
39021 cat >conftest.$ac_ext <<_ACEOF
39024 cat confdefs.h >>conftest.$ac_ext
39025 cat >>conftest.$ac_ext <<_ACEOF
39026 /* end confdefs.h. */
39027 $ac_includes_default
39028 #include <inq_stats/cpustats.h>
39030 rm -f conftest.$ac_objext
39031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39032 (eval $ac_compile) 2>&5
39034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39035 (exit $ac_status); } &&
39036 { ac_try='test -s conftest.$ac_objext'
39037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39038 (eval $ac_try) 2>&5
39040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39041 (exit $ac_status); }; }; then
39042 ac_header_compiler=yes
39044 echo "$as_me: failed program was:" >&5
39045 sed 's/^/| /' conftest.$ac_ext >&5
39047 ac_header_compiler=no
39049 rm -f conftest.$ac_objext conftest.$ac_ext
39050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39051 echo "${ECHO_T}$ac_header_compiler" >&6
39053 # Is the header present?
39054 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
39055 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
39056 cat >conftest.$ac_ext <<_ACEOF
39059 cat confdefs.h >>conftest.$ac_ext
39060 cat >>conftest.$ac_ext <<_ACEOF
39061 /* end confdefs.h. */
39062 #include <inq_stats/cpustats.h>
39064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39067 grep -v '^ *+' conftest.er1 >conftest.err
39069 cat conftest.err >&5
39070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39071 (exit $ac_status); } >/dev/null; then
39072 if test -s conftest.err; then
39073 ac_cpp_err=$ac_c_preproc_warn_flag
39080 if test -z "$ac_cpp_err"; then
39081 ac_header_preproc=yes
39083 echo "$as_me: failed program was:" >&5
39084 sed 's/^/| /' conftest.$ac_ext >&5
39086 ac_header_preproc=no
39088 rm -f conftest.err conftest.$ac_ext
39089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39090 echo "${ECHO_T}$ac_header_preproc" >&6
39092 # So? What about this header?
39093 case $ac_header_compiler:$ac_header_preproc in
39095 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
39096 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39097 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
39098 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
39099 ac_header_preproc=yes
39102 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
39103 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
39104 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
39105 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
39106 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
39107 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
39108 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
39109 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
39110 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
39111 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
39112 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
39113 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
39116 ## ------------------------------------ ##
39117 ## Report this to bug-coreutils@gnu.org ##
39118 ## ------------------------------------ ##
39121 sed "s/^/$as_me: WARNING: /" >&2
39124 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
39125 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
39126 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
39127 echo $ECHO_N "(cached) $ECHO_C" >&6
39129 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
39131 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
39132 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
39135 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
39138 cat >>confdefs.h <<\_ACEOF
39143 cat >>confdefs.h <<\_ACEOF
39152 if test $ac_have_func = no; then
39153 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
39154 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
39155 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
39156 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
39157 echo $ECHO_N "(cached) $ECHO_C" >&6
39159 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
39160 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
39162 # Is the header compilable?
39163 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
39164 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
39165 cat >conftest.$ac_ext <<_ACEOF
39168 cat confdefs.h >>conftest.$ac_ext
39169 cat >>conftest.$ac_ext <<_ACEOF
39170 /* end confdefs.h. */
39171 $ac_includes_default
39172 #include <sys/cpustats.h>
39174 rm -f conftest.$ac_objext
39175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39176 (eval $ac_compile) 2>&5
39178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39179 (exit $ac_status); } &&
39180 { ac_try='test -s conftest.$ac_objext'
39181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39182 (eval $ac_try) 2>&5
39184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39185 (exit $ac_status); }; }; then
39186 ac_header_compiler=yes
39188 echo "$as_me: failed program was:" >&5
39189 sed 's/^/| /' conftest.$ac_ext >&5
39191 ac_header_compiler=no
39193 rm -f conftest.$ac_objext conftest.$ac_ext
39194 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39195 echo "${ECHO_T}$ac_header_compiler" >&6
39197 # Is the header present?
39198 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
39199 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
39200 cat >conftest.$ac_ext <<_ACEOF
39203 cat confdefs.h >>conftest.$ac_ext
39204 cat >>conftest.$ac_ext <<_ACEOF
39205 /* end confdefs.h. */
39206 #include <sys/cpustats.h>
39208 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39211 grep -v '^ *+' conftest.er1 >conftest.err
39213 cat conftest.err >&5
39214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39215 (exit $ac_status); } >/dev/null; then
39216 if test -s conftest.err; then
39217 ac_cpp_err=$ac_c_preproc_warn_flag
39224 if test -z "$ac_cpp_err"; then
39225 ac_header_preproc=yes
39227 echo "$as_me: failed program was:" >&5
39228 sed 's/^/| /' conftest.$ac_ext >&5
39230 ac_header_preproc=no
39232 rm -f conftest.err conftest.$ac_ext
39233 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39234 echo "${ECHO_T}$ac_header_preproc" >&6
39236 # So? What about this header?
39237 case $ac_header_compiler:$ac_header_preproc in
39239 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
39240 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39241 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
39242 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
39243 ac_header_preproc=yes
39246 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
39247 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
39248 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
39249 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
39250 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
39251 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
39252 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
39253 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
39254 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
39255 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
39256 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
39257 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
39260 ## ------------------------------------ ##
39261 ## Report this to bug-coreutils@gnu.org ##
39262 ## ------------------------------------ ##
39265 sed "s/^/$as_me: WARNING: /" >&2
39268 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
39269 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
39270 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
39271 echo $ECHO_N "(cached) $ECHO_C" >&6
39273 ac_cv_header_sys_cpustats_h=$ac_header_preproc
39275 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
39276 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
39279 if test $ac_cv_header_sys_cpustats_h = yes; then
39280 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
39289 if test $ac_have_func = no; then
39291 for ac_header in mach/mach.h
39293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39295 echo "$as_me:$LINENO: checking for $ac_header" >&5
39296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39298 echo $ECHO_N "(cached) $ECHO_C" >&6
39300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39303 # Is the header compilable?
39304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39306 cat >conftest.$ac_ext <<_ACEOF
39309 cat confdefs.h >>conftest.$ac_ext
39310 cat >>conftest.$ac_ext <<_ACEOF
39311 /* end confdefs.h. */
39312 $ac_includes_default
39313 #include <$ac_header>
39315 rm -f conftest.$ac_objext
39316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39317 (eval $ac_compile) 2>&5
39319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39320 (exit $ac_status); } &&
39321 { ac_try='test -s conftest.$ac_objext'
39322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39323 (eval $ac_try) 2>&5
39325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39326 (exit $ac_status); }; }; then
39327 ac_header_compiler=yes
39329 echo "$as_me: failed program was:" >&5
39330 sed 's/^/| /' conftest.$ac_ext >&5
39332 ac_header_compiler=no
39334 rm -f conftest.$ac_objext conftest.$ac_ext
39335 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39336 echo "${ECHO_T}$ac_header_compiler" >&6
39338 # Is the header present?
39339 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39341 cat >conftest.$ac_ext <<_ACEOF
39344 cat confdefs.h >>conftest.$ac_ext
39345 cat >>conftest.$ac_ext <<_ACEOF
39346 /* end confdefs.h. */
39347 #include <$ac_header>
39349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39352 grep -v '^ *+' conftest.er1 >conftest.err
39354 cat conftest.err >&5
39355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39356 (exit $ac_status); } >/dev/null; then
39357 if test -s conftest.err; then
39358 ac_cpp_err=$ac_c_preproc_warn_flag
39365 if test -z "$ac_cpp_err"; then
39366 ac_header_preproc=yes
39368 echo "$as_me: failed program was:" >&5
39369 sed 's/^/| /' conftest.$ac_ext >&5
39371 ac_header_preproc=no
39373 rm -f conftest.err conftest.$ac_ext
39374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39375 echo "${ECHO_T}$ac_header_preproc" >&6
39377 # So? What about this header?
39378 case $ac_header_compiler:$ac_header_preproc in
39380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39384 ac_header_preproc=yes
39387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39390 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39394 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
39395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39401 ## ------------------------------------ ##
39402 ## Report this to bug-coreutils@gnu.org ##
39403 ## ------------------------------------ ##
39406 sed "s/^/$as_me: WARNING: /" >&2
39409 echo "$as_me:$LINENO: checking for $ac_header" >&5
39410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39412 echo $ECHO_N "(cached) $ECHO_C" >&6
39414 eval "$as_ac_Header=\$ac_header_preproc"
39416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39421 cat >>confdefs.h <<_ACEOF
39422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39432 for ac_header in nlist.h
39434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39436 echo "$as_me:$LINENO: checking for $ac_header" >&5
39437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39439 echo $ECHO_N "(cached) $ECHO_C" >&6
39441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39444 # Is the header compilable?
39445 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39447 cat >conftest.$ac_ext <<_ACEOF
39450 cat confdefs.h >>conftest.$ac_ext
39451 cat >>conftest.$ac_ext <<_ACEOF
39452 /* end confdefs.h. */
39453 $ac_includes_default
39454 #include <$ac_header>
39456 rm -f conftest.$ac_objext
39457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39458 (eval $ac_compile) 2>&5
39460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39461 (exit $ac_status); } &&
39462 { ac_try='test -s conftest.$ac_objext'
39463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39464 (eval $ac_try) 2>&5
39466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39467 (exit $ac_status); }; }; then
39468 ac_header_compiler=yes
39470 echo "$as_me: failed program was:" >&5
39471 sed 's/^/| /' conftest.$ac_ext >&5
39473 ac_header_compiler=no
39475 rm -f conftest.$ac_objext conftest.$ac_ext
39476 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39477 echo "${ECHO_T}$ac_header_compiler" >&6
39479 # Is the header present?
39480 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39482 cat >conftest.$ac_ext <<_ACEOF
39485 cat confdefs.h >>conftest.$ac_ext
39486 cat >>conftest.$ac_ext <<_ACEOF
39487 /* end confdefs.h. */
39488 #include <$ac_header>
39490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39493 grep -v '^ *+' conftest.er1 >conftest.err
39495 cat conftest.err >&5
39496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39497 (exit $ac_status); } >/dev/null; then
39498 if test -s conftest.err; then
39499 ac_cpp_err=$ac_c_preproc_warn_flag
39506 if test -z "$ac_cpp_err"; then
39507 ac_header_preproc=yes
39509 echo "$as_me: failed program was:" >&5
39510 sed 's/^/| /' conftest.$ac_ext >&5
39512 ac_header_preproc=no
39514 rm -f conftest.err conftest.$ac_ext
39515 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39516 echo "${ECHO_T}$ac_header_preproc" >&6
39518 # So? What about this header?
39519 case $ac_header_compiler:$ac_header_preproc in
39521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39525 ac_header_preproc=yes
39528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39531 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39535 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
39536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39542 ## ------------------------------------ ##
39543 ## Report this to bug-coreutils@gnu.org ##
39544 ## ------------------------------------ ##
39547 sed "s/^/$as_me: WARNING: /" >&2
39550 echo "$as_me:$LINENO: checking for $ac_header" >&5
39551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39553 echo $ECHO_N "(cached) $ECHO_C" >&6
39555 eval "$as_ac_Header=\$ac_header_preproc"
39557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39562 cat >>confdefs.h <<_ACEOF
39563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39565 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
39566 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
39567 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
39568 echo $ECHO_N "(cached) $ECHO_C" >&6
39570 cat >conftest.$ac_ext <<_ACEOF
39573 cat confdefs.h >>conftest.$ac_ext
39574 cat >>conftest.$ac_ext <<_ACEOF
39575 /* end confdefs.h. */
39581 static struct nlist ac_aggr;
39582 if (ac_aggr.n_un.n_name)
39588 rm -f conftest.$ac_objext
39589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39590 (eval $ac_compile) 2>&5
39592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39593 (exit $ac_status); } &&
39594 { ac_try='test -s conftest.$ac_objext'
39595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39596 (eval $ac_try) 2>&5
39598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39599 (exit $ac_status); }; }; then
39600 ac_cv_member_struct_nlist_n_un_n_name=yes
39602 echo "$as_me: failed program was:" >&5
39603 sed 's/^/| /' conftest.$ac_ext >&5
39605 cat >conftest.$ac_ext <<_ACEOF
39608 cat confdefs.h >>conftest.$ac_ext
39609 cat >>conftest.$ac_ext <<_ACEOF
39610 /* end confdefs.h. */
39616 static struct nlist ac_aggr;
39617 if (sizeof ac_aggr.n_un.n_name)
39623 rm -f conftest.$ac_objext
39624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39625 (eval $ac_compile) 2>&5
39627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39628 (exit $ac_status); } &&
39629 { ac_try='test -s conftest.$ac_objext'
39630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39631 (eval $ac_try) 2>&5
39633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39634 (exit $ac_status); }; }; then
39635 ac_cv_member_struct_nlist_n_un_n_name=yes
39637 echo "$as_me: failed program was:" >&5
39638 sed 's/^/| /' conftest.$ac_ext >&5
39640 ac_cv_member_struct_nlist_n_un_n_name=no
39642 rm -f conftest.$ac_objext conftest.$ac_ext
39644 rm -f conftest.$ac_objext conftest.$ac_ext
39646 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
39647 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
39648 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
39650 cat >>confdefs.h <<_ACEOF
39651 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
39655 cat >>confdefs.h <<\_ACEOF
39656 #define NLIST_NAME_UNION 1
39670 # Some definitions of getloadavg require that the program be installed setgid.
39671 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
39672 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
39673 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
39674 echo $ECHO_N "(cached) $ECHO_C" >&6
39676 cat >conftest.$ac_ext <<_ACEOF
39679 cat confdefs.h >>conftest.$ac_ext
39680 cat >>conftest.$ac_ext <<_ACEOF
39681 /* end confdefs.h. */
39682 #include "$ac_lib_dir_getloadavg/getloadavg.c"
39683 #ifdef LDAV_PRIVILEGED
39684 Yowza Am I SETGID yet
39687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39688 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
39689 ac_cv_func_getloadavg_setgid=yes
39691 ac_cv_func_getloadavg_setgid=no
39696 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
39697 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
39698 if test $ac_cv_func_getloadavg_setgid = yes; then
39701 cat >>confdefs.h <<\_ACEOF
39702 #define GETLOADAVG_PRIVILEGED 1
39709 if test $ac_cv_func_getloadavg_setgid = yes; then
39710 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
39711 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
39712 if test "${ac_cv_group_kmem+set}" = set; then
39713 echo $ECHO_N "(cached) $ECHO_C" >&6
39715 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
39716 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
39717 # If we got an error (system does not support symlinks), try without -L.
39718 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
39719 ac_cv_group_kmem=`echo $ac_ls_output \
39720 | sed -ne 's/[ ][ ]*/ /g;
39721 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
39725 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
39726 echo "${ECHO_T}$ac_cv_group_kmem" >&6
39727 KMEM_GROUP=$ac_cv_group_kmem
39729 if test "x$ac_save_LIBS" = x; then
39730 GETLOADAVG_LIBS=$LIBS
39732 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
39741 # raise is used by at least sort and ls.
39743 for ac_func in raise
39745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39746 echo "$as_me:$LINENO: checking for $ac_func" >&5
39747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39748 if eval "test \"\${$as_ac_var+set}\" = set"; then
39749 echo $ECHO_N "(cached) $ECHO_C" >&6
39751 cat >conftest.$ac_ext <<_ACEOF
39754 cat confdefs.h >>conftest.$ac_ext
39755 cat >>conftest.$ac_ext <<_ACEOF
39756 /* end confdefs.h. */
39757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39759 #define $ac_func innocuous_$ac_func
39761 /* System header to define __stub macros and hopefully few prototypes,
39762 which can conflict with char $ac_func (); below.
39763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39764 <limits.h> exists even on freestanding compilers. */
39767 # include <limits.h>
39769 # include <assert.h>
39774 /* Override any gcc2 internal prototype to avoid an error. */
39779 /* We use char because int might match the return type of a gcc2
39780 builtin and then its argument prototype would still apply. */
39782 /* The GNU C library defines this for functions which it implements
39783 to always fail with ENOSYS. Some functions are actually named
39784 something starting with __ and the normal name is an alias. */
39785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39788 char (*f) () = $ac_func;
39797 return f != $ac_func;
39802 rm -f conftest.$ac_objext conftest$ac_exeext
39803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39804 (eval $ac_link) 2>&5
39806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39807 (exit $ac_status); } &&
39808 { ac_try='test -s conftest$ac_exeext'
39809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39810 (eval $ac_try) 2>&5
39812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39813 (exit $ac_status); }; }; then
39814 eval "$as_ac_var=yes"
39816 echo "$as_me: failed program was:" >&5
39817 sed 's/^/| /' conftest.$ac_ext >&5
39819 eval "$as_ac_var=no"
39821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39825 if test `eval echo '${'$as_ac_var'}'` = yes; then
39826 cat >>confdefs.h <<_ACEOF
39827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39831 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
39837 # By default, argmatch should fail calling usage (1).
39839 cat >>confdefs.h <<\_ACEOF
39840 #define ARGMATCH_DIE usage (1)
39844 cat >>confdefs.h <<\_ACEOF
39845 #define ARGMATCH_DIE_DECL extern void usage ()
39849 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
39850 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
39851 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
39852 echo $ECHO_N "(cached) $ECHO_C" >&6
39854 ac_cv_func_setvbuf_reversed=no
39855 cat >conftest.$ac_ext <<_ACEOF
39858 cat confdefs.h >>conftest.$ac_ext
39859 cat >>conftest.$ac_ext <<_ACEOF
39860 /* end confdefs.h. */
39863 int (setvbuf) (FILE *, int, char *, size_t);
39868 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
39873 rm -f conftest.$ac_objext conftest$ac_exeext
39874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39875 (eval $ac_link) 2>&5
39877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39878 (exit $ac_status); } &&
39879 { ac_try='test -s conftest$ac_exeext'
39880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39881 (eval $ac_try) 2>&5
39883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39884 (exit $ac_status); }; }; then
39885 cat >conftest.$ac_ext <<_ACEOF
39888 cat confdefs.h >>conftest.$ac_ext
39889 cat >>conftest.$ac_ext <<_ACEOF
39890 /* end confdefs.h. */
39893 int (setvbuf) (FILE *, int, char *, size_t);
39898 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
39903 rm -f conftest.$ac_objext conftest$ac_exeext
39904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39905 (eval $ac_link) 2>&5
39907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39908 (exit $ac_status); } &&
39909 { ac_try='test -s conftest$ac_exeext'
39910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39911 (eval $ac_try) 2>&5
39913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39914 (exit $ac_status); }; }; then
39915 # It compiles and links either way, so it must not be declared
39916 # with a prototype and most likely this is a K&R C compiler.
39918 if test "$cross_compiling" = yes; then
39919 : # Assume setvbuf is not reversed when cross-compiling.
39921 cat >conftest.$ac_ext <<_ACEOF
39924 cat confdefs.h >>conftest.$ac_ext
39925 cat >>conftest.$ac_ext <<_ACEOF
39926 /* end confdefs.h. */
39931 /* This call has the arguments reversed.
39932 A reversed system may check and see that the address of buf
39933 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
39935 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
39938 exit (0); /* Non-reversed systems SEGV here. */
39943 rm -f conftest$ac_exeext
39944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39945 (eval $ac_link) 2>&5
39947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39950 (eval $ac_try) 2>&5
39952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39953 (exit $ac_status); }; }; then
39954 ac_cv_func_setvbuf_reversed=yes
39956 echo "$as_me: program exited with status $ac_status" >&5
39957 echo "$as_me: failed program was:" >&5
39958 sed 's/^/| /' conftest.$ac_ext >&5
39960 ( exit $ac_status )
39961 rm -f core core.* *.core
39963 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39965 ac_cv_func_setvbuf_reversed=yes
39967 echo "$as_me: failed program was:" >&5
39968 sed 's/^/| /' conftest.$ac_ext >&5
39971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39973 echo "$as_me: failed program was:" >&5
39974 sed 's/^/| /' conftest.$ac_ext >&5
39977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39979 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
39980 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
39981 if test $ac_cv_func_setvbuf_reversed = yes; then
39983 cat >>confdefs.h <<\_ACEOF
39984 #define SETVBUF_REVERSED 1
39990 # used by sleep and shred
39993 for ac_func in gettimeofday
39995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39996 echo "$as_me:$LINENO: checking for $ac_func" >&5
39997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39998 if eval "test \"\${$as_ac_var+set}\" = set"; then
39999 echo $ECHO_N "(cached) $ECHO_C" >&6
40001 cat >conftest.$ac_ext <<_ACEOF
40004 cat confdefs.h >>conftest.$ac_ext
40005 cat >>conftest.$ac_ext <<_ACEOF
40006 /* end confdefs.h. */
40007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40009 #define $ac_func innocuous_$ac_func
40011 /* System header to define __stub macros and hopefully few prototypes,
40012 which can conflict with char $ac_func (); below.
40013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40014 <limits.h> exists even on freestanding compilers. */
40017 # include <limits.h>
40019 # include <assert.h>
40024 /* Override any gcc2 internal prototype to avoid an error. */
40029 /* We use char because int might match the return type of a gcc2
40030 builtin and then its argument prototype would still apply. */
40032 /* The GNU C library defines this for functions which it implements
40033 to always fail with ENOSYS. Some functions are actually named
40034 something starting with __ and the normal name is an alias. */
40035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40038 char (*f) () = $ac_func;
40047 return f != $ac_func;
40052 rm -f conftest.$ac_objext conftest$ac_exeext
40053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40054 (eval $ac_link) 2>&5
40056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40057 (exit $ac_status); } &&
40058 { ac_try='test -s conftest$ac_exeext'
40059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40060 (eval $ac_try) 2>&5
40062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40063 (exit $ac_status); }; }; then
40064 eval "$as_ac_var=yes"
40066 echo "$as_me: failed program was:" >&5
40067 sed 's/^/| /' conftest.$ac_ext >&5
40069 eval "$as_ac_var=no"
40071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40075 if test `eval echo '${'$as_ac_var'}'` = yes; then
40076 cat >>confdefs.h <<_ACEOF
40077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40095 echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
40096 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6
40097 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
40098 echo $ECHO_N "(cached) $ECHO_C" >&6
40101 if test "$cross_compiling" = yes; then
40102 jm_cv_func_gettimeofday_clobber=yes
40104 cat >conftest.$ac_ext <<_ACEOF
40107 cat confdefs.h >>conftest.$ac_ext
40108 cat >>conftest.$ac_ext <<_ACEOF
40109 /* end confdefs.h. */
40113 # include <string.h>
40116 #if TIME_WITH_SYS_TIME
40117 # include <sys/time.h>
40120 # if HAVE_SYS_TIME_H
40121 # include <sys/time.h>
40128 # include <stdlib.h>
40136 struct tm saved_lt;
40138 lt = localtime (&t);
40140 gettimeofday (&tv, NULL);
40141 if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
40148 rm -f conftest$ac_exeext
40149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40150 (eval $ac_link) 2>&5
40152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40155 (eval $ac_try) 2>&5
40157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40158 (exit $ac_status); }; }; then
40159 jm_cv_func_gettimeofday_clobber=no
40161 echo "$as_me: program exited with status $ac_status" >&5
40162 echo "$as_me: failed program was:" >&5
40163 sed 's/^/| /' conftest.$ac_ext >&5
40165 ( exit $ac_status )
40166 jm_cv_func_gettimeofday_clobber=yes
40168 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40172 echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
40173 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6
40174 if test $jm_cv_func_gettimeofday_clobber = yes; then
40176 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
40178 cat >>confdefs.h <<\_ACEOF
40179 #define gmtime rpl_gmtime
40183 cat >>confdefs.h <<\_ACEOF
40184 #define localtime rpl_localtime
40190 cat >>confdefs.h <<\_ACEOF
40191 #define gettimeofday rpl_gettimeofday
40195 cat >>confdefs.h <<\_ACEOF
40196 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER 1
40256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40257 echo "$as_me:$LINENO: checking for $ac_func" >&5
40258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40259 if eval "test \"\${$as_ac_var+set}\" = set"; then
40260 echo $ECHO_N "(cached) $ECHO_C" >&6
40262 cat >conftest.$ac_ext <<_ACEOF
40265 cat confdefs.h >>conftest.$ac_ext
40266 cat >>conftest.$ac_ext <<_ACEOF
40267 /* end confdefs.h. */
40268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40270 #define $ac_func innocuous_$ac_func
40272 /* System header to define __stub macros and hopefully few prototypes,
40273 which can conflict with char $ac_func (); below.
40274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40275 <limits.h> exists even on freestanding compilers. */
40278 # include <limits.h>
40280 # include <assert.h>
40285 /* Override any gcc2 internal prototype to avoid an error. */
40290 /* We use char because int might match the return type of a gcc2
40291 builtin and then its argument prototype would still apply. */
40293 /* The GNU C library defines this for functions which it implements
40294 to always fail with ENOSYS. Some functions are actually named
40295 something starting with __ and the normal name is an alias. */
40296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40299 char (*f) () = $ac_func;
40308 return f != $ac_func;
40313 rm -f conftest.$ac_objext conftest$ac_exeext
40314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40315 (eval $ac_link) 2>&5
40317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40318 (exit $ac_status); } &&
40319 { ac_try='test -s conftest$ac_exeext'
40320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40321 (eval $ac_try) 2>&5
40323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40324 (exit $ac_status); }; }; then
40325 eval "$as_ac_var=yes"
40327 echo "$as_me: failed program was:" >&5
40328 sed 's/^/| /' conftest.$ac_ext >&5
40330 eval "$as_ac_var=no"
40332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40336 if test `eval echo '${'$as_ac_var'}'` = yes; then
40337 cat >>confdefs.h <<_ACEOF
40338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40348 for ac_func in setreuid setregid
40350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40351 echo "$as_me:$LINENO: checking for $ac_func" >&5
40352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40353 if eval "test \"\${$as_ac_var+set}\" = set"; then
40354 echo $ECHO_N "(cached) $ECHO_C" >&6
40356 cat >conftest.$ac_ext <<_ACEOF
40359 cat confdefs.h >>conftest.$ac_ext
40360 cat >>conftest.$ac_ext <<_ACEOF
40361 /* end confdefs.h. */
40362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40364 #define $ac_func innocuous_$ac_func
40366 /* System header to define __stub macros and hopefully few prototypes,
40367 which can conflict with char $ac_func (); below.
40368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40369 <limits.h> exists even on freestanding compilers. */
40372 # include <limits.h>
40374 # include <assert.h>
40379 /* Override any gcc2 internal prototype to avoid an error. */
40384 /* We use char because int might match the return type of a gcc2
40385 builtin and then its argument prototype would still apply. */
40387 /* The GNU C library defines this for functions which it implements
40388 to always fail with ENOSYS. Some functions are actually named
40389 something starting with __ and the normal name is an alias. */
40390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40393 char (*f) () = $ac_func;
40402 return f != $ac_func;
40407 rm -f conftest.$ac_objext conftest$ac_exeext
40408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40409 (eval $ac_link) 2>&5
40411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40412 (exit $ac_status); } &&
40413 { ac_try='test -s conftest$ac_exeext'
40414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40415 (eval $ac_try) 2>&5
40417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40418 (exit $ac_status); }; }; then
40419 eval "$as_ac_var=yes"
40421 echo "$as_me: failed program was:" >&5
40422 sed 's/^/| /' conftest.$ac_ext >&5
40424 eval "$as_ac_var=no"
40426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40429 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40430 if test `eval echo '${'$as_ac_var'}'` = yes; then
40431 cat >>confdefs.h <<_ACEOF
40432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40439 echo "$as_me:$LINENO: checking for working strtod" >&5
40440 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
40441 if test "${ac_cv_func_strtod+set}" = set; then
40442 echo $ECHO_N "(cached) $ECHO_C" >&6
40444 if test "$cross_compiling" = yes; then
40445 ac_cv_func_strtod=no
40447 cat >conftest.$ac_ext <<_ACEOF
40450 cat confdefs.h >>conftest.$ac_ext
40451 cat >>conftest.$ac_ext <<_ACEOF
40452 /* end confdefs.h. */
40459 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
40460 char *string = " +69";
40463 value = strtod (string, &term);
40464 if (value != 69 || term != (string + 4))
40469 /* Under Solaris 2.4, strtod returns the wrong value for the
40470 terminating character under some conditions. */
40471 char *string = "NaN";
40473 strtod (string, &term);
40474 if (term != string && *(term - 1) == 0)
40481 rm -f conftest$ac_exeext
40482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40483 (eval $ac_link) 2>&5
40485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40488 (eval $ac_try) 2>&5
40490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40491 (exit $ac_status); }; }; then
40492 ac_cv_func_strtod=yes
40494 echo "$as_me: program exited with status $ac_status" >&5
40495 echo "$as_me: failed program was:" >&5
40496 sed 's/^/| /' conftest.$ac_ext >&5
40498 ( exit $ac_status )
40499 ac_cv_func_strtod=no
40501 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40504 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
40505 echo "${ECHO_T}$ac_cv_func_strtod" >&6
40506 if test $ac_cv_func_strtod = no; then
40507 LIBOBJS="$LIBOBJS strtod.$ac_objext"
40508 echo "$as_me:$LINENO: checking for pow" >&5
40509 echo $ECHO_N "checking for pow... $ECHO_C" >&6
40510 if test "${ac_cv_func_pow+set}" = set; then
40511 echo $ECHO_N "(cached) $ECHO_C" >&6
40513 cat >conftest.$ac_ext <<_ACEOF
40516 cat confdefs.h >>conftest.$ac_ext
40517 cat >>conftest.$ac_ext <<_ACEOF
40518 /* end confdefs.h. */
40519 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
40520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40521 #define pow innocuous_pow
40523 /* System header to define __stub macros and hopefully few prototypes,
40524 which can conflict with char pow (); below.
40525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40526 <limits.h> exists even on freestanding compilers. */
40529 # include <limits.h>
40531 # include <assert.h>
40536 /* Override any gcc2 internal prototype to avoid an error. */
40541 /* We use char because int might match the return type of a gcc2
40542 builtin and then its argument prototype would still apply. */
40544 /* The GNU C library defines this for functions which it implements
40545 to always fail with ENOSYS. Some functions are actually named
40546 something starting with __ and the normal name is an alias. */
40547 #if defined (__stub_pow) || defined (__stub___pow)
40550 char (*f) () = pow;
40564 rm -f conftest.$ac_objext conftest$ac_exeext
40565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40566 (eval $ac_link) 2>&5
40568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40569 (exit $ac_status); } &&
40570 { ac_try='test -s conftest$ac_exeext'
40571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40572 (eval $ac_try) 2>&5
40574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40575 (exit $ac_status); }; }; then
40578 echo "$as_me: failed program was:" >&5
40579 sed 's/^/| /' conftest.$ac_ext >&5
40583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40585 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
40586 echo "${ECHO_T}$ac_cv_func_pow" >&6
40588 if test $ac_cv_func_pow = no; then
40589 echo "$as_me:$LINENO: checking for pow in -lm" >&5
40590 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
40591 if test "${ac_cv_lib_m_pow+set}" = set; then
40592 echo $ECHO_N "(cached) $ECHO_C" >&6
40594 ac_check_lib_save_LIBS=$LIBS
40596 cat >conftest.$ac_ext <<_ACEOF
40599 cat confdefs.h >>conftest.$ac_ext
40600 cat >>conftest.$ac_ext <<_ACEOF
40601 /* end confdefs.h. */
40603 /* Override any gcc2 internal prototype to avoid an error. */
40607 /* We use char because int might match the return type of a gcc2
40608 builtin and then its argument prototype would still apply. */
40618 rm -f conftest.$ac_objext conftest$ac_exeext
40619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40620 (eval $ac_link) 2>&5
40622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40623 (exit $ac_status); } &&
40624 { ac_try='test -s conftest$ac_exeext'
40625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40626 (eval $ac_try) 2>&5
40628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40629 (exit $ac_status); }; }; then
40630 ac_cv_lib_m_pow=yes
40632 echo "$as_me: failed program was:" >&5
40633 sed 's/^/| /' conftest.$ac_ext >&5
40637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40638 LIBS=$ac_check_lib_save_LIBS
40640 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
40641 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
40642 if test $ac_cv_lib_m_pow = yes; then
40645 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
40646 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
40657 # See if linking `seq' requires -lm.
40658 # It does on nearly every system. The single exception (so far) is
40659 # BeOS which has all the math functions in the normal runtime library
40660 # and doesn't have a separate math library.
40664 static double x, y;
40669 cat >conftest.$ac_ext <<_ACEOF
40672 cat confdefs.h >>conftest.$ac_ext
40673 cat >>conftest.$ac_ext <<_ACEOF
40674 /* end confdefs.h. */
40684 rm -f conftest.$ac_objext conftest$ac_exeext
40685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40686 (eval $ac_link) 2>&5
40688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40689 (exit $ac_status); } &&
40690 { ac_try='test -s conftest$ac_exeext'
40691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40692 (eval $ac_try) 2>&5
40694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40695 (exit $ac_status); }; }; then
40698 echo "$as_me: failed program was:" >&5
40699 sed 's/^/| /' conftest.$ac_ext >&5
40701 ac_seq_save_LIBS="$LIBS"
40704 cat >conftest.$ac_ext <<_ACEOF
40707 cat confdefs.h >>conftest.$ac_ext
40708 cat >>conftest.$ac_ext <<_ACEOF
40709 /* end confdefs.h. */
40719 rm -f conftest.$ac_objext conftest$ac_exeext
40720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40721 (eval $ac_link) 2>&5
40723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40724 (exit $ac_status); } &&
40725 { ac_try='test -s conftest$ac_exeext'
40726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40727 (eval $ac_try) 2>&5
40729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40730 (exit $ac_status); }; }; then
40733 echo "$as_me: failed program was:" >&5
40734 sed 's/^/| /' conftest.$ac_ext >&5
40737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40738 LIBS="$ac_seq_save_LIBS"
40741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40744 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
40745 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
40746 if test "${am_cv_langinfo_codeset+set}" = set; then
40747 echo $ECHO_N "(cached) $ECHO_C" >&6
40750 cat >conftest.$ac_ext <<_ACEOF
40753 cat confdefs.h >>conftest.$ac_ext
40754 cat >>conftest.$ac_ext <<_ACEOF
40755 /* end confdefs.h. */
40756 #include <langinfo.h>
40760 char* cs = nl_langinfo(CODESET);
40765 rm -f conftest.$ac_objext conftest$ac_exeext
40766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40767 (eval $ac_link) 2>&5
40769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40770 (exit $ac_status); } &&
40771 { ac_try='test -s conftest$ac_exeext'
40772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40773 (eval $ac_try) 2>&5
40775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40776 (exit $ac_status); }; }; then
40777 am_cv_langinfo_codeset=yes
40779 echo "$as_me: failed program was:" >&5
40780 sed 's/^/| /' conftest.$ac_ext >&5
40782 am_cv_langinfo_codeset=no
40784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40787 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
40788 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
40789 if test $am_cv_langinfo_codeset = yes; then
40791 cat >>confdefs.h <<\_ACEOF
40792 #define HAVE_LANGINFO_CODESET 1
40798 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
40799 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
40800 if test "${ac_cv_gnu_library_2_1+set}" = set; then
40801 echo $ECHO_N "(cached) $ECHO_C" >&6
40803 cat >conftest.$ac_ext <<_ACEOF
40806 cat confdefs.h >>conftest.$ac_ext
40807 cat >>conftest.$ac_ext <<_ACEOF
40808 /* end confdefs.h. */
40810 #include <features.h>
40811 #ifdef __GNU_LIBRARY__
40812 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
40818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40819 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
40820 ac_cv_gnu_library_2_1=yes
40822 ac_cv_gnu_library_2_1=no
40829 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
40830 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
40832 GLIBC21="$ac_cv_gnu_library_2_1"
40840 am_save_CPPFLAGS="$CPPFLAGS"
40842 for element in $INCICONV; do
40844 for x in $CPPFLAGS; do
40846 acl_save_prefix="$prefix"
40847 prefix="$acl_final_prefix"
40848 acl_save_exec_prefix="$exec_prefix"
40849 exec_prefix="$acl_final_exec_prefix"
40851 exec_prefix="$acl_save_exec_prefix"
40852 prefix="$acl_save_prefix"
40854 if test "X$x" = "X$element"; then
40859 if test -z "$haveit"; then
40860 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
40865 echo "$as_me:$LINENO: checking for iconv" >&5
40866 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
40867 if test "${am_cv_func_iconv+set}" = set; then
40868 echo $ECHO_N "(cached) $ECHO_C" >&6
40871 am_cv_func_iconv="no, consider installing GNU libiconv"
40874 cat >conftest.$ac_ext <<_ACEOF
40877 cat confdefs.h >>conftest.$ac_ext
40878 cat >>conftest.$ac_ext <<_ACEOF
40879 /* end confdefs.h. */
40880 #include <stdlib.h>
40885 iconv_t cd = iconv_open("","");
40886 iconv(cd,NULL,NULL,NULL,NULL);
40892 rm -f conftest.$ac_objext conftest$ac_exeext
40893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40894 (eval $ac_link) 2>&5
40896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40897 (exit $ac_status); } &&
40898 { ac_try='test -s conftest$ac_exeext'
40899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40900 (eval $ac_try) 2>&5
40902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40903 (exit $ac_status); }; }; then
40904 am_cv_func_iconv=yes
40906 echo "$as_me: failed program was:" >&5
40907 sed 's/^/| /' conftest.$ac_ext >&5
40910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40911 if test "$am_cv_func_iconv" != yes; then
40912 am_save_LIBS="$LIBS"
40913 LIBS="$LIBS $LIBICONV"
40915 cat >conftest.$ac_ext <<_ACEOF
40918 cat confdefs.h >>conftest.$ac_ext
40919 cat >>conftest.$ac_ext <<_ACEOF
40920 /* end confdefs.h. */
40921 #include <stdlib.h>
40926 iconv_t cd = iconv_open("","");
40927 iconv(cd,NULL,NULL,NULL,NULL);
40933 rm -f conftest.$ac_objext conftest$ac_exeext
40934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40935 (eval $ac_link) 2>&5
40937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40938 (exit $ac_status); } &&
40939 { ac_try='test -s conftest$ac_exeext'
40940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40941 (eval $ac_try) 2>&5
40943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40944 (exit $ac_status); }; }; then
40945 am_cv_lib_iconv=yes
40946 am_cv_func_iconv=yes
40948 echo "$as_me: failed program was:" >&5
40949 sed 's/^/| /' conftest.$ac_ext >&5
40952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40953 LIBS="$am_save_LIBS"
40957 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
40958 echo "${ECHO_T}$am_cv_func_iconv" >&6
40959 if test "$am_cv_func_iconv" = yes; then
40961 cat >>confdefs.h <<\_ACEOF
40962 #define HAVE_ICONV 1
40966 if test "$am_cv_lib_iconv" = yes; then
40967 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
40968 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
40969 echo "$as_me:$LINENO: result: $LIBICONV" >&5
40970 echo "${ECHO_T}$LIBICONV" >&6
40972 CPPFLAGS="$am_save_CPPFLAGS"
40979 if test "$am_cv_func_iconv" = yes; then
40980 echo "$as_me:$LINENO: checking for iconv declaration" >&5
40981 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
40982 if test "${am_cv_proto_iconv+set}" = set; then
40983 echo $ECHO_N "(cached) $ECHO_C" >&6
40987 cat >conftest.$ac_ext <<_ACEOF
40990 cat confdefs.h >>conftest.$ac_ext
40991 cat >>conftest.$ac_ext <<_ACEOF
40992 /* end confdefs.h. */
40994 #include <stdlib.h>
41000 #if defined(__STDC__) || defined(__cplusplus)
41001 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
41014 rm -f conftest.$ac_objext
41015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41016 (eval $ac_compile) 2>&5
41018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41019 (exit $ac_status); } &&
41020 { ac_try='test -s conftest.$ac_objext'
41021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41022 (eval $ac_try) 2>&5
41024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41025 (exit $ac_status); }; }; then
41026 am_cv_proto_iconv_arg1=""
41028 echo "$as_me: failed program was:" >&5
41029 sed 's/^/| /' conftest.$ac_ext >&5
41031 am_cv_proto_iconv_arg1="const"
41033 rm -f conftest.$ac_objext conftest.$ac_ext
41034 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
41037 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
41038 echo "$as_me:$LINENO: result: ${ac_t:-
41039 }$am_cv_proto_iconv" >&5
41040 echo "${ECHO_T}${ac_t:-
41041 }$am_cv_proto_iconv" >&6
41043 cat >>confdefs.h <<_ACEOF
41044 #define ICONV_CONST $am_cv_proto_iconv_arg1
41049 echo "$as_me:$LINENO: checking whether a running program can be unlinked" >&5
41050 echo $ECHO_N "checking whether a running program can be unlinked... $ECHO_C" >&6
41051 if test "${jm_cv_func_unlink_busy_text+set}" = set; then
41052 echo $ECHO_N "(cached) $ECHO_C" >&6
41056 if test "$cross_compiling" = yes; then
41057 jm_cv_func_unlink_busy_text=no
41060 cat >conftest.$ac_ext <<_ACEOF
41063 cat confdefs.h >>conftest.$ac_ext
41064 cat >>conftest.$ac_ext <<_ACEOF
41065 /* end confdefs.h. */
41073 exit (unlink (argv[0]));
41077 rm -f conftest$ac_exeext
41078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41079 (eval $ac_link) 2>&5
41081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41084 (eval $ac_try) 2>&5
41086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41087 (exit $ac_status); }; }; then
41088 jm_cv_func_unlink_busy_text=yes
41090 echo "$as_me: program exited with status $ac_status" >&5
41091 echo "$as_me: failed program was:" >&5
41092 sed 's/^/| /' conftest.$ac_ext >&5
41094 ( exit $ac_status )
41095 jm_cv_func_unlink_busy_text=no
41097 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41102 echo "$as_me:$LINENO: result: $jm_cv_func_unlink_busy_text" >&5
41103 echo "${ECHO_T}$jm_cv_func_unlink_busy_text" >&6
41105 if test $jm_cv_func_unlink_busy_text = no; then
41106 INSTALL=$ac_install_sh
41110 # These tests are for df.
41113 if test $gl_cv_list_mounted_fs = yes && test $gl_cv_fs_space = yes; then
41114 DF_PROG='df$(EXEEXT)'
41119 # If any of these functions don't exist (e.g. DJGPP 2.03),
41120 # use the corresponding stub.
41121 echo "$as_me:$LINENO: checking for fchdir" >&5
41122 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
41123 if test "${ac_cv_func_fchdir+set}" = set; then
41124 echo $ECHO_N "(cached) $ECHO_C" >&6
41126 cat >conftest.$ac_ext <<_ACEOF
41129 cat confdefs.h >>conftest.$ac_ext
41130 cat >>conftest.$ac_ext <<_ACEOF
41131 /* end confdefs.h. */
41132 /* Define fchdir to an innocuous variant, in case <limits.h> declares fchdir.
41133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41134 #define fchdir innocuous_fchdir
41136 /* System header to define __stub macros and hopefully few prototypes,
41137 which can conflict with char fchdir (); below.
41138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41139 <limits.h> exists even on freestanding compilers. */
41142 # include <limits.h>
41144 # include <assert.h>
41149 /* Override any gcc2 internal prototype to avoid an error. */
41154 /* We use char because int might match the return type of a gcc2
41155 builtin and then its argument prototype would still apply. */
41157 /* The GNU C library defines this for functions which it implements
41158 to always fail with ENOSYS. Some functions are actually named
41159 something starting with __ and the normal name is an alias. */
41160 #if defined (__stub_fchdir) || defined (__stub___fchdir)
41163 char (*f) () = fchdir;
41172 return f != fchdir;
41177 rm -f conftest.$ac_objext conftest$ac_exeext
41178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41179 (eval $ac_link) 2>&5
41181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41182 (exit $ac_status); } &&
41183 { ac_try='test -s conftest$ac_exeext'
41184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41185 (eval $ac_try) 2>&5
41187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41188 (exit $ac_status); }; }; then
41189 ac_cv_func_fchdir=yes
41191 echo "$as_me: failed program was:" >&5
41192 sed 's/^/| /' conftest.$ac_ext >&5
41194 ac_cv_func_fchdir=no
41196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41198 echo "$as_me:$LINENO: result: $ac_cv_func_fchdir" >&5
41199 echo "${ECHO_T}$ac_cv_func_fchdir" >&6
41200 if test $ac_cv_func_fchdir = yes; then
41203 LIBOBJS="$LIBOBJS fchdir-stub.$ac_objext"
41206 echo "$as_me:$LINENO: checking for fchown" >&5
41207 echo $ECHO_N "checking for fchown... $ECHO_C" >&6
41208 if test "${ac_cv_func_fchown+set}" = set; then
41209 echo $ECHO_N "(cached) $ECHO_C" >&6
41211 cat >conftest.$ac_ext <<_ACEOF
41214 cat confdefs.h >>conftest.$ac_ext
41215 cat >>conftest.$ac_ext <<_ACEOF
41216 /* end confdefs.h. */
41217 /* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
41218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41219 #define fchown innocuous_fchown
41221 /* System header to define __stub macros and hopefully few prototypes,
41222 which can conflict with char fchown (); below.
41223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41224 <limits.h> exists even on freestanding compilers. */
41227 # include <limits.h>
41229 # include <assert.h>
41234 /* Override any gcc2 internal prototype to avoid an error. */
41239 /* We use char because int might match the return type of a gcc2
41240 builtin and then its argument prototype would still apply. */
41242 /* The GNU C library defines this for functions which it implements
41243 to always fail with ENOSYS. Some functions are actually named
41244 something starting with __ and the normal name is an alias. */
41245 #if defined (__stub_fchown) || defined (__stub___fchown)
41248 char (*f) () = fchown;
41257 return f != fchown;
41262 rm -f conftest.$ac_objext conftest$ac_exeext
41263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41264 (eval $ac_link) 2>&5
41266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41267 (exit $ac_status); } &&
41268 { ac_try='test -s conftest$ac_exeext'
41269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41270 (eval $ac_try) 2>&5
41272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41273 (exit $ac_status); }; }; then
41274 ac_cv_func_fchown=yes
41276 echo "$as_me: failed program was:" >&5
41277 sed 's/^/| /' conftest.$ac_ext >&5
41279 ac_cv_func_fchown=no
41281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41283 echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
41284 echo "${ECHO_T}$ac_cv_func_fchown" >&6
41285 if test $ac_cv_func_fchown = yes; then
41288 LIBOBJS="$LIBOBJS fchown-stub.$ac_objext"
41293 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
41294 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
41295 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
41296 echo $ECHO_N "(cached) $ECHO_C" >&6
41298 cat >conftest.$ac_ext <<_ACEOF
41301 cat confdefs.h >>conftest.$ac_ext
41302 cat >>conftest.$ac_ext <<_ACEOF
41303 /* end confdefs.h. */
41304 #include <sys/types.h>
41305 #include <termios.h>
41311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41312 $EGREP "yes" >/dev/null 2>&1; then
41313 ac_cv_sys_tiocgwinsz_in_termios_h=yes
41315 ac_cv_sys_tiocgwinsz_in_termios_h=no
41320 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
41321 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
41323 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
41324 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
41325 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
41326 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
41327 echo $ECHO_N "(cached) $ECHO_C" >&6
41329 cat >conftest.$ac_ext <<_ACEOF
41332 cat confdefs.h >>conftest.$ac_ext
41333 cat >>conftest.$ac_ext <<_ACEOF
41334 /* end confdefs.h. */
41335 #include <sys/types.h>
41336 #include <sys/ioctl.h>
41342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41343 $EGREP "yes" >/dev/null 2>&1; then
41344 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
41346 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
41351 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
41352 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
41354 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
41356 cat >>confdefs.h <<\_ACEOF
41357 #define GWINSZ_IN_SYS_IOCTL 1
41363 echo "$as_me:$LINENO: checking POSIX termios" >&5
41364 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
41365 if test "${ac_cv_sys_posix_termios+set}" = set; then
41366 echo $ECHO_N "(cached) $ECHO_C" >&6
41368 cat >conftest.$ac_ext <<_ACEOF
41371 cat confdefs.h >>conftest.$ac_ext
41372 cat >>conftest.$ac_ext <<_ACEOF
41373 /* end confdefs.h. */
41374 #include <sys/types.h>
41375 #include <unistd.h>
41376 #include <termios.h>
41381 /* SunOS 4.0.3 has termios.h but not the library calls. */
41387 rm -f conftest.$ac_objext conftest$ac_exeext
41388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41389 (eval $ac_link) 2>&5
41391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41392 (exit $ac_status); } &&
41393 { ac_try='test -s conftest$ac_exeext'
41394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41395 (eval $ac_try) 2>&5
41397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41398 (exit $ac_status); }; }; then
41399 ac_cv_sys_posix_termios=yes
41401 echo "$as_me: failed program was:" >&5
41402 sed 's/^/| /' conftest.$ac_ext >&5
41404 ac_cv_sys_posix_termios=no
41406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41408 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
41409 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
41412 echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
41413 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
41414 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
41415 echo $ECHO_N "(cached) $ECHO_C" >&6
41417 jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
41418 if test $ac_cv_sys_posix_termios = yes; then
41420 cat >conftest.$ac_ext <<_ACEOF
41423 cat confdefs.h >>conftest.$ac_ext
41424 cat >>conftest.$ac_ext <<_ACEOF
41425 /* end confdefs.h. */
41426 #include <termios.h>
41431 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
41436 rm -f conftest.$ac_objext
41437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41438 (eval $ac_compile) 2>&5
41440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41441 (exit $ac_status); } &&
41442 { ac_try='test -s conftest.$ac_objext'
41443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41444 (eval $ac_try) 2>&5
41446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41447 (exit $ac_status); }; }; then
41450 echo "$as_me: failed program was:" >&5
41451 sed 's/^/| /' conftest.$ac_ext >&5
41454 rm -f conftest.$ac_objext conftest.$ac_ext
41456 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
41458 cat >conftest.$ac_ext <<_ACEOF
41461 cat confdefs.h >>conftest.$ac_ext
41462 cat >>conftest.$ac_ext <<_ACEOF
41463 /* end confdefs.h. */
41464 #include <sys/ptem.h>
41473 rm -f conftest.$ac_objext
41474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41475 (eval $ac_compile) 2>&5
41477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41478 (exit $ac_status); } &&
41479 { ac_try='test -s conftest.$ac_objext'
41480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41481 (eval $ac_try) 2>&5
41483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41484 (exit $ac_status); }; }; then
41487 echo "$as_me: failed program was:" >&5
41488 sed 's/^/| /' conftest.$ac_ext >&5
41490 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
41492 rm -f conftest.$ac_objext conftest.$ac_ext
41495 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
41496 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
41497 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
41499 cat >>confdefs.h <<\_ACEOF
41500 #define WINSIZE_IN_PTEM 1
41505 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
41506 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
41507 if test "${utils_cv_localtime_cache+set}" = set; then
41508 echo $ECHO_N "(cached) $ECHO_C" >&6
41510 if test x$ac_cv_func_tzset = xyes; then
41511 if test "$cross_compiling" = yes; then
41512 # If we have tzset, assume the worst when cross-compiling.
41513 utils_cv_localtime_cache=yes
41515 cat >conftest.$ac_ext <<_ACEOF
41518 cat confdefs.h >>conftest.$ac_ext
41519 cat >>conftest.$ac_ext <<_ACEOF
41520 /* end confdefs.h. */
41523 # include <stdlib.h>
41525 extern char **environ;
41529 for (to = from = environ; (*to = *from); from++)
41530 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
41535 time_t now = time ((time_t *) 0);
41536 int hour_GMT0, hour_unset;
41537 if (putenv ("TZ=GMT0") != 0)
41539 hour_GMT0 = localtime (&now)->tm_hour;
41541 hour_unset = localtime (&now)->tm_hour;
41542 if (putenv ("TZ=PST8") != 0)
41544 if (localtime (&now)->tm_hour == hour_GMT0)
41547 if (localtime (&now)->tm_hour != hour_unset)
41552 rm -f conftest$ac_exeext
41553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41554 (eval $ac_link) 2>&5
41556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41559 (eval $ac_try) 2>&5
41561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41562 (exit $ac_status); }; }; then
41563 utils_cv_localtime_cache=no
41565 echo "$as_me: program exited with status $ac_status" >&5
41566 echo "$as_me: failed program was:" >&5
41567 sed 's/^/| /' conftest.$ac_ext >&5
41569 ( exit $ac_status )
41570 utils_cv_localtime_cache=yes
41572 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41575 # If we lack tzset, report that localtime does not cache TZ,
41576 # since we can't invalidate the cache if we don't have tzset.
41577 utils_cv_localtime_cache=no
41580 echo "$as_me:$LINENO: result: $utils_cv_localtime_cache" >&5
41581 echo "${ECHO_T}$utils_cv_localtime_cache" >&6
41582 if test $utils_cv_localtime_cache = yes; then
41584 cat >>confdefs.h <<\_ACEOF
41585 #define LOCALTIME_CACHE 1
41590 # SCO-ODT-3.0 is reported to need -los to link programs using initgroups
41592 for ac_func in initgroups
41594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41595 echo "$as_me:$LINENO: checking for $ac_func" >&5
41596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41597 if eval "test \"\${$as_ac_var+set}\" = set"; then
41598 echo $ECHO_N "(cached) $ECHO_C" >&6
41600 cat >conftest.$ac_ext <<_ACEOF
41603 cat confdefs.h >>conftest.$ac_ext
41604 cat >>conftest.$ac_ext <<_ACEOF
41605 /* end confdefs.h. */
41606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41608 #define $ac_func innocuous_$ac_func
41610 /* System header to define __stub macros and hopefully few prototypes,
41611 which can conflict with char $ac_func (); below.
41612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41613 <limits.h> exists even on freestanding compilers. */
41616 # include <limits.h>
41618 # include <assert.h>
41623 /* Override any gcc2 internal prototype to avoid an error. */
41628 /* We use char because int might match the return type of a gcc2
41629 builtin and then its argument prototype would still apply. */
41631 /* The GNU C library defines this for functions which it implements
41632 to always fail with ENOSYS. Some functions are actually named
41633 something starting with __ and the normal name is an alias. */
41634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41637 char (*f) () = $ac_func;
41646 return f != $ac_func;
41651 rm -f conftest.$ac_objext conftest$ac_exeext
41652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41653 (eval $ac_link) 2>&5
41655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41656 (exit $ac_status); } &&
41657 { ac_try='test -s conftest$ac_exeext'
41658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41659 (eval $ac_try) 2>&5
41661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41662 (exit $ac_status); }; }; then
41663 eval "$as_ac_var=yes"
41665 echo "$as_me: failed program was:" >&5
41666 sed 's/^/| /' conftest.$ac_ext >&5
41668 eval "$as_ac_var=no"
41670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41673 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41674 if test `eval echo '${'$as_ac_var'}'` = yes; then
41675 cat >>confdefs.h <<_ACEOF
41676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41682 if test $ac_cv_func_initgroups = no; then
41684 echo "$as_me:$LINENO: checking for initgroups in -los" >&5
41685 echo $ECHO_N "checking for initgroups in -los... $ECHO_C" >&6
41686 if test "${ac_cv_lib_os_initgroups+set}" = set; then
41687 echo $ECHO_N "(cached) $ECHO_C" >&6
41689 ac_check_lib_save_LIBS=$LIBS
41691 cat >conftest.$ac_ext <<_ACEOF
41694 cat confdefs.h >>conftest.$ac_ext
41695 cat >>conftest.$ac_ext <<_ACEOF
41696 /* end confdefs.h. */
41698 /* Override any gcc2 internal prototype to avoid an error. */
41702 /* We use char because int might match the return type of a gcc2
41703 builtin and then its argument prototype would still apply. */
41704 char initgroups ();
41713 rm -f conftest.$ac_objext conftest$ac_exeext
41714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41715 (eval $ac_link) 2>&5
41717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41718 (exit $ac_status); } &&
41719 { ac_try='test -s conftest$ac_exeext'
41720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41721 (eval $ac_try) 2>&5
41723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41724 (exit $ac_status); }; }; then
41725 ac_cv_lib_os_initgroups=yes
41727 echo "$as_me: failed program was:" >&5
41728 sed 's/^/| /' conftest.$ac_ext >&5
41730 ac_cv_lib_os_initgroups=no
41732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41733 LIBS=$ac_check_lib_save_LIBS
41735 echo "$as_me:$LINENO: result: $ac_cv_lib_os_initgroups" >&5
41736 echo "${ECHO_T}$ac_cv_lib_os_initgroups" >&6
41737 if test $ac_cv_lib_os_initgroups = yes; then
41738 cat >>confdefs.h <<_ACEOF
41739 #define HAVE_LIBOS 1
41749 for ac_func in syslog
41751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41752 echo "$as_me:$LINENO: checking for $ac_func" >&5
41753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41754 if eval "test \"\${$as_ac_var+set}\" = set"; then
41755 echo $ECHO_N "(cached) $ECHO_C" >&6
41757 cat >conftest.$ac_ext <<_ACEOF
41760 cat confdefs.h >>conftest.$ac_ext
41761 cat >>conftest.$ac_ext <<_ACEOF
41762 /* end confdefs.h. */
41763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41765 #define $ac_func innocuous_$ac_func
41767 /* System header to define __stub macros and hopefully few prototypes,
41768 which can conflict with char $ac_func (); below.
41769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41770 <limits.h> exists even on freestanding compilers. */
41773 # include <limits.h>
41775 # include <assert.h>
41780 /* Override any gcc2 internal prototype to avoid an error. */
41785 /* We use char because int might match the return type of a gcc2
41786 builtin and then its argument prototype would still apply. */
41788 /* The GNU C library defines this for functions which it implements
41789 to always fail with ENOSYS. Some functions are actually named
41790 something starting with __ and the normal name is an alias. */
41791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41794 char (*f) () = $ac_func;
41803 return f != $ac_func;
41808 rm -f conftest.$ac_objext conftest$ac_exeext
41809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41810 (eval $ac_link) 2>&5
41812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41813 (exit $ac_status); } &&
41814 { ac_try='test -s conftest$ac_exeext'
41815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41816 (eval $ac_try) 2>&5
41818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41819 (exit $ac_status); }; }; then
41820 eval "$as_ac_var=yes"
41822 echo "$as_me: failed program was:" >&5
41823 sed 's/^/| /' conftest.$ac_ext >&5
41825 eval "$as_ac_var=no"
41827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41831 if test `eval echo '${'$as_ac_var'}'` = yes; then
41832 cat >>confdefs.h <<_ACEOF
41833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41839 if test $ac_cv_func_syslog = no; then
41840 # syslog is not in the default libraries. See if it's in some other.
41841 for lib in bsd socket inet; do
41842 as_ac_Lib=`echo "ac_cv_lib_$lib''_syslog" | $as_tr_sh`
41843 echo "$as_me:$LINENO: checking for syslog in -l$lib" >&5
41844 echo $ECHO_N "checking for syslog in -l$lib... $ECHO_C" >&6
41845 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
41846 echo $ECHO_N "(cached) $ECHO_C" >&6
41848 ac_check_lib_save_LIBS=$LIBS
41849 LIBS="-l$lib $LIBS"
41850 cat >conftest.$ac_ext <<_ACEOF
41853 cat confdefs.h >>conftest.$ac_ext
41854 cat >>conftest.$ac_ext <<_ACEOF
41855 /* end confdefs.h. */
41857 /* Override any gcc2 internal prototype to avoid an error. */
41861 /* We use char because int might match the return type of a gcc2
41862 builtin and then its argument prototype would still apply. */
41872 rm -f conftest.$ac_objext conftest$ac_exeext
41873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41874 (eval $ac_link) 2>&5
41876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41877 (exit $ac_status); } &&
41878 { ac_try='test -s conftest$ac_exeext'
41879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41880 (eval $ac_try) 2>&5
41882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41883 (exit $ac_status); }; }; then
41884 eval "$as_ac_Lib=yes"
41886 echo "$as_me: failed program was:" >&5
41887 sed 's/^/| /' conftest.$ac_ext >&5
41889 eval "$as_ac_Lib=no"
41891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41892 LIBS=$ac_check_lib_save_LIBS
41894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
41895 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
41896 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
41898 cat >>confdefs.h <<\_ACEOF
41899 #define HAVE_SYSLOG 1
41902 LIBS="$LIBS -l$lib"; break
41908 echo "$as_me:$LINENO: checking for 3-argument setpriority function" >&5
41909 echo $ECHO_N "checking for 3-argument setpriority function... $ECHO_C" >&6
41910 if test "${utils_cv_func_setpriority+set}" = set; then
41911 echo $ECHO_N "(cached) $ECHO_C" >&6
41913 cat >conftest.$ac_ext <<_ACEOF
41916 cat confdefs.h >>conftest.$ac_ext
41917 cat >>conftest.$ac_ext <<_ACEOF
41918 /* end confdefs.h. */
41919 #include <sys/time.h>
41920 #include <sys/resource.h>
41924 setpriority(0, 0, 0);
41929 rm -f conftest.$ac_objext conftest$ac_exeext
41930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41931 (eval $ac_link) 2>&5
41933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41934 (exit $ac_status); } &&
41935 { ac_try='test -s conftest$ac_exeext'
41936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41937 (eval $ac_try) 2>&5
41939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41940 (exit $ac_status); }; }; then
41941 utils_cv_func_setpriority=yes
41943 echo "$as_me: failed program was:" >&5
41944 sed 's/^/| /' conftest.$ac_ext >&5
41946 utils_cv_func_setpriority=no
41948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41951 echo "$as_me:$LINENO: result: $utils_cv_func_setpriority" >&5
41952 echo "${ECHO_T}$utils_cv_func_setpriority" >&6
41953 if test $utils_cv_func_setpriority = yes; then
41954 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice\$(EXEEXT)"
41957 echo "$as_me:$LINENO: checking for nice function" >&5
41958 echo $ECHO_N "checking for nice function... $ECHO_C" >&6
41959 if test "${utils_cv_func_nice+set}" = set; then
41960 echo $ECHO_N "(cached) $ECHO_C" >&6
41962 cat >conftest.$ac_ext <<_ACEOF
41965 cat confdefs.h >>conftest.$ac_ext
41966 cat >>conftest.$ac_ext <<_ACEOF
41967 /* end confdefs.h. */
41977 rm -f conftest.$ac_objext conftest$ac_exeext
41978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41979 (eval $ac_link) 2>&5
41981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41982 (exit $ac_status); } &&
41983 { ac_try='test -s conftest$ac_exeext'
41984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41985 (eval $ac_try) 2>&5
41987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41988 (exit $ac_status); }; }; then
41989 utils_cv_func_nice=yes
41991 echo "$as_me: failed program was:" >&5
41992 sed 's/^/| /' conftest.$ac_ext >&5
41994 utils_cv_func_nice=no
41996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41999 echo "$as_me:$LINENO: result: $utils_cv_func_nice" >&5
42000 echo "${ECHO_T}$utils_cv_func_nice" >&6
42001 if test $utils_cv_func_nice = yes; then
42003 cat >>confdefs.h <<\_ACEOF
42004 #define NICE_PRIORITY 1
42007 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice\$(EXEEXT)"
42015 if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
42016 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS pinky\$(EXEEXT)"
42017 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS users\$(EXEEXT)"
42018 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS who\$(EXEEXT)"
42019 MAN="$MAN pinky.1 users.1 who.1"
42023 echo "$as_me:$LINENO: checking ut_host in struct utmp" >&5
42024 echo $ECHO_N "checking ut_host in struct utmp... $ECHO_C" >&6
42025 if test "${su_cv_func_ut_host_in_utmp+set}" = set; then
42026 echo $ECHO_N "(cached) $ECHO_C" >&6
42028 cat >conftest.$ac_ext <<_ACEOF
42031 cat confdefs.h >>conftest.$ac_ext
42032 cat >>conftest.$ac_ext <<_ACEOF
42033 /* end confdefs.h. */
42034 #include <sys/types.h>
42039 struct utmp ut; ut.ut_host;
42044 rm -f conftest.$ac_objext conftest$ac_exeext
42045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42046 (eval $ac_link) 2>&5
42048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42049 (exit $ac_status); } &&
42050 { ac_try='test -s conftest$ac_exeext'
42051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42052 (eval $ac_try) 2>&5
42054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42055 (exit $ac_status); }; }; then
42056 su_cv_func_ut_host_in_utmp=yes
42058 echo "$as_me: failed program was:" >&5
42059 sed 's/^/| /' conftest.$ac_ext >&5
42061 su_cv_func_ut_host_in_utmp=no
42063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42066 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmp" >&5
42067 echo "${ECHO_T}$su_cv_func_ut_host_in_utmp" >&6
42068 if test $su_cv_func_ut_host_in_utmp = yes; then
42071 cat >>confdefs.h <<\_ACEOF
42072 #define HAVE_UT_HOST 1
42077 if test -z "$have_ut_host"; then
42078 echo "$as_me:$LINENO: checking ut_host in struct utmpx" >&5
42079 echo $ECHO_N "checking ut_host in struct utmpx... $ECHO_C" >&6
42080 if test "${su_cv_func_ut_host_in_utmpx+set}" = set; then
42081 echo $ECHO_N "(cached) $ECHO_C" >&6
42083 cat >conftest.$ac_ext <<_ACEOF
42086 cat confdefs.h >>conftest.$ac_ext
42087 cat >>conftest.$ac_ext <<_ACEOF
42088 /* end confdefs.h. */
42089 #include <sys/types.h>
42094 struct utmpx ut; ut.ut_host;
42099 rm -f conftest.$ac_objext conftest$ac_exeext
42100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42101 (eval $ac_link) 2>&5
42103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42104 (exit $ac_status); } &&
42105 { ac_try='test -s conftest$ac_exeext'
42106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42107 (eval $ac_try) 2>&5
42109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42110 (exit $ac_status); }; }; then
42111 su_cv_func_ut_host_in_utmpx=yes
42113 echo "$as_me: failed program was:" >&5
42114 sed 's/^/| /' conftest.$ac_ext >&5
42116 su_cv_func_ut_host_in_utmpx=no
42118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42121 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmpx" >&5
42122 echo "${ECHO_T}$su_cv_func_ut_host_in_utmpx" >&6
42123 if test $su_cv_func_ut_host_in_utmpx = yes; then
42125 cat >>confdefs.h <<\_ACEOF
42126 #define HAVE_UTMPX_H 1
42130 cat >>confdefs.h <<\_ACEOF
42131 #define HAVE_UT_HOST 1
42139 for ac_func in sysctl
42141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42142 echo "$as_me:$LINENO: checking for $ac_func" >&5
42143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42144 if eval "test \"\${$as_ac_var+set}\" = set"; then
42145 echo $ECHO_N "(cached) $ECHO_C" >&6
42147 cat >conftest.$ac_ext <<_ACEOF
42150 cat confdefs.h >>conftest.$ac_ext
42151 cat >>conftest.$ac_ext <<_ACEOF
42152 /* end confdefs.h. */
42153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42155 #define $ac_func innocuous_$ac_func
42157 /* System header to define __stub macros and hopefully few prototypes,
42158 which can conflict with char $ac_func (); below.
42159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42160 <limits.h> exists even on freestanding compilers. */
42163 # include <limits.h>
42165 # include <assert.h>
42170 /* Override any gcc2 internal prototype to avoid an error. */
42175 /* We use char because int might match the return type of a gcc2
42176 builtin and then its argument prototype would still apply. */
42178 /* The GNU C library defines this for functions which it implements
42179 to always fail with ENOSYS. Some functions are actually named
42180 something starting with __ and the normal name is an alias. */
42181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42184 char (*f) () = $ac_func;
42193 return f != $ac_func;
42198 rm -f conftest.$ac_objext conftest$ac_exeext
42199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42200 (eval $ac_link) 2>&5
42202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42203 (exit $ac_status); } &&
42204 { ac_try='test -s conftest$ac_exeext'
42205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42206 (eval $ac_try) 2>&5
42208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42209 (exit $ac_status); }; }; then
42210 eval "$as_ac_var=yes"
42212 echo "$as_me: failed program was:" >&5
42213 sed 's/^/| /' conftest.$ac_ext >&5
42215 eval "$as_ac_var=no"
42217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42220 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42221 if test `eval echo '${'$as_ac_var'}'` = yes; then
42222 cat >>confdefs.h <<_ACEOF
42223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42230 for ac_header in sys/sysctl.h
42232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42234 echo "$as_me:$LINENO: checking for $ac_header" >&5
42235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42237 echo $ECHO_N "(cached) $ECHO_C" >&6
42239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42242 # Is the header compilable?
42243 echo "$as_me:$LINENO: checking $ac_header usability" >&5
42244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42245 cat >conftest.$ac_ext <<_ACEOF
42248 cat confdefs.h >>conftest.$ac_ext
42249 cat >>conftest.$ac_ext <<_ACEOF
42250 /* end confdefs.h. */
42251 $ac_includes_default
42252 #include <$ac_header>
42254 rm -f conftest.$ac_objext
42255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42256 (eval $ac_compile) 2>&5
42258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42259 (exit $ac_status); } &&
42260 { ac_try='test -s conftest.$ac_objext'
42261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42262 (eval $ac_try) 2>&5
42264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42265 (exit $ac_status); }; }; then
42266 ac_header_compiler=yes
42268 echo "$as_me: failed program was:" >&5
42269 sed 's/^/| /' conftest.$ac_ext >&5
42271 ac_header_compiler=no
42273 rm -f conftest.$ac_objext conftest.$ac_ext
42274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42275 echo "${ECHO_T}$ac_header_compiler" >&6
42277 # Is the header present?
42278 echo "$as_me:$LINENO: checking $ac_header presence" >&5
42279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42280 cat >conftest.$ac_ext <<_ACEOF
42283 cat confdefs.h >>conftest.$ac_ext
42284 cat >>conftest.$ac_ext <<_ACEOF
42285 /* end confdefs.h. */
42286 #include <$ac_header>
42288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42291 grep -v '^ *+' conftest.er1 >conftest.err
42293 cat conftest.err >&5
42294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42295 (exit $ac_status); } >/dev/null; then
42296 if test -s conftest.err; then
42297 ac_cpp_err=$ac_c_preproc_warn_flag
42304 if test -z "$ac_cpp_err"; then
42305 ac_header_preproc=yes
42307 echo "$as_me: failed program was:" >&5
42308 sed 's/^/| /' conftest.$ac_ext >&5
42310 ac_header_preproc=no
42312 rm -f conftest.err conftest.$ac_ext
42313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42314 echo "${ECHO_T}$ac_header_preproc" >&6
42316 # So? What about this header?
42317 case $ac_header_compiler:$ac_header_preproc in
42319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42322 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42323 ac_header_preproc=yes
42326 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42327 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42328 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42329 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42330 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42331 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42332 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42333 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42336 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42337 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42340 ## ------------------------------------ ##
42341 ## Report this to bug-coreutils@gnu.org ##
42342 ## ------------------------------------ ##
42345 sed "s/^/$as_me: WARNING: /" >&2
42348 echo "$as_me:$LINENO: checking for $ac_header" >&5
42349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42351 echo $ECHO_N "(cached) $ECHO_C" >&6
42353 eval "$as_ac_Header=\$ac_header_preproc"
42355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42360 cat >>confdefs.h <<_ACEOF
42361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42368 echo "$as_me:$LINENO: checking whether we can get the system boot time" >&5
42369 echo $ECHO_N "checking whether we can get the system boot time... $ECHO_C" >&6
42370 if test "${gnulib_cv_have_boot_time+set}" = set; then
42371 echo $ECHO_N "(cached) $ECHO_C" >&6
42374 cat >conftest.$ac_ext <<_ACEOF
42377 cat confdefs.h >>conftest.$ac_ext
42378 cat >>conftest.$ac_ext <<_ACEOF
42379 /* end confdefs.h. */
42380 $ac_includes_default
42381 #if HAVE_SYSCTL && HAVE_SYS_SYSCTL_H
42382 # include <sys/param.h> /* needed for OpenBSD 3.0 */
42383 # include <sys/sysctl.h>
42385 #ifdef HAVE_UTMPX_H
42386 # include <utmpx.h>
42395 #if defined BOOT_TIME || (defined CTL_KERN && defined KERN_BOOTTIME)
42396 /* your system *does* have the infrastructure to determine boot time */
42398 please_tell_us_how_to_determine_boot_time_on_your_system
42405 rm -f conftest.$ac_objext
42406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42407 (eval $ac_compile) 2>&5
42409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42410 (exit $ac_status); } &&
42411 { ac_try='test -s conftest.$ac_objext'
42412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42413 (eval $ac_try) 2>&5
42415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42416 (exit $ac_status); }; }; then
42417 gnulib_cv_have_boot_time=yes
42419 echo "$as_me: failed program was:" >&5
42420 sed 's/^/| /' conftest.$ac_ext >&5
42422 gnulib_cv_have_boot_time=no
42424 rm -f conftest.$ac_objext conftest.$ac_ext
42427 echo "$as_me:$LINENO: result: $gnulib_cv_have_boot_time" >&5
42428 echo "${ECHO_T}$gnulib_cv_have_boot_time" >&6
42429 if test $gnulib_cv_have_boot_time = yes; then
42430 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uptime\$(EXEEXT)"
42431 MAN="$MAN uptime.1"
42436 echo "$as_me:$LINENO: checking POSIX termios" >&5
42437 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
42438 if test "${ac_cv_sys_posix_termios+set}" = set; then
42439 echo $ECHO_N "(cached) $ECHO_C" >&6
42441 cat >conftest.$ac_ext <<_ACEOF
42444 cat confdefs.h >>conftest.$ac_ext
42445 cat >>conftest.$ac_ext <<_ACEOF
42446 /* end confdefs.h. */
42447 #include <sys/types.h>
42448 #include <unistd.h>
42449 #include <termios.h>
42454 /* SunOS 4.0.3 has termios.h but not the library calls. */
42460 rm -f conftest.$ac_objext conftest$ac_exeext
42461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42462 (eval $ac_link) 2>&5
42464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42465 (exit $ac_status); } &&
42466 { ac_try='test -s conftest$ac_exeext'
42467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42468 (eval $ac_try) 2>&5
42470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42471 (exit $ac_status); }; }; then
42472 ac_cv_sys_posix_termios=yes
42474 echo "$as_me: failed program was:" >&5
42475 sed 's/^/| /' conftest.$ac_ext >&5
42477 ac_cv_sys_posix_termios=no
42479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42481 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
42482 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
42485 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
42486 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
42487 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
42488 echo $ECHO_N "(cached) $ECHO_C" >&6
42490 jm_cv_sys_tiocgwinsz_needs_termios_h=no
42492 if test $ac_cv_sys_posix_termios = yes; then
42493 cat >conftest.$ac_ext <<_ACEOF
42496 cat confdefs.h >>conftest.$ac_ext
42497 cat >>conftest.$ac_ext <<_ACEOF
42498 /* end confdefs.h. */
42499 #include <sys/types.h>
42500 # include <termios.h>
42506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42507 $EGREP "yes" >/dev/null 2>&1; then
42508 jm_cv_sys_tiocgwinsz_needs_termios_h=yes
42515 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
42516 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
42519 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
42520 echo $ECHO_N "checking whether use of TIOCGWINSZ requires sys/ioctl.h... $ECHO_C" >&6
42521 if test "${jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then
42522 echo $ECHO_N "(cached) $ECHO_C" >&6
42524 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
42526 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no; then
42527 cat >conftest.$ac_ext <<_ACEOF
42530 cat confdefs.h >>conftest.$ac_ext
42531 cat >>conftest.$ac_ext <<_ACEOF
42532 /* end confdefs.h. */
42533 #include <sys/types.h>
42534 # include <sys/ioctl.h>
42540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42541 $EGREP "yes" >/dev/null 2>&1; then
42542 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
42549 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&5
42550 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&6
42551 if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
42553 cat >>confdefs.h <<\_ACEOF
42554 #define GWINSZ_IN_SYS_IOCTL 1
42560 if test $ac_cv_sys_posix_termios = yes; then
42561 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS stty\$(EXEEXT)" MAN="$MAN stty.1"
42563 echo "$as_me:$LINENO: checking whether termios.h needs _XOPEN_SOURCE" >&5
42564 echo $ECHO_N "checking whether termios.h needs _XOPEN_SOURCE... $ECHO_C" >&6
42565 if test "${su_cv_sys_termios_needs_xopen_source+set}" = set; then
42566 echo $ECHO_N "(cached) $ECHO_C" >&6
42568 cat >conftest.$ac_ext <<_ACEOF
42571 cat confdefs.h >>conftest.$ac_ext
42572 cat >>conftest.$ac_ext <<_ACEOF
42573 /* end confdefs.h. */
42574 #include <termios.h>
42579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42580 $EGREP "yes" >/dev/null 2>&1; then
42581 su_cv_sys_termios_needs_xopen_source=no
42583 cat >conftest.$ac_ext <<_ACEOF
42586 cat confdefs.h >>conftest.$ac_ext
42587 cat >>conftest.$ac_ext <<_ACEOF
42588 /* end confdefs.h. */
42589 #define _XOPEN_SOURCE
42590 #include <termios.h>
42595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42596 $EGREP "yes" >/dev/null 2>&1; then
42597 su_cv_sys_termios_needs_xopen_source=yes
42599 su_cv_sys_termios_needs_xopen_source=no
42608 echo "$as_me:$LINENO: result: $su_cv_sys_termios_needs_xopen_source" >&5
42609 echo "${ECHO_T}$su_cv_sys_termios_needs_xopen_source" >&6
42610 test $su_cv_sys_termios_needs_xopen_source = yes &&
42612 cat >>confdefs.h <<\_ACEOF
42613 #define TERMIOS_NEEDS_XOPEN_SOURCE 1
42617 echo "$as_me:$LINENO: checking c_line in struct termios" >&5
42618 echo $ECHO_N "checking c_line in struct termios... $ECHO_C" >&6
42619 if test "${su_cv_sys_c_line_in_termios+set}" = set; then
42620 echo $ECHO_N "(cached) $ECHO_C" >&6
42622 cat >conftest.$ac_ext <<_ACEOF
42625 cat confdefs.h >>conftest.$ac_ext
42626 cat >>conftest.$ac_ext <<_ACEOF
42627 /* end confdefs.h. */
42628 #if TERMIOS_NEEDS_XOPEN_SOURCE
42629 #define _XOPEN_SOURCE
42631 #include <sys/types.h>
42632 #include <termios.h>
42636 struct termios t; t.c_line;
42641 rm -f conftest.$ac_objext conftest$ac_exeext
42642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42643 (eval $ac_link) 2>&5
42645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42646 (exit $ac_status); } &&
42647 { ac_try='test -s conftest$ac_exeext'
42648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42649 (eval $ac_try) 2>&5
42651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42652 (exit $ac_status); }; }; then
42653 su_cv_sys_c_line_in_termios=yes
42655 echo "$as_me: failed program was:" >&5
42656 sed 's/^/| /' conftest.$ac_ext >&5
42658 su_cv_sys_c_line_in_termios=no
42660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42663 echo "$as_me:$LINENO: result: $su_cv_sys_c_line_in_termios" >&5
42664 echo "${ECHO_T}$su_cv_sys_c_line_in_termios" >&6
42665 test $su_cv_sys_c_line_in_termios = yes \
42667 cat >>confdefs.h <<\_ACEOF
42668 #define HAVE_C_LINE 1
42673 # FIXME: note that this macro appears above, too.
42674 # I'm leaving it here for now. This whole thing needs to be modernized...
42676 echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
42677 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
42678 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
42679 echo $ECHO_N "(cached) $ECHO_C" >&6
42681 jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
42682 if test $ac_cv_sys_posix_termios = yes; then
42684 cat >conftest.$ac_ext <<_ACEOF
42687 cat confdefs.h >>conftest.$ac_ext
42688 cat >>conftest.$ac_ext <<_ACEOF
42689 /* end confdefs.h. */
42690 #include <termios.h>
42695 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
42700 rm -f conftest.$ac_objext
42701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42702 (eval $ac_compile) 2>&5
42704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42705 (exit $ac_status); } &&
42706 { ac_try='test -s conftest.$ac_objext'
42707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42708 (eval $ac_try) 2>&5
42710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42711 (exit $ac_status); }; }; then
42714 echo "$as_me: failed program was:" >&5
42715 sed 's/^/| /' conftest.$ac_ext >&5
42718 rm -f conftest.$ac_objext conftest.$ac_ext
42720 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
42722 cat >conftest.$ac_ext <<_ACEOF
42725 cat confdefs.h >>conftest.$ac_ext
42726 cat >>conftest.$ac_ext <<_ACEOF
42727 /* end confdefs.h. */
42728 #include <sys/ptem.h>
42737 rm -f conftest.$ac_objext
42738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42739 (eval $ac_compile) 2>&5
42741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42742 (exit $ac_status); } &&
42743 { ac_try='test -s conftest.$ac_objext'
42744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42745 (eval $ac_try) 2>&5
42747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42748 (exit $ac_status); }; }; then
42751 echo "$as_me: failed program was:" >&5
42752 sed 's/^/| /' conftest.$ac_ext >&5
42754 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
42756 rm -f conftest.$ac_objext conftest.$ac_ext
42759 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
42760 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
42761 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
42763 cat >>confdefs.h <<\_ACEOF
42764 #define WINSIZE_IN_PTEM 1
42770 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
42771 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
42772 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
42773 echo $ECHO_N "(cached) $ECHO_C" >&6
42775 jm_cv_sys_tiocgwinsz_needs_termios_h=no
42777 if test $ac_cv_sys_posix_termios = yes; then
42778 cat >conftest.$ac_ext <<_ACEOF
42781 cat confdefs.h >>conftest.$ac_ext
42782 cat >>conftest.$ac_ext <<_ACEOF
42783 /* end confdefs.h. */
42784 #include <sys/types.h>
42785 # include <termios.h>
42791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42792 $EGREP "yes" >/dev/null 2>&1; then
42793 jm_cv_sys_tiocgwinsz_needs_termios_h=yes
42800 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
42801 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
42804 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no && \
42805 test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = no; then
42806 echo "$as_me:$LINENO: checking TIOCGWINSZ in sys/pty.h" >&5
42807 echo $ECHO_N "checking TIOCGWINSZ in sys/pty.h... $ECHO_C" >&6
42808 if test "${su_cv_sys_tiocgwinsz_in_sys_pty_h+set}" = set; then
42809 echo $ECHO_N "(cached) $ECHO_C" >&6
42811 cat >conftest.$ac_ext <<_ACEOF
42814 cat confdefs.h >>conftest.$ac_ext
42815 cat >>conftest.$ac_ext <<_ACEOF
42816 /* end confdefs.h. */
42817 #include <sys/types.h>
42818 #ifdef WINSIZE_IN_PTEM
42819 # include <sys/stream.h>
42820 # include <sys/ptem.h>
42822 #include <sys/ioctl.h>
42823 #include <sys/tty.h>
42824 #include <sys/pty.h>
42828 int x = TIOCGWINSZ;
42833 rm -f conftest.$ac_objext conftest$ac_exeext
42834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42835 (eval $ac_link) 2>&5
42837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42838 (exit $ac_status); } &&
42839 { ac_try='test -s conftest$ac_exeext'
42840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42841 (eval $ac_try) 2>&5
42843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42844 (exit $ac_status); }; }; then
42845 su_cv_sys_tiocgwinsz_in_sys_pty_h=yes
42847 echo "$as_me: failed program was:" >&5
42848 sed 's/^/| /' conftest.$ac_ext >&5
42850 su_cv_sys_tiocgwinsz_in_sys_pty_h=no
42852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42855 echo "$as_me:$LINENO: result: $su_cv_sys_tiocgwinsz_in_sys_pty_h" >&5
42856 echo "${ECHO_T}$su_cv_sys_tiocgwinsz_in_sys_pty_h" >&6
42858 test $su_cv_sys_tiocgwinsz_in_sys_pty_h = yes \
42860 cat >>confdefs.h <<\_ACEOF
42861 #define GWINSZ_IN_SYS_PTY 1
42867 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
42868 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
42869 if test "${ac_cv_have_decl_strsignal+set}" = set; then
42870 echo $ECHO_N "(cached) $ECHO_C" >&6
42872 cat >conftest.$ac_ext <<_ACEOF
42875 cat confdefs.h >>conftest.$ac_ext
42876 cat >>conftest.$ac_ext <<_ACEOF
42877 /* end confdefs.h. */
42878 $ac_includes_default
42883 char *p = (char *) strsignal;
42890 rm -f conftest.$ac_objext
42891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42892 (eval $ac_compile) 2>&5
42894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42895 (exit $ac_status); } &&
42896 { ac_try='test -s conftest.$ac_objext'
42897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42898 (eval $ac_try) 2>&5
42900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42901 (exit $ac_status); }; }; then
42902 ac_cv_have_decl_strsignal=yes
42904 echo "$as_me: failed program was:" >&5
42905 sed 's/^/| /' conftest.$ac_ext >&5
42907 ac_cv_have_decl_strsignal=no
42909 rm -f conftest.$ac_objext conftest.$ac_ext
42911 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
42912 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
42913 if test $ac_cv_have_decl_strsignal = yes; then
42915 cat >>confdefs.h <<_ACEOF
42916 #define HAVE_DECL_STRSIGNAL 1
42921 cat >>confdefs.h <<_ACEOF
42922 #define HAVE_DECL_STRSIGNAL 0
42927 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
42928 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
42929 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
42930 echo $ECHO_N "(cached) $ECHO_C" >&6
42932 cat >conftest.$ac_ext <<_ACEOF
42935 cat confdefs.h >>conftest.$ac_ext
42936 cat >>conftest.$ac_ext <<_ACEOF
42937 /* end confdefs.h. */
42938 $ac_includes_default
42943 char *p = (char *) strtoimax;
42950 rm -f conftest.$ac_objext
42951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42952 (eval $ac_compile) 2>&5
42954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42955 (exit $ac_status); } &&
42956 { ac_try='test -s conftest.$ac_objext'
42957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42958 (eval $ac_try) 2>&5
42960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42961 (exit $ac_status); }; }; then
42962 ac_cv_have_decl_strtoimax=yes
42964 echo "$as_me: failed program was:" >&5
42965 sed 's/^/| /' conftest.$ac_ext >&5
42967 ac_cv_have_decl_strtoimax=no
42969 rm -f conftest.$ac_objext conftest.$ac_ext
42971 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
42972 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
42973 if test $ac_cv_have_decl_strtoimax = yes; then
42975 cat >>confdefs.h <<_ACEOF
42976 #define HAVE_DECL_STRTOIMAX 1
42981 cat >>confdefs.h <<_ACEOF
42982 #define HAVE_DECL_STRTOIMAX 0
42987 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
42988 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
42989 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
42990 echo $ECHO_N "(cached) $ECHO_C" >&6
42992 cat >conftest.$ac_ext <<_ACEOF
42995 cat confdefs.h >>conftest.$ac_ext
42996 cat >>conftest.$ac_ext <<_ACEOF
42997 /* end confdefs.h. */
42998 $ac_includes_default
43002 #ifndef sys_siglist
43003 char *p = (char *) sys_siglist;
43010 rm -f conftest.$ac_objext
43011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43012 (eval $ac_compile) 2>&5
43014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43015 (exit $ac_status); } &&
43016 { ac_try='test -s conftest.$ac_objext'
43017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43018 (eval $ac_try) 2>&5
43020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43021 (exit $ac_status); }; }; then
43022 ac_cv_have_decl_sys_siglist=yes
43024 echo "$as_me: failed program was:" >&5
43025 sed 's/^/| /' conftest.$ac_ext >&5
43027 ac_cv_have_decl_sys_siglist=no
43029 rm -f conftest.$ac_objext conftest.$ac_ext
43031 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
43032 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
43033 if test $ac_cv_have_decl_sys_siglist = yes; then
43035 cat >>confdefs.h <<_ACEOF
43036 #define HAVE_DECL_SYS_SIGLIST 1
43041 cat >>confdefs.h <<_ACEOF
43042 #define HAVE_DECL_SYS_SIGLIST 0
43047 echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
43048 echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6
43049 if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
43050 echo $ECHO_N "(cached) $ECHO_C" >&6
43052 cat >conftest.$ac_ext <<_ACEOF
43055 cat confdefs.h >>conftest.$ac_ext
43056 cat >>conftest.$ac_ext <<_ACEOF
43057 /* end confdefs.h. */
43058 $ac_includes_default
43062 #ifndef _sys_siglist
43063 char *p = (char *) _sys_siglist;
43070 rm -f conftest.$ac_objext
43071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43072 (eval $ac_compile) 2>&5
43074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43075 (exit $ac_status); } &&
43076 { ac_try='test -s conftest.$ac_objext'
43077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43078 (eval $ac_try) 2>&5
43080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43081 (exit $ac_status); }; }; then
43082 ac_cv_have_decl__sys_siglist=yes
43084 echo "$as_me: failed program was:" >&5
43085 sed 's/^/| /' conftest.$ac_ext >&5
43087 ac_cv_have_decl__sys_siglist=no
43089 rm -f conftest.$ac_objext conftest.$ac_ext
43091 echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
43092 echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6
43093 if test $ac_cv_have_decl__sys_siglist = yes; then
43095 cat >>confdefs.h <<_ACEOF
43096 #define HAVE_DECL__SYS_SIGLIST 1
43101 cat >>confdefs.h <<_ACEOF
43102 #define HAVE_DECL__SYS_SIGLIST 0
43107 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
43108 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
43109 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
43110 echo $ECHO_N "(cached) $ECHO_C" >&6
43112 cat >conftest.$ac_ext <<_ACEOF
43115 cat confdefs.h >>conftest.$ac_ext
43116 cat >>conftest.$ac_ext <<_ACEOF
43117 /* end confdefs.h. */
43118 $ac_includes_default
43122 #ifndef __sys_siglist
43123 char *p = (char *) __sys_siglist;
43130 rm -f conftest.$ac_objext
43131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43132 (eval $ac_compile) 2>&5
43134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43135 (exit $ac_status); } &&
43136 { ac_try='test -s conftest.$ac_objext'
43137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43138 (eval $ac_try) 2>&5
43140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43141 (exit $ac_status); }; }; then
43142 ac_cv_have_decl___sys_siglist=yes
43144 echo "$as_me: failed program was:" >&5
43145 sed 's/^/| /' conftest.$ac_ext >&5
43147 ac_cv_have_decl___sys_siglist=no
43149 rm -f conftest.$ac_objext conftest.$ac_ext
43151 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
43152 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
43153 if test $ac_cv_have_decl___sys_siglist = yes; then
43155 cat >>confdefs.h <<_ACEOF
43156 #define HAVE_DECL___SYS_SIGLIST 1
43161 cat >>confdefs.h <<_ACEOF
43162 #define HAVE_DECL___SYS_SIGLIST 0
43172 # Check for libypsec.a on Dolphin M88K machines.
43174 echo "$as_me:$LINENO: checking for main in -lypsec" >&5
43175 echo $ECHO_N "checking for main in -lypsec... $ECHO_C" >&6
43176 if test "${ac_cv_lib_ypsec_main+set}" = set; then
43177 echo $ECHO_N "(cached) $ECHO_C" >&6
43179 ac_check_lib_save_LIBS=$LIBS
43180 LIBS="-lypsec $LIBS"
43181 cat >conftest.$ac_ext <<_ACEOF
43184 cat confdefs.h >>conftest.$ac_ext
43185 cat >>conftest.$ac_ext <<_ACEOF
43186 /* end confdefs.h. */
43197 rm -f conftest.$ac_objext conftest$ac_exeext
43198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43199 (eval $ac_link) 2>&5
43201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43202 (exit $ac_status); } &&
43203 { ac_try='test -s conftest$ac_exeext'
43204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43205 (eval $ac_try) 2>&5
43207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43208 (exit $ac_status); }; }; then
43209 ac_cv_lib_ypsec_main=yes
43211 echo "$as_me: failed program was:" >&5
43212 sed 's/^/| /' conftest.$ac_ext >&5
43214 ac_cv_lib_ypsec_main=no
43216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43217 LIBS=$ac_check_lib_save_LIBS
43219 echo "$as_me:$LINENO: result: $ac_cv_lib_ypsec_main" >&5
43220 echo "${ECHO_T}$ac_cv_lib_ypsec_main" >&6
43221 if test $ac_cv_lib_ypsec_main = yes; then
43222 cat >>confdefs.h <<_ACEOF
43223 #define HAVE_LIBYPSEC 1
43226 LIBS="-lypsec $LIBS"
43231 # m88k running dgux 5.4 needs this
43233 echo "$as_me:$LINENO: checking for main in -lldgc" >&5
43234 echo $ECHO_N "checking for main in -lldgc... $ECHO_C" >&6
43235 if test "${ac_cv_lib_ldgc_main+set}" = set; then
43236 echo $ECHO_N "(cached) $ECHO_C" >&6
43238 ac_check_lib_save_LIBS=$LIBS
43239 LIBS="-lldgc $LIBS"
43240 cat >conftest.$ac_ext <<_ACEOF
43243 cat confdefs.h >>conftest.$ac_ext
43244 cat >>conftest.$ac_ext <<_ACEOF
43245 /* end confdefs.h. */
43256 rm -f conftest.$ac_objext conftest$ac_exeext
43257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43258 (eval $ac_link) 2>&5
43260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43261 (exit $ac_status); } &&
43262 { ac_try='test -s conftest$ac_exeext'
43263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43264 (eval $ac_try) 2>&5
43266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43267 (exit $ac_status); }; }; then
43268 ac_cv_lib_ldgc_main=yes
43270 echo "$as_me: failed program was:" >&5
43271 sed 's/^/| /' conftest.$ac_ext >&5
43273 ac_cv_lib_ldgc_main=no
43275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43276 LIBS=$ac_check_lib_save_LIBS
43278 echo "$as_me:$LINENO: result: $ac_cv_lib_ldgc_main" >&5
43279 echo "${ECHO_T}$ac_cv_lib_ldgc_main" >&6
43280 if test $ac_cv_lib_ldgc_main = yes; then
43281 cat >>confdefs.h <<_ACEOF
43282 #define HAVE_LIBLDGC 1
43285 LIBS="-lldgc $LIBS"
43290 # Some programs need to link with -lm. printf does if it uses
43291 # lib/strtod.c which uses pow. And seq uses the math functions,
43292 # floor, modf, rint. And factor uses sqrt. And sleep uses fesetround.
43294 # Save a copy of $LIBS and add $FLOOR_LIBM before these tests
43295 # Check for these math functions used by seq.
43296 ac_su_saved_lib="$LIBS"
43301 for ac_func in floor modf rint
43303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43304 echo "$as_me:$LINENO: checking for $ac_func" >&5
43305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43306 if eval "test \"\${$as_ac_var+set}\" = set"; then
43307 echo $ECHO_N "(cached) $ECHO_C" >&6
43309 cat >conftest.$ac_ext <<_ACEOF
43312 cat confdefs.h >>conftest.$ac_ext
43313 cat >>conftest.$ac_ext <<_ACEOF
43314 /* end confdefs.h. */
43315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43317 #define $ac_func innocuous_$ac_func
43319 /* System header to define __stub macros and hopefully few prototypes,
43320 which can conflict with char $ac_func (); below.
43321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43322 <limits.h> exists even on freestanding compilers. */
43325 # include <limits.h>
43327 # include <assert.h>
43332 /* Override any gcc2 internal prototype to avoid an error. */
43337 /* We use char because int might match the return type of a gcc2
43338 builtin and then its argument prototype would still apply. */
43340 /* The GNU C library defines this for functions which it implements
43341 to always fail with ENOSYS. Some functions are actually named
43342 something starting with __ and the normal name is an alias. */
43343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43346 char (*f) () = $ac_func;
43355 return f != $ac_func;
43360 rm -f conftest.$ac_objext conftest$ac_exeext
43361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43362 (eval $ac_link) 2>&5
43364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43365 (exit $ac_status); } &&
43366 { ac_try='test -s conftest$ac_exeext'
43367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43368 (eval $ac_try) 2>&5
43370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43371 (exit $ac_status); }; }; then
43372 eval "$as_ac_var=yes"
43374 echo "$as_me: failed program was:" >&5
43375 sed 's/^/| /' conftest.$ac_ext >&5
43377 eval "$as_ac_var=no"
43379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43383 if test `eval echo '${'$as_ac_var'}'` = yes; then
43384 cat >>confdefs.h <<_ACEOF
43385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43391 LIBS="$ac_su_saved_lib"
43395 for ac_func in sqrt
43397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43398 echo "$as_me:$LINENO: checking for $ac_func" >&5
43399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43400 if eval "test \"\${$as_ac_var+set}\" = set"; then
43401 echo $ECHO_N "(cached) $ECHO_C" >&6
43403 cat >conftest.$ac_ext <<_ACEOF
43406 cat confdefs.h >>conftest.$ac_ext
43407 cat >>conftest.$ac_ext <<_ACEOF
43408 /* end confdefs.h. */
43409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43411 #define $ac_func innocuous_$ac_func
43413 /* System header to define __stub macros and hopefully few prototypes,
43414 which can conflict with char $ac_func (); below.
43415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43416 <limits.h> exists even on freestanding compilers. */
43419 # include <limits.h>
43421 # include <assert.h>
43426 /* Override any gcc2 internal prototype to avoid an error. */
43431 /* We use char because int might match the return type of a gcc2
43432 builtin and then its argument prototype would still apply. */
43434 /* The GNU C library defines this for functions which it implements
43435 to always fail with ENOSYS. Some functions are actually named
43436 something starting with __ and the normal name is an alias. */
43437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43440 char (*f) () = $ac_func;
43449 return f != $ac_func;
43454 rm -f conftest.$ac_objext conftest$ac_exeext
43455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43456 (eval $ac_link) 2>&5
43458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43459 (exit $ac_status); } &&
43460 { ac_try='test -s conftest$ac_exeext'
43461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43462 (eval $ac_try) 2>&5
43464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43465 (exit $ac_status); }; }; then
43466 eval "$as_ac_var=yes"
43468 echo "$as_me: failed program was:" >&5
43469 sed 's/^/| /' conftest.$ac_ext >&5
43471 eval "$as_ac_var=no"
43473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43477 if test `eval echo '${'$as_ac_var'}'` = yes; then
43478 cat >>confdefs.h <<_ACEOF
43479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43485 if test $ac_cv_func_sqrt = no; then
43486 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
43487 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
43488 if test "${ac_cv_lib_m_sqrt+set}" = set; then
43489 echo $ECHO_N "(cached) $ECHO_C" >&6
43491 ac_check_lib_save_LIBS=$LIBS
43493 cat >conftest.$ac_ext <<_ACEOF
43496 cat confdefs.h >>conftest.$ac_ext
43497 cat >>conftest.$ac_ext <<_ACEOF
43498 /* end confdefs.h. */
43500 /* Override any gcc2 internal prototype to avoid an error. */
43504 /* We use char because int might match the return type of a gcc2
43505 builtin and then its argument prototype would still apply. */
43515 rm -f conftest.$ac_objext conftest$ac_exeext
43516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43517 (eval $ac_link) 2>&5
43519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43520 (exit $ac_status); } &&
43521 { ac_try='test -s conftest$ac_exeext'
43522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43523 (eval $ac_try) 2>&5
43525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43526 (exit $ac_status); }; }; then
43527 ac_cv_lib_m_sqrt=yes
43529 echo "$as_me: failed program was:" >&5
43530 sed 's/^/| /' conftest.$ac_ext >&5
43532 ac_cv_lib_m_sqrt=no
43534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43535 LIBS=$ac_check_lib_save_LIBS
43537 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
43538 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
43539 if test $ac_cv_lib_m_sqrt = yes; then
43547 for ac_func in fesetround
43549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43550 echo "$as_me:$LINENO: checking for $ac_func" >&5
43551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43552 if eval "test \"\${$as_ac_var+set}\" = set"; then
43553 echo $ECHO_N "(cached) $ECHO_C" >&6
43555 cat >conftest.$ac_ext <<_ACEOF
43558 cat confdefs.h >>conftest.$ac_ext
43559 cat >>conftest.$ac_ext <<_ACEOF
43560 /* end confdefs.h. */
43561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43563 #define $ac_func innocuous_$ac_func
43565 /* System header to define __stub macros and hopefully few prototypes,
43566 which can conflict with char $ac_func (); below.
43567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43568 <limits.h> exists even on freestanding compilers. */
43571 # include <limits.h>
43573 # include <assert.h>
43578 /* Override any gcc2 internal prototype to avoid an error. */
43583 /* We use char because int might match the return type of a gcc2
43584 builtin and then its argument prototype would still apply. */
43586 /* The GNU C library defines this for functions which it implements
43587 to always fail with ENOSYS. Some functions are actually named
43588 something starting with __ and the normal name is an alias. */
43589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43592 char (*f) () = $ac_func;
43601 return f != $ac_func;
43606 rm -f conftest.$ac_objext conftest$ac_exeext
43607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43608 (eval $ac_link) 2>&5
43610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43611 (exit $ac_status); } &&
43612 { ac_try='test -s conftest$ac_exeext'
43613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43614 (eval $ac_try) 2>&5
43616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43617 (exit $ac_status); }; }; then
43618 eval "$as_ac_var=yes"
43620 echo "$as_me: failed program was:" >&5
43621 sed 's/^/| /' conftest.$ac_ext >&5
43623 eval "$as_ac_var=no"
43625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43629 if test `eval echo '${'$as_ac_var'}'` = yes; then
43630 cat >>confdefs.h <<_ACEOF
43631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43637 if test $ac_cv_func_fesetround = no; then
43638 echo "$as_me:$LINENO: checking for fesetround in -lm" >&5
43639 echo $ECHO_N "checking for fesetround in -lm... $ECHO_C" >&6
43640 if test "${ac_cv_lib_m_fesetround+set}" = set; then
43641 echo $ECHO_N "(cached) $ECHO_C" >&6
43643 ac_check_lib_save_LIBS=$LIBS
43645 cat >conftest.$ac_ext <<_ACEOF
43648 cat confdefs.h >>conftest.$ac_ext
43649 cat >>conftest.$ac_ext <<_ACEOF
43650 /* end confdefs.h. */
43652 /* Override any gcc2 internal prototype to avoid an error. */
43656 /* We use char because int might match the return type of a gcc2
43657 builtin and then its argument prototype would still apply. */
43658 char fesetround ();
43667 rm -f conftest.$ac_objext conftest$ac_exeext
43668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43669 (eval $ac_link) 2>&5
43671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43672 (exit $ac_status); } &&
43673 { ac_try='test -s conftest$ac_exeext'
43674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43675 (eval $ac_try) 2>&5
43677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43678 (exit $ac_status); }; }; then
43679 ac_cv_lib_m_fesetround=yes
43681 echo "$as_me: failed program was:" >&5
43682 sed 's/^/| /' conftest.$ac_ext >&5
43684 ac_cv_lib_m_fesetround=no
43686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43687 LIBS=$ac_check_lib_save_LIBS
43689 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fesetround" >&5
43690 echo "${ECHO_T}$ac_cv_lib_m_fesetround" >&6
43691 if test $ac_cv_lib_m_fesetround = yes; then
43692 FESETROUND_LIBM=-lm
43697 # The -lsun library is required for YP support on Irix-4.0.5 systems.
43698 # m88k/svr3 DolphinOS systems using YP need -lypsec for id.
43700 echo "$as_me:$LINENO: checking for library containing yp_match" >&5
43701 echo $ECHO_N "checking for library containing yp_match... $ECHO_C" >&6
43702 if test "${ac_cv_search_yp_match+set}" = set; then
43703 echo $ECHO_N "(cached) $ECHO_C" >&6
43706 ac_func_search_save_LIBS=$LIBS
43707 ac_cv_search_yp_match=no
43708 cat >conftest.$ac_ext <<_ACEOF
43711 cat confdefs.h >>conftest.$ac_ext
43712 cat >>conftest.$ac_ext <<_ACEOF
43713 /* end confdefs.h. */
43715 /* Override any gcc2 internal prototype to avoid an error. */
43719 /* We use char because int might match the return type of a gcc2
43720 builtin and then its argument prototype would still apply. */
43730 rm -f conftest.$ac_objext conftest$ac_exeext
43731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43732 (eval $ac_link) 2>&5
43734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43735 (exit $ac_status); } &&
43736 { ac_try='test -s conftest$ac_exeext'
43737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43738 (eval $ac_try) 2>&5
43740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43741 (exit $ac_status); }; }; then
43742 ac_cv_search_yp_match='none required'
43744 echo "$as_me: failed program was:" >&5
43745 sed 's/^/| /' conftest.$ac_ext >&5
43748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43749 if test "$ac_cv_search_yp_match" = no; then
43750 for ac_lib in sun ypsec; do
43751 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
43752 cat >conftest.$ac_ext <<_ACEOF
43755 cat confdefs.h >>conftest.$ac_ext
43756 cat >>conftest.$ac_ext <<_ACEOF
43757 /* end confdefs.h. */
43759 /* Override any gcc2 internal prototype to avoid an error. */
43763 /* We use char because int might match the return type of a gcc2
43764 builtin and then its argument prototype would still apply. */
43774 rm -f conftest.$ac_objext conftest$ac_exeext
43775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43776 (eval $ac_link) 2>&5
43778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43779 (exit $ac_status); } &&
43780 { ac_try='test -s conftest$ac_exeext'
43781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43782 (eval $ac_try) 2>&5
43784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43785 (exit $ac_status); }; }; then
43786 ac_cv_search_yp_match="-l$ac_lib"; break
43788 echo "$as_me: failed program was:" >&5
43789 sed 's/^/| /' conftest.$ac_ext >&5
43792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43795 LIBS=$ac_func_search_save_LIBS
43798 echo "$as_me:$LINENO: result: $ac_cv_search_yp_match" >&5
43799 echo "${ECHO_T}$ac_cv_search_yp_match" >&6
43801 if test "$ac_cv_search_yp_match" = no; then :
43804 if test "$ac_cv_search_yp_match" = 'none required'; then :
43807 LIBS="$ac_cv_search_yp_match $LIBS"
43813 # SysV needs -lsec, older versions of Linux need -lshadow for
43814 # shadow passwords. UnixWare 7 needs -lgen.
43816 echo "$as_me:$LINENO: checking for library containing getspnam" >&5
43817 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
43818 if test "${ac_cv_search_getspnam+set}" = set; then
43819 echo $ECHO_N "(cached) $ECHO_C" >&6
43822 ac_func_search_save_LIBS=$LIBS
43823 ac_cv_search_getspnam=no
43824 cat >conftest.$ac_ext <<_ACEOF
43827 cat confdefs.h >>conftest.$ac_ext
43828 cat >>conftest.$ac_ext <<_ACEOF
43829 /* end confdefs.h. */
43831 /* Override any gcc2 internal prototype to avoid an error. */
43835 /* We use char because int might match the return type of a gcc2
43836 builtin and then its argument prototype would still apply. */
43846 rm -f conftest.$ac_objext conftest$ac_exeext
43847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43848 (eval $ac_link) 2>&5
43850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43851 (exit $ac_status); } &&
43852 { ac_try='test -s conftest$ac_exeext'
43853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43854 (eval $ac_try) 2>&5
43856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43857 (exit $ac_status); }; }; then
43858 ac_cv_search_getspnam='none required'
43860 echo "$as_me: failed program was:" >&5
43861 sed 's/^/| /' conftest.$ac_ext >&5
43864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43865 if test "$ac_cv_search_getspnam" = no; then
43866 for ac_lib in shadow sec gen; do
43867 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
43868 cat >conftest.$ac_ext <<_ACEOF
43871 cat confdefs.h >>conftest.$ac_ext
43872 cat >>conftest.$ac_ext <<_ACEOF
43873 /* end confdefs.h. */
43875 /* Override any gcc2 internal prototype to avoid an error. */
43879 /* We use char because int might match the return type of a gcc2
43880 builtin and then its argument prototype would still apply. */
43890 rm -f conftest.$ac_objext conftest$ac_exeext
43891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43892 (eval $ac_link) 2>&5
43894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43895 (exit $ac_status); } &&
43896 { ac_try='test -s conftest$ac_exeext'
43897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43898 (eval $ac_try) 2>&5
43900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43901 (exit $ac_status); }; }; then
43902 ac_cv_search_getspnam="-l$ac_lib"; break
43904 echo "$as_me: failed program was:" >&5
43905 sed 's/^/| /' conftest.$ac_ext >&5
43908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43911 LIBS=$ac_func_search_save_LIBS
43914 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
43915 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
43917 if test "$ac_cv_search_getspnam" = no; then :
43920 if test "$ac_cv_search_getspnam" = 'none required'; then :
43923 LIBS="$ac_cv_search_getspnam $LIBS"
43930 for ac_header in shadow.h
43932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43934 echo "$as_me:$LINENO: checking for $ac_header" >&5
43935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43937 echo $ECHO_N "(cached) $ECHO_C" >&6
43939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43942 # Is the header compilable?
43943 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43945 cat >conftest.$ac_ext <<_ACEOF
43948 cat confdefs.h >>conftest.$ac_ext
43949 cat >>conftest.$ac_ext <<_ACEOF
43950 /* end confdefs.h. */
43951 $ac_includes_default
43952 #include <$ac_header>
43954 rm -f conftest.$ac_objext
43955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43956 (eval $ac_compile) 2>&5
43958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43959 (exit $ac_status); } &&
43960 { ac_try='test -s conftest.$ac_objext'
43961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43962 (eval $ac_try) 2>&5
43964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43965 (exit $ac_status); }; }; then
43966 ac_header_compiler=yes
43968 echo "$as_me: failed program was:" >&5
43969 sed 's/^/| /' conftest.$ac_ext >&5
43971 ac_header_compiler=no
43973 rm -f conftest.$ac_objext conftest.$ac_ext
43974 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43975 echo "${ECHO_T}$ac_header_compiler" >&6
43977 # Is the header present?
43978 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43980 cat >conftest.$ac_ext <<_ACEOF
43983 cat confdefs.h >>conftest.$ac_ext
43984 cat >>conftest.$ac_ext <<_ACEOF
43985 /* end confdefs.h. */
43986 #include <$ac_header>
43988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43991 grep -v '^ *+' conftest.er1 >conftest.err
43993 cat conftest.err >&5
43994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43995 (exit $ac_status); } >/dev/null; then
43996 if test -s conftest.err; then
43997 ac_cpp_err=$ac_c_preproc_warn_flag
44004 if test -z "$ac_cpp_err"; then
44005 ac_header_preproc=yes
44007 echo "$as_me: failed program was:" >&5
44008 sed 's/^/| /' conftest.$ac_ext >&5
44010 ac_header_preproc=no
44012 rm -f conftest.err conftest.$ac_ext
44013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44014 echo "${ECHO_T}$ac_header_preproc" >&6
44016 # So? What about this header?
44017 case $ac_header_compiler:$ac_header_preproc in
44019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44022 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44023 ac_header_preproc=yes
44026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44029 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44031 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44033 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44037 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44040 ## ------------------------------------ ##
44041 ## Report this to bug-coreutils@gnu.org ##
44042 ## ------------------------------------ ##
44045 sed "s/^/$as_me: WARNING: /" >&2
44048 echo "$as_me:$LINENO: checking for $ac_header" >&5
44049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44051 echo $ECHO_N "(cached) $ECHO_C" >&6
44053 eval "$as_ac_Header=\$ac_header_preproc"
44055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44060 cat >>confdefs.h <<_ACEOF
44061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44069 # Requirements for su.c.
44071 $ac_includes_default
44073 # include <shadow.h>
44076 echo "$as_me:$LINENO: checking for struct spwd.sp_pwdp" >&5
44077 echo $ECHO_N "checking for struct spwd.sp_pwdp... $ECHO_C" >&6
44078 if test "${ac_cv_member_struct_spwd_sp_pwdp+set}" = set; then
44079 echo $ECHO_N "(cached) $ECHO_C" >&6
44081 cat >conftest.$ac_ext <<_ACEOF
44084 cat confdefs.h >>conftest.$ac_ext
44085 cat >>conftest.$ac_ext <<_ACEOF
44086 /* end confdefs.h. */
44092 static struct spwd ac_aggr;
44093 if (ac_aggr.sp_pwdp)
44099 rm -f conftest.$ac_objext
44100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44101 (eval $ac_compile) 2>&5
44103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44104 (exit $ac_status); } &&
44105 { ac_try='test -s conftest.$ac_objext'
44106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44107 (eval $ac_try) 2>&5
44109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44110 (exit $ac_status); }; }; then
44111 ac_cv_member_struct_spwd_sp_pwdp=yes
44113 echo "$as_me: failed program was:" >&5
44114 sed 's/^/| /' conftest.$ac_ext >&5
44116 cat >conftest.$ac_ext <<_ACEOF
44119 cat confdefs.h >>conftest.$ac_ext
44120 cat >>conftest.$ac_ext <<_ACEOF
44121 /* end confdefs.h. */
44127 static struct spwd ac_aggr;
44128 if (sizeof ac_aggr.sp_pwdp)
44134 rm -f conftest.$ac_objext
44135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44136 (eval $ac_compile) 2>&5
44138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44139 (exit $ac_status); } &&
44140 { ac_try='test -s conftest.$ac_objext'
44141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44142 (eval $ac_try) 2>&5
44144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44145 (exit $ac_status); }; }; then
44146 ac_cv_member_struct_spwd_sp_pwdp=yes
44148 echo "$as_me: failed program was:" >&5
44149 sed 's/^/| /' conftest.$ac_ext >&5
44151 ac_cv_member_struct_spwd_sp_pwdp=no
44153 rm -f conftest.$ac_objext conftest.$ac_ext
44155 rm -f conftest.$ac_objext conftest.$ac_ext
44157 echo "$as_me:$LINENO: result: $ac_cv_member_struct_spwd_sp_pwdp" >&5
44158 echo "${ECHO_T}$ac_cv_member_struct_spwd_sp_pwdp" >&6
44159 if test $ac_cv_member_struct_spwd_sp_pwdp = yes; then
44161 cat >>confdefs.h <<_ACEOF
44162 #define HAVE_STRUCT_SPWD_SP_PWDP 1
44169 for ac_func in getspnam
44171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44172 echo "$as_me:$LINENO: checking for $ac_func" >&5
44173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44174 if eval "test \"\${$as_ac_var+set}\" = set"; then
44175 echo $ECHO_N "(cached) $ECHO_C" >&6
44177 cat >conftest.$ac_ext <<_ACEOF
44180 cat confdefs.h >>conftest.$ac_ext
44181 cat >>conftest.$ac_ext <<_ACEOF
44182 /* end confdefs.h. */
44183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44185 #define $ac_func innocuous_$ac_func
44187 /* System header to define __stub macros and hopefully few prototypes,
44188 which can conflict with char $ac_func (); below.
44189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44190 <limits.h> exists even on freestanding compilers. */
44193 # include <limits.h>
44195 # include <assert.h>
44200 /* Override any gcc2 internal prototype to avoid an error. */
44205 /* We use char because int might match the return type of a gcc2
44206 builtin and then its argument prototype would still apply. */
44208 /* The GNU C library defines this for functions which it implements
44209 to always fail with ENOSYS. Some functions are actually named
44210 something starting with __ and the normal name is an alias. */
44211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44214 char (*f) () = $ac_func;
44223 return f != $ac_func;
44228 rm -f conftest.$ac_objext conftest$ac_exeext
44229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44230 (eval $ac_link) 2>&5
44232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44233 (exit $ac_status); } &&
44234 { ac_try='test -s conftest$ac_exeext'
44235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44236 (eval $ac_try) 2>&5
44238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44239 (exit $ac_status); }; }; then
44240 eval "$as_ac_var=yes"
44242 echo "$as_me: failed program was:" >&5
44243 sed 's/^/| /' conftest.$ac_ext >&5
44245 eval "$as_ac_var=no"
44247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44251 if test `eval echo '${'$as_ac_var'}'` = yes; then
44252 cat >>confdefs.h <<_ACEOF
44253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44260 # SCO-ODT-3.0 is reported to need -lufc for crypt.
44261 # NetBSD needs -lcrypt for crypt.
44262 ac_su_saved_lib="$LIBS"
44264 echo "$as_me:$LINENO: checking for library containing crypt" >&5
44265 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
44266 if test "${ac_cv_search_crypt+set}" = set; then
44267 echo $ECHO_N "(cached) $ECHO_C" >&6
44270 ac_func_search_save_LIBS=$LIBS
44271 ac_cv_search_crypt=no
44272 cat >conftest.$ac_ext <<_ACEOF
44275 cat confdefs.h >>conftest.$ac_ext
44276 cat >>conftest.$ac_ext <<_ACEOF
44277 /* end confdefs.h. */
44279 /* Override any gcc2 internal prototype to avoid an error. */
44283 /* We use char because int might match the return type of a gcc2
44284 builtin and then its argument prototype would still apply. */
44294 rm -f conftest.$ac_objext conftest$ac_exeext
44295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44296 (eval $ac_link) 2>&5
44298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44299 (exit $ac_status); } &&
44300 { ac_try='test -s conftest$ac_exeext'
44301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44302 (eval $ac_try) 2>&5
44304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44305 (exit $ac_status); }; }; then
44306 ac_cv_search_crypt='none required'
44308 echo "$as_me: failed program was:" >&5
44309 sed 's/^/| /' conftest.$ac_ext >&5
44312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44313 if test "$ac_cv_search_crypt" = no; then
44314 for ac_lib in ufc crypt; do
44315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
44316 cat >conftest.$ac_ext <<_ACEOF
44319 cat confdefs.h >>conftest.$ac_ext
44320 cat >>conftest.$ac_ext <<_ACEOF
44321 /* end confdefs.h. */
44323 /* Override any gcc2 internal prototype to avoid an error. */
44327 /* We use char because int might match the return type of a gcc2
44328 builtin and then its argument prototype would still apply. */
44338 rm -f conftest.$ac_objext conftest$ac_exeext
44339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44340 (eval $ac_link) 2>&5
44342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44343 (exit $ac_status); } &&
44344 { ac_try='test -s conftest$ac_exeext'
44345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44346 (eval $ac_try) 2>&5
44348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44349 (exit $ac_status); }; }; then
44350 ac_cv_search_crypt="-l$ac_lib"; break
44352 echo "$as_me: failed program was:" >&5
44353 sed 's/^/| /' conftest.$ac_ext >&5
44356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44359 LIBS=$ac_func_search_save_LIBS
44362 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
44363 echo "${ECHO_T}$ac_cv_search_crypt" >&6
44365 if test "$ac_cv_search_crypt" = no; then :
44368 if test "$ac_cv_search_crypt" = 'none required'; then :
44371 LIBS="$ac_cv_search_crypt $LIBS"
44372 LIB_CRYPT="$ac_cv_search_crypt"
44376 LIBS="$ac_su_saved_lib"
44382 if test -n "$ac_aux_dir"; then
44383 case "$ac_aux_dir" in
44384 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
44385 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
44388 if test -z "$MKINSTALLDIRS"; then
44389 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
44394 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
44395 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
44396 # Check whether --enable-nls or --disable-nls was given.
44397 if test "${enable_nls+set}" = set; then
44398 enableval="$enable_nls"
44403 echo "$as_me:$LINENO: result: $USE_NLS" >&5
44404 echo "${ECHO_T}$USE_NLS" >&6
44411 # Prepare PATH_SEPARATOR.
44412 # The user is always right.
44413 if test "${PATH_SEPARATOR+set}" != set; then
44414 echo "#! /bin/sh" >conf$$.sh
44415 echo "exit 0" >>conf$$.sh
44417 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44425 # Find out how to test for executable files. Don't use a zero-byte file,
44426 # as systems may use methods other than mode bits to determine executability.
44427 cat >conf$$.file <<_ASEOF
44431 chmod +x conf$$.file
44432 if test -x conf$$.file >/dev/null 2>&1; then
44433 ac_executable_p="test -x"
44435 ac_executable_p="test -f"
44439 # Extract the first word of "msgfmt", so it can be a program name with args.
44440 set dummy msgfmt; ac_word=$2
44441 echo "$as_me:$LINENO: checking for $ac_word" >&5
44442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44443 if test "${ac_cv_path_MSGFMT+set}" = set; then
44444 echo $ECHO_N "(cached) $ECHO_C" >&6
44448 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
44451 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
44452 for ac_dir in $PATH; do
44454 test -z "$ac_dir" && ac_dir=.
44455 for ac_exec_ext in '' $ac_executable_extensions; do
44456 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
44457 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
44458 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
44459 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
44466 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
44470 MSGFMT="$ac_cv_path_MSGFMT"
44471 if test "$MSGFMT" != ":"; then
44472 echo "$as_me:$LINENO: result: $MSGFMT" >&5
44473 echo "${ECHO_T}$MSGFMT" >&6
44475 echo "$as_me:$LINENO: result: no" >&5
44476 echo "${ECHO_T}no" >&6
44479 # Extract the first word of "gmsgfmt", so it can be a program name with args.
44480 set dummy gmsgfmt; ac_word=$2
44481 echo "$as_me:$LINENO: checking for $ac_word" >&5
44482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44483 if test "${ac_cv_path_GMSGFMT+set}" = set; then
44484 echo $ECHO_N "(cached) $ECHO_C" >&6
44488 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
44491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44492 for as_dir in $PATH
44495 test -z "$as_dir" && as_dir=.
44496 for ac_exec_ext in '' $ac_executable_extensions; do
44497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44498 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
44499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44505 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
44509 GMSGFMT=$ac_cv_path_GMSGFMT
44511 if test -n "$GMSGFMT"; then
44512 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
44513 echo "${ECHO_T}$GMSGFMT" >&6
44515 echo "$as_me:$LINENO: result: no" >&5
44516 echo "${ECHO_T}no" >&6
44521 # Prepare PATH_SEPARATOR.
44522 # The user is always right.
44523 if test "${PATH_SEPARATOR+set}" != set; then
44524 echo "#! /bin/sh" >conf$$.sh
44525 echo "exit 0" >>conf$$.sh
44527 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44535 # Find out how to test for executable files. Don't use a zero-byte file,
44536 # as systems may use methods other than mode bits to determine executability.
44537 cat >conf$$.file <<_ASEOF
44541 chmod +x conf$$.file
44542 if test -x conf$$.file >/dev/null 2>&1; then
44543 ac_executable_p="test -x"
44545 ac_executable_p="test -f"
44549 # Extract the first word of "xgettext", so it can be a program name with args.
44550 set dummy xgettext; ac_word=$2
44551 echo "$as_me:$LINENO: checking for $ac_word" >&5
44552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44553 if test "${ac_cv_path_XGETTEXT+set}" = set; then
44554 echo $ECHO_N "(cached) $ECHO_C" >&6
44556 case "$XGETTEXT" in
44558 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
44561 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
44562 for ac_dir in $PATH; do
44564 test -z "$ac_dir" && ac_dir=.
44565 for ac_exec_ext in '' $ac_executable_extensions; do
44566 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
44567 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
44568 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
44569 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
44576 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
44580 XGETTEXT="$ac_cv_path_XGETTEXT"
44581 if test "$XGETTEXT" != ":"; then
44582 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
44583 echo "${ECHO_T}$XGETTEXT" >&6
44585 echo "$as_me:$LINENO: result: no" >&5
44586 echo "${ECHO_T}no" >&6
44592 # Prepare PATH_SEPARATOR.
44593 # The user is always right.
44594 if test "${PATH_SEPARATOR+set}" != set; then
44595 echo "#! /bin/sh" >conf$$.sh
44596 echo "exit 0" >>conf$$.sh
44598 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44606 # Find out how to test for executable files. Don't use a zero-byte file,
44607 # as systems may use methods other than mode bits to determine executability.
44608 cat >conf$$.file <<_ASEOF
44612 chmod +x conf$$.file
44613 if test -x conf$$.file >/dev/null 2>&1; then
44614 ac_executable_p="test -x"
44616 ac_executable_p="test -f"
44620 # Extract the first word of "msgmerge", so it can be a program name with args.
44621 set dummy msgmerge; ac_word=$2
44622 echo "$as_me:$LINENO: checking for $ac_word" >&5
44623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44624 if test "${ac_cv_path_MSGMERGE+set}" = set; then
44625 echo $ECHO_N "(cached) $ECHO_C" >&6
44627 case "$MSGMERGE" in
44629 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
44632 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
44633 for ac_dir in $PATH; do
44635 test -z "$ac_dir" && ac_dir=.
44636 for ac_exec_ext in '' $ac_executable_extensions; do
44637 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
44638 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
44639 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
44646 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
44650 MSGMERGE="$ac_cv_path_MSGMERGE"
44651 if test "$MSGMERGE" != ":"; then
44652 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
44653 echo "${ECHO_T}$MSGMERGE" >&6
44655 echo "$as_me:$LINENO: result: no" >&5
44656 echo "${ECHO_T}no" >&6
44660 if test "$GMSGFMT" != ":"; then
44661 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
44662 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
44665 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
44666 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
44667 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
44672 if test "$XGETTEXT" != ":"; then
44673 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
44674 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
44677 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
44678 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
44685 ac_config_commands="$ac_config_commands default-1"
44704 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
44705 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
44706 # Check whether --enable-nls or --disable-nls was given.
44707 if test "${enable_nls+set}" = set; then
44708 enableval="$enable_nls"
44713 echo "$as_me:$LINENO: result: $USE_NLS" >&5
44714 echo "${ECHO_T}$USE_NLS" >&6
44723 if test "$USE_NLS" = "yes"; then
44724 gt_use_preinstalled_gnugettext=no
44731 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
44732 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
44733 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
44734 echo $ECHO_N "(cached) $ECHO_C" >&6
44737 cat >conftest.$ac_ext <<_ACEOF
44740 cat confdefs.h >>conftest.$ac_ext
44741 cat >>conftest.$ac_ext <<_ACEOF
44742 /* end confdefs.h. */
44743 #include <libintl.h>
44744 extern int _nl_msg_cat_cntr;
44745 extern int *_nl_domain_bindings;
44749 bindtextdomain ("", "");
44750 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
44755 rm -f conftest.$ac_objext conftest$ac_exeext
44756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44757 (eval $ac_link) 2>&5
44759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44760 (exit $ac_status); } &&
44761 { ac_try='test -s conftest$ac_exeext'
44762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44763 (eval $ac_try) 2>&5
44765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44766 (exit $ac_status); }; }; then
44767 gt_cv_func_gnugettext2_libc=yes
44769 echo "$as_me: failed program was:" >&5
44770 sed 's/^/| /' conftest.$ac_ext >&5
44772 gt_cv_func_gnugettext2_libc=no
44774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44776 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
44777 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
44779 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
44785 am_save_CPPFLAGS="$CPPFLAGS"
44787 for element in $INCICONV; do
44789 for x in $CPPFLAGS; do
44791 acl_save_prefix="$prefix"
44792 prefix="$acl_final_prefix"
44793 acl_save_exec_prefix="$exec_prefix"
44794 exec_prefix="$acl_final_exec_prefix"
44796 exec_prefix="$acl_save_exec_prefix"
44797 prefix="$acl_save_prefix"
44799 if test "X$x" = "X$element"; then
44804 if test -z "$haveit"; then
44805 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
44810 echo "$as_me:$LINENO: checking for iconv" >&5
44811 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
44812 if test "${am_cv_func_iconv+set}" = set; then
44813 echo $ECHO_N "(cached) $ECHO_C" >&6
44816 am_cv_func_iconv="no, consider installing GNU libiconv"
44819 cat >conftest.$ac_ext <<_ACEOF
44822 cat confdefs.h >>conftest.$ac_ext
44823 cat >>conftest.$ac_ext <<_ACEOF
44824 /* end confdefs.h. */
44825 #include <stdlib.h>
44830 iconv_t cd = iconv_open("","");
44831 iconv(cd,NULL,NULL,NULL,NULL);
44837 rm -f conftest.$ac_objext conftest$ac_exeext
44838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44839 (eval $ac_link) 2>&5
44841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44842 (exit $ac_status); } &&
44843 { ac_try='test -s conftest$ac_exeext'
44844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44845 (eval $ac_try) 2>&5
44847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44848 (exit $ac_status); }; }; then
44849 am_cv_func_iconv=yes
44851 echo "$as_me: failed program was:" >&5
44852 sed 's/^/| /' conftest.$ac_ext >&5
44855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44856 if test "$am_cv_func_iconv" != yes; then
44857 am_save_LIBS="$LIBS"
44858 LIBS="$LIBS $LIBICONV"
44860 cat >conftest.$ac_ext <<_ACEOF
44863 cat confdefs.h >>conftest.$ac_ext
44864 cat >>conftest.$ac_ext <<_ACEOF
44865 /* end confdefs.h. */
44866 #include <stdlib.h>
44871 iconv_t cd = iconv_open("","");
44872 iconv(cd,NULL,NULL,NULL,NULL);
44878 rm -f conftest.$ac_objext conftest$ac_exeext
44879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44880 (eval $ac_link) 2>&5
44882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44883 (exit $ac_status); } &&
44884 { ac_try='test -s conftest$ac_exeext'
44885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44886 (eval $ac_try) 2>&5
44888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44889 (exit $ac_status); }; }; then
44890 am_cv_lib_iconv=yes
44891 am_cv_func_iconv=yes
44893 echo "$as_me: failed program was:" >&5
44894 sed 's/^/| /' conftest.$ac_ext >&5
44897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44898 LIBS="$am_save_LIBS"
44902 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
44903 echo "${ECHO_T}$am_cv_func_iconv" >&6
44904 if test "$am_cv_func_iconv" = yes; then
44906 cat >>confdefs.h <<\_ACEOF
44907 #define HAVE_ICONV 1
44911 if test "$am_cv_lib_iconv" = yes; then
44912 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
44913 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
44914 echo "$as_me:$LINENO: result: $LIBICONV" >&5
44915 echo "${ECHO_T}$LIBICONV" >&6
44917 CPPFLAGS="$am_save_CPPFLAGS"
44929 acl_save_prefix="$prefix"
44930 prefix="$acl_final_prefix"
44931 acl_save_exec_prefix="$exec_prefix"
44932 exec_prefix="$acl_final_exec_prefix"
44934 eval additional_includedir=\"$includedir\"
44935 eval additional_libdir=\"$libdir\"
44937 exec_prefix="$acl_save_exec_prefix"
44938 prefix="$acl_save_prefix"
44941 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
44942 if test "${with_libintl_prefix+set}" = set; then
44943 withval="$with_libintl_prefix"
44945 if test "X$withval" = "Xno"; then
44948 if test "X$withval" = "X"; then
44950 acl_save_prefix="$prefix"
44951 prefix="$acl_final_prefix"
44952 acl_save_exec_prefix="$exec_prefix"
44953 exec_prefix="$acl_final_exec_prefix"
44955 eval additional_includedir=\"$includedir\"
44956 eval additional_libdir=\"$libdir\"
44958 exec_prefix="$acl_save_exec_prefix"
44959 prefix="$acl_save_prefix"
44962 additional_includedir="$withval/include"
44963 additional_libdir="$withval/lib"
44973 names_already_handled=
44974 names_next_round='intl '
44975 while test -n "$names_next_round"; do
44976 names_this_round="$names_next_round"
44978 for name in $names_this_round; do
44980 for n in $names_already_handled; do
44981 if test "$n" = "$name"; then
44982 already_handled=yes
44986 if test -z "$already_handled"; then
44987 names_already_handled="$names_already_handled $name"
44988 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
44989 eval value=\"\$HAVE_LIB$uppername\"
44990 if test -n "$value"; then
44991 if test "$value" = yes; then
44992 eval value=\"\$LIB$uppername\"
44993 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
44994 eval value=\"\$LTLIB$uppername\"
44995 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
45004 if test $use_additional = yes; then
45005 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
45006 found_dir="$additional_libdir"
45007 found_so="$additional_libdir/lib$name.$shlibext"
45008 if test -f "$additional_libdir/lib$name.la"; then
45009 found_la="$additional_libdir/lib$name.la"
45012 if test -f "$additional_libdir/lib$name.$libext"; then
45013 found_dir="$additional_libdir"
45014 found_a="$additional_libdir/lib$name.$libext"
45015 if test -f "$additional_libdir/lib$name.la"; then
45016 found_la="$additional_libdir/lib$name.la"
45021 if test "X$found_dir" = "X"; then
45022 for x in $LDFLAGS $LTLIBINTL; do
45024 acl_save_prefix="$prefix"
45025 prefix="$acl_final_prefix"
45026 acl_save_exec_prefix="$exec_prefix"
45027 exec_prefix="$acl_final_exec_prefix"
45029 exec_prefix="$acl_save_exec_prefix"
45030 prefix="$acl_save_prefix"
45034 dir=`echo "X$x" | sed -e 's/^X-L//'`
45035 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
45037 found_so="$dir/lib$name.$shlibext"
45038 if test -f "$dir/lib$name.la"; then
45039 found_la="$dir/lib$name.la"
45042 if test -f "$dir/lib$name.$libext"; then
45044 found_a="$dir/lib$name.$libext"
45045 if test -f "$dir/lib$name.la"; then
45046 found_la="$dir/lib$name.la"
45052 if test "X$found_dir" != "X"; then
45057 if test "X$found_dir" != "X"; then
45058 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
45059 if test "X$found_so" != "X"; then
45060 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
45061 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
45064 for x in $ltrpathdirs; do
45065 if test "X$x" = "X$found_dir"; then
45070 if test -z "$haveit"; then
45071 ltrpathdirs="$ltrpathdirs $found_dir"
45073 if test "$hardcode_direct" = yes; then
45074 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
45076 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
45077 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
45079 for x in $rpathdirs; do
45080 if test "X$x" = "X$found_dir"; then
45085 if test -z "$haveit"; then
45086 rpathdirs="$rpathdirs $found_dir"
45090 for x in $LDFLAGS $LIBINTL; do
45092 acl_save_prefix="$prefix"
45093 prefix="$acl_final_prefix"
45094 acl_save_exec_prefix="$exec_prefix"
45095 exec_prefix="$acl_final_exec_prefix"
45097 exec_prefix="$acl_save_exec_prefix"
45098 prefix="$acl_save_prefix"
45100 if test "X$x" = "X-L$found_dir"; then
45105 if test -z "$haveit"; then
45106 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
45108 if test "$hardcode_minus_L" != no; then
45109 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
45111 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
45117 if test "X$found_a" != "X"; then
45118 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
45120 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
45123 additional_includedir=
45124 case "$found_dir" in
45126 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
45127 additional_includedir="$basedir/include"
45130 if test "X$additional_includedir" != "X"; then
45131 if test "X$additional_includedir" != "X/usr/include"; then
45133 if test "X$additional_includedir" = "X/usr/local/include"; then
45134 if test -n "$GCC"; then
45136 linux*) haveit=yes;;
45140 if test -z "$haveit"; then
45141 for x in $CPPFLAGS $INCINTL; do
45143 acl_save_prefix="$prefix"
45144 prefix="$acl_final_prefix"
45145 acl_save_exec_prefix="$exec_prefix"
45146 exec_prefix="$acl_final_exec_prefix"
45148 exec_prefix="$acl_save_exec_prefix"
45149 prefix="$acl_save_prefix"
45151 if test "X$x" = "X-I$additional_includedir"; then
45156 if test -z "$haveit"; then
45157 if test -d "$additional_includedir"; then
45158 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
45164 if test -n "$found_la"; then
45165 save_libdir="$libdir"
45166 case "$found_la" in
45167 */* | *\\*) . "$found_la" ;;
45168 *) . "./$found_la" ;;
45170 libdir="$save_libdir"
45171 for dep in $dependency_libs; do
45174 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
45175 if test "X$additional_libdir" != "X/usr/lib"; then
45177 if test "X$additional_libdir" = "X/usr/local/lib"; then
45178 if test -n "$GCC"; then
45180 linux*) haveit=yes;;
45184 if test -z "$haveit"; then
45186 for x in $LDFLAGS $LIBINTL; do
45188 acl_save_prefix="$prefix"
45189 prefix="$acl_final_prefix"
45190 acl_save_exec_prefix="$exec_prefix"
45191 exec_prefix="$acl_final_exec_prefix"
45193 exec_prefix="$acl_save_exec_prefix"
45194 prefix="$acl_save_prefix"
45196 if test "X$x" = "X-L$additional_libdir"; then
45201 if test -z "$haveit"; then
45202 if test -d "$additional_libdir"; then
45203 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
45207 for x in $LDFLAGS $LTLIBINTL; do
45209 acl_save_prefix="$prefix"
45210 prefix="$acl_final_prefix"
45211 acl_save_exec_prefix="$exec_prefix"
45212 exec_prefix="$acl_final_exec_prefix"
45214 exec_prefix="$acl_save_exec_prefix"
45215 prefix="$acl_save_prefix"
45217 if test "X$x" = "X-L$additional_libdir"; then
45222 if test -z "$haveit"; then
45223 if test -d "$additional_libdir"; then
45224 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
45231 dir=`echo "X$dep" | sed -e 's/^X-R//'`
45232 if test "$enable_rpath" != no; then
45234 for x in $rpathdirs; do
45235 if test "X$x" = "X$dir"; then
45240 if test -z "$haveit"; then
45241 rpathdirs="$rpathdirs $dir"
45244 for x in $ltrpathdirs; do
45245 if test "X$x" = "X$dir"; then
45250 if test -z "$haveit"; then
45251 ltrpathdirs="$ltrpathdirs $dir"
45256 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
45259 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
45262 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
45263 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
45269 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
45270 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
45276 if test "X$rpathdirs" != "X"; then
45277 if test -n "$hardcode_libdir_separator"; then
45279 for found_dir in $rpathdirs; do
45280 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
45282 acl_save_libdir="$libdir"
45284 eval flag=\"$hardcode_libdir_flag_spec\"
45285 libdir="$acl_save_libdir"
45286 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
45288 for found_dir in $rpathdirs; do
45289 acl_save_libdir="$libdir"
45290 libdir="$found_dir"
45291 eval flag=\"$hardcode_libdir_flag_spec\"
45292 libdir="$acl_save_libdir"
45293 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
45297 if test "X$ltrpathdirs" != "X"; then
45298 for found_dir in $ltrpathdirs; do
45299 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
45303 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
45304 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
45305 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
45306 echo $ECHO_N "(cached) $ECHO_C" >&6
45308 gt_save_CPPFLAGS="$CPPFLAGS"
45309 CPPFLAGS="$CPPFLAGS $INCINTL"
45310 gt_save_LIBS="$LIBS"
45311 LIBS="$LIBS $LIBINTL"
45313 cat >conftest.$ac_ext <<_ACEOF
45316 cat confdefs.h >>conftest.$ac_ext
45317 cat >>conftest.$ac_ext <<_ACEOF
45318 /* end confdefs.h. */
45319 #include <libintl.h>
45320 extern int _nl_msg_cat_cntr;
45325 const char *_nl_expand_alias ();
45329 bindtextdomain ("", "");
45330 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
45335 rm -f conftest.$ac_objext conftest$ac_exeext
45336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45337 (eval $ac_link) 2>&5
45339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45340 (exit $ac_status); } &&
45341 { ac_try='test -s conftest$ac_exeext'
45342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45343 (eval $ac_try) 2>&5
45345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45346 (exit $ac_status); }; }; then
45347 gt_cv_func_gnugettext2_libintl=yes
45349 echo "$as_me: failed program was:" >&5
45350 sed 's/^/| /' conftest.$ac_ext >&5
45352 gt_cv_func_gnugettext2_libintl=no
45354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45355 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
45356 LIBS="$LIBS $LIBICONV"
45358 cat >conftest.$ac_ext <<_ACEOF
45361 cat confdefs.h >>conftest.$ac_ext
45362 cat >>conftest.$ac_ext <<_ACEOF
45363 /* end confdefs.h. */
45364 #include <libintl.h>
45365 extern int _nl_msg_cat_cntr;
45370 const char *_nl_expand_alias ();
45374 bindtextdomain ("", "");
45375 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
45380 rm -f conftest.$ac_objext conftest$ac_exeext
45381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45382 (eval $ac_link) 2>&5
45384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45385 (exit $ac_status); } &&
45386 { ac_try='test -s conftest$ac_exeext'
45387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45388 (eval $ac_try) 2>&5
45390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45391 (exit $ac_status); }; }; then
45392 LIBINTL="$LIBINTL $LIBICONV"
45393 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
45394 gt_cv_func_gnugettext2_libintl=yes
45397 echo "$as_me: failed program was:" >&5
45398 sed 's/^/| /' conftest.$ac_ext >&5
45401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45403 CPPFLAGS="$gt_save_CPPFLAGS"
45404 LIBS="$gt_save_LIBS"
45406 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
45407 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
45410 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
45411 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
45412 && test "$PACKAGE" != gettext-runtime \
45413 && test "$PACKAGE" != gettext-tools; }; then
45414 gt_use_preinstalled_gnugettext=yes
45423 if test "$gt_use_preinstalled_gnugettext" = "yes" \
45424 || test "$nls_cv_use_gnu_gettext" = "yes"; then
45426 cat >>confdefs.h <<\_ACEOF
45427 #define ENABLE_NLS 1
45435 echo "$as_me:$LINENO: checking whether to use NLS" >&5
45436 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
45437 echo "$as_me:$LINENO: result: $USE_NLS" >&5
45438 echo "${ECHO_T}$USE_NLS" >&6
45439 if test "$USE_NLS" = "yes"; then
45440 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
45441 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
45442 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
45443 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
45444 gt_source="external libintl"
45449 gt_source="included intl directory"
45451 echo "$as_me:$LINENO: result: $gt_source" >&5
45452 echo "${ECHO_T}$gt_source" >&6
45455 if test "$USE_NLS" = "yes"; then
45457 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
45458 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
45459 echo "$as_me:$LINENO: checking how to link with libintl" >&5
45460 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
45461 echo "$as_me:$LINENO: result: $LIBINTL" >&5
45462 echo "${ECHO_T}$LIBINTL" >&6
45464 for element in $INCINTL; do
45466 for x in $CPPFLAGS; do
45468 acl_save_prefix="$prefix"
45469 prefix="$acl_final_prefix"
45470 acl_save_exec_prefix="$exec_prefix"
45471 exec_prefix="$acl_final_exec_prefix"
45473 exec_prefix="$acl_save_exec_prefix"
45474 prefix="$acl_save_prefix"
45476 if test "X$x" = "X$element"; then
45481 if test -z "$haveit"; then
45482 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
45489 cat >>confdefs.h <<\_ACEOF
45490 #define HAVE_GETTEXT 1
45494 cat >>confdefs.h <<\_ACEOF
45495 #define HAVE_DCGETTEXT 1
45505 INTLLIBS="$LIBINTL"
45514 ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile man/Makefile m4/Makefile po/Makefile.in src/Makefile tests/Makefile tests/basename/Makefile tests/chgrp/Makefile tests/chmod/Makefile tests/chown/Makefile tests/cp/Makefile tests/cut/Makefile tests/date/Makefile tests/dd/Makefile tests/dircolors/Makefile tests/du/Makefile tests/expr/Makefile tests/factor/Makefile tests/fmt/Makefile tests/head/Makefile tests/install/Makefile tests/join/Makefile tests/ln/Makefile tests/ls-2/Makefile tests/ls/Makefile tests/md5sum/Makefile tests/misc/Makefile tests/mkdir/Makefile tests/mv/Makefile tests/od/Makefile tests/pr/Makefile tests/rm/Makefile tests/rmdir/Makefile tests/seq/Makefile tests/sha1sum/Makefile tests/shred/Makefile tests/sort/Makefile tests/stty/Makefile tests/sum/Makefile tests/tac/Makefile tests/tail-2/Makefile tests/tail/Makefile tests/test/Makefile tests/touch/Makefile tests/tr/Makefile tests/tsort/Makefile tests/unexpand/Makefile tests/uniq/Makefile tests/wc/Makefile"
45516 cat >confcache <<\_ACEOF
45517 # This file is a shell script that caches the results of configure
45518 # tests run on this system so they can be shared between configure
45519 # scripts and configure runs, see configure's option --config-cache.
45520 # It is not useful on other systems. If it contains results you don't
45521 # want to keep, you may remove or edit it.
45523 # config.status only pays attention to the cache file if you give it
45524 # the --recheck option to rerun configure.
45526 # `ac_cv_env_foo' variables (set or unset) will be overridden when
45527 # loading this file, other *unset* `ac_cv_foo' will be assigned the
45528 # following values.
45532 # The following way of writing the cache mishandles newlines in values,
45533 # but we know of no workaround that is simple, portable, and efficient.
45534 # So, don't put newlines in cache variables' values.
45535 # Ultrix sh set writes to stderr and can't be redirected directly,
45536 # and sets the high bit in the cache file unless we assign to the vars.
45539 case `(ac_space=' '; set | grep ac_space) 2>&1` in
45541 # `set' does not quote correctly, so add quotes (double-quote
45542 # substitution turns \\\\ into \\, and sed turns \\ into \).
45545 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
45548 # `set' quotes correctly as required by POSIX, so do not add quotes.
45550 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
45557 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
45559 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45561 if diff $cache_file confcache >/dev/null 2>&1; then :; else
45562 if test -w $cache_file; then
45563 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
45564 cat confcache >$cache_file
45566 echo "not updating unwritable cache $cache_file"
45571 test "x$prefix" = xNONE && prefix=$ac_default_prefix
45572 # Let make expand exec_prefix.
45573 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45575 # VPATH may cause trouble with some makes, so we remove $(srcdir),
45576 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45577 # trailing colons and then remove the whole line if VPATH becomes empty
45578 # (actually we leave an empty line to preserve line numbers).
45579 if test "x$srcdir" = x.; then
45580 ac_vpsub='/^[ ]*VPATH[ ]*=/{
45581 s/:*\$(srcdir):*/:/;
45582 s/:*\${srcdir}:*/:/;
45584 s/^\([^=]*=[ ]*\):*/\1/;
45590 DEFS=-DHAVE_CONFIG_H
45594 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45595 # 1. Remove the extension, and $U if already installed.
45596 ac_i=`echo "$ac_i" |
45597 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
45599 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
45600 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
45602 LIBOBJS=$ac_libobjs
45604 LTLIBOBJS=$ac_ltlibobjs
45607 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
45608 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
45609 Usually this means the macro was only invoked conditionally." >&5
45610 echo "$as_me: error: conditional \"AMDEP\" was never defined.
45611 Usually this means the macro was only invoked conditionally." >&2;}
45612 { (exit 1); exit 1; }; }
45614 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45615 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
45616 Usually this means the macro was only invoked conditionally." >&5
45617 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
45618 Usually this means the macro was only invoked conditionally." >&2;}
45619 { (exit 1); exit 1; }; }
45622 : ${CONFIG_STATUS=./config.status}
45623 ac_clean_files_save=$ac_clean_files
45624 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45625 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
45626 echo "$as_me: creating $CONFIG_STATUS" >&6;}
45627 cat >$CONFIG_STATUS <<_ACEOF
45629 # Generated by $as_me.
45630 # Run this file to recreate the current configuration.
45631 # Compiler output produced by configure, useful for debugging
45632 # configure, is in config.log if it exists.
45635 ac_cs_recheck=false
45637 SHELL=\${CONFIG_SHELL-$SHELL}
45640 cat >>$CONFIG_STATUS <<\_ACEOF
45641 ## --------------------- ##
45642 ## M4sh Initialization. ##
45643 ## --------------------- ##
45645 # Be Bourne compatible
45646 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
45649 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
45650 # is contrary to our usage. Disable this feature.
45651 alias -g '${1+"$@"}'='"$@"'
45652 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
45656 # Support unset when possible.
45657 if ((MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
45664 # Work around bugs in pre-3.0 UWIN ksh.
45665 $as_unset ENV MAIL MAILPATH
45672 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45673 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45674 LC_TELEPHONE LC_TIME
45676 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45677 eval $as_var=C; export $as_var
45683 # Required to use basename.
45684 if expr a : '\(a\)' >/dev/null 2>&1; then
45690 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
45691 as_basename=basename
45697 # Name of the executable.
45698 as_me=`$as_basename "$0" ||
45699 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45700 X"$0" : 'X\(//\)$' \| \
45701 X"$0" : 'X\(/\)$' \| \
45702 . : '\(.\)' 2>/dev/null ||
45704 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
45705 /^X\/\(\/\/\)$/{ s//\1/; q; }
45706 /^X\/\(\/\).*/{ s//\1/; q; }
45710 # PATH needs CR, and LINENO needs CR and PATH.
45711 # Avoid depending upon Character Ranges.
45712 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45713 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45714 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45715 as_cr_digits='0123456789'
45716 as_cr_alnum=$as_cr_Letters$as_cr_digits
45718 # The user is always right.
45719 if test "${PATH_SEPARATOR+set}" != set; then
45720 echo "#! /bin/sh" >conf$$.sh
45721 echo "exit 0" >>conf$$.sh
45723 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45732 as_lineno_1=$LINENO
45733 as_lineno_2=$LINENO
45734 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45735 test "x$as_lineno_1" != "x$as_lineno_2" &&
45736 test "x$as_lineno_3" = "x$as_lineno_2" || {
45737 # Find who we are. Look in the path if we contain no path at all
45740 *[\\/]* ) as_myself=$0 ;;
45741 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45742 for as_dir in $PATH
45745 test -z "$as_dir" && as_dir=.
45746 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45751 # We did not find ourselves, most probably we were run as `sh COMMAND'
45752 # in which case we are not to be found in the path.
45753 if test "x$as_myself" = x; then
45756 if test ! -f "$as_myself"; then
45757 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
45758 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
45759 { (exit 1); exit 1; }; }
45761 case $CONFIG_SHELL in
45763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45764 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
45767 test -z "$as_dir" && as_dir=.
45768 for as_base in sh bash ksh sh5; do
45771 if ("$as_dir/$as_base" -c '
45772 as_lineno_1=$LINENO
45773 as_lineno_2=$LINENO
45774 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45775 test "x$as_lineno_1" != "x$as_lineno_2" &&
45776 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
45777 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45778 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45779 CONFIG_SHELL=$as_dir/$as_base
45780 export CONFIG_SHELL
45781 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45789 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45790 # uniformly replaced by the line number. The first 'sed' inserts a
45791 # line-number line before each line; the second 'sed' does the real
45792 # work. The second script uses 'N' to pair each line-number line
45793 # with the numbered line, and appends trailing '-' during
45794 # substitution so that $LINENO is not a special case at line end.
45795 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45796 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
45797 sed '=' <$as_myself |
45802 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45805 s,^['$as_cr_digits']*\n,,
45806 ' >$as_me.lineno &&
45807 chmod +x $as_me.lineno ||
45808 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45809 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45810 { (exit 1); exit 1; }; }
45812 # Don't try to exec as it changes $[0], causing all sort of problems
45813 # (the dirname of $[0] is not the place where we might find the
45814 # original and so on. Autoconf is especially sensible to this).
45816 # Exit status is that of the last command.
45821 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45822 *c*,-n*) ECHO_N= ECHO_C='
45824 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45825 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
45828 if expr a : '\(a\)' >/dev/null 2>&1; then
45834 rm -f conf$$ conf$$.exe conf$$.file
45836 if ln -s conf$$.file conf$$ 2>/dev/null; then
45837 # We could just check for DJGPP; but this test a) works b) is more generic
45838 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45839 if test -f conf$$.exe; then
45840 # Don't use ln at all; we don't have any links
45845 elif ln conf$$.file conf$$ 2>/dev/null; then
45850 rm -f conf$$ conf$$.exe conf$$.file
45852 if mkdir -p . 2>/dev/null; then
45858 as_executable_p="test -f"
45860 # Sed expression to map a string onto a valid CPP name.
45861 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
45863 # Sed expression to map a string onto a valid variable name.
45864 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
45868 # We need space, tab and new line, in precisely that order.
45878 # Open the log real soon, to keep \$[0] and so on meaningful, and to
45879 # report actual input values of CONFIG_FILES etc. instead of their
45880 # values after options handling. Logging --version etc. is OK.
45884 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45885 ## Running $as_me. ##
45890 This file was extended by GNU coreutils $as_me 5.0.91, which was
45891 generated by GNU Autoconf 2.57b. Invocation command line was
45893 CONFIG_FILES = $CONFIG_FILES
45894 CONFIG_HEADERS = $CONFIG_HEADERS
45895 CONFIG_LINKS = $CONFIG_LINKS
45896 CONFIG_COMMANDS = $CONFIG_COMMANDS
45900 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45904 # Files that config.status was made for.
45905 if test -n "$ac_config_files"; then
45906 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45909 if test -n "$ac_config_headers"; then
45910 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45913 if test -n "$ac_config_links"; then
45914 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45917 if test -n "$ac_config_commands"; then
45918 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45921 cat >>$CONFIG_STATUS <<\_ACEOF
45924 \`$as_me' instantiates files from templates according to the
45925 current configuration.
45927 Usage: $0 [OPTIONS] [FILE]...
45929 -h, --help print this help, then exit
45930 -V, --version print version number, then exit
45931 -q, --quiet do not print progress messages
45932 -d, --debug don't remove temporary files
45933 --recheck update $as_me by reconfiguring in the same conditions
45934 --file=FILE[:TEMPLATE]
45935 instantiate the configuration file FILE
45936 --header=FILE[:TEMPLATE]
45937 instantiate the configuration header FILE
45939 Configuration files:
45942 Configuration headers:
45945 Configuration links:
45948 Configuration commands:
45951 Report bugs to <bug-autoconf@gnu.org>."
45954 cat >>$CONFIG_STATUS <<_ACEOF
45956 GNU coreutils config.status 5.0.91
45957 configured by $0, generated by GNU Autoconf 2.57b,
45958 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45960 Copyright (C) 2003 Free Software Foundation, Inc.
45961 This config.status script is free software; the Free Software Foundation
45962 gives unlimited permission to copy, distribute and modify it."
45967 cat >>$CONFIG_STATUS <<\_ACEOF
45968 # If no file are specified by the user, then we need to provide default
45969 # value. By we need to know if files were specified by the user.
45975 ac_option=`expr "x$1" : 'x\([^=]*\)='`
45976 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45984 *) # This is not an option, so the user has probably given explicit
45987 ac_need_defaults=false;;
45991 # Handling of the options.
45993 cat >>$CONFIG_STATUS <<\_ACEOF
45994 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45996 --version | --vers* | -V )
45997 echo "$ac_cs_version"; exit 0 ;;
45999 # Conflict between --help and --header
46000 { { echo "$as_me:$LINENO: error: ambiguous option: $1
46001 Try \`$0 --help' for more information." >&5
46002 echo "$as_me: error: ambiguous option: $1
46003 Try \`$0 --help' for more information." >&2;}
46004 { (exit 1); exit 1; }; };;
46005 --help | --hel | -h )
46006 echo "$ac_cs_usage"; exit 0 ;;
46007 --debug | --d* | -d )
46009 --file | --fil | --fi | --f )
46011 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
46012 ac_need_defaults=false;;
46013 --header | --heade | --head | --hea )
46015 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
46016 ac_need_defaults=false;;
46017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46018 | -silent | --silent | --silen | --sile | --sil | --si | --s)
46021 # This is an error.
46022 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
46023 Try \`$0 --help' for more information." >&5
46024 echo "$as_me: error: unrecognized option: $1
46025 Try \`$0 --help' for more information." >&2;}
46026 { (exit 1); exit 1; }; } ;;
46028 *) ac_config_targets="$ac_config_targets $1" ;;
46034 ac_configure_extra_args=
46036 if $ac_cs_silent; then
46038 ac_configure_extra_args="$ac_configure_extra_args --silent"
46042 cat >>$CONFIG_STATUS <<_ACEOF
46043 if \$ac_cs_recheck; then
46044 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
46045 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46050 cat >>$CONFIG_STATUS <<_ACEOF
46052 # INIT-COMMANDS section.
46055 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
46056 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
46057 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
46059 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
46060 # Capture the value of LINGUAS because we need it to compute CATALOGS.
46061 LINGUAS="${LINGUAS-%UNSET%}"
46068 cat >>$CONFIG_STATUS <<\_ACEOF
46069 for ac_config_target in $ac_config_targets
46071 case "$ac_config_target" in
46072 # Handling of arguments.
46073 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46074 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
46075 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
46076 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
46077 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
46078 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
46079 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
46080 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
46081 "tests/basename/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/basename/Makefile" ;;
46082 "tests/chgrp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chgrp/Makefile" ;;
46083 "tests/chmod/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chmod/Makefile" ;;
46084 "tests/chown/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chown/Makefile" ;;
46085 "tests/cp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cp/Makefile" ;;
46086 "tests/cut/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cut/Makefile" ;;
46087 "tests/date/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/date/Makefile" ;;
46088 "tests/dd/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dd/Makefile" ;;
46089 "tests/dircolors/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dircolors/Makefile" ;;
46090 "tests/du/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/du/Makefile" ;;
46091 "tests/expr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/expr/Makefile" ;;
46092 "tests/factor/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/factor/Makefile" ;;
46093 "tests/fmt/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/fmt/Makefile" ;;
46094 "tests/head/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/head/Makefile" ;;
46095 "tests/install/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/install/Makefile" ;;
46096 "tests/join/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/join/Makefile" ;;
46097 "tests/ln/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ln/Makefile" ;;
46098 "tests/ls-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls-2/Makefile" ;;
46099 "tests/ls/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls/Makefile" ;;
46100 "tests/md5sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/md5sum/Makefile" ;;
46101 "tests/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
46102 "tests/mkdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mkdir/Makefile" ;;
46103 "tests/mv/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mv/Makefile" ;;
46104 "tests/od/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/od/Makefile" ;;
46105 "tests/pr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/pr/Makefile" ;;
46106 "tests/rm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rm/Makefile" ;;
46107 "tests/rmdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rmdir/Makefile" ;;
46108 "tests/seq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/seq/Makefile" ;;
46109 "tests/sha1sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sha1sum/Makefile" ;;
46110 "tests/shred/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/shred/Makefile" ;;
46111 "tests/sort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sort/Makefile" ;;
46112 "tests/stty/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/stty/Makefile" ;;
46113 "tests/sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sum/Makefile" ;;
46114 "tests/tac/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tac/Makefile" ;;
46115 "tests/tail-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail-2/Makefile" ;;
46116 "tests/tail/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail/Makefile" ;;
46117 "tests/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test/Makefile" ;;
46118 "tests/touch/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/touch/Makefile" ;;
46119 "tests/tr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tr/Makefile" ;;
46120 "tests/tsort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tsort/Makefile" ;;
46121 "tests/unexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/unexpand/Makefile" ;;
46122 "tests/uniq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/uniq/Makefile" ;;
46123 "tests/wc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/wc/Makefile" ;;
46124 "$ac_config_libobj_dir/ftw.h" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/ftw.h:$ac_config_libobj_dir/ftw_.h" ;;
46125 "$ac_config_libobj_dir/search.h" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/search.h:$ac_config_libobj_dir/search_.h" ;;
46126 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
46127 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
46128 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
46129 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
46130 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
46131 { (exit 1); exit 1; }; };;
46135 # If the user did not use the arguments to specify the items to instantiate,
46136 # then the envvar interface is used. Set only those that are not.
46137 # We use the long form for the default assignment because of an extremely
46138 # bizarre bug on SunOS 4.1.3.
46139 if $ac_need_defaults; then
46140 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
46141 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
46142 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
46143 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
46146 # Have a temporary directory for convenience. Make it in the build tree
46147 # simply because there is no reason to put it here, and in addition,
46148 # creating and moving files from /tmp can sometimes cause problems.
46149 # Create a temporary directory, and hook for its removal unless debugging.
46152 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
46153 trap '{ (exit 1); exit 1; }' 1 2 13 15
46156 # Create a (secure) tmp directory for tmp files.
46159 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
46160 test -n "$tmp" && test -d "$tmp"
46163 tmp=./confstat$$-$RANDOM
46164 (umask 077 && mkdir $tmp)
46167 echo "$me: cannot create a temporary directory in ." >&2
46168 { (exit 1); exit 1; }
46173 cat >>$CONFIG_STATUS <<_ACEOF
46176 # CONFIG_FILES section.
46179 # No need to generate the scripts if there are no CONFIG_FILES.
46180 # This happens for instance when ./config.status config.h
46181 if test -n "\$CONFIG_FILES"; then
46182 # Protect against being on the right side of a sed subst in config.status.
46183 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
46184 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
46185 s,@SHELL@,$SHELL,;t t
46186 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
46187 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
46188 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
46189 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
46190 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
46191 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
46192 s,@exec_prefix@,$exec_prefix,;t t
46193 s,@prefix@,$prefix,;t t
46194 s,@program_transform_name@,$program_transform_name,;t t
46195 s,@bindir@,$bindir,;t t
46196 s,@sbindir@,$sbindir,;t t
46197 s,@libexecdir@,$libexecdir,;t t
46198 s,@datadir@,$datadir,;t t
46199 s,@sysconfdir@,$sysconfdir,;t t
46200 s,@sharedstatedir@,$sharedstatedir,;t t
46201 s,@localstatedir@,$localstatedir,;t t
46202 s,@libdir@,$libdir,;t t
46203 s,@includedir@,$includedir,;t t
46204 s,@oldincludedir@,$oldincludedir,;t t
46205 s,@infodir@,$infodir,;t t
46206 s,@mandir@,$mandir,;t t
46207 s,@build_alias@,$build_alias,;t t
46208 s,@host_alias@,$host_alias,;t t
46209 s,@target_alias@,$target_alias,;t t
46210 s,@DEFS@,$DEFS,;t t
46211 s,@ECHO_C@,$ECHO_C,;t t
46212 s,@ECHO_N@,$ECHO_N,;t t
46213 s,@ECHO_T@,$ECHO_T,;t t
46214 s,@LIBS@,$LIBS,;t t
46215 s,@build@,$build,;t t
46216 s,@build_cpu@,$build_cpu,;t t
46217 s,@build_vendor@,$build_vendor,;t t
46218 s,@build_os@,$build_os,;t t
46219 s,@host@,$host,;t t
46220 s,@host_cpu@,$host_cpu,;t t
46221 s,@host_vendor@,$host_vendor,;t t
46222 s,@host_os@,$host_os,;t t
46223 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
46224 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
46225 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
46226 s,@CYGPATH_W@,$CYGPATH_W,;t t
46227 s,@PACKAGE@,$PACKAGE,;t t
46228 s,@VERSION@,$VERSION,;t t
46229 s,@ACLOCAL@,$ACLOCAL,;t t
46230 s,@AUTOCONF@,$AUTOCONF,;t t
46231 s,@AUTOMAKE@,$AUTOMAKE,;t t
46232 s,@AUTOHEADER@,$AUTOHEADER,;t t
46233 s,@MAKEINFO@,$MAKEINFO,;t t
46234 s,@AMTAR@,$AMTAR,;t t
46235 s,@install_sh@,$install_sh,;t t
46236 s,@STRIP@,$STRIP,;t t
46237 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
46238 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
46240 s,@SET_MAKE@,$SET_MAKE,;t t
46241 s,@am__leading_dot@,$am__leading_dot,;t t
46242 s,@PERL@,$PERL,;t t
46244 s,@CFLAGS@,$CFLAGS,;t t
46245 s,@LDFLAGS@,$LDFLAGS,;t t
46246 s,@CPPFLAGS@,$CPPFLAGS,;t t
46247 s,@ac_ct_CC@,$ac_ct_CC,;t t
46248 s,@EXEEXT@,$EXEEXT,;t t
46249 s,@OBJEXT@,$OBJEXT,;t t
46250 s,@DEPDIR@,$DEPDIR,;t t
46251 s,@am__include@,$am__include,;t t
46252 s,@am__quote@,$am__quote,;t t
46253 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
46254 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
46255 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
46256 s,@CCDEPMODE@,$CCDEPMODE,;t t
46257 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
46258 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
46260 s,@EGREP@,$EGREP,;t t
46261 s,@RANLIB@,$RANLIB,;t t
46262 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
46263 s,@LN_S@,$LN_S,;t t
46264 s,@GNU_PACKAGE@,$GNU_PACKAGE,;t t
46265 s,@HELP2MAN@,$HELP2MAN,;t t
46266 s,@OPTIONAL_BIN_PROGS@,$OPTIONAL_BIN_PROGS,;t t
46268 s,@DF_PROG@,$DF_PROG,;t t
46270 s,@ANSI2KNR@,$ANSI2KNR,;t t
46271 s,@LIBOBJS@,$LIBOBJS,;t t
46272 s,@STDBOOL_H@,$STDBOOL_H,;t t
46273 s,@HAVE__BOOL@,$HAVE__BOOL,;t t
46274 s,@ALLOCA@,$ALLOCA,;t t
46275 s,@ALLOCA_H@,$ALLOCA_H,;t t
46276 s,@FNMATCH_H@,$FNMATCH_H,;t t
46277 s,@NEED_SETGID@,$NEED_SETGID,;t t
46278 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
46279 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
46280 s,@POW_LIB@,$POW_LIB,;t t
46281 s,@YACC@,$YACC,;t t
46282 s,@LIB_CLOCK_GETTIME@,$LIB_CLOCK_GETTIME,;t t
46283 s,@LIB_NANOSLEEP@,$LIB_NANOSLEEP,;t t
46284 s,@SEQ_LIBM@,$SEQ_LIBM,;t t
46285 s,@GLIBC21@,$GLIBC21,;t t
46286 s,@LIBICONV@,$LIBICONV,;t t
46287 s,@LTLIBICONV@,$LTLIBICONV,;t t
46288 s,@SQRT_LIBM@,$SQRT_LIBM,;t t
46289 s,@FESETROUND_LIBM@,$FESETROUND_LIBM,;t t
46290 s,@LIB_CRYPT@,$LIB_CRYPT,;t t
46291 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
46292 s,@USE_NLS@,$USE_NLS,;t t
46293 s,@MSGFMT@,$MSGFMT,;t t
46294 s,@GMSGFMT@,$GMSGFMT,;t t
46295 s,@XGETTEXT@,$XGETTEXT,;t t
46296 s,@MSGMERGE@,$MSGMERGE,;t t
46297 s,@INTLLIBS@,$INTLLIBS,;t t
46298 s,@LIBINTL@,$LIBINTL,;t t
46299 s,@LTLIBINTL@,$LTLIBINTL,;t t
46300 s,@POSUB@,$POSUB,;t t
46301 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
46306 cat >>$CONFIG_STATUS <<\_ACEOF
46307 # Split the substitutions into bite-sized pieces for seds with
46308 # small command number limits, like on Digital OSF/1 and HP-UX.
46309 ac_max_sed_lines=48
46310 ac_sed_frag=1 # Number of current file.
46311 ac_beg=1 # First line for current file.
46312 ac_end=$ac_max_sed_lines # Line after last line for current file.
46315 while $ac_more_lines; do
46316 if test $ac_beg -gt 1; then
46317 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46319 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46321 if test ! -s $tmp/subs.frag; then
46322 ac_more_lines=false
46324 # The purpose of the label and of the branching condition is to
46325 # speed up the sed processing (if there are no `@' at all, there
46326 # is no need to browse any of the substitutions).
46327 # These are the two extra sed commands mentioned above.
46329 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
46330 if test -z "$ac_sed_cmds"; then
46331 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
46333 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
46335 ac_sed_frag=`expr $ac_sed_frag + 1`
46337 ac_end=`expr $ac_end + $ac_max_sed_lines`
46340 if test -z "$ac_sed_cmds"; then
46343 fi # test -n "$CONFIG_FILES"
46346 cat >>$CONFIG_STATUS <<\_ACEOF
46347 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
46348 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
46350 - | *:- | *:-:* ) # input from stdin
46352 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46353 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
46354 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46355 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
46356 * ) ac_file_in=$ac_file.in ;;
46359 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
46360 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46361 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46362 X"$ac_file" : 'X\(//\)[^/]' \| \
46363 X"$ac_file" : 'X\(//\)$' \| \
46364 X"$ac_file" : 'X\(/\)' \| \
46365 . : '\(.\)' 2>/dev/null ||
46367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46368 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46369 /^X\(\/\/\)$/{ s//\1/; q; }
46370 /^X\(\/\).*/{ s//\1/; q; }
46372 { if $as_mkdir_p; then
46377 while test ! -d "$as_dir"; do
46378 as_dirs="$as_dir $as_dirs"
46379 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46380 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46381 X"$as_dir" : 'X\(//\)[^/]' \| \
46382 X"$as_dir" : 'X\(//\)$' \| \
46383 X"$as_dir" : 'X\(/\)' \| \
46384 . : '\(.\)' 2>/dev/null ||
46386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46387 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46388 /^X\(\/\/\)$/{ s//\1/; q; }
46389 /^X\(\/\).*/{ s//\1/; q; }
46392 test ! -n "$as_dirs" || mkdir $as_dirs
46393 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46394 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46395 { (exit 1); exit 1; }; }; }
46399 if test "$ac_dir" != .; then
46400 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46401 # A "../" for each directory in $ac_dir_suffix.
46402 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46404 ac_dir_suffix= ac_top_builddir=
46408 .) # No --srcdir option. We are building in place.
46410 if test -z "$ac_top_builddir"; then
46413 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46415 [\\/]* | ?:[\\/]* ) # Absolute path.
46416 ac_srcdir=$srcdir$ac_dir_suffix;
46417 ac_top_srcdir=$srcdir ;;
46418 *) # Relative path.
46419 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46420 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46422 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
46424 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
46425 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
46426 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
46427 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
46431 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46432 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
46435 if test x"$ac_file" != x-; then
46436 { echo "$as_me:$LINENO: creating $ac_file" >&5
46437 echo "$as_me: creating $ac_file" >&6;}
46440 # Let's still pretend it is `configure' which instantiates (i.e., don't
46441 # use $as_me), people would be surprised to read:
46442 # /* config.h. Generated by config.status. */
46443 if test x"$ac_file" = x-; then
46446 configure_input="$ac_file. "
46448 configure_input=$configure_input"Generated from `echo $ac_file_in |
46449 sed 's,.*/,,'` by configure."
46451 # First look for the input files in the build tree, otherwise in the
46453 ac_file_inputs=`IFS=:
46454 for f in $ac_file_in; do
46456 -) echo $tmp/stdin ;;
46458 # Absolute (can't be DOS-style, as IFS=:)
46459 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
46460 echo "$as_me: error: cannot find input file: $f" >&2;}
46461 { (exit 1); exit 1; }; }
46464 if test -f "$f"; then
46467 elif test -f "$srcdir/$f"; then
46472 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
46473 echo "$as_me: error: cannot find input file: $f" >&2;}
46474 { (exit 1); exit 1; }; }
46477 done` || { (exit 1); exit 1; }
46479 cat >>$CONFIG_STATUS <<_ACEOF
46483 cat >>$CONFIG_STATUS <<\_ACEOF
46485 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46486 s,@configure_input@,$configure_input,;t t
46487 s,@srcdir@,$ac_srcdir,;t t
46488 s,@abs_srcdir@,$ac_abs_srcdir,;t t
46489 s,@top_srcdir@,$ac_top_srcdir,;t t
46490 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
46491 s,@builddir@,$ac_builddir,;t t
46492 s,@abs_builddir@,$ac_abs_builddir,;t t
46493 s,@top_builddir@,$ac_top_builddir,;t t
46494 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
46495 s,@INSTALL@,$ac_INSTALL,;t t
46496 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
46498 if test x"$ac_file" != x-; then
46499 mv $tmp/out $ac_file
46507 cat >>$CONFIG_STATUS <<\_ACEOF
46510 # CONFIG_HEADER section.
46513 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
46514 # NAME is the cpp macro being defined and VALUE is the value it is being given.
46516 # ac_d sets the value in "#define NAME VALUE" lines.
46517 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
46518 ac_dB='[ ].*$,\1#\2'
46521 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
46522 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
46523 ac_uB='$,\1#\2define\3'
46527 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
46528 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
46530 - | *:- | *:-:* ) # input from stdin
46532 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46533 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
46534 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46535 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
46536 * ) ac_file_in=$ac_file.in ;;
46539 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
46540 echo "$as_me: creating $ac_file" >&6;}
46542 # First look for the input files in the build tree, otherwise in the
46544 ac_file_inputs=`IFS=:
46545 for f in $ac_file_in; do
46547 -) echo $tmp/stdin ;;
46549 # Absolute (can't be DOS-style, as IFS=:)
46550 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
46551 echo "$as_me: error: cannot find input file: $f" >&2;}
46552 { (exit 1); exit 1; }; }
46553 # Do quote $f, to prevent DOS paths from being IFS'd.
46556 if test -f "$f"; then
46559 elif test -f "$srcdir/$f"; then
46564 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
46565 echo "$as_me: error: cannot find input file: $f" >&2;}
46566 { (exit 1); exit 1; }; }
46569 done` || { (exit 1); exit 1; }
46570 # Remove the trailing spaces.
46571 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
46575 # Transform confdefs.h into two sed scripts, `conftest.defines' and
46576 # `conftest.undefs', that substitutes the proper values into
46577 # config.h.in to produce config.h. The first handles `#define'
46578 # templates, and the second `#undef' templates.
46579 # And first: Protect against being on the right side of a sed subst in
46580 # config.status. Protect against being in an unquoted here document
46581 # in config.status.
46582 rm -f conftest.defines conftest.undefs
46583 # Using a here document instead of a string reduces the quoting nightmare.
46584 # Putting comments in sed scripts is not portable.
46586 # `end' is used to avoid that the second main sed command (meant for
46587 # 0-ary CPP macros) applies to n-ary macro definitions.
46588 # See the Autoconf documentation for `clear'.
46589 cat >confdef2sed.sed <<\_ACEOF
46594 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
46596 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
46599 # If some macros were called several times there might be several times
46600 # the same #defines, which is useless. Nevertheless, we may not want to
46601 # sort them, since we want the *last* AC-DEFINE to be honored.
46602 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
46603 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
46604 rm -f confdef2sed.sed
46606 # This sed command replaces #undef with comments. This is necessary, for
46607 # example, in the case of _POSIX_SOURCE, which is predefined and required
46608 # on some systems where configure will not decide to define it.
46609 cat >>conftest.undefs <<\_ACEOF
46610 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
46613 # Break up conftest.defines because some shells have a limit on the size
46614 # of here documents, and old seds have small limits too (100 cmds).
46615 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
46616 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
46617 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
46618 echo ' :' >>$CONFIG_STATUS
46619 rm -f conftest.tail
46620 while grep . conftest.defines >/dev/null
46622 # Write a limited-size here document to $tmp/defines.sed.
46623 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
46624 # Speed up: don't consider the non `#define' lines.
46625 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
46626 # Work around the forget-to-reset-the-flag bug.
46627 echo 't clr' >>$CONFIG_STATUS
46628 echo ': clr' >>$CONFIG_STATUS
46629 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
46631 sed -f $tmp/defines.sed $tmp/in >$tmp/out
46633 mv $tmp/out $tmp/in
46635 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
46636 rm -f conftest.defines
46637 mv conftest.tail conftest.defines
46639 rm -f conftest.defines
46640 echo ' fi # grep' >>$CONFIG_STATUS
46641 echo >>$CONFIG_STATUS
46643 # Break up conftest.undefs because some shells have a limit on the size
46644 # of here documents, and old seds have small limits too (100 cmds).
46645 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
46646 rm -f conftest.tail
46647 while grep . conftest.undefs >/dev/null
46649 # Write a limited-size here document to $tmp/undefs.sed.
46650 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
46651 # Speed up: don't consider the non `#undef'
46652 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
46653 # Work around the forget-to-reset-the-flag bug.
46654 echo 't clr' >>$CONFIG_STATUS
46655 echo ': clr' >>$CONFIG_STATUS
46656 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
46658 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
46660 mv $tmp/out $tmp/in
46662 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
46663 rm -f conftest.undefs
46664 mv conftest.tail conftest.undefs
46666 rm -f conftest.undefs
46668 cat >>$CONFIG_STATUS <<\_ACEOF
46669 # Let's still pretend it is `configure' which instantiates (i.e., don't
46670 # use $as_me), people would be surprised to read:
46671 # /* config.h. Generated by config.status. */
46672 if test x"$ac_file" = x-; then
46673 echo "/* Generated by configure. */" >$tmp/config.h
46675 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
46677 cat $tmp/in >>$tmp/config.h
46679 if test x"$ac_file" != x-; then
46680 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
46681 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46682 echo "$as_me: $ac_file is unchanged" >&6;}
46684 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46685 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46686 X"$ac_file" : 'X\(//\)[^/]' \| \
46687 X"$ac_file" : 'X\(//\)$' \| \
46688 X"$ac_file" : 'X\(/\)' \| \
46689 . : '\(.\)' 2>/dev/null ||
46691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46692 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46693 /^X\(\/\/\)$/{ s//\1/; q; }
46694 /^X\(\/\).*/{ s//\1/; q; }
46696 { if $as_mkdir_p; then
46701 while test ! -d "$as_dir"; do
46702 as_dirs="$as_dir $as_dirs"
46703 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46704 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46705 X"$as_dir" : 'X\(//\)[^/]' \| \
46706 X"$as_dir" : 'X\(//\)$' \| \
46707 X"$as_dir" : 'X\(/\)' \| \
46708 . : '\(.\)' 2>/dev/null ||
46710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46711 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46712 /^X\(\/\/\)$/{ s//\1/; q; }
46713 /^X\(\/\).*/{ s//\1/; q; }
46716 test ! -n "$as_dirs" || mkdir $as_dirs
46717 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46718 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46719 { (exit 1); exit 1; }; }; }
46722 mv $tmp/config.h $ac_file
46726 rm -f $tmp/config.h
46728 # Compute $ac_file's index in $config_headers.
46730 for _am_header in $config_headers :; do
46731 case $_am_header in
46732 $ac_file | $ac_file:* )
46735 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46738 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
46739 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46740 X$ac_file : 'X\(//\)[^/]' \| \
46741 X$ac_file : 'X\(//\)$' \| \
46742 X$ac_file : 'X\(/\)' \| \
46743 . : '\(.\)' 2>/dev/null ||
46745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46746 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46747 /^X\(\/\/\)$/{ s//\1/; q; }
46748 /^X\(\/\).*/{ s//\1/; q; }
46749 s/.*/./; q'`/stamp-h$_am_stamp_count
46752 cat >>$CONFIG_STATUS <<\_ACEOF
46755 # CONFIG_LINKS section.
46758 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
46759 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46760 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46762 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
46763 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
46765 if test ! -r $srcdir/$ac_source; then
46766 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
46767 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
46768 { (exit 1); exit 1; }; }
46772 # Make relative symlinks.
46773 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
46774 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46775 X"$ac_dest" : 'X\(//\)[^/]' \| \
46776 X"$ac_dest" : 'X\(//\)$' \| \
46777 X"$ac_dest" : 'X\(/\)' \| \
46778 . : '\(.\)' 2>/dev/null ||
46780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46781 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46782 /^X\(\/\/\)$/{ s//\1/; q; }
46783 /^X\(\/\).*/{ s//\1/; q; }
46785 { if $as_mkdir_p; then
46786 mkdir -p "$ac_dest_dir"
46788 as_dir="$ac_dest_dir"
46790 while test ! -d "$as_dir"; do
46791 as_dirs="$as_dir $as_dirs"
46792 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46793 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46794 X"$as_dir" : 'X\(//\)[^/]' \| \
46795 X"$as_dir" : 'X\(//\)$' \| \
46796 X"$as_dir" : 'X\(/\)' \| \
46797 . : '\(.\)' 2>/dev/null ||
46799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46800 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46801 /^X\(\/\/\)$/{ s//\1/; q; }
46802 /^X\(\/\).*/{ s//\1/; q; }
46805 test ! -n "$as_dirs" || mkdir $as_dirs
46806 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
46807 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
46808 { (exit 1); exit 1; }; }; }
46812 if test "$ac_dest_dir" != .; then
46813 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
46814 # A "../" for each directory in $ac_dir_suffix.
46815 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46817 ac_dir_suffix= ac_top_builddir=
46821 .) # No --srcdir option. We are building in place.
46823 if test -z "$ac_top_builddir"; then
46826 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46828 [\\/]* | ?:[\\/]* ) # Absolute path.
46829 ac_srcdir=$srcdir$ac_dir_suffix;
46830 ac_top_srcdir=$srcdir ;;
46831 *) # Relative path.
46832 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46833 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46835 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
46837 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
46838 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd`
46839 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
46840 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
46844 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
46845 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
46848 # Try a symlink, then a hard link, then a copy.
46849 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
46850 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
46851 cp -p $srcdir/$ac_source $ac_dest ||
46852 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
46853 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
46854 { (exit 1); exit 1; }; }
46857 cat >>$CONFIG_STATUS <<\_ACEOF
46860 # CONFIG_COMMANDS section.
46862 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46863 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46864 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46865 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46866 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46867 X"$ac_dest" : 'X\(//\)[^/]' \| \
46868 X"$ac_dest" : 'X\(//\)$' \| \
46869 X"$ac_dest" : 'X\(/\)' \| \
46870 . : '\(.\)' 2>/dev/null ||
46872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46874 /^X\(\/\/\)$/{ s//\1/; q; }
46875 /^X\(\/\).*/{ s//\1/; q; }
46879 if test "$ac_dir" != .; then
46880 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46881 # A "../" for each directory in $ac_dir_suffix.
46882 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46884 ac_dir_suffix= ac_top_builddir=
46888 .) # No --srcdir option. We are building in place.
46890 if test -z "$ac_top_builddir"; then
46893 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46895 [\\/]* | ?:[\\/]* ) # Absolute path.
46896 ac_srcdir=$srcdir$ac_dir_suffix;
46897 ac_top_srcdir=$srcdir ;;
46898 *) # Relative path.
46899 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46900 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46902 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
46904 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
46905 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
46906 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
46907 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
46910 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46911 echo "$as_me: executing $ac_dest commands" >&6;}
46913 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
46914 # Strip MF so we end up with the name of the file.
46915 mf=`echo "$mf" | sed -e 's/:.*$//'`
46916 # Check whether this is an Automake generated Makefile or not.
46917 # We used to match only the files named `Makefile.in', but
46918 # some people rename them; so instead we look at the file content.
46919 # Grep'ing the first line is not enough: some people post-process
46920 # each Makefile.in and add a new line on top of each file to say so.
46921 # So let's grep whole file.
46922 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
46923 dirpart=`(dirname "$mf") 2>/dev/null ||
46924 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46925 X"$mf" : 'X\(//\)[^/]' \| \
46926 X"$mf" : 'X\(//\)$' \| \
46927 X"$mf" : 'X\(/\)' \| \
46928 . : '\(.\)' 2>/dev/null ||
46930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46931 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46932 /^X\(\/\/\)$/{ s//\1/; q; }
46933 /^X\(\/\).*/{ s//\1/; q; }
46938 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
46939 # Extract the definition of DEP_FILES from the Makefile without
46941 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
46942 test -z "$DEPDIR" && continue
46943 # When using ansi2knr, U may be empty or an underscore; expand it
46944 U=`sed -n -e '/^U = / s///p' < "$mf"`
46945 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
46946 # We invoke sed twice because it is the simplest approach to
46947 # changing $(DEPDIR) to its actual value in the expansion.
46948 for file in `sed -n -e '
46949 /^DEP_FILES = .*\\\\$/ {
46958 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
46959 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46960 # Make sure the directory exists.
46961 test -f "$dirpart/$file" && continue
46962 fdir=`(dirname "$file") 2>/dev/null ||
46963 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46964 X"$file" : 'X\(//\)[^/]' \| \
46965 X"$file" : 'X\(//\)$' \| \
46966 X"$file" : 'X\(/\)' \| \
46967 . : '\(.\)' 2>/dev/null ||
46969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46970 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46971 /^X\(\/\/\)$/{ s//\1/; q; }
46972 /^X\(\/\).*/{ s//\1/; q; }
46974 { if $as_mkdir_p; then
46975 mkdir -p $dirpart/$fdir
46977 as_dir=$dirpart/$fdir
46979 while test ! -d "$as_dir"; do
46980 as_dirs="$as_dir $as_dirs"
46981 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46982 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46983 X"$as_dir" : 'X\(//\)[^/]' \| \
46984 X"$as_dir" : 'X\(//\)$' \| \
46985 X"$as_dir" : 'X\(/\)' \| \
46986 . : '\(.\)' 2>/dev/null ||
46988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46989 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46990 /^X\(\/\/\)$/{ s//\1/; q; }
46991 /^X\(\/\).*/{ s//\1/; q; }
46994 test ! -n "$as_dirs" || mkdir $as_dirs
46995 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
46996 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
46997 { (exit 1); exit 1; }; }; }
46999 # echo "creating $dirpart/$file"
47000 echo '# dummy' > "$dirpart/$file"
47005 for ac_file in $CONFIG_FILES; do
47006 # Support "outfile[:infile[:infile...]]"
47008 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
47010 # PO directories have a Makefile.in generated from Makefile.in.in.
47011 case "$ac_file" in */Makefile.in)
47012 # Adjust a relative srcdir.
47013 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
47014 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
47015 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
47016 # In autoconf-2.13 it is called $ac_given_srcdir.
47017 # In autoconf-2.50 it is called $srcdir.
47018 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
47019 case "$ac_given_srcdir" in
47020 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
47021 /*) top_srcdir="$ac_given_srcdir" ;;
47022 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
47024 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
47025 rm -f "$ac_dir/POTFILES"
47026 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
47027 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
47028 POMAKEFILEDEPS="POTFILES.in"
47029 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
47030 # on $ac_dir but don't depend on user-specified configuration
47032 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
47033 # The LINGUAS file contains the set of available languages.
47034 if test -n "$OBSOLETE_ALL_LINGUAS"; then
47035 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
47037 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
47038 # Hide the ALL_LINGUAS assigment from automake.
47039 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
47040 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
47042 # The set of available languages was given in configure.in.
47043 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
47045 case "$ac_given_srcdir" in
47047 *) srcdirpre='$(srcdir)/' ;;
47053 for lang in $ALL_LINGUAS; do
47054 POFILES="$POFILES $srcdirpre$lang.po"
47055 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
47056 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
47057 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
47059 # CATALOGS depends on both $ac_dir and the user's LINGUAS
47060 # environment variable.
47062 if test -n "$ALL_LINGUAS"; then
47063 for presentlang in $ALL_LINGUAS; do
47065 if test "%UNSET%" != "$LINGUAS"; then
47066 desiredlanguages="$LINGUAS"
47068 desiredlanguages="$ALL_LINGUAS"
47070 for desiredlang in $desiredlanguages; do
47071 # Use the presentlang catalog if desiredlang is
47072 # a. equal to presentlang, or
47073 # b. a variant of presentlang (because in this case,
47074 # presentlang can be used as a fallback for messages
47075 # which are not translated in the desiredlang catalog).
47076 case "$desiredlang" in
47077 "$presentlang"*) useit=yes;;
47080 if test $useit = yes; then
47081 INST_LINGUAS="$INST_LINGUAS $presentlang"
47086 if test -n "$INST_LINGUAS"; then
47087 for lang in $INST_LINGUAS; do
47088 CATALOGS="$CATALOGS $lang.gmo"
47091 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
47092 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
47093 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
47094 if test -f "$f"; then
47096 *.orig | *.bak | *~) ;;
47097 *) cat "$f" >> "$ac_dir/Makefile" ;;
47109 cat >>$CONFIG_STATUS <<\_ACEOF
47111 { (exit 0); exit 0; }
47113 chmod +x $CONFIG_STATUS
47114 ac_clean_files=$ac_clean_files_save
47117 # configure is writing to config.log, and then calls config.status.
47118 # config.status does its own redirection, appending to config.log.
47119 # Unfortunately, on DOS this fails, as config.log is still kept open
47120 # by configure, so config.status won't be able to write to it; its
47121 # output is simply discarded. So we exec the FD to /dev/null,
47122 # effectively closing config.log, so it can be properly (re)opened and
47123 # appended to by config.status. When coming back to configure, we
47124 # need to make the FD available again.
47125 if test "$no_create" != yes; then
47127 ac_config_status_args=
47128 test "$silent" = yes &&
47129 ac_config_status_args="$ac_config_status_args --quiet"
47131 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47133 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47134 # would make configure fail if this is the last instruction.
47135 $ac_cs_success || { (exit 1); exit 1; }