* src/dircolors.hin: Mention that ORPHAN refers not just to dangling symlinks.
[platform/upstream/coreutils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for GNU coreutils 6.0-cvs.
4 #
5 # Report bugs to <bug-coreutils@gnu.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40   echo "#! /bin/sh" >conf$$.sh
41   echo  "exit 0"   >>conf$$.sh
42   chmod +x conf$$.sh
43   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44     PATH_SEPARATOR=';'
45   else
46     PATH_SEPARATOR=:
47   fi
48   rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53   as_unset=unset
54 else
55   as_unset=false
56 fi
57
58
59 # IFS
60 # We need space, tab and new line, in precisely that order.  Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
65 '
66 IFS=" ""        $as_nl"
67
68 # Find who we are.  Look in the path if we contain no directory separator.
69 case $0 in
70   *[\\/]* ) as_myself=$0 ;;
71   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
73 do
74   IFS=$as_save_IFS
75   test -z "$as_dir" && as_dir=.
76   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
79
80      ;;
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85   as_myself=$0
86 fi
87 if test ! -f "$as_myself"; then
88   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89   { (exit 1); exit 1; }
90 fi
91
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
99
100 # NLS nuisances.
101 for as_var in \
102   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104   LC_TELEPHONE LC_TIME
105 do
106   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107     eval $as_var=C; export $as_var
108   else
109     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110   fi
111 done
112
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115    test "X`expr 00001 : '.*\(...\)'`" = X001; then
116   as_expr=expr
117 else
118   as_expr=false
119 fi
120
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122   as_basename=basename
123 else
124   as_basename=false
125 fi
126
127
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131          X"$0" : 'X\(//\)$' \| \
132          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134     sed '/^.*\/\([^/][^/]*\)\/*$/{
135             s//\1/
136             q
137           }
138           /^X\/\(\/\/\)$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\).*/{
143             s//\1/
144             q
145           }
146           s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
152 if test "x$CONFIG_SHELL" = x; then
153   if (eval ":") 2>/dev/null; then
154   as_have_required=yes
155 else
156   as_have_required=no
157 fi
158
159   if test $as_have_required = yes &&     (eval ":
160 (as_func_return () {
161   (exit \$1)
162 }
163 as_func_success () {
164   as_func_return 0
165 }
166 as_func_failure () {
167   as_func_return 1
168 }
169 as_func_ret_success () {
170   return 0
171 }
172 as_func_ret_failure () {
173   return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178   :
179 else
180   exitcode=1
181   echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185   exitcode=1
186   echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190   :
191 else
192   exitcode=1
193   echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197   exitcode=1
198   echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202   :
203 else
204   exitcode=1
205   echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
211   as_lineno_1=\$LINENO
212   as_lineno_2=\$LINENO
213   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
216   :
217 else
218   as_candidate_shells=
219     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   case $as_dir in
225          /*)
226            for as_base in sh bash ksh sh5; do
227              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228            done;;
229        esac
230 done
231 IFS=$as_save_IFS
232
233
234       for as_shell in $as_candidate_shells $SHELL; do
235          # Try only shells that exist, to save several forks.
236          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237                 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240   emulate sh
241   NULLCMD=:
242   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243   # is contrary to our usage.  Disable this feature.
244   alias -g '${1+"$@"}'='"$@"'
245   setopt NO_GLOB_SUBST
246 else
247   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
253 _ASEOF
254 }; then
255   CONFIG_SHELL=$as_shell
256                as_have_required=yes
257                if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274   (exit $1)
275 }
276 as_func_success () {
277   as_func_return 0
278 }
279 as_func_failure () {
280   as_func_return 1
281 }
282 as_func_ret_success () {
283   return 0
284 }
285 as_func_ret_failure () {
286   return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291   :
292 else
293   exitcode=1
294   echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298   exitcode=1
299   echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303   :
304 else
305   exitcode=1
306   echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310   exitcode=1
311   echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315   :
316 else
317   exitcode=1
318   echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
324   as_lineno_1=$LINENO
325   as_lineno_2=$LINENO
326   test "x$as_lineno_1" != "x$as_lineno_2" &&
327   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329 _ASEOF
330 }; then
331   break
332 fi
333
334 fi
335
336       done
337
338       if test "x$CONFIG_SHELL" != x; then
339   for as_var in BASH_ENV ENV
340         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341         done
342         export CONFIG_SHELL
343         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344 fi
345
346
347     if test $as_have_required = no; then
348   echo This script requires a shell more modern than all the
349       echo shells that I found on your system.  Please install a
350       echo modern shell, or manually run the script under such a
351       echo shell if you do have one.
352       { (exit 1); exit 1; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363   (exit \$1)
364 }
365 as_func_success () {
366   as_func_return 0
367 }
368 as_func_failure () {
369   as_func_return 1
370 }
371 as_func_ret_success () {
372   return 0
373 }
374 as_func_ret_failure () {
375   return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380   :
381 else
382   exitcode=1
383   echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387   exitcode=1
388   echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392   :
393 else
394   exitcode=1
395   echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399   exitcode=1
400   echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404   :
405 else
406   exitcode=1
407   echo positional parameters were not saved.
408 fi
409
410 test \$exitcode = 0") || {
411   echo No shell found that supports shell functions.
412   echo Please tell autoconf@gnu.org about your system,
413   echo including any error possibly output before this
414   echo message
415 }
416
417
418
419   as_lineno_1=$LINENO
420   as_lineno_2=$LINENO
421   test "x$as_lineno_1" != "x$as_lineno_2" &&
422   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425   # uniformly replaced by the line number.  The first 'sed' inserts a
426   # line-number line after each line using $LINENO; the second 'sed'
427   # does the real work.  The second script uses 'N' to pair each
428   # line-number line with the line containing $LINENO, and appends
429   # trailing '-' during substitution so that $LINENO is not a special
430   # case at line end.
431   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432   # scripts with optimization help from Paolo Bonzini.  Blame Lee
433   # E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451    { (exit 1); exit 1; }; }
452
453   # Don't try to exec as it changes $[0], causing all sort of problems
454   # (the dirname of $[0] is not the place where we might find the
455   # original and so on.  Autoconf is especially sensitive to this).
456   . "./$as_me.lineno"
457   # Exit status is that of the last command.
458   exit
459 }
460
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463   as_dirname=dirname
464 else
465   as_dirname=false
466 fi
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471   case `echo 'x\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   *)   ECHO_C='\c';;
474   esac;;
475 *)
476   ECHO_N='-n';;
477 esac
478
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480    test "X`expr 00001 : '.*\(...\)'`" = X001; then
481   as_expr=expr
482 else
483   as_expr=false
484 fi
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488   rm -f conf$$.dir/conf$$.file
489 else
490   rm -f conf$$.dir
491   mkdir conf$$.dir
492 fi
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495   as_ln_s='ln -s'
496   # ... but there are two gotchas:
497   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499   # In both cases, we have to default to `cp -p'.
500   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501     as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s=ln
504 else
505   as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511   as_mkdir_p=:
512 else
513   test -d ./-p && rmdir ./-p
514   as_mkdir_p=false
515 fi
516
517 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525   as_executable_p="test -x"
526 else
527   as_executable_p=:
528 fi
529 rm -f conf$$.file
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539 exec 7<&0 </dev/null 6>&1
540
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546 #
547 # Initializations.
548 #
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 # Identity of this package.
560 PACKAGE_NAME='GNU coreutils'
561 PACKAGE_TARNAME='coreutils'
562 PACKAGE_VERSION='6.0-cvs'
563 PACKAGE_STRING='GNU coreutils 6.0-cvs'
564 PACKAGE_BUGREPORT='bug-coreutils@gnu.org'
565
566 ac_unique_file="src/ls.c"
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #if HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #if HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #if STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # if HAVE_STDLIB_H
581 #  include <stdlib.h>
582 # endif
583 #endif
584 #if HAVE_STRING_H
585 # if !STDC_HEADERS && HAVE_MEMORY_H
586 #  include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #if HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #if HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #if HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #if HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
602
603 ac_header_list=
604 ac_func_list=
605 ac_config_libobj_dir=lib
606 ac_subst_vars='SHELL
607 PATH_SEPARATOR
608 PACKAGE_NAME
609 PACKAGE_TARNAME
610 PACKAGE_VERSION
611 PACKAGE_STRING
612 PACKAGE_BUGREPORT
613 exec_prefix
614 prefix
615 program_transform_name
616 bindir
617 sbindir
618 libexecdir
619 datarootdir
620 datadir
621 sysconfdir
622 sharedstatedir
623 localstatedir
624 includedir
625 oldincludedir
626 docdir
627 infodir
628 htmldir
629 dvidir
630 pdfdir
631 psdir
632 libdir
633 localedir
634 mandir
635 DEFS
636 ECHO_C
637 ECHO_N
638 ECHO_T
639 LIBS
640 build_alias
641 host_alias
642 target_alias
643 build
644 build_cpu
645 build_vendor
646 build_os
647 host
648 host_cpu
649 host_vendor
650 host_os
651 INSTALL_PROGRAM
652 INSTALL_SCRIPT
653 INSTALL_DATA
654 CYGPATH_W
655 PACKAGE
656 VERSION
657 ACLOCAL
658 AUTOCONF
659 AUTOMAKE
660 AUTOHEADER
661 MAKEINFO
662 install_sh
663 STRIP
664 INSTALL_STRIP_PROGRAM
665 mkdir_p
666 AWK
667 SET_MAKE
668 am__leading_dot
669 AMTAR
670 am__tar
671 am__untar
672 DEFAULT_POSIX2_VERSION
673 CC
674 CFLAGS
675 LDFLAGS
676 CPPFLAGS
677 ac_ct_CC
678 EXEEXT
679 OBJEXT
680 DEPDIR
681 am__include
682 am__quote
683 AMDEP_TRUE
684 AMDEP_FALSE
685 AMDEPBACKSLASH
686 CCDEPMODE
687 am__fastdepCC_TRUE
688 am__fastdepCC_FALSE
689 CPP
690 GREP
691 EGREP
692 PERL
693 RANLIB
694 LN_S
695 GNU_PACKAGE
696 HELP2MAN
697 OPTIONAL_BIN_PROGS
698 MAN
699 DF_PROG
700 U
701 ANSI2KNR
702 LIBOBJS
703 STDBOOL_H
704 HAVE__BOOL
705 ALLOCA
706 ALLOCA_H
707 SYS_SOCKET_H
708 FNMATCH_H
709 NEED_SETGID
710 KMEM_GROUP
711 GETLOADAVG_LIBS
712 LIB_EACCESS
713 POW_LIB
714 EOVERFLOW
715 YACC
716 YFLAGS
717 LIB_CLOCK_GETTIME
718 LIB_GETHRXTIME
719 GETOPT_H
720 GLIBC21
721 HAVE_LONG_LONG_INT
722 HAVE_WCHAR_H
723 HAVE_INTTYPES_H
724 HAVE_SYS_TYPES_H
725 ABSOLUTE_STDINT_H
726 HAVE_STDINT_H
727 HAVE_SYS_INTTYPES_H
728 HAVE_SYS_BITYPES_H
729 BITSIZEOF_PTRDIFF_T
730 BITSIZEOF_SIG_ATOMIC_T
731 BITSIZEOF_SIZE_T
732 BITSIZEOF_WCHAR_T
733 BITSIZEOF_WINT_T
734 HAVE_SIGNED_SIG_ATOMIC_T
735 HAVE_SIGNED_WCHAR_T
736 HAVE_SIGNED_WINT_T
737 PTRDIFF_T_SUFFIX
738 SIG_ATOMIC_T_SUFFIX
739 SIZE_T_SUFFIX
740 WCHAR_T_SUFFIX
741 WINT_T_SUFFIX
742 STDINT_H
743 LIB_NANOSLEEP
744 LIB_ACL
745 LIB_FDATASYNC
746 SEQ_LIBM
747 LIBICONV
748 LTLIBICONV
749 LIB_CRYPT
750 MKINSTALLDIRS
751 USE_NLS
752 MSGFMT
753 GMSGFMT
754 XGETTEXT
755 MSGMERGE
756 INTL_MACOSX_LIBS
757 INTLLIBS
758 LIBINTL
759 LTLIBINTL
760 POSUB
761 LTLIBOBJS'
762 ac_subst_files=''
763       ac_precious_vars='build_alias
764 host_alias
765 target_alias
766 DEFAULT_POSIX2_VERSION
767 CC
768 CFLAGS
769 LDFLAGS
770 CPPFLAGS
771 CPP
772 YACC
773 YFLAGS'
774
775
776 # Initialize some variables set by options.
777 ac_init_help=
778 ac_init_version=false
779 # The variables have the same names as the options, with
780 # dashes changed to underlines.
781 cache_file=/dev/null
782 exec_prefix=NONE
783 no_create=
784 no_recursion=
785 prefix=NONE
786 program_prefix=NONE
787 program_suffix=NONE
788 program_transform_name=s,x,x,
789 silent=
790 site=
791 srcdir=
792 verbose=
793 x_includes=NONE
794 x_libraries=NONE
795
796 # Installation directory options.
797 # These are left unexpanded so users can "make install exec_prefix=/foo"
798 # and all the variables that are supposed to be based on exec_prefix
799 # by default will actually change.
800 # Use braces instead of parens because sh, perl, etc. also accept them.
801 # (The list follows the same order as the GNU Coding Standards.)
802 bindir='${exec_prefix}/bin'
803 sbindir='${exec_prefix}/sbin'
804 libexecdir='${exec_prefix}/libexec'
805 datarootdir='${prefix}/share'
806 datadir='${datarootdir}'
807 sysconfdir='${prefix}/etc'
808 sharedstatedir='${prefix}/com'
809 localstatedir='${prefix}/var'
810 includedir='${prefix}/include'
811 oldincludedir='/usr/include'
812 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
813 infodir='${datarootdir}/info'
814 htmldir='${docdir}'
815 dvidir='${docdir}'
816 pdfdir='${docdir}'
817 psdir='${docdir}'
818 libdir='${exec_prefix}/lib'
819 localedir='${datarootdir}/locale'
820 mandir='${datarootdir}/man'
821
822 ac_prev=
823 ac_dashdash=
824 for ac_option
825 do
826   # If the previous option needs an argument, assign it.
827   if test -n "$ac_prev"; then
828     eval $ac_prev=\$ac_option
829     ac_prev=
830     continue
831   fi
832
833   case $ac_option in
834   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
835   *)    ac_optarg=yes ;;
836   esac
837
838   # Accept the important Cygnus configure options, so we can diagnose typos.
839
840   case $ac_dashdash$ac_option in
841   --)
842     ac_dashdash=yes ;;
843
844   -bindir | --bindir | --bindi | --bind | --bin | --bi)
845     ac_prev=bindir ;;
846   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
847     bindir=$ac_optarg ;;
848
849   -build | --build | --buil | --bui | --bu)
850     ac_prev=build_alias ;;
851   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
852     build_alias=$ac_optarg ;;
853
854   -cache-file | --cache-file | --cache-fil | --cache-fi \
855   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
856     ac_prev=cache_file ;;
857   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
858   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
859     cache_file=$ac_optarg ;;
860
861   --config-cache | -C)
862     cache_file=config.cache ;;
863
864   -datadir | --datadir | --datadi | --datad)
865     ac_prev=datadir ;;
866   -datadir=* | --datadir=* | --datadi=* | --datad=*)
867     datadir=$ac_optarg ;;
868
869   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
870   | --dataroo | --dataro | --datar)
871     ac_prev=datarootdir ;;
872   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
873   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
874     datarootdir=$ac_optarg ;;
875
876   -disable-* | --disable-*)
877     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
878     # Reject names that are not valid shell variable names.
879     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
880       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
881    { (exit 1); exit 1; }; }
882     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
883     eval enable_$ac_feature=no ;;
884
885   -docdir | --docdir | --docdi | --doc | --do)
886     ac_prev=docdir ;;
887   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
888     docdir=$ac_optarg ;;
889
890   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
891     ac_prev=dvidir ;;
892   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
893     dvidir=$ac_optarg ;;
894
895   -enable-* | --enable-*)
896     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
897     # Reject names that are not valid shell variable names.
898     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
899       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
900    { (exit 1); exit 1; }; }
901     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
902     eval enable_$ac_feature=\$ac_optarg ;;
903
904   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
905   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
906   | --exec | --exe | --ex)
907     ac_prev=exec_prefix ;;
908   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
909   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
910   | --exec=* | --exe=* | --ex=*)
911     exec_prefix=$ac_optarg ;;
912
913   -gas | --gas | --ga | --g)
914     # Obsolete; use --with-gas.
915     with_gas=yes ;;
916
917   -help | --help | --hel | --he | -h)
918     ac_init_help=long ;;
919   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
920     ac_init_help=recursive ;;
921   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
922     ac_init_help=short ;;
923
924   -host | --host | --hos | --ho)
925     ac_prev=host_alias ;;
926   -host=* | --host=* | --hos=* | --ho=*)
927     host_alias=$ac_optarg ;;
928
929   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
930     ac_prev=htmldir ;;
931   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
932   | --ht=*)
933     htmldir=$ac_optarg ;;
934
935   -includedir | --includedir | --includedi | --included | --include \
936   | --includ | --inclu | --incl | --inc)
937     ac_prev=includedir ;;
938   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
939   | --includ=* | --inclu=* | --incl=* | --inc=*)
940     includedir=$ac_optarg ;;
941
942   -infodir | --infodir | --infodi | --infod | --info | --inf)
943     ac_prev=infodir ;;
944   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
945     infodir=$ac_optarg ;;
946
947   -libdir | --libdir | --libdi | --libd)
948     ac_prev=libdir ;;
949   -libdir=* | --libdir=* | --libdi=* | --libd=*)
950     libdir=$ac_optarg ;;
951
952   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
953   | --libexe | --libex | --libe)
954     ac_prev=libexecdir ;;
955   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
956   | --libexe=* | --libex=* | --libe=*)
957     libexecdir=$ac_optarg ;;
958
959   -localedir | --localedir | --localedi | --localed | --locale)
960     ac_prev=localedir ;;
961   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
962     localedir=$ac_optarg ;;
963
964   -localstatedir | --localstatedir | --localstatedi | --localstated \
965   | --localstate | --localstat | --localsta | --localst | --locals)
966     ac_prev=localstatedir ;;
967   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
968   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
969     localstatedir=$ac_optarg ;;
970
971   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
972     ac_prev=mandir ;;
973   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
974     mandir=$ac_optarg ;;
975
976   -nfp | --nfp | --nf)
977     # Obsolete; use --without-fp.
978     with_fp=no ;;
979
980   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
981   | --no-cr | --no-c | -n)
982     no_create=yes ;;
983
984   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
985   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
986     no_recursion=yes ;;
987
988   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
989   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
990   | --oldin | --oldi | --old | --ol | --o)
991     ac_prev=oldincludedir ;;
992   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
993   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
994   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
995     oldincludedir=$ac_optarg ;;
996
997   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
998     ac_prev=prefix ;;
999   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000     prefix=$ac_optarg ;;
1001
1002   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1003   | --program-pre | --program-pr | --program-p)
1004     ac_prev=program_prefix ;;
1005   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1006   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1007     program_prefix=$ac_optarg ;;
1008
1009   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1010   | --program-suf | --program-su | --program-s)
1011     ac_prev=program_suffix ;;
1012   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1013   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1014     program_suffix=$ac_optarg ;;
1015
1016   -program-transform-name | --program-transform-name \
1017   | --program-transform-nam | --program-transform-na \
1018   | --program-transform-n | --program-transform- \
1019   | --program-transform | --program-transfor \
1020   | --program-transfo | --program-transf \
1021   | --program-trans | --program-tran \
1022   | --progr-tra | --program-tr | --program-t)
1023     ac_prev=program_transform_name ;;
1024   -program-transform-name=* | --program-transform-name=* \
1025   | --program-transform-nam=* | --program-transform-na=* \
1026   | --program-transform-n=* | --program-transform-=* \
1027   | --program-transform=* | --program-transfor=* \
1028   | --program-transfo=* | --program-transf=* \
1029   | --program-trans=* | --program-tran=* \
1030   | --progr-tra=* | --program-tr=* | --program-t=*)
1031     program_transform_name=$ac_optarg ;;
1032
1033   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1034     ac_prev=pdfdir ;;
1035   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1036     pdfdir=$ac_optarg ;;
1037
1038   -psdir | --psdir | --psdi | --psd | --ps)
1039     ac_prev=psdir ;;
1040   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1041     psdir=$ac_optarg ;;
1042
1043   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044   | -silent | --silent | --silen | --sile | --sil)
1045     silent=yes ;;
1046
1047   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1048     ac_prev=sbindir ;;
1049   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1050   | --sbi=* | --sb=*)
1051     sbindir=$ac_optarg ;;
1052
1053   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1054   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1055   | --sharedst | --shareds | --shared | --share | --shar \
1056   | --sha | --sh)
1057     ac_prev=sharedstatedir ;;
1058   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1059   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1060   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1061   | --sha=* | --sh=*)
1062     sharedstatedir=$ac_optarg ;;
1063
1064   -site | --site | --sit)
1065     ac_prev=site ;;
1066   -site=* | --site=* | --sit=*)
1067     site=$ac_optarg ;;
1068
1069   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1070     ac_prev=srcdir ;;
1071   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1072     srcdir=$ac_optarg ;;
1073
1074   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1075   | --syscon | --sysco | --sysc | --sys | --sy)
1076     ac_prev=sysconfdir ;;
1077   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1078   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1079     sysconfdir=$ac_optarg ;;
1080
1081   -target | --target | --targe | --targ | --tar | --ta | --t)
1082     ac_prev=target_alias ;;
1083   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1084     target_alias=$ac_optarg ;;
1085
1086   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1087     verbose=yes ;;
1088
1089   -version | --version | --versio | --versi | --vers | -V)
1090     ac_init_version=: ;;
1091
1092   -with-* | --with-*)
1093     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1094     # Reject names that are not valid shell variable names.
1095     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1096       { echo "$as_me: error: invalid package name: $ac_package" >&2
1097    { (exit 1); exit 1; }; }
1098     ac_package=`echo $ac_package| sed 's/-/_/g'`
1099     eval with_$ac_package=\$ac_optarg ;;
1100
1101   -without-* | --without-*)
1102     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1103     # Reject names that are not valid shell variable names.
1104     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1105       { echo "$as_me: error: invalid package name: $ac_package" >&2
1106    { (exit 1); exit 1; }; }
1107     ac_package=`echo $ac_package | sed 's/-/_/g'`
1108     eval with_$ac_package=no ;;
1109
1110   --x)
1111     # Obsolete; use --with-x.
1112     with_x=yes ;;
1113
1114   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1115   | --x-incl | --x-inc | --x-in | --x-i)
1116     ac_prev=x_includes ;;
1117   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1118   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1119     x_includes=$ac_optarg ;;
1120
1121   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1122   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1123     ac_prev=x_libraries ;;
1124   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1125   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1126     x_libraries=$ac_optarg ;;
1127
1128   -*) { echo "$as_me: error: unrecognized option: $ac_option
1129 Try \`$0 --help' for more information." >&2
1130    { (exit 1); exit 1; }; }
1131     ;;
1132
1133   *=*)
1134     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1135     # Reject names that are not valid shell variable names.
1136     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1137       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1138    { (exit 1); exit 1; }; }
1139     eval $ac_envvar=\$ac_optarg
1140     export $ac_envvar ;;
1141
1142   *)
1143     # FIXME: should be removed in autoconf 3.0.
1144     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1145     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1146       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1147     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1148     ;;
1149
1150   esac
1151 done
1152
1153 if test -n "$ac_prev"; then
1154   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1155   { echo "$as_me: error: missing argument to $ac_option" >&2
1156    { (exit 1); exit 1; }; }
1157 fi
1158
1159 # Be sure to have absolute directory names.
1160 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1161                 datadir sysconfdir sharedstatedir localstatedir includedir \
1162                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1163                 libdir localedir mandir
1164 do
1165   eval ac_val=\$$ac_var
1166   case $ac_val in
1167     [\\/$]* | ?:[\\/]* )  continue;;
1168     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1169   esac
1170   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1171    { (exit 1); exit 1; }; }
1172 done
1173
1174 # There might be people who depend on the old broken behavior: `$host'
1175 # used to hold the argument of --host etc.
1176 # FIXME: To remove some day.
1177 build=$build_alias
1178 host=$host_alias
1179 target=$target_alias
1180
1181 # FIXME: To remove some day.
1182 if test "x$host_alias" != x; then
1183   if test "x$build_alias" = x; then
1184     cross_compiling=maybe
1185     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1186     If a cross compiler is detected then cross compile mode will be used." >&2
1187   elif test "x$build_alias" != "x$host_alias"; then
1188     cross_compiling=yes
1189   fi
1190 fi
1191
1192 ac_tool_prefix=
1193 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1194
1195 test "$silent" = yes && exec 6>/dev/null
1196
1197
1198 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1199 ac_ls_di=`ls -di .` &&
1200 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1201   { echo "$as_me: error: Working directory cannot be determined" >&2
1202    { (exit 1); exit 1; }; }
1203 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1204   { echo "$as_me: error: pwd does not report name of working directory" >&2
1205    { (exit 1); exit 1; }; }
1206
1207
1208 # Find the source files, if location was not specified.
1209 if test -z "$srcdir"; then
1210   ac_srcdir_defaulted=yes
1211   # Try the directory containing this script, then the parent directory.
1212   ac_confdir=`$as_dirname -- "$0" ||
1213 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1214          X"$0" : 'X\(//\)[^/]' \| \
1215          X"$0" : 'X\(//\)$' \| \
1216          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1217 echo X"$0" |
1218     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1219             s//\1/
1220             q
1221           }
1222           /^X\(\/\/\)[^/].*/{
1223             s//\1/
1224             q
1225           }
1226           /^X\(\/\/\)$/{
1227             s//\1/
1228             q
1229           }
1230           /^X\(\/\).*/{
1231             s//\1/
1232             q
1233           }
1234           s/.*/./; q'`
1235   srcdir=$ac_confdir
1236   if test ! -r "$srcdir/$ac_unique_file"; then
1237     srcdir=..
1238   fi
1239 else
1240   ac_srcdir_defaulted=no
1241 fi
1242 if test ! -r "$srcdir/$ac_unique_file"; then
1243   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1244   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1245    { (exit 1); exit 1; }; }
1246 fi
1247 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1248 ac_abs_confdir=`(
1249         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1250    { (exit 1); exit 1; }; }
1251         pwd)`
1252 # When building in place, set srcdir=.
1253 if test "$ac_abs_confdir" = "$ac_pwd"; then
1254   srcdir=.
1255 fi
1256 # Remove unnecessary trailing slashes from srcdir.
1257 # Double slashes in file names in object file debugging info
1258 # mess up M-x gdb in Emacs.
1259 case $srcdir in
1260 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1261 esac
1262 for ac_var in $ac_precious_vars; do
1263   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1264   eval ac_env_${ac_var}_value=\$${ac_var}
1265   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1266   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1267 done
1268
1269 #
1270 # Report the --help message.
1271 #
1272 if test "$ac_init_help" = "long"; then
1273   # Omit some internal or obsolete options to make the list less imposing.
1274   # This message is too long to be a string in the A/UX 3.1 sh.
1275   cat <<_ACEOF
1276 \`configure' configures GNU coreutils 6.0-cvs to adapt to many kinds of systems.
1277
1278 Usage: $0 [OPTION]... [VAR=VALUE]...
1279
1280 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1281 VAR=VALUE.  See below for descriptions of some of the useful variables.
1282
1283 Defaults for the options are specified in brackets.
1284
1285 Configuration:
1286   -h, --help              display this help and exit
1287       --help=short        display options specific to this package
1288       --help=recursive    display the short help of all the included packages
1289   -V, --version           display version information and exit
1290   -q, --quiet, --silent   do not print \`checking...' messages
1291       --cache-file=FILE   cache test results in FILE [disabled]
1292   -C, --config-cache      alias for \`--cache-file=config.cache'
1293   -n, --no-create         do not create output files
1294       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1295
1296 Installation directories:
1297   --prefix=PREFIX         install architecture-independent files in PREFIX
1298                           [$ac_default_prefix]
1299   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1300                           [PREFIX]
1301
1302 By default, \`make install' will install all the files in
1303 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1304 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1305 for instance \`--prefix=\$HOME'.
1306
1307 For better control, use the options below.
1308
1309 Fine tuning of the installation directories:
1310   --bindir=DIR           user executables [EPREFIX/bin]
1311   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1312   --libexecdir=DIR       program executables [EPREFIX/libexec]
1313   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1314   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1315   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1316   --libdir=DIR           object code libraries [EPREFIX/lib]
1317   --includedir=DIR       C header files [PREFIX/include]
1318   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1319   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1320   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1321   --infodir=DIR          info documentation [DATAROOTDIR/info]
1322   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1323   --mandir=DIR           man documentation [DATAROOTDIR/man]
1324   --docdir=DIR           documentation root [DATAROOTDIR/doc/coreutils]
1325   --htmldir=DIR          html documentation [DOCDIR]
1326   --dvidir=DIR           dvi documentation [DOCDIR]
1327   --pdfdir=DIR           pdf documentation [DOCDIR]
1328   --psdir=DIR            ps documentation [DOCDIR]
1329 _ACEOF
1330
1331   cat <<\_ACEOF
1332
1333 Program names:
1334   --program-prefix=PREFIX            prepend PREFIX to installed program names
1335   --program-suffix=SUFFIX            append SUFFIX to installed program names
1336   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1337
1338 System types:
1339   --build=BUILD     configure for building on BUILD [guessed]
1340   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1341 _ACEOF
1342 fi
1343
1344 if test -n "$ac_init_help"; then
1345   case $ac_init_help in
1346      short | recursive ) echo "Configuration of GNU coreutils 6.0-cvs:";;
1347    esac
1348   cat <<\_ACEOF
1349
1350 Optional Features:
1351   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1352   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1353   --disable-dependency-tracking  speeds up one-time build
1354   --enable-dependency-tracking   do not reject slow dependency extractors
1355   --disable-largefile     omit support for large files
1356   --disable-assert        turn off assertions
1357   --disable-rpath         do not hardcode runtime library paths
1358   --disable-nls           do not use Native Language Support
1359
1360 Optional Packages:
1361   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1362   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1363   --without-included-regex
1364                           don't compile regex; this is the default on systems
1365                           with recent-enough versions of the GNU C Library
1366                           (use with caution on other systems)
1367   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1368   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1369   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1370   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1371   --without-libintl-prefix     don't search for libintl in includedir and libdir
1372
1373 Some influential environment variables:
1374   DEFAULT_POSIX2_VERSION
1375               POSIX version to default to; see 'config.hin'.
1376   CC          C compiler command
1377   CFLAGS      C compiler flags
1378   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1379               nonstandard directory <lib dir>
1380   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1381               you have headers in a nonstandard directory <include dir>
1382   CPP         C preprocessor
1383   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1384               `bison -y'. Values other than `bison -y' will most likely break
1385               on most systems.
1386   YFLAGS      YFLAGS contains the list arguments that will be passed by
1387               default to Bison. This script will default YFLAGS to the empty
1388               string to avoid a default value of `-d' given by some make
1389               applications.
1390
1391 Use these variables to override the choices made by `configure' or to help
1392 it to find libraries and programs with nonstandard names/locations.
1393
1394 Report bugs to <bug-coreutils@gnu.org>.
1395 _ACEOF
1396 ac_status=$?
1397 fi
1398
1399 if test "$ac_init_help" = "recursive"; then
1400   # If there are subdirs, report their specific --help.
1401   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1402     test -d "$ac_dir" || continue
1403     ac_builddir=.
1404
1405 case "$ac_dir" in
1406 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1407 *)
1408   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1409   # A ".." for each directory in $ac_dir_suffix.
1410   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1411   case $ac_top_builddir_sub in
1412   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1414   esac ;;
1415 esac
1416 ac_abs_top_builddir=$ac_pwd
1417 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1418 # for backward compatibility:
1419 ac_top_builddir=$ac_top_build_prefix
1420
1421 case $srcdir in
1422   .)  # We are building in place.
1423     ac_srcdir=.
1424     ac_top_srcdir=$ac_top_builddir_sub
1425     ac_abs_top_srcdir=$ac_pwd ;;
1426   [\\/]* | ?:[\\/]* )  # Absolute name.
1427     ac_srcdir=$srcdir$ac_dir_suffix;
1428     ac_top_srcdir=$srcdir
1429     ac_abs_top_srcdir=$srcdir ;;
1430   *) # Relative name.
1431     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1432     ac_top_srcdir=$ac_top_build_prefix$srcdir
1433     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1434 esac
1435 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1436
1437     cd "$ac_dir" || { ac_status=$?; continue; }
1438     # Check for guested configure.
1439     if test -f "$ac_srcdir/configure.gnu"; then
1440       echo &&
1441       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1442     elif test -f "$ac_srcdir/configure"; then
1443       echo &&
1444       $SHELL "$ac_srcdir/configure" --help=recursive
1445     else
1446       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1447     fi || ac_status=$?
1448     cd "$ac_pwd" || { ac_status=$?; break; }
1449   done
1450 fi
1451
1452 test -n "$ac_init_help" && exit $ac_status
1453 if $ac_init_version; then
1454   cat <<\_ACEOF
1455 GNU coreutils configure 6.0-cvs
1456 generated by GNU Autoconf 2.60
1457
1458 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1459 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1460 This configure script is free software; the Free Software Foundation
1461 gives unlimited permission to copy, distribute and modify it.
1462 _ACEOF
1463   exit
1464 fi
1465 cat >config.log <<_ACEOF
1466 This file contains any messages produced by compilers while
1467 running configure, to aid debugging if configure makes a mistake.
1468
1469 It was created by GNU coreutils $as_me 6.0-cvs, which was
1470 generated by GNU Autoconf 2.60.  Invocation command line was
1471
1472   $ $0 $@
1473
1474 _ACEOF
1475 exec 5>>config.log
1476 {
1477 cat <<_ASUNAME
1478 ## --------- ##
1479 ## Platform. ##
1480 ## --------- ##
1481
1482 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1483 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1484 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1485 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1486 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1487
1488 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1489 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1490
1491 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1492 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1493 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1494 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1495 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1496 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1497 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1498
1499 _ASUNAME
1500
1501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502 for as_dir in $PATH
1503 do
1504   IFS=$as_save_IFS
1505   test -z "$as_dir" && as_dir=.
1506   echo "PATH: $as_dir"
1507 done
1508 IFS=$as_save_IFS
1509
1510 } >&5
1511
1512 cat >&5 <<_ACEOF
1513
1514
1515 ## ----------- ##
1516 ## Core tests. ##
1517 ## ----------- ##
1518
1519 _ACEOF
1520
1521
1522 # Keep a trace of the command line.
1523 # Strip out --no-create and --no-recursion so they do not pile up.
1524 # Strip out --silent because we don't want to record it for future runs.
1525 # Also quote any args containing shell meta-characters.
1526 # Make two passes to allow for proper duplicate-argument suppression.
1527 ac_configure_args=
1528 ac_configure_args0=
1529 ac_configure_args1=
1530 ac_must_keep_next=false
1531 for ac_pass in 1 2
1532 do
1533   for ac_arg
1534   do
1535     case $ac_arg in
1536     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1537     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1538     | -silent | --silent | --silen | --sile | --sil)
1539       continue ;;
1540     *\'*)
1541       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1542     esac
1543     case $ac_pass in
1544     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1545     2)
1546       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1547       if test $ac_must_keep_next = true; then
1548         ac_must_keep_next=false # Got value, back to normal.
1549       else
1550         case $ac_arg in
1551           *=* | --config-cache | -C | -disable-* | --disable-* \
1552           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1553           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1554           | -with-* | --with-* | -without-* | --without-* | --x)
1555             case "$ac_configure_args0 " in
1556               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1557             esac
1558             ;;
1559           -* ) ac_must_keep_next=true ;;
1560         esac
1561       fi
1562       ac_configure_args="$ac_configure_args '$ac_arg'"
1563       ;;
1564     esac
1565   done
1566 done
1567 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1568 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1569
1570 # When interrupted or exit'd, cleanup temporary files, and complete
1571 # config.log.  We remove comments because anyway the quotes in there
1572 # would cause problems or look ugly.
1573 # WARNING: Use '\'' to represent an apostrophe within the trap.
1574 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1575 trap 'exit_status=$?
1576   # Save into config.log some information that might help in debugging.
1577   {
1578     echo
1579
1580     cat <<\_ASBOX
1581 ## ---------------- ##
1582 ## Cache variables. ##
1583 ## ---------------- ##
1584 _ASBOX
1585     echo
1586     # The following way of writing the cache mishandles newlines in values,
1587 (
1588   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1589     eval ac_val=\$$ac_var
1590     case $ac_val in #(
1591     *${as_nl}*)
1592       case $ac_var in #(
1593       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1594 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1595       esac
1596       case $ac_var in #(
1597       _ | IFS | as_nl) ;; #(
1598       *) $as_unset $ac_var ;;
1599       esac ;;
1600     esac
1601   done
1602   (set) 2>&1 |
1603     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1604     *${as_nl}ac_space=\ *)
1605       sed -n \
1606         "s/'\''/'\''\\\\'\'''\''/g;
1607           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1608       ;; #(
1609     *)
1610       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1611       ;;
1612     esac |
1613     sort
1614 )
1615     echo
1616
1617     cat <<\_ASBOX
1618 ## ----------------- ##
1619 ## Output variables. ##
1620 ## ----------------- ##
1621 _ASBOX
1622     echo
1623     for ac_var in $ac_subst_vars
1624     do
1625       eval ac_val=\$$ac_var
1626       case $ac_val in
1627       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1628       esac
1629       echo "$ac_var='\''$ac_val'\''"
1630     done | sort
1631     echo
1632
1633     if test -n "$ac_subst_files"; then
1634       cat <<\_ASBOX
1635 ## ------------------- ##
1636 ## File substitutions. ##
1637 ## ------------------- ##
1638 _ASBOX
1639       echo
1640       for ac_var in $ac_subst_files
1641       do
1642         eval ac_val=\$$ac_var
1643         case $ac_val in
1644         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1645         esac
1646         echo "$ac_var='\''$ac_val'\''"
1647       done | sort
1648       echo
1649     fi
1650
1651     if test -s confdefs.h; then
1652       cat <<\_ASBOX
1653 ## ----------- ##
1654 ## confdefs.h. ##
1655 ## ----------- ##
1656 _ASBOX
1657       echo
1658       cat confdefs.h
1659       echo
1660     fi
1661     test "$ac_signal" != 0 &&
1662       echo "$as_me: caught signal $ac_signal"
1663     echo "$as_me: exit $exit_status"
1664   } >&5
1665   rm -f core *.core core.conftest.* &&
1666     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1667     exit $exit_status
1668 ' 0
1669 for ac_signal in 1 2 13 15; do
1670   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1671 done
1672 ac_signal=0
1673
1674 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1675 rm -f -r conftest* confdefs.h
1676
1677 # Predefined preprocessor variables.
1678
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_NAME "$PACKAGE_NAME"
1681 _ACEOF
1682
1683
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1686 _ACEOF
1687
1688
1689 cat >>confdefs.h <<_ACEOF
1690 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1691 _ACEOF
1692
1693
1694 cat >>confdefs.h <<_ACEOF
1695 #define PACKAGE_STRING "$PACKAGE_STRING"
1696 _ACEOF
1697
1698
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1701 _ACEOF
1702
1703
1704 # Let the site file select an alternate cache file if it wants to.
1705 # Prefer explicitly selected file to automatically selected ones.
1706 if test -n "$CONFIG_SITE"; then
1707   set x "$CONFIG_SITE"
1708 elif test "x$prefix" != xNONE; then
1709   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1710 else
1711   set x "$ac_default_prefix/share/config.site" \
1712         "$ac_default_prefix/etc/config.site"
1713 fi
1714 shift
1715 for ac_site_file
1716 do
1717   if test -r "$ac_site_file"; then
1718     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1719 echo "$as_me: loading site script $ac_site_file" >&6;}
1720     sed 's/^/| /' "$ac_site_file" >&5
1721     . "$ac_site_file"
1722   fi
1723 done
1724
1725 if test -r "$cache_file"; then
1726   # Some versions of bash will fail to source /dev/null (special
1727   # files actually), so we avoid doing that.
1728   if test -f "$cache_file"; then
1729     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1730 echo "$as_me: loading cache $cache_file" >&6;}
1731     case $cache_file in
1732       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1733       *)                      . "./$cache_file";;
1734     esac
1735   fi
1736 else
1737   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1738 echo "$as_me: creating cache $cache_file" >&6;}
1739   >$cache_file
1740 fi
1741
1742 ac_header_list="$ac_header_list hurd.h"
1743 ac_header_list="$ac_header_list paths.h"
1744 ac_header_list="$ac_header_list priv.h"
1745 ac_header_list="$ac_header_list stropts.h"
1746 ac_header_list="$ac_header_list sys/ioctl.h"
1747 ac_header_list="$ac_header_list sys/param.h"
1748 ac_header_list="$ac_header_list sys/resource.h"
1749 ac_header_list="$ac_header_list sys/statvfs.h"
1750 ac_header_list="$ac_header_list sys/systeminfo.h"
1751 ac_header_list="$ac_header_list sys/time.h"
1752 ac_header_list="$ac_header_list sys/vfs.h"
1753 ac_header_list="$ac_header_list sys/wait.h"
1754 ac_header_list="$ac_header_list syslog.h"
1755 ac_header_list="$ac_header_list termios.h"
1756 ac_header_list="$ac_header_list grp.h"
1757 ac_header_list="$ac_header_list pwd.h"
1758 ac_header_list="$ac_header_list utmp.h"
1759 ac_func_list="$ac_func_list pathconf"
1760 ac_header_list="$ac_header_list sys/socket.h"
1761 ac_header_list="$ac_header_list netinet/in.h"
1762 ac_header_list="$ac_header_list netdb.h"
1763 ac_func_list="$ac_func_list mempcpy"
1764 ac_header_list="$ac_header_list sys/fs_types.h"
1765 ac_header_list="$ac_header_list stdio_ext.h"
1766 ac_func_list="$ac_func_list __fsetlocking"
1767 ac_func_list="$ac_func_list tcgetattr"
1768 ac_func_list="$ac_func_list tcsetattr"
1769 ac_func_list="$ac_func_list alarm"
1770 ac_header_list="$ac_header_list libgen.h"
1771 ac_header_list="$ac_header_list unistd.h"
1772 ac_header_list="$ac_header_list wchar.h"
1773 ac_header_list="$ac_header_list wctype.h"
1774 ac_func_list="$ac_func_list iswprint"
1775 ac_func_list="$ac_func_list wcwidth"
1776 ac_func_list="$ac_func_list microuptime"
1777 ac_func_list="$ac_func_list nanouptime"
1778 ac_func_list="$ac_func_list gettimeofday"
1779 ac_func_list="$ac_func_list nanotime"
1780 ac_header_list="$ac_header_list stddef.h"
1781 ac_header_list="$ac_header_list stdlib.h"
1782 ac_header_list="$ac_header_list string.h"
1783 ac_func_list="$ac_func_list setlocale"
1784 ac_func_list="$ac_func_list isascii"
1785 ac_func_list="$ac_func_list mbsinit"
1786 ac_func_list="$ac_func_list lchmod"
1787 ac_header_list="$ac_header_list utmpx.h"
1788 ac_func_list="$ac_func_list utmpname"
1789 ac_func_list="$ac_func_list utmpxname"
1790 ac_header_list="$ac_header_list locale.h"
1791 ac_func_list="$ac_func_list mbrtowc"
1792 ac_func_list="$ac_func_list wcrtomb"
1793 ac_func_list="$ac_func_list wcscoll"
1794 ac_func_list="$ac_func_list fchdir"
1795 ac_func_list="$ac_func_list settimeofday"
1796 ac_func_list="$ac_func_list stime"
1797 ac_header_list="$ac_header_list stdint.h"
1798 ac_header_list="$ac_header_list utime.h"
1799 ac_func_list="$ac_func_list futimes"
1800 ac_func_list="$ac_func_list futimesat"
1801 ac_func_list="$ac_func_list mblen"
1802 ac_func_list="$ac_func_list mbrlen"
1803 ac_func_list="$ac_func_list tzset"
1804 ac_func_list="$ac_func_list siginterrupt"
1805 ac_header_list="$ac_header_list sys/select.h"
1806 ac_func_list="$ac_func_list fdopendir"
1807 ac_func_list="$ac_func_list directio"
1808 ac_func_list="$ac_func_list endgrent"
1809 ac_func_list="$ac_func_list endpwent"
1810 ac_func_list="$ac_func_list fchmod"
1811 ac_func_list="$ac_func_list fchown"
1812 ac_func_list="$ac_func_list ftruncate"
1813 ac_func_list="$ac_func_list hasmntopt"
1814 ac_func_list="$ac_func_list iswspace"
1815 ac_func_list="$ac_func_list lchown"
1816 ac_func_list="$ac_func_list listmntent"
1817 ac_func_list="$ac_func_list mkfifo"
1818 ac_func_list="$ac_func_list realpath"
1819 ac_func_list="$ac_func_list setgroups"
1820 ac_func_list="$ac_func_list sethostname"
1821 ac_func_list="$ac_func_list sync"
1822 ac_func_list="$ac_func_list sysctl"
1823 ac_func_list="$ac_func_list sysinfo"
1824 ac_func_list="$ac_func_list tcgetpgrp"
1825 ac_header_list="$ac_header_list sys/sysmacros.h"
1826 ac_func_list="$ac_func_list statvfs"
1827 # Check that the precious variables saved in the cache have kept the same
1828 # value.
1829 ac_cache_corrupted=false
1830 for ac_var in $ac_precious_vars; do
1831   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1832   eval ac_new_set=\$ac_env_${ac_var}_set
1833   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1834   eval ac_new_val=\$ac_env_${ac_var}_value
1835   case $ac_old_set,$ac_new_set in
1836     set,)
1837       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1838 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1839       ac_cache_corrupted=: ;;
1840     ,set)
1841       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1842 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1843       ac_cache_corrupted=: ;;
1844     ,);;
1845     *)
1846       if test "x$ac_old_val" != "x$ac_new_val"; then
1847         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1848 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1849         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1850 echo "$as_me:   former value:  $ac_old_val" >&2;}
1851         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1852 echo "$as_me:   current value: $ac_new_val" >&2;}
1853         ac_cache_corrupted=:
1854       fi;;
1855   esac
1856   # Pass precious variables to config.status.
1857   if test "$ac_new_set" = set; then
1858     case $ac_new_val in
1859     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1860     *) ac_arg=$ac_var=$ac_new_val ;;
1861     esac
1862     case " $ac_configure_args " in
1863       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1864       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1865     esac
1866   fi
1867 done
1868 if $ac_cache_corrupted; then
1869   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1870 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1871   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1872 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1873    { (exit 1); exit 1; }; }
1874 fi
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900 ac_ext=c
1901 ac_cpp='$CPP $CPPFLAGS'
1902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1905
1906
1907
1908
1909 ac_aux_dir=
1910 for ac_dir in build-aux "$srcdir"/build-aux; do
1911   if test -f "$ac_dir/install-sh"; then
1912     ac_aux_dir=$ac_dir
1913     ac_install_sh="$ac_aux_dir/install-sh -c"
1914     break
1915   elif test -f "$ac_dir/install.sh"; then
1916     ac_aux_dir=$ac_dir
1917     ac_install_sh="$ac_aux_dir/install.sh -c"
1918     break
1919   elif test -f "$ac_dir/shtool"; then
1920     ac_aux_dir=$ac_dir
1921     ac_install_sh="$ac_aux_dir/shtool install -c"
1922     break
1923   fi
1924 done
1925 if test -z "$ac_aux_dir"; then
1926   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
1927 echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
1928    { (exit 1); exit 1; }; }
1929 fi
1930
1931 # These three variables are undocumented and unsupported,
1932 # and are intended to be withdrawn in a future Autoconf release.
1933 # They can cause serious problems if a builder's source tree is in a directory
1934 # whose full name contains unusual characters.
1935 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1936 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1937 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1938
1939
1940 ac_config_headers="$ac_config_headers config.h:config.hin"
1941
1942
1943 # Make sure we can run config.sub.
1944 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1945   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1946 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1947    { (exit 1); exit 1; }; }
1948
1949 { echo "$as_me:$LINENO: checking build system type" >&5
1950 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1951 if test "${ac_cv_build+set}" = set; then
1952   echo $ECHO_N "(cached) $ECHO_C" >&6
1953 else
1954   ac_build_alias=$build_alias
1955 test "x$ac_build_alias" = x &&
1956   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1957 test "x$ac_build_alias" = x &&
1958   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1959 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1960    { (exit 1); exit 1; }; }
1961 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1962   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1963 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1964    { (exit 1); exit 1; }; }
1965
1966 fi
1967 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1968 echo "${ECHO_T}$ac_cv_build" >&6; }
1969 case $ac_cv_build in
1970 *-*-*) ;;
1971 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1972 echo "$as_me: error: invalid value of canonical build" >&2;}
1973    { (exit 1); exit 1; }; };;
1974 esac
1975 build=$ac_cv_build
1976 ac_save_IFS=$IFS; IFS='-'
1977 set x $ac_cv_build
1978 shift
1979 build_cpu=$1
1980 build_vendor=$2
1981 shift; shift
1982 # Remember, the first character of IFS is used to create $*,
1983 # except with old shells:
1984 build_os=$*
1985 IFS=$ac_save_IFS
1986 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1987
1988
1989 { echo "$as_me:$LINENO: checking host system type" >&5
1990 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1991 if test "${ac_cv_host+set}" = set; then
1992   echo $ECHO_N "(cached) $ECHO_C" >&6
1993 else
1994   if test "x$host_alias" = x; then
1995   ac_cv_host=$ac_cv_build
1996 else
1997   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1998     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1999 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2000    { (exit 1); exit 1; }; }
2001 fi
2002
2003 fi
2004 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2005 echo "${ECHO_T}$ac_cv_host" >&6; }
2006 case $ac_cv_host in
2007 *-*-*) ;;
2008 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2009 echo "$as_me: error: invalid value of canonical host" >&2;}
2010    { (exit 1); exit 1; }; };;
2011 esac
2012 host=$ac_cv_host
2013 ac_save_IFS=$IFS; IFS='-'
2014 set x $ac_cv_host
2015 shift
2016 host_cpu=$1
2017 host_vendor=$2
2018 shift; shift
2019 # Remember, the first character of IFS is used to create $*,
2020 # except with old shells:
2021 host_os=$*
2022 IFS=$ac_save_IFS
2023 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2024
2025
2026
2027
2028
2029
2030         { echo "$as_me:$LINENO: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
2031 echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
2032         { echo "$as_me:$LINENO: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
2033 echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
2034         hostname=`hostname`
2035         if test "$hostname"; then
2036            { echo "$as_me:$LINENO: autobuild hostname... $hostname" >&5
2037 echo "$as_me: autobuild hostname... $hostname" >&6;}
2038         fi
2039
2040         date=`date +%Y%m%d-%H%M%S`
2041         if test "$?" != 0; then
2042            date=`date`
2043         fi
2044         if test "$date"; then
2045            { echo "$as_me:$LINENO: autobuild timestamp... $date" >&5
2046 echo "$as_me: autobuild timestamp... $date" >&6;}
2047         fi
2048
2049 am__api_version="1.9"
2050 # Find a good install program.  We prefer a C program (faster),
2051 # so one script is as good as another.  But avoid the broken or
2052 # incompatible versions:
2053 # SysV /etc/install, /usr/sbin/install
2054 # SunOS /usr/etc/install
2055 # IRIX /sbin/install
2056 # AIX /bin/install
2057 # AmigaOS /C/install, which installs bootblocks on floppy discs
2058 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2059 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2060 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2061 # OS/2's system install, which has a completely different semantic
2062 # ./install, which can be erroneously created by make from ./install.sh.
2063 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2064 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2065 if test -z "$INSTALL"; then
2066 if test "${ac_cv_path_install+set}" = set; then
2067   echo $ECHO_N "(cached) $ECHO_C" >&6
2068 else
2069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070 for as_dir in $PATH
2071 do
2072   IFS=$as_save_IFS
2073   test -z "$as_dir" && as_dir=.
2074   # Account for people who put trailing slashes in PATH elements.
2075 case $as_dir/ in
2076   ./ | .// | /cC/* | \
2077   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2078   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2079   /usr/ucb/* ) ;;
2080   *)
2081     # OSF1 and SCO ODT 3.0 have their own names for install.
2082     # Don't use installbsd from OSF since it installs stuff as root
2083     # by default.
2084     for ac_prog in ginstall scoinst install; do
2085       for ac_exec_ext in '' $ac_executable_extensions; do
2086         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2087           if test $ac_prog = install &&
2088             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2089             # AIX install.  It has an incompatible calling convention.
2090             :
2091           elif test $ac_prog = install &&
2092             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2093             # program-specific install script used by HP pwplus--don't use.
2094             :
2095           else
2096             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2097             break 3
2098           fi
2099         fi
2100       done
2101     done
2102     ;;
2103 esac
2104 done
2105 IFS=$as_save_IFS
2106
2107
2108 fi
2109   if test "${ac_cv_path_install+set}" = set; then
2110     INSTALL=$ac_cv_path_install
2111   else
2112     # As a last resort, use the slow shell script.  Don't cache a
2113     # value for INSTALL within a source directory, because that will
2114     # break other packages using the cache if that directory is
2115     # removed, or if the value is a relative name.
2116     INSTALL=$ac_install_sh
2117   fi
2118 fi
2119 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2120 echo "${ECHO_T}$INSTALL" >&6; }
2121
2122 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2123 # It thinks the first close brace ends the variable substitution.
2124 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2125
2126 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2127
2128 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2129
2130 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2131 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2132 # Just in case
2133 sleep 1
2134 echo timestamp > conftest.file
2135 # Do `set' in a subshell so we don't clobber the current shell's
2136 # arguments.  Must try -L first in case configure is actually a
2137 # symlink; some systems play weird games with the mod time of symlinks
2138 # (eg FreeBSD returns the mod time of the symlink's containing
2139 # directory).
2140 if (
2141    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2142    if test "$*" = "X"; then
2143       # -L didn't work.
2144       set X `ls -t $srcdir/configure conftest.file`
2145    fi
2146    rm -f conftest.file
2147    if test "$*" != "X $srcdir/configure conftest.file" \
2148       && test "$*" != "X conftest.file $srcdir/configure"; then
2149
2150       # If neither matched, then we have a broken ls.  This can happen
2151       # if, for instance, CONFIG_SHELL is bash and it inherits a
2152       # broken ls alias from the environment.  This has actually
2153       # happened.  Such a system could not be considered "sane".
2154       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2155 alias in your environment" >&5
2156 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2157 alias in your environment" >&2;}
2158    { (exit 1); exit 1; }; }
2159    fi
2160
2161    test "$2" = conftest.file
2162    )
2163 then
2164    # Ok.
2165    :
2166 else
2167    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2168 Check your system clock" >&5
2169 echo "$as_me: error: newly created file is older than distributed files!
2170 Check your system clock" >&2;}
2171    { (exit 1); exit 1; }; }
2172 fi
2173 { echo "$as_me:$LINENO: result: yes" >&5
2174 echo "${ECHO_T}yes" >&6; }
2175 test "$program_prefix" != NONE &&
2176   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2177 # Use a double $ so make ignores it.
2178 test "$program_suffix" != NONE &&
2179   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2180 # Double any \ or $.  echo might interpret backslashes.
2181 # By default was `s,x,x', remove it if useless.
2182 cat <<\_ACEOF >conftest.sed
2183 s/[\\$]/&&/g;s/;s,x,x,$//
2184 _ACEOF
2185 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2186 rm -f conftest.sed
2187
2188 # expand $ac_aux_dir to an absolute path
2189 am_aux_dir=`cd $ac_aux_dir && pwd`
2190
2191 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2192 # Use eval to expand $SHELL
2193 if eval "$MISSING --run true"; then
2194   am_missing_run="$MISSING --run "
2195 else
2196   am_missing_run=
2197   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2198 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2199 fi
2200
2201 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2202   # We used to keeping the `.' as first argument, in order to
2203   # allow $(mkdir_p) to be used without argument.  As in
2204   #   $(mkdir_p) $(somedir)
2205   # where $(somedir) is conditionally defined.  However this is wrong
2206   # for two reasons:
2207   #  1. if the package is installed by a user who cannot write `.'
2208   #     make install will fail,
2209   #  2. the above comment should most certainly read
2210   #     $(mkdir_p) $(DESTDIR)$(somedir)
2211   #     so it does not work when $(somedir) is undefined and
2212   #     $(DESTDIR) is not.
2213   #  To support the latter case, we have to write
2214   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2215   #  so the `.' trick is pointless.
2216   mkdir_p='mkdir -p --'
2217 else
2218   # On NextStep and OpenStep, the `mkdir' command does not
2219   # recognize any option.  It will interpret all options as
2220   # directories to create, and then abort because `.' already
2221   # exists.
2222   for d in ./-p ./--version;
2223   do
2224     test -d $d && rmdir $d
2225   done
2226   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2227   if test -f "$ac_aux_dir/mkinstalldirs"; then
2228     mkdir_p='$(mkinstalldirs)'
2229   else
2230     mkdir_p='$(install_sh) -d'
2231   fi
2232 fi
2233
2234 for ac_prog in gawk mawk nawk awk
2235 do
2236   # Extract the first word of "$ac_prog", so it can be a program name with args.
2237 set dummy $ac_prog; ac_word=$2
2238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2240 if test "${ac_cv_prog_AWK+set}" = set; then
2241   echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243   if test -n "$AWK"; then
2244   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2245 else
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247 for as_dir in $PATH
2248 do
2249   IFS=$as_save_IFS
2250   test -z "$as_dir" && as_dir=.
2251   for ac_exec_ext in '' $ac_executable_extensions; do
2252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2253     ac_cv_prog_AWK="$ac_prog"
2254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255     break 2
2256   fi
2257 done
2258 done
2259 IFS=$as_save_IFS
2260
2261 fi
2262 fi
2263 AWK=$ac_cv_prog_AWK
2264 if test -n "$AWK"; then
2265   { echo "$as_me:$LINENO: result: $AWK" >&5
2266 echo "${ECHO_T}$AWK" >&6; }
2267 else
2268   { echo "$as_me:$LINENO: result: no" >&5
2269 echo "${ECHO_T}no" >&6; }
2270 fi
2271
2272
2273   test -n "$AWK" && break
2274 done
2275
2276 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2277 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2278 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2279 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2280   echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282   cat >conftest.make <<\_ACEOF
2283 SHELL = /bin/sh
2284 all:
2285         @echo '@@@%%%=$(MAKE)=@@@%%%'
2286 _ACEOF
2287 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2288 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2289   *@@@%%%=?*=@@@%%%*)
2290     eval ac_cv_prog_make_${ac_make}_set=yes;;
2291   *)
2292     eval ac_cv_prog_make_${ac_make}_set=no;;
2293 esac
2294 rm -f conftest.make
2295 fi
2296 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2297   { echo "$as_me:$LINENO: result: yes" >&5
2298 echo "${ECHO_T}yes" >&6; }
2299   SET_MAKE=
2300 else
2301   { echo "$as_me:$LINENO: result: no" >&5
2302 echo "${ECHO_T}no" >&6; }
2303   SET_MAKE="MAKE=${MAKE-make}"
2304 fi
2305
2306 rm -rf .tst 2>/dev/null
2307 mkdir .tst 2>/dev/null
2308 if test -d .tst; then
2309   am__leading_dot=.
2310 else
2311   am__leading_dot=_
2312 fi
2313 rmdir .tst 2>/dev/null
2314
2315 # test to see if srcdir already configured
2316 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2317    test -f $srcdir/config.status; then
2318   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2319 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2320    { (exit 1); exit 1; }; }
2321 fi
2322
2323 # test whether we have cygpath
2324 if test -z "$CYGPATH_W"; then
2325   if (cygpath --version) >/dev/null 2>/dev/null; then
2326     CYGPATH_W='cygpath -w'
2327   else
2328     CYGPATH_W=echo
2329   fi
2330 fi
2331
2332
2333 # Define the identity of the package.
2334  PACKAGE='coreutils'
2335  VERSION='6.0-cvs'
2336
2337
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE "$PACKAGE"
2340 _ACEOF
2341
2342
2343 cat >>confdefs.h <<_ACEOF
2344 #define VERSION "$VERSION"
2345 _ACEOF
2346
2347 # Some tools Automake needs.
2348
2349 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2350
2351
2352 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2353
2354
2355 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2356
2357
2358 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2359
2360
2361 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2362
2363 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2364
2365 # Installed binaries are usually stripped using `strip' when the user
2366 # run `make install-strip'.  However `strip' might not be the right
2367 # tool to use in cross-compilation environments, therefore Automake
2368 # will honor the `STRIP' environment variable to overrule this program.
2369 if test "$cross_compiling" != no; then
2370   if test -n "$ac_tool_prefix"; then
2371   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2372 set dummy ${ac_tool_prefix}strip; ac_word=$2
2373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2375 if test "${ac_cv_prog_STRIP+set}" = set; then
2376   echo $ECHO_N "(cached) $ECHO_C" >&6
2377 else
2378   if test -n "$STRIP"; then
2379   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2380 else
2381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382 for as_dir in $PATH
2383 do
2384   IFS=$as_save_IFS
2385   test -z "$as_dir" && as_dir=.
2386   for ac_exec_ext in '' $ac_executable_extensions; do
2387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2388     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2390     break 2
2391   fi
2392 done
2393 done
2394 IFS=$as_save_IFS
2395
2396 fi
2397 fi
2398 STRIP=$ac_cv_prog_STRIP
2399 if test -n "$STRIP"; then
2400   { echo "$as_me:$LINENO: result: $STRIP" >&5
2401 echo "${ECHO_T}$STRIP" >&6; }
2402 else
2403   { echo "$as_me:$LINENO: result: no" >&5
2404 echo "${ECHO_T}no" >&6; }
2405 fi
2406
2407
2408 fi
2409 if test -z "$ac_cv_prog_STRIP"; then
2410   ac_ct_STRIP=$STRIP
2411   # Extract the first word of "strip", so it can be a program name with args.
2412 set dummy strip; ac_word=$2
2413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2415 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2416   echo $ECHO_N "(cached) $ECHO_C" >&6
2417 else
2418   if test -n "$ac_ct_STRIP"; then
2419   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2420 else
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 for as_dir in $PATH
2423 do
2424   IFS=$as_save_IFS
2425   test -z "$as_dir" && as_dir=.
2426   for ac_exec_ext in '' $ac_executable_extensions; do
2427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2428     ac_cv_prog_ac_ct_STRIP="strip"
2429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2430     break 2
2431   fi
2432 done
2433 done
2434 IFS=$as_save_IFS
2435
2436 fi
2437 fi
2438 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2439 if test -n "$ac_ct_STRIP"; then
2440   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2441 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2442 else
2443   { echo "$as_me:$LINENO: result: no" >&5
2444 echo "${ECHO_T}no" >&6; }
2445 fi
2446
2447   if test "x$ac_ct_STRIP" = x; then
2448     STRIP=":"
2449   else
2450     case $cross_compiling:$ac_tool_warned in
2451 yes:)
2452 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2453 whose name does not start with the host triplet.  If you think this
2454 configuration is useful to you, please write to autoconf@gnu.org." >&5
2455 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2456 whose name does not start with the host triplet.  If you think this
2457 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2458 ac_tool_warned=yes ;;
2459 esac
2460     STRIP=$ac_ct_STRIP
2461   fi
2462 else
2463   STRIP="$ac_cv_prog_STRIP"
2464 fi
2465
2466 fi
2467 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2468
2469 # We need awk for the "check" target.  The system "awk" is bad on
2470 # some platforms.
2471 # Always define AMTAR for backward compatibility.
2472
2473 AMTAR=${AMTAR-"${am_missing_run}tar"}
2474
2475 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2476
2477
2478
2479
2480
2481
2482
2483   { echo "$as_me:$LINENO: checking for desired default level of POSIX conformance" >&5
2484 echo $ECHO_N "checking for desired default level of POSIX conformance... $ECHO_C" >&6; }
2485   gl_default_posix2_version=none-specified
2486   if test -n "$ac_cv_env_DEFAULT_POSIX2_VERSION_set"; then
2487     gl_default_posix2_version=$ac_cv_env_DEFAULT_POSIX2_VERSION_value
2488
2489 cat >>confdefs.h <<_ACEOF
2490 #define DEFAULT_POSIX2_VERSION $gl_default_posix2_version
2491 _ACEOF
2492
2493   fi
2494   { echo "$as_me:$LINENO: result: $gl_default_posix2_version" >&5
2495 echo "${ECHO_T}$gl_default_posix2_version" >&6; }
2496
2497
2498
2499 cat >>confdefs.h <<\_ACEOF
2500 #define _GNU_SOURCE 1
2501 _ACEOF
2502
2503
2504 DEPDIR="${am__leading_dot}deps"
2505
2506 ac_config_commands="$ac_config_commands depfiles"
2507
2508
2509 am_make=${MAKE-make}
2510 cat > confinc << 'END'
2511 am__doit:
2512         @echo done
2513 .PHONY: am__doit
2514 END
2515 # If we don't find an include directive, just comment out the code.
2516 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2517 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2518 am__include="#"
2519 am__quote=
2520 _am_result=none
2521 # First try GNU make style include.
2522 echo "include confinc" > confmf
2523 # We grep out `Entering directory' and `Leaving directory'
2524 # messages which can occur if `w' ends up in MAKEFLAGS.
2525 # In particular we don't look at `^make:' because GNU make might
2526 # be invoked under some other name (usually "gmake"), in which
2527 # case it prints its new name instead of `make'.
2528 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2529    am__include=include
2530    am__quote=
2531    _am_result=GNU
2532 fi
2533 # Now try BSD make style include.
2534 if test "$am__include" = "#"; then
2535    echo '.include "confinc"' > confmf
2536    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2537       am__include=.include
2538       am__quote="\""
2539       _am_result=BSD
2540    fi
2541 fi
2542
2543
2544 { echo "$as_me:$LINENO: result: $_am_result" >&5
2545 echo "${ECHO_T}$_am_result" >&6; }
2546 rm -f confinc confmf
2547
2548 # Check whether --enable-dependency-tracking was given.
2549 if test "${enable_dependency_tracking+set}" = set; then
2550   enableval=$enable_dependency_tracking;
2551 fi
2552
2553 if test "x$enable_dependency_tracking" != xno; then
2554   am_depcomp="$ac_aux_dir/depcomp"
2555   AMDEPBACKSLASH='\'
2556 fi
2557
2558
2559 if test "x$enable_dependency_tracking" != xno; then
2560   AMDEP_TRUE=
2561   AMDEP_FALSE='#'
2562 else
2563   AMDEP_TRUE='#'
2564   AMDEP_FALSE=
2565 fi
2566
2567
2568
2569 ac_ext=c
2570 ac_cpp='$CPP $CPPFLAGS'
2571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2574 if test -n "$ac_tool_prefix"; then
2575   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2576 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2579 if test "${ac_cv_prog_CC+set}" = set; then
2580   echo $ECHO_N "(cached) $ECHO_C" >&6
2581 else
2582   if test -n "$CC"; then
2583   ac_cv_prog_CC="$CC" # Let the user override the test.
2584 else
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 for as_dir in $PATH
2587 do
2588   IFS=$as_save_IFS
2589   test -z "$as_dir" && as_dir=.
2590   for ac_exec_ext in '' $ac_executable_extensions; do
2591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2592     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594     break 2
2595   fi
2596 done
2597 done
2598 IFS=$as_save_IFS
2599
2600 fi
2601 fi
2602 CC=$ac_cv_prog_CC
2603 if test -n "$CC"; then
2604   { echo "$as_me:$LINENO: result: $CC" >&5
2605 echo "${ECHO_T}$CC" >&6; }
2606 else
2607   { echo "$as_me:$LINENO: result: no" >&5
2608 echo "${ECHO_T}no" >&6; }
2609 fi
2610
2611
2612 fi
2613 if test -z "$ac_cv_prog_CC"; then
2614   ac_ct_CC=$CC
2615   # Extract the first word of "gcc", so it can be a program name with args.
2616 set dummy gcc; ac_word=$2
2617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2619 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2620   echo $ECHO_N "(cached) $ECHO_C" >&6
2621 else
2622   if test -n "$ac_ct_CC"; then
2623   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2624 else
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626 for as_dir in $PATH
2627 do
2628   IFS=$as_save_IFS
2629   test -z "$as_dir" && as_dir=.
2630   for ac_exec_ext in '' $ac_executable_extensions; do
2631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2632     ac_cv_prog_ac_ct_CC="gcc"
2633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2634     break 2
2635   fi
2636 done
2637 done
2638 IFS=$as_save_IFS
2639
2640 fi
2641 fi
2642 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2643 if test -n "$ac_ct_CC"; then
2644   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2645 echo "${ECHO_T}$ac_ct_CC" >&6; }
2646 else
2647   { echo "$as_me:$LINENO: result: no" >&5
2648 echo "${ECHO_T}no" >&6; }
2649 fi
2650
2651   if test "x$ac_ct_CC" = x; then
2652     CC=""
2653   else
2654     case $cross_compiling:$ac_tool_warned in
2655 yes:)
2656 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2657 whose name does not start with the host triplet.  If you think this
2658 configuration is useful to you, please write to autoconf@gnu.org." >&5
2659 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2660 whose name does not start with the host triplet.  If you think this
2661 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2662 ac_tool_warned=yes ;;
2663 esac
2664     CC=$ac_ct_CC
2665   fi
2666 else
2667   CC="$ac_cv_prog_CC"
2668 fi
2669
2670 if test -z "$CC"; then
2671           if test -n "$ac_tool_prefix"; then
2672     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2673 set dummy ${ac_tool_prefix}cc; ac_word=$2
2674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2676 if test "${ac_cv_prog_CC+set}" = set; then
2677   echo $ECHO_N "(cached) $ECHO_C" >&6
2678 else
2679   if test -n "$CC"; then
2680   ac_cv_prog_CC="$CC" # Let the user override the test.
2681 else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2684 do
2685   IFS=$as_save_IFS
2686   test -z "$as_dir" && as_dir=.
2687   for ac_exec_ext in '' $ac_executable_extensions; do
2688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2689     ac_cv_prog_CC="${ac_tool_prefix}cc"
2690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2691     break 2
2692   fi
2693 done
2694 done
2695 IFS=$as_save_IFS
2696
2697 fi
2698 fi
2699 CC=$ac_cv_prog_CC
2700 if test -n "$CC"; then
2701   { echo "$as_me:$LINENO: result: $CC" >&5
2702 echo "${ECHO_T}$CC" >&6; }
2703 else
2704   { echo "$as_me:$LINENO: result: no" >&5
2705 echo "${ECHO_T}no" >&6; }
2706 fi
2707
2708
2709   fi
2710 fi
2711 if test -z "$CC"; then
2712   # Extract the first word of "cc", so it can be a program name with args.
2713 set dummy cc; ac_word=$2
2714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2716 if test "${ac_cv_prog_CC+set}" = set; then
2717   echo $ECHO_N "(cached) $ECHO_C" >&6
2718 else
2719   if test -n "$CC"; then
2720   ac_cv_prog_CC="$CC" # Let the user override the test.
2721 else
2722   ac_prog_rejected=no
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 for as_dir in $PATH
2725 do
2726   IFS=$as_save_IFS
2727   test -z "$as_dir" && as_dir=.
2728   for ac_exec_ext in '' $ac_executable_extensions; do
2729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2730     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2731        ac_prog_rejected=yes
2732        continue
2733      fi
2734     ac_cv_prog_CC="cc"
2735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736     break 2
2737   fi
2738 done
2739 done
2740 IFS=$as_save_IFS
2741
2742 if test $ac_prog_rejected = yes; then
2743   # We found a bogon in the path, so make sure we never use it.
2744   set dummy $ac_cv_prog_CC
2745   shift
2746   if test $# != 0; then
2747     # We chose a different compiler from the bogus one.
2748     # However, it has the same basename, so the bogon will be chosen
2749     # first if we set CC to just the basename; use the full file name.
2750     shift
2751     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2752   fi
2753 fi
2754 fi
2755 fi
2756 CC=$ac_cv_prog_CC
2757 if test -n "$CC"; then
2758   { echo "$as_me:$LINENO: result: $CC" >&5
2759 echo "${ECHO_T}$CC" >&6; }
2760 else
2761   { echo "$as_me:$LINENO: result: no" >&5
2762 echo "${ECHO_T}no" >&6; }
2763 fi
2764
2765
2766 fi
2767 if test -z "$CC"; then
2768   if test -n "$ac_tool_prefix"; then
2769   for ac_prog in cl.exe
2770   do
2771     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2772 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2775 if test "${ac_cv_prog_CC+set}" = set; then
2776   echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778   if test -n "$CC"; then
2779   ac_cv_prog_CC="$CC" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784   IFS=$as_save_IFS
2785   test -z "$as_dir" && as_dir=.
2786   for ac_exec_ext in '' $ac_executable_extensions; do
2787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2788     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790     break 2
2791   fi
2792 done
2793 done
2794 IFS=$as_save_IFS
2795
2796 fi
2797 fi
2798 CC=$ac_cv_prog_CC
2799 if test -n "$CC"; then
2800   { echo "$as_me:$LINENO: result: $CC" >&5
2801 echo "${ECHO_T}$CC" >&6; }
2802 else
2803   { echo "$as_me:$LINENO: result: no" >&5
2804 echo "${ECHO_T}no" >&6; }
2805 fi
2806
2807
2808     test -n "$CC" && break
2809   done
2810 fi
2811 if test -z "$CC"; then
2812   ac_ct_CC=$CC
2813   for ac_prog in cl.exe
2814 do
2815   # Extract the first word of "$ac_prog", so it can be a program name with args.
2816 set dummy $ac_prog; ac_word=$2
2817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2819 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2820   echo $ECHO_N "(cached) $ECHO_C" >&6
2821 else
2822   if test -n "$ac_ct_CC"; then
2823   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2827 do
2828   IFS=$as_save_IFS
2829   test -z "$as_dir" && as_dir=.
2830   for ac_exec_ext in '' $ac_executable_extensions; do
2831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2832     ac_cv_prog_ac_ct_CC="$ac_prog"
2833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834     break 2
2835   fi
2836 done
2837 done
2838 IFS=$as_save_IFS
2839
2840 fi
2841 fi
2842 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2843 if test -n "$ac_ct_CC"; then
2844   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2845 echo "${ECHO_T}$ac_ct_CC" >&6; }
2846 else
2847   { echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6; }
2849 fi
2850
2851
2852   test -n "$ac_ct_CC" && break
2853 done
2854
2855   if test "x$ac_ct_CC" = x; then
2856     CC=""
2857   else
2858     case $cross_compiling:$ac_tool_warned in
2859 yes:)
2860 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2861 whose name does not start with the host triplet.  If you think this
2862 configuration is useful to you, please write to autoconf@gnu.org." >&5
2863 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2864 whose name does not start with the host triplet.  If you think this
2865 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2866 ac_tool_warned=yes ;;
2867 esac
2868     CC=$ac_ct_CC
2869   fi
2870 fi
2871
2872 fi
2873
2874
2875 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2876 See \`config.log' for more details." >&5
2877 echo "$as_me: error: no acceptable C compiler found in \$PATH
2878 See \`config.log' for more details." >&2;}
2879    { (exit 1); exit 1; }; }
2880
2881 # Provide some information about the compiler.
2882 echo "$as_me:$LINENO: checking for C compiler version" >&5
2883 ac_compiler=`set X $ac_compile; echo $2`
2884 { (ac_try="$ac_compiler --version >&5"
2885 case "(($ac_try" in
2886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887   *) ac_try_echo=$ac_try;;
2888 esac
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890   (eval "$ac_compiler --version >&5") 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }
2894 { (ac_try="$ac_compiler -v >&5"
2895 case "(($ac_try" in
2896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897   *) ac_try_echo=$ac_try;;
2898 esac
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900   (eval "$ac_compiler -v >&5") 2>&5
2901   ac_status=$?
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); }
2904 { (ac_try="$ac_compiler -V >&5"
2905 case "(($ac_try" in
2906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907   *) ac_try_echo=$ac_try;;
2908 esac
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910   (eval "$ac_compiler -V >&5") 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }
2914
2915 cat >conftest.$ac_ext <<_ACEOF
2916 /* confdefs.h.  */
2917 _ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h.  */
2921
2922 int
2923 main ()
2924 {
2925
2926   ;
2927   return 0;
2928 }
2929 _ACEOF
2930 ac_clean_files_save=$ac_clean_files
2931 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2932 # Try to create an executable without -o first, disregard a.out.
2933 # It will help us diagnose broken compilers, and finding out an intuition
2934 # of exeext.
2935 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2936 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2937 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2938 #
2939 # List of possible output files, starting from the most likely.
2940 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2941 # only as a last resort.  b.out is created by i960 compilers.
2942 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2943 #
2944 # The IRIX 6 linker writes into existing files which may not be
2945 # executable, retaining their permissions.  Remove them first so a
2946 # subsequent execution test works.
2947 ac_rmfiles=
2948 for ac_file in $ac_files
2949 do
2950   case $ac_file in
2951     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2952     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2953   esac
2954 done
2955 rm -f $ac_rmfiles
2956
2957 if { (ac_try="$ac_link_default"
2958 case "(($ac_try" in
2959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960   *) ac_try_echo=$ac_try;;
2961 esac
2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963   (eval "$ac_link_default") 2>&5
2964   ac_status=$?
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); }; then
2967   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2968 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2969 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2970 # so that the user can short-circuit this test for compilers unknown to
2971 # Autoconf.
2972 for ac_file in $ac_files
2973 do
2974   test -f "$ac_file" || continue
2975   case $ac_file in
2976     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2977         ;;
2978     [ab].out )
2979         # We found the default executable, but exeext='' is most
2980         # certainly right.
2981         break;;
2982     *.* )
2983         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2984         then :; else
2985            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2986         fi
2987         # We set ac_cv_exeext here because the later test for it is not
2988         # safe: cross compilers may not add the suffix if given an `-o'
2989         # argument, so we may need to know it at that point already.
2990         # Even if this section looks crufty: it has the advantage of
2991         # actually working.
2992         break;;
2993     * )
2994         break;;
2995   esac
2996 done
2997 test "$ac_cv_exeext" = no && ac_cv_exeext=
2998
2999 else
3000   echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3002
3003 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3004 See \`config.log' for more details." >&5
3005 echo "$as_me: error: C compiler cannot create executables
3006 See \`config.log' for more details." >&2;}
3007    { (exit 77); exit 77; }; }
3008 fi
3009
3010 ac_exeext=$ac_cv_exeext
3011 { echo "$as_me:$LINENO: result: $ac_file" >&5
3012 echo "${ECHO_T}$ac_file" >&6; }
3013
3014 # Check that the compiler produces executables we can run.  If not, either
3015 # the compiler is broken, or we cross compile.
3016 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3017 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3018 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3019 # If not cross compiling, check that we can run a simple program.
3020 if test "$cross_compiling" != yes; then
3021   if { ac_try='./$ac_file'
3022   { (case "(($ac_try" in
3023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024   *) ac_try_echo=$ac_try;;
3025 esac
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027   (eval "$ac_try") 2>&5
3028   ac_status=$?
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); }; }; then
3031     cross_compiling=no
3032   else
3033     if test "$cross_compiling" = maybe; then
3034         cross_compiling=yes
3035     else
3036         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3037 If you meant to cross compile, use \`--host'.
3038 See \`config.log' for more details." >&5
3039 echo "$as_me: error: cannot run C compiled programs.
3040 If you meant to cross compile, use \`--host'.
3041 See \`config.log' for more details." >&2;}
3042    { (exit 1); exit 1; }; }
3043     fi
3044   fi
3045 fi
3046 { echo "$as_me:$LINENO: result: yes" >&5
3047 echo "${ECHO_T}yes" >&6; }
3048
3049 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3050 ac_clean_files=$ac_clean_files_save
3051 # Check that the compiler produces executables we can run.  If not, either
3052 # the compiler is broken, or we cross compile.
3053 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3054 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3055 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3056 echo "${ECHO_T}$cross_compiling" >&6; }
3057
3058 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3059 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3060 if { (ac_try="$ac_link"
3061 case "(($ac_try" in
3062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063   *) ac_try_echo=$ac_try;;
3064 esac
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066   (eval "$ac_link") 2>&5
3067   ac_status=$?
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); }; then
3070   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3071 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3072 # work properly (i.e., refer to `conftest.exe'), while it won't with
3073 # `rm'.
3074 for ac_file in conftest.exe conftest conftest.*; do
3075   test -f "$ac_file" || continue
3076   case $ac_file in
3077     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3078     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3079           break;;
3080     * ) break;;
3081   esac
3082 done
3083 else
3084   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3085 See \`config.log' for more details." >&5
3086 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3087 See \`config.log' for more details." >&2;}
3088    { (exit 1); exit 1; }; }
3089 fi
3090
3091 rm -f conftest$ac_cv_exeext
3092 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3093 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3094
3095 rm -f conftest.$ac_ext
3096 EXEEXT=$ac_cv_exeext
3097 ac_exeext=$EXEEXT
3098 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3099 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3100 if test "${ac_cv_objext+set}" = set; then
3101   echo $ECHO_N "(cached) $ECHO_C" >&6
3102 else
3103   cat >conftest.$ac_ext <<_ACEOF
3104 /* confdefs.h.  */
3105 _ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h.  */
3109
3110 int
3111 main ()
3112 {
3113
3114   ;
3115   return 0;
3116 }
3117 _ACEOF
3118 rm -f conftest.o conftest.obj
3119 if { (ac_try="$ac_compile"
3120 case "(($ac_try" in
3121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122   *) ac_try_echo=$ac_try;;
3123 esac
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125   (eval "$ac_compile") 2>&5
3126   ac_status=$?
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); }; then
3129   for ac_file in conftest.o conftest.obj conftest.*; do
3130   test -f "$ac_file" || continue;
3131   case $ac_file in
3132     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3133     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3134        break;;
3135   esac
3136 done
3137 else
3138   echo "$as_me: failed program was:" >&5
3139 sed 's/^/| /' conftest.$ac_ext >&5
3140
3141 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3142 See \`config.log' for more details." >&5
3143 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3144 See \`config.log' for more details." >&2;}
3145    { (exit 1); exit 1; }; }
3146 fi
3147
3148 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3149 fi
3150 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3151 echo "${ECHO_T}$ac_cv_objext" >&6; }
3152 OBJEXT=$ac_cv_objext
3153 ac_objext=$OBJEXT
3154 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3155 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3156 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3157   echo $ECHO_N "(cached) $ECHO_C" >&6
3158 else
3159   cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h.  */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h.  */
3165
3166 int
3167 main ()
3168 {
3169 #ifndef __GNUC__
3170        choke me
3171 #endif
3172
3173   ;
3174   return 0;
3175 }
3176 _ACEOF
3177 rm -f conftest.$ac_objext
3178 if { (ac_try="$ac_compile"
3179 case "(($ac_try" in
3180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181   *) ac_try_echo=$ac_try;;
3182 esac
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184   (eval "$ac_compile") 2>conftest.er1
3185   ac_status=$?
3186   grep -v '^ *+' conftest.er1 >conftest.err
3187   rm -f conftest.er1
3188   cat conftest.err >&5
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); } &&
3191          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3192   { (case "(($ac_try" in
3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194   *) ac_try_echo=$ac_try;;
3195 esac
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197   (eval "$ac_try") 2>&5
3198   ac_status=$?
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); }; } &&
3201          { ac_try='test -s conftest.$ac_objext'
3202   { (case "(($ac_try" in
3203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204   *) ac_try_echo=$ac_try;;
3205 esac
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207   (eval "$ac_try") 2>&5
3208   ac_status=$?
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); }; }; then
3211   ac_compiler_gnu=yes
3212 else
3213   echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3215
3216         ac_compiler_gnu=no
3217 fi
3218
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3221
3222 fi
3223 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3224 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3225 GCC=`test $ac_compiler_gnu = yes && echo yes`
3226 ac_test_CFLAGS=${CFLAGS+set}
3227 ac_save_CFLAGS=$CFLAGS
3228 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3229 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3230 if test "${ac_cv_prog_cc_g+set}" = set; then
3231   echo $ECHO_N "(cached) $ECHO_C" >&6
3232 else
3233   ac_save_c_werror_flag=$ac_c_werror_flag
3234    ac_c_werror_flag=yes
3235    ac_cv_prog_cc_g=no
3236    CFLAGS="-g"
3237    cat >conftest.$ac_ext <<_ACEOF
3238 /* confdefs.h.  */
3239 _ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h.  */
3243
3244 int
3245 main ()
3246 {
3247
3248   ;
3249   return 0;
3250 }
3251 _ACEOF
3252 rm -f conftest.$ac_objext
3253 if { (ac_try="$ac_compile"
3254 case "(($ac_try" in
3255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256   *) ac_try_echo=$ac_try;;
3257 esac
3258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259   (eval "$ac_compile") 2>conftest.er1
3260   ac_status=$?
3261   grep -v '^ *+' conftest.er1 >conftest.err
3262   rm -f conftest.er1
3263   cat conftest.err >&5
3264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265   (exit $ac_status); } &&
3266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3267   { (case "(($ac_try" in
3268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269   *) ac_try_echo=$ac_try;;
3270 esac
3271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272   (eval "$ac_try") 2>&5
3273   ac_status=$?
3274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275   (exit $ac_status); }; } &&
3276          { ac_try='test -s conftest.$ac_objext'
3277   { (case "(($ac_try" in
3278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279   *) ac_try_echo=$ac_try;;
3280 esac
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282   (eval "$ac_try") 2>&5
3283   ac_status=$?
3284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285   (exit $ac_status); }; }; then
3286   ac_cv_prog_cc_g=yes
3287 else
3288   echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3290
3291         CFLAGS=""
3292       cat >conftest.$ac_ext <<_ACEOF
3293 /* confdefs.h.  */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h.  */
3298
3299 int
3300 main ()
3301 {
3302
3303   ;
3304   return 0;
3305 }
3306 _ACEOF
3307 rm -f conftest.$ac_objext
3308 if { (ac_try="$ac_compile"
3309 case "(($ac_try" in
3310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311   *) ac_try_echo=$ac_try;;
3312 esac
3313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314   (eval "$ac_compile") 2>conftest.er1
3315   ac_status=$?
3316   grep -v '^ *+' conftest.er1 >conftest.err
3317   rm -f conftest.er1
3318   cat conftest.err >&5
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); } &&
3321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3322   { (case "(($ac_try" in
3323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324   *) ac_try_echo=$ac_try;;
3325 esac
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327   (eval "$ac_try") 2>&5
3328   ac_status=$?
3329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330   (exit $ac_status); }; } &&
3331          { ac_try='test -s conftest.$ac_objext'
3332   { (case "(($ac_try" in
3333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334   *) ac_try_echo=$ac_try;;
3335 esac
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337   (eval "$ac_try") 2>&5
3338   ac_status=$?
3339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340   (exit $ac_status); }; }; then
3341   :
3342 else
3343   echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3345
3346         ac_c_werror_flag=$ac_save_c_werror_flag
3347          CFLAGS="-g"
3348          cat >conftest.$ac_ext <<_ACEOF
3349 /* confdefs.h.  */
3350 _ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h.  */
3354
3355 int
3356 main ()
3357 {
3358
3359   ;
3360   return 0;
3361 }
3362 _ACEOF
3363 rm -f conftest.$ac_objext
3364 if { (ac_try="$ac_compile"
3365 case "(($ac_try" in
3366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367   *) ac_try_echo=$ac_try;;
3368 esac
3369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370   (eval "$ac_compile") 2>conftest.er1
3371   ac_status=$?
3372   grep -v '^ *+' conftest.er1 >conftest.err
3373   rm -f conftest.er1
3374   cat conftest.err >&5
3375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376   (exit $ac_status); } &&
3377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3378   { (case "(($ac_try" in
3379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380   *) ac_try_echo=$ac_try;;
3381 esac
3382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383   (eval "$ac_try") 2>&5
3384   ac_status=$?
3385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386   (exit $ac_status); }; } &&
3387          { ac_try='test -s conftest.$ac_objext'
3388   { (case "(($ac_try" in
3389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390   *) ac_try_echo=$ac_try;;
3391 esac
3392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393   (eval "$ac_try") 2>&5
3394   ac_status=$?
3395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396   (exit $ac_status); }; }; then
3397   ac_cv_prog_cc_g=yes
3398 else
3399   echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3401
3402
3403 fi
3404
3405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3406 fi
3407
3408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3409 fi
3410
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412    ac_c_werror_flag=$ac_save_c_werror_flag
3413 fi
3414 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3415 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3416 if test "$ac_test_CFLAGS" = set; then
3417   CFLAGS=$ac_save_CFLAGS
3418 elif test $ac_cv_prog_cc_g = yes; then
3419   if test "$GCC" = yes; then
3420     CFLAGS="-g -O2"
3421   else
3422     CFLAGS="-g"
3423   fi
3424 else
3425   if test "$GCC" = yes; then
3426     CFLAGS="-O2"
3427   else
3428     CFLAGS=
3429   fi
3430 fi
3431 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3432 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3433 if test "${ac_cv_prog_cc_c89+set}" = set; then
3434   echo $ECHO_N "(cached) $ECHO_C" >&6
3435 else
3436   ac_cv_prog_cc_c89=no
3437 ac_save_CC=$CC
3438 cat >conftest.$ac_ext <<_ACEOF
3439 /* confdefs.h.  */
3440 _ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h.  */
3444 #include <stdarg.h>
3445 #include <stdio.h>
3446 #include <sys/types.h>
3447 #include <sys/stat.h>
3448 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3449 struct buf { int x; };
3450 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3451 static char *e (p, i)
3452      char **p;
3453      int i;
3454 {
3455   return p[i];
3456 }
3457 static char *f (char * (*g) (char **, int), char **p, ...)
3458 {
3459   char *s;
3460   va_list v;
3461   va_start (v,p);
3462   s = g (p, va_arg (v,int));
3463   va_end (v);
3464   return s;
3465 }
3466
3467 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3468    function prototypes and stuff, but not '\xHH' hex character constants.
3469    These don't provoke an error unfortunately, instead are silently treated
3470    as 'x'.  The following induces an error, until -std is added to get
3471    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3472    array size at least.  It's necessary to write '\x00'==0 to get something
3473    that's true only with -std.  */
3474 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3475
3476 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3477    inside strings and character constants.  */
3478 #define FOO(x) 'x'
3479 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3480
3481 int test (int i, double x);
3482 struct s1 {int (*f) (int a);};
3483 struct s2 {int (*f) (double a);};
3484 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3485 int argc;
3486 char **argv;
3487 int
3488 main ()
3489 {
3490 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3491   ;
3492   return 0;
3493 }
3494 _ACEOF
3495 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3496         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3497 do
3498   CC="$ac_save_CC $ac_arg"
3499   rm -f conftest.$ac_objext
3500 if { (ac_try="$ac_compile"
3501 case "(($ac_try" in
3502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503   *) ac_try_echo=$ac_try;;
3504 esac
3505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506   (eval "$ac_compile") 2>conftest.er1
3507   ac_status=$?
3508   grep -v '^ *+' conftest.er1 >conftest.err
3509   rm -f conftest.er1
3510   cat conftest.err >&5
3511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512   (exit $ac_status); } &&
3513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3514   { (case "(($ac_try" in
3515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516   *) ac_try_echo=$ac_try;;
3517 esac
3518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3519   (eval "$ac_try") 2>&5
3520   ac_status=$?
3521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522   (exit $ac_status); }; } &&
3523          { ac_try='test -s conftest.$ac_objext'
3524   { (case "(($ac_try" in
3525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526   *) ac_try_echo=$ac_try;;
3527 esac
3528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529   (eval "$ac_try") 2>&5
3530   ac_status=$?
3531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532   (exit $ac_status); }; }; then
3533   ac_cv_prog_cc_c89=$ac_arg
3534 else
3535   echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3537
3538
3539 fi
3540
3541 rm -f core conftest.err conftest.$ac_objext
3542   test "x$ac_cv_prog_cc_c89" != "xno" && break
3543 done
3544 rm -f conftest.$ac_ext
3545 CC=$ac_save_CC
3546
3547 fi
3548 # AC_CACHE_VAL
3549 case "x$ac_cv_prog_cc_c89" in
3550   x)
3551     { echo "$as_me:$LINENO: result: none needed" >&5
3552 echo "${ECHO_T}none needed" >&6; } ;;
3553   xno)
3554     { echo "$as_me:$LINENO: result: unsupported" >&5
3555 echo "${ECHO_T}unsupported" >&6; } ;;
3556   *)
3557     CC="$CC $ac_cv_prog_cc_c89"
3558     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3559 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3560 esac
3561
3562
3563 ac_ext=c
3564 ac_cpp='$CPP $CPPFLAGS'
3565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568
3569 depcc="$CC"   am_compiler_list=
3570
3571 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3572 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3573 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3574   echo $ECHO_N "(cached) $ECHO_C" >&6
3575 else
3576   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3577   # We make a subdir and do the tests there.  Otherwise we can end up
3578   # making bogus files that we don't know about and never remove.  For
3579   # instance it was reported that on HP-UX the gcc test will end up
3580   # making a dummy file named `D' -- because `-MD' means `put the output
3581   # in D'.
3582   mkdir conftest.dir
3583   # Copy depcomp to subdir because otherwise we won't find it if we're
3584   # using a relative directory.
3585   cp "$am_depcomp" conftest.dir
3586   cd conftest.dir
3587   # We will build objects and dependencies in a subdirectory because
3588   # it helps to detect inapplicable dependency modes.  For instance
3589   # both Tru64's cc and ICC support -MD to output dependencies as a
3590   # side effect of compilation, but ICC will put the dependencies in
3591   # the current directory while Tru64 will put them in the object
3592   # directory.
3593   mkdir sub
3594
3595   am_cv_CC_dependencies_compiler_type=none
3596   if test "$am_compiler_list" = ""; then
3597      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3598   fi
3599   for depmode in $am_compiler_list; do
3600     # Setup a source with many dependencies, because some compilers
3601     # like to wrap large dependency lists on column 80 (with \), and
3602     # we should not choose a depcomp mode which is confused by this.
3603     #
3604     # We need to recreate these files for each test, as the compiler may
3605     # overwrite some of them when testing with obscure command lines.
3606     # This happens at least with the AIX C compiler.
3607     : > sub/conftest.c
3608     for i in 1 2 3 4 5 6; do
3609       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3610       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3611       # Solaris 8's {/usr,}/bin/sh.
3612       touch sub/conftst$i.h
3613     done
3614     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3615
3616     case $depmode in
3617     nosideeffect)
3618       # after this tag, mechanisms are not by side-effect, so they'll
3619       # only be used when explicitly requested
3620       if test "x$enable_dependency_tracking" = xyes; then
3621         continue
3622       else
3623         break
3624       fi
3625       ;;
3626     none) break ;;
3627     esac
3628     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3629     # mode.  It turns out that the SunPro C++ compiler does not properly
3630     # handle `-M -o', and we need to detect this.
3631     if depmode=$depmode \
3632        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3633        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3634        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3635          >/dev/null 2>conftest.err &&
3636        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3637        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3638        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3639       # icc doesn't choke on unknown options, it will just issue warnings
3640       # or remarks (even with -Werror).  So we grep stderr for any message
3641       # that says an option was ignored or not supported.
3642       # When given -MP, icc 7.0 and 7.1 complain thusly:
3643       #   icc: Command line warning: ignoring option '-M'; no argument required
3644       # The diagnosis changed in icc 8.0:
3645       #   icc: Command line remark: option '-MP' not supported
3646       if (grep 'ignoring option' conftest.err ||
3647           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3648         am_cv_CC_dependencies_compiler_type=$depmode
3649         break
3650       fi
3651     fi
3652   done
3653
3654   cd ..
3655   rm -rf conftest.dir
3656 else
3657   am_cv_CC_dependencies_compiler_type=none
3658 fi
3659
3660 fi
3661 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3662 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3663 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3664
3665
3666
3667 if
3668   test "x$enable_dependency_tracking" != xno \
3669   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3670   am__fastdepCC_TRUE=
3671   am__fastdepCC_FALSE='#'
3672 else
3673   am__fastdepCC_TRUE='#'
3674   am__fastdepCC_FALSE=
3675 fi
3676
3677
3678
3679 ac_ext=c
3680 ac_cpp='$CPP $CPPFLAGS'
3681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3684 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3685 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3686 # On Suns, sometimes $CPP names a directory.
3687 if test -n "$CPP" && test -d "$CPP"; then
3688   CPP=
3689 fi
3690 if test -z "$CPP"; then
3691   if test "${ac_cv_prog_CPP+set}" = set; then
3692   echo $ECHO_N "(cached) $ECHO_C" >&6
3693 else
3694       # Double quotes because CPP needs to be expanded
3695     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3696     do
3697       ac_preproc_ok=false
3698 for ac_c_preproc_warn_flag in '' yes
3699 do
3700   # Use a header file that comes with gcc, so configuring glibc
3701   # with a fresh cross-compiler works.
3702   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3703   # <limits.h> exists even on freestanding compilers.
3704   # On the NeXT, cc -E runs the code through the compiler's parser,
3705   # not just through cpp. "Syntax error" is here to catch this case.
3706   cat >conftest.$ac_ext <<_ACEOF
3707 /* confdefs.h.  */
3708 _ACEOF
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h.  */
3712 #ifdef __STDC__
3713 # include <limits.h>
3714 #else
3715 # include <assert.h>
3716 #endif
3717                      Syntax error
3718 _ACEOF
3719 if { (ac_try="$ac_cpp conftest.$ac_ext"
3720 case "(($ac_try" in
3721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722   *) ac_try_echo=$ac_try;;
3723 esac
3724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3725   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3726   ac_status=$?
3727   grep -v '^ *+' conftest.er1 >conftest.err
3728   rm -f conftest.er1
3729   cat conftest.err >&5
3730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731   (exit $ac_status); } >/dev/null; then
3732   if test -s conftest.err; then
3733     ac_cpp_err=$ac_c_preproc_warn_flag
3734     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3735   else
3736     ac_cpp_err=
3737   fi
3738 else
3739   ac_cpp_err=yes
3740 fi
3741 if test -z "$ac_cpp_err"; then
3742   :
3743 else
3744   echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3746
3747   # Broken: fails on valid input.
3748 continue
3749 fi
3750
3751 rm -f conftest.err conftest.$ac_ext
3752
3753   # OK, works on sane cases.  Now check whether nonexistent headers
3754   # can be detected and how.
3755   cat >conftest.$ac_ext <<_ACEOF
3756 /* confdefs.h.  */
3757 _ACEOF
3758 cat confdefs.h >>conftest.$ac_ext
3759 cat >>conftest.$ac_ext <<_ACEOF
3760 /* end confdefs.h.  */
3761 #include <ac_nonexistent.h>
3762 _ACEOF
3763 if { (ac_try="$ac_cpp conftest.$ac_ext"
3764 case "(($ac_try" in
3765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766   *) ac_try_echo=$ac_try;;
3767 esac
3768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3769   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3770   ac_status=$?
3771   grep -v '^ *+' conftest.er1 >conftest.err
3772   rm -f conftest.er1
3773   cat conftest.err >&5
3774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775   (exit $ac_status); } >/dev/null; then
3776   if test -s conftest.err; then
3777     ac_cpp_err=$ac_c_preproc_warn_flag
3778     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3779   else
3780     ac_cpp_err=
3781   fi
3782 else
3783   ac_cpp_err=yes
3784 fi
3785 if test -z "$ac_cpp_err"; then
3786   # Broken: success on invalid input.
3787 continue
3788 else
3789   echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3791
3792   # Passes both tests.
3793 ac_preproc_ok=:
3794 break
3795 fi
3796
3797 rm -f conftest.err conftest.$ac_ext
3798
3799 done
3800 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3801 rm -f conftest.err conftest.$ac_ext
3802 if $ac_preproc_ok; then
3803   break
3804 fi
3805
3806     done
3807     ac_cv_prog_CPP=$CPP
3808
3809 fi
3810   CPP=$ac_cv_prog_CPP
3811 else
3812   ac_cv_prog_CPP=$CPP
3813 fi
3814 { echo "$as_me:$LINENO: result: $CPP" >&5
3815 echo "${ECHO_T}$CPP" >&6; }
3816 ac_preproc_ok=false
3817 for ac_c_preproc_warn_flag in '' yes
3818 do
3819   # Use a header file that comes with gcc, so configuring glibc
3820   # with a fresh cross-compiler works.
3821   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3822   # <limits.h> exists even on freestanding compilers.
3823   # On the NeXT, cc -E runs the code through the compiler's parser,
3824   # not just through cpp. "Syntax error" is here to catch this case.
3825   cat >conftest.$ac_ext <<_ACEOF
3826 /* confdefs.h.  */
3827 _ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h.  */
3831 #ifdef __STDC__
3832 # include <limits.h>
3833 #else
3834 # include <assert.h>
3835 #endif
3836                      Syntax error
3837 _ACEOF
3838 if { (ac_try="$ac_cpp conftest.$ac_ext"
3839 case "(($ac_try" in
3840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841   *) ac_try_echo=$ac_try;;
3842 esac
3843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3845   ac_status=$?
3846   grep -v '^ *+' conftest.er1 >conftest.err
3847   rm -f conftest.er1
3848   cat conftest.err >&5
3849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850   (exit $ac_status); } >/dev/null; then
3851   if test -s conftest.err; then
3852     ac_cpp_err=$ac_c_preproc_warn_flag
3853     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3854   else
3855     ac_cpp_err=
3856   fi
3857 else
3858   ac_cpp_err=yes
3859 fi
3860 if test -z "$ac_cpp_err"; then
3861   :
3862 else
3863   echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3865
3866   # Broken: fails on valid input.
3867 continue
3868 fi
3869
3870 rm -f conftest.err conftest.$ac_ext
3871
3872   # OK, works on sane cases.  Now check whether nonexistent headers
3873   # can be detected and how.
3874   cat >conftest.$ac_ext <<_ACEOF
3875 /* confdefs.h.  */
3876 _ACEOF
3877 cat confdefs.h >>conftest.$ac_ext
3878 cat >>conftest.$ac_ext <<_ACEOF
3879 /* end confdefs.h.  */
3880 #include <ac_nonexistent.h>
3881 _ACEOF
3882 if { (ac_try="$ac_cpp conftest.$ac_ext"
3883 case "(($ac_try" in
3884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885   *) ac_try_echo=$ac_try;;
3886 esac
3887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3888   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3889   ac_status=$?
3890   grep -v '^ *+' conftest.er1 >conftest.err
3891   rm -f conftest.er1
3892   cat conftest.err >&5
3893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894   (exit $ac_status); } >/dev/null; then
3895   if test -s conftest.err; then
3896     ac_cpp_err=$ac_c_preproc_warn_flag
3897     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3898   else
3899     ac_cpp_err=
3900   fi
3901 else
3902   ac_cpp_err=yes
3903 fi
3904 if test -z "$ac_cpp_err"; then
3905   # Broken: success on invalid input.
3906 continue
3907 else
3908   echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3910
3911   # Passes both tests.
3912 ac_preproc_ok=:
3913 break
3914 fi
3915
3916 rm -f conftest.err conftest.$ac_ext
3917
3918 done
3919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3920 rm -f conftest.err conftest.$ac_ext
3921 if $ac_preproc_ok; then
3922   :
3923 else
3924   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3925 See \`config.log' for more details." >&5
3926 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3927 See \`config.log' for more details." >&2;}
3928    { (exit 1); exit 1; }; }
3929 fi
3930
3931 ac_ext=c
3932 ac_cpp='$CPP $CPPFLAGS'
3933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3936
3937
3938 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3939 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3940 if test "${ac_cv_path_GREP+set}" = set; then
3941   echo $ECHO_N "(cached) $ECHO_C" >&6
3942 else
3943   # Extract the first word of "grep ggrep" to use in msg output
3944 if test -z "$GREP"; then
3945 set dummy grep ggrep; ac_prog_name=$2
3946 if test "${ac_cv_path_GREP+set}" = set; then
3947   echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949   ac_path_GREP_found=false
3950 # Loop through the user's path and test for each of PROGNAME-LIST
3951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3953 do
3954   IFS=$as_save_IFS
3955   test -z "$as_dir" && as_dir=.
3956   for ac_prog in grep ggrep; do
3957   for ac_exec_ext in '' $ac_executable_extensions; do
3958     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3959     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3960     # Check for GNU ac_path_GREP and select it if it is found.
3961   # Check for GNU $ac_path_GREP
3962 case `"$ac_path_GREP" --version 2>&1` in
3963 *GNU*)
3964   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3965 *)
3966   ac_count=0
3967   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3968   while :
3969   do
3970     cat "conftest.in" "conftest.in" >"conftest.tmp"
3971     mv "conftest.tmp" "conftest.in"
3972     cp "conftest.in" "conftest.nl"
3973     echo 'GREP' >> "conftest.nl"
3974     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3975     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3976     ac_count=`expr $ac_count + 1`
3977     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3978       # Best one so far, save it but keep looking for a better one
3979       ac_cv_path_GREP="$ac_path_GREP"
3980       ac_path_GREP_max=$ac_count
3981     fi
3982     # 10*(2^10) chars as input seems more than enough
3983     test $ac_count -gt 10 && break
3984   done
3985   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3986 esac
3987
3988
3989     $ac_path_GREP_found && break 3
3990   done
3991 done
3992
3993 done
3994 IFS=$as_save_IFS
3995
3996
3997 fi
3998
3999 GREP="$ac_cv_path_GREP"
4000 if test -z "$GREP"; then
4001   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4002 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4003    { (exit 1); exit 1; }; }
4004 fi
4005
4006 else
4007   ac_cv_path_GREP=$GREP
4008 fi
4009
4010
4011 fi
4012 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4013 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4014  GREP="$ac_cv_path_GREP"
4015
4016
4017 { echo "$as_me:$LINENO: checking for egrep" >&5
4018 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4019 if test "${ac_cv_path_EGREP+set}" = set; then
4020   echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4023    then ac_cv_path_EGREP="$GREP -E"
4024    else
4025      # Extract the first word of "egrep" to use in msg output
4026 if test -z "$EGREP"; then
4027 set dummy egrep; ac_prog_name=$2
4028 if test "${ac_cv_path_EGREP+set}" = set; then
4029   echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031   ac_path_EGREP_found=false
4032 # Loop through the user's path and test for each of PROGNAME-LIST
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4035 do
4036   IFS=$as_save_IFS
4037   test -z "$as_dir" && as_dir=.
4038   for ac_prog in egrep; do
4039   for ac_exec_ext in '' $ac_executable_extensions; do
4040     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4041     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4042     # Check for GNU ac_path_EGREP and select it if it is found.
4043   # Check for GNU $ac_path_EGREP
4044 case `"$ac_path_EGREP" --version 2>&1` in
4045 *GNU*)
4046   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4047 *)
4048   ac_count=0
4049   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4050   while :
4051   do
4052     cat "conftest.in" "conftest.in" >"conftest.tmp"
4053     mv "conftest.tmp" "conftest.in"
4054     cp "conftest.in" "conftest.nl"
4055     echo 'EGREP' >> "conftest.nl"
4056     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4057     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4058     ac_count=`expr $ac_count + 1`
4059     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4060       # Best one so far, save it but keep looking for a better one
4061       ac_cv_path_EGREP="$ac_path_EGREP"
4062       ac_path_EGREP_max=$ac_count
4063     fi
4064     # 10*(2^10) chars as input seems more than enough
4065     test $ac_count -gt 10 && break
4066   done
4067   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4068 esac
4069
4070
4071     $ac_path_EGREP_found && break 3
4072   done
4073 done
4074
4075 done
4076 IFS=$as_save_IFS
4077
4078
4079 fi
4080
4081 EGREP="$ac_cv_path_EGREP"
4082 if test -z "$EGREP"; then
4083   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4084 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4085    { (exit 1); exit 1; }; }
4086 fi
4087
4088 else
4089   ac_cv_path_EGREP=$EGREP
4090 fi
4091
4092
4093    fi
4094 fi
4095 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4096 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4097  EGREP="$ac_cv_path_EGREP"
4098
4099
4100
4101 { echo "$as_me:$LINENO: checking for AIX" >&5
4102 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4103 cat >conftest.$ac_ext <<_ACEOF
4104 /* confdefs.h.  */
4105 _ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h.  */
4109 #ifdef _AIX
4110   yes
4111 #endif
4112
4113 _ACEOF
4114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4115   $EGREP "yes" >/dev/null 2>&1; then
4116   { echo "$as_me:$LINENO: result: yes" >&5
4117 echo "${ECHO_T}yes" >&6; }
4118 cat >>confdefs.h <<\_ACEOF
4119 #define _ALL_SOURCE 1
4120 _ACEOF
4121
4122 else
4123   { echo "$as_me:$LINENO: result: no" >&5
4124 echo "${ECHO_T}no" >&6; }
4125 fi
4126 rm -f conftest*
4127
4128
4129 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4130 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4131 if test "${ac_cv_header_stdc+set}" = set; then
4132   echo $ECHO_N "(cached) $ECHO_C" >&6
4133 else
4134   cat >conftest.$ac_ext <<_ACEOF
4135 /* confdefs.h.  */
4136 _ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h.  */
4140 #include <stdlib.h>
4141 #include <stdarg.h>
4142 #include <string.h>
4143 #include <float.h>
4144
4145 int
4146 main ()
4147 {
4148
4149   ;
4150   return 0;
4151 }
4152 _ACEOF
4153 rm -f conftest.$ac_objext
4154 if { (ac_try="$ac_compile"
4155 case "(($ac_try" in
4156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157   *) ac_try_echo=$ac_try;;
4158 esac
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160   (eval "$ac_compile") 2>conftest.er1
4161   ac_status=$?
4162   grep -v '^ *+' conftest.er1 >conftest.err
4163   rm -f conftest.er1
4164   cat conftest.err >&5
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); } &&
4167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4168   { (case "(($ac_try" in
4169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170   *) ac_try_echo=$ac_try;;
4171 esac
4172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173   (eval "$ac_try") 2>&5
4174   ac_status=$?
4175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176   (exit $ac_status); }; } &&
4177          { ac_try='test -s conftest.$ac_objext'
4178   { (case "(($ac_try" in
4179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180   *) ac_try_echo=$ac_try;;
4181 esac
4182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4183   (eval "$ac_try") 2>&5
4184   ac_status=$?
4185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186   (exit $ac_status); }; }; then
4187   ac_cv_header_stdc=yes
4188 else
4189   echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4191
4192         ac_cv_header_stdc=no
4193 fi
4194
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196
4197 if test $ac_cv_header_stdc = yes; then
4198   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4199   cat >conftest.$ac_ext <<_ACEOF
4200 /* confdefs.h.  */
4201 _ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h.  */
4205 #include <string.h>
4206
4207 _ACEOF
4208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4209   $EGREP "memchr" >/dev/null 2>&1; then
4210   :
4211 else
4212   ac_cv_header_stdc=no
4213 fi
4214 rm -f conftest*
4215
4216 fi
4217
4218 if test $ac_cv_header_stdc = yes; then
4219   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4220   cat >conftest.$ac_ext <<_ACEOF
4221 /* confdefs.h.  */
4222 _ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h.  */
4226 #include <stdlib.h>
4227
4228 _ACEOF
4229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4230   $EGREP "free" >/dev/null 2>&1; then
4231   :
4232 else
4233   ac_cv_header_stdc=no
4234 fi
4235 rm -f conftest*
4236
4237 fi
4238
4239 if test $ac_cv_header_stdc = yes; then
4240   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4241   if test "$cross_compiling" = yes; then
4242   :
4243 else
4244   cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h.  */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h.  */
4250 #include <ctype.h>
4251 #include <stdlib.h>
4252 #if ((' ' & 0x0FF) == 0x020)
4253 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4254 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4255 #else
4256 # define ISLOWER(c) \
4257                    (('a' <= (c) && (c) <= 'i') \
4258                      || ('j' <= (c) && (c) <= 'r') \
4259                      || ('s' <= (c) && (c) <= 'z'))
4260 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4261 #endif
4262
4263 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4264 int
4265 main ()
4266 {
4267   int i;
4268   for (i = 0; i < 256; i++)
4269     if (XOR (islower (i), ISLOWER (i))
4270         || toupper (i) != TOUPPER (i))
4271       return 2;
4272   return 0;
4273 }
4274 _ACEOF
4275 rm -f conftest$ac_exeext
4276 if { (ac_try="$ac_link"
4277 case "(($ac_try" in
4278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279   *) ac_try_echo=$ac_try;;
4280 esac
4281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4282   (eval "$ac_link") 2>&5
4283   ac_status=$?
4284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4286   { (case "(($ac_try" in
4287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288   *) ac_try_echo=$ac_try;;
4289 esac
4290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291   (eval "$ac_try") 2>&5
4292   ac_status=$?
4293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294   (exit $ac_status); }; }; then
4295   :
4296 else
4297   echo "$as_me: program exited with status $ac_status" >&5
4298 echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4300
4301 ( exit $ac_status )
4302 ac_cv_header_stdc=no
4303 fi
4304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4305 fi
4306
4307
4308 fi
4309 fi
4310 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4311 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4312 if test $ac_cv_header_stdc = yes; then
4313
4314 cat >>confdefs.h <<\_ACEOF
4315 #define STDC_HEADERS 1
4316 _ACEOF
4317
4318 fi
4319
4320 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4331                   inttypes.h stdint.h unistd.h
4332 do
4333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4334 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4337   echo $ECHO_N "(cached) $ECHO_C" >&6
4338 else
4339   cat >conftest.$ac_ext <<_ACEOF
4340 /* confdefs.h.  */
4341 _ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h.  */
4345 $ac_includes_default
4346
4347 #include <$ac_header>
4348 _ACEOF
4349 rm -f conftest.$ac_objext
4350 if { (ac_try="$ac_compile"
4351 case "(($ac_try" in
4352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353   *) ac_try_echo=$ac_try;;
4354 esac
4355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4356   (eval "$ac_compile") 2>conftest.er1
4357   ac_status=$?
4358   grep -v '^ *+' conftest.er1 >conftest.err
4359   rm -f conftest.er1
4360   cat conftest.err >&5
4361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362   (exit $ac_status); } &&
4363          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4364   { (case "(($ac_try" in
4365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366   *) ac_try_echo=$ac_try;;
4367 esac
4368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369   (eval "$ac_try") 2>&5
4370   ac_status=$?
4371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372   (exit $ac_status); }; } &&
4373          { ac_try='test -s conftest.$ac_objext'
4374   { (case "(($ac_try" in
4375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376   *) ac_try_echo=$ac_try;;
4377 esac
4378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379   (eval "$ac_try") 2>&5
4380   ac_status=$?
4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); }; }; then
4383   eval "$as_ac_Header=yes"
4384 else
4385   echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4387
4388         eval "$as_ac_Header=no"
4389 fi
4390
4391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4392 fi
4393 ac_res=`eval echo '${'$as_ac_Header'}'`
4394                { echo "$as_me:$LINENO: result: $ac_res" >&5
4395 echo "${ECHO_T}$ac_res" >&6; }
4396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4397   cat >>confdefs.h <<_ACEOF
4398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4399 _ACEOF
4400
4401 fi
4402
4403 done
4404
4405
4406 if test "${ac_cv_header_minix_config_h+set}" = set; then
4407   { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4408 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4409 if test "${ac_cv_header_minix_config_h+set}" = set; then
4410   echo $ECHO_N "(cached) $ECHO_C" >&6
4411 fi
4412 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4413 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4414 else
4415   # Is the header compilable?
4416 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4417 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4418 cat >conftest.$ac_ext <<_ACEOF
4419 /* confdefs.h.  */
4420 _ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h.  */
4424 $ac_includes_default
4425 #include <minix/config.h>
4426 _ACEOF
4427 rm -f conftest.$ac_objext
4428 if { (ac_try="$ac_compile"
4429 case "(($ac_try" in
4430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431   *) ac_try_echo=$ac_try;;
4432 esac
4433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434   (eval "$ac_compile") 2>conftest.er1
4435   ac_status=$?
4436   grep -v '^ *+' conftest.er1 >conftest.err
4437   rm -f conftest.er1
4438   cat conftest.err >&5
4439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440   (exit $ac_status); } &&
4441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4442   { (case "(($ac_try" in
4443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444   *) ac_try_echo=$ac_try;;
4445 esac
4446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4447   (eval "$ac_try") 2>&5
4448   ac_status=$?
4449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450   (exit $ac_status); }; } &&
4451          { ac_try='test -s conftest.$ac_objext'
4452   { (case "(($ac_try" in
4453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454   *) ac_try_echo=$ac_try;;
4455 esac
4456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457   (eval "$ac_try") 2>&5
4458   ac_status=$?
4459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460   (exit $ac_status); }; }; then
4461   ac_header_compiler=yes
4462 else
4463   echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4465
4466         ac_header_compiler=no
4467 fi
4468
4469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4470 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4471 echo "${ECHO_T}$ac_header_compiler" >&6; }
4472
4473 # Is the header present?
4474 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4475 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4476 cat >conftest.$ac_ext <<_ACEOF
4477 /* confdefs.h.  */
4478 _ACEOF
4479 cat confdefs.h >>conftest.$ac_ext
4480 cat >>conftest.$ac_ext <<_ACEOF
4481 /* end confdefs.h.  */
4482 #include <minix/config.h>
4483 _ACEOF
4484 if { (ac_try="$ac_cpp conftest.$ac_ext"
4485 case "(($ac_try" in
4486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487   *) ac_try_echo=$ac_try;;
4488 esac
4489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4490   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4491   ac_status=$?
4492   grep -v '^ *+' conftest.er1 >conftest.err
4493   rm -f conftest.er1
4494   cat conftest.err >&5
4495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496   (exit $ac_status); } >/dev/null; then
4497   if test -s conftest.err; then
4498     ac_cpp_err=$ac_c_preproc_warn_flag
4499     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4500   else
4501     ac_cpp_err=
4502   fi
4503 else
4504   ac_cpp_err=yes
4505 fi
4506 if test -z "$ac_cpp_err"; then
4507   ac_header_preproc=yes
4508 else
4509   echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4511
4512   ac_header_preproc=no
4513 fi
4514
4515 rm -f conftest.err conftest.$ac_ext
4516 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4517 echo "${ECHO_T}$ac_header_preproc" >&6; }
4518
4519 # So?  What about this header?
4520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4521   yes:no: )
4522     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4523 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4524     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4525 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4526     ac_header_preproc=yes
4527     ;;
4528   no:yes:* )
4529     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4530 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4531     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4532 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4533     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4534 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4535     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4536 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4537     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4538 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4539     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4540 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4541     ( cat <<\_ASBOX
4542 ## ------------------------------------ ##
4543 ## Report this to bug-coreutils@gnu.org ##
4544 ## ------------------------------------ ##
4545 _ASBOX
4546      ) | sed "s/^/$as_me: WARNING:     /" >&2
4547     ;;
4548 esac
4549 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4550 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4551 if test "${ac_cv_header_minix_config_h+set}" = set; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554   ac_cv_header_minix_config_h=$ac_header_preproc
4555 fi
4556 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4557 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4558
4559 fi
4560 if test $ac_cv_header_minix_config_h = yes; then
4561   MINIX=yes
4562 else
4563   MINIX=
4564 fi
4565
4566
4567 if test "$MINIX" = yes; then
4568
4569 cat >>confdefs.h <<\_ACEOF
4570 #define _POSIX_SOURCE 1
4571 _ACEOF
4572
4573
4574 cat >>confdefs.h <<\_ACEOF
4575 #define _POSIX_1_SOURCE 2
4576 _ACEOF
4577
4578
4579 cat >>confdefs.h <<\_ACEOF
4580 #define _MINIX 1
4581 _ACEOF
4582
4583 fi
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595   { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4596 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4597 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4598   echo $ECHO_N "(cached) $ECHO_C" >&6
4599 else
4600   cat >conftest.$ac_ext <<_ACEOF
4601 /* confdefs.h.  */
4602 _ACEOF
4603 cat confdefs.h >>conftest.$ac_ext
4604 cat >>conftest.$ac_ext <<_ACEOF
4605 /* end confdefs.h.  */
4606
4607           #define __EXTENSIONS__ 1
4608           $ac_includes_default
4609 int
4610 main ()
4611 {
4612
4613   ;
4614   return 0;
4615 }
4616 _ACEOF
4617 rm -f conftest.$ac_objext
4618 if { (ac_try="$ac_compile"
4619 case "(($ac_try" in
4620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621   *) ac_try_echo=$ac_try;;
4622 esac
4623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4624   (eval "$ac_compile") 2>conftest.er1
4625   ac_status=$?
4626   grep -v '^ *+' conftest.er1 >conftest.err
4627   rm -f conftest.er1
4628   cat conftest.err >&5
4629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630   (exit $ac_status); } &&
4631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4632   { (case "(($ac_try" in
4633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634   *) ac_try_echo=$ac_try;;
4635 esac
4636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637   (eval "$ac_try") 2>&5
4638   ac_status=$?
4639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640   (exit $ac_status); }; } &&
4641          { ac_try='test -s conftest.$ac_objext'
4642   { (case "(($ac_try" in
4643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644   *) ac_try_echo=$ac_try;;
4645 esac
4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647   (eval "$ac_try") 2>&5
4648   ac_status=$?
4649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650   (exit $ac_status); }; }; then
4651   ac_cv_safe_to_define___extensions__=yes
4652 else
4653   echo "$as_me: failed program was:" >&5
4654 sed 's/^/| /' conftest.$ac_ext >&5
4655
4656         ac_cv_safe_to_define___extensions__=no
4657 fi
4658
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 fi
4661 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4662 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4663   test $ac_cv_safe_to_define___extensions__ = yes &&
4664     cat >>confdefs.h <<\_ACEOF
4665 #define __EXTENSIONS__ 1
4666 _ACEOF
4667
4668   cat >>confdefs.h <<\_ACEOF
4669 #define _POSIX_PTHREAD_SEMANTICS 1
4670 _ACEOF
4671
4672
4673
4674       { echo "$as_me:$LINENO: checking for perl5.003 or newer" >&5
4675 echo $ECHO_N "checking for perl5.003 or newer... $ECHO_C" >&6; }
4676   if test "${PERL+set}" = set; then
4677     # `PERL' is set in the user's environment.
4678     candidate_perl_names="$PERL"
4679     perl_specified=yes
4680   else
4681     candidate_perl_names='perl perl5'
4682     perl_specified=no
4683   fi
4684
4685   found=no
4686
4687   PERL="$am_missing_run perl"
4688   for perl in $candidate_perl_names; do
4689     # Run test in a subshell; some versions of sh will print an error if
4690     # an executable is not found, even if stderr is redirected.
4691     if ( $perl -e 'require 5.003; use File::Compare' ) > /dev/null 2>&1; then
4692       PERL=$perl
4693       found=yes
4694       break
4695     fi
4696   done
4697
4698   { echo "$as_me:$LINENO: result: $found" >&5
4699 echo "${ECHO_T}$found" >&6; }
4700   test $found = no && { echo "$as_me:$LINENO: WARNING:
4701 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
4702          a usable version of the Perl File::Compare module.  As a result,
4703          you may be unable to run a few tests or to regenerate certain
4704          files if you modify the sources from which they are derived.
4705  " >&5
4706 echo "$as_me: WARNING:
4707 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
4708          a usable version of the Perl File::Compare module.  As a result,
4709          you may be unable to run a few tests or to regenerate certain
4710          files if you modify the sources from which they are derived.
4711  " >&2;}
4712
4713    case $ac_cv_prog_cc_stdc in
4714   no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
4715   *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4716 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
4717 if test "${ac_cv_prog_cc_c99+set}" = set; then
4718   echo $ECHO_N "(cached) $ECHO_C" >&6
4719 else
4720   ac_cv_prog_cc_c99=no
4721 ac_save_CC=$CC
4722 cat >conftest.$ac_ext <<_ACEOF
4723 /* confdefs.h.  */
4724 _ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h.  */
4728 #include <stdarg.h>
4729 #include <stdbool.h>
4730 #include <stdlib.h>
4731 #include <wchar.h>
4732 #include <stdio.h>
4733
4734 struct incomplete_array
4735 {
4736   int datasize;
4737   double data[];
4738 };
4739
4740 struct named_init {
4741   int number;
4742   const wchar_t *name;
4743   double average;
4744 };
4745
4746 typedef const char *ccp;
4747
4748 static inline int
4749 test_restrict(ccp restrict text)
4750 {
4751   // See if C++-style comments work.
4752   // Iterate through items via the restricted pointer.
4753   // Also check for declarations in for loops.
4754   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4755     continue;
4756   return 0;
4757 }
4758
4759 // Check varargs and va_copy work.
4760 static void
4761 test_varargs(const char *format, ...)
4762 {
4763   va_list args;
4764   va_start(args, format);
4765   va_list args_copy;
4766   va_copy(args_copy, args);
4767
4768   const char *str;
4769   int number;
4770   float fnumber;
4771
4772   while (*format)
4773     {
4774       switch (*format++)
4775         {
4776         case 's': // string
4777           str = va_arg(args_copy, const char *);
4778           break;
4779         case 'd': // int
4780           number = va_arg(args_copy, int);
4781           break;
4782         case 'f': // float
4783           fnumber = (float) va_arg(args_copy, double);
4784           break;
4785         default:
4786           break;
4787         }
4788     }
4789   va_end(args_copy);
4790   va_end(args);
4791 }
4792
4793 int
4794 main ()
4795 {
4796
4797   // Check bool and long long datatypes.
4798   _Bool success = false;
4799   long long int bignum = -1234567890LL;
4800   unsigned long long int ubignum = 1234567890uLL;
4801
4802   // Check restrict.
4803   if (test_restrict("String literal") != 0)
4804     success = true;
4805   char *restrict newvar = "Another string";
4806
4807   // Check varargs.
4808   test_varargs("s, d' f .", "string", 65, 34.234);
4809
4810   // Check incomplete arrays work.
4811   struct incomplete_array *ia =
4812     malloc(sizeof(struct incomplete_array) + (sizeof(double) * 10));
4813   ia->datasize = 10;
4814   for (int i = 0; i < ia->datasize; ++i)
4815     ia->data[i] = (double) i * 1.234;
4816
4817   // Check named initialisers.
4818   struct named_init ni = {
4819     .number = 34,
4820     .name = L"Test wide string",
4821     .average = 543.34343,
4822   };
4823
4824   ni.number = 58;
4825
4826   int dynamic_array[ni.number];
4827   dynamic_array[43] = 543;
4828
4829   // work around unused variable warnings
4830   return  bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x';
4831
4832   ;
4833   return 0;
4834 }
4835 _ACEOF
4836 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
4837 do
4838   CC="$ac_save_CC $ac_arg"
4839   rm -f conftest.$ac_objext
4840 if { (ac_try="$ac_compile"
4841 case "(($ac_try" in
4842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843   *) ac_try_echo=$ac_try;;
4844 esac
4845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4846   (eval "$ac_compile") 2>conftest.er1
4847   ac_status=$?
4848   grep -v '^ *+' conftest.er1 >conftest.err
4849   rm -f conftest.er1
4850   cat conftest.err >&5
4851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852   (exit $ac_status); } &&
4853          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4854   { (case "(($ac_try" in
4855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4856   *) ac_try_echo=$ac_try;;
4857 esac
4858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4859   (eval "$ac_try") 2>&5
4860   ac_status=$?
4861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862   (exit $ac_status); }; } &&
4863          { ac_try='test -s conftest.$ac_objext'
4864   { (case "(($ac_try" in
4865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4866   *) ac_try_echo=$ac_try;;
4867 esac
4868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4869   (eval "$ac_try") 2>&5
4870   ac_status=$?
4871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872   (exit $ac_status); }; }; then
4873   ac_cv_prog_cc_c99=$ac_arg
4874 else
4875   echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4877
4878
4879 fi
4880
4881 rm -f core conftest.err conftest.$ac_objext
4882   test "x$ac_cv_prog_cc_c99" != "xno" && break
4883 done
4884 rm -f conftest.$ac_ext
4885 CC=$ac_save_CC
4886
4887 fi
4888 # AC_CACHE_VAL
4889 case "x$ac_cv_prog_cc_c99" in
4890   x)
4891     { echo "$as_me:$LINENO: result: none needed" >&5
4892 echo "${ECHO_T}none needed" >&6; } ;;
4893   xno)
4894     { echo "$as_me:$LINENO: result: unsupported" >&5
4895 echo "${ECHO_T}unsupported" >&6; } ;;
4896   *)
4897     CC="$CC $ac_cv_prog_cc_c99"
4898     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4899 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
4900 esac
4901 if test "x$ac_cv_prog_cc_c99" != xno; then
4902   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4903 else
4904   { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4905 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4906 if test "${ac_cv_prog_cc_c89+set}" = set; then
4907   echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909   ac_cv_prog_cc_c89=no
4910 ac_save_CC=$CC
4911 cat >conftest.$ac_ext <<_ACEOF
4912 /* confdefs.h.  */
4913 _ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h.  */
4917 #include <stdarg.h>
4918 #include <stdio.h>
4919 #include <sys/types.h>
4920 #include <sys/stat.h>
4921 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4922 struct buf { int x; };
4923 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4924 static char *e (p, i)
4925      char **p;
4926      int i;
4927 {
4928   return p[i];
4929 }
4930 static char *f (char * (*g) (char **, int), char **p, ...)
4931 {
4932   char *s;
4933   va_list v;
4934   va_start (v,p);
4935   s = g (p, va_arg (v,int));
4936   va_end (v);
4937   return s;
4938 }
4939
4940 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4941    function prototypes and stuff, but not '\xHH' hex character constants.
4942    These don't provoke an error unfortunately, instead are silently treated
4943    as 'x'.  The following induces an error, until -std is added to get
4944    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4945    array size at least.  It's necessary to write '\x00'==0 to get something
4946    that's true only with -std.  */
4947 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4948
4949 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4950    inside strings and character constants.  */
4951 #define FOO(x) 'x'
4952 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4953
4954 int test (int i, double x);
4955 struct s1 {int (*f) (int a);};
4956 struct s2 {int (*f) (double a);};
4957 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4958 int argc;
4959 char **argv;
4960 int
4961 main ()
4962 {
4963 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4964   ;
4965   return 0;
4966 }
4967 _ACEOF
4968 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4969         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4970 do
4971   CC="$ac_save_CC $ac_arg"
4972   rm -f conftest.$ac_objext
4973 if { (ac_try="$ac_compile"
4974 case "(($ac_try" in
4975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976   *) ac_try_echo=$ac_try;;
4977 esac
4978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4979   (eval "$ac_compile") 2>conftest.er1
4980   ac_status=$?
4981   grep -v '^ *+' conftest.er1 >conftest.err
4982   rm -f conftest.er1
4983   cat conftest.err >&5
4984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985   (exit $ac_status); } &&
4986          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4987   { (case "(($ac_try" in
4988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4989   *) ac_try_echo=$ac_try;;
4990 esac
4991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4992   (eval "$ac_try") 2>&5
4993   ac_status=$?
4994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995   (exit $ac_status); }; } &&
4996          { ac_try='test -s conftest.$ac_objext'
4997   { (case "(($ac_try" in
4998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4999   *) ac_try_echo=$ac_try;;
5000 esac
5001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5002   (eval "$ac_try") 2>&5
5003   ac_status=$?
5004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005   (exit $ac_status); }; }; then
5006   ac_cv_prog_cc_c89=$ac_arg
5007 else
5008   echo "$as_me: failed program was:" >&5
5009 sed 's/^/| /' conftest.$ac_ext >&5
5010
5011
5012 fi
5013
5014 rm -f core conftest.err conftest.$ac_objext
5015   test "x$ac_cv_prog_cc_c89" != "xno" && break
5016 done
5017 rm -f conftest.$ac_ext
5018 CC=$ac_save_CC
5019
5020 fi
5021 # AC_CACHE_VAL
5022 case "x$ac_cv_prog_cc_c89" in
5023   x)
5024     { echo "$as_me:$LINENO: result: none needed" >&5
5025 echo "${ECHO_T}none needed" >&6; } ;;
5026   xno)
5027     { echo "$as_me:$LINENO: result: unsupported" >&5
5028 echo "${ECHO_T}unsupported" >&6; } ;;
5029   *)
5030     CC="$CC $ac_cv_prog_cc_c89"
5031     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5032 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5033 esac
5034 if test "x$ac_cv_prog_cc_c89" != xno; then
5035   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5036 else
5037   ac_cv_prog_cc_stdc=no
5038 fi
5039
5040
5041 fi
5042
5043  ;;
5044 esac
5045   { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
5046 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
5047   if test "${ac_cv_prog_cc_stdc+set}" = set; then
5048   echo $ECHO_N "(cached) $ECHO_C" >&6
5049 fi
5050
5051   case $ac_cv_prog_cc_stdc in
5052   no) { echo "$as_me:$LINENO: result: unsupported" >&5
5053 echo "${ECHO_T}unsupported" >&6; } ;;
5054   '') { echo "$as_me:$LINENO: result: none needed" >&5
5055 echo "${ECHO_T}none needed" >&6; } ;;
5056   *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5057 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
5058 esac
5059
5060
5061 if test "x$CC" != xcc; then
5062   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5063 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
5064 else
5065   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5066 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
5067 fi
5068 set dummy $CC; ac_cc=`echo $2 |
5069                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5070 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5071   echo $ECHO_N "(cached) $ECHO_C" >&6
5072 else
5073   cat >conftest.$ac_ext <<_ACEOF
5074 /* confdefs.h.  */
5075 _ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h.  */
5079
5080 int
5081 main ()
5082 {
5083
5084   ;
5085   return 0;
5086 }
5087 _ACEOF
5088 # Make sure it works both with $CC and with simple cc.
5089 # We do the test twice because some compilers refuse to overwrite an
5090 # existing .o file with -o, though they will create one.
5091 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5092 rm -f conftest2.*
5093 if { (case "(($ac_try" in
5094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095   *) ac_try_echo=$ac_try;;
5096 esac
5097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098   (eval "$ac_try") 2>&5
5099   ac_status=$?
5100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101   (exit $ac_status); } &&
5102    test -f conftest2.$ac_objext && { (case "(($ac_try" in
5103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104   *) ac_try_echo=$ac_try;;
5105 esac
5106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5107   (eval "$ac_try") 2>&5
5108   ac_status=$?
5109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110   (exit $ac_status); };
5111 then
5112   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5113   if test "x$CC" != xcc; then
5114     # Test first that cc exists at all.
5115     if { ac_try='cc -c conftest.$ac_ext >&5'
5116   { (case "(($ac_try" in
5117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118   *) ac_try_echo=$ac_try;;
5119 esac
5120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5121   (eval "$ac_try") 2>&5
5122   ac_status=$?
5123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124   (exit $ac_status); }; }; then
5125       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5126       rm -f conftest2.*
5127       if { (case "(($ac_try" in
5128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5129   *) ac_try_echo=$ac_try;;
5130 esac
5131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5132   (eval "$ac_try") 2>&5
5133   ac_status=$?
5134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135   (exit $ac_status); } &&
5136          test -f conftest2.$ac_objext && { (case "(($ac_try" in
5137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138   *) ac_try_echo=$ac_try;;
5139 esac
5140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5141   (eval "$ac_try") 2>&5
5142   ac_status=$?
5143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144   (exit $ac_status); };
5145       then
5146         # cc works too.
5147         :
5148       else
5149         # cc exists but doesn't like -o.
5150         eval ac_cv_prog_cc_${ac_cc}_c_o=no
5151       fi
5152     fi
5153   fi
5154 else
5155   eval ac_cv_prog_cc_${ac_cc}_c_o=no
5156 fi
5157 rm -f core conftest*
5158
5159 fi
5160 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5161   { echo "$as_me:$LINENO: result: yes" >&5
5162 echo "${ECHO_T}yes" >&6; }
5163 else
5164   { echo "$as_me:$LINENO: result: no" >&5
5165 echo "${ECHO_T}no" >&6; }
5166
5167 cat >>confdefs.h <<\_ACEOF
5168 #define NO_MINUS_C_MINUS_O 1
5169 _ACEOF
5170
5171 fi
5172
5173 # FIXME: we rely on the cache variable name because
5174 # there is no other way.
5175 set dummy $CC
5176 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5177 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5178    # Losing compiler, so override with the script.
5179    # FIXME: It is wrong to rewrite CC.
5180    # But if we don't then we get into trouble of one sort or another.
5181    # A longer-term fix would be to have automake use am__CC in this case,
5182    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5183    CC="$am_aux_dir/compile $CC"
5184 fi
5185
5186 ac_ext=c
5187 ac_cpp='$CPP $CPPFLAGS'
5188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5191 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5192 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5193 # On Suns, sometimes $CPP names a directory.
5194 if test -n "$CPP" && test -d "$CPP"; then
5195   CPP=
5196 fi
5197 if test -z "$CPP"; then
5198   if test "${ac_cv_prog_CPP+set}" = set; then
5199   echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5201       # Double quotes because CPP needs to be expanded
5202     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5203     do
5204       ac_preproc_ok=false
5205 for ac_c_preproc_warn_flag in '' yes
5206 do
5207   # Use a header file that comes with gcc, so configuring glibc
5208   # with a fresh cross-compiler works.
5209   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5210   # <limits.h> exists even on freestanding compilers.
5211   # On the NeXT, cc -E runs the code through the compiler's parser,
5212   # not just through cpp. "Syntax error" is here to catch this case.
5213   cat >conftest.$ac_ext <<_ACEOF
5214 /* confdefs.h.  */
5215 _ACEOF
5216 cat confdefs.h >>conftest.$ac_ext
5217 cat >>conftest.$ac_ext <<_ACEOF
5218 /* end confdefs.h.  */
5219 #ifdef __STDC__
5220 # include <limits.h>
5221 #else
5222 # include <assert.h>
5223 #endif
5224                      Syntax error
5225 _ACEOF
5226 if { (ac_try="$ac_cpp conftest.$ac_ext"
5227 case "(($ac_try" in
5228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5229   *) ac_try_echo=$ac_try;;
5230 esac
5231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5232   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5233   ac_status=$?
5234   grep -v '^ *+' conftest.er1 >conftest.err
5235   rm -f conftest.er1
5236   cat conftest.err >&5
5237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238   (exit $ac_status); } >/dev/null; then
5239   if test -s conftest.err; then
5240     ac_cpp_err=$ac_c_preproc_warn_flag
5241     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5242   else
5243     ac_cpp_err=
5244   fi
5245 else
5246   ac_cpp_err=yes
5247 fi
5248 if test -z "$ac_cpp_err"; then
5249   :
5250 else
5251   echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5253
5254   # Broken: fails on valid input.
5255 continue
5256 fi
5257
5258 rm -f conftest.err conftest.$ac_ext
5259
5260   # OK, works on sane cases.  Now check whether nonexistent headers
5261   # can be detected and how.
5262   cat >conftest.$ac_ext <<_ACEOF
5263 /* confdefs.h.  */
5264 _ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h.  */
5268 #include <ac_nonexistent.h>
5269 _ACEOF
5270 if { (ac_try="$ac_cpp conftest.$ac_ext"
5271 case "(($ac_try" in
5272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273   *) ac_try_echo=$ac_try;;
5274 esac
5275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5276   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5277   ac_status=$?
5278   grep -v '^ *+' conftest.er1 >conftest.err
5279   rm -f conftest.er1
5280   cat conftest.err >&5
5281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282   (exit $ac_status); } >/dev/null; then
5283   if test -s conftest.err; then
5284     ac_cpp_err=$ac_c_preproc_warn_flag
5285     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5286   else
5287     ac_cpp_err=
5288   fi
5289 else
5290   ac_cpp_err=yes
5291 fi
5292 if test -z "$ac_cpp_err"; then
5293   # Broken: success on invalid input.
5294 continue
5295 else
5296   echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5298
5299   # Passes both tests.
5300 ac_preproc_ok=:
5301 break
5302 fi
5303
5304 rm -f conftest.err conftest.$ac_ext
5305
5306 done
5307 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5308 rm -f conftest.err conftest.$ac_ext
5309 if $ac_preproc_ok; then
5310   break
5311 fi
5312
5313     done
5314     ac_cv_prog_CPP=$CPP
5315
5316 fi
5317   CPP=$ac_cv_prog_CPP
5318 else
5319   ac_cv_prog_CPP=$CPP
5320 fi
5321 { echo "$as_me:$LINENO: result: $CPP" >&5
5322 echo "${ECHO_T}$CPP" >&6; }
5323 ac_preproc_ok=false
5324 for ac_c_preproc_warn_flag in '' yes
5325 do
5326   # Use a header file that comes with gcc, so configuring glibc
5327   # with a fresh cross-compiler works.
5328   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5329   # <limits.h> exists even on freestanding compilers.
5330   # On the NeXT, cc -E runs the code through the compiler's parser,
5331   # not just through cpp. "Syntax error" is here to catch this case.
5332   cat >conftest.$ac_ext <<_ACEOF
5333 /* confdefs.h.  */
5334 _ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h.  */
5338 #ifdef __STDC__
5339 # include <limits.h>
5340 #else
5341 # include <assert.h>
5342 #endif
5343                      Syntax error
5344 _ACEOF
5345 if { (ac_try="$ac_cpp conftest.$ac_ext"
5346 case "(($ac_try" in
5347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5348   *) ac_try_echo=$ac_try;;
5349 esac
5350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5351   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5352   ac_status=$?
5353   grep -v '^ *+' conftest.er1 >conftest.err
5354   rm -f conftest.er1
5355   cat conftest.err >&5
5356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357   (exit $ac_status); } >/dev/null; then
5358   if test -s conftest.err; then
5359     ac_cpp_err=$ac_c_preproc_warn_flag
5360     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5361   else
5362     ac_cpp_err=
5363   fi
5364 else
5365   ac_cpp_err=yes
5366 fi
5367 if test -z "$ac_cpp_err"; then
5368   :
5369 else
5370   echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5372
5373   # Broken: fails on valid input.
5374 continue
5375 fi
5376
5377 rm -f conftest.err conftest.$ac_ext
5378
5379   # OK, works on sane cases.  Now check whether nonexistent headers
5380   # can be detected and how.
5381   cat >conftest.$ac_ext <<_ACEOF
5382 /* confdefs.h.  */
5383 _ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h.  */
5387 #include <ac_nonexistent.h>
5388 _ACEOF
5389 if { (ac_try="$ac_cpp conftest.$ac_ext"
5390 case "(($ac_try" in
5391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392   *) ac_try_echo=$ac_try;;
5393 esac
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5396   ac_status=$?
5397   grep -v '^ *+' conftest.er1 >conftest.err
5398   rm -f conftest.er1
5399   cat conftest.err >&5
5400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401   (exit $ac_status); } >/dev/null; then
5402   if test -s conftest.err; then
5403     ac_cpp_err=$ac_c_preproc_warn_flag
5404     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5405   else
5406     ac_cpp_err=
5407   fi
5408 else
5409   ac_cpp_err=yes
5410 fi
5411 if test -z "$ac_cpp_err"; then
5412   # Broken: success on invalid input.
5413 continue
5414 else
5415   echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5417
5418   # Passes both tests.
5419 ac_preproc_ok=:
5420 break
5421 fi
5422
5423 rm -f conftest.err conftest.$ac_ext
5424
5425 done
5426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5427 rm -f conftest.err conftest.$ac_ext
5428 if $ac_preproc_ok; then
5429   :
5430 else
5431   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5432 See \`config.log' for more details." >&5
5433 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5434 See \`config.log' for more details." >&2;}
5435    { (exit 1); exit 1; }; }
5436 fi
5437
5438 ac_ext=c
5439 ac_cpp='$CPP $CPPFLAGS'
5440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5443
5444 if test $ac_cv_c_compiler_gnu = yes; then
5445     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5446 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
5447 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5448   echo $ECHO_N "(cached) $ECHO_C" >&6
5449 else
5450     ac_pattern="Autoconf.*'x'"
5451   cat >conftest.$ac_ext <<_ACEOF
5452 /* confdefs.h.  */
5453 _ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h.  */
5457 #include <sgtty.h>
5458 Autoconf TIOCGETP
5459 _ACEOF
5460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5461   $EGREP "$ac_pattern" >/dev/null 2>&1; then
5462   ac_cv_prog_gcc_traditional=yes
5463 else
5464   ac_cv_prog_gcc_traditional=no
5465 fi
5466 rm -f conftest*
5467
5468
5469   if test $ac_cv_prog_gcc_traditional = no; then
5470     cat >conftest.$ac_ext <<_ACEOF
5471 /* confdefs.h.  */
5472 _ACEOF
5473 cat confdefs.h >>conftest.$ac_ext
5474 cat >>conftest.$ac_ext <<_ACEOF
5475 /* end confdefs.h.  */
5476 #include <termio.h>
5477 Autoconf TCGETA
5478 _ACEOF
5479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5480   $EGREP "$ac_pattern" >/dev/null 2>&1; then
5481   ac_cv_prog_gcc_traditional=yes
5482 fi
5483 rm -f conftest*
5484
5485   fi
5486 fi
5487 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5488 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
5489   if test $ac_cv_prog_gcc_traditional = yes; then
5490     CC="$CC -traditional"
5491   fi
5492 fi
5493
5494 if test -n "$ac_tool_prefix"; then
5495   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5496 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5499 if test "${ac_cv_prog_RANLIB+set}" = set; then
5500   echo $ECHO_N "(cached) $ECHO_C" >&6
5501 else
5502   if test -n "$RANLIB"; then
5503   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5504 else
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5507 do
5508   IFS=$as_save_IFS
5509   test -z "$as_dir" && as_dir=.
5510   for ac_exec_ext in '' $ac_executable_extensions; do
5511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5512     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5514     break 2
5515   fi
5516 done
5517 done
5518 IFS=$as_save_IFS
5519
5520 fi
5521 fi
5522 RANLIB=$ac_cv_prog_RANLIB
5523 if test -n "$RANLIB"; then
5524   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5525 echo "${ECHO_T}$RANLIB" >&6; }
5526 else
5527   { echo "$as_me:$LINENO: result: no" >&5
5528 echo "${ECHO_T}no" >&6; }
5529 fi
5530
5531
5532 fi
5533 if test -z "$ac_cv_prog_RANLIB"; then
5534   ac_ct_RANLIB=$RANLIB
5535   # Extract the first word of "ranlib", so it can be a program name with args.
5536 set dummy ranlib; ac_word=$2
5537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5539 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5540   echo $ECHO_N "(cached) $ECHO_C" >&6
5541 else
5542   if test -n "$ac_ct_RANLIB"; then
5543   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5544 else
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 for as_dir in $PATH
5547 do
5548   IFS=$as_save_IFS
5549   test -z "$as_dir" && as_dir=.
5550   for ac_exec_ext in '' $ac_executable_extensions; do
5551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5552     ac_cv_prog_ac_ct_RANLIB="ranlib"
5553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5554     break 2
5555   fi
5556 done
5557 done
5558 IFS=$as_save_IFS
5559
5560 fi
5561 fi
5562 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5563 if test -n "$ac_ct_RANLIB"; then
5564   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5565 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5566 else
5567   { echo "$as_me:$LINENO: result: no" >&5
5568 echo "${ECHO_T}no" >&6; }
5569 fi
5570
5571   if test "x$ac_ct_RANLIB" = x; then
5572     RANLIB=":"
5573   else
5574     case $cross_compiling:$ac_tool_warned in
5575 yes:)
5576 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5577 whose name does not start with the host triplet.  If you think this
5578 configuration is useful to you, please write to autoconf@gnu.org." >&5
5579 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5580 whose name does not start with the host triplet.  If you think this
5581 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5582 ac_tool_warned=yes ;;
5583 esac
5584     RANLIB=$ac_ct_RANLIB
5585   fi
5586 else
5587   RANLIB="$ac_cv_prog_RANLIB"
5588 fi
5589
5590 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5591 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5592 LN_S=$as_ln_s
5593 if test "$LN_S" = "ln -s"; then
5594   { echo "$as_me:$LINENO: result: yes" >&5
5595 echo "${ECHO_T}yes" >&6; }
5596 else
5597   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5598 echo "${ECHO_T}no, using $LN_S" >&6; }
5599 fi
5600
5601
5602   { echo "$as_me:$LINENO: checking for flag to ignore unused libraries" >&5
5603 echo $ECHO_N "checking for flag to ignore unused libraries... $ECHO_C" >&6; }
5604 if test "${gl_cv_ignore_unused_libraries+set}" = set; then
5605   echo $ECHO_N "(cached) $ECHO_C" >&6
5606 else
5607   gl_cv_ignore_unused_libraries=none
5608      gl_saved_ldflags=$LDFLAGS
5609      gl_saved_libs=$LIBS
5610      # Link with -lm to detect binutils 2.16 bug with --as-needed; see
5611      # <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00131.html>.
5612      LIBS="$LIBS -lm"
5613      # Use long option sequences like '-z ignore' to test for the feature,
5614      # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
5615      # GCC + binutils likes '-Wl,--as-needed'.
5616      # GCC + Solaris ld likes '-Wl,-z,ignore'.
5617      # Sun C likes '-z ignore'.
5618      # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
5619      # native cc issues annoying warnings and then ignores it,
5620      # which would cause us to incorrectly conclude that it worked.
5621      for gl_flags in \
5622         '-Wl,--as-needed' \
5623         '-Wl,-z,ignore' \
5624         '-z ignore'
5625      do
5626        LDFLAGS="$gl_flags $LDFLAGS"
5627        cat >conftest.$ac_ext <<_ACEOF
5628 /* confdefs.h.  */
5629 _ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h.  */
5633
5634 int
5635 main ()
5636 {
5637
5638   ;
5639   return 0;
5640 }
5641 _ACEOF
5642 rm -f conftest.$ac_objext conftest$ac_exeext
5643 if { (ac_try="$ac_link"
5644 case "(($ac_try" in
5645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646   *) ac_try_echo=$ac_try;;
5647 esac
5648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5649   (eval "$ac_link") 2>conftest.er1
5650   ac_status=$?
5651   grep -v '^ *+' conftest.er1 >conftest.err
5652   rm -f conftest.er1
5653   cat conftest.err >&5
5654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655   (exit $ac_status); } &&
5656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5657   { (case "(($ac_try" in
5658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659   *) ac_try_echo=$ac_try;;
5660 esac
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662   (eval "$ac_try") 2>&5
5663   ac_status=$?
5664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665   (exit $ac_status); }; } &&
5666          { ac_try='test -s conftest$ac_exeext'
5667   { (case "(($ac_try" in
5668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669   *) ac_try_echo=$ac_try;;
5670 esac
5671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672   (eval "$ac_try") 2>&5
5673   ac_status=$?
5674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); }; }; then
5676   gl_cv_ignore_unused_libraries=$gl_flags
5677 else
5678   echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5680
5681
5682 fi
5683
5684 rm -f core conftest.err conftest.$ac_objext \
5685       conftest$ac_exeext conftest.$ac_ext
5686        LDFLAGS=$gl_saved_ldflags
5687        test "$gl_cv_ignore_unused_libraries" != none && break
5688      done
5689      LIBS=$gl_saved_libs
5690 fi
5691 { echo "$as_me:$LINENO: result: $gl_cv_ignore_unused_libraries" >&5
5692 echo "${ECHO_T}$gl_cv_ignore_unused_libraries" >&6; }
5693
5694   test "$gl_cv_ignore_unused_libraries" != none &&
5695     LDFLAGS="$LDFLAGS $gl_cv_ignore_unused_libraries"
5696
5697
5698
5699
5700 for ac_func in uname
5701 do
5702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5703 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5705 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5706   echo $ECHO_N "(cached) $ECHO_C" >&6
5707 else
5708   cat >conftest.$ac_ext <<_ACEOF
5709 /* confdefs.h.  */
5710 _ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h.  */
5714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5716 #define $ac_func innocuous_$ac_func
5717
5718 /* System header to define __stub macros and hopefully few prototypes,
5719     which can conflict with char $ac_func (); below.
5720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5721     <limits.h> exists even on freestanding compilers.  */
5722
5723 #ifdef __STDC__
5724 # include <limits.h>
5725 #else
5726 # include <assert.h>
5727 #endif
5728
5729 #undef $ac_func
5730
5731 /* Override any GCC internal prototype to avoid an error.
5732    Use char because int might match the return type of a GCC
5733    builtin and then its argument prototype would still apply.  */
5734 #ifdef __cplusplus
5735 extern "C"
5736 #endif
5737 char $ac_func ();
5738 /* The GNU C library defines this for functions which it implements
5739     to always fail with ENOSYS.  Some functions are actually named
5740     something starting with __ and the normal name is an alias.  */
5741 #if defined __stub_$ac_func || defined __stub___$ac_func
5742 choke me
5743 #endif
5744
5745 int
5746 main ()
5747 {
5748 return $ac_func ();
5749   ;
5750   return 0;
5751 }
5752 _ACEOF
5753 rm -f conftest.$ac_objext conftest$ac_exeext
5754 if { (ac_try="$ac_link"
5755 case "(($ac_try" in
5756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757   *) ac_try_echo=$ac_try;;
5758 esac
5759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5760   (eval "$ac_link") 2>conftest.er1
5761   ac_status=$?
5762   grep -v '^ *+' conftest.er1 >conftest.err
5763   rm -f conftest.er1
5764   cat conftest.err >&5
5765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766   (exit $ac_status); } &&
5767          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5768   { (case "(($ac_try" in
5769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5770   *) ac_try_echo=$ac_try;;
5771 esac
5772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5773   (eval "$ac_try") 2>&5
5774   ac_status=$?
5775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776   (exit $ac_status); }; } &&
5777          { ac_try='test -s conftest$ac_exeext'
5778   { (case "(($ac_try" in
5779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780   *) ac_try_echo=$ac_try;;
5781 esac
5782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783   (eval "$ac_try") 2>&5
5784   ac_status=$?
5785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786   (exit $ac_status); }; }; then
5787   eval "$as_ac_var=yes"
5788 else
5789   echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.$ac_ext >&5
5791
5792         eval "$as_ac_var=no"
5793 fi
5794
5795 rm -f core conftest.err conftest.$ac_objext \
5796       conftest$ac_exeext conftest.$ac_ext
5797 fi
5798 ac_res=`eval echo '${'$as_ac_var'}'`
5799                { echo "$as_me:$LINENO: result: $ac_res" >&5
5800 echo "${ECHO_T}$ac_res" >&6; }
5801 if test `eval echo '${'$as_ac_var'}'` = yes; then
5802   cat >>confdefs.h <<_ACEOF
5803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5804 _ACEOF
5805  OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uname\$(EXEEXT)"
5806         MAN="$MAN uname.1"
5807 fi
5808 done
5809
5810
5811 for ac_func in chroot
5812 do
5813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5814 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5817   echo $ECHO_N "(cached) $ECHO_C" >&6
5818 else
5819   cat >conftest.$ac_ext <<_ACEOF
5820 /* confdefs.h.  */
5821 _ACEOF
5822 cat confdefs.h >>conftest.$ac_ext
5823 cat >>conftest.$ac_ext <<_ACEOF
5824 /* end confdefs.h.  */
5825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5826    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5827 #define $ac_func innocuous_$ac_func
5828
5829 /* System header to define __stub macros and hopefully few prototypes,
5830     which can conflict with char $ac_func (); below.
5831     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5832     <limits.h> exists even on freestanding compilers.  */
5833
5834 #ifdef __STDC__
5835 # include <limits.h>
5836 #else
5837 # include <assert.h>
5838 #endif
5839
5840 #undef $ac_func
5841
5842 /* Override any GCC internal prototype to avoid an error.
5843    Use char because int might match the return type of a GCC
5844    builtin and then its argument prototype would still apply.  */
5845 #ifdef __cplusplus
5846 extern "C"
5847 #endif
5848 char $ac_func ();
5849 /* The GNU C library defines this for functions which it implements
5850     to always fail with ENOSYS.  Some functions are actually named
5851     something starting with __ and the normal name is an alias.  */
5852 #if defined __stub_$ac_func || defined __stub___$ac_func
5853 choke me
5854 #endif
5855
5856 int
5857 main ()
5858 {
5859 return $ac_func ();
5860   ;
5861   return 0;
5862 }
5863 _ACEOF
5864 rm -f conftest.$ac_objext conftest$ac_exeext
5865 if { (ac_try="$ac_link"
5866 case "(($ac_try" in
5867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868   *) ac_try_echo=$ac_try;;
5869 esac
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871   (eval "$ac_link") 2>conftest.er1
5872   ac_status=$?
5873   grep -v '^ *+' conftest.er1 >conftest.err
5874   rm -f conftest.er1
5875   cat conftest.err >&5
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); } &&
5878          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5879   { (case "(($ac_try" in
5880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881   *) ac_try_echo=$ac_try;;
5882 esac
5883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884   (eval "$ac_try") 2>&5
5885   ac_status=$?
5886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887   (exit $ac_status); }; } &&
5888          { ac_try='test -s conftest$ac_exeext'
5889   { (case "(($ac_try" in
5890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891   *) ac_try_echo=$ac_try;;
5892 esac
5893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894   (eval "$ac_try") 2>&5
5895   ac_status=$?
5896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897   (exit $ac_status); }; }; then
5898   eval "$as_ac_var=yes"
5899 else
5900   echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.$ac_ext >&5
5902
5903         eval "$as_ac_var=no"
5904 fi
5905
5906 rm -f core conftest.err conftest.$ac_objext \
5907       conftest$ac_exeext conftest.$ac_ext
5908 fi
5909 ac_res=`eval echo '${'$as_ac_var'}'`
5910                { echo "$as_me:$LINENO: result: $ac_res" >&5
5911 echo "${ECHO_T}$ac_res" >&6; }
5912 if test `eval echo '${'$as_ac_var'}'` = yes; then
5913   cat >>confdefs.h <<_ACEOF
5914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5915 _ACEOF
5916  OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS chroot\$(EXEEXT)"
5917         MAN="$MAN chroot.1"
5918 fi
5919 done
5920
5921
5922 for ac_func in gethostid
5923 do
5924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5925 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5927 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5928   echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930   cat >conftest.$ac_ext <<_ACEOF
5931 /* confdefs.h.  */
5932 _ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h.  */
5936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5937    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5938 #define $ac_func innocuous_$ac_func
5939
5940 /* System header to define __stub macros and hopefully few prototypes,
5941     which can conflict with char $ac_func (); below.
5942     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5943     <limits.h> exists even on freestanding compilers.  */
5944
5945 #ifdef __STDC__
5946 # include <limits.h>
5947 #else
5948 # include <assert.h>
5949 #endif
5950
5951 #undef $ac_func
5952
5953 /* Override any GCC internal prototype to avoid an error.
5954    Use char because int might match the return type of a GCC
5955    builtin and then its argument prototype would still apply.  */
5956 #ifdef __cplusplus
5957 extern "C"
5958 #endif
5959 char $ac_func ();
5960 /* The GNU C library defines this for functions which it implements
5961     to always fail with ENOSYS.  Some functions are actually named
5962     something starting with __ and the normal name is an alias.  */
5963 #if defined __stub_$ac_func || defined __stub___$ac_func
5964 choke me
5965 #endif
5966
5967 int
5968 main ()
5969 {
5970 return $ac_func ();
5971   ;
5972   return 0;
5973 }
5974 _ACEOF
5975 rm -f conftest.$ac_objext conftest$ac_exeext
5976 if { (ac_try="$ac_link"
5977 case "(($ac_try" in
5978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979   *) ac_try_echo=$ac_try;;
5980 esac
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982   (eval "$ac_link") 2>conftest.er1
5983   ac_status=$?
5984   grep -v '^ *+' conftest.er1 >conftest.err
5985   rm -f conftest.er1
5986   cat conftest.err >&5
5987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988   (exit $ac_status); } &&
5989          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5990   { (case "(($ac_try" in
5991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992   *) ac_try_echo=$ac_try;;
5993 esac
5994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995   (eval "$ac_try") 2>&5
5996   ac_status=$?
5997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998   (exit $ac_status); }; } &&
5999          { ac_try='test -s conftest$ac_exeext'
6000   { (case "(($ac_try" in
6001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002   *) ac_try_echo=$ac_try;;
6003 esac
6004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005   (eval "$ac_try") 2>&5
6006   ac_status=$?
6007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008   (exit $ac_status); }; }; then
6009   eval "$as_ac_var=yes"
6010 else
6011   echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6013
6014         eval "$as_ac_var=no"
6015 fi
6016
6017 rm -f core conftest.err conftest.$ac_objext \
6018       conftest$ac_exeext conftest.$ac_ext
6019 fi
6020 ac_res=`eval echo '${'$as_ac_var'}'`
6021                { echo "$as_me:$LINENO: result: $ac_res" >&5
6022 echo "${ECHO_T}$ac_res" >&6; }
6023 if test `eval echo '${'$as_ac_var'}'` = yes; then
6024   cat >>confdefs.h <<_ACEOF
6025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6026 _ACEOF
6027  OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS hostid\$(EXEEXT)"
6028         MAN="$MAN hostid.1"
6029 fi
6030 done
6031
6032
6033
6034         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
6035 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
6036 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
6037   echo $ECHO_N "(cached) $ECHO_C" >&6
6038 else
6039   ac_check_lib_save_LIBS=$LIBS
6040 LIBS="-lcposix  $LIBS"
6041 cat >conftest.$ac_ext <<_ACEOF
6042 /* confdefs.h.  */
6043 _ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h.  */
6047
6048 /* Override any GCC internal prototype to avoid an error.
6049    Use char because int might match the return type of a GCC
6050    builtin and then its argument prototype would still apply.  */
6051 #ifdef __cplusplus
6052 extern "C"
6053 #endif
6054 char strerror ();
6055 int
6056 main ()
6057 {
6058 return strerror ();
6059   ;
6060   return 0;
6061 }
6062 _ACEOF
6063 rm -f conftest.$ac_objext conftest$ac_exeext
6064 if { (ac_try="$ac_link"
6065 case "(($ac_try" in
6066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067   *) ac_try_echo=$ac_try;;
6068 esac
6069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070   (eval "$ac_link") 2>conftest.er1
6071   ac_status=$?
6072   grep -v '^ *+' conftest.er1 >conftest.err
6073   rm -f conftest.er1
6074   cat conftest.err >&5
6075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076   (exit $ac_status); } &&
6077          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6078   { (case "(($ac_try" in
6079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080   *) ac_try_echo=$ac_try;;
6081 esac
6082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083   (eval "$ac_try") 2>&5
6084   ac_status=$?
6085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086   (exit $ac_status); }; } &&
6087          { ac_try='test -s conftest$ac_exeext'
6088   { (case "(($ac_try" in
6089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090   *) ac_try_echo=$ac_try;;
6091 esac
6092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093   (eval "$ac_try") 2>&5
6094   ac_status=$?
6095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); }; }; then
6097   ac_cv_lib_cposix_strerror=yes
6098 else
6099   echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6101
6102         ac_cv_lib_cposix_strerror=no
6103 fi
6104
6105 rm -f core conftest.err conftest.$ac_objext \
6106       conftest$ac_exeext conftest.$ac_ext
6107 LIBS=$ac_check_lib_save_LIBS
6108 fi
6109 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
6110 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
6111 if test $ac_cv_lib_cposix_strerror = yes; then
6112   LIBS="$LIBS -lcposix"
6113 fi
6114
6115
6116
6117 # Check whether --enable-largefile was given.
6118 if test "${enable_largefile+set}" = set; then
6119   enableval=$enable_largefile;
6120 fi
6121
6122 if test "$enable_largefile" != no; then
6123
6124   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6125 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
6126 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6127   echo $ECHO_N "(cached) $ECHO_C" >&6
6128 else
6129   ac_cv_sys_largefile_CC=no
6130      if test "$GCC" != yes; then
6131        ac_save_CC=$CC
6132        while :; do
6133          # IRIX 6.2 and later do not support large files by default,
6134          # so use the C compiler's -n32 option if that helps.
6135          cat >conftest.$ac_ext <<_ACEOF
6136 /* confdefs.h.  */
6137 _ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h.  */
6141 #include <sys/types.h>
6142  /* Check that off_t can represent 2**63 - 1 correctly.
6143     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6144     since some C++ compilers masquerading as C compilers
6145     incorrectly reject 9223372036854775807.  */
6146 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6147   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6148                        && LARGE_OFF_T % 2147483647 == 1)
6149                       ? 1 : -1];
6150 int
6151 main ()
6152 {
6153
6154   ;
6155   return 0;
6156 }
6157 _ACEOF
6158          rm -f conftest.$ac_objext
6159 if { (ac_try="$ac_compile"
6160 case "(($ac_try" in
6161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162   *) ac_try_echo=$ac_try;;
6163 esac
6164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6165   (eval "$ac_compile") 2>conftest.er1
6166   ac_status=$?
6167   grep -v '^ *+' conftest.er1 >conftest.err
6168   rm -f conftest.er1
6169   cat conftest.err >&5
6170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171   (exit $ac_status); } &&
6172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6173   { (case "(($ac_try" in
6174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175   *) ac_try_echo=$ac_try;;
6176 esac
6177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178   (eval "$ac_try") 2>&5
6179   ac_status=$?
6180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181   (exit $ac_status); }; } &&
6182          { ac_try='test -s conftest.$ac_objext'
6183   { (case "(($ac_try" in
6184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6185   *) ac_try_echo=$ac_try;;
6186 esac
6187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6188   (eval "$ac_try") 2>&5
6189   ac_status=$?
6190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191   (exit $ac_status); }; }; then
6192   break
6193 else
6194   echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6196
6197
6198 fi
6199
6200 rm -f core conftest.err conftest.$ac_objext
6201          CC="$CC -n32"
6202          rm -f conftest.$ac_objext
6203 if { (ac_try="$ac_compile"
6204 case "(($ac_try" in
6205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206   *) ac_try_echo=$ac_try;;
6207 esac
6208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6209   (eval "$ac_compile") 2>conftest.er1
6210   ac_status=$?
6211   grep -v '^ *+' conftest.er1 >conftest.err
6212   rm -f conftest.er1
6213   cat conftest.err >&5
6214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215   (exit $ac_status); } &&
6216          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6217   { (case "(($ac_try" in
6218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219   *) ac_try_echo=$ac_try;;
6220 esac
6221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222   (eval "$ac_try") 2>&5
6223   ac_status=$?
6224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225   (exit $ac_status); }; } &&
6226          { ac_try='test -s conftest.$ac_objext'
6227   { (case "(($ac_try" in
6228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6229   *) ac_try_echo=$ac_try;;
6230 esac
6231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6232   (eval "$ac_try") 2>&5
6233   ac_status=$?
6234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235   (exit $ac_status); }; }; then
6236   ac_cv_sys_largefile_CC=' -n32'; break
6237 else
6238   echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.$ac_ext >&5
6240
6241
6242 fi
6243
6244 rm -f core conftest.err conftest.$ac_objext
6245          break
6246        done
6247        CC=$ac_save_CC
6248        rm -f conftest.$ac_ext
6249     fi
6250 fi
6251 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6252 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
6253   if test "$ac_cv_sys_largefile_CC" != no; then
6254     CC=$CC$ac_cv_sys_largefile_CC
6255   fi
6256
6257   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6258 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
6259 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6260   echo $ECHO_N "(cached) $ECHO_C" >&6
6261 else
6262   while :; do
6263   ac_cv_sys_file_offset_bits=no
6264   cat >conftest.$ac_ext <<_ACEOF
6265 /* confdefs.h.  */
6266 _ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h.  */
6270 #include <sys/types.h>
6271  /* Check that off_t can represent 2**63 - 1 correctly.
6272     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6273     since some C++ compilers masquerading as C compilers
6274     incorrectly reject 9223372036854775807.  */
6275 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6276   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6277                        && LARGE_OFF_T % 2147483647 == 1)
6278                       ? 1 : -1];
6279 int
6280 main ()
6281 {
6282
6283   ;
6284   return 0;
6285 }
6286 _ACEOF
6287 rm -f conftest.$ac_objext
6288 if { (ac_try="$ac_compile"
6289 case "(($ac_try" in
6290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291   *) ac_try_echo=$ac_try;;
6292 esac
6293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294   (eval "$ac_compile") 2>conftest.er1
6295   ac_status=$?
6296   grep -v '^ *+' conftest.er1 >conftest.err
6297   rm -f conftest.er1
6298   cat conftest.err >&5
6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300   (exit $ac_status); } &&
6301          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6302   { (case "(($ac_try" in
6303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304   *) ac_try_echo=$ac_try;;
6305 esac
6306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6307   (eval "$ac_try") 2>&5
6308   ac_status=$?
6309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310   (exit $ac_status); }; } &&
6311          { ac_try='test -s conftest.$ac_objext'
6312   { (case "(($ac_try" in
6313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314   *) ac_try_echo=$ac_try;;
6315 esac
6316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6317   (eval "$ac_try") 2>&5
6318   ac_status=$?
6319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320   (exit $ac_status); }; }; then
6321   break
6322 else
6323   echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6325
6326
6327 fi
6328
6329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330   cat >conftest.$ac_ext <<_ACEOF
6331 /* confdefs.h.  */
6332 _ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h.  */
6336 #define _FILE_OFFSET_BITS 64
6337 #include <sys/types.h>
6338  /* Check that off_t can represent 2**63 - 1 correctly.
6339     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6340     since some C++ compilers masquerading as C compilers
6341     incorrectly reject 9223372036854775807.  */
6342 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6343   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6344                        && LARGE_OFF_T % 2147483647 == 1)
6345                       ? 1 : -1];
6346 int
6347 main ()
6348 {
6349
6350   ;
6351   return 0;
6352 }
6353 _ACEOF
6354 rm -f conftest.$ac_objext
6355 if { (ac_try="$ac_compile"
6356 case "(($ac_try" in
6357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6358   *) ac_try_echo=$ac_try;;
6359 esac
6360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6361   (eval "$ac_compile") 2>conftest.er1
6362   ac_status=$?
6363   grep -v '^ *+' conftest.er1 >conftest.err
6364   rm -f conftest.er1
6365   cat conftest.err >&5
6366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367   (exit $ac_status); } &&
6368          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6369   { (case "(($ac_try" in
6370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6371   *) ac_try_echo=$ac_try;;
6372 esac
6373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6374   (eval "$ac_try") 2>&5
6375   ac_status=$?
6376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377   (exit $ac_status); }; } &&
6378          { ac_try='test -s conftest.$ac_objext'
6379   { (case "(($ac_try" in
6380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381   *) ac_try_echo=$ac_try;;
6382 esac
6383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384   (eval "$ac_try") 2>&5
6385   ac_status=$?
6386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387   (exit $ac_status); }; }; then
6388   ac_cv_sys_file_offset_bits=64; break
6389 else
6390   echo "$as_me: failed program was:" >&5
6391 sed 's/^/| /' conftest.$ac_ext >&5
6392
6393
6394 fi
6395
6396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6397   break
6398 done
6399 fi
6400 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6401 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
6402 if test "$ac_cv_sys_file_offset_bits" != no; then
6403
6404 cat >>confdefs.h <<_ACEOF
6405 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6406 _ACEOF
6407
6408 fi
6409 rm -f conftest*
6410   { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6411 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
6412 if test "${ac_cv_sys_large_files+set}" = set; then
6413   echo $ECHO_N "(cached) $ECHO_C" >&6
6414 else
6415   while :; do
6416   ac_cv_sys_large_files=no
6417   cat >conftest.$ac_ext <<_ACEOF
6418 /* confdefs.h.  */
6419 _ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h.  */
6423 #include <sys/types.h>
6424  /* Check that off_t can represent 2**63 - 1 correctly.
6425     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6426     since some C++ compilers masquerading as C compilers
6427     incorrectly reject 9223372036854775807.  */
6428 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6429   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6430                        && LARGE_OFF_T % 2147483647 == 1)
6431                       ? 1 : -1];
6432 int
6433 main ()
6434 {
6435
6436   ;
6437   return 0;
6438 }
6439 _ACEOF
6440 rm -f conftest.$ac_objext
6441 if { (ac_try="$ac_compile"
6442 case "(($ac_try" in
6443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6444   *) ac_try_echo=$ac_try;;
6445 esac
6446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6447   (eval "$ac_compile") 2>conftest.er1
6448   ac_status=$?
6449   grep -v '^ *+' conftest.er1 >conftest.err
6450   rm -f conftest.er1
6451   cat conftest.err >&5
6452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453   (exit $ac_status); } &&
6454          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6455   { (case "(($ac_try" in
6456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457   *) ac_try_echo=$ac_try;;
6458 esac
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460   (eval "$ac_try") 2>&5
6461   ac_status=$?
6462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463   (exit $ac_status); }; } &&
6464          { ac_try='test -s conftest.$ac_objext'
6465   { (case "(($ac_try" in
6466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467   *) ac_try_echo=$ac_try;;
6468 esac
6469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470   (eval "$ac_try") 2>&5
6471   ac_status=$?
6472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473   (exit $ac_status); }; }; then
6474   break
6475 else
6476   echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.$ac_ext >&5
6478
6479
6480 fi
6481
6482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483   cat >conftest.$ac_ext <<_ACEOF
6484 /* confdefs.h.  */
6485 _ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h.  */
6489 #define _LARGE_FILES 1
6490 #include <sys/types.h>
6491  /* Check that off_t can represent 2**63 - 1 correctly.
6492     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6493     since some C++ compilers masquerading as C compilers
6494     incorrectly reject 9223372036854775807.  */
6495 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6496   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6497                        && LARGE_OFF_T % 2147483647 == 1)
6498                       ? 1 : -1];
6499 int
6500 main ()
6501 {
6502
6503   ;
6504   return 0;
6505 }
6506 _ACEOF
6507 rm -f conftest.$ac_objext
6508 if { (ac_try="$ac_compile"
6509 case "(($ac_try" in
6510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6511   *) ac_try_echo=$ac_try;;
6512 esac
6513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6514   (eval "$ac_compile") 2>conftest.er1
6515   ac_status=$?
6516   grep -v '^ *+' conftest.er1 >conftest.err
6517   rm -f conftest.er1
6518   cat conftest.err >&5
6519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520   (exit $ac_status); } &&
6521          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6522   { (case "(($ac_try" in
6523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6524   *) ac_try_echo=$ac_try;;
6525 esac
6526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6527   (eval "$ac_try") 2>&5
6528   ac_status=$?
6529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530   (exit $ac_status); }; } &&
6531          { ac_try='test -s conftest.$ac_objext'
6532   { (case "(($ac_try" in
6533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534   *) ac_try_echo=$ac_try;;
6535 esac
6536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537   (eval "$ac_try") 2>&5
6538   ac_status=$?
6539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540   (exit $ac_status); }; }; then
6541   ac_cv_sys_large_files=1; break
6542 else
6543   echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6545
6546
6547 fi
6548
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6550   break
6551 done
6552 fi
6553 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6554 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
6555 if test "$ac_cv_sys_large_files" != no; then
6556
6557 cat >>confdefs.h <<_ACEOF
6558 #define _LARGE_FILES $ac_cv_sys_large_files
6559 _ACEOF
6560
6561 fi
6562 rm -f conftest*
6563 fi
6564
6565 { echo "$as_me:$LINENO: checking for function prototypes" >&5
6566 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
6567 if test "$ac_cv_prog_cc_c89" != no; then
6568   { echo "$as_me:$LINENO: result: yes" >&5
6569 echo "${ECHO_T}yes" >&6; }
6570
6571 cat >>confdefs.h <<\_ACEOF
6572 #define PROTOTYPES 1
6573 _ACEOF
6574
6575
6576 cat >>confdefs.h <<\_ACEOF
6577 #define __PROTOTYPES 1
6578 _ACEOF
6579
6580 else
6581   { echo "$as_me:$LINENO: result: no" >&5
6582 echo "${ECHO_T}no" >&6; }
6583 fi
6584
6585
6586 if test "$ac_cv_prog_cc_stdc" != no; then
6587   U= ANSI2KNR=
6588 else
6589   U=_ ANSI2KNR=./ansi2knr
6590 fi
6591 # Ensure some checks needed by ansi2knr itself.
6592
6593
6594 for ac_header in string.h
6595 do
6596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6598   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6601   echo $ECHO_N "(cached) $ECHO_C" >&6
6602 fi
6603 ac_res=`eval echo '${'$as_ac_Header'}'`
6604                { echo "$as_me:$LINENO: result: $ac_res" >&5
6605 echo "${ECHO_T}$ac_res" >&6; }
6606 else
6607   # Is the header compilable?
6608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6610 cat >conftest.$ac_ext <<_ACEOF
6611 /* confdefs.h.  */
6612 _ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h.  */
6616 $ac_includes_default
6617 #include <$ac_header>
6618 _ACEOF
6619 rm -f conftest.$ac_objext
6620 if { (ac_try="$ac_compile"
6621 case "(($ac_try" in
6622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6623   *) ac_try_echo=$ac_try;;
6624 esac
6625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6626   (eval "$ac_compile") 2>conftest.er1
6627   ac_status=$?
6628   grep -v '^ *+' conftest.er1 >conftest.err
6629   rm -f conftest.er1
6630   cat conftest.err >&5
6631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632   (exit $ac_status); } &&
6633          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6634   { (case "(($ac_try" in
6635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636   *) ac_try_echo=$ac_try;;
6637 esac
6638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6639   (eval "$ac_try") 2>&5
6640   ac_status=$?
6641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642   (exit $ac_status); }; } &&
6643          { ac_try='test -s conftest.$ac_objext'
6644   { (case "(($ac_try" in
6645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6646   *) ac_try_echo=$ac_try;;
6647 esac
6648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6649   (eval "$ac_try") 2>&5
6650   ac_status=$?
6651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652   (exit $ac_status); }; }; then
6653   ac_header_compiler=yes
6654 else
6655   echo "$as_me: failed program was:" >&5
6656 sed 's/^/| /' conftest.$ac_ext >&5
6657
6658         ac_header_compiler=no
6659 fi
6660
6661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6663 echo "${ECHO_T}$ac_header_compiler" >&6; }
6664
6665 # Is the header present?
6666 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6668 cat >conftest.$ac_ext <<_ACEOF
6669 /* confdefs.h.  */
6670 _ACEOF
6671 cat confdefs.h >>conftest.$ac_ext
6672 cat >>conftest.$ac_ext <<_ACEOF
6673 /* end confdefs.h.  */
6674 #include <$ac_header>
6675 _ACEOF
6676 if { (ac_try="$ac_cpp conftest.$ac_ext"
6677 case "(($ac_try" in
6678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6679   *) ac_try_echo=$ac_try;;
6680 esac
6681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6682   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6683   ac_status=$?
6684   grep -v '^ *+' conftest.er1 >conftest.err
6685   rm -f conftest.er1
6686   cat conftest.err >&5
6687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688   (exit $ac_status); } >/dev/null; then
6689   if test -s conftest.err; then
6690     ac_cpp_err=$ac_c_preproc_warn_flag
6691     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6692   else
6693     ac_cpp_err=
6694   fi
6695 else
6696   ac_cpp_err=yes
6697 fi
6698 if test -z "$ac_cpp_err"; then
6699   ac_header_preproc=yes
6700 else
6701   echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.$ac_ext >&5
6703
6704   ac_header_preproc=no
6705 fi
6706
6707 rm -f conftest.err conftest.$ac_ext
6708 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6709 echo "${ECHO_T}$ac_header_preproc" >&6; }
6710
6711 # So?  What about this header?
6712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6713   yes:no: )
6714     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6715 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6716     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6717 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6718     ac_header_preproc=yes
6719     ;;
6720   no:yes:* )
6721     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6722 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6723     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6724 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6725     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6726 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6727     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6728 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6729     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6730 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6731     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6732 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6733     ( cat <<\_ASBOX
6734 ## ------------------------------------ ##
6735 ## Report this to bug-coreutils@gnu.org ##
6736 ## ------------------------------------ ##
6737 _ASBOX
6738      ) | sed "s/^/$as_me: WARNING:     /" >&2
6739     ;;
6740 esac
6741 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6744   echo $ECHO_N "(cached) $ECHO_C" >&6
6745 else
6746   eval "$as_ac_Header=\$ac_header_preproc"
6747 fi
6748 ac_res=`eval echo '${'$as_ac_Header'}'`
6749                { echo "$as_me:$LINENO: result: $ac_res" >&5
6750 echo "${ECHO_T}$ac_res" >&6; }
6751
6752 fi
6753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6754   cat >>confdefs.h <<_ACEOF
6755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6756 _ACEOF
6757
6758 fi
6759
6760 done
6761
6762
6763 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6764 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
6765 if test "${ac_cv_c_bigendian+set}" = set; then
6766   echo $ECHO_N "(cached) $ECHO_C" >&6
6767 else
6768   # See if sys/param.h defines the BYTE_ORDER macro.
6769 cat >conftest.$ac_ext <<_ACEOF
6770 /* confdefs.h.  */
6771 _ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h.  */
6775 #include <sys/types.h>
6776 #include <sys/param.h>
6777
6778 int
6779 main ()
6780 {
6781 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6782  bogus endian macros
6783 #endif
6784
6785   ;
6786   return 0;
6787 }
6788 _ACEOF
6789 rm -f conftest.$ac_objext
6790 if { (ac_try="$ac_compile"
6791 case "(($ac_try" in
6792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6793   *) ac_try_echo=$ac_try;;
6794 esac
6795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6796   (eval "$ac_compile") 2>conftest.er1
6797   ac_status=$?
6798   grep -v '^ *+' conftest.er1 >conftest.err
6799   rm -f conftest.er1
6800   cat conftest.err >&5
6801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802   (exit $ac_status); } &&
6803          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6804   { (case "(($ac_try" in
6805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6806   *) ac_try_echo=$ac_try;;
6807 esac
6808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6809   (eval "$ac_try") 2>&5
6810   ac_status=$?
6811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812   (exit $ac_status); }; } &&
6813          { ac_try='test -s conftest.$ac_objext'
6814   { (case "(($ac_try" in
6815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6816   *) ac_try_echo=$ac_try;;
6817 esac
6818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6819   (eval "$ac_try") 2>&5
6820   ac_status=$?
6821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822   (exit $ac_status); }; }; then
6823   # It does; now see whether it defined to BIG_ENDIAN or not.
6824 cat >conftest.$ac_ext <<_ACEOF
6825 /* confdefs.h.  */
6826 _ACEOF
6827 cat confdefs.h >>conftest.$ac_ext
6828 cat >>conftest.$ac_ext <<_ACEOF
6829 /* end confdefs.h.  */
6830 #include <sys/types.h>
6831 #include <sys/param.h>
6832
6833 int
6834 main ()
6835 {
6836 #if BYTE_ORDER != BIG_ENDIAN
6837  not big endian
6838 #endif
6839
6840   ;
6841   return 0;
6842 }
6843 _ACEOF
6844 rm -f conftest.$ac_objext
6845 if { (ac_try="$ac_compile"
6846 case "(($ac_try" in
6847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6848   *) ac_try_echo=$ac_try;;
6849 esac
6850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6851   (eval "$ac_compile") 2>conftest.er1
6852   ac_status=$?
6853   grep -v '^ *+' conftest.er1 >conftest.err
6854   rm -f conftest.er1
6855   cat conftest.err >&5
6856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857   (exit $ac_status); } &&
6858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6859   { (case "(($ac_try" in
6860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6861   *) ac_try_echo=$ac_try;;
6862 esac
6863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6864   (eval "$ac_try") 2>&5
6865   ac_status=$?
6866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867   (exit $ac_status); }; } &&
6868          { ac_try='test -s conftest.$ac_objext'
6869   { (case "(($ac_try" in
6870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6871   *) ac_try_echo=$ac_try;;
6872 esac
6873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6874   (eval "$ac_try") 2>&5
6875   ac_status=$?
6876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877   (exit $ac_status); }; }; then
6878   ac_cv_c_bigendian=yes
6879 else
6880   echo "$as_me: failed program was:" >&5
6881 sed 's/^/| /' conftest.$ac_ext >&5
6882
6883         ac_cv_c_bigendian=no
6884 fi
6885
6886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6887 else
6888   echo "$as_me: failed program was:" >&5
6889 sed 's/^/| /' conftest.$ac_ext >&5
6890
6891         # It does not; compile a test program.
6892 if test "$cross_compiling" = yes; then
6893   # try to guess the endianness by grepping values into an object file
6894   ac_cv_c_bigendian=unknown
6895   cat >conftest.$ac_ext <<_ACEOF
6896 /* confdefs.h.  */
6897 _ACEOF
6898 cat confdefs.h >>conftest.$ac_ext
6899 cat >>conftest.$ac_ext <<_ACEOF
6900 /* end confdefs.h.  */
6901 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6902 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6903 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6904 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6905 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6906 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6907 int
6908 main ()
6909 {
6910  _ascii (); _ebcdic ();
6911   ;
6912   return 0;
6913 }
6914 _ACEOF
6915 rm -f conftest.$ac_objext
6916 if { (ac_try="$ac_compile"
6917 case "(($ac_try" in
6918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6919   *) ac_try_echo=$ac_try;;
6920 esac
6921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6922   (eval "$ac_compile") 2>conftest.er1
6923   ac_status=$?
6924   grep -v '^ *+' conftest.er1 >conftest.err
6925   rm -f conftest.er1
6926   cat conftest.err >&5
6927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928   (exit $ac_status); } &&
6929          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6930   { (case "(($ac_try" in
6931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6932   *) ac_try_echo=$ac_try;;
6933 esac
6934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6935   (eval "$ac_try") 2>&5
6936   ac_status=$?
6937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938   (exit $ac_status); }; } &&
6939          { ac_try='test -s conftest.$ac_objext'
6940   { (case "(($ac_try" in
6941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6942   *) ac_try_echo=$ac_try;;
6943 esac
6944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6945   (eval "$ac_try") 2>&5
6946   ac_status=$?
6947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948   (exit $ac_status); }; }; then
6949   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6950   ac_cv_c_bigendian=yes
6951 fi
6952 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6953   if test "$ac_cv_c_bigendian" = unknown; then
6954     ac_cv_c_bigendian=no
6955   else
6956     # finding both strings is unlikely to happen, but who knows?
6957     ac_cv_c_bigendian=unknown
6958   fi
6959 fi
6960 else
6961   echo "$as_me: failed program was:" >&5
6962 sed 's/^/| /' conftest.$ac_ext >&5
6963
6964
6965 fi
6966
6967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6968 else
6969   cat >conftest.$ac_ext <<_ACEOF
6970 /* confdefs.h.  */
6971 _ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h.  */
6975 $ac_includes_default
6976 int
6977 main ()
6978 {
6979
6980   /* Are we little or big endian?  From Harbison&Steele.  */
6981   union
6982   {
6983     long int l;
6984     char c[sizeof (long int)];
6985   } u;
6986   u.l = 1;
6987   return u.c[sizeof (long int) - 1] == 1;
6988
6989   ;
6990   return 0;
6991 }
6992 _ACEOF
6993 rm -f conftest$ac_exeext
6994 if { (ac_try="$ac_link"
6995 case "(($ac_try" in
6996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6997   *) ac_try_echo=$ac_try;;
6998 esac
6999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7000   (eval "$ac_link") 2>&5
7001   ac_status=$?
7002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7004   { (case "(($ac_try" in
7005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7006   *) ac_try_echo=$ac_try;;
7007 esac
7008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7009   (eval "$ac_try") 2>&5
7010   ac_status=$?
7011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012   (exit $ac_status); }; }; then
7013   ac_cv_c_bigendian=no
7014 else
7015   echo "$as_me: program exited with status $ac_status" >&5
7016 echo "$as_me: failed program was:" >&5
7017 sed 's/^/| /' conftest.$ac_ext >&5
7018
7019 ( exit $ac_status )
7020 ac_cv_c_bigendian=yes
7021 fi
7022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7023 fi
7024
7025
7026 fi
7027
7028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7029 fi
7030 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7031 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
7032 case $ac_cv_c_bigendian in
7033   yes)
7034
7035 cat >>confdefs.h <<\_ACEOF
7036 #define WORDS_BIGENDIAN 1
7037 _ACEOF
7038  ;;
7039   no)
7040      ;;
7041   *)
7042     { { echo "$as_me:$LINENO: error: unknown endianness
7043 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7044 echo "$as_me: error: unknown endianness
7045 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7046    { (exit 1); exit 1; }; } ;;
7047 esac
7048
7049 { echo "$as_me:$LINENO: checking for working volatile" >&5
7050 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
7051 if test "${ac_cv_c_volatile+set}" = set; then
7052   echo $ECHO_N "(cached) $ECHO_C" >&6
7053 else
7054   cat >conftest.$ac_ext <<_ACEOF
7055 /* confdefs.h.  */
7056 _ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h.  */
7060
7061 int
7062 main ()
7063 {
7064
7065 volatile int x;
7066 int * volatile y = (int *) 0;
7067 return !x && !y;
7068   ;
7069   return 0;
7070 }
7071 _ACEOF
7072 rm -f conftest.$ac_objext
7073 if { (ac_try="$ac_compile"
7074 case "(($ac_try" in
7075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7076   *) ac_try_echo=$ac_try;;
7077 esac
7078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7079   (eval "$ac_compile") 2>conftest.er1
7080   ac_status=$?
7081   grep -v '^ *+' conftest.er1 >conftest.err
7082   rm -f conftest.er1
7083   cat conftest.err >&5
7084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085   (exit $ac_status); } &&
7086          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7087   { (case "(($ac_try" in
7088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7089   *) ac_try_echo=$ac_try;;
7090 esac
7091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7092   (eval "$ac_try") 2>&5
7093   ac_status=$?
7094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095   (exit $ac_status); }; } &&
7096          { ac_try='test -s conftest.$ac_objext'
7097   { (case "(($ac_try" in
7098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7099   *) ac_try_echo=$ac_try;;
7100 esac
7101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7102   (eval "$ac_try") 2>&5
7103   ac_status=$?
7104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105   (exit $ac_status); }; }; then
7106   ac_cv_c_volatile=yes
7107 else
7108   echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7110
7111         ac_cv_c_volatile=no
7112 fi
7113
7114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7115 fi
7116 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7117 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
7118 if test $ac_cv_c_volatile = no; then
7119
7120 cat >>confdefs.h <<\_ACEOF
7121 #define volatile
7122 _ACEOF
7123
7124 fi
7125
7126 { echo "$as_me:$LINENO: checking for inline" >&5
7127 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
7128 if test "${ac_cv_c_inline+set}" = set; then
7129   echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131   ac_cv_c_inline=no
7132 for ac_kw in inline __inline__ __inline; do
7133   cat >conftest.$ac_ext <<_ACEOF
7134 /* confdefs.h.  */
7135 _ACEOF
7136 cat confdefs.h >>conftest.$ac_ext
7137 cat >>conftest.$ac_ext <<_ACEOF
7138 /* end confdefs.h.  */
7139 #ifndef __cplusplus
7140 typedef int foo_t;
7141 static $ac_kw foo_t static_foo () {return 0; }
7142 $ac_kw foo_t foo () {return 0; }
7143 #endif
7144
7145 _ACEOF
7146 rm -f conftest.$ac_objext
7147 if { (ac_try="$ac_compile"
7148 case "(($ac_try" in
7149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7150   *) ac_try_echo=$ac_try;;
7151 esac
7152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7153   (eval "$ac_compile") 2>conftest.er1
7154   ac_status=$?
7155   grep -v '^ *+' conftest.er1 >conftest.err
7156   rm -f conftest.er1
7157   cat conftest.err >&5
7158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159   (exit $ac_status); } &&
7160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7161   { (case "(($ac_try" in
7162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7163   *) ac_try_echo=$ac_try;;
7164 esac
7165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7166   (eval "$ac_try") 2>&5
7167   ac_status=$?
7168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169   (exit $ac_status); }; } &&
7170          { ac_try='test -s conftest.$ac_objext'
7171   { (case "(($ac_try" in
7172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7173   *) ac_try_echo=$ac_try;;
7174 esac
7175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7176   (eval "$ac_try") 2>&5
7177   ac_status=$?
7178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179   (exit $ac_status); }; }; then
7180   ac_cv_c_inline=$ac_kw
7181 else
7182   echo "$as_me: failed program was:" >&5
7183 sed 's/^/| /' conftest.$ac_ext >&5
7184
7185
7186 fi
7187
7188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7189   test "$ac_cv_c_inline" != no && break
7190 done
7191
7192 fi
7193 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7194 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
7195
7196
7197 case $ac_cv_c_inline in
7198   inline | yes) ;;
7199   *)
7200     case $ac_cv_c_inline in
7201       no) ac_val=;;
7202       *) ac_val=$ac_cv_c_inline;;
7203     esac
7204     cat >>confdefs.h <<_ACEOF
7205 #ifndef __cplusplus
7206 #define inline $ac_val
7207 #endif
7208 _ACEOF
7209     ;;
7210 esac
7211
7212
7213
7214   { echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
7215 echo $ECHO_N "checking for long double with more range or precision than double... $ECHO_C" >&6; }
7216 if test "${ac_cv_type_long_double_wider+set}" = set; then
7217   echo $ECHO_N "(cached) $ECHO_C" >&6
7218 else
7219   cat >conftest.$ac_ext <<_ACEOF
7220 /* confdefs.h.  */
7221 _ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h.  */
7225 #include <float.h>
7226             long double const a[] =
7227               {
7228                  0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
7229                  LDBL_MIN, LDBL_MAX, LDBL_EPSILON
7230               };
7231             long double
7232             f (long double x)
7233             {
7234                return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
7235                         + (x ? f (x) : 'c'));
7236             }
7237
7238 int
7239 main ()
7240 {
7241 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
7242                    + (DBL_MANT_DIG < LDBL_MANT_DIG)
7243                    - (LDBL_MAX_EXP < DBL_MAX_EXP)
7244                    - (LDBL_MANT_DIG < DBL_MANT_DIG)))
7245             && (int) LDBL_EPSILON == 0
7246           )];
7247 test_array [0] = 0
7248
7249   ;
7250   return 0;
7251 }
7252 _ACEOF
7253 rm -f conftest.$ac_objext
7254 if { (ac_try="$ac_compile"
7255 case "(($ac_try" in
7256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7257   *) ac_try_echo=$ac_try;;
7258 esac
7259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7260   (eval "$ac_compile") 2>conftest.er1
7261   ac_status=$?
7262   grep -v '^ *+' conftest.er1 >conftest.err
7263   rm -f conftest.er1
7264   cat conftest.err >&5
7265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266   (exit $ac_status); } &&
7267          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7268   { (case "(($ac_try" in
7269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7270   *) ac_try_echo=$ac_try;;
7271 esac
7272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7273   (eval "$ac_try") 2>&5
7274   ac_status=$?
7275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276   (exit $ac_status); }; } &&
7277          { ac_try='test -s conftest.$ac_objext'
7278   { (case "(($ac_try" in
7279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280   *) ac_try_echo=$ac_try;;
7281 esac
7282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7283   (eval "$ac_try") 2>&5
7284   ac_status=$?
7285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286   (exit $ac_status); }; }; then
7287   ac_cv_type_long_double_wider=yes
7288 else
7289   echo "$as_me: failed program was:" >&5
7290 sed 's/^/| /' conftest.$ac_ext >&5
7291
7292         ac_cv_type_long_double_wider=no
7293 fi
7294
7295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7296 fi
7297 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
7298 echo "${ECHO_T}$ac_cv_type_long_double_wider" >&6; }
7299   if test $ac_cv_type_long_double_wider = yes; then
7300
7301 cat >>confdefs.h <<\_ACEOF
7302 #define HAVE_LONG_DOUBLE_WIDER 1
7303 _ACEOF
7304
7305   fi
7306
7307     ac_cv_c_long_double=$ac_cv_type_long_double_wider
7308     if test $ac_cv_c_long_double = yes; then
7309
7310 cat >>confdefs.h <<\_ACEOF
7311 #define HAVE_LONG_DOUBLE 1
7312 _ACEOF
7313
7314     fi
7315
7316
7317
7318
7319
7320 for ac_header in $ac_header_list
7321 do
7322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7324   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7327   echo $ECHO_N "(cached) $ECHO_C" >&6
7328 fi
7329 ac_res=`eval echo '${'$as_ac_Header'}'`
7330                { echo "$as_me:$LINENO: result: $ac_res" >&5
7331 echo "${ECHO_T}$ac_res" >&6; }
7332 else
7333   # Is the header compilable?
7334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7336 cat >conftest.$ac_ext <<_ACEOF
7337 /* confdefs.h.  */
7338 _ACEOF
7339 cat confdefs.h >>conftest.$ac_ext
7340 cat >>conftest.$ac_ext <<_ACEOF
7341 /* end confdefs.h.  */
7342 $ac_includes_default
7343 #include <$ac_header>
7344 _ACEOF
7345 rm -f conftest.$ac_objext
7346 if { (ac_try="$ac_compile"
7347 case "(($ac_try" in
7348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7349   *) ac_try_echo=$ac_try;;
7350 esac
7351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7352   (eval "$ac_compile") 2>conftest.er1
7353   ac_status=$?
7354   grep -v '^ *+' conftest.er1 >conftest.err
7355   rm -f conftest.er1
7356   cat conftest.err >&5
7357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358   (exit $ac_status); } &&
7359          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7360   { (case "(($ac_try" in
7361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7362   *) ac_try_echo=$ac_try;;
7363 esac
7364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7365   (eval "$ac_try") 2>&5
7366   ac_status=$?
7367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368   (exit $ac_status); }; } &&
7369          { ac_try='test -s conftest.$ac_objext'
7370   { (case "(($ac_try" in
7371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7372   *) ac_try_echo=$ac_try;;
7373 esac
7374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7375   (eval "$ac_try") 2>&5
7376   ac_status=$?
7377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378   (exit $ac_status); }; }; then
7379   ac_header_compiler=yes
7380 else
7381   echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7383
7384         ac_header_compiler=no
7385 fi
7386
7387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7388 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7389 echo "${ECHO_T}$ac_header_compiler" >&6; }
7390
7391 # Is the header present?
7392 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7394 cat >conftest.$ac_ext <<_ACEOF
7395 /* confdefs.h.  */
7396 _ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h.  */
7400 #include <$ac_header>
7401 _ACEOF
7402 if { (ac_try="$ac_cpp conftest.$ac_ext"
7403 case "(($ac_try" in
7404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7405   *) ac_try_echo=$ac_try;;
7406 esac
7407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7408   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7409   ac_status=$?
7410   grep -v '^ *+' conftest.er1 >conftest.err
7411   rm -f conftest.er1
7412   cat conftest.err >&5
7413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414   (exit $ac_status); } >/dev/null; then
7415   if test -s conftest.err; then
7416     ac_cpp_err=$ac_c_preproc_warn_flag
7417     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7418   else
7419     ac_cpp_err=
7420   fi
7421 else
7422   ac_cpp_err=yes
7423 fi
7424 if test -z "$ac_cpp_err"; then
7425   ac_header_preproc=yes
7426 else
7427   echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.$ac_ext >&5
7429
7430   ac_header_preproc=no
7431 fi
7432
7433 rm -f conftest.err conftest.$ac_ext
7434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7435 echo "${ECHO_T}$ac_header_preproc" >&6; }
7436
7437 # So?  What about this header?
7438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7439   yes:no: )
7440     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7442     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7444     ac_header_preproc=yes
7445     ;;
7446   no:yes:* )
7447     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7449     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7450 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7451     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7453     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7454 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7455     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7457     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7459     ( cat <<\_ASBOX
7460 ## ------------------------------------ ##
7461 ## Report this to bug-coreutils@gnu.org ##
7462 ## ------------------------------------ ##
7463 _ASBOX
7464      ) | sed "s/^/$as_me: WARNING:     /" >&2
7465     ;;
7466 esac
7467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7470   echo $ECHO_N "(cached) $ECHO_C" >&6
7471 else
7472   eval "$as_ac_Header=\$ac_header_preproc"
7473 fi
7474 ac_res=`eval echo '${'$as_ac_Header'}'`
7475                { echo "$as_me:$LINENO: result: $ac_res" >&5
7476 echo "${ECHO_T}$ac_res" >&6; }
7477
7478 fi
7479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7480   cat >>confdefs.h <<_ACEOF
7481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7482 _ACEOF
7483
7484 fi
7485
7486 done
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551 for ac_header in sys/mount.h sys/sysctl.h
7552 do
7553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7557   echo $ECHO_N "(cached) $ECHO_C" >&6
7558 else
7559   cat >conftest.$ac_ext <<_ACEOF
7560 /* confdefs.h.  */
7561 _ACEOF
7562 cat confdefs.h >>conftest.$ac_ext
7563 cat >>conftest.$ac_ext <<_ACEOF
7564 /* end confdefs.h.  */
7565 $ac_includes_default
7566      #if HAVE_SYS_PARAM_H
7567        #include <sys/param.h>
7568       #endif
7569
7570 #include <$ac_header>
7571 _ACEOF
7572 rm -f conftest.$ac_objext
7573 if { (ac_try="$ac_compile"
7574 case "(($ac_try" in
7575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576   *) ac_try_echo=$ac_try;;
7577 esac
7578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7579   (eval "$ac_compile") 2>conftest.er1
7580   ac_status=$?
7581   grep -v '^ *+' conftest.er1 >conftest.err
7582   rm -f conftest.er1
7583   cat conftest.err >&5
7584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585   (exit $ac_status); } &&
7586          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7587   { (case "(($ac_try" in
7588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7589   *) ac_try_echo=$ac_try;;
7590 esac
7591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7592   (eval "$ac_try") 2>&5
7593   ac_status=$?
7594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595   (exit $ac_status); }; } &&
7596          { ac_try='test -s conftest.$ac_objext'
7597   { (case "(($ac_try" in
7598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7599   *) ac_try_echo=$ac_try;;
7600 esac
7601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7602   (eval "$ac_try") 2>&5
7603   ac_status=$?
7604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605   (exit $ac_status); }; }; then
7606   eval "$as_ac_Header=yes"
7607 else
7608   echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7610
7611         eval "$as_ac_Header=no"
7612 fi
7613
7614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7615 fi
7616 ac_res=`eval echo '${'$as_ac_Header'}'`
7617                { echo "$as_me:$LINENO: result: $ac_res" >&5
7618 echo "${ECHO_T}$ac_res" >&6; }
7619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7620   cat >>confdefs.h <<_ACEOF
7621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7622 _ACEOF
7623
7624 fi
7625
7626 done
7627
7628
7629 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
7630 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
7631 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
7632   echo $ECHO_N "(cached) $ECHO_C" >&6
7633 else
7634   cat >conftest.$ac_ext <<_ACEOF
7635 /* confdefs.h.  */
7636 _ACEOF
7637 cat confdefs.h >>conftest.$ac_ext
7638 cat >>conftest.$ac_ext <<_ACEOF
7639 /* end confdefs.h.  */
7640 $ac_includes_default
7641 int
7642 main ()
7643 {
7644 static struct stat ac_aggr;
7645 if (ac_aggr.st_blocks)
7646 return 0;
7647   ;
7648   return 0;
7649 }
7650 _ACEOF
7651 rm -f conftest.$ac_objext
7652 if { (ac_try="$ac_compile"
7653 case "(($ac_try" in
7654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7655   *) ac_try_echo=$ac_try;;
7656 esac
7657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7658   (eval "$ac_compile") 2>conftest.er1
7659   ac_status=$?
7660   grep -v '^ *+' conftest.er1 >conftest.err
7661   rm -f conftest.er1
7662   cat conftest.err >&5
7663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664   (exit $ac_status); } &&
7665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7666   { (case "(($ac_try" in
7667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7668   *) ac_try_echo=$ac_try;;
7669 esac
7670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7671   (eval "$ac_try") 2>&5
7672   ac_status=$?
7673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674   (exit $ac_status); }; } &&
7675          { ac_try='test -s conftest.$ac_objext'
7676   { (case "(($ac_try" in
7677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7678   *) ac_try_echo=$ac_try;;
7679 esac
7680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7681   (eval "$ac_try") 2>&5
7682   ac_status=$?
7683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684   (exit $ac_status); }; }; then
7685   ac_cv_member_struct_stat_st_blocks=yes
7686 else
7687   echo "$as_me: failed program was:" >&5
7688 sed 's/^/| /' conftest.$ac_ext >&5
7689
7690         cat >conftest.$ac_ext <<_ACEOF
7691 /* confdefs.h.  */
7692 _ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h.  */
7696 $ac_includes_default
7697 int
7698 main ()
7699 {
7700 static struct stat ac_aggr;
7701 if (sizeof ac_aggr.st_blocks)
7702 return 0;
7703   ;
7704   return 0;
7705 }
7706 _ACEOF
7707 rm -f conftest.$ac_objext
7708 if { (ac_try="$ac_compile"
7709 case "(($ac_try" in
7710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7711   *) ac_try_echo=$ac_try;;
7712 esac
7713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7714   (eval "$ac_compile") 2>conftest.er1
7715   ac_status=$?
7716   grep -v '^ *+' conftest.er1 >conftest.err
7717   rm -f conftest.er1
7718   cat conftest.err >&5
7719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720   (exit $ac_status); } &&
7721          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7722   { (case "(($ac_try" in
7723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7724   *) ac_try_echo=$ac_try;;
7725 esac
7726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7727   (eval "$ac_try") 2>&5
7728   ac_status=$?
7729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730   (exit $ac_status); }; } &&
7731          { ac_try='test -s conftest.$ac_objext'
7732   { (case "(($ac_try" in
7733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7734   *) ac_try_echo=$ac_try;;
7735 esac
7736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7737   (eval "$ac_try") 2>&5
7738   ac_status=$?
7739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740   (exit $ac_status); }; }; then
7741   ac_cv_member_struct_stat_st_blocks=yes
7742 else
7743   echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7745
7746         ac_cv_member_struct_stat_st_blocks=no
7747 fi
7748
7749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7750 fi
7751
7752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753 fi
7754 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
7755 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
7756 if test $ac_cv_member_struct_stat_st_blocks = yes; then
7757
7758 cat >>confdefs.h <<_ACEOF
7759 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7760 _ACEOF
7761
7762
7763 cat >>confdefs.h <<\_ACEOF
7764 #define HAVE_ST_BLOCKS 1
7765 _ACEOF
7766
7767 else
7768   case " $LIBOBJS " in
7769   *" fileblocks.$ac_objext "* ) ;;
7770   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
7771  ;;
7772 esac
7773
7774 fi
7775
7776
7777 { echo "$as_me:$LINENO: checking for st_dm_mode in struct stat" >&5
7778 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" >&6; }
7779 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
7780   echo $ECHO_N "(cached) $ECHO_C" >&6
7781 else
7782   cat >conftest.$ac_ext <<_ACEOF
7783 /* confdefs.h.  */
7784 _ACEOF
7785 cat confdefs.h >>conftest.$ac_ext
7786 cat >>conftest.$ac_ext <<_ACEOF
7787 /* end confdefs.h.  */
7788 #include <sys/types.h>
7789 #include <sys/stat.h>
7790 int
7791 main ()
7792 {
7793 struct stat s; s.st_dm_mode;
7794   ;
7795   return 0;
7796 }
7797 _ACEOF
7798 rm -f conftest.$ac_objext
7799 if { (ac_try="$ac_compile"
7800 case "(($ac_try" in
7801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802   *) ac_try_echo=$ac_try;;
7803 esac
7804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7805   (eval "$ac_compile") 2>conftest.er1
7806   ac_status=$?
7807   grep -v '^ *+' conftest.er1 >conftest.err
7808   rm -f conftest.er1
7809   cat conftest.err >&5
7810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811   (exit $ac_status); } &&
7812          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7813   { (case "(($ac_try" in
7814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7815   *) ac_try_echo=$ac_try;;
7816 esac
7817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7818   (eval "$ac_try") 2>&5
7819   ac_status=$?
7820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821   (exit $ac_status); }; } &&
7822          { ac_try='test -s conftest.$ac_objext'
7823   { (case "(($ac_try" in
7824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7825   *) ac_try_echo=$ac_try;;
7826 esac
7827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7828   (eval "$ac_try") 2>&5
7829   ac_status=$?
7830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831   (exit $ac_status); }; }; then
7832   ac_cv_struct_st_dm_mode=yes
7833 else
7834   echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7836
7837         ac_cv_struct_st_dm_mode=no
7838 fi
7839
7840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7841 fi
7842 { echo "$as_me:$LINENO: result: $ac_cv_struct_st_dm_mode" >&5
7843 echo "${ECHO_T}$ac_cv_struct_st_dm_mode" >&6; }
7844
7845   if test $ac_cv_struct_st_dm_mode = yes; then
7846
7847 cat >>confdefs.h <<\_ACEOF
7848 #define HAVE_ST_DM_MODE 1
7849 _ACEOF
7850
7851   fi
7852
7853
7854 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7855 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7856 if test "${ac_cv_type_uid_t+set}" = set; then
7857   echo $ECHO_N "(cached) $ECHO_C" >&6
7858 else
7859   cat >conftest.$ac_ext <<_ACEOF
7860 /* confdefs.h.  */
7861 _ACEOF
7862 cat confdefs.h >>conftest.$ac_ext
7863 cat >>conftest.$ac_ext <<_ACEOF
7864 /* end confdefs.h.  */
7865 #include <sys/types.h>
7866
7867 _ACEOF
7868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7869   $EGREP "uid_t" >/dev/null 2>&1; then
7870   ac_cv_type_uid_t=yes
7871 else
7872   ac_cv_type_uid_t=no
7873 fi
7874 rm -f conftest*
7875
7876 fi
7877 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7878 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7879 if test $ac_cv_type_uid_t = no; then
7880
7881 cat >>confdefs.h <<\_ACEOF
7882 #define uid_t int
7883 _ACEOF
7884
7885
7886 cat >>confdefs.h <<\_ACEOF
7887 #define gid_t int
7888 _ACEOF
7889
7890 fi
7891
7892 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7893 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
7894 if test "${ac_cv_type_getgroups+set}" = set; then
7895   echo $ECHO_N "(cached) $ECHO_C" >&6
7896 else
7897   if test "$cross_compiling" = yes; then
7898   ac_cv_type_getgroups=cross
7899 else
7900   cat >conftest.$ac_ext <<_ACEOF
7901 /* confdefs.h.  */
7902 _ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h.  */
7906 /* Thanks to Mike Rendell for this test.  */
7907 $ac_includes_default
7908 #define NGID 256
7909 #undef MAX
7910 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7911
7912 int
7913 main ()
7914 {
7915   gid_t gidset[NGID];
7916   int i, n;
7917   union { gid_t gval; long int lval; }  val;
7918
7919   val.lval = -1;
7920   for (i = 0; i < NGID; i++)
7921     gidset[i] = val.gval;
7922   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7923                  gidset);
7924   /* Exit non-zero if getgroups seems to require an array of ints.  This
7925      happens when gid_t is short int but getgroups modifies an array
7926      of ints.  */
7927   return n > 0 && gidset[n] != val.gval;
7928 }
7929 _ACEOF
7930 rm -f conftest$ac_exeext
7931 if { (ac_try="$ac_link"
7932 case "(($ac_try" in
7933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934   *) ac_try_echo=$ac_try;;
7935 esac
7936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937   (eval "$ac_link") 2>&5
7938   ac_status=$?
7939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7941   { (case "(($ac_try" in
7942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943   *) ac_try_echo=$ac_try;;
7944 esac
7945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946   (eval "$ac_try") 2>&5
7947   ac_status=$?
7948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949   (exit $ac_status); }; }; then
7950   ac_cv_type_getgroups=gid_t
7951 else
7952   echo "$as_me: program exited with status $ac_status" >&5
7953 echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7955
7956 ( exit $ac_status )
7957 ac_cv_type_getgroups=int
7958 fi
7959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7960 fi
7961
7962
7963 if test $ac_cv_type_getgroups = cross; then
7964         cat >conftest.$ac_ext <<_ACEOF
7965 /* confdefs.h.  */
7966 _ACEOF
7967 cat confdefs.h >>conftest.$ac_ext
7968 cat >>conftest.$ac_ext <<_ACEOF
7969 /* end confdefs.h.  */
7970 #include <unistd.h>
7971
7972 _ACEOF
7973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7974   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7975   ac_cv_type_getgroups=gid_t
7976 else
7977   ac_cv_type_getgroups=int
7978 fi
7979 rm -f conftest*
7980
7981 fi
7982 fi
7983 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7984 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
7985
7986 cat >>confdefs.h <<_ACEOF
7987 #define GETGROUPS_T $ac_cv_type_getgroups
7988 _ACEOF
7989
7990
7991 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
7992 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
7993 if test "${ac_cv_type_mbstate_t+set}" = set; then
7994   echo $ECHO_N "(cached) $ECHO_C" >&6
7995 else
7996   cat >conftest.$ac_ext <<_ACEOF
7997 /* confdefs.h.  */
7998 _ACEOF
7999 cat confdefs.h >>conftest.$ac_ext
8000 cat >>conftest.$ac_ext <<_ACEOF
8001 /* end confdefs.h.  */
8002 $ac_includes_default
8003 #           include <wchar.h>
8004 int
8005 main ()
8006 {
8007 mbstate_t x; return sizeof x;
8008   ;
8009   return 0;
8010 }
8011 _ACEOF
8012 rm -f conftest.$ac_objext
8013 if { (ac_try="$ac_compile"
8014 case "(($ac_try" in
8015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8016   *) ac_try_echo=$ac_try;;
8017 esac
8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019   (eval "$ac_compile") 2>conftest.er1
8020   ac_status=$?
8021   grep -v '^ *+' conftest.er1 >conftest.err
8022   rm -f conftest.er1
8023   cat conftest.err >&5
8024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025   (exit $ac_status); } &&
8026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8027   { (case "(($ac_try" in
8028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029   *) ac_try_echo=$ac_try;;
8030 esac
8031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8032   (eval "$ac_try") 2>&5
8033   ac_status=$?
8034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035   (exit $ac_status); }; } &&
8036          { ac_try='test -s conftest.$ac_objext'
8037   { (case "(($ac_try" in
8038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039   *) ac_try_echo=$ac_try;;
8040 esac
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042   (eval "$ac_try") 2>&5
8043   ac_status=$?
8044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); }; }; then
8046   ac_cv_type_mbstate_t=yes
8047 else
8048   echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8050
8051         ac_cv_type_mbstate_t=no
8052 fi
8053
8054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8055 fi
8056 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
8057 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
8058    if test $ac_cv_type_mbstate_t = yes; then
8059
8060 cat >>confdefs.h <<\_ACEOF
8061 #define HAVE_MBSTATE_T 1
8062 _ACEOF
8063
8064    else
8065
8066 cat >>confdefs.h <<\_ACEOF
8067 #define mbstate_t int
8068 _ACEOF
8069
8070    fi
8071 { echo "$as_me:$LINENO: checking for mode_t" >&5
8072 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
8073 if test "${ac_cv_type_mode_t+set}" = set; then
8074   echo $ECHO_N "(cached) $ECHO_C" >&6
8075 else
8076   cat >conftest.$ac_ext <<_ACEOF
8077 /* confdefs.h.  */
8078 _ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h.  */
8082 $ac_includes_default
8083 typedef mode_t ac__type_new_;
8084 int
8085 main ()
8086 {
8087 if ((ac__type_new_ *) 0)
8088   return 0;
8089 if (sizeof (ac__type_new_))
8090   return 0;
8091   ;
8092   return 0;
8093 }
8094 _ACEOF
8095 rm -f conftest.$ac_objext
8096 if { (ac_try="$ac_compile"
8097 case "(($ac_try" in
8098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8099   *) ac_try_echo=$ac_try;;
8100 esac
8101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8102   (eval "$ac_compile") 2>conftest.er1
8103   ac_status=$?
8104   grep -v '^ *+' conftest.er1 >conftest.err
8105   rm -f conftest.er1
8106   cat conftest.err >&5
8107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108   (exit $ac_status); } &&
8109          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8110   { (case "(($ac_try" in
8111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8112   *) ac_try_echo=$ac_try;;
8113 esac
8114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8115   (eval "$ac_try") 2>&5
8116   ac_status=$?
8117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118   (exit $ac_status); }; } &&
8119          { ac_try='test -s conftest.$ac_objext'
8120   { (case "(($ac_try" in
8121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8122   *) ac_try_echo=$ac_try;;
8123 esac
8124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8125   (eval "$ac_try") 2>&5
8126   ac_status=$?
8127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128   (exit $ac_status); }; }; then
8129   ac_cv_type_mode_t=yes
8130 else
8131   echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8133
8134         ac_cv_type_mode_t=no
8135 fi
8136
8137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8138 fi
8139 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
8140 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
8141 if test $ac_cv_type_mode_t = yes; then
8142   :
8143 else
8144
8145 cat >>confdefs.h <<_ACEOF
8146 #define mode_t int
8147 _ACEOF
8148
8149 fi
8150
8151 { echo "$as_me:$LINENO: checking for off_t" >&5
8152 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8153 if test "${ac_cv_type_off_t+set}" = set; then
8154   echo $ECHO_N "(cached) $ECHO_C" >&6
8155 else
8156   cat >conftest.$ac_ext <<_ACEOF
8157 /* confdefs.h.  */
8158 _ACEOF
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h.  */
8162 $ac_includes_default
8163 typedef off_t ac__type_new_;
8164 int
8165 main ()
8166 {
8167 if ((ac__type_new_ *) 0)
8168   return 0;
8169 if (sizeof (ac__type_new_))
8170   return 0;
8171   ;
8172   return 0;
8173 }
8174 _ACEOF
8175 rm -f conftest.$ac_objext
8176 if { (ac_try="$ac_compile"
8177 case "(($ac_try" in
8178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179   *) ac_try_echo=$ac_try;;
8180 esac
8181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182   (eval "$ac_compile") 2>conftest.er1
8183   ac_status=$?
8184   grep -v '^ *+' conftest.er1 >conftest.err
8185   rm -f conftest.er1
8186   cat conftest.err >&5
8187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188   (exit $ac_status); } &&
8189          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8190   { (case "(($ac_try" in
8191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192   *) ac_try_echo=$ac_try;;
8193 esac
8194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8195   (eval "$ac_try") 2>&5
8196   ac_status=$?
8197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   (exit $ac_status); }; } &&
8199          { ac_try='test -s conftest.$ac_objext'
8200   { (case "(($ac_try" in
8201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202   *) ac_try_echo=$ac_try;;
8203 esac
8204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205   (eval "$ac_try") 2>&5
8206   ac_status=$?
8207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208   (exit $ac_status); }; }; then
8209   ac_cv_type_off_t=yes
8210 else
8211   echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8213
8214         ac_cv_type_off_t=no
8215 fi
8216
8217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218 fi
8219 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8220 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8221 if test $ac_cv_type_off_t = yes; then
8222   :
8223 else
8224
8225 cat >>confdefs.h <<_ACEOF
8226 #define off_t long int
8227 _ACEOF
8228
8229 fi
8230
8231 { echo "$as_me:$LINENO: checking for pid_t" >&5
8232 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
8233 if test "${ac_cv_type_pid_t+set}" = set; then
8234   echo $ECHO_N "(cached) $ECHO_C" >&6
8235 else
8236   cat >conftest.$ac_ext <<_ACEOF
8237 /* confdefs.h.  */
8238 _ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h.  */
8242 $ac_includes_default
8243 typedef pid_t ac__type_new_;
8244 int
8245 main ()
8246 {
8247 if ((ac__type_new_ *) 0)
8248   return 0;
8249 if (sizeof (ac__type_new_))
8250   return 0;
8251   ;
8252   return 0;
8253 }
8254 _ACEOF
8255 rm -f conftest.$ac_objext
8256 if { (ac_try="$ac_compile"
8257 case "(($ac_try" in
8258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8259   *) ac_try_echo=$ac_try;;
8260 esac
8261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8262   (eval "$ac_compile") 2>conftest.er1
8263   ac_status=$?
8264   grep -v '^ *+' conftest.er1 >conftest.err
8265   rm -f conftest.er1
8266   cat conftest.err >&5
8267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268   (exit $ac_status); } &&
8269          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8270   { (case "(($ac_try" in
8271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272   *) ac_try_echo=$ac_try;;
8273 esac
8274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275   (eval "$ac_try") 2>&5
8276   ac_status=$?
8277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278   (exit $ac_status); }; } &&
8279          { ac_try='test -s conftest.$ac_objext'
8280   { (case "(($ac_try" in
8281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282   *) ac_try_echo=$ac_try;;
8283 esac
8284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285   (eval "$ac_try") 2>&5
8286   ac_status=$?
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); }; }; then
8289   ac_cv_type_pid_t=yes
8290 else
8291   echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8293
8294         ac_cv_type_pid_t=no
8295 fi
8296
8297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8298 fi
8299 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8300 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
8301 if test $ac_cv_type_pid_t = yes; then
8302   :
8303 else
8304
8305 cat >>confdefs.h <<_ACEOF
8306 #define pid_t int
8307 _ACEOF
8308
8309 fi
8310
8311 { echo "$as_me:$LINENO: checking for size_t" >&5
8312 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8313 if test "${ac_cv_type_size_t+set}" = set; then
8314   echo $ECHO_N "(cached) $ECHO_C" >&6
8315 else
8316   cat >conftest.$ac_ext <<_ACEOF
8317 /* confdefs.h.  */
8318 _ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h.  */
8322 $ac_includes_default
8323 typedef size_t ac__type_new_;
8324 int
8325 main ()
8326 {
8327 if ((ac__type_new_ *) 0)
8328   return 0;
8329 if (sizeof (ac__type_new_))
8330   return 0;
8331   ;
8332   return 0;
8333 }
8334 _ACEOF
8335 rm -f conftest.$ac_objext
8336 if { (ac_try="$ac_compile"
8337 case "(($ac_try" in
8338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339   *) ac_try_echo=$ac_try;;
8340 esac
8341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8342   (eval "$ac_compile") 2>conftest.er1
8343   ac_status=$?
8344   grep -v '^ *+' conftest.er1 >conftest.err
8345   rm -f conftest.er1
8346   cat conftest.err >&5
8347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348   (exit $ac_status); } &&
8349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8350   { (case "(($ac_try" in
8351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352   *) ac_try_echo=$ac_try;;
8353 esac
8354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355   (eval "$ac_try") 2>&5
8356   ac_status=$?
8357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358   (exit $ac_status); }; } &&
8359          { ac_try='test -s conftest.$ac_objext'
8360   { (case "(($ac_try" in
8361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362   *) ac_try_echo=$ac_try;;
8363 esac
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365   (eval "$ac_try") 2>&5
8366   ac_status=$?
8367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368   (exit $ac_status); }; }; then
8369   ac_cv_type_size_t=yes
8370 else
8371   echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8373
8374         ac_cv_type_size_t=no
8375 fi
8376
8377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8378 fi
8379 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8380 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8381 if test $ac_cv_type_size_t = yes; then
8382   :
8383 else
8384
8385 cat >>confdefs.h <<_ACEOF
8386 #define size_t unsigned int
8387 _ACEOF
8388
8389 fi
8390
8391
8392   { echo "$as_me:$LINENO: checking for uint32_t" >&5
8393 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8394 if test "${gl_cv_c_uint32_t+set}" = set; then
8395   echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8397   gl_cv_c_uint32_t=no
8398      for ac_type in "uint32_t" "unsigned int" \
8399          "unsigned long int" "unsigned short int"; do
8400        cat >conftest.$ac_ext <<_ACEOF
8401 /* confdefs.h.  */
8402 _ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h.  */
8406 $ac_includes_default
8407 int
8408 main ()
8409 {
8410 static int test_array [1 - 2 * !(($ac_type) -1 == 4294967295U)];
8411 test_array [0] = 0
8412
8413   ;
8414   return 0;
8415 }
8416 _ACEOF
8417 rm -f conftest.$ac_objext
8418 if { (ac_try="$ac_compile"
8419 case "(($ac_try" in
8420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8421   *) ac_try_echo=$ac_try;;
8422 esac
8423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8424   (eval "$ac_compile") 2>conftest.er1
8425   ac_status=$?
8426   grep -v '^ *+' conftest.er1 >conftest.err
8427   rm -f conftest.er1
8428   cat conftest.err >&5
8429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430   (exit $ac_status); } &&
8431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8432   { (case "(($ac_try" in
8433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434   *) ac_try_echo=$ac_try;;
8435 esac
8436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437   (eval "$ac_try") 2>&5
8438   ac_status=$?
8439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); }; } &&
8441          { ac_try='test -s conftest.$ac_objext'
8442   { (case "(($ac_try" in
8443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444   *) ac_try_echo=$ac_try;;
8445 esac
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447   (eval "$ac_try") 2>&5
8448   ac_status=$?
8449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450   (exit $ac_status); }; }; then
8451   gl_cv_c_uint32_t=$ac_type
8452 else
8453   echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.$ac_ext >&5
8455
8456
8457 fi
8458
8459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8460        test "$gl_cv_c_uint32_t" != no && break
8461      done
8462 fi
8463 { echo "$as_me:$LINENO: result: $gl_cv_c_uint32_t" >&5
8464 echo "${ECHO_T}$gl_cv_c_uint32_t" >&6; }
8465   case "$gl_cv_c_uint32_t" in
8466   no|uint32_t) ;;
8467   *)
8468
8469 cat >>confdefs.h <<\_ACEOF
8470 #define _UINT32_T 1
8471 _ACEOF
8472
8473
8474 cat >>confdefs.h <<_ACEOF
8475 #define uint32_t $gl_cv_c_uint32_t
8476 _ACEOF
8477
8478     ;;
8479   esac
8480
8481   { echo "$as_me:$LINENO: checking for UINT32_MAX" >&5
8482 echo $ECHO_N "checking for UINT32_MAX... $ECHO_C" >&6; }
8483 if test "${gl_cv_c_uint32_max+set}" = set; then
8484   echo $ECHO_N "(cached) $ECHO_C" >&6
8485 else
8486   cat >conftest.$ac_ext <<_ACEOF
8487 /* confdefs.h.  */
8488 _ACEOF
8489 cat confdefs.h >>conftest.$ac_ext
8490 cat >>conftest.$ac_ext <<_ACEOF
8491 /* end confdefs.h.  */
8492 $ac_includes_default
8493 int
8494 main ()
8495 {
8496 static int test_array [1 - 2 * !(UINT32_MAX == 4294967295U)];
8497 test_array [0] = 0
8498
8499   ;
8500   return 0;
8501 }
8502 _ACEOF
8503 rm -f conftest.$ac_objext
8504 if { (ac_try="$ac_compile"
8505 case "(($ac_try" in
8506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507   *) ac_try_echo=$ac_try;;
8508 esac
8509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510   (eval "$ac_compile") 2>conftest.er1
8511   ac_status=$?
8512   grep -v '^ *+' conftest.er1 >conftest.err
8513   rm -f conftest.er1
8514   cat conftest.err >&5
8515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516   (exit $ac_status); } &&
8517          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8518   { (case "(($ac_try" in
8519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8520   *) ac_try_echo=$ac_try;;
8521 esac
8522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8523   (eval "$ac_try") 2>&5
8524   ac_status=$?
8525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526   (exit $ac_status); }; } &&
8527          { ac_try='test -s conftest.$ac_objext'
8528   { (case "(($ac_try" in
8529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530   *) ac_try_echo=$ac_try;;
8531 esac
8532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533   (eval "$ac_try") 2>&5
8534   ac_status=$?
8535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536   (exit $ac_status); }; }; then
8537   gl_cv_c_uint32_max=yes
8538 else
8539   echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8541
8542         gl_cv_c_uint32_max=no
8543 fi
8544
8545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8546 fi
8547 { echo "$as_me:$LINENO: result: $gl_cv_c_uint32_max" >&5
8548 echo "${ECHO_T}$gl_cv_c_uint32_max" >&6; }
8549   case $gl_cv_c_uint32_max,$gl_cv_c_uint32_t in
8550   yes,*) ;;
8551   *,no) ;;
8552   *)
8553
8554 cat >>confdefs.h <<\_ACEOF
8555 #define UINT32_MAX 4294967295U
8556 _ACEOF
8557
8558     ;;
8559   esac
8560
8561
8562   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8563 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8564 if test "${gl_cv_header_inttypes_h+set}" = set; then
8565   echo $ECHO_N "(cached) $ECHO_C" >&6
8566 else
8567   cat >conftest.$ac_ext <<_ACEOF
8568 /* confdefs.h.  */
8569 _ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h.  */
8573 #include <sys/types.h>
8574 #include <inttypes.h>
8575 int
8576 main ()
8577 {
8578 uintmax_t i = (uintmax_t) -1;
8579   ;
8580   return 0;
8581 }
8582 _ACEOF
8583 rm -f conftest.$ac_objext
8584 if { (ac_try="$ac_compile"
8585 case "(($ac_try" in
8586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587   *) ac_try_echo=$ac_try;;
8588 esac
8589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8590   (eval "$ac_compile") 2>conftest.er1
8591   ac_status=$?
8592   grep -v '^ *+' conftest.er1 >conftest.err
8593   rm -f conftest.er1
8594   cat conftest.err >&5
8595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596   (exit $ac_status); } &&
8597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8598   { (case "(($ac_try" in
8599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600   *) ac_try_echo=$ac_try;;
8601 esac
8602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8603   (eval "$ac_try") 2>&5
8604   ac_status=$?
8605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606   (exit $ac_status); }; } &&
8607          { ac_try='test -s conftest.$ac_objext'
8608   { (case "(($ac_try" in
8609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610   *) ac_try_echo=$ac_try;;
8611 esac
8612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8613   (eval "$ac_try") 2>&5
8614   ac_status=$?
8615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616   (exit $ac_status); }; }; then
8617   gl_cv_header_inttypes_h=yes
8618 else
8619   echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8621
8622         gl_cv_header_inttypes_h=no
8623 fi
8624
8625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8626 fi
8627 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8628 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8629   if test $gl_cv_header_inttypes_h = yes; then
8630
8631 cat >>confdefs.h <<_ACEOF
8632 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8633 _ACEOF
8634
8635   fi
8636
8637
8638   { echo "$as_me:$LINENO: checking for stdint.h" >&5
8639 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8640 if test "${gl_cv_header_stdint_h+set}" = set; then
8641   echo $ECHO_N "(cached) $ECHO_C" >&6
8642 else
8643   cat >conftest.$ac_ext <<_ACEOF
8644 /* confdefs.h.  */
8645 _ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h.  */
8649 #include <sys/types.h>
8650 #include <stdint.h>
8651 int
8652 main ()
8653 {
8654 uintmax_t i = (uintmax_t) -1;
8655   ;
8656   return 0;
8657 }
8658 _ACEOF
8659 rm -f conftest.$ac_objext
8660 if { (ac_try="$ac_compile"
8661 case "(($ac_try" in
8662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8663   *) ac_try_echo=$ac_try;;
8664 esac
8665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8666   (eval "$ac_compile") 2>conftest.er1
8667   ac_status=$?
8668   grep -v '^ *+' conftest.er1 >conftest.err
8669   rm -f conftest.er1
8670   cat conftest.err >&5
8671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672   (exit $ac_status); } &&
8673          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8674   { (case "(($ac_try" in
8675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8676   *) ac_try_echo=$ac_try;;
8677 esac
8678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8679   (eval "$ac_try") 2>&5
8680   ac_status=$?
8681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682   (exit $ac_status); }; } &&
8683          { ac_try='test -s conftest.$ac_objext'
8684   { (case "(($ac_try" in
8685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8686   *) ac_try_echo=$ac_try;;
8687 esac
8688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8689   (eval "$ac_try") 2>&5
8690   ac_status=$?
8691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692   (exit $ac_status); }; }; then
8693   gl_cv_header_stdint_h=yes
8694 else
8695   echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8697
8698         gl_cv_header_stdint_h=no
8699 fi
8700
8701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8702 fi
8703 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8704 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8705   if test $gl_cv_header_stdint_h = yes; then
8706
8707 cat >>confdefs.h <<_ACEOF
8708 #define HAVE_STDINT_H_WITH_UINTMAX 1
8709 _ACEOF
8710
8711   fi
8712
8713
8714   { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
8715 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
8716 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
8717   echo $ECHO_N "(cached) $ECHO_C" >&6
8718 else
8719   cat >conftest.$ac_ext <<_ACEOF
8720 /* confdefs.h.  */
8721 _ACEOF
8722 cat confdefs.h >>conftest.$ac_ext
8723 cat >>conftest.$ac_ext <<_ACEOF
8724 /* end confdefs.h.  */
8725 unsigned long long int ull = 18446744073709551615ULL;
8726             typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
8727                            ? 1 : -1)];
8728            int i = 63;
8729 int
8730 main ()
8731 {
8732 unsigned long long int ullmax = 18446744073709551615ull;
8733             return (ull << 63 | ull >> 63 | ull << i | ull >> i
8734                     | ullmax / ull | ullmax % ull);
8735   ;
8736   return 0;
8737 }
8738 _ACEOF
8739 rm -f conftest.$ac_objext conftest$ac_exeext
8740 if { (ac_try="$ac_link"
8741 case "(($ac_try" in
8742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8743   *) ac_try_echo=$ac_try;;
8744 esac
8745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8746   (eval "$ac_link") 2>conftest.er1
8747   ac_status=$?
8748   grep -v '^ *+' conftest.er1 >conftest.err
8749   rm -f conftest.er1
8750   cat conftest.err >&5
8751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752   (exit $ac_status); } &&
8753          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8754   { (case "(($ac_try" in
8755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8756   *) ac_try_echo=$ac_try;;
8757 esac
8758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8759   (eval "$ac_try") 2>&5
8760   ac_status=$?
8761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762   (exit $ac_status); }; } &&
8763          { ac_try='test -s conftest$ac_exeext'
8764   { (case "(($ac_try" in
8765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766   *) ac_try_echo=$ac_try;;
8767 esac
8768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8769   (eval "$ac_try") 2>&5
8770   ac_status=$?
8771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772   (exit $ac_status); }; }; then
8773   ac_cv_type_unsigned_long_long_int=yes
8774 else
8775   echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8777
8778         ac_cv_type_unsigned_long_long_int=no
8779 fi
8780
8781 rm -f core conftest.err conftest.$ac_objext \
8782       conftest$ac_exeext conftest.$ac_ext
8783 fi
8784 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
8785 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
8786   if test $ac_cv_type_unsigned_long_long_int = yes; then
8787
8788 cat >>confdefs.h <<\_ACEOF
8789 #define HAVE_UNSIGNED_LONG_LONG_INT 1
8790 _ACEOF
8791
8792   fi
8793
8794
8795
8796   ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int
8797   if test $ac_cv_type_unsigned_long_long = yes; then
8798
8799 cat >>confdefs.h <<\_ACEOF
8800 #define HAVE_UNSIGNED_LONG_LONG 1
8801 _ACEOF
8802
8803   fi
8804
8805
8806
8807
8808   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
8809
8810     test $ac_cv_type_unsigned_long_long = yes \
8811       && ac_type='unsigned long long' \
8812       || ac_type='unsigned long'
8813
8814 cat >>confdefs.h <<_ACEOF
8815 #define uintmax_t $ac_type
8816 _ACEOF
8817
8818   else
8819
8820 cat >>confdefs.h <<\_ACEOF
8821 #define HAVE_UINTMAX_T 1
8822 _ACEOF
8823
8824   fi
8825
8826
8827   { echo "$as_me:$LINENO: checking for uintptr_t" >&5
8828 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
8829 if test "${gl_cv_c_uintptr_t+set}" = set; then
8830   echo $ECHO_N "(cached) $ECHO_C" >&6
8831 else
8832   gl_cv_c_uintptr_t=no
8833      for ac_type in "uintptr_t" "unsigned int" \
8834          "unsigned long int" "unsigned long long int"; do
8835        cat >conftest.$ac_ext <<_ACEOF
8836 /* confdefs.h.  */
8837 _ACEOF
8838 cat confdefs.h >>conftest.$ac_ext
8839 cat >>conftest.$ac_ext <<_ACEOF
8840 /* end confdefs.h.  */
8841 $ac_includes_default
8842 int
8843 main ()
8844 {
8845 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof (uintptr_t))];
8846 test_array [0] = 0
8847
8848   ;
8849   return 0;
8850 }
8851 _ACEOF
8852 rm -f conftest.$ac_objext
8853 if { (ac_try="$ac_compile"
8854 case "(($ac_try" in
8855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8856   *) ac_try_echo=$ac_try;;
8857 esac
8858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8859   (eval "$ac_compile") 2>conftest.er1
8860   ac_status=$?
8861   grep -v '^ *+' conftest.er1 >conftest.err
8862   rm -f conftest.er1
8863   cat conftest.err >&5
8864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865   (exit $ac_status); } &&
8866          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8867   { (case "(($ac_try" in
8868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869   *) ac_try_echo=$ac_try;;
8870 esac
8871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8872   (eval "$ac_try") 2>&5
8873   ac_status=$?
8874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875   (exit $ac_status); }; } &&
8876          { ac_try='test -s conftest.$ac_objext'
8877   { (case "(($ac_try" in
8878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8879   *) ac_try_echo=$ac_try;;
8880 esac
8881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8882   (eval "$ac_try") 2>&5
8883   ac_status=$?
8884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885   (exit $ac_status); }; }; then
8886   gl_cv_c_uintptr_t=$ac_type
8887 else
8888   echo "$as_me: failed program was:" >&5
8889 sed 's/^/| /' conftest.$ac_ext >&5
8890
8891
8892 fi
8893
8894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8895        test $gl_cv_c_uintptr_t != no && break
8896      done
8897 fi
8898 { echo "$as_me:$LINENO: result: $gl_cv_c_uintptr_t" >&5
8899 echo "${ECHO_T}$gl_cv_c_uintptr_t" >&6; }
8900   case $gl_cv_c_uintptr_t in
8901   no|uintptr_t) ;;
8902   *)
8903
8904 cat >>confdefs.h <<_ACEOF
8905 #define uintptr_t $gl_cv_c_uintptr_t
8906 _ACEOF
8907
8908     ;;
8909   esac
8910
8911         { echo "$as_me:$LINENO: checking for UINTPTR_MAX" >&5
8912 echo $ECHO_N "checking for UINTPTR_MAX... $ECHO_C" >&6; }
8913 if test "${gl_cv_c_uintptr_max+set}" = set; then
8914   echo $ECHO_N "(cached) $ECHO_C" >&6
8915 else
8916   cat >conftest.$ac_ext <<_ACEOF
8917 /* confdefs.h.  */
8918 _ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h.  */
8922 $ac_includes_default
8923 int
8924 main ()
8925 {
8926 #ifndef UINTPTR_MAX
8927              error: UINTPTR_MAX is not defined.
8928             #endif
8929   ;
8930   return 0;
8931 }
8932 _ACEOF
8933 rm -f conftest.$ac_objext
8934 if { (ac_try="$ac_compile"
8935 case "(($ac_try" in
8936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8937   *) ac_try_echo=$ac_try;;
8938 esac
8939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8940   (eval "$ac_compile") 2>conftest.er1
8941   ac_status=$?
8942   grep -v '^ *+' conftest.er1 >conftest.err
8943   rm -f conftest.er1
8944   cat conftest.err >&5
8945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946   (exit $ac_status); } &&
8947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8948   { (case "(($ac_try" in
8949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8950   *) ac_try_echo=$ac_try;;
8951 esac
8952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8953   (eval "$ac_try") 2>&5
8954   ac_status=$?
8955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956   (exit $ac_status); }; } &&
8957          { ac_try='test -s conftest.$ac_objext'
8958   { (case "(($ac_try" in
8959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8960   *) ac_try_echo=$ac_try;;
8961 esac
8962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8963   (eval "$ac_try") 2>&5
8964   ac_status=$?
8965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966   (exit $ac_status); }; }; then
8967   gl_cv_c_uintptr_max=yes
8968 else
8969   echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8971
8972         gl_cv_c_uintptr_max=no
8973 fi
8974
8975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8976 fi
8977 { echo "$as_me:$LINENO: result: $gl_cv_c_uintptr_max" >&5
8978 echo "${ECHO_T}$gl_cv_c_uintptr_max" >&6; }
8979   case $gl_cv_c_uintptr_max,$gl_cv_c_uintptr_t in
8980   yes,*) ;;
8981   *,no) ;;
8982   *)
8983
8984 cat >>confdefs.h <<\_ACEOF
8985 #define UINTPTR_MAX ((uintptr_t) -1)
8986 _ACEOF
8987
8988     ;;
8989   esac
8990
8991 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
8992 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
8993 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
8994   echo $ECHO_N "(cached) $ECHO_C" >&6
8995 else
8996   cat >conftest.$ac_ext <<_ACEOF
8997 /* confdefs.h.  */
8998 _ACEOF
8999 cat confdefs.h >>conftest.$ac_ext
9000 cat >>conftest.$ac_ext <<_ACEOF
9001 /* end confdefs.h.  */
9002 #include <sys/types.h>
9003 int
9004 main ()
9005 {
9006 return makedev(0, 0);
9007   ;
9008   return 0;
9009 }
9010 _ACEOF
9011 rm -f conftest.$ac_objext conftest$ac_exeext
9012 if { (ac_try="$ac_link"
9013 case "(($ac_try" in
9014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015   *) ac_try_echo=$ac_try;;
9016 esac
9017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9018   (eval "$ac_link") 2>conftest.er1
9019   ac_status=$?
9020   grep -v '^ *+' conftest.er1 >conftest.err
9021   rm -f conftest.er1
9022   cat conftest.err >&5
9023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024   (exit $ac_status); } &&
9025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9026   { (case "(($ac_try" in
9027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9028   *) ac_try_echo=$ac_try;;
9029 esac
9030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9031   (eval "$ac_try") 2>&5
9032   ac_status=$?
9033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034   (exit $ac_status); }; } &&
9035          { ac_try='test -s conftest$ac_exeext'
9036   { (case "(($ac_try" in
9037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9038   *) ac_try_echo=$ac_try;;
9039 esac
9040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9041   (eval "$ac_try") 2>&5
9042   ac_status=$?
9043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044   (exit $ac_status); }; }; then
9045   ac_cv_header_sys_types_h_makedev=yes
9046 else
9047   echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9049
9050         ac_cv_header_sys_types_h_makedev=no
9051 fi
9052
9053 rm -f core conftest.err conftest.$ac_objext \
9054       conftest$ac_exeext conftest.$ac_ext
9055
9056 fi
9057 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9058 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
9059
9060 if test $ac_cv_header_sys_types_h_makedev = no; then
9061 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9062   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9063 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
9064 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9065   echo $ECHO_N "(cached) $ECHO_C" >&6
9066 fi
9067 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9068 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
9069 else
9070   # Is the header compilable?
9071 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9072 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
9073 cat >conftest.$ac_ext <<_ACEOF
9074 /* confdefs.h.  */
9075 _ACEOF
9076 cat confdefs.h >>conftest.$ac_ext
9077 cat >>conftest.$ac_ext <<_ACEOF
9078 /* end confdefs.h.  */
9079 $ac_includes_default
9080 #include <sys/mkdev.h>
9081 _ACEOF
9082 rm -f conftest.$ac_objext
9083 if { (ac_try="$ac_compile"
9084 case "(($ac_try" in
9085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9086   *) ac_try_echo=$ac_try;;
9087 esac
9088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9089   (eval "$ac_compile") 2>conftest.er1
9090   ac_status=$?
9091   grep -v '^ *+' conftest.er1 >conftest.err
9092   rm -f conftest.er1
9093   cat conftest.err >&5
9094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095   (exit $ac_status); } &&
9096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9097   { (case "(($ac_try" in
9098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9099   *) ac_try_echo=$ac_try;;
9100 esac
9101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9102   (eval "$ac_try") 2>&5
9103   ac_status=$?
9104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105   (exit $ac_status); }; } &&
9106          { ac_try='test -s conftest.$ac_objext'
9107   { (case "(($ac_try" in
9108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9109   *) ac_try_echo=$ac_try;;
9110 esac
9111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9112   (eval "$ac_try") 2>&5
9113   ac_status=$?
9114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115   (exit $ac_status); }; }; then
9116   ac_header_compiler=yes
9117 else
9118   echo "$as_me: failed program was:" >&5
9119 sed 's/^/| /' conftest.$ac_ext >&5
9120
9121         ac_header_compiler=no
9122 fi
9123
9124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9126 echo "${ECHO_T}$ac_header_compiler" >&6; }
9127
9128 # Is the header present?
9129 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9130 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
9131 cat >conftest.$ac_ext <<_ACEOF
9132 /* confdefs.h.  */
9133 _ACEOF
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h.  */
9137 #include <sys/mkdev.h>
9138 _ACEOF
9139 if { (ac_try="$ac_cpp conftest.$ac_ext"
9140 case "(($ac_try" in
9141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9142   *) ac_try_echo=$ac_try;;
9143 esac
9144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9145   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9146   ac_status=$?
9147   grep -v '^ *+' conftest.er1 >conftest.err
9148   rm -f conftest.er1
9149   cat conftest.err >&5
9150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151   (exit $ac_status); } >/dev/null; then
9152   if test -s conftest.err; then
9153     ac_cpp_err=$ac_c_preproc_warn_flag
9154     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9155   else
9156     ac_cpp_err=
9157   fi
9158 else
9159   ac_cpp_err=yes
9160 fi
9161 if test -z "$ac_cpp_err"; then
9162   ac_header_preproc=yes
9163 else
9164   echo "$as_me: failed program was:" >&5
9165 sed 's/^/| /' conftest.$ac_ext >&5
9166
9167   ac_header_preproc=no
9168 fi
9169
9170 rm -f conftest.err conftest.$ac_ext
9171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9172 echo "${ECHO_T}$ac_header_preproc" >&6; }
9173
9174 # So?  What about this header?
9175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9176   yes:no: )
9177     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9178 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9179     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
9180 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
9181     ac_header_preproc=yes
9182     ;;
9183   no:yes:* )
9184     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9185 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9186     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
9187 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
9188     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
9189 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
9190     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
9191 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9192     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9193 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9194     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
9195 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
9196     ( cat <<\_ASBOX
9197 ## ------------------------------------ ##
9198 ## Report this to bug-coreutils@gnu.org ##
9199 ## ------------------------------------ ##
9200 _ASBOX
9201      ) | sed "s/^/$as_me: WARNING:     /" >&2
9202     ;;
9203 esac
9204 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9205 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
9206 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9207   echo $ECHO_N "(cached) $ECHO_C" >&6
9208 else
9209   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9210 fi
9211 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9212 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
9213
9214 fi
9215 if test $ac_cv_header_sys_mkdev_h = yes; then
9216
9217 cat >>confdefs.h <<\_ACEOF
9218 #define MAJOR_IN_MKDEV 1
9219 _ACEOF
9220
9221 fi
9222
9223
9224
9225   if test $ac_cv_header_sys_mkdev_h = no; then
9226     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9227   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9228 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
9229 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9230   echo $ECHO_N "(cached) $ECHO_C" >&6
9231 fi
9232 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9233 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
9234 else
9235   # Is the header compilable?
9236 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9237 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
9238 cat >conftest.$ac_ext <<_ACEOF
9239 /* confdefs.h.  */
9240 _ACEOF
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h.  */
9244 $ac_includes_default
9245 #include <sys/sysmacros.h>
9246 _ACEOF
9247 rm -f conftest.$ac_objext
9248 if { (ac_try="$ac_compile"
9249 case "(($ac_try" in
9250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9251   *) ac_try_echo=$ac_try;;
9252 esac
9253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9254   (eval "$ac_compile") 2>conftest.er1
9255   ac_status=$?
9256   grep -v '^ *+' conftest.er1 >conftest.err
9257   rm -f conftest.er1
9258   cat conftest.err >&5
9259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260   (exit $ac_status); } &&
9261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9262   { (case "(($ac_try" in
9263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264   *) ac_try_echo=$ac_try;;
9265 esac
9266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9267   (eval "$ac_try") 2>&5
9268   ac_status=$?
9269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270   (exit $ac_status); }; } &&
9271          { ac_try='test -s conftest.$ac_objext'
9272   { (case "(($ac_try" in
9273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9274   *) ac_try_echo=$ac_try;;
9275 esac
9276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9277   (eval "$ac_try") 2>&5
9278   ac_status=$?
9279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280   (exit $ac_status); }; }; then
9281   ac_header_compiler=yes
9282 else
9283   echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9285
9286         ac_header_compiler=no
9287 fi
9288
9289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9290 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9291 echo "${ECHO_T}$ac_header_compiler" >&6; }
9292
9293 # Is the header present?
9294 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9295 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
9296 cat >conftest.$ac_ext <<_ACEOF
9297 /* confdefs.h.  */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h.  */
9302 #include <sys/sysmacros.h>
9303 _ACEOF
9304 if { (ac_try="$ac_cpp conftest.$ac_ext"
9305 case "(($ac_try" in
9306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9307   *) ac_try_echo=$ac_try;;
9308 esac
9309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9310   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9311   ac_status=$?
9312   grep -v '^ *+' conftest.er1 >conftest.err
9313   rm -f conftest.er1
9314   cat conftest.err >&5
9315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316   (exit $ac_status); } >/dev/null; then
9317   if test -s conftest.err; then
9318     ac_cpp_err=$ac_c_preproc_warn_flag
9319     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9320   else
9321     ac_cpp_err=
9322   fi
9323 else
9324   ac_cpp_err=yes
9325 fi
9326 if test -z "$ac_cpp_err"; then
9327   ac_header_preproc=yes
9328 else
9329   echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.$ac_ext >&5
9331
9332   ac_header_preproc=no
9333 fi
9334
9335 rm -f conftest.err conftest.$ac_ext
9336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9337 echo "${ECHO_T}$ac_header_preproc" >&6; }
9338
9339 # So?  What about this header?
9340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9341   yes:no: )
9342     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9343 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9344     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
9345 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
9346     ac_header_preproc=yes
9347     ;;
9348   no:yes:* )
9349     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9350 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9351     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
9352 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
9353     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
9354 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
9355     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
9356 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9357     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9358 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9359     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
9360 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
9361     ( cat <<\_ASBOX
9362 ## ------------------------------------ ##
9363 ## Report this to bug-coreutils@gnu.org ##
9364 ## ------------------------------------ ##
9365 _ASBOX
9366      ) | sed "s/^/$as_me: WARNING:     /" >&2
9367     ;;
9368 esac
9369 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9370 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
9371 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9372   echo $ECHO_N "(cached) $ECHO_C" >&6
9373 else
9374   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9375 fi
9376 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9377 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
9378
9379 fi
9380 if test $ac_cv_header_sys_sysmacros_h = yes; then
9381
9382 cat >>confdefs.h <<\_ACEOF
9383 #define MAJOR_IN_SYSMACROS 1
9384 _ACEOF
9385
9386 fi
9387
9388
9389   fi
9390 fi
9391
9392
9393   { echo "$as_me:$LINENO: checking host operating system" >&5
9394 echo $ECHO_N "checking host operating system... $ECHO_C" >&6; }
9395 if test "${gl_cv_host_operating_system+set}" = set; then
9396   echo $ECHO_N "(cached) $ECHO_C" >&6
9397 else
9398   case $host_os in
9399
9400        # These operating system names do not use the default heuristic below.
9401        # They are in reverse order, so that more-specific prefixes come first.
9402        winnt*)          os='Windows NT';;
9403        vos*)            os='VOS';;
9404        sysv*)           os='Unix System V';;
9405        superux*)        os='SUPER-UX';;
9406        sunos*)          os='SunOS';;
9407        stop*)           os='STOP';;
9408        sco*)            os='SCO Unix';;
9409        riscos*)         os='RISC OS';;
9410        riscix*)         os='RISCiX';;
9411        qnx*)            os='QNX';;
9412        pw32*)           os='PW32';;
9413        ptx*)            os='ptx';;
9414        plan9*)          os='Plan 9';;
9415        osf*)            os='Tru64';;
9416        os2*)            os='OS/2';;
9417        openbsd*)        os='OpenBSD';;
9418        nsk*)            os='NonStop Kernel';;
9419        nonstopux*)      os='NonStop-UX';;
9420        netbsd*-gnu*)    os='GNU/NetBSD';; # NetBSD kernel+libc, GNU userland
9421        netbsd*)         os='NetBSD';;
9422        knetbsd*-gnu)    os='GNU/kNetBSD';; # NetBSD kernel, GNU libc+userland
9423        kfreebsd*-gnu)   os='GNU/kFreeBSD';; # FreeBSD kernel, GNU libc+userland
9424        msdosdjgpp*)     os='DJGPP';;
9425        mpeix*)          os='MPE/iX';;
9426        mint*)           os='MiNT';;
9427        mingw*)          os='MinGW';;
9428        lynxos*)         os='LynxOS';;
9429        linux*)          os='GNU/Linux';;
9430        hpux*)           os='HP-UX';;
9431        hiux*)           os='HI-UX';;
9432        gnu*)            os='GNU';;
9433        freebsd*)        os='FreeBSD';;
9434        dgux*)           os='DG/UX';;
9435        bsdi*)           os='BSD/OS';;
9436        bsd*)            os='BSD';;
9437        beos*)           os='BeOS';;
9438        aux*)            os='A/UX';;
9439        atheos*)         os='AtheOS';;
9440        amigaos*)        os='Amiga OS';;
9441        aix*)            os='AIX';;
9442
9443        # The default heuristic takes the initial alphabetic string
9444        # from $host_os, but capitalizes its first letter.
9445        [A-Za-z]*)
9446          os=`
9447            expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]'
9448          ``
9449            expr "X$host_os" : 'X.\([A-Za-z]*\)'
9450          `
9451          ;;
9452
9453        # If $host_os does not start with an alphabetic string, use it unchanged.
9454        *)
9455          os=$host_os;;
9456      esac
9457      gl_cv_host_operating_system=$os
9458 fi
9459 { echo "$as_me:$LINENO: result: $gl_cv_host_operating_system" >&5
9460 echo "${ECHO_T}$gl_cv_host_operating_system" >&6; }
9461
9462 cat >>confdefs.h <<_ACEOF
9463 #define HOST_OPERATING_SYSTEM "$gl_cv_host_operating_system"
9464 _ACEOF
9465
9466
9467
9468   { echo "$as_me:$LINENO: checking whether to enable assertions" >&5
9469 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6; }
9470   # Check whether --enable-assert was given.
9471 if test "${enable_assert+set}" = set; then
9472   enableval=$enable_assert;  { echo "$as_me:$LINENO: result: no" >&5
9473 echo "${ECHO_T}no" >&6; }
9474
9475 cat >>confdefs.h <<\_ACEOF
9476 #define NDEBUG 1
9477 _ACEOF
9478
9479 else
9480    { echo "$as_me:$LINENO: result: yes" >&5
9481 echo "${ECHO_T}yes" >&6; }
9482
9483 fi
9484
9485
9486 { echo "$as_me:$LINENO: checking for d_type member in directory struct" >&5
9487 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" >&6; }
9488 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
9489   echo $ECHO_N "(cached) $ECHO_C" >&6
9490 else
9491   cat >conftest.$ac_ext <<_ACEOF
9492 /* confdefs.h.  */
9493 _ACEOF
9494 cat confdefs.h >>conftest.$ac_ext
9495 cat >>conftest.$ac_ext <<_ACEOF
9496 /* end confdefs.h.  */
9497
9498 #include <sys/types.h>
9499 #include <dirent.h>
9500
9501 int
9502 main ()
9503 {
9504 struct dirent dp; dp.d_type = 0;
9505   ;
9506   return 0;
9507 }
9508 _ACEOF
9509 rm -f conftest.$ac_objext conftest$ac_exeext
9510 if { (ac_try="$ac_link"
9511 case "(($ac_try" in
9512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9513   *) ac_try_echo=$ac_try;;
9514 esac
9515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9516   (eval "$ac_link") 2>conftest.er1
9517   ac_status=$?
9518   grep -v '^ *+' conftest.er1 >conftest.err
9519   rm -f conftest.er1
9520   cat conftest.err >&5
9521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522   (exit $ac_status); } &&
9523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9524   { (case "(($ac_try" in
9525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9526   *) ac_try_echo=$ac_try;;
9527 esac
9528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9529   (eval "$ac_try") 2>&5
9530   ac_status=$?
9531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532   (exit $ac_status); }; } &&
9533          { ac_try='test -s conftest$ac_exeext'
9534   { (case "(($ac_try" in
9535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536   *) ac_try_echo=$ac_try;;
9537 esac
9538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9539   (eval "$ac_try") 2>&5
9540   ac_status=$?
9541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542   (exit $ac_status); }; }; then
9543   jm_cv_struct_dirent_d_type=yes
9544 else
9545   echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.$ac_ext >&5
9547
9548         jm_cv_struct_dirent_d_type=no
9549 fi
9550
9551 rm -f core conftest.err conftest.$ac_objext \
9552       conftest$ac_exeext conftest.$ac_ext
9553
9554
9555 fi
9556 { echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_type" >&5
9557 echo "${ECHO_T}$jm_cv_struct_dirent_d_type" >&6; }
9558    if test $jm_cv_struct_dirent_d_type = yes; then
9559
9560 cat >>confdefs.h <<\_ACEOF
9561 #define HAVE_STRUCT_DIRENT_D_TYPE 1
9562 _ACEOF
9563
9564    fi
9565
9566
9567 { echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
9568 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6; }
9569 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
9570   echo $ECHO_N "(cached) $ECHO_C" >&6
9571 else
9572   cat >conftest.$ac_ext <<_ACEOF
9573 /* confdefs.h.  */
9574 _ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h.  */
9578
9579 #include <sys/types.h>
9580 #include <dirent.h>
9581
9582 int
9583 main ()
9584 {
9585 struct dirent dp; dp.d_ino = 0;
9586   ;
9587   return 0;
9588 }
9589 _ACEOF
9590 rm -f conftest.$ac_objext conftest$ac_exeext
9591 if { (ac_try="$ac_link"
9592 case "(($ac_try" in
9593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9594   *) ac_try_echo=$ac_try;;
9595 esac
9596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9597   (eval "$ac_link") 2>conftest.er1
9598   ac_status=$?
9599   grep -v '^ *+' conftest.er1 >conftest.err
9600   rm -f conftest.er1
9601   cat conftest.err >&5
9602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603   (exit $ac_status); } &&
9604          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9605   { (case "(($ac_try" in
9606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9607   *) ac_try_echo=$ac_try;;
9608 esac
9609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9610   (eval "$ac_try") 2>&5
9611   ac_status=$?
9612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613   (exit $ac_status); }; } &&
9614          { ac_try='test -s conftest$ac_exeext'
9615   { (case "(($ac_try" in
9616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617   *) ac_try_echo=$ac_try;;
9618 esac
9619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620   (eval "$ac_try") 2>&5
9621   ac_status=$?
9622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623   (exit $ac_status); }; }; then
9624   jm_cv_struct_dirent_d_ino=yes
9625 else
9626   echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9628
9629         jm_cv_struct_dirent_d_ino=no
9630 fi
9631
9632 rm -f core conftest.err conftest.$ac_objext \
9633       conftest$ac_exeext conftest.$ac_ext
9634
9635
9636 fi
9637 { echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
9638 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6; }
9639    if test $jm_cv_struct_dirent_d_ino = yes; then
9640
9641 cat >>confdefs.h <<\_ACEOF
9642 #define D_INO_IN_DIRENT 1
9643 _ACEOF
9644
9645    fi
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9669 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
9670 if test "${ac_cv_header_time+set}" = set; then
9671   echo $ECHO_N "(cached) $ECHO_C" >&6
9672 else
9673   cat >conftest.$ac_ext <<_ACEOF
9674 /* confdefs.h.  */
9675 _ACEOF
9676 cat confdefs.h >>conftest.$ac_ext
9677 cat >>conftest.$ac_ext <<_ACEOF
9678 /* end confdefs.h.  */
9679 #include <sys/types.h>
9680 #include <sys/time.h>
9681 #include <time.h>
9682
9683 int
9684 main ()
9685 {
9686 if ((struct tm *) 0)
9687 return 0;
9688   ;
9689   return 0;
9690 }
9691 _ACEOF
9692 rm -f conftest.$ac_objext
9693 if { (ac_try="$ac_compile"
9694 case "(($ac_try" in
9695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696   *) ac_try_echo=$ac_try;;
9697 esac
9698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699   (eval "$ac_compile") 2>conftest.er1
9700   ac_status=$?
9701   grep -v '^ *+' conftest.er1 >conftest.err
9702   rm -f conftest.er1
9703   cat conftest.err >&5
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); } &&
9706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9707   { (case "(($ac_try" in
9708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709   *) ac_try_echo=$ac_try;;
9710 esac
9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712   (eval "$ac_try") 2>&5
9713   ac_status=$?
9714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715   (exit $ac_status); }; } &&
9716          { ac_try='test -s conftest.$ac_objext'
9717   { (case "(($ac_try" in
9718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719   *) ac_try_echo=$ac_try;;
9720 esac
9721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722   (eval "$ac_try") 2>&5
9723   ac_status=$?
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); }; }; then
9726   ac_cv_header_time=yes
9727 else
9728   echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9730
9731         ac_cv_header_time=no
9732 fi
9733
9734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9735 fi
9736 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9737 echo "${ECHO_T}$ac_cv_header_time" >&6; }
9738 if test $ac_cv_header_time = yes; then
9739
9740 cat >>confdefs.h <<\_ACEOF
9741 #define TIME_WITH_SYS_TIME 1
9742 _ACEOF
9743
9744 fi
9745
9746
9747
9748
9749   headers='
9750 #include <stdio.h>
9751 #include <string.h>
9752 #include <stdlib.h>
9753
9754 #include <unistd.h>
9755
9756 #include <sys/types.h>
9757 #if TIME_WITH_SYS_TIME
9758 # include <sys/time.h>
9759 # include <time.h>
9760 #else
9761 # if HAVE_SYS_TIME_H
9762 #  include <sys/time.h>
9763 # else
9764 #  include <time.h>
9765 # endif
9766 #endif
9767
9768 #if HAVE_UTMP_H
9769 # include <utmp.h>
9770 #endif
9771
9772 #if HAVE_GRP_H
9773 # include <grp.h>
9774 #endif
9775
9776 #if HAVE_PWD_H
9777 # include <pwd.h>
9778 #endif
9779 '
9780
9781   { echo "$as_me:$LINENO: checking whether free is declared" >&5
9782 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6; }
9783 if test "${ac_cv_have_decl_free+set}" = set; then
9784   echo $ECHO_N "(cached) $ECHO_C" >&6
9785 else
9786   cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h.  */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h.  */
9792 $headers
9793
9794 int
9795 main ()
9796 {
9797 #ifndef free
9798   char *p = (char *) free;
9799   return !p;
9800 #endif
9801
9802   ;
9803   return 0;
9804 }
9805 _ACEOF
9806 rm -f conftest.$ac_objext
9807 if { (ac_try="$ac_compile"
9808 case "(($ac_try" in
9809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9810   *) ac_try_echo=$ac_try;;
9811 esac
9812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9813   (eval "$ac_compile") 2>conftest.er1
9814   ac_status=$?
9815   grep -v '^ *+' conftest.er1 >conftest.err
9816   rm -f conftest.er1
9817   cat conftest.err >&5
9818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819   (exit $ac_status); } &&
9820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9821   { (case "(($ac_try" in
9822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9823   *) ac_try_echo=$ac_try;;
9824 esac
9825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9826   (eval "$ac_try") 2>&5
9827   ac_status=$?
9828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829   (exit $ac_status); }; } &&
9830          { ac_try='test -s conftest.$ac_objext'
9831   { (case "(($ac_try" in
9832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833   *) ac_try_echo=$ac_try;;
9834 esac
9835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9836   (eval "$ac_try") 2>&5
9837   ac_status=$?
9838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839   (exit $ac_status); }; }; then
9840   ac_cv_have_decl_free=yes
9841 else
9842   echo "$as_me: failed program was:" >&5
9843 sed 's/^/| /' conftest.$ac_ext >&5
9844
9845         ac_cv_have_decl_free=no
9846 fi
9847
9848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9849 fi
9850 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
9851 echo "${ECHO_T}$ac_cv_have_decl_free" >&6; }
9852 if test $ac_cv_have_decl_free = yes; then
9853
9854 cat >>confdefs.h <<_ACEOF
9855 #define HAVE_DECL_FREE 1
9856 _ACEOF
9857
9858
9859 else
9860   cat >>confdefs.h <<_ACEOF
9861 #define HAVE_DECL_FREE 0
9862 _ACEOF
9863
9864
9865 fi
9866 { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
9867 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
9868 if test "${ac_cv_have_decl_getenv+set}" = set; then
9869   echo $ECHO_N "(cached) $ECHO_C" >&6
9870 else
9871   cat >conftest.$ac_ext <<_ACEOF
9872 /* confdefs.h.  */
9873 _ACEOF
9874 cat confdefs.h >>conftest.$ac_ext
9875 cat >>conftest.$ac_ext <<_ACEOF
9876 /* end confdefs.h.  */
9877 $headers
9878
9879 int
9880 main ()
9881 {
9882 #ifndef getenv
9883   char *p = (char *) getenv;
9884   return !p;
9885 #endif
9886
9887   ;
9888   return 0;
9889 }
9890 _ACEOF
9891 rm -f conftest.$ac_objext
9892 if { (ac_try="$ac_compile"
9893 case "(($ac_try" in
9894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895   *) ac_try_echo=$ac_try;;
9896 esac
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898   (eval "$ac_compile") 2>conftest.er1
9899   ac_status=$?
9900   grep -v '^ *+' conftest.er1 >conftest.err
9901   rm -f conftest.er1
9902   cat conftest.err >&5
9903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904   (exit $ac_status); } &&
9905          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9906   { (case "(($ac_try" in
9907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9908   *) ac_try_echo=$ac_try;;
9909 esac
9910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9911   (eval "$ac_try") 2>&5
9912   ac_status=$?
9913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914   (exit $ac_status); }; } &&
9915          { ac_try='test -s conftest.$ac_objext'
9916   { (case "(($ac_try" in
9917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9918   *) ac_try_echo=$ac_try;;
9919 esac
9920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9921   (eval "$ac_try") 2>&5
9922   ac_status=$?
9923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924   (exit $ac_status); }; }; then
9925   ac_cv_have_decl_getenv=yes
9926 else
9927   echo "$as_me: failed program was:" >&5
9928 sed 's/^/| /' conftest.$ac_ext >&5
9929
9930         ac_cv_have_decl_getenv=no
9931 fi
9932
9933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9934 fi
9935 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9936 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
9937 if test $ac_cv_have_decl_getenv = yes; then
9938
9939 cat >>confdefs.h <<_ACEOF
9940 #define HAVE_DECL_GETENV 1
9941 _ACEOF
9942
9943
9944 else
9945   cat >>confdefs.h <<_ACEOF
9946 #define HAVE_DECL_GETENV 0
9947 _ACEOF
9948
9949
9950 fi
9951 { echo "$as_me:$LINENO: checking whether geteuid is declared" >&5
9952 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" >&6; }
9953 if test "${ac_cv_have_decl_geteuid+set}" = set; then
9954   echo $ECHO_N "(cached) $ECHO_C" >&6
9955 else
9956   cat >conftest.$ac_ext <<_ACEOF
9957 /* confdefs.h.  */
9958 _ACEOF
9959 cat confdefs.h >>conftest.$ac_ext
9960 cat >>conftest.$ac_ext <<_ACEOF
9961 /* end confdefs.h.  */
9962 $headers
9963
9964 int
9965 main ()
9966 {
9967 #ifndef geteuid
9968   char *p = (char *) geteuid;
9969   return !p;
9970 #endif
9971
9972   ;
9973   return 0;
9974 }
9975 _ACEOF
9976 rm -f conftest.$ac_objext
9977 if { (ac_try="$ac_compile"
9978 case "(($ac_try" in
9979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980   *) ac_try_echo=$ac_try;;
9981 esac
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983   (eval "$ac_compile") 2>conftest.er1
9984   ac_status=$?
9985   grep -v '^ *+' conftest.er1 >conftest.err
9986   rm -f conftest.er1
9987   cat conftest.err >&5
9988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989   (exit $ac_status); } &&
9990          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9991   { (case "(($ac_try" in
9992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993   *) ac_try_echo=$ac_try;;
9994 esac
9995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996   (eval "$ac_try") 2>&5
9997   ac_status=$?
9998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999   (exit $ac_status); }; } &&
10000          { ac_try='test -s conftest.$ac_objext'
10001   { (case "(($ac_try" in
10002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003   *) ac_try_echo=$ac_try;;
10004 esac
10005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006   (eval "$ac_try") 2>&5
10007   ac_status=$?
10008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009   (exit $ac_status); }; }; then
10010   ac_cv_have_decl_geteuid=yes
10011 else
10012   echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10014
10015         ac_cv_have_decl_geteuid=no
10016 fi
10017
10018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10019 fi
10020 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_geteuid" >&5
10021 echo "${ECHO_T}$ac_cv_have_decl_geteuid" >&6; }
10022 if test $ac_cv_have_decl_geteuid = yes; then
10023
10024 cat >>confdefs.h <<_ACEOF
10025 #define HAVE_DECL_GETEUID 1
10026 _ACEOF
10027
10028
10029 else
10030   cat >>confdefs.h <<_ACEOF
10031 #define HAVE_DECL_GETEUID 0
10032 _ACEOF
10033
10034
10035 fi
10036 { echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
10037 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6; }
10038 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
10039   echo $ECHO_N "(cached) $ECHO_C" >&6
10040 else
10041   cat >conftest.$ac_ext <<_ACEOF
10042 /* confdefs.h.  */
10043 _ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h.  */
10047 $headers
10048
10049 int
10050 main ()
10051 {
10052 #ifndef getgrgid
10053   char *p = (char *) getgrgid;
10054   return !p;
10055 #endif
10056
10057   ;
10058   return 0;
10059 }
10060 _ACEOF
10061 rm -f conftest.$ac_objext
10062 if { (ac_try="$ac_compile"
10063 case "(($ac_try" in
10064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065   *) ac_try_echo=$ac_try;;
10066 esac
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068   (eval "$ac_compile") 2>conftest.er1
10069   ac_status=$?
10070   grep -v '^ *+' conftest.er1 >conftest.err
10071   rm -f conftest.er1
10072   cat conftest.err >&5
10073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074   (exit $ac_status); } &&
10075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10076   { (case "(($ac_try" in
10077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078   *) ac_try_echo=$ac_try;;
10079 esac
10080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10081   (eval "$ac_try") 2>&5
10082   ac_status=$?
10083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084   (exit $ac_status); }; } &&
10085          { ac_try='test -s conftest.$ac_objext'
10086   { (case "(($ac_try" in
10087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088   *) ac_try_echo=$ac_try;;
10089 esac
10090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091   (eval "$ac_try") 2>&5
10092   ac_status=$?
10093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094   (exit $ac_status); }; }; then
10095   ac_cv_have_decl_getgrgid=yes
10096 else
10097   echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.$ac_ext >&5
10099
10100         ac_cv_have_decl_getgrgid=no
10101 fi
10102
10103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10104 fi
10105 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
10106 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6; }
10107 if test $ac_cv_have_decl_getgrgid = yes; then
10108
10109 cat >>confdefs.h <<_ACEOF
10110 #define HAVE_DECL_GETGRGID 1
10111 _ACEOF
10112
10113
10114 else
10115   cat >>confdefs.h <<_ACEOF
10116 #define HAVE_DECL_GETGRGID 0
10117 _ACEOF
10118
10119
10120 fi
10121 { echo "$as_me:$LINENO: checking whether getlogin is declared" >&5
10122 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" >&6; }
10123 if test "${ac_cv_have_decl_getlogin+set}" = set; then
10124   echo $ECHO_N "(cached) $ECHO_C" >&6
10125 else
10126   cat >conftest.$ac_ext <<_ACEOF
10127 /* confdefs.h.  */
10128 _ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h.  */
10132 $headers
10133
10134 int
10135 main ()
10136 {
10137 #ifndef getlogin
10138   char *p = (char *) getlogin;
10139   return !p;
10140 #endif
10141
10142   ;
10143   return 0;
10144 }
10145 _ACEOF
10146 rm -f conftest.$ac_objext
10147 if { (ac_try="$ac_compile"
10148 case "(($ac_try" in
10149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150   *) ac_try_echo=$ac_try;;
10151 esac
10152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153   (eval "$ac_compile") 2>conftest.er1
10154   ac_status=$?
10155   grep -v '^ *+' conftest.er1 >conftest.err
10156   rm -f conftest.er1
10157   cat conftest.err >&5
10158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159   (exit $ac_status); } &&
10160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10161   { (case "(($ac_try" in
10162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10163   *) ac_try_echo=$ac_try;;
10164 esac
10165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10166   (eval "$ac_try") 2>&5
10167   ac_status=$?
10168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169   (exit $ac_status); }; } &&
10170          { ac_try='test -s conftest.$ac_objext'
10171   { (case "(($ac_try" in
10172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173   *) ac_try_echo=$ac_try;;
10174 esac
10175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176   (eval "$ac_try") 2>&5
10177   ac_status=$?
10178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179   (exit $ac_status); }; }; then
10180   ac_cv_have_decl_getlogin=yes
10181 else
10182   echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10184
10185         ac_cv_have_decl_getlogin=no
10186 fi
10187
10188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10189 fi
10190 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getlogin" >&5
10191 echo "${ECHO_T}$ac_cv_have_decl_getlogin" >&6; }
10192 if test $ac_cv_have_decl_getlogin = yes; then
10193
10194 cat >>confdefs.h <<_ACEOF
10195 #define HAVE_DECL_GETLOGIN 1
10196 _ACEOF
10197
10198
10199 else
10200   cat >>confdefs.h <<_ACEOF
10201 #define HAVE_DECL_GETLOGIN 0
10202 _ACEOF
10203
10204
10205 fi
10206 { echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
10207 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6; }
10208 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
10209   echo $ECHO_N "(cached) $ECHO_C" >&6
10210 else
10211   cat >conftest.$ac_ext <<_ACEOF
10212 /* confdefs.h.  */
10213 _ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h.  */
10217 $headers
10218
10219 int
10220 main ()
10221 {
10222 #ifndef getpwuid
10223   char *p = (char *) getpwuid;
10224   return !p;
10225 #endif
10226
10227   ;
10228   return 0;
10229 }
10230 _ACEOF
10231 rm -f conftest.$ac_objext
10232 if { (ac_try="$ac_compile"
10233 case "(($ac_try" in
10234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10235   *) ac_try_echo=$ac_try;;
10236 esac
10237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10238   (eval "$ac_compile") 2>conftest.er1
10239   ac_status=$?
10240   grep -v '^ *+' conftest.er1 >conftest.err
10241   rm -f conftest.er1
10242   cat conftest.err >&5
10243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244   (exit $ac_status); } &&
10245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10246   { (case "(($ac_try" in
10247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248   *) ac_try_echo=$ac_try;;
10249 esac
10250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10251   (eval "$ac_try") 2>&5
10252   ac_status=$?
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); }; } &&
10255          { ac_try='test -s conftest.$ac_objext'
10256   { (case "(($ac_try" in
10257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10258   *) ac_try_echo=$ac_try;;
10259 esac
10260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10261   (eval "$ac_try") 2>&5
10262   ac_status=$?
10263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264   (exit $ac_status); }; }; then
10265   ac_cv_have_decl_getpwuid=yes
10266 else
10267   echo "$as_me: failed program was:" >&5
10268 sed 's/^/| /' conftest.$ac_ext >&5
10269
10270         ac_cv_have_decl_getpwuid=no
10271 fi
10272
10273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10274 fi
10275 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
10276 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6; }
10277 if test $ac_cv_have_decl_getpwuid = yes; then
10278
10279 cat >>confdefs.h <<_ACEOF
10280 #define HAVE_DECL_GETPWUID 1
10281 _ACEOF
10282
10283
10284 else
10285   cat >>confdefs.h <<_ACEOF
10286 #define HAVE_DECL_GETPWUID 0
10287 _ACEOF
10288
10289
10290 fi
10291 { echo "$as_me:$LINENO: checking whether getuid is declared" >&5
10292 echo $ECHO_N "checking whether getuid is declared... $ECHO_C" >&6; }
10293 if test "${ac_cv_have_decl_getuid+set}" = set; then
10294   echo $ECHO_N "(cached) $ECHO_C" >&6
10295 else
10296   cat >conftest.$ac_ext <<_ACEOF
10297 /* confdefs.h.  */
10298 _ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h.  */
10302 $headers
10303
10304 int
10305 main ()
10306 {
10307 #ifndef getuid
10308   char *p = (char *) getuid;
10309   return !p;
10310 #endif
10311
10312   ;
10313   return 0;
10314 }
10315 _ACEOF
10316 rm -f conftest.$ac_objext
10317 if { (ac_try="$ac_compile"
10318 case "(($ac_try" in
10319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10320   *) ac_try_echo=$ac_try;;
10321 esac
10322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10323   (eval "$ac_compile") 2>conftest.er1
10324   ac_status=$?
10325   grep -v '^ *+' conftest.er1 >conftest.err
10326   rm -f conftest.er1
10327   cat conftest.err >&5
10328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329   (exit $ac_status); } &&
10330          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10331   { (case "(($ac_try" in
10332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333   *) ac_try_echo=$ac_try;;
10334 esac
10335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10336   (eval "$ac_try") 2>&5
10337   ac_status=$?
10338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339   (exit $ac_status); }; } &&
10340          { ac_try='test -s conftest.$ac_objext'
10341   { (case "(($ac_try" in
10342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343   *) ac_try_echo=$ac_try;;
10344 esac
10345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346   (eval "$ac_try") 2>&5
10347   ac_status=$?
10348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349   (exit $ac_status); }; }; then
10350   ac_cv_have_decl_getuid=yes
10351 else
10352   echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10354
10355         ac_cv_have_decl_getuid=no
10356 fi
10357
10358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10359 fi
10360 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getuid" >&5
10361 echo "${ECHO_T}$ac_cv_have_decl_getuid" >&6; }
10362 if test $ac_cv_have_decl_getuid = yes; then
10363
10364 cat >>confdefs.h <<_ACEOF
10365 #define HAVE_DECL_GETUID 1
10366 _ACEOF
10367
10368
10369 else
10370   cat >>confdefs.h <<_ACEOF
10371 #define HAVE_DECL_GETUID 0
10372 _ACEOF
10373
10374
10375 fi
10376 { echo "$as_me:$LINENO: checking whether getutent is declared" >&5
10377 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6; }
10378 if test "${ac_cv_have_decl_getutent+set}" = set; then
10379   echo $ECHO_N "(cached) $ECHO_C" >&6
10380 else
10381   cat >conftest.$ac_ext <<_ACEOF
10382 /* confdefs.h.  */
10383 _ACEOF
10384 cat confdefs.h >>conftest.$ac_ext
10385 cat >>conftest.$ac_ext <<_ACEOF
10386 /* end confdefs.h.  */
10387 $headers
10388
10389 int
10390 main ()
10391 {
10392 #ifndef getutent
10393   char *p = (char *) getutent;
10394   return !p;
10395 #endif
10396
10397   ;
10398   return 0;
10399 }
10400 _ACEOF
10401 rm -f conftest.$ac_objext
10402 if { (ac_try="$ac_compile"
10403 case "(($ac_try" in
10404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10405   *) ac_try_echo=$ac_try;;
10406 esac
10407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10408   (eval "$ac_compile") 2>conftest.er1
10409   ac_status=$?
10410   grep -v '^ *+' conftest.er1 >conftest.err
10411   rm -f conftest.er1
10412   cat conftest.err >&5
10413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414   (exit $ac_status); } &&
10415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10416   { (case "(($ac_try" in
10417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418   *) ac_try_echo=$ac_try;;
10419 esac
10420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10421   (eval "$ac_try") 2>&5
10422   ac_status=$?
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); }; } &&
10425          { ac_try='test -s conftest.$ac_objext'
10426   { (case "(($ac_try" in
10427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428   *) ac_try_echo=$ac_try;;
10429 esac
10430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10431   (eval "$ac_try") 2>&5
10432   ac_status=$?
10433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434   (exit $ac_status); }; }; then
10435   ac_cv_have_decl_getutent=yes
10436 else
10437   echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10439
10440         ac_cv_have_decl_getutent=no
10441 fi
10442
10443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10444 fi
10445 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
10446 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6; }
10447 if test $ac_cv_have_decl_getutent = yes; then
10448
10449 cat >>confdefs.h <<_ACEOF
10450 #define HAVE_DECL_GETUTENT 1
10451 _ACEOF
10452
10453
10454 else
10455   cat >>confdefs.h <<_ACEOF
10456 #define HAVE_DECL_GETUTENT 0
10457 _ACEOF
10458
10459
10460 fi
10461 { echo "$as_me:$LINENO: checking whether lseek is declared" >&5
10462 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" >&6; }
10463 if test "${ac_cv_have_decl_lseek+set}" = set; then
10464   echo $ECHO_N "(cached) $ECHO_C" >&6
10465 else
10466   cat >conftest.$ac_ext <<_ACEOF
10467 /* confdefs.h.  */
10468 _ACEOF
10469 cat confdefs.h >>conftest.$ac_ext
10470 cat >>conftest.$ac_ext <<_ACEOF
10471 /* end confdefs.h.  */
10472 $headers
10473
10474 int
10475 main ()
10476 {
10477 #ifndef lseek
10478   char *p = (char *) lseek;
10479   return !p;
10480 #endif
10481
10482   ;
10483   return 0;
10484 }
10485 _ACEOF
10486 rm -f conftest.$ac_objext
10487 if { (ac_try="$ac_compile"
10488 case "(($ac_try" in
10489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10490   *) ac_try_echo=$ac_try;;
10491 esac
10492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10493   (eval "$ac_compile") 2>conftest.er1
10494   ac_status=$?
10495   grep -v '^ *+' conftest.er1 >conftest.err
10496   rm -f conftest.er1
10497   cat conftest.err >&5
10498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499   (exit $ac_status); } &&
10500          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10501   { (case "(($ac_try" in
10502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10503   *) ac_try_echo=$ac_try;;
10504 esac
10505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10506   (eval "$ac_try") 2>&5
10507   ac_status=$?
10508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509   (exit $ac_status); }; } &&
10510          { ac_try='test -s conftest.$ac_objext'
10511   { (case "(($ac_try" in
10512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513   *) ac_try_echo=$ac_try;;
10514 esac
10515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516   (eval "$ac_try") 2>&5
10517   ac_status=$?
10518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519   (exit $ac_status); }; }; then
10520   ac_cv_have_decl_lseek=yes
10521 else
10522   echo "$as_me: failed program was:" >&5
10523 sed 's/^/| /' conftest.$ac_ext >&5
10524
10525         ac_cv_have_decl_lseek=no
10526 fi
10527
10528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10529 fi
10530 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek" >&5
10531 echo "${ECHO_T}$ac_cv_have_decl_lseek" >&6; }
10532 if test $ac_cv_have_decl_lseek = yes; then
10533
10534 cat >>confdefs.h <<_ACEOF
10535 #define HAVE_DECL_LSEEK 1
10536 _ACEOF
10537
10538
10539 else
10540   cat >>confdefs.h <<_ACEOF
10541 #define HAVE_DECL_LSEEK 0
10542 _ACEOF
10543
10544
10545 fi
10546 { echo "$as_me:$LINENO: checking whether malloc is declared" >&5
10547 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6; }
10548 if test "${ac_cv_have_decl_malloc+set}" = set; then
10549   echo $ECHO_N "(cached) $ECHO_C" >&6
10550 else
10551   cat >conftest.$ac_ext <<_ACEOF
10552 /* confdefs.h.  */
10553 _ACEOF
10554 cat confdefs.h >>conftest.$ac_ext
10555 cat >>conftest.$ac_ext <<_ACEOF
10556 /* end confdefs.h.  */
10557 $headers
10558
10559 int
10560 main ()
10561 {
10562 #ifndef malloc
10563   char *p = (char *) malloc;
10564   return !p;
10565 #endif
10566
10567   ;
10568   return 0;
10569 }
10570 _ACEOF
10571 rm -f conftest.$ac_objext
10572 if { (ac_try="$ac_compile"
10573 case "(($ac_try" in
10574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10575   *) ac_try_echo=$ac_try;;
10576 esac
10577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10578   (eval "$ac_compile") 2>conftest.er1
10579   ac_status=$?
10580   grep -v '^ *+' conftest.er1 >conftest.err
10581   rm -f conftest.er1
10582   cat conftest.err >&5
10583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584   (exit $ac_status); } &&
10585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10586   { (case "(($ac_try" in
10587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10588   *) ac_try_echo=$ac_try;;
10589 esac
10590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10591   (eval "$ac_try") 2>&5
10592   ac_status=$?
10593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594   (exit $ac_status); }; } &&
10595          { ac_try='test -s conftest.$ac_objext'
10596   { (case "(($ac_try" in
10597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10598   *) ac_try_echo=$ac_try;;
10599 esac
10600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10601   (eval "$ac_try") 2>&5
10602   ac_status=$?
10603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604   (exit $ac_status); }; }; then
10605   ac_cv_have_decl_malloc=yes
10606 else
10607   echo "$as_me: failed program was:" >&5
10608 sed 's/^/| /' conftest.$ac_ext >&5
10609
10610         ac_cv_have_decl_malloc=no
10611 fi
10612
10613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10614 fi
10615 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
10616 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6; }
10617 if test $ac_cv_have_decl_malloc = yes; then
10618
10619 cat >>confdefs.h <<_ACEOF
10620 #define HAVE_DECL_MALLOC 1
10621 _ACEOF
10622
10623
10624 else
10625   cat >>confdefs.h <<_ACEOF
10626 #define HAVE_DECL_MALLOC 0
10627 _ACEOF
10628
10629
10630 fi
10631 { echo "$as_me:$LINENO: checking whether memchr is declared" >&5
10632 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6; }
10633 if test "${ac_cv_have_decl_memchr+set}" = set; then
10634   echo $ECHO_N "(cached) $ECHO_C" >&6
10635 else
10636   cat >conftest.$ac_ext <<_ACEOF
10637 /* confdefs.h.  */
10638 _ACEOF
10639 cat confdefs.h >>conftest.$ac_ext
10640 cat >>conftest.$ac_ext <<_ACEOF
10641 /* end confdefs.h.  */
10642 $headers
10643
10644 int
10645 main ()
10646 {
10647 #ifndef memchr
10648   char *p = (char *) memchr;
10649   return !p;
10650 #endif
10651
10652   ;
10653   return 0;
10654 }
10655 _ACEOF
10656 rm -f conftest.$ac_objext
10657 if { (ac_try="$ac_compile"
10658 case "(($ac_try" in
10659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10660   *) ac_try_echo=$ac_try;;
10661 esac
10662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10663   (eval "$ac_compile") 2>conftest.er1
10664   ac_status=$?
10665   grep -v '^ *+' conftest.er1 >conftest.err
10666   rm -f conftest.er1
10667   cat conftest.err >&5
10668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669   (exit $ac_status); } &&
10670          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10671   { (case "(($ac_try" in
10672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10673   *) ac_try_echo=$ac_try;;
10674 esac
10675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10676   (eval "$ac_try") 2>&5
10677   ac_status=$?
10678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679   (exit $ac_status); }; } &&
10680          { ac_try='test -s conftest.$ac_objext'
10681   { (case "(($ac_try" in
10682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683   *) ac_try_echo=$ac_try;;
10684 esac
10685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10686   (eval "$ac_try") 2>&5
10687   ac_status=$?
10688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689   (exit $ac_status); }; }; then
10690   ac_cv_have_decl_memchr=yes
10691 else
10692   echo "$as_me: failed program was:" >&5
10693 sed 's/^/| /' conftest.$ac_ext >&5
10694
10695         ac_cv_have_decl_memchr=no
10696 fi
10697
10698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10699 fi
10700 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
10701 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6; }
10702 if test $ac_cv_have_decl_memchr = yes; then
10703
10704 cat >>confdefs.h <<_ACEOF
10705 #define HAVE_DECL_MEMCHR 1
10706 _ACEOF
10707
10708
10709 else
10710   cat >>confdefs.h <<_ACEOF
10711 #define HAVE_DECL_MEMCHR 0
10712 _ACEOF
10713
10714
10715 fi
10716 { echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
10717 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6; }
10718 if test "${ac_cv_have_decl_memrchr+set}" = set; then
10719   echo $ECHO_N "(cached) $ECHO_C" >&6
10720 else
10721   cat >conftest.$ac_ext <<_ACEOF
10722 /* confdefs.h.  */
10723 _ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h.  */
10727 $headers
10728
10729 int
10730 main ()
10731 {
10732 #ifndef memrchr
10733   char *p = (char *) memrchr;
10734   return !p;
10735 #endif
10736
10737   ;
10738   return 0;
10739 }
10740 _ACEOF
10741 rm -f conftest.$ac_objext
10742 if { (ac_try="$ac_compile"
10743 case "(($ac_try" in
10744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745   *) ac_try_echo=$ac_try;;
10746 esac
10747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748   (eval "$ac_compile") 2>conftest.er1
10749   ac_status=$?
10750   grep -v '^ *+' conftest.er1 >conftest.err
10751   rm -f conftest.er1
10752   cat conftest.err >&5
10753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754   (exit $ac_status); } &&
10755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10756   { (case "(($ac_try" in
10757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758   *) ac_try_echo=$ac_try;;
10759 esac
10760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10761   (eval "$ac_try") 2>&5
10762   ac_status=$?
10763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764   (exit $ac_status); }; } &&
10765          { ac_try='test -s conftest.$ac_objext'
10766   { (case "(($ac_try" in
10767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768   *) ac_try_echo=$ac_try;;
10769 esac
10770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771   (eval "$ac_try") 2>&5
10772   ac_status=$?
10773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774   (exit $ac_status); }; }; then
10775   ac_cv_have_decl_memrchr=yes
10776 else
10777   echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10779
10780         ac_cv_have_decl_memrchr=no
10781 fi
10782
10783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10784 fi
10785 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
10786 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6; }
10787 if test $ac_cv_have_decl_memrchr = yes; then
10788
10789 cat >>confdefs.h <<_ACEOF
10790 #define HAVE_DECL_MEMRCHR 1
10791 _ACEOF
10792
10793
10794 else
10795   cat >>confdefs.h <<_ACEOF
10796 #define HAVE_DECL_MEMRCHR 0
10797 _ACEOF
10798
10799
10800 fi
10801 { echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
10802 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6; }
10803 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
10804   echo $ECHO_N "(cached) $ECHO_C" >&6
10805 else
10806   cat >conftest.$ac_ext <<_ACEOF
10807 /* confdefs.h.  */
10808 _ACEOF
10809 cat confdefs.h >>conftest.$ac_ext
10810 cat >>conftest.$ac_ext <<_ACEOF
10811 /* end confdefs.h.  */
10812 $headers
10813
10814 int
10815 main ()
10816 {
10817 #ifndef nanosleep
10818   char *p = (char *) nanosleep;
10819   return !p;
10820 #endif
10821
10822   ;
10823   return 0;
10824 }
10825 _ACEOF
10826 rm -f conftest.$ac_objext
10827 if { (ac_try="$ac_compile"
10828 case "(($ac_try" in
10829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830   *) ac_try_echo=$ac_try;;
10831 esac
10832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833   (eval "$ac_compile") 2>conftest.er1
10834   ac_status=$?
10835   grep -v '^ *+' conftest.er1 >conftest.err
10836   rm -f conftest.er1
10837   cat conftest.err >&5
10838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839   (exit $ac_status); } &&
10840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10841   { (case "(($ac_try" in
10842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10843   *) ac_try_echo=$ac_try;;
10844 esac
10845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10846   (eval "$ac_try") 2>&5
10847   ac_status=$?
10848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849   (exit $ac_status); }; } &&
10850          { ac_try='test -s conftest.$ac_objext'
10851   { (case "(($ac_try" in
10852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853   *) ac_try_echo=$ac_try;;
10854 esac
10855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856   (eval "$ac_try") 2>&5
10857   ac_status=$?
10858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859   (exit $ac_status); }; }; then
10860   ac_cv_have_decl_nanosleep=yes
10861 else
10862   echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.$ac_ext >&5
10864
10865         ac_cv_have_decl_nanosleep=no
10866 fi
10867
10868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10869 fi
10870 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
10871 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6; }
10872 if test $ac_cv_have_decl_nanosleep = yes; then
10873
10874 cat >>confdefs.h <<_ACEOF
10875 #define HAVE_DECL_NANOSLEEP 1
10876 _ACEOF
10877
10878
10879 else
10880   cat >>confdefs.h <<_ACEOF
10881 #define HAVE_DECL_NANOSLEEP 0
10882 _ACEOF
10883
10884
10885 fi
10886 { echo "$as_me:$LINENO: checking whether realloc is declared" >&5
10887 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6; }
10888 if test "${ac_cv_have_decl_realloc+set}" = set; then
10889   echo $ECHO_N "(cached) $ECHO_C" >&6
10890 else
10891   cat >conftest.$ac_ext <<_ACEOF
10892 /* confdefs.h.  */
10893 _ACEOF
10894 cat confdefs.h >>conftest.$ac_ext
10895 cat >>conftest.$ac_ext <<_ACEOF
10896 /* end confdefs.h.  */
10897 $headers
10898
10899 int
10900 main ()
10901 {
10902 #ifndef realloc
10903   char *p = (char *) realloc;
10904   return !p;
10905 #endif
10906
10907   ;
10908   return 0;
10909 }
10910 _ACEOF
10911 rm -f conftest.$ac_objext
10912 if { (ac_try="$ac_compile"
10913 case "(($ac_try" in
10914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10915   *) ac_try_echo=$ac_try;;
10916 esac
10917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918   (eval "$ac_compile") 2>conftest.er1
10919   ac_status=$?
10920   grep -v '^ *+' conftest.er1 >conftest.err
10921   rm -f conftest.er1
10922   cat conftest.err >&5
10923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924   (exit $ac_status); } &&
10925          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10926   { (case "(($ac_try" in
10927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928   *) ac_try_echo=$ac_try;;
10929 esac
10930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10931   (eval "$ac_try") 2>&5
10932   ac_status=$?
10933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934   (exit $ac_status); }; } &&
10935          { ac_try='test -s conftest.$ac_objext'
10936   { (case "(($ac_try" in
10937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938   *) ac_try_echo=$ac_try;;
10939 esac
10940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10941   (eval "$ac_try") 2>&5
10942   ac_status=$?
10943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944   (exit $ac_status); }; }; then
10945   ac_cv_have_decl_realloc=yes
10946 else
10947   echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10949
10950         ac_cv_have_decl_realloc=no
10951 fi
10952
10953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10954 fi
10955 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
10956 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6; }
10957 if test $ac_cv_have_decl_realloc = yes; then
10958
10959 cat >>confdefs.h <<_ACEOF
10960 #define HAVE_DECL_REALLOC 1
10961 _ACEOF
10962
10963
10964 else
10965   cat >>confdefs.h <<_ACEOF
10966 #define HAVE_DECL_REALLOC 0
10967 _ACEOF
10968
10969
10970 fi
10971 { echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
10972 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6; }
10973 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
10974   echo $ECHO_N "(cached) $ECHO_C" >&6
10975 else
10976   cat >conftest.$ac_ext <<_ACEOF
10977 /* confdefs.h.  */
10978 _ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h.  */
10982 $headers
10983
10984 int
10985 main ()
10986 {
10987 #ifndef stpcpy
10988   char *p = (char *) stpcpy;
10989   return !p;
10990 #endif
10991
10992   ;
10993   return 0;
10994 }
10995 _ACEOF
10996 rm -f conftest.$ac_objext
10997 if { (ac_try="$ac_compile"
10998 case "(($ac_try" in
10999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000   *) ac_try_echo=$ac_try;;
11001 esac
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003   (eval "$ac_compile") 2>conftest.er1
11004   ac_status=$?
11005   grep -v '^ *+' conftest.er1 >conftest.err
11006   rm -f conftest.er1
11007   cat conftest.err >&5
11008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009   (exit $ac_status); } &&
11010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11011   { (case "(($ac_try" in
11012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013   *) ac_try_echo=$ac_try;;
11014 esac
11015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016   (eval "$ac_try") 2>&5
11017   ac_status=$?
11018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019   (exit $ac_status); }; } &&
11020          { ac_try='test -s conftest.$ac_objext'
11021   { (case "(($ac_try" in
11022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11023   *) ac_try_echo=$ac_try;;
11024 esac
11025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11026   (eval "$ac_try") 2>&5
11027   ac_status=$?
11028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029   (exit $ac_status); }; }; then
11030   ac_cv_have_decl_stpcpy=yes
11031 else
11032   echo "$as_me: failed program was:" >&5
11033 sed 's/^/| /' conftest.$ac_ext >&5
11034
11035         ac_cv_have_decl_stpcpy=no
11036 fi
11037
11038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11039 fi
11040 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
11041 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6; }
11042 if test $ac_cv_have_decl_stpcpy = yes; then
11043
11044 cat >>confdefs.h <<_ACEOF
11045 #define HAVE_DECL_STPCPY 1
11046 _ACEOF
11047
11048
11049 else
11050   cat >>confdefs.h <<_ACEOF
11051 #define HAVE_DECL_STPCPY 0
11052 _ACEOF
11053
11054
11055 fi
11056 { echo "$as_me:$LINENO: checking whether strndup is declared" >&5
11057 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6; }
11058 if test "${ac_cv_have_decl_strndup+set}" = set; then
11059   echo $ECHO_N "(cached) $ECHO_C" >&6
11060 else
11061   cat >conftest.$ac_ext <<_ACEOF
11062 /* confdefs.h.  */
11063 _ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h.  */
11067 $headers
11068
11069 int
11070 main ()
11071 {
11072 #ifndef strndup
11073   char *p = (char *) strndup;
11074   return !p;
11075 #endif
11076
11077   ;
11078   return 0;
11079 }
11080 _ACEOF
11081 rm -f conftest.$ac_objext
11082 if { (ac_try="$ac_compile"
11083 case "(($ac_try" in
11084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085   *) ac_try_echo=$ac_try;;
11086 esac
11087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088   (eval "$ac_compile") 2>conftest.er1
11089   ac_status=$?
11090   grep -v '^ *+' conftest.er1 >conftest.err
11091   rm -f conftest.er1
11092   cat conftest.err >&5
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); } &&
11095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11096   { (case "(($ac_try" in
11097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098   *) ac_try_echo=$ac_try;;
11099 esac
11100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11101   (eval "$ac_try") 2>&5
11102   ac_status=$?
11103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104   (exit $ac_status); }; } &&
11105          { ac_try='test -s conftest.$ac_objext'
11106   { (case "(($ac_try" in
11107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108   *) ac_try_echo=$ac_try;;
11109 esac
11110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111   (eval "$ac_try") 2>&5
11112   ac_status=$?
11113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114   (exit $ac_status); }; }; then
11115   ac_cv_have_decl_strndup=yes
11116 else
11117   echo "$as_me: failed program was:" >&5
11118 sed 's/^/| /' conftest.$ac_ext >&5
11119
11120         ac_cv_have_decl_strndup=no
11121 fi
11122
11123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11124 fi
11125 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
11126 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6; }
11127 if test $ac_cv_have_decl_strndup = yes; then
11128
11129 cat >>confdefs.h <<_ACEOF
11130 #define HAVE_DECL_STRNDUP 1
11131 _ACEOF
11132
11133
11134 else
11135   cat >>confdefs.h <<_ACEOF
11136 #define HAVE_DECL_STRNDUP 0
11137 _ACEOF
11138
11139
11140 fi
11141 { echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
11142 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6; }
11143 if test "${ac_cv_have_decl_strnlen+set}" = set; then
11144   echo $ECHO_N "(cached) $ECHO_C" >&6
11145 else
11146   cat >conftest.$ac_ext <<_ACEOF
11147 /* confdefs.h.  */
11148 _ACEOF
11149 cat confdefs.h >>conftest.$ac_ext
11150 cat >>conftest.$ac_ext <<_ACEOF
11151 /* end confdefs.h.  */
11152 $headers
11153
11154 int
11155 main ()
11156 {
11157 #ifndef strnlen
11158   char *p = (char *) strnlen;
11159   return !p;
11160 #endif
11161
11162   ;
11163   return 0;
11164 }
11165 _ACEOF
11166 rm -f conftest.$ac_objext
11167 if { (ac_try="$ac_compile"
11168 case "(($ac_try" in
11169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11170   *) ac_try_echo=$ac_try;;
11171 esac
11172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11173   (eval "$ac_compile") 2>conftest.er1
11174   ac_status=$?
11175   grep -v '^ *+' conftest.er1 >conftest.err
11176   rm -f conftest.er1
11177   cat conftest.err >&5
11178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179   (exit $ac_status); } &&
11180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11181   { (case "(($ac_try" in
11182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183   *) ac_try_echo=$ac_try;;
11184 esac
11185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186   (eval "$ac_try") 2>&5
11187   ac_status=$?
11188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189   (exit $ac_status); }; } &&
11190          { ac_try='test -s conftest.$ac_objext'
11191   { (case "(($ac_try" in
11192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193   *) ac_try_echo=$ac_try;;
11194 esac
11195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11196   (eval "$ac_try") 2>&5
11197   ac_status=$?
11198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199   (exit $ac_status); }; }; then
11200   ac_cv_have_decl_strnlen=yes
11201 else
11202   echo "$as_me: failed program was:" >&5
11203 sed 's/^/| /' conftest.$ac_ext >&5
11204
11205         ac_cv_have_decl_strnlen=no
11206 fi
11207
11208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11209 fi
11210 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
11211 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6; }
11212 if test $ac_cv_have_decl_strnlen = yes; then
11213
11214 cat >>confdefs.h <<_ACEOF
11215 #define HAVE_DECL_STRNLEN 1
11216 _ACEOF
11217
11218
11219 else
11220   cat >>confdefs.h <<_ACEOF
11221 #define HAVE_DECL_STRNLEN 0
11222 _ACEOF
11223
11224
11225 fi
11226 { echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11227 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6; }
11228 if test "${ac_cv_have_decl_strstr+set}" = set; then
11229   echo $ECHO_N "(cached) $ECHO_C" >&6
11230 else
11231   cat >conftest.$ac_ext <<_ACEOF
11232 /* confdefs.h.  */
11233 _ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h.  */
11237 $headers
11238
11239 int
11240 main ()
11241 {
11242 #ifndef strstr
11243   char *p = (char *) strstr;
11244   return !p;
11245 #endif
11246
11247   ;
11248   return 0;
11249 }
11250 _ACEOF
11251 rm -f conftest.$ac_objext
11252 if { (ac_try="$ac_compile"
11253 case "(($ac_try" in
11254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255   *) ac_try_echo=$ac_try;;
11256 esac
11257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258   (eval "$ac_compile") 2>conftest.er1
11259   ac_status=$?
11260   grep -v '^ *+' conftest.er1 >conftest.err
11261   rm -f conftest.er1
11262   cat conftest.err >&5
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); } &&
11265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11266   { (case "(($ac_try" in
11267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268   *) ac_try_echo=$ac_try;;
11269 esac
11270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271   (eval "$ac_try") 2>&5
11272   ac_status=$?
11273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274   (exit $ac_status); }; } &&
11275          { ac_try='test -s conftest.$ac_objext'
11276   { (case "(($ac_try" in
11277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278   *) ac_try_echo=$ac_try;;
11279 esac
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281   (eval "$ac_try") 2>&5
11282   ac_status=$?
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); }; }; then
11285   ac_cv_have_decl_strstr=yes
11286 else
11287   echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.$ac_ext >&5
11289
11290         ac_cv_have_decl_strstr=no
11291 fi
11292
11293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11294 fi
11295 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
11296 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6; }
11297 if test $ac_cv_have_decl_strstr = yes; then
11298
11299 cat >>confdefs.h <<_ACEOF
11300 #define HAVE_DECL_STRSTR 1
11301 _ACEOF
11302
11303
11304 else
11305   cat >>confdefs.h <<_ACEOF
11306 #define HAVE_DECL_STRSTR 0
11307 _ACEOF
11308
11309
11310 fi
11311 { echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
11312 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6; }
11313 if test "${ac_cv_have_decl_strtoul+set}" = set; then
11314   echo $ECHO_N "(cached) $ECHO_C" >&6
11315 else
11316   cat >conftest.$ac_ext <<_ACEOF
11317 /* confdefs.h.  */
11318 _ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h.  */
11322 $headers
11323
11324 int
11325 main ()
11326 {
11327 #ifndef strtoul
11328   char *p = (char *) strtoul;
11329   return !p;
11330 #endif
11331
11332   ;
11333   return 0;
11334 }
11335 _ACEOF
11336 rm -f conftest.$ac_objext
11337 if { (ac_try="$ac_compile"
11338 case "(($ac_try" in
11339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340   *) ac_try_echo=$ac_try;;
11341 esac
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343   (eval "$ac_compile") 2>conftest.er1
11344   ac_status=$?
11345   grep -v '^ *+' conftest.er1 >conftest.err
11346   rm -f conftest.er1
11347   cat conftest.err >&5
11348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349   (exit $ac_status); } &&
11350          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11351   { (case "(($ac_try" in
11352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353   *) ac_try_echo=$ac_try;;
11354 esac
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356   (eval "$ac_try") 2>&5
11357   ac_status=$?
11358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359   (exit $ac_status); }; } &&
11360          { ac_try='test -s conftest.$ac_objext'
11361   { (case "(($ac_try" in
11362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11363   *) ac_try_echo=$ac_try;;
11364 esac
11365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11366   (eval "$ac_try") 2>&5
11367   ac_status=$?
11368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369   (exit $ac_status); }; }; then
11370   ac_cv_have_decl_strtoul=yes
11371 else
11372   echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.$ac_ext >&5
11374
11375         ac_cv_have_decl_strtoul=no
11376 fi
11377
11378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11379 fi
11380 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
11381 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6; }
11382 if test $ac_cv_have_decl_strtoul = yes; then
11383
11384 cat >>confdefs.h <<_ACEOF
11385 #define HAVE_DECL_STRTOUL 1
11386 _ACEOF
11387
11388
11389 else
11390   cat >>confdefs.h <<_ACEOF
11391 #define HAVE_DECL_STRTOUL 0
11392 _ACEOF
11393
11394
11395 fi
11396 { echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
11397 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6; }
11398 if test "${ac_cv_have_decl_strtoull+set}" = set; then
11399   echo $ECHO_N "(cached) $ECHO_C" >&6
11400 else
11401   cat >conftest.$ac_ext <<_ACEOF
11402 /* confdefs.h.  */
11403 _ACEOF
11404 cat confdefs.h >>conftest.$ac_ext
11405 cat >>conftest.$ac_ext <<_ACEOF
11406 /* end confdefs.h.  */
11407 $headers
11408
11409 int
11410 main ()
11411 {
11412 #ifndef strtoull
11413   char *p = (char *) strtoull;
11414   return !p;
11415 #endif
11416
11417   ;
11418   return 0;
11419 }
11420 _ACEOF
11421 rm -f conftest.$ac_objext
11422 if { (ac_try="$ac_compile"
11423 case "(($ac_try" in
11424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425   *) ac_try_echo=$ac_try;;
11426 esac
11427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11428   (eval "$ac_compile") 2>conftest.er1
11429   ac_status=$?
11430   grep -v '^ *+' conftest.er1 >conftest.err
11431   rm -f conftest.er1
11432   cat conftest.err >&5
11433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434   (exit $ac_status); } &&
11435          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11436   { (case "(($ac_try" in
11437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438   *) ac_try_echo=$ac_try;;
11439 esac
11440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11441   (eval "$ac_try") 2>&5
11442   ac_status=$?
11443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444   (exit $ac_status); }; } &&
11445          { ac_try='test -s conftest.$ac_objext'
11446   { (case "(($ac_try" in
11447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448   *) ac_try_echo=$ac_try;;
11449 esac
11450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451   (eval "$ac_try") 2>&5
11452   ac_status=$?
11453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454   (exit $ac_status); }; }; then
11455   ac_cv_have_decl_strtoull=yes
11456 else
11457   echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11459
11460         ac_cv_have_decl_strtoull=no
11461 fi
11462
11463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11464 fi
11465 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
11466 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6; }
11467 if test $ac_cv_have_decl_strtoull = yes; then
11468
11469 cat >>confdefs.h <<_ACEOF
11470 #define HAVE_DECL_STRTOULL 1
11471 _ACEOF
11472
11473
11474 else
11475   cat >>confdefs.h <<_ACEOF
11476 #define HAVE_DECL_STRTOULL 0
11477 _ACEOF
11478
11479
11480 fi
11481 { echo "$as_me:$LINENO: checking whether ttyname is declared" >&5
11482 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" >&6; }
11483 if test "${ac_cv_have_decl_ttyname+set}" = set; then
11484   echo $ECHO_N "(cached) $ECHO_C" >&6
11485 else
11486   cat >conftest.$ac_ext <<_ACEOF
11487 /* confdefs.h.  */
11488 _ACEOF
11489 cat confdefs.h >>conftest.$ac_ext
11490 cat >>conftest.$ac_ext <<_ACEOF
11491 /* end confdefs.h.  */
11492 $headers
11493
11494 int
11495 main ()
11496 {
11497 #ifndef ttyname
11498   char *p = (char *) ttyname;
11499   return !p;
11500 #endif
11501
11502   ;
11503   return 0;
11504 }
11505 _ACEOF
11506 rm -f conftest.$ac_objext
11507 if { (ac_try="$ac_compile"
11508 case "(($ac_try" in
11509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510   *) ac_try_echo=$ac_try;;
11511 esac
11512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11513   (eval "$ac_compile") 2>conftest.er1
11514   ac_status=$?
11515   grep -v '^ *+' conftest.er1 >conftest.err
11516   rm -f conftest.er1
11517   cat conftest.err >&5
11518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519   (exit $ac_status); } &&
11520          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11521   { (case "(($ac_try" in
11522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11523   *) ac_try_echo=$ac_try;;
11524 esac
11525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11526   (eval "$ac_try") 2>&5
11527   ac_status=$?
11528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529   (exit $ac_status); }; } &&
11530          { ac_try='test -s conftest.$ac_objext'
11531   { (case "(($ac_try" in
11532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11533   *) ac_try_echo=$ac_try;;
11534 esac
11535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11536   (eval "$ac_try") 2>&5
11537   ac_status=$?
11538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539   (exit $ac_status); }; }; then
11540   ac_cv_have_decl_ttyname=yes
11541 else
11542   echo "$as_me: failed program was:" >&5
11543 sed 's/^/| /' conftest.$ac_ext >&5
11544
11545         ac_cv_have_decl_ttyname=no
11546 fi
11547
11548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11549 fi
11550 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ttyname" >&5
11551 echo "${ECHO_T}$ac_cv_have_decl_ttyname" >&6; }
11552 if test $ac_cv_have_decl_ttyname = yes; then
11553
11554 cat >>confdefs.h <<_ACEOF
11555 #define HAVE_DECL_TTYNAME 1
11556 _ACEOF
11557
11558
11559 else
11560   cat >>confdefs.h <<_ACEOF
11561 #define HAVE_DECL_TTYNAME 0
11562 _ACEOF
11563
11564
11565 fi
11566
11567
11568
11569   { echo "$as_me:$LINENO: checking whether isblank is declared" >&5
11570 echo $ECHO_N "checking whether isblank is declared... $ECHO_C" >&6; }
11571 if test "${ac_cv_have_decl_isblank+set}" = set; then
11572   echo $ECHO_N "(cached) $ECHO_C" >&6
11573 else
11574   cat >conftest.$ac_ext <<_ACEOF
11575 /* confdefs.h.  */
11576 _ACEOF
11577 cat confdefs.h >>conftest.$ac_ext
11578 cat >>conftest.$ac_ext <<_ACEOF
11579 /* end confdefs.h.  */
11580 #include <ctype.h>
11581
11582 int
11583 main ()
11584 {
11585 #ifndef isblank
11586   char *p = (char *) isblank;
11587   return !p;
11588 #endif
11589
11590   ;
11591   return 0;
11592 }
11593 _ACEOF
11594 rm -f conftest.$ac_objext
11595 if { (ac_try="$ac_compile"
11596 case "(($ac_try" in
11597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11598   *) ac_try_echo=$ac_try;;
11599 esac
11600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11601   (eval "$ac_compile") 2>conftest.er1
11602   ac_status=$?
11603   grep -v '^ *+' conftest.er1 >conftest.err
11604   rm -f conftest.er1
11605   cat conftest.err >&5
11606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607   (exit $ac_status); } &&
11608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11609   { (case "(($ac_try" in
11610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611   *) ac_try_echo=$ac_try;;
11612 esac
11613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11614   (eval "$ac_try") 2>&5
11615   ac_status=$?
11616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617   (exit $ac_status); }; } &&
11618          { ac_try='test -s conftest.$ac_objext'
11619   { (case "(($ac_try" in
11620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11621   *) ac_try_echo=$ac_try;;
11622 esac
11623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11624   (eval "$ac_try") 2>&5
11625   ac_status=$?
11626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627   (exit $ac_status); }; }; then
11628   ac_cv_have_decl_isblank=yes
11629 else
11630   echo "$as_me: failed program was:" >&5
11631 sed 's/^/| /' conftest.$ac_ext >&5
11632
11633         ac_cv_have_decl_isblank=no
11634 fi
11635
11636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11637 fi
11638 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
11639 echo "${ECHO_T}$ac_cv_have_decl_isblank" >&6; }
11640 if test $ac_cv_have_decl_isblank = yes; then
11641
11642 cat >>confdefs.h <<_ACEOF
11643 #define HAVE_DECL_ISBLANK 1
11644 _ACEOF
11645
11646
11647 else
11648   cat >>confdefs.h <<_ACEOF
11649 #define HAVE_DECL_ISBLANK 0
11650 _ACEOF
11651
11652
11653 fi
11654
11655
11656
11657 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
11658 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
11659 if test "${ac_cv_header_stdbool_h+set}" = set; then
11660   echo $ECHO_N "(cached) $ECHO_C" >&6
11661 else
11662   cat >conftest.$ac_ext <<_ACEOF
11663 /* confdefs.h.  */
11664 _ACEOF
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h.  */
11668
11669           #include <stdbool.h>
11670           #ifndef bool
11671            "error: bool is not defined"
11672           #endif
11673           #ifndef false
11674            "error: false is not defined"
11675           #endif
11676           #if false
11677            "error: false is not 0"
11678           #endif
11679           #ifndef true
11680            "error: true is not defined"
11681           #endif
11682           #if true != 1
11683            "error: true is not 1"
11684           #endif
11685           #ifndef __bool_true_false_are_defined
11686            "error: __bool_true_false_are_defined is not defined"
11687           #endif
11688
11689           struct s { _Bool s: 1; _Bool t; } s;
11690
11691           char a[true == 1 ? 1 : -1];
11692           char b[false == 0 ? 1 : -1];
11693           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11694           char d[(bool) 0.5 == true ? 1 : -1];
11695           bool e = &s;
11696           char f[(_Bool) 0.0 == false ? 1 : -1];
11697           char g[true];
11698           char h[sizeof (_Bool)];
11699           char i[sizeof s.t];
11700           enum { j = false, k = true, l = false * true, m = true * 256 };
11701           _Bool n[m];
11702           char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11703           char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11704           #if defined __xlc__ || defined __GNUC__
11705            /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
11706               reported by James Lemley on 2005-10-05; see
11707               http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
11708               This test is not quite right, since xlc is allowed to
11709               reject this program, as the initializer for xlcbug is
11710               not one of the forms that C requires support for.
11711               However, doing the test right would require a run-time
11712               test, and that would make cross-compilation harder.
11713               Let us hope that IBM fixes the xlc bug, and also adds
11714               support for this kind of constant expression.  In the
11715               meantime, this test will reject xlc, which is OK, since
11716               our stdbool.h substitute should suffice.  We also test
11717               this with GCC, where it should work, to detect more
11718               quickly whether someone messes up the test in the
11719               future.  */
11720            char digs[] = "0123456789";
11721            int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
11722           #endif
11723           /* Catch a bug in an HP-UX C compiler.  See
11724              http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11725              http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11726            */
11727           _Bool q = true;
11728           _Bool *pq = &q;
11729
11730 int
11731 main ()
11732 {
11733
11734           *pq |= q;
11735           *pq |= ! q;
11736           /* Refer to every declared value, to avoid compiler optimizations.  */
11737           return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11738                   + !m + !n + !o + !p + !q + !pq);
11739
11740   ;
11741   return 0;
11742 }
11743 _ACEOF
11744 rm -f conftest.$ac_objext
11745 if { (ac_try="$ac_compile"
11746 case "(($ac_try" in
11747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748   *) ac_try_echo=$ac_try;;
11749 esac
11750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751   (eval "$ac_compile") 2>conftest.er1
11752   ac_status=$?
11753   grep -v '^ *+' conftest.er1 >conftest.err
11754   rm -f conftest.er1
11755   cat conftest.err >&5
11756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757   (exit $ac_status); } &&
11758          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11759   { (case "(($ac_try" in
11760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11761   *) ac_try_echo=$ac_try;;
11762 esac
11763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11764   (eval "$ac_try") 2>&5
11765   ac_status=$?
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); }; } &&
11768          { ac_try='test -s conftest.$ac_objext'
11769   { (case "(($ac_try" in
11770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11771   *) ac_try_echo=$ac_try;;
11772 esac
11773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11774   (eval "$ac_try") 2>&5
11775   ac_status=$?
11776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); }; }; then
11778   ac_cv_header_stdbool_h=yes
11779 else
11780   echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11782
11783         ac_cv_header_stdbool_h=no
11784 fi
11785
11786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11787 fi
11788 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
11789 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
11790    { echo "$as_me:$LINENO: checking for _Bool" >&5
11791 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11792 if test "${ac_cv_type__Bool+set}" = set; then
11793   echo $ECHO_N "(cached) $ECHO_C" >&6
11794 else
11795   cat >conftest.$ac_ext <<_ACEOF
11796 /* confdefs.h.  */
11797 _ACEOF
11798 cat confdefs.h >>conftest.$ac_ext
11799 cat >>conftest.$ac_ext <<_ACEOF
11800 /* end confdefs.h.  */
11801 $ac_includes_default
11802 typedef _Bool ac__type_new_;
11803 int
11804 main ()
11805 {
11806 if ((ac__type_new_ *) 0)
11807   return 0;
11808 if (sizeof (ac__type_new_))
11809   return 0;
11810   ;
11811   return 0;
11812 }
11813 _ACEOF
11814 rm -f conftest.$ac_objext
11815 if { (ac_try="$ac_compile"
11816 case "(($ac_try" in
11817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818   *) ac_try_echo=$ac_try;;
11819 esac
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821   (eval "$ac_compile") 2>conftest.er1
11822   ac_status=$?
11823   grep -v '^ *+' conftest.er1 >conftest.err
11824   rm -f conftest.er1
11825   cat conftest.err >&5
11826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827   (exit $ac_status); } &&
11828          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11829   { (case "(($ac_try" in
11830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831   *) ac_try_echo=$ac_try;;
11832 esac
11833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834   (eval "$ac_try") 2>&5
11835   ac_status=$?
11836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837   (exit $ac_status); }; } &&
11838          { ac_try='test -s conftest.$ac_objext'
11839   { (case "(($ac_try" in
11840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841   *) ac_try_echo=$ac_try;;
11842 esac
11843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11844   (eval "$ac_try") 2>&5
11845   ac_status=$?
11846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847   (exit $ac_status); }; }; then
11848   ac_cv_type__Bool=yes
11849 else
11850   echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.$ac_ext >&5
11852
11853         ac_cv_type__Bool=no
11854 fi
11855
11856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11857 fi
11858 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11859 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11860 if test $ac_cv_type__Bool = yes; then
11861
11862 cat >>confdefs.h <<_ACEOF
11863 #define HAVE__BOOL 1
11864 _ACEOF
11865
11866
11867 fi
11868
11869    if test $ac_cv_header_stdbool_h = yes; then
11870
11871 cat >>confdefs.h <<\_ACEOF
11872 #define HAVE_STDBOOL_H 1
11873 _ACEOF
11874
11875    fi
11876
11877
11878
11879   # Define two additional variables used in the Makefile substitution.
11880
11881   if test "$ac_cv_header_stdbool_h" = yes; then
11882     STDBOOL_H=''
11883   else
11884     STDBOOL_H='stdbool.h'
11885   fi
11886
11887
11888   if test "$ac_cv_type__Bool" = yes; then
11889     HAVE__BOOL=1
11890   else
11891     HAVE__BOOL=0
11892   fi
11893
11894
11895 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11896 # for constant arguments.  Useless!
11897 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
11898 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
11899 if test "${ac_cv_working_alloca_h+set}" = set; then
11900   echo $ECHO_N "(cached) $ECHO_C" >&6
11901 else
11902   cat >conftest.$ac_ext <<_ACEOF
11903 /* confdefs.h.  */
11904 _ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h.  */
11908 #include <alloca.h>
11909 int
11910 main ()
11911 {
11912 char *p = (char *) alloca (2 * sizeof (int));
11913                           if (p) return 0;
11914   ;
11915   return 0;
11916 }
11917 _ACEOF
11918 rm -f conftest.$ac_objext conftest$ac_exeext
11919 if { (ac_try="$ac_link"
11920 case "(($ac_try" in
11921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922   *) ac_try_echo=$ac_try;;
11923 esac
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925   (eval "$ac_link") 2>conftest.er1
11926   ac_status=$?
11927   grep -v '^ *+' conftest.er1 >conftest.err
11928   rm -f conftest.er1
11929   cat conftest.err >&5
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); } &&
11932          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11933   { (case "(($ac_try" in
11934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935   *) ac_try_echo=$ac_try;;
11936 esac
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938   (eval "$ac_try") 2>&5
11939   ac_status=$?
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); }; } &&
11942          { ac_try='test -s conftest$ac_exeext'
11943   { (case "(($ac_try" in
11944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945   *) ac_try_echo=$ac_try;;
11946 esac
11947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948   (eval "$ac_try") 2>&5
11949   ac_status=$?
11950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951   (exit $ac_status); }; }; then
11952   ac_cv_working_alloca_h=yes
11953 else
11954   echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11956
11957         ac_cv_working_alloca_h=no
11958 fi
11959
11960 rm -f core conftest.err conftest.$ac_objext \
11961       conftest$ac_exeext conftest.$ac_ext
11962 fi
11963 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11964 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
11965 if test $ac_cv_working_alloca_h = yes; then
11966
11967 cat >>confdefs.h <<\_ACEOF
11968 #define HAVE_ALLOCA_H 1
11969 _ACEOF
11970
11971 fi
11972
11973 { echo "$as_me:$LINENO: checking for alloca" >&5
11974 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
11975 if test "${ac_cv_func_alloca_works+set}" = set; then
11976   echo $ECHO_N "(cached) $ECHO_C" >&6
11977 else
11978   cat >conftest.$ac_ext <<_ACEOF
11979 /* confdefs.h.  */
11980 _ACEOF
11981 cat confdefs.h >>conftest.$ac_ext
11982 cat >>conftest.$ac_ext <<_ACEOF
11983 /* end confdefs.h.  */
11984 #ifdef __GNUC__
11985 # define alloca __builtin_alloca
11986 #else
11987 # ifdef _MSC_VER
11988 #  include <malloc.h>
11989 #  define alloca _alloca
11990 # else
11991 #  if HAVE_ALLOCA_H
11992 #   include <alloca.h>
11993 #  else
11994 #   ifdef _AIX
11995  #pragma alloca
11996 #   else
11997 #    ifndef alloca /* predefined by HP cc +Olibcalls */
11998 char *alloca ();
11999 #    endif
12000 #   endif
12001 #  endif
12002 # endif
12003 #endif
12004
12005 int
12006 main ()
12007 {
12008 char *p = (char *) alloca (1);
12009                                     if (p) return 0;
12010   ;
12011   return 0;
12012 }
12013 _ACEOF
12014 rm -f conftest.$ac_objext conftest$ac_exeext
12015 if { (ac_try="$ac_link"
12016 case "(($ac_try" in
12017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018   *) ac_try_echo=$ac_try;;
12019 esac
12020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021   (eval "$ac_link") 2>conftest.er1
12022   ac_status=$?
12023   grep -v '^ *+' conftest.er1 >conftest.err
12024   rm -f conftest.er1
12025   cat conftest.err >&5
12026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027   (exit $ac_status); } &&
12028          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12029   { (case "(($ac_try" in
12030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031   *) ac_try_echo=$ac_try;;
12032 esac
12033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034   (eval "$ac_try") 2>&5
12035   ac_status=$?
12036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037   (exit $ac_status); }; } &&
12038          { ac_try='test -s conftest$ac_exeext'
12039   { (case "(($ac_try" in
12040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041   *) ac_try_echo=$ac_try;;
12042 esac
12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044   (eval "$ac_try") 2>&5
12045   ac_status=$?
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); }; }; then
12048   ac_cv_func_alloca_works=yes
12049 else
12050   echo "$as_me: failed program was:" >&5
12051 sed 's/^/| /' conftest.$ac_ext >&5
12052
12053         ac_cv_func_alloca_works=no
12054 fi
12055
12056 rm -f core conftest.err conftest.$ac_objext \
12057       conftest$ac_exeext conftest.$ac_ext
12058 fi
12059 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12060 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
12061
12062 if test $ac_cv_func_alloca_works = yes; then
12063
12064 cat >>confdefs.h <<\_ACEOF
12065 #define HAVE_ALLOCA 1
12066 _ACEOF
12067
12068 else
12069   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12070 # that cause trouble.  Some versions do not even contain alloca or
12071 # contain a buggy version.  If you still want to use their alloca,
12072 # use ar to extract alloca.o from them instead of compiling alloca.c.
12073
12074 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12075
12076 cat >>confdefs.h <<\_ACEOF
12077 #define C_ALLOCA 1
12078 _ACEOF
12079
12080
12081 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12082 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
12083 if test "${ac_cv_os_cray+set}" = set; then
12084   echo $ECHO_N "(cached) $ECHO_C" >&6
12085 else
12086   cat >conftest.$ac_ext <<_ACEOF
12087 /* confdefs.h.  */
12088 _ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h.  */
12092 #if defined CRAY && ! defined CRAY2
12093 webecray
12094 #else
12095 wenotbecray
12096 #endif
12097
12098 _ACEOF
12099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12100   $EGREP "webecray" >/dev/null 2>&1; then
12101   ac_cv_os_cray=yes
12102 else
12103   ac_cv_os_cray=no
12104 fi
12105 rm -f conftest*
12106
12107 fi
12108 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12109 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
12110 if test $ac_cv_os_cray = yes; then
12111   for ac_func in _getb67 GETB67 getb67; do
12112     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12113 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12116   echo $ECHO_N "(cached) $ECHO_C" >&6
12117 else
12118   cat >conftest.$ac_ext <<_ACEOF
12119 /* confdefs.h.  */
12120 _ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h.  */
12124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12126 #define $ac_func innocuous_$ac_func
12127
12128 /* System header to define __stub macros and hopefully few prototypes,
12129     which can conflict with char $ac_func (); below.
12130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12131     <limits.h> exists even on freestanding compilers.  */
12132
12133 #ifdef __STDC__
12134 # include <limits.h>
12135 #else
12136 # include <assert.h>
12137 #endif
12138
12139 #undef $ac_func
12140
12141 /* Override any GCC internal prototype to avoid an error.
12142    Use char because int might match the return type of a GCC
12143    builtin and then its argument prototype would still apply.  */
12144 #ifdef __cplusplus
12145 extern "C"
12146 #endif
12147 char $ac_func ();
12148 /* The GNU C library defines this for functions which it implements
12149     to always fail with ENOSYS.  Some functions are actually named
12150     something starting with __ and the normal name is an alias.  */
12151 #if defined __stub_$ac_func || defined __stub___$ac_func
12152 choke me
12153 #endif
12154
12155 int
12156 main ()
12157 {
12158 return $ac_func ();
12159   ;
12160   return 0;
12161 }
12162 _ACEOF
12163 rm -f conftest.$ac_objext conftest$ac_exeext
12164 if { (ac_try="$ac_link"
12165 case "(($ac_try" in
12166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167   *) ac_try_echo=$ac_try;;
12168 esac
12169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170   (eval "$ac_link") 2>conftest.er1
12171   ac_status=$?
12172   grep -v '^ *+' conftest.er1 >conftest.err
12173   rm -f conftest.er1
12174   cat conftest.err >&5
12175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176   (exit $ac_status); } &&
12177          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12178   { (case "(($ac_try" in
12179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12180   *) ac_try_echo=$ac_try;;
12181 esac
12182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12183   (eval "$ac_try") 2>&5
12184   ac_status=$?
12185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186   (exit $ac_status); }; } &&
12187          { ac_try='test -s conftest$ac_exeext'
12188   { (case "(($ac_try" in
12189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190   *) ac_try_echo=$ac_try;;
12191 esac
12192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193   (eval "$ac_try") 2>&5
12194   ac_status=$?
12195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196   (exit $ac_status); }; }; then
12197   eval "$as_ac_var=yes"
12198 else
12199   echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12201
12202         eval "$as_ac_var=no"
12203 fi
12204
12205 rm -f core conftest.err conftest.$ac_objext \
12206       conftest$ac_exeext conftest.$ac_ext
12207 fi
12208 ac_res=`eval echo '${'$as_ac_var'}'`
12209                { echo "$as_me:$LINENO: result: $ac_res" >&5
12210 echo "${ECHO_T}$ac_res" >&6; }
12211 if test `eval echo '${'$as_ac_var'}'` = yes; then
12212
12213 cat >>confdefs.h <<_ACEOF
12214 #define CRAY_STACKSEG_END $ac_func
12215 _ACEOF
12216
12217     break
12218 fi
12219
12220   done
12221 fi
12222
12223 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12224 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
12225 if test "${ac_cv_c_stack_direction+set}" = set; then
12226   echo $ECHO_N "(cached) $ECHO_C" >&6
12227 else
12228   if test "$cross_compiling" = yes; then
12229   ac_cv_c_stack_direction=0
12230 else
12231   cat >conftest.$ac_ext <<_ACEOF
12232 /* confdefs.h.  */
12233 _ACEOF
12234 cat confdefs.h >>conftest.$ac_ext
12235 cat >>conftest.$ac_ext <<_ACEOF
12236 /* end confdefs.h.  */
12237 $ac_includes_default
12238 int
12239 find_stack_direction ()
12240 {
12241   static char *addr = 0;
12242   auto char dummy;
12243   if (addr == 0)
12244     {
12245       addr = &dummy;
12246       return find_stack_direction ();
12247     }
12248   else
12249     return (&dummy > addr) ? 1 : -1;
12250 }
12251
12252 int
12253 main ()
12254 {
12255   return find_stack_direction () < 0;
12256 }
12257 _ACEOF
12258 rm -f conftest$ac_exeext
12259 if { (ac_try="$ac_link"
12260 case "(($ac_try" in
12261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262   *) ac_try_echo=$ac_try;;
12263 esac
12264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265   (eval "$ac_link") 2>&5
12266   ac_status=$?
12267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12269   { (case "(($ac_try" in
12270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271   *) ac_try_echo=$ac_try;;
12272 esac
12273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274   (eval "$ac_try") 2>&5
12275   ac_status=$?
12276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277   (exit $ac_status); }; }; then
12278   ac_cv_c_stack_direction=1
12279 else
12280   echo "$as_me: program exited with status $ac_status" >&5
12281 echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12283
12284 ( exit $ac_status )
12285 ac_cv_c_stack_direction=-1
12286 fi
12287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12288 fi
12289
12290
12291 fi
12292 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12293 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
12294
12295 cat >>confdefs.h <<_ACEOF
12296 #define STACK_DIRECTION $ac_cv_c_stack_direction
12297 _ACEOF
12298
12299
12300 fi
12301
12302
12303
12304
12305
12306
12307   if test $ac_cv_func_alloca_works = no; then
12308     :
12309   fi
12310
12311   # Define an additional variable used in the Makefile substitution.
12312   if test $ac_cv_working_alloca_h = yes; then
12313     cat >conftest.$ac_ext <<_ACEOF
12314 /* confdefs.h.  */
12315 _ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h.  */
12319
12320 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
12321         Need own alloca
12322 #endif
12323
12324 _ACEOF
12325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12326   $EGREP "Need own alloca" >/dev/null 2>&1; then
12327
12328 cat >>confdefs.h <<\_ACEOF
12329 #define HAVE_ALLOCA 1
12330 _ACEOF
12331
12332        ALLOCA_H=alloca.h
12333 else
12334   ALLOCA_H=
12335 fi
12336 rm -f conftest*
12337
12338   else
12339     ALLOCA_H=alloca.h
12340   fi
12341
12342
12343
12344 cat >>confdefs.h <<\_ACEOF
12345 #define HAVE_ALLOCA_H 1
12346 _ACEOF
12347
12348
12349
12350
12351 for ac_header in stdlib.h
12352 do
12353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12355   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12358   echo $ECHO_N "(cached) $ECHO_C" >&6
12359 fi
12360 ac_res=`eval echo '${'$as_ac_Header'}'`
12361                { echo "$as_me:$LINENO: result: $ac_res" >&5
12362 echo "${ECHO_T}$ac_res" >&6; }
12363 else
12364   # Is the header compilable?
12365 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12367 cat >conftest.$ac_ext <<_ACEOF
12368 /* confdefs.h.  */
12369 _ACEOF
12370 cat confdefs.h >>conftest.$ac_ext
12371 cat >>conftest.$ac_ext <<_ACEOF
12372 /* end confdefs.h.  */
12373 $ac_includes_default
12374 #include <$ac_header>
12375 _ACEOF
12376 rm -f conftest.$ac_objext
12377 if { (ac_try="$ac_compile"
12378 case "(($ac_try" in
12379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380   *) ac_try_echo=$ac_try;;
12381 esac
12382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12383   (eval "$ac_compile") 2>conftest.er1
12384   ac_status=$?
12385   grep -v '^ *+' conftest.er1 >conftest.err
12386   rm -f conftest.er1
12387   cat conftest.err >&5
12388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389   (exit $ac_status); } &&
12390          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12391   { (case "(($ac_try" in
12392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12393   *) ac_try_echo=$ac_try;;
12394 esac
12395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12396   (eval "$ac_try") 2>&5
12397   ac_status=$?
12398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399   (exit $ac_status); }; } &&
12400          { ac_try='test -s conftest.$ac_objext'
12401   { (case "(($ac_try" in
12402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12403   *) ac_try_echo=$ac_try;;
12404 esac
12405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12406   (eval "$ac_try") 2>&5
12407   ac_status=$?
12408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409   (exit $ac_status); }; }; then
12410   ac_header_compiler=yes
12411 else
12412   echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12414
12415         ac_header_compiler=no
12416 fi
12417
12418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12420 echo "${ECHO_T}$ac_header_compiler" >&6; }
12421
12422 # Is the header present?
12423 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12425 cat >conftest.$ac_ext <<_ACEOF
12426 /* confdefs.h.  */
12427 _ACEOF
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h.  */
12431 #include <$ac_header>
12432 _ACEOF
12433 if { (ac_try="$ac_cpp conftest.$ac_ext"
12434 case "(($ac_try" in
12435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436   *) ac_try_echo=$ac_try;;
12437 esac
12438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12439   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12440   ac_status=$?
12441   grep -v '^ *+' conftest.er1 >conftest.err
12442   rm -f conftest.er1
12443   cat conftest.err >&5
12444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445   (exit $ac_status); } >/dev/null; then
12446   if test -s conftest.err; then
12447     ac_cpp_err=$ac_c_preproc_warn_flag
12448     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12449   else
12450     ac_cpp_err=
12451   fi
12452 else
12453   ac_cpp_err=yes
12454 fi
12455 if test -z "$ac_cpp_err"; then
12456   ac_header_preproc=yes
12457 else
12458   echo "$as_me: failed program was:" >&5
12459 sed 's/^/| /' conftest.$ac_ext >&5
12460
12461   ac_header_preproc=no
12462 fi
12463
12464 rm -f conftest.err conftest.$ac_ext
12465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12466 echo "${ECHO_T}$ac_header_preproc" >&6; }
12467
12468 # So?  What about this header?
12469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12470   yes:no: )
12471     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12475     ac_header_preproc=yes
12476     ;;
12477   no:yes:* )
12478     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12480     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12481 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12482     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12484     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12485 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12486     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12488     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12490     ( cat <<\_ASBOX
12491 ## ------------------------------------ ##
12492 ## Report this to bug-coreutils@gnu.org ##
12493 ## ------------------------------------ ##
12494 _ASBOX
12495      ) | sed "s/^/$as_me: WARNING:     /" >&2
12496     ;;
12497 esac
12498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12501   echo $ECHO_N "(cached) $ECHO_C" >&6
12502 else
12503   eval "$as_ac_Header=\$ac_header_preproc"
12504 fi
12505 ac_res=`eval echo '${'$as_ac_Header'}'`
12506                { echo "$as_me:$LINENO: result: $ac_res" >&5
12507 echo "${ECHO_T}$ac_res" >&6; }
12508
12509 fi
12510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12511   cat >>confdefs.h <<_ACEOF
12512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12513 _ACEOF
12514
12515 fi
12516
12517 done
12518
12519 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
12520 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
12521 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
12522   echo $ECHO_N "(cached) $ECHO_C" >&6
12523 else
12524   if test "$cross_compiling" = yes; then
12525   ac_cv_func_malloc_0_nonnull=no
12526 else
12527   cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h.  */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h.  */
12533 #if STDC_HEADERS || HAVE_STDLIB_H
12534 # include <stdlib.h>
12535 #else
12536 char *malloc ();
12537 #endif
12538
12539 int
12540 main ()
12541 {
12542 return ! malloc (0);
12543   ;
12544   return 0;
12545 }
12546 _ACEOF
12547 rm -f conftest$ac_exeext
12548 if { (ac_try="$ac_link"
12549 case "(($ac_try" in
12550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551   *) ac_try_echo=$ac_try;;
12552 esac
12553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12554   (eval "$ac_link") 2>&5
12555   ac_status=$?
12556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12558   { (case "(($ac_try" in
12559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560   *) ac_try_echo=$ac_try;;
12561 esac
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563   (eval "$ac_try") 2>&5
12564   ac_status=$?
12565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566   (exit $ac_status); }; }; then
12567   ac_cv_func_malloc_0_nonnull=yes
12568 else
12569   echo "$as_me: program exited with status $ac_status" >&5
12570 echo "$as_me: failed program was:" >&5
12571 sed 's/^/| /' conftest.$ac_ext >&5
12572
12573 ( exit $ac_status )
12574 ac_cv_func_malloc_0_nonnull=no
12575 fi
12576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12577 fi
12578
12579
12580 fi
12581 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
12582 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
12583 if test $ac_cv_func_malloc_0_nonnull = yes; then
12584   gl_cv_func_malloc_0_nonnull=1
12585 else
12586   gl_cv_func_malloc_0_nonnull=0
12587 fi
12588
12589
12590
12591 cat >>confdefs.h <<_ACEOF
12592 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
12593 _ACEOF
12594
12595
12596
12597   { echo "$as_me:$LINENO: checking for long long int" >&5
12598 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
12599 if test "${ac_cv_type_long_long_int+set}" = set; then
12600   echo $ECHO_N "(cached) $ECHO_C" >&6
12601 else
12602   cat >conftest.$ac_ext <<_ACEOF
12603 /* confdefs.h.  */
12604 _ACEOF
12605 cat confdefs.h >>conftest.$ac_ext
12606 cat >>conftest.$ac_ext <<_ACEOF
12607 /* end confdefs.h.  */
12608 long long int ll = 9223372036854775807ll;
12609             long long int nll = -9223372036854775807LL;
12610             typedef int a[((-9223372036854775807LL < 0
12611                             && 0 < 9223372036854775807ll)
12612                            ? 1 : -1)];
12613             int i = 63;
12614 int
12615 main ()
12616 {
12617 long long int llmax = 9223372036854775807ll;
12618             return (ll << 63 | ll >> 63 | ll < i | ll > i
12619                     | llmax / ll | llmax % ll);
12620   ;
12621   return 0;
12622 }
12623 _ACEOF
12624 rm -f conftest.$ac_objext conftest$ac_exeext
12625 if { (ac_try="$ac_link"
12626 case "(($ac_try" in
12627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628   *) ac_try_echo=$ac_try;;
12629 esac
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631   (eval "$ac_link") 2>conftest.er1
12632   ac_status=$?
12633   grep -v '^ *+' conftest.er1 >conftest.err
12634   rm -f conftest.er1
12635   cat conftest.err >&5
12636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637   (exit $ac_status); } &&
12638          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12639   { (case "(($ac_try" in
12640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641   *) ac_try_echo=$ac_try;;
12642 esac
12643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644   (eval "$ac_try") 2>&5
12645   ac_status=$?
12646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647   (exit $ac_status); }; } &&
12648          { ac_try='test -s conftest$ac_exeext'
12649   { (case "(($ac_try" in
12650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651   *) ac_try_echo=$ac_try;;
12652 esac
12653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12654   (eval "$ac_try") 2>&5
12655   ac_status=$?
12656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657   (exit $ac_status); }; }; then
12658   ac_cv_type_long_long_int=yes
12659 else
12660   echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12662
12663         ac_cv_type_long_long_int=no
12664 fi
12665
12666 rm -f core conftest.err conftest.$ac_objext \
12667       conftest$ac_exeext conftest.$ac_ext
12668 fi
12669 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
12670 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
12671   if test $ac_cv_type_long_long_int = yes; then
12672
12673 cat >>confdefs.h <<\_ACEOF
12674 #define HAVE_LONG_LONG_INT 1
12675 _ACEOF
12676
12677   fi
12678
12679
12680
12681   ac_cv_type_long_long=$ac_cv_type_long_long_int
12682   if test $ac_cv_type_long_long = yes; then
12683
12684 cat >>confdefs.h <<\_ACEOF
12685 #define HAVE_LONG_LONG 1
12686 _ACEOF
12687
12688   fi
12689
12690
12691   { echo "$as_me:$LINENO: checking for long double" >&5
12692 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
12693 if test "${gt_cv_c_long_double+set}" = set; then
12694   echo $ECHO_N "(cached) $ECHO_C" >&6
12695 else
12696   if test "$GCC" = yes; then
12697        gt_cv_c_long_double=yes
12698      else
12699        cat >conftest.$ac_ext <<_ACEOF
12700 /* confdefs.h.  */
12701 _ACEOF
12702 cat confdefs.h >>conftest.$ac_ext
12703 cat >>conftest.$ac_ext <<_ACEOF
12704 /* end confdefs.h.  */
12705
12706          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
12707          long double foo = 0.0;
12708          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
12709          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
12710
12711 int
12712 main ()
12713 {
12714
12715   ;
12716   return 0;
12717 }
12718 _ACEOF
12719 rm -f conftest.$ac_objext
12720 if { (ac_try="$ac_compile"
12721 case "(($ac_try" in
12722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723   *) ac_try_echo=$ac_try;;
12724 esac
12725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726   (eval "$ac_compile") 2>conftest.er1
12727   ac_status=$?
12728   grep -v '^ *+' conftest.er1 >conftest.err
12729   rm -f conftest.er1
12730   cat conftest.err >&5
12731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732   (exit $ac_status); } &&
12733          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12734   { (case "(($ac_try" in
12735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736   *) ac_try_echo=$ac_try;;
12737 esac
12738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12739   (eval "$ac_try") 2>&5
12740   ac_status=$?
12741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742   (exit $ac_status); }; } &&
12743          { ac_try='test -s conftest.$ac_objext'
12744   { (case "(($ac_try" in
12745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746   *) ac_try_echo=$ac_try;;
12747 esac
12748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749   (eval "$ac_try") 2>&5
12750   ac_status=$?
12751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752   (exit $ac_status); }; }; then
12753   gt_cv_c_long_double=yes
12754 else
12755   echo "$as_me: failed program was:" >&5
12756 sed 's/^/| /' conftest.$ac_ext >&5
12757
12758         gt_cv_c_long_double=no
12759 fi
12760
12761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12762      fi
12763 fi
12764 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
12765 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
12766   if test $gt_cv_c_long_double = yes; then
12767
12768 cat >>confdefs.h <<\_ACEOF
12769 #define HAVE_LONG_DOUBLE 1
12770 _ACEOF
12771
12772   fi
12773
12774
12775
12776
12777
12778
12779
12780
12781     { echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
12782 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6; }
12783 if test "${ac_cv_win_or_dos+set}" = set; then
12784   echo $ECHO_N "(cached) $ECHO_C" >&6
12785 else
12786
12787         cat >conftest.$ac_ext <<_ACEOF
12788 /* confdefs.h.  */
12789 _ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h.  */
12793
12794 int
12795 main ()
12796 {
12797 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
12798 neither MSDOS nor Windows
12799 #endif
12800   ;
12801   return 0;
12802 }
12803 _ACEOF
12804 rm -f conftest.$ac_objext
12805 if { (ac_try="$ac_compile"
12806 case "(($ac_try" in
12807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12808   *) ac_try_echo=$ac_try;;
12809 esac
12810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12811   (eval "$ac_compile") 2>conftest.er1
12812   ac_status=$?
12813   grep -v '^ *+' conftest.er1 >conftest.err
12814   rm -f conftest.er1
12815   cat conftest.err >&5
12816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817   (exit $ac_status); } &&
12818          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12819   { (case "(($ac_try" in
12820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821   *) ac_try_echo=$ac_try;;
12822 esac
12823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12824   (eval "$ac_try") 2>&5
12825   ac_status=$?
12826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827   (exit $ac_status); }; } &&
12828          { ac_try='test -s conftest.$ac_objext'
12829   { (case "(($ac_try" in
12830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831   *) ac_try_echo=$ac_try;;
12832 esac
12833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834   (eval "$ac_try") 2>&5
12835   ac_status=$?
12836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837   (exit $ac_status); }; }; then
12838   ac_cv_win_or_dos=yes
12839 else
12840   echo "$as_me: failed program was:" >&5
12841 sed 's/^/| /' conftest.$ac_ext >&5
12842
12843         ac_cv_win_or_dos=no
12844 fi
12845
12846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12847
12848 fi
12849 { echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
12850 echo "${ECHO_T}$ac_cv_win_or_dos" >&6; }
12851
12852     if test x"$ac_cv_win_or_dos" = xyes; then
12853       ac_fs_accepts_drive_letter_prefix=1
12854       ac_fs_backslash_is_file_name_separator=1
12855       { echo "$as_me:$LINENO: checking whether drive letter can start relative path" >&5
12856 echo $ECHO_N "checking whether drive letter can start relative path... $ECHO_C" >&6; }
12857 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then
12858   echo $ECHO_N "(cached) $ECHO_C" >&6
12859 else
12860
12861           cat >conftest.$ac_ext <<_ACEOF
12862 /* confdefs.h.  */
12863 _ACEOF
12864 cat confdefs.h >>conftest.$ac_ext
12865 cat >>conftest.$ac_ext <<_ACEOF
12866 /* end confdefs.h.  */
12867
12868 int
12869 main ()
12870 {
12871 #if defined __CYGWIN__
12872 drive letters are always absolute
12873 #endif
12874   ;
12875   return 0;
12876 }
12877 _ACEOF
12878 rm -f conftest.$ac_objext
12879 if { (ac_try="$ac_compile"
12880 case "(($ac_try" in
12881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12882   *) ac_try_echo=$ac_try;;
12883 esac
12884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12885   (eval "$ac_compile") 2>conftest.er1
12886   ac_status=$?
12887   grep -v '^ *+' conftest.er1 >conftest.err
12888   rm -f conftest.er1
12889   cat conftest.err >&5
12890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891   (exit $ac_status); } &&
12892          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12893   { (case "(($ac_try" in
12894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12895   *) ac_try_echo=$ac_try;;
12896 esac
12897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12898   (eval "$ac_try") 2>&5
12899   ac_status=$?
12900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901   (exit $ac_status); }; } &&
12902          { ac_try='test -s conftest.$ac_objext'
12903   { (case "(($ac_try" in
12904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12905   *) ac_try_echo=$ac_try;;
12906 esac
12907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12908   (eval "$ac_try") 2>&5
12909   ac_status=$?
12910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911   (exit $ac_status); }; }; then
12912   ac_cv_drive_letter_can_be_relative=yes
12913 else
12914   echo "$as_me: failed program was:" >&5
12915 sed 's/^/| /' conftest.$ac_ext >&5
12916
12917         ac_cv_drive_letter_can_be_relative=no
12918 fi
12919
12920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12921
12922 fi
12923 { echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5
12924 echo "${ECHO_T}$ac_cv_drive_letter_can_be_relative" >&6; }
12925       if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
12926         ac_fs_drive_letter_can_be_relative=1
12927       else
12928         ac_fs_drive_letter_can_be_relative=0
12929       fi
12930     else
12931       ac_fs_accepts_drive_letter_prefix=0
12932       ac_fs_backslash_is_file_name_separator=0
12933       ac_fs_drive_letter_can_be_relative=0
12934     fi
12935
12936
12937 cat >>confdefs.h <<_ACEOF
12938 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
12939 _ACEOF
12940
12941
12942
12943
12944
12945
12946 cat >>confdefs.h <<_ACEOF
12947 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
12948 _ACEOF
12949
12950
12951
12952 cat >>confdefs.h <<_ACEOF
12953 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
12954 _ACEOF
12955
12956
12957 { echo "$as_me:$LINENO: checking for long file names" >&5
12958 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
12959 if test "${ac_cv_sys_long_file_names+set}" = set; then
12960   echo $ECHO_N "(cached) $ECHO_C" >&6
12961 else
12962   ac_cv_sys_long_file_names=yes
12963 # Test for long file names in all the places we know might matter:
12964 #      .                the current directory, where building will happen
12965 #      $prefix/lib      where we will be installing things
12966 #      $exec_prefix/lib likewise
12967 #      $TMPDIR          if set, where it might want to write temporary files
12968 #      /tmp             where it might want to write temporary files
12969 #      /var/tmp         likewise
12970 #      /usr/tmp         likewise
12971 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
12972   # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
12973   # in the usual case where exec_prefix is '${prefix}'.
12974   case $ac_dir in #(
12975     . | /* | ?:[\\/]*) ;; #(
12976     *) continue;;
12977   esac
12978   test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
12979   ac_xdir=$ac_dir/cf$$
12980   (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
12981   ac_tf1=$ac_xdir/conftest9012345
12982   ac_tf2=$ac_xdir/conftest9012346
12983   touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
12984     ac_cv_sys_long_file_names=no
12985   rm -f -r "$ac_xdir" 2>/dev/null
12986   test $ac_cv_sys_long_file_names = no && break
12987 done
12988 fi
12989 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
12990 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
12991 if test $ac_cv_sys_long_file_names = yes; then
12992
12993 cat >>confdefs.h <<\_ACEOF
12994 #define HAVE_LONG_FILE_NAMES 1
12995 _ACEOF
12996
12997 fi
12998
12999
13000
13001
13002
13003 for ac_func in $ac_func_list
13004 do
13005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13009   echo $ECHO_N "(cached) $ECHO_C" >&6
13010 else
13011   cat >conftest.$ac_ext <<_ACEOF
13012 /* confdefs.h.  */
13013 _ACEOF
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h.  */
13017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13018    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13019 #define $ac_func innocuous_$ac_func
13020
13021 /* System header to define __stub macros and hopefully few prototypes,
13022     which can conflict with char $ac_func (); below.
13023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13024     <limits.h> exists even on freestanding compilers.  */
13025
13026 #ifdef __STDC__
13027 # include <limits.h>
13028 #else
13029 # include <assert.h>
13030 #endif
13031
13032 #undef $ac_func
13033
13034 /* Override any GCC internal prototype to avoid an error.
13035    Use char because int might match the return type of a GCC
13036    builtin and then its argument prototype would still apply.  */
13037 #ifdef __cplusplus
13038 extern "C"
13039 #endif
13040 char $ac_func ();
13041 /* The GNU C library defines this for functions which it implements
13042     to always fail with ENOSYS.  Some functions are actually named
13043     something starting with __ and the normal name is an alias.  */
13044 #if defined __stub_$ac_func || defined __stub___$ac_func
13045 choke me
13046 #endif
13047
13048 int
13049 main ()
13050 {
13051 return $ac_func ();
13052   ;
13053   return 0;
13054 }
13055 _ACEOF
13056 rm -f conftest.$ac_objext conftest$ac_exeext
13057 if { (ac_try="$ac_link"
13058 case "(($ac_try" in
13059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060   *) ac_try_echo=$ac_try;;
13061 esac
13062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063   (eval "$ac_link") 2>conftest.er1
13064   ac_status=$?
13065   grep -v '^ *+' conftest.er1 >conftest.err
13066   rm -f conftest.er1
13067   cat conftest.err >&5
13068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069   (exit $ac_status); } &&
13070          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13071   { (case "(($ac_try" in
13072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073   *) ac_try_echo=$ac_try;;
13074 esac
13075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13076   (eval "$ac_try") 2>&5
13077   ac_status=$?
13078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079   (exit $ac_status); }; } &&
13080          { ac_try='test -s conftest$ac_exeext'
13081   { (case "(($ac_try" in
13082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13083   *) ac_try_echo=$ac_try;;
13084 esac
13085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13086   (eval "$ac_try") 2>&5
13087   ac_status=$?
13088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089   (exit $ac_status); }; }; then
13090   eval "$as_ac_var=yes"
13091 else
13092   echo "$as_me: failed program was:" >&5
13093 sed 's/^/| /' conftest.$ac_ext >&5
13094
13095         eval "$as_ac_var=no"
13096 fi
13097
13098 rm -f core conftest.err conftest.$ac_objext \
13099       conftest$ac_exeext conftest.$ac_ext
13100 fi
13101 ac_res=`eval echo '${'$as_ac_var'}'`
13102                { echo "$as_me:$LINENO: result: $ac_res" >&5
13103 echo "${ECHO_T}$ac_res" >&6; }
13104 if test `eval echo '${'$as_ac_var'}'` = yes; then
13105   cat >>confdefs.h <<_ACEOF
13106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13107 _ACEOF
13108
13109 fi
13110 done
13111
13112
13113
13114
13115
13116   case " $LIBOBJS " in
13117   *" backupfile.$ac_objext "* ) ;;
13118   *) LIBOBJS="$LIBOBJS backupfile.$ac_objext"
13119  ;;
13120 esac
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135   case " $LIBOBJS " in
13136   *" basename.$ac_objext "* ) ;;
13137   *) LIBOBJS="$LIBOBJS basename.$ac_objext"
13138  ;;
13139 esac
13140
13141
13142
13143
13144
13145
13146   case " $LIBOBJS " in
13147   *" c-strtod.$ac_objext "* ) ;;
13148   *) LIBOBJS="$LIBOBJS c-strtod.$ac_objext"
13149  ;;
13150 esac
13151
13152
13153
13154   :
13155
13156
13157   { echo "$as_me:$LINENO: checking whether strtold conforms to C99" >&5
13158 echo $ECHO_N "checking whether strtold conforms to C99... $ECHO_C" >&6; }
13159 if test "${gl_cv_func_c99_strtold+set}" = set; then
13160   echo $ECHO_N "(cached) $ECHO_C" >&6
13161 else
13162   cat >conftest.$ac_ext <<_ACEOF
13163 /* confdefs.h.  */
13164 _ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h.  */
13168 /* On HP-UX before 11.23, strtold returns a struct instead of
13169                 long double.  Reject implementations like that, by requiring
13170                 compatibility with the C99 prototype.  */
13171              #include <stdlib.h>
13172              static long double (*p) (char const *, char **) = strtold;
13173              static long double
13174              test (char const *nptr, char **endptr)
13175              {
13176                long double r;
13177                r = strtold (nptr, endptr);
13178                return r;
13179              }
13180 int
13181 main ()
13182 {
13183 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13184   ;
13185   return 0;
13186 }
13187 _ACEOF
13188 rm -f conftest.$ac_objext conftest$ac_exeext
13189 if { (ac_try="$ac_link"
13190 case "(($ac_try" in
13191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13192   *) ac_try_echo=$ac_try;;
13193 esac
13194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13195   (eval "$ac_link") 2>conftest.er1
13196   ac_status=$?
13197   grep -v '^ *+' conftest.er1 >conftest.err
13198   rm -f conftest.er1
13199   cat conftest.err >&5
13200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201   (exit $ac_status); } &&
13202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13203   { (case "(($ac_try" in
13204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13205   *) ac_try_echo=$ac_try;;
13206 esac
13207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13208   (eval "$ac_try") 2>&5
13209   ac_status=$?
13210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211   (exit $ac_status); }; } &&
13212          { ac_try='test -s conftest$ac_exeext'
13213   { (case "(($ac_try" in
13214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215   *) ac_try_echo=$ac_try;;
13216 esac
13217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13218   (eval "$ac_try") 2>&5
13219   ac_status=$?
13220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221   (exit $ac_status); }; }; then
13222   gl_cv_func_c99_strtold=yes
13223 else
13224   echo "$as_me: failed program was:" >&5
13225 sed 's/^/| /' conftest.$ac_ext >&5
13226
13227         gl_cv_func_c99_strtold=no
13228 fi
13229
13230 rm -f core conftest.err conftest.$ac_objext \
13231       conftest$ac_exeext conftest.$ac_ext
13232 fi
13233 { echo "$as_me:$LINENO: result: $gl_cv_func_c99_strtold" >&5
13234 echo "${ECHO_T}$gl_cv_func_c99_strtold" >&6; }
13235   if test $gl_cv_func_c99_strtold = yes; then
13236
13237 cat >>confdefs.h <<\_ACEOF
13238 #define HAVE_C99_STRTOLD 1
13239 _ACEOF
13240
13241   fi
13242
13243
13244
13245   case " $LIBOBJS " in
13246   *" c-strtold.$ac_objext "* ) ;;
13247   *) LIBOBJS="$LIBOBJS c-strtold.$ac_objext"
13248  ;;
13249 esac
13250
13251
13252
13253
13254   :
13255
13256 { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
13257 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
13258 if test "${gl_cv_c_restrict+set}" = set; then
13259   echo $ECHO_N "(cached) $ECHO_C" >&6
13260 else
13261   gl_cv_c_restrict=no
13262    # Try the official restrict keyword, then gcc's __restrict, and
13263    # the less common variants.
13264    for ac_kw in restrict __restrict __restrict__ _Restrict; do
13265      cat >conftest.$ac_ext <<_ACEOF
13266 /* confdefs.h.  */
13267 _ACEOF
13268 cat confdefs.h >>conftest.$ac_ext
13269 cat >>conftest.$ac_ext <<_ACEOF
13270 /* end confdefs.h.  */
13271 float * $ac_kw x;
13272 _ACEOF
13273 rm -f conftest.$ac_objext
13274 if { (ac_try="$ac_compile"
13275 case "(($ac_try" in
13276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277   *) ac_try_echo=$ac_try;;
13278 esac
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280   (eval "$ac_compile") 2>conftest.er1
13281   ac_status=$?
13282   grep -v '^ *+' conftest.er1 >conftest.err
13283   rm -f conftest.er1
13284   cat conftest.err >&5
13285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286   (exit $ac_status); } &&
13287          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13288   { (case "(($ac_try" in
13289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13290   *) ac_try_echo=$ac_try;;
13291 esac
13292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13293   (eval "$ac_try") 2>&5
13294   ac_status=$?
13295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296   (exit $ac_status); }; } &&
13297          { ac_try='test -s conftest.$ac_objext'
13298   { (case "(($ac_try" in
13299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13300   *) ac_try_echo=$ac_try;;
13301 esac
13302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13303   (eval "$ac_try") 2>&5
13304   ac_status=$?
13305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306   (exit $ac_status); }; }; then
13307   gl_cv_c_restrict=$ac_kw; break
13308 else
13309   echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13311
13312
13313 fi
13314
13315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13316    done
13317
13318 fi
13319 { echo "$as_me:$LINENO: result: $gl_cv_c_restrict" >&5
13320 echo "${ECHO_T}$gl_cv_c_restrict" >&6; }
13321  case $gl_cv_c_restrict in
13322    restrict) ;;
13323    no)
13324 cat >>confdefs.h <<\_ACEOF
13325 #define restrict
13326 _ACEOF
13327  ;;
13328    *)  cat >>confdefs.h <<_ACEOF
13329 #define restrict $gl_cv_c_restrict
13330 _ACEOF
13331  ;;
13332  esac
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343   if test $ac_cv_header_sys_socket_h = yes; then
13344     SYS_SOCKET_H=''
13345   else
13346
13347
13348 for ac_header in winsock2.h ws2tcpip.h
13349 do
13350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13352   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13355   echo $ECHO_N "(cached) $ECHO_C" >&6
13356 fi
13357 ac_res=`eval echo '${'$as_ac_Header'}'`
13358                { echo "$as_me:$LINENO: result: $ac_res" >&5
13359 echo "${ECHO_T}$ac_res" >&6; }
13360 else
13361   # Is the header compilable?
13362 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13364 cat >conftest.$ac_ext <<_ACEOF
13365 /* confdefs.h.  */
13366 _ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h.  */
13370 $ac_includes_default
13371 #include <$ac_header>
13372 _ACEOF
13373 rm -f conftest.$ac_objext
13374 if { (ac_try="$ac_compile"
13375 case "(($ac_try" in
13376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13377   *) ac_try_echo=$ac_try;;
13378 esac
13379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13380   (eval "$ac_compile") 2>conftest.er1
13381   ac_status=$?
13382   grep -v '^ *+' conftest.er1 >conftest.err
13383   rm -f conftest.er1
13384   cat conftest.err >&5
13385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386   (exit $ac_status); } &&
13387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13388   { (case "(($ac_try" in
13389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390   *) ac_try_echo=$ac_try;;
13391 esac
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393   (eval "$ac_try") 2>&5
13394   ac_status=$?
13395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396   (exit $ac_status); }; } &&
13397          { ac_try='test -s conftest.$ac_objext'
13398   { (case "(($ac_try" in
13399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400   *) ac_try_echo=$ac_try;;
13401 esac
13402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403   (eval "$ac_try") 2>&5
13404   ac_status=$?
13405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406   (exit $ac_status); }; }; then
13407   ac_header_compiler=yes
13408 else
13409   echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13411
13412         ac_header_compiler=no
13413 fi
13414
13415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13417 echo "${ECHO_T}$ac_header_compiler" >&6; }
13418
13419 # Is the header present?
13420 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13422 cat >conftest.$ac_ext <<_ACEOF
13423 /* confdefs.h.  */
13424 _ACEOF
13425 cat confdefs.h >>conftest.$ac_ext
13426 cat >>conftest.$ac_ext <<_ACEOF
13427 /* end confdefs.h.  */
13428 #include <$ac_header>
13429 _ACEOF
13430 if { (ac_try="$ac_cpp conftest.$ac_ext"
13431 case "(($ac_try" in
13432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13433   *) ac_try_echo=$ac_try;;
13434 esac
13435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13436   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13437   ac_status=$?
13438   grep -v '^ *+' conftest.er1 >conftest.err
13439   rm -f conftest.er1
13440   cat conftest.err >&5
13441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442   (exit $ac_status); } >/dev/null; then
13443   if test -s conftest.err; then
13444     ac_cpp_err=$ac_c_preproc_warn_flag
13445     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13446   else
13447     ac_cpp_err=
13448   fi
13449 else
13450   ac_cpp_err=yes
13451 fi
13452 if test -z "$ac_cpp_err"; then
13453   ac_header_preproc=yes
13454 else
13455   echo "$as_me: failed program was:" >&5
13456 sed 's/^/| /' conftest.$ac_ext >&5
13457
13458   ac_header_preproc=no
13459 fi
13460
13461 rm -f conftest.err conftest.$ac_ext
13462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13463 echo "${ECHO_T}$ac_header_preproc" >&6; }
13464
13465 # So?  What about this header?
13466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13467   yes:no: )
13468     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13470     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13472     ac_header_preproc=yes
13473     ;;
13474   no:yes:* )
13475     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13477     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13478 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13479     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13481     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13482 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13483     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13485     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13487     ( cat <<\_ASBOX
13488 ## ------------------------------------ ##
13489 ## Report this to bug-coreutils@gnu.org ##
13490 ## ------------------------------------ ##
13491 _ASBOX
13492      ) | sed "s/^/$as_me: WARNING:     /" >&2
13493     ;;
13494 esac
13495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13498   echo $ECHO_N "(cached) $ECHO_C" >&6
13499 else
13500   eval "$as_ac_Header=\$ac_header_preproc"
13501 fi
13502 ac_res=`eval echo '${'$as_ac_Header'}'`
13503                { echo "$as_me:$LINENO: result: $ac_res" >&5
13504 echo "${ECHO_T}$ac_res" >&6; }
13505
13506 fi
13507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13508   cat >>confdefs.h <<_ACEOF
13509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13510 _ACEOF
13511
13512 fi
13513
13514 done
13515
13516     SYS_SOCKET_H='sys/socket.h'
13517   fi
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531   { echo "$as_me:$LINENO: checking for IPv4 sockets" >&5
13532 echo $ECHO_N "checking for IPv4 sockets... $ECHO_C" >&6; }
13533   if test "${gl_cv_socket_ipv4+set}" = set; then
13534   echo $ECHO_N "(cached) $ECHO_C" >&6
13535 else
13536   cat >conftest.$ac_ext <<_ACEOF
13537 /* confdefs.h.  */
13538 _ACEOF
13539 cat confdefs.h >>conftest.$ac_ext
13540 cat >>conftest.$ac_ext <<_ACEOF
13541 /* end confdefs.h.  */
13542 #include <sys/types.h>
13543 #ifdef HAVE_SYS_SOCKET_H
13544 #include <sys/socket.h>
13545 #endif
13546 #ifdef HAVE_NETINET_IN_H
13547 #include <netinet/in.h>
13548 #endif
13549 #ifdef HAVE_WINSOCK2_H
13550 #include <winsock2.h>
13551 #endif
13552 int
13553 main ()
13554 {
13555 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
13556   ;
13557   return 0;
13558 }
13559 _ACEOF
13560 rm -f conftest.$ac_objext
13561 if { (ac_try="$ac_compile"
13562 case "(($ac_try" in
13563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564   *) ac_try_echo=$ac_try;;
13565 esac
13566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13567   (eval "$ac_compile") 2>conftest.er1
13568   ac_status=$?
13569   grep -v '^ *+' conftest.er1 >conftest.err
13570   rm -f conftest.er1
13571   cat conftest.err >&5
13572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573   (exit $ac_status); } &&
13574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13575   { (case "(($ac_try" in
13576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577   *) ac_try_echo=$ac_try;;
13578 esac
13579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580   (eval "$ac_try") 2>&5
13581   ac_status=$?
13582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583   (exit $ac_status); }; } &&
13584          { ac_try='test -s conftest.$ac_objext'
13585   { (case "(($ac_try" in
13586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13587   *) ac_try_echo=$ac_try;;
13588 esac
13589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13590   (eval "$ac_try") 2>&5
13591   ac_status=$?
13592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593   (exit $ac_status); }; }; then
13594   gl_cv_socket_ipv4=yes
13595 else
13596   echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13598
13599         gl_cv_socket_ipv4=no
13600 fi
13601
13602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13603 fi
13604
13605   { echo "$as_me:$LINENO: result: $gl_cv_socket_ipv4" >&5
13606 echo "${ECHO_T}$gl_cv_socket_ipv4" >&6; }
13607   if test $gl_cv_socket_ipv4 = yes; then
13608
13609 cat >>confdefs.h <<\_ACEOF
13610 #define HAVE_IPV4 1
13611 _ACEOF
13612
13613   fi
13614
13615   { echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
13616 echo $ECHO_N "checking for IPv6 sockets... $ECHO_C" >&6; }
13617   if test "${gl_cv_socket_ipv6+set}" = set; then
13618   echo $ECHO_N "(cached) $ECHO_C" >&6
13619 else
13620   cat >conftest.$ac_ext <<_ACEOF
13621 /* confdefs.h.  */
13622 _ACEOF
13623 cat confdefs.h >>conftest.$ac_ext
13624 cat >>conftest.$ac_ext <<_ACEOF
13625 /* end confdefs.h.  */
13626 #include <sys/types.h>
13627 #ifdef HAVE_SYS_SOCKET_H
13628 #include <sys/socket.h>
13629 #endif
13630 #ifdef HAVE_NETINET_IN_H
13631 #include <netinet/in.h>
13632 #endif
13633 #ifdef HAVE_WINSOCK2_H
13634 #include <winsock2.h>
13635 #endif
13636 int
13637 main ()
13638 {
13639 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
13640   ;
13641   return 0;
13642 }
13643 _ACEOF
13644 rm -f conftest.$ac_objext
13645 if { (ac_try="$ac_compile"
13646 case "(($ac_try" in
13647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648   *) ac_try_echo=$ac_try;;
13649 esac
13650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651   (eval "$ac_compile") 2>conftest.er1
13652   ac_status=$?
13653   grep -v '^ *+' conftest.er1 >conftest.err
13654   rm -f conftest.er1
13655   cat conftest.err >&5
13656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657   (exit $ac_status); } &&
13658          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13659   { (case "(($ac_try" in
13660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13661   *) ac_try_echo=$ac_try;;
13662 esac
13663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13664   (eval "$ac_try") 2>&5
13665   ac_status=$?
13666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667   (exit $ac_status); }; } &&
13668          { ac_try='test -s conftest.$ac_objext'
13669   { (case "(($ac_try" in
13670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671   *) ac_try_echo=$ac_try;;
13672 esac
13673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674   (eval "$ac_try") 2>&5
13675   ac_status=$?
13676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677   (exit $ac_status); }; }; then
13678   gl_cv_socket_ipv6=yes
13679 else
13680   echo "$as_me: failed program was:" >&5
13681 sed 's/^/| /' conftest.$ac_ext >&5
13682
13683         gl_cv_socket_ipv6=no
13684 fi
13685
13686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13687 fi
13688
13689   { echo "$as_me:$LINENO: result: $gl_cv_socket_ipv6" >&5
13690 echo "${ECHO_T}$gl_cv_socket_ipv6" >&6; }
13691   if test $gl_cv_socket_ipv6 = yes; then
13692
13693 cat >>confdefs.h <<\_ACEOF
13694 #define HAVE_IPV6 1
13695 _ACEOF
13696
13697   fi
13698
13699
13700
13701
13702   { echo "$as_me:$LINENO: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
13703 echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
13704
13705   { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
13706 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
13707 if test "${ac_cv_search_getaddrinfo+set}" = set; then
13708   echo $ECHO_N "(cached) $ECHO_C" >&6
13709 else
13710   ac_func_search_save_LIBS=$LIBS
13711 cat >conftest.$ac_ext <<_ACEOF
13712 /* confdefs.h.  */
13713 _ACEOF
13714 cat confdefs.h >>conftest.$ac_ext
13715 cat >>conftest.$ac_ext <<_ACEOF
13716 /* end confdefs.h.  */
13717
13718 /* Override any GCC internal prototype to avoid an error.
13719    Use char because int might match the return type of a GCC
13720    builtin and then its argument prototype would still apply.  */
13721 #ifdef __cplusplus
13722 extern "C"
13723 #endif
13724 char getaddrinfo ();
13725 int
13726 main ()
13727 {
13728 return getaddrinfo ();
13729   ;
13730   return 0;
13731 }
13732 _ACEOF
13733 for ac_lib in '' nsl socket; do
13734   if test -z "$ac_lib"; then
13735     ac_res="none required"
13736   else
13737     ac_res=-l$ac_lib
13738     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13739   fi
13740   rm -f conftest.$ac_objext conftest$ac_exeext
13741 if { (ac_try="$ac_link"
13742 case "(($ac_try" in
13743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13744   *) ac_try_echo=$ac_try;;
13745 esac
13746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13747   (eval "$ac_link") 2>conftest.er1
13748   ac_status=$?
13749   grep -v '^ *+' conftest.er1 >conftest.err
13750   rm -f conftest.er1
13751   cat conftest.err >&5
13752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753   (exit $ac_status); } &&
13754          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13755   { (case "(($ac_try" in
13756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757   *) ac_try_echo=$ac_try;;
13758 esac
13759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760   (eval "$ac_try") 2>&5
13761   ac_status=$?
13762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763   (exit $ac_status); }; } &&
13764          { ac_try='test -s conftest$ac_exeext'
13765   { (case "(($ac_try" in
13766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767   *) ac_try_echo=$ac_try;;
13768 esac
13769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13770   (eval "$ac_try") 2>&5
13771   ac_status=$?
13772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773   (exit $ac_status); }; }; then
13774   ac_cv_search_getaddrinfo=$ac_res
13775 else
13776   echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13778
13779
13780 fi
13781
13782 rm -f core conftest.err conftest.$ac_objext \
13783       conftest$ac_exeext
13784   if test "${ac_cv_search_getaddrinfo+set}" = set; then
13785   break
13786 fi
13787 done
13788 if test "${ac_cv_search_getaddrinfo+set}" = set; then
13789   :
13790 else
13791   ac_cv_search_getaddrinfo=no
13792 fi
13793 rm conftest.$ac_ext
13794 LIBS=$ac_func_search_save_LIBS
13795 fi
13796 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
13797 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
13798 ac_res=$ac_cv_search_getaddrinfo
13799 if test "$ac_res" != no; then
13800   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13801
13802 fi
13803
13804
13805 for ac_func in getaddrinfo
13806 do
13807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13808 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13810 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13811   echo $ECHO_N "(cached) $ECHO_C" >&6
13812 else
13813   cat >conftest.$ac_ext <<_ACEOF
13814 /* confdefs.h.  */
13815 _ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h.  */
13819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13820    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13821 #define $ac_func innocuous_$ac_func
13822
13823 /* System header to define __stub macros and hopefully few prototypes,
13824     which can conflict with char $ac_func (); below.
13825     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13826     <limits.h> exists even on freestanding compilers.  */
13827
13828 #ifdef __STDC__
13829 # include <limits.h>
13830 #else
13831 # include <assert.h>
13832 #endif
13833
13834 #undef $ac_func
13835
13836 /* Override any GCC internal prototype to avoid an error.
13837    Use char because int might match the return type of a GCC
13838    builtin and then its argument prototype would still apply.  */
13839 #ifdef __cplusplus
13840 extern "C"
13841 #endif
13842 char $ac_func ();
13843 /* The GNU C library defines this for functions which it implements
13844     to always fail with ENOSYS.  Some functions are actually named
13845     something starting with __ and the normal name is an alias.  */
13846 #if defined __stub_$ac_func || defined __stub___$ac_func
13847 choke me
13848 #endif
13849
13850 int
13851 main ()
13852 {
13853 return $ac_func ();
13854   ;
13855   return 0;
13856 }
13857 _ACEOF
13858 rm -f conftest.$ac_objext conftest$ac_exeext
13859 if { (ac_try="$ac_link"
13860 case "(($ac_try" in
13861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862   *) ac_try_echo=$ac_try;;
13863 esac
13864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865   (eval "$ac_link") 2>conftest.er1
13866   ac_status=$?
13867   grep -v '^ *+' conftest.er1 >conftest.err
13868   rm -f conftest.er1
13869   cat conftest.err >&5
13870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871   (exit $ac_status); } &&
13872          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13873   { (case "(($ac_try" in
13874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13875   *) ac_try_echo=$ac_try;;
13876 esac
13877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13878   (eval "$ac_try") 2>&5
13879   ac_status=$?
13880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881   (exit $ac_status); }; } &&
13882          { ac_try='test -s conftest$ac_exeext'
13883   { (case "(($ac_try" in
13884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885   *) ac_try_echo=$ac_try;;
13886 esac
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888   (eval "$ac_try") 2>&5
13889   ac_status=$?
13890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891   (exit $ac_status); }; }; then
13892   eval "$as_ac_var=yes"
13893 else
13894   echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13896
13897         eval "$as_ac_var=no"
13898 fi
13899
13900 rm -f core conftest.err conftest.$ac_objext \
13901       conftest$ac_exeext conftest.$ac_ext
13902 fi
13903 ac_res=`eval echo '${'$as_ac_var'}'`
13904                { echo "$as_me:$LINENO: result: $ac_res" >&5
13905 echo "${ECHO_T}$ac_res" >&6; }
13906 if test `eval echo '${'$as_ac_var'}'` = yes; then
13907   cat >>confdefs.h <<_ACEOF
13908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13909 _ACEOF
13910
13911 else
13912
13913     { echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
13914 echo $ECHO_N "checking for getaddrinfo in ws2tcpip.h and -lws2_32... $ECHO_C" >&6; }
13915 if test "${gl_cv_w32_getaddrinfo+set}" = set; then
13916   echo $ECHO_N "(cached) $ECHO_C" >&6
13917 else
13918
13919       gl_cv_w32_getaddrinfo=no
13920       am_save_LIBS="$LIBS"
13921       LIBS="$LIBS -lws2_32"
13922       cat >conftest.$ac_ext <<_ACEOF
13923 /* confdefs.h.  */
13924 _ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h.  */
13928
13929 #ifdef HAVE_WS2TCPIP_H
13930 #include <ws2tcpip.h>
13931 #endif
13932
13933 int
13934 main ()
13935 {
13936 getaddrinfo(0, 0, 0, 0);
13937   ;
13938   return 0;
13939 }
13940 _ACEOF
13941 rm -f conftest.$ac_objext conftest$ac_exeext
13942 if { (ac_try="$ac_link"
13943 case "(($ac_try" in
13944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945   *) ac_try_echo=$ac_try;;
13946 esac
13947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948   (eval "$ac_link") 2>conftest.er1
13949   ac_status=$?
13950   grep -v '^ *+' conftest.er1 >conftest.err
13951   rm -f conftest.er1
13952   cat conftest.err >&5
13953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954   (exit $ac_status); } &&
13955          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13956   { (case "(($ac_try" in
13957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958   *) ac_try_echo=$ac_try;;
13959 esac
13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961   (eval "$ac_try") 2>&5
13962   ac_status=$?
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); }; } &&
13965          { ac_try='test -s conftest$ac_exeext'
13966   { (case "(($ac_try" in
13967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968   *) ac_try_echo=$ac_try;;
13969 esac
13970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971   (eval "$ac_try") 2>&5
13972   ac_status=$?
13973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974   (exit $ac_status); }; }; then
13975   gl_cv_w32_getaddrinfo=yes
13976 else
13977   echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13979
13980
13981 fi
13982
13983 rm -f core conftest.err conftest.$ac_objext \
13984       conftest$ac_exeext conftest.$ac_ext
13985     LIBS="$am_save_LIBS"
13986 fi
13987 { echo "$as_me:$LINENO: result: $gl_cv_w32_getaddrinfo" >&5
13988 echo "${ECHO_T}$gl_cv_w32_getaddrinfo" >&6; }
13989     if test "$gl_cv_w32_getaddrinfo" = "yes"; then
13990       LIBS="$LIBS -lws2_32"
13991     else
13992       case " $LIBOBJS " in
13993   *" getaddrinfo.$ac_objext "* ) ;;
13994   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
13995  ;;
13996 esac
13997
13998     fi
13999
14000 fi
14001 done
14002
14003
14004
14005 for ac_func in gai_strerror
14006 do
14007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14008 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14010 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14011   echo $ECHO_N "(cached) $ECHO_C" >&6
14012 else
14013   cat >conftest.$ac_ext <<_ACEOF
14014 /* confdefs.h.  */
14015 _ACEOF
14016 cat confdefs.h >>conftest.$ac_ext
14017 cat >>conftest.$ac_ext <<_ACEOF
14018 /* end confdefs.h.  */
14019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14020    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14021 #define $ac_func innocuous_$ac_func
14022
14023 /* System header to define __stub macros and hopefully few prototypes,
14024     which can conflict with char $ac_func (); below.
14025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14026     <limits.h> exists even on freestanding compilers.  */
14027
14028 #ifdef __STDC__
14029 # include <limits.h>
14030 #else
14031 # include <assert.h>
14032 #endif
14033
14034 #undef $ac_func
14035
14036 /* Override any GCC internal prototype to avoid an error.
14037    Use char because int might match the return type of a GCC
14038    builtin and then its argument prototype would still apply.  */
14039 #ifdef __cplusplus
14040 extern "C"
14041 #endif
14042 char $ac_func ();
14043 /* The GNU C library defines this for functions which it implements
14044     to always fail with ENOSYS.  Some functions are actually named
14045     something starting with __ and the normal name is an alias.  */
14046 #if defined __stub_$ac_func || defined __stub___$ac_func
14047 choke me
14048 #endif
14049
14050 int
14051 main ()
14052 {
14053 return $ac_func ();
14054   ;
14055   return 0;
14056 }
14057 _ACEOF
14058 rm -f conftest.$ac_objext conftest$ac_exeext
14059 if { (ac_try="$ac_link"
14060 case "(($ac_try" in
14061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062   *) ac_try_echo=$ac_try;;
14063 esac
14064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065   (eval "$ac_link") 2>conftest.er1
14066   ac_status=$?
14067   grep -v '^ *+' conftest.er1 >conftest.err
14068   rm -f conftest.er1
14069   cat conftest.err >&5
14070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071   (exit $ac_status); } &&
14072          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14073   { (case "(($ac_try" in
14074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075   *) ac_try_echo=$ac_try;;
14076 esac
14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078   (eval "$ac_try") 2>&5
14079   ac_status=$?
14080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081   (exit $ac_status); }; } &&
14082          { ac_try='test -s conftest$ac_exeext'
14083   { (case "(($ac_try" in
14084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085   *) ac_try_echo=$ac_try;;
14086 esac
14087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088   (eval "$ac_try") 2>&5
14089   ac_status=$?
14090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091   (exit $ac_status); }; }; then
14092   eval "$as_ac_var=yes"
14093 else
14094   echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.$ac_ext >&5
14096
14097         eval "$as_ac_var=no"
14098 fi
14099
14100 rm -f core conftest.err conftest.$ac_objext \
14101       conftest$ac_exeext conftest.$ac_ext
14102 fi
14103 ac_res=`eval echo '${'$as_ac_var'}'`
14104                { echo "$as_me:$LINENO: result: $ac_res" >&5
14105 echo "${ECHO_T}$ac_res" >&6; }
14106 if test `eval echo '${'$as_ac_var'}'` = yes; then
14107   cat >>confdefs.h <<_ACEOF
14108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14109 _ACEOF
14110
14111 else
14112   case " $LIBOBJS " in
14113   *" $ac_func.$ac_objext "* ) ;;
14114   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14115  ;;
14116 esac
14117
14118 fi
14119 done
14120
14121
14122
14123   { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
14124 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
14125 if test "${ac_cv_search_gethostbyname+set}" = set; then
14126   echo $ECHO_N "(cached) $ECHO_C" >&6
14127 else
14128   ac_func_search_save_LIBS=$LIBS
14129 cat >conftest.$ac_ext <<_ACEOF
14130 /* confdefs.h.  */
14131 _ACEOF
14132 cat confdefs.h >>conftest.$ac_ext
14133 cat >>conftest.$ac_ext <<_ACEOF
14134 /* end confdefs.h.  */
14135
14136 /* Override any GCC internal prototype to avoid an error.
14137    Use char because int might match the return type of a GCC
14138    builtin and then its argument prototype would still apply.  */
14139 #ifdef __cplusplus
14140 extern "C"
14141 #endif
14142 char gethostbyname ();
14143 int
14144 main ()
14145 {
14146 return gethostbyname ();
14147   ;
14148   return 0;
14149 }
14150 _ACEOF
14151 for ac_lib in '' inet nsl; do
14152   if test -z "$ac_lib"; then
14153     ac_res="none required"
14154   else
14155     ac_res=-l$ac_lib
14156     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14157   fi
14158   rm -f conftest.$ac_objext conftest$ac_exeext
14159 if { (ac_try="$ac_link"
14160 case "(($ac_try" in
14161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14162   *) ac_try_echo=$ac_try;;
14163 esac
14164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14165   (eval "$ac_link") 2>conftest.er1
14166   ac_status=$?
14167   grep -v '^ *+' conftest.er1 >conftest.err
14168   rm -f conftest.er1
14169   cat conftest.err >&5
14170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171   (exit $ac_status); } &&
14172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14173   { (case "(($ac_try" in
14174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14175   *) ac_try_echo=$ac_try;;
14176 esac
14177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14178   (eval "$ac_try") 2>&5
14179   ac_status=$?
14180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181   (exit $ac_status); }; } &&
14182          { ac_try='test -s conftest$ac_exeext'
14183   { (case "(($ac_try" in
14184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14185   *) ac_try_echo=$ac_try;;
14186 esac
14187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14188   (eval "$ac_try") 2>&5
14189   ac_status=$?
14190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191   (exit $ac_status); }; }; then
14192   ac_cv_search_gethostbyname=$ac_res
14193 else
14194   echo "$as_me: failed program was:" >&5
14195 sed 's/^/| /' conftest.$ac_ext >&5
14196
14197
14198 fi
14199
14200 rm -f core conftest.err conftest.$ac_objext \
14201       conftest$ac_exeext
14202   if test "${ac_cv_search_gethostbyname+set}" = set; then
14203   break
14204 fi
14205 done
14206 if test "${ac_cv_search_gethostbyname+set}" = set; then
14207   :
14208 else
14209   ac_cv_search_gethostbyname=no
14210 fi
14211 rm conftest.$ac_ext
14212 LIBS=$ac_func_search_save_LIBS
14213 fi
14214 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
14215 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
14216 ac_res=$ac_cv_search_gethostbyname
14217 if test "$ac_res" != no; then
14218   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14219
14220 fi
14221
14222   { echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
14223 echo $ECHO_N "checking for library containing getservbyname... $ECHO_C" >&6; }
14224 if test "${ac_cv_search_getservbyname+set}" = set; then
14225   echo $ECHO_N "(cached) $ECHO_C" >&6
14226 else
14227   ac_func_search_save_LIBS=$LIBS
14228 cat >conftest.$ac_ext <<_ACEOF
14229 /* confdefs.h.  */
14230 _ACEOF
14231 cat confdefs.h >>conftest.$ac_ext
14232 cat >>conftest.$ac_ext <<_ACEOF
14233 /* end confdefs.h.  */
14234
14235 /* Override any GCC internal prototype to avoid an error.
14236    Use char because int might match the return type of a GCC
14237    builtin and then its argument prototype would still apply.  */
14238 #ifdef __cplusplus
14239 extern "C"
14240 #endif
14241 char getservbyname ();
14242 int
14243 main ()
14244 {
14245 return getservbyname ();
14246   ;
14247   return 0;
14248 }
14249 _ACEOF
14250 for ac_lib in '' inet nsl socket xnet; do
14251   if test -z "$ac_lib"; then
14252     ac_res="none required"
14253   else
14254     ac_res=-l$ac_lib
14255     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14256   fi
14257   rm -f conftest.$ac_objext conftest$ac_exeext
14258 if { (ac_try="$ac_link"
14259 case "(($ac_try" in
14260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261   *) ac_try_echo=$ac_try;;
14262 esac
14263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14264   (eval "$ac_link") 2>conftest.er1
14265   ac_status=$?
14266   grep -v '^ *+' conftest.er1 >conftest.err
14267   rm -f conftest.er1
14268   cat conftest.err >&5
14269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270   (exit $ac_status); } &&
14271          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14272   { (case "(($ac_try" in
14273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274   *) ac_try_echo=$ac_try;;
14275 esac
14276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14277   (eval "$ac_try") 2>&5
14278   ac_status=$?
14279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280   (exit $ac_status); }; } &&
14281          { ac_try='test -s conftest$ac_exeext'
14282   { (case "(($ac_try" in
14283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284   *) ac_try_echo=$ac_try;;
14285 esac
14286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14287   (eval "$ac_try") 2>&5
14288   ac_status=$?
14289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290   (exit $ac_status); }; }; then
14291   ac_cv_search_getservbyname=$ac_res
14292 else
14293   echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14295
14296
14297 fi
14298
14299 rm -f core conftest.err conftest.$ac_objext \
14300       conftest$ac_exeext
14301   if test "${ac_cv_search_getservbyname+set}" = set; then
14302   break
14303 fi
14304 done
14305 if test "${ac_cv_search_getservbyname+set}" = set; then
14306   :
14307 else
14308   ac_cv_search_getservbyname=no
14309 fi
14310 rm conftest.$ac_ext
14311 LIBS=$ac_func_search_save_LIBS
14312 fi
14313 { echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
14314 echo "${ECHO_T}$ac_cv_search_getservbyname" >&6; }
14315 ac_res=$ac_cv_search_getservbyname
14316 if test "$ac_res" != no; then
14317   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14318
14319 fi
14320
14321
14322 for ac_func in gethostbyname
14323 do
14324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14328   echo $ECHO_N "(cached) $ECHO_C" >&6
14329 else
14330   cat >conftest.$ac_ext <<_ACEOF
14331 /* confdefs.h.  */
14332 _ACEOF
14333 cat confdefs.h >>conftest.$ac_ext
14334 cat >>conftest.$ac_ext <<_ACEOF
14335 /* end confdefs.h.  */
14336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14338 #define $ac_func innocuous_$ac_func
14339
14340 /* System header to define __stub macros and hopefully few prototypes,
14341     which can conflict with char $ac_func (); below.
14342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14343     <limits.h> exists even on freestanding compilers.  */
14344
14345 #ifdef __STDC__
14346 # include <limits.h>
14347 #else
14348 # include <assert.h>
14349 #endif
14350
14351 #undef $ac_func
14352
14353 /* Override any GCC internal prototype to avoid an error.
14354    Use char because int might match the return type of a GCC
14355    builtin and then its argument prototype would still apply.  */
14356 #ifdef __cplusplus
14357 extern "C"
14358 #endif
14359 char $ac_func ();
14360 /* The GNU C library defines this for functions which it implements
14361     to always fail with ENOSYS.  Some functions are actually named
14362     something starting with __ and the normal name is an alias.  */
14363 #if defined __stub_$ac_func || defined __stub___$ac_func
14364 choke me
14365 #endif
14366
14367 int
14368 main ()
14369 {
14370 return $ac_func ();
14371   ;
14372   return 0;
14373 }
14374 _ACEOF
14375 rm -f conftest.$ac_objext conftest$ac_exeext
14376 if { (ac_try="$ac_link"
14377 case "(($ac_try" in
14378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14379   *) ac_try_echo=$ac_try;;
14380 esac
14381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14382   (eval "$ac_link") 2>conftest.er1
14383   ac_status=$?
14384   grep -v '^ *+' conftest.er1 >conftest.err
14385   rm -f conftest.er1
14386   cat conftest.err >&5
14387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388   (exit $ac_status); } &&
14389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14390   { (case "(($ac_try" in
14391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392   *) ac_try_echo=$ac_try;;
14393 esac
14394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14395   (eval "$ac_try") 2>&5
14396   ac_status=$?
14397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398   (exit $ac_status); }; } &&
14399          { ac_try='test -s conftest$ac_exeext'
14400   { (case "(($ac_try" in
14401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402   *) ac_try_echo=$ac_try;;
14403 esac
14404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405   (eval "$ac_try") 2>&5
14406   ac_status=$?
14407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408   (exit $ac_status); }; }; then
14409   eval "$as_ac_var=yes"
14410 else
14411   echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14413
14414         eval "$as_ac_var=no"
14415 fi
14416
14417 rm -f core conftest.err conftest.$ac_objext \
14418       conftest$ac_exeext conftest.$ac_ext
14419 fi
14420 ac_res=`eval echo '${'$as_ac_var'}'`
14421                { echo "$as_me:$LINENO: result: $ac_res" >&5
14422 echo "${ECHO_T}$ac_res" >&6; }
14423 if test `eval echo '${'$as_ac_var'}'` = yes; then
14424   cat >>confdefs.h <<_ACEOF
14425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14426 _ACEOF
14427
14428 else
14429
14430     { echo "$as_me:$LINENO: checking for gethostbyname in winsock2.h and -lws2_32" >&5
14431 echo $ECHO_N "checking for gethostbyname in winsock2.h and -lws2_32... $ECHO_C" >&6; }
14432 if test "${gl_cv_w32_gethostbyname+set}" = set; then
14433   echo $ECHO_N "(cached) $ECHO_C" >&6
14434 else
14435
14436       gl_cv_w32_gethostbyname=no
14437       am_save_LIBS="$LIBS"
14438       LIBS="$LIBS -lws2_32"
14439       cat >conftest.$ac_ext <<_ACEOF
14440 /* confdefs.h.  */
14441 _ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h.  */
14445
14446 #ifdef HAVE_WINSOCK2_H
14447 #include <winsock2.h>
14448 #endif
14449
14450 int
14451 main ()
14452 {
14453 gethostbyname(0);
14454   ;
14455   return 0;
14456 }
14457 _ACEOF
14458 rm -f conftest.$ac_objext conftest$ac_exeext
14459 if { (ac_try="$ac_link"
14460 case "(($ac_try" in
14461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14462   *) ac_try_echo=$ac_try;;
14463 esac
14464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14465   (eval "$ac_link") 2>conftest.er1
14466   ac_status=$?
14467   grep -v '^ *+' conftest.er1 >conftest.err
14468   rm -f conftest.er1
14469   cat conftest.err >&5
14470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471   (exit $ac_status); } &&
14472          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14473   { (case "(($ac_try" in
14474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475   *) ac_try_echo=$ac_try;;
14476 esac
14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478   (eval "$ac_try") 2>&5
14479   ac_status=$?
14480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481   (exit $ac_status); }; } &&
14482          { ac_try='test -s conftest$ac_exeext'
14483   { (case "(($ac_try" in
14484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485   *) ac_try_echo=$ac_try;;
14486 esac
14487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14488   (eval "$ac_try") 2>&5
14489   ac_status=$?
14490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491   (exit $ac_status); }; }; then
14492   gl_cv_w32_gethostbyname=yes
14493 else
14494   echo "$as_me: failed program was:" >&5
14495 sed 's/^/| /' conftest.$ac_ext >&5
14496
14497
14498 fi
14499
14500 rm -f core conftest.err conftest.$ac_objext \
14501       conftest$ac_exeext conftest.$ac_ext
14502     LIBS="$am_save_LIBS"
14503 fi
14504 { echo "$as_me:$LINENO: result: $gl_cv_w32_gethostbyname" >&5
14505 echo "${ECHO_T}$gl_cv_w32_gethostbyname" >&6; }
14506     if test "$gl_cv_w32_gethostbyname" = "yes"; then
14507       LIBS="$LIBS -lws2_32"
14508     fi
14509
14510 fi
14511 done
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526   { echo "$as_me:$LINENO: checking whether getaddrinfo is declared" >&5
14527 echo $ECHO_N "checking whether getaddrinfo is declared... $ECHO_C" >&6; }
14528 if test "${ac_cv_have_decl_getaddrinfo+set}" = set; then
14529   echo $ECHO_N "(cached) $ECHO_C" >&6
14530 else
14531   cat >conftest.$ac_ext <<_ACEOF
14532 /* confdefs.h.  */
14533 _ACEOF
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h.  */
14537
14538   /* sys/types.h is not needed according to POSIX, but the
14539      sys/socket.h in i386-unknown-freebsd4.10 and
14540      powerpc-apple-darwin5.5 required it. */
14541 #include <sys/types.h>
14542 #ifdef HAVE_SYS_SOCKET_H
14543 #include <sys/socket.h>
14544 #endif
14545 #ifdef HAVE_NETDB_H
14546 #include <netdb.h>
14547 #endif
14548 #ifdef HAVE_WS2TCPIP_H
14549 #include <ws2tcpip.h>
14550 #endif
14551
14552
14553 int
14554 main ()
14555 {
14556 #ifndef getaddrinfo
14557   char *p = (char *) getaddrinfo;
14558   return !p;
14559 #endif
14560
14561   ;
14562   return 0;
14563 }
14564 _ACEOF
14565 rm -f conftest.$ac_objext
14566 if { (ac_try="$ac_compile"
14567 case "(($ac_try" in
14568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14569   *) ac_try_echo=$ac_try;;
14570 esac
14571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14572   (eval "$ac_compile") 2>conftest.er1
14573   ac_status=$?
14574   grep -v '^ *+' conftest.er1 >conftest.err
14575   rm -f conftest.er1
14576   cat conftest.err >&5
14577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578   (exit $ac_status); } &&
14579          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14580   { (case "(($ac_try" in
14581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582   *) ac_try_echo=$ac_try;;
14583 esac
14584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585   (eval "$ac_try") 2>&5
14586   ac_status=$?
14587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588   (exit $ac_status); }; } &&
14589          { ac_try='test -s conftest.$ac_objext'
14590   { (case "(($ac_try" in
14591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14592   *) ac_try_echo=$ac_try;;
14593 esac
14594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14595   (eval "$ac_try") 2>&5
14596   ac_status=$?
14597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598   (exit $ac_status); }; }; then
14599   ac_cv_have_decl_getaddrinfo=yes
14600 else
14601   echo "$as_me: failed program was:" >&5
14602 sed 's/^/| /' conftest.$ac_ext >&5
14603
14604         ac_cv_have_decl_getaddrinfo=no
14605 fi
14606
14607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14608 fi
14609 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getaddrinfo" >&5
14610 echo "${ECHO_T}$ac_cv_have_decl_getaddrinfo" >&6; }
14611 if test $ac_cv_have_decl_getaddrinfo = yes; then
14612
14613 cat >>confdefs.h <<_ACEOF
14614 #define HAVE_DECL_GETADDRINFO 1
14615 _ACEOF
14616
14617
14618 else
14619   cat >>confdefs.h <<_ACEOF
14620 #define HAVE_DECL_GETADDRINFO 0
14621 _ACEOF
14622
14623
14624 fi
14625 { echo "$as_me:$LINENO: checking whether freeaddrinfo is declared" >&5
14626 echo $ECHO_N "checking whether freeaddrinfo is declared... $ECHO_C" >&6; }
14627 if test "${ac_cv_have_decl_freeaddrinfo+set}" = set; then
14628   echo $ECHO_N "(cached) $ECHO_C" >&6
14629 else
14630   cat >conftest.$ac_ext <<_ACEOF
14631 /* confdefs.h.  */
14632 _ACEOF
14633 cat confdefs.h >>conftest.$ac_ext
14634 cat >>conftest.$ac_ext <<_ACEOF
14635 /* end confdefs.h.  */
14636
14637   /* sys/types.h is not needed according to POSIX, but the
14638      sys/socket.h in i386-unknown-freebsd4.10 and
14639      powerpc-apple-darwin5.5 required it. */
14640 #include <sys/types.h>
14641 #ifdef HAVE_SYS_SOCKET_H
14642 #include <sys/socket.h>
14643 #endif
14644 #ifdef HAVE_NETDB_H
14645 #include <netdb.h>
14646 #endif
14647 #ifdef HAVE_WS2TCPIP_H
14648 #include <ws2tcpip.h>
14649 #endif
14650
14651
14652 int
14653 main ()
14654 {
14655 #ifndef freeaddrinfo
14656   char *p = (char *) freeaddrinfo;
14657   return !p;
14658 #endif
14659
14660   ;
14661   return 0;
14662 }
14663 _ACEOF
14664 rm -f conftest.$ac_objext
14665 if { (ac_try="$ac_compile"
14666 case "(($ac_try" in
14667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14668   *) ac_try_echo=$ac_try;;
14669 esac
14670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14671   (eval "$ac_compile") 2>conftest.er1
14672   ac_status=$?
14673   grep -v '^ *+' conftest.er1 >conftest.err
14674   rm -f conftest.er1
14675   cat conftest.err >&5
14676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677   (exit $ac_status); } &&
14678          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14679   { (case "(($ac_try" in
14680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14681   *) ac_try_echo=$ac_try;;
14682 esac
14683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14684   (eval "$ac_try") 2>&5
14685   ac_status=$?
14686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687   (exit $ac_status); }; } &&
14688          { ac_try='test -s conftest.$ac_objext'
14689   { (case "(($ac_try" in
14690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14691   *) ac_try_echo=$ac_try;;
14692 esac
14693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14694   (eval "$ac_try") 2>&5
14695   ac_status=$?
14696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697   (exit $ac_status); }; }; then
14698   ac_cv_have_decl_freeaddrinfo=yes
14699 else
14700   echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14702
14703         ac_cv_have_decl_freeaddrinfo=no
14704 fi
14705
14706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14707 fi
14708 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_freeaddrinfo" >&5
14709 echo "${ECHO_T}$ac_cv_have_decl_freeaddrinfo" >&6; }
14710 if test $ac_cv_have_decl_freeaddrinfo = yes; then
14711
14712 cat >>confdefs.h <<_ACEOF
14713 #define HAVE_DECL_FREEADDRINFO 1
14714 _ACEOF
14715
14716
14717 else
14718   cat >>confdefs.h <<_ACEOF
14719 #define HAVE_DECL_FREEADDRINFO 0
14720 _ACEOF
14721
14722
14723 fi
14724 { echo "$as_me:$LINENO: checking whether gai_strerror is declared" >&5
14725 echo $ECHO_N "checking whether gai_strerror is declared... $ECHO_C" >&6; }
14726 if test "${ac_cv_have_decl_gai_strerror+set}" = set; then
14727   echo $ECHO_N "(cached) $ECHO_C" >&6
14728 else
14729   cat >conftest.$ac_ext <<_ACEOF
14730 /* confdefs.h.  */
14731 _ACEOF
14732 cat confdefs.h >>conftest.$ac_ext
14733 cat >>conftest.$ac_ext <<_ACEOF
14734 /* end confdefs.h.  */
14735
14736   /* sys/types.h is not needed according to POSIX, but the
14737      sys/socket.h in i386-unknown-freebsd4.10 and
14738      powerpc-apple-darwin5.5 required it. */
14739 #include <sys/types.h>
14740 #ifdef HAVE_SYS_SOCKET_H
14741 #include <sys/socket.h>
14742 #endif
14743 #ifdef HAVE_NETDB_H
14744 #include <netdb.h>
14745 #endif
14746 #ifdef HAVE_WS2TCPIP_H
14747 #include <ws2tcpip.h>
14748 #endif
14749
14750
14751 int
14752 main ()
14753 {
14754 #ifndef gai_strerror
14755   char *p = (char *) gai_strerror;
14756   return !p;
14757 #endif
14758
14759   ;
14760   return 0;
14761 }
14762 _ACEOF
14763 rm -f conftest.$ac_objext
14764 if { (ac_try="$ac_compile"
14765 case "(($ac_try" in
14766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14767   *) ac_try_echo=$ac_try;;
14768 esac
14769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14770   (eval "$ac_compile") 2>conftest.er1
14771   ac_status=$?
14772   grep -v '^ *+' conftest.er1 >conftest.err
14773   rm -f conftest.er1
14774   cat conftest.err >&5
14775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776   (exit $ac_status); } &&
14777          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14778   { (case "(($ac_try" in
14779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14780   *) ac_try_echo=$ac_try;;
14781 esac
14782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14783   (eval "$ac_try") 2>&5
14784   ac_status=$?
14785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786   (exit $ac_status); }; } &&
14787          { ac_try='test -s conftest.$ac_objext'
14788   { (case "(($ac_try" in
14789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14790   *) ac_try_echo=$ac_try;;
14791 esac
14792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14793   (eval "$ac_try") 2>&5
14794   ac_status=$?
14795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796   (exit $ac_status); }; }; then
14797   ac_cv_have_decl_gai_strerror=yes
14798 else
14799   echo "$as_me: failed program was:" >&5
14800 sed 's/^/| /' conftest.$ac_ext >&5
14801
14802         ac_cv_have_decl_gai_strerror=no
14803 fi
14804
14805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14806 fi
14807 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gai_strerror" >&5
14808 echo "${ECHO_T}$ac_cv_have_decl_gai_strerror" >&6; }
14809 if test $ac_cv_have_decl_gai_strerror = yes; then
14810
14811 cat >>confdefs.h <<_ACEOF
14812 #define HAVE_DECL_GAI_STRERROR 1
14813 _ACEOF
14814
14815
14816 else
14817   cat >>confdefs.h <<_ACEOF
14818 #define HAVE_DECL_GAI_STRERROR 0
14819 _ACEOF
14820
14821
14822 fi
14823 { echo "$as_me:$LINENO: checking whether getnameinfo is declared" >&5
14824 echo $ECHO_N "checking whether getnameinfo is declared... $ECHO_C" >&6; }
14825 if test "${ac_cv_have_decl_getnameinfo+set}" = set; then
14826   echo $ECHO_N "(cached) $ECHO_C" >&6
14827 else
14828   cat >conftest.$ac_ext <<_ACEOF
14829 /* confdefs.h.  */
14830 _ACEOF
14831 cat confdefs.h >>conftest.$ac_ext
14832 cat >>conftest.$ac_ext <<_ACEOF
14833 /* end confdefs.h.  */
14834
14835   /* sys/types.h is not needed according to POSIX, but the
14836      sys/socket.h in i386-unknown-freebsd4.10 and
14837      powerpc-apple-darwin5.5 required it. */
14838 #include <sys/types.h>
14839 #ifdef HAVE_SYS_SOCKET_H
14840 #include <sys/socket.h>
14841 #endif
14842 #ifdef HAVE_NETDB_H
14843 #include <netdb.h>
14844 #endif
14845 #ifdef HAVE_WS2TCPIP_H
14846 #include <ws2tcpip.h>
14847 #endif
14848
14849
14850 int
14851 main ()
14852 {
14853 #ifndef getnameinfo
14854   char *p = (char *) getnameinfo;
14855   return !p;
14856 #endif
14857
14858   ;
14859   return 0;
14860 }
14861 _ACEOF
14862 rm -f conftest.$ac_objext
14863 if { (ac_try="$ac_compile"
14864 case "(($ac_try" in
14865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14866   *) ac_try_echo=$ac_try;;
14867 esac
14868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14869   (eval "$ac_compile") 2>conftest.er1
14870   ac_status=$?
14871   grep -v '^ *+' conftest.er1 >conftest.err
14872   rm -f conftest.er1
14873   cat conftest.err >&5
14874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875   (exit $ac_status); } &&
14876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14877   { (case "(($ac_try" in
14878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14879   *) ac_try_echo=$ac_try;;
14880 esac
14881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14882   (eval "$ac_try") 2>&5
14883   ac_status=$?
14884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885   (exit $ac_status); }; } &&
14886          { ac_try='test -s conftest.$ac_objext'
14887   { (case "(($ac_try" in
14888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889   *) ac_try_echo=$ac_try;;
14890 esac
14891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892   (eval "$ac_try") 2>&5
14893   ac_status=$?
14894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895   (exit $ac_status); }; }; then
14896   ac_cv_have_decl_getnameinfo=yes
14897 else
14898   echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14900
14901         ac_cv_have_decl_getnameinfo=no
14902 fi
14903
14904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14905 fi
14906 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getnameinfo" >&5
14907 echo "${ECHO_T}$ac_cv_have_decl_getnameinfo" >&6; }
14908 if test $ac_cv_have_decl_getnameinfo = yes; then
14909
14910 cat >>confdefs.h <<_ACEOF
14911 #define HAVE_DECL_GETNAMEINFO 1
14912 _ACEOF
14913
14914
14915 else
14916   cat >>confdefs.h <<_ACEOF
14917 #define HAVE_DECL_GETNAMEINFO 0
14918 _ACEOF
14919
14920
14921 fi
14922
14923
14924   { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
14925 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
14926 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
14927   echo $ECHO_N "(cached) $ECHO_C" >&6
14928 else
14929   cat >conftest.$ac_ext <<_ACEOF
14930 /* confdefs.h.  */
14931 _ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h.  */
14935
14936 #include <sys/types.h>
14937 #ifdef HAVE_SYS_SOCKET_H
14938 #include <sys/socket.h>
14939 #endif
14940 #ifdef HAVE_NETDB_H
14941 #include <netdb.h>
14942 #endif
14943 #ifdef HAVE_WS2TCPIP_H
14944 #include <ws2tcpip.h>
14945 #endif
14946
14947
14948 typedef struct addrinfo ac__type_new_;
14949 int
14950 main ()
14951 {
14952 if ((ac__type_new_ *) 0)
14953   return 0;
14954 if (sizeof (ac__type_new_))
14955   return 0;
14956   ;
14957   return 0;
14958 }
14959 _ACEOF
14960 rm -f conftest.$ac_objext
14961 if { (ac_try="$ac_compile"
14962 case "(($ac_try" in
14963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14964   *) ac_try_echo=$ac_try;;
14965 esac
14966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14967   (eval "$ac_compile") 2>conftest.er1
14968   ac_status=$?
14969   grep -v '^ *+' conftest.er1 >conftest.err
14970   rm -f conftest.er1
14971   cat conftest.err >&5
14972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973   (exit $ac_status); } &&
14974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14975   { (case "(($ac_try" in
14976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14977   *) ac_try_echo=$ac_try;;
14978 esac
14979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14980   (eval "$ac_try") 2>&5
14981   ac_status=$?
14982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983   (exit $ac_status); }; } &&
14984          { ac_try='test -s conftest.$ac_objext'
14985   { (case "(($ac_try" in
14986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987   *) ac_try_echo=$ac_try;;
14988 esac
14989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14990   (eval "$ac_try") 2>&5
14991   ac_status=$?
14992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993   (exit $ac_status); }; }; then
14994   ac_cv_type_struct_addrinfo=yes
14995 else
14996   echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.$ac_ext >&5
14998
14999         ac_cv_type_struct_addrinfo=no
15000 fi
15001
15002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15003 fi
15004 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
15005 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
15006 if test $ac_cv_type_struct_addrinfo = yes; then
15007
15008 cat >>confdefs.h <<_ACEOF
15009 #define HAVE_STRUCT_ADDRINFO 1
15010 _ACEOF
15011
15012
15013 fi
15014
15015
15016
15017
15018
15019   case " $LIBOBJS " in
15020   *" canon-host.$ac_objext "* ) ;;
15021   *) LIBOBJS="$LIBOBJS canon-host.$ac_objext"
15022  ;;
15023 esac
15024
15025
15026
15027
15028
15029
15030
15031   case " $LIBOBJS " in
15032   *" cloexec.$ac_objext "* ) ;;
15033   *) LIBOBJS="$LIBOBJS cloexec.$ac_objext"
15034  ;;
15035 esac
15036
15037
15038
15039
15040   case " $LIBOBJS " in
15041   *" closeout.$ac_objext "* ) ;;
15042   *) LIBOBJS="$LIBOBJS closeout.$ac_objext"
15043  ;;
15044 esac
15045
15046
15047     :
15048
15049
15050
15051   { echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
15052 echo $ECHO_N "checking whether // is distinct from /... $ECHO_C" >&6; }
15053 if test "${ac_cv_double_slash_root+set}" = set; then
15054   echo $ECHO_N "(cached) $ECHO_C" >&6
15055 else
15056    if test x"$cross_compiling" = xyes ; then
15057         # When cross-compiling, there is no way to tell whether // is special
15058         # short of a list of hosts.  However, the only known hosts to date
15059         # that have a distinct // are Apollo DomainOS (too old to port to)
15060         # and Cygwin.  If anyone knows of another system for which // has
15061         # special semantics and is distinct from /, please report it to
15062         # <bug-coreutils@gnu.org>.
15063         case $host in
15064           *-cygwin)
15065             ac_cv_double_slash_root=yes ;;
15066           *)
15067             # Be optimistic and assume that / and // are the same when we
15068             # don't know.
15069             ac_cv_double_slash_root='unknown, assuming no' ;;
15070         esac
15071       else
15072         set x `ls -di / //`
15073         if test $2 = $4; then
15074           ac_cv_double_slash_root=no
15075         else
15076           ac_cv_double_slash_root=yes
15077         fi
15078       fi
15079 fi
15080 { echo "$as_me:$LINENO: result: $ac_cv_double_slash_root" >&5
15081 echo "${ECHO_T}$ac_cv_double_slash_root" >&6; }
15082   if test x"$ac_cv_double_slash_root" = xyes; then
15083     ac_double_slash_root=1
15084   else
15085     ac_double_slash_root=0
15086   fi
15087
15088
15089 cat >>confdefs.h <<_ACEOF
15090 #define DOUBLE_SLASH_IS_DISTINCT_ROOT $ac_double_slash_root
15091 _ACEOF
15092
15093
15094
15095
15096   case " $LIBOBJS " in
15097   *" dirname.$ac_objext "* ) ;;
15098   *) LIBOBJS="$LIBOBJS dirname.$ac_objext"
15099  ;;
15100 esac
15101
15102
15103
15104
15105
15106
15107 { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
15108 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
15109 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
15110   echo $ECHO_N "(cached) $ECHO_C" >&6
15111 else
15112   cat >conftest.$ac_ext <<_ACEOF
15113 /* confdefs.h.  */
15114 _ACEOF
15115 cat confdefs.h >>conftest.$ac_ext
15116 cat >>conftest.$ac_ext <<_ACEOF
15117 /* end confdefs.h.  */
15118 $ac_includes_default
15119 int
15120 main ()
15121 {
15122 #ifndef strerror_r
15123   char *p = (char *) strerror_r;
15124   return !p;
15125 #endif
15126
15127   ;
15128   return 0;
15129 }
15130 _ACEOF
15131 rm -f conftest.$ac_objext
15132 if { (ac_try="$ac_compile"
15133 case "(($ac_try" in
15134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135   *) ac_try_echo=$ac_try;;
15136 esac
15137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138   (eval "$ac_compile") 2>conftest.er1
15139   ac_status=$?
15140   grep -v '^ *+' conftest.er1 >conftest.err
15141   rm -f conftest.er1
15142   cat conftest.err >&5
15143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144   (exit $ac_status); } &&
15145          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15146   { (case "(($ac_try" in
15147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15148   *) ac_try_echo=$ac_try;;
15149 esac
15150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15151   (eval "$ac_try") 2>&5
15152   ac_status=$?
15153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154   (exit $ac_status); }; } &&
15155          { ac_try='test -s conftest.$ac_objext'
15156   { (case "(($ac_try" in
15157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158   *) ac_try_echo=$ac_try;;
15159 esac
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161   (eval "$ac_try") 2>&5
15162   ac_status=$?
15163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164   (exit $ac_status); }; }; then
15165   ac_cv_have_decl_strerror_r=yes
15166 else
15167   echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15169
15170         ac_cv_have_decl_strerror_r=no
15171 fi
15172
15173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15174 fi
15175 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
15176 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
15177 if test $ac_cv_have_decl_strerror_r = yes; then
15178
15179 cat >>confdefs.h <<_ACEOF
15180 #define HAVE_DECL_STRERROR_R 1
15181 _ACEOF
15182
15183
15184 else
15185   cat >>confdefs.h <<_ACEOF
15186 #define HAVE_DECL_STRERROR_R 0
15187 _ACEOF
15188
15189
15190 fi
15191
15192
15193
15194 for ac_func in strerror_r
15195 do
15196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15197 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15199 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15200   echo $ECHO_N "(cached) $ECHO_C" >&6
15201 else
15202   cat >conftest.$ac_ext <<_ACEOF
15203 /* confdefs.h.  */
15204 _ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h.  */
15208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15209    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15210 #define $ac_func innocuous_$ac_func
15211
15212 /* System header to define __stub macros and hopefully few prototypes,
15213     which can conflict with char $ac_func (); below.
15214     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15215     <limits.h> exists even on freestanding compilers.  */
15216
15217 #ifdef __STDC__
15218 # include <limits.h>
15219 #else
15220 # include <assert.h>
15221 #endif
15222
15223 #undef $ac_func
15224
15225 /* Override any GCC internal prototype to avoid an error.
15226    Use char because int might match the return type of a GCC
15227    builtin and then its argument prototype would still apply.  */
15228 #ifdef __cplusplus
15229 extern "C"
15230 #endif
15231 char $ac_func ();
15232 /* The GNU C library defines this for functions which it implements
15233     to always fail with ENOSYS.  Some functions are actually named
15234     something starting with __ and the normal name is an alias.  */
15235 #if defined __stub_$ac_func || defined __stub___$ac_func
15236 choke me
15237 #endif
15238
15239 int
15240 main ()
15241 {
15242 return $ac_func ();
15243   ;
15244   return 0;
15245 }
15246 _ACEOF
15247 rm -f conftest.$ac_objext conftest$ac_exeext
15248 if { (ac_try="$ac_link"
15249 case "(($ac_try" in
15250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251   *) ac_try_echo=$ac_try;;
15252 esac
15253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254   (eval "$ac_link") 2>conftest.er1
15255   ac_status=$?
15256   grep -v '^ *+' conftest.er1 >conftest.err
15257   rm -f conftest.er1
15258   cat conftest.err >&5
15259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260   (exit $ac_status); } &&
15261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15262   { (case "(($ac_try" in
15263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264   *) ac_try_echo=$ac_try;;
15265 esac
15266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267   (eval "$ac_try") 2>&5
15268   ac_status=$?
15269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270   (exit $ac_status); }; } &&
15271          { ac_try='test -s conftest$ac_exeext'
15272   { (case "(($ac_try" in
15273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15274   *) ac_try_echo=$ac_try;;
15275 esac
15276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15277   (eval "$ac_try") 2>&5
15278   ac_status=$?
15279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280   (exit $ac_status); }; }; then
15281   eval "$as_ac_var=yes"
15282 else
15283   echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15285
15286         eval "$as_ac_var=no"
15287 fi
15288
15289 rm -f core conftest.err conftest.$ac_objext \
15290       conftest$ac_exeext conftest.$ac_ext
15291 fi
15292 ac_res=`eval echo '${'$as_ac_var'}'`
15293                { echo "$as_me:$LINENO: result: $ac_res" >&5
15294 echo "${ECHO_T}$ac_res" >&6; }
15295 if test `eval echo '${'$as_ac_var'}'` = yes; then
15296   cat >>confdefs.h <<_ACEOF
15297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15298 _ACEOF
15299
15300 fi
15301 done
15302
15303 { echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
15304 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
15305 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
15306   echo $ECHO_N "(cached) $ECHO_C" >&6
15307 else
15308
15309     ac_cv_func_strerror_r_char_p=no
15310     if test $ac_cv_have_decl_strerror_r = yes; then
15311       cat >conftest.$ac_ext <<_ACEOF
15312 /* confdefs.h.  */
15313 _ACEOF
15314 cat confdefs.h >>conftest.$ac_ext
15315 cat >>conftest.$ac_ext <<_ACEOF
15316 /* end confdefs.h.  */
15317 $ac_includes_default
15318 int
15319 main ()
15320 {
15321
15322           char buf[100];
15323           char x = *strerror_r (0, buf, sizeof buf);
15324           char *p = strerror_r (0, buf, sizeof buf);
15325           return !p || x;
15326
15327   ;
15328   return 0;
15329 }
15330 _ACEOF
15331 rm -f conftest.$ac_objext
15332 if { (ac_try="$ac_compile"
15333 case "(($ac_try" in
15334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335   *) ac_try_echo=$ac_try;;
15336 esac
15337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338   (eval "$ac_compile") 2>conftest.er1
15339   ac_status=$?
15340   grep -v '^ *+' conftest.er1 >conftest.err
15341   rm -f conftest.er1
15342   cat conftest.err >&5
15343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344   (exit $ac_status); } &&
15345          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15346   { (case "(($ac_try" in
15347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15348   *) ac_try_echo=$ac_try;;
15349 esac
15350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15351   (eval "$ac_try") 2>&5
15352   ac_status=$?
15353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354   (exit $ac_status); }; } &&
15355          { ac_try='test -s conftest.$ac_objext'
15356   { (case "(($ac_try" in
15357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15358   *) ac_try_echo=$ac_try;;
15359 esac
15360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15361   (eval "$ac_try") 2>&5
15362   ac_status=$?
15363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364   (exit $ac_status); }; }; then
15365   ac_cv_func_strerror_r_char_p=yes
15366 else
15367   echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15369
15370
15371 fi
15372
15373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15374     else
15375       # strerror_r is not declared.  Choose between
15376       # systems that have relatively inaccessible declarations for the
15377       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
15378       # former has a strerror_r that returns char*, while the latter
15379       # has a strerror_r that returns `int'.
15380       # This test should segfault on the DEC system.
15381       if test "$cross_compiling" = yes; then
15382   :
15383 else
15384   cat >conftest.$ac_ext <<_ACEOF
15385 /* confdefs.h.  */
15386 _ACEOF
15387 cat confdefs.h >>conftest.$ac_ext
15388 cat >>conftest.$ac_ext <<_ACEOF
15389 /* end confdefs.h.  */
15390 $ac_includes_default
15391         extern char *strerror_r ();
15392 int
15393 main ()
15394 {
15395 char buf[100];
15396           char x = *strerror_r (0, buf, sizeof buf);
15397           return ! isalpha (x);
15398   ;
15399   return 0;
15400 }
15401 _ACEOF
15402 rm -f conftest$ac_exeext
15403 if { (ac_try="$ac_link"
15404 case "(($ac_try" in
15405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15406   *) ac_try_echo=$ac_try;;
15407 esac
15408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15409   (eval "$ac_link") 2>&5
15410   ac_status=$?
15411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15413   { (case "(($ac_try" in
15414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415   *) ac_try_echo=$ac_try;;
15416 esac
15417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418   (eval "$ac_try") 2>&5
15419   ac_status=$?
15420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421   (exit $ac_status); }; }; then
15422   ac_cv_func_strerror_r_char_p=yes
15423 else
15424   echo "$as_me: program exited with status $ac_status" >&5
15425 echo "$as_me: failed program was:" >&5
15426 sed 's/^/| /' conftest.$ac_ext >&5
15427
15428 fi
15429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15430 fi
15431
15432
15433     fi
15434
15435 fi
15436 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
15437 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
15438 if test $ac_cv_func_strerror_r_char_p = yes; then
15439
15440 cat >>confdefs.h <<\_ACEOF
15441 #define STRERROR_R_CHAR_P 1
15442 _ACEOF
15443
15444 fi
15445
15446
15447   { echo "$as_me:$LINENO: checking for error_at_line" >&5
15448 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
15449 if test "${ac_cv_lib_error_at_line+set}" = set; then
15450   echo $ECHO_N "(cached) $ECHO_C" >&6
15451 else
15452   cat >conftest.$ac_ext <<_ACEOF
15453 /* confdefs.h.  */
15454 _ACEOF
15455 cat confdefs.h >>conftest.$ac_ext
15456 cat >>conftest.$ac_ext <<_ACEOF
15457 /* end confdefs.h.  */
15458 $ac_includes_default
15459 int
15460 main ()
15461 {
15462 error_at_line (0, 0, "", 0, "");
15463   ;
15464   return 0;
15465 }
15466 _ACEOF
15467 rm -f conftest.$ac_objext conftest$ac_exeext
15468 if { (ac_try="$ac_link"
15469 case "(($ac_try" in
15470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471   *) ac_try_echo=$ac_try;;
15472 esac
15473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474   (eval "$ac_link") 2>conftest.er1
15475   ac_status=$?
15476   grep -v '^ *+' conftest.er1 >conftest.err
15477   rm -f conftest.er1
15478   cat conftest.err >&5
15479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480   (exit $ac_status); } &&
15481          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15482   { (case "(($ac_try" in
15483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15484   *) ac_try_echo=$ac_try;;
15485 esac
15486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15487   (eval "$ac_try") 2>&5
15488   ac_status=$?
15489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490   (exit $ac_status); }; } &&
15491          { ac_try='test -s conftest$ac_exeext'
15492   { (case "(($ac_try" in
15493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494   *) ac_try_echo=$ac_try;;
15495 esac
15496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15497   (eval "$ac_try") 2>&5
15498   ac_status=$?
15499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500   (exit $ac_status); }; }; then
15501   ac_cv_lib_error_at_line=yes
15502 else
15503   echo "$as_me: failed program was:" >&5
15504 sed 's/^/| /' conftest.$ac_ext >&5
15505
15506         ac_cv_lib_error_at_line=no
15507 fi
15508
15509 rm -f core conftest.err conftest.$ac_objext \
15510       conftest$ac_exeext conftest.$ac_ext
15511 fi
15512 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
15513 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
15514 if test $ac_cv_lib_error_at_line = no; then
15515   case " $LIBOBJS " in
15516   *" error.$ac_objext "* ) ;;
15517   *) LIBOBJS="$LIBOBJS error.$ac_objext"
15518  ;;
15519 esac
15520
15521 fi
15522
15523
15524
15525   :
15526
15527
15528
15529
15530   case " $LIBOBJS " in
15531   *" exclude.$ac_objext "* ) ;;
15532   *) LIBOBJS="$LIBOBJS exclude.$ac_objext"
15533  ;;
15534 esac
15535
15536
15537
15538
15539   case " $LIBOBJS " in
15540   *" exitfail.$ac_objext "* ) ;;
15541   *) LIBOBJS="$LIBOBJS exitfail.$ac_objext"
15542  ;;
15543 esac
15544
15545
15546     :
15547
15548
15549
15550   case " $LIBOBJS " in
15551   *" open-safer.$ac_objext "* ) ;;
15552   *) LIBOBJS="$LIBOBJS open-safer.$ac_objext"
15553  ;;
15554 esac
15555
15556   case " $LIBOBJS " in
15557   *" creat-safer.$ac_objext "* ) ;;
15558   *) LIBOBJS="$LIBOBJS creat-safer.$ac_objext"
15559  ;;
15560 esac
15561
15562
15563
15564
15565   case " $LIBOBJS " in
15566   *" fd-reopen.$ac_objext "* ) ;;
15567   *) LIBOBJS="$LIBOBJS fd-reopen.$ac_objext"
15568  ;;
15569 esac
15570
15571
15572
15573   { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
15574 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
15575 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
15576   echo $ECHO_N "(cached) $ECHO_C" >&6
15577 else
15578   cat >conftest.$ac_ext <<_ACEOF
15579 /* confdefs.h.  */
15580 _ACEOF
15581 cat confdefs.h >>conftest.$ac_ext
15582 cat >>conftest.$ac_ext <<_ACEOF
15583 /* end confdefs.h.  */
15584 $ac_includes_default
15585 int
15586 main ()
15587 {
15588 static struct stat ac_aggr;
15589 if (ac_aggr.st_blocks)
15590 return 0;
15591   ;
15592   return 0;
15593 }
15594 _ACEOF
15595 rm -f conftest.$ac_objext
15596 if { (ac_try="$ac_compile"
15597 case "(($ac_try" in
15598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15599   *) ac_try_echo=$ac_try;;
15600 esac
15601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15602   (eval "$ac_compile") 2>conftest.er1
15603   ac_status=$?
15604   grep -v '^ *+' conftest.er1 >conftest.err
15605   rm -f conftest.er1
15606   cat conftest.err >&5
15607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608   (exit $ac_status); } &&
15609          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15610   { (case "(($ac_try" in
15611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15612   *) ac_try_echo=$ac_try;;
15613 esac
15614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15615   (eval "$ac_try") 2>&5
15616   ac_status=$?
15617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618   (exit $ac_status); }; } &&
15619          { ac_try='test -s conftest.$ac_objext'
15620   { (case "(($ac_try" in
15621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15622   *) ac_try_echo=$ac_try;;
15623 esac
15624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15625   (eval "$ac_try") 2>&5
15626   ac_status=$?
15627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628   (exit $ac_status); }; }; then
15629   ac_cv_member_struct_stat_st_blocks=yes
15630 else
15631   echo "$as_me: failed program was:" >&5
15632 sed 's/^/| /' conftest.$ac_ext >&5
15633
15634         cat >conftest.$ac_ext <<_ACEOF
15635 /* confdefs.h.  */
15636 _ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h.  */
15640 $ac_includes_default
15641 int
15642 main ()
15643 {
15644 static struct stat ac_aggr;
15645 if (sizeof ac_aggr.st_blocks)
15646 return 0;
15647   ;
15648   return 0;
15649 }
15650 _ACEOF
15651 rm -f conftest.$ac_objext
15652 if { (ac_try="$ac_compile"
15653 case "(($ac_try" in
15654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655   *) ac_try_echo=$ac_try;;
15656 esac
15657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15658   (eval "$ac_compile") 2>conftest.er1
15659   ac_status=$?
15660   grep -v '^ *+' conftest.er1 >conftest.err
15661   rm -f conftest.er1
15662   cat conftest.err >&5
15663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664   (exit $ac_status); } &&
15665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15666   { (case "(($ac_try" in
15667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668   *) ac_try_echo=$ac_try;;
15669 esac
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671   (eval "$ac_try") 2>&5
15672   ac_status=$?
15673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674   (exit $ac_status); }; } &&
15675          { ac_try='test -s conftest.$ac_objext'
15676   { (case "(($ac_try" in
15677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15678   *) ac_try_echo=$ac_try;;
15679 esac
15680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15681   (eval "$ac_try") 2>&5
15682   ac_status=$?
15683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684   (exit $ac_status); }; }; then
15685   ac_cv_member_struct_stat_st_blocks=yes
15686 else
15687   echo "$as_me: failed program was:" >&5
15688 sed 's/^/| /' conftest.$ac_ext >&5
15689
15690         ac_cv_member_struct_stat_st_blocks=no
15691 fi
15692
15693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15694 fi
15695
15696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15697 fi
15698 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
15699 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
15700 if test $ac_cv_member_struct_stat_st_blocks = yes; then
15701
15702 cat >>confdefs.h <<_ACEOF
15703 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
15704 _ACEOF
15705
15706
15707 cat >>confdefs.h <<\_ACEOF
15708 #define HAVE_ST_BLOCKS 1
15709 _ACEOF
15710
15711 else
15712   case " $LIBOBJS " in
15713   *" fileblocks.$ac_objext "* ) ;;
15714   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
15715  ;;
15716 esac
15717
15718 fi
15719
15720
15721     if test $ac_cv_member_struct_stat_st_blocks = no; then
15722
15723
15724
15725
15726
15727
15728
15729   :
15730
15731   fi
15732
15733 { echo "$as_me:$LINENO: checking whether strmode is declared" >&5
15734 echo $ECHO_N "checking whether strmode is declared... $ECHO_C" >&6; }
15735 if test "${ac_cv_have_decl_strmode+set}" = set; then
15736   echo $ECHO_N "(cached) $ECHO_C" >&6
15737 else
15738   cat >conftest.$ac_ext <<_ACEOF
15739 /* confdefs.h.  */
15740 _ACEOF
15741 cat confdefs.h >>conftest.$ac_ext
15742 cat >>conftest.$ac_ext <<_ACEOF
15743 /* end confdefs.h.  */
15744 $ac_includes_default
15745 int
15746 main ()
15747 {
15748 #ifndef strmode
15749   char *p = (char *) strmode;
15750   return !p;
15751 #endif
15752
15753   ;
15754   return 0;
15755 }
15756 _ACEOF
15757 rm -f conftest.$ac_objext
15758 if { (ac_try="$ac_compile"
15759 case "(($ac_try" in
15760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15761   *) ac_try_echo=$ac_try;;
15762 esac
15763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15764   (eval "$ac_compile") 2>conftest.er1
15765   ac_status=$?
15766   grep -v '^ *+' conftest.er1 >conftest.err
15767   rm -f conftest.er1
15768   cat conftest.err >&5
15769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770   (exit $ac_status); } &&
15771          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15772   { (case "(($ac_try" in
15773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15774   *) ac_try_echo=$ac_try;;
15775 esac
15776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15777   (eval "$ac_try") 2>&5
15778   ac_status=$?
15779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780   (exit $ac_status); }; } &&
15781          { ac_try='test -s conftest.$ac_objext'
15782   { (case "(($ac_try" in
15783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15784   *) ac_try_echo=$ac_try;;
15785 esac
15786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15787   (eval "$ac_try") 2>&5
15788   ac_status=$?
15789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790   (exit $ac_status); }; }; then
15791   ac_cv_have_decl_strmode=yes
15792 else
15793   echo "$as_me: failed program was:" >&5
15794 sed 's/^/| /' conftest.$ac_ext >&5
15795
15796         ac_cv_have_decl_strmode=no
15797 fi
15798
15799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15800 fi
15801 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strmode" >&5
15802 echo "${ECHO_T}$ac_cv_have_decl_strmode" >&6; }
15803 if test $ac_cv_have_decl_strmode = yes; then
15804
15805 cat >>confdefs.h <<_ACEOF
15806 #define HAVE_DECL_STRMODE 1
15807 _ACEOF
15808
15809
15810 else
15811   cat >>confdefs.h <<_ACEOF
15812 #define HAVE_DECL_STRMODE 0
15813 _ACEOF
15814
15815
15816 fi
15817
15818
15819
15820
15821   case " $LIBOBJS " in
15822   *" filemode.$ac_objext "* ) ;;
15823   *) LIBOBJS="$LIBOBJS filemode.$ac_objext"
15824  ;;
15825 esac
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836   case " $LIBOBJS " in
15837   *" filenamecat.$ac_objext "* ) ;;
15838   *) LIBOBJS="$LIBOBJS filenamecat.$ac_objext"
15839  ;;
15840 esac
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852   case " $LIBOBJS " in
15853   *" file-type.$ac_objext "* ) ;;
15854   *) LIBOBJS="$LIBOBJS file-type.$ac_objext"
15855  ;;
15856 esac
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879 for ac_header in sys/mount.h
15880 do
15881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15885   echo $ECHO_N "(cached) $ECHO_C" >&6
15886 else
15887   cat >conftest.$ac_ext <<_ACEOF
15888 /* confdefs.h.  */
15889 _ACEOF
15890 cat confdefs.h >>conftest.$ac_ext
15891 cat >>conftest.$ac_ext <<_ACEOF
15892 /* end confdefs.h.  */
15893 $ac_includes_default
15894      #if HAVE_SYS_PARAM_H
15895        #include <sys/param.h>
15896       #endif
15897
15898 #include <$ac_header>
15899 _ACEOF
15900 rm -f conftest.$ac_objext
15901 if { (ac_try="$ac_compile"
15902 case "(($ac_try" in
15903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15904   *) ac_try_echo=$ac_try;;
15905 esac
15906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15907   (eval "$ac_compile") 2>conftest.er1
15908   ac_status=$?
15909   grep -v '^ *+' conftest.er1 >conftest.err
15910   rm -f conftest.er1
15911   cat conftest.err >&5
15912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913   (exit $ac_status); } &&
15914          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15915   { (case "(($ac_try" in
15916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15917   *) ac_try_echo=$ac_try;;
15918 esac
15919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15920   (eval "$ac_try") 2>&5
15921   ac_status=$?
15922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923   (exit $ac_status); }; } &&
15924          { ac_try='test -s conftest.$ac_objext'
15925   { (case "(($ac_try" in
15926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15927   *) ac_try_echo=$ac_try;;
15928 esac
15929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15930   (eval "$ac_try") 2>&5
15931   ac_status=$?
15932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933   (exit $ac_status); }; }; then
15934   eval "$as_ac_Header=yes"
15935 else
15936   echo "$as_me: failed program was:" >&5
15937 sed 's/^/| /' conftest.$ac_ext >&5
15938
15939         eval "$as_ac_Header=no"
15940 fi
15941
15942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15943 fi
15944 ac_res=`eval echo '${'$as_ac_Header'}'`
15945                { echo "$as_me:$LINENO: result: $ac_res" >&5
15946 echo "${ECHO_T}$ac_res" >&6; }
15947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15948   cat >>confdefs.h <<_ACEOF
15949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15950 _ACEOF
15951
15952 fi
15953
15954 done
15955
15956
15957
15958 echo "checking how to get file system space usage..."
15959 ac_fsusage_space=no
15960
15961 # Perform only the link test since it seems there are no variants of the
15962 # statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs)
15963 # because that got a false positive on SCO OSR5.  Adding the declaration
15964 # of a `struct statvfs' causes this test to fail (as it should) on such
15965 # systems.  That system is reported to work fine with STAT_STATFS4 which
15966 # is what it gets when this test fails.
15967 if test $ac_fsusage_space = no; then
15968   # SVR4
15969   { echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
15970 echo $ECHO_N "checking for statvfs function (SVR4)... $ECHO_C" >&6; }
15971 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
15972   echo $ECHO_N "(cached) $ECHO_C" >&6
15973 else
15974   cat >conftest.$ac_ext <<_ACEOF
15975 /* confdefs.h.  */
15976 _ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h.  */
15980 #include <sys/types.h>
15981 #ifdef __GLIBC__
15982 Do not use statvfs on systems with GNU libc, because that function stats
15983 all preceding entries in /proc/mounts, and that makes df hang if even
15984 one of the corresponding file systems is hard-mounted, but not available.
15985 #endif
15986 #include <sys/statvfs.h>
15987 int
15988 main ()
15989 {
15990 struct statvfs fsd; statvfs (0, &fsd);
15991   ;
15992   return 0;
15993 }
15994 _ACEOF
15995 rm -f conftest.$ac_objext conftest$ac_exeext
15996 if { (ac_try="$ac_link"
15997 case "(($ac_try" in
15998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15999   *) ac_try_echo=$ac_try;;
16000 esac
16001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16002   (eval "$ac_link") 2>conftest.er1
16003   ac_status=$?
16004   grep -v '^ *+' conftest.er1 >conftest.err
16005   rm -f conftest.er1
16006   cat conftest.err >&5
16007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008   (exit $ac_status); } &&
16009          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16010   { (case "(($ac_try" in
16011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16012   *) ac_try_echo=$ac_try;;
16013 esac
16014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16015   (eval "$ac_try") 2>&5
16016   ac_status=$?
16017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018   (exit $ac_status); }; } &&
16019          { ac_try='test -s conftest$ac_exeext'
16020   { (case "(($ac_try" in
16021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022   *) ac_try_echo=$ac_try;;
16023 esac
16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025   (eval "$ac_try") 2>&5
16026   ac_status=$?
16027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028   (exit $ac_status); }; }; then
16029   fu_cv_sys_stat_statvfs=yes
16030 else
16031   echo "$as_me: failed program was:" >&5
16032 sed 's/^/| /' conftest.$ac_ext >&5
16033
16034         fu_cv_sys_stat_statvfs=no
16035 fi
16036
16037 rm -f core conftest.err conftest.$ac_objext \
16038       conftest$ac_exeext conftest.$ac_ext
16039 fi
16040 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
16041 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6; }
16042   if test $fu_cv_sys_stat_statvfs = yes; then
16043     ac_fsusage_space=yes
16044
16045 cat >>confdefs.h <<\_ACEOF
16046 #define STAT_STATVFS 1
16047 _ACEOF
16048
16049   fi
16050 fi
16051
16052 if test $ac_fsusage_space = no; then
16053   # DEC Alpha running OSF/1
16054   { echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
16055 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6; }
16056   if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
16057   echo $ECHO_N "(cached) $ECHO_C" >&6
16058 else
16059   if test "$cross_compiling" = yes; then
16060   fu_cv_sys_stat_statfs3_osf1=no
16061 else
16062   cat >conftest.$ac_ext <<_ACEOF
16063 /* confdefs.h.  */
16064 _ACEOF
16065 cat confdefs.h >>conftest.$ac_ext
16066 cat >>conftest.$ac_ext <<_ACEOF
16067 /* end confdefs.h.  */
16068
16069 #include <sys/param.h>
16070 #include <sys/types.h>
16071 #include <sys/mount.h>
16072   int
16073   main ()
16074   {
16075     struct statfs fsd;
16076     fsd.f_fsize = 0;
16077     return statfs (".", &fsd, sizeof (struct statfs)) != 0;
16078   }
16079 _ACEOF
16080 rm -f conftest$ac_exeext
16081 if { (ac_try="$ac_link"
16082 case "(($ac_try" in
16083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16084   *) ac_try_echo=$ac_try;;
16085 esac
16086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16087   (eval "$ac_link") 2>&5
16088   ac_status=$?
16089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16091   { (case "(($ac_try" in
16092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093   *) ac_try_echo=$ac_try;;
16094 esac
16095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16096   (eval "$ac_try") 2>&5
16097   ac_status=$?
16098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099   (exit $ac_status); }; }; then
16100   fu_cv_sys_stat_statfs3_osf1=yes
16101 else
16102   echo "$as_me: program exited with status $ac_status" >&5
16103 echo "$as_me: failed program was:" >&5
16104 sed 's/^/| /' conftest.$ac_ext >&5
16105
16106 ( exit $ac_status )
16107 fu_cv_sys_stat_statfs3_osf1=no
16108 fi
16109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16110 fi
16111
16112
16113 fi
16114
16115   { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
16116 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6; }
16117   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
16118     ac_fsusage_space=yes
16119
16120 cat >>confdefs.h <<\_ACEOF
16121 #define STAT_STATFS3_OSF1 1
16122 _ACEOF
16123
16124   fi
16125 fi
16126
16127 if test $ac_fsusage_space = no; then
16128 # AIX
16129   { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
16130 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6; }
16131   if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
16132   echo $ECHO_N "(cached) $ECHO_C" >&6
16133 else
16134   if test "$cross_compiling" = yes; then
16135   fu_cv_sys_stat_statfs2_bsize=no
16136 else
16137   cat >conftest.$ac_ext <<_ACEOF
16138 /* confdefs.h.  */
16139 _ACEOF
16140 cat confdefs.h >>conftest.$ac_ext
16141 cat >>conftest.$ac_ext <<_ACEOF
16142 /* end confdefs.h.  */
16143
16144 #ifdef HAVE_SYS_PARAM_H
16145 #include <sys/param.h>
16146 #endif
16147 #ifdef HAVE_SYS_MOUNT_H
16148 #include <sys/mount.h>
16149 #endif
16150 #ifdef HAVE_SYS_VFS_H
16151 #include <sys/vfs.h>
16152 #endif
16153   int
16154   main ()
16155   {
16156   struct statfs fsd;
16157   fsd.f_bsize = 0;
16158   return statfs (".", &fsd) != 0;
16159   }
16160 _ACEOF
16161 rm -f conftest$ac_exeext
16162 if { (ac_try="$ac_link"
16163 case "(($ac_try" in
16164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16165   *) ac_try_echo=$ac_try;;
16166 esac
16167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16168   (eval "$ac_link") 2>&5
16169   ac_status=$?
16170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16172   { (case "(($ac_try" in
16173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16174   *) ac_try_echo=$ac_try;;
16175 esac
16176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16177   (eval "$ac_try") 2>&5
16178   ac_status=$?
16179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180   (exit $ac_status); }; }; then
16181   fu_cv_sys_stat_statfs2_bsize=yes
16182 else
16183   echo "$as_me: program exited with status $ac_status" >&5
16184 echo "$as_me: failed program was:" >&5
16185 sed 's/^/| /' conftest.$ac_ext >&5
16186
16187 ( exit $ac_status )
16188 fu_cv_sys_stat_statfs2_bsize=no
16189 fi
16190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16191 fi
16192
16193
16194 fi
16195
16196   { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
16197 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6; }
16198   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
16199     ac_fsusage_space=yes
16200
16201 cat >>confdefs.h <<\_ACEOF
16202 #define STAT_STATFS2_BSIZE 1
16203 _ACEOF
16204
16205   fi
16206 fi
16207
16208 if test $ac_fsusage_space = no; then
16209 # SVR3
16210   { echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
16211 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6; }
16212   if test "${fu_cv_sys_stat_statfs4+set}" = set; then
16213   echo $ECHO_N "(cached) $ECHO_C" >&6
16214 else
16215   if test "$cross_compiling" = yes; then
16216   fu_cv_sys_stat_statfs4=no
16217 else
16218   cat >conftest.$ac_ext <<_ACEOF
16219 /* confdefs.h.  */
16220 _ACEOF
16221 cat confdefs.h >>conftest.$ac_ext
16222 cat >>conftest.$ac_ext <<_ACEOF
16223 /* end confdefs.h.  */
16224 #include <sys/types.h>
16225 #include <sys/statfs.h>
16226   int
16227   main ()
16228   {
16229   struct statfs fsd;
16230   return statfs (".", &fsd, sizeof fsd, 0) != 0;
16231   }
16232 _ACEOF
16233 rm -f conftest$ac_exeext
16234 if { (ac_try="$ac_link"
16235 case "(($ac_try" in
16236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16237   *) ac_try_echo=$ac_try;;
16238 esac
16239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16240   (eval "$ac_link") 2>&5
16241   ac_status=$?
16242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16244   { (case "(($ac_try" in
16245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246   *) ac_try_echo=$ac_try;;
16247 esac
16248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16249   (eval "$ac_try") 2>&5
16250   ac_status=$?
16251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252   (exit $ac_status); }; }; then
16253   fu_cv_sys_stat_statfs4=yes
16254 else
16255   echo "$as_me: program exited with status $ac_status" >&5
16256 echo "$as_me: failed program was:" >&5
16257 sed 's/^/| /' conftest.$ac_ext >&5
16258
16259 ( exit $ac_status )
16260 fu_cv_sys_stat_statfs4=no
16261 fi
16262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16263 fi
16264
16265
16266 fi
16267
16268   { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
16269 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6; }
16270   if test $fu_cv_sys_stat_statfs4 = yes; then
16271     ac_fsusage_space=yes
16272
16273 cat >>confdefs.h <<\_ACEOF
16274 #define STAT_STATFS4 1
16275 _ACEOF
16276
16277   fi
16278 fi
16279
16280 if test $ac_fsusage_space = no; then
16281 # 4.4BSD and NetBSD
16282   { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
16283 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6; }
16284   if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
16285   echo $ECHO_N "(cached) $ECHO_C" >&6
16286 else
16287   if test "$cross_compiling" = yes; then
16288   fu_cv_sys_stat_statfs2_fsize=no
16289 else
16290   cat >conftest.$ac_ext <<_ACEOF
16291 /* confdefs.h.  */
16292 _ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h.  */
16296 #include <sys/types.h>
16297 #ifdef HAVE_SYS_PARAM_H
16298 #include <sys/param.h>
16299 #endif
16300 #ifdef HAVE_SYS_MOUNT_H
16301 #include <sys/mount.h>
16302 #endif
16303   int
16304   main ()
16305   {
16306   struct statfs fsd;
16307   fsd.f_fsize = 0;
16308   return statfs (".", &fsd) != 0;
16309   }
16310 _ACEOF
16311 rm -f conftest$ac_exeext
16312 if { (ac_try="$ac_link"
16313 case "(($ac_try" in
16314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315   *) ac_try_echo=$ac_try;;
16316 esac
16317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16318   (eval "$ac_link") 2>&5
16319   ac_status=$?
16320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16322   { (case "(($ac_try" in
16323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16324   *) ac_try_echo=$ac_try;;
16325 esac
16326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16327   (eval "$ac_try") 2>&5
16328   ac_status=$?
16329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330   (exit $ac_status); }; }; then
16331   fu_cv_sys_stat_statfs2_fsize=yes
16332 else
16333   echo "$as_me: program exited with status $ac_status" >&5
16334 echo "$as_me: failed program was:" >&5
16335 sed 's/^/| /' conftest.$ac_ext >&5
16336
16337 ( exit $ac_status )
16338 fu_cv_sys_stat_statfs2_fsize=no
16339 fi
16340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16341 fi
16342
16343
16344 fi
16345
16346   { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
16347 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6; }
16348   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
16349     ac_fsusage_space=yes
16350
16351 cat >>confdefs.h <<\_ACEOF
16352 #define STAT_STATFS2_FSIZE 1
16353 _ACEOF
16354
16355   fi
16356 fi
16357
16358 if test $ac_fsusage_space = no; then
16359   # Ultrix
16360   { echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
16361 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6; }
16362   if test "${fu_cv_sys_stat_fs_data+set}" = set; then
16363   echo $ECHO_N "(cached) $ECHO_C" >&6
16364 else
16365   if test "$cross_compiling" = yes; then
16366   fu_cv_sys_stat_fs_data=no
16367 else
16368   cat >conftest.$ac_ext <<_ACEOF
16369 /* confdefs.h.  */
16370 _ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h.  */
16374 #include <sys/types.h>
16375 #ifdef HAVE_SYS_PARAM_H
16376 #include <sys/param.h>
16377 #endif
16378 #ifdef HAVE_SYS_MOUNT_H
16379 #include <sys/mount.h>
16380 #endif
16381 #ifdef HAVE_SYS_FS_TYPES_H
16382 #include <sys/fs_types.h>
16383 #endif
16384   int
16385   main ()
16386   {
16387   struct fs_data fsd;
16388   /* Ultrix's statfs returns 1 for success,
16389      0 for not mounted, -1 for failure.  */
16390   return statfs (".", &fsd) != 1;
16391   }
16392 _ACEOF
16393 rm -f conftest$ac_exeext
16394 if { (ac_try="$ac_link"
16395 case "(($ac_try" in
16396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16397   *) ac_try_echo=$ac_try;;
16398 esac
16399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16400   (eval "$ac_link") 2>&5
16401   ac_status=$?
16402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16404   { (case "(($ac_try" in
16405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406   *) ac_try_echo=$ac_try;;
16407 esac
16408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16409   (eval "$ac_try") 2>&5
16410   ac_status=$?
16411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412   (exit $ac_status); }; }; then
16413   fu_cv_sys_stat_fs_data=yes
16414 else
16415   echo "$as_me: program exited with status $ac_status" >&5
16416 echo "$as_me: failed program was:" >&5
16417 sed 's/^/| /' conftest.$ac_ext >&5
16418
16419 ( exit $ac_status )
16420 fu_cv_sys_stat_fs_data=no
16421 fi
16422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16423 fi
16424
16425
16426 fi
16427
16428   { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
16429 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6; }
16430   if test $fu_cv_sys_stat_fs_data = yes; then
16431     ac_fsusage_space=yes
16432
16433 cat >>confdefs.h <<\_ACEOF
16434 #define STAT_STATFS2_FS_DATA 1
16435 _ACEOF
16436
16437   fi
16438 fi
16439
16440 if test $ac_fsusage_space = no; then
16441   # SVR2
16442   cat >conftest.$ac_ext <<_ACEOF
16443 /* confdefs.h.  */
16444 _ACEOF
16445 cat confdefs.h >>conftest.$ac_ext
16446 cat >>conftest.$ac_ext <<_ACEOF
16447 /* end confdefs.h.  */
16448 #include <sys/filsys.h>
16449
16450 _ACEOF
16451 if { (ac_try="$ac_cpp conftest.$ac_ext"
16452 case "(($ac_try" in
16453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16454   *) ac_try_echo=$ac_try;;
16455 esac
16456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16457   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16458   ac_status=$?
16459   grep -v '^ *+' conftest.er1 >conftest.err
16460   rm -f conftest.er1
16461   cat conftest.err >&5
16462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463   (exit $ac_status); } >/dev/null; then
16464   if test -s conftest.err; then
16465     ac_cpp_err=$ac_c_preproc_warn_flag
16466     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16467   else
16468     ac_cpp_err=
16469   fi
16470 else
16471   ac_cpp_err=yes
16472 fi
16473 if test -z "$ac_cpp_err"; then
16474
16475 cat >>confdefs.h <<\_ACEOF
16476 #define STAT_READ_FILSYS 1
16477 _ACEOF
16478
16479     ac_fsusage_space=yes
16480 else
16481   echo "$as_me: failed program was:" >&5
16482 sed 's/^/| /' conftest.$ac_ext >&5
16483
16484
16485 fi
16486
16487 rm -f conftest.err conftest.$ac_ext
16488 fi
16489
16490 if test $ac_fsusage_space = yes; then
16491   gl_cv_fs_space=yes
16492 else
16493   gl_cv_fs_space=no
16494 fi
16495
16496
16497
16498   if test $gl_cv_fs_space = yes; then
16499     case " $LIBOBJS " in
16500   *" fsusage.$ac_objext "* ) ;;
16501   *) LIBOBJS="$LIBOBJS fsusage.$ac_objext"
16502  ;;
16503 esac
16504
16505
16506
16507
16508
16509
16510
16511
16512 for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h sys/statvfs.h
16513 do
16514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16516   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16519   echo $ECHO_N "(cached) $ECHO_C" >&6
16520 fi
16521 ac_res=`eval echo '${'$as_ac_Header'}'`
16522                { echo "$as_me:$LINENO: result: $ac_res" >&5
16523 echo "${ECHO_T}$ac_res" >&6; }
16524 else
16525   # Is the header compilable?
16526 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16527 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16528 cat >conftest.$ac_ext <<_ACEOF
16529 /* confdefs.h.  */
16530 _ACEOF
16531 cat confdefs.h >>conftest.$ac_ext
16532 cat >>conftest.$ac_ext <<_ACEOF
16533 /* end confdefs.h.  */
16534 $ac_includes_default
16535 #include <$ac_header>
16536 _ACEOF
16537 rm -f conftest.$ac_objext
16538 if { (ac_try="$ac_compile"
16539 case "(($ac_try" in
16540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541   *) ac_try_echo=$ac_try;;
16542 esac
16543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16544   (eval "$ac_compile") 2>conftest.er1
16545   ac_status=$?
16546   grep -v '^ *+' conftest.er1 >conftest.err
16547   rm -f conftest.er1
16548   cat conftest.err >&5
16549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550   (exit $ac_status); } &&
16551          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16552   { (case "(($ac_try" in
16553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554   *) ac_try_echo=$ac_try;;
16555 esac
16556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16557   (eval "$ac_try") 2>&5
16558   ac_status=$?
16559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560   (exit $ac_status); }; } &&
16561          { ac_try='test -s conftest.$ac_objext'
16562   { (case "(($ac_try" in
16563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564   *) ac_try_echo=$ac_try;;
16565 esac
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567   (eval "$ac_try") 2>&5
16568   ac_status=$?
16569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570   (exit $ac_status); }; }; then
16571   ac_header_compiler=yes
16572 else
16573   echo "$as_me: failed program was:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16575
16576         ac_header_compiler=no
16577 fi
16578
16579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16580 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16581 echo "${ECHO_T}$ac_header_compiler" >&6; }
16582
16583 # Is the header present?
16584 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16585 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16586 cat >conftest.$ac_ext <<_ACEOF
16587 /* confdefs.h.  */
16588 _ACEOF
16589 cat confdefs.h >>conftest.$ac_ext
16590 cat >>conftest.$ac_ext <<_ACEOF
16591 /* end confdefs.h.  */
16592 #include <$ac_header>
16593 _ACEOF
16594 if { (ac_try="$ac_cpp conftest.$ac_ext"
16595 case "(($ac_try" in
16596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16597   *) ac_try_echo=$ac_try;;
16598 esac
16599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16600   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16601   ac_status=$?
16602   grep -v '^ *+' conftest.er1 >conftest.err
16603   rm -f conftest.er1
16604   cat conftest.err >&5
16605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); } >/dev/null; then
16607   if test -s conftest.err; then
16608     ac_cpp_err=$ac_c_preproc_warn_flag
16609     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16610   else
16611     ac_cpp_err=
16612   fi
16613 else
16614   ac_cpp_err=yes
16615 fi
16616 if test -z "$ac_cpp_err"; then
16617   ac_header_preproc=yes
16618 else
16619   echo "$as_me: failed program was:" >&5
16620 sed 's/^/| /' conftest.$ac_ext >&5
16621
16622   ac_header_preproc=no
16623 fi
16624
16625 rm -f conftest.err conftest.$ac_ext
16626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16627 echo "${ECHO_T}$ac_header_preproc" >&6; }
16628
16629 # So?  What about this header?
16630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16631   yes:no: )
16632     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16634     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16636     ac_header_preproc=yes
16637     ;;
16638   no:yes:* )
16639     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16641     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16642 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16643     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16645     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16646 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16647     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16649     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16651     ( cat <<\_ASBOX
16652 ## ------------------------------------ ##
16653 ## Report this to bug-coreutils@gnu.org ##
16654 ## ------------------------------------ ##
16655 _ASBOX
16656      ) | sed "s/^/$as_me: WARNING:     /" >&2
16657     ;;
16658 esac
16659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16662   echo $ECHO_N "(cached) $ECHO_C" >&6
16663 else
16664   eval "$as_ac_Header=\$ac_header_preproc"
16665 fi
16666 ac_res=`eval echo '${'$as_ac_Header'}'`
16667                { echo "$as_me:$LINENO: result: $ac_res" >&5
16668 echo "${ECHO_T}$ac_res" >&6; }
16669
16670 fi
16671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16672   cat >>confdefs.h <<_ACEOF
16673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16674 _ACEOF
16675
16676 fi
16677
16678 done
16679
16680
16681   { echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
16682 echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6; }
16683   if test "${fu_cv_sys_truncating_statfs+set}" = set; then
16684   echo $ECHO_N "(cached) $ECHO_C" >&6
16685 else
16686   cat >conftest.$ac_ext <<_ACEOF
16687 /* confdefs.h.  */
16688 _ACEOF
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h.  */
16692
16693 #if !defined(sun) && !defined(__sun)
16694 choke -- this is a workaround for a Sun-specific problem
16695 #endif
16696 #include <sys/types.h>
16697 #include <sys/vfs.h>
16698 int
16699 main ()
16700 {
16701 struct statfs t; long c = *(t.f_spare);
16702   ;
16703   return 0;
16704 }
16705 _ACEOF
16706 rm -f conftest.$ac_objext
16707 if { (ac_try="$ac_compile"
16708 case "(($ac_try" in
16709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710   *) ac_try_echo=$ac_try;;
16711 esac
16712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16713   (eval "$ac_compile") 2>conftest.er1
16714   ac_status=$?
16715   grep -v '^ *+' conftest.er1 >conftest.err
16716   rm -f conftest.er1
16717   cat conftest.err >&5
16718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719   (exit $ac_status); } &&
16720          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16721   { (case "(($ac_try" in
16722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16723   *) ac_try_echo=$ac_try;;
16724 esac
16725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16726   (eval "$ac_try") 2>&5
16727   ac_status=$?
16728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729   (exit $ac_status); }; } &&
16730          { ac_try='test -s conftest.$ac_objext'
16731   { (case "(($ac_try" in
16732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733   *) ac_try_echo=$ac_try;;
16734 esac
16735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16736   (eval "$ac_try") 2>&5
16737   ac_status=$?
16738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739   (exit $ac_status); }; }; then
16740   fu_cv_sys_truncating_statfs=yes
16741 else
16742   echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16744
16745         fu_cv_sys_truncating_statfs=no
16746 fi
16747
16748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16749 fi
16750
16751   if test $fu_cv_sys_truncating_statfs = yes; then
16752
16753 cat >>confdefs.h <<\_ACEOF
16754 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
16755 _ACEOF
16756
16757   fi
16758   { echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
16759 echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6; }
16760
16761
16762   fi
16763
16764
16765
16766 for ac_func in atexit
16767 do
16768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16769 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16772   echo $ECHO_N "(cached) $ECHO_C" >&6
16773 else
16774   cat >conftest.$ac_ext <<_ACEOF
16775 /* confdefs.h.  */
16776 _ACEOF
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h.  */
16780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16781    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16782 #define $ac_func innocuous_$ac_func
16783
16784 /* System header to define __stub macros and hopefully few prototypes,
16785     which can conflict with char $ac_func (); below.
16786     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16787     <limits.h> exists even on freestanding compilers.  */
16788
16789 #ifdef __STDC__
16790 # include <limits.h>
16791 #else
16792 # include <assert.h>
16793 #endif
16794
16795 #undef $ac_func
16796
16797 /* Override any GCC internal prototype to avoid an error.
16798    Use char because int might match the return type of a GCC
16799    builtin and then its argument prototype would still apply.  */
16800 #ifdef __cplusplus
16801 extern "C"
16802 #endif
16803 char $ac_func ();
16804 /* The GNU C library defines this for functions which it implements
16805     to always fail with ENOSYS.  Some functions are actually named
16806     something starting with __ and the normal name is an alias.  */
16807 #if defined __stub_$ac_func || defined __stub___$ac_func
16808 choke me
16809 #endif
16810
16811 int
16812 main ()
16813 {
16814 return $ac_func ();
16815   ;
16816   return 0;
16817 }
16818 _ACEOF
16819 rm -f conftest.$ac_objext conftest$ac_exeext
16820 if { (ac_try="$ac_link"
16821 case "(($ac_try" in
16822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823   *) ac_try_echo=$ac_try;;
16824 esac
16825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826   (eval "$ac_link") 2>conftest.er1
16827   ac_status=$?
16828   grep -v '^ *+' conftest.er1 >conftest.err
16829   rm -f conftest.er1
16830   cat conftest.err >&5
16831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832   (exit $ac_status); } &&
16833          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16834   { (case "(($ac_try" in
16835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16836   *) ac_try_echo=$ac_try;;
16837 esac
16838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16839   (eval "$ac_try") 2>&5
16840   ac_status=$?
16841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842   (exit $ac_status); }; } &&
16843          { ac_try='test -s conftest$ac_exeext'
16844   { (case "(($ac_try" in
16845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846   *) ac_try_echo=$ac_try;;
16847 esac
16848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849   (eval "$ac_try") 2>&5
16850   ac_status=$?
16851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852   (exit $ac_status); }; }; then
16853   eval "$as_ac_var=yes"
16854 else
16855   echo "$as_me: failed program was:" >&5
16856 sed 's/^/| /' conftest.$ac_ext >&5
16857
16858         eval "$as_ac_var=no"
16859 fi
16860
16861 rm -f core conftest.err conftest.$ac_objext \
16862       conftest$ac_exeext conftest.$ac_ext
16863 fi
16864 ac_res=`eval echo '${'$as_ac_var'}'`
16865                { echo "$as_me:$LINENO: result: $ac_res" >&5
16866 echo "${ECHO_T}$ac_res" >&6; }
16867 if test `eval echo '${'$as_ac_var'}'` = yes; then
16868   cat >>confdefs.h <<_ACEOF
16869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16870 _ACEOF
16871
16872 else
16873   case " $LIBOBJS " in
16874   *" $ac_func.$ac_objext "* ) ;;
16875   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16876  ;;
16877 esac
16878
16879 fi
16880 done
16881
16882
16883   if test $ac_cv_func_atexit = no; then
16884
16885   :
16886
16887   fi
16888
16889
16890
16891 for ac_func in dup2
16892 do
16893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16894 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16897   echo $ECHO_N "(cached) $ECHO_C" >&6
16898 else
16899   cat >conftest.$ac_ext <<_ACEOF
16900 /* confdefs.h.  */
16901 _ACEOF
16902 cat confdefs.h >>conftest.$ac_ext
16903 cat >>conftest.$ac_ext <<_ACEOF
16904 /* end confdefs.h.  */
16905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16906    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16907 #define $ac_func innocuous_$ac_func
16908
16909 /* System header to define __stub macros and hopefully few prototypes,
16910     which can conflict with char $ac_func (); below.
16911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16912     <limits.h> exists even on freestanding compilers.  */
16913
16914 #ifdef __STDC__
16915 # include <limits.h>
16916 #else
16917 # include <assert.h>
16918 #endif
16919
16920 #undef $ac_func
16921
16922 /* Override any GCC internal prototype to avoid an error.
16923    Use char because int might match the return type of a GCC
16924    builtin and then its argument prototype would still apply.  */
16925 #ifdef __cplusplus
16926 extern "C"
16927 #endif
16928 char $ac_func ();
16929 /* The GNU C library defines this for functions which it implements
16930     to always fail with ENOSYS.  Some functions are actually named
16931     something starting with __ and the normal name is an alias.  */
16932 #if defined __stub_$ac_func || defined __stub___$ac_func
16933 choke me
16934 #endif
16935
16936 int
16937 main ()
16938 {
16939 return $ac_func ();
16940   ;
16941   return 0;
16942 }
16943 _ACEOF
16944 rm -f conftest.$ac_objext conftest$ac_exeext
16945 if { (ac_try="$ac_link"
16946 case "(($ac_try" in
16947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948   *) ac_try_echo=$ac_try;;
16949 esac
16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951   (eval "$ac_link") 2>conftest.er1
16952   ac_status=$?
16953   grep -v '^ *+' conftest.er1 >conftest.err
16954   rm -f conftest.er1
16955   cat conftest.err >&5
16956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957   (exit $ac_status); } &&
16958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16959   { (case "(($ac_try" in
16960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961   *) ac_try_echo=$ac_try;;
16962 esac
16963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964   (eval "$ac_try") 2>&5
16965   ac_status=$?
16966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967   (exit $ac_status); }; } &&
16968          { ac_try='test -s conftest$ac_exeext'
16969   { (case "(($ac_try" in
16970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16971   *) ac_try_echo=$ac_try;;
16972 esac
16973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16974   (eval "$ac_try") 2>&5
16975   ac_status=$?
16976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977   (exit $ac_status); }; }; then
16978   eval "$as_ac_var=yes"
16979 else
16980   echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16982
16983         eval "$as_ac_var=no"
16984 fi
16985
16986 rm -f core conftest.err conftest.$ac_objext \
16987       conftest$ac_exeext conftest.$ac_ext
16988 fi
16989 ac_res=`eval echo '${'$as_ac_var'}'`
16990                { echo "$as_me:$LINENO: result: $ac_res" >&5
16991 echo "${ECHO_T}$ac_res" >&6; }
16992 if test `eval echo '${'$as_ac_var'}'` = yes; then
16993   cat >>confdefs.h <<_ACEOF
16994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16995 _ACEOF
16996
16997 else
16998   case " $LIBOBJS " in
16999   *" $ac_func.$ac_objext "* ) ;;
17000   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17001  ;;
17002 esac
17003
17004 fi
17005 done
17006
17007
17008
17009
17010
17011
17012   FNMATCH_H=
17013   { echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
17014 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6; }
17015 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
17016   echo $ECHO_N "(cached) $ECHO_C" >&6
17017 else
17018               if test "$cross_compiling" = yes; then
17019   ac_cv_func_fnmatch_gnu=cross
17020 else
17021   cat >conftest.$ac_ext <<_ACEOF
17022 /* confdefs.h.  */
17023 _ACEOF
17024 cat confdefs.h >>conftest.$ac_ext
17025 cat >>conftest.$ac_ext <<_ACEOF
17026 /* end confdefs.h.  */
17027
17028 #          include <stdlib.h>
17029 #          include <fnmatch.h>
17030 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
17031 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17032            static int
17033            fnm (char const *pattern, char const *string, int flags)
17034            {
17035              return fnmatch (pattern, string, flags);
17036            }
17037
17038 int
17039 main ()
17040 {
17041 exit
17042            (!((fnm ? fnm : fnmatch) ("a*", "", 0) == FNM_NOMATCH
17043               && y ("a*", "abc", 0)
17044               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17045               && y ("a\\\\bc", "abc", 0)
17046               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17047               && y ("*x", ".x", 0)
17048               && n ("*x", ".x", FNM_PERIOD)
17049               && y ("xxXX", "xXxX", FNM_CASEFOLD)
17050                     && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
17051                     && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
17052                     && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
17053                     && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
17054                     && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)));
17055   ;
17056   return 0;
17057 }
17058 _ACEOF
17059 rm -f conftest$ac_exeext
17060 if { (ac_try="$ac_link"
17061 case "(($ac_try" in
17062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17063   *) ac_try_echo=$ac_try;;
17064 esac
17065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17066   (eval "$ac_link") 2>&5
17067   ac_status=$?
17068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17070   { (case "(($ac_try" in
17071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072   *) ac_try_echo=$ac_try;;
17073 esac
17074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075   (eval "$ac_try") 2>&5
17076   ac_status=$?
17077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078   (exit $ac_status); }; }; then
17079   ac_cv_func_fnmatch_gnu=yes
17080 else
17081   echo "$as_me: program exited with status $ac_status" >&5
17082 echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.$ac_ext >&5
17084
17085 ( exit $ac_status )
17086 ac_cv_func_fnmatch_gnu=no
17087 fi
17088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17089 fi
17090
17091
17092 fi
17093 { echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
17094 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6; }
17095 if test $ac_cv_func_fnmatch_gnu = yes; then
17096   rm -f lib/fnmatch.h
17097 else
17098   { echo "$as_me:$LINENO: checking whether isblank is declared" >&5
17099 echo $ECHO_N "checking whether isblank is declared... $ECHO_C" >&6; }
17100 if test "${ac_cv_have_decl_isblank+set}" = set; then
17101   echo $ECHO_N "(cached) $ECHO_C" >&6
17102 else
17103   cat >conftest.$ac_ext <<_ACEOF
17104 /* confdefs.h.  */
17105 _ACEOF
17106 cat confdefs.h >>conftest.$ac_ext
17107 cat >>conftest.$ac_ext <<_ACEOF
17108 /* end confdefs.h.  */
17109 #include <ctype.h>
17110
17111 int
17112 main ()
17113 {
17114 #ifndef isblank
17115   char *p = (char *) isblank;
17116   return !p;
17117 #endif
17118
17119   ;
17120   return 0;
17121 }
17122 _ACEOF
17123 rm -f conftest.$ac_objext
17124 if { (ac_try="$ac_compile"
17125 case "(($ac_try" in
17126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17127   *) ac_try_echo=$ac_try;;
17128 esac
17129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17130   (eval "$ac_compile") 2>conftest.er1
17131   ac_status=$?
17132   grep -v '^ *+' conftest.er1 >conftest.err
17133   rm -f conftest.er1
17134   cat conftest.err >&5
17135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136   (exit $ac_status); } &&
17137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17138   { (case "(($ac_try" in
17139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140   *) ac_try_echo=$ac_try;;
17141 esac
17142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143   (eval "$ac_try") 2>&5
17144   ac_status=$?
17145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146   (exit $ac_status); }; } &&
17147          { ac_try='test -s conftest.$ac_objext'
17148   { (case "(($ac_try" in
17149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150   *) ac_try_echo=$ac_try;;
17151 esac
17152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153   (eval "$ac_try") 2>&5
17154   ac_status=$?
17155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156   (exit $ac_status); }; }; then
17157   ac_cv_have_decl_isblank=yes
17158 else
17159   echo "$as_me: failed program was:" >&5
17160 sed 's/^/| /' conftest.$ac_ext >&5
17161
17162         ac_cv_have_decl_isblank=no
17163 fi
17164
17165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17166 fi
17167 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
17168 echo "${ECHO_T}$ac_cv_have_decl_isblank" >&6; }
17169 if test $ac_cv_have_decl_isblank = yes; then
17170
17171 cat >>confdefs.h <<_ACEOF
17172 #define HAVE_DECL_ISBLANK 1
17173 _ACEOF
17174
17175
17176 else
17177   cat >>confdefs.h <<_ACEOF
17178 #define HAVE_DECL_ISBLANK 0
17179 _ACEOF
17180
17181
17182 fi
17183
17184
17185
17186
17187
17188
17189
17190
17191 for ac_func in btowc mbsrtowcs mempcpy wmemchr wmemcpy wmempcpy
17192 do
17193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17194 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17196 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17197   echo $ECHO_N "(cached) $ECHO_C" >&6
17198 else
17199   cat >conftest.$ac_ext <<_ACEOF
17200 /* confdefs.h.  */
17201 _ACEOF
17202 cat confdefs.h >>conftest.$ac_ext
17203 cat >>conftest.$ac_ext <<_ACEOF
17204 /* end confdefs.h.  */
17205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17206    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17207 #define $ac_func innocuous_$ac_func
17208
17209 /* System header to define __stub macros and hopefully few prototypes,
17210     which can conflict with char $ac_func (); below.
17211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17212     <limits.h> exists even on freestanding compilers.  */
17213
17214 #ifdef __STDC__
17215 # include <limits.h>
17216 #else
17217 # include <assert.h>
17218 #endif
17219
17220 #undef $ac_func
17221
17222 /* Override any GCC internal prototype to avoid an error.
17223    Use char because int might match the return type of a GCC
17224    builtin and then its argument prototype would still apply.  */
17225 #ifdef __cplusplus
17226 extern "C"
17227 #endif
17228 char $ac_func ();
17229 /* The GNU C library defines this for functions which it implements
17230     to always fail with ENOSYS.  Some functions are actually named
17231     something starting with __ and the normal name is an alias.  */
17232 #if defined __stub_$ac_func || defined __stub___$ac_func
17233 choke me
17234 #endif
17235
17236 int
17237 main ()
17238 {
17239 return $ac_func ();
17240   ;
17241   return 0;
17242 }
17243 _ACEOF
17244 rm -f conftest.$ac_objext conftest$ac_exeext
17245 if { (ac_try="$ac_link"
17246 case "(($ac_try" in
17247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248   *) ac_try_echo=$ac_try;;
17249 esac
17250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17251   (eval "$ac_link") 2>conftest.er1
17252   ac_status=$?
17253   grep -v '^ *+' conftest.er1 >conftest.err
17254   rm -f conftest.er1
17255   cat conftest.err >&5
17256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257   (exit $ac_status); } &&
17258          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17259   { (case "(($ac_try" in
17260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17261   *) ac_try_echo=$ac_try;;
17262 esac
17263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17264   (eval "$ac_try") 2>&5
17265   ac_status=$?
17266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267   (exit $ac_status); }; } &&
17268          { ac_try='test -s conftest$ac_exeext'
17269   { (case "(($ac_try" in
17270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271   *) ac_try_echo=$ac_try;;
17272 esac
17273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274   (eval "$ac_try") 2>&5
17275   ac_status=$?
17276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277   (exit $ac_status); }; }; then
17278   eval "$as_ac_var=yes"
17279 else
17280   echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.$ac_ext >&5
17282
17283         eval "$as_ac_var=no"
17284 fi
17285
17286 rm -f core conftest.err conftest.$ac_objext \
17287       conftest$ac_exeext conftest.$ac_ext
17288 fi
17289 ac_res=`eval echo '${'$as_ac_var'}'`
17290                { echo "$as_me:$LINENO: result: $ac_res" >&5
17291 echo "${ECHO_T}$ac_res" >&6; }
17292 if test `eval echo '${'$as_ac_var'}'` = yes; then
17293   cat >>confdefs.h <<_ACEOF
17294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17295 _ACEOF
17296
17297 fi
17298 done
17299
17300
17301
17302 for ac_header in wchar.h wctype.h
17303 do
17304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17306   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17309   echo $ECHO_N "(cached) $ECHO_C" >&6
17310 fi
17311 ac_res=`eval echo '${'$as_ac_Header'}'`
17312                { echo "$as_me:$LINENO: result: $ac_res" >&5
17313 echo "${ECHO_T}$ac_res" >&6; }
17314 else
17315   # Is the header compilable?
17316 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17318 cat >conftest.$ac_ext <<_ACEOF
17319 /* confdefs.h.  */
17320 _ACEOF
17321 cat confdefs.h >>conftest.$ac_ext
17322 cat >>conftest.$ac_ext <<_ACEOF
17323 /* end confdefs.h.  */
17324 $ac_includes_default
17325 #include <$ac_header>
17326 _ACEOF
17327 rm -f conftest.$ac_objext
17328 if { (ac_try="$ac_compile"
17329 case "(($ac_try" in
17330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17331   *) ac_try_echo=$ac_try;;
17332 esac
17333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17334   (eval "$ac_compile") 2>conftest.er1
17335   ac_status=$?
17336   grep -v '^ *+' conftest.er1 >conftest.err
17337   rm -f conftest.er1
17338   cat conftest.err >&5
17339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340   (exit $ac_status); } &&
17341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17342   { (case "(($ac_try" in
17343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17344   *) ac_try_echo=$ac_try;;
17345 esac
17346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17347   (eval "$ac_try") 2>&5
17348   ac_status=$?
17349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350   (exit $ac_status); }; } &&
17351          { ac_try='test -s conftest.$ac_objext'
17352   { (case "(($ac_try" in
17353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17354   *) ac_try_echo=$ac_try;;
17355 esac
17356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17357   (eval "$ac_try") 2>&5
17358   ac_status=$?
17359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360   (exit $ac_status); }; }; then
17361   ac_header_compiler=yes
17362 else
17363   echo "$as_me: failed program was:" >&5
17364 sed 's/^/| /' conftest.$ac_ext >&5
17365
17366         ac_header_compiler=no
17367 fi
17368
17369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17371 echo "${ECHO_T}$ac_header_compiler" >&6; }
17372
17373 # Is the header present?
17374 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17376 cat >conftest.$ac_ext <<_ACEOF
17377 /* confdefs.h.  */
17378 _ACEOF
17379 cat confdefs.h >>conftest.$ac_ext
17380 cat >>conftest.$ac_ext <<_ACEOF
17381 /* end confdefs.h.  */
17382 #include <$ac_header>
17383 _ACEOF
17384 if { (ac_try="$ac_cpp conftest.$ac_ext"
17385 case "(($ac_try" in
17386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387   *) ac_try_echo=$ac_try;;
17388 esac
17389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17390   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17391   ac_status=$?
17392   grep -v '^ *+' conftest.er1 >conftest.err
17393   rm -f conftest.er1
17394   cat conftest.err >&5
17395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396   (exit $ac_status); } >/dev/null; then
17397   if test -s conftest.err; then
17398     ac_cpp_err=$ac_c_preproc_warn_flag
17399     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17400   else
17401     ac_cpp_err=
17402   fi
17403 else
17404   ac_cpp_err=yes
17405 fi
17406 if test -z "$ac_cpp_err"; then
17407   ac_header_preproc=yes
17408 else
17409   echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17411
17412   ac_header_preproc=no
17413 fi
17414
17415 rm -f conftest.err conftest.$ac_ext
17416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17417 echo "${ECHO_T}$ac_header_preproc" >&6; }
17418
17419 # So?  What about this header?
17420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17421   yes:no: )
17422     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17424     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17426     ac_header_preproc=yes
17427     ;;
17428   no:yes:* )
17429     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17431     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17432 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17433     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17435     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17436 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17439     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17441     ( cat <<\_ASBOX
17442 ## ------------------------------------ ##
17443 ## Report this to bug-coreutils@gnu.org ##
17444 ## ------------------------------------ ##
17445 _ASBOX
17446      ) | sed "s/^/$as_me: WARNING:     /" >&2
17447     ;;
17448 esac
17449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17452   echo $ECHO_N "(cached) $ECHO_C" >&6
17453 else
17454   eval "$as_ac_Header=\$ac_header_preproc"
17455 fi
17456 ac_res=`eval echo '${'$as_ac_Header'}'`
17457                { echo "$as_me:$LINENO: result: $ac_res" >&5
17458 echo "${ECHO_T}$ac_res" >&6; }
17459
17460 fi
17461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17462   cat >>confdefs.h <<_ACEOF
17463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17464 _ACEOF
17465
17466 fi
17467
17468 done
17469
17470 case " $LIBOBJS " in
17471   *" fnmatch.$ac_objext "* ) ;;
17472   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
17473  ;;
17474 esac
17475
17476 FNMATCH_H=fnmatch.h
17477
17478 fi
17479
17480
17481   if test $ac_cv_func_fnmatch_gnu != yes; then
17482
17483 cat >>confdefs.h <<\_ACEOF
17484 #define fnmatch gnu_fnmatch
17485 _ACEOF
17486
17487   fi
17488
17489
17490
17491
17492 for ac_func in gethostname
17493 do
17494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17495 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17498   echo $ECHO_N "(cached) $ECHO_C" >&6
17499 else
17500   cat >conftest.$ac_ext <<_ACEOF
17501 /* confdefs.h.  */
17502 _ACEOF
17503 cat confdefs.h >>conftest.$ac_ext
17504 cat >>conftest.$ac_ext <<_ACEOF
17505 /* end confdefs.h.  */
17506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17507    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17508 #define $ac_func innocuous_$ac_func
17509
17510 /* System header to define __stub macros and hopefully few prototypes,
17511     which can conflict with char $ac_func (); below.
17512     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17513     <limits.h> exists even on freestanding compilers.  */
17514
17515 #ifdef __STDC__
17516 # include <limits.h>
17517 #else
17518 # include <assert.h>
17519 #endif
17520
17521 #undef $ac_func
17522
17523 /* Override any GCC internal prototype to avoid an error.
17524    Use char because int might match the return type of a GCC
17525    builtin and then its argument prototype would still apply.  */
17526 #ifdef __cplusplus
17527 extern "C"
17528 #endif
17529 char $ac_func ();
17530 /* The GNU C library defines this for functions which it implements
17531     to always fail with ENOSYS.  Some functions are actually named
17532     something starting with __ and the normal name is an alias.  */
17533 #if defined __stub_$ac_func || defined __stub___$ac_func
17534 choke me
17535 #endif
17536
17537 int
17538 main ()
17539 {
17540 return $ac_func ();
17541   ;
17542   return 0;
17543 }
17544 _ACEOF
17545 rm -f conftest.$ac_objext conftest$ac_exeext
17546 if { (ac_try="$ac_link"
17547 case "(($ac_try" in
17548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549   *) ac_try_echo=$ac_try;;
17550 esac
17551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552   (eval "$ac_link") 2>conftest.er1
17553   ac_status=$?
17554   grep -v '^ *+' conftest.er1 >conftest.err
17555   rm -f conftest.er1
17556   cat conftest.err >&5
17557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558   (exit $ac_status); } &&
17559          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17560   { (case "(($ac_try" in
17561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17562   *) ac_try_echo=$ac_try;;
17563 esac
17564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17565   (eval "$ac_try") 2>&5
17566   ac_status=$?
17567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568   (exit $ac_status); }; } &&
17569          { ac_try='test -s conftest$ac_exeext'
17570   { (case "(($ac_try" in
17571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572   *) ac_try_echo=$ac_try;;
17573 esac
17574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575   (eval "$ac_try") 2>&5
17576   ac_status=$?
17577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578   (exit $ac_status); }; }; then
17579   eval "$as_ac_var=yes"
17580 else
17581   echo "$as_me: failed program was:" >&5
17582 sed 's/^/| /' conftest.$ac_ext >&5
17583
17584         eval "$as_ac_var=no"
17585 fi
17586
17587 rm -f core conftest.err conftest.$ac_objext \
17588       conftest$ac_exeext conftest.$ac_ext
17589 fi
17590 ac_res=`eval echo '${'$as_ac_var'}'`
17591                { echo "$as_me:$LINENO: result: $ac_res" >&5
17592 echo "${ECHO_T}$ac_res" >&6; }
17593 if test `eval echo '${'$as_ac_var'}'` = yes; then
17594   cat >>confdefs.h <<_ACEOF
17595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17596 _ACEOF
17597
17598 else
17599   case " $LIBOBJS " in
17600   *" $ac_func.$ac_objext "* ) ;;
17601   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17602  ;;
17603 esac
17604
17605 fi
17606 done
17607
17608
17609   if test $ac_cv_func_gethostname = no; then
17610
17611
17612 for ac_func in uname
17613 do
17614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17615 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17617 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17618   echo $ECHO_N "(cached) $ECHO_C" >&6
17619 else
17620   cat >conftest.$ac_ext <<_ACEOF
17621 /* confdefs.h.  */
17622 _ACEOF
17623 cat confdefs.h >>conftest.$ac_ext
17624 cat >>conftest.$ac_ext <<_ACEOF
17625 /* end confdefs.h.  */
17626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17627    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17628 #define $ac_func innocuous_$ac_func
17629
17630 /* System header to define __stub macros and hopefully few prototypes,
17631     which can conflict with char $ac_func (); below.
17632     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17633     <limits.h> exists even on freestanding compilers.  */
17634
17635 #ifdef __STDC__
17636 # include <limits.h>
17637 #else
17638 # include <assert.h>
17639 #endif
17640
17641 #undef $ac_func
17642
17643 /* Override any GCC internal prototype to avoid an error.
17644    Use char because int might match the return type of a GCC
17645    builtin and then its argument prototype would still apply.  */
17646 #ifdef __cplusplus
17647 extern "C"
17648 #endif
17649 char $ac_func ();
17650 /* The GNU C library defines this for functions which it implements
17651     to always fail with ENOSYS.  Some functions are actually named
17652     something starting with __ and the normal name is an alias.  */
17653 #if defined __stub_$ac_func || defined __stub___$ac_func
17654 choke me
17655 #endif
17656
17657 int
17658 main ()
17659 {
17660 return $ac_func ();
17661   ;
17662   return 0;
17663 }
17664 _ACEOF
17665 rm -f conftest.$ac_objext conftest$ac_exeext
17666 if { (ac_try="$ac_link"
17667 case "(($ac_try" in
17668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17669   *) ac_try_echo=$ac_try;;
17670 esac
17671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17672   (eval "$ac_link") 2>conftest.er1
17673   ac_status=$?
17674   grep -v '^ *+' conftest.er1 >conftest.err
17675   rm -f conftest.er1
17676   cat conftest.err >&5
17677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678   (exit $ac_status); } &&
17679          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17680   { (case "(($ac_try" in
17681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17682   *) ac_try_echo=$ac_try;;
17683 esac
17684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17685   (eval "$ac_try") 2>&5
17686   ac_status=$?
17687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688   (exit $ac_status); }; } &&
17689          { ac_try='test -s conftest$ac_exeext'
17690   { (case "(($ac_try" in
17691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17692   *) ac_try_echo=$ac_try;;
17693 esac
17694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17695   (eval "$ac_try") 2>&5
17696   ac_status=$?
17697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698   (exit $ac_status); }; }; then
17699   eval "$as_ac_var=yes"
17700 else
17701   echo "$as_me: failed program was:" >&5
17702 sed 's/^/| /' conftest.$ac_ext >&5
17703
17704         eval "$as_ac_var=no"
17705 fi
17706
17707 rm -f core conftest.err conftest.$ac_objext \
17708       conftest$ac_exeext conftest.$ac_ext
17709 fi
17710 ac_res=`eval echo '${'$as_ac_var'}'`
17711                { echo "$as_me:$LINENO: result: $ac_res" >&5
17712 echo "${ECHO_T}$ac_res" >&6; }
17713 if test `eval echo '${'$as_ac_var'}'` = yes; then
17714   cat >>confdefs.h <<_ACEOF
17715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17716 _ACEOF
17717
17718 fi
17719 done
17720
17721
17722   fi
17723
17724 { echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
17725 echo $ECHO_N "checking whether getdelim is declared... $ECHO_C" >&6; }
17726 if test "${ac_cv_have_decl_getdelim+set}" = set; then
17727   echo $ECHO_N "(cached) $ECHO_C" >&6
17728 else
17729   cat >conftest.$ac_ext <<_ACEOF
17730 /* confdefs.h.  */
17731 _ACEOF
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h.  */
17735 $ac_includes_default
17736 int
17737 main ()
17738 {
17739 #ifndef getdelim
17740   char *p = (char *) getdelim;
17741   return !p;
17742 #endif
17743
17744   ;
17745   return 0;
17746 }
17747 _ACEOF
17748 rm -f conftest.$ac_objext
17749 if { (ac_try="$ac_compile"
17750 case "(($ac_try" in
17751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17752   *) ac_try_echo=$ac_try;;
17753 esac
17754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17755   (eval "$ac_compile") 2>conftest.er1
17756   ac_status=$?
17757   grep -v '^ *+' conftest.er1 >conftest.err
17758   rm -f conftest.er1
17759   cat conftest.err >&5
17760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761   (exit $ac_status); } &&
17762          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17763   { (case "(($ac_try" in
17764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765   *) ac_try_echo=$ac_try;;
17766 esac
17767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768   (eval "$ac_try") 2>&5
17769   ac_status=$?
17770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771   (exit $ac_status); }; } &&
17772          { ac_try='test -s conftest.$ac_objext'
17773   { (case "(($ac_try" in
17774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17775   *) ac_try_echo=$ac_try;;
17776 esac
17777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17778   (eval "$ac_try") 2>&5
17779   ac_status=$?
17780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781   (exit $ac_status); }; }; then
17782   ac_cv_have_decl_getdelim=yes
17783 else
17784   echo "$as_me: failed program was:" >&5
17785 sed 's/^/| /' conftest.$ac_ext >&5
17786
17787         ac_cv_have_decl_getdelim=no
17788 fi
17789
17790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17791 fi
17792 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
17793 echo "${ECHO_T}$ac_cv_have_decl_getdelim" >&6; }
17794 if test $ac_cv_have_decl_getdelim = yes; then
17795
17796 cat >>confdefs.h <<_ACEOF
17797 #define HAVE_DECL_GETDELIM 1
17798 _ACEOF
17799
17800
17801 else
17802   cat >>confdefs.h <<_ACEOF
17803 #define HAVE_DECL_GETDELIM 0
17804 _ACEOF
17805
17806
17807 fi
17808
17809
17810
17811
17812
17813
17814
17815   { echo "$as_me:$LINENO: checking whether getline is declared" >&5
17816 echo $ECHO_N "checking whether getline is declared... $ECHO_C" >&6; }
17817 if test "${ac_cv_have_decl_getline+set}" = set; then
17818   echo $ECHO_N "(cached) $ECHO_C" >&6
17819 else
17820   cat >conftest.$ac_ext <<_ACEOF
17821 /* confdefs.h.  */
17822 _ACEOF
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h.  */
17826 $ac_includes_default
17827 int
17828 main ()
17829 {
17830 #ifndef getline
17831   char *p = (char *) getline;
17832   return !p;
17833 #endif
17834
17835   ;
17836   return 0;
17837 }
17838 _ACEOF
17839 rm -f conftest.$ac_objext
17840 if { (ac_try="$ac_compile"
17841 case "(($ac_try" in
17842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17843   *) ac_try_echo=$ac_try;;
17844 esac
17845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17846   (eval "$ac_compile") 2>conftest.er1
17847   ac_status=$?
17848   grep -v '^ *+' conftest.er1 >conftest.err
17849   rm -f conftest.er1
17850   cat conftest.err >&5
17851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852   (exit $ac_status); } &&
17853          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17854   { (case "(($ac_try" in
17855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17856   *) ac_try_echo=$ac_try;;
17857 esac
17858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17859   (eval "$ac_try") 2>&5
17860   ac_status=$?
17861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862   (exit $ac_status); }; } &&
17863          { ac_try='test -s conftest.$ac_objext'
17864   { (case "(($ac_try" in
17865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17866   *) ac_try_echo=$ac_try;;
17867 esac
17868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17869   (eval "$ac_try") 2>&5
17870   ac_status=$?
17871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872   (exit $ac_status); }; }; then
17873   ac_cv_have_decl_getline=yes
17874 else
17875   echo "$as_me: failed program was:" >&5
17876 sed 's/^/| /' conftest.$ac_ext >&5
17877
17878         ac_cv_have_decl_getline=no
17879 fi
17880
17881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17882 fi
17883 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
17884 echo "${ECHO_T}$ac_cv_have_decl_getline" >&6; }
17885 if test $ac_cv_have_decl_getline = yes; then
17886
17887 cat >>confdefs.h <<_ACEOF
17888 #define HAVE_DECL_GETLINE 1
17889 _ACEOF
17890
17891
17892 else
17893   cat >>confdefs.h <<_ACEOF
17894 #define HAVE_DECL_GETLINE 0
17895 _ACEOF
17896
17897
17898 fi
17899
17900
17901
17902   gl_getline_needs_run_time_check=no
17903   { echo "$as_me:$LINENO: checking for getline" >&5
17904 echo $ECHO_N "checking for getline... $ECHO_C" >&6; }
17905 if test "${ac_cv_func_getline+set}" = set; then
17906   echo $ECHO_N "(cached) $ECHO_C" >&6
17907 else
17908   cat >conftest.$ac_ext <<_ACEOF
17909 /* confdefs.h.  */
17910 _ACEOF
17911 cat confdefs.h >>conftest.$ac_ext
17912 cat >>conftest.$ac_ext <<_ACEOF
17913 /* end confdefs.h.  */
17914 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
17915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17916 #define getline innocuous_getline
17917
17918 /* System header to define __stub macros and hopefully few prototypes,
17919     which can conflict with char getline (); below.
17920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17921     <limits.h> exists even on freestanding compilers.  */
17922
17923 #ifdef __STDC__
17924 # include <limits.h>
17925 #else
17926 # include <assert.h>
17927 #endif
17928
17929 #undef getline
17930
17931 /* Override any GCC internal prototype to avoid an error.
17932    Use char because int might match the return type of a GCC
17933    builtin and then its argument prototype would still apply.  */
17934 #ifdef __cplusplus
17935 extern "C"
17936 #endif
17937 char getline ();
17938 /* The GNU C library defines this for functions which it implements
17939     to always fail with ENOSYS.  Some functions are actually named
17940     something starting with __ and the normal name is an alias.  */
17941 #if defined __stub_getline || defined __stub___getline
17942 choke me
17943 #endif
17944
17945 int
17946 main ()
17947 {
17948 return getline ();
17949   ;
17950   return 0;
17951 }
17952 _ACEOF
17953 rm -f conftest.$ac_objext conftest$ac_exeext
17954 if { (ac_try="$ac_link"
17955 case "(($ac_try" in
17956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17957   *) ac_try_echo=$ac_try;;
17958 esac
17959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17960   (eval "$ac_link") 2>conftest.er1
17961   ac_status=$?
17962   grep -v '^ *+' conftest.er1 >conftest.err
17963   rm -f conftest.er1
17964   cat conftest.err >&5
17965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966   (exit $ac_status); } &&
17967          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17968   { (case "(($ac_try" in
17969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17970   *) ac_try_echo=$ac_try;;
17971 esac
17972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17973   (eval "$ac_try") 2>&5
17974   ac_status=$?
17975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976   (exit $ac_status); }; } &&
17977          { ac_try='test -s conftest$ac_exeext'
17978   { (case "(($ac_try" in
17979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17980   *) ac_try_echo=$ac_try;;
17981 esac
17982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17983   (eval "$ac_try") 2>&5
17984   ac_status=$?
17985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986   (exit $ac_status); }; }; then
17987   ac_cv_func_getline=yes
17988 else
17989   echo "$as_me: failed program was:" >&5
17990 sed 's/^/| /' conftest.$ac_ext >&5
17991
17992         ac_cv_func_getline=no
17993 fi
17994
17995 rm -f core conftest.err conftest.$ac_objext \
17996       conftest$ac_exeext conftest.$ac_ext
17997 fi
17998 { echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
17999 echo "${ECHO_T}$ac_cv_func_getline" >&6; }
18000 if test $ac_cv_func_getline = yes; then
18001                 gl_getline_needs_run_time_check=yes
18002 else
18003   am_cv_func_working_getline=no
18004 fi
18005
18006   if test $gl_getline_needs_run_time_check = yes; then
18007     { echo "$as_me:$LINENO: checking for working getline function" >&5
18008 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6; }
18009 if test "${am_cv_func_working_getline+set}" = set; then
18010   echo $ECHO_N "(cached) $ECHO_C" >&6
18011 else
18012   echo fooN |tr -d '\012'|tr N '\012' > conftest.data
18013     if test "$cross_compiling" = yes; then
18014   am_cv_func_working_getline=no
18015 else
18016   cat >conftest.$ac_ext <<_ACEOF
18017 /* confdefs.h.  */
18018 _ACEOF
18019 cat confdefs.h >>conftest.$ac_ext
18020 cat >>conftest.$ac_ext <<_ACEOF
18021 /* end confdefs.h.  */
18022
18023 #    include <stdio.h>
18024 #    include <stdlib.h>
18025 #    include <string.h>
18026     int main ()
18027     { /* Based on a test program from Karl Heuer.  */
18028       char *line = NULL;
18029       size_t siz = 0;
18030       int len;
18031       FILE *in = fopen ("./conftest.data", "r");
18032       if (!in)
18033         return 1;
18034       len = getline (&line, &siz, in);
18035       exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
18036     }
18037
18038 _ACEOF
18039 rm -f conftest$ac_exeext
18040 if { (ac_try="$ac_link"
18041 case "(($ac_try" in
18042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043   *) ac_try_echo=$ac_try;;
18044 esac
18045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18046   (eval "$ac_link") 2>&5
18047   ac_status=$?
18048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18050   { (case "(($ac_try" in
18051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18052   *) ac_try_echo=$ac_try;;
18053 esac
18054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18055   (eval "$ac_try") 2>&5
18056   ac_status=$?
18057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058   (exit $ac_status); }; }; then
18059   am_cv_func_working_getline=yes
18060 else
18061   echo "$as_me: program exited with status $ac_status" >&5
18062 echo "$as_me: failed program was:" >&5
18063 sed 's/^/| /' conftest.$ac_ext >&5
18064
18065 ( exit $ac_status )
18066 am_cv_func_working_getline=no
18067 fi
18068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18069 fi
18070
18071
18072 fi
18073 { echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
18074 echo "${ECHO_T}$am_cv_func_working_getline" >&6; }
18075   fi
18076
18077   if test $am_cv_func_working_getline = no; then
18078
18079 cat >>confdefs.h <<\_ACEOF
18080 #define getline gnu_getline
18081 _ACEOF
18082
18083     case " $LIBOBJS " in
18084   *" getline.$ac_objext "* ) ;;
18085   *) LIBOBJS="$LIBOBJS getline.$ac_objext"
18086  ;;
18087 esac
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097 for ac_func in getdelim
18098 do
18099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18100 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18102 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18103   echo $ECHO_N "(cached) $ECHO_C" >&6
18104 else
18105   cat >conftest.$ac_ext <<_ACEOF
18106 /* confdefs.h.  */
18107 _ACEOF
18108 cat confdefs.h >>conftest.$ac_ext
18109 cat >>conftest.$ac_ext <<_ACEOF
18110 /* end confdefs.h.  */
18111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18112    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18113 #define $ac_func innocuous_$ac_func
18114
18115 /* System header to define __stub macros and hopefully few prototypes,
18116     which can conflict with char $ac_func (); below.
18117     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18118     <limits.h> exists even on freestanding compilers.  */
18119
18120 #ifdef __STDC__
18121 # include <limits.h>
18122 #else
18123 # include <assert.h>
18124 #endif
18125
18126 #undef $ac_func
18127
18128 /* Override any GCC internal prototype to avoid an error.
18129    Use char because int might match the return type of a GCC
18130    builtin and then its argument prototype would still apply.  */
18131 #ifdef __cplusplus
18132 extern "C"
18133 #endif
18134 char $ac_func ();
18135 /* The GNU C library defines this for functions which it implements
18136     to always fail with ENOSYS.  Some functions are actually named
18137     something starting with __ and the normal name is an alias.  */
18138 #if defined __stub_$ac_func || defined __stub___$ac_func
18139 choke me
18140 #endif
18141
18142 int
18143 main ()
18144 {
18145 return $ac_func ();
18146   ;
18147   return 0;
18148 }
18149 _ACEOF
18150 rm -f conftest.$ac_objext conftest$ac_exeext
18151 if { (ac_try="$ac_link"
18152 case "(($ac_try" in
18153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18154   *) ac_try_echo=$ac_try;;
18155 esac
18156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18157   (eval "$ac_link") 2>conftest.er1
18158   ac_status=$?
18159   grep -v '^ *+' conftest.er1 >conftest.err
18160   rm -f conftest.er1
18161   cat conftest.err >&5
18162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163   (exit $ac_status); } &&
18164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18165   { (case "(($ac_try" in
18166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18167   *) ac_try_echo=$ac_try;;
18168 esac
18169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18170   (eval "$ac_try") 2>&5
18171   ac_status=$?
18172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173   (exit $ac_status); }; } &&
18174          { ac_try='test -s conftest$ac_exeext'
18175   { (case "(($ac_try" in
18176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18177   *) ac_try_echo=$ac_try;;
18178 esac
18179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18180   (eval "$ac_try") 2>&5
18181   ac_status=$?
18182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183   (exit $ac_status); }; }; then
18184   eval "$as_ac_var=yes"
18185 else
18186   echo "$as_me: failed program was:" >&5
18187 sed 's/^/| /' conftest.$ac_ext >&5
18188
18189         eval "$as_ac_var=no"
18190 fi
18191
18192 rm -f core conftest.err conftest.$ac_objext \
18193       conftest$ac_exeext conftest.$ac_ext
18194 fi
18195 ac_res=`eval echo '${'$as_ac_var'}'`
18196                { echo "$as_me:$LINENO: result: $ac_res" >&5
18197 echo "${ECHO_T}$ac_res" >&6; }
18198 if test `eval echo '${'$as_ac_var'}'` = yes; then
18199   cat >>confdefs.h <<_ACEOF
18200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18201 _ACEOF
18202
18203 else
18204   case " $LIBOBJS " in
18205   *" $ac_func.$ac_objext "* ) ;;
18206   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18207  ;;
18208 esac
18209
18210 fi
18211 done
18212
18213
18214
18215
18216
18217
18218
18219   if test $ac_cv_func_getdelim = no; then
18220
18221
18222
18223 for ac_func in flockfile funlockfile
18224 do
18225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18226 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18229   echo $ECHO_N "(cached) $ECHO_C" >&6
18230 else
18231   cat >conftest.$ac_ext <<_ACEOF
18232 /* confdefs.h.  */
18233 _ACEOF
18234 cat confdefs.h >>conftest.$ac_ext
18235 cat >>conftest.$ac_ext <<_ACEOF
18236 /* end confdefs.h.  */
18237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18238    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18239 #define $ac_func innocuous_$ac_func
18240
18241 /* System header to define __stub macros and hopefully few prototypes,
18242     which can conflict with char $ac_func (); below.
18243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18244     <limits.h> exists even on freestanding compilers.  */
18245
18246 #ifdef __STDC__
18247 # include <limits.h>
18248 #else
18249 # include <assert.h>
18250 #endif
18251
18252 #undef $ac_func
18253
18254 /* Override any GCC internal prototype to avoid an error.
18255    Use char because int might match the return type of a GCC
18256    builtin and then its argument prototype would still apply.  */
18257 #ifdef __cplusplus
18258 extern "C"
18259 #endif
18260 char $ac_func ();
18261 /* The GNU C library defines this for functions which it implements
18262     to always fail with ENOSYS.  Some functions are actually named
18263     something starting with __ and the normal name is an alias.  */
18264 #if defined __stub_$ac_func || defined __stub___$ac_func
18265 choke me
18266 #endif
18267
18268 int
18269 main ()
18270 {
18271 return $ac_func ();
18272   ;
18273   return 0;
18274 }
18275 _ACEOF
18276 rm -f conftest.$ac_objext conftest$ac_exeext
18277 if { (ac_try="$ac_link"
18278 case "(($ac_try" in
18279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280   *) ac_try_echo=$ac_try;;
18281 esac
18282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18283   (eval "$ac_link") 2>conftest.er1
18284   ac_status=$?
18285   grep -v '^ *+' conftest.er1 >conftest.err
18286   rm -f conftest.er1
18287   cat conftest.err >&5
18288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289   (exit $ac_status); } &&
18290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18291   { (case "(($ac_try" in
18292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18293   *) ac_try_echo=$ac_try;;
18294 esac
18295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18296   (eval "$ac_try") 2>&5
18297   ac_status=$?
18298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299   (exit $ac_status); }; } &&
18300          { ac_try='test -s conftest$ac_exeext'
18301   { (case "(($ac_try" in
18302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18303   *) ac_try_echo=$ac_try;;
18304 esac
18305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18306   (eval "$ac_try") 2>&5
18307   ac_status=$?
18308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309   (exit $ac_status); }; }; then
18310   eval "$as_ac_var=yes"
18311 else
18312   echo "$as_me: failed program was:" >&5
18313 sed 's/^/| /' conftest.$ac_ext >&5
18314
18315         eval "$as_ac_var=no"
18316 fi
18317
18318 rm -f core conftest.err conftest.$ac_objext \
18319       conftest$ac_exeext conftest.$ac_ext
18320 fi
18321 ac_res=`eval echo '${'$as_ac_var'}'`
18322                { echo "$as_me:$LINENO: result: $ac_res" >&5
18323 echo "${ECHO_T}$ac_res" >&6; }
18324 if test `eval echo '${'$as_ac_var'}'` = yes; then
18325   cat >>confdefs.h <<_ACEOF
18326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18327 _ACEOF
18328
18329 fi
18330 done
18331
18332
18333   fi
18334
18335
18336   fi
18337
18338 ac_have_func=no # yes means we've found a way to get the load average.
18339
18340 # Make sure getloadavg.c is where it belongs, at configure-time.
18341 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18342   { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18343 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18344    { (exit 1); exit 1; }; }
18345
18346 ac_save_LIBS=$LIBS
18347
18348 # Check for getloadavg, but be sure not to touch the cache variable.
18349 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
18350 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
18351 if test "${ac_cv_func_getloadavg+set}" = set; then
18352   echo $ECHO_N "(cached) $ECHO_C" >&6
18353 else
18354   cat >conftest.$ac_ext <<_ACEOF
18355 /* confdefs.h.  */
18356 _ACEOF
18357 cat confdefs.h >>conftest.$ac_ext
18358 cat >>conftest.$ac_ext <<_ACEOF
18359 /* end confdefs.h.  */
18360 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18361    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18362 #define getloadavg innocuous_getloadavg
18363
18364 /* System header to define __stub macros and hopefully few prototypes,
18365     which can conflict with char getloadavg (); below.
18366     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18367     <limits.h> exists even on freestanding compilers.  */
18368
18369 #ifdef __STDC__
18370 # include <limits.h>
18371 #else
18372 # include <assert.h>
18373 #endif
18374
18375 #undef getloadavg
18376
18377 /* Override any GCC internal prototype to avoid an error.
18378    Use char because int might match the return type of a GCC
18379    builtin and then its argument prototype would still apply.  */
18380 #ifdef __cplusplus
18381 extern "C"
18382 #endif
18383 char getloadavg ();
18384 /* The GNU C library defines this for functions which it implements
18385     to always fail with ENOSYS.  Some functions are actually named
18386     something starting with __ and the normal name is an alias.  */
18387 #if defined __stub_getloadavg || defined __stub___getloadavg
18388 choke me
18389 #endif
18390
18391 int
18392 main ()
18393 {
18394 return getloadavg ();
18395   ;
18396   return 0;
18397 }
18398 _ACEOF
18399 rm -f conftest.$ac_objext conftest$ac_exeext
18400 if { (ac_try="$ac_link"
18401 case "(($ac_try" in
18402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18403   *) ac_try_echo=$ac_try;;
18404 esac
18405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18406   (eval "$ac_link") 2>conftest.er1
18407   ac_status=$?
18408   grep -v '^ *+' conftest.er1 >conftest.err
18409   rm -f conftest.er1
18410   cat conftest.err >&5
18411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412   (exit $ac_status); } &&
18413          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18414   { (case "(($ac_try" in
18415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18416   *) ac_try_echo=$ac_try;;
18417 esac
18418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18419   (eval "$ac_try") 2>&5
18420   ac_status=$?
18421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422   (exit $ac_status); }; } &&
18423          { ac_try='test -s conftest$ac_exeext'
18424   { (case "(($ac_try" in
18425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426   *) ac_try_echo=$ac_try;;
18427 esac
18428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18429   (eval "$ac_try") 2>&5
18430   ac_status=$?
18431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432   (exit $ac_status); }; }; then
18433   ac_cv_func_getloadavg=yes
18434 else
18435   echo "$as_me: failed program was:" >&5
18436 sed 's/^/| /' conftest.$ac_ext >&5
18437
18438         ac_cv_func_getloadavg=no
18439 fi
18440
18441 rm -f core conftest.err conftest.$ac_objext \
18442       conftest$ac_exeext conftest.$ac_ext
18443 fi
18444 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18445 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
18446 if test $ac_cv_func_getloadavg = yes; then
18447   exit 0
18448 else
18449   exit 1
18450 fi
18451 ) && ac_have_func=yes
18452
18453 # On HPUX9, an unprivileged user can get load averages through this function.
18454
18455 for ac_func in pstat_getdynamic
18456 do
18457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18461   echo $ECHO_N "(cached) $ECHO_C" >&6
18462 else
18463   cat >conftest.$ac_ext <<_ACEOF
18464 /* confdefs.h.  */
18465 _ACEOF
18466 cat confdefs.h >>conftest.$ac_ext
18467 cat >>conftest.$ac_ext <<_ACEOF
18468 /* end confdefs.h.  */
18469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18471 #define $ac_func innocuous_$ac_func
18472
18473 /* System header to define __stub macros and hopefully few prototypes,
18474     which can conflict with char $ac_func (); below.
18475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18476     <limits.h> exists even on freestanding compilers.  */
18477
18478 #ifdef __STDC__
18479 # include <limits.h>
18480 #else
18481 # include <assert.h>
18482 #endif
18483
18484 #undef $ac_func
18485
18486 /* Override any GCC internal prototype to avoid an error.
18487    Use char because int might match the return type of a GCC
18488    builtin and then its argument prototype would still apply.  */
18489 #ifdef __cplusplus
18490 extern "C"
18491 #endif
18492 char $ac_func ();
18493 /* The GNU C library defines this for functions which it implements
18494     to always fail with ENOSYS.  Some functions are actually named
18495     something starting with __ and the normal name is an alias.  */
18496 #if defined __stub_$ac_func || defined __stub___$ac_func
18497 choke me
18498 #endif
18499
18500 int
18501 main ()
18502 {
18503 return $ac_func ();
18504   ;
18505   return 0;
18506 }
18507 _ACEOF
18508 rm -f conftest.$ac_objext conftest$ac_exeext
18509 if { (ac_try="$ac_link"
18510 case "(($ac_try" in
18511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18512   *) ac_try_echo=$ac_try;;
18513 esac
18514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18515   (eval "$ac_link") 2>conftest.er1
18516   ac_status=$?
18517   grep -v '^ *+' conftest.er1 >conftest.err
18518   rm -f conftest.er1
18519   cat conftest.err >&5
18520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521   (exit $ac_status); } &&
18522          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18523   { (case "(($ac_try" in
18524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18525   *) ac_try_echo=$ac_try;;
18526 esac
18527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528   (eval "$ac_try") 2>&5
18529   ac_status=$?
18530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531   (exit $ac_status); }; } &&
18532          { ac_try='test -s conftest$ac_exeext'
18533   { (case "(($ac_try" in
18534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535   *) ac_try_echo=$ac_try;;
18536 esac
18537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538   (eval "$ac_try") 2>&5
18539   ac_status=$?
18540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541   (exit $ac_status); }; }; then
18542   eval "$as_ac_var=yes"
18543 else
18544   echo "$as_me: failed program was:" >&5
18545 sed 's/^/| /' conftest.$ac_ext >&5
18546
18547         eval "$as_ac_var=no"
18548 fi
18549
18550 rm -f core conftest.err conftest.$ac_objext \
18551       conftest$ac_exeext conftest.$ac_ext
18552 fi
18553 ac_res=`eval echo '${'$as_ac_var'}'`
18554                { echo "$as_me:$LINENO: result: $ac_res" >&5
18555 echo "${ECHO_T}$ac_res" >&6; }
18556 if test `eval echo '${'$as_ac_var'}'` = yes; then
18557   cat >>confdefs.h <<_ACEOF
18558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18559 _ACEOF
18560
18561 fi
18562 done
18563
18564
18565 # Solaris has libkstat which does not require root.
18566
18567 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18568 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
18569 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18570   echo $ECHO_N "(cached) $ECHO_C" >&6
18571 else
18572   ac_check_lib_save_LIBS=$LIBS
18573 LIBS="-lkstat  $LIBS"
18574 cat >conftest.$ac_ext <<_ACEOF
18575 /* confdefs.h.  */
18576 _ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h.  */
18580
18581 /* Override any GCC internal prototype to avoid an error.
18582    Use char because int might match the return type of a GCC
18583    builtin and then its argument prototype would still apply.  */
18584 #ifdef __cplusplus
18585 extern "C"
18586 #endif
18587 char kstat_open ();
18588 int
18589 main ()
18590 {
18591 return kstat_open ();
18592   ;
18593   return 0;
18594 }
18595 _ACEOF
18596 rm -f conftest.$ac_objext conftest$ac_exeext
18597 if { (ac_try="$ac_link"
18598 case "(($ac_try" in
18599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600   *) ac_try_echo=$ac_try;;
18601 esac
18602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603   (eval "$ac_link") 2>conftest.er1
18604   ac_status=$?
18605   grep -v '^ *+' conftest.er1 >conftest.err
18606   rm -f conftest.er1
18607   cat conftest.err >&5
18608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609   (exit $ac_status); } &&
18610          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18611   { (case "(($ac_try" in
18612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613   *) ac_try_echo=$ac_try;;
18614 esac
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616   (eval "$ac_try") 2>&5
18617   ac_status=$?
18618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619   (exit $ac_status); }; } &&
18620          { ac_try='test -s conftest$ac_exeext'
18621   { (case "(($ac_try" in
18622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18623   *) ac_try_echo=$ac_try;;
18624 esac
18625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18626   (eval "$ac_try") 2>&5
18627   ac_status=$?
18628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629   (exit $ac_status); }; }; then
18630   ac_cv_lib_kstat_kstat_open=yes
18631 else
18632   echo "$as_me: failed program was:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18634
18635         ac_cv_lib_kstat_kstat_open=no
18636 fi
18637
18638 rm -f core conftest.err conftest.$ac_objext \
18639       conftest$ac_exeext conftest.$ac_ext
18640 LIBS=$ac_check_lib_save_LIBS
18641 fi
18642 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18643 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
18644 if test $ac_cv_lib_kstat_kstat_open = yes; then
18645   cat >>confdefs.h <<_ACEOF
18646 #define HAVE_LIBKSTAT 1
18647 _ACEOF
18648
18649   LIBS="-lkstat $LIBS"
18650
18651 fi
18652
18653 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18654
18655 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18656 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18657 # to get the right answer into the cache.
18658 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18659 if test $ac_have_func = no; then
18660   { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18661 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
18662 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18663   echo $ECHO_N "(cached) $ECHO_C" >&6
18664 else
18665   ac_check_lib_save_LIBS=$LIBS
18666 LIBS="-lelf  $LIBS"
18667 cat >conftest.$ac_ext <<_ACEOF
18668 /* confdefs.h.  */
18669 _ACEOF
18670 cat confdefs.h >>conftest.$ac_ext
18671 cat >>conftest.$ac_ext <<_ACEOF
18672 /* end confdefs.h.  */
18673
18674 /* Override any GCC internal prototype to avoid an error.
18675    Use char because int might match the return type of a GCC
18676    builtin and then its argument prototype would still apply.  */
18677 #ifdef __cplusplus
18678 extern "C"
18679 #endif
18680 char elf_begin ();
18681 int
18682 main ()
18683 {
18684 return elf_begin ();
18685   ;
18686   return 0;
18687 }
18688 _ACEOF
18689 rm -f conftest.$ac_objext conftest$ac_exeext
18690 if { (ac_try="$ac_link"
18691 case "(($ac_try" in
18692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693   *) ac_try_echo=$ac_try;;
18694 esac
18695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18696   (eval "$ac_link") 2>conftest.er1
18697   ac_status=$?
18698   grep -v '^ *+' conftest.er1 >conftest.err
18699   rm -f conftest.er1
18700   cat conftest.err >&5
18701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702   (exit $ac_status); } &&
18703          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18704   { (case "(($ac_try" in
18705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18706   *) ac_try_echo=$ac_try;;
18707 esac
18708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18709   (eval "$ac_try") 2>&5
18710   ac_status=$?
18711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712   (exit $ac_status); }; } &&
18713          { ac_try='test -s conftest$ac_exeext'
18714   { (case "(($ac_try" in
18715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18716   *) ac_try_echo=$ac_try;;
18717 esac
18718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18719   (eval "$ac_try") 2>&5
18720   ac_status=$?
18721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722   (exit $ac_status); }; }; then
18723   ac_cv_lib_elf_elf_begin=yes
18724 else
18725   echo "$as_me: failed program was:" >&5
18726 sed 's/^/| /' conftest.$ac_ext >&5
18727
18728         ac_cv_lib_elf_elf_begin=no
18729 fi
18730
18731 rm -f core conftest.err conftest.$ac_objext \
18732       conftest$ac_exeext conftest.$ac_ext
18733 LIBS=$ac_check_lib_save_LIBS
18734 fi
18735 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18736 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
18737 if test $ac_cv_lib_elf_elf_begin = yes; then
18738   LIBS="-lelf $LIBS"
18739 fi
18740
18741 fi
18742 if test $ac_have_func = no; then
18743   { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18744 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
18745 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18746   echo $ECHO_N "(cached) $ECHO_C" >&6
18747 else
18748   ac_check_lib_save_LIBS=$LIBS
18749 LIBS="-lkvm  $LIBS"
18750 cat >conftest.$ac_ext <<_ACEOF
18751 /* confdefs.h.  */
18752 _ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h.  */
18756
18757 /* Override any GCC internal prototype to avoid an error.
18758    Use char because int might match the return type of a GCC
18759    builtin and then its argument prototype would still apply.  */
18760 #ifdef __cplusplus
18761 extern "C"
18762 #endif
18763 char kvm_open ();
18764 int
18765 main ()
18766 {
18767 return kvm_open ();
18768   ;
18769   return 0;
18770 }
18771 _ACEOF
18772 rm -f conftest.$ac_objext conftest$ac_exeext
18773 if { (ac_try="$ac_link"
18774 case "(($ac_try" in
18775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776   *) ac_try_echo=$ac_try;;
18777 esac
18778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18779   (eval "$ac_link") 2>conftest.er1
18780   ac_status=$?
18781   grep -v '^ *+' conftest.er1 >conftest.err
18782   rm -f conftest.er1
18783   cat conftest.err >&5
18784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785   (exit $ac_status); } &&
18786          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18787   { (case "(($ac_try" in
18788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789   *) ac_try_echo=$ac_try;;
18790 esac
18791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792   (eval "$ac_try") 2>&5
18793   ac_status=$?
18794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795   (exit $ac_status); }; } &&
18796          { ac_try='test -s conftest$ac_exeext'
18797   { (case "(($ac_try" in
18798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799   *) ac_try_echo=$ac_try;;
18800 esac
18801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802   (eval "$ac_try") 2>&5
18803   ac_status=$?
18804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805   (exit $ac_status); }; }; then
18806   ac_cv_lib_kvm_kvm_open=yes
18807 else
18808   echo "$as_me: failed program was:" >&5
18809 sed 's/^/| /' conftest.$ac_ext >&5
18810
18811         ac_cv_lib_kvm_kvm_open=no
18812 fi
18813
18814 rm -f core conftest.err conftest.$ac_objext \
18815       conftest$ac_exeext conftest.$ac_ext
18816 LIBS=$ac_check_lib_save_LIBS
18817 fi
18818 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18819 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
18820 if test $ac_cv_lib_kvm_kvm_open = yes; then
18821   LIBS="-lkvm $LIBS"
18822 fi
18823
18824   # Check for the 4.4BSD definition of getloadavg.
18825   { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18826 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
18827 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18828   echo $ECHO_N "(cached) $ECHO_C" >&6
18829 else
18830   ac_check_lib_save_LIBS=$LIBS
18831 LIBS="-lutil  $LIBS"
18832 cat >conftest.$ac_ext <<_ACEOF
18833 /* confdefs.h.  */
18834 _ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h.  */
18838
18839 /* Override any GCC internal prototype to avoid an error.
18840    Use char because int might match the return type of a GCC
18841    builtin and then its argument prototype would still apply.  */
18842 #ifdef __cplusplus
18843 extern "C"
18844 #endif
18845 char getloadavg ();
18846 int
18847 main ()
18848 {
18849 return getloadavg ();
18850   ;
18851   return 0;
18852 }
18853 _ACEOF
18854 rm -f conftest.$ac_objext conftest$ac_exeext
18855 if { (ac_try="$ac_link"
18856 case "(($ac_try" in
18857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18858   *) ac_try_echo=$ac_try;;
18859 esac
18860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18861   (eval "$ac_link") 2>conftest.er1
18862   ac_status=$?
18863   grep -v '^ *+' conftest.er1 >conftest.err
18864   rm -f conftest.er1
18865   cat conftest.err >&5
18866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867   (exit $ac_status); } &&
18868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18869   { (case "(($ac_try" in
18870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18871   *) ac_try_echo=$ac_try;;
18872 esac
18873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18874   (eval "$ac_try") 2>&5
18875   ac_status=$?
18876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877   (exit $ac_status); }; } &&
18878          { ac_try='test -s conftest$ac_exeext'
18879   { (case "(($ac_try" in
18880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881   *) ac_try_echo=$ac_try;;
18882 esac
18883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884   (eval "$ac_try") 2>&5
18885   ac_status=$?
18886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887   (exit $ac_status); }; }; then
18888   ac_cv_lib_util_getloadavg=yes
18889 else
18890   echo "$as_me: failed program was:" >&5
18891 sed 's/^/| /' conftest.$ac_ext >&5
18892
18893         ac_cv_lib_util_getloadavg=no
18894 fi
18895
18896 rm -f core conftest.err conftest.$ac_objext \
18897       conftest$ac_exeext conftest.$ac_ext
18898 LIBS=$ac_check_lib_save_LIBS
18899 fi
18900 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18901 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
18902 if test $ac_cv_lib_util_getloadavg = yes; then
18903   LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18904 fi
18905
18906 fi
18907
18908 if test $ac_have_func = no; then
18909   # There is a commonly available library for RS/6000 AIX.
18910   # Since it is not a standard part of AIX, it might be installed locally.
18911   ac_getloadavg_LIBS=$LIBS
18912   LIBS="-L/usr/local/lib $LIBS"
18913   { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18914 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
18915 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18916   echo $ECHO_N "(cached) $ECHO_C" >&6
18917 else
18918   ac_check_lib_save_LIBS=$LIBS
18919 LIBS="-lgetloadavg  $LIBS"
18920 cat >conftest.$ac_ext <<_ACEOF
18921 /* confdefs.h.  */
18922 _ACEOF
18923 cat confdefs.h >>conftest.$ac_ext
18924 cat >>conftest.$ac_ext <<_ACEOF
18925 /* end confdefs.h.  */
18926
18927 /* Override any GCC internal prototype to avoid an error.
18928    Use char because int might match the return type of a GCC
18929    builtin and then its argument prototype would still apply.  */
18930 #ifdef __cplusplus
18931 extern "C"
18932 #endif
18933 char getloadavg ();
18934 int
18935 main ()
18936 {
18937 return getloadavg ();
18938   ;
18939   return 0;
18940 }
18941 _ACEOF
18942 rm -f conftest.$ac_objext conftest$ac_exeext
18943 if { (ac_try="$ac_link"
18944 case "(($ac_try" in
18945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18946   *) ac_try_echo=$ac_try;;
18947 esac
18948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18949   (eval "$ac_link") 2>conftest.er1
18950   ac_status=$?
18951   grep -v '^ *+' conftest.er1 >conftest.err
18952   rm -f conftest.er1
18953   cat conftest.err >&5
18954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955   (exit $ac_status); } &&
18956          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18957   { (case "(($ac_try" in
18958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18959   *) ac_try_echo=$ac_try;;
18960 esac
18961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18962   (eval "$ac_try") 2>&5
18963   ac_status=$?
18964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965   (exit $ac_status); }; } &&
18966          { ac_try='test -s conftest$ac_exeext'
18967   { (case "(($ac_try" in
18968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18969   *) ac_try_echo=$ac_try;;
18970 esac
18971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18972   (eval "$ac_try") 2>&5
18973   ac_status=$?
18974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975   (exit $ac_status); }; }; then
18976   ac_cv_lib_getloadavg_getloadavg=yes
18977 else
18978   echo "$as_me: failed program was:" >&5
18979 sed 's/^/| /' conftest.$ac_ext >&5
18980
18981         ac_cv_lib_getloadavg_getloadavg=no
18982 fi
18983
18984 rm -f core conftest.err conftest.$ac_objext \
18985       conftest$ac_exeext conftest.$ac_ext
18986 LIBS=$ac_check_lib_save_LIBS
18987 fi
18988 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18989 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
18990 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18991   LIBS="-lgetloadavg $LIBS"
18992 else
18993   LIBS=$ac_getloadavg_LIBS
18994 fi
18995
18996 fi
18997
18998 # Make sure it is really in the library, if we think we found it,
18999 # otherwise set up the replacement function.
19000
19001 for ac_func in getloadavg
19002 do
19003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19004 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19006 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19007   echo $ECHO_N "(cached) $ECHO_C" >&6
19008 else
19009   cat >conftest.$ac_ext <<_ACEOF
19010 /* confdefs.h.  */
19011 _ACEOF
19012 cat confdefs.h >>conftest.$ac_ext
19013 cat >>conftest.$ac_ext <<_ACEOF
19014 /* end confdefs.h.  */
19015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19017 #define $ac_func innocuous_$ac_func
19018
19019 /* System header to define __stub macros and hopefully few prototypes,
19020     which can conflict with char $ac_func (); below.
19021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19022     <limits.h> exists even on freestanding compilers.  */
19023
19024 #ifdef __STDC__
19025 # include <limits.h>
19026 #else
19027 # include <assert.h>
19028 #endif
19029
19030 #undef $ac_func
19031
19032 /* Override any GCC internal prototype to avoid an error.
19033    Use char because int might match the return type of a GCC
19034    builtin and then its argument prototype would still apply.  */
19035 #ifdef __cplusplus
19036 extern "C"
19037 #endif
19038 char $ac_func ();
19039 /* The GNU C library defines this for functions which it implements
19040     to always fail with ENOSYS.  Some functions are actually named
19041     something starting with __ and the normal name is an alias.  */
19042 #if defined __stub_$ac_func || defined __stub___$ac_func
19043 choke me
19044 #endif
19045
19046 int
19047 main ()
19048 {
19049 return $ac_func ();
19050   ;
19051   return 0;
19052 }
19053 _ACEOF
19054 rm -f conftest.$ac_objext conftest$ac_exeext
19055 if { (ac_try="$ac_link"
19056 case "(($ac_try" in
19057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058   *) ac_try_echo=$ac_try;;
19059 esac
19060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061   (eval "$ac_link") 2>conftest.er1
19062   ac_status=$?
19063   grep -v '^ *+' conftest.er1 >conftest.err
19064   rm -f conftest.er1
19065   cat conftest.err >&5
19066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067   (exit $ac_status); } &&
19068          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19069   { (case "(($ac_try" in
19070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19071   *) ac_try_echo=$ac_try;;
19072 esac
19073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19074   (eval "$ac_try") 2>&5
19075   ac_status=$?
19076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077   (exit $ac_status); }; } &&
19078          { ac_try='test -s conftest$ac_exeext'
19079   { (case "(($ac_try" in
19080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19081   *) ac_try_echo=$ac_try;;
19082 esac
19083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19084   (eval "$ac_try") 2>&5
19085   ac_status=$?
19086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087   (exit $ac_status); }; }; then
19088   eval "$as_ac_var=yes"
19089 else
19090   echo "$as_me: failed program was:" >&5
19091 sed 's/^/| /' conftest.$ac_ext >&5
19092
19093         eval "$as_ac_var=no"
19094 fi
19095
19096 rm -f core conftest.err conftest.$ac_objext \
19097       conftest$ac_exeext conftest.$ac_ext
19098 fi
19099 ac_res=`eval echo '${'$as_ac_var'}'`
19100                { echo "$as_me:$LINENO: result: $ac_res" >&5
19101 echo "${ECHO_T}$ac_res" >&6; }
19102 if test `eval echo '${'$as_ac_var'}'` = yes; then
19103   cat >>confdefs.h <<_ACEOF
19104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19105 _ACEOF
19106
19107 else
19108   case " $LIBOBJS " in
19109   *" getloadavg.$ac_objext "* ) ;;
19110   *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
19111  ;;
19112 esac
19113
19114
19115 cat >>confdefs.h <<\_ACEOF
19116 #define C_GETLOADAVG 1
19117 _ACEOF
19118
19119 # Figure out what our getloadavg.c needs.
19120 ac_have_func=no
19121 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19122   { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19123 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
19124 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19125   echo $ECHO_N "(cached) $ECHO_C" >&6
19126 fi
19127 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19128 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
19129 else
19130   # Is the header compilable?
19131 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
19132 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
19133 cat >conftest.$ac_ext <<_ACEOF
19134 /* confdefs.h.  */
19135 _ACEOF
19136 cat confdefs.h >>conftest.$ac_ext
19137 cat >>conftest.$ac_ext <<_ACEOF
19138 /* end confdefs.h.  */
19139 $ac_includes_default
19140 #include <sys/dg_sys_info.h>
19141 _ACEOF
19142 rm -f conftest.$ac_objext
19143 if { (ac_try="$ac_compile"
19144 case "(($ac_try" in
19145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19146   *) ac_try_echo=$ac_try;;
19147 esac
19148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19149   (eval "$ac_compile") 2>conftest.er1
19150   ac_status=$?
19151   grep -v '^ *+' conftest.er1 >conftest.err
19152   rm -f conftest.er1
19153   cat conftest.err >&5
19154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155   (exit $ac_status); } &&
19156          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19157   { (case "(($ac_try" in
19158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19159   *) ac_try_echo=$ac_try;;
19160 esac
19161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19162   (eval "$ac_try") 2>&5
19163   ac_status=$?
19164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165   (exit $ac_status); }; } &&
19166          { ac_try='test -s conftest.$ac_objext'
19167   { (case "(($ac_try" in
19168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19169   *) ac_try_echo=$ac_try;;
19170 esac
19171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19172   (eval "$ac_try") 2>&5
19173   ac_status=$?
19174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175   (exit $ac_status); }; }; then
19176   ac_header_compiler=yes
19177 else
19178   echo "$as_me: failed program was:" >&5
19179 sed 's/^/| /' conftest.$ac_ext >&5
19180
19181         ac_header_compiler=no
19182 fi
19183
19184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19186 echo "${ECHO_T}$ac_header_compiler" >&6; }
19187
19188 # Is the header present?
19189 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
19190 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
19191 cat >conftest.$ac_ext <<_ACEOF
19192 /* confdefs.h.  */
19193 _ACEOF
19194 cat confdefs.h >>conftest.$ac_ext
19195 cat >>conftest.$ac_ext <<_ACEOF
19196 /* end confdefs.h.  */
19197 #include <sys/dg_sys_info.h>
19198 _ACEOF
19199 if { (ac_try="$ac_cpp conftest.$ac_ext"
19200 case "(($ac_try" in
19201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19202   *) ac_try_echo=$ac_try;;
19203 esac
19204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19205   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19206   ac_status=$?
19207   grep -v '^ *+' conftest.er1 >conftest.err
19208   rm -f conftest.er1
19209   cat conftest.err >&5
19210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211   (exit $ac_status); } >/dev/null; then
19212   if test -s conftest.err; then
19213     ac_cpp_err=$ac_c_preproc_warn_flag
19214     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19215   else
19216     ac_cpp_err=
19217   fi
19218 else
19219   ac_cpp_err=yes
19220 fi
19221 if test -z "$ac_cpp_err"; then
19222   ac_header_preproc=yes
19223 else
19224   echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19226
19227   ac_header_preproc=no
19228 fi
19229
19230 rm -f conftest.err conftest.$ac_ext
19231 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19232 echo "${ECHO_T}$ac_header_preproc" >&6; }
19233
19234 # So?  What about this header?
19235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19236   yes:no: )
19237     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
19238 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19239     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
19240 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
19241     ac_header_preproc=yes
19242     ;;
19243   no:yes:* )
19244     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
19245 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
19246     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&5
19247 echo "$as_me: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&2;}
19248     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
19249 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
19250     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&5
19251 echo "$as_me: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19252     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19253 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19254     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19255 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19256     ( cat <<\_ASBOX
19257 ## ------------------------------------ ##
19258 ## Report this to bug-coreutils@gnu.org ##
19259 ## ------------------------------------ ##
19260 _ASBOX
19261      ) | sed "s/^/$as_me: WARNING:     /" >&2
19262     ;;
19263 esac
19264 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19265 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
19266 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19267   echo $ECHO_N "(cached) $ECHO_C" >&6
19268 else
19269   ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19270 fi
19271 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19272 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
19273
19274 fi
19275 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19276   ac_have_func=yes
19277
19278 cat >>confdefs.h <<\_ACEOF
19279 #define DGUX 1
19280 _ACEOF
19281
19282
19283 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19284 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
19285 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19286   echo $ECHO_N "(cached) $ECHO_C" >&6
19287 else
19288   ac_check_lib_save_LIBS=$LIBS
19289 LIBS="-ldgc  $LIBS"
19290 cat >conftest.$ac_ext <<_ACEOF
19291 /* confdefs.h.  */
19292 _ACEOF
19293 cat confdefs.h >>conftest.$ac_ext
19294 cat >>conftest.$ac_ext <<_ACEOF
19295 /* end confdefs.h.  */
19296
19297 /* Override any GCC internal prototype to avoid an error.
19298    Use char because int might match the return type of a GCC
19299    builtin and then its argument prototype would still apply.  */
19300 #ifdef __cplusplus
19301 extern "C"
19302 #endif
19303 char dg_sys_info ();
19304 int
19305 main ()
19306 {
19307 return dg_sys_info ();
19308   ;
19309   return 0;
19310 }
19311 _ACEOF
19312 rm -f conftest.$ac_objext conftest$ac_exeext
19313 if { (ac_try="$ac_link"
19314 case "(($ac_try" in
19315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19316   *) ac_try_echo=$ac_try;;
19317 esac
19318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19319   (eval "$ac_link") 2>conftest.er1
19320   ac_status=$?
19321   grep -v '^ *+' conftest.er1 >conftest.err
19322   rm -f conftest.er1
19323   cat conftest.err >&5
19324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325   (exit $ac_status); } &&
19326          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19327   { (case "(($ac_try" in
19328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19329   *) ac_try_echo=$ac_try;;
19330 esac
19331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19332   (eval "$ac_try") 2>&5
19333   ac_status=$?
19334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335   (exit $ac_status); }; } &&
19336          { ac_try='test -s conftest$ac_exeext'
19337   { (case "(($ac_try" in
19338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19339   *) ac_try_echo=$ac_try;;
19340 esac
19341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19342   (eval "$ac_try") 2>&5
19343   ac_status=$?
19344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345   (exit $ac_status); }; }; then
19346   ac_cv_lib_dgc_dg_sys_info=yes
19347 else
19348   echo "$as_me: failed program was:" >&5
19349 sed 's/^/| /' conftest.$ac_ext >&5
19350
19351         ac_cv_lib_dgc_dg_sys_info=no
19352 fi
19353
19354 rm -f core conftest.err conftest.$ac_objext \
19355       conftest$ac_exeext conftest.$ac_ext
19356 LIBS=$ac_check_lib_save_LIBS
19357 fi
19358 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19359 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
19360 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19361   cat >>confdefs.h <<_ACEOF
19362 #define HAVE_LIBDGC 1
19363 _ACEOF
19364
19365   LIBS="-ldgc $LIBS"
19366
19367 fi
19368
19369 fi
19370
19371
19372
19373 if test "${ac_cv_header_locale_h+set}" = set; then
19374   { echo "$as_me:$LINENO: checking for locale.h" >&5
19375 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
19376 if test "${ac_cv_header_locale_h+set}" = set; then
19377   echo $ECHO_N "(cached) $ECHO_C" >&6
19378 fi
19379 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19380 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
19381 else
19382   # Is the header compilable?
19383 { echo "$as_me:$LINENO: checking locale.h usability" >&5
19384 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
19385 cat >conftest.$ac_ext <<_ACEOF
19386 /* confdefs.h.  */
19387 _ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h.  */
19391 $ac_includes_default
19392 #include <locale.h>
19393 _ACEOF
19394 rm -f conftest.$ac_objext
19395 if { (ac_try="$ac_compile"
19396 case "(($ac_try" in
19397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19398   *) ac_try_echo=$ac_try;;
19399 esac
19400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19401   (eval "$ac_compile") 2>conftest.er1
19402   ac_status=$?
19403   grep -v '^ *+' conftest.er1 >conftest.err
19404   rm -f conftest.er1
19405   cat conftest.err >&5
19406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407   (exit $ac_status); } &&
19408          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19409   { (case "(($ac_try" in
19410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411   *) ac_try_echo=$ac_try;;
19412 esac
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414   (eval "$ac_try") 2>&5
19415   ac_status=$?
19416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417   (exit $ac_status); }; } &&
19418          { ac_try='test -s conftest.$ac_objext'
19419   { (case "(($ac_try" in
19420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421   *) ac_try_echo=$ac_try;;
19422 esac
19423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424   (eval "$ac_try") 2>&5
19425   ac_status=$?
19426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427   (exit $ac_status); }; }; then
19428   ac_header_compiler=yes
19429 else
19430   echo "$as_me: failed program was:" >&5
19431 sed 's/^/| /' conftest.$ac_ext >&5
19432
19433         ac_header_compiler=no
19434 fi
19435
19436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19437 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19438 echo "${ECHO_T}$ac_header_compiler" >&6; }
19439
19440 # Is the header present?
19441 { echo "$as_me:$LINENO: checking locale.h presence" >&5
19442 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
19443 cat >conftest.$ac_ext <<_ACEOF
19444 /* confdefs.h.  */
19445 _ACEOF
19446 cat confdefs.h >>conftest.$ac_ext
19447 cat >>conftest.$ac_ext <<_ACEOF
19448 /* end confdefs.h.  */
19449 #include <locale.h>
19450 _ACEOF
19451 if { (ac_try="$ac_cpp conftest.$ac_ext"
19452 case "(($ac_try" in
19453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454   *) ac_try_echo=$ac_try;;
19455 esac
19456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19457   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19458   ac_status=$?
19459   grep -v '^ *+' conftest.er1 >conftest.err
19460   rm -f conftest.er1
19461   cat conftest.err >&5
19462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463   (exit $ac_status); } >/dev/null; then
19464   if test -s conftest.err; then
19465     ac_cpp_err=$ac_c_preproc_warn_flag
19466     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19467   else
19468     ac_cpp_err=
19469   fi
19470 else
19471   ac_cpp_err=yes
19472 fi
19473 if test -z "$ac_cpp_err"; then
19474   ac_header_preproc=yes
19475 else
19476   echo "$as_me: failed program was:" >&5
19477 sed 's/^/| /' conftest.$ac_ext >&5
19478
19479   ac_header_preproc=no
19480 fi
19481
19482 rm -f conftest.err conftest.$ac_ext
19483 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19484 echo "${ECHO_T}$ac_header_preproc" >&6; }
19485
19486 # So?  What about this header?
19487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19488   yes:no: )
19489     { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19490 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19491     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19492 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19493     ac_header_preproc=yes
19494     ;;
19495   no:yes:* )
19496     { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19497 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19498     { echo "$as_me:$LINENO: WARNING: locale.h:     check for missing prerequisite headers?" >&5
19499 echo "$as_me: WARNING: locale.h:     check for missing prerequisite headers?" >&2;}
19500     { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19501 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19502     { echo "$as_me:$LINENO: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&5
19503 echo "$as_me: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19504     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19505 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19506     { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19507 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19508     ( cat <<\_ASBOX
19509 ## ------------------------------------ ##
19510 ## Report this to bug-coreutils@gnu.org ##
19511 ## ------------------------------------ ##
19512 _ASBOX
19513      ) | sed "s/^/$as_me: WARNING:     /" >&2
19514     ;;
19515 esac
19516 { echo "$as_me:$LINENO: checking for locale.h" >&5
19517 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
19518 if test "${ac_cv_header_locale_h+set}" = set; then
19519   echo $ECHO_N "(cached) $ECHO_C" >&6
19520 else
19521   ac_cv_header_locale_h=$ac_header_preproc
19522 fi
19523 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19524 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
19525
19526 fi
19527
19528
19529
19530 for ac_func in setlocale
19531 do
19532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19533 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19535 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19536   echo $ECHO_N "(cached) $ECHO_C" >&6
19537 else
19538   cat >conftest.$ac_ext <<_ACEOF
19539 /* confdefs.h.  */
19540 _ACEOF
19541 cat confdefs.h >>conftest.$ac_ext
19542 cat >>conftest.$ac_ext <<_ACEOF
19543 /* end confdefs.h.  */
19544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19545    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19546 #define $ac_func innocuous_$ac_func
19547
19548 /* System header to define __stub macros and hopefully few prototypes,
19549     which can conflict with char $ac_func (); below.
19550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19551     <limits.h> exists even on freestanding compilers.  */
19552
19553 #ifdef __STDC__
19554 # include <limits.h>
19555 #else
19556 # include <assert.h>
19557 #endif
19558
19559 #undef $ac_func
19560
19561 /* Override any GCC internal prototype to avoid an error.
19562    Use char because int might match the return type of a GCC
19563    builtin and then its argument prototype would still apply.  */
19564 #ifdef __cplusplus
19565 extern "C"
19566 #endif
19567 char $ac_func ();
19568 /* The GNU C library defines this for functions which it implements
19569     to always fail with ENOSYS.  Some functions are actually named
19570     something starting with __ and the normal name is an alias.  */
19571 #if defined __stub_$ac_func || defined __stub___$ac_func
19572 choke me
19573 #endif
19574
19575 int
19576 main ()
19577 {
19578 return $ac_func ();
19579   ;
19580   return 0;
19581 }
19582 _ACEOF
19583 rm -f conftest.$ac_objext conftest$ac_exeext
19584 if { (ac_try="$ac_link"
19585 case "(($ac_try" in
19586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19587   *) ac_try_echo=$ac_try;;
19588 esac
19589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19590   (eval "$ac_link") 2>conftest.er1
19591   ac_status=$?
19592   grep -v '^ *+' conftest.er1 >conftest.err
19593   rm -f conftest.er1
19594   cat conftest.err >&5
19595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596   (exit $ac_status); } &&
19597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19598   { (case "(($ac_try" in
19599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600   *) ac_try_echo=$ac_try;;
19601 esac
19602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19603   (eval "$ac_try") 2>&5
19604   ac_status=$?
19605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606   (exit $ac_status); }; } &&
19607          { ac_try='test -s conftest$ac_exeext'
19608   { (case "(($ac_try" in
19609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19610   *) ac_try_echo=$ac_try;;
19611 esac
19612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19613   (eval "$ac_try") 2>&5
19614   ac_status=$?
19615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616   (exit $ac_status); }; }; then
19617   eval "$as_ac_var=yes"
19618 else
19619   echo "$as_me: failed program was:" >&5
19620 sed 's/^/| /' conftest.$ac_ext >&5
19621
19622         eval "$as_ac_var=no"
19623 fi
19624
19625 rm -f core conftest.err conftest.$ac_objext \
19626       conftest$ac_exeext conftest.$ac_ext
19627 fi
19628 ac_res=`eval echo '${'$as_ac_var'}'`
19629                { echo "$as_me:$LINENO: result: $ac_res" >&5
19630 echo "${ECHO_T}$ac_res" >&6; }
19631 if test `eval echo '${'$as_ac_var'}'` = yes; then
19632   cat >>confdefs.h <<_ACEOF
19633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19634 _ACEOF
19635
19636 fi
19637 done
19638
19639
19640 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19641 # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
19642 # Irix 4.0.5F has the header but not the library.
19643 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19644   ac_have_func=yes
19645
19646 cat >>confdefs.h <<\_ACEOF
19647 #define SVR4 1
19648 _ACEOF
19649
19650 fi
19651
19652 if test $ac_have_func = no; then
19653   if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19654   { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19655 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
19656 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19657   echo $ECHO_N "(cached) $ECHO_C" >&6
19658 fi
19659 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19660 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
19661 else
19662   # Is the header compilable?
19663 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19664 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
19665 cat >conftest.$ac_ext <<_ACEOF
19666 /* confdefs.h.  */
19667 _ACEOF
19668 cat confdefs.h >>conftest.$ac_ext
19669 cat >>conftest.$ac_ext <<_ACEOF
19670 /* end confdefs.h.  */
19671 $ac_includes_default
19672 #include <inq_stats/cpustats.h>
19673 _ACEOF
19674 rm -f conftest.$ac_objext
19675 if { (ac_try="$ac_compile"
19676 case "(($ac_try" in
19677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19678   *) ac_try_echo=$ac_try;;
19679 esac
19680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19681   (eval "$ac_compile") 2>conftest.er1
19682   ac_status=$?
19683   grep -v '^ *+' conftest.er1 >conftest.err
19684   rm -f conftest.er1
19685   cat conftest.err >&5
19686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687   (exit $ac_status); } &&
19688          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19689   { (case "(($ac_try" in
19690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19691   *) ac_try_echo=$ac_try;;
19692 esac
19693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19694   (eval "$ac_try") 2>&5
19695   ac_status=$?
19696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697   (exit $ac_status); }; } &&
19698          { ac_try='test -s conftest.$ac_objext'
19699   { (case "(($ac_try" in
19700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19701   *) ac_try_echo=$ac_try;;
19702 esac
19703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19704   (eval "$ac_try") 2>&5
19705   ac_status=$?
19706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707   (exit $ac_status); }; }; then
19708   ac_header_compiler=yes
19709 else
19710   echo "$as_me: failed program was:" >&5
19711 sed 's/^/| /' conftest.$ac_ext >&5
19712
19713         ac_header_compiler=no
19714 fi
19715
19716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19718 echo "${ECHO_T}$ac_header_compiler" >&6; }
19719
19720 # Is the header present?
19721 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19722 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
19723 cat >conftest.$ac_ext <<_ACEOF
19724 /* confdefs.h.  */
19725 _ACEOF
19726 cat confdefs.h >>conftest.$ac_ext
19727 cat >>conftest.$ac_ext <<_ACEOF
19728 /* end confdefs.h.  */
19729 #include <inq_stats/cpustats.h>
19730 _ACEOF
19731 if { (ac_try="$ac_cpp conftest.$ac_ext"
19732 case "(($ac_try" in
19733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734   *) ac_try_echo=$ac_try;;
19735 esac
19736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19738   ac_status=$?
19739   grep -v '^ *+' conftest.er1 >conftest.err
19740   rm -f conftest.er1
19741   cat conftest.err >&5
19742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743   (exit $ac_status); } >/dev/null; then
19744   if test -s conftest.err; then
19745     ac_cpp_err=$ac_c_preproc_warn_flag
19746     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19747   else
19748     ac_cpp_err=
19749   fi
19750 else
19751   ac_cpp_err=yes
19752 fi
19753 if test -z "$ac_cpp_err"; then
19754   ac_header_preproc=yes
19755 else
19756   echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.$ac_ext >&5
19758
19759   ac_header_preproc=no
19760 fi
19761
19762 rm -f conftest.err conftest.$ac_ext
19763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19764 echo "${ECHO_T}$ac_header_preproc" >&6; }
19765
19766 # So?  What about this header?
19767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19768   yes:no: )
19769     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19770 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19771     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19772 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19773     ac_header_preproc=yes
19774     ;;
19775   no:yes:* )
19776     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19777 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19778     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&5
19779 echo "$as_me: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&2;}
19780     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19781 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19782     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
19783 echo "$as_me: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19784     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19785 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19786     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19787 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19788     ( cat <<\_ASBOX
19789 ## ------------------------------------ ##
19790 ## Report this to bug-coreutils@gnu.org ##
19791 ## ------------------------------------ ##
19792 _ASBOX
19793      ) | sed "s/^/$as_me: WARNING:     /" >&2
19794     ;;
19795 esac
19796 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19797 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
19798 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19799   echo $ECHO_N "(cached) $ECHO_C" >&6
19800 else
19801   ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19802 fi
19803 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19804 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
19805
19806 fi
19807 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19808   ac_have_func=yes
19809
19810 cat >>confdefs.h <<\_ACEOF
19811 #define UMAX 1
19812 _ACEOF
19813
19814
19815 cat >>confdefs.h <<\_ACEOF
19816 #define UMAX4_3 1
19817 _ACEOF
19818
19819 fi
19820
19821
19822 fi
19823
19824 if test $ac_have_func = no; then
19825   if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19826   { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19827 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
19828 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19829   echo $ECHO_N "(cached) $ECHO_C" >&6
19830 fi
19831 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19832 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
19833 else
19834   # Is the header compilable?
19835 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19836 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
19837 cat >conftest.$ac_ext <<_ACEOF
19838 /* confdefs.h.  */
19839 _ACEOF
19840 cat confdefs.h >>conftest.$ac_ext
19841 cat >>conftest.$ac_ext <<_ACEOF
19842 /* end confdefs.h.  */
19843 $ac_includes_default
19844 #include <sys/cpustats.h>
19845 _ACEOF
19846 rm -f conftest.$ac_objext
19847 if { (ac_try="$ac_compile"
19848 case "(($ac_try" in
19849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19850   *) ac_try_echo=$ac_try;;
19851 esac
19852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19853   (eval "$ac_compile") 2>conftest.er1
19854   ac_status=$?
19855   grep -v '^ *+' conftest.er1 >conftest.err
19856   rm -f conftest.er1
19857   cat conftest.err >&5
19858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859   (exit $ac_status); } &&
19860          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19861   { (case "(($ac_try" in
19862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19863   *) ac_try_echo=$ac_try;;
19864 esac
19865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19866   (eval "$ac_try") 2>&5
19867   ac_status=$?
19868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869   (exit $ac_status); }; } &&
19870          { ac_try='test -s conftest.$ac_objext'
19871   { (case "(($ac_try" in
19872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873   *) ac_try_echo=$ac_try;;
19874 esac
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876   (eval "$ac_try") 2>&5
19877   ac_status=$?
19878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879   (exit $ac_status); }; }; then
19880   ac_header_compiler=yes
19881 else
19882   echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19884
19885         ac_header_compiler=no
19886 fi
19887
19888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19889 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19890 echo "${ECHO_T}$ac_header_compiler" >&6; }
19891
19892 # Is the header present?
19893 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19894 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
19895 cat >conftest.$ac_ext <<_ACEOF
19896 /* confdefs.h.  */
19897 _ACEOF
19898 cat confdefs.h >>conftest.$ac_ext
19899 cat >>conftest.$ac_ext <<_ACEOF
19900 /* end confdefs.h.  */
19901 #include <sys/cpustats.h>
19902 _ACEOF
19903 if { (ac_try="$ac_cpp conftest.$ac_ext"
19904 case "(($ac_try" in
19905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19906   *) ac_try_echo=$ac_try;;
19907 esac
19908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19909   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19910   ac_status=$?
19911   grep -v '^ *+' conftest.er1 >conftest.err
19912   rm -f conftest.er1
19913   cat conftest.err >&5
19914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915   (exit $ac_status); } >/dev/null; then
19916   if test -s conftest.err; then
19917     ac_cpp_err=$ac_c_preproc_warn_flag
19918     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19919   else
19920     ac_cpp_err=
19921   fi
19922 else
19923   ac_cpp_err=yes
19924 fi
19925 if test -z "$ac_cpp_err"; then
19926   ac_header_preproc=yes
19927 else
19928   echo "$as_me: failed program was:" >&5
19929 sed 's/^/| /' conftest.$ac_ext >&5
19930
19931   ac_header_preproc=no
19932 fi
19933
19934 rm -f conftest.err conftest.$ac_ext
19935 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19936 echo "${ECHO_T}$ac_header_preproc" >&6; }
19937
19938 # So?  What about this header?
19939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19940   yes:no: )
19941     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19942 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19943     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19944 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19945     ac_header_preproc=yes
19946     ;;
19947   no:yes:* )
19948     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19949 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19950     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&5
19951 echo "$as_me: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&2;}
19952     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19953 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19954     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
19955 echo "$as_me: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19956     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19957 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19958     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19959 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19960     ( cat <<\_ASBOX
19961 ## ------------------------------------ ##
19962 ## Report this to bug-coreutils@gnu.org ##
19963 ## ------------------------------------ ##
19964 _ASBOX
19965      ) | sed "s/^/$as_me: WARNING:     /" >&2
19966     ;;
19967 esac
19968 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19969 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
19970 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19971   echo $ECHO_N "(cached) $ECHO_C" >&6
19972 else
19973   ac_cv_header_sys_cpustats_h=$ac_header_preproc
19974 fi
19975 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19976 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
19977
19978 fi
19979 if test $ac_cv_header_sys_cpustats_h = yes; then
19980   ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19981 #define UMAX 1
19982 _ACEOF
19983
19984 fi
19985
19986
19987 fi
19988
19989 if test $ac_have_func = no; then
19990
19991 for ac_header in mach/mach.h
19992 do
19993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19995   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19998   echo $ECHO_N "(cached) $ECHO_C" >&6
19999 fi
20000 ac_res=`eval echo '${'$as_ac_Header'}'`
20001                { echo "$as_me:$LINENO: result: $ac_res" >&5
20002 echo "${ECHO_T}$ac_res" >&6; }
20003 else
20004   # Is the header compilable?
20005 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20007 cat >conftest.$ac_ext <<_ACEOF
20008 /* confdefs.h.  */
20009 _ACEOF
20010 cat confdefs.h >>conftest.$ac_ext
20011 cat >>conftest.$ac_ext <<_ACEOF
20012 /* end confdefs.h.  */
20013 $ac_includes_default
20014 #include <$ac_header>
20015 _ACEOF
20016 rm -f conftest.$ac_objext
20017 if { (ac_try="$ac_compile"
20018 case "(($ac_try" in
20019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020   *) ac_try_echo=$ac_try;;
20021 esac
20022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20023   (eval "$ac_compile") 2>conftest.er1
20024   ac_status=$?
20025   grep -v '^ *+' conftest.er1 >conftest.err
20026   rm -f conftest.er1
20027   cat conftest.err >&5
20028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029   (exit $ac_status); } &&
20030          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20031   { (case "(($ac_try" in
20032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20033   *) ac_try_echo=$ac_try;;
20034 esac
20035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20036   (eval "$ac_try") 2>&5
20037   ac_status=$?
20038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039   (exit $ac_status); }; } &&
20040          { ac_try='test -s conftest.$ac_objext'
20041   { (case "(($ac_try" in
20042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20043   *) ac_try_echo=$ac_try;;
20044 esac
20045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20046   (eval "$ac_try") 2>&5
20047   ac_status=$?
20048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049   (exit $ac_status); }; }; then
20050   ac_header_compiler=yes
20051 else
20052   echo "$as_me: failed program was:" >&5
20053 sed 's/^/| /' conftest.$ac_ext >&5
20054
20055         ac_header_compiler=no
20056 fi
20057
20058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20059 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20060 echo "${ECHO_T}$ac_header_compiler" >&6; }
20061
20062 # Is the header present?
20063 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20064 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20065 cat >conftest.$ac_ext <<_ACEOF
20066 /* confdefs.h.  */
20067 _ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h.  */
20071 #include <$ac_header>
20072 _ACEOF
20073 if { (ac_try="$ac_cpp conftest.$ac_ext"
20074 case "(($ac_try" in
20075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20076   *) ac_try_echo=$ac_try;;
20077 esac
20078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20079   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20080   ac_status=$?
20081   grep -v '^ *+' conftest.er1 >conftest.err
20082   rm -f conftest.er1
20083   cat conftest.err >&5
20084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085   (exit $ac_status); } >/dev/null; then
20086   if test -s conftest.err; then
20087     ac_cpp_err=$ac_c_preproc_warn_flag
20088     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20089   else
20090     ac_cpp_err=
20091   fi
20092 else
20093   ac_cpp_err=yes
20094 fi
20095 if test -z "$ac_cpp_err"; then
20096   ac_header_preproc=yes
20097 else
20098   echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20100
20101   ac_header_preproc=no
20102 fi
20103
20104 rm -f conftest.err conftest.$ac_ext
20105 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20106 echo "${ECHO_T}$ac_header_preproc" >&6; }
20107
20108 # So?  What about this header?
20109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20110   yes:no: )
20111     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20112 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20113     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20114 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20115     ac_header_preproc=yes
20116     ;;
20117   no:yes:* )
20118     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20119 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20120     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20121 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20122     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20123 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20124     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20125 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20126     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20127 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20128     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20129 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20130     ( cat <<\_ASBOX
20131 ## ------------------------------------ ##
20132 ## Report this to bug-coreutils@gnu.org ##
20133 ## ------------------------------------ ##
20134 _ASBOX
20135      ) | sed "s/^/$as_me: WARNING:     /" >&2
20136     ;;
20137 esac
20138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20141   echo $ECHO_N "(cached) $ECHO_C" >&6
20142 else
20143   eval "$as_ac_Header=\$ac_header_preproc"
20144 fi
20145 ac_res=`eval echo '${'$as_ac_Header'}'`
20146                { echo "$as_me:$LINENO: result: $ac_res" >&5
20147 echo "${ECHO_T}$ac_res" >&6; }
20148
20149 fi
20150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20151   cat >>confdefs.h <<_ACEOF
20152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20153 _ACEOF
20154
20155 fi
20156
20157 done
20158
20159 fi
20160
20161
20162 for ac_header in nlist.h
20163 do
20164 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20166   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20169   echo $ECHO_N "(cached) $ECHO_C" >&6
20170 fi
20171 ac_res=`eval echo '${'$as_ac_Header'}'`
20172                { echo "$as_me:$LINENO: result: $ac_res" >&5
20173 echo "${ECHO_T}$ac_res" >&6; }
20174 else
20175   # Is the header compilable?
20176 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20177 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20178 cat >conftest.$ac_ext <<_ACEOF
20179 /* confdefs.h.  */
20180 _ACEOF
20181 cat confdefs.h >>conftest.$ac_ext
20182 cat >>conftest.$ac_ext <<_ACEOF
20183 /* end confdefs.h.  */
20184 $ac_includes_default
20185 #include <$ac_header>
20186 _ACEOF
20187 rm -f conftest.$ac_objext
20188 if { (ac_try="$ac_compile"
20189 case "(($ac_try" in
20190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20191   *) ac_try_echo=$ac_try;;
20192 esac
20193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20194   (eval "$ac_compile") 2>conftest.er1
20195   ac_status=$?
20196   grep -v '^ *+' conftest.er1 >conftest.err
20197   rm -f conftest.er1
20198   cat conftest.err >&5
20199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200   (exit $ac_status); } &&
20201          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20202   { (case "(($ac_try" in
20203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20204   *) ac_try_echo=$ac_try;;
20205 esac
20206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20207   (eval "$ac_try") 2>&5
20208   ac_status=$?
20209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210   (exit $ac_status); }; } &&
20211          { ac_try='test -s conftest.$ac_objext'
20212   { (case "(($ac_try" in
20213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20214   *) ac_try_echo=$ac_try;;
20215 esac
20216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20217   (eval "$ac_try") 2>&5
20218   ac_status=$?
20219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220   (exit $ac_status); }; }; then
20221   ac_header_compiler=yes
20222 else
20223   echo "$as_me: failed program was:" >&5
20224 sed 's/^/| /' conftest.$ac_ext >&5
20225
20226         ac_header_compiler=no
20227 fi
20228
20229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20231 echo "${ECHO_T}$ac_header_compiler" >&6; }
20232
20233 # Is the header present?
20234 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20236 cat >conftest.$ac_ext <<_ACEOF
20237 /* confdefs.h.  */
20238 _ACEOF
20239 cat confdefs.h >>conftest.$ac_ext
20240 cat >>conftest.$ac_ext <<_ACEOF
20241 /* end confdefs.h.  */
20242 #include <$ac_header>
20243 _ACEOF
20244 if { (ac_try="$ac_cpp conftest.$ac_ext"
20245 case "(($ac_try" in
20246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20247   *) ac_try_echo=$ac_try;;
20248 esac
20249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20250   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20251   ac_status=$?
20252   grep -v '^ *+' conftest.er1 >conftest.err
20253   rm -f conftest.er1
20254   cat conftest.err >&5
20255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256   (exit $ac_status); } >/dev/null; then
20257   if test -s conftest.err; then
20258     ac_cpp_err=$ac_c_preproc_warn_flag
20259     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20260   else
20261     ac_cpp_err=
20262   fi
20263 else
20264   ac_cpp_err=yes
20265 fi
20266 if test -z "$ac_cpp_err"; then
20267   ac_header_preproc=yes
20268 else
20269   echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20271
20272   ac_header_preproc=no
20273 fi
20274
20275 rm -f conftest.err conftest.$ac_ext
20276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20277 echo "${ECHO_T}$ac_header_preproc" >&6; }
20278
20279 # So?  What about this header?
20280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20281   yes:no: )
20282     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20284     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20286     ac_header_preproc=yes
20287     ;;
20288   no:yes:* )
20289     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20291     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20292 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20293     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20295     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20296 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20299     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20301     ( cat <<\_ASBOX
20302 ## ------------------------------------ ##
20303 ## Report this to bug-coreutils@gnu.org ##
20304 ## ------------------------------------ ##
20305 _ASBOX
20306      ) | sed "s/^/$as_me: WARNING:     /" >&2
20307     ;;
20308 esac
20309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20312   echo $ECHO_N "(cached) $ECHO_C" >&6
20313 else
20314   eval "$as_ac_Header=\$ac_header_preproc"
20315 fi
20316 ac_res=`eval echo '${'$as_ac_Header'}'`
20317                { echo "$as_me:$LINENO: result: $ac_res" >&5
20318 echo "${ECHO_T}$ac_res" >&6; }
20319
20320 fi
20321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20322   cat >>confdefs.h <<_ACEOF
20323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20324 _ACEOF
20325  { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
20326 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
20327 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20328   echo $ECHO_N "(cached) $ECHO_C" >&6
20329 else
20330   cat >conftest.$ac_ext <<_ACEOF
20331 /* confdefs.h.  */
20332 _ACEOF
20333 cat confdefs.h >>conftest.$ac_ext
20334 cat >>conftest.$ac_ext <<_ACEOF
20335 /* end confdefs.h.  */
20336 #include <nlist.h>
20337
20338 int
20339 main ()
20340 {
20341 static struct nlist ac_aggr;
20342 if (ac_aggr.n_un.n_name)
20343 return 0;
20344   ;
20345   return 0;
20346 }
20347 _ACEOF
20348 rm -f conftest.$ac_objext
20349 if { (ac_try="$ac_compile"
20350 case "(($ac_try" in
20351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20352   *) ac_try_echo=$ac_try;;
20353 esac
20354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20355   (eval "$ac_compile") 2>conftest.er1
20356   ac_status=$?
20357   grep -v '^ *+' conftest.er1 >conftest.err
20358   rm -f conftest.er1
20359   cat conftest.err >&5
20360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361   (exit $ac_status); } &&
20362          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20363   { (case "(($ac_try" in
20364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20365   *) ac_try_echo=$ac_try;;
20366 esac
20367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20368   (eval "$ac_try") 2>&5
20369   ac_status=$?
20370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371   (exit $ac_status); }; } &&
20372          { ac_try='test -s conftest.$ac_objext'
20373   { (case "(($ac_try" in
20374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375   *) ac_try_echo=$ac_try;;
20376 esac
20377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378   (eval "$ac_try") 2>&5
20379   ac_status=$?
20380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381   (exit $ac_status); }; }; then
20382   ac_cv_member_struct_nlist_n_un_n_name=yes
20383 else
20384   echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.$ac_ext >&5
20386
20387         cat >conftest.$ac_ext <<_ACEOF
20388 /* confdefs.h.  */
20389 _ACEOF
20390 cat confdefs.h >>conftest.$ac_ext
20391 cat >>conftest.$ac_ext <<_ACEOF
20392 /* end confdefs.h.  */
20393 #include <nlist.h>
20394
20395 int
20396 main ()
20397 {
20398 static struct nlist ac_aggr;
20399 if (sizeof ac_aggr.n_un.n_name)
20400 return 0;
20401   ;
20402   return 0;
20403 }
20404 _ACEOF
20405 rm -f conftest.$ac_objext
20406 if { (ac_try="$ac_compile"
20407 case "(($ac_try" in
20408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409   *) ac_try_echo=$ac_try;;
20410 esac
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412   (eval "$ac_compile") 2>conftest.er1
20413   ac_status=$?
20414   grep -v '^ *+' conftest.er1 >conftest.err
20415   rm -f conftest.er1
20416   cat conftest.err >&5
20417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418   (exit $ac_status); } &&
20419          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20420   { (case "(($ac_try" in
20421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422   *) ac_try_echo=$ac_try;;
20423 esac
20424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20425   (eval "$ac_try") 2>&5
20426   ac_status=$?
20427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428   (exit $ac_status); }; } &&
20429          { ac_try='test -s conftest.$ac_objext'
20430   { (case "(($ac_try" in
20431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20432   *) ac_try_echo=$ac_try;;
20433 esac
20434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20435   (eval "$ac_try") 2>&5
20436   ac_status=$?
20437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438   (exit $ac_status); }; }; then
20439   ac_cv_member_struct_nlist_n_un_n_name=yes
20440 else
20441   echo "$as_me: failed program was:" >&5
20442 sed 's/^/| /' conftest.$ac_ext >&5
20443
20444         ac_cv_member_struct_nlist_n_un_n_name=no
20445 fi
20446
20447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20448 fi
20449
20450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20451 fi
20452 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20453 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20454 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20455
20456 cat >>confdefs.h <<_ACEOF
20457 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20458 _ACEOF
20459
20460
20461 cat >>confdefs.h <<\_ACEOF
20462 #define NLIST_NAME_UNION 1
20463 _ACEOF
20464
20465 fi
20466
20467
20468 fi
20469
20470 done
20471
20472 fi
20473 done
20474
20475
20476 # Some definitions of getloadavg require that the program be installed setgid.
20477 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
20478 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
20479 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20480   echo $ECHO_N "(cached) $ECHO_C" >&6
20481 else
20482   cat >conftest.$ac_ext <<_ACEOF
20483 /* confdefs.h.  */
20484 _ACEOF
20485 cat confdefs.h >>conftest.$ac_ext
20486 cat >>conftest.$ac_ext <<_ACEOF
20487 /* end confdefs.h.  */
20488 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20489 #ifdef LDAV_PRIVILEGED
20490 Yowza Am I SETGID yet
20491 #endif
20492 _ACEOF
20493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20494   $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20495   ac_cv_func_getloadavg_setgid=yes
20496 else
20497   ac_cv_func_getloadavg_setgid=no
20498 fi
20499 rm -f conftest*
20500
20501 fi
20502 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20503 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
20504 if test $ac_cv_func_getloadavg_setgid = yes; then
20505   NEED_SETGID=true
20506
20507 cat >>confdefs.h <<\_ACEOF
20508 #define GETLOADAVG_PRIVILEGED 1
20509 _ACEOF
20510
20511 else
20512   NEED_SETGID=false
20513 fi
20514
20515 if test $ac_cv_func_getloadavg_setgid = yes; then
20516   { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20517 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
20518 if test "${ac_cv_group_kmem+set}" = set; then
20519   echo $ECHO_N "(cached) $ECHO_C" >&6
20520 else
20521    # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
20522   ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20523   # If we got an error (system does not support symlinks), try without -L.
20524   test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20525   ac_cv_group_kmem=`echo $ac_ls_output \
20526     | sed -ne 's/[       ][      ]*/ /g;
20527                s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
20528                / /s/.* //;p;'`
20529
20530 fi
20531 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20532 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
20533   KMEM_GROUP=$ac_cv_group_kmem
20534 fi
20535 if test "x$ac_save_LIBS" = x; then
20536   GETLOADAVG_LIBS=$LIBS
20537 else
20538   GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
20539 fi
20540 LIBS=$ac_save_LIBS
20541
20542
20543 { echo "$as_me:$LINENO: checking whether getpass is declared" >&5
20544 echo $ECHO_N "checking whether getpass is declared... $ECHO_C" >&6; }
20545 if test "${ac_cv_have_decl_getpass+set}" = set; then
20546   echo $ECHO_N "(cached) $ECHO_C" >&6
20547 else
20548   cat >conftest.$ac_ext <<_ACEOF
20549 /* confdefs.h.  */
20550 _ACEOF
20551 cat confdefs.h >>conftest.$ac_ext
20552 cat >>conftest.$ac_ext <<_ACEOF
20553 /* end confdefs.h.  */
20554 $ac_includes_default
20555 int
20556 main ()
20557 {
20558 #ifndef getpass
20559   char *p = (char *) getpass;
20560   return !p;
20561 #endif
20562
20563   ;
20564   return 0;
20565 }
20566 _ACEOF
20567 rm -f conftest.$ac_objext
20568 if { (ac_try="$ac_compile"
20569 case "(($ac_try" in
20570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571   *) ac_try_echo=$ac_try;;
20572 esac
20573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574   (eval "$ac_compile") 2>conftest.er1
20575   ac_status=$?
20576   grep -v '^ *+' conftest.er1 >conftest.err
20577   rm -f conftest.er1
20578   cat conftest.err >&5
20579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580   (exit $ac_status); } &&
20581          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20582   { (case "(($ac_try" in
20583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584   *) ac_try_echo=$ac_try;;
20585 esac
20586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587   (eval "$ac_try") 2>&5
20588   ac_status=$?
20589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590   (exit $ac_status); }; } &&
20591          { ac_try='test -s conftest.$ac_objext'
20592   { (case "(($ac_try" in
20593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20594   *) ac_try_echo=$ac_try;;
20595 esac
20596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20597   (eval "$ac_try") 2>&5
20598   ac_status=$?
20599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600   (exit $ac_status); }; }; then
20601   ac_cv_have_decl_getpass=yes
20602 else
20603   echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20605
20606         ac_cv_have_decl_getpass=no
20607 fi
20608
20609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20610 fi
20611 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpass" >&5
20612 echo "${ECHO_T}$ac_cv_have_decl_getpass" >&6; }
20613 if test $ac_cv_have_decl_getpass = yes; then
20614
20615 cat >>confdefs.h <<_ACEOF
20616 #define HAVE_DECL_GETPASS 1
20617 _ACEOF
20618
20619
20620 else
20621   cat >>confdefs.h <<_ACEOF
20622 #define HAVE_DECL_GETPASS 0
20623 _ACEOF
20624
20625
20626 fi
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637 { echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
20638 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6; }
20639 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
20640   echo $ECHO_N "(cached) $ECHO_C" >&6
20641 else
20642   cat >conftest.$ac_ext <<_ACEOF
20643 /* confdefs.h.  */
20644 _ACEOF
20645 cat confdefs.h >>conftest.$ac_ext
20646 cat >>conftest.$ac_ext <<_ACEOF
20647 /* end confdefs.h.  */
20648 $ac_includes_default
20649 int
20650 main ()
20651 {
20652 #ifndef fflush_unlocked
20653   char *p = (char *) fflush_unlocked;
20654   return !p;
20655 #endif
20656
20657   ;
20658   return 0;
20659 }
20660 _ACEOF
20661 rm -f conftest.$ac_objext
20662 if { (ac_try="$ac_compile"
20663 case "(($ac_try" in
20664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665   *) ac_try_echo=$ac_try;;
20666 esac
20667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668   (eval "$ac_compile") 2>conftest.er1
20669   ac_status=$?
20670   grep -v '^ *+' conftest.er1 >conftest.err
20671   rm -f conftest.er1
20672   cat conftest.err >&5
20673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674   (exit $ac_status); } &&
20675          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20676   { (case "(($ac_try" in
20677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20678   *) ac_try_echo=$ac_try;;
20679 esac
20680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20681   (eval "$ac_try") 2>&5
20682   ac_status=$?
20683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684   (exit $ac_status); }; } &&
20685          { ac_try='test -s conftest.$ac_objext'
20686   { (case "(($ac_try" in
20687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20688   *) ac_try_echo=$ac_try;;
20689 esac
20690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20691   (eval "$ac_try") 2>&5
20692   ac_status=$?
20693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694   (exit $ac_status); }; }; then
20695   ac_cv_have_decl_fflush_unlocked=yes
20696 else
20697   echo "$as_me: failed program was:" >&5
20698 sed 's/^/| /' conftest.$ac_ext >&5
20699
20700         ac_cv_have_decl_fflush_unlocked=no
20701 fi
20702
20703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20704 fi
20705 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
20706 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6; }
20707 if test $ac_cv_have_decl_fflush_unlocked = yes; then
20708
20709 cat >>confdefs.h <<_ACEOF
20710 #define HAVE_DECL_FFLUSH_UNLOCKED 1
20711 _ACEOF
20712
20713
20714 else
20715   cat >>confdefs.h <<_ACEOF
20716 #define HAVE_DECL_FFLUSH_UNLOCKED 0
20717 _ACEOF
20718
20719
20720 fi
20721
20722
20723 { echo "$as_me:$LINENO: checking whether flockfile is declared" >&5
20724 echo $ECHO_N "checking whether flockfile is declared... $ECHO_C" >&6; }
20725 if test "${ac_cv_have_decl_flockfile+set}" = set; then
20726   echo $ECHO_N "(cached) $ECHO_C" >&6
20727 else
20728   cat >conftest.$ac_ext <<_ACEOF
20729 /* confdefs.h.  */
20730 _ACEOF
20731 cat confdefs.h >>conftest.$ac_ext
20732 cat >>conftest.$ac_ext <<_ACEOF
20733 /* end confdefs.h.  */
20734 $ac_includes_default
20735 int
20736 main ()
20737 {
20738 #ifndef flockfile
20739   char *p = (char *) flockfile;
20740   return !p;
20741 #endif
20742
20743   ;
20744   return 0;
20745 }
20746 _ACEOF
20747 rm -f conftest.$ac_objext
20748 if { (ac_try="$ac_compile"
20749 case "(($ac_try" in
20750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20751   *) ac_try_echo=$ac_try;;
20752 esac
20753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20754   (eval "$ac_compile") 2>conftest.er1
20755   ac_status=$?
20756   grep -v '^ *+' conftest.er1 >conftest.err
20757   rm -f conftest.er1
20758   cat conftest.err >&5
20759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760   (exit $ac_status); } &&
20761          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20762   { (case "(($ac_try" in
20763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764   *) ac_try_echo=$ac_try;;
20765 esac
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767   (eval "$ac_try") 2>&5
20768   ac_status=$?
20769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770   (exit $ac_status); }; } &&
20771          { ac_try='test -s conftest.$ac_objext'
20772   { (case "(($ac_try" in
20773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20774   *) ac_try_echo=$ac_try;;
20775 esac
20776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20777   (eval "$ac_try") 2>&5
20778   ac_status=$?
20779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780   (exit $ac_status); }; }; then
20781   ac_cv_have_decl_flockfile=yes
20782 else
20783   echo "$as_me: failed program was:" >&5
20784 sed 's/^/| /' conftest.$ac_ext >&5
20785
20786         ac_cv_have_decl_flockfile=no
20787 fi
20788
20789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20790 fi
20791 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_flockfile" >&5
20792 echo "${ECHO_T}$ac_cv_have_decl_flockfile" >&6; }
20793 if test $ac_cv_have_decl_flockfile = yes; then
20794
20795 cat >>confdefs.h <<_ACEOF
20796 #define HAVE_DECL_FLOCKFILE 1
20797 _ACEOF
20798
20799
20800 else
20801   cat >>confdefs.h <<_ACEOF
20802 #define HAVE_DECL_FLOCKFILE 0
20803 _ACEOF
20804
20805
20806 fi
20807
20808
20809 { echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
20810 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6; }
20811 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
20812   echo $ECHO_N "(cached) $ECHO_C" >&6
20813 else
20814   cat >conftest.$ac_ext <<_ACEOF
20815 /* confdefs.h.  */
20816 _ACEOF
20817 cat confdefs.h >>conftest.$ac_ext
20818 cat >>conftest.$ac_ext <<_ACEOF
20819 /* end confdefs.h.  */
20820 $ac_includes_default
20821 int
20822 main ()
20823 {
20824 #ifndef fputs_unlocked
20825   char *p = (char *) fputs_unlocked;
20826   return !p;
20827 #endif
20828
20829   ;
20830   return 0;
20831 }
20832 _ACEOF
20833 rm -f conftest.$ac_objext
20834 if { (ac_try="$ac_compile"
20835 case "(($ac_try" in
20836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20837   *) ac_try_echo=$ac_try;;
20838 esac
20839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20840   (eval "$ac_compile") 2>conftest.er1
20841   ac_status=$?
20842   grep -v '^ *+' conftest.er1 >conftest.err
20843   rm -f conftest.er1
20844   cat conftest.err >&5
20845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846   (exit $ac_status); } &&
20847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20848   { (case "(($ac_try" in
20849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850   *) ac_try_echo=$ac_try;;
20851 esac
20852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853   (eval "$ac_try") 2>&5
20854   ac_status=$?
20855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856   (exit $ac_status); }; } &&
20857          { ac_try='test -s conftest.$ac_objext'
20858   { (case "(($ac_try" in
20859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860   *) ac_try_echo=$ac_try;;
20861 esac
20862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20863   (eval "$ac_try") 2>&5
20864   ac_status=$?
20865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866   (exit $ac_status); }; }; then
20867   ac_cv_have_decl_fputs_unlocked=yes
20868 else
20869   echo "$as_me: failed program was:" >&5
20870 sed 's/^/| /' conftest.$ac_ext >&5
20871
20872         ac_cv_have_decl_fputs_unlocked=no
20873 fi
20874
20875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20876 fi
20877 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
20878 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6; }
20879 if test $ac_cv_have_decl_fputs_unlocked = yes; then
20880
20881 cat >>confdefs.h <<_ACEOF
20882 #define HAVE_DECL_FPUTS_UNLOCKED 1
20883 _ACEOF
20884
20885
20886 else
20887   cat >>confdefs.h <<_ACEOF
20888 #define HAVE_DECL_FPUTS_UNLOCKED 0
20889 _ACEOF
20890
20891
20892 fi
20893
20894
20895 { echo "$as_me:$LINENO: checking whether funlockfile is declared" >&5
20896 echo $ECHO_N "checking whether funlockfile is declared... $ECHO_C" >&6; }
20897 if test "${ac_cv_have_decl_funlockfile+set}" = set; then
20898   echo $ECHO_N "(cached) $ECHO_C" >&6
20899 else
20900   cat >conftest.$ac_ext <<_ACEOF
20901 /* confdefs.h.  */
20902 _ACEOF
20903 cat confdefs.h >>conftest.$ac_ext
20904 cat >>conftest.$ac_ext <<_ACEOF
20905 /* end confdefs.h.  */
20906 $ac_includes_default
20907 int
20908 main ()
20909 {
20910 #ifndef funlockfile
20911   char *p = (char *) funlockfile;
20912   return !p;
20913 #endif
20914
20915   ;
20916   return 0;
20917 }
20918 _ACEOF
20919 rm -f conftest.$ac_objext
20920 if { (ac_try="$ac_compile"
20921 case "(($ac_try" in
20922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20923   *) ac_try_echo=$ac_try;;
20924 esac
20925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20926   (eval "$ac_compile") 2>conftest.er1
20927   ac_status=$?
20928   grep -v '^ *+' conftest.er1 >conftest.err
20929   rm -f conftest.er1
20930   cat conftest.err >&5
20931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932   (exit $ac_status); } &&
20933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20934   { (case "(($ac_try" in
20935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936   *) ac_try_echo=$ac_try;;
20937 esac
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939   (eval "$ac_try") 2>&5
20940   ac_status=$?
20941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942   (exit $ac_status); }; } &&
20943          { ac_try='test -s conftest.$ac_objext'
20944   { (case "(($ac_try" in
20945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946   *) ac_try_echo=$ac_try;;
20947 esac
20948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20949   (eval "$ac_try") 2>&5
20950   ac_status=$?
20951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952   (exit $ac_status); }; }; then
20953   ac_cv_have_decl_funlockfile=yes
20954 else
20955   echo "$as_me: failed program was:" >&5
20956 sed 's/^/| /' conftest.$ac_ext >&5
20957
20958         ac_cv_have_decl_funlockfile=no
20959 fi
20960
20961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20962 fi
20963 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_funlockfile" >&5
20964 echo "${ECHO_T}$ac_cv_have_decl_funlockfile" >&6; }
20965 if test $ac_cv_have_decl_funlockfile = yes; then
20966
20967 cat >>confdefs.h <<_ACEOF
20968 #define HAVE_DECL_FUNLOCKFILE 1
20969 _ACEOF
20970
20971
20972 else
20973   cat >>confdefs.h <<_ACEOF
20974 #define HAVE_DECL_FUNLOCKFILE 0
20975 _ACEOF
20976
20977
20978 fi
20979
20980
20981 { echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
20982 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6; }
20983 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
20984   echo $ECHO_N "(cached) $ECHO_C" >&6
20985 else
20986   cat >conftest.$ac_ext <<_ACEOF
20987 /* confdefs.h.  */
20988 _ACEOF
20989 cat confdefs.h >>conftest.$ac_ext
20990 cat >>conftest.$ac_ext <<_ACEOF
20991 /* end confdefs.h.  */
20992 $ac_includes_default
20993 int
20994 main ()
20995 {
20996 #ifndef putc_unlocked
20997   char *p = (char *) putc_unlocked;
20998   return !p;
20999 #endif
21000
21001   ;
21002   return 0;
21003 }
21004 _ACEOF
21005 rm -f conftest.$ac_objext
21006 if { (ac_try="$ac_compile"
21007 case "(($ac_try" in
21008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009   *) ac_try_echo=$ac_try;;
21010 esac
21011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21012   (eval "$ac_compile") 2>conftest.er1
21013   ac_status=$?
21014   grep -v '^ *+' conftest.er1 >conftest.err
21015   rm -f conftest.er1
21016   cat conftest.err >&5
21017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018   (exit $ac_status); } &&
21019          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21020   { (case "(($ac_try" in
21021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022   *) ac_try_echo=$ac_try;;
21023 esac
21024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025   (eval "$ac_try") 2>&5
21026   ac_status=$?
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); }; } &&
21029          { ac_try='test -s conftest.$ac_objext'
21030   { (case "(($ac_try" in
21031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032   *) ac_try_echo=$ac_try;;
21033 esac
21034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035   (eval "$ac_try") 2>&5
21036   ac_status=$?
21037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038   (exit $ac_status); }; }; then
21039   ac_cv_have_decl_putc_unlocked=yes
21040 else
21041   echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21043
21044         ac_cv_have_decl_putc_unlocked=no
21045 fi
21046
21047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21048 fi
21049 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
21050 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6; }
21051 if test $ac_cv_have_decl_putc_unlocked = yes; then
21052
21053 cat >>confdefs.h <<_ACEOF
21054 #define HAVE_DECL_PUTC_UNLOCKED 1
21055 _ACEOF
21056
21057
21058 else
21059   cat >>confdefs.h <<_ACEOF
21060 #define HAVE_DECL_PUTC_UNLOCKED 0
21061 _ACEOF
21062
21063
21064 fi
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074     case " $LIBOBJS " in
21075   *" getpass.$ac_objext "* ) ;;
21076   *) LIBOBJS="$LIBOBJS getpass.$ac_objext"
21077  ;;
21078 esac
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119   :
21120
21121
21122 cat >>confdefs.h <<\_ACEOF
21123 #define getpass gnu_getpass
21124 _ACEOF
21125
21126
21127
21128
21129 for ac_func in getusershell
21130 do
21131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21132 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21135   echo $ECHO_N "(cached) $ECHO_C" >&6
21136 else
21137   cat >conftest.$ac_ext <<_ACEOF
21138 /* confdefs.h.  */
21139 _ACEOF
21140 cat confdefs.h >>conftest.$ac_ext
21141 cat >>conftest.$ac_ext <<_ACEOF
21142 /* end confdefs.h.  */
21143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21144    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21145 #define $ac_func innocuous_$ac_func
21146
21147 /* System header to define __stub macros and hopefully few prototypes,
21148     which can conflict with char $ac_func (); below.
21149     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21150     <limits.h> exists even on freestanding compilers.  */
21151
21152 #ifdef __STDC__
21153 # include <limits.h>
21154 #else
21155 # include <assert.h>
21156 #endif
21157
21158 #undef $ac_func
21159
21160 /* Override any GCC internal prototype to avoid an error.
21161    Use char because int might match the return type of a GCC
21162    builtin and then its argument prototype would still apply.  */
21163 #ifdef __cplusplus
21164 extern "C"
21165 #endif
21166 char $ac_func ();
21167 /* The GNU C library defines this for functions which it implements
21168     to always fail with ENOSYS.  Some functions are actually named
21169     something starting with __ and the normal name is an alias.  */
21170 #if defined __stub_$ac_func || defined __stub___$ac_func
21171 choke me
21172 #endif
21173
21174 int
21175 main ()
21176 {
21177 return $ac_func ();
21178   ;
21179   return 0;
21180 }
21181 _ACEOF
21182 rm -f conftest.$ac_objext conftest$ac_exeext
21183 if { (ac_try="$ac_link"
21184 case "(($ac_try" in
21185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21186   *) ac_try_echo=$ac_try;;
21187 esac
21188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21189   (eval "$ac_link") 2>conftest.er1
21190   ac_status=$?
21191   grep -v '^ *+' conftest.er1 >conftest.err
21192   rm -f conftest.er1
21193   cat conftest.err >&5
21194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195   (exit $ac_status); } &&
21196          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21197   { (case "(($ac_try" in
21198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21199   *) ac_try_echo=$ac_try;;
21200 esac
21201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21202   (eval "$ac_try") 2>&5
21203   ac_status=$?
21204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205   (exit $ac_status); }; } &&
21206          { ac_try='test -s conftest$ac_exeext'
21207   { (case "(($ac_try" in
21208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21209   *) ac_try_echo=$ac_try;;
21210 esac
21211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21212   (eval "$ac_try") 2>&5
21213   ac_status=$?
21214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215   (exit $ac_status); }; }; then
21216   eval "$as_ac_var=yes"
21217 else
21218   echo "$as_me: failed program was:" >&5
21219 sed 's/^/| /' conftest.$ac_ext >&5
21220
21221         eval "$as_ac_var=no"
21222 fi
21223
21224 rm -f core conftest.err conftest.$ac_objext \
21225       conftest$ac_exeext conftest.$ac_ext
21226 fi
21227 ac_res=`eval echo '${'$as_ac_var'}'`
21228                { echo "$as_me:$LINENO: result: $ac_res" >&5
21229 echo "${ECHO_T}$ac_res" >&6; }
21230 if test `eval echo '${'$as_ac_var'}'` = yes; then
21231   cat >>confdefs.h <<_ACEOF
21232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21233 _ACEOF
21234
21235 else
21236   case " $LIBOBJS " in
21237   *" $ac_func.$ac_objext "* ) ;;
21238   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21239  ;;
21240 esac
21241
21242 fi
21243 done
21244
21245
21246
21247 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
21248 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
21249 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
21250   echo $ECHO_N "(cached) $ECHO_C" >&6
21251 else
21252   rm -f conftest.sym conftest.file
21253 echo >conftest.file
21254 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
21255   if test "$cross_compiling" = yes; then
21256   ac_cv_func_lstat_dereferences_slashed_symlink=no
21257 else
21258   cat >conftest.$ac_ext <<_ACEOF
21259 /* confdefs.h.  */
21260 _ACEOF
21261 cat confdefs.h >>conftest.$ac_ext
21262 cat >>conftest.$ac_ext <<_ACEOF
21263 /* end confdefs.h.  */
21264 $ac_includes_default
21265 int
21266 main ()
21267 {
21268 struct stat sbuf;
21269      /* Linux will dereference the symlink and fail.
21270         That is better in the sense that it means we will not
21271         have to compile and use the lstat wrapper.  */
21272      return lstat ("conftest.sym/", &sbuf) == 0;
21273   ;
21274   return 0;
21275 }
21276 _ACEOF
21277 rm -f conftest$ac_exeext
21278 if { (ac_try="$ac_link"
21279 case "(($ac_try" in
21280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281   *) ac_try_echo=$ac_try;;
21282 esac
21283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21284   (eval "$ac_link") 2>&5
21285   ac_status=$?
21286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21288   { (case "(($ac_try" in
21289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21290   *) ac_try_echo=$ac_try;;
21291 esac
21292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21293   (eval "$ac_try") 2>&5
21294   ac_status=$?
21295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296   (exit $ac_status); }; }; then
21297   ac_cv_func_lstat_dereferences_slashed_symlink=yes
21298 else
21299   echo "$as_me: program exited with status $ac_status" >&5
21300 echo "$as_me: failed program was:" >&5
21301 sed 's/^/| /' conftest.$ac_ext >&5
21302
21303 ( exit $ac_status )
21304 ac_cv_func_lstat_dereferences_slashed_symlink=no
21305 fi
21306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21307 fi
21308
21309
21310 else
21311   # If the `ln -s' command failed, then we probably don't even
21312   # have an lstat function.
21313   ac_cv_func_lstat_dereferences_slashed_symlink=no
21314 fi
21315 rm -f conftest.sym conftest.file
21316
21317 fi
21318 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
21319 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
21320
21321 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
21322
21323 cat >>confdefs.h <<_ACEOF
21324 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
21325 _ACEOF
21326
21327
21328 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
21329   case " $LIBOBJS " in
21330   *" lstat.$ac_objext "* ) ;;
21331   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
21332  ;;
21333 esac
21334
21335 fi
21336
21337
21338
21339
21340
21341     :
21342
21343
21344
21345 for ac_func in memchr
21346 do
21347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21348 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21350 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21351   echo $ECHO_N "(cached) $ECHO_C" >&6
21352 else
21353   cat >conftest.$ac_ext <<_ACEOF
21354 /* confdefs.h.  */
21355 _ACEOF
21356 cat confdefs.h >>conftest.$ac_ext
21357 cat >>conftest.$ac_ext <<_ACEOF
21358 /* end confdefs.h.  */
21359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21360    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21361 #define $ac_func innocuous_$ac_func
21362
21363 /* System header to define __stub macros and hopefully few prototypes,
21364     which can conflict with char $ac_func (); below.
21365     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21366     <limits.h> exists even on freestanding compilers.  */
21367
21368 #ifdef __STDC__
21369 # include <limits.h>
21370 #else
21371 # include <assert.h>
21372 #endif
21373
21374 #undef $ac_func
21375
21376 /* Override any GCC internal prototype to avoid an error.
21377    Use char because int might match the return type of a GCC
21378    builtin and then its argument prototype would still apply.  */
21379 #ifdef __cplusplus
21380 extern "C"
21381 #endif
21382 char $ac_func ();
21383 /* The GNU C library defines this for functions which it implements
21384     to always fail with ENOSYS.  Some functions are actually named
21385     something starting with __ and the normal name is an alias.  */
21386 #if defined __stub_$ac_func || defined __stub___$ac_func
21387 choke me
21388 #endif
21389
21390 int
21391 main ()
21392 {
21393 return $ac_func ();
21394   ;
21395   return 0;
21396 }
21397 _ACEOF
21398 rm -f conftest.$ac_objext conftest$ac_exeext
21399 if { (ac_try="$ac_link"
21400 case "(($ac_try" in
21401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21402   *) ac_try_echo=$ac_try;;
21403 esac
21404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21405   (eval "$ac_link") 2>conftest.er1
21406   ac_status=$?
21407   grep -v '^ *+' conftest.er1 >conftest.err
21408   rm -f conftest.er1
21409   cat conftest.err >&5
21410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411   (exit $ac_status); } &&
21412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21413   { (case "(($ac_try" in
21414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21415   *) ac_try_echo=$ac_try;;
21416 esac
21417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21418   (eval "$ac_try") 2>&5
21419   ac_status=$?
21420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421   (exit $ac_status); }; } &&
21422          { ac_try='test -s conftest$ac_exeext'
21423   { (case "(($ac_try" in
21424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425   *) ac_try_echo=$ac_try;;
21426 esac
21427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21428   (eval "$ac_try") 2>&5
21429   ac_status=$?
21430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431   (exit $ac_status); }; }; then
21432   eval "$as_ac_var=yes"
21433 else
21434   echo "$as_me: failed program was:" >&5
21435 sed 's/^/| /' conftest.$ac_ext >&5
21436
21437         eval "$as_ac_var=no"
21438 fi
21439
21440 rm -f core conftest.err conftest.$ac_objext \
21441       conftest$ac_exeext conftest.$ac_ext
21442 fi
21443 ac_res=`eval echo '${'$as_ac_var'}'`
21444                { echo "$as_me:$LINENO: result: $ac_res" >&5
21445 echo "${ECHO_T}$ac_res" >&6; }
21446 if test `eval echo '${'$as_ac_var'}'` = yes; then
21447   cat >>confdefs.h <<_ACEOF
21448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21449 _ACEOF
21450
21451 else
21452   case " $LIBOBJS " in
21453   *" $ac_func.$ac_objext "* ) ;;
21454   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21455  ;;
21456 esac
21457
21458 fi
21459 done
21460
21461
21462   if test $ac_cv_func_memchr = no; then
21463
21464
21465 for ac_header in bp-sym.h
21466 do
21467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21469   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21472   echo $ECHO_N "(cached) $ECHO_C" >&6
21473 fi
21474 ac_res=`eval echo '${'$as_ac_Header'}'`
21475                { echo "$as_me:$LINENO: result: $ac_res" >&5
21476 echo "${ECHO_T}$ac_res" >&6; }
21477 else
21478   # Is the header compilable?
21479 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21480 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21481 cat >conftest.$ac_ext <<_ACEOF
21482 /* confdefs.h.  */
21483 _ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h.  */
21487 $ac_includes_default
21488 #include <$ac_header>
21489 _ACEOF
21490 rm -f conftest.$ac_objext
21491 if { (ac_try="$ac_compile"
21492 case "(($ac_try" in
21493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21494   *) ac_try_echo=$ac_try;;
21495 esac
21496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21497   (eval "$ac_compile") 2>conftest.er1
21498   ac_status=$?
21499   grep -v '^ *+' conftest.er1 >conftest.err
21500   rm -f conftest.er1
21501   cat conftest.err >&5
21502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503   (exit $ac_status); } &&
21504          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21505   { (case "(($ac_try" in
21506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21507   *) ac_try_echo=$ac_try;;
21508 esac
21509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21510   (eval "$ac_try") 2>&5
21511   ac_status=$?
21512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513   (exit $ac_status); }; } &&
21514          { ac_try='test -s conftest.$ac_objext'
21515   { (case "(($ac_try" in
21516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21517   *) ac_try_echo=$ac_try;;
21518 esac
21519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21520   (eval "$ac_try") 2>&5
21521   ac_status=$?
21522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523   (exit $ac_status); }; }; then
21524   ac_header_compiler=yes
21525 else
21526   echo "$as_me: failed program was:" >&5
21527 sed 's/^/| /' conftest.$ac_ext >&5
21528
21529         ac_header_compiler=no
21530 fi
21531
21532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21534 echo "${ECHO_T}$ac_header_compiler" >&6; }
21535
21536 # Is the header present?
21537 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21539 cat >conftest.$ac_ext <<_ACEOF
21540 /* confdefs.h.  */
21541 _ACEOF
21542 cat confdefs.h >>conftest.$ac_ext
21543 cat >>conftest.$ac_ext <<_ACEOF
21544 /* end confdefs.h.  */
21545 #include <$ac_header>
21546 _ACEOF
21547 if { (ac_try="$ac_cpp conftest.$ac_ext"
21548 case "(($ac_try" in
21549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21550   *) ac_try_echo=$ac_try;;
21551 esac
21552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21553   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21554   ac_status=$?
21555   grep -v '^ *+' conftest.er1 >conftest.err
21556   rm -f conftest.er1
21557   cat conftest.err >&5
21558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559   (exit $ac_status); } >/dev/null; then
21560   if test -s conftest.err; then
21561     ac_cpp_err=$ac_c_preproc_warn_flag
21562     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21563   else
21564     ac_cpp_err=
21565   fi
21566 else
21567   ac_cpp_err=yes
21568 fi
21569 if test -z "$ac_cpp_err"; then
21570   ac_header_preproc=yes
21571 else
21572   echo "$as_me: failed program was:" >&5
21573 sed 's/^/| /' conftest.$ac_ext >&5
21574
21575   ac_header_preproc=no
21576 fi
21577
21578 rm -f conftest.err conftest.$ac_ext
21579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21580 echo "${ECHO_T}$ac_header_preproc" >&6; }
21581
21582 # So?  What about this header?
21583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21584   yes:no: )
21585     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21589     ac_header_preproc=yes
21590     ;;
21591   no:yes:* )
21592     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21594     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21595 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21596     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21598     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21599 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21602     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21604     ( cat <<\_ASBOX
21605 ## ------------------------------------ ##
21606 ## Report this to bug-coreutils@gnu.org ##
21607 ## ------------------------------------ ##
21608 _ASBOX
21609      ) | sed "s/^/$as_me: WARNING:     /" >&2
21610     ;;
21611 esac
21612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21615   echo $ECHO_N "(cached) $ECHO_C" >&6
21616 else
21617   eval "$as_ac_Header=\$ac_header_preproc"
21618 fi
21619 ac_res=`eval echo '${'$as_ac_Header'}'`
21620                { echo "$as_me:$LINENO: result: $ac_res" >&5
21621 echo "${ECHO_T}$ac_res" >&6; }
21622
21623 fi
21624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21625   cat >>confdefs.h <<_ACEOF
21626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21627 _ACEOF
21628
21629 fi
21630
21631 done
21632
21633
21634   fi
21635
21636
21637
21638 for ac_func in memcpy
21639 do
21640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21641 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21643 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21644   echo $ECHO_N "(cached) $ECHO_C" >&6
21645 else
21646   cat >conftest.$ac_ext <<_ACEOF
21647 /* confdefs.h.  */
21648 _ACEOF
21649 cat confdefs.h >>conftest.$ac_ext
21650 cat >>conftest.$ac_ext <<_ACEOF
21651 /* end confdefs.h.  */
21652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21653    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21654 #define $ac_func innocuous_$ac_func
21655
21656 /* System header to define __stub macros and hopefully few prototypes,
21657     which can conflict with char $ac_func (); below.
21658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21659     <limits.h> exists even on freestanding compilers.  */
21660
21661 #ifdef __STDC__
21662 # include <limits.h>
21663 #else
21664 # include <assert.h>
21665 #endif
21666
21667 #undef $ac_func
21668
21669 /* Override any GCC internal prototype to avoid an error.
21670    Use char because int might match the return type of a GCC
21671    builtin and then its argument prototype would still apply.  */
21672 #ifdef __cplusplus
21673 extern "C"
21674 #endif
21675 char $ac_func ();
21676 /* The GNU C library defines this for functions which it implements
21677     to always fail with ENOSYS.  Some functions are actually named
21678     something starting with __ and the normal name is an alias.  */
21679 #if defined __stub_$ac_func || defined __stub___$ac_func
21680 choke me
21681 #endif
21682
21683 int
21684 main ()
21685 {
21686 return $ac_func ();
21687   ;
21688   return 0;
21689 }
21690 _ACEOF
21691 rm -f conftest.$ac_objext conftest$ac_exeext
21692 if { (ac_try="$ac_link"
21693 case "(($ac_try" in
21694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695   *) ac_try_echo=$ac_try;;
21696 esac
21697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21698   (eval "$ac_link") 2>conftest.er1
21699   ac_status=$?
21700   grep -v '^ *+' conftest.er1 >conftest.err
21701   rm -f conftest.er1
21702   cat conftest.err >&5
21703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704   (exit $ac_status); } &&
21705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21706   { (case "(($ac_try" in
21707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21708   *) ac_try_echo=$ac_try;;
21709 esac
21710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21711   (eval "$ac_try") 2>&5
21712   ac_status=$?
21713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714   (exit $ac_status); }; } &&
21715          { ac_try='test -s conftest$ac_exeext'
21716   { (case "(($ac_try" in
21717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21718   *) ac_try_echo=$ac_try;;
21719 esac
21720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21721   (eval "$ac_try") 2>&5
21722   ac_status=$?
21723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724   (exit $ac_status); }; }; then
21725   eval "$as_ac_var=yes"
21726 else
21727   echo "$as_me: failed program was:" >&5
21728 sed 's/^/| /' conftest.$ac_ext >&5
21729
21730         eval "$as_ac_var=no"
21731 fi
21732
21733 rm -f core conftest.err conftest.$ac_objext \
21734       conftest$ac_exeext conftest.$ac_ext
21735 fi
21736 ac_res=`eval echo '${'$as_ac_var'}'`
21737                { echo "$as_me:$LINENO: result: $ac_res" >&5
21738 echo "${ECHO_T}$ac_res" >&6; }
21739 if test `eval echo '${'$as_ac_var'}'` = yes; then
21740   cat >>confdefs.h <<_ACEOF
21741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21742 _ACEOF
21743
21744 else
21745   case " $LIBOBJS " in
21746   *" $ac_func.$ac_objext "* ) ;;
21747   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21748  ;;
21749 esac
21750
21751 fi
21752 done
21753
21754
21755   if test $ac_cv_func_memcpy = no; then
21756
21757   :
21758
21759   fi
21760
21761
21762
21763 for ac_func in memmove
21764 do
21765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21766 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21769   echo $ECHO_N "(cached) $ECHO_C" >&6
21770 else
21771   cat >conftest.$ac_ext <<_ACEOF
21772 /* confdefs.h.  */
21773 _ACEOF
21774 cat confdefs.h >>conftest.$ac_ext
21775 cat >>conftest.$ac_ext <<_ACEOF
21776 /* end confdefs.h.  */
21777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21778    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21779 #define $ac_func innocuous_$ac_func
21780
21781 /* System header to define __stub macros and hopefully few prototypes,
21782     which can conflict with char $ac_func (); below.
21783     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21784     <limits.h> exists even on freestanding compilers.  */
21785
21786 #ifdef __STDC__
21787 # include <limits.h>
21788 #else
21789 # include <assert.h>
21790 #endif
21791
21792 #undef $ac_func
21793
21794 /* Override any GCC internal prototype to avoid an error.
21795    Use char because int might match the return type of a GCC
21796    builtin and then its argument prototype would still apply.  */
21797 #ifdef __cplusplus
21798 extern "C"
21799 #endif
21800 char $ac_func ();
21801 /* The GNU C library defines this for functions which it implements
21802     to always fail with ENOSYS.  Some functions are actually named
21803     something starting with __ and the normal name is an alias.  */
21804 #if defined __stub_$ac_func || defined __stub___$ac_func
21805 choke me
21806 #endif
21807
21808 int
21809 main ()
21810 {
21811 return $ac_func ();
21812   ;
21813   return 0;
21814 }
21815 _ACEOF
21816 rm -f conftest.$ac_objext conftest$ac_exeext
21817 if { (ac_try="$ac_link"
21818 case "(($ac_try" in
21819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21820   *) ac_try_echo=$ac_try;;
21821 esac
21822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21823   (eval "$ac_link") 2>conftest.er1
21824   ac_status=$?
21825   grep -v '^ *+' conftest.er1 >conftest.err
21826   rm -f conftest.er1
21827   cat conftest.err >&5
21828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829   (exit $ac_status); } &&
21830          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21831   { (case "(($ac_try" in
21832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21833   *) ac_try_echo=$ac_try;;
21834 esac
21835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21836   (eval "$ac_try") 2>&5
21837   ac_status=$?
21838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839   (exit $ac_status); }; } &&
21840          { ac_try='test -s conftest$ac_exeext'
21841   { (case "(($ac_try" in
21842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21843   *) ac_try_echo=$ac_try;;
21844 esac
21845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21846   (eval "$ac_try") 2>&5
21847   ac_status=$?
21848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849   (exit $ac_status); }; }; then
21850   eval "$as_ac_var=yes"
21851 else
21852   echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21854
21855         eval "$as_ac_var=no"
21856 fi
21857
21858 rm -f core conftest.err conftest.$ac_objext \
21859       conftest$ac_exeext conftest.$ac_ext
21860 fi
21861 ac_res=`eval echo '${'$as_ac_var'}'`
21862                { echo "$as_me:$LINENO: result: $ac_res" >&5
21863 echo "${ECHO_T}$ac_res" >&6; }
21864 if test `eval echo '${'$as_ac_var'}'` = yes; then
21865   cat >>confdefs.h <<_ACEOF
21866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21867 _ACEOF
21868
21869 else
21870   case " $LIBOBJS " in
21871   *" $ac_func.$ac_objext "* ) ;;
21872   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21873  ;;
21874 esac
21875
21876 fi
21877 done
21878
21879
21880   if test $ac_cv_func_memmove = no; then
21881
21882   :
21883
21884   fi
21885
21886
21887
21888
21889
21890
21891
21892 for ac_func in mempcpy
21893 do
21894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21898   echo $ECHO_N "(cached) $ECHO_C" >&6
21899 else
21900   cat >conftest.$ac_ext <<_ACEOF
21901 /* confdefs.h.  */
21902 _ACEOF
21903 cat confdefs.h >>conftest.$ac_ext
21904 cat >>conftest.$ac_ext <<_ACEOF
21905 /* end confdefs.h.  */
21906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21908 #define $ac_func innocuous_$ac_func
21909
21910 /* System header to define __stub macros and hopefully few prototypes,
21911     which can conflict with char $ac_func (); below.
21912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21913     <limits.h> exists even on freestanding compilers.  */
21914
21915 #ifdef __STDC__
21916 # include <limits.h>
21917 #else
21918 # include <assert.h>
21919 #endif
21920
21921 #undef $ac_func
21922
21923 /* Override any GCC internal prototype to avoid an error.
21924    Use char because int might match the return type of a GCC
21925    builtin and then its argument prototype would still apply.  */
21926 #ifdef __cplusplus
21927 extern "C"
21928 #endif
21929 char $ac_func ();
21930 /* The GNU C library defines this for functions which it implements
21931     to always fail with ENOSYS.  Some functions are actually named
21932     something starting with __ and the normal name is an alias.  */
21933 #if defined __stub_$ac_func || defined __stub___$ac_func
21934 choke me
21935 #endif
21936
21937 int
21938 main ()
21939 {
21940 return $ac_func ();
21941   ;
21942   return 0;
21943 }
21944 _ACEOF
21945 rm -f conftest.$ac_objext conftest$ac_exeext
21946 if { (ac_try="$ac_link"
21947 case "(($ac_try" in
21948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21949   *) ac_try_echo=$ac_try;;
21950 esac
21951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21952   (eval "$ac_link") 2>conftest.er1
21953   ac_status=$?
21954   grep -v '^ *+' conftest.er1 >conftest.err
21955   rm -f conftest.er1
21956   cat conftest.err >&5
21957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958   (exit $ac_status); } &&
21959          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21960   { (case "(($ac_try" in
21961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21962   *) ac_try_echo=$ac_try;;
21963 esac
21964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21965   (eval "$ac_try") 2>&5
21966   ac_status=$?
21967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968   (exit $ac_status); }; } &&
21969          { ac_try='test -s conftest$ac_exeext'
21970   { (case "(($ac_try" in
21971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21972   *) ac_try_echo=$ac_try;;
21973 esac
21974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21975   (eval "$ac_try") 2>&5
21976   ac_status=$?
21977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978   (exit $ac_status); }; }; then
21979   eval "$as_ac_var=yes"
21980 else
21981   echo "$as_me: failed program was:" >&5
21982 sed 's/^/| /' conftest.$ac_ext >&5
21983
21984         eval "$as_ac_var=no"
21985 fi
21986
21987 rm -f core conftest.err conftest.$ac_objext \
21988       conftest$ac_exeext conftest.$ac_ext
21989 fi
21990 ac_res=`eval echo '${'$as_ac_var'}'`
21991                { echo "$as_me:$LINENO: result: $ac_res" >&5
21992 echo "${ECHO_T}$ac_res" >&6; }
21993 if test `eval echo '${'$as_ac_var'}'` = yes; then
21994   cat >>confdefs.h <<_ACEOF
21995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21996 _ACEOF
21997
21998 else
21999   case " $LIBOBJS " in
22000   *" $ac_func.$ac_objext "* ) ;;
22001   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
22002  ;;
22003 esac
22004
22005 fi
22006 done
22007
22008
22009   if test $ac_cv_func_mempcpy = no; then
22010
22011   :
22012
22013   fi
22014
22015 { echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
22016 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6; }
22017 if test "${ac_cv_have_decl_memrchr+set}" = set; then
22018   echo $ECHO_N "(cached) $ECHO_C" >&6
22019 else
22020   cat >conftest.$ac_ext <<_ACEOF
22021 /* confdefs.h.  */
22022 _ACEOF
22023 cat confdefs.h >>conftest.$ac_ext
22024 cat >>conftest.$ac_ext <<_ACEOF
22025 /* end confdefs.h.  */
22026 $ac_includes_default
22027 int
22028 main ()
22029 {
22030 #ifndef memrchr
22031   char *p = (char *) memrchr;
22032   return !p;
22033 #endif
22034
22035   ;
22036   return 0;
22037 }
22038 _ACEOF
22039 rm -f conftest.$ac_objext
22040 if { (ac_try="$ac_compile"
22041 case "(($ac_try" in
22042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22043   *) ac_try_echo=$ac_try;;
22044 esac
22045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22046   (eval "$ac_compile") 2>conftest.er1
22047   ac_status=$?
22048   grep -v '^ *+' conftest.er1 >conftest.err
22049   rm -f conftest.er1
22050   cat conftest.err >&5
22051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052   (exit $ac_status); } &&
22053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22054   { (case "(($ac_try" in
22055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22056   *) ac_try_echo=$ac_try;;
22057 esac
22058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22059   (eval "$ac_try") 2>&5
22060   ac_status=$?
22061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062   (exit $ac_status); }; } &&
22063          { ac_try='test -s conftest.$ac_objext'
22064   { (case "(($ac_try" in
22065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22066   *) ac_try_echo=$ac_try;;
22067 esac
22068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22069   (eval "$ac_try") 2>&5
22070   ac_status=$?
22071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072   (exit $ac_status); }; }; then
22073   ac_cv_have_decl_memrchr=yes
22074 else
22075   echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22077
22078         ac_cv_have_decl_memrchr=no
22079 fi
22080
22081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22082 fi
22083 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
22084 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6; }
22085 if test $ac_cv_have_decl_memrchr = yes; then
22086
22087 cat >>confdefs.h <<_ACEOF
22088 #define HAVE_DECL_MEMRCHR 1
22089 _ACEOF
22090
22091
22092 else
22093   cat >>confdefs.h <<_ACEOF
22094 #define HAVE_DECL_MEMRCHR 0
22095 _ACEOF
22096
22097
22098 fi
22099
22100
22101
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112 for ac_func in memrchr
22113 do
22114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22115 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22117 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22118   echo $ECHO_N "(cached) $ECHO_C" >&6
22119 else
22120   cat >conftest.$ac_ext <<_ACEOF
22121 /* confdefs.h.  */
22122 _ACEOF
22123 cat confdefs.h >>conftest.$ac_ext
22124 cat >>conftest.$ac_ext <<_ACEOF
22125 /* end confdefs.h.  */
22126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22127    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22128 #define $ac_func innocuous_$ac_func
22129
22130 /* System header to define __stub macros and hopefully few prototypes,
22131     which can conflict with char $ac_func (); below.
22132     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22133     <limits.h> exists even on freestanding compilers.  */
22134
22135 #ifdef __STDC__
22136 # include <limits.h>
22137 #else
22138 # include <assert.h>
22139 #endif
22140
22141 #undef $ac_func
22142
22143 /* Override any GCC internal prototype to avoid an error.
22144    Use char because int might match the return type of a GCC
22145    builtin and then its argument prototype would still apply.  */
22146 #ifdef __cplusplus
22147 extern "C"
22148 #endif
22149 char $ac_func ();
22150 /* The GNU C library defines this for functions which it implements
22151     to always fail with ENOSYS.  Some functions are actually named
22152     something starting with __ and the normal name is an alias.  */
22153 #if defined __stub_$ac_func || defined __stub___$ac_func
22154 choke me
22155 #endif
22156
22157 int
22158 main ()
22159 {
22160 return $ac_func ();
22161   ;
22162   return 0;
22163 }
22164 _ACEOF
22165 rm -f conftest.$ac_objext conftest$ac_exeext
22166 if { (ac_try="$ac_link"
22167 case "(($ac_try" in
22168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22169   *) ac_try_echo=$ac_try;;
22170 esac
22171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22172   (eval "$ac_link") 2>conftest.er1
22173   ac_status=$?
22174   grep -v '^ *+' conftest.er1 >conftest.err
22175   rm -f conftest.er1
22176   cat conftest.err >&5
22177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178   (exit $ac_status); } &&
22179          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22180   { (case "(($ac_try" in
22181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22182   *) ac_try_echo=$ac_try;;
22183 esac
22184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22185   (eval "$ac_try") 2>&5
22186   ac_status=$?
22187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188   (exit $ac_status); }; } &&
22189          { ac_try='test -s conftest$ac_exeext'
22190   { (case "(($ac_try" in
22191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22192   *) ac_try_echo=$ac_try;;
22193 esac
22194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22195   (eval "$ac_try") 2>&5
22196   ac_status=$?
22197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198   (exit $ac_status); }; }; then
22199   eval "$as_ac_var=yes"
22200 else
22201   echo "$as_me: failed program was:" >&5
22202 sed 's/^/| /' conftest.$ac_ext >&5
22203
22204         eval "$as_ac_var=no"
22205 fi
22206
22207 rm -f core conftest.err conftest.$ac_objext \
22208       conftest$ac_exeext conftest.$ac_ext
22209 fi
22210 ac_res=`eval echo '${'$as_ac_var'}'`
22211                { echo "$as_me:$LINENO: result: $ac_res" >&5
22212 echo "${ECHO_T}$ac_res" >&6; }
22213 if test `eval echo '${'$as_ac_var'}'` = yes; then
22214   cat >>confdefs.h <<_ACEOF
22215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22216 _ACEOF
22217
22218 else
22219   case " $LIBOBJS " in
22220   *" $ac_func.$ac_objext "* ) ;;
22221   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
22222  ;;
22223 esac
22224
22225 fi
22226 done
22227
22228
22229   if test $ac_cv_func_memrchr = no; then
22230     :
22231   fi
22232
22233
22234
22235 for ac_func in memset
22236 do
22237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22238 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22240 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22241   echo $ECHO_N "(cached) $ECHO_C" >&6
22242 else
22243   cat >conftest.$ac_ext <<_ACEOF
22244 /* confdefs.h.  */
22245 _ACEOF
22246 cat confdefs.h >>conftest.$ac_ext
22247 cat >>conftest.$ac_ext <<_ACEOF
22248 /* end confdefs.h.  */
22249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22250    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22251 #define $ac_func innocuous_$ac_func
22252
22253 /* System header to define __stub macros and hopefully few prototypes,
22254     which can conflict with char $ac_func (); below.
22255     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22256     <limits.h> exists even on freestanding compilers.  */
22257
22258 #ifdef __STDC__
22259 # include <limits.h>
22260 #else
22261 # include <assert.h>
22262 #endif
22263
22264 #undef $ac_func
22265
22266 /* Override any GCC internal prototype to avoid an error.
22267    Use char because int might match the return type of a GCC
22268    builtin and then its argument prototype would still apply.  */
22269 #ifdef __cplusplus
22270 extern "C"
22271 #endif
22272 char $ac_func ();
22273 /* The GNU C library defines this for functions which it implements
22274     to always fail with ENOSYS.  Some functions are actually named
22275     something starting with __ and the normal name is an alias.  */
22276 #if defined __stub_$ac_func || defined __stub___$ac_func
22277 choke me
22278 #endif
22279
22280 int
22281 main ()
22282 {
22283 return $ac_func ();
22284   ;
22285   return 0;
22286 }
22287 _ACEOF
22288 rm -f conftest.$ac_objext conftest$ac_exeext
22289 if { (ac_try="$ac_link"
22290 case "(($ac_try" in
22291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292   *) ac_try_echo=$ac_try;;
22293 esac
22294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22295   (eval "$ac_link") 2>conftest.er1
22296   ac_status=$?
22297   grep -v '^ *+' conftest.er1 >conftest.err
22298   rm -f conftest.er1
22299   cat conftest.err >&5
22300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301   (exit $ac_status); } &&
22302          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22303   { (case "(($ac_try" in
22304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22305   *) ac_try_echo=$ac_try;;
22306 esac
22307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22308   (eval "$ac_try") 2>&5
22309   ac_status=$?
22310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311   (exit $ac_status); }; } &&
22312          { ac_try='test -s conftest$ac_exeext'
22313   { (case "(($ac_try" in
22314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22315   *) ac_try_echo=$ac_try;;
22316 esac
22317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22318   (eval "$ac_try") 2>&5
22319   ac_status=$?
22320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321   (exit $ac_status); }; }; then
22322   eval "$as_ac_var=yes"
22323 else
22324   echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22326
22327         eval "$as_ac_var=no"
22328 fi
22329
22330 rm -f core conftest.err conftest.$ac_objext \
22331       conftest$ac_exeext conftest.$ac_ext
22332 fi
22333 ac_res=`eval echo '${'$as_ac_var'}'`
22334                { echo "$as_me:$LINENO: result: $ac_res" >&5
22335 echo "${ECHO_T}$ac_res" >&6; }
22336 if test `eval echo '${'$as_ac_var'}'` = yes; then
22337   cat >>confdefs.h <<_ACEOF
22338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22339 _ACEOF
22340
22341 else
22342   case " $LIBOBJS " in
22343   *" $ac_func.$ac_objext "* ) ;;
22344   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
22345  ;;
22346 esac
22347
22348 fi
22349 done
22350
22351
22352   if test $ac_cv_func_memset = no; then
22353
22354   :
22355
22356   fi
22357
22358   { echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
22359 echo $ECHO_N "checking whether mkdir fails due to a trailing slash... $ECHO_C" >&6; }
22360 if test "${gl_cv_func_mkdir_trailing_slash_bug+set}" = set; then
22361   echo $ECHO_N "(cached) $ECHO_C" >&6
22362 else
22363
22364       # Arrange for deletion of the temporary directory this test might create.
22365       ac_clean_files="$ac_clean_files confdir-slash"
22366       if test "$cross_compiling" = yes; then
22367   gl_cv_func_mkdir_trailing_slash_bug=yes
22368
22369 else
22370   cat >conftest.$ac_ext <<_ACEOF
22371 /* confdefs.h.  */
22372 _ACEOF
22373 cat confdefs.h >>conftest.$ac_ext
22374 cat >>conftest.$ac_ext <<_ACEOF
22375 /* end confdefs.h.  */
22376
22377 #       include <sys/types.h>
22378 #       include <sys/stat.h>
22379 #       include <stdlib.h>
22380         int main ()
22381         {
22382           rmdir ("confdir-slash");
22383           exit (mkdir ("confdir-slash/", 0700));
22384         }
22385
22386 _ACEOF
22387 rm -f conftest$ac_exeext
22388 if { (ac_try="$ac_link"
22389 case "(($ac_try" in
22390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22391   *) ac_try_echo=$ac_try;;
22392 esac
22393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22394   (eval "$ac_link") 2>&5
22395   ac_status=$?
22396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22398   { (case "(($ac_try" in
22399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22400   *) ac_try_echo=$ac_try;;
22401 esac
22402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22403   (eval "$ac_try") 2>&5
22404   ac_status=$?
22405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406   (exit $ac_status); }; }; then
22407   gl_cv_func_mkdir_trailing_slash_bug=no
22408 else
22409   echo "$as_me: program exited with status $ac_status" >&5
22410 echo "$as_me: failed program was:" >&5
22411 sed 's/^/| /' conftest.$ac_ext >&5
22412
22413 ( exit $ac_status )
22414 gl_cv_func_mkdir_trailing_slash_bug=yes
22415 fi
22416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22417 fi
22418
22419
22420
22421
22422 fi
22423 { echo "$as_me:$LINENO: result: $gl_cv_func_mkdir_trailing_slash_bug" >&5
22424 echo "${ECHO_T}$gl_cv_func_mkdir_trailing_slash_bug" >&6; }
22425
22426   if test $gl_cv_func_mkdir_trailing_slash_bug = yes; then
22427     case " $LIBOBJS " in
22428   *" mkdir.$ac_objext "* ) ;;
22429   *) LIBOBJS="$LIBOBJS mkdir.$ac_objext"
22430  ;;
22431 esac
22432
22433
22434 cat >>confdefs.h <<\_ACEOF
22435 #define mkdir rpl_mkdir
22436 _ACEOF
22437
22438     :
22439   fi
22440
22441
22442
22443
22444
22445
22446
22447
22448
22449
22450
22451
22452
22453
22454
22455 { echo "$as_me:$LINENO: checking for working mktime" >&5
22456 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
22457 if test "${ac_cv_func_working_mktime+set}" = set; then
22458   echo $ECHO_N "(cached) $ECHO_C" >&6
22459 else
22460   if test "$cross_compiling" = yes; then
22461   ac_cv_func_working_mktime=no
22462 else
22463   cat >conftest.$ac_ext <<_ACEOF
22464 /* confdefs.h.  */
22465 _ACEOF
22466 cat confdefs.h >>conftest.$ac_ext
22467 cat >>conftest.$ac_ext <<_ACEOF
22468 /* end confdefs.h.  */
22469 /* Test program from Paul Eggert and Tony Leneis.  */
22470 #if TIME_WITH_SYS_TIME
22471 # include <sys/time.h>
22472 # include <time.h>
22473 #else
22474 # if HAVE_SYS_TIME_H
22475 #  include <sys/time.h>
22476 # else
22477 #  include <time.h>
22478 # endif
22479 #endif
22480
22481 #include <stdlib.h>
22482 #include <unistd.h>
22483
22484 #if !HAVE_ALARM
22485 # define alarm(X) /* empty */
22486 #endif
22487
22488 /* Work around redefinition to rpl_putenv by other config tests.  */
22489 #undef putenv
22490
22491 static time_t time_t_max;
22492 static time_t time_t_min;
22493
22494 /* Values we'll use to set the TZ environment variable.  */
22495 static char *tz_strings[] = {
22496   (char *) 0, "TZ=GMT0", "TZ=JST-9",
22497   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
22498 };
22499 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
22500
22501 /* Fail if mktime fails to convert a date in the spring-forward gap.
22502    Based on a problem report from Andreas Jaeger.  */
22503 static void
22504 spring_forward_gap ()
22505 {
22506   /* glibc (up to about 1998-10-07) failed this test. */
22507   struct tm tm;
22508
22509   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22510      instead of "TZ=America/Vancouver" in order to detect the bug even
22511      on systems that don't support the Olson extension, or don't have the
22512      full zoneinfo tables installed.  */
22513   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22514
22515   tm.tm_year = 98;
22516   tm.tm_mon = 3;
22517   tm.tm_mday = 5;
22518   tm.tm_hour = 2;
22519   tm.tm_min = 0;
22520   tm.tm_sec = 0;
22521   tm.tm_isdst = -1;
22522   if (mktime (&tm) == (time_t)-1)
22523     exit (1);
22524 }
22525
22526 static void
22527 mktime_test1 (now)
22528      time_t now;
22529 {
22530   struct tm *lt;
22531   if ((lt = localtime (&now)) && mktime (lt) != now)
22532     exit (1);
22533 }
22534
22535 static void
22536 mktime_test (now)
22537      time_t now;
22538 {
22539   mktime_test1 (now);
22540   mktime_test1 ((time_t) (time_t_max - now));
22541   mktime_test1 ((time_t) (time_t_min + now));
22542 }
22543
22544 static void
22545 irix_6_4_bug ()
22546 {
22547   /* Based on code from Ariel Faigon.  */
22548   struct tm tm;
22549   tm.tm_year = 96;
22550   tm.tm_mon = 3;
22551   tm.tm_mday = 0;
22552   tm.tm_hour = 0;
22553   tm.tm_min = 0;
22554   tm.tm_sec = 0;
22555   tm.tm_isdst = -1;
22556   mktime (&tm);
22557   if (tm.tm_mon != 2 || tm.tm_mday != 31)
22558     exit (1);
22559 }
22560
22561 static void
22562 bigtime_test (j)
22563      int j;
22564 {
22565   struct tm tm;
22566   time_t now;
22567   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
22568   now = mktime (&tm);
22569   if (now != (time_t) -1)
22570     {
22571       struct tm *lt = localtime (&now);
22572       if (! (lt
22573              && lt->tm_year == tm.tm_year
22574              && lt->tm_mon == tm.tm_mon
22575              && lt->tm_mday == tm.tm_mday
22576              && lt->tm_hour == tm.tm_hour
22577              && lt->tm_min == tm.tm_min
22578              && lt->tm_sec == tm.tm_sec
22579              && lt->tm_yday == tm.tm_yday
22580              && lt->tm_wday == tm.tm_wday
22581              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
22582                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
22583         exit (1);
22584     }
22585 }
22586
22587 int
22588 main ()
22589 {
22590   time_t t, delta;
22591   int i, j;
22592
22593   /* This test makes some buggy mktime implementations loop.
22594      Give up after 60 seconds; a mktime slower than that
22595      isn't worth using anyway.  */
22596   alarm (60);
22597
22598   for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
22599     continue;
22600   time_t_max--;
22601   if ((time_t) -1 < 0)
22602     for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
22603       continue;
22604   delta = time_t_max / 997; /* a suitable prime number */
22605   for (i = 0; i < N_STRINGS; i++)
22606     {
22607       if (tz_strings[i])
22608         putenv (tz_strings[i]);
22609
22610       for (t = 0; t <= time_t_max - delta; t += delta)
22611         mktime_test (t);
22612       mktime_test ((time_t) 1);
22613       mktime_test ((time_t) (60 * 60));
22614       mktime_test ((time_t) (60 * 60 * 24));
22615
22616       for (j = 1; 0 < j; j *= 2)
22617         bigtime_test (j);
22618       bigtime_test (j - 1);
22619     }
22620   irix_6_4_bug ();
22621   spring_forward_gap ();
22622   exit (0);
22623 }
22624 _ACEOF
22625 rm -f conftest$ac_exeext
22626 if { (ac_try="$ac_link"
22627 case "(($ac_try" in
22628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22629   *) ac_try_echo=$ac_try;;
22630 esac
22631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22632   (eval "$ac_link") 2>&5
22633   ac_status=$?
22634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22636   { (case "(($ac_try" in
22637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22638   *) ac_try_echo=$ac_try;;
22639 esac
22640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22641   (eval "$ac_try") 2>&5
22642   ac_status=$?
22643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644   (exit $ac_status); }; }; then
22645   ac_cv_func_working_mktime=yes
22646 else
22647   echo "$as_me: program exited with status $ac_status" >&5
22648 echo "$as_me: failed program was:" >&5
22649 sed 's/^/| /' conftest.$ac_ext >&5
22650
22651 ( exit $ac_status )
22652 ac_cv_func_working_mktime=no
22653 fi
22654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22655 fi
22656
22657
22658 fi
22659 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
22660 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
22661 if test $ac_cv_func_working_mktime = no; then
22662   case " $LIBOBJS " in
22663   *" mktime.$ac_objext "* ) ;;
22664   *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
22665  ;;
22666 esac
22667
22668 fi
22669
22670
22671
22672   if test $ac_cv_func_working_mktime = no; then
22673
22674 cat >>confdefs.h <<\_ACEOF
22675 #define mktime rpl_mktime
22676 _ACEOF
22677
22678     :
22679   fi
22680
22681
22682 for ac_func in mkstemp
22683 do
22684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22688   echo $ECHO_N "(cached) $ECHO_C" >&6
22689 else
22690   cat >conftest.$ac_ext <<_ACEOF
22691 /* confdefs.h.  */
22692 _ACEOF
22693 cat confdefs.h >>conftest.$ac_ext
22694 cat >>conftest.$ac_ext <<_ACEOF
22695 /* end confdefs.h.  */
22696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22698 #define $ac_func innocuous_$ac_func
22699
22700 /* System header to define __stub macros and hopefully few prototypes,
22701     which can conflict with char $ac_func (); below.
22702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22703     <limits.h> exists even on freestanding compilers.  */
22704
22705 #ifdef __STDC__
22706 # include <limits.h>
22707 #else
22708 # include <assert.h>
22709 #endif
22710
22711 #undef $ac_func
22712
22713 /* Override any GCC internal prototype to avoid an error.
22714    Use char because int might match the return type of a GCC
22715    builtin and then its argument prototype would still apply.  */
22716 #ifdef __cplusplus
22717 extern "C"
22718 #endif
22719 char $ac_func ();
22720 /* The GNU C library defines this for functions which it implements
22721     to always fail with ENOSYS.  Some functions are actually named
22722     something starting with __ and the normal name is an alias.  */
22723 #if defined __stub_$ac_func || defined __stub___$ac_func
22724 choke me
22725 #endif
22726
22727 int
22728 main ()
22729 {
22730 return $ac_func ();
22731   ;
22732   return 0;
22733 }
22734 _ACEOF
22735 rm -f conftest.$ac_objext conftest$ac_exeext
22736 if { (ac_try="$ac_link"
22737 case "(($ac_try" in
22738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22739   *) ac_try_echo=$ac_try;;
22740 esac
22741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22742   (eval "$ac_link") 2>conftest.er1
22743   ac_status=$?
22744   grep -v '^ *+' conftest.er1 >conftest.err
22745   rm -f conftest.er1
22746   cat conftest.err >&5
22747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748   (exit $ac_status); } &&
22749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22750   { (case "(($ac_try" in
22751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22752   *) ac_try_echo=$ac_try;;
22753 esac
22754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22755   (eval "$ac_try") 2>&5
22756   ac_status=$?
22757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758   (exit $ac_status); }; } &&
22759          { ac_try='test -s conftest$ac_exeext'
22760   { (case "(($ac_try" in
22761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22762   *) ac_try_echo=$ac_try;;
22763 esac
22764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22765   (eval "$ac_try") 2>&5
22766   ac_status=$?
22767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22768   (exit $ac_status); }; }; then
22769   eval "$as_ac_var=yes"
22770 else
22771   echo "$as_me: failed program was:" >&5
22772 sed 's/^/| /' conftest.$ac_ext >&5
22773
22774         eval "$as_ac_var=no"
22775 fi
22776
22777 rm -f core conftest.err conftest.$ac_objext \
22778       conftest$ac_exeext conftest.$ac_ext
22779 fi
22780 ac_res=`eval echo '${'$as_ac_var'}'`
22781                { echo "$as_me:$LINENO: result: $ac_res" >&5
22782 echo "${ECHO_T}$ac_res" >&6; }
22783 if test `eval echo '${'$as_ac_var'}'` = yes; then
22784   cat >>confdefs.h <<_ACEOF
22785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22786 _ACEOF
22787
22788 else
22789   case " $LIBOBJS " in
22790   *" $ac_func.$ac_objext "* ) ;;
22791   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
22792  ;;
22793 esac
22794
22795 fi
22796 done
22797
22798
22799   if test $ac_cv_func_mkstemp = no; then
22800     gl_cv_func_mkstemp_limitations=yes
22801   else
22802     { echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
22803 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6; }
22804 if test "${gl_cv_func_mkstemp_limitations+set}" = set; then
22805   echo $ECHO_N "(cached) $ECHO_C" >&6
22806 else
22807
22808         mkdir conftest.mkstemp
22809         if test "$cross_compiling" = yes; then
22810   gl_cv_func_mkstemp_limitations=yes
22811
22812 else
22813   cat >conftest.$ac_ext <<_ACEOF
22814 /* confdefs.h.  */
22815 _ACEOF
22816 cat confdefs.h >>conftest.$ac_ext
22817 cat >>conftest.$ac_ext <<_ACEOF
22818 /* end confdefs.h.  */
22819
22820 #           include <stdlib.h>
22821 #           include <unistd.h>
22822             int main ()
22823             {
22824               int i;
22825               for (i = 0; i < 70; i++)
22826                 {
22827                   char template[] = "conftest.mkstemp/coXXXXXX";
22828                   int fd = mkstemp (template);
22829                   if (fd == -1)
22830                     exit (1);
22831                   close (fd);
22832                 }
22833               exit (0);
22834             }
22835
22836 _ACEOF
22837 rm -f conftest$ac_exeext
22838 if { (ac_try="$ac_link"
22839 case "(($ac_try" in
22840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22841   *) ac_try_echo=$ac_try;;
22842 esac
22843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22844   (eval "$ac_link") 2>&5
22845   ac_status=$?
22846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22848   { (case "(($ac_try" in
22849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22850   *) ac_try_echo=$ac_try;;
22851 esac
22852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22853   (eval "$ac_try") 2>&5
22854   ac_status=$?
22855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856   (exit $ac_status); }; }; then
22857   gl_cv_func_mkstemp_limitations=no
22858 else
22859   echo "$as_me: program exited with status $ac_status" >&5
22860 echo "$as_me: failed program was:" >&5
22861 sed 's/^/| /' conftest.$ac_ext >&5
22862
22863 ( exit $ac_status )
22864 gl_cv_func_mkstemp_limitations=yes
22865 fi
22866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22867 fi
22868
22869
22870         rm -rf conftest.mkstemp
22871
22872
22873 fi
22874 { echo "$as_me:$LINENO: result: $gl_cv_func_mkstemp_limitations" >&5
22875 echo "${ECHO_T}$gl_cv_func_mkstemp_limitations" >&6; }
22876   fi
22877
22878   if test $gl_cv_func_mkstemp_limitations = yes; then
22879     case " $LIBOBJS " in
22880   *" mkstemp.$ac_objext "* ) ;;
22881   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
22882  ;;
22883 esac
22884
22885     case " $LIBOBJS " in
22886   *" tempname.$ac_objext "* ) ;;
22887   *) LIBOBJS="$LIBOBJS tempname.$ac_objext"
22888  ;;
22889 esac
22890
22891
22892 cat >>confdefs.h <<\_ACEOF
22893 #define mkstemp rpl_mkstemp
22894 _ACEOF
22895
22896
22897
22898
22899
22900
22901
22902
22903
22904
22905
22906
22907 for ac_func in __secure_getenv gettimeofday
22908 do
22909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22910 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22912 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22913   echo $ECHO_N "(cached) $ECHO_C" >&6
22914 else
22915   cat >conftest.$ac_ext <<_ACEOF
22916 /* confdefs.h.  */
22917 _ACEOF
22918 cat confdefs.h >>conftest.$ac_ext
22919 cat >>conftest.$ac_ext <<_ACEOF
22920 /* end confdefs.h.  */
22921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22922    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22923 #define $ac_func innocuous_$ac_func
22924
22925 /* System header to define __stub macros and hopefully few prototypes,
22926     which can conflict with char $ac_func (); below.
22927     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22928     <limits.h> exists even on freestanding compilers.  */
22929
22930 #ifdef __STDC__
22931 # include <limits.h>
22932 #else
22933 # include <assert.h>
22934 #endif
22935
22936 #undef $ac_func
22937
22938 /* Override any GCC internal prototype to avoid an error.
22939    Use char because int might match the return type of a GCC
22940    builtin and then its argument prototype would still apply.  */
22941 #ifdef __cplusplus
22942 extern "C"
22943 #endif
22944 char $ac_func ();
22945 /* The GNU C library defines this for functions which it implements
22946     to always fail with ENOSYS.  Some functions are actually named
22947     something starting with __ and the normal name is an alias.  */
22948 #if defined __stub_$ac_func || defined __stub___$ac_func
22949 choke me
22950 #endif
22951
22952 int
22953 main ()
22954 {
22955 return $ac_func ();
22956   ;
22957   return 0;
22958 }
22959 _ACEOF
22960 rm -f conftest.$ac_objext conftest$ac_exeext
22961 if { (ac_try="$ac_link"
22962 case "(($ac_try" in
22963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22964   *) ac_try_echo=$ac_try;;
22965 esac
22966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22967   (eval "$ac_link") 2>conftest.er1
22968   ac_status=$?
22969   grep -v '^ *+' conftest.er1 >conftest.err
22970   rm -f conftest.er1
22971   cat conftest.err >&5
22972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973   (exit $ac_status); } &&
22974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22975   { (case "(($ac_try" in
22976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22977   *) ac_try_echo=$ac_try;;
22978 esac
22979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22980   (eval "$ac_try") 2>&5
22981   ac_status=$?
22982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983   (exit $ac_status); }; } &&
22984          { ac_try='test -s conftest$ac_exeext'
22985   { (case "(($ac_try" in
22986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22987   *) ac_try_echo=$ac_try;;
22988 esac
22989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22990   (eval "$ac_try") 2>&5
22991   ac_status=$?
22992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993   (exit $ac_status); }; }; then
22994   eval "$as_ac_var=yes"
22995 else
22996   echo "$as_me: failed program was:" >&5
22997 sed 's/^/| /' conftest.$ac_ext >&5
22998
22999         eval "$as_ac_var=no"
23000 fi
23001
23002 rm -f core conftest.err conftest.$ac_objext \
23003       conftest$ac_exeext conftest.$ac_ext
23004 fi
23005 ac_res=`eval echo '${'$as_ac_var'}'`
23006                { echo "$as_me:$LINENO: result: $ac_res" >&5
23007 echo "${ECHO_T}$ac_res" >&6; }
23008 if test `eval echo '${'$as_ac_var'}'` = yes; then
23009   cat >>confdefs.h <<_ACEOF
23010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23011 _ACEOF
23012
23013 fi
23014 done
23015
23016
23017
23018   fi
23019
23020 { echo "$as_me:$LINENO: checking whether euidaccess is declared" >&5
23021 echo $ECHO_N "checking whether euidaccess is declared... $ECHO_C" >&6; }
23022 if test "${ac_cv_have_decl_euidaccess+set}" = set; then
23023   echo $ECHO_N "(cached) $ECHO_C" >&6
23024 else
23025   cat >conftest.$ac_ext <<_ACEOF
23026 /* confdefs.h.  */
23027 _ACEOF
23028 cat confdefs.h >>conftest.$ac_ext
23029 cat >>conftest.$ac_ext <<_ACEOF
23030 /* end confdefs.h.  */
23031 $ac_includes_default
23032 int
23033 main ()
23034 {
23035 #ifndef euidaccess
23036   char *p = (char *) euidaccess;
23037   return !p;
23038 #endif
23039
23040   ;
23041   return 0;
23042 }
23043 _ACEOF
23044 rm -f conftest.$ac_objext
23045 if { (ac_try="$ac_compile"
23046 case "(($ac_try" in
23047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23048   *) ac_try_echo=$ac_try;;
23049 esac
23050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23051   (eval "$ac_compile") 2>conftest.er1
23052   ac_status=$?
23053   grep -v '^ *+' conftest.er1 >conftest.err
23054   rm -f conftest.er1
23055   cat conftest.err >&5
23056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057   (exit $ac_status); } &&
23058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23059   { (case "(($ac_try" in
23060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23061   *) ac_try_echo=$ac_try;;
23062 esac
23063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23064   (eval "$ac_try") 2>&5
23065   ac_status=$?
23066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067   (exit $ac_status); }; } &&
23068          { ac_try='test -s conftest.$ac_objext'
23069   { (case "(($ac_try" in
23070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23071   *) ac_try_echo=$ac_try;;
23072 esac
23073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23074   (eval "$ac_try") 2>&5
23075   ac_status=$?
23076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077   (exit $ac_status); }; }; then
23078   ac_cv_have_decl_euidaccess=yes
23079 else
23080   echo "$as_me: failed program was:" >&5
23081 sed 's/^/| /' conftest.$ac_ext >&5
23082
23083         ac_cv_have_decl_euidaccess=no
23084 fi
23085
23086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23087 fi
23088 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_euidaccess" >&5
23089 echo "${ECHO_T}$ac_cv_have_decl_euidaccess" >&6; }
23090 if test $ac_cv_have_decl_euidaccess = yes; then
23091
23092 cat >>confdefs.h <<_ACEOF
23093 #define HAVE_DECL_EUIDACCESS 1
23094 _ACEOF
23095
23096
23097 else
23098   cat >>confdefs.h <<_ACEOF
23099 #define HAVE_DECL_EUIDACCESS 0
23100 _ACEOF
23101
23102
23103 fi
23104
23105
23106
23107
23108 { echo "$as_me:$LINENO: checking whether setregid is declared" >&5
23109 echo $ECHO_N "checking whether setregid is declared... $ECHO_C" >&6; }
23110 if test "${ac_cv_have_decl_setregid+set}" = set; then
23111   echo $ECHO_N "(cached) $ECHO_C" >&6
23112 else
23113   cat >conftest.$ac_ext <<_ACEOF
23114 /* confdefs.h.  */
23115 _ACEOF
23116 cat confdefs.h >>conftest.$ac_ext
23117 cat >>conftest.$ac_ext <<_ACEOF
23118 /* end confdefs.h.  */
23119 $ac_includes_default
23120 int
23121 main ()
23122 {
23123 #ifndef setregid
23124   char *p = (char *) setregid;
23125   return !p;
23126 #endif
23127
23128   ;
23129   return 0;
23130 }
23131 _ACEOF
23132 rm -f conftest.$ac_objext
23133 if { (ac_try="$ac_compile"
23134 case "(($ac_try" in
23135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136   *) ac_try_echo=$ac_try;;
23137 esac
23138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23139   (eval "$ac_compile") 2>conftest.er1
23140   ac_status=$?
23141   grep -v '^ *+' conftest.er1 >conftest.err
23142   rm -f conftest.er1
23143   cat conftest.err >&5
23144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145   (exit $ac_status); } &&
23146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23147   { (case "(($ac_try" in
23148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23149   *) ac_try_echo=$ac_try;;
23150 esac
23151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23152   (eval "$ac_try") 2>&5
23153   ac_status=$?
23154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155   (exit $ac_status); }; } &&
23156          { ac_try='test -s conftest.$ac_objext'
23157   { (case "(($ac_try" in
23158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23159   *) ac_try_echo=$ac_try;;
23160 esac
23161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23162   (eval "$ac_try") 2>&5
23163   ac_status=$?
23164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165   (exit $ac_status); }; }; then
23166   ac_cv_have_decl_setregid=yes
23167 else
23168   echo "$as_me: failed program was:" >&5
23169 sed 's/^/| /' conftest.$ac_ext >&5
23170
23171         ac_cv_have_decl_setregid=no
23172 fi
23173
23174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23175 fi
23176 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5
23177 echo "${ECHO_T}$ac_cv_have_decl_setregid" >&6; }
23178 if test $ac_cv_have_decl_setregid = yes; then
23179
23180 cat >>confdefs.h <<_ACEOF
23181 #define HAVE_DECL_SETREGID 1
23182 _ACEOF
23183
23184
23185 else
23186   cat >>confdefs.h <<_ACEOF
23187 #define HAVE_DECL_SETREGID 0
23188 _ACEOF
23189
23190
23191 fi
23192
23193
23194 { echo "$as_me:$LINENO: checking for getgroups" >&5
23195 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
23196 if test "${ac_cv_func_getgroups+set}" = set; then
23197   echo $ECHO_N "(cached) $ECHO_C" >&6
23198 else
23199   cat >conftest.$ac_ext <<_ACEOF
23200 /* confdefs.h.  */
23201 _ACEOF
23202 cat confdefs.h >>conftest.$ac_ext
23203 cat >>conftest.$ac_ext <<_ACEOF
23204 /* end confdefs.h.  */
23205 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
23206    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23207 #define getgroups innocuous_getgroups
23208
23209 /* System header to define __stub macros and hopefully few prototypes,
23210     which can conflict with char getgroups (); below.
23211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23212     <limits.h> exists even on freestanding compilers.  */
23213
23214 #ifdef __STDC__
23215 # include <limits.h>
23216 #else
23217 # include <assert.h>
23218 #endif
23219
23220 #undef getgroups
23221
23222 /* Override any GCC internal prototype to avoid an error.
23223    Use char because int might match the return type of a GCC
23224    builtin and then its argument prototype would still apply.  */
23225 #ifdef __cplusplus
23226 extern "C"
23227 #endif
23228 char getgroups ();
23229 /* The GNU C library defines this for functions which it implements
23230     to always fail with ENOSYS.  Some functions are actually named
23231     something starting with __ and the normal name is an alias.  */
23232 #if defined __stub_getgroups || defined __stub___getgroups
23233 choke me
23234 #endif
23235
23236 int
23237 main ()
23238 {
23239 return getgroups ();
23240   ;
23241   return 0;
23242 }
23243 _ACEOF
23244 rm -f conftest.$ac_objext conftest$ac_exeext
23245 if { (ac_try="$ac_link"
23246 case "(($ac_try" in
23247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23248   *) ac_try_echo=$ac_try;;
23249 esac
23250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23251   (eval "$ac_link") 2>conftest.er1
23252   ac_status=$?
23253   grep -v '^ *+' conftest.er1 >conftest.err
23254   rm -f conftest.er1
23255   cat conftest.err >&5
23256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23257   (exit $ac_status); } &&
23258          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23259   { (case "(($ac_try" in
23260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23261   *) ac_try_echo=$ac_try;;
23262 esac
23263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23264   (eval "$ac_try") 2>&5
23265   ac_status=$?
23266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267   (exit $ac_status); }; } &&
23268          { ac_try='test -s conftest$ac_exeext'
23269   { (case "(($ac_try" in
23270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23271   *) ac_try_echo=$ac_try;;
23272 esac
23273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23274   (eval "$ac_try") 2>&5
23275   ac_status=$?
23276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277   (exit $ac_status); }; }; then
23278   ac_cv_func_getgroups=yes
23279 else
23280   echo "$as_me: failed program was:" >&5
23281 sed 's/^/| /' conftest.$ac_ext >&5
23282
23283         ac_cv_func_getgroups=no
23284 fi
23285
23286 rm -f core conftest.err conftest.$ac_objext \
23287       conftest$ac_exeext conftest.$ac_ext
23288 fi
23289 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
23290 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
23291
23292
23293 # If we don't yet have getgroups, see if it's in -lbsd.
23294 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
23295 ac_save_LIBS=$LIBS
23296 if test $ac_cv_func_getgroups = no; then
23297   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
23298 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
23299 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
23300   echo $ECHO_N "(cached) $ECHO_C" >&6
23301 else
23302   ac_check_lib_save_LIBS=$LIBS
23303 LIBS="-lbsd  $LIBS"
23304 cat >conftest.$ac_ext <<_ACEOF
23305 /* confdefs.h.  */
23306 _ACEOF
23307 cat confdefs.h >>conftest.$ac_ext
23308 cat >>conftest.$ac_ext <<_ACEOF
23309 /* end confdefs.h.  */
23310
23311 /* Override any GCC internal prototype to avoid an error.
23312    Use char because int might match the return type of a GCC
23313    builtin and then its argument prototype would still apply.  */
23314 #ifdef __cplusplus
23315 extern "C"
23316 #endif
23317 char getgroups ();
23318 int
23319 main ()
23320 {
23321 return getgroups ();
23322   ;
23323   return 0;
23324 }
23325 _ACEOF
23326 rm -f conftest.$ac_objext conftest$ac_exeext
23327 if { (ac_try="$ac_link"
23328 case "(($ac_try" in
23329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23330   *) ac_try_echo=$ac_try;;
23331 esac
23332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23333   (eval "$ac_link") 2>conftest.er1
23334   ac_status=$?
23335   grep -v '^ *+' conftest.er1 >conftest.err
23336   rm -f conftest.er1
23337   cat conftest.err >&5
23338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339   (exit $ac_status); } &&
23340          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23341   { (case "(($ac_try" in
23342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23343   *) ac_try_echo=$ac_try;;
23344 esac
23345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23346   (eval "$ac_try") 2>&5
23347   ac_status=$?
23348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349   (exit $ac_status); }; } &&
23350          { ac_try='test -s conftest$ac_exeext'
23351   { (case "(($ac_try" in
23352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23353   *) ac_try_echo=$ac_try;;
23354 esac
23355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23356   (eval "$ac_try") 2>&5
23357   ac_status=$?
23358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359   (exit $ac_status); }; }; then
23360   ac_cv_lib_bsd_getgroups=yes
23361 else
23362   echo "$as_me: failed program was:" >&5
23363 sed 's/^/| /' conftest.$ac_ext >&5
23364
23365         ac_cv_lib_bsd_getgroups=no
23366 fi
23367
23368 rm -f core conftest.err conftest.$ac_objext \
23369       conftest$ac_exeext conftest.$ac_ext
23370 LIBS=$ac_check_lib_save_LIBS
23371 fi
23372 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
23373 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
23374 if test $ac_cv_lib_bsd_getgroups = yes; then
23375   GETGROUPS_LIB=-lbsd
23376 fi
23377
23378 fi
23379
23380 # Run the program to test the functionality of the system-supplied
23381 # getgroups function only if there is such a function.
23382 if test $ac_cv_func_getgroups = yes; then
23383   { echo "$as_me:$LINENO: checking for working getgroups" >&5
23384 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
23385 if test "${ac_cv_func_getgroups_works+set}" = set; then
23386   echo $ECHO_N "(cached) $ECHO_C" >&6
23387 else
23388   if test "$cross_compiling" = yes; then
23389   ac_cv_func_getgroups_works=no
23390 else
23391   cat >conftest.$ac_ext <<_ACEOF
23392 /* confdefs.h.  */
23393 _ACEOF
23394 cat confdefs.h >>conftest.$ac_ext
23395 cat >>conftest.$ac_ext <<_ACEOF
23396 /* end confdefs.h.  */
23397 $ac_includes_default
23398 int
23399 main ()
23400 {
23401 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
23402        return getgroups (0, 0) == -1;
23403   ;
23404   return 0;
23405 }
23406 _ACEOF
23407 rm -f conftest$ac_exeext
23408 if { (ac_try="$ac_link"
23409 case "(($ac_try" in
23410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23411   *) ac_try_echo=$ac_try;;
23412 esac
23413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23414   (eval "$ac_link") 2>&5
23415   ac_status=$?
23416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23418   { (case "(($ac_try" in
23419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23420   *) ac_try_echo=$ac_try;;
23421 esac
23422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23423   (eval "$ac_try") 2>&5
23424   ac_status=$?
23425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426   (exit $ac_status); }; }; then
23427   ac_cv_func_getgroups_works=yes
23428 else
23429   echo "$as_me: program exited with status $ac_status" >&5
23430 echo "$as_me: failed program was:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23432
23433 ( exit $ac_status )
23434 ac_cv_func_getgroups_works=no
23435 fi
23436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23437 fi
23438
23439
23440
23441 fi
23442 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
23443 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
23444   if test $ac_cv_func_getgroups_works = yes; then
23445
23446 cat >>confdefs.h <<\_ACEOF
23447 #define HAVE_GETGROUPS 1
23448 _ACEOF
23449
23450   fi
23451 fi
23452 LIBS=$ac_save_LIBS
23453
23454
23455
23456
23457
23458
23459
23460
23461
23462 for ac_func in euidaccess
23463 do
23464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23465 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23467 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23468   echo $ECHO_N "(cached) $ECHO_C" >&6
23469 else
23470   cat >conftest.$ac_ext <<_ACEOF
23471 /* confdefs.h.  */
23472 _ACEOF
23473 cat confdefs.h >>conftest.$ac_ext
23474 cat >>conftest.$ac_ext <<_ACEOF
23475 /* end confdefs.h.  */
23476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23477    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23478 #define $ac_func innocuous_$ac_func
23479
23480 /* System header to define __stub macros and hopefully few prototypes,
23481     which can conflict with char $ac_func (); below.
23482     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23483     <limits.h> exists even on freestanding compilers.  */
23484
23485 #ifdef __STDC__
23486 # include <limits.h>
23487 #else
23488 # include <assert.h>
23489 #endif
23490
23491 #undef $ac_func
23492
23493 /* Override any GCC internal prototype to avoid an error.
23494    Use char because int might match the return type of a GCC
23495    builtin and then its argument prototype would still apply.  */
23496 #ifdef __cplusplus
23497 extern "C"
23498 #endif
23499 char $ac_func ();
23500 /* The GNU C library defines this for functions which it implements
23501     to always fail with ENOSYS.  Some functions are actually named
23502     something starting with __ and the normal name is an alias.  */
23503 #if defined __stub_$ac_func || defined __stub___$ac_func
23504 choke me
23505 #endif
23506
23507 int
23508 main ()
23509 {
23510 return $ac_func ();
23511   ;
23512   return 0;
23513 }
23514 _ACEOF
23515 rm -f conftest.$ac_objext conftest$ac_exeext
23516 if { (ac_try="$ac_link"
23517 case "(($ac_try" in
23518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23519   *) ac_try_echo=$ac_try;;
23520 esac
23521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23522   (eval "$ac_link") 2>conftest.er1
23523   ac_status=$?
23524   grep -v '^ *+' conftest.er1 >conftest.err
23525   rm -f conftest.er1
23526   cat conftest.err >&5
23527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528   (exit $ac_status); } &&
23529          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23530   { (case "(($ac_try" in
23531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23532   *) ac_try_echo=$ac_try;;
23533 esac
23534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23535   (eval "$ac_try") 2>&5
23536   ac_status=$?
23537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538   (exit $ac_status); }; } &&
23539          { ac_try='test -s conftest$ac_exeext'
23540   { (case "(($ac_try" in
23541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23542   *) ac_try_echo=$ac_try;;
23543 esac
23544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23545   (eval "$ac_try") 2>&5
23546   ac_status=$?
23547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548   (exit $ac_status); }; }; then
23549   eval "$as_ac_var=yes"
23550 else
23551   echo "$as_me: failed program was:" >&5
23552 sed 's/^/| /' conftest.$ac_ext >&5
23553
23554         eval "$as_ac_var=no"
23555 fi
23556
23557 rm -f core conftest.err conftest.$ac_objext \
23558       conftest$ac_exeext conftest.$ac_ext
23559 fi
23560 ac_res=`eval echo '${'$as_ac_var'}'`
23561                { echo "$as_me:$LINENO: result: $ac_res" >&5
23562 echo "${ECHO_T}$ac_res" >&6; }
23563 if test `eval echo '${'$as_ac_var'}'` = yes; then
23564   cat >>confdefs.h <<_ACEOF
23565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23566 _ACEOF
23567
23568 else
23569   case " $LIBOBJS " in
23570   *" $ac_func.$ac_objext "* ) ;;
23571   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23572  ;;
23573 esac
23574
23575 fi
23576 done
23577
23578
23579   if test $ac_cv_func_euidaccess = no; then
23580
23581
23582
23583
23584
23585
23586
23587
23588
23589
23590
23591
23592
23593   # Solaris 9 needs -lgen to get the eaccess function.
23594   # Save and restore LIBS so -lgen isn't added to it.  Otherwise, *all*
23595   # programs in the package would end up linked with that potentially-shared
23596   # library, inducing unnecessary run-time overhead.
23597   gl_saved_libs=$LIBS
23598     { echo "$as_me:$LINENO: checking for library containing eaccess" >&5
23599 echo $ECHO_N "checking for library containing eaccess... $ECHO_C" >&6; }
23600 if test "${ac_cv_search_eaccess+set}" = set; then
23601   echo $ECHO_N "(cached) $ECHO_C" >&6
23602 else
23603   ac_func_search_save_LIBS=$LIBS
23604 cat >conftest.$ac_ext <<_ACEOF
23605 /* confdefs.h.  */
23606 _ACEOF
23607 cat confdefs.h >>conftest.$ac_ext
23608 cat >>conftest.$ac_ext <<_ACEOF
23609 /* end confdefs.h.  */
23610
23611 /* Override any GCC internal prototype to avoid an error.
23612    Use char because int might match the return type of a GCC
23613    builtin and then its argument prototype would still apply.  */
23614 #ifdef __cplusplus
23615 extern "C"
23616 #endif
23617 char eaccess ();
23618 int
23619 main ()
23620 {
23621 return eaccess ();
23622   ;
23623   return 0;
23624 }
23625 _ACEOF
23626 for ac_lib in '' gen; do
23627   if test -z "$ac_lib"; then
23628     ac_res="none required"
23629   else
23630     ac_res=-l$ac_lib
23631     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23632   fi
23633   rm -f conftest.$ac_objext conftest$ac_exeext
23634 if { (ac_try="$ac_link"
23635 case "(($ac_try" in
23636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23637   *) ac_try_echo=$ac_try;;
23638 esac
23639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23640   (eval "$ac_link") 2>conftest.er1
23641   ac_status=$?
23642   grep -v '^ *+' conftest.er1 >conftest.err
23643   rm -f conftest.er1
23644   cat conftest.err >&5
23645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646   (exit $ac_status); } &&
23647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23648   { (case "(($ac_try" in
23649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23650   *) ac_try_echo=$ac_try;;
23651 esac
23652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23653   (eval "$ac_try") 2>&5
23654   ac_status=$?
23655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656   (exit $ac_status); }; } &&
23657          { ac_try='test -s conftest$ac_exeext'
23658   { (case "(($ac_try" in
23659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23660   *) ac_try_echo=$ac_try;;
23661 esac
23662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23663   (eval "$ac_try") 2>&5
23664   ac_status=$?
23665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666   (exit $ac_status); }; }; then
23667   ac_cv_search_eaccess=$ac_res
23668 else
23669   echo "$as_me: failed program was:" >&5
23670 sed 's/^/| /' conftest.$ac_ext >&5
23671
23672
23673 fi
23674
23675 rm -f core conftest.err conftest.$ac_objext \
23676       conftest$ac_exeext
23677   if test "${ac_cv_search_eaccess+set}" = set; then
23678   break
23679 fi
23680 done
23681 if test "${ac_cv_search_eaccess+set}" = set; then
23682   :
23683 else
23684   ac_cv_search_eaccess=no
23685 fi
23686 rm conftest.$ac_ext
23687 LIBS=$ac_func_search_save_LIBS
23688 fi
23689 { echo "$as_me:$LINENO: result: $ac_cv_search_eaccess" >&5
23690 echo "${ECHO_T}$ac_cv_search_eaccess" >&6; }
23691 ac_res=$ac_cv_search_eaccess
23692 if test "$ac_res" != no; then
23693   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23694   test "$ac_cv_search_eaccess" = "none required" ||
23695                     LIB_EACCESS=$ac_cv_search_eaccess
23696 fi
23697
23698
23699
23700 for ac_func in eaccess
23701 do
23702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23703 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23705 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23706   echo $ECHO_N "(cached) $ECHO_C" >&6
23707 else
23708   cat >conftest.$ac_ext <<_ACEOF
23709 /* confdefs.h.  */
23710 _ACEOF
23711 cat confdefs.h >>conftest.$ac_ext
23712 cat >>conftest.$ac_ext <<_ACEOF
23713 /* end confdefs.h.  */
23714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23716 #define $ac_func innocuous_$ac_func
23717
23718 /* System header to define __stub macros and hopefully few prototypes,
23719     which can conflict with char $ac_func (); below.
23720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23721     <limits.h> exists even on freestanding compilers.  */
23722
23723 #ifdef __STDC__
23724 # include <limits.h>
23725 #else
23726 # include <assert.h>
23727 #endif
23728
23729 #undef $ac_func
23730
23731 /* Override any GCC internal prototype to avoid an error.
23732    Use char because int might match the return type of a GCC
23733    builtin and then its argument prototype would still apply.  */
23734 #ifdef __cplusplus
23735 extern "C"
23736 #endif
23737 char $ac_func ();
23738 /* The GNU C library defines this for functions which it implements
23739     to always fail with ENOSYS.  Some functions are actually named
23740     something starting with __ and the normal name is an alias.  */
23741 #if defined __stub_$ac_func || defined __stub___$ac_func
23742 choke me
23743 #endif
23744
23745 int
23746 main ()
23747 {
23748 return $ac_func ();
23749   ;
23750   return 0;
23751 }
23752 _ACEOF
23753 rm -f conftest.$ac_objext conftest$ac_exeext
23754 if { (ac_try="$ac_link"
23755 case "(($ac_try" in
23756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23757   *) ac_try_echo=$ac_try;;
23758 esac
23759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23760   (eval "$ac_link") 2>conftest.er1
23761   ac_status=$?
23762   grep -v '^ *+' conftest.er1 >conftest.err
23763   rm -f conftest.er1
23764   cat conftest.err >&5
23765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766   (exit $ac_status); } &&
23767          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23768   { (case "(($ac_try" in
23769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23770   *) ac_try_echo=$ac_try;;
23771 esac
23772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23773   (eval "$ac_try") 2>&5
23774   ac_status=$?
23775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776   (exit $ac_status); }; } &&
23777          { ac_try='test -s conftest$ac_exeext'
23778   { (case "(($ac_try" in
23779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23780   *) ac_try_echo=$ac_try;;
23781 esac
23782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23783   (eval "$ac_try") 2>&5
23784   ac_status=$?
23785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786   (exit $ac_status); }; }; then
23787   eval "$as_ac_var=yes"
23788 else
23789   echo "$as_me: failed program was:" >&5
23790 sed 's/^/| /' conftest.$ac_ext >&5
23791
23792         eval "$as_ac_var=no"
23793 fi
23794
23795 rm -f core conftest.err conftest.$ac_objext \
23796       conftest$ac_exeext conftest.$ac_ext
23797 fi
23798 ac_res=`eval echo '${'$as_ac_var'}'`
23799                { echo "$as_me:$LINENO: result: $ac_res" >&5
23800 echo "${ECHO_T}$ac_res" >&6; }
23801 if test `eval echo '${'$as_ac_var'}'` = yes; then
23802   cat >>confdefs.h <<_ACEOF
23803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23804 _ACEOF
23805
23806 fi
23807 done
23808
23809   LIBS=$gl_saved_libs
23810
23811   fi
23812
23813
23814
23815
23816 cat >>confdefs.h <<\_ACEOF
23817 #define PREFER_NONREENTRANT_EUIDACCESS 1
23818 _ACEOF
23819
23820
23821
23822
23823 for ac_func in readlink
23824 do
23825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23826 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23828 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23829   echo $ECHO_N "(cached) $ECHO_C" >&6
23830 else
23831   cat >conftest.$ac_ext <<_ACEOF
23832 /* confdefs.h.  */
23833 _ACEOF
23834 cat confdefs.h >>conftest.$ac_ext
23835 cat >>conftest.$ac_ext <<_ACEOF
23836 /* end confdefs.h.  */
23837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23838    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23839 #define $ac_func innocuous_$ac_func
23840
23841 /* System header to define __stub macros and hopefully few prototypes,
23842     which can conflict with char $ac_func (); below.
23843     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23844     <limits.h> exists even on freestanding compilers.  */
23845
23846 #ifdef __STDC__
23847 # include <limits.h>
23848 #else
23849 # include <assert.h>
23850 #endif
23851
23852 #undef $ac_func
23853
23854 /* Override any GCC internal prototype to avoid an error.
23855    Use char because int might match the return type of a GCC
23856    builtin and then its argument prototype would still apply.  */
23857 #ifdef __cplusplus
23858 extern "C"
23859 #endif
23860 char $ac_func ();
23861 /* The GNU C library defines this for functions which it implements
23862     to always fail with ENOSYS.  Some functions are actually named
23863     something starting with __ and the normal name is an alias.  */
23864 #if defined __stub_$ac_func || defined __stub___$ac_func
23865 choke me
23866 #endif
23867
23868 int
23869 main ()
23870 {
23871 return $ac_func ();
23872   ;
23873   return 0;
23874 }
23875 _ACEOF
23876 rm -f conftest.$ac_objext conftest$ac_exeext
23877 if { (ac_try="$ac_link"
23878 case "(($ac_try" in
23879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23880   *) ac_try_echo=$ac_try;;
23881 esac
23882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23883   (eval "$ac_link") 2>conftest.er1
23884   ac_status=$?
23885   grep -v '^ *+' conftest.er1 >conftest.err
23886   rm -f conftest.er1
23887   cat conftest.err >&5
23888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889   (exit $ac_status); } &&
23890          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23891   { (case "(($ac_try" in
23892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23893   *) ac_try_echo=$ac_try;;
23894 esac
23895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23896   (eval "$ac_try") 2>&5
23897   ac_status=$?
23898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899   (exit $ac_status); }; } &&
23900          { ac_try='test -s conftest$ac_exeext'
23901   { (case "(($ac_try" in
23902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23903   *) ac_try_echo=$ac_try;;
23904 esac
23905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23906   (eval "$ac_try") 2>&5
23907   ac_status=$?
23908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909   (exit $ac_status); }; }; then
23910   eval "$as_ac_var=yes"
23911 else
23912   echo "$as_me: failed program was:" >&5
23913 sed 's/^/| /' conftest.$ac_ext >&5
23914
23915         eval "$as_ac_var=no"
23916 fi
23917
23918 rm -f core conftest.err conftest.$ac_objext \
23919       conftest$ac_exeext conftest.$ac_ext
23920 fi
23921 ac_res=`eval echo '${'$as_ac_var'}'`
23922                { echo "$as_me:$LINENO: result: $ac_res" >&5
23923 echo "${ECHO_T}$ac_res" >&6; }
23924 if test `eval echo '${'$as_ac_var'}'` = yes; then
23925   cat >>confdefs.h <<_ACEOF
23926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23927 _ACEOF
23928
23929 fi
23930 done
23931
23932   if test $ac_cv_func_readlink = no; then
23933     case " $LIBOBJS " in
23934   *" readlink.$ac_objext "* ) ;;
23935   *) LIBOBJS="$LIBOBJS readlink.$ac_objext"
23936  ;;
23937 esac
23938
23939
23940   :
23941
23942   fi
23943
23944
23945
23946 for ac_func in rmdir
23947 do
23948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23952   echo $ECHO_N "(cached) $ECHO_C" >&6
23953 else
23954   cat >conftest.$ac_ext <<_ACEOF
23955 /* confdefs.h.  */
23956 _ACEOF
23957 cat confdefs.h >>conftest.$ac_ext
23958 cat >>conftest.$ac_ext <<_ACEOF
23959 /* end confdefs.h.  */
23960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23962 #define $ac_func innocuous_$ac_func
23963
23964 /* System header to define __stub macros and hopefully few prototypes,
23965     which can conflict with char $ac_func (); below.
23966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23967     <limits.h> exists even on freestanding compilers.  */
23968
23969 #ifdef __STDC__
23970 # include <limits.h>
23971 #else
23972 # include <assert.h>
23973 #endif
23974
23975 #undef $ac_func
23976
23977 /* Override any GCC internal prototype to avoid an error.
23978    Use char because int might match the return type of a GCC
23979    builtin and then its argument prototype would still apply.  */
23980 #ifdef __cplusplus
23981 extern "C"
23982 #endif
23983 char $ac_func ();
23984 /* The GNU C library defines this for functions which it implements
23985     to always fail with ENOSYS.  Some functions are actually named
23986     something starting with __ and the normal name is an alias.  */
23987 #if defined __stub_$ac_func || defined __stub___$ac_func
23988 choke me
23989 #endif
23990
23991 int
23992 main ()
23993 {
23994 return $ac_func ();
23995   ;
23996   return 0;
23997 }
23998 _ACEOF
23999 rm -f conftest.$ac_objext conftest$ac_exeext
24000 if { (ac_try="$ac_link"
24001 case "(($ac_try" in
24002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24003   *) ac_try_echo=$ac_try;;
24004 esac
24005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24006   (eval "$ac_link") 2>conftest.er1
24007   ac_status=$?
24008   grep -v '^ *+' conftest.er1 >conftest.err
24009   rm -f conftest.er1
24010   cat conftest.err >&5
24011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012   (exit $ac_status); } &&
24013          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24014   { (case "(($ac_try" in
24015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24016   *) ac_try_echo=$ac_try;;
24017 esac
24018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24019   (eval "$ac_try") 2>&5
24020   ac_status=$?
24021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022   (exit $ac_status); }; } &&
24023          { ac_try='test -s conftest$ac_exeext'
24024   { (case "(($ac_try" in
24025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24026   *) ac_try_echo=$ac_try;;
24027 esac
24028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24029   (eval "$ac_try") 2>&5
24030   ac_status=$?
24031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24032   (exit $ac_status); }; }; then
24033   eval "$as_ac_var=yes"
24034 else
24035   echo "$as_me: failed program was:" >&5
24036 sed 's/^/| /' conftest.$ac_ext >&5
24037
24038         eval "$as_ac_var=no"
24039 fi
24040
24041 rm -f core conftest.err conftest.$ac_objext \
24042       conftest$ac_exeext conftest.$ac_ext
24043 fi
24044 ac_res=`eval echo '${'$as_ac_var'}'`
24045                { echo "$as_me:$LINENO: result: $ac_res" >&5
24046 echo "${ECHO_T}$ac_res" >&6; }
24047 if test `eval echo '${'$as_ac_var'}'` = yes; then
24048   cat >>confdefs.h <<_ACEOF
24049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24050 _ACEOF
24051
24052 else
24053   case " $LIBOBJS " in
24054   *" $ac_func.$ac_objext "* ) ;;
24055   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24056  ;;
24057 esac
24058
24059 fi
24060 done
24061
24062
24063
24064
24065
24066 for ac_func in rpmatch
24067 do
24068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24069 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24071 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24072   echo $ECHO_N "(cached) $ECHO_C" >&6
24073 else
24074   cat >conftest.$ac_ext <<_ACEOF
24075 /* confdefs.h.  */
24076 _ACEOF
24077 cat confdefs.h >>conftest.$ac_ext
24078 cat >>conftest.$ac_ext <<_ACEOF
24079 /* end confdefs.h.  */
24080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24081    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24082 #define $ac_func innocuous_$ac_func
24083
24084 /* System header to define __stub macros and hopefully few prototypes,
24085     which can conflict with char $ac_func (); below.
24086     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24087     <limits.h> exists even on freestanding compilers.  */
24088
24089 #ifdef __STDC__
24090 # include <limits.h>
24091 #else
24092 # include <assert.h>
24093 #endif
24094
24095 #undef $ac_func
24096
24097 /* Override any GCC internal prototype to avoid an error.
24098    Use char because int might match the return type of a GCC
24099    builtin and then its argument prototype would still apply.  */
24100 #ifdef __cplusplus
24101 extern "C"
24102 #endif
24103 char $ac_func ();
24104 /* The GNU C library defines this for functions which it implements
24105     to always fail with ENOSYS.  Some functions are actually named
24106     something starting with __ and the normal name is an alias.  */
24107 #if defined __stub_$ac_func || defined __stub___$ac_func
24108 choke me
24109 #endif
24110
24111 int
24112 main ()
24113 {
24114 return $ac_func ();
24115   ;
24116   return 0;
24117 }
24118 _ACEOF
24119 rm -f conftest.$ac_objext conftest$ac_exeext
24120 if { (ac_try="$ac_link"
24121 case "(($ac_try" in
24122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24123   *) ac_try_echo=$ac_try;;
24124 esac
24125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24126   (eval "$ac_link") 2>conftest.er1
24127   ac_status=$?
24128   grep -v '^ *+' conftest.er1 >conftest.err
24129   rm -f conftest.er1
24130   cat conftest.err >&5
24131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132   (exit $ac_status); } &&
24133          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24134   { (case "(($ac_try" in
24135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24136   *) ac_try_echo=$ac_try;;
24137 esac
24138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24139   (eval "$ac_try") 2>&5
24140   ac_status=$?
24141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24142   (exit $ac_status); }; } &&
24143          { ac_try='test -s conftest$ac_exeext'
24144   { (case "(($ac_try" in
24145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24146   *) ac_try_echo=$ac_try;;
24147 esac
24148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24149   (eval "$ac_try") 2>&5
24150   ac_status=$?
24151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152   (exit $ac_status); }; }; then
24153   eval "$as_ac_var=yes"
24154 else
24155   echo "$as_me: failed program was:" >&5
24156 sed 's/^/| /' conftest.$ac_ext >&5
24157
24158         eval "$as_ac_var=no"
24159 fi
24160
24161 rm -f core conftest.err conftest.$ac_objext \
24162       conftest$ac_exeext conftest.$ac_ext
24163 fi
24164 ac_res=`eval echo '${'$as_ac_var'}'`
24165                { echo "$as_me:$LINENO: result: $ac_res" >&5
24166 echo "${ECHO_T}$ac_res" >&6; }
24167 if test `eval echo '${'$as_ac_var'}'` = yes; then
24168   cat >>confdefs.h <<_ACEOF
24169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24170 _ACEOF
24171
24172 else
24173   case " $LIBOBJS " in
24174   *" $ac_func.$ac_objext "* ) ;;
24175   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24176  ;;
24177 esac
24178
24179 fi
24180 done
24181
24182
24183   if test $ac_cv_func_rpmatch = no; then
24184     :
24185   fi
24186
24187
24188
24189
24190
24191
24192 for ac_func in setenv unsetenv
24193 do
24194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24195 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24197 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24198   echo $ECHO_N "(cached) $ECHO_C" >&6
24199 else
24200   cat >conftest.$ac_ext <<_ACEOF
24201 /* confdefs.h.  */
24202 _ACEOF
24203 cat confdefs.h >>conftest.$ac_ext
24204 cat >>conftest.$ac_ext <<_ACEOF
24205 /* end confdefs.h.  */
24206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24207    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24208 #define $ac_func innocuous_$ac_func
24209
24210 /* System header to define __stub macros and hopefully few prototypes,
24211     which can conflict with char $ac_func (); below.
24212     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24213     <limits.h> exists even on freestanding compilers.  */
24214
24215 #ifdef __STDC__
24216 # include <limits.h>
24217 #else
24218 # include <assert.h>
24219 #endif
24220
24221 #undef $ac_func
24222
24223 /* Override any GCC internal prototype to avoid an error.
24224    Use char because int might match the return type of a GCC
24225    builtin and then its argument prototype would still apply.  */
24226 #ifdef __cplusplus
24227 extern "C"
24228 #endif
24229 char $ac_func ();
24230 /* The GNU C library defines this for functions which it implements
24231     to always fail with ENOSYS.  Some functions are actually named
24232     something starting with __ and the normal name is an alias.  */
24233 #if defined __stub_$ac_func || defined __stub___$ac_func
24234 choke me
24235 #endif
24236
24237 int
24238 main ()
24239 {
24240 return $ac_func ();
24241   ;
24242   return 0;
24243 }
24244 _ACEOF
24245 rm -f conftest.$ac_objext conftest$ac_exeext
24246 if { (ac_try="$ac_link"
24247 case "(($ac_try" in
24248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24249   *) ac_try_echo=$ac_try;;
24250 esac
24251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24252   (eval "$ac_link") 2>conftest.er1
24253   ac_status=$?
24254   grep -v '^ *+' conftest.er1 >conftest.err
24255   rm -f conftest.er1
24256   cat conftest.err >&5
24257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258   (exit $ac_status); } &&
24259          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24260   { (case "(($ac_try" in
24261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24262   *) ac_try_echo=$ac_try;;
24263 esac
24264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24265   (eval "$ac_try") 2>&5
24266   ac_status=$?
24267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268   (exit $ac_status); }; } &&
24269          { ac_try='test -s conftest$ac_exeext'
24270   { (case "(($ac_try" in
24271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24272   *) ac_try_echo=$ac_try;;
24273 esac
24274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24275   (eval "$ac_try") 2>&5
24276   ac_status=$?
24277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278   (exit $ac_status); }; }; then
24279   eval "$as_ac_var=yes"
24280 else
24281   echo "$as_me: failed program was:" >&5
24282 sed 's/^/| /' conftest.$ac_ext >&5
24283
24284         eval "$as_ac_var=no"
24285 fi
24286
24287 rm -f core conftest.err conftest.$ac_objext \
24288       conftest$ac_exeext conftest.$ac_ext
24289 fi
24290 ac_res=`eval echo '${'$as_ac_var'}'`
24291                { echo "$as_me:$LINENO: result: $ac_res" >&5
24292 echo "${ECHO_T}$ac_res" >&6; }
24293 if test `eval echo '${'$as_ac_var'}'` = yes; then
24294   cat >>confdefs.h <<_ACEOF
24295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24296 _ACEOF
24297
24298 else
24299   case " $LIBOBJS " in
24300   *" $ac_func.$ac_objext "* ) ;;
24301   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24302  ;;
24303 esac
24304
24305 fi
24306 done
24307
24308
24309   if test $ac_cv_func_setenv = no; then
24310
24311
24312
24313
24314
24315
24316
24317
24318
24319 for ac_header in search.h
24320 do
24321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24323   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24326   echo $ECHO_N "(cached) $ECHO_C" >&6
24327 fi
24328 ac_res=`eval echo '${'$as_ac_Header'}'`
24329                { echo "$as_me:$LINENO: result: $ac_res" >&5
24330 echo "${ECHO_T}$ac_res" >&6; }
24331 else
24332   # Is the header compilable?
24333 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24335 cat >conftest.$ac_ext <<_ACEOF
24336 /* confdefs.h.  */
24337 _ACEOF
24338 cat confdefs.h >>conftest.$ac_ext
24339 cat >>conftest.$ac_ext <<_ACEOF
24340 /* end confdefs.h.  */
24341 $ac_includes_default
24342 #include <$ac_header>
24343 _ACEOF
24344 rm -f conftest.$ac_objext
24345 if { (ac_try="$ac_compile"
24346 case "(($ac_try" in
24347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24348   *) ac_try_echo=$ac_try;;
24349 esac
24350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24351   (eval "$ac_compile") 2>conftest.er1
24352   ac_status=$?
24353   grep -v '^ *+' conftest.er1 >conftest.err
24354   rm -f conftest.er1
24355   cat conftest.err >&5
24356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357   (exit $ac_status); } &&
24358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24359   { (case "(($ac_try" in
24360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24361   *) ac_try_echo=$ac_try;;
24362 esac
24363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24364   (eval "$ac_try") 2>&5
24365   ac_status=$?
24366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24367   (exit $ac_status); }; } &&
24368          { ac_try='test -s conftest.$ac_objext'
24369   { (case "(($ac_try" in
24370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24371   *) ac_try_echo=$ac_try;;
24372 esac
24373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24374   (eval "$ac_try") 2>&5
24375   ac_status=$?
24376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377   (exit $ac_status); }; }; then
24378   ac_header_compiler=yes
24379 else
24380   echo "$as_me: failed program was:" >&5
24381 sed 's/^/| /' conftest.$ac_ext >&5
24382
24383         ac_header_compiler=no
24384 fi
24385
24386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24388 echo "${ECHO_T}$ac_header_compiler" >&6; }
24389
24390 # Is the header present?
24391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24393 cat >conftest.$ac_ext <<_ACEOF
24394 /* confdefs.h.  */
24395 _ACEOF
24396 cat confdefs.h >>conftest.$ac_ext
24397 cat >>conftest.$ac_ext <<_ACEOF
24398 /* end confdefs.h.  */
24399 #include <$ac_header>
24400 _ACEOF
24401 if { (ac_try="$ac_cpp conftest.$ac_ext"
24402 case "(($ac_try" in
24403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24404   *) ac_try_echo=$ac_try;;
24405 esac
24406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24408   ac_status=$?
24409   grep -v '^ *+' conftest.er1 >conftest.err
24410   rm -f conftest.er1
24411   cat conftest.err >&5
24412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413   (exit $ac_status); } >/dev/null; then
24414   if test -s conftest.err; then
24415     ac_cpp_err=$ac_c_preproc_warn_flag
24416     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24417   else
24418     ac_cpp_err=
24419   fi
24420 else
24421   ac_cpp_err=yes
24422 fi
24423 if test -z "$ac_cpp_err"; then
24424   ac_header_preproc=yes
24425 else
24426   echo "$as_me: failed program was:" >&5
24427 sed 's/^/| /' conftest.$ac_ext >&5
24428
24429   ac_header_preproc=no
24430 fi
24431
24432 rm -f conftest.err conftest.$ac_ext
24433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24434 echo "${ECHO_T}$ac_header_preproc" >&6; }
24435
24436 # So?  What about this header?
24437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24438   yes:no: )
24439     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24443     ac_header_preproc=yes
24444     ;;
24445   no:yes:* )
24446     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24448     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24449 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24450     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24452     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24453 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24454     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24456     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24458     ( cat <<\_ASBOX
24459 ## ------------------------------------ ##
24460 ## Report this to bug-coreutils@gnu.org ##
24461 ## ------------------------------------ ##
24462 _ASBOX
24463      ) | sed "s/^/$as_me: WARNING:     /" >&2
24464     ;;
24465 esac
24466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24469   echo $ECHO_N "(cached) $ECHO_C" >&6
24470 else
24471   eval "$as_ac_Header=\$ac_header_preproc"
24472 fi
24473 ac_res=`eval echo '${'$as_ac_Header'}'`
24474                { echo "$as_me:$LINENO: result: $ac_res" >&5
24475 echo "${ECHO_T}$ac_res" >&6; }
24476
24477 fi
24478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24479   cat >>confdefs.h <<_ACEOF
24480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24481 _ACEOF
24482
24483 fi
24484
24485 done
24486
24487
24488 for ac_func in tsearch
24489 do
24490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24491 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24494   echo $ECHO_N "(cached) $ECHO_C" >&6
24495 else
24496   cat >conftest.$ac_ext <<_ACEOF
24497 /* confdefs.h.  */
24498 _ACEOF
24499 cat confdefs.h >>conftest.$ac_ext
24500 cat >>conftest.$ac_ext <<_ACEOF
24501 /* end confdefs.h.  */
24502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24504 #define $ac_func innocuous_$ac_func
24505
24506 /* System header to define __stub macros and hopefully few prototypes,
24507     which can conflict with char $ac_func (); below.
24508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24509     <limits.h> exists even on freestanding compilers.  */
24510
24511 #ifdef __STDC__
24512 # include <limits.h>
24513 #else
24514 # include <assert.h>
24515 #endif
24516
24517 #undef $ac_func
24518
24519 /* Override any GCC internal prototype to avoid an error.
24520    Use char because int might match the return type of a GCC
24521    builtin and then its argument prototype would still apply.  */
24522 #ifdef __cplusplus
24523 extern "C"
24524 #endif
24525 char $ac_func ();
24526 /* The GNU C library defines this for functions which it implements
24527     to always fail with ENOSYS.  Some functions are actually named
24528     something starting with __ and the normal name is an alias.  */
24529 #if defined __stub_$ac_func || defined __stub___$ac_func
24530 choke me
24531 #endif
24532
24533 int
24534 main ()
24535 {
24536 return $ac_func ();
24537   ;
24538   return 0;
24539 }
24540 _ACEOF
24541 rm -f conftest.$ac_objext conftest$ac_exeext
24542 if { (ac_try="$ac_link"
24543 case "(($ac_try" in
24544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24545   *) ac_try_echo=$ac_try;;
24546 esac
24547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24548   (eval "$ac_link") 2>conftest.er1
24549   ac_status=$?
24550   grep -v '^ *+' conftest.er1 >conftest.err
24551   rm -f conftest.er1
24552   cat conftest.err >&5
24553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24554   (exit $ac_status); } &&
24555          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24556   { (case "(($ac_try" in
24557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24558   *) ac_try_echo=$ac_try;;
24559 esac
24560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24561   (eval "$ac_try") 2>&5
24562   ac_status=$?
24563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24564   (exit $ac_status); }; } &&
24565          { ac_try='test -s conftest$ac_exeext'
24566   { (case "(($ac_try" in
24567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24568   *) ac_try_echo=$ac_try;;
24569 esac
24570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24571   (eval "$ac_try") 2>&5
24572   ac_status=$?
24573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24574   (exit $ac_status); }; }; then
24575   eval "$as_ac_var=yes"
24576 else
24577   echo "$as_me: failed program was:" >&5
24578 sed 's/^/| /' conftest.$ac_ext >&5
24579
24580         eval "$as_ac_var=no"
24581 fi
24582
24583 rm -f core conftest.err conftest.$ac_objext \
24584       conftest$ac_exeext conftest.$ac_ext
24585 fi
24586 ac_res=`eval echo '${'$as_ac_var'}'`
24587                { echo "$as_me:$LINENO: result: $ac_res" >&5
24588 echo "${ECHO_T}$ac_res" >&6; }
24589 if test `eval echo '${'$as_ac_var'}'` = yes; then
24590   cat >>confdefs.h <<_ACEOF
24591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24592 _ACEOF
24593
24594 fi
24595 done
24596
24597
24598
24599   { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
24600 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
24601   if test "${gt_cv_var_environ_declaration+set}" = set; then
24602   echo $ECHO_N "(cached) $ECHO_C" >&6
24603 else
24604
24605     cat >conftest.$ac_ext <<_ACEOF
24606 /* confdefs.h.  */
24607 _ACEOF
24608 cat confdefs.h >>conftest.$ac_ext
24609 cat >>conftest.$ac_ext <<_ACEOF
24610 /* end confdefs.h.  */
24611 #include <unistd.h>
24612       extern struct { int foo; } environ;
24613 int
24614 main ()
24615 {
24616 environ.foo = 1;
24617   ;
24618   return 0;
24619 }
24620 _ACEOF
24621 rm -f conftest.$ac_objext
24622 if { (ac_try="$ac_compile"
24623 case "(($ac_try" in
24624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24625   *) ac_try_echo=$ac_try;;
24626 esac
24627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24628   (eval "$ac_compile") 2>conftest.er1
24629   ac_status=$?
24630   grep -v '^ *+' conftest.er1 >conftest.err
24631   rm -f conftest.er1
24632   cat conftest.err >&5
24633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634   (exit $ac_status); } &&
24635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24636   { (case "(($ac_try" in
24637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24638   *) ac_try_echo=$ac_try;;
24639 esac
24640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24641   (eval "$ac_try") 2>&5
24642   ac_status=$?
24643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644   (exit $ac_status); }; } &&
24645          { ac_try='test -s conftest.$ac_objext'
24646   { (case "(($ac_try" in
24647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24648   *) ac_try_echo=$ac_try;;
24649 esac
24650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24651   (eval "$ac_try") 2>&5
24652   ac_status=$?
24653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654   (exit $ac_status); }; }; then
24655   gt_cv_var_environ_declaration=no
24656 else
24657   echo "$as_me: failed program was:" >&5
24658 sed 's/^/| /' conftest.$ac_ext >&5
24659
24660         gt_cv_var_environ_declaration=yes
24661 fi
24662
24663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24664 fi
24665
24666   { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
24667 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
24668   if test $gt_cv_var_environ_declaration = yes; then
24669
24670 cat >>confdefs.h <<\_ACEOF
24671 #define HAVE_ENVIRON_DECL 1
24672 _ACEOF
24673
24674   fi
24675
24676
24677   fi
24678   if test $ac_cv_func_unsetenv = no; then
24679
24680
24681
24682
24683
24684
24685
24686
24687
24688   { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
24689 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
24690   if test "${gt_cv_var_environ_declaration+set}" = set; then
24691   echo $ECHO_N "(cached) $ECHO_C" >&6
24692 else
24693
24694     cat >conftest.$ac_ext <<_ACEOF
24695 /* confdefs.h.  */
24696 _ACEOF
24697 cat confdefs.h >>conftest.$ac_ext
24698 cat >>conftest.$ac_ext <<_ACEOF
24699 /* end confdefs.h.  */
24700 #include <unistd.h>
24701       extern struct { int foo; } environ;
24702 int
24703 main ()
24704 {
24705 environ.foo = 1;
24706   ;
24707   return 0;
24708 }
24709 _ACEOF
24710 rm -f conftest.$ac_objext
24711 if { (ac_try="$ac_compile"
24712 case "(($ac_try" in
24713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24714   *) ac_try_echo=$ac_try;;
24715 esac
24716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24717   (eval "$ac_compile") 2>conftest.er1
24718   ac_status=$?
24719   grep -v '^ *+' conftest.er1 >conftest.err
24720   rm -f conftest.er1
24721   cat conftest.err >&5
24722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723   (exit $ac_status); } &&
24724          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24725   { (case "(($ac_try" in
24726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24727   *) ac_try_echo=$ac_try;;
24728 esac
24729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24730   (eval "$ac_try") 2>&5
24731   ac_status=$?
24732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733   (exit $ac_status); }; } &&
24734          { ac_try='test -s conftest.$ac_objext'
24735   { (case "(($ac_try" in
24736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24737   *) ac_try_echo=$ac_try;;
24738 esac
24739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24740   (eval "$ac_try") 2>&5
24741   ac_status=$?
24742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743   (exit $ac_status); }; }; then
24744   gt_cv_var_environ_declaration=no
24745 else
24746   echo "$as_me: failed program was:" >&5
24747 sed 's/^/| /' conftest.$ac_ext >&5
24748
24749         gt_cv_var_environ_declaration=yes
24750 fi
24751
24752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24753 fi
24754
24755   { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
24756 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
24757   if test $gt_cv_var_environ_declaration = yes; then
24758
24759 cat >>confdefs.h <<\_ACEOF
24760 #define HAVE_ENVIRON_DECL 1
24761 _ACEOF
24762
24763   fi
24764
24765
24766   else
24767     { echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
24768 echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6; }
24769 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
24770   echo $ECHO_N "(cached) $ECHO_C" >&6
24771 else
24772   cat >conftest.$ac_ext <<_ACEOF
24773 /* confdefs.h.  */
24774 _ACEOF
24775 cat confdefs.h >>conftest.$ac_ext
24776 cat >>conftest.$ac_ext <<_ACEOF
24777 /* end confdefs.h.  */
24778 #include <stdlib.h>
24779 extern
24780 #ifdef __cplusplus
24781 "C"
24782 #endif
24783 #if defined(__STDC__) || defined(__cplusplus)
24784 int unsetenv (const char *name);
24785 #else
24786 int unsetenv();
24787 #endif
24788
24789 int
24790 main ()
24791 {
24792
24793   ;
24794   return 0;
24795 }
24796 _ACEOF
24797 rm -f conftest.$ac_objext
24798 if { (ac_try="$ac_compile"
24799 case "(($ac_try" in
24800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24801   *) ac_try_echo=$ac_try;;
24802 esac
24803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24804   (eval "$ac_compile") 2>conftest.er1
24805   ac_status=$?
24806   grep -v '^ *+' conftest.er1 >conftest.err
24807   rm -f conftest.er1
24808   cat conftest.err >&5
24809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24810   (exit $ac_status); } &&
24811          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24812   { (case "(($ac_try" in
24813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24814   *) ac_try_echo=$ac_try;;
24815 esac
24816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24817   (eval "$ac_try") 2>&5
24818   ac_status=$?
24819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820   (exit $ac_status); }; } &&
24821          { ac_try='test -s conftest.$ac_objext'
24822   { (case "(($ac_try" in
24823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24824   *) ac_try_echo=$ac_try;;
24825 esac
24826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24827   (eval "$ac_try") 2>&5
24828   ac_status=$?
24829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24830   (exit $ac_status); }; }; then
24831   gt_cv_func_unsetenv_ret='int'
24832 else
24833   echo "$as_me: failed program was:" >&5
24834 sed 's/^/| /' conftest.$ac_ext >&5
24835
24836         gt_cv_func_unsetenv_ret='void'
24837 fi
24838
24839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24840 fi
24841 { echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
24842 echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6; }
24843     if test $gt_cv_func_unsetenv_ret = 'void'; then
24844
24845 cat >>confdefs.h <<\_ACEOF
24846 #define VOID_UNSETENV 1
24847 _ACEOF
24848
24849     fi
24850   fi
24851
24852
24853
24854
24855
24856 for ac_func in sig2str
24857 do
24858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24859 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24861 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24862   echo $ECHO_N "(cached) $ECHO_C" >&6
24863 else
24864   cat >conftest.$ac_ext <<_ACEOF
24865 /* confdefs.h.  */
24866 _ACEOF
24867 cat confdefs.h >>conftest.$ac_ext
24868 cat >>conftest.$ac_ext <<_ACEOF
24869 /* end confdefs.h.  */
24870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24871    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24872 #define $ac_func innocuous_$ac_func
24873
24874 /* System header to define __stub macros and hopefully few prototypes,
24875     which can conflict with char $ac_func (); below.
24876     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24877     <limits.h> exists even on freestanding compilers.  */
24878
24879 #ifdef __STDC__
24880 # include <limits.h>
24881 #else
24882 # include <assert.h>
24883 #endif
24884
24885 #undef $ac_func
24886
24887 /* Override any GCC internal prototype to avoid an error.
24888    Use char because int might match the return type of a GCC
24889    builtin and then its argument prototype would still apply.  */
24890 #ifdef __cplusplus
24891 extern "C"
24892 #endif
24893 char $ac_func ();
24894 /* The GNU C library defines this for functions which it implements
24895     to always fail with ENOSYS.  Some functions are actually named
24896     something starting with __ and the normal name is an alias.  */
24897 #if defined __stub_$ac_func || defined __stub___$ac_func
24898 choke me
24899 #endif
24900
24901 int
24902 main ()
24903 {
24904 return $ac_func ();
24905   ;
24906   return 0;
24907 }
24908 _ACEOF
24909 rm -f conftest.$ac_objext conftest$ac_exeext
24910 if { (ac_try="$ac_link"
24911 case "(($ac_try" in
24912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24913   *) ac_try_echo=$ac_try;;
24914 esac
24915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24916   (eval "$ac_link") 2>conftest.er1
24917   ac_status=$?
24918   grep -v '^ *+' conftest.er1 >conftest.err
24919   rm -f conftest.er1
24920   cat conftest.err >&5
24921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24922   (exit $ac_status); } &&
24923          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24924   { (case "(($ac_try" in
24925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24926   *) ac_try_echo=$ac_try;;
24927 esac
24928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24929   (eval "$ac_try") 2>&5
24930   ac_status=$?
24931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932   (exit $ac_status); }; } &&
24933          { ac_try='test -s conftest$ac_exeext'
24934   { (case "(($ac_try" in
24935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24936   *) ac_try_echo=$ac_try;;
24937 esac
24938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24939   (eval "$ac_try") 2>&5
24940   ac_status=$?
24941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942   (exit $ac_status); }; }; then
24943   eval "$as_ac_var=yes"
24944 else
24945   echo "$as_me: failed program was:" >&5
24946 sed 's/^/| /' conftest.$ac_ext >&5
24947
24948         eval "$as_ac_var=no"
24949 fi
24950
24951 rm -f core conftest.err conftest.$ac_objext \
24952       conftest$ac_exeext conftest.$ac_ext
24953 fi
24954 ac_res=`eval echo '${'$as_ac_var'}'`
24955                { echo "$as_me:$LINENO: result: $ac_res" >&5
24956 echo "${ECHO_T}$ac_res" >&6; }
24957 if test `eval echo '${'$as_ac_var'}'` = yes; then
24958   cat >>confdefs.h <<_ACEOF
24959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24960 _ACEOF
24961
24962 else
24963   case " $LIBOBJS " in
24964   *" $ac_func.$ac_objext "* ) ;;
24965   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24966  ;;
24967 esac
24968
24969 fi
24970 done
24971
24972
24973   if test $ac_cv_func_sig2str = no; then
24974
24975   :
24976
24977   fi
24978
24979
24980
24981
24982
24983 for ac_func in stpcpy
24984 do
24985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24989   echo $ECHO_N "(cached) $ECHO_C" >&6
24990 else
24991   cat >conftest.$ac_ext <<_ACEOF
24992 /* confdefs.h.  */
24993 _ACEOF
24994 cat confdefs.h >>conftest.$ac_ext
24995 cat >>conftest.$ac_ext <<_ACEOF
24996 /* end confdefs.h.  */
24997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24998    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24999 #define $ac_func innocuous_$ac_func
25000
25001 /* System header to define __stub macros and hopefully few prototypes,
25002     which can conflict with char $ac_func (); below.
25003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25004     <limits.h> exists even on freestanding compilers.  */
25005
25006 #ifdef __STDC__
25007 # include <limits.h>
25008 #else
25009 # include <assert.h>
25010 #endif
25011
25012 #undef $ac_func
25013
25014 /* Override any GCC internal prototype to avoid an error.
25015    Use char because int might match the return type of a GCC
25016    builtin and then its argument prototype would still apply.  */
25017 #ifdef __cplusplus
25018 extern "C"
25019 #endif
25020 char $ac_func ();
25021 /* The GNU C library defines this for functions which it implements
25022     to always fail with ENOSYS.  Some functions are actually named
25023     something starting with __ and the normal name is an alias.  */
25024 #if defined __stub_$ac_func || defined __stub___$ac_func
25025 choke me
25026 #endif
25027
25028 int
25029 main ()
25030 {
25031 return $ac_func ();
25032   ;
25033   return 0;
25034 }
25035 _ACEOF
25036 rm -f conftest.$ac_objext conftest$ac_exeext
25037 if { (ac_try="$ac_link"
25038 case "(($ac_try" in
25039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25040   *) ac_try_echo=$ac_try;;
25041 esac
25042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25043   (eval "$ac_link") 2>conftest.er1
25044   ac_status=$?
25045   grep -v '^ *+' conftest.er1 >conftest.err
25046   rm -f conftest.er1
25047   cat conftest.err >&5
25048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049   (exit $ac_status); } &&
25050          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25051   { (case "(($ac_try" in
25052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25053   *) ac_try_echo=$ac_try;;
25054 esac
25055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25056   (eval "$ac_try") 2>&5
25057   ac_status=$?
25058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25059   (exit $ac_status); }; } &&
25060          { ac_try='test -s conftest$ac_exeext'
25061   { (case "(($ac_try" in
25062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25063   *) ac_try_echo=$ac_try;;
25064 esac
25065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25066   (eval "$ac_try") 2>&5
25067   ac_status=$?
25068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069   (exit $ac_status); }; }; then
25070   eval "$as_ac_var=yes"
25071 else
25072   echo "$as_me: failed program was:" >&5
25073 sed 's/^/| /' conftest.$ac_ext >&5
25074
25075         eval "$as_ac_var=no"
25076 fi
25077
25078 rm -f core conftest.err conftest.$ac_objext \
25079       conftest$ac_exeext conftest.$ac_ext
25080 fi
25081 ac_res=`eval echo '${'$as_ac_var'}'`
25082                { echo "$as_me:$LINENO: result: $ac_res" >&5
25083 echo "${ECHO_T}$ac_res" >&6; }
25084 if test `eval echo '${'$as_ac_var'}'` = yes; then
25085   cat >>confdefs.h <<_ACEOF
25086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25087 _ACEOF
25088
25089 else
25090   case " $LIBOBJS " in
25091   *" $ac_func.$ac_objext "* ) ;;
25092   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25093  ;;
25094 esac
25095
25096 fi
25097 done
25098
25099
25100   if test $ac_cv_func_stpcpy = no; then
25101
25102   :
25103
25104   fi
25105
25106
25107
25108 for ac_func in strcspn
25109 do
25110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25111 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25113 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25114   echo $ECHO_N "(cached) $ECHO_C" >&6
25115 else
25116   cat >conftest.$ac_ext <<_ACEOF
25117 /* confdefs.h.  */
25118 _ACEOF
25119 cat confdefs.h >>conftest.$ac_ext
25120 cat >>conftest.$ac_ext <<_ACEOF
25121 /* end confdefs.h.  */
25122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25123    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25124 #define $ac_func innocuous_$ac_func
25125
25126 /* System header to define __stub macros and hopefully few prototypes,
25127     which can conflict with char $ac_func (); below.
25128     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25129     <limits.h> exists even on freestanding compilers.  */
25130
25131 #ifdef __STDC__
25132 # include <limits.h>
25133 #else
25134 # include <assert.h>
25135 #endif
25136
25137 #undef $ac_func
25138
25139 /* Override any GCC internal prototype to avoid an error.
25140    Use char because int might match the return type of a GCC
25141    builtin and then its argument prototype would still apply.  */
25142 #ifdef __cplusplus
25143 extern "C"
25144 #endif
25145 char $ac_func ();
25146 /* The GNU C library defines this for functions which it implements
25147     to always fail with ENOSYS.  Some functions are actually named
25148     something starting with __ and the normal name is an alias.  */
25149 #if defined __stub_$ac_func || defined __stub___$ac_func
25150 choke me
25151 #endif
25152
25153 int
25154 main ()
25155 {
25156 return $ac_func ();
25157   ;
25158   return 0;
25159 }
25160 _ACEOF
25161 rm -f conftest.$ac_objext conftest$ac_exeext
25162 if { (ac_try="$ac_link"
25163 case "(($ac_try" in
25164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25165   *) ac_try_echo=$ac_try;;
25166 esac
25167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25168   (eval "$ac_link") 2>conftest.er1
25169   ac_status=$?
25170   grep -v '^ *+' conftest.er1 >conftest.err
25171   rm -f conftest.er1
25172   cat conftest.err >&5
25173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174   (exit $ac_status); } &&
25175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25176   { (case "(($ac_try" in
25177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25178   *) ac_try_echo=$ac_try;;
25179 esac
25180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25181   (eval "$ac_try") 2>&5
25182   ac_status=$?
25183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184   (exit $ac_status); }; } &&
25185          { ac_try='test -s conftest$ac_exeext'
25186   { (case "(($ac_try" in
25187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25188   *) ac_try_echo=$ac_try;;
25189 esac
25190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25191   (eval "$ac_try") 2>&5
25192   ac_status=$?
25193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194   (exit $ac_status); }; }; then
25195   eval "$as_ac_var=yes"
25196 else
25197   echo "$as_me: failed program was:" >&5
25198 sed 's/^/| /' conftest.$ac_ext >&5
25199
25200         eval "$as_ac_var=no"
25201 fi
25202
25203 rm -f core conftest.err conftest.$ac_objext \
25204       conftest$ac_exeext conftest.$ac_ext
25205 fi
25206 ac_res=`eval echo '${'$as_ac_var'}'`
25207                { echo "$as_me:$LINENO: result: $ac_res" >&5
25208 echo "${ECHO_T}$ac_res" >&6; }
25209 if test `eval echo '${'$as_ac_var'}'` = yes; then
25210   cat >>confdefs.h <<_ACEOF
25211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25212 _ACEOF
25213
25214 else
25215   case " $LIBOBJS " in
25216   *" $ac_func.$ac_objext "* ) ;;
25217   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25218  ;;
25219 esac
25220
25221 fi
25222 done
25223
25224
25225   if test $ac_cv_func_strcspn = no; then
25226     :
25227   fi
25228
25229 { echo "$as_me:$LINENO: checking whether strdup is declared" >&5
25230 echo $ECHO_N "checking whether strdup is declared... $ECHO_C" >&6; }
25231 if test "${ac_cv_have_decl_strdup+set}" = set; then
25232   echo $ECHO_N "(cached) $ECHO_C" >&6
25233 else
25234   cat >conftest.$ac_ext <<_ACEOF
25235 /* confdefs.h.  */
25236 _ACEOF
25237 cat confdefs.h >>conftest.$ac_ext
25238 cat >>conftest.$ac_ext <<_ACEOF
25239 /* end confdefs.h.  */
25240 $ac_includes_default
25241 int
25242 main ()
25243 {
25244 #ifndef strdup
25245   char *p = (char *) strdup;
25246   return !p;
25247 #endif
25248
25249   ;
25250   return 0;
25251 }
25252 _ACEOF
25253 rm -f conftest.$ac_objext
25254 if { (ac_try="$ac_compile"
25255 case "(($ac_try" in
25256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25257   *) ac_try_echo=$ac_try;;
25258 esac
25259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25260   (eval "$ac_compile") 2>conftest.er1
25261   ac_status=$?
25262   grep -v '^ *+' conftest.er1 >conftest.err
25263   rm -f conftest.er1
25264   cat conftest.err >&5
25265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25266   (exit $ac_status); } &&
25267          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25268   { (case "(($ac_try" in
25269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25270   *) ac_try_echo=$ac_try;;
25271 esac
25272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25273   (eval "$ac_try") 2>&5
25274   ac_status=$?
25275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276   (exit $ac_status); }; } &&
25277          { ac_try='test -s conftest.$ac_objext'
25278   { (case "(($ac_try" in
25279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25280   *) ac_try_echo=$ac_try;;
25281 esac
25282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25283   (eval "$ac_try") 2>&5
25284   ac_status=$?
25285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286   (exit $ac_status); }; }; then
25287   ac_cv_have_decl_strdup=yes
25288 else
25289   echo "$as_me: failed program was:" >&5
25290 sed 's/^/| /' conftest.$ac_ext >&5
25291
25292         ac_cv_have_decl_strdup=no
25293 fi
25294
25295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25296 fi
25297 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
25298 echo "${ECHO_T}$ac_cv_have_decl_strdup" >&6; }
25299 if test $ac_cv_have_decl_strdup = yes; then
25300
25301 cat >>confdefs.h <<_ACEOF
25302 #define HAVE_DECL_STRDUP 1
25303 _ACEOF
25304
25305
25306 else
25307   cat >>confdefs.h <<_ACEOF
25308 #define HAVE_DECL_STRDUP 0
25309 _ACEOF
25310
25311
25312 fi
25313
25314
25315
25316
25317
25318
25319 for ac_func in strdup
25320 do
25321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25322 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25325   echo $ECHO_N "(cached) $ECHO_C" >&6
25326 else
25327   cat >conftest.$ac_ext <<_ACEOF
25328 /* confdefs.h.  */
25329 _ACEOF
25330 cat confdefs.h >>conftest.$ac_ext
25331 cat >>conftest.$ac_ext <<_ACEOF
25332 /* end confdefs.h.  */
25333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25335 #define $ac_func innocuous_$ac_func
25336
25337 /* System header to define __stub macros and hopefully few prototypes,
25338     which can conflict with char $ac_func (); below.
25339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25340     <limits.h> exists even on freestanding compilers.  */
25341
25342 #ifdef __STDC__
25343 # include <limits.h>
25344 #else
25345 # include <assert.h>
25346 #endif
25347
25348 #undef $ac_func
25349
25350 /* Override any GCC internal prototype to avoid an error.
25351    Use char because int might match the return type of a GCC
25352    builtin and then its argument prototype would still apply.  */
25353 #ifdef __cplusplus
25354 extern "C"
25355 #endif
25356 char $ac_func ();
25357 /* The GNU C library defines this for functions which it implements
25358     to always fail with ENOSYS.  Some functions are actually named
25359     something starting with __ and the normal name is an alias.  */
25360 #if defined __stub_$ac_func || defined __stub___$ac_func
25361 choke me
25362 #endif
25363
25364 int
25365 main ()
25366 {
25367 return $ac_func ();
25368   ;
25369   return 0;
25370 }
25371 _ACEOF
25372 rm -f conftest.$ac_objext conftest$ac_exeext
25373 if { (ac_try="$ac_link"
25374 case "(($ac_try" in
25375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25376   *) ac_try_echo=$ac_try;;
25377 esac
25378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25379   (eval "$ac_link") 2>conftest.er1
25380   ac_status=$?
25381   grep -v '^ *+' conftest.er1 >conftest.err
25382   rm -f conftest.er1
25383   cat conftest.err >&5
25384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25385   (exit $ac_status); } &&
25386          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25387   { (case "(($ac_try" in
25388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25389   *) ac_try_echo=$ac_try;;
25390 esac
25391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25392   (eval "$ac_try") 2>&5
25393   ac_status=$?
25394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25395   (exit $ac_status); }; } &&
25396          { ac_try='test -s conftest$ac_exeext'
25397   { (case "(($ac_try" in
25398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25399   *) ac_try_echo=$ac_try;;
25400 esac
25401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25402   (eval "$ac_try") 2>&5
25403   ac_status=$?
25404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405   (exit $ac_status); }; }; then
25406   eval "$as_ac_var=yes"
25407 else
25408   echo "$as_me: failed program was:" >&5
25409 sed 's/^/| /' conftest.$ac_ext >&5
25410
25411         eval "$as_ac_var=no"
25412 fi
25413
25414 rm -f core conftest.err conftest.$ac_objext \
25415       conftest$ac_exeext conftest.$ac_ext
25416 fi
25417 ac_res=`eval echo '${'$as_ac_var'}'`
25418                { echo "$as_me:$LINENO: result: $ac_res" >&5
25419 echo "${ECHO_T}$ac_res" >&6; }
25420 if test `eval echo '${'$as_ac_var'}'` = yes; then
25421   cat >>confdefs.h <<_ACEOF
25422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25423 _ACEOF
25424
25425 else
25426   case " $LIBOBJS " in
25427   *" $ac_func.$ac_objext "* ) ;;
25428   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25429  ;;
25430 esac
25431
25432 fi
25433 done
25434
25435
25436
25437
25438
25439
25440   :
25441
25442 { echo "$as_me:$LINENO: checking whether strndup is declared" >&5
25443 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6; }
25444 if test "${ac_cv_have_decl_strndup+set}" = set; then
25445   echo $ECHO_N "(cached) $ECHO_C" >&6
25446 else
25447   cat >conftest.$ac_ext <<_ACEOF
25448 /* confdefs.h.  */
25449 _ACEOF
25450 cat confdefs.h >>conftest.$ac_ext
25451 cat >>conftest.$ac_ext <<_ACEOF
25452 /* end confdefs.h.  */
25453 $ac_includes_default
25454 int
25455 main ()
25456 {
25457 #ifndef strndup
25458   char *p = (char *) strndup;
25459   return !p;
25460 #endif
25461
25462   ;
25463   return 0;
25464 }
25465 _ACEOF
25466 rm -f conftest.$ac_objext
25467 if { (ac_try="$ac_compile"
25468 case "(($ac_try" in
25469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25470   *) ac_try_echo=$ac_try;;
25471 esac
25472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25473   (eval "$ac_compile") 2>conftest.er1
25474   ac_status=$?
25475   grep -v '^ *+' conftest.er1 >conftest.err
25476   rm -f conftest.er1
25477   cat conftest.err >&5
25478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25479   (exit $ac_status); } &&
25480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25481   { (case "(($ac_try" in
25482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25483   *) ac_try_echo=$ac_try;;
25484 esac
25485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25486   (eval "$ac_try") 2>&5
25487   ac_status=$?
25488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489   (exit $ac_status); }; } &&
25490          { ac_try='test -s conftest.$ac_objext'
25491   { (case "(($ac_try" in
25492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25493   *) ac_try_echo=$ac_try;;
25494 esac
25495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25496   (eval "$ac_try") 2>&5
25497   ac_status=$?
25498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25499   (exit $ac_status); }; }; then
25500   ac_cv_have_decl_strndup=yes
25501 else
25502   echo "$as_me: failed program was:" >&5
25503 sed 's/^/| /' conftest.$ac_ext >&5
25504
25505         ac_cv_have_decl_strndup=no
25506 fi
25507
25508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25509 fi
25510 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
25511 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6; }
25512 if test $ac_cv_have_decl_strndup = yes; then
25513
25514 cat >>confdefs.h <<_ACEOF
25515 #define HAVE_DECL_STRNDUP 1
25516 _ACEOF
25517
25518
25519 else
25520   cat >>confdefs.h <<_ACEOF
25521 #define HAVE_DECL_STRNDUP 0
25522 _ACEOF
25523
25524
25525 fi
25526
25527
25528
25529
25530
25531
25532
25533
25534
25535
25536
25537
25538   # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
25539   { echo "$as_me:$LINENO: checking for working strndup" >&5
25540 echo $ECHO_N "checking for working strndup... $ECHO_C" >&6; }
25541 if test "${gl_cv_func_strndup+set}" = set; then
25542   echo $ECHO_N "(cached) $ECHO_C" >&6
25543 else
25544   if test "$cross_compiling" = yes; then
25545   { echo "$as_me:$LINENO: checking for strndup" >&5
25546 echo $ECHO_N "checking for strndup... $ECHO_C" >&6; }
25547 if test "${ac_cv_func_strndup+set}" = set; then
25548   echo $ECHO_N "(cached) $ECHO_C" >&6
25549 else
25550   cat >conftest.$ac_ext <<_ACEOF
25551 /* confdefs.h.  */
25552 _ACEOF
25553 cat confdefs.h >>conftest.$ac_ext
25554 cat >>conftest.$ac_ext <<_ACEOF
25555 /* end confdefs.h.  */
25556 /* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
25557    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25558 #define strndup innocuous_strndup
25559
25560 /* System header to define __stub macros and hopefully few prototypes,
25561     which can conflict with char strndup (); below.
25562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25563     <limits.h> exists even on freestanding compilers.  */
25564
25565 #ifdef __STDC__
25566 # include <limits.h>
25567 #else
25568 # include <assert.h>
25569 #endif
25570
25571 #undef strndup
25572
25573 /* Override any GCC internal prototype to avoid an error.
25574    Use char because int might match the return type of a GCC
25575    builtin and then its argument prototype would still apply.  */
25576 #ifdef __cplusplus
25577 extern "C"
25578 #endif
25579 char strndup ();
25580 /* The GNU C library defines this for functions which it implements
25581     to always fail with ENOSYS.  Some functions are actually named
25582     something starting with __ and the normal name is an alias.  */
25583 #if defined __stub_strndup || defined __stub___strndup
25584 choke me
25585 #endif
25586
25587 int
25588 main ()
25589 {
25590 return strndup ();
25591   ;
25592   return 0;
25593 }
25594 _ACEOF
25595 rm -f conftest.$ac_objext conftest$ac_exeext
25596 if { (ac_try="$ac_link"
25597 case "(($ac_try" in
25598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25599   *) ac_try_echo=$ac_try;;
25600 esac
25601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25602   (eval "$ac_link") 2>conftest.er1
25603   ac_status=$?
25604   grep -v '^ *+' conftest.er1 >conftest.err
25605   rm -f conftest.er1
25606   cat conftest.err >&5
25607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608   (exit $ac_status); } &&
25609          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25610   { (case "(($ac_try" in
25611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25612   *) ac_try_echo=$ac_try;;
25613 esac
25614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25615   (eval "$ac_try") 2>&5
25616   ac_status=$?
25617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618   (exit $ac_status); }; } &&
25619          { ac_try='test -s conftest$ac_exeext'
25620   { (case "(($ac_try" in
25621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25622   *) ac_try_echo=$ac_try;;
25623 esac
25624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25625   (eval "$ac_try") 2>&5
25626   ac_status=$?
25627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628   (exit $ac_status); }; }; then
25629   ac_cv_func_strndup=yes
25630 else
25631   echo "$as_me: failed program was:" >&5
25632 sed 's/^/| /' conftest.$ac_ext >&5
25633
25634         ac_cv_func_strndup=no
25635 fi
25636
25637 rm -f core conftest.err conftest.$ac_objext \
25638       conftest$ac_exeext conftest.$ac_ext
25639 fi
25640 { echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
25641 echo "${ECHO_T}$ac_cv_func_strndup" >&6; }
25642 if test $ac_cv_func_strndup = yes; then
25643   cat >conftest.$ac_ext <<_ACEOF
25644 /* confdefs.h.  */
25645 _ACEOF
25646 cat confdefs.h >>conftest.$ac_ext
25647 cat >>conftest.$ac_ext <<_ACEOF
25648 /* end confdefs.h.  */
25649
25650 #ifdef _AIX
25651                too risky
25652 #endif
25653
25654 _ACEOF
25655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25656   $EGREP "too risky" >/dev/null 2>&1; then
25657   gl_cv_func_strndup=no
25658 else
25659   gl_cv_func_strndup=yes
25660 fi
25661 rm -f conftest*
25662
25663 else
25664   gl_cv_func_strndup=no
25665 fi
25666
25667 else
25668   cat >conftest.$ac_ext <<_ACEOF
25669
25670        /* confdefs.h.  */
25671 _ACEOF
25672 cat confdefs.h >>conftest.$ac_ext
25673 cat >>conftest.$ac_ext <<_ACEOF
25674 /* end confdefs.h.  */
25675 #include <string.h>
25676 int
25677 main ()
25678 {
25679
25680 #ifndef HAVE_DECL_STRNDUP
25681   extern char *strndup (const char *, size_t);
25682 #endif
25683   char *s;
25684   s = strndup ("some longer string", 15);
25685   free (s);
25686   s = strndup ("shorter string", 13);
25687   return s[13] != '\0';
25688   ;
25689   return 0;
25690 }
25691 _ACEOF
25692 rm -f conftest$ac_exeext
25693 if { (ac_try="$ac_link"
25694 case "(($ac_try" in
25695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25696   *) ac_try_echo=$ac_try;;
25697 esac
25698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25699   (eval "$ac_link") 2>&5
25700   ac_status=$?
25701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25703   { (case "(($ac_try" in
25704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25705   *) ac_try_echo=$ac_try;;
25706 esac
25707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25708   (eval "$ac_try") 2>&5
25709   ac_status=$?
25710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711   (exit $ac_status); }; }; then
25712   gl_cv_func_strndup=yes
25713 else
25714   echo "$as_me: program exited with status $ac_status" >&5
25715 echo "$as_me: failed program was:" >&5
25716 sed 's/^/| /' conftest.$ac_ext >&5
25717
25718 ( exit $ac_status )
25719 gl_cv_func_strndup=no
25720 fi
25721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25722 fi
25723
25724
25725 fi
25726 { echo "$as_me:$LINENO: result: $gl_cv_func_strndup" >&5
25727 echo "${ECHO_T}$gl_cv_func_strndup" >&6; }
25728   if test $gl_cv_func_strndup = yes; then
25729
25730 cat >>confdefs.h <<\_ACEOF
25731 #define HAVE_STRNDUP 1
25732 _ACEOF
25733
25734   else
25735     case " $LIBOBJS " in
25736   *" strndup.$ac_objext "* ) ;;
25737   *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
25738  ;;
25739 esac
25740
25741
25742 cat >>confdefs.h <<\_ACEOF
25743 #define strndup rpl_strndup
25744 _ACEOF
25745
25746     :
25747   fi
25748
25749 { echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
25750 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6; }
25751 if test "${ac_cv_have_decl_strnlen+set}" = set; then
25752   echo $ECHO_N "(cached) $ECHO_C" >&6
25753 else
25754   cat >conftest.$ac_ext <<_ACEOF
25755 /* confdefs.h.  */
25756 _ACEOF
25757 cat confdefs.h >>conftest.$ac_ext
25758 cat >>conftest.$ac_ext <<_ACEOF
25759 /* end confdefs.h.  */
25760 $ac_includes_default
25761 int
25762 main ()
25763 {
25764 #ifndef strnlen
25765   char *p = (char *) strnlen;
25766   return !p;
25767 #endif
25768
25769   ;
25770   return 0;
25771 }
25772 _ACEOF
25773 rm -f conftest.$ac_objext
25774 if { (ac_try="$ac_compile"
25775 case "(($ac_try" in
25776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25777   *) ac_try_echo=$ac_try;;
25778 esac
25779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25780   (eval "$ac_compile") 2>conftest.er1
25781   ac_status=$?
25782   grep -v '^ *+' conftest.er1 >conftest.err
25783   rm -f conftest.er1
25784   cat conftest.err >&5
25785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25786   (exit $ac_status); } &&
25787          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25788   { (case "(($ac_try" in
25789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25790   *) ac_try_echo=$ac_try;;
25791 esac
25792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25793   (eval "$ac_try") 2>&5
25794   ac_status=$?
25795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796   (exit $ac_status); }; } &&
25797          { ac_try='test -s conftest.$ac_objext'
25798   { (case "(($ac_try" in
25799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25800   *) ac_try_echo=$ac_try;;
25801 esac
25802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25803   (eval "$ac_try") 2>&5
25804   ac_status=$?
25805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25806   (exit $ac_status); }; }; then
25807   ac_cv_have_decl_strnlen=yes
25808 else
25809   echo "$as_me: failed program was:" >&5
25810 sed 's/^/| /' conftest.$ac_ext >&5
25811
25812         ac_cv_have_decl_strnlen=no
25813 fi
25814
25815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25816 fi
25817 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
25818 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6; }
25819 if test $ac_cv_have_decl_strnlen = yes; then
25820
25821 cat >>confdefs.h <<_ACEOF
25822 #define HAVE_DECL_STRNLEN 1
25823 _ACEOF
25824
25825
25826 else
25827   cat >>confdefs.h <<_ACEOF
25828 #define HAVE_DECL_STRNLEN 0
25829 _ACEOF
25830
25831
25832 fi
25833
25834
25835
25836
25837
25838
25839
25840   { echo "$as_me:$LINENO: checking for working strnlen" >&5
25841 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
25842 if test "${ac_cv_func_strnlen_working+set}" = set; then
25843   echo $ECHO_N "(cached) $ECHO_C" >&6
25844 else
25845   if test "$cross_compiling" = yes; then
25846   ac_cv_func_strnlen_working=no
25847 else
25848   cat >conftest.$ac_ext <<_ACEOF
25849 /* confdefs.h.  */
25850 _ACEOF
25851 cat confdefs.h >>conftest.$ac_ext
25852 cat >>conftest.$ac_ext <<_ACEOF
25853 /* end confdefs.h.  */
25854 $ac_includes_default
25855 int
25856 main ()
25857 {
25858
25859 #define S "foobar"
25860 #define S_LEN (sizeof S - 1)
25861
25862   /* At least one implementation is buggy: that of AIX 4.3 would
25863      give strnlen (S, 1) == 3.  */
25864
25865   int i;
25866   for (i = 0; i < S_LEN + 1; ++i)
25867     {
25868       int expected = i <= S_LEN ? i : S_LEN;
25869       if (strnlen (S, i) != expected)
25870         return 1;
25871     }
25872   return 0;
25873
25874   ;
25875   return 0;
25876 }
25877 _ACEOF
25878 rm -f conftest$ac_exeext
25879 if { (ac_try="$ac_link"
25880 case "(($ac_try" in
25881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25882   *) ac_try_echo=$ac_try;;
25883 esac
25884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25885   (eval "$ac_link") 2>&5
25886   ac_status=$?
25887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25889   { (case "(($ac_try" in
25890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25891   *) ac_try_echo=$ac_try;;
25892 esac
25893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25894   (eval "$ac_try") 2>&5
25895   ac_status=$?
25896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897   (exit $ac_status); }; }; then
25898   ac_cv_func_strnlen_working=yes
25899 else
25900   echo "$as_me: program exited with status $ac_status" >&5
25901 echo "$as_me: failed program was:" >&5
25902 sed 's/^/| /' conftest.$ac_ext >&5
25903
25904 ( exit $ac_status )
25905 ac_cv_func_strnlen_working=no
25906 fi
25907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25908 fi
25909
25910
25911 fi
25912 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
25913 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
25914 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
25915   *" strnlen.$ac_objext "* ) ;;
25916   *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
25917  ;;
25918 esac
25919
25920
25921   if test $ac_cv_func_strnlen_working = no; then
25922     # This is necessary because automake-1.6.1 doens't understand
25923     # that the above use of AC_FUNC_STRNLEN means we may have to use
25924     # lib/strnlen.c.
25925     #AC_LIBOBJ(strnlen)
25926
25927 cat >>confdefs.h <<\_ACEOF
25928 #define strnlen rpl_strnlen
25929 _ACEOF
25930
25931
25932
25933
25934
25935
25936
25937   fi
25938
25939
25940
25941 for ac_func in strpbrk
25942 do
25943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25944 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25946 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25947   echo $ECHO_N "(cached) $ECHO_C" >&6
25948 else
25949   cat >conftest.$ac_ext <<_ACEOF
25950 /* confdefs.h.  */
25951 _ACEOF
25952 cat confdefs.h >>conftest.$ac_ext
25953 cat >>conftest.$ac_ext <<_ACEOF
25954 /* end confdefs.h.  */
25955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25956    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25957 #define $ac_func innocuous_$ac_func
25958
25959 /* System header to define __stub macros and hopefully few prototypes,
25960     which can conflict with char $ac_func (); below.
25961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25962     <limits.h> exists even on freestanding compilers.  */
25963
25964 #ifdef __STDC__
25965 # include <limits.h>
25966 #else
25967 # include <assert.h>
25968 #endif
25969
25970 #undef $ac_func
25971
25972 /* Override any GCC internal prototype to avoid an error.
25973    Use char because int might match the return type of a GCC
25974    builtin and then its argument prototype would still apply.  */
25975 #ifdef __cplusplus
25976 extern "C"
25977 #endif
25978 char $ac_func ();
25979 /* The GNU C library defines this for functions which it implements
25980     to always fail with ENOSYS.  Some functions are actually named
25981     something starting with __ and the normal name is an alias.  */
25982 #if defined __stub_$ac_func || defined __stub___$ac_func
25983 choke me
25984 #endif
25985
25986 int
25987 main ()
25988 {
25989 return $ac_func ();
25990   ;
25991   return 0;
25992 }
25993 _ACEOF
25994 rm -f conftest.$ac_objext conftest$ac_exeext
25995 if { (ac_try="$ac_link"
25996 case "(($ac_try" in
25997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25998   *) ac_try_echo=$ac_try;;
25999 esac
26000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26001   (eval "$ac_link") 2>conftest.er1
26002   ac_status=$?
26003   grep -v '^ *+' conftest.er1 >conftest.err
26004   rm -f conftest.er1
26005   cat conftest.err >&5
26006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007   (exit $ac_status); } &&
26008          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26009   { (case "(($ac_try" in
26010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26011   *) ac_try_echo=$ac_try;;
26012 esac
26013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26014   (eval "$ac_try") 2>&5
26015   ac_status=$?
26016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017   (exit $ac_status); }; } &&
26018          { ac_try='test -s conftest$ac_exeext'
26019   { (case "(($ac_try" in
26020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26021   *) ac_try_echo=$ac_try;;
26022 esac
26023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26024   (eval "$ac_try") 2>&5
26025   ac_status=$?
26026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027   (exit $ac_status); }; }; then
26028   eval "$as_ac_var=yes"
26029 else
26030   echo "$as_me: failed program was:" >&5
26031 sed 's/^/| /' conftest.$ac_ext >&5
26032
26033         eval "$as_ac_var=no"
26034 fi
26035
26036 rm -f core conftest.err conftest.$ac_objext \
26037       conftest$ac_exeext conftest.$ac_ext
26038 fi
26039 ac_res=`eval echo '${'$as_ac_var'}'`
26040                { echo "$as_me:$LINENO: result: $ac_res" >&5
26041 echo "${ECHO_T}$ac_res" >&6; }
26042 if test `eval echo '${'$as_ac_var'}'` = yes; then
26043   cat >>confdefs.h <<_ACEOF
26044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26045 _ACEOF
26046
26047 else
26048   case " $LIBOBJS " in
26049   *" $ac_func.$ac_objext "* ) ;;
26050   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
26051  ;;
26052 esac
26053
26054 fi
26055 done
26056
26057
26058   if test $ac_cv_func_strpbrk = no; then
26059     :
26060   fi
26061
26062
26063     { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
26064 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
26065 if test "${gl_cv_func_mbrtowc+set}" = set; then
26066   echo $ECHO_N "(cached) $ECHO_C" >&6
26067 else
26068   cat >conftest.$ac_ext <<_ACEOF
26069 /* confdefs.h.  */
26070 _ACEOF
26071 cat confdefs.h >>conftest.$ac_ext
26072 cat >>conftest.$ac_ext <<_ACEOF
26073 /* end confdefs.h.  */
26074 #include <wchar.h>
26075 int
26076 main ()
26077 {
26078 wchar_t wc;
26079               char const s[] = "";
26080               size_t n = 1;
26081               mbstate_t state;
26082               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
26083   ;
26084   return 0;
26085 }
26086 _ACEOF
26087 rm -f conftest.$ac_objext conftest$ac_exeext
26088 if { (ac_try="$ac_link"
26089 case "(($ac_try" in
26090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26091   *) ac_try_echo=$ac_try;;
26092 esac
26093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26094   (eval "$ac_link") 2>conftest.er1
26095   ac_status=$?
26096   grep -v '^ *+' conftest.er1 >conftest.err
26097   rm -f conftest.er1
26098   cat conftest.err >&5
26099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26100   (exit $ac_status); } &&
26101          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26102   { (case "(($ac_try" in
26103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26104   *) ac_try_echo=$ac_try;;
26105 esac
26106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26107   (eval "$ac_try") 2>&5
26108   ac_status=$?
26109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26110   (exit $ac_status); }; } &&
26111          { ac_try='test -s conftest$ac_exeext'
26112   { (case "(($ac_try" in
26113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26114   *) ac_try_echo=$ac_try;;
26115 esac
26116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26117   (eval "$ac_try") 2>&5
26118   ac_status=$?
26119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26120   (exit $ac_status); }; }; then
26121   gl_cv_func_mbrtowc=yes
26122 else
26123   echo "$as_me: failed program was:" >&5
26124 sed 's/^/| /' conftest.$ac_ext >&5
26125
26126         gl_cv_func_mbrtowc=no
26127 fi
26128
26129 rm -f core conftest.err conftest.$ac_objext \
26130       conftest$ac_exeext conftest.$ac_ext
26131 fi
26132 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
26133 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; }
26134   if test $gl_cv_func_mbrtowc = yes; then
26135
26136 cat >>confdefs.h <<\_ACEOF
26137 #define HAVE_MBRTOWC 1
26138 _ACEOF
26139
26140   fi
26141
26142
26143       case " $LIBOBJS " in
26144   *" strstr.$ac_objext "* ) ;;
26145   *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
26146  ;;
26147 esac
26148
26149
26150
26151   :
26152
26153
26154 { echo "$as_me:$LINENO: checking for working strtod" >&5
26155 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
26156 if test "${ac_cv_func_strtod+set}" = set; then
26157   echo $ECHO_N "(cached) $ECHO_C" >&6
26158 else
26159   if test "$cross_compiling" = yes; then
26160   ac_cv_func_strtod=no
26161 else
26162   cat >conftest.$ac_ext <<_ACEOF
26163 /* confdefs.h.  */
26164 _ACEOF
26165 cat confdefs.h >>conftest.$ac_ext
26166 cat >>conftest.$ac_ext <<_ACEOF
26167 /* end confdefs.h.  */
26168
26169 $ac_includes_default
26170 #ifndef strtod
26171 double strtod ();
26172 #endif
26173 int
26174 main()
26175 {
26176   {
26177     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
26178     char *string = " +69";
26179     char *term;
26180     double value;
26181     value = strtod (string, &term);
26182     if (value != 69 || term != (string + 4))
26183       return 1;
26184   }
26185
26186   {
26187     /* Under Solaris 2.4, strtod returns the wrong value for the
26188        terminating character under some conditions.  */
26189     char *string = "NaN";
26190     char *term;
26191     strtod (string, &term);
26192     if (term != string && *(term - 1) == 0)
26193       return 1;
26194   }
26195   return 0;
26196 }
26197
26198 _ACEOF
26199 rm -f conftest$ac_exeext
26200 if { (ac_try="$ac_link"
26201 case "(($ac_try" in
26202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26203   *) ac_try_echo=$ac_try;;
26204 esac
26205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26206   (eval "$ac_link") 2>&5
26207   ac_status=$?
26208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26209   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26210   { (case "(($ac_try" in
26211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26212   *) ac_try_echo=$ac_try;;
26213 esac
26214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26215   (eval "$ac_try") 2>&5
26216   ac_status=$?
26217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26218   (exit $ac_status); }; }; then
26219   ac_cv_func_strtod=yes
26220 else
26221   echo "$as_me: program exited with status $ac_status" >&5
26222 echo "$as_me: failed program was:" >&5
26223 sed 's/^/| /' conftest.$ac_ext >&5
26224
26225 ( exit $ac_status )
26226 ac_cv_func_strtod=no
26227 fi
26228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26229 fi
26230
26231
26232 fi
26233 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
26234 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
26235 if test $ac_cv_func_strtod = no; then
26236   case " $LIBOBJS " in
26237   *" strtod.$ac_objext "* ) ;;
26238   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
26239  ;;
26240 esac
26241
26242 { echo "$as_me:$LINENO: checking for pow" >&5
26243 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
26244 if test "${ac_cv_func_pow+set}" = set; then
26245   echo $ECHO_N "(cached) $ECHO_C" >&6
26246 else
26247   cat >conftest.$ac_ext <<_ACEOF
26248 /* confdefs.h.  */
26249 _ACEOF
26250 cat confdefs.h >>conftest.$ac_ext
26251 cat >>conftest.$ac_ext <<_ACEOF
26252 /* end confdefs.h.  */
26253 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
26254    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26255 #define pow innocuous_pow
26256
26257 /* System header to define __stub macros and hopefully few prototypes,
26258     which can conflict with char pow (); below.
26259     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26260     <limits.h> exists even on freestanding compilers.  */
26261
26262 #ifdef __STDC__
26263 # include <limits.h>
26264 #else
26265 # include <assert.h>
26266 #endif
26267
26268 #undef pow
26269
26270 /* Override any GCC internal prototype to avoid an error.
26271    Use char because int might match the return type of a GCC
26272    builtin and then its argument prototype would still apply.  */
26273 #ifdef __cplusplus
26274 extern "C"
26275 #endif
26276 char pow ();
26277 /* The GNU C library defines this for functions which it implements
26278     to always fail with ENOSYS.  Some functions are actually named
26279     something starting with __ and the normal name is an alias.  */
26280 #if defined __stub_pow || defined __stub___pow
26281 choke me
26282 #endif
26283
26284 int
26285 main ()
26286 {
26287 return pow ();
26288   ;
26289   return 0;
26290 }
26291 _ACEOF
26292 rm -f conftest.$ac_objext conftest$ac_exeext
26293 if { (ac_try="$ac_link"
26294 case "(($ac_try" in
26295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26296   *) ac_try_echo=$ac_try;;
26297 esac
26298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26299   (eval "$ac_link") 2>conftest.er1
26300   ac_status=$?
26301   grep -v '^ *+' conftest.er1 >conftest.err
26302   rm -f conftest.er1
26303   cat conftest.err >&5
26304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305   (exit $ac_status); } &&
26306          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26307   { (case "(($ac_try" in
26308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26309   *) ac_try_echo=$ac_try;;
26310 esac
26311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26312   (eval "$ac_try") 2>&5
26313   ac_status=$?
26314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315   (exit $ac_status); }; } &&
26316          { ac_try='test -s conftest$ac_exeext'
26317   { (case "(($ac_try" in
26318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26319   *) ac_try_echo=$ac_try;;
26320 esac
26321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26322   (eval "$ac_try") 2>&5
26323   ac_status=$?
26324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325   (exit $ac_status); }; }; then
26326   ac_cv_func_pow=yes
26327 else
26328   echo "$as_me: failed program was:" >&5
26329 sed 's/^/| /' conftest.$ac_ext >&5
26330
26331         ac_cv_func_pow=no
26332 fi
26333
26334 rm -f core conftest.err conftest.$ac_objext \
26335       conftest$ac_exeext conftest.$ac_ext
26336 fi
26337 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
26338 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
26339
26340 if test $ac_cv_func_pow = no; then
26341   { echo "$as_me:$LINENO: checking for pow in -lm" >&5
26342 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
26343 if test "${ac_cv_lib_m_pow+set}" = set; then
26344   echo $ECHO_N "(cached) $ECHO_C" >&6
26345 else
26346   ac_check_lib_save_LIBS=$LIBS
26347 LIBS="-lm  $LIBS"
26348 cat >conftest.$ac_ext <<_ACEOF
26349 /* confdefs.h.  */
26350 _ACEOF
26351 cat confdefs.h >>conftest.$ac_ext
26352 cat >>conftest.$ac_ext <<_ACEOF
26353 /* end confdefs.h.  */
26354
26355 /* Override any GCC internal prototype to avoid an error.
26356    Use char because int might match the return type of a GCC
26357    builtin and then its argument prototype would still apply.  */
26358 #ifdef __cplusplus
26359 extern "C"
26360 #endif
26361 char pow ();
26362 int
26363 main ()
26364 {
26365 return pow ();
26366   ;
26367   return 0;
26368 }
26369 _ACEOF
26370 rm -f conftest.$ac_objext conftest$ac_exeext
26371 if { (ac_try="$ac_link"
26372 case "(($ac_try" in
26373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26374   *) ac_try_echo=$ac_try;;
26375 esac
26376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26377   (eval "$ac_link") 2>conftest.er1
26378   ac_status=$?
26379   grep -v '^ *+' conftest.er1 >conftest.err
26380   rm -f conftest.er1
26381   cat conftest.err >&5
26382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26383   (exit $ac_status); } &&
26384          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26385   { (case "(($ac_try" in
26386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26387   *) ac_try_echo=$ac_try;;
26388 esac
26389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26390   (eval "$ac_try") 2>&5
26391   ac_status=$?
26392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393   (exit $ac_status); }; } &&
26394          { ac_try='test -s conftest$ac_exeext'
26395   { (case "(($ac_try" in
26396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26397   *) ac_try_echo=$ac_try;;
26398 esac
26399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26400   (eval "$ac_try") 2>&5
26401   ac_status=$?
26402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26403   (exit $ac_status); }; }; then
26404   ac_cv_lib_m_pow=yes
26405 else
26406   echo "$as_me: failed program was:" >&5
26407 sed 's/^/| /' conftest.$ac_ext >&5
26408
26409         ac_cv_lib_m_pow=no
26410 fi
26411
26412 rm -f core conftest.err conftest.$ac_objext \
26413       conftest$ac_exeext conftest.$ac_ext
26414 LIBS=$ac_check_lib_save_LIBS
26415 fi
26416 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
26417 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
26418 if test $ac_cv_lib_m_pow = yes; then
26419   POW_LIB=-lm
26420 else
26421   { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
26422 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
26423 fi
26424
26425 fi
26426
26427 fi
26428
26429
26430
26431   if test $ac_cv_func_strtod = no; then
26432
26433 cat >>confdefs.h <<\_ACEOF
26434 #define strtod rpl_strtod
26435 _ACEOF
26436
26437     :
26438   fi
26439
26440
26441
26442
26443
26444   { echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
26445 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6; }
26446 if test "${jm_cv_func_strtoimax_macro+set}" = set; then
26447   echo $ECHO_N "(cached) $ECHO_C" >&6
26448 else
26449   cat >conftest.$ac_ext <<_ACEOF
26450 /* confdefs.h.  */
26451 _ACEOF
26452 cat confdefs.h >>conftest.$ac_ext
26453 cat >>conftest.$ac_ext <<_ACEOF
26454 /* end confdefs.h.  */
26455 #include <inttypes.h>
26456 #ifdef strtoimax
26457  inttypes_h_defines_strtoimax
26458 #endif
26459 _ACEOF
26460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26461   $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
26462   jm_cv_func_strtoimax_macro=yes
26463 else
26464   jm_cv_func_strtoimax_macro=no
26465 fi
26466 rm -f conftest*
26467
26468 fi
26469 { echo "$as_me:$LINENO: result: $jm_cv_func_strtoimax_macro" >&5
26470 echo "${ECHO_T}$jm_cv_func_strtoimax_macro" >&6; }
26471
26472   if test "$jm_cv_func_strtoimax_macro" != yes; then
26473
26474 for ac_func in strtoimax
26475 do
26476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26477 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26480   echo $ECHO_N "(cached) $ECHO_C" >&6
26481 else
26482   cat >conftest.$ac_ext <<_ACEOF
26483 /* confdefs.h.  */
26484 _ACEOF
26485 cat confdefs.h >>conftest.$ac_ext
26486 cat >>conftest.$ac_ext <<_ACEOF
26487 /* end confdefs.h.  */
26488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26489    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26490 #define $ac_func innocuous_$ac_func
26491
26492 /* System header to define __stub macros and hopefully few prototypes,
26493     which can conflict with char $ac_func (); below.
26494     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26495     <limits.h> exists even on freestanding compilers.  */
26496
26497 #ifdef __STDC__
26498 # include <limits.h>
26499 #else
26500 # include <assert.h>
26501 #endif
26502
26503 #undef $ac_func
26504
26505 /* Override any GCC internal prototype to avoid an error.
26506    Use char because int might match the return type of a GCC
26507    builtin and then its argument prototype would still apply.  */
26508 #ifdef __cplusplus
26509 extern "C"
26510 #endif
26511 char $ac_func ();
26512 /* The GNU C library defines this for functions which it implements
26513     to always fail with ENOSYS.  Some functions are actually named
26514     something starting with __ and the normal name is an alias.  */
26515 #if defined __stub_$ac_func || defined __stub___$ac_func
26516 choke me
26517 #endif
26518
26519 int
26520 main ()
26521 {
26522 return $ac_func ();
26523   ;
26524   return 0;
26525 }
26526 _ACEOF
26527 rm -f conftest.$ac_objext conftest$ac_exeext
26528 if { (ac_try="$ac_link"
26529 case "(($ac_try" in
26530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26531   *) ac_try_echo=$ac_try;;
26532 esac
26533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26534   (eval "$ac_link") 2>conftest.er1
26535   ac_status=$?
26536   grep -v '^ *+' conftest.er1 >conftest.err
26537   rm -f conftest.er1
26538   cat conftest.err >&5
26539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26540   (exit $ac_status); } &&
26541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26542   { (case "(($ac_try" in
26543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26544   *) ac_try_echo=$ac_try;;
26545 esac
26546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26547   (eval "$ac_try") 2>&5
26548   ac_status=$?
26549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550   (exit $ac_status); }; } &&
26551          { ac_try='test -s conftest$ac_exeext'
26552   { (case "(($ac_try" in
26553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26554   *) ac_try_echo=$ac_try;;
26555 esac
26556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26557   (eval "$ac_try") 2>&5
26558   ac_status=$?
26559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26560   (exit $ac_status); }; }; then
26561   eval "$as_ac_var=yes"
26562 else
26563   echo "$as_me: failed program was:" >&5
26564 sed 's/^/| /' conftest.$ac_ext >&5
26565
26566         eval "$as_ac_var=no"
26567 fi
26568
26569 rm -f core conftest.err conftest.$ac_objext \
26570       conftest$ac_exeext conftest.$ac_ext
26571 fi
26572 ac_res=`eval echo '${'$as_ac_var'}'`
26573                { echo "$as_me:$LINENO: result: $ac_res" >&5
26574 echo "${ECHO_T}$ac_res" >&6; }
26575 if test `eval echo '${'$as_ac_var'}'` = yes; then
26576   cat >>confdefs.h <<_ACEOF
26577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26578 _ACEOF
26579
26580 else
26581   case " $LIBOBJS " in
26582   *" $ac_func.$ac_objext "* ) ;;
26583   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
26584  ;;
26585 esac
26586
26587 fi
26588 done
26589
26590
26591     if test $ac_cv_func_strtoimax = no; then
26592
26593
26594
26595
26596   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
26597
26598     test $ac_cv_type_long_long = yes \
26599       && ac_type='long long' \
26600       || ac_type='long'
26601
26602 cat >>confdefs.h <<_ACEOF
26603 #define intmax_t $ac_type
26604 _ACEOF
26605
26606   else
26607
26608 cat >>confdefs.h <<\_ACEOF
26609 #define HAVE_INTMAX_T 1
26610 _ACEOF
26611
26612   fi
26613
26614   { echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
26615 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6; }
26616 if test "${ac_cv_have_decl_strtoll+set}" = set; then
26617   echo $ECHO_N "(cached) $ECHO_C" >&6
26618 else
26619   cat >conftest.$ac_ext <<_ACEOF
26620 /* confdefs.h.  */
26621 _ACEOF
26622 cat confdefs.h >>conftest.$ac_ext
26623 cat >>conftest.$ac_ext <<_ACEOF
26624 /* end confdefs.h.  */
26625 $ac_includes_default
26626 int
26627 main ()
26628 {
26629 #ifndef strtoll
26630   char *p = (char *) strtoll;
26631   return !p;
26632 #endif
26633
26634   ;
26635   return 0;
26636 }
26637 _ACEOF
26638 rm -f conftest.$ac_objext
26639 if { (ac_try="$ac_compile"
26640 case "(($ac_try" in
26641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26642   *) ac_try_echo=$ac_try;;
26643 esac
26644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26645   (eval "$ac_compile") 2>conftest.er1
26646   ac_status=$?
26647   grep -v '^ *+' conftest.er1 >conftest.err
26648   rm -f conftest.er1
26649   cat conftest.err >&5
26650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651   (exit $ac_status); } &&
26652          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26653   { (case "(($ac_try" in
26654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26655   *) ac_try_echo=$ac_try;;
26656 esac
26657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26658   (eval "$ac_try") 2>&5
26659   ac_status=$?
26660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26661   (exit $ac_status); }; } &&
26662          { ac_try='test -s conftest.$ac_objext'
26663   { (case "(($ac_try" in
26664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26665   *) ac_try_echo=$ac_try;;
26666 esac
26667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26668   (eval "$ac_try") 2>&5
26669   ac_status=$?
26670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26671   (exit $ac_status); }; }; then
26672   ac_cv_have_decl_strtoll=yes
26673 else
26674   echo "$as_me: failed program was:" >&5
26675 sed 's/^/| /' conftest.$ac_ext >&5
26676
26677         ac_cv_have_decl_strtoll=no
26678 fi
26679
26680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26681 fi
26682 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
26683 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6; }
26684 if test $ac_cv_have_decl_strtoll = yes; then
26685
26686 cat >>confdefs.h <<_ACEOF
26687 #define HAVE_DECL_STRTOLL 1
26688 _ACEOF
26689
26690
26691 else
26692   cat >>confdefs.h <<_ACEOF
26693 #define HAVE_DECL_STRTOLL 0
26694 _ACEOF
26695
26696
26697 fi
26698
26699
26700
26701
26702     fi
26703   fi
26704
26705
26706
26707   if test "$ac_cv_type_long_long" = yes; then
26708
26709 for ac_func in strtoll
26710 do
26711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26715   echo $ECHO_N "(cached) $ECHO_C" >&6
26716 else
26717   cat >conftest.$ac_ext <<_ACEOF
26718 /* confdefs.h.  */
26719 _ACEOF
26720 cat confdefs.h >>conftest.$ac_ext
26721 cat >>conftest.$ac_ext <<_ACEOF
26722 /* end confdefs.h.  */
26723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26725 #define $ac_func innocuous_$ac_func
26726
26727 /* System header to define __stub macros and hopefully few prototypes,
26728     which can conflict with char $ac_func (); below.
26729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26730     <limits.h> exists even on freestanding compilers.  */
26731
26732 #ifdef __STDC__
26733 # include <limits.h>
26734 #else
26735 # include <assert.h>
26736 #endif
26737
26738 #undef $ac_func
26739
26740 /* Override any GCC internal prototype to avoid an error.
26741    Use char because int might match the return type of a GCC
26742    builtin and then its argument prototype would still apply.  */
26743 #ifdef __cplusplus
26744 extern "C"
26745 #endif
26746 char $ac_func ();
26747 /* The GNU C library defines this for functions which it implements
26748     to always fail with ENOSYS.  Some functions are actually named
26749     something starting with __ and the normal name is an alias.  */
26750 #if defined __stub_$ac_func || defined __stub___$ac_func
26751 choke me
26752 #endif
26753
26754 int
26755 main ()
26756 {
26757 return $ac_func ();
26758   ;
26759   return 0;
26760 }
26761 _ACEOF
26762 rm -f conftest.$ac_objext conftest$ac_exeext
26763 if { (ac_try="$ac_link"
26764 case "(($ac_try" in
26765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26766   *) ac_try_echo=$ac_try;;
26767 esac
26768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26769   (eval "$ac_link") 2>conftest.er1
26770   ac_status=$?
26771   grep -v '^ *+' conftest.er1 >conftest.err
26772   rm -f conftest.er1
26773   cat conftest.err >&5
26774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26775   (exit $ac_status); } &&
26776          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26777   { (case "(($ac_try" in
26778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26779   *) ac_try_echo=$ac_try;;
26780 esac
26781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26782   (eval "$ac_try") 2>&5
26783   ac_status=$?
26784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785   (exit $ac_status); }; } &&
26786          { ac_try='test -s conftest$ac_exeext'
26787   { (case "(($ac_try" in
26788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26789   *) ac_try_echo=$ac_try;;
26790 esac
26791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26792   (eval "$ac_try") 2>&5
26793   ac_status=$?
26794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26795   (exit $ac_status); }; }; then
26796   eval "$as_ac_var=yes"
26797 else
26798   echo "$as_me: failed program was:" >&5
26799 sed 's/^/| /' conftest.$ac_ext >&5
26800
26801         eval "$as_ac_var=no"
26802 fi
26803
26804 rm -f core conftest.err conftest.$ac_objext \
26805       conftest$ac_exeext conftest.$ac_ext
26806 fi
26807 ac_res=`eval echo '${'$as_ac_var'}'`
26808                { echo "$as_me:$LINENO: result: $ac_res" >&5
26809 echo "${ECHO_T}$ac_res" >&6; }
26810 if test `eval echo '${'$as_ac_var'}'` = yes; then
26811   cat >>confdefs.h <<_ACEOF
26812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26813 _ACEOF
26814
26815 else
26816   case " $LIBOBJS " in
26817   *" $ac_func.$ac_objext "* ) ;;
26818   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
26819  ;;
26820 esac
26821
26822 fi
26823 done
26824
26825
26826     if test $ac_cv_func_strtoll = no; then
26827
26828   :
26829
26830     fi
26831   fi
26832
26833
26834
26835 for ac_func in strtol
26836 do
26837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26838 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26840 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26841   echo $ECHO_N "(cached) $ECHO_C" >&6
26842 else
26843   cat >conftest.$ac_ext <<_ACEOF
26844 /* confdefs.h.  */
26845 _ACEOF
26846 cat confdefs.h >>conftest.$ac_ext
26847 cat >>conftest.$ac_ext <<_ACEOF
26848 /* end confdefs.h.  */
26849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26850    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26851 #define $ac_func innocuous_$ac_func
26852
26853 /* System header to define __stub macros and hopefully few prototypes,
26854     which can conflict with char $ac_func (); below.
26855     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26856     <limits.h> exists even on freestanding compilers.  */
26857
26858 #ifdef __STDC__
26859 # include <limits.h>
26860 #else
26861 # include <assert.h>
26862 #endif
26863
26864 #undef $ac_func
26865
26866 /* Override any GCC internal prototype to avoid an error.
26867    Use char because int might match the return type of a GCC
26868    builtin and then its argument prototype would still apply.  */
26869 #ifdef __cplusplus
26870 extern "C"
26871 #endif
26872 char $ac_func ();
26873 /* The GNU C library defines this for functions which it implements
26874     to always fail with ENOSYS.  Some functions are actually named
26875     something starting with __ and the normal name is an alias.  */
26876 #if defined __stub_$ac_func || defined __stub___$ac_func
26877 choke me
26878 #endif
26879
26880 int
26881 main ()
26882 {
26883 return $ac_func ();
26884   ;
26885   return 0;
26886 }
26887 _ACEOF
26888 rm -f conftest.$ac_objext conftest$ac_exeext
26889 if { (ac_try="$ac_link"
26890 case "(($ac_try" in
26891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26892   *) ac_try_echo=$ac_try;;
26893 esac
26894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26895   (eval "$ac_link") 2>conftest.er1
26896   ac_status=$?
26897   grep -v '^ *+' conftest.er1 >conftest.err
26898   rm -f conftest.er1
26899   cat conftest.err >&5
26900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26901   (exit $ac_status); } &&
26902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26903   { (case "(($ac_try" in
26904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26905   *) ac_try_echo=$ac_try;;
26906 esac
26907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26908   (eval "$ac_try") 2>&5
26909   ac_status=$?
26910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911   (exit $ac_status); }; } &&
26912          { ac_try='test -s conftest$ac_exeext'
26913   { (case "(($ac_try" in
26914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26915   *) ac_try_echo=$ac_try;;
26916 esac
26917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26918   (eval "$ac_try") 2>&5
26919   ac_status=$?
26920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921   (exit $ac_status); }; }; then
26922   eval "$as_ac_var=yes"
26923 else
26924   echo "$as_me: failed program was:" >&5
26925 sed 's/^/| /' conftest.$ac_ext >&5
26926
26927         eval "$as_ac_var=no"
26928 fi
26929
26930 rm -f core conftest.err conftest.$ac_objext \
26931       conftest$ac_exeext conftest.$ac_ext
26932 fi
26933 ac_res=`eval echo '${'$as_ac_var'}'`
26934                { echo "$as_me:$LINENO: result: $ac_res" >&5
26935 echo "${ECHO_T}$ac_res" >&6; }
26936 if test `eval echo '${'$as_ac_var'}'` = yes; then
26937   cat >>confdefs.h <<_ACEOF
26938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26939 _ACEOF
26940
26941 else
26942   case " $LIBOBJS " in
26943   *" $ac_func.$ac_objext "* ) ;;
26944   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
26945  ;;
26946 esac
26947
26948 fi
26949 done
26950
26951
26952
26953
26954
26955   if test "$ac_cv_type_unsigned_long_long" = yes; then
26956
26957 for ac_func in strtoull
26958 do
26959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26963   echo $ECHO_N "(cached) $ECHO_C" >&6
26964 else
26965   cat >conftest.$ac_ext <<_ACEOF
26966 /* confdefs.h.  */
26967 _ACEOF
26968 cat confdefs.h >>conftest.$ac_ext
26969 cat >>conftest.$ac_ext <<_ACEOF
26970 /* end confdefs.h.  */
26971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26973 #define $ac_func innocuous_$ac_func
26974
26975 /* System header to define __stub macros and hopefully few prototypes,
26976     which can conflict with char $ac_func (); below.
26977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26978     <limits.h> exists even on freestanding compilers.  */
26979
26980 #ifdef __STDC__
26981 # include <limits.h>
26982 #else
26983 # include <assert.h>
26984 #endif
26985
26986 #undef $ac_func
26987
26988 /* Override any GCC internal prototype to avoid an error.
26989    Use char because int might match the return type of a GCC
26990    builtin and then its argument prototype would still apply.  */
26991 #ifdef __cplusplus
26992 extern "C"
26993 #endif
26994 char $ac_func ();
26995 /* The GNU C library defines this for functions which it implements
26996     to always fail with ENOSYS.  Some functions are actually named
26997     something starting with __ and the normal name is an alias.  */
26998 #if defined __stub_$ac_func || defined __stub___$ac_func
26999 choke me
27000 #endif
27001
27002 int
27003 main ()
27004 {
27005 return $ac_func ();
27006   ;
27007   return 0;
27008 }
27009 _ACEOF
27010 rm -f conftest.$ac_objext conftest$ac_exeext
27011 if { (ac_try="$ac_link"
27012 case "(($ac_try" in
27013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27014   *) ac_try_echo=$ac_try;;
27015 esac
27016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27017   (eval "$ac_link") 2>conftest.er1
27018   ac_status=$?
27019   grep -v '^ *+' conftest.er1 >conftest.err
27020   rm -f conftest.er1
27021   cat conftest.err >&5
27022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27023   (exit $ac_status); } &&
27024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27025   { (case "(($ac_try" in
27026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27027   *) ac_try_echo=$ac_try;;
27028 esac
27029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27030   (eval "$ac_try") 2>&5
27031   ac_status=$?
27032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033   (exit $ac_status); }; } &&
27034          { ac_try='test -s conftest$ac_exeext'
27035   { (case "(($ac_try" in
27036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27037   *) ac_try_echo=$ac_try;;
27038 esac
27039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27040   (eval "$ac_try") 2>&5
27041   ac_status=$?
27042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043   (exit $ac_status); }; }; then
27044   eval "$as_ac_var=yes"
27045 else
27046   echo "$as_me: failed program was:" >&5
27047 sed 's/^/| /' conftest.$ac_ext >&5
27048
27049         eval "$as_ac_var=no"
27050 fi
27051
27052 rm -f core conftest.err conftest.$ac_objext \
27053       conftest$ac_exeext conftest.$ac_ext
27054 fi
27055 ac_res=`eval echo '${'$as_ac_var'}'`
27056                { echo "$as_me:$LINENO: result: $ac_res" >&5
27057 echo "${ECHO_T}$ac_res" >&6; }
27058 if test `eval echo '${'$as_ac_var'}'` = yes; then
27059   cat >>confdefs.h <<_ACEOF
27060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27061 _ACEOF
27062
27063 else
27064   case " $LIBOBJS " in
27065   *" $ac_func.$ac_objext "* ) ;;
27066   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27067  ;;
27068 esac
27069
27070 fi
27071 done
27072
27073
27074     if test $ac_cv_func_strtoull = no; then
27075
27076   :
27077
27078     fi
27079   fi
27080
27081
27082
27083 for ac_func in strtoul
27084 do
27085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27089   echo $ECHO_N "(cached) $ECHO_C" >&6
27090 else
27091   cat >conftest.$ac_ext <<_ACEOF
27092 /* confdefs.h.  */
27093 _ACEOF
27094 cat confdefs.h >>conftest.$ac_ext
27095 cat >>conftest.$ac_ext <<_ACEOF
27096 /* end confdefs.h.  */
27097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27099 #define $ac_func innocuous_$ac_func
27100
27101 /* System header to define __stub macros and hopefully few prototypes,
27102     which can conflict with char $ac_func (); below.
27103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27104     <limits.h> exists even on freestanding compilers.  */
27105
27106 #ifdef __STDC__
27107 # include <limits.h>
27108 #else
27109 # include <assert.h>
27110 #endif
27111
27112 #undef $ac_func
27113
27114 /* Override any GCC internal prototype to avoid an error.
27115    Use char because int might match the return type of a GCC
27116    builtin and then its argument prototype would still apply.  */
27117 #ifdef __cplusplus
27118 extern "C"
27119 #endif
27120 char $ac_func ();
27121 /* The GNU C library defines this for functions which it implements
27122     to always fail with ENOSYS.  Some functions are actually named
27123     something starting with __ and the normal name is an alias.  */
27124 #if defined __stub_$ac_func || defined __stub___$ac_func
27125 choke me
27126 #endif
27127
27128 int
27129 main ()
27130 {
27131 return $ac_func ();
27132   ;
27133   return 0;
27134 }
27135 _ACEOF
27136 rm -f conftest.$ac_objext conftest$ac_exeext
27137 if { (ac_try="$ac_link"
27138 case "(($ac_try" in
27139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27140   *) ac_try_echo=$ac_try;;
27141 esac
27142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27143   (eval "$ac_link") 2>conftest.er1
27144   ac_status=$?
27145   grep -v '^ *+' conftest.er1 >conftest.err
27146   rm -f conftest.er1
27147   cat conftest.err >&5
27148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149   (exit $ac_status); } &&
27150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27151   { (case "(($ac_try" in
27152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27153   *) ac_try_echo=$ac_try;;
27154 esac
27155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27156   (eval "$ac_try") 2>&5
27157   ac_status=$?
27158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27159   (exit $ac_status); }; } &&
27160          { ac_try='test -s conftest$ac_exeext'
27161   { (case "(($ac_try" in
27162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27163   *) ac_try_echo=$ac_try;;
27164 esac
27165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27166   (eval "$ac_try") 2>&5
27167   ac_status=$?
27168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169   (exit $ac_status); }; }; then
27170   eval "$as_ac_var=yes"
27171 else
27172   echo "$as_me: failed program was:" >&5
27173 sed 's/^/| /' conftest.$ac_ext >&5
27174
27175         eval "$as_ac_var=no"
27176 fi
27177
27178 rm -f core conftest.err conftest.$ac_objext \
27179       conftest$ac_exeext conftest.$ac_ext
27180 fi
27181 ac_res=`eval echo '${'$as_ac_var'}'`
27182                { echo "$as_me:$LINENO: result: $ac_res" >&5
27183 echo "${ECHO_T}$ac_res" >&6; }
27184 if test `eval echo '${'$as_ac_var'}'` = yes; then
27185   cat >>confdefs.h <<_ACEOF
27186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27187 _ACEOF
27188
27189 else
27190   case " $LIBOBJS " in
27191   *" $ac_func.$ac_objext "* ) ;;
27192   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27193  ;;
27194 esac
27195
27196 fi
27197 done
27198
27199
27200
27201
27202
27203
27204
27205   { echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
27206 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6; }
27207 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
27208   echo $ECHO_N "(cached) $ECHO_C" >&6
27209 else
27210   cat >conftest.$ac_ext <<_ACEOF
27211 /* confdefs.h.  */
27212 _ACEOF
27213 cat confdefs.h >>conftest.$ac_ext
27214 cat >>conftest.$ac_ext <<_ACEOF
27215 /* end confdefs.h.  */
27216 #include <inttypes.h>
27217 #ifdef strtoumax
27218  inttypes_h_defines_strtoumax
27219 #endif
27220 _ACEOF
27221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27222   $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
27223   jm_cv_func_strtoumax_macro=yes
27224 else
27225   jm_cv_func_strtoumax_macro=no
27226 fi
27227 rm -f conftest*
27228
27229 fi
27230 { echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
27231 echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6; }
27232
27233   if test "$jm_cv_func_strtoumax_macro" != yes; then
27234
27235 for ac_func in strtoumax
27236 do
27237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27238 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27240 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27241   echo $ECHO_N "(cached) $ECHO_C" >&6
27242 else
27243   cat >conftest.$ac_ext <<_ACEOF
27244 /* confdefs.h.  */
27245 _ACEOF
27246 cat confdefs.h >>conftest.$ac_ext
27247 cat >>conftest.$ac_ext <<_ACEOF
27248 /* end confdefs.h.  */
27249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27250    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27251 #define $ac_func innocuous_$ac_func
27252
27253 /* System header to define __stub macros and hopefully few prototypes,
27254     which can conflict with char $ac_func (); below.
27255     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27256     <limits.h> exists even on freestanding compilers.  */
27257
27258 #ifdef __STDC__
27259 # include <limits.h>
27260 #else
27261 # include <assert.h>
27262 #endif
27263
27264 #undef $ac_func
27265
27266 /* Override any GCC internal prototype to avoid an error.
27267    Use char because int might match the return type of a GCC
27268    builtin and then its argument prototype would still apply.  */
27269 #ifdef __cplusplus
27270 extern "C"
27271 #endif
27272 char $ac_func ();
27273 /* The GNU C library defines this for functions which it implements
27274     to always fail with ENOSYS.  Some functions are actually named
27275     something starting with __ and the normal name is an alias.  */
27276 #if defined __stub_$ac_func || defined __stub___$ac_func
27277 choke me
27278 #endif
27279
27280 int
27281 main ()
27282 {
27283 return $ac_func ();
27284   ;
27285   return 0;
27286 }
27287 _ACEOF
27288 rm -f conftest.$ac_objext conftest$ac_exeext
27289 if { (ac_try="$ac_link"
27290 case "(($ac_try" in
27291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27292   *) ac_try_echo=$ac_try;;
27293 esac
27294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27295   (eval "$ac_link") 2>conftest.er1
27296   ac_status=$?
27297   grep -v '^ *+' conftest.er1 >conftest.err
27298   rm -f conftest.er1
27299   cat conftest.err >&5
27300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27301   (exit $ac_status); } &&
27302          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27303   { (case "(($ac_try" in
27304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27305   *) ac_try_echo=$ac_try;;
27306 esac
27307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27308   (eval "$ac_try") 2>&5
27309   ac_status=$?
27310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27311   (exit $ac_status); }; } &&
27312          { ac_try='test -s conftest$ac_exeext'
27313   { (case "(($ac_try" in
27314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27315   *) ac_try_echo=$ac_try;;
27316 esac
27317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27318   (eval "$ac_try") 2>&5
27319   ac_status=$?
27320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27321   (exit $ac_status); }; }; then
27322   eval "$as_ac_var=yes"
27323 else
27324   echo "$as_me: failed program was:" >&5
27325 sed 's/^/| /' conftest.$ac_ext >&5
27326
27327         eval "$as_ac_var=no"
27328 fi
27329
27330 rm -f core conftest.err conftest.$ac_objext \
27331       conftest$ac_exeext conftest.$ac_ext
27332 fi
27333 ac_res=`eval echo '${'$as_ac_var'}'`
27334                { echo "$as_me:$LINENO: result: $ac_res" >&5
27335 echo "${ECHO_T}$ac_res" >&6; }
27336 if test `eval echo '${'$as_ac_var'}'` = yes; then
27337   cat >>confdefs.h <<_ACEOF
27338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27339 _ACEOF
27340
27341 else
27342   case " $LIBOBJS " in
27343   *" $ac_func.$ac_objext "* ) ;;
27344   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27345  ;;
27346 esac
27347
27348 fi
27349 done
27350
27351
27352     if test $ac_cv_func_strtoumax = no; then
27353
27354
27355
27356
27357   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
27358
27359     test $ac_cv_type_unsigned_long_long = yes \
27360       && ac_type='unsigned long long' \
27361       || ac_type='unsigned long'
27362
27363 cat >>confdefs.h <<_ACEOF
27364 #define uintmax_t $ac_type
27365 _ACEOF
27366
27367   else
27368
27369 cat >>confdefs.h <<\_ACEOF
27370 #define HAVE_UINTMAX_T 1
27371 _ACEOF
27372
27373   fi
27374
27375   { echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
27376 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6; }
27377 if test "${ac_cv_have_decl_strtoull+set}" = set; then
27378   echo $ECHO_N "(cached) $ECHO_C" >&6
27379 else
27380   cat >conftest.$ac_ext <<_ACEOF
27381 /* confdefs.h.  */
27382 _ACEOF
27383 cat confdefs.h >>conftest.$ac_ext
27384 cat >>conftest.$ac_ext <<_ACEOF
27385 /* end confdefs.h.  */
27386 $ac_includes_default
27387 int
27388 main ()
27389 {
27390 #ifndef strtoull
27391   char *p = (char *) strtoull;
27392   return !p;
27393 #endif
27394
27395   ;
27396   return 0;
27397 }
27398 _ACEOF
27399 rm -f conftest.$ac_objext
27400 if { (ac_try="$ac_compile"
27401 case "(($ac_try" in
27402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27403   *) ac_try_echo=$ac_try;;
27404 esac
27405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27406   (eval "$ac_compile") 2>conftest.er1
27407   ac_status=$?
27408   grep -v '^ *+' conftest.er1 >conftest.err
27409   rm -f conftest.er1
27410   cat conftest.err >&5
27411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412   (exit $ac_status); } &&
27413          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27414   { (case "(($ac_try" in
27415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27416   *) ac_try_echo=$ac_try;;
27417 esac
27418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27419   (eval "$ac_try") 2>&5
27420   ac_status=$?
27421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422   (exit $ac_status); }; } &&
27423          { ac_try='test -s conftest.$ac_objext'
27424   { (case "(($ac_try" in
27425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27426   *) ac_try_echo=$ac_try;;
27427 esac
27428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27429   (eval "$ac_try") 2>&5
27430   ac_status=$?
27431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27432   (exit $ac_status); }; }; then
27433   ac_cv_have_decl_strtoull=yes
27434 else
27435   echo "$as_me: failed program was:" >&5
27436 sed 's/^/| /' conftest.$ac_ext >&5
27437
27438         ac_cv_have_decl_strtoull=no
27439 fi
27440
27441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27442 fi
27443 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
27444 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6; }
27445 if test $ac_cv_have_decl_strtoull = yes; then
27446
27447 cat >>confdefs.h <<_ACEOF
27448 #define HAVE_DECL_STRTOULL 1
27449 _ACEOF
27450
27451
27452 else
27453   cat >>confdefs.h <<_ACEOF
27454 #define HAVE_DECL_STRTOULL 0
27455 _ACEOF
27456
27457
27458 fi
27459
27460
27461
27462
27463     fi
27464   fi
27465
27466
27467
27468
27469
27470
27471
27472 for ac_func in strverscmp
27473 do
27474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27475 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27477 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27478   echo $ECHO_N "(cached) $ECHO_C" >&6
27479 else
27480   cat >conftest.$ac_ext <<_ACEOF
27481 /* confdefs.h.  */
27482 _ACEOF
27483 cat confdefs.h >>conftest.$ac_ext
27484 cat >>conftest.$ac_ext <<_ACEOF
27485 /* end confdefs.h.  */
27486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27487    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27488 #define $ac_func innocuous_$ac_func
27489
27490 /* System header to define __stub macros and hopefully few prototypes,
27491     which can conflict with char $ac_func (); below.
27492     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27493     <limits.h> exists even on freestanding compilers.  */
27494
27495 #ifdef __STDC__
27496 # include <limits.h>
27497 #else
27498 # include <assert.h>
27499 #endif
27500
27501 #undef $ac_func
27502
27503 /* Override any GCC internal prototype to avoid an error.
27504    Use char because int might match the return type of a GCC
27505    builtin and then its argument prototype would still apply.  */
27506 #ifdef __cplusplus
27507 extern "C"
27508 #endif
27509 char $ac_func ();
27510 /* The GNU C library defines this for functions which it implements
27511     to always fail with ENOSYS.  Some functions are actually named
27512     something starting with __ and the normal name is an alias.  */
27513 #if defined __stub_$ac_func || defined __stub___$ac_func
27514 choke me
27515 #endif
27516
27517 int
27518 main ()
27519 {
27520 return $ac_func ();
27521   ;
27522   return 0;
27523 }
27524 _ACEOF
27525 rm -f conftest.$ac_objext conftest$ac_exeext
27526 if { (ac_try="$ac_link"
27527 case "(($ac_try" in
27528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27529   *) ac_try_echo=$ac_try;;
27530 esac
27531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27532   (eval "$ac_link") 2>conftest.er1
27533   ac_status=$?
27534   grep -v '^ *+' conftest.er1 >conftest.err
27535   rm -f conftest.er1
27536   cat conftest.err >&5
27537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27538   (exit $ac_status); } &&
27539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27540   { (case "(($ac_try" in
27541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27542   *) ac_try_echo=$ac_try;;
27543 esac
27544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27545   (eval "$ac_try") 2>&5
27546   ac_status=$?
27547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27548   (exit $ac_status); }; } &&
27549          { ac_try='test -s conftest$ac_exeext'
27550   { (case "(($ac_try" in
27551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27552   *) ac_try_echo=$ac_try;;
27553 esac
27554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27555   (eval "$ac_try") 2>&5
27556   ac_status=$?
27557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558   (exit $ac_status); }; }; then
27559   eval "$as_ac_var=yes"
27560 else
27561   echo "$as_me: failed program was:" >&5
27562 sed 's/^/| /' conftest.$ac_ext >&5
27563
27564         eval "$as_ac_var=no"
27565 fi
27566
27567 rm -f core conftest.err conftest.$ac_objext \
27568       conftest$ac_exeext conftest.$ac_ext
27569 fi
27570 ac_res=`eval echo '${'$as_ac_var'}'`
27571                { echo "$as_me:$LINENO: result: $ac_res" >&5
27572 echo "${ECHO_T}$ac_res" >&6; }
27573 if test `eval echo '${'$as_ac_var'}'` = yes; then
27574   cat >>confdefs.h <<_ACEOF
27575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27576 _ACEOF
27577
27578 else
27579   case " $LIBOBJS " in
27580   *" $ac_func.$ac_objext "* ) ;;
27581   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27582  ;;
27583 esac
27584
27585 fi
27586 done
27587
27588
27589   if test $ac_cv_func_strverscmp = no; then
27590
27591   :
27592
27593   fi
27594
27595
27596
27597   { echo "$as_me:$LINENO: checking whether tzset clobbers localtime buffer" >&5
27598 echo $ECHO_N "checking whether tzset clobbers localtime buffer... $ECHO_C" >&6; }
27599 if test "${gl_cv_func_tzset_clobber+set}" = set; then
27600   echo $ECHO_N "(cached) $ECHO_C" >&6
27601 else
27602
27603   if test "$cross_compiling" = yes; then
27604   gl_cv_func_tzset_clobber=yes
27605 else
27606   cat >conftest.$ac_ext <<_ACEOF
27607 /* confdefs.h.  */
27608 _ACEOF
27609 cat confdefs.h >>conftest.$ac_ext
27610 cat >>conftest.$ac_ext <<_ACEOF
27611 /* end confdefs.h.  */
27612
27613 #if TIME_WITH_SYS_TIME
27614 # include <sys/time.h>
27615 # include <time.h>
27616 #else
27617 # if HAVE_SYS_TIME_H
27618 #  include <sys/time.h>
27619 # else
27620 #  include <time.h>
27621 # endif
27622 #endif
27623 #include <stdlib.h>
27624
27625 int
27626 main ()
27627 {
27628   time_t t1 = 853958121;
27629   struct tm *p, s;
27630   putenv ("TZ=GMT0");
27631   p = localtime (&t1);
27632   s = *p;
27633   putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
27634   tzset ();
27635   exit (p->tm_year != s.tm_year
27636         || p->tm_mon != s.tm_mon
27637         || p->tm_mday != s.tm_mday
27638         || p->tm_hour != s.tm_hour
27639         || p->tm_min != s.tm_min
27640         || p->tm_sec != s.tm_sec);
27641 }
27642
27643 _ACEOF
27644 rm -f conftest$ac_exeext
27645 if { (ac_try="$ac_link"
27646 case "(($ac_try" in
27647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27648   *) ac_try_echo=$ac_try;;
27649 esac
27650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27651   (eval "$ac_link") 2>&5
27652   ac_status=$?
27653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27655   { (case "(($ac_try" in
27656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27657   *) ac_try_echo=$ac_try;;
27658 esac
27659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27660   (eval "$ac_try") 2>&5
27661   ac_status=$?
27662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663   (exit $ac_status); }; }; then
27664   gl_cv_func_tzset_clobber=no
27665 else
27666   echo "$as_me: program exited with status $ac_status" >&5
27667 echo "$as_me: failed program was:" >&5
27668 sed 's/^/| /' conftest.$ac_ext >&5
27669
27670 ( exit $ac_status )
27671 gl_cv_func_tzset_clobber=yes
27672 fi
27673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27674 fi
27675
27676
27677 fi
27678 { echo "$as_me:$LINENO: result: $gl_cv_func_tzset_clobber" >&5
27679 echo "${ECHO_T}$gl_cv_func_tzset_clobber" >&6; }
27680
27681
27682 cat >>confdefs.h <<\_ACEOF
27683 #define HAVE_RUN_TZSET_TEST 1
27684 _ACEOF
27685
27686
27687   if test $gl_cv_func_tzset_clobber = yes; then
27688
27689   case " $LIBOBJS " in
27690   *" gettimeofday.$ac_objext "* ) ;;
27691   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
27692  ;;
27693 esac
27694
27695
27696 cat >>confdefs.h <<\_ACEOF
27697 #define gmtime rpl_gmtime
27698 _ACEOF
27699
27700
27701 cat >>confdefs.h <<\_ACEOF
27702 #define localtime rpl_localtime
27703 _ACEOF
27704
27705
27706
27707
27708 cat >>confdefs.h <<\_ACEOF
27709 #define tzset rpl_tzset
27710 _ACEOF
27711
27712
27713 cat >>confdefs.h <<\_ACEOF
27714 #define TZSET_CLOBBERS_LOCALTIME_BUFFER 1
27715 _ACEOF
27716
27717   fi
27718
27719
27720
27721   { echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
27722 echo $ECHO_N "checking for EOVERFLOW... $ECHO_C" >&6; }
27723 if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
27724   echo $ECHO_N "(cached) $ECHO_C" >&6
27725 else
27726
27727     cat >conftest.$ac_ext <<_ACEOF
27728 /* confdefs.h.  */
27729 _ACEOF
27730 cat confdefs.h >>conftest.$ac_ext
27731 cat >>conftest.$ac_ext <<_ACEOF
27732 /* end confdefs.h.  */
27733
27734 #include <errno.h>
27735 #ifdef EOVERFLOW
27736 yes
27737 #endif
27738
27739 _ACEOF
27740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27741   $EGREP "yes" >/dev/null 2>&1; then
27742   have_eoverflow=1
27743 fi
27744 rm -f conftest*
27745
27746     if test -n "$have_eoverflow"; then
27747             ac_cv_decl_EOVERFLOW=yes
27748     else
27749       cat >conftest.$ac_ext <<_ACEOF
27750 /* confdefs.h.  */
27751 _ACEOF
27752 cat confdefs.h >>conftest.$ac_ext
27753 cat >>conftest.$ac_ext <<_ACEOF
27754 /* end confdefs.h.  */
27755
27756 #define _XOPEN_SOURCE_EXTENDED 1
27757 #include <errno.h>
27758 #ifdef EOVERFLOW
27759 yes
27760 #endif
27761
27762 _ACEOF
27763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27764   $EGREP "yes" >/dev/null 2>&1; then
27765   have_eoverflow=1
27766 fi
27767 rm -f conftest*
27768
27769       if test -n "$have_eoverflow"; then
27770                         if test "$cross_compiling" = yes; then
27771   # Depending upon the size, compute the lo and hi bounds.
27772 cat >conftest.$ac_ext <<_ACEOF
27773 /* confdefs.h.  */
27774 _ACEOF
27775 cat confdefs.h >>conftest.$ac_ext
27776 cat >>conftest.$ac_ext <<_ACEOF
27777 /* end confdefs.h.  */
27778
27779 #define _XOPEN_SOURCE_EXTENDED 1
27780 #include <errno.h>
27781 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
27782 #include <stdio.h>
27783 #include <stdlib.h>
27784
27785 int
27786 main ()
27787 {
27788 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
27789 test_array [0] = 0
27790
27791   ;
27792   return 0;
27793 }
27794 _ACEOF
27795 rm -f conftest.$ac_objext
27796 if { (ac_try="$ac_compile"
27797 case "(($ac_try" in
27798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27799   *) ac_try_echo=$ac_try;;
27800 esac
27801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27802   (eval "$ac_compile") 2>conftest.er1
27803   ac_status=$?
27804   grep -v '^ *+' conftest.er1 >conftest.err
27805   rm -f conftest.er1
27806   cat conftest.err >&5
27807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27808   (exit $ac_status); } &&
27809          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27810   { (case "(($ac_try" in
27811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27812   *) ac_try_echo=$ac_try;;
27813 esac
27814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27815   (eval "$ac_try") 2>&5
27816   ac_status=$?
27817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27818   (exit $ac_status); }; } &&
27819          { ac_try='test -s conftest.$ac_objext'
27820   { (case "(($ac_try" in
27821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27822   *) ac_try_echo=$ac_try;;
27823 esac
27824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27825   (eval "$ac_try") 2>&5
27826   ac_status=$?
27827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27828   (exit $ac_status); }; }; then
27829   ac_lo=0 ac_mid=0
27830   while :; do
27831     cat >conftest.$ac_ext <<_ACEOF
27832 /* confdefs.h.  */
27833 _ACEOF
27834 cat confdefs.h >>conftest.$ac_ext
27835 cat >>conftest.$ac_ext <<_ACEOF
27836 /* end confdefs.h.  */
27837
27838 #define _XOPEN_SOURCE_EXTENDED 1
27839 #include <errno.h>
27840 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
27841 #include <stdio.h>
27842 #include <stdlib.h>
27843
27844 int
27845 main ()
27846 {
27847 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
27848 test_array [0] = 0
27849
27850   ;
27851   return 0;
27852 }
27853 _ACEOF
27854 rm -f conftest.$ac_objext
27855 if { (ac_try="$ac_compile"
27856 case "(($ac_try" in
27857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27858   *) ac_try_echo=$ac_try;;
27859 esac
27860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27861   (eval "$ac_compile") 2>conftest.er1
27862   ac_status=$?
27863   grep -v '^ *+' conftest.er1 >conftest.err
27864   rm -f conftest.er1
27865   cat conftest.err >&5
27866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867   (exit $ac_status); } &&
27868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27869   { (case "(($ac_try" in
27870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27871   *) ac_try_echo=$ac_try;;
27872 esac
27873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27874   (eval "$ac_try") 2>&5
27875   ac_status=$?
27876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877   (exit $ac_status); }; } &&
27878          { ac_try='test -s conftest.$ac_objext'
27879   { (case "(($ac_try" in
27880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27881   *) ac_try_echo=$ac_try;;
27882 esac
27883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27884   (eval "$ac_try") 2>&5
27885   ac_status=$?
27886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887   (exit $ac_status); }; }; then
27888   ac_hi=$ac_mid; break
27889 else
27890   echo "$as_me: failed program was:" >&5
27891 sed 's/^/| /' conftest.$ac_ext >&5
27892
27893         ac_lo=`expr $ac_mid + 1`
27894                         if test $ac_lo -le $ac_mid; then
27895                           ac_lo= ac_hi=
27896                           break
27897                         fi
27898                         ac_mid=`expr 2 '*' $ac_mid + 1`
27899 fi
27900
27901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27902   done
27903 else
27904   echo "$as_me: failed program was:" >&5
27905 sed 's/^/| /' conftest.$ac_ext >&5
27906
27907         cat >conftest.$ac_ext <<_ACEOF
27908 /* confdefs.h.  */
27909 _ACEOF
27910 cat confdefs.h >>conftest.$ac_ext
27911 cat >>conftest.$ac_ext <<_ACEOF
27912 /* end confdefs.h.  */
27913
27914 #define _XOPEN_SOURCE_EXTENDED 1
27915 #include <errno.h>
27916 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
27917 #include <stdio.h>
27918 #include <stdlib.h>
27919
27920 int
27921 main ()
27922 {
27923 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
27924 test_array [0] = 0
27925
27926   ;
27927   return 0;
27928 }
27929 _ACEOF
27930 rm -f conftest.$ac_objext
27931 if { (ac_try="$ac_compile"
27932 case "(($ac_try" in
27933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27934   *) ac_try_echo=$ac_try;;
27935 esac
27936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27937   (eval "$ac_compile") 2>conftest.er1
27938   ac_status=$?
27939   grep -v '^ *+' conftest.er1 >conftest.err
27940   rm -f conftest.er1
27941   cat conftest.err >&5
27942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27943   (exit $ac_status); } &&
27944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27945   { (case "(($ac_try" in
27946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27947   *) ac_try_echo=$ac_try;;
27948 esac
27949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27950   (eval "$ac_try") 2>&5
27951   ac_status=$?
27952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953   (exit $ac_status); }; } &&
27954          { ac_try='test -s conftest.$ac_objext'
27955   { (case "(($ac_try" in
27956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27957   *) ac_try_echo=$ac_try;;
27958 esac
27959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27960   (eval "$ac_try") 2>&5
27961   ac_status=$?
27962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963   (exit $ac_status); }; }; then
27964   ac_hi=-1 ac_mid=-1
27965   while :; do
27966     cat >conftest.$ac_ext <<_ACEOF
27967 /* confdefs.h.  */
27968 _ACEOF
27969 cat confdefs.h >>conftest.$ac_ext
27970 cat >>conftest.$ac_ext <<_ACEOF
27971 /* end confdefs.h.  */
27972
27973 #define _XOPEN_SOURCE_EXTENDED 1
27974 #include <errno.h>
27975 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
27976 #include <stdio.h>
27977 #include <stdlib.h>
27978
27979 int
27980 main ()
27981 {
27982 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
27983 test_array [0] = 0
27984
27985   ;
27986   return 0;
27987 }
27988 _ACEOF
27989 rm -f conftest.$ac_objext
27990 if { (ac_try="$ac_compile"
27991 case "(($ac_try" in
27992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27993   *) ac_try_echo=$ac_try;;
27994 esac
27995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27996   (eval "$ac_compile") 2>conftest.er1
27997   ac_status=$?
27998   grep -v '^ *+' conftest.er1 >conftest.err
27999   rm -f conftest.er1
28000   cat conftest.err >&5
28001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28002   (exit $ac_status); } &&
28003          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28004   { (case "(($ac_try" in
28005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28006   *) ac_try_echo=$ac_try;;
28007 esac
28008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28009   (eval "$ac_try") 2>&5
28010   ac_status=$?
28011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28012   (exit $ac_status); }; } &&
28013          { ac_try='test -s conftest.$ac_objext'
28014   { (case "(($ac_try" in
28015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28016   *) ac_try_echo=$ac_try;;
28017 esac
28018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28019   (eval "$ac_try") 2>&5
28020   ac_status=$?
28021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022   (exit $ac_status); }; }; then
28023   ac_lo=$ac_mid; break
28024 else
28025   echo "$as_me: failed program was:" >&5
28026 sed 's/^/| /' conftest.$ac_ext >&5
28027
28028         ac_hi=`expr '(' $ac_mid ')' - 1`
28029                         if test $ac_mid -le $ac_hi; then
28030                           ac_lo= ac_hi=
28031                           break
28032                         fi
28033                         ac_mid=`expr 2 '*' $ac_mid`
28034 fi
28035
28036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28037   done
28038 else
28039   echo "$as_me: failed program was:" >&5
28040 sed 's/^/| /' conftest.$ac_ext >&5
28041
28042         ac_lo= ac_hi=
28043 fi
28044
28045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28046 fi
28047
28048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28049 # Binary search between lo and hi bounds.
28050 while test "x$ac_lo" != "x$ac_hi"; do
28051   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28052   cat >conftest.$ac_ext <<_ACEOF
28053 /* confdefs.h.  */
28054 _ACEOF
28055 cat confdefs.h >>conftest.$ac_ext
28056 cat >>conftest.$ac_ext <<_ACEOF
28057 /* end confdefs.h.  */
28058
28059 #define _XOPEN_SOURCE_EXTENDED 1
28060 #include <errno.h>
28061 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
28062 #include <stdio.h>
28063 #include <stdlib.h>
28064
28065 int
28066 main ()
28067 {
28068 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
28069 test_array [0] = 0
28070
28071   ;
28072   return 0;
28073 }
28074 _ACEOF
28075 rm -f conftest.$ac_objext
28076 if { (ac_try="$ac_compile"
28077 case "(($ac_try" in
28078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28079   *) ac_try_echo=$ac_try;;
28080 esac
28081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28082   (eval "$ac_compile") 2>conftest.er1
28083   ac_status=$?
28084   grep -v '^ *+' conftest.er1 >conftest.err
28085   rm -f conftest.er1
28086   cat conftest.err >&5
28087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088   (exit $ac_status); } &&
28089          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28090   { (case "(($ac_try" in
28091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28092   *) ac_try_echo=$ac_try;;
28093 esac
28094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28095   (eval "$ac_try") 2>&5
28096   ac_status=$?
28097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28098   (exit $ac_status); }; } &&
28099          { ac_try='test -s conftest.$ac_objext'
28100   { (case "(($ac_try" in
28101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28102   *) ac_try_echo=$ac_try;;
28103 esac
28104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28105   (eval "$ac_try") 2>&5
28106   ac_status=$?
28107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28108   (exit $ac_status); }; }; then
28109   ac_hi=$ac_mid
28110 else
28111   echo "$as_me: failed program was:" >&5
28112 sed 's/^/| /' conftest.$ac_ext >&5
28113
28114         ac_lo=`expr '(' $ac_mid ')' + 1`
28115 fi
28116
28117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28118 done
28119 case $ac_lo in
28120 ?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
28121 '')  ;;
28122 esac
28123 else
28124   cat >conftest.$ac_ext <<_ACEOF
28125 /* confdefs.h.  */
28126 _ACEOF
28127 cat confdefs.h >>conftest.$ac_ext
28128 cat >>conftest.$ac_ext <<_ACEOF
28129 /* end confdefs.h.  */
28130
28131 #define _XOPEN_SOURCE_EXTENDED 1
28132 #include <errno.h>
28133 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
28134 #include <stdio.h>
28135 #include <stdlib.h>
28136
28137 static long int longval () { return EOVERFLOW; }
28138 static unsigned long int ulongval () { return EOVERFLOW; }
28139 #include <stdio.h>
28140 #include <stdlib.h>
28141 int
28142 main ()
28143 {
28144
28145   FILE *f = fopen ("conftest.val", "w");
28146   if (! f)
28147     return 1;
28148   if ((EOVERFLOW) < 0)
28149     {
28150       long int i = longval ();
28151       if (i != (EOVERFLOW))
28152         return 1;
28153       fprintf (f, "%ld\n", i);
28154     }
28155   else
28156     {
28157       unsigned long int i = ulongval ();
28158       if (i != (EOVERFLOW))
28159         return 1;
28160       fprintf (f, "%lu\n", i);
28161     }
28162   return ferror (f) || fclose (f) != 0;
28163
28164   ;
28165   return 0;
28166 }
28167 _ACEOF
28168 rm -f conftest$ac_exeext
28169 if { (ac_try="$ac_link"
28170 case "(($ac_try" in
28171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28172   *) ac_try_echo=$ac_try;;
28173 esac
28174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28175   (eval "$ac_link") 2>&5
28176   ac_status=$?
28177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28178   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28179   { (case "(($ac_try" in
28180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28181   *) ac_try_echo=$ac_try;;
28182 esac
28183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28184   (eval "$ac_try") 2>&5
28185   ac_status=$?
28186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28187   (exit $ac_status); }; }; then
28188   ac_cv_decl_EOVERFLOW=`cat conftest.val`
28189 else
28190   echo "$as_me: program exited with status $ac_status" >&5
28191 echo "$as_me: failed program was:" >&5
28192 sed 's/^/| /' conftest.$ac_ext >&5
28193
28194 fi
28195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28196 fi
28197 rm -f conftest.val
28198       else
28199                                 ac_cv_decl_EOVERFLOW=E2BIG
28200       fi
28201     fi
28202
28203 fi
28204 { echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
28205 echo "${ECHO_T}$ac_cv_decl_EOVERFLOW" >&6; }
28206   if test "$ac_cv_decl_EOVERFLOW" != yes; then
28207
28208 cat >>confdefs.h <<_ACEOF
28209 #define EOVERFLOW $ac_cv_decl_EOVERFLOW
28210 _ACEOF
28211
28212     EOVERFLOW="$ac_cv_decl_EOVERFLOW"
28213
28214   fi
28215
28216
28217   { echo "$as_me:$LINENO: checking for signed" >&5
28218 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
28219 if test "${bh_cv_c_signed+set}" = set; then
28220   echo $ECHO_N "(cached) $ECHO_C" >&6
28221 else
28222   cat >conftest.$ac_ext <<_ACEOF
28223 /* confdefs.h.  */
28224 _ACEOF
28225 cat confdefs.h >>conftest.$ac_ext
28226 cat >>conftest.$ac_ext <<_ACEOF
28227 /* end confdefs.h.  */
28228
28229 int
28230 main ()
28231 {
28232 signed char x;
28233   ;
28234   return 0;
28235 }
28236 _ACEOF
28237 rm -f conftest.$ac_objext
28238 if { (ac_try="$ac_compile"
28239 case "(($ac_try" in
28240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28241   *) ac_try_echo=$ac_try;;
28242 esac
28243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28244   (eval "$ac_compile") 2>conftest.er1
28245   ac_status=$?
28246   grep -v '^ *+' conftest.er1 >conftest.err
28247   rm -f conftest.er1
28248   cat conftest.err >&5
28249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28250   (exit $ac_status); } &&
28251          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28252   { (case "(($ac_try" in
28253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28254   *) ac_try_echo=$ac_try;;
28255 esac
28256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28257   (eval "$ac_try") 2>&5
28258   ac_status=$?
28259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260   (exit $ac_status); }; } &&
28261          { ac_try='test -s conftest.$ac_objext'
28262   { (case "(($ac_try" in
28263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28264   *) ac_try_echo=$ac_try;;
28265 esac
28266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28267   (eval "$ac_try") 2>&5
28268   ac_status=$?
28269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270   (exit $ac_status); }; }; then
28271   bh_cv_c_signed=yes
28272 else
28273   echo "$as_me: failed program was:" >&5
28274 sed 's/^/| /' conftest.$ac_ext >&5
28275
28276         bh_cv_c_signed=no
28277 fi
28278
28279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28280 fi
28281 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
28282 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
28283   if test $bh_cv_c_signed = no; then
28284
28285 cat >>confdefs.h <<\_ACEOF
28286 #define signed
28287 _ACEOF
28288
28289   fi
28290
28291
28292   { echo "$as_me:$LINENO: checking for wchar_t" >&5
28293 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
28294 if test "${gt_cv_c_wchar_t+set}" = set; then
28295   echo $ECHO_N "(cached) $ECHO_C" >&6
28296 else
28297   cat >conftest.$ac_ext <<_ACEOF
28298 /* confdefs.h.  */
28299 _ACEOF
28300 cat confdefs.h >>conftest.$ac_ext
28301 cat >>conftest.$ac_ext <<_ACEOF
28302 /* end confdefs.h.  */
28303 #include <stddef.h>
28304        wchar_t foo = (wchar_t)'\0';
28305 int
28306 main ()
28307 {
28308
28309   ;
28310   return 0;
28311 }
28312 _ACEOF
28313 rm -f conftest.$ac_objext
28314 if { (ac_try="$ac_compile"
28315 case "(($ac_try" in
28316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28317   *) ac_try_echo=$ac_try;;
28318 esac
28319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28320   (eval "$ac_compile") 2>conftest.er1
28321   ac_status=$?
28322   grep -v '^ *+' conftest.er1 >conftest.err
28323   rm -f conftest.er1
28324   cat conftest.err >&5
28325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28326   (exit $ac_status); } &&
28327          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28328   { (case "(($ac_try" in
28329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28330   *) ac_try_echo=$ac_try;;
28331 esac
28332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28333   (eval "$ac_try") 2>&5
28334   ac_status=$?
28335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336   (exit $ac_status); }; } &&
28337          { ac_try='test -s conftest.$ac_objext'
28338   { (case "(($ac_try" in
28339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28340   *) ac_try_echo=$ac_try;;
28341 esac
28342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28343   (eval "$ac_try") 2>&5
28344   ac_status=$?
28345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28346   (exit $ac_status); }; }; then
28347   gt_cv_c_wchar_t=yes
28348 else
28349   echo "$as_me: failed program was:" >&5
28350 sed 's/^/| /' conftest.$ac_ext >&5
28351
28352         gt_cv_c_wchar_t=no
28353 fi
28354
28355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28356 fi
28357 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
28358 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
28359   if test $gt_cv_c_wchar_t = yes; then
28360
28361 cat >>confdefs.h <<\_ACEOF
28362 #define HAVE_WCHAR_T 1
28363 _ACEOF
28364
28365   fi
28366
28367
28368   { echo "$as_me:$LINENO: checking for wint_t" >&5
28369 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
28370 if test "${gt_cv_c_wint_t+set}" = set; then
28371   echo $ECHO_N "(cached) $ECHO_C" >&6
28372 else
28373   cat >conftest.$ac_ext <<_ACEOF
28374 /* confdefs.h.  */
28375 _ACEOF
28376 cat confdefs.h >>conftest.$ac_ext
28377 cat >>conftest.$ac_ext <<_ACEOF
28378 /* end confdefs.h.  */
28379 #include <wchar.h>
28380        wint_t foo = (wchar_t)'\0';
28381 int
28382 main ()
28383 {
28384
28385   ;
28386   return 0;
28387 }
28388 _ACEOF
28389 rm -f conftest.$ac_objext
28390 if { (ac_try="$ac_compile"
28391 case "(($ac_try" in
28392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28393   *) ac_try_echo=$ac_try;;
28394 esac
28395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28396   (eval "$ac_compile") 2>conftest.er1
28397   ac_status=$?
28398   grep -v '^ *+' conftest.er1 >conftest.err
28399   rm -f conftest.er1
28400   cat conftest.err >&5
28401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28402   (exit $ac_status); } &&
28403          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28404   { (case "(($ac_try" in
28405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28406   *) ac_try_echo=$ac_try;;
28407 esac
28408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28409   (eval "$ac_try") 2>&5
28410   ac_status=$?
28411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412   (exit $ac_status); }; } &&
28413          { ac_try='test -s conftest.$ac_objext'
28414   { (case "(($ac_try" in
28415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28416   *) ac_try_echo=$ac_try;;
28417 esac
28418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28419   (eval "$ac_try") 2>&5
28420   ac_status=$?
28421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28422   (exit $ac_status); }; }; then
28423   gt_cv_c_wint_t=yes
28424 else
28425   echo "$as_me: failed program was:" >&5
28426 sed 's/^/| /' conftest.$ac_ext >&5
28427
28428         gt_cv_c_wint_t=no
28429 fi
28430
28431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28432 fi
28433 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
28434 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
28435   if test $gt_cv_c_wint_t = yes; then
28436
28437 cat >>confdefs.h <<\_ACEOF
28438 #define HAVE_WINT_T 1
28439 _ACEOF
28440
28441   fi
28442
28443
28444
28445
28446   { echo "$as_me:$LINENO: checking for intmax_t" >&5
28447 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
28448 if test "${gt_cv_c_intmax_t+set}" = set; then
28449   echo $ECHO_N "(cached) $ECHO_C" >&6
28450 else
28451   cat >conftest.$ac_ext <<_ACEOF
28452 /* confdefs.h.  */
28453 _ACEOF
28454 cat confdefs.h >>conftest.$ac_ext
28455 cat >>conftest.$ac_ext <<_ACEOF
28456 /* end confdefs.h.  */
28457
28458 #include <stddef.h>
28459 #include <stdlib.h>
28460 #if HAVE_STDINT_H_WITH_UINTMAX
28461 #include <stdint.h>
28462 #endif
28463 #if HAVE_INTTYPES_H_WITH_UINTMAX
28464 #include <inttypes.h>
28465 #endif
28466
28467 int
28468 main ()
28469 {
28470 intmax_t x = -1;
28471   ;
28472   return 0;
28473 }
28474 _ACEOF
28475 rm -f conftest.$ac_objext
28476 if { (ac_try="$ac_compile"
28477 case "(($ac_try" in
28478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28479   *) ac_try_echo=$ac_try;;
28480 esac
28481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28482   (eval "$ac_compile") 2>conftest.er1
28483   ac_status=$?
28484   grep -v '^ *+' conftest.er1 >conftest.err
28485   rm -f conftest.er1
28486   cat conftest.err >&5
28487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28488   (exit $ac_status); } &&
28489          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28490   { (case "(($ac_try" in
28491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28492   *) ac_try_echo=$ac_try;;
28493 esac
28494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28495   (eval "$ac_try") 2>&5
28496   ac_status=$?
28497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28498   (exit $ac_status); }; } &&
28499          { ac_try='test -s conftest.$ac_objext'
28500   { (case "(($ac_try" in
28501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28502   *) ac_try_echo=$ac_try;;
28503 esac
28504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28505   (eval "$ac_try") 2>&5
28506   ac_status=$?
28507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508   (exit $ac_status); }; }; then
28509   gt_cv_c_intmax_t=yes
28510 else
28511   echo "$as_me: failed program was:" >&5
28512 sed 's/^/| /' conftest.$ac_ext >&5
28513
28514         gt_cv_c_intmax_t=no
28515 fi
28516
28517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28518 fi
28519 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
28520 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
28521   if test $gt_cv_c_intmax_t = yes; then
28522
28523 cat >>confdefs.h <<\_ACEOF
28524 #define HAVE_INTMAX_T 1
28525 _ACEOF
28526
28527   else
28528
28529     test $ac_cv_type_long_long = yes \
28530       && ac_type='long long' \
28531       || ac_type='long'
28532
28533 cat >>confdefs.h <<_ACEOF
28534 #define intmax_t $ac_type
28535 _ACEOF
28536
28537   fi
28538
28539
28540
28541
28542 for ac_func in vasnprintf
28543 do
28544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28545 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28547 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28548   echo $ECHO_N "(cached) $ECHO_C" >&6
28549 else
28550   cat >conftest.$ac_ext <<_ACEOF
28551 /* confdefs.h.  */
28552 _ACEOF
28553 cat confdefs.h >>conftest.$ac_ext
28554 cat >>conftest.$ac_ext <<_ACEOF
28555 /* end confdefs.h.  */
28556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28557    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28558 #define $ac_func innocuous_$ac_func
28559
28560 /* System header to define __stub macros and hopefully few prototypes,
28561     which can conflict with char $ac_func (); below.
28562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28563     <limits.h> exists even on freestanding compilers.  */
28564
28565 #ifdef __STDC__
28566 # include <limits.h>
28567 #else
28568 # include <assert.h>
28569 #endif
28570
28571 #undef $ac_func
28572
28573 /* Override any GCC internal prototype to avoid an error.
28574    Use char because int might match the return type of a GCC
28575    builtin and then its argument prototype would still apply.  */
28576 #ifdef __cplusplus
28577 extern "C"
28578 #endif
28579 char $ac_func ();
28580 /* The GNU C library defines this for functions which it implements
28581     to always fail with ENOSYS.  Some functions are actually named
28582     something starting with __ and the normal name is an alias.  */
28583 #if defined __stub_$ac_func || defined __stub___$ac_func
28584 choke me
28585 #endif
28586
28587 int
28588 main ()
28589 {
28590 return $ac_func ();
28591   ;
28592   return 0;
28593 }
28594 _ACEOF
28595 rm -f conftest.$ac_objext conftest$ac_exeext
28596 if { (ac_try="$ac_link"
28597 case "(($ac_try" in
28598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28599   *) ac_try_echo=$ac_try;;
28600 esac
28601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28602   (eval "$ac_link") 2>conftest.er1
28603   ac_status=$?
28604   grep -v '^ *+' conftest.er1 >conftest.err
28605   rm -f conftest.er1
28606   cat conftest.err >&5
28607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608   (exit $ac_status); } &&
28609          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28610   { (case "(($ac_try" in
28611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612   *) ac_try_echo=$ac_try;;
28613 esac
28614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28615   (eval "$ac_try") 2>&5
28616   ac_status=$?
28617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618   (exit $ac_status); }; } &&
28619          { ac_try='test -s conftest$ac_exeext'
28620   { (case "(($ac_try" in
28621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28622   *) ac_try_echo=$ac_try;;
28623 esac
28624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28625   (eval "$ac_try") 2>&5
28626   ac_status=$?
28627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628   (exit $ac_status); }; }; then
28629   eval "$as_ac_var=yes"
28630 else
28631   echo "$as_me: failed program was:" >&5
28632 sed 's/^/| /' conftest.$ac_ext >&5
28633
28634         eval "$as_ac_var=no"
28635 fi
28636
28637 rm -f core conftest.err conftest.$ac_objext \
28638       conftest$ac_exeext conftest.$ac_ext
28639 fi
28640 ac_res=`eval echo '${'$as_ac_var'}'`
28641                { echo "$as_me:$LINENO: result: $ac_res" >&5
28642 echo "${ECHO_T}$ac_res" >&6; }
28643 if test `eval echo '${'$as_ac_var'}'` = yes; then
28644   cat >>confdefs.h <<_ACEOF
28645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28646 _ACEOF
28647
28648 else
28649   case " $LIBOBJS " in
28650   *" $ac_func.$ac_objext "* ) ;;
28651   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
28652  ;;
28653 esac
28654
28655 fi
28656 done
28657
28658
28659   if test $ac_cv_func_vasnprintf = no; then
28660     case " $LIBOBJS " in
28661   *" printf-args.$ac_objext "* ) ;;
28662   *) LIBOBJS="$LIBOBJS printf-args.$ac_objext"
28663  ;;
28664 esac
28665
28666     case " $LIBOBJS " in
28667   *" printf-parse.$ac_objext "* ) ;;
28668   *) LIBOBJS="$LIBOBJS printf-parse.$ac_objext"
28669  ;;
28670 esac
28671
28672     case " $LIBOBJS " in
28673   *" asnprintf.$ac_objext "* ) ;;
28674   *) LIBOBJS="$LIBOBJS asnprintf.$ac_objext"
28675  ;;
28676 esac
28677
28678
28679
28680
28681
28682
28683
28684
28685
28686
28687
28688
28689
28690
28691   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
28692 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
28693 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
28694   echo $ECHO_N "(cached) $ECHO_C" >&6
28695 else
28696   cat >conftest.$ac_ext <<_ACEOF
28697 /* confdefs.h.  */
28698 _ACEOF
28699 cat confdefs.h >>conftest.$ac_ext
28700 cat >>conftest.$ac_ext <<_ACEOF
28701 /* end confdefs.h.  */
28702 $ac_includes_default
28703 typedef ptrdiff_t ac__type_new_;
28704 int
28705 main ()
28706 {
28707 if ((ac__type_new_ *) 0)
28708   return 0;
28709 if (sizeof (ac__type_new_))
28710   return 0;
28711   ;
28712   return 0;
28713 }
28714 _ACEOF
28715 rm -f conftest.$ac_objext
28716 if { (ac_try="$ac_compile"
28717 case "(($ac_try" in
28718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28719   *) ac_try_echo=$ac_try;;
28720 esac
28721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28722   (eval "$ac_compile") 2>conftest.er1
28723   ac_status=$?
28724   grep -v '^ *+' conftest.er1 >conftest.err
28725   rm -f conftest.er1
28726   cat conftest.err >&5
28727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28728   (exit $ac_status); } &&
28729          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28730   { (case "(($ac_try" in
28731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28732   *) ac_try_echo=$ac_try;;
28733 esac
28734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28735   (eval "$ac_try") 2>&5
28736   ac_status=$?
28737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28738   (exit $ac_status); }; } &&
28739          { ac_try='test -s conftest.$ac_objext'
28740   { (case "(($ac_try" in
28741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28742   *) ac_try_echo=$ac_try;;
28743 esac
28744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28745   (eval "$ac_try") 2>&5
28746   ac_status=$?
28747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748   (exit $ac_status); }; }; then
28749   ac_cv_type_ptrdiff_t=yes
28750 else
28751   echo "$as_me: failed program was:" >&5
28752 sed 's/^/| /' conftest.$ac_ext >&5
28753
28754         ac_cv_type_ptrdiff_t=no
28755 fi
28756
28757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28758 fi
28759 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
28760 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
28761 if test $ac_cv_type_ptrdiff_t = yes; then
28762
28763 cat >>confdefs.h <<_ACEOF
28764 #define HAVE_PTRDIFF_T 1
28765 _ACEOF
28766
28767
28768 fi
28769
28770
28771
28772
28773
28774
28775
28776
28777
28778
28779
28780 for ac_func in snprintf wcslen
28781 do
28782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28783 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28786   echo $ECHO_N "(cached) $ECHO_C" >&6
28787 else
28788   cat >conftest.$ac_ext <<_ACEOF
28789 /* confdefs.h.  */
28790 _ACEOF
28791 cat confdefs.h >>conftest.$ac_ext
28792 cat >>conftest.$ac_ext <<_ACEOF
28793 /* end confdefs.h.  */
28794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28796 #define $ac_func innocuous_$ac_func
28797
28798 /* System header to define __stub macros and hopefully few prototypes,
28799     which can conflict with char $ac_func (); below.
28800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28801     <limits.h> exists even on freestanding compilers.  */
28802
28803 #ifdef __STDC__
28804 # include <limits.h>
28805 #else
28806 # include <assert.h>
28807 #endif
28808
28809 #undef $ac_func
28810
28811 /* Override any GCC internal prototype to avoid an error.
28812    Use char because int might match the return type of a GCC
28813    builtin and then its argument prototype would still apply.  */
28814 #ifdef __cplusplus
28815 extern "C"
28816 #endif
28817 char $ac_func ();
28818 /* The GNU C library defines this for functions which it implements
28819     to always fail with ENOSYS.  Some functions are actually named
28820     something starting with __ and the normal name is an alias.  */
28821 #if defined __stub_$ac_func || defined __stub___$ac_func
28822 choke me
28823 #endif
28824
28825 int
28826 main ()
28827 {
28828 return $ac_func ();
28829   ;
28830   return 0;
28831 }
28832 _ACEOF
28833 rm -f conftest.$ac_objext conftest$ac_exeext
28834 if { (ac_try="$ac_link"
28835 case "(($ac_try" in
28836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28837   *) ac_try_echo=$ac_try;;
28838 esac
28839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28840   (eval "$ac_link") 2>conftest.er1
28841   ac_status=$?
28842   grep -v '^ *+' conftest.er1 >conftest.err
28843   rm -f conftest.er1
28844   cat conftest.err >&5
28845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846   (exit $ac_status); } &&
28847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28848   { (case "(($ac_try" in
28849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28850   *) ac_try_echo=$ac_try;;
28851 esac
28852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28853   (eval "$ac_try") 2>&5
28854   ac_status=$?
28855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28856   (exit $ac_status); }; } &&
28857          { ac_try='test -s conftest$ac_exeext'
28858   { (case "(($ac_try" in
28859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28860   *) ac_try_echo=$ac_try;;
28861 esac
28862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28863   (eval "$ac_try") 2>&5
28864   ac_status=$?
28865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866   (exit $ac_status); }; }; then
28867   eval "$as_ac_var=yes"
28868 else
28869   echo "$as_me: failed program was:" >&5
28870 sed 's/^/| /' conftest.$ac_ext >&5
28871
28872         eval "$as_ac_var=no"
28873 fi
28874
28875 rm -f core conftest.err conftest.$ac_objext \
28876       conftest$ac_exeext conftest.$ac_ext
28877 fi
28878 ac_res=`eval echo '${'$as_ac_var'}'`
28879                { echo "$as_me:$LINENO: result: $ac_res" >&5
28880 echo "${ECHO_T}$ac_res" >&6; }
28881 if test `eval echo '${'$as_ac_var'}'` = yes; then
28882   cat >>confdefs.h <<_ACEOF
28883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28884 _ACEOF
28885
28886 fi
28887 done
28888
28889
28890
28891
28892   fi
28893
28894
28895
28896 for ac_func in vasprintf
28897 do
28898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28902   echo $ECHO_N "(cached) $ECHO_C" >&6
28903 else
28904   cat >conftest.$ac_ext <<_ACEOF
28905 /* confdefs.h.  */
28906 _ACEOF
28907 cat confdefs.h >>conftest.$ac_ext
28908 cat >>conftest.$ac_ext <<_ACEOF
28909 /* end confdefs.h.  */
28910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28911    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28912 #define $ac_func innocuous_$ac_func
28913
28914 /* System header to define __stub macros and hopefully few prototypes,
28915     which can conflict with char $ac_func (); below.
28916     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28917     <limits.h> exists even on freestanding compilers.  */
28918
28919 #ifdef __STDC__
28920 # include <limits.h>
28921 #else
28922 # include <assert.h>
28923 #endif
28924
28925 #undef $ac_func
28926
28927 /* Override any GCC internal prototype to avoid an error.
28928    Use char because int might match the return type of a GCC
28929    builtin and then its argument prototype would still apply.  */
28930 #ifdef __cplusplus
28931 extern "C"
28932 #endif
28933 char $ac_func ();
28934 /* The GNU C library defines this for functions which it implements
28935     to always fail with ENOSYS.  Some functions are actually named
28936     something starting with __ and the normal name is an alias.  */
28937 #if defined __stub_$ac_func || defined __stub___$ac_func
28938 choke me
28939 #endif
28940
28941 int
28942 main ()
28943 {
28944 return $ac_func ();
28945   ;
28946   return 0;
28947 }
28948 _ACEOF
28949 rm -f conftest.$ac_objext conftest$ac_exeext
28950 if { (ac_try="$ac_link"
28951 case "(($ac_try" in
28952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28953   *) ac_try_echo=$ac_try;;
28954 esac
28955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28956   (eval "$ac_link") 2>conftest.er1
28957   ac_status=$?
28958   grep -v '^ *+' conftest.er1 >conftest.err
28959   rm -f conftest.er1
28960   cat conftest.err >&5
28961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962   (exit $ac_status); } &&
28963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28964   { (case "(($ac_try" in
28965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28966   *) ac_try_echo=$ac_try;;
28967 esac
28968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28969   (eval "$ac_try") 2>&5
28970   ac_status=$?
28971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28972   (exit $ac_status); }; } &&
28973          { ac_try='test -s conftest$ac_exeext'
28974   { (case "(($ac_try" in
28975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28976   *) ac_try_echo=$ac_try;;
28977 esac
28978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28979   (eval "$ac_try") 2>&5
28980   ac_status=$?
28981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28982   (exit $ac_status); }; }; then
28983   eval "$as_ac_var=yes"
28984 else
28985   echo "$as_me: failed program was:" >&5
28986 sed 's/^/| /' conftest.$ac_ext >&5
28987
28988         eval "$as_ac_var=no"
28989 fi
28990
28991 rm -f core conftest.err conftest.$ac_objext \
28992       conftest$ac_exeext conftest.$ac_ext
28993 fi
28994 ac_res=`eval echo '${'$as_ac_var'}'`
28995                { echo "$as_me:$LINENO: result: $ac_res" >&5
28996 echo "${ECHO_T}$ac_res" >&6; }
28997 if test `eval echo '${'$as_ac_var'}'` = yes; then
28998   cat >>confdefs.h <<_ACEOF
28999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29000 _ACEOF
29001
29002 else
29003   case " $LIBOBJS " in
29004   *" $ac_func.$ac_objext "* ) ;;
29005   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
29006  ;;
29007 esac
29008
29009 fi
29010 done
29011
29012
29013   if test $ac_cv_func_vasprintf = no; then
29014     case " $LIBOBJS " in
29015   *" asprintf.$ac_objext "* ) ;;
29016   *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
29017  ;;
29018 esac
29019
29020
29021
29022
29023
29024   fi
29025
29026
29027
29028
29029
29030
29031
29032
29033
29034
29035
29036
29037
29038
29039
29040
29041
29042
29043
29044
29045
29046
29047
29048
29049
29050
29051
29052
29053
29054
29055
29056
29057   { echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
29058 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6; }
29059 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
29060   echo $ECHO_N "(cached) $ECHO_C" >&6
29061 else
29062   cat >conftest.$ac_ext <<_ACEOF
29063 /* confdefs.h.  */
29064 _ACEOF
29065 cat confdefs.h >>conftest.$ac_ext
29066 cat >>conftest.$ac_ext <<_ACEOF
29067 /* end confdefs.h.  */
29068
29069 /* AIX 3.2.5 declares wcwidth in <string.h>. */
29070 #if HAVE_STRING_H
29071 # include <string.h>
29072 #endif
29073 #if HAVE_WCHAR_H
29074 # include <wchar.h>
29075 #endif
29076
29077
29078 int
29079 main ()
29080 {
29081 #ifndef wcwidth
29082   char *p = (char *) wcwidth;
29083   return !p;
29084 #endif
29085
29086   ;
29087   return 0;
29088 }
29089 _ACEOF
29090 rm -f conftest.$ac_objext
29091 if { (ac_try="$ac_compile"
29092 case "(($ac_try" in
29093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29094   *) ac_try_echo=$ac_try;;
29095 esac
29096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29097   (eval "$ac_compile") 2>conftest.er1
29098   ac_status=$?
29099   grep -v '^ *+' conftest.er1 >conftest.err
29100   rm -f conftest.er1
29101   cat conftest.err >&5
29102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29103   (exit $ac_status); } &&
29104          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29105   { (case "(($ac_try" in
29106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29107   *) ac_try_echo=$ac_try;;
29108 esac
29109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29110   (eval "$ac_try") 2>&5
29111   ac_status=$?
29112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29113   (exit $ac_status); }; } &&
29114          { ac_try='test -s conftest.$ac_objext'
29115   { (case "(($ac_try" in
29116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29117   *) ac_try_echo=$ac_try;;
29118 esac
29119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29120   (eval "$ac_try") 2>&5
29121   ac_status=$?
29122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29123   (exit $ac_status); }; }; then
29124   ac_cv_have_decl_wcwidth=yes
29125 else
29126   echo "$as_me: failed program was:" >&5
29127 sed 's/^/| /' conftest.$ac_ext >&5
29128
29129         ac_cv_have_decl_wcwidth=no
29130 fi
29131
29132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29133 fi
29134 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
29135 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6; }
29136 if test $ac_cv_have_decl_wcwidth = yes; then
29137
29138 cat >>confdefs.h <<_ACEOF
29139 #define HAVE_DECL_WCWIDTH 1
29140 _ACEOF
29141
29142
29143 else
29144   cat >>confdefs.h <<_ACEOF
29145 #define HAVE_DECL_WCWIDTH 0
29146 _ACEOF
29147
29148
29149 fi
29150
29151
29152
29153
29154
29155
29156
29157
29158
29159
29160
29161
29162
29163
29164
29165
29166
29167
29168
29169
29170
29171
29172
29173   { echo "$as_me:$LINENO: checking for struct timespec" >&5
29174 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
29175 if test "${fu_cv_sys_struct_timespec+set}" = set; then
29176   echo $ECHO_N "(cached) $ECHO_C" >&6
29177 else
29178   cat >conftest.$ac_ext <<_ACEOF
29179 /* confdefs.h.  */
29180 _ACEOF
29181 cat confdefs.h >>conftest.$ac_ext
29182 cat >>conftest.$ac_ext <<_ACEOF
29183 /* end confdefs.h.  */
29184
29185 #      if TIME_WITH_SYS_TIME
29186 #       include <sys/time.h>
29187 #       include <time.h>
29188 #      else
29189 #       if HAVE_SYS_TIME_H
29190 #        include <sys/time.h>
29191 #       else
29192 #        include <time.h>
29193 #       endif
29194 #      endif
29195
29196 int
29197 main ()
29198 {
29199 static struct timespec x; x.tv_sec = x.tv_nsec;
29200   ;
29201   return 0;
29202 }
29203 _ACEOF
29204 rm -f conftest.$ac_objext
29205 if { (ac_try="$ac_compile"
29206 case "(($ac_try" in
29207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29208   *) ac_try_echo=$ac_try;;
29209 esac
29210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29211   (eval "$ac_compile") 2>conftest.er1
29212   ac_status=$?
29213   grep -v '^ *+' conftest.er1 >conftest.err
29214   rm -f conftest.er1
29215   cat conftest.err >&5
29216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29217   (exit $ac_status); } &&
29218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29219   { (case "(($ac_try" in
29220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29221   *) ac_try_echo=$ac_try;;
29222 esac
29223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29224   (eval "$ac_try") 2>&5
29225   ac_status=$?
29226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227   (exit $ac_status); }; } &&
29228          { ac_try='test -s conftest.$ac_objext'
29229   { (case "(($ac_try" in
29230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29231   *) ac_try_echo=$ac_try;;
29232 esac
29233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29234   (eval "$ac_try") 2>&5
29235   ac_status=$?
29236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237   (exit $ac_status); }; }; then
29238   fu_cv_sys_struct_timespec=yes
29239 else
29240   echo "$as_me: failed program was:" >&5
29241 sed 's/^/| /' conftest.$ac_ext >&5
29242
29243         fu_cv_sys_struct_timespec=no
29244 fi
29245
29246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29247
29248 fi
29249 { echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
29250 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6; }
29251
29252   if test $fu_cv_sys_struct_timespec = yes; then
29253
29254 cat >>confdefs.h <<\_ACEOF
29255 #define HAVE_STRUCT_TIMESPEC 1
29256 _ACEOF
29257
29258   fi
29259
29260
29261
29262
29263   { echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
29264 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6; }
29265 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
29266   echo $ECHO_N "(cached) $ECHO_C" >&6
29267 else
29268   cat >conftest.$ac_ext <<_ACEOF
29269 /* confdefs.h.  */
29270 _ACEOF
29271 cat confdefs.h >>conftest.$ac_ext
29272 cat >>conftest.$ac_ext <<_ACEOF
29273 /* end confdefs.h.  */
29274 #include <time.h>
29275
29276 int
29277 main ()
29278 {
29279 #ifndef nanosleep
29280   char *p = (char *) nanosleep;
29281   return !p;
29282 #endif
29283
29284   ;
29285   return 0;
29286 }
29287 _ACEOF
29288 rm -f conftest.$ac_objext
29289 if { (ac_try="$ac_compile"
29290 case "(($ac_try" in
29291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29292   *) ac_try_echo=$ac_try;;
29293 esac
29294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29295   (eval "$ac_compile") 2>conftest.er1
29296   ac_status=$?
29297   grep -v '^ *+' conftest.er1 >conftest.err
29298   rm -f conftest.er1
29299   cat conftest.err >&5
29300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29301   (exit $ac_status); } &&
29302          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29303   { (case "(($ac_try" in
29304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29305   *) ac_try_echo=$ac_try;;
29306 esac
29307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29308   (eval "$ac_try") 2>&5
29309   ac_status=$?
29310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311   (exit $ac_status); }; } &&
29312          { ac_try='test -s conftest.$ac_objext'
29313   { (case "(($ac_try" in
29314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29315   *) ac_try_echo=$ac_try;;
29316 esac
29317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29318   (eval "$ac_try") 2>&5
29319   ac_status=$?
29320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321   (exit $ac_status); }; }; then
29322   ac_cv_have_decl_nanosleep=yes
29323 else
29324   echo "$as_me: failed program was:" >&5
29325 sed 's/^/| /' conftest.$ac_ext >&5
29326
29327         ac_cv_have_decl_nanosleep=no
29328 fi
29329
29330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29331 fi
29332 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
29333 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6; }
29334 if test $ac_cv_have_decl_nanosleep = yes; then
29335
29336 cat >>confdefs.h <<_ACEOF
29337 #define HAVE_DECL_NANOSLEEP 1
29338 _ACEOF
29339
29340
29341 else
29342   cat >>confdefs.h <<_ACEOF
29343 #define HAVE_DECL_NANOSLEEP 0
29344 _ACEOF
29345
29346
29347 fi
29348
29349
29350
29351
29352   # getdate.y works with bison only.
29353   : ${YACC='bison -y'}
29354
29355
29356   { echo "$as_me:$LINENO: checking for compound literals" >&5
29357 echo $ECHO_N "checking for compound literals... $ECHO_C" >&6; }
29358 if test "${gl_cv_compound_literals+set}" = set; then
29359   echo $ECHO_N "(cached) $ECHO_C" >&6
29360 else
29361   cat >conftest.$ac_ext <<_ACEOF
29362 /* confdefs.h.  */
29363 _ACEOF
29364 cat confdefs.h >>conftest.$ac_ext
29365 cat >>conftest.$ac_ext <<_ACEOF
29366 /* end confdefs.h.  */
29367 struct s { int i, j; }; struct s s = (struct s) { 1, 2 };
29368 int
29369 main ()
29370 {
29371 struct s t = (struct s) { 3, 4 };
29372   ;
29373   return 0;
29374 }
29375 _ACEOF
29376 rm -f conftest.$ac_objext
29377 if { (ac_try="$ac_compile"
29378 case "(($ac_try" in
29379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29380   *) ac_try_echo=$ac_try;;
29381 esac
29382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29383   (eval "$ac_compile") 2>conftest.er1
29384   ac_status=$?
29385   grep -v '^ *+' conftest.er1 >conftest.err
29386   rm -f conftest.er1
29387   cat conftest.err >&5
29388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29389   (exit $ac_status); } &&
29390          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29391   { (case "(($ac_try" in
29392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29393   *) ac_try_echo=$ac_try;;
29394 esac
29395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29396   (eval "$ac_try") 2>&5
29397   ac_status=$?
29398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399   (exit $ac_status); }; } &&
29400          { ac_try='test -s conftest.$ac_objext'
29401   { (case "(($ac_try" in
29402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29403   *) ac_try_echo=$ac_try;;
29404 esac
29405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29406   (eval "$ac_try") 2>&5
29407   ac_status=$?
29408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409   (exit $ac_status); }; }; then
29410   gl_cv_compound_literals=yes
29411 else
29412   echo "$as_me: failed program was:" >&5
29413 sed 's/^/| /' conftest.$ac_ext >&5
29414
29415         gl_cv_compound_literals=no
29416 fi
29417
29418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29419 fi
29420 { echo "$as_me:$LINENO: result: $gl_cv_compound_literals" >&5
29421 echo "${ECHO_T}$gl_cv_compound_literals" >&6; }
29422   if test $gl_cv_compound_literals = yes; then
29423
29424 cat >>confdefs.h <<\_ACEOF
29425 #define HAVE_COMPOUND_LITERALS 1
29426 _ACEOF
29427
29428   fi
29429
29430 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29431 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29432 if test "${ac_cv_struct_tm+set}" = set; then
29433   echo $ECHO_N "(cached) $ECHO_C" >&6
29434 else
29435   cat >conftest.$ac_ext <<_ACEOF
29436 /* confdefs.h.  */
29437 _ACEOF
29438 cat confdefs.h >>conftest.$ac_ext
29439 cat >>conftest.$ac_ext <<_ACEOF
29440 /* end confdefs.h.  */
29441 #include <sys/types.h>
29442 #include <time.h>
29443
29444 int
29445 main ()
29446 {
29447 struct tm *tp; tp->tm_sec;
29448   ;
29449   return 0;
29450 }
29451 _ACEOF
29452 rm -f conftest.$ac_objext
29453 if { (ac_try="$ac_compile"
29454 case "(($ac_try" in
29455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29456   *) ac_try_echo=$ac_try;;
29457 esac
29458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29459   (eval "$ac_compile") 2>conftest.er1
29460   ac_status=$?
29461   grep -v '^ *+' conftest.er1 >conftest.err
29462   rm -f conftest.er1
29463   cat conftest.err >&5
29464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465   (exit $ac_status); } &&
29466          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29467   { (case "(($ac_try" in
29468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29469   *) ac_try_echo=$ac_try;;
29470 esac
29471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29472   (eval "$ac_try") 2>&5
29473   ac_status=$?
29474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475   (exit $ac_status); }; } &&
29476          { ac_try='test -s conftest.$ac_objext'
29477   { (case "(($ac_try" in
29478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29479   *) ac_try_echo=$ac_try;;
29480 esac
29481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29482   (eval "$ac_try") 2>&5
29483   ac_status=$?
29484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485   (exit $ac_status); }; }; then
29486   ac_cv_struct_tm=time.h
29487 else
29488   echo "$as_me: failed program was:" >&5
29489 sed 's/^/| /' conftest.$ac_ext >&5
29490
29491         ac_cv_struct_tm=sys/time.h
29492 fi
29493
29494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29495 fi
29496 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29497 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29498 if test $ac_cv_struct_tm = sys/time.h; then
29499
29500 cat >>confdefs.h <<\_ACEOF
29501 #define TM_IN_SYS_TIME 1
29502 _ACEOF
29503
29504 fi
29505
29506
29507
29508
29509   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
29510   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
29511
29512   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
29513   # programs in the package would end up linked with that potentially-shared
29514   # library, inducing unnecessary run-time overhead.
29515   gl_saved_libs=$LIBS
29516     { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
29517 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
29518 if test "${ac_cv_search_clock_gettime+set}" = set; then
29519   echo $ECHO_N "(cached) $ECHO_C" >&6
29520 else
29521   ac_func_search_save_LIBS=$LIBS
29522 cat >conftest.$ac_ext <<_ACEOF
29523 /* confdefs.h.  */
29524 _ACEOF
29525 cat confdefs.h >>conftest.$ac_ext
29526 cat >>conftest.$ac_ext <<_ACEOF
29527 /* end confdefs.h.  */
29528
29529 /* Override any GCC internal prototype to avoid an error.
29530    Use char because int might match the return type of a GCC
29531    builtin and then its argument prototype would still apply.  */
29532 #ifdef __cplusplus
29533 extern "C"
29534 #endif
29535 char clock_gettime ();
29536 int
29537 main ()
29538 {
29539 return clock_gettime ();
29540   ;
29541   return 0;
29542 }
29543 _ACEOF
29544 for ac_lib in '' rt posix4; do
29545   if test -z "$ac_lib"; then
29546     ac_res="none required"
29547   else
29548     ac_res=-l$ac_lib
29549     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29550   fi
29551   rm -f conftest.$ac_objext conftest$ac_exeext
29552 if { (ac_try="$ac_link"
29553 case "(($ac_try" in
29554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29555   *) ac_try_echo=$ac_try;;
29556 esac
29557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29558   (eval "$ac_link") 2>conftest.er1
29559   ac_status=$?
29560   grep -v '^ *+' conftest.er1 >conftest.err
29561   rm -f conftest.er1
29562   cat conftest.err >&5
29563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29564   (exit $ac_status); } &&
29565          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29566   { (case "(($ac_try" in
29567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29568   *) ac_try_echo=$ac_try;;
29569 esac
29570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29571   (eval "$ac_try") 2>&5
29572   ac_status=$?
29573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29574   (exit $ac_status); }; } &&
29575          { ac_try='test -s conftest$ac_exeext'
29576   { (case "(($ac_try" in
29577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29578   *) ac_try_echo=$ac_try;;
29579 esac
29580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29581   (eval "$ac_try") 2>&5
29582   ac_status=$?
29583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584   (exit $ac_status); }; }; then
29585   ac_cv_search_clock_gettime=$ac_res
29586 else
29587   echo "$as_me: failed program was:" >&5
29588 sed 's/^/| /' conftest.$ac_ext >&5
29589
29590
29591 fi
29592
29593 rm -f core conftest.err conftest.$ac_objext \
29594       conftest$ac_exeext
29595   if test "${ac_cv_search_clock_gettime+set}" = set; then
29596   break
29597 fi
29598 done
29599 if test "${ac_cv_search_clock_gettime+set}" = set; then
29600   :
29601 else
29602   ac_cv_search_clock_gettime=no
29603 fi
29604 rm conftest.$ac_ext
29605 LIBS=$ac_func_search_save_LIBS
29606 fi
29607 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
29608 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
29609 ac_res=$ac_cv_search_clock_gettime
29610 if test "$ac_res" != no; then
29611   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29612   test "$ac_cv_search_clock_gettime" = "none required" ||
29613                     LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
29614 fi
29615
29616
29617
29618
29619 for ac_func in clock_gettime clock_settime
29620 do
29621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29622 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29625   echo $ECHO_N "(cached) $ECHO_C" >&6
29626 else
29627   cat >conftest.$ac_ext <<_ACEOF
29628 /* confdefs.h.  */
29629 _ACEOF
29630 cat confdefs.h >>conftest.$ac_ext
29631 cat >>conftest.$ac_ext <<_ACEOF
29632 /* end confdefs.h.  */
29633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29634    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29635 #define $ac_func innocuous_$ac_func
29636
29637 /* System header to define __stub macros and hopefully few prototypes,
29638     which can conflict with char $ac_func (); below.
29639     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29640     <limits.h> exists even on freestanding compilers.  */
29641
29642 #ifdef __STDC__
29643 # include <limits.h>
29644 #else
29645 # include <assert.h>
29646 #endif
29647
29648 #undef $ac_func
29649
29650 /* Override any GCC internal prototype to avoid an error.
29651    Use char because int might match the return type of a GCC
29652    builtin and then its argument prototype would still apply.  */
29653 #ifdef __cplusplus
29654 extern "C"
29655 #endif
29656 char $ac_func ();
29657 /* The GNU C library defines this for functions which it implements
29658     to always fail with ENOSYS.  Some functions are actually named
29659     something starting with __ and the normal name is an alias.  */
29660 #if defined __stub_$ac_func || defined __stub___$ac_func
29661 choke me
29662 #endif
29663
29664 int
29665 main ()
29666 {
29667 return $ac_func ();
29668   ;
29669   return 0;
29670 }
29671 _ACEOF
29672 rm -f conftest.$ac_objext conftest$ac_exeext
29673 if { (ac_try="$ac_link"
29674 case "(($ac_try" in
29675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29676   *) ac_try_echo=$ac_try;;
29677 esac
29678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29679   (eval "$ac_link") 2>conftest.er1
29680   ac_status=$?
29681   grep -v '^ *+' conftest.er1 >conftest.err
29682   rm -f conftest.er1
29683   cat conftest.err >&5
29684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685   (exit $ac_status); } &&
29686          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29687   { (case "(($ac_try" in
29688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29689   *) ac_try_echo=$ac_try;;
29690 esac
29691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29692   (eval "$ac_try") 2>&5
29693   ac_status=$?
29694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29695   (exit $ac_status); }; } &&
29696          { ac_try='test -s conftest$ac_exeext'
29697   { (case "(($ac_try" in
29698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29699   *) ac_try_echo=$ac_try;;
29700 esac
29701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29702   (eval "$ac_try") 2>&5
29703   ac_status=$?
29704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705   (exit $ac_status); }; }; then
29706   eval "$as_ac_var=yes"
29707 else
29708   echo "$as_me: failed program was:" >&5
29709 sed 's/^/| /' conftest.$ac_ext >&5
29710
29711         eval "$as_ac_var=no"
29712 fi
29713
29714 rm -f core conftest.err conftest.$ac_objext \
29715       conftest$ac_exeext conftest.$ac_ext
29716 fi
29717 ac_res=`eval echo '${'$as_ac_var'}'`
29718                { echo "$as_me:$LINENO: result: $ac_res" >&5
29719 echo "${ECHO_T}$ac_res" >&6; }
29720 if test `eval echo '${'$as_ac_var'}'` = yes; then
29721   cat >>confdefs.h <<_ACEOF
29722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29723 _ACEOF
29724
29725 fi
29726 done
29727
29728   LIBS=$gl_saved_libs
29729
29730
29731  { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
29732 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
29733 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
29734   echo $ECHO_N "(cached) $ECHO_C" >&6
29735 else
29736   cat >conftest.$ac_ext <<_ACEOF
29737 /* confdefs.h.  */
29738 _ACEOF
29739 cat confdefs.h >>conftest.$ac_ext
29740 cat >>conftest.$ac_ext <<_ACEOF
29741 /* end confdefs.h.  */
29742 #include <time.h>
29743
29744 int
29745 main ()
29746 {
29747 static struct tm ac_aggr;
29748 if (ac_aggr.tm_gmtoff)
29749 return 0;
29750   ;
29751   return 0;
29752 }
29753 _ACEOF
29754 rm -f conftest.$ac_objext
29755 if { (ac_try="$ac_compile"
29756 case "(($ac_try" in
29757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29758   *) ac_try_echo=$ac_try;;
29759 esac
29760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29761   (eval "$ac_compile") 2>conftest.er1
29762   ac_status=$?
29763   grep -v '^ *+' conftest.er1 >conftest.err
29764   rm -f conftest.er1
29765   cat conftest.err >&5
29766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767   (exit $ac_status); } &&
29768          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29769   { (case "(($ac_try" in
29770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29771   *) ac_try_echo=$ac_try;;
29772 esac
29773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29774   (eval "$ac_try") 2>&5
29775   ac_status=$?
29776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777   (exit $ac_status); }; } &&
29778          { ac_try='test -s conftest.$ac_objext'
29779   { (case "(($ac_try" in
29780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29781   *) ac_try_echo=$ac_try;;
29782 esac
29783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29784   (eval "$ac_try") 2>&5
29785   ac_status=$?
29786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29787   (exit $ac_status); }; }; then
29788   ac_cv_member_struct_tm_tm_gmtoff=yes
29789 else
29790   echo "$as_me: failed program was:" >&5
29791 sed 's/^/| /' conftest.$ac_ext >&5
29792
29793         cat >conftest.$ac_ext <<_ACEOF
29794 /* confdefs.h.  */
29795 _ACEOF
29796 cat confdefs.h >>conftest.$ac_ext
29797 cat >>conftest.$ac_ext <<_ACEOF
29798 /* end confdefs.h.  */
29799 #include <time.h>
29800
29801 int
29802 main ()
29803 {
29804 static struct tm ac_aggr;
29805 if (sizeof ac_aggr.tm_gmtoff)
29806 return 0;
29807   ;
29808   return 0;
29809 }
29810 _ACEOF
29811 rm -f conftest.$ac_objext
29812 if { (ac_try="$ac_compile"
29813 case "(($ac_try" in
29814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29815   *) ac_try_echo=$ac_try;;
29816 esac
29817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29818   (eval "$ac_compile") 2>conftest.er1
29819   ac_status=$?
29820   grep -v '^ *+' conftest.er1 >conftest.err
29821   rm -f conftest.er1
29822   cat conftest.err >&5
29823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824   (exit $ac_status); } &&
29825          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29826   { (case "(($ac_try" in
29827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29828   *) ac_try_echo=$ac_try;;
29829 esac
29830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29831   (eval "$ac_try") 2>&5
29832   ac_status=$?
29833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834   (exit $ac_status); }; } &&
29835          { ac_try='test -s conftest.$ac_objext'
29836   { (case "(($ac_try" in
29837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29838   *) ac_try_echo=$ac_try;;
29839 esac
29840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29841   (eval "$ac_try") 2>&5
29842   ac_status=$?
29843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844   (exit $ac_status); }; }; then
29845   ac_cv_member_struct_tm_tm_gmtoff=yes
29846 else
29847   echo "$as_me: failed program was:" >&5
29848 sed 's/^/| /' conftest.$ac_ext >&5
29849
29850         ac_cv_member_struct_tm_tm_gmtoff=no
29851 fi
29852
29853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29854 fi
29855
29856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29857 fi
29858 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
29859 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
29860 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
29861
29862 cat >>confdefs.h <<\_ACEOF
29863 #define HAVE_TM_GMTOFF 1
29864 _ACEOF
29865
29866 fi
29867
29868
29869
29870
29871   case " $LIBOBJS " in
29872   *" getdate.$ac_objext "* ) ;;
29873   *) LIBOBJS="$LIBOBJS getdate.$ac_objext"
29874  ;;
29875 esac
29876
29877
29878
29879
29880
29881
29882
29883   { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
29884 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
29885 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
29886   echo $ECHO_N "(cached) $ECHO_C" >&6
29887 else
29888   cat >conftest.$ac_ext <<_ACEOF
29889 /* confdefs.h.  */
29890 _ACEOF
29891 cat confdefs.h >>conftest.$ac_ext
29892 cat >>conftest.$ac_ext <<_ACEOF
29893 /* end confdefs.h.  */
29894 #include <sys/types.h>
29895 #include <$ac_cv_struct_tm>
29896
29897
29898 int
29899 main ()
29900 {
29901 static struct tm ac_aggr;
29902 if (ac_aggr.tm_zone)
29903 return 0;
29904   ;
29905   return 0;
29906 }
29907 _ACEOF
29908 rm -f conftest.$ac_objext
29909 if { (ac_try="$ac_compile"
29910 case "(($ac_try" in
29911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29912   *) ac_try_echo=$ac_try;;
29913 esac
29914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29915   (eval "$ac_compile") 2>conftest.er1
29916   ac_status=$?
29917   grep -v '^ *+' conftest.er1 >conftest.err
29918   rm -f conftest.er1
29919   cat conftest.err >&5
29920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921   (exit $ac_status); } &&
29922          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29923   { (case "(($ac_try" in
29924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29925   *) ac_try_echo=$ac_try;;
29926 esac
29927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29928   (eval "$ac_try") 2>&5
29929   ac_status=$?
29930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29931   (exit $ac_status); }; } &&
29932          { ac_try='test -s conftest.$ac_objext'
29933   { (case "(($ac_try" in
29934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29935   *) ac_try_echo=$ac_try;;
29936 esac
29937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29938   (eval "$ac_try") 2>&5
29939   ac_status=$?
29940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29941   (exit $ac_status); }; }; then
29942   ac_cv_member_struct_tm_tm_zone=yes
29943 else
29944   echo "$as_me: failed program was:" >&5
29945 sed 's/^/| /' conftest.$ac_ext >&5
29946
29947         cat >conftest.$ac_ext <<_ACEOF
29948 /* confdefs.h.  */
29949 _ACEOF
29950 cat confdefs.h >>conftest.$ac_ext
29951 cat >>conftest.$ac_ext <<_ACEOF
29952 /* end confdefs.h.  */
29953 #include <sys/types.h>
29954 #include <$ac_cv_struct_tm>
29955
29956
29957 int
29958 main ()
29959 {
29960 static struct tm ac_aggr;
29961 if (sizeof ac_aggr.tm_zone)
29962 return 0;
29963   ;
29964   return 0;
29965 }
29966 _ACEOF
29967 rm -f conftest.$ac_objext
29968 if { (ac_try="$ac_compile"
29969 case "(($ac_try" in
29970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29971   *) ac_try_echo=$ac_try;;
29972 esac
29973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29974   (eval "$ac_compile") 2>conftest.er1
29975   ac_status=$?
29976   grep -v '^ *+' conftest.er1 >conftest.err
29977   rm -f conftest.er1
29978   cat conftest.err >&5
29979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980   (exit $ac_status); } &&
29981          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29982   { (case "(($ac_try" in
29983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29984   *) ac_try_echo=$ac_try;;
29985 esac
29986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29987   (eval "$ac_try") 2>&5
29988   ac_status=$?
29989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29990   (exit $ac_status); }; } &&
29991          { ac_try='test -s conftest.$ac_objext'
29992   { (case "(($ac_try" in
29993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29994   *) ac_try_echo=$ac_try;;
29995 esac
29996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29997   (eval "$ac_try") 2>&5
29998   ac_status=$?
29999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30000   (exit $ac_status); }; }; then
30001   ac_cv_member_struct_tm_tm_zone=yes
30002 else
30003   echo "$as_me: failed program was:" >&5
30004 sed 's/^/| /' conftest.$ac_ext >&5
30005
30006         ac_cv_member_struct_tm_tm_zone=no
30007 fi
30008
30009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30010 fi
30011
30012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30013 fi
30014 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
30015 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
30016 if test $ac_cv_member_struct_tm_tm_zone = yes; then
30017
30018 cat >>confdefs.h <<_ACEOF
30019 #define HAVE_STRUCT_TM_TM_ZONE 1
30020 _ACEOF
30021
30022
30023 fi
30024
30025 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
30026
30027 cat >>confdefs.h <<\_ACEOF
30028 #define HAVE_TM_ZONE 1
30029 _ACEOF
30030
30031 else
30032   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
30033 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
30034 if test "${ac_cv_have_decl_tzname+set}" = set; then
30035   echo $ECHO_N "(cached) $ECHO_C" >&6
30036 else
30037   cat >conftest.$ac_ext <<_ACEOF
30038 /* confdefs.h.  */
30039 _ACEOF
30040 cat confdefs.h >>conftest.$ac_ext
30041 cat >>conftest.$ac_ext <<_ACEOF
30042 /* end confdefs.h.  */
30043 #include <time.h>
30044
30045 int
30046 main ()
30047 {
30048 #ifndef tzname
30049   char *p = (char *) tzname;
30050   return !p;
30051 #endif
30052
30053   ;
30054   return 0;
30055 }
30056 _ACEOF
30057 rm -f conftest.$ac_objext
30058 if { (ac_try="$ac_compile"
30059 case "(($ac_try" in
30060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30061   *) ac_try_echo=$ac_try;;
30062 esac
30063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30064   (eval "$ac_compile") 2>conftest.er1
30065   ac_status=$?
30066   grep -v '^ *+' conftest.er1 >conftest.err
30067   rm -f conftest.er1
30068   cat conftest.err >&5
30069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30070   (exit $ac_status); } &&
30071          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30072   { (case "(($ac_try" in
30073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30074   *) ac_try_echo=$ac_try;;
30075 esac
30076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30077   (eval "$ac_try") 2>&5
30078   ac_status=$?
30079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30080   (exit $ac_status); }; } &&
30081          { ac_try='test -s conftest.$ac_objext'
30082   { (case "(($ac_try" in
30083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30084   *) ac_try_echo=$ac_try;;
30085 esac
30086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30087   (eval "$ac_try") 2>&5
30088   ac_status=$?
30089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30090   (exit $ac_status); }; }; then
30091   ac_cv_have_decl_tzname=yes
30092 else
30093   echo "$as_me: failed program was:" >&5
30094 sed 's/^/| /' conftest.$ac_ext >&5
30095
30096         ac_cv_have_decl_tzname=no
30097 fi
30098
30099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30100 fi
30101 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
30102 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
30103 if test $ac_cv_have_decl_tzname = yes; then
30104
30105 cat >>confdefs.h <<_ACEOF
30106 #define HAVE_DECL_TZNAME 1
30107 _ACEOF
30108
30109
30110 else
30111   cat >>confdefs.h <<_ACEOF
30112 #define HAVE_DECL_TZNAME 0
30113 _ACEOF
30114
30115
30116 fi
30117
30118
30119   { echo "$as_me:$LINENO: checking for tzname" >&5
30120 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
30121 if test "${ac_cv_var_tzname+set}" = set; then
30122   echo $ECHO_N "(cached) $ECHO_C" >&6
30123 else
30124   cat >conftest.$ac_ext <<_ACEOF
30125 /* confdefs.h.  */
30126 _ACEOF
30127 cat confdefs.h >>conftest.$ac_ext
30128 cat >>conftest.$ac_ext <<_ACEOF
30129 /* end confdefs.h.  */
30130 #include <time.h>
30131 #if !HAVE_DECL_TZNAME
30132 extern char *tzname[];
30133 #endif
30134
30135 int
30136 main ()
30137 {
30138 return tzname[0][0];
30139   ;
30140   return 0;
30141 }
30142 _ACEOF
30143 rm -f conftest.$ac_objext conftest$ac_exeext
30144 if { (ac_try="$ac_link"
30145 case "(($ac_try" in
30146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30147   *) ac_try_echo=$ac_try;;
30148 esac
30149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30150   (eval "$ac_link") 2>conftest.er1
30151   ac_status=$?
30152   grep -v '^ *+' conftest.er1 >conftest.err
30153   rm -f conftest.er1
30154   cat conftest.err >&5
30155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30156   (exit $ac_status); } &&
30157          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30158   { (case "(($ac_try" in
30159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30160   *) ac_try_echo=$ac_try;;
30161 esac
30162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30163   (eval "$ac_try") 2>&5
30164   ac_status=$?
30165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30166   (exit $ac_status); }; } &&
30167          { ac_try='test -s conftest$ac_exeext'
30168   { (case "(($ac_try" in
30169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30170   *) ac_try_echo=$ac_try;;
30171 esac
30172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30173   (eval "$ac_try") 2>&5
30174   ac_status=$?
30175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30176   (exit $ac_status); }; }; then
30177   ac_cv_var_tzname=yes
30178 else
30179   echo "$as_me: failed program was:" >&5
30180 sed 's/^/| /' conftest.$ac_ext >&5
30181
30182         ac_cv_var_tzname=no
30183 fi
30184
30185 rm -f core conftest.err conftest.$ac_objext \
30186       conftest$ac_exeext conftest.$ac_ext
30187 fi
30188 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
30189 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
30190   if test $ac_cv_var_tzname = yes; then
30191
30192 cat >>confdefs.h <<\_ACEOF
30193 #define HAVE_TZNAME 1
30194 _ACEOF
30195
30196   fi
30197 fi
30198
30199
30200
30201
30202
30203
30204   { echo "$as_me:$LINENO: checking for arithmetic hrtime_t" >&5
30205 echo $ECHO_N "checking for arithmetic hrtime_t... $ECHO_C" >&6; }
30206 if test "${gl_cv_arithmetic_hrtime_t+set}" = set; then
30207   echo $ECHO_N "(cached) $ECHO_C" >&6
30208 else
30209   cat >conftest.$ac_ext <<_ACEOF
30210 /* confdefs.h.  */
30211 _ACEOF
30212 cat confdefs.h >>conftest.$ac_ext
30213 cat >>conftest.$ac_ext <<_ACEOF
30214 /* end confdefs.h.  */
30215 #include <time.h>
30216 int
30217 main ()
30218 {
30219 hrtime_t x = 0; return x/x;
30220   ;
30221   return 0;
30222 }
30223 _ACEOF
30224 rm -f conftest.$ac_objext
30225 if { (ac_try="$ac_compile"
30226 case "(($ac_try" in
30227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30228   *) ac_try_echo=$ac_try;;
30229 esac
30230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30231   (eval "$ac_compile") 2>conftest.er1
30232   ac_status=$?
30233   grep -v '^ *+' conftest.er1 >conftest.err
30234   rm -f conftest.er1
30235   cat conftest.err >&5
30236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30237   (exit $ac_status); } &&
30238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30239   { (case "(($ac_try" in
30240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30241   *) ac_try_echo=$ac_try;;
30242 esac
30243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30244   (eval "$ac_try") 2>&5
30245   ac_status=$?
30246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30247   (exit $ac_status); }; } &&
30248          { ac_try='test -s conftest.$ac_objext'
30249   { (case "(($ac_try" in
30250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30251   *) ac_try_echo=$ac_try;;
30252 esac
30253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30254   (eval "$ac_try") 2>&5
30255   ac_status=$?
30256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257   (exit $ac_status); }; }; then
30258   gl_cv_arithmetic_hrtime_t=yes
30259 else
30260   echo "$as_me: failed program was:" >&5
30261 sed 's/^/| /' conftest.$ac_ext >&5
30262
30263         gl_cv_arithmetic_hrtime_t=no
30264 fi
30265
30266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30267 fi
30268 { echo "$as_me:$LINENO: result: $gl_cv_arithmetic_hrtime_t" >&5
30269 echo "${ECHO_T}$gl_cv_arithmetic_hrtime_t" >&6; }
30270   if test $gl_cv_arithmetic_hrtime_t = yes; then
30271
30272 cat >>confdefs.h <<\_ACEOF
30273 #define HAVE_ARITHMETIC_HRTIME_T 1
30274 _ACEOF
30275
30276   fi
30277
30278
30279
30280
30281   :
30282
30283
30284
30285
30286
30287
30288
30289
30290
30291
30292   { echo "$as_me:$LINENO: checking whether gethrtime is declared" >&5
30293 echo $ECHO_N "checking whether gethrtime is declared... $ECHO_C" >&6; }
30294 if test "${ac_cv_have_decl_gethrtime+set}" = set; then
30295   echo $ECHO_N "(cached) $ECHO_C" >&6
30296 else
30297   cat >conftest.$ac_ext <<_ACEOF
30298 /* confdefs.h.  */
30299 _ACEOF
30300 cat confdefs.h >>conftest.$ac_ext
30301 cat >>conftest.$ac_ext <<_ACEOF
30302 /* end confdefs.h.  */
30303 #include <time.h>
30304
30305 int
30306 main ()
30307 {
30308 #ifndef gethrtime
30309   char *p = (char *) gethrtime;
30310   return !p;
30311 #endif
30312
30313   ;
30314   return 0;
30315 }
30316 _ACEOF
30317 rm -f conftest.$ac_objext
30318 if { (ac_try="$ac_compile"
30319 case "(($ac_try" in
30320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30321   *) ac_try_echo=$ac_try;;
30322 esac
30323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30324   (eval "$ac_compile") 2>conftest.er1
30325   ac_status=$?
30326   grep -v '^ *+' conftest.er1 >conftest.err
30327   rm -f conftest.er1
30328   cat conftest.err >&5
30329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30330   (exit $ac_status); } &&
30331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30332   { (case "(($ac_try" in
30333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30334   *) ac_try_echo=$ac_try;;
30335 esac
30336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30337   (eval "$ac_try") 2>&5
30338   ac_status=$?
30339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30340   (exit $ac_status); }; } &&
30341          { ac_try='test -s conftest.$ac_objext'
30342   { (case "(($ac_try" in
30343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30344   *) ac_try_echo=$ac_try;;
30345 esac
30346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30347   (eval "$ac_try") 2>&5
30348   ac_status=$?
30349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30350   (exit $ac_status); }; }; then
30351   ac_cv_have_decl_gethrtime=yes
30352 else
30353   echo "$as_me: failed program was:" >&5
30354 sed 's/^/| /' conftest.$ac_ext >&5
30355
30356         ac_cv_have_decl_gethrtime=no
30357 fi
30358
30359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30360 fi
30361 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethrtime" >&5
30362 echo "${ECHO_T}$ac_cv_have_decl_gethrtime" >&6; }
30363 if test $ac_cv_have_decl_gethrtime = yes; then
30364
30365 cat >>confdefs.h <<_ACEOF
30366 #define HAVE_DECL_GETHRTIME 1
30367 _ACEOF
30368
30369
30370 else
30371   cat >>confdefs.h <<_ACEOF
30372 #define HAVE_DECL_GETHRTIME 0
30373 _ACEOF
30374
30375
30376 fi
30377
30378
30379   case $ac_cv_have_decl_gethrtime,$gl_cv_arithmetic_hrtime_t in
30380   yes,yes) ;;
30381   *)
30382     case " $LIBOBJS " in
30383   *" gethrxtime.$ac_objext "* ) ;;
30384   *) LIBOBJS="$LIBOBJS gethrxtime.$ac_objext"
30385  ;;
30386 esac
30387
30388
30389
30390
30391
30392
30393
30394
30395
30396
30397
30398
30399
30400   if test $ac_cv_func_nanouptime != yes; then
30401     LIB_GETHRXTIME=
30402     { echo "$as_me:$LINENO: checking whether CLOCK_MONOTONIC is defined" >&5
30403 echo $ECHO_N "checking whether CLOCK_MONOTONIC is defined... $ECHO_C" >&6; }
30404 if test "${gl_cv_have_CLOCK_MONOTONIC+set}" = set; then
30405   echo $ECHO_N "(cached) $ECHO_C" >&6
30406 else
30407   cat >conftest.$ac_ext <<_ACEOF
30408 /* confdefs.h.  */
30409 _ACEOF
30410 cat confdefs.h >>conftest.$ac_ext
30411 cat >>conftest.$ac_ext <<_ACEOF
30412 /* end confdefs.h.  */
30413
30414 #        include <time.h>
30415 #        ifdef CLOCK_MONOTONIC
30416           have_CLOCK_MONOTONIC
30417 #        endif
30418
30419 _ACEOF
30420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30421   $EGREP "have_CLOCK_MONOTONIC" >/dev/null 2>&1; then
30422   gl_cv_have_CLOCK_MONOTONIC=yes
30423 else
30424   gl_cv_have_CLOCK_MONOTONIC=no
30425 fi
30426 rm -f conftest*
30427
30428 fi
30429 { echo "$as_me:$LINENO: result: $gl_cv_have_CLOCK_MONOTONIC" >&5
30430 echo "${ECHO_T}$gl_cv_have_CLOCK_MONOTONIC" >&6; }
30431     if test $gl_cv_have_CLOCK_MONOTONIC = yes; then
30432       LIB_GETHRXTIME=$LIB_CLOCK_GETTIME
30433     fi
30434
30435   fi
30436 ;;
30437   esac
30438
30439
30440   # Avoid multiple inclusions of getndelim2.o into LIBOBJS.
30441   # This hack won't be needed after gnulib requires Autoconf 2.58 or later.
30442   case " $LIBOBJS " in
30443   *" getndelim2.$ac_objext "* ) ;;
30444   *) case " $LIBOBJS " in
30445   *" getndelim2.$ac_objext "* ) ;;
30446   *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext"
30447  ;;
30448 esac
30449 ;;
30450   esac
30451
30452
30453
30454
30455
30456
30457   if test -z "$GETOPT_H"; then
30458
30459 for ac_header in getopt.h
30460 do
30461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30463   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30466   echo $ECHO_N "(cached) $ECHO_C" >&6
30467 fi
30468 ac_res=`eval echo '${'$as_ac_Header'}'`
30469                { echo "$as_me:$LINENO: result: $ac_res" >&5
30470 echo "${ECHO_T}$ac_res" >&6; }
30471 else
30472   # Is the header compilable?
30473 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30475 cat >conftest.$ac_ext <<_ACEOF
30476 /* confdefs.h.  */
30477 _ACEOF
30478 cat confdefs.h >>conftest.$ac_ext
30479 cat >>conftest.$ac_ext <<_ACEOF
30480 /* end confdefs.h.  */
30481 $ac_includes_default
30482 #include <$ac_header>
30483 _ACEOF
30484 rm -f conftest.$ac_objext
30485 if { (ac_try="$ac_compile"
30486 case "(($ac_try" in
30487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30488   *) ac_try_echo=$ac_try;;
30489 esac
30490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30491   (eval "$ac_compile") 2>conftest.er1
30492   ac_status=$?
30493   grep -v '^ *+' conftest.er1 >conftest.err
30494   rm -f conftest.er1
30495   cat conftest.err >&5
30496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497   (exit $ac_status); } &&
30498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30499   { (case "(($ac_try" in
30500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30501   *) ac_try_echo=$ac_try;;
30502 esac
30503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30504   (eval "$ac_try") 2>&5
30505   ac_status=$?
30506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507   (exit $ac_status); }; } &&
30508          { ac_try='test -s conftest.$ac_objext'
30509   { (case "(($ac_try" in
30510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30511   *) ac_try_echo=$ac_try;;
30512 esac
30513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30514   (eval "$ac_try") 2>&5
30515   ac_status=$?
30516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30517   (exit $ac_status); }; }; then
30518   ac_header_compiler=yes
30519 else
30520   echo "$as_me: failed program was:" >&5
30521 sed 's/^/| /' conftest.$ac_ext >&5
30522
30523         ac_header_compiler=no
30524 fi
30525
30526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30527 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30528 echo "${ECHO_T}$ac_header_compiler" >&6; }
30529
30530 # Is the header present?
30531 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30533 cat >conftest.$ac_ext <<_ACEOF
30534 /* confdefs.h.  */
30535 _ACEOF
30536 cat confdefs.h >>conftest.$ac_ext
30537 cat >>conftest.$ac_ext <<_ACEOF
30538 /* end confdefs.h.  */
30539 #include <$ac_header>
30540 _ACEOF
30541 if { (ac_try="$ac_cpp conftest.$ac_ext"
30542 case "(($ac_try" in
30543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30544   *) ac_try_echo=$ac_try;;
30545 esac
30546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30547   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30548   ac_status=$?
30549   grep -v '^ *+' conftest.er1 >conftest.err
30550   rm -f conftest.er1
30551   cat conftest.err >&5
30552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30553   (exit $ac_status); } >/dev/null; then
30554   if test -s conftest.err; then
30555     ac_cpp_err=$ac_c_preproc_warn_flag
30556     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30557   else
30558     ac_cpp_err=
30559   fi
30560 else
30561   ac_cpp_err=yes
30562 fi
30563 if test -z "$ac_cpp_err"; then
30564   ac_header_preproc=yes
30565 else
30566   echo "$as_me: failed program was:" >&5
30567 sed 's/^/| /' conftest.$ac_ext >&5
30568
30569   ac_header_preproc=no
30570 fi
30571
30572 rm -f conftest.err conftest.$ac_ext
30573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30574 echo "${ECHO_T}$ac_header_preproc" >&6; }
30575
30576 # So?  What about this header?
30577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30578   yes:no: )
30579     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30581     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30583     ac_header_preproc=yes
30584     ;;
30585   no:yes:* )
30586     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30588     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30589 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30590     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30592     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30593 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30594     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30596     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30598     ( cat <<\_ASBOX
30599 ## ------------------------------------ ##
30600 ## Report this to bug-coreutils@gnu.org ##
30601 ## ------------------------------------ ##
30602 _ASBOX
30603      ) | sed "s/^/$as_me: WARNING:     /" >&2
30604     ;;
30605 esac
30606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30609   echo $ECHO_N "(cached) $ECHO_C" >&6
30610 else
30611   eval "$as_ac_Header=\$ac_header_preproc"
30612 fi
30613 ac_res=`eval echo '${'$as_ac_Header'}'`
30614                { echo "$as_me:$LINENO: result: $ac_res" >&5
30615 echo "${ECHO_T}$ac_res" >&6; }
30616
30617 fi
30618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30619   cat >>confdefs.h <<_ACEOF
30620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30621 _ACEOF
30622
30623 else
30624   GETOPT_H=getopt.h
30625 fi
30626
30627 done
30628
30629   fi
30630
30631   if test -z "$GETOPT_H"; then
30632
30633 for ac_func in getopt_long_only
30634 do
30635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30639   echo $ECHO_N "(cached) $ECHO_C" >&6
30640 else
30641   cat >conftest.$ac_ext <<_ACEOF
30642 /* confdefs.h.  */
30643 _ACEOF
30644 cat confdefs.h >>conftest.$ac_ext
30645 cat >>conftest.$ac_ext <<_ACEOF
30646 /* end confdefs.h.  */
30647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30649 #define $ac_func innocuous_$ac_func
30650
30651 /* System header to define __stub macros and hopefully few prototypes,
30652     which can conflict with char $ac_func (); below.
30653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30654     <limits.h> exists even on freestanding compilers.  */
30655
30656 #ifdef __STDC__
30657 # include <limits.h>
30658 #else
30659 # include <assert.h>
30660 #endif
30661
30662 #undef $ac_func
30663
30664 /* Override any GCC internal prototype to avoid an error.
30665    Use char because int might match the return type of a GCC
30666    builtin and then its argument prototype would still apply.  */
30667 #ifdef __cplusplus
30668 extern "C"
30669 #endif
30670 char $ac_func ();
30671 /* The GNU C library defines this for functions which it implements
30672     to always fail with ENOSYS.  Some functions are actually named
30673     something starting with __ and the normal name is an alias.  */
30674 #if defined __stub_$ac_func || defined __stub___$ac_func
30675 choke me
30676 #endif
30677
30678 int
30679 main ()
30680 {
30681 return $ac_func ();
30682   ;
30683   return 0;
30684 }
30685 _ACEOF
30686 rm -f conftest.$ac_objext conftest$ac_exeext
30687 if { (ac_try="$ac_link"
30688 case "(($ac_try" in
30689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30690   *) ac_try_echo=$ac_try;;
30691 esac
30692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30693   (eval "$ac_link") 2>conftest.er1
30694   ac_status=$?
30695   grep -v '^ *+' conftest.er1 >conftest.err
30696   rm -f conftest.er1
30697   cat conftest.err >&5
30698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699   (exit $ac_status); } &&
30700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30701   { (case "(($ac_try" in
30702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30703   *) ac_try_echo=$ac_try;;
30704 esac
30705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30706   (eval "$ac_try") 2>&5
30707   ac_status=$?
30708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30709   (exit $ac_status); }; } &&
30710          { ac_try='test -s conftest$ac_exeext'
30711   { (case "(($ac_try" in
30712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30713   *) ac_try_echo=$ac_try;;
30714 esac
30715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30716   (eval "$ac_try") 2>&5
30717   ac_status=$?
30718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30719   (exit $ac_status); }; }; then
30720   eval "$as_ac_var=yes"
30721 else
30722   echo "$as_me: failed program was:" >&5
30723 sed 's/^/| /' conftest.$ac_ext >&5
30724
30725         eval "$as_ac_var=no"
30726 fi
30727
30728 rm -f core conftest.err conftest.$ac_objext \
30729       conftest$ac_exeext conftest.$ac_ext
30730 fi
30731 ac_res=`eval echo '${'$as_ac_var'}'`
30732                { echo "$as_me:$LINENO: result: $ac_res" >&5
30733 echo "${ECHO_T}$ac_res" >&6; }
30734 if test `eval echo '${'$as_ac_var'}'` = yes; then
30735   cat >>confdefs.h <<_ACEOF
30736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30737 _ACEOF
30738
30739 else
30740   GETOPT_H=getopt.h
30741 fi
30742 done
30743
30744   fi
30745
30746       if test -z "$GETOPT_H"; then
30747     { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
30748 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
30749 if test "${ac_cv_have_decl_optreset+set}" = set; then
30750   echo $ECHO_N "(cached) $ECHO_C" >&6
30751 else
30752   cat >conftest.$ac_ext <<_ACEOF
30753 /* confdefs.h.  */
30754 _ACEOF
30755 cat confdefs.h >>conftest.$ac_ext
30756 cat >>conftest.$ac_ext <<_ACEOF
30757 /* end confdefs.h.  */
30758 #include <getopt.h>
30759
30760 int
30761 main ()
30762 {
30763 #ifndef optreset
30764   char *p = (char *) optreset;
30765   return !p;
30766 #endif
30767
30768   ;
30769   return 0;
30770 }
30771 _ACEOF
30772 rm -f conftest.$ac_objext
30773 if { (ac_try="$ac_compile"
30774 case "(($ac_try" in
30775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30776   *) ac_try_echo=$ac_try;;
30777 esac
30778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30779   (eval "$ac_compile") 2>conftest.er1
30780   ac_status=$?
30781   grep -v '^ *+' conftest.er1 >conftest.err
30782   rm -f conftest.er1
30783   cat conftest.err >&5
30784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785   (exit $ac_status); } &&
30786          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30787   { (case "(($ac_try" in
30788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30789   *) ac_try_echo=$ac_try;;
30790 esac
30791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30792   (eval "$ac_try") 2>&5
30793   ac_status=$?
30794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795   (exit $ac_status); }; } &&
30796          { ac_try='test -s conftest.$ac_objext'
30797   { (case "(($ac_try" in
30798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30799   *) ac_try_echo=$ac_try;;
30800 esac
30801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30802   (eval "$ac_try") 2>&5
30803   ac_status=$?
30804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30805   (exit $ac_status); }; }; then
30806   ac_cv_have_decl_optreset=yes
30807 else
30808   echo "$as_me: failed program was:" >&5
30809 sed 's/^/| /' conftest.$ac_ext >&5
30810
30811         ac_cv_have_decl_optreset=no
30812 fi
30813
30814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30815 fi
30816 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
30817 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
30818 if test $ac_cv_have_decl_optreset = yes; then
30819   GETOPT_H=getopt.h
30820 fi
30821
30822   fi
30823
30824       if test -z "$GETOPT_H"; then
30825     { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
30826 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
30827 if test "${gl_cv_func_gnu_getopt+set}" = set; then
30828   echo $ECHO_N "(cached) $ECHO_C" >&6
30829 else
30830   if test "$cross_compiling" = yes; then
30831                          { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
30832 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
30833 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
30834   echo $ECHO_N "(cached) $ECHO_C" >&6
30835 else
30836   cat >conftest.$ac_ext <<_ACEOF
30837 /* confdefs.h.  */
30838 _ACEOF
30839 cat confdefs.h >>conftest.$ac_ext
30840 cat >>conftest.$ac_ext <<_ACEOF
30841 /* end confdefs.h.  */
30842 #include <getopt.h>
30843
30844 int
30845 main ()
30846 {
30847 #ifndef getopt_clip
30848   char *p = (char *) getopt_clip;
30849   return !p;
30850 #endif
30851
30852   ;
30853   return 0;
30854 }
30855 _ACEOF
30856 rm -f conftest.$ac_objext
30857 if { (ac_try="$ac_compile"
30858 case "(($ac_try" in
30859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30860   *) ac_try_echo=$ac_try;;
30861 esac
30862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30863   (eval "$ac_compile") 2>conftest.er1
30864   ac_status=$?
30865   grep -v '^ *+' conftest.er1 >conftest.err
30866   rm -f conftest.er1
30867   cat conftest.err >&5
30868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30869   (exit $ac_status); } &&
30870          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30871   { (case "(($ac_try" in
30872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30873   *) ac_try_echo=$ac_try;;
30874 esac
30875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30876   (eval "$ac_try") 2>&5
30877   ac_status=$?
30878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30879   (exit $ac_status); }; } &&
30880          { ac_try='test -s conftest.$ac_objext'
30881   { (case "(($ac_try" in
30882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30883   *) ac_try_echo=$ac_try;;
30884 esac
30885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30886   (eval "$ac_try") 2>&5
30887   ac_status=$?
30888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30889   (exit $ac_status); }; }; then
30890   ac_cv_have_decl_getopt_clip=yes
30891 else
30892   echo "$as_me: failed program was:" >&5
30893 sed 's/^/| /' conftest.$ac_ext >&5
30894
30895         ac_cv_have_decl_getopt_clip=no
30896 fi
30897
30898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30899 fi
30900 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
30901 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
30902 if test $ac_cv_have_decl_getopt_clip = yes; then
30903   gl_cv_func_gnu_getopt=no
30904 else
30905   gl_cv_func_gnu_getopt=yes
30906 fi
30907
30908 else
30909   cat >conftest.$ac_ext <<_ACEOF
30910 /* confdefs.h.  */
30911 _ACEOF
30912 cat confdefs.h >>conftest.$ac_ext
30913 cat >>conftest.$ac_ext <<_ACEOF
30914 /* end confdefs.h.  */
30915 #include <getopt.h>
30916 int
30917 main ()
30918 {
30919
30920              char *myargv[3];
30921              myargv[0] = "conftest";
30922              myargv[1] = "-+";
30923              myargv[2] = 0;
30924              return getopt (2, myargv, "+a") != '?';
30925
30926   ;
30927   return 0;
30928 }
30929 _ACEOF
30930 rm -f conftest$ac_exeext
30931 if { (ac_try="$ac_link"
30932 case "(($ac_try" in
30933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30934   *) ac_try_echo=$ac_try;;
30935 esac
30936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30937   (eval "$ac_link") 2>&5
30938   ac_status=$?
30939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30940   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30941   { (case "(($ac_try" in
30942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30943   *) ac_try_echo=$ac_try;;
30944 esac
30945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30946   (eval "$ac_try") 2>&5
30947   ac_status=$?
30948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949   (exit $ac_status); }; }; then
30950   gl_cv_func_gnu_getopt=yes
30951 else
30952   echo "$as_me: program exited with status $ac_status" >&5
30953 echo "$as_me: failed program was:" >&5
30954 sed 's/^/| /' conftest.$ac_ext >&5
30955
30956 ( exit $ac_status )
30957 gl_cv_func_gnu_getopt=no
30958 fi
30959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30960 fi
30961
30962
30963 fi
30964 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
30965 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
30966     if test "$gl_cv_func_gnu_getopt" = "no"; then
30967       GETOPT_H=getopt.h
30968     fi
30969   fi
30970
30971 { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
30972 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
30973 if test "${ac_cv_have_decl_getenv+set}" = set; then
30974   echo $ECHO_N "(cached) $ECHO_C" >&6
30975 else
30976   cat >conftest.$ac_ext <<_ACEOF
30977 /* confdefs.h.  */
30978 _ACEOF
30979 cat confdefs.h >>conftest.$ac_ext
30980 cat >>conftest.$ac_ext <<_ACEOF
30981 /* end confdefs.h.  */
30982 $ac_includes_default
30983 int
30984 main ()
30985 {
30986 #ifndef getenv
30987   char *p = (char *) getenv;
30988   return !p;
30989 #endif
30990
30991   ;
30992   return 0;
30993 }
30994 _ACEOF
30995 rm -f conftest.$ac_objext
30996 if { (ac_try="$ac_compile"
30997 case "(($ac_try" in
30998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30999   *) ac_try_echo=$ac_try;;
31000 esac
31001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31002   (eval "$ac_compile") 2>conftest.er1
31003   ac_status=$?
31004   grep -v '^ *+' conftest.er1 >conftest.err
31005   rm -f conftest.er1
31006   cat conftest.err >&5
31007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31008   (exit $ac_status); } &&
31009          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31010   { (case "(($ac_try" in
31011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31012   *) ac_try_echo=$ac_try;;
31013 esac
31014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31015   (eval "$ac_try") 2>&5
31016   ac_status=$?
31017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31018   (exit $ac_status); }; } &&
31019          { ac_try='test -s conftest.$ac_objext'
31020   { (case "(($ac_try" in
31021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31022   *) ac_try_echo=$ac_try;;
31023 esac
31024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31025   (eval "$ac_try") 2>&5
31026   ac_status=$?
31027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31028   (exit $ac_status); }; }; then
31029   ac_cv_have_decl_getenv=yes
31030 else
31031   echo "$as_me: failed program was:" >&5
31032 sed 's/^/| /' conftest.$ac_ext >&5
31033
31034         ac_cv_have_decl_getenv=no
31035 fi
31036
31037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31038 fi
31039 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
31040 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
31041 if test $ac_cv_have_decl_getenv = yes; then
31042
31043 cat >>confdefs.h <<_ACEOF
31044 #define HAVE_DECL_GETENV 1
31045 _ACEOF
31046
31047
31048 else
31049   cat >>confdefs.h <<_ACEOF
31050 #define HAVE_DECL_GETENV 0
31051 _ACEOF
31052
31053
31054 fi
31055
31056
31057
31058
31059   if test -n "$GETOPT_H"; then
31060
31061   case " $LIBOBJS " in
31062   *" getopt.$ac_objext "* ) ;;
31063   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
31064  ;;
31065 esac
31066
31067   case " $LIBOBJS " in
31068   *" getopt1.$ac_objext "* ) ;;
31069   *) LIBOBJS="$LIBOBJS getopt1.$ac_objext"
31070  ;;
31071 esac
31072
31073
31074   GETOPT_H=getopt.h
31075
31076 cat >>confdefs.h <<\_ACEOF
31077 #define __GETOPT_PREFIX rpl_
31078 _ACEOF
31079
31080
31081
31082
31083
31084
31085
31086
31087
31088
31089 fi
31090
31091
31092
31093
31094
31095
31096
31097
31098
31099
31100
31101
31102 for ac_header in OS.h
31103 do
31104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31106   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31109   echo $ECHO_N "(cached) $ECHO_C" >&6
31110 fi
31111 ac_res=`eval echo '${'$as_ac_Header'}'`
31112                { echo "$as_me:$LINENO: result: $ac_res" >&5
31113 echo "${ECHO_T}$ac_res" >&6; }
31114 else
31115   # Is the header compilable?
31116 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31118 cat >conftest.$ac_ext <<_ACEOF
31119 /* confdefs.h.  */
31120 _ACEOF
31121 cat confdefs.h >>conftest.$ac_ext
31122 cat >>conftest.$ac_ext <<_ACEOF
31123 /* end confdefs.h.  */
31124 $ac_includes_default
31125 #include <$ac_header>
31126 _ACEOF
31127 rm -f conftest.$ac_objext
31128 if { (ac_try="$ac_compile"
31129 case "(($ac_try" in
31130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31131   *) ac_try_echo=$ac_try;;
31132 esac
31133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31134   (eval "$ac_compile") 2>conftest.er1
31135   ac_status=$?
31136   grep -v '^ *+' conftest.er1 >conftest.err
31137   rm -f conftest.er1
31138   cat conftest.err >&5
31139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31140   (exit $ac_status); } &&
31141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31142   { (case "(($ac_try" in
31143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31144   *) ac_try_echo=$ac_try;;
31145 esac
31146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31147   (eval "$ac_try") 2>&5
31148   ac_status=$?
31149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31150   (exit $ac_status); }; } &&
31151          { ac_try='test -s conftest.$ac_objext'
31152   { (case "(($ac_try" in
31153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31154   *) ac_try_echo=$ac_try;;
31155 esac
31156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31157   (eval "$ac_try") 2>&5
31158   ac_status=$?
31159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160   (exit $ac_status); }; }; then
31161   ac_header_compiler=yes
31162 else
31163   echo "$as_me: failed program was:" >&5
31164 sed 's/^/| /' conftest.$ac_ext >&5
31165
31166         ac_header_compiler=no
31167 fi
31168
31169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31171 echo "${ECHO_T}$ac_header_compiler" >&6; }
31172
31173 # Is the header present?
31174 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31176 cat >conftest.$ac_ext <<_ACEOF
31177 /* confdefs.h.  */
31178 _ACEOF
31179 cat confdefs.h >>conftest.$ac_ext
31180 cat >>conftest.$ac_ext <<_ACEOF
31181 /* end confdefs.h.  */
31182 #include <$ac_header>
31183 _ACEOF
31184 if { (ac_try="$ac_cpp conftest.$ac_ext"
31185 case "(($ac_try" in
31186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31187   *) ac_try_echo=$ac_try;;
31188 esac
31189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31190   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31191   ac_status=$?
31192   grep -v '^ *+' conftest.er1 >conftest.err
31193   rm -f conftest.er1
31194   cat conftest.err >&5
31195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31196   (exit $ac_status); } >/dev/null; then
31197   if test -s conftest.err; then
31198     ac_cpp_err=$ac_c_preproc_warn_flag
31199     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31200   else
31201     ac_cpp_err=
31202   fi
31203 else
31204   ac_cpp_err=yes
31205 fi
31206 if test -z "$ac_cpp_err"; then
31207   ac_header_preproc=yes
31208 else
31209   echo "$as_me: failed program was:" >&5
31210 sed 's/^/| /' conftest.$ac_ext >&5
31211
31212   ac_header_preproc=no
31213 fi
31214
31215 rm -f conftest.err conftest.$ac_ext
31216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31217 echo "${ECHO_T}$ac_header_preproc" >&6; }
31218
31219 # So?  What about this header?
31220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31221   yes:no: )
31222     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31224     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31226     ac_header_preproc=yes
31227     ;;
31228   no:yes:* )
31229     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31231     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31232 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31233     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31235     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31236 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31237     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31239     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31241     ( cat <<\_ASBOX
31242 ## ------------------------------------ ##
31243 ## Report this to bug-coreutils@gnu.org ##
31244 ## ------------------------------------ ##
31245 _ASBOX
31246      ) | sed "s/^/$as_me: WARNING:     /" >&2
31247     ;;
31248 esac
31249 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31252   echo $ECHO_N "(cached) $ECHO_C" >&6
31253 else
31254   eval "$as_ac_Header=\$ac_header_preproc"
31255 fi
31256 ac_res=`eval echo '${'$as_ac_Header'}'`
31257                { echo "$as_me:$LINENO: result: $ac_res" >&5
31258 echo "${ECHO_T}$ac_res" >&6; }
31259
31260 fi
31261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31262   cat >>confdefs.h <<_ACEOF
31263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31264 _ACEOF
31265
31266 fi
31267
31268 done
31269
31270
31271 for ac_func in getpagesize
31272 do
31273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31274 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31276 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31277   echo $ECHO_N "(cached) $ECHO_C" >&6
31278 else
31279   cat >conftest.$ac_ext <<_ACEOF
31280 /* confdefs.h.  */
31281 _ACEOF
31282 cat confdefs.h >>conftest.$ac_ext
31283 cat >>conftest.$ac_ext <<_ACEOF
31284 /* end confdefs.h.  */
31285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31286    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31287 #define $ac_func innocuous_$ac_func
31288
31289 /* System header to define __stub macros and hopefully few prototypes,
31290     which can conflict with char $ac_func (); below.
31291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31292     <limits.h> exists even on freestanding compilers.  */
31293
31294 #ifdef __STDC__
31295 # include <limits.h>
31296 #else
31297 # include <assert.h>
31298 #endif
31299
31300 #undef $ac_func
31301
31302 /* Override any GCC internal prototype to avoid an error.
31303    Use char because int might match the return type of a GCC
31304    builtin and then its argument prototype would still apply.  */
31305 #ifdef __cplusplus
31306 extern "C"
31307 #endif
31308 char $ac_func ();
31309 /* The GNU C library defines this for functions which it implements
31310     to always fail with ENOSYS.  Some functions are actually named
31311     something starting with __ and the normal name is an alias.  */
31312 #if defined __stub_$ac_func || defined __stub___$ac_func
31313 choke me
31314 #endif
31315
31316 int
31317 main ()
31318 {
31319 return $ac_func ();
31320   ;
31321   return 0;
31322 }
31323 _ACEOF
31324 rm -f conftest.$ac_objext conftest$ac_exeext
31325 if { (ac_try="$ac_link"
31326 case "(($ac_try" in
31327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31328   *) ac_try_echo=$ac_try;;
31329 esac
31330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31331   (eval "$ac_link") 2>conftest.er1
31332   ac_status=$?
31333   grep -v '^ *+' conftest.er1 >conftest.err
31334   rm -f conftest.er1
31335   cat conftest.err >&5
31336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31337   (exit $ac_status); } &&
31338          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31339   { (case "(($ac_try" in
31340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31341   *) ac_try_echo=$ac_try;;
31342 esac
31343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31344   (eval "$ac_try") 2>&5
31345   ac_status=$?
31346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347   (exit $ac_status); }; } &&
31348          { ac_try='test -s conftest$ac_exeext'
31349   { (case "(($ac_try" in
31350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31351   *) ac_try_echo=$ac_try;;
31352 esac
31353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31354   (eval "$ac_try") 2>&5
31355   ac_status=$?
31356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357   (exit $ac_status); }; }; then
31358   eval "$as_ac_var=yes"
31359 else
31360   echo "$as_me: failed program was:" >&5
31361 sed 's/^/| /' conftest.$ac_ext >&5
31362
31363         eval "$as_ac_var=no"
31364 fi
31365
31366 rm -f core conftest.err conftest.$ac_objext \
31367       conftest$ac_exeext conftest.$ac_ext
31368 fi
31369 ac_res=`eval echo '${'$as_ac_var'}'`
31370                { echo "$as_me:$LINENO: result: $ac_res" >&5
31371 echo "${ECHO_T}$ac_res" >&6; }
31372 if test `eval echo '${'$as_ac_var'}'` = yes; then
31373   cat >>confdefs.h <<_ACEOF
31374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31375 _ACEOF
31376
31377 fi
31378 done
31379
31380
31381
31382
31383
31384
31385
31386
31387   case " $LIBOBJS " in
31388   *" gettime.$ac_objext "* ) ;;
31389   *) LIBOBJS="$LIBOBJS gettime.$ac_objext"
31390  ;;
31391 esac
31392
31393
31394
31395
31396
31397
31398
31399
31400
31401
31402
31403
31404
31405
31406
31407   case " $LIBOBJS " in
31408   *" getugroups.$ac_objext "* ) ;;
31409   *) LIBOBJS="$LIBOBJS getugroups.$ac_objext"
31410  ;;
31411 esac
31412
31413
31414     { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
31415 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
31416 if test "${ac_cv_type_getgroups+set}" = set; then
31417   echo $ECHO_N "(cached) $ECHO_C" >&6
31418 else
31419   if test "$cross_compiling" = yes; then
31420   ac_cv_type_getgroups=cross
31421 else
31422   cat >conftest.$ac_ext <<_ACEOF
31423 /* confdefs.h.  */
31424 _ACEOF
31425 cat confdefs.h >>conftest.$ac_ext
31426 cat >>conftest.$ac_ext <<_ACEOF
31427 /* end confdefs.h.  */
31428 /* Thanks to Mike Rendell for this test.  */
31429 $ac_includes_default
31430 #define NGID 256
31431 #undef MAX
31432 #define MAX(x, y) ((x) > (y) ? (x) : (y))
31433
31434 int
31435 main ()
31436 {
31437   gid_t gidset[NGID];
31438   int i, n;
31439   union { gid_t gval; long int lval; }  val;
31440
31441   val.lval = -1;
31442   for (i = 0; i < NGID; i++)
31443     gidset[i] = val.gval;
31444   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
31445                  gidset);
31446   /* Exit non-zero if getgroups seems to require an array of ints.  This
31447      happens when gid_t is short int but getgroups modifies an array
31448      of ints.  */
31449   return n > 0 && gidset[n] != val.gval;
31450 }
31451 _ACEOF
31452 rm -f conftest$ac_exeext
31453 if { (ac_try="$ac_link"
31454 case "(($ac_try" in
31455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31456   *) ac_try_echo=$ac_try;;
31457 esac
31458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31459   (eval "$ac_link") 2>&5
31460   ac_status=$?
31461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31462   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31463   { (case "(($ac_try" in
31464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31465   *) ac_try_echo=$ac_try;;
31466 esac
31467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31468   (eval "$ac_try") 2>&5
31469   ac_status=$?
31470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31471   (exit $ac_status); }; }; then
31472   ac_cv_type_getgroups=gid_t
31473 else
31474   echo "$as_me: program exited with status $ac_status" >&5
31475 echo "$as_me: failed program was:" >&5
31476 sed 's/^/| /' conftest.$ac_ext >&5
31477
31478 ( exit $ac_status )
31479 ac_cv_type_getgroups=int
31480 fi
31481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31482 fi
31483
31484
31485 if test $ac_cv_type_getgroups = cross; then
31486         cat >conftest.$ac_ext <<_ACEOF
31487 /* confdefs.h.  */
31488 _ACEOF
31489 cat confdefs.h >>conftest.$ac_ext
31490 cat >>conftest.$ac_ext <<_ACEOF
31491 /* end confdefs.h.  */
31492 #include <unistd.h>
31493
31494 _ACEOF
31495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31496   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
31497   ac_cv_type_getgroups=gid_t
31498 else
31499   ac_cv_type_getgroups=int
31500 fi
31501 rm -f conftest*
31502
31503 fi
31504 fi
31505 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
31506 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
31507
31508 cat >>confdefs.h <<_ACEOF
31509 #define GETGROUPS_T $ac_cv_type_getgroups
31510 _ACEOF
31511
31512
31513
31514
31515
31516   case " $LIBOBJS " in
31517   *" hard-locale.$ac_objext "* ) ;;
31518   *) LIBOBJS="$LIBOBJS hard-locale.$ac_objext"
31519  ;;
31520 esac
31521
31522
31523
31524
31525   case " $LIBOBJS " in
31526   *" hash.$ac_objext "* ) ;;
31527   *) LIBOBJS="$LIBOBJS hash.$ac_objext"
31528  ;;
31529 esac
31530
31531
31532
31533
31534
31535
31536   case " $LIBOBJS " in
31537   *" hash-pjw.$ac_objext "* ) ;;
31538   *) LIBOBJS="$LIBOBJS hash-pjw.$ac_objext"
31539  ;;
31540 esac
31541
31542
31543
31544
31545
31546   case " $LIBOBJS " in
31547   *" human.$ac_objext "* ) ;;
31548   *) LIBOBJS="$LIBOBJS human.$ac_objext"
31549  ;;
31550 esac
31551
31552
31553
31554
31555
31556     :
31557
31558
31559
31560   case " $LIBOBJS " in
31561   *" idcache.$ac_objext "* ) ;;
31562   *) LIBOBJS="$LIBOBJS idcache.$ac_objext"
31563  ;;
31564 esac
31565
31566
31567
31568
31569
31570
31571
31572   case " $LIBOBJS " in
31573   *" imaxtostr.$ac_objext "* ) ;;
31574   *) LIBOBJS="$LIBOBJS imaxtostr.$ac_objext"
31575  ;;
31576 esac
31577
31578   case " $LIBOBJS " in
31579   *" offtostr.$ac_objext "* ) ;;
31580   *) LIBOBJS="$LIBOBJS offtostr.$ac_objext"
31581  ;;
31582 esac
31583
31584   case " $LIBOBJS " in
31585   *" umaxtostr.$ac_objext "* ) ;;
31586   *) LIBOBJS="$LIBOBJS umaxtostr.$ac_objext"
31587  ;;
31588 esac
31589
31590
31591
31592
31593
31594
31595   :
31596
31597   :
31598   :
31599   :
31600
31601
31602
31603   case " $LIBOBJS " in
31604   *" linebuffer.$ac_objext "* ) ;;
31605   *) LIBOBJS="$LIBOBJS linebuffer.$ac_objext"
31606  ;;
31607 esac
31608
31609
31610
31611
31612
31613
31614
31615
31616
31617
31618
31619
31620   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
31621 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
31622 if test "${am_cv_langinfo_codeset+set}" = set; then
31623   echo $ECHO_N "(cached) $ECHO_C" >&6
31624 else
31625   cat >conftest.$ac_ext <<_ACEOF
31626 /* confdefs.h.  */
31627 _ACEOF
31628 cat confdefs.h >>conftest.$ac_ext
31629 cat >>conftest.$ac_ext <<_ACEOF
31630 /* end confdefs.h.  */
31631 #include <langinfo.h>
31632 int
31633 main ()
31634 {
31635 char* cs = nl_langinfo(CODESET);
31636   ;
31637   return 0;
31638 }
31639 _ACEOF
31640 rm -f conftest.$ac_objext conftest$ac_exeext
31641 if { (ac_try="$ac_link"
31642 case "(($ac_try" in
31643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31644   *) ac_try_echo=$ac_try;;
31645 esac
31646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31647   (eval "$ac_link") 2>conftest.er1
31648   ac_status=$?
31649   grep -v '^ *+' conftest.er1 >conftest.err
31650   rm -f conftest.er1
31651   cat conftest.err >&5
31652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31653   (exit $ac_status); } &&
31654          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31655   { (case "(($ac_try" in
31656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31657   *) ac_try_echo=$ac_try;;
31658 esac
31659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31660   (eval "$ac_try") 2>&5
31661   ac_status=$?
31662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31663   (exit $ac_status); }; } &&
31664          { ac_try='test -s conftest$ac_exeext'
31665   { (case "(($ac_try" in
31666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31667   *) ac_try_echo=$ac_try;;
31668 esac
31669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31670   (eval "$ac_try") 2>&5
31671   ac_status=$?
31672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673   (exit $ac_status); }; }; then
31674   am_cv_langinfo_codeset=yes
31675 else
31676   echo "$as_me: failed program was:" >&5
31677 sed 's/^/| /' conftest.$ac_ext >&5
31678
31679         am_cv_langinfo_codeset=no
31680 fi
31681
31682 rm -f core conftest.err conftest.$ac_objext \
31683       conftest$ac_exeext conftest.$ac_ext
31684
31685 fi
31686 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
31687 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
31688   if test $am_cv_langinfo_codeset = yes; then
31689
31690 cat >>confdefs.h <<\_ACEOF
31691 #define HAVE_LANGINFO_CODESET 1
31692 _ACEOF
31693
31694   fi
31695
31696 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
31697 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
31698 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
31699   echo $ECHO_N "(cached) $ECHO_C" >&6
31700 else
31701   cat >conftest.$ac_ext <<_ACEOF
31702 /* confdefs.h.  */
31703 _ACEOF
31704 cat confdefs.h >>conftest.$ac_ext
31705 cat >>conftest.$ac_ext <<_ACEOF
31706 /* end confdefs.h.  */
31707 $ac_includes_default
31708 int
31709 main ()
31710 {
31711 #ifndef getc_unlocked
31712   char *p = (char *) getc_unlocked;
31713   return !p;
31714 #endif
31715
31716   ;
31717   return 0;
31718 }
31719 _ACEOF
31720 rm -f conftest.$ac_objext
31721 if { (ac_try="$ac_compile"
31722 case "(($ac_try" in
31723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31724   *) ac_try_echo=$ac_try;;
31725 esac
31726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31727   (eval "$ac_compile") 2>conftest.er1
31728   ac_status=$?
31729   grep -v '^ *+' conftest.er1 >conftest.err
31730   rm -f conftest.er1
31731   cat conftest.err >&5
31732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733   (exit $ac_status); } &&
31734          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31735   { (case "(($ac_try" in
31736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31737   *) ac_try_echo=$ac_try;;
31738 esac
31739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31740   (eval "$ac_try") 2>&5
31741   ac_status=$?
31742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31743   (exit $ac_status); }; } &&
31744          { ac_try='test -s conftest.$ac_objext'
31745   { (case "(($ac_try" in
31746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31747   *) ac_try_echo=$ac_try;;
31748 esac
31749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31750   (eval "$ac_try") 2>&5
31751   ac_status=$?
31752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31753   (exit $ac_status); }; }; then
31754   ac_cv_have_decl_getc_unlocked=yes
31755 else
31756   echo "$as_me: failed program was:" >&5
31757 sed 's/^/| /' conftest.$ac_ext >&5
31758
31759         ac_cv_have_decl_getc_unlocked=no
31760 fi
31761
31762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31763 fi
31764 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
31765 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
31766 if test $ac_cv_have_decl_getc_unlocked = yes; then
31767
31768 cat >>confdefs.h <<_ACEOF
31769 #define HAVE_DECL_GETC_UNLOCKED 1
31770 _ACEOF
31771
31772
31773 else
31774   cat >>confdefs.h <<_ACEOF
31775 #define HAVE_DECL_GETC_UNLOCKED 0
31776 _ACEOF
31777
31778
31779 fi
31780
31781
31782
31783
31784
31785     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
31786 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
31787 if test "${ac_cv_gnu_library_2_1+set}" = set; then
31788   echo $ECHO_N "(cached) $ECHO_C" >&6
31789 else
31790   cat >conftest.$ac_ext <<_ACEOF
31791 /* confdefs.h.  */
31792 _ACEOF
31793 cat confdefs.h >>conftest.$ac_ext
31794 cat >>conftest.$ac_ext <<_ACEOF
31795 /* end confdefs.h.  */
31796
31797 #include <features.h>
31798 #ifdef __GNU_LIBRARY__
31799  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
31800   Lucky GNU user
31801  #endif
31802 #endif
31803
31804 _ACEOF
31805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31806   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
31807   ac_cv_gnu_library_2_1=yes
31808 else
31809   ac_cv_gnu_library_2_1=no
31810 fi
31811 rm -f conftest*
31812
31813
31814
31815 fi
31816 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
31817 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
31818
31819     GLIBC21="$ac_cv_gnu_library_2_1"
31820
31821
31822
31823
31824
31825
31826
31827
31828
31829
31830
31831
31832
31833
31834
31835
31836
31837
31838
31839
31840
31841
31842
31843
31844
31845
31846
31847
31848
31849
31850   case " $LIBOBJS " in
31851   *" long-options.$ac_objext "* ) ;;
31852   *) LIBOBJS="$LIBOBJS long-options.$ac_objext"
31853  ;;
31854 esac
31855
31856
31857
31858
31859
31860
31861
31862
31863
31864
31865
31866
31867
31868     if test $ac_cv_header_wchar_h = yes && test $ac_cv_header_wctype_h = yes; then
31869     case " $LIBOBJS " in
31870   *" mbchar.$ac_objext "* ) ;;
31871   *) LIBOBJS="$LIBOBJS mbchar.$ac_objext"
31872  ;;
31873 esac
31874
31875   fi
31876
31877
31878
31879
31880   :
31881
31882
31883
31884
31885
31886
31887
31888
31889
31890
31891
31892
31893
31894
31895
31896
31897
31898
31899
31900
31901
31902
31903
31904 for ac_func in iswcntrl
31905 do
31906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31907 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31909 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31910   echo $ECHO_N "(cached) $ECHO_C" >&6
31911 else
31912   cat >conftest.$ac_ext <<_ACEOF
31913 /* confdefs.h.  */
31914 _ACEOF
31915 cat confdefs.h >>conftest.$ac_ext
31916 cat >>conftest.$ac_ext <<_ACEOF
31917 /* end confdefs.h.  */
31918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31919    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31920 #define $ac_func innocuous_$ac_func
31921
31922 /* System header to define __stub macros and hopefully few prototypes,
31923     which can conflict with char $ac_func (); below.
31924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31925     <limits.h> exists even on freestanding compilers.  */
31926
31927 #ifdef __STDC__
31928 # include <limits.h>
31929 #else
31930 # include <assert.h>
31931 #endif
31932
31933 #undef $ac_func
31934
31935 /* Override any GCC internal prototype to avoid an error.
31936    Use char because int might match the return type of a GCC
31937    builtin and then its argument prototype would still apply.  */
31938 #ifdef __cplusplus
31939 extern "C"
31940 #endif
31941 char $ac_func ();
31942 /* The GNU C library defines this for functions which it implements
31943     to always fail with ENOSYS.  Some functions are actually named
31944     something starting with __ and the normal name is an alias.  */
31945 #if defined __stub_$ac_func || defined __stub___$ac_func
31946 choke me
31947 #endif
31948
31949 int
31950 main ()
31951 {
31952 return $ac_func ();
31953   ;
31954   return 0;
31955 }
31956 _ACEOF
31957 rm -f conftest.$ac_objext conftest$ac_exeext
31958 if { (ac_try="$ac_link"
31959 case "(($ac_try" in
31960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31961   *) ac_try_echo=$ac_try;;
31962 esac
31963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31964   (eval "$ac_link") 2>conftest.er1
31965   ac_status=$?
31966   grep -v '^ *+' conftest.er1 >conftest.err
31967   rm -f conftest.er1
31968   cat conftest.err >&5
31969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31970   (exit $ac_status); } &&
31971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31972   { (case "(($ac_try" in
31973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31974   *) ac_try_echo=$ac_try;;
31975 esac
31976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31977   (eval "$ac_try") 2>&5
31978   ac_status=$?
31979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31980   (exit $ac_status); }; } &&
31981          { ac_try='test -s conftest$ac_exeext'
31982   { (case "(($ac_try" in
31983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31984   *) ac_try_echo=$ac_try;;
31985 esac
31986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31987   (eval "$ac_try") 2>&5
31988   ac_status=$?
31989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31990   (exit $ac_status); }; }; then
31991   eval "$as_ac_var=yes"
31992 else
31993   echo "$as_me: failed program was:" >&5
31994 sed 's/^/| /' conftest.$ac_ext >&5
31995
31996         eval "$as_ac_var=no"
31997 fi
31998
31999 rm -f core conftest.err conftest.$ac_objext \
32000       conftest$ac_exeext conftest.$ac_ext
32001 fi
32002 ac_res=`eval echo '${'$as_ac_var'}'`
32003                { echo "$as_me:$LINENO: result: $ac_res" >&5
32004 echo "${ECHO_T}$ac_res" >&6; }
32005 if test `eval echo '${'$as_ac_var'}'` = yes; then
32006   cat >>confdefs.h <<_ACEOF
32007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32008 _ACEOF
32009
32010 fi
32011 done
32012
32013
32014     { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
32015 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
32016 if test "${gl_cv_func_mbrtowc+set}" = set; then
32017   echo $ECHO_N "(cached) $ECHO_C" >&6
32018 else
32019   cat >conftest.$ac_ext <<_ACEOF
32020 /* confdefs.h.  */
32021 _ACEOF
32022 cat confdefs.h >>conftest.$ac_ext
32023 cat >>conftest.$ac_ext <<_ACEOF
32024 /* end confdefs.h.  */
32025 #include <wchar.h>
32026 int
32027 main ()
32028 {
32029 wchar_t wc;
32030               char const s[] = "";
32031               size_t n = 1;
32032               mbstate_t state;
32033               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
32034   ;
32035   return 0;
32036 }
32037 _ACEOF
32038 rm -f conftest.$ac_objext conftest$ac_exeext
32039 if { (ac_try="$ac_link"
32040 case "(($ac_try" in
32041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32042   *) ac_try_echo=$ac_try;;
32043 esac
32044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32045   (eval "$ac_link") 2>conftest.er1
32046   ac_status=$?
32047   grep -v '^ *+' conftest.er1 >conftest.err
32048   rm -f conftest.er1
32049   cat conftest.err >&5
32050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32051   (exit $ac_status); } &&
32052          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32053   { (case "(($ac_try" in
32054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32055   *) ac_try_echo=$ac_try;;
32056 esac
32057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32058   (eval "$ac_try") 2>&5
32059   ac_status=$?
32060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32061   (exit $ac_status); }; } &&
32062          { ac_try='test -s conftest$ac_exeext'
32063   { (case "(($ac_try" in
32064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32065   *) ac_try_echo=$ac_try;;
32066 esac
32067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32068   (eval "$ac_try") 2>&5
32069   ac_status=$?
32070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32071   (exit $ac_status); }; }; then
32072   gl_cv_func_mbrtowc=yes
32073 else
32074   echo "$as_me: failed program was:" >&5
32075 sed 's/^/| /' conftest.$ac_ext >&5
32076
32077         gl_cv_func_mbrtowc=no
32078 fi
32079
32080 rm -f core conftest.err conftest.$ac_objext \
32081       conftest$ac_exeext conftest.$ac_ext
32082 fi
32083 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
32084 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; }
32085   if test $gl_cv_func_mbrtowc = yes; then
32086
32087 cat >>confdefs.h <<\_ACEOF
32088 #define HAVE_MBRTOWC 1
32089 _ACEOF
32090
32091   fi
32092
32093
32094       { echo "$as_me:$LINENO: checking whether mbswidth is declared in <wchar.h>" >&5
32095 echo $ECHO_N "checking whether mbswidth is declared in <wchar.h>... $ECHO_C" >&6; }
32096 if test "${ac_cv_have_decl_mbswidth+set}" = set; then
32097   echo $ECHO_N "(cached) $ECHO_C" >&6
32098 else
32099   cat >conftest.$ac_ext <<_ACEOF
32100 /* confdefs.h.  */
32101 _ACEOF
32102 cat confdefs.h >>conftest.$ac_ext
32103 cat >>conftest.$ac_ext <<_ACEOF
32104 /* end confdefs.h.  */
32105
32106 #if HAVE_WCHAR_H
32107 # include <wchar.h>
32108 #endif
32109
32110 int
32111 main ()
32112 {
32113
32114   char *p = (char *) mbswidth;
32115
32116   ;
32117   return 0;
32118 }
32119 _ACEOF
32120 rm -f conftest.$ac_objext
32121 if { (ac_try="$ac_compile"
32122 case "(($ac_try" in
32123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32124   *) ac_try_echo=$ac_try;;
32125 esac
32126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32127   (eval "$ac_compile") 2>conftest.er1
32128   ac_status=$?
32129   grep -v '^ *+' conftest.er1 >conftest.err
32130   rm -f conftest.er1
32131   cat conftest.err >&5
32132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32133   (exit $ac_status); } &&
32134          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32135   { (case "(($ac_try" in
32136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32137   *) ac_try_echo=$ac_try;;
32138 esac
32139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32140   (eval "$ac_try") 2>&5
32141   ac_status=$?
32142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32143   (exit $ac_status); }; } &&
32144          { ac_try='test -s conftest.$ac_objext'
32145   { (case "(($ac_try" in
32146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32147   *) ac_try_echo=$ac_try;;
32148 esac
32149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32150   (eval "$ac_try") 2>&5
32151   ac_status=$?
32152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32153   (exit $ac_status); }; }; then
32154   ac_cv_have_decl_mbswidth=yes
32155 else
32156   echo "$as_me: failed program was:" >&5
32157 sed 's/^/| /' conftest.$ac_ext >&5
32158
32159         ac_cv_have_decl_mbswidth=no
32160 fi
32161
32162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32163 fi
32164 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_mbswidth" >&5
32165 echo "${ECHO_T}$ac_cv_have_decl_mbswidth" >&6; }
32166   if test $ac_cv_have_decl_mbswidth = yes; then
32167     ac_val=1
32168   else
32169     ac_val=0
32170   fi
32171
32172 cat >>confdefs.h <<_ACEOF
32173 #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
32174 _ACEOF
32175
32176
32177   { echo "$as_me:$LINENO: checking for mbstate_t" >&5
32178 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
32179 if test "${ac_cv_type_mbstate_t+set}" = set; then
32180   echo $ECHO_N "(cached) $ECHO_C" >&6
32181 else
32182   cat >conftest.$ac_ext <<_ACEOF
32183 /* confdefs.h.  */
32184 _ACEOF
32185 cat confdefs.h >>conftest.$ac_ext
32186 cat >>conftest.$ac_ext <<_ACEOF
32187 /* end confdefs.h.  */
32188 $ac_includes_default
32189 #           include <wchar.h>
32190 int
32191 main ()
32192 {
32193 mbstate_t x; return sizeof x;
32194   ;
32195   return 0;
32196 }
32197 _ACEOF
32198 rm -f conftest.$ac_objext
32199 if { (ac_try="$ac_compile"
32200 case "(($ac_try" in
32201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32202   *) ac_try_echo=$ac_try;;
32203 esac
32204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32205   (eval "$ac_compile") 2>conftest.er1
32206   ac_status=$?
32207   grep -v '^ *+' conftest.er1 >conftest.err
32208   rm -f conftest.er1
32209   cat conftest.err >&5
32210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211   (exit $ac_status); } &&
32212          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32213   { (case "(($ac_try" in
32214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32215   *) ac_try_echo=$ac_try;;
32216 esac
32217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32218   (eval "$ac_try") 2>&5
32219   ac_status=$?
32220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32221   (exit $ac_status); }; } &&
32222          { ac_try='test -s conftest.$ac_objext'
32223   { (case "(($ac_try" in
32224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32225   *) ac_try_echo=$ac_try;;
32226 esac
32227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32228   (eval "$ac_try") 2>&5
32229   ac_status=$?
32230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32231   (exit $ac_status); }; }; then
32232   ac_cv_type_mbstate_t=yes
32233 else
32234   echo "$as_me: failed program was:" >&5
32235 sed 's/^/| /' conftest.$ac_ext >&5
32236
32237         ac_cv_type_mbstate_t=no
32238 fi
32239
32240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32241 fi
32242 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
32243 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
32244    if test $ac_cv_type_mbstate_t = yes; then
32245
32246 cat >>confdefs.h <<\_ACEOF
32247 #define HAVE_MBSTATE_T 1
32248 _ACEOF
32249
32250    else
32251
32252 cat >>confdefs.h <<\_ACEOF
32253 #define mbstate_t int
32254 _ACEOF
32255
32256    fi
32257
32258
32259
32260   case " $LIBOBJS " in
32261   *" md5.$ac_objext "* ) ;;
32262   *) LIBOBJS="$LIBOBJS md5.$ac_objext"
32263  ;;
32264 esac
32265
32266
32267
32268   :
32269
32270
32271
32272   case " $LIBOBJS " in
32273   *" memcoll.$ac_objext "* ) ;;
32274   *) LIBOBJS="$LIBOBJS memcoll.$ac_objext"
32275  ;;
32276 esac
32277
32278
32279     { echo "$as_me:$LINENO: checking for working strcoll" >&5
32280 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
32281 if test "${ac_cv_func_strcoll_works+set}" = set; then
32282   echo $ECHO_N "(cached) $ECHO_C" >&6
32283 else
32284   if test "$cross_compiling" = yes; then
32285   ac_cv_func_strcoll_works=no
32286 else
32287   cat >conftest.$ac_ext <<_ACEOF
32288 /* confdefs.h.  */
32289 _ACEOF
32290 cat confdefs.h >>conftest.$ac_ext
32291 cat >>conftest.$ac_ext <<_ACEOF
32292 /* end confdefs.h.  */
32293 $ac_includes_default
32294 int
32295 main ()
32296 {
32297 return (strcoll ("abc", "def") >= 0 ||
32298          strcoll ("ABC", "DEF") >= 0 ||
32299          strcoll ("123", "456") >= 0)
32300   ;
32301   return 0;
32302 }
32303 _ACEOF
32304 rm -f conftest$ac_exeext
32305 if { (ac_try="$ac_link"
32306 case "(($ac_try" in
32307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32308   *) ac_try_echo=$ac_try;;
32309 esac
32310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32311   (eval "$ac_link") 2>&5
32312   ac_status=$?
32313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32315   { (case "(($ac_try" in
32316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32317   *) ac_try_echo=$ac_try;;
32318 esac
32319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32320   (eval "$ac_try") 2>&5
32321   ac_status=$?
32322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32323   (exit $ac_status); }; }; then
32324   ac_cv_func_strcoll_works=yes
32325 else
32326   echo "$as_me: program exited with status $ac_status" >&5
32327 echo "$as_me: failed program was:" >&5
32328 sed 's/^/| /' conftest.$ac_ext >&5
32329
32330 ( exit $ac_status )
32331 ac_cv_func_strcoll_works=no
32332 fi
32333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32334 fi
32335
32336
32337 fi
32338 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
32339 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
32340 if test $ac_cv_func_strcoll_works = yes; then
32341
32342 cat >>confdefs.h <<\_ACEOF
32343 #define HAVE_STRCOLL 1
32344 _ACEOF
32345
32346 fi
32347
32348
32349
32350
32351   case " $LIBOBJS " in
32352   *" mkancesdirs.$ac_objext "* ) ;;
32353   *) LIBOBJS="$LIBOBJS mkancesdirs.$ac_objext"
32354  ;;
32355 esac
32356
32357
32358
32359
32360
32361
32362
32363
32364
32365
32366
32367
32368
32369
32370 for ac_header in unistd.h
32371 do
32372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32374   { echo "$as_me:$LINENO: checking for $ac_header" >&5
32375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32377   echo $ECHO_N "(cached) $ECHO_C" >&6
32378 fi
32379 ac_res=`eval echo '${'$as_ac_Header'}'`
32380                { echo "$as_me:$LINENO: result: $ac_res" >&5
32381 echo "${ECHO_T}$ac_res" >&6; }
32382 else
32383   # Is the header compilable?
32384 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32386 cat >conftest.$ac_ext <<_ACEOF
32387 /* confdefs.h.  */
32388 _ACEOF
32389 cat confdefs.h >>conftest.$ac_ext
32390 cat >>conftest.$ac_ext <<_ACEOF
32391 /* end confdefs.h.  */
32392 $ac_includes_default
32393 #include <$ac_header>
32394 _ACEOF
32395 rm -f conftest.$ac_objext
32396 if { (ac_try="$ac_compile"
32397 case "(($ac_try" in
32398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32399   *) ac_try_echo=$ac_try;;
32400 esac
32401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32402   (eval "$ac_compile") 2>conftest.er1
32403   ac_status=$?
32404   grep -v '^ *+' conftest.er1 >conftest.err
32405   rm -f conftest.er1
32406   cat conftest.err >&5
32407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32408   (exit $ac_status); } &&
32409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32410   { (case "(($ac_try" in
32411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32412   *) ac_try_echo=$ac_try;;
32413 esac
32414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32415   (eval "$ac_try") 2>&5
32416   ac_status=$?
32417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32418   (exit $ac_status); }; } &&
32419          { ac_try='test -s conftest.$ac_objext'
32420   { (case "(($ac_try" in
32421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32422   *) ac_try_echo=$ac_try;;
32423 esac
32424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32425   (eval "$ac_try") 2>&5
32426   ac_status=$?
32427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428   (exit $ac_status); }; }; then
32429   ac_header_compiler=yes
32430 else
32431   echo "$as_me: failed program was:" >&5
32432 sed 's/^/| /' conftest.$ac_ext >&5
32433
32434         ac_header_compiler=no
32435 fi
32436
32437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32438 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32439 echo "${ECHO_T}$ac_header_compiler" >&6; }
32440
32441 # Is the header present?
32442 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32443 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32444 cat >conftest.$ac_ext <<_ACEOF
32445 /* confdefs.h.  */
32446 _ACEOF
32447 cat confdefs.h >>conftest.$ac_ext
32448 cat >>conftest.$ac_ext <<_ACEOF
32449 /* end confdefs.h.  */
32450 #include <$ac_header>
32451 _ACEOF
32452 if { (ac_try="$ac_cpp conftest.$ac_ext"
32453 case "(($ac_try" in
32454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32455   *) ac_try_echo=$ac_try;;
32456 esac
32457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32458   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32459   ac_status=$?
32460   grep -v '^ *+' conftest.er1 >conftest.err
32461   rm -f conftest.er1
32462   cat conftest.err >&5
32463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464   (exit $ac_status); } >/dev/null; then
32465   if test -s conftest.err; then
32466     ac_cpp_err=$ac_c_preproc_warn_flag
32467     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32468   else
32469     ac_cpp_err=
32470   fi
32471 else
32472   ac_cpp_err=yes
32473 fi
32474 if test -z "$ac_cpp_err"; then
32475   ac_header_preproc=yes
32476 else
32477   echo "$as_me: failed program was:" >&5
32478 sed 's/^/| /' conftest.$ac_ext >&5
32479
32480   ac_header_preproc=no
32481 fi
32482
32483 rm -f conftest.err conftest.$ac_ext
32484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32485 echo "${ECHO_T}$ac_header_preproc" >&6; }
32486
32487 # So?  What about this header?
32488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32489   yes:no: )
32490     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32492     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32494     ac_header_preproc=yes
32495     ;;
32496   no:yes:* )
32497     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32499     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32500 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32501     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32503     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32504 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32505     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32507     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32509     ( cat <<\_ASBOX
32510 ## ------------------------------------ ##
32511 ## Report this to bug-coreutils@gnu.org ##
32512 ## ------------------------------------ ##
32513 _ASBOX
32514      ) | sed "s/^/$as_me: WARNING:     /" >&2
32515     ;;
32516 esac
32517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32520   echo $ECHO_N "(cached) $ECHO_C" >&6
32521 else
32522   eval "$as_ac_Header=\$ac_header_preproc"
32523 fi
32524 ac_res=`eval echo '${'$as_ac_Header'}'`
32525                { echo "$as_me:$LINENO: result: $ac_res" >&5
32526 echo "${ECHO_T}$ac_res" >&6; }
32527
32528 fi
32529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32530   cat >>confdefs.h <<_ACEOF
32531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32532 _ACEOF
32533
32534 fi
32535
32536 done
32537
32538 { echo "$as_me:$LINENO: checking for working chown" >&5
32539 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
32540 if test "${ac_cv_func_chown_works+set}" = set; then
32541   echo $ECHO_N "(cached) $ECHO_C" >&6
32542 else
32543   if test "$cross_compiling" = yes; then
32544   ac_cv_func_chown_works=no
32545 else
32546   cat >conftest.$ac_ext <<_ACEOF
32547 /* confdefs.h.  */
32548 _ACEOF
32549 cat confdefs.h >>conftest.$ac_ext
32550 cat >>conftest.$ac_ext <<_ACEOF
32551 /* end confdefs.h.  */
32552 $ac_includes_default
32553 #include <fcntl.h>
32554
32555 int
32556 main ()
32557 {
32558   char *f = "conftest.chown";
32559   struct stat before, after;
32560
32561   if (creat (f, 0600) < 0)
32562     return 1;
32563   if (stat (f, &before) < 0)
32564     return 1;
32565   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
32566     return 1;
32567   if (stat (f, &after) < 0)
32568     return 1;
32569   return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
32570
32571   ;
32572   return 0;
32573 }
32574 _ACEOF
32575 rm -f conftest$ac_exeext
32576 if { (ac_try="$ac_link"
32577 case "(($ac_try" in
32578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32579   *) ac_try_echo=$ac_try;;
32580 esac
32581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32582   (eval "$ac_link") 2>&5
32583   ac_status=$?
32584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32585   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32586   { (case "(($ac_try" in
32587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32588   *) ac_try_echo=$ac_try;;
32589 esac
32590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32591   (eval "$ac_try") 2>&5
32592   ac_status=$?
32593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594   (exit $ac_status); }; }; then
32595   ac_cv_func_chown_works=yes
32596 else
32597   echo "$as_me: program exited with status $ac_status" >&5
32598 echo "$as_me: failed program was:" >&5
32599 sed 's/^/| /' conftest.$ac_ext >&5
32600
32601 ( exit $ac_status )
32602 ac_cv_func_chown_works=no
32603 fi
32604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32605 fi
32606
32607
32608 rm -f conftest.chown
32609
32610 fi
32611 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
32612 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
32613 if test $ac_cv_func_chown_works = yes; then
32614
32615 cat >>confdefs.h <<\_ACEOF
32616 #define HAVE_CHOWN 1
32617 _ACEOF
32618
32619 fi
32620
32621
32622   { echo "$as_me:$LINENO: checking whether chown(2) dereferences symlinks" >&5
32623 echo $ECHO_N "checking whether chown(2) dereferences symlinks... $ECHO_C" >&6; }
32624 if test "${gl_cv_func_chown_follows_symlink+set}" = set; then
32625   echo $ECHO_N "(cached) $ECHO_C" >&6
32626 else
32627
32628       if test "$cross_compiling" = yes; then
32629   gl_cv_func_chown_follows_symlink=yes
32630
32631 else
32632   cat >conftest.$ac_ext <<_ACEOF
32633 /* confdefs.h.  */
32634 _ACEOF
32635 cat confdefs.h >>conftest.$ac_ext
32636 cat >>conftest.$ac_ext <<_ACEOF
32637 /* end confdefs.h.  */
32638
32639 #include <unistd.h>
32640 #include <stdlib.h>
32641 #include <errno.h>
32642
32643         int
32644         main ()
32645         {
32646           char const *dangling_symlink = "conftest.dangle";
32647
32648           unlink (dangling_symlink);
32649           if (symlink ("conftest.no-such", dangling_symlink))
32650             abort ();
32651
32652           /* Exit successfully on a conforming system,
32653              i.e., where chown must fail with ENOENT.  */
32654           exit ( ! (chown (dangling_symlink, getuid (), getgid ()) != 0
32655                     && errno == ENOENT));
32656         }
32657
32658 _ACEOF
32659 rm -f conftest$ac_exeext
32660 if { (ac_try="$ac_link"
32661 case "(($ac_try" in
32662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32663   *) ac_try_echo=$ac_try;;
32664 esac
32665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32666   (eval "$ac_link") 2>&5
32667   ac_status=$?
32668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32669   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32670   { (case "(($ac_try" in
32671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32672   *) ac_try_echo=$ac_try;;
32673 esac
32674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32675   (eval "$ac_try") 2>&5
32676   ac_status=$?
32677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32678   (exit $ac_status); }; }; then
32679   gl_cv_func_chown_follows_symlink=yes
32680 else
32681   echo "$as_me: program exited with status $ac_status" >&5
32682 echo "$as_me: failed program was:" >&5
32683 sed 's/^/| /' conftest.$ac_ext >&5
32684
32685 ( exit $ac_status )
32686 gl_cv_func_chown_follows_symlink=no
32687 fi
32688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32689 fi
32690
32691
32692
32693
32694 fi
32695 { echo "$as_me:$LINENO: result: $gl_cv_func_chown_follows_symlink" >&5
32696 echo "${ECHO_T}$gl_cv_func_chown_follows_symlink" >&6; }
32697
32698   if test $gl_cv_func_chown_follows_symlink = no; then
32699
32700 cat >>confdefs.h <<\_ACEOF
32701 #define CHOWN_MODIFIES_SYMLINK 1
32702 _ACEOF
32703
32704   fi
32705
32706
32707
32708
32709
32710
32711   if test $ac_cv_func_chown_works = no; then
32712
32713 cat >>confdefs.h <<\_ACEOF
32714 #define CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE 1
32715 _ACEOF
32716
32717   fi
32718
32719   # If chown has either of the above problems, then we need the wrapper.
32720   if test $ac_cv_func_chown_works$gl_cv_func_chown_follows_symlink = yesyes; then
32721     : # no wrapper needed
32722   else
32723     case " $LIBOBJS " in
32724   *" chown.$ac_objext "* ) ;;
32725   *) LIBOBJS="$LIBOBJS chown.$ac_objext"
32726  ;;
32727 esac
32728
32729
32730 cat >>confdefs.h <<\_ACEOF
32731 #define chown rpl_chown
32732 _ACEOF
32733
32734
32735   { echo "$as_me:$LINENO: checking for fchown" >&5
32736 echo $ECHO_N "checking for fchown... $ECHO_C" >&6; }
32737 if test "${ac_cv_func_fchown+set}" = set; then
32738   echo $ECHO_N "(cached) $ECHO_C" >&6
32739 else
32740   cat >conftest.$ac_ext <<_ACEOF
32741 /* confdefs.h.  */
32742 _ACEOF
32743 cat confdefs.h >>conftest.$ac_ext
32744 cat >>conftest.$ac_ext <<_ACEOF
32745 /* end confdefs.h.  */
32746 /* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
32747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32748 #define fchown innocuous_fchown
32749
32750 /* System header to define __stub macros and hopefully few prototypes,
32751     which can conflict with char fchown (); below.
32752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32753     <limits.h> exists even on freestanding compilers.  */
32754
32755 #ifdef __STDC__
32756 # include <limits.h>
32757 #else
32758 # include <assert.h>
32759 #endif
32760
32761 #undef fchown
32762
32763 /* Override any GCC internal prototype to avoid an error.
32764    Use char because int might match the return type of a GCC
32765    builtin and then its argument prototype would still apply.  */
32766 #ifdef __cplusplus
32767 extern "C"
32768 #endif
32769 char fchown ();
32770 /* The GNU C library defines this for functions which it implements
32771     to always fail with ENOSYS.  Some functions are actually named
32772     something starting with __ and the normal name is an alias.  */
32773 #if defined __stub_fchown || defined __stub___fchown
32774 choke me
32775 #endif
32776
32777 int
32778 main ()
32779 {
32780 return fchown ();
32781   ;
32782   return 0;
32783 }
32784 _ACEOF
32785 rm -f conftest.$ac_objext conftest$ac_exeext
32786 if { (ac_try="$ac_link"
32787 case "(($ac_try" in
32788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32789   *) ac_try_echo=$ac_try;;
32790 esac
32791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32792   (eval "$ac_link") 2>conftest.er1
32793   ac_status=$?
32794   grep -v '^ *+' conftest.er1 >conftest.err
32795   rm -f conftest.er1
32796   cat conftest.err >&5
32797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798   (exit $ac_status); } &&
32799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32800   { (case "(($ac_try" in
32801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32802   *) ac_try_echo=$ac_try;;
32803 esac
32804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32805   (eval "$ac_try") 2>&5
32806   ac_status=$?
32807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808   (exit $ac_status); }; } &&
32809          { ac_try='test -s conftest$ac_exeext'
32810   { (case "(($ac_try" in
32811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32812   *) ac_try_echo=$ac_try;;
32813 esac
32814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32815   (eval "$ac_try") 2>&5
32816   ac_status=$?
32817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32818   (exit $ac_status); }; }; then
32819   ac_cv_func_fchown=yes
32820 else
32821   echo "$as_me: failed program was:" >&5
32822 sed 's/^/| /' conftest.$ac_ext >&5
32823
32824         ac_cv_func_fchown=no
32825 fi
32826
32827 rm -f core conftest.err conftest.$ac_objext \
32828       conftest$ac_exeext conftest.$ac_ext
32829 fi
32830 { echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
32831 echo "${ECHO_T}$ac_cv_func_fchown" >&6; }
32832 if test $ac_cv_func_fchown = yes; then
32833   :
32834 else
32835   case " $LIBOBJS " in
32836   *" fchown-stub.$ac_objext "* ) ;;
32837   *) LIBOBJS="$LIBOBJS fchown-stub.$ac_objext"
32838  ;;
32839 esac
32840
32841 fi
32842
32843
32844   fi
32845
32846 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
32847 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
32848 if test "${ac_cv_header_stat_broken+set}" = set; then
32849   echo $ECHO_N "(cached) $ECHO_C" >&6
32850 else
32851   cat >conftest.$ac_ext <<_ACEOF
32852 /* confdefs.h.  */
32853 _ACEOF
32854 cat confdefs.h >>conftest.$ac_ext
32855 cat >>conftest.$ac_ext <<_ACEOF
32856 /* end confdefs.h.  */
32857 #include <sys/types.h>
32858 #include <sys/stat.h>
32859
32860 #if defined S_ISBLK && defined S_IFDIR
32861 # if S_ISBLK (S_IFDIR)
32862 You lose.
32863 # endif
32864 #endif
32865
32866 #if defined S_ISBLK && defined S_IFCHR
32867 # if S_ISBLK (S_IFCHR)
32868 You lose.
32869 # endif
32870 #endif
32871
32872 #if defined S_ISLNK && defined S_IFREG
32873 # if S_ISLNK (S_IFREG)
32874 You lose.
32875 # endif
32876 #endif
32877
32878 #if defined S_ISSOCK && defined S_IFREG
32879 # if S_ISSOCK (S_IFREG)
32880 You lose.
32881 # endif
32882 #endif
32883
32884 _ACEOF
32885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32886   $EGREP "You lose" >/dev/null 2>&1; then
32887   ac_cv_header_stat_broken=yes
32888 else
32889   ac_cv_header_stat_broken=no
32890 fi
32891 rm -f conftest*
32892
32893 fi
32894 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
32895 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
32896 if test $ac_cv_header_stat_broken = yes; then
32897
32898 cat >>confdefs.h <<\_ACEOF
32899 #define STAT_MACROS_BROKEN 1
32900 _ACEOF
32901
32902 fi
32903
32904
32905
32906
32907
32908
32909
32910
32911
32912
32913
32914
32915 for ac_func in lchown
32916 do
32917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32918 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32920 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32921   echo $ECHO_N "(cached) $ECHO_C" >&6
32922 else
32923   cat >conftest.$ac_ext <<_ACEOF
32924 /* confdefs.h.  */
32925 _ACEOF
32926 cat confdefs.h >>conftest.$ac_ext
32927 cat >>conftest.$ac_ext <<_ACEOF
32928 /* end confdefs.h.  */
32929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32930    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32931 #define $ac_func innocuous_$ac_func
32932
32933 /* System header to define __stub macros and hopefully few prototypes,
32934     which can conflict with char $ac_func (); below.
32935     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32936     <limits.h> exists even on freestanding compilers.  */
32937
32938 #ifdef __STDC__
32939 # include <limits.h>
32940 #else
32941 # include <assert.h>
32942 #endif
32943
32944 #undef $ac_func
32945
32946 /* Override any GCC internal prototype to avoid an error.
32947    Use char because int might match the return type of a GCC
32948    builtin and then its argument prototype would still apply.  */
32949 #ifdef __cplusplus
32950 extern "C"
32951 #endif
32952 char $ac_func ();
32953 /* The GNU C library defines this for functions which it implements
32954     to always fail with ENOSYS.  Some functions are actually named
32955     something starting with __ and the normal name is an alias.  */
32956 #if defined __stub_$ac_func || defined __stub___$ac_func
32957 choke me
32958 #endif
32959
32960 int
32961 main ()
32962 {
32963 return $ac_func ();
32964   ;
32965   return 0;
32966 }
32967 _ACEOF
32968 rm -f conftest.$ac_objext conftest$ac_exeext
32969 if { (ac_try="$ac_link"
32970 case "(($ac_try" in
32971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32972   *) ac_try_echo=$ac_try;;
32973 esac
32974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32975   (eval "$ac_link") 2>conftest.er1
32976   ac_status=$?
32977   grep -v '^ *+' conftest.er1 >conftest.err
32978   rm -f conftest.er1
32979   cat conftest.err >&5
32980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32981   (exit $ac_status); } &&
32982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32983   { (case "(($ac_try" in
32984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32985   *) ac_try_echo=$ac_try;;
32986 esac
32987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32988   (eval "$ac_try") 2>&5
32989   ac_status=$?
32990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991   (exit $ac_status); }; } &&
32992          { ac_try='test -s conftest$ac_exeext'
32993   { (case "(($ac_try" in
32994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32995   *) ac_try_echo=$ac_try;;
32996 esac
32997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32998   (eval "$ac_try") 2>&5
32999   ac_status=$?
33000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33001   (exit $ac_status); }; }; then
33002   eval "$as_ac_var=yes"
33003 else
33004   echo "$as_me: failed program was:" >&5
33005 sed 's/^/| /' conftest.$ac_ext >&5
33006
33007         eval "$as_ac_var=no"
33008 fi
33009
33010 rm -f core conftest.err conftest.$ac_objext \
33011       conftest$ac_exeext conftest.$ac_ext
33012 fi
33013 ac_res=`eval echo '${'$as_ac_var'}'`
33014                { echo "$as_me:$LINENO: result: $ac_res" >&5
33015 echo "${ECHO_T}$ac_res" >&6; }
33016 if test `eval echo '${'$as_ac_var'}'` = yes; then
33017   cat >>confdefs.h <<_ACEOF
33018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33019 _ACEOF
33020
33021 else
33022   case " $LIBOBJS " in
33023   *" $ac_func.$ac_objext "* ) ;;
33024   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
33025  ;;
33026 esac
33027
33028 fi
33029 done
33030
33031
33032
33033
33034
33035   case " $LIBOBJS " in
33036   *" dirchownmod.$ac_objext "* ) ;;
33037   *) LIBOBJS="$LIBOBJS dirchownmod.$ac_objext"
33038  ;;
33039 esac
33040
33041   case " $LIBOBJS " in
33042   *" mkdir-p.$ac_objext "* ) ;;
33043   *) LIBOBJS="$LIBOBJS mkdir-p.$ac_objext"
33044  ;;
33045 esac
33046
33047
33048
33049
33050
33051
33052
33053   case " $LIBOBJS " in
33054   *" modechange.$ac_objext "* ) ;;
33055   *) LIBOBJS="$LIBOBJS modechange.$ac_objext"
33056  ;;
33057 esac
33058
33059
33060
33061
33062
33063
33064
33065
33066 for ac_func in listmntent getmntinfo
33067 do
33068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33069 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33071 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33072   echo $ECHO_N "(cached) $ECHO_C" >&6
33073 else
33074   cat >conftest.$ac_ext <<_ACEOF
33075 /* confdefs.h.  */
33076 _ACEOF
33077 cat confdefs.h >>conftest.$ac_ext
33078 cat >>conftest.$ac_ext <<_ACEOF
33079 /* end confdefs.h.  */
33080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33081    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33082 #define $ac_func innocuous_$ac_func
33083
33084 /* System header to define __stub macros and hopefully few prototypes,
33085     which can conflict with char $ac_func (); below.
33086     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33087     <limits.h> exists even on freestanding compilers.  */
33088
33089 #ifdef __STDC__
33090 # include <limits.h>
33091 #else
33092 # include <assert.h>
33093 #endif
33094
33095 #undef $ac_func
33096
33097 /* Override any GCC internal prototype to avoid an error.
33098    Use char because int might match the return type of a GCC
33099    builtin and then its argument prototype would still apply.  */
33100 #ifdef __cplusplus
33101 extern "C"
33102 #endif
33103 char $ac_func ();
33104 /* The GNU C library defines this for functions which it implements
33105     to always fail with ENOSYS.  Some functions are actually named
33106     something starting with __ and the normal name is an alias.  */
33107 #if defined __stub_$ac_func || defined __stub___$ac_func
33108 choke me
33109 #endif
33110
33111 int
33112 main ()
33113 {
33114 return $ac_func ();
33115   ;
33116   return 0;
33117 }
33118 _ACEOF
33119 rm -f conftest.$ac_objext conftest$ac_exeext
33120 if { (ac_try="$ac_link"
33121 case "(($ac_try" in
33122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33123   *) ac_try_echo=$ac_try;;
33124 esac
33125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33126   (eval "$ac_link") 2>conftest.er1
33127   ac_status=$?
33128   grep -v '^ *+' conftest.er1 >conftest.err
33129   rm -f conftest.er1
33130   cat conftest.err >&5
33131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33132   (exit $ac_status); } &&
33133          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33134   { (case "(($ac_try" in
33135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33136   *) ac_try_echo=$ac_try;;
33137 esac
33138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33139   (eval "$ac_try") 2>&5
33140   ac_status=$?
33141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33142   (exit $ac_status); }; } &&
33143          { ac_try='test -s conftest$ac_exeext'
33144   { (case "(($ac_try" in
33145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33146   *) ac_try_echo=$ac_try;;
33147 esac
33148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33149   (eval "$ac_try") 2>&5
33150   ac_status=$?
33151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33152   (exit $ac_status); }; }; then
33153   eval "$as_ac_var=yes"
33154 else
33155   echo "$as_me: failed program was:" >&5
33156 sed 's/^/| /' conftest.$ac_ext >&5
33157
33158         eval "$as_ac_var=no"
33159 fi
33160
33161 rm -f core conftest.err conftest.$ac_objext \
33162       conftest$ac_exeext conftest.$ac_ext
33163 fi
33164 ac_res=`eval echo '${'$as_ac_var'}'`
33165                { echo "$as_me:$LINENO: result: $ac_res" >&5
33166 echo "${ECHO_T}$ac_res" >&6; }
33167 if test `eval echo '${'$as_ac_var'}'` = yes; then
33168   cat >>confdefs.h <<_ACEOF
33169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33170 _ACEOF
33171
33172 fi
33173 done
33174
33175
33176
33177
33178
33179
33180
33181
33182 # We must include grp.h before ucred.h on OSF V4.0, since ucred.h uses
33183 # NGROUPS (as the array dimension for a struct member) without a definition.
33184
33185 for ac_header in sys/ucred.h
33186 do
33187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33191   echo $ECHO_N "(cached) $ECHO_C" >&6
33192 else
33193   cat >conftest.$ac_ext <<_ACEOF
33194 /* confdefs.h.  */
33195 _ACEOF
33196 cat confdefs.h >>conftest.$ac_ext
33197 cat >>conftest.$ac_ext <<_ACEOF
33198 /* end confdefs.h.  */
33199 #include <grp.h>
33200
33201 #include <$ac_header>
33202 _ACEOF
33203 rm -f conftest.$ac_objext
33204 if { (ac_try="$ac_compile"
33205 case "(($ac_try" in
33206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33207   *) ac_try_echo=$ac_try;;
33208 esac
33209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33210   (eval "$ac_compile") 2>conftest.er1
33211   ac_status=$?
33212   grep -v '^ *+' conftest.er1 >conftest.err
33213   rm -f conftest.er1
33214   cat conftest.err >&5
33215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33216   (exit $ac_status); } &&
33217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33218   { (case "(($ac_try" in
33219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33220   *) ac_try_echo=$ac_try;;
33221 esac
33222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33223   (eval "$ac_try") 2>&5
33224   ac_status=$?
33225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33226   (exit $ac_status); }; } &&
33227          { ac_try='test -s conftest.$ac_objext'
33228   { (case "(($ac_try" in
33229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33230   *) ac_try_echo=$ac_try;;
33231 esac
33232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33233   (eval "$ac_try") 2>&5
33234   ac_status=$?
33235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33236   (exit $ac_status); }; }; then
33237   eval "$as_ac_Header=yes"
33238 else
33239   echo "$as_me: failed program was:" >&5
33240 sed 's/^/| /' conftest.$ac_ext >&5
33241
33242         eval "$as_ac_Header=no"
33243 fi
33244
33245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33246 fi
33247 ac_res=`eval echo '${'$as_ac_Header'}'`
33248                { echo "$as_me:$LINENO: result: $ac_res" >&5
33249 echo "${ECHO_T}$ac_res" >&6; }
33250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33251   cat >>confdefs.h <<_ACEOF
33252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33253 _ACEOF
33254
33255 fi
33256
33257 done
33258
33259
33260
33261 for ac_header in sys/mount.h
33262 do
33263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33267   echo $ECHO_N "(cached) $ECHO_C" >&6
33268 else
33269   cat >conftest.$ac_ext <<_ACEOF
33270 /* confdefs.h.  */
33271 _ACEOF
33272 cat confdefs.h >>conftest.$ac_ext
33273 cat >>conftest.$ac_ext <<_ACEOF
33274 /* end confdefs.h.  */
33275 $ac_includes_default
33276    #if HAVE_SYS_PARAM_H
33277      #include <sys/param.h>
33278     #endif
33279
33280 #include <$ac_header>
33281 _ACEOF
33282 rm -f conftest.$ac_objext
33283 if { (ac_try="$ac_compile"
33284 case "(($ac_try" in
33285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33286   *) ac_try_echo=$ac_try;;
33287 esac
33288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33289   (eval "$ac_compile") 2>conftest.er1
33290   ac_status=$?
33291   grep -v '^ *+' conftest.er1 >conftest.err
33292   rm -f conftest.er1
33293   cat conftest.err >&5
33294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33295   (exit $ac_status); } &&
33296          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33297   { (case "(($ac_try" in
33298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33299   *) ac_try_echo=$ac_try;;
33300 esac
33301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33302   (eval "$ac_try") 2>&5
33303   ac_status=$?
33304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33305   (exit $ac_status); }; } &&
33306          { ac_try='test -s conftest.$ac_objext'
33307   { (case "(($ac_try" in
33308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33309   *) ac_try_echo=$ac_try;;
33310 esac
33311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33312   (eval "$ac_try") 2>&5
33313   ac_status=$?
33314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33315   (exit $ac_status); }; }; then
33316   eval "$as_ac_Header=yes"
33317 else
33318   echo "$as_me: failed program was:" >&5
33319 sed 's/^/| /' conftest.$ac_ext >&5
33320
33321         eval "$as_ac_Header=no"
33322 fi
33323
33324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33325 fi
33326 ac_res=`eval echo '${'$as_ac_Header'}'`
33327                { echo "$as_me:$LINENO: result: $ac_res" >&5
33328 echo "${ECHO_T}$ac_res" >&6; }
33329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33330   cat >>confdefs.h <<_ACEOF
33331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33332 _ACEOF
33333
33334 fi
33335
33336 done
33337
33338
33339
33340
33341 for ac_header in mntent.h sys/fs_types.h
33342 do
33343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33345   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33348   echo $ECHO_N "(cached) $ECHO_C" >&6
33349 fi
33350 ac_res=`eval echo '${'$as_ac_Header'}'`
33351                { echo "$as_me:$LINENO: result: $ac_res" >&5
33352 echo "${ECHO_T}$ac_res" >&6; }
33353 else
33354   # Is the header compilable?
33355 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33357 cat >conftest.$ac_ext <<_ACEOF
33358 /* confdefs.h.  */
33359 _ACEOF
33360 cat confdefs.h >>conftest.$ac_ext
33361 cat >>conftest.$ac_ext <<_ACEOF
33362 /* end confdefs.h.  */
33363 $ac_includes_default
33364 #include <$ac_header>
33365 _ACEOF
33366 rm -f conftest.$ac_objext
33367 if { (ac_try="$ac_compile"
33368 case "(($ac_try" in
33369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33370   *) ac_try_echo=$ac_try;;
33371 esac
33372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33373   (eval "$ac_compile") 2>conftest.er1
33374   ac_status=$?
33375   grep -v '^ *+' conftest.er1 >conftest.err
33376   rm -f conftest.er1
33377   cat conftest.err >&5
33378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33379   (exit $ac_status); } &&
33380          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33381   { (case "(($ac_try" in
33382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33383   *) ac_try_echo=$ac_try;;
33384 esac
33385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33386   (eval "$ac_try") 2>&5
33387   ac_status=$?
33388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33389   (exit $ac_status); }; } &&
33390          { ac_try='test -s conftest.$ac_objext'
33391   { (case "(($ac_try" in
33392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33393   *) ac_try_echo=$ac_try;;
33394 esac
33395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33396   (eval "$ac_try") 2>&5
33397   ac_status=$?
33398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33399   (exit $ac_status); }; }; then
33400   ac_header_compiler=yes
33401 else
33402   echo "$as_me: failed program was:" >&5
33403 sed 's/^/| /' conftest.$ac_ext >&5
33404
33405         ac_header_compiler=no
33406 fi
33407
33408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33409 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33410 echo "${ECHO_T}$ac_header_compiler" >&6; }
33411
33412 # Is the header present?
33413 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33415 cat >conftest.$ac_ext <<_ACEOF
33416 /* confdefs.h.  */
33417 _ACEOF
33418 cat confdefs.h >>conftest.$ac_ext
33419 cat >>conftest.$ac_ext <<_ACEOF
33420 /* end confdefs.h.  */
33421 #include <$ac_header>
33422 _ACEOF
33423 if { (ac_try="$ac_cpp conftest.$ac_ext"
33424 case "(($ac_try" in
33425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33426   *) ac_try_echo=$ac_try;;
33427 esac
33428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33429   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33430   ac_status=$?
33431   grep -v '^ *+' conftest.er1 >conftest.err
33432   rm -f conftest.er1
33433   cat conftest.err >&5
33434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33435   (exit $ac_status); } >/dev/null; then
33436   if test -s conftest.err; then
33437     ac_cpp_err=$ac_c_preproc_warn_flag
33438     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33439   else
33440     ac_cpp_err=
33441   fi
33442 else
33443   ac_cpp_err=yes
33444 fi
33445 if test -z "$ac_cpp_err"; then
33446   ac_header_preproc=yes
33447 else
33448   echo "$as_me: failed program was:" >&5
33449 sed 's/^/| /' conftest.$ac_ext >&5
33450
33451   ac_header_preproc=no
33452 fi
33453
33454 rm -f conftest.err conftest.$ac_ext
33455 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33456 echo "${ECHO_T}$ac_header_preproc" >&6; }
33457
33458 # So?  What about this header?
33459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33460   yes:no: )
33461     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33465     ac_header_preproc=yes
33466     ;;
33467   no:yes:* )
33468     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33470     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33471 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33472     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33474     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33475 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33476     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33478     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33480     ( cat <<\_ASBOX
33481 ## ------------------------------------ ##
33482 ## Report this to bug-coreutils@gnu.org ##
33483 ## ------------------------------------ ##
33484 _ASBOX
33485      ) | sed "s/^/$as_me: WARNING:     /" >&2
33486     ;;
33487 esac
33488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33491   echo $ECHO_N "(cached) $ECHO_C" >&6
33492 else
33493   eval "$as_ac_Header=\$ac_header_preproc"
33494 fi
33495 ac_res=`eval echo '${'$as_ac_Header'}'`
33496                { echo "$as_me:$LINENO: result: $ac_res" >&5
33497 echo "${ECHO_T}$ac_res" >&6; }
33498
33499 fi
33500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33501   cat >>confdefs.h <<_ACEOF
33502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33503 _ACEOF
33504
33505 fi
33506
33507 done
33508
33509     getfsstat_includes="\
33510 $ac_includes_default
33511 #if HAVE_SYS_PARAM_H
33512 # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */
33513 #endif
33514 #if HAVE_SYS_UCRED_H
33515 # include <grp.h> /* needed for definition of NGROUPS */
33516 # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
33517 #endif
33518 #if HAVE_SYS_MOUNT_H
33519 # include <sys/mount.h>
33520 #endif
33521 #if HAVE_SYS_FS_TYPES_H
33522 # include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */
33523 #endif
33524 "
33525 { echo "$as_me:$LINENO: checking for struct fsstat.f_fstypename" >&5
33526 echo $ECHO_N "checking for struct fsstat.f_fstypename... $ECHO_C" >&6; }
33527 if test "${ac_cv_member_struct_fsstat_f_fstypename+set}" = set; then
33528   echo $ECHO_N "(cached) $ECHO_C" >&6
33529 else
33530   cat >conftest.$ac_ext <<_ACEOF
33531 /* confdefs.h.  */
33532 _ACEOF
33533 cat confdefs.h >>conftest.$ac_ext
33534 cat >>conftest.$ac_ext <<_ACEOF
33535 /* end confdefs.h.  */
33536 $getfsstat_includes
33537
33538 int
33539 main ()
33540 {
33541 static struct fsstat ac_aggr;
33542 if (ac_aggr.f_fstypename)
33543 return 0;
33544   ;
33545   return 0;
33546 }
33547 _ACEOF
33548 rm -f conftest.$ac_objext
33549 if { (ac_try="$ac_compile"
33550 case "(($ac_try" in
33551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33552   *) ac_try_echo=$ac_try;;
33553 esac
33554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33555   (eval "$ac_compile") 2>conftest.er1
33556   ac_status=$?
33557   grep -v '^ *+' conftest.er1 >conftest.err
33558   rm -f conftest.er1
33559   cat conftest.err >&5
33560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33561   (exit $ac_status); } &&
33562          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33563   { (case "(($ac_try" in
33564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33565   *) ac_try_echo=$ac_try;;
33566 esac
33567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33568   (eval "$ac_try") 2>&5
33569   ac_status=$?
33570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33571   (exit $ac_status); }; } &&
33572          { ac_try='test -s conftest.$ac_objext'
33573   { (case "(($ac_try" in
33574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33575   *) ac_try_echo=$ac_try;;
33576 esac
33577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33578   (eval "$ac_try") 2>&5
33579   ac_status=$?
33580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33581   (exit $ac_status); }; }; then
33582   ac_cv_member_struct_fsstat_f_fstypename=yes
33583 else
33584   echo "$as_me: failed program was:" >&5
33585 sed 's/^/| /' conftest.$ac_ext >&5
33586
33587         cat >conftest.$ac_ext <<_ACEOF
33588 /* confdefs.h.  */
33589 _ACEOF
33590 cat confdefs.h >>conftest.$ac_ext
33591 cat >>conftest.$ac_ext <<_ACEOF
33592 /* end confdefs.h.  */
33593 $getfsstat_includes
33594
33595 int
33596 main ()
33597 {
33598 static struct fsstat ac_aggr;
33599 if (sizeof ac_aggr.f_fstypename)
33600 return 0;
33601   ;
33602   return 0;
33603 }
33604 _ACEOF
33605 rm -f conftest.$ac_objext
33606 if { (ac_try="$ac_compile"
33607 case "(($ac_try" in
33608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33609   *) ac_try_echo=$ac_try;;
33610 esac
33611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33612   (eval "$ac_compile") 2>conftest.er1
33613   ac_status=$?
33614   grep -v '^ *+' conftest.er1 >conftest.err
33615   rm -f conftest.er1
33616   cat conftest.err >&5
33617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33618   (exit $ac_status); } &&
33619          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33620   { (case "(($ac_try" in
33621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33622   *) ac_try_echo=$ac_try;;
33623 esac
33624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33625   (eval "$ac_try") 2>&5
33626   ac_status=$?
33627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33628   (exit $ac_status); }; } &&
33629          { ac_try='test -s conftest.$ac_objext'
33630   { (case "(($ac_try" in
33631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33632   *) ac_try_echo=$ac_try;;
33633 esac
33634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33635   (eval "$ac_try") 2>&5
33636   ac_status=$?
33637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33638   (exit $ac_status); }; }; then
33639   ac_cv_member_struct_fsstat_f_fstypename=yes
33640 else
33641   echo "$as_me: failed program was:" >&5
33642 sed 's/^/| /' conftest.$ac_ext >&5
33643
33644         ac_cv_member_struct_fsstat_f_fstypename=no
33645 fi
33646
33647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33648 fi
33649
33650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33651 fi
33652 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_fsstat_f_fstypename" >&5
33653 echo "${ECHO_T}$ac_cv_member_struct_fsstat_f_fstypename" >&6; }
33654 if test $ac_cv_member_struct_fsstat_f_fstypename = yes; then
33655
33656 cat >>confdefs.h <<_ACEOF
33657 #define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1
33658 _ACEOF
33659
33660
33661 fi
33662
33663
33664 # Determine how to get the list of mounted file systems.
33665 ac_list_mounted_fs=
33666
33667 # If the getmntent function is available but not in the standard library,
33668 # make sure LIBS contains the appropriate -l option.
33669 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
33670 # -lseq on Dynix/PTX, -lgen on Unixware.
33671 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
33672 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
33673 if test "${ac_cv_search_getmntent+set}" = set; then
33674   echo $ECHO_N "(cached) $ECHO_C" >&6
33675 else
33676   ac_func_search_save_LIBS=$LIBS
33677 cat >conftest.$ac_ext <<_ACEOF
33678 /* confdefs.h.  */
33679 _ACEOF
33680 cat confdefs.h >>conftest.$ac_ext
33681 cat >>conftest.$ac_ext <<_ACEOF
33682 /* end confdefs.h.  */
33683
33684 /* Override any GCC internal prototype to avoid an error.
33685    Use char because int might match the return type of a GCC
33686    builtin and then its argument prototype would still apply.  */
33687 #ifdef __cplusplus
33688 extern "C"
33689 #endif
33690 char getmntent ();
33691 int
33692 main ()
33693 {
33694 return getmntent ();
33695   ;
33696   return 0;
33697 }
33698 _ACEOF
33699 for ac_lib in '' sun seq gen; do
33700   if test -z "$ac_lib"; then
33701     ac_res="none required"
33702   else
33703     ac_res=-l$ac_lib
33704     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33705   fi
33706   rm -f conftest.$ac_objext conftest$ac_exeext
33707 if { (ac_try="$ac_link"
33708 case "(($ac_try" in
33709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33710   *) ac_try_echo=$ac_try;;
33711 esac
33712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33713   (eval "$ac_link") 2>conftest.er1
33714   ac_status=$?
33715   grep -v '^ *+' conftest.er1 >conftest.err
33716   rm -f conftest.er1
33717   cat conftest.err >&5
33718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719   (exit $ac_status); } &&
33720          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33721   { (case "(($ac_try" in
33722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33723   *) ac_try_echo=$ac_try;;
33724 esac
33725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33726   (eval "$ac_try") 2>&5
33727   ac_status=$?
33728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33729   (exit $ac_status); }; } &&
33730          { ac_try='test -s conftest$ac_exeext'
33731   { (case "(($ac_try" in
33732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33733   *) ac_try_echo=$ac_try;;
33734 esac
33735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33736   (eval "$ac_try") 2>&5
33737   ac_status=$?
33738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33739   (exit $ac_status); }; }; then
33740   ac_cv_search_getmntent=$ac_res
33741 else
33742   echo "$as_me: failed program was:" >&5
33743 sed 's/^/| /' conftest.$ac_ext >&5
33744
33745
33746 fi
33747
33748 rm -f core conftest.err conftest.$ac_objext \
33749       conftest$ac_exeext
33750   if test "${ac_cv_search_getmntent+set}" = set; then
33751   break
33752 fi
33753 done
33754 if test "${ac_cv_search_getmntent+set}" = set; then
33755   :
33756 else
33757   ac_cv_search_getmntent=no
33758 fi
33759 rm conftest.$ac_ext
33760 LIBS=$ac_func_search_save_LIBS
33761 fi
33762 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
33763 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
33764 ac_res=$ac_cv_search_getmntent
33765 if test "$ac_res" != no; then
33766   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33767
33768 fi
33769
33770
33771 for ac_func in getmntent
33772 do
33773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33774 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33776 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33777   echo $ECHO_N "(cached) $ECHO_C" >&6
33778 else
33779   cat >conftest.$ac_ext <<_ACEOF
33780 /* confdefs.h.  */
33781 _ACEOF
33782 cat confdefs.h >>conftest.$ac_ext
33783 cat >>conftest.$ac_ext <<_ACEOF
33784 /* end confdefs.h.  */
33785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33786    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33787 #define $ac_func innocuous_$ac_func
33788
33789 /* System header to define __stub macros and hopefully few prototypes,
33790     which can conflict with char $ac_func (); below.
33791     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33792     <limits.h> exists even on freestanding compilers.  */
33793
33794 #ifdef __STDC__
33795 # include <limits.h>
33796 #else
33797 # include <assert.h>
33798 #endif
33799
33800 #undef $ac_func
33801
33802 /* Override any GCC internal prototype to avoid an error.
33803    Use char because int might match the return type of a GCC
33804    builtin and then its argument prototype would still apply.  */
33805 #ifdef __cplusplus
33806 extern "C"
33807 #endif
33808 char $ac_func ();
33809 /* The GNU C library defines this for functions which it implements
33810     to always fail with ENOSYS.  Some functions are actually named
33811     something starting with __ and the normal name is an alias.  */
33812 #if defined __stub_$ac_func || defined __stub___$ac_func
33813 choke me
33814 #endif
33815
33816 int
33817 main ()
33818 {
33819 return $ac_func ();
33820   ;
33821   return 0;
33822 }
33823 _ACEOF
33824 rm -f conftest.$ac_objext conftest$ac_exeext
33825 if { (ac_try="$ac_link"
33826 case "(($ac_try" in
33827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33828   *) ac_try_echo=$ac_try;;
33829 esac
33830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33831   (eval "$ac_link") 2>conftest.er1
33832   ac_status=$?
33833   grep -v '^ *+' conftest.er1 >conftest.err
33834   rm -f conftest.er1
33835   cat conftest.err >&5
33836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33837   (exit $ac_status); } &&
33838          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33839   { (case "(($ac_try" in
33840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33841   *) ac_try_echo=$ac_try;;
33842 esac
33843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33844   (eval "$ac_try") 2>&5
33845   ac_status=$?
33846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33847   (exit $ac_status); }; } &&
33848          { ac_try='test -s conftest$ac_exeext'
33849   { (case "(($ac_try" in
33850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33851   *) ac_try_echo=$ac_try;;
33852 esac
33853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33854   (eval "$ac_try") 2>&5
33855   ac_status=$?
33856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33857   (exit $ac_status); }; }; then
33858   eval "$as_ac_var=yes"
33859 else
33860   echo "$as_me: failed program was:" >&5
33861 sed 's/^/| /' conftest.$ac_ext >&5
33862
33863         eval "$as_ac_var=no"
33864 fi
33865
33866 rm -f core conftest.err conftest.$ac_objext \
33867       conftest$ac_exeext conftest.$ac_ext
33868 fi
33869 ac_res=`eval echo '${'$as_ac_var'}'`
33870                { echo "$as_me:$LINENO: result: $ac_res" >&5
33871 echo "${ECHO_T}$ac_res" >&6; }
33872 if test `eval echo '${'$as_ac_var'}'` = yes; then
33873   cat >>confdefs.h <<_ACEOF
33874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33875 _ACEOF
33876
33877 fi
33878 done
33879
33880
33881
33882 # This test must precede the ones for getmntent because Unicos-9 is
33883 # reported to have the getmntent function, but its support is incompatible
33884 # with other getmntent implementations.
33885
33886 # NOTE: Normally, I wouldn't use a check for system type as I've done for
33887 # `CRAY' below since that goes against the whole autoconf philosophy.  But
33888 # I think there is too great a chance that some non-Cray system has a
33889 # function named listmntent to risk the false positive.
33890
33891 if test -z "$ac_list_mounted_fs"; then
33892   # Cray UNICOS 9
33893   { echo "$as_me:$LINENO: checking for listmntent of Cray/Unicos-9" >&5
33894 echo $ECHO_N "checking for listmntent of Cray/Unicos-9... $ECHO_C" >&6; }
33895   if test "${fu_cv_sys_mounted_cray_listmntent+set}" = set; then
33896   echo $ECHO_N "(cached) $ECHO_C" >&6
33897 else
33898   fu_cv_sys_mounted_cray_listmntent=no
33899       cat >conftest.$ac_ext <<_ACEOF
33900 /* confdefs.h.  */
33901 _ACEOF
33902 cat confdefs.h >>conftest.$ac_ext
33903 cat >>conftest.$ac_ext <<_ACEOF
33904 /* end confdefs.h.  */
33905 #ifdef _CRAY
33906 yes
33907 #endif
33908
33909 _ACEOF
33910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33911   $EGREP "yes" >/dev/null 2>&1; then
33912   test $ac_cv_func_listmntent = yes \
33913             && fu_cv_sys_mounted_cray_listmntent=yes
33914
33915 fi
33916 rm -f conftest*
33917
33918
33919
33920 fi
33921
33922   { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_cray_listmntent" >&5
33923 echo "${ECHO_T}$fu_cv_sys_mounted_cray_listmntent" >&6; }
33924   if test $fu_cv_sys_mounted_cray_listmntent = yes; then
33925     ac_list_mounted_fs=found
33926
33927 cat >>confdefs.h <<\_ACEOF
33928 #define MOUNTED_LISTMNTENT 1
33929 _ACEOF
33930
33931   fi
33932 fi
33933
33934 if test -z "$ac_list_mounted_fs"; then
33935   # AIX.
33936   { echo "$as_me:$LINENO: checking for mntctl function and struct vmount" >&5
33937 echo $ECHO_N "checking for mntctl function and struct vmount... $ECHO_C" >&6; }
33938   if test "${fu_cv_sys_mounted_vmount+set}" = set; then
33939   echo $ECHO_N "(cached) $ECHO_C" >&6
33940 else
33941   cat >conftest.$ac_ext <<_ACEOF
33942 /* confdefs.h.  */
33943 _ACEOF
33944 cat confdefs.h >>conftest.$ac_ext
33945 cat >>conftest.$ac_ext <<_ACEOF
33946 /* end confdefs.h.  */
33947 #include <fshelp.h>
33948 _ACEOF
33949 if { (ac_try="$ac_cpp conftest.$ac_ext"
33950 case "(($ac_try" in
33951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33952   *) ac_try_echo=$ac_try;;
33953 esac
33954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33955   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33956   ac_status=$?
33957   grep -v '^ *+' conftest.er1 >conftest.err
33958   rm -f conftest.er1
33959   cat conftest.err >&5
33960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33961   (exit $ac_status); } >/dev/null; then
33962   if test -s conftest.err; then
33963     ac_cpp_err=$ac_c_preproc_warn_flag
33964     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33965   else
33966     ac_cpp_err=
33967   fi
33968 else
33969   ac_cpp_err=yes
33970 fi
33971 if test -z "$ac_cpp_err"; then
33972   fu_cv_sys_mounted_vmount=yes
33973 else
33974   echo "$as_me: failed program was:" >&5
33975 sed 's/^/| /' conftest.$ac_ext >&5
33976
33977   fu_cv_sys_mounted_vmount=no
33978 fi
33979
33980 rm -f conftest.err conftest.$ac_ext
33981 fi
33982
33983   { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_vmount" >&5
33984 echo "${ECHO_T}$fu_cv_sys_mounted_vmount" >&6; }
33985   if test $fu_cv_sys_mounted_vmount = yes; then
33986     ac_list_mounted_fs=found
33987
33988 cat >>confdefs.h <<\_ACEOF
33989 #define MOUNTED_VMOUNT 1
33990 _ACEOF
33991
33992   fi
33993 fi
33994
33995 if test $ac_cv_func_getmntent = yes; then
33996
33997   # This system has the getmntent function.
33998   # Determine whether it's the one-argument variant or the two-argument one.
33999
34000   if test -z "$ac_list_mounted_fs"; then
34001     # 4.3BSD, SunOS, HP-UX, Dynix, Irix
34002     { echo "$as_me:$LINENO: checking for one-argument getmntent function" >&5
34003 echo $ECHO_N "checking for one-argument getmntent function... $ECHO_C" >&6; }
34004     if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then
34005   echo $ECHO_N "(cached) $ECHO_C" >&6
34006 else
34007   cat >conftest.$ac_ext <<_ACEOF
34008 /* confdefs.h.  */
34009 _ACEOF
34010 cat confdefs.h >>conftest.$ac_ext
34011 cat >>conftest.$ac_ext <<_ACEOF
34012 /* end confdefs.h.  */
34013
34014 /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */
34015 #include <stdio.h>
34016
34017 #include <mntent.h>
34018 #if !defined MOUNTED
34019 # if defined _PATH_MOUNTED      /* GNU libc  */
34020 #  define MOUNTED _PATH_MOUNTED
34021 # endif
34022 # if defined MNT_MNTTAB /* HP-UX.  */
34023 #  define MOUNTED MNT_MNTTAB
34024 # endif
34025 # if defined MNTTABNAME /* Dynix.  */
34026 #  define MOUNTED MNTTABNAME
34027 # endif
34028 #endif
34029
34030 int
34031 main ()
34032 {
34033  struct mntent *mnt = 0; char *table = MOUNTED;
34034   ;
34035   return 0;
34036 }
34037 _ACEOF
34038 rm -f conftest.$ac_objext
34039 if { (ac_try="$ac_compile"
34040 case "(($ac_try" in
34041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34042   *) ac_try_echo=$ac_try;;
34043 esac
34044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34045   (eval "$ac_compile") 2>conftest.er1
34046   ac_status=$?
34047   grep -v '^ *+' conftest.er1 >conftest.err
34048   rm -f conftest.er1
34049   cat conftest.err >&5
34050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34051   (exit $ac_status); } &&
34052          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34053   { (case "(($ac_try" in
34054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34055   *) ac_try_echo=$ac_try;;
34056 esac
34057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34058   (eval "$ac_try") 2>&5
34059   ac_status=$?
34060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34061   (exit $ac_status); }; } &&
34062          { ac_try='test -s conftest.$ac_objext'
34063   { (case "(($ac_try" in
34064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34065   *) ac_try_echo=$ac_try;;
34066 esac
34067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34068   (eval "$ac_try") 2>&5
34069   ac_status=$?
34070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34071   (exit $ac_status); }; }; then
34072   fu_cv_sys_mounted_getmntent1=yes
34073 else
34074   echo "$as_me: failed program was:" >&5
34075 sed 's/^/| /' conftest.$ac_ext >&5
34076
34077         fu_cv_sys_mounted_getmntent1=no
34078 fi
34079
34080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34081 fi
34082
34083     { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent1" >&5
34084 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent1" >&6; }
34085     if test $fu_cv_sys_mounted_getmntent1 = yes; then
34086       ac_list_mounted_fs=found
34087
34088 cat >>confdefs.h <<\_ACEOF
34089 #define MOUNTED_GETMNTENT1 1
34090 _ACEOF
34091
34092     fi
34093   fi
34094
34095   if test -z "$ac_list_mounted_fs"; then
34096     # SVR4
34097     { echo "$as_me:$LINENO: checking for two-argument getmntent function" >&5
34098 echo $ECHO_N "checking for two-argument getmntent function... $ECHO_C" >&6; }
34099     if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then
34100   echo $ECHO_N "(cached) $ECHO_C" >&6
34101 else
34102   cat >conftest.$ac_ext <<_ACEOF
34103 /* confdefs.h.  */
34104 _ACEOF
34105 cat confdefs.h >>conftest.$ac_ext
34106 cat >>conftest.$ac_ext <<_ACEOF
34107 /* end confdefs.h.  */
34108 #include <sys/mnttab.h>
34109
34110 _ACEOF
34111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34112   $EGREP "getmntent" >/dev/null 2>&1; then
34113   fu_cv_sys_mounted_getmntent2=yes
34114 else
34115   fu_cv_sys_mounted_getmntent2=no
34116 fi
34117 rm -f conftest*
34118
34119 fi
34120
34121     { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent2" >&5
34122 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent2" >&6; }
34123     if test $fu_cv_sys_mounted_getmntent2 = yes; then
34124       ac_list_mounted_fs=found
34125
34126 cat >>confdefs.h <<\_ACEOF
34127 #define MOUNTED_GETMNTENT2 1
34128 _ACEOF
34129
34130     fi
34131   fi
34132
34133 fi
34134
34135 if test -z "$ac_list_mounted_fs"; then
34136   # DEC Alpha running OSF/1, and Apple Darwin 1.3.
34137   # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h
34138
34139   { echo "$as_me:$LINENO: checking for getfsstat function" >&5
34140 echo $ECHO_N "checking for getfsstat function... $ECHO_C" >&6; }
34141   if test "${fu_cv_sys_mounted_getfsstat+set}" = set; then
34142   echo $ECHO_N "(cached) $ECHO_C" >&6
34143 else
34144   cat >conftest.$ac_ext <<_ACEOF
34145 /* confdefs.h.  */
34146 _ACEOF
34147 cat confdefs.h >>conftest.$ac_ext
34148 cat >>conftest.$ac_ext <<_ACEOF
34149 /* end confdefs.h.  */
34150
34151 #include <sys/types.h>
34152 #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME
34153 # define FS_TYPE(Ent) ((Ent).f_fstypename)
34154 #else
34155 # define FS_TYPE(Ent) mnt_names[(Ent).f_type]
34156 #endif
34157 $getfsstat_includes
34158
34159 int
34160 main ()
34161 {
34162 struct statfs *stats;
34163    int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
34164    char *t = FS_TYPE (*stats);
34165   ;
34166   return 0;
34167 }
34168 _ACEOF
34169 rm -f conftest.$ac_objext conftest$ac_exeext
34170 if { (ac_try="$ac_link"
34171 case "(($ac_try" in
34172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34173   *) ac_try_echo=$ac_try;;
34174 esac
34175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34176   (eval "$ac_link") 2>conftest.er1
34177   ac_status=$?
34178   grep -v '^ *+' conftest.er1 >conftest.err
34179   rm -f conftest.er1
34180   cat conftest.err >&5
34181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34182   (exit $ac_status); } &&
34183          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34184   { (case "(($ac_try" in
34185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34186   *) ac_try_echo=$ac_try;;
34187 esac
34188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34189   (eval "$ac_try") 2>&5
34190   ac_status=$?
34191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34192   (exit $ac_status); }; } &&
34193          { ac_try='test -s conftest$ac_exeext'
34194   { (case "(($ac_try" in
34195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34196   *) ac_try_echo=$ac_try;;
34197 esac
34198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34199   (eval "$ac_try") 2>&5
34200   ac_status=$?
34201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34202   (exit $ac_status); }; }; then
34203   fu_cv_sys_mounted_getfsstat=yes
34204 else
34205   echo "$as_me: failed program was:" >&5
34206 sed 's/^/| /' conftest.$ac_ext >&5
34207
34208         fu_cv_sys_mounted_getfsstat=no
34209 fi
34210
34211 rm -f core conftest.err conftest.$ac_objext \
34212       conftest$ac_exeext conftest.$ac_ext
34213 fi
34214
34215   { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getfsstat" >&5
34216 echo "${ECHO_T}$fu_cv_sys_mounted_getfsstat" >&6; }
34217   if test $fu_cv_sys_mounted_getfsstat = yes; then
34218     ac_list_mounted_fs=found
34219
34220 cat >>confdefs.h <<\_ACEOF
34221 #define MOUNTED_GETFSSTAT 1
34222 _ACEOF
34223
34224   fi
34225 fi
34226
34227 if test -z "$ac_list_mounted_fs"; then
34228   # SVR3
34229   { echo "$as_me:$LINENO: checking for FIXME existence of three headers" >&5
34230 echo $ECHO_N "checking for FIXME existence of three headers... $ECHO_C" >&6; }
34231   if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then
34232   echo $ECHO_N "(cached) $ECHO_C" >&6
34233 else
34234   cat >conftest.$ac_ext <<_ACEOF
34235 /* confdefs.h.  */
34236 _ACEOF
34237 cat confdefs.h >>conftest.$ac_ext
34238 cat >>conftest.$ac_ext <<_ACEOF
34239 /* end confdefs.h.  */
34240
34241 #include <sys/statfs.h>
34242 #include <sys/fstyp.h>
34243 #include <mnttab.h>
34244 _ACEOF
34245 if { (ac_try="$ac_cpp conftest.$ac_ext"
34246 case "(($ac_try" in
34247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34248   *) ac_try_echo=$ac_try;;
34249 esac
34250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34251   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34252   ac_status=$?
34253   grep -v '^ *+' conftest.er1 >conftest.err
34254   rm -f conftest.er1
34255   cat conftest.err >&5
34256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34257   (exit $ac_status); } >/dev/null; then
34258   if test -s conftest.err; then
34259     ac_cpp_err=$ac_c_preproc_warn_flag
34260     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34261   else
34262     ac_cpp_err=
34263   fi
34264 else
34265   ac_cpp_err=yes
34266 fi
34267 if test -z "$ac_cpp_err"; then
34268   fu_cv_sys_mounted_fread_fstyp=yes
34269 else
34270   echo "$as_me: failed program was:" >&5
34271 sed 's/^/| /' conftest.$ac_ext >&5
34272
34273   fu_cv_sys_mounted_fread_fstyp=no
34274 fi
34275
34276 rm -f conftest.err conftest.$ac_ext
34277 fi
34278
34279   { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread_fstyp" >&5
34280 echo "${ECHO_T}$fu_cv_sys_mounted_fread_fstyp" >&6; }
34281   if test $fu_cv_sys_mounted_fread_fstyp = yes; then
34282     ac_list_mounted_fs=found
34283
34284 cat >>confdefs.h <<\_ACEOF
34285 #define MOUNTED_FREAD_FSTYP 1
34286 _ACEOF
34287
34288   fi
34289 fi
34290
34291 if test -z "$ac_list_mounted_fs"; then
34292   # 4.4BSD and DEC OSF/1.
34293   { echo "$as_me:$LINENO: checking for getmntinfo function" >&5
34294 echo $ECHO_N "checking for getmntinfo function... $ECHO_C" >&6; }
34295   if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then
34296   echo $ECHO_N "(cached) $ECHO_C" >&6
34297 else
34298
34299       test "$ac_cv_func_getmntinfo" = yes \
34300           && fu_cv_sys_mounted_getmntinfo=yes \
34301           || fu_cv_sys_mounted_getmntinfo=no
34302
34303 fi
34304
34305   { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo" >&5
34306 echo "${ECHO_T}$fu_cv_sys_mounted_getmntinfo" >&6; }
34307   if test $fu_cv_sys_mounted_getmntinfo = yes; then
34308     ac_list_mounted_fs=found
34309
34310 cat >>confdefs.h <<\_ACEOF
34311 #define MOUNTED_GETMNTINFO 1
34312 _ACEOF
34313
34314   fi
34315 fi
34316
34317 if test -z "$ac_list_mounted_fs"; then
34318   # Ultrix
34319   { echo "$as_me:$LINENO: checking for getmnt function" >&5
34320 echo $ECHO_N "checking for getmnt function... $ECHO_C" >&6; }
34321   if test "${fu_cv_sys_mounted_getmnt+set}" = set; then
34322   echo $ECHO_N "(cached) $ECHO_C" >&6
34323 else
34324   cat >conftest.$ac_ext <<_ACEOF
34325 /* confdefs.h.  */
34326 _ACEOF
34327 cat confdefs.h >>conftest.$ac_ext
34328 cat >>conftest.$ac_ext <<_ACEOF
34329 /* end confdefs.h.  */
34330
34331 #include <sys/fs_types.h>
34332 #include <sys/mount.h>
34333 _ACEOF
34334 if { (ac_try="$ac_cpp conftest.$ac_ext"
34335 case "(($ac_try" in
34336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34337   *) ac_try_echo=$ac_try;;
34338 esac
34339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34340   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34341   ac_status=$?
34342   grep -v '^ *+' conftest.er1 >conftest.err
34343   rm -f conftest.er1
34344   cat conftest.err >&5
34345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34346   (exit $ac_status); } >/dev/null; then
34347   if test -s conftest.err; then
34348     ac_cpp_err=$ac_c_preproc_warn_flag
34349     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34350   else
34351     ac_cpp_err=
34352   fi
34353 else
34354   ac_cpp_err=yes
34355 fi
34356 if test -z "$ac_cpp_err"; then
34357   fu_cv_sys_mounted_getmnt=yes
34358 else
34359   echo "$as_me: failed program was:" >&5
34360 sed 's/^/| /' conftest.$ac_ext >&5
34361
34362   fu_cv_sys_mounted_getmnt=no
34363 fi
34364
34365 rm -f conftest.err conftest.$ac_ext
34366 fi
34367
34368   { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmnt" >&5
34369 echo "${ECHO_T}$fu_cv_sys_mounted_getmnt" >&6; }
34370   if test $fu_cv_sys_mounted_getmnt = yes; then
34371     ac_list_mounted_fs=found
34372
34373 cat >>confdefs.h <<\_ACEOF
34374 #define MOUNTED_GETMNT 1
34375 _ACEOF
34376
34377   fi
34378 fi
34379
34380 if test -z "$ac_list_mounted_fs"; then
34381   # BeOS
34382
34383
34384 for ac_func in next_dev fs_stat_dev
34385 do
34386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34387 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34389 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34390   echo $ECHO_N "(cached) $ECHO_C" >&6
34391 else
34392   cat >conftest.$ac_ext <<_ACEOF
34393 /* confdefs.h.  */
34394 _ACEOF
34395 cat confdefs.h >>conftest.$ac_ext
34396 cat >>conftest.$ac_ext <<_ACEOF
34397 /* end confdefs.h.  */
34398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34399    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34400 #define $ac_func innocuous_$ac_func
34401
34402 /* System header to define __stub macros and hopefully few prototypes,
34403     which can conflict with char $ac_func (); below.
34404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34405     <limits.h> exists even on freestanding compilers.  */
34406
34407 #ifdef __STDC__
34408 # include <limits.h>
34409 #else
34410 # include <assert.h>
34411 #endif
34412
34413 #undef $ac_func
34414
34415 /* Override any GCC internal prototype to avoid an error.
34416    Use char because int might match the return type of a GCC
34417    builtin and then its argument prototype would still apply.  */
34418 #ifdef __cplusplus
34419 extern "C"
34420 #endif
34421 char $ac_func ();
34422 /* The GNU C library defines this for functions which it implements
34423     to always fail with ENOSYS.  Some functions are actually named
34424     something starting with __ and the normal name is an alias.  */
34425 #if defined __stub_$ac_func || defined __stub___$ac_func
34426 choke me
34427 #endif
34428
34429 int
34430 main ()
34431 {
34432 return $ac_func ();
34433   ;
34434   return 0;
34435 }
34436 _ACEOF
34437 rm -f conftest.$ac_objext conftest$ac_exeext
34438 if { (ac_try="$ac_link"
34439 case "(($ac_try" in
34440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34441   *) ac_try_echo=$ac_try;;
34442 esac
34443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34444   (eval "$ac_link") 2>conftest.er1
34445   ac_status=$?
34446   grep -v '^ *+' conftest.er1 >conftest.err
34447   rm -f conftest.er1
34448   cat conftest.err >&5
34449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34450   (exit $ac_status); } &&
34451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34452   { (case "(($ac_try" in
34453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34454   *) ac_try_echo=$ac_try;;
34455 esac
34456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34457   (eval "$ac_try") 2>&5
34458   ac_status=$?
34459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34460   (exit $ac_status); }; } &&
34461          { ac_try='test -s conftest$ac_exeext'
34462   { (case "(($ac_try" in
34463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34464   *) ac_try_echo=$ac_try;;
34465 esac
34466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34467   (eval "$ac_try") 2>&5
34468   ac_status=$?
34469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34470   (exit $ac_status); }; }; then
34471   eval "$as_ac_var=yes"
34472 else
34473   echo "$as_me: failed program was:" >&5
34474 sed 's/^/| /' conftest.$ac_ext >&5
34475
34476         eval "$as_ac_var=no"
34477 fi
34478
34479 rm -f core conftest.err conftest.$ac_objext \
34480       conftest$ac_exeext conftest.$ac_ext
34481 fi
34482 ac_res=`eval echo '${'$as_ac_var'}'`
34483                { echo "$as_me:$LINENO: result: $ac_res" >&5
34484 echo "${ECHO_T}$ac_res" >&6; }
34485 if test `eval echo '${'$as_ac_var'}'` = yes; then
34486   cat >>confdefs.h <<_ACEOF
34487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34488 _ACEOF
34489
34490 fi
34491 done
34492
34493
34494 for ac_header in fs_info.h
34495 do
34496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34498   { echo "$as_me:$LINENO: checking for $ac_header" >&5
34499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34501   echo $ECHO_N "(cached) $ECHO_C" >&6
34502 fi
34503 ac_res=`eval echo '${'$as_ac_Header'}'`
34504                { echo "$as_me:$LINENO: result: $ac_res" >&5
34505 echo "${ECHO_T}$ac_res" >&6; }
34506 else
34507   # Is the header compilable?
34508 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34510 cat >conftest.$ac_ext <<_ACEOF
34511 /* confdefs.h.  */
34512 _ACEOF
34513 cat confdefs.h >>conftest.$ac_ext
34514 cat >>conftest.$ac_ext <<_ACEOF
34515 /* end confdefs.h.  */
34516 $ac_includes_default
34517 #include <$ac_header>
34518 _ACEOF
34519 rm -f conftest.$ac_objext
34520 if { (ac_try="$ac_compile"
34521 case "(($ac_try" in
34522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34523   *) ac_try_echo=$ac_try;;
34524 esac
34525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34526   (eval "$ac_compile") 2>conftest.er1
34527   ac_status=$?
34528   grep -v '^ *+' conftest.er1 >conftest.err
34529   rm -f conftest.er1
34530   cat conftest.err >&5
34531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34532   (exit $ac_status); } &&
34533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34534   { (case "(($ac_try" in
34535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34536   *) ac_try_echo=$ac_try;;
34537 esac
34538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34539   (eval "$ac_try") 2>&5
34540   ac_status=$?
34541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34542   (exit $ac_status); }; } &&
34543          { ac_try='test -s conftest.$ac_objext'
34544   { (case "(($ac_try" in
34545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34546   *) ac_try_echo=$ac_try;;
34547 esac
34548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34549   (eval "$ac_try") 2>&5
34550   ac_status=$?
34551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34552   (exit $ac_status); }; }; then
34553   ac_header_compiler=yes
34554 else
34555   echo "$as_me: failed program was:" >&5
34556 sed 's/^/| /' conftest.$ac_ext >&5
34557
34558         ac_header_compiler=no
34559 fi
34560
34561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34563 echo "${ECHO_T}$ac_header_compiler" >&6; }
34564
34565 # Is the header present?
34566 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34568 cat >conftest.$ac_ext <<_ACEOF
34569 /* confdefs.h.  */
34570 _ACEOF
34571 cat confdefs.h >>conftest.$ac_ext
34572 cat >>conftest.$ac_ext <<_ACEOF
34573 /* end confdefs.h.  */
34574 #include <$ac_header>
34575 _ACEOF
34576 if { (ac_try="$ac_cpp conftest.$ac_ext"
34577 case "(($ac_try" in
34578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34579   *) ac_try_echo=$ac_try;;
34580 esac
34581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34582   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34583   ac_status=$?
34584   grep -v '^ *+' conftest.er1 >conftest.err
34585   rm -f conftest.er1
34586   cat conftest.err >&5
34587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34588   (exit $ac_status); } >/dev/null; then
34589   if test -s conftest.err; then
34590     ac_cpp_err=$ac_c_preproc_warn_flag
34591     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34592   else
34593     ac_cpp_err=
34594   fi
34595 else
34596   ac_cpp_err=yes
34597 fi
34598 if test -z "$ac_cpp_err"; then
34599   ac_header_preproc=yes
34600 else
34601   echo "$as_me: failed program was:" >&5
34602 sed 's/^/| /' conftest.$ac_ext >&5
34603
34604   ac_header_preproc=no
34605 fi
34606
34607 rm -f conftest.err conftest.$ac_ext
34608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34609 echo "${ECHO_T}$ac_header_preproc" >&6; }
34610
34611 # So?  What about this header?
34612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34613   yes:no: )
34614     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34616     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34618     ac_header_preproc=yes
34619     ;;
34620   no:yes:* )
34621     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34622 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34623     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34624 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34625     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34626 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34627     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34628 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34629     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34631     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34632 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34633     ( cat <<\_ASBOX
34634 ## ------------------------------------ ##
34635 ## Report this to bug-coreutils@gnu.org ##
34636 ## ------------------------------------ ##
34637 _ASBOX
34638      ) | sed "s/^/$as_me: WARNING:     /" >&2
34639     ;;
34640 esac
34641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34644   echo $ECHO_N "(cached) $ECHO_C" >&6
34645 else
34646   eval "$as_ac_Header=\$ac_header_preproc"
34647 fi
34648 ac_res=`eval echo '${'$as_ac_Header'}'`
34649                { echo "$as_me:$LINENO: result: $ac_res" >&5
34650 echo "${ECHO_T}$ac_res" >&6; }
34651
34652 fi
34653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34654   cat >>confdefs.h <<_ACEOF
34655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34656 _ACEOF
34657
34658 fi
34659
34660 done
34661
34662   { echo "$as_me:$LINENO: checking for BEOS mounted file system support functions" >&5
34663 echo $ECHO_N "checking for BEOS mounted file system support functions... $ECHO_C" >&6; }
34664   if test $ac_cv_header_fs_info_h = yes \
34665       && test $ac_cv_func_next_dev = yes \
34666         && test $ac_cv_func_fs_stat_dev = yes; then
34667     fu_result=yes
34668   else
34669     fu_result=no
34670   fi
34671   { echo "$as_me:$LINENO: result: $fu_result" >&5
34672 echo "${ECHO_T}$fu_result" >&6; }
34673   if test $fu_result = yes; then
34674     ac_list_mounted_fs=found
34675
34676 cat >>confdefs.h <<\_ACEOF
34677 #define MOUNTED_FS_STAT_DEV 1
34678 _ACEOF
34679
34680   fi
34681 fi
34682
34683 if test -z "$ac_list_mounted_fs"; then
34684   # SVR2
34685   { echo "$as_me:$LINENO: checking whether it is possible to resort to fread on /etc/mnttab" >&5
34686 echo $ECHO_N "checking whether it is possible to resort to fread on /etc/mnttab... $ECHO_C" >&6; }
34687   if test "${fu_cv_sys_mounted_fread+set}" = set; then
34688   echo $ECHO_N "(cached) $ECHO_C" >&6
34689 else
34690   cat >conftest.$ac_ext <<_ACEOF
34691 /* confdefs.h.  */
34692 _ACEOF
34693 cat confdefs.h >>conftest.$ac_ext
34694 cat >>conftest.$ac_ext <<_ACEOF
34695 /* end confdefs.h.  */
34696 #include <mnttab.h>
34697 _ACEOF
34698 if { (ac_try="$ac_cpp conftest.$ac_ext"
34699 case "(($ac_try" in
34700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34701   *) ac_try_echo=$ac_try;;
34702 esac
34703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34704   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34705   ac_status=$?
34706   grep -v '^ *+' conftest.er1 >conftest.err
34707   rm -f conftest.er1
34708   cat conftest.err >&5
34709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34710   (exit $ac_status); } >/dev/null; then
34711   if test -s conftest.err; then
34712     ac_cpp_err=$ac_c_preproc_warn_flag
34713     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34714   else
34715     ac_cpp_err=
34716   fi
34717 else
34718   ac_cpp_err=yes
34719 fi
34720 if test -z "$ac_cpp_err"; then
34721   fu_cv_sys_mounted_fread=yes
34722 else
34723   echo "$as_me: failed program was:" >&5
34724 sed 's/^/| /' conftest.$ac_ext >&5
34725
34726   fu_cv_sys_mounted_fread=no
34727 fi
34728
34729 rm -f conftest.err conftest.$ac_ext
34730 fi
34731
34732   { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread" >&5
34733 echo "${ECHO_T}$fu_cv_sys_mounted_fread" >&6; }
34734   if test $fu_cv_sys_mounted_fread = yes; then
34735     ac_list_mounted_fs=found
34736
34737 cat >>confdefs.h <<\_ACEOF
34738 #define MOUNTED_FREAD 1
34739 _ACEOF
34740
34741   fi
34742 fi
34743
34744 if test -z "$ac_list_mounted_fs"; then
34745   { { echo "$as_me:$LINENO: error: could not determine how to read list of mounted file systems" >&5
34746 echo "$as_me: error: could not determine how to read list of mounted file systems" >&2;}
34747    { (exit 1); exit 1; }; }
34748   # FIXME -- no need to abort building the whole package
34749   # Can't build mountlist.c or anything that needs its functions
34750 fi
34751
34752 if test $ac_list_mounted_fs = found; then
34753   gl_cv_list_mounted_fs=yes
34754 else
34755   gl_cv_list_mounted_fs=no
34756 fi
34757
34758
34759
34760   if test $gl_cv_list_mounted_fs = yes; then
34761     case " $LIBOBJS " in
34762   *" mountlist.$ac_objext "* ) ;;
34763   *) LIBOBJS="$LIBOBJS mountlist.$ac_objext"
34764  ;;
34765 esac
34766
34767
34768
34769 for ac_header in sys/mntent.h
34770 do
34771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34773   { echo "$as_me:$LINENO: checking for $ac_header" >&5
34774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34776   echo $ECHO_N "(cached) $ECHO_C" >&6
34777 fi
34778 ac_res=`eval echo '${'$as_ac_Header'}'`
34779                { echo "$as_me:$LINENO: result: $ac_res" >&5
34780 echo "${ECHO_T}$ac_res" >&6; }
34781 else
34782   # Is the header compilable?
34783 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34784 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34785 cat >conftest.$ac_ext <<_ACEOF
34786 /* confdefs.h.  */
34787 _ACEOF
34788 cat confdefs.h >>conftest.$ac_ext
34789 cat >>conftest.$ac_ext <<_ACEOF
34790 /* end confdefs.h.  */
34791 $ac_includes_default
34792 #include <$ac_header>
34793 _ACEOF
34794 rm -f conftest.$ac_objext
34795 if { (ac_try="$ac_compile"
34796 case "(($ac_try" in
34797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34798   *) ac_try_echo=$ac_try;;
34799 esac
34800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34801   (eval "$ac_compile") 2>conftest.er1
34802   ac_status=$?
34803   grep -v '^ *+' conftest.er1 >conftest.err
34804   rm -f conftest.er1
34805   cat conftest.err >&5
34806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34807   (exit $ac_status); } &&
34808          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34809   { (case "(($ac_try" in
34810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34811   *) ac_try_echo=$ac_try;;
34812 esac
34813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34814   (eval "$ac_try") 2>&5
34815   ac_status=$?
34816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34817   (exit $ac_status); }; } &&
34818          { ac_try='test -s conftest.$ac_objext'
34819   { (case "(($ac_try" in
34820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34821   *) ac_try_echo=$ac_try;;
34822 esac
34823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34824   (eval "$ac_try") 2>&5
34825   ac_status=$?
34826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34827   (exit $ac_status); }; }; then
34828   ac_header_compiler=yes
34829 else
34830   echo "$as_me: failed program was:" >&5
34831 sed 's/^/| /' conftest.$ac_ext >&5
34832
34833         ac_header_compiler=no
34834 fi
34835
34836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34837 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34838 echo "${ECHO_T}$ac_header_compiler" >&6; }
34839
34840 # Is the header present?
34841 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34843 cat >conftest.$ac_ext <<_ACEOF
34844 /* confdefs.h.  */
34845 _ACEOF
34846 cat confdefs.h >>conftest.$ac_ext
34847 cat >>conftest.$ac_ext <<_ACEOF
34848 /* end confdefs.h.  */
34849 #include <$ac_header>
34850 _ACEOF
34851 if { (ac_try="$ac_cpp conftest.$ac_ext"
34852 case "(($ac_try" in
34853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34854   *) ac_try_echo=$ac_try;;
34855 esac
34856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34857   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34858   ac_status=$?
34859   grep -v '^ *+' conftest.er1 >conftest.err
34860   rm -f conftest.er1
34861   cat conftest.err >&5
34862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34863   (exit $ac_status); } >/dev/null; then
34864   if test -s conftest.err; then
34865     ac_cpp_err=$ac_c_preproc_warn_flag
34866     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34867   else
34868     ac_cpp_err=
34869   fi
34870 else
34871   ac_cpp_err=yes
34872 fi
34873 if test -z "$ac_cpp_err"; then
34874   ac_header_preproc=yes
34875 else
34876   echo "$as_me: failed program was:" >&5
34877 sed 's/^/| /' conftest.$ac_ext >&5
34878
34879   ac_header_preproc=no
34880 fi
34881
34882 rm -f conftest.err conftest.$ac_ext
34883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34884 echo "${ECHO_T}$ac_header_preproc" >&6; }
34885
34886 # So?  What about this header?
34887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34888   yes:no: )
34889     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34893     ac_header_preproc=yes
34894     ;;
34895   no:yes:* )
34896     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34898     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34899 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34900     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34902     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34903 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34904     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34906     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34908     ( cat <<\_ASBOX
34909 ## ------------------------------------ ##
34910 ## Report this to bug-coreutils@gnu.org ##
34911 ## ------------------------------------ ##
34912 _ASBOX
34913      ) | sed "s/^/$as_me: WARNING:     /" >&2
34914     ;;
34915 esac
34916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34919   echo $ECHO_N "(cached) $ECHO_C" >&6
34920 else
34921   eval "$as_ac_Header=\$ac_header_preproc"
34922 fi
34923 ac_res=`eval echo '${'$as_ac_Header'}'`
34924                { echo "$as_me:$LINENO: result: $ac_res" >&5
34925 echo "${ECHO_T}$ac_res" >&6; }
34926
34927 fi
34928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34929   cat >>confdefs.h <<_ACEOF
34930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34931 _ACEOF
34932
34933 fi
34934
34935 done
34936
34937
34938     { echo "$as_me:$LINENO: checking for f_fstypename in struct statfs" >&5
34939 echo $ECHO_N "checking for f_fstypename in struct statfs... $ECHO_C" >&6; }
34940 if test "${fu_cv_sys_f_fstypename_in_statfs+set}" = set; then
34941   echo $ECHO_N "(cached) $ECHO_C" >&6
34942 else
34943
34944         cat >conftest.$ac_ext <<_ACEOF
34945 /* confdefs.h.  */
34946 _ACEOF
34947 cat confdefs.h >>conftest.$ac_ext
34948 cat >>conftest.$ac_ext <<_ACEOF
34949 /* end confdefs.h.  */
34950
34951 #include <sys/param.h>
34952 #include <sys/types.h>
34953 #include <sys/mount.h>
34954
34955 int
34956 main ()
34957 {
34958 struct statfs s; int i = sizeof s.f_fstypename;
34959   ;
34960   return 0;
34961 }
34962 _ACEOF
34963 rm -f conftest.$ac_objext
34964 if { (ac_try="$ac_compile"
34965 case "(($ac_try" in
34966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34967   *) ac_try_echo=$ac_try;;
34968 esac
34969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34970   (eval "$ac_compile") 2>conftest.er1
34971   ac_status=$?
34972   grep -v '^ *+' conftest.er1 >conftest.err
34973   rm -f conftest.er1
34974   cat conftest.err >&5
34975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34976   (exit $ac_status); } &&
34977          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34978   { (case "(($ac_try" in
34979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34980   *) ac_try_echo=$ac_try;;
34981 esac
34982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34983   (eval "$ac_try") 2>&5
34984   ac_status=$?
34985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34986   (exit $ac_status); }; } &&
34987          { ac_try='test -s conftest.$ac_objext'
34988   { (case "(($ac_try" in
34989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34990   *) ac_try_echo=$ac_try;;
34991 esac
34992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34993   (eval "$ac_try") 2>&5
34994   ac_status=$?
34995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34996   (exit $ac_status); }; }; then
34997   fu_cv_sys_f_fstypename_in_statfs=yes
34998 else
34999   echo "$as_me: failed program was:" >&5
35000 sed 's/^/| /' conftest.$ac_ext >&5
35001
35002         fu_cv_sys_f_fstypename_in_statfs=no
35003
35004 fi
35005
35006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35007
35008
35009 fi
35010 { echo "$as_me:$LINENO: result: $fu_cv_sys_f_fstypename_in_statfs" >&5
35011 echo "${ECHO_T}$fu_cv_sys_f_fstypename_in_statfs" >&6; }
35012
35013     if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
35014
35015 cat >>confdefs.h <<\_ACEOF
35016 #define HAVE_F_FSTYPENAME_IN_STATFS 1
35017 _ACEOF
35018
35019     fi
35020
35021
35022
35023   fi
35024
35025
35026   { echo "$as_me:$LINENO: checking for obstacks" >&5
35027 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6; }
35028 if test "${ac_cv_func_obstack+set}" = set; then
35029   echo $ECHO_N "(cached) $ECHO_C" >&6
35030 else
35031   cat >conftest.$ac_ext <<_ACEOF
35032 /* confdefs.h.  */
35033 _ACEOF
35034 cat confdefs.h >>conftest.$ac_ext
35035 cat >>conftest.$ac_ext <<_ACEOF
35036 /* end confdefs.h.  */
35037 #include "obstack.h"
35038 int
35039 main ()
35040 {
35041 struct obstack *mem; obstack_free(mem,(char *) 0)
35042   ;
35043   return 0;
35044 }
35045 _ACEOF
35046 rm -f conftest.$ac_objext conftest$ac_exeext
35047 if { (ac_try="$ac_link"
35048 case "(($ac_try" in
35049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35050   *) ac_try_echo=$ac_try;;
35051 esac
35052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35053   (eval "$ac_link") 2>conftest.er1
35054   ac_status=$?
35055   grep -v '^ *+' conftest.er1 >conftest.err
35056   rm -f conftest.er1
35057   cat conftest.err >&5
35058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35059   (exit $ac_status); } &&
35060          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35061   { (case "(($ac_try" in
35062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35063   *) ac_try_echo=$ac_try;;
35064 esac
35065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35066   (eval "$ac_try") 2>&5
35067   ac_status=$?
35068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35069   (exit $ac_status); }; } &&
35070          { ac_try='test -s conftest$ac_exeext'
35071   { (case "(($ac_try" in
35072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35073   *) ac_try_echo=$ac_try;;
35074 esac
35075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35076   (eval "$ac_try") 2>&5
35077   ac_status=$?
35078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35079   (exit $ac_status); }; }; then
35080   ac_cv_func_obstack=yes
35081 else
35082   echo "$as_me: failed program was:" >&5
35083 sed 's/^/| /' conftest.$ac_ext >&5
35084
35085         ac_cv_func_obstack=no
35086 fi
35087
35088 rm -f core conftest.err conftest.$ac_objext \
35089       conftest$ac_exeext conftest.$ac_ext
35090 fi
35091 { echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
35092 echo "${ECHO_T}$ac_cv_func_obstack" >&6; }
35093 if test $ac_cv_func_obstack = yes; then
35094
35095 cat >>confdefs.h <<\_ACEOF
35096 #define HAVE_OBSTACK 1
35097 _ACEOF
35098
35099 else
35100   case " $LIBOBJS " in
35101   *" obstack.$ac_objext "* ) ;;
35102   *) LIBOBJS="$LIBOBJS obstack.$ac_objext"
35103  ;;
35104 esac
35105
35106 fi
35107
35108     if test $ac_cv_func_obstack = no; then
35109
35110
35111
35112
35113   :
35114
35115   fi
35116
35117
35118
35119
35120
35121
35122
35123
35124
35125
35126
35127 { echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
35128 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6; }
35129 if test "${gl_cv_var__system_configuration+set}" = set; then
35130   echo $ECHO_N "(cached) $ECHO_C" >&6
35131 else
35132   cat >conftest.$ac_ext <<_ACEOF
35133 /* confdefs.h.  */
35134 _ACEOF
35135 cat confdefs.h >>conftest.$ac_ext
35136 cat >>conftest.$ac_ext <<_ACEOF
35137 /* end confdefs.h.  */
35138 #include <sys/systemcfg.h>
35139
35140 int
35141 main ()
35142 {
35143 double x = _system_configuration.physmem;
35144   ;
35145   return 0;
35146 }
35147 _ACEOF
35148 rm -f conftest.$ac_objext conftest$ac_exeext
35149 if { (ac_try="$ac_link"
35150 case "(($ac_try" in
35151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35152   *) ac_try_echo=$ac_try;;
35153 esac
35154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35155   (eval "$ac_link") 2>conftest.er1
35156   ac_status=$?
35157   grep -v '^ *+' conftest.er1 >conftest.err
35158   rm -f conftest.er1
35159   cat conftest.err >&5
35160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35161   (exit $ac_status); } &&
35162          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35163   { (case "(($ac_try" in
35164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35165   *) ac_try_echo=$ac_try;;
35166 esac
35167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35168   (eval "$ac_try") 2>&5
35169   ac_status=$?
35170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35171   (exit $ac_status); }; } &&
35172          { ac_try='test -s conftest$ac_exeext'
35173   { (case "(($ac_try" in
35174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35175   *) ac_try_echo=$ac_try;;
35176 esac
35177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35178   (eval "$ac_try") 2>&5
35179   ac_status=$?
35180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35181   (exit $ac_status); }; }; then
35182   gl_cv_var__system_configuration=yes
35183 else
35184   echo "$as_me: failed program was:" >&5
35185 sed 's/^/| /' conftest.$ac_ext >&5
35186
35187         gl_cv_var__system_configuration=no
35188 fi
35189
35190 rm -f core conftest.err conftest.$ac_objext \
35191       conftest$ac_exeext conftest.$ac_ext
35192 fi
35193 { echo "$as_me:$LINENO: result: $gl_cv_var__system_configuration" >&5
35194 echo "${ECHO_T}$gl_cv_var__system_configuration" >&6; }
35195
35196     if test $gl_cv_var__system_configuration = yes; then
35197
35198 cat >>confdefs.h <<\_ACEOF
35199 #define HAVE__SYSTEM_CONFIGURATION 1
35200 _ACEOF
35201
35202     fi
35203
35204
35205
35206
35207   case " $LIBOBJS " in
35208   *" physmem.$ac_objext "* ) ;;
35209   *) LIBOBJS="$LIBOBJS physmem.$ac_objext"
35210  ;;
35211 esac
35212
35213
35214   # Prerequisites of lib/physmem.c.
35215
35216
35217
35218
35219
35220
35221
35222
35223 for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
35224     machine/hal_sysinfo.h sys/table.h sys/param.h sys/sysctl.h \
35225     sys/systemcfg.h
35226 do
35227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35231   echo $ECHO_N "(cached) $ECHO_C" >&6
35232 else
35233   cat >conftest.$ac_ext <<_ACEOF
35234 /* confdefs.h.  */
35235 _ACEOF
35236 cat confdefs.h >>conftest.$ac_ext
35237 cat >>conftest.$ac_ext <<_ACEOF
35238 /* end confdefs.h.  */
35239 $ac_includes_default
35240
35241 #include <$ac_header>
35242 _ACEOF
35243 rm -f conftest.$ac_objext
35244 if { (ac_try="$ac_compile"
35245 case "(($ac_try" in
35246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35247   *) ac_try_echo=$ac_try;;
35248 esac
35249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35250   (eval "$ac_compile") 2>conftest.er1
35251   ac_status=$?
35252   grep -v '^ *+' conftest.er1 >conftest.err
35253   rm -f conftest.er1
35254   cat conftest.err >&5
35255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35256   (exit $ac_status); } &&
35257          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35258   { (case "(($ac_try" in
35259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35260   *) ac_try_echo=$ac_try;;
35261 esac
35262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35263   (eval "$ac_try") 2>&5
35264   ac_status=$?
35265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35266   (exit $ac_status); }; } &&
35267          { ac_try='test -s conftest.$ac_objext'
35268   { (case "(($ac_try" in
35269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35270   *) ac_try_echo=$ac_try;;
35271 esac
35272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35273   (eval "$ac_try") 2>&5
35274   ac_status=$?
35275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35276   (exit $ac_status); }; }; then
35277   eval "$as_ac_Header=yes"
35278 else
35279   echo "$as_me: failed program was:" >&5
35280 sed 's/^/| /' conftest.$ac_ext >&5
35281
35282         eval "$as_ac_Header=no"
35283 fi
35284
35285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35286 fi
35287 ac_res=`eval echo '${'$as_ac_Header'}'`
35288                { echo "$as_me:$LINENO: result: $ac_res" >&5
35289 echo "${ECHO_T}$ac_res" >&6; }
35290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35291   cat >>confdefs.h <<_ACEOF
35292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35293 _ACEOF
35294
35295 fi
35296
35297 done
35298
35299
35300
35301
35302
35303
35304
35305
35306 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
35307 do
35308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35309 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35312   echo $ECHO_N "(cached) $ECHO_C" >&6
35313 else
35314   cat >conftest.$ac_ext <<_ACEOF
35315 /* confdefs.h.  */
35316 _ACEOF
35317 cat confdefs.h >>conftest.$ac_ext
35318 cat >>conftest.$ac_ext <<_ACEOF
35319 /* end confdefs.h.  */
35320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35322 #define $ac_func innocuous_$ac_func
35323
35324 /* System header to define __stub macros and hopefully few prototypes,
35325     which can conflict with char $ac_func (); below.
35326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35327     <limits.h> exists even on freestanding compilers.  */
35328
35329 #ifdef __STDC__
35330 # include <limits.h>
35331 #else
35332 # include <assert.h>
35333 #endif
35334
35335 #undef $ac_func
35336
35337 /* Override any GCC internal prototype to avoid an error.
35338    Use char because int might match the return type of a GCC
35339    builtin and then its argument prototype would still apply.  */
35340 #ifdef __cplusplus
35341 extern "C"
35342 #endif
35343 char $ac_func ();
35344 /* The GNU C library defines this for functions which it implements
35345     to always fail with ENOSYS.  Some functions are actually named
35346     something starting with __ and the normal name is an alias.  */
35347 #if defined __stub_$ac_func || defined __stub___$ac_func
35348 choke me
35349 #endif
35350
35351 int
35352 main ()
35353 {
35354 return $ac_func ();
35355   ;
35356   return 0;
35357 }
35358 _ACEOF
35359 rm -f conftest.$ac_objext conftest$ac_exeext
35360 if { (ac_try="$ac_link"
35361 case "(($ac_try" in
35362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35363   *) ac_try_echo=$ac_try;;
35364 esac
35365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35366   (eval "$ac_link") 2>conftest.er1
35367   ac_status=$?
35368   grep -v '^ *+' conftest.er1 >conftest.err
35369   rm -f conftest.er1
35370   cat conftest.err >&5
35371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35372   (exit $ac_status); } &&
35373          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35374   { (case "(($ac_try" in
35375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35376   *) ac_try_echo=$ac_try;;
35377 esac
35378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35379   (eval "$ac_try") 2>&5
35380   ac_status=$?
35381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35382   (exit $ac_status); }; } &&
35383          { ac_try='test -s conftest$ac_exeext'
35384   { (case "(($ac_try" in
35385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35386   *) ac_try_echo=$ac_try;;
35387 esac
35388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35389   (eval "$ac_try") 2>&5
35390   ac_status=$?
35391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35392   (exit $ac_status); }; }; then
35393   eval "$as_ac_var=yes"
35394 else
35395   echo "$as_me: failed program was:" >&5
35396 sed 's/^/| /' conftest.$ac_ext >&5
35397
35398         eval "$as_ac_var=no"
35399 fi
35400
35401 rm -f core conftest.err conftest.$ac_objext \
35402       conftest$ac_exeext conftest.$ac_ext
35403 fi
35404 ac_res=`eval echo '${'$as_ac_var'}'`
35405                { echo "$as_me:$LINENO: result: $ac_res" >&5
35406 echo "${ECHO_T}$ac_res" >&6; }
35407 if test `eval echo '${'$as_ac_var'}'` = yes; then
35408   cat >>confdefs.h <<_ACEOF
35409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35410 _ACEOF
35411
35412 fi
35413 done
35414
35415
35416
35417
35418
35419   case " $LIBOBJS " in
35420   *" posixtm.$ac_objext "* ) ;;
35421   *) LIBOBJS="$LIBOBJS posixtm.$ac_objext"
35422  ;;
35423 esac
35424
35425
35426     { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
35427 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
35428 if test "${ac_cv_struct_tm+set}" = set; then
35429   echo $ECHO_N "(cached) $ECHO_C" >&6
35430 else
35431   cat >conftest.$ac_ext <<_ACEOF
35432 /* confdefs.h.  */
35433 _ACEOF
35434 cat confdefs.h >>conftest.$ac_ext
35435 cat >>conftest.$ac_ext <<_ACEOF
35436 /* end confdefs.h.  */
35437 #include <sys/types.h>
35438 #include <time.h>
35439
35440 int
35441 main ()
35442 {
35443 struct tm *tp; tp->tm_sec;
35444   ;
35445   return 0;
35446 }
35447 _ACEOF
35448 rm -f conftest.$ac_objext
35449 if { (ac_try="$ac_compile"
35450 case "(($ac_try" in
35451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35452   *) ac_try_echo=$ac_try;;
35453 esac
35454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35455   (eval "$ac_compile") 2>conftest.er1
35456   ac_status=$?
35457   grep -v '^ *+' conftest.er1 >conftest.err
35458   rm -f conftest.er1
35459   cat conftest.err >&5
35460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35461   (exit $ac_status); } &&
35462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35463   { (case "(($ac_try" in
35464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35465   *) ac_try_echo=$ac_try;;
35466 esac
35467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35468   (eval "$ac_try") 2>&5
35469   ac_status=$?
35470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35471   (exit $ac_status); }; } &&
35472          { ac_try='test -s conftest.$ac_objext'
35473   { (case "(($ac_try" in
35474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35475   *) ac_try_echo=$ac_try;;
35476 esac
35477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35478   (eval "$ac_try") 2>&5
35479   ac_status=$?
35480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35481   (exit $ac_status); }; }; then
35482   ac_cv_struct_tm=time.h
35483 else
35484   echo "$as_me: failed program was:" >&5
35485 sed 's/^/| /' conftest.$ac_ext >&5
35486
35487         ac_cv_struct_tm=sys/time.h
35488 fi
35489
35490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35491 fi
35492 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
35493 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
35494 if test $ac_cv_struct_tm = sys/time.h; then
35495
35496 cat >>confdefs.h <<\_ACEOF
35497 #define TM_IN_SYS_TIME 1
35498 _ACEOF
35499
35500 fi
35501
35502
35503
35504
35505   case " $LIBOBJS " in
35506   *" posixver.$ac_objext "* ) ;;
35507   *) LIBOBJS="$LIBOBJS posixver.$ac_objext"
35508  ;;
35509 esac
35510
35511
35512
35513
35514
35515
35516   case " $LIBOBJS " in
35517   *" quotearg.$ac_objext "* ) ;;
35518   *) LIBOBJS="$LIBOBJS quotearg.$ac_objext"
35519  ;;
35520 esac
35521
35522
35523
35524
35525
35526
35527
35528
35529
35530
35531
35532
35533
35534
35535
35536
35537
35538
35539   { echo "$as_me:$LINENO: checking for mbstate_t" >&5
35540 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
35541 if test "${ac_cv_type_mbstate_t+set}" = set; then
35542   echo $ECHO_N "(cached) $ECHO_C" >&6
35543 else
35544   cat >conftest.$ac_ext <<_ACEOF
35545 /* confdefs.h.  */
35546 _ACEOF
35547 cat confdefs.h >>conftest.$ac_ext
35548 cat >>conftest.$ac_ext <<_ACEOF
35549 /* end confdefs.h.  */
35550 $ac_includes_default
35551 #           include <wchar.h>
35552 int
35553 main ()
35554 {
35555 mbstate_t x; return sizeof x;
35556   ;
35557   return 0;
35558 }
35559 _ACEOF
35560 rm -f conftest.$ac_objext
35561 if { (ac_try="$ac_compile"
35562 case "(($ac_try" in
35563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35564   *) ac_try_echo=$ac_try;;
35565 esac
35566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35567   (eval "$ac_compile") 2>conftest.er1
35568   ac_status=$?
35569   grep -v '^ *+' conftest.er1 >conftest.err
35570   rm -f conftest.er1
35571   cat conftest.err >&5
35572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35573   (exit $ac_status); } &&
35574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35575   { (case "(($ac_try" in
35576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35577   *) ac_try_echo=$ac_try;;
35578 esac
35579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35580   (eval "$ac_try") 2>&5
35581   ac_status=$?
35582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35583   (exit $ac_status); }; } &&
35584          { ac_try='test -s conftest.$ac_objext'
35585   { (case "(($ac_try" in
35586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35587   *) ac_try_echo=$ac_try;;
35588 esac
35589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35590   (eval "$ac_try") 2>&5
35591   ac_status=$?
35592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35593   (exit $ac_status); }; }; then
35594   ac_cv_type_mbstate_t=yes
35595 else
35596   echo "$as_me: failed program was:" >&5
35597 sed 's/^/| /' conftest.$ac_ext >&5
35598
35599         ac_cv_type_mbstate_t=no
35600 fi
35601
35602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35603 fi
35604 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35605 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
35606    if test $ac_cv_type_mbstate_t = yes; then
35607
35608 cat >>confdefs.h <<\_ACEOF
35609 #define HAVE_MBSTATE_T 1
35610 _ACEOF
35611
35612    else
35613
35614 cat >>confdefs.h <<\_ACEOF
35615 #define mbstate_t int
35616 _ACEOF
35617
35618    fi
35619
35620     { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
35621 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
35622 if test "${gl_cv_func_mbrtowc+set}" = set; then
35623   echo $ECHO_N "(cached) $ECHO_C" >&6
35624 else
35625   cat >conftest.$ac_ext <<_ACEOF
35626 /* confdefs.h.  */
35627 _ACEOF
35628 cat confdefs.h >>conftest.$ac_ext
35629 cat >>conftest.$ac_ext <<_ACEOF
35630 /* end confdefs.h.  */
35631 #include <wchar.h>
35632 int
35633 main ()
35634 {
35635 wchar_t wc;
35636               char const s[] = "";
35637               size_t n = 1;
35638               mbstate_t state;
35639               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
35640   ;
35641   return 0;
35642 }
35643 _ACEOF
35644 rm -f conftest.$ac_objext conftest$ac_exeext
35645 if { (ac_try="$ac_link"
35646 case "(($ac_try" in
35647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35648   *) ac_try_echo=$ac_try;;
35649 esac
35650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35651   (eval "$ac_link") 2>conftest.er1
35652   ac_status=$?
35653   grep -v '^ *+' conftest.er1 >conftest.err
35654   rm -f conftest.er1
35655   cat conftest.err >&5
35656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35657   (exit $ac_status); } &&
35658          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35659   { (case "(($ac_try" in
35660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35661   *) ac_try_echo=$ac_try;;
35662 esac
35663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35664   (eval "$ac_try") 2>&5
35665   ac_status=$?
35666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35667   (exit $ac_status); }; } &&
35668          { ac_try='test -s conftest$ac_exeext'
35669   { (case "(($ac_try" in
35670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35671   *) ac_try_echo=$ac_try;;
35672 esac
35673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35674   (eval "$ac_try") 2>&5
35675   ac_status=$?
35676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35677   (exit $ac_status); }; }; then
35678   gl_cv_func_mbrtowc=yes
35679 else
35680   echo "$as_me: failed program was:" >&5
35681 sed 's/^/| /' conftest.$ac_ext >&5
35682
35683         gl_cv_func_mbrtowc=no
35684 fi
35685
35686 rm -f core conftest.err conftest.$ac_objext \
35687       conftest$ac_exeext conftest.$ac_ext
35688 fi
35689 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
35690 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; }
35691   if test $gl_cv_func_mbrtowc = yes; then
35692
35693 cat >>confdefs.h <<\_ACEOF
35694 #define HAVE_MBRTOWC 1
35695 _ACEOF
35696
35697   fi
35698
35699
35700
35701
35702   case " $LIBOBJS " in
35703   *" quote.$ac_objext "* ) ;;
35704   *) LIBOBJS="$LIBOBJS quote.$ac_objext"
35705  ;;
35706 esac
35707
35708
35709
35710
35711
35712   case " $LIBOBJS " in
35713   *" readtokens.$ac_objext "* ) ;;
35714   *) LIBOBJS="$LIBOBJS readtokens.$ac_objext"
35715  ;;
35716 esac
35717
35718
35719     :
35720
35721
35722   { echo "$as_me:$LINENO: checking whether free (NULL) is known to work" >&5
35723 echo $ECHO_N "checking whether free (NULL) is known to work... $ECHO_C" >&6; }
35724 if test "${gl_cv_func_free+set}" = set; then
35725   echo $ECHO_N "(cached) $ECHO_C" >&6
35726 else
35727   cat >conftest.$ac_ext <<_ACEOF
35728 /* confdefs.h.  */
35729 _ACEOF
35730 cat confdefs.h >>conftest.$ac_ext
35731 cat >>conftest.$ac_ext <<_ACEOF
35732 /* end confdefs.h.  */
35733 #include <unistd.h>
35734 int
35735 main ()
35736 {
35737 #if _POSIX_VERSION < 199009L && \
35738                 (defined unix || defined _unix || defined _unix_ \
35739                  || defined __unix || defined __unix__)
35740               #error "'free (NULL)' is not known to work"
35741             #endif
35742   ;
35743   return 0;
35744 }
35745 _ACEOF
35746 rm -f conftest.$ac_objext
35747 if { (ac_try="$ac_compile"
35748 case "(($ac_try" in
35749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35750   *) ac_try_echo=$ac_try;;
35751 esac
35752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35753   (eval "$ac_compile") 2>conftest.er1
35754   ac_status=$?
35755   grep -v '^ *+' conftest.er1 >conftest.err
35756   rm -f conftest.er1
35757   cat conftest.err >&5
35758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35759   (exit $ac_status); } &&
35760          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35761   { (case "(($ac_try" in
35762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35763   *) ac_try_echo=$ac_try;;
35764 esac
35765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35766   (eval "$ac_try") 2>&5
35767   ac_status=$?
35768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35769   (exit $ac_status); }; } &&
35770          { ac_try='test -s conftest.$ac_objext'
35771   { (case "(($ac_try" in
35772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35773   *) ac_try_echo=$ac_try;;
35774 esac
35775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35776   (eval "$ac_try") 2>&5
35777   ac_status=$?
35778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35779   (exit $ac_status); }; }; then
35780   gl_cv_func_free=yes
35781 else
35782   echo "$as_me: failed program was:" >&5
35783 sed 's/^/| /' conftest.$ac_ext >&5
35784
35785         gl_cv_func_free=no
35786 fi
35787
35788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35789 fi
35790 { echo "$as_me:$LINENO: result: $gl_cv_func_free" >&5
35791 echo "${ECHO_T}$gl_cv_func_free" >&6; }
35792
35793   if test $gl_cv_func_free = no; then
35794     case " $LIBOBJS " in
35795   *" free.$ac_objext "* ) ;;
35796   *) LIBOBJS="$LIBOBJS free.$ac_objext"
35797  ;;
35798 esac
35799
35800
35801 cat >>confdefs.h <<\_ACEOF
35802 #define free rpl_free
35803 _ACEOF
35804
35805   fi
35806
35807
35808
35809
35810
35811
35812
35813
35814
35815   case " $LIBOBJS " in
35816   *" readutmp.$ac_objext "* ) ;;
35817   *) LIBOBJS="$LIBOBJS readutmp.$ac_objext"
35818  ;;
35819 esac
35820
35821
35822
35823
35824
35825
35826
35827
35828
35829
35830
35831
35832
35833
35834
35835
35836
35837
35838
35839
35840   { echo "$as_me:$LINENO: checking whether getutent is declared" >&5
35841 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6; }
35842 if test "${ac_cv_have_decl_getutent+set}" = set; then
35843   echo $ECHO_N "(cached) $ECHO_C" >&6
35844 else
35845   cat >conftest.$ac_ext <<_ACEOF
35846 /* confdefs.h.  */
35847 _ACEOF
35848 cat confdefs.h >>conftest.$ac_ext
35849 cat >>conftest.$ac_ext <<_ACEOF
35850 /* end confdefs.h.  */
35851
35852 #ifdef HAVE_UTMP_H
35853 # include <utmp.h>
35854 #endif
35855
35856
35857 int
35858 main ()
35859 {
35860 #ifndef getutent
35861   char *p = (char *) getutent;
35862   return !p;
35863 #endif
35864
35865   ;
35866   return 0;
35867 }
35868 _ACEOF
35869 rm -f conftest.$ac_objext
35870 if { (ac_try="$ac_compile"
35871 case "(($ac_try" in
35872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35873   *) ac_try_echo=$ac_try;;
35874 esac
35875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35876   (eval "$ac_compile") 2>conftest.er1
35877   ac_status=$?
35878   grep -v '^ *+' conftest.er1 >conftest.err
35879   rm -f conftest.er1
35880   cat conftest.err >&5
35881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35882   (exit $ac_status); } &&
35883          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35884   { (case "(($ac_try" in
35885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35886   *) ac_try_echo=$ac_try;;
35887 esac
35888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35889   (eval "$ac_try") 2>&5
35890   ac_status=$?
35891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35892   (exit $ac_status); }; } &&
35893          { ac_try='test -s conftest.$ac_objext'
35894   { (case "(($ac_try" in
35895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35896   *) ac_try_echo=$ac_try;;
35897 esac
35898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35899   (eval "$ac_try") 2>&5
35900   ac_status=$?
35901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35902   (exit $ac_status); }; }; then
35903   ac_cv_have_decl_getutent=yes
35904 else
35905   echo "$as_me: failed program was:" >&5
35906 sed 's/^/| /' conftest.$ac_ext >&5
35907
35908         ac_cv_have_decl_getutent=no
35909 fi
35910
35911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35912 fi
35913 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
35914 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6; }
35915 if test $ac_cv_have_decl_getutent = yes; then
35916
35917 cat >>confdefs.h <<_ACEOF
35918 #define HAVE_DECL_GETUTENT 1
35919 _ACEOF
35920
35921
35922 else
35923   cat >>confdefs.h <<_ACEOF
35924 #define HAVE_DECL_GETUTENT 0
35925 _ACEOF
35926
35927
35928 fi
35929
35930
35931   if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
35932     utmp_includes="\
35933 $ac_includes_default
35934 #ifdef HAVE_UTMPX_H
35935 # include <utmpx.h>
35936 #endif
35937 #ifdef HAVE_UTMP_H
35938 # include <utmp.h>
35939 #endif
35940 "
35941     { echo "$as_me:$LINENO: checking for struct utmpx.ut_user" >&5
35942 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" >&6; }
35943 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
35944   echo $ECHO_N "(cached) $ECHO_C" >&6
35945 else
35946   cat >conftest.$ac_ext <<_ACEOF
35947 /* confdefs.h.  */
35948 _ACEOF
35949 cat confdefs.h >>conftest.$ac_ext
35950 cat >>conftest.$ac_ext <<_ACEOF
35951 /* end confdefs.h.  */
35952 $utmp_includes
35953
35954 int
35955 main ()
35956 {
35957 static struct utmpx ac_aggr;
35958 if (ac_aggr.ut_user)
35959 return 0;
35960   ;
35961   return 0;
35962 }
35963 _ACEOF
35964 rm -f conftest.$ac_objext
35965 if { (ac_try="$ac_compile"
35966 case "(($ac_try" in
35967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35968   *) ac_try_echo=$ac_try;;
35969 esac
35970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35971   (eval "$ac_compile") 2>conftest.er1
35972   ac_status=$?
35973   grep -v '^ *+' conftest.er1 >conftest.err
35974   rm -f conftest.er1
35975   cat conftest.err >&5
35976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35977   (exit $ac_status); } &&
35978          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35979   { (case "(($ac_try" in
35980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35981   *) ac_try_echo=$ac_try;;
35982 esac
35983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35984   (eval "$ac_try") 2>&5
35985   ac_status=$?
35986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35987   (exit $ac_status); }; } &&
35988          { ac_try='test -s conftest.$ac_objext'
35989   { (case "(($ac_try" in
35990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35991   *) ac_try_echo=$ac_try;;
35992 esac
35993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35994   (eval "$ac_try") 2>&5
35995   ac_status=$?
35996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35997   (exit $ac_status); }; }; then
35998   ac_cv_member_struct_utmpx_ut_user=yes
35999 else
36000   echo "$as_me: failed program was:" >&5
36001 sed 's/^/| /' conftest.$ac_ext >&5
36002
36003         cat >conftest.$ac_ext <<_ACEOF
36004 /* confdefs.h.  */
36005 _ACEOF
36006 cat confdefs.h >>conftest.$ac_ext
36007 cat >>conftest.$ac_ext <<_ACEOF
36008 /* end confdefs.h.  */
36009 $utmp_includes
36010
36011 int
36012 main ()
36013 {
36014 static struct utmpx ac_aggr;
36015 if (sizeof ac_aggr.ut_user)
36016 return 0;
36017   ;
36018   return 0;
36019 }
36020 _ACEOF
36021 rm -f conftest.$ac_objext
36022 if { (ac_try="$ac_compile"
36023 case "(($ac_try" in
36024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36025   *) ac_try_echo=$ac_try;;
36026 esac
36027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36028   (eval "$ac_compile") 2>conftest.er1
36029   ac_status=$?
36030   grep -v '^ *+' conftest.er1 >conftest.err
36031   rm -f conftest.er1
36032   cat conftest.err >&5
36033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36034   (exit $ac_status); } &&
36035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36036   { (case "(($ac_try" in
36037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36038   *) ac_try_echo=$ac_try;;
36039 esac
36040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36041   (eval "$ac_try") 2>&5
36042   ac_status=$?
36043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36044   (exit $ac_status); }; } &&
36045          { ac_try='test -s conftest.$ac_objext'
36046   { (case "(($ac_try" in
36047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36048   *) ac_try_echo=$ac_try;;
36049 esac
36050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36051   (eval "$ac_try") 2>&5
36052   ac_status=$?
36053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36054   (exit $ac_status); }; }; then
36055   ac_cv_member_struct_utmpx_ut_user=yes
36056 else
36057   echo "$as_me: failed program was:" >&5
36058 sed 's/^/| /' conftest.$ac_ext >&5
36059
36060         ac_cv_member_struct_utmpx_ut_user=no
36061 fi
36062
36063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36064 fi
36065
36066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36067 fi
36068 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_user" >&5
36069 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_user" >&6; }
36070 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
36071
36072 cat >>confdefs.h <<_ACEOF
36073 #define HAVE_STRUCT_UTMPX_UT_USER 1
36074 _ACEOF
36075
36076
36077 fi
36078
36079     { echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
36080 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6; }
36081 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
36082   echo $ECHO_N "(cached) $ECHO_C" >&6
36083 else
36084   cat >conftest.$ac_ext <<_ACEOF
36085 /* confdefs.h.  */
36086 _ACEOF
36087 cat confdefs.h >>conftest.$ac_ext
36088 cat >>conftest.$ac_ext <<_ACEOF
36089 /* end confdefs.h.  */
36090 $utmp_includes
36091
36092 int
36093 main ()
36094 {
36095 static struct utmp ac_aggr;
36096 if (ac_aggr.ut_user)
36097 return 0;
36098   ;
36099   return 0;
36100 }
36101 _ACEOF
36102 rm -f conftest.$ac_objext
36103 if { (ac_try="$ac_compile"
36104 case "(($ac_try" in
36105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36106   *) ac_try_echo=$ac_try;;
36107 esac
36108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36109   (eval "$ac_compile") 2>conftest.er1
36110   ac_status=$?
36111   grep -v '^ *+' conftest.er1 >conftest.err
36112   rm -f conftest.er1
36113   cat conftest.err >&5
36114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36115   (exit $ac_status); } &&
36116          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36117   { (case "(($ac_try" in
36118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36119   *) ac_try_echo=$ac_try;;
36120 esac
36121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36122   (eval "$ac_try") 2>&5
36123   ac_status=$?
36124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36125   (exit $ac_status); }; } &&
36126          { ac_try='test -s conftest.$ac_objext'
36127   { (case "(($ac_try" in
36128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36129   *) ac_try_echo=$ac_try;;
36130 esac
36131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36132   (eval "$ac_try") 2>&5
36133   ac_status=$?
36134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36135   (exit $ac_status); }; }; then
36136   ac_cv_member_struct_utmp_ut_user=yes
36137 else
36138   echo "$as_me: failed program was:" >&5
36139 sed 's/^/| /' conftest.$ac_ext >&5
36140
36141         cat >conftest.$ac_ext <<_ACEOF
36142 /* confdefs.h.  */
36143 _ACEOF
36144 cat confdefs.h >>conftest.$ac_ext
36145 cat >>conftest.$ac_ext <<_ACEOF
36146 /* end confdefs.h.  */
36147 $utmp_includes
36148
36149 int
36150 main ()
36151 {
36152 static struct utmp ac_aggr;
36153 if (sizeof ac_aggr.ut_user)
36154 return 0;
36155   ;
36156   return 0;
36157 }
36158 _ACEOF
36159 rm -f conftest.$ac_objext
36160 if { (ac_try="$ac_compile"
36161 case "(($ac_try" in
36162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36163   *) ac_try_echo=$ac_try;;
36164 esac
36165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36166   (eval "$ac_compile") 2>conftest.er1
36167   ac_status=$?
36168   grep -v '^ *+' conftest.er1 >conftest.err
36169   rm -f conftest.er1
36170   cat conftest.err >&5
36171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36172   (exit $ac_status); } &&
36173          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36174   { (case "(($ac_try" in
36175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36176   *) ac_try_echo=$ac_try;;
36177 esac
36178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36179   (eval "$ac_try") 2>&5
36180   ac_status=$?
36181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36182   (exit $ac_status); }; } &&
36183          { ac_try='test -s conftest.$ac_objext'
36184   { (case "(($ac_try" in
36185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36186   *) ac_try_echo=$ac_try;;
36187 esac
36188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36189   (eval "$ac_try") 2>&5
36190   ac_status=$?
36191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36192   (exit $ac_status); }; }; then
36193   ac_cv_member_struct_utmp_ut_user=yes
36194 else
36195   echo "$as_me: failed program was:" >&5
36196 sed 's/^/| /' conftest.$ac_ext >&5
36197
36198         ac_cv_member_struct_utmp_ut_user=no
36199 fi
36200
36201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36202 fi
36203
36204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36205 fi
36206 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
36207 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6; }
36208 if test $ac_cv_member_struct_utmp_ut_user = yes; then
36209
36210 cat >>confdefs.h <<_ACEOF
36211 #define HAVE_STRUCT_UTMP_UT_USER 1
36212 _ACEOF
36213
36214
36215 fi
36216
36217     { echo "$as_me:$LINENO: checking for struct utmpx.ut_name" >&5
36218 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" >&6; }
36219 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
36220   echo $ECHO_N "(cached) $ECHO_C" >&6
36221 else
36222   cat >conftest.$ac_ext <<_ACEOF
36223 /* confdefs.h.  */
36224 _ACEOF
36225 cat confdefs.h >>conftest.$ac_ext
36226 cat >>conftest.$ac_ext <<_ACEOF
36227 /* end confdefs.h.  */
36228 $utmp_includes
36229
36230 int
36231 main ()
36232 {
36233 static struct utmpx ac_aggr;
36234 if (ac_aggr.ut_name)
36235 return 0;
36236   ;
36237   return 0;
36238 }
36239 _ACEOF
36240 rm -f conftest.$ac_objext
36241 if { (ac_try="$ac_compile"
36242 case "(($ac_try" in
36243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36244   *) ac_try_echo=$ac_try;;
36245 esac
36246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36247   (eval "$ac_compile") 2>conftest.er1
36248   ac_status=$?
36249   grep -v '^ *+' conftest.er1 >conftest.err
36250   rm -f conftest.er1
36251   cat conftest.err >&5
36252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36253   (exit $ac_status); } &&
36254          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36255   { (case "(($ac_try" in
36256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36257   *) ac_try_echo=$ac_try;;
36258 esac
36259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36260   (eval "$ac_try") 2>&5
36261   ac_status=$?
36262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36263   (exit $ac_status); }; } &&
36264          { ac_try='test -s conftest.$ac_objext'
36265   { (case "(($ac_try" in
36266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36267   *) ac_try_echo=$ac_try;;
36268 esac
36269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36270   (eval "$ac_try") 2>&5
36271   ac_status=$?
36272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36273   (exit $ac_status); }; }; then
36274   ac_cv_member_struct_utmpx_ut_name=yes
36275 else
36276   echo "$as_me: failed program was:" >&5
36277 sed 's/^/| /' conftest.$ac_ext >&5
36278
36279         cat >conftest.$ac_ext <<_ACEOF
36280 /* confdefs.h.  */
36281 _ACEOF
36282 cat confdefs.h >>conftest.$ac_ext
36283 cat >>conftest.$ac_ext <<_ACEOF
36284 /* end confdefs.h.  */
36285 $utmp_includes
36286
36287 int
36288 main ()
36289 {
36290 static struct utmpx ac_aggr;
36291 if (sizeof ac_aggr.ut_name)
36292 return 0;
36293   ;
36294   return 0;
36295 }
36296 _ACEOF
36297 rm -f conftest.$ac_objext
36298 if { (ac_try="$ac_compile"
36299 case "(($ac_try" in
36300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36301   *) ac_try_echo=$ac_try;;
36302 esac
36303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36304   (eval "$ac_compile") 2>conftest.er1
36305   ac_status=$?
36306   grep -v '^ *+' conftest.er1 >conftest.err
36307   rm -f conftest.er1
36308   cat conftest.err >&5
36309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36310   (exit $ac_status); } &&
36311          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36312   { (case "(($ac_try" in
36313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36314   *) ac_try_echo=$ac_try;;
36315 esac
36316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36317   (eval "$ac_try") 2>&5
36318   ac_status=$?
36319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36320   (exit $ac_status); }; } &&
36321          { ac_try='test -s conftest.$ac_objext'
36322   { (case "(($ac_try" in
36323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36324   *) ac_try_echo=$ac_try;;
36325 esac
36326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36327   (eval "$ac_try") 2>&5
36328   ac_status=$?
36329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36330   (exit $ac_status); }; }; then
36331   ac_cv_member_struct_utmpx_ut_name=yes
36332 else
36333   echo "$as_me: failed program was:" >&5
36334 sed 's/^/| /' conftest.$ac_ext >&5
36335
36336         ac_cv_member_struct_utmpx_ut_name=no
36337 fi
36338
36339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36340 fi
36341
36342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36343 fi
36344 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_name" >&5
36345 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_name" >&6; }
36346 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
36347
36348 cat >>confdefs.h <<_ACEOF
36349 #define HAVE_STRUCT_UTMPX_UT_NAME 1
36350 _ACEOF
36351
36352
36353 fi
36354
36355     { echo "$as_me:$LINENO: checking for struct utmp.ut_name" >&5
36356 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" >&6; }
36357 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
36358   echo $ECHO_N "(cached) $ECHO_C" >&6
36359 else
36360   cat >conftest.$ac_ext <<_ACEOF
36361 /* confdefs.h.  */
36362 _ACEOF
36363 cat confdefs.h >>conftest.$ac_ext
36364 cat >>conftest.$ac_ext <<_ACEOF
36365 /* end confdefs.h.  */
36366 $utmp_includes
36367
36368 int
36369 main ()
36370 {
36371 static struct utmp ac_aggr;
36372 if (ac_aggr.ut_name)
36373 return 0;
36374   ;
36375   return 0;
36376 }
36377 _ACEOF
36378 rm -f conftest.$ac_objext
36379 if { (ac_try="$ac_compile"
36380 case "(($ac_try" in
36381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36382   *) ac_try_echo=$ac_try;;
36383 esac
36384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36385   (eval "$ac_compile") 2>conftest.er1
36386   ac_status=$?
36387   grep -v '^ *+' conftest.er1 >conftest.err
36388   rm -f conftest.er1
36389   cat conftest.err >&5
36390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36391   (exit $ac_status); } &&
36392          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36393   { (case "(($ac_try" in
36394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36395   *) ac_try_echo=$ac_try;;
36396 esac
36397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36398   (eval "$ac_try") 2>&5
36399   ac_status=$?
36400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36401   (exit $ac_status); }; } &&
36402          { ac_try='test -s conftest.$ac_objext'
36403   { (case "(($ac_try" in
36404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36405   *) ac_try_echo=$ac_try;;
36406 esac
36407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36408   (eval "$ac_try") 2>&5
36409   ac_status=$?
36410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36411   (exit $ac_status); }; }; then
36412   ac_cv_member_struct_utmp_ut_name=yes
36413 else
36414   echo "$as_me: failed program was:" >&5
36415 sed 's/^/| /' conftest.$ac_ext >&5
36416
36417         cat >conftest.$ac_ext <<_ACEOF
36418 /* confdefs.h.  */
36419 _ACEOF
36420 cat confdefs.h >>conftest.$ac_ext
36421 cat >>conftest.$ac_ext <<_ACEOF
36422 /* end confdefs.h.  */
36423 $utmp_includes
36424
36425 int
36426 main ()
36427 {
36428 static struct utmp ac_aggr;
36429 if (sizeof ac_aggr.ut_name)
36430 return 0;
36431   ;
36432   return 0;
36433 }
36434 _ACEOF
36435 rm -f conftest.$ac_objext
36436 if { (ac_try="$ac_compile"
36437 case "(($ac_try" in
36438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36439   *) ac_try_echo=$ac_try;;
36440 esac
36441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36442   (eval "$ac_compile") 2>conftest.er1
36443   ac_status=$?
36444   grep -v '^ *+' conftest.er1 >conftest.err
36445   rm -f conftest.er1
36446   cat conftest.err >&5
36447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36448   (exit $ac_status); } &&
36449          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36450   { (case "(($ac_try" in
36451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36452   *) ac_try_echo=$ac_try;;
36453 esac
36454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36455   (eval "$ac_try") 2>&5
36456   ac_status=$?
36457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36458   (exit $ac_status); }; } &&
36459          { ac_try='test -s conftest.$ac_objext'
36460   { (case "(($ac_try" in
36461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36462   *) ac_try_echo=$ac_try;;
36463 esac
36464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36465   (eval "$ac_try") 2>&5
36466   ac_status=$?
36467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36468   (exit $ac_status); }; }; then
36469   ac_cv_member_struct_utmp_ut_name=yes
36470 else
36471   echo "$as_me: failed program was:" >&5
36472 sed 's/^/| /' conftest.$ac_ext >&5
36473
36474         ac_cv_member_struct_utmp_ut_name=no
36475 fi
36476
36477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36478 fi
36479
36480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36481 fi
36482 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_name" >&5
36483 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_name" >&6; }
36484 if test $ac_cv_member_struct_utmp_ut_name = yes; then
36485
36486 cat >>confdefs.h <<_ACEOF
36487 #define HAVE_STRUCT_UTMP_UT_NAME 1
36488 _ACEOF
36489
36490
36491 fi
36492
36493     { echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5
36494 echo $ECHO_N "checking for struct utmpx.ut_type... $ECHO_C" >&6; }
36495 if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then
36496   echo $ECHO_N "(cached) $ECHO_C" >&6
36497 else
36498   cat >conftest.$ac_ext <<_ACEOF
36499 /* confdefs.h.  */
36500 _ACEOF
36501 cat confdefs.h >>conftest.$ac_ext
36502 cat >>conftest.$ac_ext <<_ACEOF
36503 /* end confdefs.h.  */
36504 $utmp_includes
36505
36506 int
36507 main ()
36508 {
36509 static struct utmpx ac_aggr;
36510 if (ac_aggr.ut_type)
36511 return 0;
36512   ;
36513   return 0;
36514 }
36515 _ACEOF
36516 rm -f conftest.$ac_objext
36517 if { (ac_try="$ac_compile"
36518 case "(($ac_try" in
36519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36520   *) ac_try_echo=$ac_try;;
36521 esac
36522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36523   (eval "$ac_compile") 2>conftest.er1
36524   ac_status=$?
36525   grep -v '^ *+' conftest.er1 >conftest.err
36526   rm -f conftest.er1
36527   cat conftest.err >&5
36528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36529   (exit $ac_status); } &&
36530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36531   { (case "(($ac_try" in
36532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36533   *) ac_try_echo=$ac_try;;
36534 esac
36535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36536   (eval "$ac_try") 2>&5
36537   ac_status=$?
36538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36539   (exit $ac_status); }; } &&
36540          { ac_try='test -s conftest.$ac_objext'
36541   { (case "(($ac_try" in
36542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36543   *) ac_try_echo=$ac_try;;
36544 esac
36545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36546   (eval "$ac_try") 2>&5
36547   ac_status=$?
36548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36549   (exit $ac_status); }; }; then
36550   ac_cv_member_struct_utmpx_ut_type=yes
36551 else
36552   echo "$as_me: failed program was:" >&5
36553 sed 's/^/| /' conftest.$ac_ext >&5
36554
36555         cat >conftest.$ac_ext <<_ACEOF
36556 /* confdefs.h.  */
36557 _ACEOF
36558 cat confdefs.h >>conftest.$ac_ext
36559 cat >>conftest.$ac_ext <<_ACEOF
36560 /* end confdefs.h.  */
36561 $utmp_includes
36562
36563 int
36564 main ()
36565 {
36566 static struct utmpx ac_aggr;
36567 if (sizeof ac_aggr.ut_type)
36568 return 0;
36569   ;
36570   return 0;
36571 }
36572 _ACEOF
36573 rm -f conftest.$ac_objext
36574 if { (ac_try="$ac_compile"
36575 case "(($ac_try" in
36576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36577   *) ac_try_echo=$ac_try;;
36578 esac
36579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36580   (eval "$ac_compile") 2>conftest.er1
36581   ac_status=$?
36582   grep -v '^ *+' conftest.er1 >conftest.err
36583   rm -f conftest.er1
36584   cat conftest.err >&5
36585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36586   (exit $ac_status); } &&
36587          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36588   { (case "(($ac_try" in
36589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36590   *) ac_try_echo=$ac_try;;
36591 esac
36592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36593   (eval "$ac_try") 2>&5
36594   ac_status=$?
36595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36596   (exit $ac_status); }; } &&
36597          { ac_try='test -s conftest.$ac_objext'
36598   { (case "(($ac_try" in
36599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36600   *) ac_try_echo=$ac_try;;
36601 esac
36602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36603   (eval "$ac_try") 2>&5
36604   ac_status=$?
36605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36606   (exit $ac_status); }; }; then
36607   ac_cv_member_struct_utmpx_ut_type=yes
36608 else
36609   echo "$as_me: failed program was:" >&5
36610 sed 's/^/| /' conftest.$ac_ext >&5
36611
36612         ac_cv_member_struct_utmpx_ut_type=no
36613 fi
36614
36615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36616 fi
36617
36618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36619 fi
36620 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5
36621 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_type" >&6; }
36622 if test $ac_cv_member_struct_utmpx_ut_type = yes; then
36623
36624 cat >>confdefs.h <<_ACEOF
36625 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
36626 _ACEOF
36627
36628
36629 fi
36630
36631     { echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5
36632 echo $ECHO_N "checking for struct utmp.ut_type... $ECHO_C" >&6; }
36633 if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then
36634   echo $ECHO_N "(cached) $ECHO_C" >&6
36635 else
36636   cat >conftest.$ac_ext <<_ACEOF
36637 /* confdefs.h.  */
36638 _ACEOF
36639 cat confdefs.h >>conftest.$ac_ext
36640 cat >>conftest.$ac_ext <<_ACEOF
36641 /* end confdefs.h.  */
36642 $utmp_includes
36643
36644 int
36645 main ()
36646 {
36647 static struct utmp ac_aggr;
36648 if (ac_aggr.ut_type)
36649 return 0;
36650   ;
36651   return 0;
36652 }
36653 _ACEOF
36654 rm -f conftest.$ac_objext
36655 if { (ac_try="$ac_compile"
36656 case "(($ac_try" in
36657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36658   *) ac_try_echo=$ac_try;;
36659 esac
36660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36661   (eval "$ac_compile") 2>conftest.er1
36662   ac_status=$?
36663   grep -v '^ *+' conftest.er1 >conftest.err
36664   rm -f conftest.er1
36665   cat conftest.err >&5
36666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36667   (exit $ac_status); } &&
36668          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36669   { (case "(($ac_try" in
36670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36671   *) ac_try_echo=$ac_try;;
36672 esac
36673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36674   (eval "$ac_try") 2>&5
36675   ac_status=$?
36676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36677   (exit $ac_status); }; } &&
36678          { ac_try='test -s conftest.$ac_objext'
36679   { (case "(($ac_try" in
36680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36681   *) ac_try_echo=$ac_try;;
36682 esac
36683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36684   (eval "$ac_try") 2>&5
36685   ac_status=$?
36686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36687   (exit $ac_status); }; }; then
36688   ac_cv_member_struct_utmp_ut_type=yes
36689 else
36690   echo "$as_me: failed program was:" >&5
36691 sed 's/^/| /' conftest.$ac_ext >&5
36692
36693         cat >conftest.$ac_ext <<_ACEOF
36694 /* confdefs.h.  */
36695 _ACEOF
36696 cat confdefs.h >>conftest.$ac_ext
36697 cat >>conftest.$ac_ext <<_ACEOF
36698 /* end confdefs.h.  */
36699 $utmp_includes
36700
36701 int
36702 main ()
36703 {
36704 static struct utmp ac_aggr;
36705 if (sizeof ac_aggr.ut_type)
36706 return 0;
36707   ;
36708   return 0;
36709 }
36710 _ACEOF
36711 rm -f conftest.$ac_objext
36712 if { (ac_try="$ac_compile"
36713 case "(($ac_try" in
36714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36715   *) ac_try_echo=$ac_try;;
36716 esac
36717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36718   (eval "$ac_compile") 2>conftest.er1
36719   ac_status=$?
36720   grep -v '^ *+' conftest.er1 >conftest.err
36721   rm -f conftest.er1
36722   cat conftest.err >&5
36723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36724   (exit $ac_status); } &&
36725          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36726   { (case "(($ac_try" in
36727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36728   *) ac_try_echo=$ac_try;;
36729 esac
36730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36731   (eval "$ac_try") 2>&5
36732   ac_status=$?
36733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36734   (exit $ac_status); }; } &&
36735          { ac_try='test -s conftest.$ac_objext'
36736   { (case "(($ac_try" in
36737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36738   *) ac_try_echo=$ac_try;;
36739 esac
36740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36741   (eval "$ac_try") 2>&5
36742   ac_status=$?
36743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36744   (exit $ac_status); }; }; then
36745   ac_cv_member_struct_utmp_ut_type=yes
36746 else
36747   echo "$as_me: failed program was:" >&5
36748 sed 's/^/| /' conftest.$ac_ext >&5
36749
36750         ac_cv_member_struct_utmp_ut_type=no
36751 fi
36752
36753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36754 fi
36755
36756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36757 fi
36758 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5
36759 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_type" >&6; }
36760 if test $ac_cv_member_struct_utmp_ut_type = yes; then
36761
36762 cat >>confdefs.h <<_ACEOF
36763 #define HAVE_STRUCT_UTMP_UT_TYPE 1
36764 _ACEOF
36765
36766
36767 fi
36768
36769     { echo "$as_me:$LINENO: checking for struct utmpx.ut_pid" >&5
36770 echo $ECHO_N "checking for struct utmpx.ut_pid... $ECHO_C" >&6; }
36771 if test "${ac_cv_member_struct_utmpx_ut_pid+set}" = set; then
36772   echo $ECHO_N "(cached) $ECHO_C" >&6
36773 else
36774   cat >conftest.$ac_ext <<_ACEOF
36775 /* confdefs.h.  */
36776 _ACEOF
36777 cat confdefs.h >>conftest.$ac_ext
36778 cat >>conftest.$ac_ext <<_ACEOF
36779 /* end confdefs.h.  */
36780 $utmp_includes
36781
36782 int
36783 main ()
36784 {
36785 static struct utmpx ac_aggr;
36786 if (ac_aggr.ut_pid)
36787 return 0;
36788   ;
36789   return 0;
36790 }
36791 _ACEOF
36792 rm -f conftest.$ac_objext
36793 if { (ac_try="$ac_compile"
36794 case "(($ac_try" in
36795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36796   *) ac_try_echo=$ac_try;;
36797 esac
36798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36799   (eval "$ac_compile") 2>conftest.er1
36800   ac_status=$?
36801   grep -v '^ *+' conftest.er1 >conftest.err
36802   rm -f conftest.er1
36803   cat conftest.err >&5
36804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36805   (exit $ac_status); } &&
36806          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36807   { (case "(($ac_try" in
36808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36809   *) ac_try_echo=$ac_try;;
36810 esac
36811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36812   (eval "$ac_try") 2>&5
36813   ac_status=$?
36814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36815   (exit $ac_status); }; } &&
36816          { ac_try='test -s conftest.$ac_objext'
36817   { (case "(($ac_try" in
36818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36819   *) ac_try_echo=$ac_try;;
36820 esac
36821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36822   (eval "$ac_try") 2>&5
36823   ac_status=$?
36824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36825   (exit $ac_status); }; }; then
36826   ac_cv_member_struct_utmpx_ut_pid=yes
36827 else
36828   echo "$as_me: failed program was:" >&5
36829 sed 's/^/| /' conftest.$ac_ext >&5
36830
36831         cat >conftest.$ac_ext <<_ACEOF
36832 /* confdefs.h.  */
36833 _ACEOF
36834 cat confdefs.h >>conftest.$ac_ext
36835 cat >>conftest.$ac_ext <<_ACEOF
36836 /* end confdefs.h.  */
36837 $utmp_includes
36838
36839 int
36840 main ()
36841 {
36842 static struct utmpx ac_aggr;
36843 if (sizeof ac_aggr.ut_pid)
36844 return 0;
36845   ;
36846   return 0;
36847 }
36848 _ACEOF
36849 rm -f conftest.$ac_objext
36850 if { (ac_try="$ac_compile"
36851 case "(($ac_try" in
36852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36853   *) ac_try_echo=$ac_try;;
36854 esac
36855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36856   (eval "$ac_compile") 2>conftest.er1
36857   ac_status=$?
36858   grep -v '^ *+' conftest.er1 >conftest.err
36859   rm -f conftest.er1
36860   cat conftest.err >&5
36861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36862   (exit $ac_status); } &&
36863          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36864   { (case "(($ac_try" in
36865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36866   *) ac_try_echo=$ac_try;;
36867 esac
36868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36869   (eval "$ac_try") 2>&5
36870   ac_status=$?
36871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36872   (exit $ac_status); }; } &&
36873          { ac_try='test -s conftest.$ac_objext'
36874   { (case "(($ac_try" in
36875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36876   *) ac_try_echo=$ac_try;;
36877 esac
36878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36879   (eval "$ac_try") 2>&5
36880   ac_status=$?
36881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36882   (exit $ac_status); }; }; then
36883   ac_cv_member_struct_utmpx_ut_pid=yes
36884 else
36885   echo "$as_me: failed program was:" >&5
36886 sed 's/^/| /' conftest.$ac_ext >&5
36887
36888         ac_cv_member_struct_utmpx_ut_pid=no
36889 fi
36890
36891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36892 fi
36893
36894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36895 fi
36896 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_pid" >&5
36897 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_pid" >&6; }
36898 if test $ac_cv_member_struct_utmpx_ut_pid = yes; then
36899
36900 cat >>confdefs.h <<_ACEOF
36901 #define HAVE_STRUCT_UTMPX_UT_PID 1
36902 _ACEOF
36903
36904
36905 fi
36906
36907     { echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5
36908 echo $ECHO_N "checking for struct utmp.ut_pid... $ECHO_C" >&6; }
36909 if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then
36910   echo $ECHO_N "(cached) $ECHO_C" >&6
36911 else
36912   cat >conftest.$ac_ext <<_ACEOF
36913 /* confdefs.h.  */
36914 _ACEOF
36915 cat confdefs.h >>conftest.$ac_ext
36916 cat >>conftest.$ac_ext <<_ACEOF
36917 /* end confdefs.h.  */
36918 $utmp_includes
36919
36920 int
36921 main ()
36922 {
36923 static struct utmp ac_aggr;
36924 if (ac_aggr.ut_pid)
36925 return 0;
36926   ;
36927   return 0;
36928 }
36929 _ACEOF
36930 rm -f conftest.$ac_objext
36931 if { (ac_try="$ac_compile"
36932 case "(($ac_try" in
36933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36934   *) ac_try_echo=$ac_try;;
36935 esac
36936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36937   (eval "$ac_compile") 2>conftest.er1
36938   ac_status=$?
36939   grep -v '^ *+' conftest.er1 >conftest.err
36940   rm -f conftest.er1
36941   cat conftest.err >&5
36942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36943   (exit $ac_status); } &&
36944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36945   { (case "(($ac_try" in
36946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36947   *) ac_try_echo=$ac_try;;
36948 esac
36949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36950   (eval "$ac_try") 2>&5
36951   ac_status=$?
36952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36953   (exit $ac_status); }; } &&
36954          { ac_try='test -s conftest.$ac_objext'
36955   { (case "(($ac_try" in
36956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36957   *) ac_try_echo=$ac_try;;
36958 esac
36959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36960   (eval "$ac_try") 2>&5
36961   ac_status=$?
36962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36963   (exit $ac_status); }; }; then
36964   ac_cv_member_struct_utmp_ut_pid=yes
36965 else
36966   echo "$as_me: failed program was:" >&5
36967 sed 's/^/| /' conftest.$ac_ext >&5
36968
36969         cat >conftest.$ac_ext <<_ACEOF
36970 /* confdefs.h.  */
36971 _ACEOF
36972 cat confdefs.h >>conftest.$ac_ext
36973 cat >>conftest.$ac_ext <<_ACEOF
36974 /* end confdefs.h.  */
36975 $utmp_includes
36976
36977 int
36978 main ()
36979 {
36980 static struct utmp ac_aggr;
36981 if (sizeof ac_aggr.ut_pid)
36982 return 0;
36983   ;
36984   return 0;
36985 }
36986 _ACEOF
36987 rm -f conftest.$ac_objext
36988 if { (ac_try="$ac_compile"
36989 case "(($ac_try" in
36990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36991   *) ac_try_echo=$ac_try;;
36992 esac
36993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36994   (eval "$ac_compile") 2>conftest.er1
36995   ac_status=$?
36996   grep -v '^ *+' conftest.er1 >conftest.err
36997   rm -f conftest.er1
36998   cat conftest.err >&5
36999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37000   (exit $ac_status); } &&
37001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37002   { (case "(($ac_try" in
37003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37004   *) ac_try_echo=$ac_try;;
37005 esac
37006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37007   (eval "$ac_try") 2>&5
37008   ac_status=$?
37009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37010   (exit $ac_status); }; } &&
37011          { ac_try='test -s conftest.$ac_objext'
37012   { (case "(($ac_try" in
37013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37014   *) ac_try_echo=$ac_try;;
37015 esac
37016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37017   (eval "$ac_try") 2>&5
37018   ac_status=$?
37019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37020   (exit $ac_status); }; }; then
37021   ac_cv_member_struct_utmp_ut_pid=yes
37022 else
37023   echo "$as_me: failed program was:" >&5
37024 sed 's/^/| /' conftest.$ac_ext >&5
37025
37026         ac_cv_member_struct_utmp_ut_pid=no
37027 fi
37028
37029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37030 fi
37031
37032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37033 fi
37034 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5
37035 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_pid" >&6; }
37036 if test $ac_cv_member_struct_utmp_ut_pid = yes; then
37037
37038 cat >>confdefs.h <<_ACEOF
37039 #define HAVE_STRUCT_UTMP_UT_PID 1
37040 _ACEOF
37041
37042
37043 fi
37044
37045     { echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5
37046 echo $ECHO_N "checking for struct utmpx.ut_id... $ECHO_C" >&6; }
37047 if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then
37048   echo $ECHO_N "(cached) $ECHO_C" >&6
37049 else
37050   cat >conftest.$ac_ext <<_ACEOF
37051 /* confdefs.h.  */
37052 _ACEOF
37053 cat confdefs.h >>conftest.$ac_ext
37054 cat >>conftest.$ac_ext <<_ACEOF
37055 /* end confdefs.h.  */
37056 $utmp_includes
37057
37058 int
37059 main ()
37060 {
37061 static struct utmpx ac_aggr;
37062 if (ac_aggr.ut_id)
37063 return 0;
37064   ;
37065   return 0;
37066 }
37067 _ACEOF
37068 rm -f conftest.$ac_objext
37069 if { (ac_try="$ac_compile"
37070 case "(($ac_try" in
37071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37072   *) ac_try_echo=$ac_try;;
37073 esac
37074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37075   (eval "$ac_compile") 2>conftest.er1
37076   ac_status=$?
37077   grep -v '^ *+' conftest.er1 >conftest.err
37078   rm -f conftest.er1
37079   cat conftest.err >&5
37080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37081   (exit $ac_status); } &&
37082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37083   { (case "(($ac_try" in
37084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37085   *) ac_try_echo=$ac_try;;
37086 esac
37087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37088   (eval "$ac_try") 2>&5
37089   ac_status=$?
37090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37091   (exit $ac_status); }; } &&
37092          { ac_try='test -s conftest.$ac_objext'
37093   { (case "(($ac_try" in
37094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37095   *) ac_try_echo=$ac_try;;
37096 esac
37097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37098   (eval "$ac_try") 2>&5
37099   ac_status=$?
37100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37101   (exit $ac_status); }; }; then
37102   ac_cv_member_struct_utmpx_ut_id=yes
37103 else
37104   echo "$as_me: failed program was:" >&5
37105 sed 's/^/| /' conftest.$ac_ext >&5
37106
37107         cat >conftest.$ac_ext <<_ACEOF
37108 /* confdefs.h.  */
37109 _ACEOF
37110 cat confdefs.h >>conftest.$ac_ext
37111 cat >>conftest.$ac_ext <<_ACEOF
37112 /* end confdefs.h.  */
37113 $utmp_includes
37114
37115 int
37116 main ()
37117 {
37118 static struct utmpx ac_aggr;
37119 if (sizeof ac_aggr.ut_id)
37120 return 0;
37121   ;
37122   return 0;
37123 }
37124 _ACEOF
37125 rm -f conftest.$ac_objext
37126 if { (ac_try="$ac_compile"
37127 case "(($ac_try" in
37128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37129   *) ac_try_echo=$ac_try;;
37130 esac
37131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37132   (eval "$ac_compile") 2>conftest.er1
37133   ac_status=$?
37134   grep -v '^ *+' conftest.er1 >conftest.err
37135   rm -f conftest.er1
37136   cat conftest.err >&5
37137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37138   (exit $ac_status); } &&
37139          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37140   { (case "(($ac_try" in
37141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37142   *) ac_try_echo=$ac_try;;
37143 esac
37144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37145   (eval "$ac_try") 2>&5
37146   ac_status=$?
37147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37148   (exit $ac_status); }; } &&
37149          { ac_try='test -s conftest.$ac_objext'
37150   { (case "(($ac_try" in
37151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37152   *) ac_try_echo=$ac_try;;
37153 esac
37154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37155   (eval "$ac_try") 2>&5
37156   ac_status=$?
37157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37158   (exit $ac_status); }; }; then
37159   ac_cv_member_struct_utmpx_ut_id=yes
37160 else
37161   echo "$as_me: failed program was:" >&5
37162 sed 's/^/| /' conftest.$ac_ext >&5
37163
37164         ac_cv_member_struct_utmpx_ut_id=no
37165 fi
37166
37167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37168 fi
37169
37170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37171 fi
37172 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5
37173 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_id" >&6; }
37174 if test $ac_cv_member_struct_utmpx_ut_id = yes; then
37175
37176 cat >>confdefs.h <<_ACEOF
37177 #define HAVE_STRUCT_UTMPX_UT_ID 1
37178 _ACEOF
37179
37180
37181 fi
37182
37183     { echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5
37184 echo $ECHO_N "checking for struct utmp.ut_id... $ECHO_C" >&6; }
37185 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then
37186   echo $ECHO_N "(cached) $ECHO_C" >&6
37187 else
37188   cat >conftest.$ac_ext <<_ACEOF
37189 /* confdefs.h.  */
37190 _ACEOF
37191 cat confdefs.h >>conftest.$ac_ext
37192 cat >>conftest.$ac_ext <<_ACEOF
37193 /* end confdefs.h.  */
37194 $utmp_includes
37195
37196 int
37197 main ()
37198 {
37199 static struct utmp ac_aggr;
37200 if (ac_aggr.ut_id)
37201 return 0;
37202   ;
37203   return 0;
37204 }
37205 _ACEOF
37206 rm -f conftest.$ac_objext
37207 if { (ac_try="$ac_compile"
37208 case "(($ac_try" in
37209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37210   *) ac_try_echo=$ac_try;;
37211 esac
37212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37213   (eval "$ac_compile") 2>conftest.er1
37214   ac_status=$?
37215   grep -v '^ *+' conftest.er1 >conftest.err
37216   rm -f conftest.er1
37217   cat conftest.err >&5
37218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37219   (exit $ac_status); } &&
37220          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37221   { (case "(($ac_try" in
37222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37223   *) ac_try_echo=$ac_try;;
37224 esac
37225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37226   (eval "$ac_try") 2>&5
37227   ac_status=$?
37228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37229   (exit $ac_status); }; } &&
37230          { ac_try='test -s conftest.$ac_objext'
37231   { (case "(($ac_try" in
37232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37233   *) ac_try_echo=$ac_try;;
37234 esac
37235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37236   (eval "$ac_try") 2>&5
37237   ac_status=$?
37238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37239   (exit $ac_status); }; }; then
37240   ac_cv_member_struct_utmp_ut_id=yes
37241 else
37242   echo "$as_me: failed program was:" >&5
37243 sed 's/^/| /' conftest.$ac_ext >&5
37244
37245         cat >conftest.$ac_ext <<_ACEOF
37246 /* confdefs.h.  */
37247 _ACEOF
37248 cat confdefs.h >>conftest.$ac_ext
37249 cat >>conftest.$ac_ext <<_ACEOF
37250 /* end confdefs.h.  */
37251 $utmp_includes
37252
37253 int
37254 main ()
37255 {
37256 static struct utmp ac_aggr;
37257 if (sizeof ac_aggr.ut_id)
37258 return 0;
37259   ;
37260   return 0;
37261 }
37262 _ACEOF
37263 rm -f conftest.$ac_objext
37264 if { (ac_try="$ac_compile"
37265 case "(($ac_try" in
37266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37267   *) ac_try_echo=$ac_try;;
37268 esac
37269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37270   (eval "$ac_compile") 2>conftest.er1
37271   ac_status=$?
37272   grep -v '^ *+' conftest.er1 >conftest.err
37273   rm -f conftest.er1
37274   cat conftest.err >&5
37275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37276   (exit $ac_status); } &&
37277          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37278   { (case "(($ac_try" in
37279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37280   *) ac_try_echo=$ac_try;;
37281 esac
37282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37283   (eval "$ac_try") 2>&5
37284   ac_status=$?
37285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37286   (exit $ac_status); }; } &&
37287          { ac_try='test -s conftest.$ac_objext'
37288   { (case "(($ac_try" in
37289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37290   *) ac_try_echo=$ac_try;;
37291 esac
37292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37293   (eval "$ac_try") 2>&5
37294   ac_status=$?
37295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37296   (exit $ac_status); }; }; then
37297   ac_cv_member_struct_utmp_ut_id=yes
37298 else
37299   echo "$as_me: failed program was:" >&5
37300 sed 's/^/| /' conftest.$ac_ext >&5
37301
37302         ac_cv_member_struct_utmp_ut_id=no
37303 fi
37304
37305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37306 fi
37307
37308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37309 fi
37310 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5
37311 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_id" >&6; }
37312 if test $ac_cv_member_struct_utmp_ut_id = yes; then
37313
37314 cat >>confdefs.h <<_ACEOF
37315 #define HAVE_STRUCT_UTMP_UT_ID 1
37316 _ACEOF
37317
37318
37319 fi
37320
37321     { echo "$as_me:$LINENO: checking for struct utmpx.ut_exit" >&5
37322 echo $ECHO_N "checking for struct utmpx.ut_exit... $ECHO_C" >&6; }
37323 if test "${ac_cv_member_struct_utmpx_ut_exit+set}" = set; then
37324   echo $ECHO_N "(cached) $ECHO_C" >&6
37325 else
37326   cat >conftest.$ac_ext <<_ACEOF
37327 /* confdefs.h.  */
37328 _ACEOF
37329 cat confdefs.h >>conftest.$ac_ext
37330 cat >>conftest.$ac_ext <<_ACEOF
37331 /* end confdefs.h.  */
37332 $utmp_includes
37333
37334 int
37335 main ()
37336 {
37337 static struct utmpx ac_aggr;
37338 if (ac_aggr.ut_exit)
37339 return 0;
37340   ;
37341   return 0;
37342 }
37343 _ACEOF
37344 rm -f conftest.$ac_objext
37345 if { (ac_try="$ac_compile"
37346 case "(($ac_try" in
37347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37348   *) ac_try_echo=$ac_try;;
37349 esac
37350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37351   (eval "$ac_compile") 2>conftest.er1
37352   ac_status=$?
37353   grep -v '^ *+' conftest.er1 >conftest.err
37354   rm -f conftest.er1
37355   cat conftest.err >&5
37356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37357   (exit $ac_status); } &&
37358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37359   { (case "(($ac_try" in
37360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37361   *) ac_try_echo=$ac_try;;
37362 esac
37363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37364   (eval "$ac_try") 2>&5
37365   ac_status=$?
37366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37367   (exit $ac_status); }; } &&
37368          { ac_try='test -s conftest.$ac_objext'
37369   { (case "(($ac_try" in
37370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37371   *) ac_try_echo=$ac_try;;
37372 esac
37373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37374   (eval "$ac_try") 2>&5
37375   ac_status=$?
37376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37377   (exit $ac_status); }; }; then
37378   ac_cv_member_struct_utmpx_ut_exit=yes
37379 else
37380   echo "$as_me: failed program was:" >&5
37381 sed 's/^/| /' conftest.$ac_ext >&5
37382
37383         cat >conftest.$ac_ext <<_ACEOF
37384 /* confdefs.h.  */
37385 _ACEOF
37386 cat confdefs.h >>conftest.$ac_ext
37387 cat >>conftest.$ac_ext <<_ACEOF
37388 /* end confdefs.h.  */
37389 $utmp_includes
37390
37391 int
37392 main ()
37393 {
37394 static struct utmpx ac_aggr;
37395 if (sizeof ac_aggr.ut_exit)
37396 return 0;
37397   ;
37398   return 0;
37399 }
37400 _ACEOF
37401 rm -f conftest.$ac_objext
37402 if { (ac_try="$ac_compile"
37403 case "(($ac_try" in
37404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37405   *) ac_try_echo=$ac_try;;
37406 esac
37407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37408   (eval "$ac_compile") 2>conftest.er1
37409   ac_status=$?
37410   grep -v '^ *+' conftest.er1 >conftest.err
37411   rm -f conftest.er1
37412   cat conftest.err >&5
37413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37414   (exit $ac_status); } &&
37415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37416   { (case "(($ac_try" in
37417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37418   *) ac_try_echo=$ac_try;;
37419 esac
37420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37421   (eval "$ac_try") 2>&5
37422   ac_status=$?
37423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37424   (exit $ac_status); }; } &&
37425          { ac_try='test -s conftest.$ac_objext'
37426   { (case "(($ac_try" in
37427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37428   *) ac_try_echo=$ac_try;;
37429 esac
37430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37431   (eval "$ac_try") 2>&5
37432   ac_status=$?
37433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37434   (exit $ac_status); }; }; then
37435   ac_cv_member_struct_utmpx_ut_exit=yes
37436 else
37437   echo "$as_me: failed program was:" >&5
37438 sed 's/^/| /' conftest.$ac_ext >&5
37439
37440         ac_cv_member_struct_utmpx_ut_exit=no
37441 fi
37442
37443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37444 fi
37445
37446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37447 fi
37448 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit" >&5
37449 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit" >&6; }
37450 if test $ac_cv_member_struct_utmpx_ut_exit = yes; then
37451
37452 cat >>confdefs.h <<_ACEOF
37453 #define HAVE_STRUCT_UTMPX_UT_EXIT 1
37454 _ACEOF
37455
37456
37457 fi
37458
37459     { echo "$as_me:$LINENO: checking for struct utmp.ut_exit" >&5
37460 echo $ECHO_N "checking for struct utmp.ut_exit... $ECHO_C" >&6; }
37461 if test "${ac_cv_member_struct_utmp_ut_exit+set}" = set; then
37462   echo $ECHO_N "(cached) $ECHO_C" >&6
37463 else
37464   cat >conftest.$ac_ext <<_ACEOF
37465 /* confdefs.h.  */
37466 _ACEOF
37467 cat confdefs.h >>conftest.$ac_ext
37468 cat >>conftest.$ac_ext <<_ACEOF
37469 /* end confdefs.h.  */
37470 $utmp_includes
37471
37472 int
37473 main ()
37474 {
37475 static struct utmp ac_aggr;
37476 if (ac_aggr.ut_exit)
37477 return 0;
37478   ;
37479   return 0;
37480 }
37481 _ACEOF
37482 rm -f conftest.$ac_objext
37483 if { (ac_try="$ac_compile"
37484 case "(($ac_try" in
37485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37486   *) ac_try_echo=$ac_try;;
37487 esac
37488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37489   (eval "$ac_compile") 2>conftest.er1
37490   ac_status=$?
37491   grep -v '^ *+' conftest.er1 >conftest.err
37492   rm -f conftest.er1
37493   cat conftest.err >&5
37494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37495   (exit $ac_status); } &&
37496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37497   { (case "(($ac_try" in
37498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37499   *) ac_try_echo=$ac_try;;
37500 esac
37501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37502   (eval "$ac_try") 2>&5
37503   ac_status=$?
37504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37505   (exit $ac_status); }; } &&
37506          { ac_try='test -s conftest.$ac_objext'
37507   { (case "(($ac_try" in
37508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37509   *) ac_try_echo=$ac_try;;
37510 esac
37511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37512   (eval "$ac_try") 2>&5
37513   ac_status=$?
37514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37515   (exit $ac_status); }; }; then
37516   ac_cv_member_struct_utmp_ut_exit=yes
37517 else
37518   echo "$as_me: failed program was:" >&5
37519 sed 's/^/| /' conftest.$ac_ext >&5
37520
37521         cat >conftest.$ac_ext <<_ACEOF
37522 /* confdefs.h.  */
37523 _ACEOF
37524 cat confdefs.h >>conftest.$ac_ext
37525 cat >>conftest.$ac_ext <<_ACEOF
37526 /* end confdefs.h.  */
37527 $utmp_includes
37528
37529 int
37530 main ()
37531 {
37532 static struct utmp ac_aggr;
37533 if (sizeof ac_aggr.ut_exit)
37534 return 0;
37535   ;
37536   return 0;
37537 }
37538 _ACEOF
37539 rm -f conftest.$ac_objext
37540 if { (ac_try="$ac_compile"
37541 case "(($ac_try" in
37542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37543   *) ac_try_echo=$ac_try;;
37544 esac
37545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37546   (eval "$ac_compile") 2>conftest.er1
37547   ac_status=$?
37548   grep -v '^ *+' conftest.er1 >conftest.err
37549   rm -f conftest.er1
37550   cat conftest.err >&5
37551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37552   (exit $ac_status); } &&
37553          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37554   { (case "(($ac_try" in
37555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37556   *) ac_try_echo=$ac_try;;
37557 esac
37558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37559   (eval "$ac_try") 2>&5
37560   ac_status=$?
37561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37562   (exit $ac_status); }; } &&
37563          { ac_try='test -s conftest.$ac_objext'
37564   { (case "(($ac_try" in
37565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37566   *) ac_try_echo=$ac_try;;
37567 esac
37568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37569   (eval "$ac_try") 2>&5
37570   ac_status=$?
37571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37572   (exit $ac_status); }; }; then
37573   ac_cv_member_struct_utmp_ut_exit=yes
37574 else
37575   echo "$as_me: failed program was:" >&5
37576 sed 's/^/| /' conftest.$ac_ext >&5
37577
37578         ac_cv_member_struct_utmp_ut_exit=no
37579 fi
37580
37581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37582 fi
37583
37584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37585 fi
37586 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit" >&5
37587 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit" >&6; }
37588 if test $ac_cv_member_struct_utmp_ut_exit = yes; then
37589
37590 cat >>confdefs.h <<_ACEOF
37591 #define HAVE_STRUCT_UTMP_UT_EXIT 1
37592 _ACEOF
37593
37594
37595 fi
37596
37597
37598     { echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_exit" >&5
37599 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_exit... $ECHO_C" >&6; }
37600 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_exit+set}" = set; then
37601   echo $ECHO_N "(cached) $ECHO_C" >&6
37602 else
37603   cat >conftest.$ac_ext <<_ACEOF
37604 /* confdefs.h.  */
37605 _ACEOF
37606 cat confdefs.h >>conftest.$ac_ext
37607 cat >>conftest.$ac_ext <<_ACEOF
37608 /* end confdefs.h.  */
37609 $utmp_includes
37610
37611 int
37612 main ()
37613 {
37614 static struct utmpx ac_aggr;
37615 if (ac_aggr.ut_exit.ut_exit)
37616 return 0;
37617   ;
37618   return 0;
37619 }
37620 _ACEOF
37621 rm -f conftest.$ac_objext
37622 if { (ac_try="$ac_compile"
37623 case "(($ac_try" in
37624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37625   *) ac_try_echo=$ac_try;;
37626 esac
37627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37628   (eval "$ac_compile") 2>conftest.er1
37629   ac_status=$?
37630   grep -v '^ *+' conftest.er1 >conftest.err
37631   rm -f conftest.er1
37632   cat conftest.err >&5
37633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37634   (exit $ac_status); } &&
37635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37636   { (case "(($ac_try" in
37637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37638   *) ac_try_echo=$ac_try;;
37639 esac
37640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37641   (eval "$ac_try") 2>&5
37642   ac_status=$?
37643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37644   (exit $ac_status); }; } &&
37645          { ac_try='test -s conftest.$ac_objext'
37646   { (case "(($ac_try" in
37647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37648   *) ac_try_echo=$ac_try;;
37649 esac
37650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37651   (eval "$ac_try") 2>&5
37652   ac_status=$?
37653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37654   (exit $ac_status); }; }; then
37655   ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
37656 else
37657   echo "$as_me: failed program was:" >&5
37658 sed 's/^/| /' conftest.$ac_ext >&5
37659
37660         cat >conftest.$ac_ext <<_ACEOF
37661 /* confdefs.h.  */
37662 _ACEOF
37663 cat confdefs.h >>conftest.$ac_ext
37664 cat >>conftest.$ac_ext <<_ACEOF
37665 /* end confdefs.h.  */
37666 $utmp_includes
37667
37668 int
37669 main ()
37670 {
37671 static struct utmpx ac_aggr;
37672 if (sizeof ac_aggr.ut_exit.ut_exit)
37673 return 0;
37674   ;
37675   return 0;
37676 }
37677 _ACEOF
37678 rm -f conftest.$ac_objext
37679 if { (ac_try="$ac_compile"
37680 case "(($ac_try" in
37681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37682   *) ac_try_echo=$ac_try;;
37683 esac
37684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37685   (eval "$ac_compile") 2>conftest.er1
37686   ac_status=$?
37687   grep -v '^ *+' conftest.er1 >conftest.err
37688   rm -f conftest.er1
37689   cat conftest.err >&5
37690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37691   (exit $ac_status); } &&
37692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37693   { (case "(($ac_try" in
37694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37695   *) ac_try_echo=$ac_try;;
37696 esac
37697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37698   (eval "$ac_try") 2>&5
37699   ac_status=$?
37700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37701   (exit $ac_status); }; } &&
37702          { ac_try='test -s conftest.$ac_objext'
37703   { (case "(($ac_try" in
37704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37705   *) ac_try_echo=$ac_try;;
37706 esac
37707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37708   (eval "$ac_try") 2>&5
37709   ac_status=$?
37710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37711   (exit $ac_status); }; }; then
37712   ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
37713 else
37714   echo "$as_me: failed program was:" >&5
37715 sed 's/^/| /' conftest.$ac_ext >&5
37716
37717         ac_cv_member_struct_utmpx_ut_exit_ut_exit=no
37718 fi
37719
37720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37721 fi
37722
37723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37724 fi
37725 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&5
37726 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&6; }
37727 if test $ac_cv_member_struct_utmpx_ut_exit_ut_exit = yes; then
37728
37729 cat >>confdefs.h <<_ACEOF
37730 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_EXIT 1
37731 _ACEOF
37732
37733
37734 fi
37735
37736     { echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_exit" >&5
37737 echo $ECHO_N "checking for struct utmp.ut_exit.ut_exit... $ECHO_C" >&6; }
37738 if test "${ac_cv_member_struct_utmp_ut_exit_ut_exit+set}" = set; then
37739   echo $ECHO_N "(cached) $ECHO_C" >&6
37740 else
37741   cat >conftest.$ac_ext <<_ACEOF
37742 /* confdefs.h.  */
37743 _ACEOF
37744 cat confdefs.h >>conftest.$ac_ext
37745 cat >>conftest.$ac_ext <<_ACEOF
37746 /* end confdefs.h.  */
37747 $utmp_includes
37748
37749 int
37750 main ()
37751 {
37752 static struct utmp ac_aggr;
37753 if (ac_aggr.ut_exit.ut_exit)
37754 return 0;
37755   ;
37756   return 0;
37757 }
37758 _ACEOF
37759 rm -f conftest.$ac_objext
37760 if { (ac_try="$ac_compile"
37761 case "(($ac_try" in
37762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37763   *) ac_try_echo=$ac_try;;
37764 esac
37765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37766   (eval "$ac_compile") 2>conftest.er1
37767   ac_status=$?
37768   grep -v '^ *+' conftest.er1 >conftest.err
37769   rm -f conftest.er1
37770   cat conftest.err >&5
37771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37772   (exit $ac_status); } &&
37773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37774   { (case "(($ac_try" in
37775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37776   *) ac_try_echo=$ac_try;;
37777 esac
37778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37779   (eval "$ac_try") 2>&5
37780   ac_status=$?
37781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37782   (exit $ac_status); }; } &&
37783          { ac_try='test -s conftest.$ac_objext'
37784   { (case "(($ac_try" in
37785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37786   *) ac_try_echo=$ac_try;;
37787 esac
37788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37789   (eval "$ac_try") 2>&5
37790   ac_status=$?
37791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37792   (exit $ac_status); }; }; then
37793   ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
37794 else
37795   echo "$as_me: failed program was:" >&5
37796 sed 's/^/| /' conftest.$ac_ext >&5
37797
37798         cat >conftest.$ac_ext <<_ACEOF
37799 /* confdefs.h.  */
37800 _ACEOF
37801 cat confdefs.h >>conftest.$ac_ext
37802 cat >>conftest.$ac_ext <<_ACEOF
37803 /* end confdefs.h.  */
37804 $utmp_includes
37805
37806 int
37807 main ()
37808 {
37809 static struct utmp ac_aggr;
37810 if (sizeof ac_aggr.ut_exit.ut_exit)
37811 return 0;
37812   ;
37813   return 0;
37814 }
37815 _ACEOF
37816 rm -f conftest.$ac_objext
37817 if { (ac_try="$ac_compile"
37818 case "(($ac_try" in
37819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37820   *) ac_try_echo=$ac_try;;
37821 esac
37822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37823   (eval "$ac_compile") 2>conftest.er1
37824   ac_status=$?
37825   grep -v '^ *+' conftest.er1 >conftest.err
37826   rm -f conftest.er1
37827   cat conftest.err >&5
37828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37829   (exit $ac_status); } &&
37830          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37831   { (case "(($ac_try" in
37832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37833   *) ac_try_echo=$ac_try;;
37834 esac
37835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37836   (eval "$ac_try") 2>&5
37837   ac_status=$?
37838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37839   (exit $ac_status); }; } &&
37840          { ac_try='test -s conftest.$ac_objext'
37841   { (case "(($ac_try" in
37842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37843   *) ac_try_echo=$ac_try;;
37844 esac
37845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37846   (eval "$ac_try") 2>&5
37847   ac_status=$?
37848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37849   (exit $ac_status); }; }; then
37850   ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
37851 else
37852   echo "$as_me: failed program was:" >&5
37853 sed 's/^/| /' conftest.$ac_ext >&5
37854
37855         ac_cv_member_struct_utmp_ut_exit_ut_exit=no
37856 fi
37857
37858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37859 fi
37860
37861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37862 fi
37863 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_exit" >&5
37864 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_exit" >&6; }
37865 if test $ac_cv_member_struct_utmp_ut_exit_ut_exit = yes; then
37866
37867 cat >>confdefs.h <<_ACEOF
37868 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_EXIT 1
37869 _ACEOF
37870
37871
37872 fi
37873
37874     { echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_exit" >&5
37875 echo $ECHO_N "checking for struct utmpx.ut_exit.e_exit... $ECHO_C" >&6; }
37876 if test "${ac_cv_member_struct_utmpx_ut_exit_e_exit+set}" = set; then
37877   echo $ECHO_N "(cached) $ECHO_C" >&6
37878 else
37879   cat >conftest.$ac_ext <<_ACEOF
37880 /* confdefs.h.  */
37881 _ACEOF
37882 cat confdefs.h >>conftest.$ac_ext
37883 cat >>conftest.$ac_ext <<_ACEOF
37884 /* end confdefs.h.  */
37885 $utmp_includes
37886
37887 int
37888 main ()
37889 {
37890 static struct utmpx ac_aggr;
37891 if (ac_aggr.ut_exit.e_exit)
37892 return 0;
37893   ;
37894   return 0;
37895 }
37896 _ACEOF
37897 rm -f conftest.$ac_objext
37898 if { (ac_try="$ac_compile"
37899 case "(($ac_try" in
37900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37901   *) ac_try_echo=$ac_try;;
37902 esac
37903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37904   (eval "$ac_compile") 2>conftest.er1
37905   ac_status=$?
37906   grep -v '^ *+' conftest.er1 >conftest.err
37907   rm -f conftest.er1
37908   cat conftest.err >&5
37909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37910   (exit $ac_status); } &&
37911          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37912   { (case "(($ac_try" in
37913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37914   *) ac_try_echo=$ac_try;;
37915 esac
37916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37917   (eval "$ac_try") 2>&5
37918   ac_status=$?
37919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37920   (exit $ac_status); }; } &&
37921          { ac_try='test -s conftest.$ac_objext'
37922   { (case "(($ac_try" in
37923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37924   *) ac_try_echo=$ac_try;;
37925 esac
37926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37927   (eval "$ac_try") 2>&5
37928   ac_status=$?
37929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37930   (exit $ac_status); }; }; then
37931   ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
37932 else
37933   echo "$as_me: failed program was:" >&5
37934 sed 's/^/| /' conftest.$ac_ext >&5
37935
37936         cat >conftest.$ac_ext <<_ACEOF
37937 /* confdefs.h.  */
37938 _ACEOF
37939 cat confdefs.h >>conftest.$ac_ext
37940 cat >>conftest.$ac_ext <<_ACEOF
37941 /* end confdefs.h.  */
37942 $utmp_includes
37943
37944 int
37945 main ()
37946 {
37947 static struct utmpx ac_aggr;
37948 if (sizeof ac_aggr.ut_exit.e_exit)
37949 return 0;
37950   ;
37951   return 0;
37952 }
37953 _ACEOF
37954 rm -f conftest.$ac_objext
37955 if { (ac_try="$ac_compile"
37956 case "(($ac_try" in
37957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37958   *) ac_try_echo=$ac_try;;
37959 esac
37960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37961   (eval "$ac_compile") 2>conftest.er1
37962   ac_status=$?
37963   grep -v '^ *+' conftest.er1 >conftest.err
37964   rm -f conftest.er1
37965   cat conftest.err >&5
37966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37967   (exit $ac_status); } &&
37968          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37969   { (case "(($ac_try" in
37970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37971   *) ac_try_echo=$ac_try;;
37972 esac
37973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37974   (eval "$ac_try") 2>&5
37975   ac_status=$?
37976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37977   (exit $ac_status); }; } &&
37978          { ac_try='test -s conftest.$ac_objext'
37979   { (case "(($ac_try" in
37980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37981   *) ac_try_echo=$ac_try;;
37982 esac
37983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37984   (eval "$ac_try") 2>&5
37985   ac_status=$?
37986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37987   (exit $ac_status); }; }; then
37988   ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
37989 else
37990   echo "$as_me: failed program was:" >&5
37991 sed 's/^/| /' conftest.$ac_ext >&5
37992
37993         ac_cv_member_struct_utmpx_ut_exit_e_exit=no
37994 fi
37995
37996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37997 fi
37998
37999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38000 fi
38001 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_exit" >&5
38002 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_exit" >&6; }
38003 if test $ac_cv_member_struct_utmpx_ut_exit_e_exit = yes; then
38004
38005 cat >>confdefs.h <<_ACEOF
38006 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_EXIT 1
38007 _ACEOF
38008
38009
38010 fi
38011
38012     { echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_exit" >&5
38013 echo $ECHO_N "checking for struct utmp.ut_exit.e_exit... $ECHO_C" >&6; }
38014 if test "${ac_cv_member_struct_utmp_ut_exit_e_exit+set}" = set; then
38015   echo $ECHO_N "(cached) $ECHO_C" >&6
38016 else
38017   cat >conftest.$ac_ext <<_ACEOF
38018 /* confdefs.h.  */
38019 _ACEOF
38020 cat confdefs.h >>conftest.$ac_ext
38021 cat >>conftest.$ac_ext <<_ACEOF
38022 /* end confdefs.h.  */
38023 $utmp_includes
38024
38025 int
38026 main ()
38027 {
38028 static struct utmp ac_aggr;
38029 if (ac_aggr.ut_exit.e_exit)
38030 return 0;
38031   ;
38032   return 0;
38033 }
38034 _ACEOF
38035 rm -f conftest.$ac_objext
38036 if { (ac_try="$ac_compile"
38037 case "(($ac_try" in
38038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38039   *) ac_try_echo=$ac_try;;
38040 esac
38041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38042   (eval "$ac_compile") 2>conftest.er1
38043   ac_status=$?
38044   grep -v '^ *+' conftest.er1 >conftest.err
38045   rm -f conftest.er1
38046   cat conftest.err >&5
38047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38048   (exit $ac_status); } &&
38049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38050   { (case "(($ac_try" in
38051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38052   *) ac_try_echo=$ac_try;;
38053 esac
38054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38055   (eval "$ac_try") 2>&5
38056   ac_status=$?
38057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38058   (exit $ac_status); }; } &&
38059          { ac_try='test -s conftest.$ac_objext'
38060   { (case "(($ac_try" in
38061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38062   *) ac_try_echo=$ac_try;;
38063 esac
38064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38065   (eval "$ac_try") 2>&5
38066   ac_status=$?
38067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38068   (exit $ac_status); }; }; then
38069   ac_cv_member_struct_utmp_ut_exit_e_exit=yes
38070 else
38071   echo "$as_me: failed program was:" >&5
38072 sed 's/^/| /' conftest.$ac_ext >&5
38073
38074         cat >conftest.$ac_ext <<_ACEOF
38075 /* confdefs.h.  */
38076 _ACEOF
38077 cat confdefs.h >>conftest.$ac_ext
38078 cat >>conftest.$ac_ext <<_ACEOF
38079 /* end confdefs.h.  */
38080 $utmp_includes
38081
38082 int
38083 main ()
38084 {
38085 static struct utmp ac_aggr;
38086 if (sizeof ac_aggr.ut_exit.e_exit)
38087 return 0;
38088   ;
38089   return 0;
38090 }
38091 _ACEOF
38092 rm -f conftest.$ac_objext
38093 if { (ac_try="$ac_compile"
38094 case "(($ac_try" in
38095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38096   *) ac_try_echo=$ac_try;;
38097 esac
38098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38099   (eval "$ac_compile") 2>conftest.er1
38100   ac_status=$?
38101   grep -v '^ *+' conftest.er1 >conftest.err
38102   rm -f conftest.er1
38103   cat conftest.err >&5
38104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38105   (exit $ac_status); } &&
38106          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38107   { (case "(($ac_try" in
38108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38109   *) ac_try_echo=$ac_try;;
38110 esac
38111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38112   (eval "$ac_try") 2>&5
38113   ac_status=$?
38114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38115   (exit $ac_status); }; } &&
38116          { ac_try='test -s conftest.$ac_objext'
38117   { (case "(($ac_try" in
38118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38119   *) ac_try_echo=$ac_try;;
38120 esac
38121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38122   (eval "$ac_try") 2>&5
38123   ac_status=$?
38124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38125   (exit $ac_status); }; }; then
38126   ac_cv_member_struct_utmp_ut_exit_e_exit=yes
38127 else
38128   echo "$as_me: failed program was:" >&5
38129 sed 's/^/| /' conftest.$ac_ext >&5
38130
38131         ac_cv_member_struct_utmp_ut_exit_e_exit=no
38132 fi
38133
38134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38135 fi
38136
38137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38138 fi
38139 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_exit" >&5
38140 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_exit" >&6; }
38141 if test $ac_cv_member_struct_utmp_ut_exit_e_exit = yes; then
38142
38143 cat >>confdefs.h <<_ACEOF
38144 #define HAVE_STRUCT_UTMP_UT_EXIT_E_EXIT 1
38145 _ACEOF
38146
38147
38148 fi
38149
38150
38151     { echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_termination" >&5
38152 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_termination... $ECHO_C" >&6; }
38153 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_termination+set}" = set; then
38154   echo $ECHO_N "(cached) $ECHO_C" >&6
38155 else
38156   cat >conftest.$ac_ext <<_ACEOF
38157 /* confdefs.h.  */
38158 _ACEOF
38159 cat confdefs.h >>conftest.$ac_ext
38160 cat >>conftest.$ac_ext <<_ACEOF
38161 /* end confdefs.h.  */
38162 $utmp_includes
38163
38164 int
38165 main ()
38166 {
38167 static struct utmpx ac_aggr;
38168 if (ac_aggr.ut_exit.ut_termination)
38169 return 0;
38170   ;
38171   return 0;
38172 }
38173 _ACEOF
38174 rm -f conftest.$ac_objext
38175 if { (ac_try="$ac_compile"
38176 case "(($ac_try" in
38177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38178   *) ac_try_echo=$ac_try;;
38179 esac
38180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38181   (eval "$ac_compile") 2>conftest.er1
38182   ac_status=$?
38183   grep -v '^ *+' conftest.er1 >conftest.err
38184   rm -f conftest.er1
38185   cat conftest.err >&5
38186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38187   (exit $ac_status); } &&
38188          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38189   { (case "(($ac_try" in
38190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38191   *) ac_try_echo=$ac_try;;
38192 esac
38193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38194   (eval "$ac_try") 2>&5
38195   ac_status=$?
38196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38197   (exit $ac_status); }; } &&
38198          { ac_try='test -s conftest.$ac_objext'
38199   { (case "(($ac_try" in
38200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38201   *) ac_try_echo=$ac_try;;
38202 esac
38203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38204   (eval "$ac_try") 2>&5
38205   ac_status=$?
38206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38207   (exit $ac_status); }; }; then
38208   ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
38209 else
38210   echo "$as_me: failed program was:" >&5
38211 sed 's/^/| /' conftest.$ac_ext >&5
38212
38213         cat >conftest.$ac_ext <<_ACEOF
38214 /* confdefs.h.  */
38215 _ACEOF
38216 cat confdefs.h >>conftest.$ac_ext
38217 cat >>conftest.$ac_ext <<_ACEOF
38218 /* end confdefs.h.  */
38219 $utmp_includes
38220
38221 int
38222 main ()
38223 {
38224 static struct utmpx ac_aggr;
38225 if (sizeof ac_aggr.ut_exit.ut_termination)
38226 return 0;
38227   ;
38228   return 0;
38229 }
38230 _ACEOF
38231 rm -f conftest.$ac_objext
38232 if { (ac_try="$ac_compile"
38233 case "(($ac_try" in
38234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38235   *) ac_try_echo=$ac_try;;
38236 esac
38237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38238   (eval "$ac_compile") 2>conftest.er1
38239   ac_status=$?
38240   grep -v '^ *+' conftest.er1 >conftest.err
38241   rm -f conftest.er1
38242   cat conftest.err >&5
38243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38244   (exit $ac_status); } &&
38245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38246   { (case "(($ac_try" in
38247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38248   *) ac_try_echo=$ac_try;;
38249 esac
38250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38251   (eval "$ac_try") 2>&5
38252   ac_status=$?
38253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38254   (exit $ac_status); }; } &&
38255          { ac_try='test -s conftest.$ac_objext'
38256   { (case "(($ac_try" in
38257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38258   *) ac_try_echo=$ac_try;;
38259 esac
38260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38261   (eval "$ac_try") 2>&5
38262   ac_status=$?
38263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38264   (exit $ac_status); }; }; then
38265   ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
38266 else
38267   echo "$as_me: failed program was:" >&5
38268 sed 's/^/| /' conftest.$ac_ext >&5
38269
38270         ac_cv_member_struct_utmpx_ut_exit_ut_termination=no
38271 fi
38272
38273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38274 fi
38275
38276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38277 fi
38278 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&5
38279 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&6; }
38280 if test $ac_cv_member_struct_utmpx_ut_exit_ut_termination = yes; then
38281
38282 cat >>confdefs.h <<_ACEOF
38283 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_TERMINATION 1
38284 _ACEOF
38285
38286
38287 fi
38288
38289     { echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_termination" >&5
38290 echo $ECHO_N "checking for struct utmp.ut_exit.ut_termination... $ECHO_C" >&6; }
38291 if test "${ac_cv_member_struct_utmp_ut_exit_ut_termination+set}" = set; then
38292   echo $ECHO_N "(cached) $ECHO_C" >&6
38293 else
38294   cat >conftest.$ac_ext <<_ACEOF
38295 /* confdefs.h.  */
38296 _ACEOF
38297 cat confdefs.h >>conftest.$ac_ext
38298 cat >>conftest.$ac_ext <<_ACEOF
38299 /* end confdefs.h.  */
38300 $utmp_includes
38301
38302 int
38303 main ()
38304 {
38305 static struct utmp ac_aggr;
38306 if (ac_aggr.ut_exit.ut_termination)
38307 return 0;
38308   ;
38309   return 0;
38310 }
38311 _ACEOF
38312 rm -f conftest.$ac_objext
38313 if { (ac_try="$ac_compile"
38314 case "(($ac_try" in
38315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38316   *) ac_try_echo=$ac_try;;
38317 esac
38318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38319   (eval "$ac_compile") 2>conftest.er1
38320   ac_status=$?
38321   grep -v '^ *+' conftest.er1 >conftest.err
38322   rm -f conftest.er1
38323   cat conftest.err >&5
38324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38325   (exit $ac_status); } &&
38326          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38327   { (case "(($ac_try" in
38328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38329   *) ac_try_echo=$ac_try;;
38330 esac
38331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38332   (eval "$ac_try") 2>&5
38333   ac_status=$?
38334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38335   (exit $ac_status); }; } &&
38336          { ac_try='test -s conftest.$ac_objext'
38337   { (case "(($ac_try" in
38338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38339   *) ac_try_echo=$ac_try;;
38340 esac
38341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38342   (eval "$ac_try") 2>&5
38343   ac_status=$?
38344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38345   (exit $ac_status); }; }; then
38346   ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
38347 else
38348   echo "$as_me: failed program was:" >&5
38349 sed 's/^/| /' conftest.$ac_ext >&5
38350
38351         cat >conftest.$ac_ext <<_ACEOF
38352 /* confdefs.h.  */
38353 _ACEOF
38354 cat confdefs.h >>conftest.$ac_ext
38355 cat >>conftest.$ac_ext <<_ACEOF
38356 /* end confdefs.h.  */
38357 $utmp_includes
38358
38359 int
38360 main ()
38361 {
38362 static struct utmp ac_aggr;
38363 if (sizeof ac_aggr.ut_exit.ut_termination)
38364 return 0;
38365   ;
38366   return 0;
38367 }
38368 _ACEOF
38369 rm -f conftest.$ac_objext
38370 if { (ac_try="$ac_compile"
38371 case "(($ac_try" in
38372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38373   *) ac_try_echo=$ac_try;;
38374 esac
38375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38376   (eval "$ac_compile") 2>conftest.er1
38377   ac_status=$?
38378   grep -v '^ *+' conftest.er1 >conftest.err
38379   rm -f conftest.er1
38380   cat conftest.err >&5
38381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38382   (exit $ac_status); } &&
38383          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38384   { (case "(($ac_try" in
38385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38386   *) ac_try_echo=$ac_try;;
38387 esac
38388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38389   (eval "$ac_try") 2>&5
38390   ac_status=$?
38391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38392   (exit $ac_status); }; } &&
38393          { ac_try='test -s conftest.$ac_objext'
38394   { (case "(($ac_try" in
38395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38396   *) ac_try_echo=$ac_try;;
38397 esac
38398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38399   (eval "$ac_try") 2>&5
38400   ac_status=$?
38401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38402   (exit $ac_status); }; }; then
38403   ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
38404 else
38405   echo "$as_me: failed program was:" >&5
38406 sed 's/^/| /' conftest.$ac_ext >&5
38407
38408         ac_cv_member_struct_utmp_ut_exit_ut_termination=no
38409 fi
38410
38411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38412 fi
38413
38414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38415 fi
38416 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_termination" >&5
38417 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_termination" >&6; }
38418 if test $ac_cv_member_struct_utmp_ut_exit_ut_termination = yes; then
38419
38420 cat >>confdefs.h <<_ACEOF
38421 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_TERMINATION 1
38422 _ACEOF
38423
38424
38425 fi
38426
38427     { echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_termination" >&5
38428 echo $ECHO_N "checking for struct utmpx.ut_exit.e_termination... $ECHO_C" >&6; }
38429 if test "${ac_cv_member_struct_utmpx_ut_exit_e_termination+set}" = set; then
38430   echo $ECHO_N "(cached) $ECHO_C" >&6
38431 else
38432   cat >conftest.$ac_ext <<_ACEOF
38433 /* confdefs.h.  */
38434 _ACEOF
38435 cat confdefs.h >>conftest.$ac_ext
38436 cat >>conftest.$ac_ext <<_ACEOF
38437 /* end confdefs.h.  */
38438 $utmp_includes
38439
38440 int
38441 main ()
38442 {
38443 static struct utmpx ac_aggr;
38444 if (ac_aggr.ut_exit.e_termination)
38445 return 0;
38446   ;
38447   return 0;
38448 }
38449 _ACEOF
38450 rm -f conftest.$ac_objext
38451 if { (ac_try="$ac_compile"
38452 case "(($ac_try" in
38453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38454   *) ac_try_echo=$ac_try;;
38455 esac
38456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38457   (eval "$ac_compile") 2>conftest.er1
38458   ac_status=$?
38459   grep -v '^ *+' conftest.er1 >conftest.err
38460   rm -f conftest.er1
38461   cat conftest.err >&5
38462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38463   (exit $ac_status); } &&
38464          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38465   { (case "(($ac_try" in
38466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38467   *) ac_try_echo=$ac_try;;
38468 esac
38469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38470   (eval "$ac_try") 2>&5
38471   ac_status=$?
38472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38473   (exit $ac_status); }; } &&
38474          { ac_try='test -s conftest.$ac_objext'
38475   { (case "(($ac_try" in
38476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38477   *) ac_try_echo=$ac_try;;
38478 esac
38479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38480   (eval "$ac_try") 2>&5
38481   ac_status=$?
38482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38483   (exit $ac_status); }; }; then
38484   ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
38485 else
38486   echo "$as_me: failed program was:" >&5
38487 sed 's/^/| /' conftest.$ac_ext >&5
38488
38489         cat >conftest.$ac_ext <<_ACEOF
38490 /* confdefs.h.  */
38491 _ACEOF
38492 cat confdefs.h >>conftest.$ac_ext
38493 cat >>conftest.$ac_ext <<_ACEOF
38494 /* end confdefs.h.  */
38495 $utmp_includes
38496
38497 int
38498 main ()
38499 {
38500 static struct utmpx ac_aggr;
38501 if (sizeof ac_aggr.ut_exit.e_termination)
38502 return 0;
38503   ;
38504   return 0;
38505 }
38506 _ACEOF
38507 rm -f conftest.$ac_objext
38508 if { (ac_try="$ac_compile"
38509 case "(($ac_try" in
38510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38511   *) ac_try_echo=$ac_try;;
38512 esac
38513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38514   (eval "$ac_compile") 2>conftest.er1
38515   ac_status=$?
38516   grep -v '^ *+' conftest.er1 >conftest.err
38517   rm -f conftest.er1
38518   cat conftest.err >&5
38519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38520   (exit $ac_status); } &&
38521          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38522   { (case "(($ac_try" in
38523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38524   *) ac_try_echo=$ac_try;;
38525 esac
38526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38527   (eval "$ac_try") 2>&5
38528   ac_status=$?
38529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38530   (exit $ac_status); }; } &&
38531          { ac_try='test -s conftest.$ac_objext'
38532   { (case "(($ac_try" in
38533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38534   *) ac_try_echo=$ac_try;;
38535 esac
38536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38537   (eval "$ac_try") 2>&5
38538   ac_status=$?
38539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38540   (exit $ac_status); }; }; then
38541   ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
38542 else
38543   echo "$as_me: failed program was:" >&5
38544 sed 's/^/| /' conftest.$ac_ext >&5
38545
38546         ac_cv_member_struct_utmpx_ut_exit_e_termination=no
38547 fi
38548
38549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38550 fi
38551
38552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38553 fi
38554 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_termination" >&5
38555 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_termination" >&6; }
38556 if test $ac_cv_member_struct_utmpx_ut_exit_e_termination = yes; then
38557
38558 cat >>confdefs.h <<_ACEOF
38559 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
38560 _ACEOF
38561
38562
38563 fi
38564
38565     { echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_termination" >&5
38566 echo $ECHO_N "checking for struct utmp.ut_exit.e_termination... $ECHO_C" >&6; }
38567 if test "${ac_cv_member_struct_utmp_ut_exit_e_termination+set}" = set; then
38568   echo $ECHO_N "(cached) $ECHO_C" >&6
38569 else
38570   cat >conftest.$ac_ext <<_ACEOF
38571 /* confdefs.h.  */
38572 _ACEOF
38573 cat confdefs.h >>conftest.$ac_ext
38574 cat >>conftest.$ac_ext <<_ACEOF
38575 /* end confdefs.h.  */
38576 $utmp_includes
38577
38578 int
38579 main ()
38580 {
38581 static struct utmp ac_aggr;
38582 if (ac_aggr.ut_exit.e_termination)
38583 return 0;
38584   ;
38585   return 0;
38586 }
38587 _ACEOF
38588 rm -f conftest.$ac_objext
38589 if { (ac_try="$ac_compile"
38590 case "(($ac_try" in
38591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38592   *) ac_try_echo=$ac_try;;
38593 esac
38594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38595   (eval "$ac_compile") 2>conftest.er1
38596   ac_status=$?
38597   grep -v '^ *+' conftest.er1 >conftest.err
38598   rm -f conftest.er1
38599   cat conftest.err >&5
38600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38601   (exit $ac_status); } &&
38602          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38603   { (case "(($ac_try" in
38604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38605   *) ac_try_echo=$ac_try;;
38606 esac
38607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38608   (eval "$ac_try") 2>&5
38609   ac_status=$?
38610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38611   (exit $ac_status); }; } &&
38612          { ac_try='test -s conftest.$ac_objext'
38613   { (case "(($ac_try" in
38614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38615   *) ac_try_echo=$ac_try;;
38616 esac
38617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38618   (eval "$ac_try") 2>&5
38619   ac_status=$?
38620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38621   (exit $ac_status); }; }; then
38622   ac_cv_member_struct_utmp_ut_exit_e_termination=yes
38623 else
38624   echo "$as_me: failed program was:" >&5
38625 sed 's/^/| /' conftest.$ac_ext >&5
38626
38627         cat >conftest.$ac_ext <<_ACEOF
38628 /* confdefs.h.  */
38629 _ACEOF
38630 cat confdefs.h >>conftest.$ac_ext
38631 cat >>conftest.$ac_ext <<_ACEOF
38632 /* end confdefs.h.  */
38633 $utmp_includes
38634
38635 int
38636 main ()
38637 {
38638 static struct utmp ac_aggr;
38639 if (sizeof ac_aggr.ut_exit.e_termination)
38640 return 0;
38641   ;
38642   return 0;
38643 }
38644 _ACEOF
38645 rm -f conftest.$ac_objext
38646 if { (ac_try="$ac_compile"
38647 case "(($ac_try" in
38648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38649   *) ac_try_echo=$ac_try;;
38650 esac
38651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38652   (eval "$ac_compile") 2>conftest.er1
38653   ac_status=$?
38654   grep -v '^ *+' conftest.er1 >conftest.err
38655   rm -f conftest.er1
38656   cat conftest.err >&5
38657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38658   (exit $ac_status); } &&
38659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38660   { (case "(($ac_try" in
38661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38662   *) ac_try_echo=$ac_try;;
38663 esac
38664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38665   (eval "$ac_try") 2>&5
38666   ac_status=$?
38667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38668   (exit $ac_status); }; } &&
38669          { ac_try='test -s conftest.$ac_objext'
38670   { (case "(($ac_try" in
38671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38672   *) ac_try_echo=$ac_try;;
38673 esac
38674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38675   (eval "$ac_try") 2>&5
38676   ac_status=$?
38677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38678   (exit $ac_status); }; }; then
38679   ac_cv_member_struct_utmp_ut_exit_e_termination=yes
38680 else
38681   echo "$as_me: failed program was:" >&5
38682 sed 's/^/| /' conftest.$ac_ext >&5
38683
38684         ac_cv_member_struct_utmp_ut_exit_e_termination=no
38685 fi
38686
38687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38688 fi
38689
38690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38691 fi
38692 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_termination" >&5
38693 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_termination" >&6; }
38694 if test $ac_cv_member_struct_utmp_ut_exit_e_termination = yes; then
38695
38696 cat >>confdefs.h <<_ACEOF
38697 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
38698 _ACEOF
38699
38700
38701 fi
38702
38703   fi
38704
38705
38706
38707
38708
38709
38710
38711
38712
38713
38714
38715
38716
38717 # Check whether --with-included-regex was given.
38718 if test "${with_included_regex+set}" = set; then
38719   withval=$with_included_regex;
38720 fi
38721
38722
38723   case $with_included_regex in #(
38724   yes|no) ac_use_included_regex=$with_included_regex
38725         ;;
38726   '')
38727     # If the system regex support is good enough that it passes the
38728     # following run test, then default to *not* using the included regex.c.
38729     # If cross compiling, assume the test would fail and use the included
38730     # regex.c.  The first failing regular expression is from `Spencer ere
38731     # test #75' in grep-2.3.
38732     { echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
38733 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6; }
38734 if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
38735   echo $ECHO_N "(cached) $ECHO_C" >&6
38736 else
38737   if test "$cross_compiling" = yes; then
38738          gl_cv_func_re_compile_pattern_working=no
38739 else
38740   cat >conftest.$ac_ext <<_ACEOF
38741 /* confdefs.h.  */
38742 _ACEOF
38743 cat confdefs.h >>conftest.$ac_ext
38744 cat >>conftest.$ac_ext <<_ACEOF
38745 /* end confdefs.h.  */
38746 $ac_includes_default
38747            #include <limits.h>
38748            #include <regex.h>
38749
38750 int
38751 main ()
38752 {
38753 static struct re_pattern_buffer regex;
38754             unsigned char folded_chars[UCHAR_MAX + 1];
38755             int i;
38756             const char *s;
38757             struct re_registers regs;
38758             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
38759             memset (&regex, 0, sizeof (regex));
38760             for (i = 0; i <= UCHAR_MAX; i++)
38761               folded_chars[i] = i;
38762             regex.translate = folded_chars;
38763             s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
38764             /* This should fail with _Invalid character class name_ error.  */
38765             if (!s)
38766               exit (1);
38767
38768             /* This should succeed, but does not for e.g. glibc-2.1.3.  */
38769             memset (&regex, 0, sizeof (regex));
38770             s = re_compile_pattern ("{1", 2, &regex);
38771
38772             if (s)
38773               exit (1);
38774
38775             /* The following example is derived from a problem report
38776                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
38777             memset (&regex, 0, sizeof (regex));
38778             s = re_compile_pattern ("[an\371]*n", 7, &regex);
38779             if (s)
38780               exit (1);
38781
38782             /* This should match, but does not for e.g. glibc-2.2.1.  */
38783             if (re_match (&regex, "an", 2, 0, &regs) != 2)
38784               exit (1);
38785
38786             memset (&regex, 0, sizeof (regex));
38787             s = re_compile_pattern ("x", 1, &regex);
38788             if (s)
38789               exit (1);
38790
38791             /* The version of regex.c in e.g. GNU libc-2.2.93 did not
38792                work with a negative RANGE argument.  */
38793             if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
38794               exit (1);
38795
38796             /* The version of regex.c in older versions of gnulib
38797                ignored RE_ICASE.  Detect that problem too.  */
38798             memset (&regex, 0, sizeof (regex));
38799             re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
38800             s = re_compile_pattern ("x", 1, &regex);
38801             if (s)
38802               exit (1);
38803
38804             if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
38805               exit (1);
38806
38807             /* REG_STARTEND was added to glibc on 2004-01-15.
38808                Reject older versions.  */
38809             if (! REG_STARTEND)
38810               exit (1);
38811
38812             /* Reject hosts whose regoff_t values are too narrow.
38813                These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
38814                and 32-bit int.  */
38815             if (sizeof (regoff_t) < sizeof (ptrdiff_t)
38816                 || sizeof (regoff_t) < sizeof (ssize_t))
38817               exit (1);
38818
38819             exit (0);
38820   ;
38821   return 0;
38822 }
38823 _ACEOF
38824 rm -f conftest$ac_exeext
38825 if { (ac_try="$ac_link"
38826 case "(($ac_try" in
38827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38828   *) ac_try_echo=$ac_try;;
38829 esac
38830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38831   (eval "$ac_link") 2>&5
38832   ac_status=$?
38833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38834   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38835   { (case "(($ac_try" in
38836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38837   *) ac_try_echo=$ac_try;;
38838 esac
38839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38840   (eval "$ac_try") 2>&5
38841   ac_status=$?
38842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38843   (exit $ac_status); }; }; then
38844   gl_cv_func_re_compile_pattern_working=yes
38845 else
38846   echo "$as_me: program exited with status $ac_status" >&5
38847 echo "$as_me: failed program was:" >&5
38848 sed 's/^/| /' conftest.$ac_ext >&5
38849
38850 ( exit $ac_status )
38851 gl_cv_func_re_compile_pattern_working=no
38852 fi
38853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38854 fi
38855
38856
38857 fi
38858 { echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
38859 echo "${ECHO_T}$gl_cv_func_re_compile_pattern_working" >&6; }
38860     case $gl_cv_func_re_compile_pattern_working in #(
38861     yes) ac_use_included_regex=no;; #(
38862     no) ac_use_included_regex=yes;;
38863     esac
38864     ;;
38865   *) { { echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
38866 echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
38867    { (exit 1); exit 1; }; }
38868     ;;
38869   esac
38870
38871   if test $ac_use_included_regex = yes; then
38872
38873 cat >>confdefs.h <<\_ACEOF
38874 #define _REGEX_LARGE_OFFSETS 1
38875 _ACEOF
38876
38877
38878 cat >>confdefs.h <<\_ACEOF
38879 #define re_syntax_options rpl_re_syntax_options
38880 _ACEOF
38881
38882
38883 cat >>confdefs.h <<\_ACEOF
38884 #define re_set_syntax rpl_re_set_syntax
38885 _ACEOF
38886
38887
38888 cat >>confdefs.h <<\_ACEOF
38889 #define re_compile_pattern rpl_re_compile_pattern
38890 _ACEOF
38891
38892
38893 cat >>confdefs.h <<\_ACEOF
38894 #define re_compile_fastmap rpl_re_compile_fastmap
38895 _ACEOF
38896
38897
38898 cat >>confdefs.h <<\_ACEOF
38899 #define re_search rpl_re_search
38900 _ACEOF
38901
38902
38903 cat >>confdefs.h <<\_ACEOF
38904 #define re_search_2 rpl_re_search_2
38905 _ACEOF
38906
38907
38908 cat >>confdefs.h <<\_ACEOF
38909 #define re_match rpl_re_match
38910 _ACEOF
38911
38912
38913 cat >>confdefs.h <<\_ACEOF
38914 #define re_match_2 rpl_re_match_2
38915 _ACEOF
38916
38917
38918 cat >>confdefs.h <<\_ACEOF
38919 #define re_set_registers rpl_re_set_registers
38920 _ACEOF
38921
38922
38923 cat >>confdefs.h <<\_ACEOF
38924 #define re_comp rpl_re_comp
38925 _ACEOF
38926
38927
38928 cat >>confdefs.h <<\_ACEOF
38929 #define re_exec rpl_re_exec
38930 _ACEOF
38931
38932
38933 cat >>confdefs.h <<\_ACEOF
38934 #define regcomp rpl_regcomp
38935 _ACEOF
38936
38937
38938 cat >>confdefs.h <<\_ACEOF
38939 #define regexec rpl_regexec
38940 _ACEOF
38941
38942
38943 cat >>confdefs.h <<\_ACEOF
38944 #define regerror rpl_regerror
38945 _ACEOF
38946
38947
38948 cat >>confdefs.h <<\_ACEOF
38949 #define regfree rpl_regfree
38950 _ACEOF
38951
38952     case " $LIBOBJS " in
38953   *" regex.$ac_objext "* ) ;;
38954   *) LIBOBJS="$LIBOBJS regex.$ac_objext"
38955  ;;
38956 esac
38957
38958
38959
38960
38961
38962
38963
38964
38965
38966
38967
38968
38969
38970
38971
38972
38973
38974
38975
38976
38977
38978
38979
38980
38981
38982
38983
38984   { echo "$as_me:$LINENO: checking whether isblank is declared" >&5
38985 echo $ECHO_N "checking whether isblank is declared... $ECHO_C" >&6; }
38986 if test "${ac_cv_have_decl_isblank+set}" = set; then
38987   echo $ECHO_N "(cached) $ECHO_C" >&6
38988 else
38989   cat >conftest.$ac_ext <<_ACEOF
38990 /* confdefs.h.  */
38991 _ACEOF
38992 cat confdefs.h >>conftest.$ac_ext
38993 cat >>conftest.$ac_ext <<_ACEOF
38994 /* end confdefs.h.  */
38995 #include <ctype.h>
38996
38997 int
38998 main ()
38999 {
39000 #ifndef isblank
39001   char *p = (char *) isblank;
39002   return !p;
39003 #endif
39004
39005   ;
39006   return 0;
39007 }
39008 _ACEOF
39009 rm -f conftest.$ac_objext
39010 if { (ac_try="$ac_compile"
39011 case "(($ac_try" in
39012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39013   *) ac_try_echo=$ac_try;;
39014 esac
39015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39016   (eval "$ac_compile") 2>conftest.er1
39017   ac_status=$?
39018   grep -v '^ *+' conftest.er1 >conftest.err
39019   rm -f conftest.er1
39020   cat conftest.err >&5
39021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39022   (exit $ac_status); } &&
39023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39024   { (case "(($ac_try" in
39025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39026   *) ac_try_echo=$ac_try;;
39027 esac
39028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39029   (eval "$ac_try") 2>&5
39030   ac_status=$?
39031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39032   (exit $ac_status); }; } &&
39033          { ac_try='test -s conftest.$ac_objext'
39034   { (case "(($ac_try" in
39035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39036   *) ac_try_echo=$ac_try;;
39037 esac
39038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39039   (eval "$ac_try") 2>&5
39040   ac_status=$?
39041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39042   (exit $ac_status); }; }; then
39043   ac_cv_have_decl_isblank=yes
39044 else
39045   echo "$as_me: failed program was:" >&5
39046 sed 's/^/| /' conftest.$ac_ext >&5
39047
39048         ac_cv_have_decl_isblank=no
39049 fi
39050
39051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39052 fi
39053 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
39054 echo "${ECHO_T}$ac_cv_have_decl_isblank" >&6; }
39055 if test $ac_cv_have_decl_isblank = yes; then
39056
39057 cat >>confdefs.h <<_ACEOF
39058 #define HAVE_DECL_ISBLANK 1
39059 _ACEOF
39060
39061
39062 else
39063   cat >>confdefs.h <<_ACEOF
39064 #define HAVE_DECL_ISBLANK 0
39065 _ACEOF
39066
39067
39068 fi
39069
39070
39071
39072   fi
39073
39074
39075
39076   case " $LIBOBJS " in
39077   *" safe-read.$ac_objext "* ) ;;
39078   *) LIBOBJS="$LIBOBJS safe-read.$ac_objext"
39079  ;;
39080 esac
39081
39082
39083
39084
39085
39086
39087
39088
39089   case " $LIBOBJS " in
39090   *" safe-write.$ac_objext "* ) ;;
39091   *) LIBOBJS="$LIBOBJS safe-write.$ac_objext"
39092  ;;
39093 esac
39094
39095
39096
39097
39098
39099
39100
39101
39102
39103
39104   case " $LIBOBJS " in
39105   *" same.$ac_objext "* ) ;;
39106   *) LIBOBJS="$LIBOBJS same.$ac_objext"
39107  ;;
39108 esac
39109
39110
39111
39112
39113
39114
39115
39116
39117
39118
39119
39120
39121   case " $LIBOBJS " in
39122   *" savedir.$ac_objext "* ) ;;
39123   *) LIBOBJS="$LIBOBJS savedir.$ac_objext"
39124  ;;
39125 esac
39126
39127
39128
39129
39130
39131
39132   case " $LIBOBJS " in
39133   *" save-cwd.$ac_objext "* ) ;;
39134   *) LIBOBJS="$LIBOBJS save-cwd.$ac_objext"
39135  ;;
39136 esac
39137
39138
39139
39140
39141
39142
39143
39144
39145
39146
39147
39148
39149
39150
39151   case " $LIBOBJS " in
39152   *" settime.$ac_objext "* ) ;;
39153   *) LIBOBJS="$LIBOBJS settime.$ac_objext"
39154  ;;
39155 esac
39156
39157
39158
39159
39160
39161
39162
39163
39164
39165
39166
39167
39168
39169
39170
39171   case " $LIBOBJS " in
39172   *" sha1.$ac_objext "* ) ;;
39173   *) LIBOBJS="$LIBOBJS sha1.$ac_objext"
39174  ;;
39175 esac
39176
39177
39178
39179   :
39180
39181
39182
39183   case " $LIBOBJS " in
39184   *" sha256.$ac_objext "* ) ;;
39185   *) LIBOBJS="$LIBOBJS sha256.$ac_objext"
39186  ;;
39187 esac
39188
39189
39190
39191   :
39192
39193
39194
39195   case " $LIBOBJS " in
39196   *" sha512.$ac_objext "* ) ;;
39197   *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
39198  ;;
39199 esac
39200
39201
39202
39203   :
39204
39205
39206
39207
39208
39209
39210
39211   { echo "$as_me:$LINENO: checking for struct stat.st_atim.tv_nsec" >&5
39212 echo $ECHO_N "checking for struct stat.st_atim.tv_nsec... $ECHO_C" >&6; }
39213 if test "${ac_cv_member_struct_stat_st_atim_tv_nsec+set}" = set; then
39214   echo $ECHO_N "(cached) $ECHO_C" >&6
39215 else
39216   cat >conftest.$ac_ext <<_ACEOF
39217 /* confdefs.h.  */
39218 _ACEOF
39219 cat confdefs.h >>conftest.$ac_ext
39220 cat >>conftest.$ac_ext <<_ACEOF
39221 /* end confdefs.h.  */
39222 #include <sys/types.h>
39223      #include <sys/stat.h>
39224
39225 int
39226 main ()
39227 {
39228 static struct stat ac_aggr;
39229 if (ac_aggr.st_atim.tv_nsec)
39230 return 0;
39231   ;
39232   return 0;
39233 }
39234 _ACEOF
39235 rm -f conftest.$ac_objext
39236 if { (ac_try="$ac_compile"
39237 case "(($ac_try" in
39238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39239   *) ac_try_echo=$ac_try;;
39240 esac
39241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39242   (eval "$ac_compile") 2>conftest.er1
39243   ac_status=$?
39244   grep -v '^ *+' conftest.er1 >conftest.err
39245   rm -f conftest.er1
39246   cat conftest.err >&5
39247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39248   (exit $ac_status); } &&
39249          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39250   { (case "(($ac_try" in
39251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39252   *) ac_try_echo=$ac_try;;
39253 esac
39254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39255   (eval "$ac_try") 2>&5
39256   ac_status=$?
39257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39258   (exit $ac_status); }; } &&
39259          { ac_try='test -s conftest.$ac_objext'
39260   { (case "(($ac_try" in
39261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39262   *) ac_try_echo=$ac_try;;
39263 esac
39264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39265   (eval "$ac_try") 2>&5
39266   ac_status=$?
39267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39268   (exit $ac_status); }; }; then
39269   ac_cv_member_struct_stat_st_atim_tv_nsec=yes
39270 else
39271   echo "$as_me: failed program was:" >&5
39272 sed 's/^/| /' conftest.$ac_ext >&5
39273
39274         cat >conftest.$ac_ext <<_ACEOF
39275 /* confdefs.h.  */
39276 _ACEOF
39277 cat confdefs.h >>conftest.$ac_ext
39278 cat >>conftest.$ac_ext <<_ACEOF
39279 /* end confdefs.h.  */
39280 #include <sys/types.h>
39281      #include <sys/stat.h>
39282
39283 int
39284 main ()
39285 {
39286 static struct stat ac_aggr;
39287 if (sizeof ac_aggr.st_atim.tv_nsec)
39288 return 0;
39289   ;
39290   return 0;
39291 }
39292 _ACEOF
39293 rm -f conftest.$ac_objext
39294 if { (ac_try="$ac_compile"
39295 case "(($ac_try" in
39296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39297   *) ac_try_echo=$ac_try;;
39298 esac
39299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39300   (eval "$ac_compile") 2>conftest.er1
39301   ac_status=$?
39302   grep -v '^ *+' conftest.er1 >conftest.err
39303   rm -f conftest.er1
39304   cat conftest.err >&5
39305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39306   (exit $ac_status); } &&
39307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39308   { (case "(($ac_try" in
39309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39310   *) ac_try_echo=$ac_try;;
39311 esac
39312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39313   (eval "$ac_try") 2>&5
39314   ac_status=$?
39315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39316   (exit $ac_status); }; } &&
39317          { ac_try='test -s conftest.$ac_objext'
39318   { (case "(($ac_try" in
39319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39320   *) ac_try_echo=$ac_try;;
39321 esac
39322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39323   (eval "$ac_try") 2>&5
39324   ac_status=$?
39325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39326   (exit $ac_status); }; }; then
39327   ac_cv_member_struct_stat_st_atim_tv_nsec=yes
39328 else
39329   echo "$as_me: failed program was:" >&5
39330 sed 's/^/| /' conftest.$ac_ext >&5
39331
39332         ac_cv_member_struct_stat_st_atim_tv_nsec=no
39333 fi
39334
39335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39336 fi
39337
39338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39339 fi
39340 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_tv_nsec" >&5
39341 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_tv_nsec" >&6; }
39342 if test $ac_cv_member_struct_stat_st_atim_tv_nsec = yes; then
39343
39344 cat >>confdefs.h <<_ACEOF
39345 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
39346 _ACEOF
39347
39348 { echo "$as_me:$LINENO: checking whether struct stat.st_atim is of type struct timespec" >&5
39349 echo $ECHO_N "checking whether struct stat.st_atim is of type struct timespec... $ECHO_C" >&6; }
39350 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then
39351   echo $ECHO_N "(cached) $ECHO_C" >&6
39352 else
39353   cat >conftest.$ac_ext <<_ACEOF
39354 /* confdefs.h.  */
39355 _ACEOF
39356 cat confdefs.h >>conftest.$ac_ext
39357 cat >>conftest.$ac_ext <<_ACEOF
39358 /* end confdefs.h.  */
39359
39360             #include <sys/types.h>
39361             #if TIME_WITH_SYS_TIME
39362             # include <sys/time.h>
39363             # include <time.h>
39364             #else
39365             # if HAVE_SYS_TIME_H
39366             #  include <sys/time.h>
39367             # else
39368             #  include <time.h>
39369             # endif
39370             #endif
39371             #include <sys/stat.h>
39372             struct timespec ts;
39373             struct stat st;
39374
39375 int
39376 main ()
39377 {
39378
39379             st.st_atim = ts;
39380
39381   ;
39382   return 0;
39383 }
39384 _ACEOF
39385 rm -f conftest.$ac_objext
39386 if { (ac_try="$ac_compile"
39387 case "(($ac_try" in
39388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39389   *) ac_try_echo=$ac_try;;
39390 esac
39391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39392   (eval "$ac_compile") 2>conftest.er1
39393   ac_status=$?
39394   grep -v '^ *+' conftest.er1 >conftest.err
39395   rm -f conftest.er1
39396   cat conftest.err >&5
39397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39398   (exit $ac_status); } &&
39399          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39400   { (case "(($ac_try" in
39401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39402   *) ac_try_echo=$ac_try;;
39403 esac
39404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39405   (eval "$ac_try") 2>&5
39406   ac_status=$?
39407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39408   (exit $ac_status); }; } &&
39409          { ac_try='test -s conftest.$ac_objext'
39410   { (case "(($ac_try" in
39411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39412   *) ac_try_echo=$ac_try;;
39413 esac
39414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39415   (eval "$ac_try") 2>&5
39416   ac_status=$?
39417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39418   (exit $ac_status); }; }; then
39419   ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
39420 else
39421   echo "$as_me: failed program was:" >&5
39422 sed 's/^/| /' conftest.$ac_ext >&5
39423
39424         ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
39425 fi
39426
39427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39428 fi
39429 { echo "$as_me:$LINENO: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
39430 echo "${ECHO_T}$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
39431      if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
39432
39433 cat >>confdefs.h <<\_ACEOF
39434 #define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1
39435 _ACEOF
39436
39437      fi
39438 else
39439   { echo "$as_me:$LINENO: checking for struct stat.st_atimespec.tv_nsec" >&5
39440 echo $ECHO_N "checking for struct stat.st_atimespec.tv_nsec... $ECHO_C" >&6; }
39441 if test "${ac_cv_member_struct_stat_st_atimespec_tv_nsec+set}" = set; then
39442   echo $ECHO_N "(cached) $ECHO_C" >&6
39443 else
39444   cat >conftest.$ac_ext <<_ACEOF
39445 /* confdefs.h.  */
39446 _ACEOF
39447 cat confdefs.h >>conftest.$ac_ext
39448 cat >>conftest.$ac_ext <<_ACEOF
39449 /* end confdefs.h.  */
39450 #include <sys/types.h>
39451         #include <sys/stat.h>
39452
39453 int
39454 main ()
39455 {
39456 static struct stat ac_aggr;
39457 if (ac_aggr.st_atimespec.tv_nsec)
39458 return 0;
39459   ;
39460   return 0;
39461 }
39462 _ACEOF
39463 rm -f conftest.$ac_objext
39464 if { (ac_try="$ac_compile"
39465 case "(($ac_try" in
39466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39467   *) ac_try_echo=$ac_try;;
39468 esac
39469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39470   (eval "$ac_compile") 2>conftest.er1
39471   ac_status=$?
39472   grep -v '^ *+' conftest.er1 >conftest.err
39473   rm -f conftest.er1
39474   cat conftest.err >&5
39475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39476   (exit $ac_status); } &&
39477          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39478   { (case "(($ac_try" in
39479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39480   *) ac_try_echo=$ac_try;;
39481 esac
39482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39483   (eval "$ac_try") 2>&5
39484   ac_status=$?
39485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39486   (exit $ac_status); }; } &&
39487          { ac_try='test -s conftest.$ac_objext'
39488   { (case "(($ac_try" in
39489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39490   *) ac_try_echo=$ac_try;;
39491 esac
39492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39493   (eval "$ac_try") 2>&5
39494   ac_status=$?
39495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39496   (exit $ac_status); }; }; then
39497   ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
39498 else
39499   echo "$as_me: failed program was:" >&5
39500 sed 's/^/| /' conftest.$ac_ext >&5
39501
39502         cat >conftest.$ac_ext <<_ACEOF
39503 /* confdefs.h.  */
39504 _ACEOF
39505 cat confdefs.h >>conftest.$ac_ext
39506 cat >>conftest.$ac_ext <<_ACEOF
39507 /* end confdefs.h.  */
39508 #include <sys/types.h>
39509         #include <sys/stat.h>
39510
39511 int
39512 main ()
39513 {
39514 static struct stat ac_aggr;
39515 if (sizeof ac_aggr.st_atimespec.tv_nsec)
39516 return 0;
39517   ;
39518   return 0;
39519 }
39520 _ACEOF
39521 rm -f conftest.$ac_objext
39522 if { (ac_try="$ac_compile"
39523 case "(($ac_try" in
39524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39525   *) ac_try_echo=$ac_try;;
39526 esac
39527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39528   (eval "$ac_compile") 2>conftest.er1
39529   ac_status=$?
39530   grep -v '^ *+' conftest.er1 >conftest.err
39531   rm -f conftest.er1
39532   cat conftest.err >&5
39533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39534   (exit $ac_status); } &&
39535          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39536   { (case "(($ac_try" in
39537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39538   *) ac_try_echo=$ac_try;;
39539 esac
39540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39541   (eval "$ac_try") 2>&5
39542   ac_status=$?
39543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39544   (exit $ac_status); }; } &&
39545          { ac_try='test -s conftest.$ac_objext'
39546   { (case "(($ac_try" in
39547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39548   *) ac_try_echo=$ac_try;;
39549 esac
39550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39551   (eval "$ac_try") 2>&5
39552   ac_status=$?
39553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39554   (exit $ac_status); }; }; then
39555   ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
39556 else
39557   echo "$as_me: failed program was:" >&5
39558 sed 's/^/| /' conftest.$ac_ext >&5
39559
39560         ac_cv_member_struct_stat_st_atimespec_tv_nsec=no
39561 fi
39562
39563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39564 fi
39565
39566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39567 fi
39568 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&5
39569 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&6; }
39570 if test $ac_cv_member_struct_stat_st_atimespec_tv_nsec = yes; then
39571
39572 cat >>confdefs.h <<_ACEOF
39573 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
39574 _ACEOF
39575
39576
39577 else
39578   { echo "$as_me:$LINENO: checking for struct stat.st_atimensec" >&5
39579 echo $ECHO_N "checking for struct stat.st_atimensec... $ECHO_C" >&6; }
39580 if test "${ac_cv_member_struct_stat_st_atimensec+set}" = set; then
39581   echo $ECHO_N "(cached) $ECHO_C" >&6
39582 else
39583   cat >conftest.$ac_ext <<_ACEOF
39584 /* confdefs.h.  */
39585 _ACEOF
39586 cat confdefs.h >>conftest.$ac_ext
39587 cat >>conftest.$ac_ext <<_ACEOF
39588 /* end confdefs.h.  */
39589 #include <sys/types.h>
39590            #include <sys/stat.h>
39591
39592 int
39593 main ()
39594 {
39595 static struct stat ac_aggr;
39596 if (ac_aggr.st_atimensec)
39597 return 0;
39598   ;
39599   return 0;
39600 }
39601 _ACEOF
39602 rm -f conftest.$ac_objext
39603 if { (ac_try="$ac_compile"
39604 case "(($ac_try" in
39605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39606   *) ac_try_echo=$ac_try;;
39607 esac
39608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39609   (eval "$ac_compile") 2>conftest.er1
39610   ac_status=$?
39611   grep -v '^ *+' conftest.er1 >conftest.err
39612   rm -f conftest.er1
39613   cat conftest.err >&5
39614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39615   (exit $ac_status); } &&
39616          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39617   { (case "(($ac_try" in
39618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39619   *) ac_try_echo=$ac_try;;
39620 esac
39621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39622   (eval "$ac_try") 2>&5
39623   ac_status=$?
39624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39625   (exit $ac_status); }; } &&
39626          { ac_try='test -s conftest.$ac_objext'
39627   { (case "(($ac_try" in
39628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39629   *) ac_try_echo=$ac_try;;
39630 esac
39631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39632   (eval "$ac_try") 2>&5
39633   ac_status=$?
39634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39635   (exit $ac_status); }; }; then
39636   ac_cv_member_struct_stat_st_atimensec=yes
39637 else
39638   echo "$as_me: failed program was:" >&5
39639 sed 's/^/| /' conftest.$ac_ext >&5
39640
39641         cat >conftest.$ac_ext <<_ACEOF
39642 /* confdefs.h.  */
39643 _ACEOF
39644 cat confdefs.h >>conftest.$ac_ext
39645 cat >>conftest.$ac_ext <<_ACEOF
39646 /* end confdefs.h.  */
39647 #include <sys/types.h>
39648            #include <sys/stat.h>
39649
39650 int
39651 main ()
39652 {
39653 static struct stat ac_aggr;
39654 if (sizeof ac_aggr.st_atimensec)
39655 return 0;
39656   ;
39657   return 0;
39658 }
39659 _ACEOF
39660 rm -f conftest.$ac_objext
39661 if { (ac_try="$ac_compile"
39662 case "(($ac_try" in
39663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39664   *) ac_try_echo=$ac_try;;
39665 esac
39666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39667   (eval "$ac_compile") 2>conftest.er1
39668   ac_status=$?
39669   grep -v '^ *+' conftest.er1 >conftest.err
39670   rm -f conftest.er1
39671   cat conftest.err >&5
39672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39673   (exit $ac_status); } &&
39674          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39675   { (case "(($ac_try" in
39676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39677   *) ac_try_echo=$ac_try;;
39678 esac
39679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39680   (eval "$ac_try") 2>&5
39681   ac_status=$?
39682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39683   (exit $ac_status); }; } &&
39684          { ac_try='test -s conftest.$ac_objext'
39685   { (case "(($ac_try" in
39686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39687   *) ac_try_echo=$ac_try;;
39688 esac
39689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39690   (eval "$ac_try") 2>&5
39691   ac_status=$?
39692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39693   (exit $ac_status); }; }; then
39694   ac_cv_member_struct_stat_st_atimensec=yes
39695 else
39696   echo "$as_me: failed program was:" >&5
39697 sed 's/^/| /' conftest.$ac_ext >&5
39698
39699         ac_cv_member_struct_stat_st_atimensec=no
39700 fi
39701
39702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39703 fi
39704
39705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39706 fi
39707 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimensec" >&5
39708 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimensec" >&6; }
39709 if test $ac_cv_member_struct_stat_st_atimensec = yes; then
39710
39711 cat >>confdefs.h <<_ACEOF
39712 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
39713 _ACEOF
39714
39715
39716 else
39717   { echo "$as_me:$LINENO: checking for struct stat.st_atim.st__tim.tv_nsec" >&5
39718 echo $ECHO_N "checking for struct stat.st_atim.st__tim.tv_nsec... $ECHO_C" >&6; }
39719 if test "${ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec+set}" = set; then
39720   echo $ECHO_N "(cached) $ECHO_C" >&6
39721 else
39722   cat >conftest.$ac_ext <<_ACEOF
39723 /* confdefs.h.  */
39724 _ACEOF
39725 cat confdefs.h >>conftest.$ac_ext
39726 cat >>conftest.$ac_ext <<_ACEOF
39727 /* end confdefs.h.  */
39728 #include <sys/types.h>
39729               #include <sys/stat.h>
39730
39731 int
39732 main ()
39733 {
39734 static struct stat ac_aggr;
39735 if (ac_aggr.st_atim.st__tim.tv_nsec)
39736 return 0;
39737   ;
39738   return 0;
39739 }
39740 _ACEOF
39741 rm -f conftest.$ac_objext
39742 if { (ac_try="$ac_compile"
39743 case "(($ac_try" in
39744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39745   *) ac_try_echo=$ac_try;;
39746 esac
39747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39748   (eval "$ac_compile") 2>conftest.er1
39749   ac_status=$?
39750   grep -v '^ *+' conftest.er1 >conftest.err
39751   rm -f conftest.er1
39752   cat conftest.err >&5
39753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39754   (exit $ac_status); } &&
39755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39756   { (case "(($ac_try" in
39757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39758   *) ac_try_echo=$ac_try;;
39759 esac
39760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39761   (eval "$ac_try") 2>&5
39762   ac_status=$?
39763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39764   (exit $ac_status); }; } &&
39765          { ac_try='test -s conftest.$ac_objext'
39766   { (case "(($ac_try" in
39767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39768   *) ac_try_echo=$ac_try;;
39769 esac
39770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39771   (eval "$ac_try") 2>&5
39772   ac_status=$?
39773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39774   (exit $ac_status); }; }; then
39775   ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
39776 else
39777   echo "$as_me: failed program was:" >&5
39778 sed 's/^/| /' conftest.$ac_ext >&5
39779
39780         cat >conftest.$ac_ext <<_ACEOF
39781 /* confdefs.h.  */
39782 _ACEOF
39783 cat confdefs.h >>conftest.$ac_ext
39784 cat >>conftest.$ac_ext <<_ACEOF
39785 /* end confdefs.h.  */
39786 #include <sys/types.h>
39787               #include <sys/stat.h>
39788
39789 int
39790 main ()
39791 {
39792 static struct stat ac_aggr;
39793 if (sizeof ac_aggr.st_atim.st__tim.tv_nsec)
39794 return 0;
39795   ;
39796   return 0;
39797 }
39798 _ACEOF
39799 rm -f conftest.$ac_objext
39800 if { (ac_try="$ac_compile"
39801 case "(($ac_try" in
39802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39803   *) ac_try_echo=$ac_try;;
39804 esac
39805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39806   (eval "$ac_compile") 2>conftest.er1
39807   ac_status=$?
39808   grep -v '^ *+' conftest.er1 >conftest.err
39809   rm -f conftest.er1
39810   cat conftest.err >&5
39811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39812   (exit $ac_status); } &&
39813          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39814   { (case "(($ac_try" in
39815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39816   *) ac_try_echo=$ac_try;;
39817 esac
39818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39819   (eval "$ac_try") 2>&5
39820   ac_status=$?
39821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39822   (exit $ac_status); }; } &&
39823          { ac_try='test -s conftest.$ac_objext'
39824   { (case "(($ac_try" in
39825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39826   *) ac_try_echo=$ac_try;;
39827 esac
39828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39829   (eval "$ac_try") 2>&5
39830   ac_status=$?
39831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39832   (exit $ac_status); }; }; then
39833   ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
39834 else
39835   echo "$as_me: failed program was:" >&5
39836 sed 's/^/| /' conftest.$ac_ext >&5
39837
39838         ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=no
39839 fi
39840
39841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39842 fi
39843
39844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39845 fi
39846 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&5
39847 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&6; }
39848 if test $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec = yes; then
39849
39850 cat >>confdefs.h <<_ACEOF
39851 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
39852 _ACEOF
39853
39854
39855 else
39856   { echo "$as_me:$LINENO: checking for struct stat.st_spare1" >&5
39857 echo $ECHO_N "checking for struct stat.st_spare1... $ECHO_C" >&6; }
39858 if test "${ac_cv_member_struct_stat_st_spare1+set}" = set; then
39859   echo $ECHO_N "(cached) $ECHO_C" >&6
39860 else
39861   cat >conftest.$ac_ext <<_ACEOF
39862 /* confdefs.h.  */
39863 _ACEOF
39864 cat confdefs.h >>conftest.$ac_ext
39865 cat >>conftest.$ac_ext <<_ACEOF
39866 /* end confdefs.h.  */
39867 #include <sys/types.h>
39868                  #include <sys/stat.h>
39869
39870 int
39871 main ()
39872 {
39873 static struct stat ac_aggr;
39874 if (ac_aggr.st_spare1)
39875 return 0;
39876   ;
39877   return 0;
39878 }
39879 _ACEOF
39880 rm -f conftest.$ac_objext
39881 if { (ac_try="$ac_compile"
39882 case "(($ac_try" in
39883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39884   *) ac_try_echo=$ac_try;;
39885 esac
39886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39887   (eval "$ac_compile") 2>conftest.er1
39888   ac_status=$?
39889   grep -v '^ *+' conftest.er1 >conftest.err
39890   rm -f conftest.er1
39891   cat conftest.err >&5
39892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39893   (exit $ac_status); } &&
39894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39895   { (case "(($ac_try" in
39896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39897   *) ac_try_echo=$ac_try;;
39898 esac
39899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39900   (eval "$ac_try") 2>&5
39901   ac_status=$?
39902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39903   (exit $ac_status); }; } &&
39904          { ac_try='test -s conftest.$ac_objext'
39905   { (case "(($ac_try" in
39906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39907   *) ac_try_echo=$ac_try;;
39908 esac
39909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39910   (eval "$ac_try") 2>&5
39911   ac_status=$?
39912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39913   (exit $ac_status); }; }; then
39914   ac_cv_member_struct_stat_st_spare1=yes
39915 else
39916   echo "$as_me: failed program was:" >&5
39917 sed 's/^/| /' conftest.$ac_ext >&5
39918
39919         cat >conftest.$ac_ext <<_ACEOF
39920 /* confdefs.h.  */
39921 _ACEOF
39922 cat confdefs.h >>conftest.$ac_ext
39923 cat >>conftest.$ac_ext <<_ACEOF
39924 /* end confdefs.h.  */
39925 #include <sys/types.h>
39926                  #include <sys/stat.h>
39927
39928 int
39929 main ()
39930 {
39931 static struct stat ac_aggr;
39932 if (sizeof ac_aggr.st_spare1)
39933 return 0;
39934   ;
39935   return 0;
39936 }
39937 _ACEOF
39938 rm -f conftest.$ac_objext
39939 if { (ac_try="$ac_compile"
39940 case "(($ac_try" in
39941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39942   *) ac_try_echo=$ac_try;;
39943 esac
39944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39945   (eval "$ac_compile") 2>conftest.er1
39946   ac_status=$?
39947   grep -v '^ *+' conftest.er1 >conftest.err
39948   rm -f conftest.er1
39949   cat conftest.err >&5
39950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39951   (exit $ac_status); } &&
39952          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39953   { (case "(($ac_try" in
39954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39955   *) ac_try_echo=$ac_try;;
39956 esac
39957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39958   (eval "$ac_try") 2>&5
39959   ac_status=$?
39960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39961   (exit $ac_status); }; } &&
39962          { ac_try='test -s conftest.$ac_objext'
39963   { (case "(($ac_try" in
39964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39965   *) ac_try_echo=$ac_try;;
39966 esac
39967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39968   (eval "$ac_try") 2>&5
39969   ac_status=$?
39970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39971   (exit $ac_status); }; }; then
39972   ac_cv_member_struct_stat_st_spare1=yes
39973 else
39974   echo "$as_me: failed program was:" >&5
39975 sed 's/^/| /' conftest.$ac_ext >&5
39976
39977         ac_cv_member_struct_stat_st_spare1=no
39978 fi
39979
39980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39981 fi
39982
39983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39984 fi
39985 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_spare1" >&5
39986 echo "${ECHO_T}$ac_cv_member_struct_stat_st_spare1" >&6; }
39987 if test $ac_cv_member_struct_stat_st_spare1 = yes; then
39988
39989 cat >>confdefs.h <<_ACEOF
39990 #define HAVE_STRUCT_STAT_ST_SPARE1 1
39991 _ACEOF
39992
39993
39994 fi
39995
39996 fi
39997
39998 fi
39999
40000 fi
40001
40002 fi
40003
40004
40005
40006
40007
40008
40009
40010   if test $ac_cv_type_long_long_int = yes; then
40011     HAVE_LONG_LONG_INT=1
40012   else
40013     HAVE_LONG_LONG_INT=0
40014   fi
40015
40016
40017
40018
40019
40020
40021
40022
40023   if test $ac_cv_header_wchar_h = yes; then
40024     HAVE_WCHAR_H=1
40025   else
40026     HAVE_WCHAR_H=0
40027   fi
40028
40029
40030       if test $ac_cv_header_inttypes_h = yes; then
40031     HAVE_INTTYPES_H=1
40032   else
40033     HAVE_INTTYPES_H=0
40034   fi
40035
40036
40037       if test $ac_cv_header_sys_types_h = yes; then
40038     HAVE_SYS_TYPES_H=1
40039   else
40040     HAVE_SYS_TYPES_H=0
40041   fi
40042
40043
40044     if test $ac_cv_header_stdint_h = yes; then
40045       { echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
40046 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6; }
40047 if test "${gl_cv_absolute_stdint_h+set}" = set; then
40048   echo $ECHO_N "(cached) $ECHO_C" >&6
40049 else
40050
40051
40052
40053
40054
40055     if test $ac_cv_header_stdint_h = yes; then
40056       cat >conftest.$ac_ext <<_ACEOF
40057 /* confdefs.h.  */
40058 _ACEOF
40059 cat confdefs.h >>conftest.$ac_ext
40060 cat >>conftest.$ac_ext <<_ACEOF
40061 /* end confdefs.h.  */
40062 #include <stdint.h>
40063 _ACEOF
40064       gl_cv_absolute_stdint_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40065 sed -n '\#/stdint.h#{s#.*"\(.*/stdint.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
40066     fi
40067
40068 fi
40069 { echo "$as_me:$LINENO: result: $gl_cv_absolute_stdint_h" >&5
40070 echo "${ECHO_T}$gl_cv_absolute_stdint_h" >&6; }
40071 cat >>confdefs.h <<_ACEOF
40072 #define ABSOLUTE_STDINT_H "$gl_cv_absolute_stdint_h"
40073 _ACEOF
40074
40075
40076     ABSOLUTE_STDINT_H=\"$gl_cv_absolute_stdint_h\"
40077     HAVE_STDINT_H=1
40078   else
40079     ABSOLUTE_STDINT_H=\"no/such/file/stdint.h\"
40080     HAVE_STDINT_H=0
40081   fi
40082
40083
40084
40085           if test $ac_cv_header_stdint_h = yes; then
40086     { echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
40087 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6; }
40088 if test "${gl_cv_header_working_stdint_h+set}" = set; then
40089   echo $ECHO_N "(cached) $ECHO_C" >&6
40090 else
40091   gl_cv_header_working_stdint_h=no
40092        cat >conftest.$ac_ext <<_ACEOF
40093
40094          /* confdefs.h.  */
40095 _ACEOF
40096 cat confdefs.h >>conftest.$ac_ext
40097 cat >>conftest.$ac_ext <<_ACEOF
40098 /* end confdefs.h.  */
40099
40100 #include <stddef.h>
40101 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
40102 #include ABSOLUTE_STDINT_H
40103 #ifdef INT8_MAX
40104 int8_t a1 = INT8_MAX;
40105 #endif
40106 #ifdef INT16_MAX
40107 int16_t a2 = INT16_MAX;
40108 #endif
40109 #ifdef INT32_MAX
40110 int32_t a3 = INT32_MAX;
40111 #endif
40112 #ifdef INT64_MAX
40113 int64_t a4 = INT64_MAX;
40114 #endif
40115 #ifdef UINT8_MAX
40116 uint8_t b1 = UINT8_MAX;
40117 #else
40118 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
40119 #endif
40120 #ifdef UINT16_MAX
40121 uint16_t b2 = UINT16_MAX;
40122 #endif
40123 #ifdef UINT32_MAX
40124 uint32_t b3 = UINT32_MAX;
40125 #endif
40126 #ifdef UINT64_MAX
40127 uint64_t b4 = UINT64_MAX;
40128 #endif
40129 int_least8_t c1 = INT8_C (0x7f);
40130 int_least16_t c2 = INT16_C (0x7fff);
40131 int_least32_t c3 = INT32_C (0x7fffffff);
40132 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
40133 uint_least8_t d1 = UINT8_C (0xff);
40134 uint_least16_t d2 = UINT16_C (0xffff);
40135 uint_least32_t d3 = UINT32_C (0xffffffff);
40136 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
40137 int_fast8_t e1 = INT_FAST8_MAX;
40138 int_fast16_t e2 = INT_FAST16_MAX;
40139 int_fast32_t e3 = INT_FAST32_MAX;
40140 int_fast64_t e4 = INT_FAST64_MAX;
40141 uint_fast8_t f1 = UINT_FAST8_MAX;
40142 uint_fast16_t f2 = UINT_FAST16_MAX;
40143 uint_fast32_t f3 = UINT_FAST32_MAX;
40144 uint_fast64_t f4 = UINT_FAST64_MAX;
40145 #ifdef INTPTR_MAX
40146 intptr_t g = INTPTR_MAX;
40147 #endif
40148 #ifdef UINTPTR_MAX
40149 uintptr_t h = UINTPTR_MAX;
40150 #endif
40151 intmax_t i = INTMAX_MAX;
40152 uintmax_t j = UINTMAX_MAX;
40153 struct s {
40154   int check_PTRDIFF: PTRDIFF_MIN < 0 && 0 < PTRDIFF_MAX ? 1 : -1;
40155   int check_SIG_ATOMIC: SIG_ATOMIC_MIN <= 0 && 0 < SIG_ATOMIC_MAX ? 1 : -1;
40156   int check_SIZE: 0 < SIZE_MAX ? 1 : -1;
40157   int check_WCHAR: WCHAR_MIN <= 0 && 0 < WCHAR_MAX ? 1 : -1;
40158   int check_WINT: WINT_MIN <= 0 && 0 < WINT_MAX ? 1 : -1;
40159
40160   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
40161   int check_UINT8_C:
40162         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
40163   int check_UINT16_C:
40164         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
40165
40166   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
40167 #ifdef UINT8_MAX
40168   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
40169 #endif
40170 #ifdef UINT16_MAX
40171   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
40172 #endif
40173 #ifdef UINT32_MAX
40174   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
40175 #endif
40176 #ifdef UINT64_MAX
40177   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
40178 #endif
40179   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
40180   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
40181   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
40182   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
40183   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
40184   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
40185   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
40186   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
40187   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
40188   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
40189   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
40190 };
40191
40192 int
40193 main ()
40194 {
40195
40196   ;
40197   return 0;
40198 }
40199 _ACEOF
40200 rm -f conftest.$ac_objext
40201 if { (ac_try="$ac_compile"
40202 case "(($ac_try" in
40203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40204   *) ac_try_echo=$ac_try;;
40205 esac
40206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40207   (eval "$ac_compile") 2>conftest.er1
40208   ac_status=$?
40209   grep -v '^ *+' conftest.er1 >conftest.err
40210   rm -f conftest.er1
40211   cat conftest.err >&5
40212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40213   (exit $ac_status); } &&
40214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40215   { (case "(($ac_try" in
40216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40217   *) ac_try_echo=$ac_try;;
40218 esac
40219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40220   (eval "$ac_try") 2>&5
40221   ac_status=$?
40222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40223   (exit $ac_status); }; } &&
40224          { ac_try='test -s conftest.$ac_objext'
40225   { (case "(($ac_try" in
40226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40227   *) ac_try_echo=$ac_try;;
40228 esac
40229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40230   (eval "$ac_try") 2>&5
40231   ac_status=$?
40232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40233   (exit $ac_status); }; }; then
40234   gl_cv_header_working_stdint_h=yes
40235 else
40236   echo "$as_me: failed program was:" >&5
40237 sed 's/^/| /' conftest.$ac_ext >&5
40238
40239
40240 fi
40241
40242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40243 fi
40244 { echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
40245 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6; }
40246   fi
40247   if test "$gl_cv_header_working_stdint_h" != yes; then
40248
40249
40250
40251 for ac_header in sys/inttypes.h sys/bitypes.h
40252 do
40253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40255   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40258   echo $ECHO_N "(cached) $ECHO_C" >&6
40259 fi
40260 ac_res=`eval echo '${'$as_ac_Header'}'`
40261                { echo "$as_me:$LINENO: result: $ac_res" >&5
40262 echo "${ECHO_T}$ac_res" >&6; }
40263 else
40264   # Is the header compilable?
40265 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40267 cat >conftest.$ac_ext <<_ACEOF
40268 /* confdefs.h.  */
40269 _ACEOF
40270 cat confdefs.h >>conftest.$ac_ext
40271 cat >>conftest.$ac_ext <<_ACEOF
40272 /* end confdefs.h.  */
40273 $ac_includes_default
40274 #include <$ac_header>
40275 _ACEOF
40276 rm -f conftest.$ac_objext
40277 if { (ac_try="$ac_compile"
40278 case "(($ac_try" in
40279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40280   *) ac_try_echo=$ac_try;;
40281 esac
40282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40283   (eval "$ac_compile") 2>conftest.er1
40284   ac_status=$?
40285   grep -v '^ *+' conftest.er1 >conftest.err
40286   rm -f conftest.er1
40287   cat conftest.err >&5
40288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40289   (exit $ac_status); } &&
40290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40291   { (case "(($ac_try" in
40292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40293   *) ac_try_echo=$ac_try;;
40294 esac
40295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40296   (eval "$ac_try") 2>&5
40297   ac_status=$?
40298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40299   (exit $ac_status); }; } &&
40300          { ac_try='test -s conftest.$ac_objext'
40301   { (case "(($ac_try" in
40302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40303   *) ac_try_echo=$ac_try;;
40304 esac
40305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40306   (eval "$ac_try") 2>&5
40307   ac_status=$?
40308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40309   (exit $ac_status); }; }; then
40310   ac_header_compiler=yes
40311 else
40312   echo "$as_me: failed program was:" >&5
40313 sed 's/^/| /' conftest.$ac_ext >&5
40314
40315         ac_header_compiler=no
40316 fi
40317
40318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40320 echo "${ECHO_T}$ac_header_compiler" >&6; }
40321
40322 # Is the header present?
40323 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40325 cat >conftest.$ac_ext <<_ACEOF
40326 /* confdefs.h.  */
40327 _ACEOF
40328 cat confdefs.h >>conftest.$ac_ext
40329 cat >>conftest.$ac_ext <<_ACEOF
40330 /* end confdefs.h.  */
40331 #include <$ac_header>
40332 _ACEOF
40333 if { (ac_try="$ac_cpp conftest.$ac_ext"
40334 case "(($ac_try" in
40335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40336   *) ac_try_echo=$ac_try;;
40337 esac
40338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40339   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40340   ac_status=$?
40341   grep -v '^ *+' conftest.er1 >conftest.err
40342   rm -f conftest.er1
40343   cat conftest.err >&5
40344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40345   (exit $ac_status); } >/dev/null; then
40346   if test -s conftest.err; then
40347     ac_cpp_err=$ac_c_preproc_warn_flag
40348     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40349   else
40350     ac_cpp_err=
40351   fi
40352 else
40353   ac_cpp_err=yes
40354 fi
40355 if test -z "$ac_cpp_err"; then
40356   ac_header_preproc=yes
40357 else
40358   echo "$as_me: failed program was:" >&5
40359 sed 's/^/| /' conftest.$ac_ext >&5
40360
40361   ac_header_preproc=no
40362 fi
40363
40364 rm -f conftest.err conftest.$ac_ext
40365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40366 echo "${ECHO_T}$ac_header_preproc" >&6; }
40367
40368 # So?  What about this header?
40369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40370   yes:no: )
40371     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40373     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40374 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40375     ac_header_preproc=yes
40376     ;;
40377   no:yes:* )
40378     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40380     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40381 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40382     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40383 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40384     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40385 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40386     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40388     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40389 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40390     ( cat <<\_ASBOX
40391 ## ------------------------------------ ##
40392 ## Report this to bug-coreutils@gnu.org ##
40393 ## ------------------------------------ ##
40394 _ASBOX
40395      ) | sed "s/^/$as_me: WARNING:     /" >&2
40396     ;;
40397 esac
40398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40401   echo $ECHO_N "(cached) $ECHO_C" >&6
40402 else
40403   eval "$as_ac_Header=\$ac_header_preproc"
40404 fi
40405 ac_res=`eval echo '${'$as_ac_Header'}'`
40406                { echo "$as_me:$LINENO: result: $ac_res" >&5
40407 echo "${ECHO_T}$ac_res" >&6; }
40408
40409 fi
40410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40411   cat >>confdefs.h <<_ACEOF
40412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40413 _ACEOF
40414
40415 fi
40416
40417 done
40418
40419     if test $ac_cv_header_sys_inttypes_h = yes; then
40420       HAVE_SYS_INTTYPES_H=1
40421     else
40422       HAVE_SYS_INTTYPES_H=0
40423     fi
40424
40425     if test $ac_cv_header_sys_bitypes_h = yes; then
40426       HAVE_SYS_BITYPES_H=1
40427     else
40428       HAVE_SYS_BITYPES_H=0
40429     fi
40430
40431
40432
40433
40434
40435
40436
40437
40438
40439
40440   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
40441     { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
40442 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
40443 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
40444   echo $ECHO_N "(cached) $ECHO_C" >&6
40445 else
40446   if test "$cross_compiling" = yes; then
40447   # Depending upon the size, compute the lo and hi bounds.
40448 cat >conftest.$ac_ext <<_ACEOF
40449 /* confdefs.h.  */
40450 _ACEOF
40451 cat confdefs.h >>conftest.$ac_ext
40452 cat >>conftest.$ac_ext <<_ACEOF
40453 /* end confdefs.h.  */
40454
40455   #include <stddef.h>
40456   #include <signal.h>
40457   #if HAVE_WCHAR_H
40458     /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
40459        <wchar.h>.  */
40460   # include <stdio.h>
40461   # include <time.h>
40462   # include <wchar.h>
40463   #endif
40464
40465 #include <limits.h>
40466 int
40467 main ()
40468 {
40469 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
40470 test_array [0] = 0
40471
40472   ;
40473   return 0;
40474 }
40475 _ACEOF
40476 rm -f conftest.$ac_objext
40477 if { (ac_try="$ac_compile"
40478 case "(($ac_try" in
40479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40480   *) ac_try_echo=$ac_try;;
40481 esac
40482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40483   (eval "$ac_compile") 2>conftest.er1
40484   ac_status=$?
40485   grep -v '^ *+' conftest.er1 >conftest.err
40486   rm -f conftest.er1
40487   cat conftest.err >&5
40488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40489   (exit $ac_status); } &&
40490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40491   { (case "(($ac_try" in
40492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40493   *) ac_try_echo=$ac_try;;
40494 esac
40495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40496   (eval "$ac_try") 2>&5
40497   ac_status=$?
40498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40499   (exit $ac_status); }; } &&
40500          { ac_try='test -s conftest.$ac_objext'
40501   { (case "(($ac_try" in
40502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40503   *) ac_try_echo=$ac_try;;
40504 esac
40505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40506   (eval "$ac_try") 2>&5
40507   ac_status=$?
40508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40509   (exit $ac_status); }; }; then
40510   ac_lo=0 ac_mid=0
40511   while :; do
40512     cat >conftest.$ac_ext <<_ACEOF
40513 /* confdefs.h.  */
40514 _ACEOF
40515 cat confdefs.h >>conftest.$ac_ext
40516 cat >>conftest.$ac_ext <<_ACEOF
40517 /* end confdefs.h.  */
40518
40519   #include <stddef.h>
40520   #include <signal.h>
40521   #if HAVE_WCHAR_H
40522     /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
40523        <wchar.h>.  */
40524   # include <stdio.h>
40525   # include <time.h>
40526   # include <wchar.h>
40527   #endif
40528
40529 #include <limits.h>
40530 int
40531 main ()
40532 {
40533 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
40534 test_array [0] = 0
40535
40536   ;
40537   return 0;
40538 }
40539 _ACEOF
40540 rm -f conftest.$ac_objext
40541 if { (ac_try="$ac_compile"
40542 case "(($ac_try" in
40543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40544   *) ac_try_echo=$ac_try;;
40545 esac
40546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40547   (eval "$ac_compile") 2>conftest.er1
40548   ac_status=$?
40549   grep -v '^ *+' conftest.er1 >conftest.err
40550   rm -f conftest.er1
40551   cat conftest.err >&5
40552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40553   (exit $ac_status); } &&
40554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40555   { (case "(($ac_try" in
40556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40557   *) ac_try_echo=$ac_try;;
40558 esac
40559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40560   (eval "$ac_try") 2>&5
40561   ac_status=$?
40562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40563   (exit $ac_status); }; } &&
40564          { ac_try='test -s conftest.$ac_objext'
40565   { (case "(($ac_try" in
40566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40567   *) ac_try_echo=$ac_try;;
40568 esac
40569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40570   (eval "$ac_try") 2>&5
40571   ac_status=$?
40572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40573   (exit $ac_status); }; }; then
40574   ac_hi=$ac_mid; break
40575 else
40576   echo "$as_me: failed program was:" >&5
40577 sed 's/^/| /' conftest.$ac_ext >&5
40578
40579         ac_lo=`expr $ac_mid + 1`
40580                         if test $ac_lo -le $ac_mid; then
40581                           ac_lo= ac_hi=
40582                           break
40583                         fi
40584                         ac_mid=`expr 2 '*' $ac_mid + 1`
40585 fi
40586
40587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40588   done
40589 else
40590   echo "$as_me: failed program was:" >&5
40591 sed 's/^/| /' conftest.$ac_ext >&5
40592
40593         cat >conftest.$ac_ext <<_ACEOF
40594 /* confdefs.h.  */
40595 _ACEOF
40596 cat confdefs.h >>conftest.$ac_ext
40597 cat >>conftest.$ac_ext <<_ACEOF
40598 /* end confdefs.h.  */
40599
40600   #include <stddef.h>
40601   #include <signal.h>
40602   #if HAVE_WCHAR_H
40603     /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
40604        <wchar.h>.  */
40605   # include <stdio.h>
40606   # include <time.h>
40607   # include <wchar.h>
40608   #endif
40609
40610 #include <limits.h>
40611 int
40612 main ()
40613 {
40614 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
40615 test_array [0] = 0
40616
40617   ;
40618   return 0;
40619 }
40620 _ACEOF
40621 rm -f conftest.$ac_objext
40622 if { (ac_try="$ac_compile"
40623 case "(($ac_try" in
40624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40625   *) ac_try_echo=$ac_try;;
40626 esac
40627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40628   (eval "$ac_compile") 2>conftest.er1
40629   ac_status=$?
40630   grep -v '^ *+' conftest.er1 >conftest.err
40631   rm -f conftest.er1
40632   cat conftest.err >&5
40633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40634   (exit $ac_status); } &&
40635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40636   { (case "(($ac_try" in
40637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40638   *) ac_try_echo=$ac_try;;
40639 esac
40640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40641   (eval "$ac_try") 2>&5
40642   ac_status=$?
40643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40644   (exit $ac_status); }; } &&
40645          { ac_try='test -s conftest.$ac_objext'
40646   { (case "(($ac_try" in
40647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40648   *) ac_try_echo=$ac_try;;
40649 esac
40650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40651   (eval "$ac_try") 2>&5
40652   ac_status=$?
40653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40654   (exit $ac_status); }; }; then
40655   ac_hi=-1 ac_mid=-1
40656   while :; do
40657     cat >conftest.$ac_ext <<_ACEOF
40658 /* confdefs.h.  */
40659 _ACEOF
40660 cat confdefs.h >>conftest.$ac_ext
40661 cat >>conftest.$ac_ext <<_ACEOF
40662 /* end confdefs.h.  */
40663
40664   #include <stddef.h>
40665   #include <signal.h>
40666   #if HAVE_WCHAR_H
40667     /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
40668        <wchar.h>.  */
40669   # include <stdio.h>
40670   # include <time.h>
40671   # include <wchar.h>
40672   #endif
40673
40674 #include <limits.h>
40675 int
40676 main ()
40677 {
40678 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
40679 test_array [0] = 0
40680
40681   ;
40682   return 0;
40683 }
40684 _ACEOF
40685 rm -f conftest.$ac_objext
40686 if { (ac_try="$ac_compile"
40687 case "(($ac_try" in
40688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40689   *) ac_try_echo=$ac_try;;
40690 esac
40691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40692   (eval "$ac_compile") 2>conftest.er1
40693   ac_status=$?
40694   grep -v '^ *+' conftest.er1 >conftest.err
40695   rm -f conftest.er1
40696   cat conftest.err >&5
40697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40698   (exit $ac_status); } &&
40699          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40700   { (case "(($ac_try" in
40701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40702   *) ac_try_echo=$ac_try;;
40703 esac
40704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40705   (eval "$ac_try") 2>&5
40706   ac_status=$?
40707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40708   (exit $ac_status); }; } &&
40709          { ac_try='test -s conftest.$ac_objext'
40710   { (case "(($ac_try" in
40711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40712   *) ac_try_echo=$ac_try;;
40713 esac
40714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40715   (eval "$ac_try") 2>&5
40716   ac_status=$?
40717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40718   (exit $ac_status); }; }; then
40719   ac_lo=$ac_mid; break
40720 else
40721   echo "$as_me: failed program was:" >&5
40722 sed 's/^/| /' conftest.$ac_ext >&5
40723
40724         ac_hi=`expr '(' $ac_mid ')' - 1`
40725                         if test $ac_mid -le $ac_hi; then
40726                           ac_lo= ac_hi=
40727                           break
40728                         fi
40729                         ac_mid=`expr 2 '*' $ac_mid`
40730 fi
40731
40732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40733   done
40734 else
40735   echo "$as_me: failed program was:" >&5
40736 sed 's/^/| /' conftest.$ac_ext >&5
40737
40738         ac_lo= ac_hi=
40739 fi
40740
40741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40742 fi
40743
40744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40745 # Binary search between lo and hi bounds.
40746 while test "x$ac_lo" != "x$ac_hi"; do
40747   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40748   cat >conftest.$ac_ext <<_ACEOF
40749 /* confdefs.h.  */
40750 _ACEOF
40751 cat confdefs.h >>conftest.$ac_ext
40752 cat >>conftest.$ac_ext <<_ACEOF
40753 /* end confdefs.h.  */
40754
40755   #include <stddef.h>
40756   #include <signal.h>
40757   #if HAVE_WCHAR_H
40758     /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
40759        <wchar.h>.  */
40760   # include <stdio.h>
40761   # include <time.h>
40762   # include <wchar.h>
40763   #endif
40764
40765 #include <limits.h>
40766 int
40767 main ()
40768 {
40769 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
40770 test_array [0] = 0
40771
40772   ;
40773   return 0;
40774 }
40775 _ACEOF
40776 rm -f conftest.$ac_objext
40777 if { (ac_try="$ac_compile"
40778 case "(($ac_try" in
40779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40780   *) ac_try_echo=$ac_try;;
40781 esac
40782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40783   (eval "$ac_compile") 2>conftest.er1
40784   ac_status=$?
40785   grep -v '^ *+' conftest.er1 >conftest.err
40786   rm -f conftest.er1
40787   cat conftest.err >&5
40788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40789   (exit $ac_status); } &&
40790          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40791   { (case "(($ac_try" in
40792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40793   *) ac_try_echo=$ac_try;;
40794 esac
40795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40796   (eval "$ac_try") 2>&5
40797   ac_status=$?
40798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40799   (exit $ac_status); }; } &&
40800          { ac_try='test -s conftest.$ac_objext'
40801   { (case "(($ac_try" in
40802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40803   *) ac_try_echo=$ac_try;;
40804 esac
40805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40806   (eval "$ac_try") 2>&5
40807   ac_status=$?
40808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40809   (exit $ac_status); }; }; then
40810   ac_hi=$ac_mid
40811 else
40812   echo "$as_me: failed program was:" >&5
40813 sed 's/^/| /' conftest.$ac_ext >&5
40814
40815         ac_lo=`expr '(' $ac_mid ')' + 1`
40816 fi
40817
40818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40819 done
40820 case $ac_lo in
40821 ?*) result=$ac_lo;;
40822 '') result=unknown ;;
40823 esac
40824 else
40825   cat >conftest.$ac_ext <<_ACEOF
40826 /* confdefs.h.  */
40827 _ACEOF
40828 cat confdefs.h >>conftest.$ac_ext
40829 cat >>conftest.$ac_ext <<_ACEOF
40830 /* end confdefs.h.  */
40831
40832   #include <stddef.h>
40833   #include <signal.h>
40834   #if HAVE_WCHAR_H
40835     /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
40836        <wchar.h>.  */
40837   # include <stdio.h>
40838   # include <time.h>
40839   # include <wchar.h>
40840   #endif
40841
40842 #include <limits.h>
40843 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
40844 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
40845 #include <stdio.h>
40846 #include <stdlib.h>
40847 int
40848 main ()
40849 {
40850
40851   FILE *f = fopen ("conftest.val", "w");
40852   if (! f)
40853     return 1;
40854   if ((sizeof ($gltype) * CHAR_BIT) < 0)
40855     {
40856       long int i = longval ();
40857       if (i != (sizeof ($gltype) * CHAR_BIT))
40858         return 1;
40859       fprintf (f, "%ld\n", i);
40860     }
40861   else
40862     {
40863       unsigned long int i = ulongval ();
40864       if (i != (sizeof ($gltype) * CHAR_BIT))
40865         return 1;
40866       fprintf (f, "%lu\n", i);
40867     }
40868   return ferror (f) || fclose (f) != 0;
40869
40870   ;
40871   return 0;
40872 }
40873 _ACEOF
40874 rm -f conftest$ac_exeext
40875 if { (ac_try="$ac_link"
40876 case "(($ac_try" in
40877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40878   *) ac_try_echo=$ac_try;;
40879 esac
40880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40881   (eval "$ac_link") 2>&5
40882   ac_status=$?
40883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40884   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40885   { (case "(($ac_try" in
40886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40887   *) ac_try_echo=$ac_try;;
40888 esac
40889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40890   (eval "$ac_try") 2>&5
40891   ac_status=$?
40892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40893   (exit $ac_status); }; }; then
40894   result=`cat conftest.val`
40895 else
40896   echo "$as_me: program exited with status $ac_status" >&5
40897 echo "$as_me: failed program was:" >&5
40898 sed 's/^/| /' conftest.$ac_ext >&5
40899
40900 ( exit $ac_status )
40901 result=unknown
40902 fi
40903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40904 fi
40905 rm -f conftest.val
40906        eval gl_cv_bitsizeof_${gltype}=\$result
40907
40908 fi
40909 ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
40910                { echo "$as_me:$LINENO: result: $ac_res" >&5
40911 echo "${ECHO_T}$ac_res" >&6; }
40912     eval result=\$gl_cv_bitsizeof_${gltype}
40913     if test $result = unknown; then
40914                                                 result=0
40915     fi
40916     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
40917     cat >>confdefs.h <<_ACEOF
40918 #define BITSIZEOF_${GLTYPE} $result
40919 _ACEOF
40920
40921     eval BITSIZEOF_${GLTYPE}=\$result
40922   done
40923
40924
40925
40926
40927
40928
40929
40930   for gltype in sig_atomic_t wchar_t wint_t ; do
40931     { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
40932 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
40933 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
40934   echo $ECHO_N "(cached) $ECHO_C" >&6
40935 else
40936   cat >conftest.$ac_ext <<_ACEOF
40937 /* confdefs.h.  */
40938 _ACEOF
40939 cat confdefs.h >>conftest.$ac_ext
40940 cat >>conftest.$ac_ext <<_ACEOF
40941 /* end confdefs.h.  */
40942
40943   #include <stddef.h>
40944   #include <signal.h>
40945   #if HAVE_WCHAR_H
40946     /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
40947        <wchar.h>.  */
40948   # include <stdio.h>
40949   # include <time.h>
40950   # include <wchar.h>
40951   #endif
40952
40953             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
40954 int
40955 main ()
40956 {
40957
40958   ;
40959   return 0;
40960 }
40961 _ACEOF
40962 rm -f conftest.$ac_objext
40963 if { (ac_try="$ac_compile"
40964 case "(($ac_try" in
40965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40966   *) ac_try_echo=$ac_try;;
40967 esac
40968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40969   (eval "$ac_compile") 2>conftest.er1
40970   ac_status=$?
40971   grep -v '^ *+' conftest.er1 >conftest.err
40972   rm -f conftest.er1
40973   cat conftest.err >&5
40974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40975   (exit $ac_status); } &&
40976          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40977   { (case "(($ac_try" in
40978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40979   *) ac_try_echo=$ac_try;;
40980 esac
40981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40982   (eval "$ac_try") 2>&5
40983   ac_status=$?
40984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40985   (exit $ac_status); }; } &&
40986          { ac_try='test -s conftest.$ac_objext'
40987   { (case "(($ac_try" in
40988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40989   *) ac_try_echo=$ac_try;;
40990 esac
40991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40992   (eval "$ac_try") 2>&5
40993   ac_status=$?
40994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40995   (exit $ac_status); }; }; then
40996   result=yes
40997 else
40998   echo "$as_me: failed program was:" >&5
40999 sed 's/^/| /' conftest.$ac_ext >&5
41000
41001         result=no
41002 fi
41003
41004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41005        eval gl_cv_type_${gltype}_signed=\$result
41006
41007 fi
41008 ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
41009                { echo "$as_me:$LINENO: result: $ac_res" >&5
41010 echo "${ECHO_T}$ac_res" >&6; }
41011     eval result=\$gl_cv_type_${gltype}_signed
41012     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
41013     if test "$result" = yes; then
41014       cat >>confdefs.h <<_ACEOF
41015 #define HAVE_SIGNED_${GLTYPE} 1
41016 _ACEOF
41017
41018       eval HAVE_SIGNED_${GLTYPE}=1
41019     else
41020       eval HAVE_SIGNED_${GLTYPE}=0
41021     fi
41022   done
41023
41024
41025   gl_cv_type_ptrdiff_t_signed=yes
41026   gl_cv_type_size_t_signed=no
41027
41028
41029
41030
41031
41032
41033
41034   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
41035     { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
41036 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; }
41037 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
41038   echo $ECHO_N "(cached) $ECHO_C" >&6
41039 else
41040   eval gl_cv_type_${gltype}_suffix=no
41041        eval result=\$gl_cv_type_${gltype}_signed
41042        if test "$result" = yes; then
41043          glsufu=
41044        else
41045          glsufu=u
41046        fi
41047        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
41048          case $glsuf in
41049            '')  gltype1='int';;
41050            l)   gltype1='long int';;
41051            ll)  gltype1='long long int';;
41052            i64) gltype1='__int64';;
41053            u)   gltype1='unsigned int';;
41054            ul)  gltype1='unsigned long int';;
41055            ull) gltype1='unsigned long long int';;
41056            ui64)gltype1='unsigned __int64';;
41057          esac
41058          cat >conftest.$ac_ext <<_ACEOF
41059 /* confdefs.h.  */
41060 _ACEOF
41061 cat confdefs.h >>conftest.$ac_ext
41062 cat >>conftest.$ac_ext <<_ACEOF
41063 /* end confdefs.h.  */
41064
41065   #include <stddef.h>
41066   #include <signal.h>
41067   #if HAVE_WCHAR_H
41068     /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
41069        <wchar.h>.  */
41070   # include <stdio.h>
41071   # include <time.h>
41072   # include <wchar.h>
41073   #endif
41074
41075               extern $gltype foo;
41076               extern $gltype1 foo;
41077 int
41078 main ()
41079 {
41080
41081   ;
41082   return 0;
41083 }
41084 _ACEOF
41085 rm -f conftest.$ac_objext
41086 if { (ac_try="$ac_compile"
41087 case "(($ac_try" in
41088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41089   *) ac_try_echo=$ac_try;;
41090 esac
41091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41092   (eval "$ac_compile") 2>conftest.er1
41093   ac_status=$?
41094   grep -v '^ *+' conftest.er1 >conftest.err
41095   rm -f conftest.er1
41096   cat conftest.err >&5
41097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41098   (exit $ac_status); } &&
41099          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41100   { (case "(($ac_try" in
41101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41102   *) ac_try_echo=$ac_try;;
41103 esac
41104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41105   (eval "$ac_try") 2>&5
41106   ac_status=$?
41107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41108   (exit $ac_status); }; } &&
41109          { ac_try='test -s conftest.$ac_objext'
41110   { (case "(($ac_try" in
41111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41112   *) ac_try_echo=$ac_try;;
41113 esac
41114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41115   (eval "$ac_try") 2>&5
41116   ac_status=$?
41117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41118   (exit $ac_status); }; }; then
41119   eval gl_cv_type_${gltype}_suffix=\$glsuf
41120 else
41121   echo "$as_me: failed program was:" >&5
41122 sed 's/^/| /' conftest.$ac_ext >&5
41123
41124
41125 fi
41126
41127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41128          eval test \"\$gl_cv_type_${gltype}_suffix\" != no && break
41129        done
41130 fi
41131 ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'`
41132                { echo "$as_me:$LINENO: result: $ac_res" >&5
41133 echo "${ECHO_T}$ac_res" >&6; }
41134     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
41135     eval result=\$gl_cv_type_${gltype}_suffix
41136     test "$result" = no && result=
41137     eval ${GLTYPE}_SUFFIX=\$result
41138     cat >>confdefs.h <<_ACEOF
41139 #define ${GLTYPE}_SUFFIX $result
41140 _ACEOF
41141
41142   done
41143
41144
41145
41146     STDINT_H=stdint.h
41147   fi
41148
41149
41150
41151
41152   case " $LIBOBJS " in
41153   *" fopen-safer.$ac_objext "* ) ;;
41154   *) LIBOBJS="$LIBOBJS fopen-safer.$ac_objext"
41155  ;;
41156 esac
41157
41158
41159
41160
41161   case " $LIBOBJS " in
41162   *" mkstemp-safer.$ac_objext "* ) ;;
41163   *) LIBOBJS="$LIBOBJS mkstemp-safer.$ac_objext"
41164  ;;
41165 esac
41166
41167
41168
41169
41170       case " $LIBOBJS " in
41171   *" strcasecmp.$ac_objext "* ) ;;
41172   *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
41173  ;;
41174 esac
41175
41176
41177 cat >>confdefs.h <<\_ACEOF
41178 #define strcasecmp rpl_strcasecmp
41179 _ACEOF
41180
41181
41182
41183   :
41184
41185
41186
41187
41188 for ac_func in strncasecmp
41189 do
41190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41191 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41193 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41194   echo $ECHO_N "(cached) $ECHO_C" >&6
41195 else
41196   cat >conftest.$ac_ext <<_ACEOF
41197 /* confdefs.h.  */
41198 _ACEOF
41199 cat confdefs.h >>conftest.$ac_ext
41200 cat >>conftest.$ac_ext <<_ACEOF
41201 /* end confdefs.h.  */
41202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41204 #define $ac_func innocuous_$ac_func
41205
41206 /* System header to define __stub macros and hopefully few prototypes,
41207     which can conflict with char $ac_func (); below.
41208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41209     <limits.h> exists even on freestanding compilers.  */
41210
41211 #ifdef __STDC__
41212 # include <limits.h>
41213 #else
41214 # include <assert.h>
41215 #endif
41216
41217 #undef $ac_func
41218
41219 /* Override any GCC internal prototype to avoid an error.
41220    Use char because int might match the return type of a GCC
41221    builtin and then its argument prototype would still apply.  */
41222 #ifdef __cplusplus
41223 extern "C"
41224 #endif
41225 char $ac_func ();
41226 /* The GNU C library defines this for functions which it implements
41227     to always fail with ENOSYS.  Some functions are actually named
41228     something starting with __ and the normal name is an alias.  */
41229 #if defined __stub_$ac_func || defined __stub___$ac_func
41230 choke me
41231 #endif
41232
41233 int
41234 main ()
41235 {
41236 return $ac_func ();
41237   ;
41238   return 0;
41239 }
41240 _ACEOF
41241 rm -f conftest.$ac_objext conftest$ac_exeext
41242 if { (ac_try="$ac_link"
41243 case "(($ac_try" in
41244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41245   *) ac_try_echo=$ac_try;;
41246 esac
41247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41248   (eval "$ac_link") 2>conftest.er1
41249   ac_status=$?
41250   grep -v '^ *+' conftest.er1 >conftest.err
41251   rm -f conftest.er1
41252   cat conftest.err >&5
41253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41254   (exit $ac_status); } &&
41255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41256   { (case "(($ac_try" in
41257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41258   *) ac_try_echo=$ac_try;;
41259 esac
41260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41261   (eval "$ac_try") 2>&5
41262   ac_status=$?
41263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41264   (exit $ac_status); }; } &&
41265          { ac_try='test -s conftest$ac_exeext'
41266   { (case "(($ac_try" in
41267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41268   *) ac_try_echo=$ac_try;;
41269 esac
41270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41271   (eval "$ac_try") 2>&5
41272   ac_status=$?
41273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41274   (exit $ac_status); }; }; then
41275   eval "$as_ac_var=yes"
41276 else
41277   echo "$as_me: failed program was:" >&5
41278 sed 's/^/| /' conftest.$ac_ext >&5
41279
41280         eval "$as_ac_var=no"
41281 fi
41282
41283 rm -f core conftest.err conftest.$ac_objext \
41284       conftest$ac_exeext conftest.$ac_ext
41285 fi
41286 ac_res=`eval echo '${'$as_ac_var'}'`
41287                { echo "$as_me:$LINENO: result: $ac_res" >&5
41288 echo "${ECHO_T}$ac_res" >&6; }
41289 if test `eval echo '${'$as_ac_var'}'` = yes; then
41290   cat >>confdefs.h <<_ACEOF
41291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41292 _ACEOF
41293
41294 else
41295   case " $LIBOBJS " in
41296   *" $ac_func.$ac_objext "* ) ;;
41297   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
41298  ;;
41299 esac
41300
41301 fi
41302 done
41303
41304
41305   if test $ac_cv_func_strncasecmp = no; then
41306
41307   :
41308
41309   fi
41310
41311
41312 { echo "$as_me:$LINENO: checking for inline" >&5
41313 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
41314 if test "${ac_cv_c_inline+set}" = set; then
41315   echo $ECHO_N "(cached) $ECHO_C" >&6
41316 else
41317   ac_cv_c_inline=no
41318 for ac_kw in inline __inline__ __inline; do
41319   cat >conftest.$ac_ext <<_ACEOF
41320 /* confdefs.h.  */
41321 _ACEOF
41322 cat confdefs.h >>conftest.$ac_ext
41323 cat >>conftest.$ac_ext <<_ACEOF
41324 /* end confdefs.h.  */
41325 #ifndef __cplusplus
41326 typedef int foo_t;
41327 static $ac_kw foo_t static_foo () {return 0; }
41328 $ac_kw foo_t foo () {return 0; }
41329 #endif
41330
41331 _ACEOF
41332 rm -f conftest.$ac_objext
41333 if { (ac_try="$ac_compile"
41334 case "(($ac_try" in
41335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41336   *) ac_try_echo=$ac_try;;
41337 esac
41338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41339   (eval "$ac_compile") 2>conftest.er1
41340   ac_status=$?
41341   grep -v '^ *+' conftest.er1 >conftest.err
41342   rm -f conftest.er1
41343   cat conftest.err >&5
41344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41345   (exit $ac_status); } &&
41346          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41347   { (case "(($ac_try" in
41348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41349   *) ac_try_echo=$ac_try;;
41350 esac
41351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41352   (eval "$ac_try") 2>&5
41353   ac_status=$?
41354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41355   (exit $ac_status); }; } &&
41356          { ac_try='test -s conftest.$ac_objext'
41357   { (case "(($ac_try" in
41358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41359   *) ac_try_echo=$ac_try;;
41360 esac
41361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41362   (eval "$ac_try") 2>&5
41363   ac_status=$?
41364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41365   (exit $ac_status); }; }; then
41366   ac_cv_c_inline=$ac_kw
41367 else
41368   echo "$as_me: failed program was:" >&5
41369 sed 's/^/| /' conftest.$ac_ext >&5
41370
41371
41372 fi
41373
41374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41375   test "$ac_cv_c_inline" != no && break
41376 done
41377
41378 fi
41379 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
41380 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
41381
41382
41383 case $ac_cv_c_inline in
41384   inline | yes) ;;
41385   *)
41386     case $ac_cv_c_inline in
41387       no) ac_val=;;
41388       *) ac_val=$ac_cv_c_inline;;
41389     esac
41390     cat >>confdefs.h <<_ACEOF
41391 #ifndef __cplusplus
41392 #define inline $ac_val
41393 #endif
41394 _ACEOF
41395     ;;
41396 esac
41397
41398
41399
41400   case " $LIBOBJS " in
41401   *" strintcmp.$ac_objext "* ) ;;
41402   *) LIBOBJS="$LIBOBJS strintcmp.$ac_objext"
41403  ;;
41404 esac
41405
41406
41407
41408
41409
41410
41411   case " $LIBOBJS " in
41412   *" strnumcmp.$ac_objext "* ) ;;
41413   *) LIBOBJS="$LIBOBJS strnumcmp.$ac_objext"
41414  ;;
41415 esac
41416
41417
41418
41419
41420
41421
41422   case " $LIBOBJS " in
41423   *" stripslash.$ac_objext "* ) ;;
41424   *) LIBOBJS="$LIBOBJS stripslash.$ac_objext"
41425  ;;
41426 esac
41427
41428
41429
41430
41431
41432
41433
41434
41435
41436   { echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
41437 echo $ECHO_N "checking whether localtime_r is compatible with its POSIX signature... $ECHO_C" >&6; }
41438 if test "${gl_cv_time_r_posix+set}" = set; then
41439   echo $ECHO_N "(cached) $ECHO_C" >&6
41440 else
41441   cat >conftest.$ac_ext <<_ACEOF
41442 /* confdefs.h.  */
41443 _ACEOF
41444 cat confdefs.h >>conftest.$ac_ext
41445 cat >>conftest.$ac_ext <<_ACEOF
41446 /* end confdefs.h.  */
41447 #include <time.h>
41448 int
41449 main ()
41450 {
41451 /* We don't need to append 'restrict's to the argument types,
41452            even though the POSIX signature has the 'restrict's,
41453            since C99 says they can't affect type compatibility.  */
41454         struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
41455   ;
41456   return 0;
41457 }
41458 _ACEOF
41459 rm -f conftest.$ac_objext
41460 if { (ac_try="$ac_compile"
41461 case "(($ac_try" in
41462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41463   *) ac_try_echo=$ac_try;;
41464 esac
41465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41466   (eval "$ac_compile") 2>conftest.er1
41467   ac_status=$?
41468   grep -v '^ *+' conftest.er1 >conftest.err
41469   rm -f conftest.er1
41470   cat conftest.err >&5
41471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41472   (exit $ac_status); } &&
41473          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41474   { (case "(($ac_try" in
41475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41476   *) ac_try_echo=$ac_try;;
41477 esac
41478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41479   (eval "$ac_try") 2>&5
41480   ac_status=$?
41481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41482   (exit $ac_status); }; } &&
41483          { ac_try='test -s conftest.$ac_objext'
41484   { (case "(($ac_try" in
41485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41486   *) ac_try_echo=$ac_try;;
41487 esac
41488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41489   (eval "$ac_try") 2>&5
41490   ac_status=$?
41491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41492   (exit $ac_status); }; }; then
41493   gl_cv_time_r_posix=yes
41494 else
41495   echo "$as_me: failed program was:" >&5
41496 sed 's/^/| /' conftest.$ac_ext >&5
41497
41498         gl_cv_time_r_posix=no
41499 fi
41500
41501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41502 fi
41503 { echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
41504 echo "${ECHO_T}$gl_cv_time_r_posix" >&6; }
41505   if test $gl_cv_time_r_posix = yes; then
41506
41507 cat >>confdefs.h <<\_ACEOF
41508 #define HAVE_TIME_R_POSIX 1
41509 _ACEOF
41510
41511   else
41512     case " $LIBOBJS " in
41513   *" time_r.$ac_objext "* ) ;;
41514   *) LIBOBJS="$LIBOBJS time_r.$ac_objext"
41515  ;;
41516 esac
41517
41518
41519   :
41520
41521   fi
41522
41523
41524     :
41525
41526
41527
41528   case " $LIBOBJS " in
41529   *" dup-safer.$ac_objext "* ) ;;
41530   *) LIBOBJS="$LIBOBJS dup-safer.$ac_objext"
41531  ;;
41532 esac
41533
41534   case " $LIBOBJS " in
41535   *" fd-safer.$ac_objext "* ) ;;
41536   *) LIBOBJS="$LIBOBJS fd-safer.$ac_objext"
41537  ;;
41538 esac
41539
41540   case " $LIBOBJS " in
41541   *" pipe-safer.$ac_objext "* ) ;;
41542   *) LIBOBJS="$LIBOBJS pipe-safer.$ac_objext"
41543  ;;
41544 esac
41545
41546
41547
41548
41549
41550
41551
41552
41553
41554
41555
41556
41557   case " $LIBOBJS " in
41558   *" unlinkdir.$ac_objext "* ) ;;
41559   *) LIBOBJS="$LIBOBJS unlinkdir.$ac_objext"
41560  ;;
41561 esac
41562
41563
41564   # The Hurd, the Linux kernel, the FreeBSD kernel version 2.2 and later,
41565   # and Cygwin never let anyone (even root) unlink directories.
41566   # If anyone knows of another system for which unlink can never
41567   # remove a directory, please report it to <bug-coreutils@gnu.org>.
41568   # Unfortunately this is difficult to test for, since it requires root access
41569   # and might create garbage in the file system,
41570   # so the code below simply relies on the kernel name and version number.
41571   case $host in
41572   *-*-gnu0-9* | \
41573   *-*-linux-* | *-*-linux | \
41574   *-*-freebsd2.2* | *-*-freebsd3-9* | *-*-freebsd1-90-9* | \
41575   *-cygwin)
41576
41577 cat >>confdefs.h <<\_ACEOF
41578 #define UNLINK_CANNOT_UNLINK_DIR 1
41579 _ACEOF
41580 ;;
41581   esac
41582
41583
41584
41585   case " $LIBOBJS " in
41586   *" userspec.$ac_objext "* ) ;;
41587   *) LIBOBJS="$LIBOBJS userspec.$ac_objext"
41588  ;;
41589 esac
41590
41591
41592
41593
41594
41595
41596
41597
41598
41599
41600   { echo "$as_me:$LINENO: checking determine whether the utimes function works" >&5
41601 echo $ECHO_N "checking determine whether the utimes function works... $ECHO_C" >&6; }
41602 if test "${gl_cv_func_working_utimes+set}" = set; then
41603   echo $ECHO_N "(cached) $ECHO_C" >&6
41604 else
41605
41606   if test "$cross_compiling" = yes; then
41607   gl_cv_func_working_utimes=no
41608 else
41609   cat >conftest.$ac_ext <<_ACEOF
41610 /* confdefs.h.  */
41611 _ACEOF
41612 cat confdefs.h >>conftest.$ac_ext
41613 cat >>conftest.$ac_ext <<_ACEOF
41614 /* end confdefs.h.  */
41615
41616 #include <sys/types.h>
41617 #include <sys/stat.h>
41618 #include <fcntl.h>
41619 #include <sys/time.h>
41620 #include <time.h>
41621 #include <unistd.h>
41622 #include <stdlib.h>
41623 #include <stdio.h>
41624 #include <utime.h>
41625
41626 int
41627 main ()
41628 {
41629   static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
41630   struct stat sbuf;
41631   char const *file = "conftest.utimes";
41632   FILE *f;
41633   time_t now;
41634   int fd;
41635
41636   int ok = ((f = fopen (file, "w"))
41637             && fclose (f) == 0
41638             && utimes (file, timeval) == 0
41639             && lstat (file, &sbuf) == 0
41640             && sbuf.st_atime == timeval[0].tv_sec
41641             && sbuf.st_mtime == timeval[1].tv_sec);
41642   unlink (file);
41643   if (!ok)
41644     exit (1);
41645
41646   ok =
41647     ((f = fopen (file, "w"))
41648      && fclose (f) == 0
41649      && time (&now) != (time_t)-1
41650      && utimes (file, NULL) == 0
41651      && lstat (file, &sbuf) == 0
41652      && now - sbuf.st_atime <= 2
41653      && now - sbuf.st_mtime <= 2);
41654   unlink (file);
41655   if (!ok)
41656     exit (1);
41657
41658   ok = (0 <= (fd = open (file, O_WRONLY|O_CREAT, 0444))
41659               && close (fd) == 0
41660               && utimes (file, NULL) == 0);
41661   unlink (file);
41662
41663   exit (!ok);
41664 }
41665
41666 _ACEOF
41667 rm -f conftest$ac_exeext
41668 if { (ac_try="$ac_link"
41669 case "(($ac_try" in
41670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41671   *) ac_try_echo=$ac_try;;
41672 esac
41673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41674   (eval "$ac_link") 2>&5
41675   ac_status=$?
41676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41677   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41678   { (case "(($ac_try" in
41679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41680   *) ac_try_echo=$ac_try;;
41681 esac
41682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41683   (eval "$ac_try") 2>&5
41684   ac_status=$?
41685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41686   (exit $ac_status); }; }; then
41687   gl_cv_func_working_utimes=yes
41688 else
41689   echo "$as_me: program exited with status $ac_status" >&5
41690 echo "$as_me: failed program was:" >&5
41691 sed 's/^/| /' conftest.$ac_ext >&5
41692
41693 ( exit $ac_status )
41694 gl_cv_func_working_utimes=no
41695 fi
41696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41697 fi
41698
41699
41700 fi
41701 { echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
41702 echo "${ECHO_T}$gl_cv_func_working_utimes" >&6; }
41703
41704   if test $gl_cv_func_working_utimes = yes; then
41705
41706 cat >>confdefs.h <<\_ACEOF
41707 #define HAVE_WORKING_UTIMES 1
41708 _ACEOF
41709
41710   fi
41711
41712
41713
41714   case " $LIBOBJS " in
41715   *" utimecmp.$ac_objext "* ) ;;
41716   *) LIBOBJS="$LIBOBJS utimecmp.$ac_objext"
41717  ;;
41718 esac
41719
41720
41721
41722
41723   :
41724
41725
41726
41727
41728
41729
41730
41731
41732
41733
41734
41735
41736
41737   { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
41738 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
41739 if test "${fu_cv_sys_struct_utimbuf+set}" = set; then
41740   echo $ECHO_N "(cached) $ECHO_C" >&6
41741 else
41742   cat >conftest.$ac_ext <<_ACEOF
41743 /* confdefs.h.  */
41744 _ACEOF
41745 cat confdefs.h >>conftest.$ac_ext
41746 cat >>conftest.$ac_ext <<_ACEOF
41747 /* end confdefs.h.  */
41748
41749 #ifdef TIME_WITH_SYS_TIME
41750 # include <sys/time.h>
41751 # include <time.h>
41752 #else
41753 # ifdef HAVE_SYS_TIME_H
41754 #  include <sys/time.h>
41755 # else
41756 #  include <time.h>
41757 # endif
41758 #endif
41759 #ifdef HAVE_UTIME_H
41760 # include <utime.h>
41761 #endif
41762
41763 int
41764 main ()
41765 {
41766 static struct utimbuf x; x.actime = x.modtime;
41767   ;
41768   return 0;
41769 }
41770 _ACEOF
41771 rm -f conftest.$ac_objext
41772 if { (ac_try="$ac_compile"
41773 case "(($ac_try" in
41774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41775   *) ac_try_echo=$ac_try;;
41776 esac
41777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41778   (eval "$ac_compile") 2>conftest.er1
41779   ac_status=$?
41780   grep -v '^ *+' conftest.er1 >conftest.err
41781   rm -f conftest.er1
41782   cat conftest.err >&5
41783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41784   (exit $ac_status); } &&
41785          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41786   { (case "(($ac_try" in
41787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41788   *) ac_try_echo=$ac_try;;
41789 esac
41790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41791   (eval "$ac_try") 2>&5
41792   ac_status=$?
41793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41794   (exit $ac_status); }; } &&
41795          { ac_try='test -s conftest.$ac_objext'
41796   { (case "(($ac_try" in
41797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41798   *) ac_try_echo=$ac_try;;
41799 esac
41800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41801   (eval "$ac_try") 2>&5
41802   ac_status=$?
41803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41804   (exit $ac_status); }; }; then
41805   fu_cv_sys_struct_utimbuf=yes
41806 else
41807   echo "$as_me: failed program was:" >&5
41808 sed 's/^/| /' conftest.$ac_ext >&5
41809
41810         fu_cv_sys_struct_utimbuf=no
41811 fi
41812
41813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41814
41815 fi
41816 { echo "$as_me:$LINENO: result: $fu_cv_sys_struct_utimbuf" >&5
41817 echo "${ECHO_T}$fu_cv_sys_struct_utimbuf" >&6; }
41818
41819   if test $fu_cv_sys_struct_utimbuf = yes; then
41820
41821 cat >>confdefs.h <<\_ACEOF
41822 #define HAVE_STRUCT_UTIMBUF 1
41823 _ACEOF
41824
41825   fi
41826
41827
41828
41829
41830
41831
41832
41833   case " $LIBOBJS " in
41834   *" utimens.$ac_objext "* ) ;;
41835   *) LIBOBJS="$LIBOBJS utimens.$ac_objext"
41836  ;;
41837 esac
41838
41839
41840
41841
41842
41843
41844
41845
41846
41847
41848
41849
41850
41851
41852
41853
41854
41855   case " $LIBOBJS " in
41856   *" xmalloc.$ac_objext "* ) ;;
41857   *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
41858  ;;
41859 esac
41860
41861
41862
41863   :
41864
41865
41866
41867   :
41868
41869
41870
41871
41872
41873    { echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
41874 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6; }
41875 if test "${gl_cv_func_getcwd_null+set}" = set; then
41876   echo $ECHO_N "(cached) $ECHO_C" >&6
41877 else
41878   if test "$cross_compiling" = yes; then
41879   gl_cv_func_getcwd_null=no
41880 else
41881   cat >conftest.$ac_ext <<_ACEOF
41882 /* confdefs.h.  */
41883 _ACEOF
41884 cat confdefs.h >>conftest.$ac_ext
41885 cat >>conftest.$ac_ext <<_ACEOF
41886 /* end confdefs.h.  */
41887
41888 #        include <stdlib.h>
41889 #        include <unistd.h>
41890 #        ifndef getcwd
41891          char *getcwd ();
41892 #        endif
41893          int
41894          main ()
41895          {
41896            if (chdir ("/") != 0)
41897              exit (1);
41898            else
41899              {
41900                char *f = getcwd (NULL, 0);
41901                exit (! (f && f[0] == '/' && !f[1]));
41902              }
41903          }
41904 _ACEOF
41905 rm -f conftest$ac_exeext
41906 if { (ac_try="$ac_link"
41907 case "(($ac_try" in
41908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41909   *) ac_try_echo=$ac_try;;
41910 esac
41911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41912   (eval "$ac_link") 2>&5
41913   ac_status=$?
41914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41915   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41916   { (case "(($ac_try" in
41917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41918   *) ac_try_echo=$ac_try;;
41919 esac
41920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41921   (eval "$ac_try") 2>&5
41922   ac_status=$?
41923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41924   (exit $ac_status); }; }; then
41925   gl_cv_func_getcwd_null=yes
41926 else
41927   echo "$as_me: program exited with status $ac_status" >&5
41928 echo "$as_me: failed program was:" >&5
41929 sed 's/^/| /' conftest.$ac_ext >&5
41930
41931 ( exit $ac_status )
41932 gl_cv_func_getcwd_null=no
41933 fi
41934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41935 fi
41936
41937
41938 fi
41939 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_null" >&5
41940 echo "${ECHO_T}$gl_cv_func_getcwd_null" >&6; }
41941
41942 { echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
41943 echo $ECHO_N "checking whether getcwd is declared... $ECHO_C" >&6; }
41944 if test "${ac_cv_have_decl_getcwd+set}" = set; then
41945   echo $ECHO_N "(cached) $ECHO_C" >&6
41946 else
41947   cat >conftest.$ac_ext <<_ACEOF
41948 /* confdefs.h.  */
41949 _ACEOF
41950 cat confdefs.h >>conftest.$ac_ext
41951 cat >>conftest.$ac_ext <<_ACEOF
41952 /* end confdefs.h.  */
41953 $ac_includes_default
41954 int
41955 main ()
41956 {
41957 #ifndef getcwd
41958   char *p = (char *) getcwd;
41959   return !p;
41960 #endif
41961
41962   ;
41963   return 0;
41964 }
41965 _ACEOF
41966 rm -f conftest.$ac_objext
41967 if { (ac_try="$ac_compile"
41968 case "(($ac_try" in
41969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41970   *) ac_try_echo=$ac_try;;
41971 esac
41972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41973   (eval "$ac_compile") 2>conftest.er1
41974   ac_status=$?
41975   grep -v '^ *+' conftest.er1 >conftest.err
41976   rm -f conftest.er1
41977   cat conftest.err >&5
41978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41979   (exit $ac_status); } &&
41980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41981   { (case "(($ac_try" in
41982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41983   *) ac_try_echo=$ac_try;;
41984 esac
41985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41986   (eval "$ac_try") 2>&5
41987   ac_status=$?
41988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41989   (exit $ac_status); }; } &&
41990          { ac_try='test -s conftest.$ac_objext'
41991   { (case "(($ac_try" in
41992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41993   *) ac_try_echo=$ac_try;;
41994 esac
41995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41996   (eval "$ac_try") 2>&5
41997   ac_status=$?
41998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41999   (exit $ac_status); }; }; then
42000   ac_cv_have_decl_getcwd=yes
42001 else
42002   echo "$as_me: failed program was:" >&5
42003 sed 's/^/| /' conftest.$ac_ext >&5
42004
42005         ac_cv_have_decl_getcwd=no
42006 fi
42007
42008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42009 fi
42010 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
42011 echo "${ECHO_T}$ac_cv_have_decl_getcwd" >&6; }
42012 if test $ac_cv_have_decl_getcwd = yes; then
42013
42014 cat >>confdefs.h <<_ACEOF
42015 #define HAVE_DECL_GETCWD 1
42016 _ACEOF
42017
42018
42019 else
42020   cat >>confdefs.h <<_ACEOF
42021 #define HAVE_DECL_GETCWD 0
42022 _ACEOF
42023
42024
42025 fi
42026
42027
42028
42029
42030
42031   gl_abort_bug=no
42032   case $gl_cv_func_getcwd_null in
42033   yes)
42034
42035
42036
42037
42038
42039
42040   { echo "$as_me:$LINENO: checking whether getcwd handles long file names properly" >&5
42041 echo $ECHO_N "checking whether getcwd handles long file names properly... $ECHO_C" >&6; }
42042 if test "${gl_cv_func_getcwd_path_max+set}" = set; then
42043   echo $ECHO_N "(cached) $ECHO_C" >&6
42044 else
42045   # Arrange for deletion of the temporary directory this test creates.
42046      ac_clean_files="$ac_clean_files confdir3"
42047      if test "$cross_compiling" = yes; then
42048   gl_cv_func_getcwd_path_max=no
42049 else
42050   cat >conftest.$ac_ext <<_ACEOF
42051 /* confdefs.h.  */
42052 _ACEOF
42053 cat confdefs.h >>conftest.$ac_ext
42054 cat >>conftest.$ac_ext <<_ACEOF
42055 /* end confdefs.h.  */
42056
42057 #include <errno.h>
42058 #include <stdlib.h>
42059 #include <unistd.h>
42060 #include <string.h>
42061 #include <limits.h>
42062 #include <sys/stat.h>
42063 #include <sys/types.h>
42064 #include <fcntl.h>
42065
42066 #ifndef AT_FDCWD
42067 # define AT_FDCWD 0
42068 #endif
42069 #ifdef ENAMETOOLONG
42070 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
42071 #else
42072 # define is_ENAMETOOLONG(x) 0
42073 #endif
42074
42075 /* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
42076 #undef mkdir
42077
42078 #ifndef S_IRWXU
42079 # define S_IRWXU 0700
42080 #endif
42081
42082 /* The length of this name must be 8.  */
42083 #define DIR_NAME "confdir3"
42084 #define DIR_NAME_LEN 8
42085 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
42086
42087 /* The length of "../".  */
42088 #define DOTDOTSLASH_LEN 3
42089
42090 /* Leftover bytes in the buffer, to work around library or OS bugs.  */
42091 #define BUF_SLOP 20
42092
42093 int
42094 main ()
42095 {
42096 #ifndef PATH_MAX
42097   /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
42098      at least not on a local file system.  And if we were to start worrying
42099      about remote file systems, we'd have to enable the wrapper function
42100      all of the time, just to be safe.  That's not worth the cost.  */
42101   exit (0);
42102 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
42103         - DIR_NAME_SIZE - BUF_SLOP) \
42104        <= PATH_MAX)
42105   /* FIXME: Assuming there's a system for which this is true,
42106      this should be done in a compile test.  */
42107   exit (0);
42108 #else
42109   char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
42110            + DIR_NAME_SIZE + BUF_SLOP];
42111   char *cwd = getcwd (buf, PATH_MAX);
42112   size_t initial_cwd_len;
42113   size_t cwd_len;
42114   int fail = 0;
42115   size_t n_chdirs = 0;
42116
42117   if (cwd == NULL)
42118     exit (1);
42119
42120   cwd_len = initial_cwd_len = strlen (cwd);
42121
42122   while (1)
42123     {
42124       size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
42125       char *c = NULL;
42126
42127       cwd_len += DIR_NAME_SIZE;
42128       /* If mkdir or chdir fails, it could be that this system cannot create
42129          any file with an absolute name longer than PATH_MAX, such as cygwin.
42130          If so, leave fail as 0, because the current working directory can't
42131          be too long for getcwd if it can't even be created.  For other
42132          errors, be pessimistic and consider that as a failure, too.  */
42133       if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
42134         {
42135           if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
42136             fail = 2;
42137           break;
42138         }
42139
42140       if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
42141         {
42142           c = getcwd (buf, PATH_MAX);
42143           if (!c && errno == ENOENT)
42144             {
42145               fail = 1;
42146               break;
42147             }
42148           if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno)))
42149             {
42150               fail = 2;
42151               break;
42152             }
42153         }
42154
42155       if (dotdot_max <= cwd_len - initial_cwd_len)
42156         {
42157           if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
42158             break;
42159           c = getcwd (buf, cwd_len + 1);
42160           if (!c)
42161             {
42162               if (! (errno == ERANGE || errno == ENOENT
42163                      || is_ENAMETOOLONG (errno)))
42164                 {
42165                   fail = 2;
42166                   break;
42167                 }
42168               if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
42169                 {
42170                   fail = 1;
42171                   break;
42172                 }
42173             }
42174         }
42175
42176       if (c && strlen (c) != cwd_len)
42177         {
42178           fail = 2;
42179           break;
42180         }
42181       ++n_chdirs;
42182     }
42183
42184   /* Leaving behind such a deep directory is not polite.
42185      So clean up here, right away, even though the driving
42186      shell script would also clean up.  */
42187   {
42188     size_t i;
42189
42190     /* Try rmdir first, in case the chdir failed.  */
42191     rmdir (DIR_NAME);
42192     for (i = 0; i <= n_chdirs; i++)
42193       {
42194         if (chdir ("..") < 0)
42195           break;
42196         rmdir (DIR_NAME);
42197       }
42198   }
42199
42200   exit (fail);
42201 #endif
42202 }
42203
42204 _ACEOF
42205 rm -f conftest$ac_exeext
42206 if { (ac_try="$ac_link"
42207 case "(($ac_try" in
42208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42209   *) ac_try_echo=$ac_try;;
42210 esac
42211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42212   (eval "$ac_link") 2>&5
42213   ac_status=$?
42214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42215   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42216   { (case "(($ac_try" in
42217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42218   *) ac_try_echo=$ac_try;;
42219 esac
42220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42221   (eval "$ac_try") 2>&5
42222   ac_status=$?
42223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42224   (exit $ac_status); }; }; then
42225   gl_cv_func_getcwd_path_max=yes
42226 else
42227   echo "$as_me: program exited with status $ac_status" >&5
42228 echo "$as_me: failed program was:" >&5
42229 sed 's/^/| /' conftest.$ac_ext >&5
42230
42231 ( exit $ac_status )
42232 case $? in
42233      1) gl_cv_func_getcwd_path_max='no, but it is partly working';;
42234      *) gl_cv_func_getcwd_path_max=no;;
42235      esac
42236 fi
42237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42238 fi
42239
42240
42241
42242 fi
42243 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_path_max" >&5
42244 echo "${ECHO_T}$gl_cv_func_getcwd_path_max" >&6; }
42245   case $gl_cv_func_getcwd_path_max in
42246   no,*)
42247
42248 cat >>confdefs.h <<\_ACEOF
42249 #define HAVE_PARTLY_WORKING_GETCWD 1
42250 _ACEOF
42251 ;;
42252   esac
42253
42254
42255
42256
42257
42258
42259
42260 for ac_func in getpagesize
42261 do
42262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42263 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42265 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42266   echo $ECHO_N "(cached) $ECHO_C" >&6
42267 else
42268   cat >conftest.$ac_ext <<_ACEOF
42269 /* confdefs.h.  */
42270 _ACEOF
42271 cat confdefs.h >>conftest.$ac_ext
42272 cat >>conftest.$ac_ext <<_ACEOF
42273 /* end confdefs.h.  */
42274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42275    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42276 #define $ac_func innocuous_$ac_func
42277
42278 /* System header to define __stub macros and hopefully few prototypes,
42279     which can conflict with char $ac_func (); below.
42280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42281     <limits.h> exists even on freestanding compilers.  */
42282
42283 #ifdef __STDC__
42284 # include <limits.h>
42285 #else
42286 # include <assert.h>
42287 #endif
42288
42289 #undef $ac_func
42290
42291 /* Override any GCC internal prototype to avoid an error.
42292    Use char because int might match the return type of a GCC
42293    builtin and then its argument prototype would still apply.  */
42294 #ifdef __cplusplus
42295 extern "C"
42296 #endif
42297 char $ac_func ();
42298 /* The GNU C library defines this for functions which it implements
42299     to always fail with ENOSYS.  Some functions are actually named
42300     something starting with __ and the normal name is an alias.  */
42301 #if defined __stub_$ac_func || defined __stub___$ac_func
42302 choke me
42303 #endif
42304
42305 int
42306 main ()
42307 {
42308 return $ac_func ();
42309   ;
42310   return 0;
42311 }
42312 _ACEOF
42313 rm -f conftest.$ac_objext conftest$ac_exeext
42314 if { (ac_try="$ac_link"
42315 case "(($ac_try" in
42316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42317   *) ac_try_echo=$ac_try;;
42318 esac
42319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42320   (eval "$ac_link") 2>conftest.er1
42321   ac_status=$?
42322   grep -v '^ *+' conftest.er1 >conftest.err
42323   rm -f conftest.er1
42324   cat conftest.err >&5
42325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42326   (exit $ac_status); } &&
42327          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42328   { (case "(($ac_try" in
42329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42330   *) ac_try_echo=$ac_try;;
42331 esac
42332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42333   (eval "$ac_try") 2>&5
42334   ac_status=$?
42335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42336   (exit $ac_status); }; } &&
42337          { ac_try='test -s conftest$ac_exeext'
42338   { (case "(($ac_try" in
42339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42340   *) ac_try_echo=$ac_try;;
42341 esac
42342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42343   (eval "$ac_try") 2>&5
42344   ac_status=$?
42345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42346   (exit $ac_status); }; }; then
42347   eval "$as_ac_var=yes"
42348 else
42349   echo "$as_me: failed program was:" >&5
42350 sed 's/^/| /' conftest.$ac_ext >&5
42351
42352         eval "$as_ac_var=no"
42353 fi
42354
42355 rm -f core conftest.err conftest.$ac_objext \
42356       conftest$ac_exeext conftest.$ac_ext
42357 fi
42358 ac_res=`eval echo '${'$as_ac_var'}'`
42359                { echo "$as_me:$LINENO: result: $ac_res" >&5
42360 echo "${ECHO_T}$ac_res" >&6; }
42361 if test `eval echo '${'$as_ac_var'}'` = yes; then
42362   cat >>confdefs.h <<_ACEOF
42363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42364 _ACEOF
42365
42366 fi
42367 done
42368
42369   { echo "$as_me:$LINENO: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
42370 echo $ECHO_N "checking whether getcwd aborts when 4k < cwd_length < 16k... $ECHO_C" >&6; }
42371 if test "${gl_cv_func_getcwd_abort_bug+set}" = set; then
42372   echo $ECHO_N "(cached) $ECHO_C" >&6
42373 else
42374   # Remove any remnants of a previous test.
42375      rm -rf confdir-14B---
42376      # Arrange for deletion of the temporary directory this test creates.
42377      ac_clean_files="$ac_clean_files confdir-14B---"
42378      if test "$cross_compiling" = yes; then
42379   gl_cv_func_getcwd_abort_bug=yes
42380 else
42381   cat >conftest.$ac_ext <<_ACEOF
42382 /* confdefs.h.  */
42383 _ACEOF
42384 cat confdefs.h >>conftest.$ac_ext
42385 cat >>conftest.$ac_ext <<_ACEOF
42386 /* end confdefs.h.  */
42387
42388 #include <stdlib.h>
42389 #include <unistd.h>
42390 #include <limits.h>
42391 #include <string.h>
42392 #include <sys/stat.h>
42393
42394 /* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
42395 #undef mkdir
42396
42397 #ifndef S_IRWXU
42398 # define S_IRWXU 0700
42399 #endif
42400
42401 /* FIXME: skip the run-test altogether on systems without getpagesize.  */
42402 #if ! HAVE_GETPAGESIZE
42403 # define getpagesize() 0
42404 #endif
42405
42406 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
42407    the 16kB pagesize on ia64 linux.  Those conditions make the code below
42408    trigger a bug in glibc's getcwd implementation before 2.4.90-10.  */
42409 #define TARGET_LEN (5 * 1024)
42410
42411 int
42412 main ()
42413 {
42414   char const *dir_name = "confdir-14B---";
42415   char *cwd;
42416   size_t initial_cwd_len;
42417   int fail = 0;
42418   size_t desired_depth;
42419   size_t d;
42420
42421   /* The bug is triggered when PATH_MAX < getpagesize (), so skip
42422      this relative expensive and invasive test if that's not true.  */
42423   if (getpagesize () <= PATH_MAX)
42424     return 0;
42425
42426   cwd = getcwd (NULL, 0);
42427   if (cwd == NULL)
42428     return 0;
42429
42430   initial_cwd_len = strlen (cwd);
42431   free (cwd);
42432   desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
42433                    / (1 + strlen (dir_name)));
42434   for (d = 0; d < desired_depth; d++)
42435     {
42436       if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
42437         {
42438           fail = 3; /* Unable to construct deep hierarchy.  */
42439           break;
42440         }
42441     }
42442
42443   /* If libc has the bug in question, this invocation of getcwd
42444      results in a failed assertion.  */
42445   cwd = getcwd (NULL, 0);
42446   if (cwd == NULL)
42447     fail = 4; /* getcwd failed.  This is ok, and expected.  */
42448   free (cwd);
42449
42450   /* Call rmdir first, in case the above chdir failed.  */
42451   rmdir (dir_name);
42452   while (0 < d--)
42453     {
42454       if (chdir ("..") < 0)
42455         break;
42456       rmdir (dir_name);
42457     }
42458
42459   return 0;
42460 }
42461
42462 _ACEOF
42463 rm -f conftest$ac_exeext
42464 if { (ac_try="$ac_link"
42465 case "(($ac_try" in
42466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42467   *) ac_try_echo=$ac_try;;
42468 esac
42469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42470   (eval "$ac_link") 2>&5
42471   ac_status=$?
42472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42473   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42474   { (case "(($ac_try" in
42475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42476   *) ac_try_echo=$ac_try;;
42477 esac
42478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42479   (eval "$ac_try") 2>&5
42480   ac_status=$?
42481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42482   (exit $ac_status); }; }; then
42483   gl_cv_func_getcwd_abort_bug=no
42484 else
42485   echo "$as_me: program exited with status $ac_status" >&5
42486 echo "$as_me: failed program was:" >&5
42487 sed 's/^/| /' conftest.$ac_ext >&5
42488
42489 ( exit $ac_status )
42490 gl_cv_func_getcwd_abort_bug=yes
42491 fi
42492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42493 fi
42494
42495
42496
42497 fi
42498 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_abort_bug" >&5
42499 echo "${ECHO_T}$gl_cv_func_getcwd_abort_bug" >&6; }
42500   if test $gl_cv_func_getcwd_abort_bug = yes; then
42501   gl_abort_bug=yes
42502 fi
42503
42504 ;;
42505   esac
42506
42507   case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max,$gl_abort_bug in
42508   yes,yes,no) ;;
42509   *)
42510     case " $LIBOBJS " in
42511   *" getcwd.$ac_objext "* ) ;;
42512   *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
42513  ;;
42514 esac
42515
42516
42517 cat >>confdefs.h <<\_ACEOF
42518 #define __GETCWD_PREFIX rpl_
42519 _ACEOF
42520
42521
42522
42523
42524   :
42525 ;;
42526   esac
42527
42528
42529
42530   case " $LIBOBJS " in
42531   *" xgetcwd.$ac_objext "* ) ;;
42532   *) LIBOBJS="$LIBOBJS xgetcwd.$ac_objext"
42533  ;;
42534 esac
42535
42536
42537
42538
42539
42540
42541   case " $LIBOBJS " in
42542   *" xnanosleep.$ac_objext "* ) ;;
42543   *) LIBOBJS="$LIBOBJS xnanosleep.$ac_objext"
42544  ;;
42545 esac
42546
42547
42548
42549
42550   case " $LIBOBJS " in
42551   *" xreadlink.$ac_objext "* ) ;;
42552   *) LIBOBJS="$LIBOBJS xreadlink.$ac_objext"
42553  ;;
42554 esac
42555
42556
42557
42558
42559
42560
42561   case " $LIBOBJS " in
42562   *" xstrtod.$ac_objext "* ) ;;
42563   *) LIBOBJS="$LIBOBJS xstrtod.$ac_objext"
42564  ;;
42565 esac
42566
42567
42568
42569
42570
42571
42572 { echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
42573 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6; }
42574 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
42575   echo $ECHO_N "(cached) $ECHO_C" >&6
42576 else
42577   cat >conftest.$ac_ext <<_ACEOF
42578 /* confdefs.h.  */
42579 _ACEOF
42580 cat confdefs.h >>conftest.$ac_ext
42581 cat >>conftest.$ac_ext <<_ACEOF
42582 /* end confdefs.h.  */
42583 $ac_includes_default
42584 int
42585 main ()
42586 {
42587 #ifndef strtoimax
42588   char *p = (char *) strtoimax;
42589   return !p;
42590 #endif
42591
42592   ;
42593   return 0;
42594 }
42595 _ACEOF
42596 rm -f conftest.$ac_objext
42597 if { (ac_try="$ac_compile"
42598 case "(($ac_try" in
42599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42600   *) ac_try_echo=$ac_try;;
42601 esac
42602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42603   (eval "$ac_compile") 2>conftest.er1
42604   ac_status=$?
42605   grep -v '^ *+' conftest.er1 >conftest.err
42606   rm -f conftest.er1
42607   cat conftest.err >&5
42608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42609   (exit $ac_status); } &&
42610          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42611   { (case "(($ac_try" in
42612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42613   *) ac_try_echo=$ac_try;;
42614 esac
42615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42616   (eval "$ac_try") 2>&5
42617   ac_status=$?
42618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42619   (exit $ac_status); }; } &&
42620          { ac_try='test -s conftest.$ac_objext'
42621   { (case "(($ac_try" in
42622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42623   *) ac_try_echo=$ac_try;;
42624 esac
42625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42626   (eval "$ac_try") 2>&5
42627   ac_status=$?
42628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42629   (exit $ac_status); }; }; then
42630   ac_cv_have_decl_strtoimax=yes
42631 else
42632   echo "$as_me: failed program was:" >&5
42633 sed 's/^/| /' conftest.$ac_ext >&5
42634
42635         ac_cv_have_decl_strtoimax=no
42636 fi
42637
42638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42639 fi
42640 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
42641 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6; }
42642 if test $ac_cv_have_decl_strtoimax = yes; then
42643
42644 cat >>confdefs.h <<_ACEOF
42645 #define HAVE_DECL_STRTOIMAX 1
42646 _ACEOF
42647
42648
42649 else
42650   cat >>confdefs.h <<_ACEOF
42651 #define HAVE_DECL_STRTOIMAX 0
42652 _ACEOF
42653
42654
42655 fi
42656
42657
42658 { echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
42659 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6; }
42660 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
42661   echo $ECHO_N "(cached) $ECHO_C" >&6
42662 else
42663   cat >conftest.$ac_ext <<_ACEOF
42664 /* confdefs.h.  */
42665 _ACEOF
42666 cat confdefs.h >>conftest.$ac_ext
42667 cat >>conftest.$ac_ext <<_ACEOF
42668 /* end confdefs.h.  */
42669 $ac_includes_default
42670 int
42671 main ()
42672 {
42673 #ifndef strtoumax
42674   char *p = (char *) strtoumax;
42675   return !p;
42676 #endif
42677
42678   ;
42679   return 0;
42680 }
42681 _ACEOF
42682 rm -f conftest.$ac_objext
42683 if { (ac_try="$ac_compile"
42684 case "(($ac_try" in
42685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42686   *) ac_try_echo=$ac_try;;
42687 esac
42688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42689   (eval "$ac_compile") 2>conftest.er1
42690   ac_status=$?
42691   grep -v '^ *+' conftest.er1 >conftest.err
42692   rm -f conftest.er1
42693   cat conftest.err >&5
42694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42695   (exit $ac_status); } &&
42696          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42697   { (case "(($ac_try" in
42698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42699   *) ac_try_echo=$ac_try;;
42700 esac
42701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42702   (eval "$ac_try") 2>&5
42703   ac_status=$?
42704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42705   (exit $ac_status); }; } &&
42706          { ac_try='test -s conftest.$ac_objext'
42707   { (case "(($ac_try" in
42708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42709   *) ac_try_echo=$ac_try;;
42710 esac
42711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42712   (eval "$ac_try") 2>&5
42713   ac_status=$?
42714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42715   (exit $ac_status); }; }; then
42716   ac_cv_have_decl_strtoumax=yes
42717 else
42718   echo "$as_me: failed program was:" >&5
42719 sed 's/^/| /' conftest.$ac_ext >&5
42720
42721         ac_cv_have_decl_strtoumax=no
42722 fi
42723
42724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42725 fi
42726 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
42727 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6; }
42728 if test $ac_cv_have_decl_strtoumax = yes; then
42729
42730 cat >>confdefs.h <<_ACEOF
42731 #define HAVE_DECL_STRTOUMAX 1
42732 _ACEOF
42733
42734
42735 else
42736   cat >>confdefs.h <<_ACEOF
42737 #define HAVE_DECL_STRTOUMAX 0
42738 _ACEOF
42739
42740
42741 fi
42742
42743
42744
42745
42746
42747
42748
42749
42750
42751
42752
42753
42754
42755
42756
42757
42758
42759
42760   case " $LIBOBJS " in
42761   *" xstrtol.$ac_objext "* ) ;;
42762   *) LIBOBJS="$LIBOBJS xstrtol.$ac_objext"
42763  ;;
42764 esac
42765
42766   case " $LIBOBJS " in
42767   *" xstrtoul.$ac_objext "* ) ;;
42768   *) LIBOBJS="$LIBOBJS xstrtoul.$ac_objext"
42769  ;;
42770 esac
42771
42772
42773
42774
42775
42776
42777
42778   case " $LIBOBJS " in
42779   *" xstrtold.$ac_objext "* ) ;;
42780   *) LIBOBJS="$LIBOBJS xstrtold.$ac_objext"
42781  ;;
42782 esac
42783
42784
42785
42786
42787   case " $LIBOBJS " in
42788   *" yesno.$ac_objext "* ) ;;
42789   *) LIBOBJS="$LIBOBJS yesno.$ac_objext"
42790  ;;
42791 esac
42792
42793
42794     :
42795
42796 { echo "$as_me:$LINENO: checking for GNU libc compatible calloc" >&5
42797 echo $ECHO_N "checking for GNU libc compatible calloc... $ECHO_C" >&6; }
42798 if test "${ac_cv_func_calloc_0_nonnull+set}" = set; then
42799   echo $ECHO_N "(cached) $ECHO_C" >&6
42800 else
42801   if test "$cross_compiling" = yes; then
42802   ac_cv_func_calloc_0_nonnull=no
42803 else
42804   cat >conftest.$ac_ext <<_ACEOF
42805 /* confdefs.h.  */
42806 _ACEOF
42807 cat confdefs.h >>conftest.$ac_ext
42808 cat >>conftest.$ac_ext <<_ACEOF
42809 /* end confdefs.h.  */
42810 $ac_includes_default
42811 int
42812 main ()
42813 {
42814 exit (!calloc (0, 0) || calloc ((size_t) -1 / 8 + 1, 8));
42815   ;
42816   return 0;
42817 }
42818 _ACEOF
42819 rm -f conftest$ac_exeext
42820 if { (ac_try="$ac_link"
42821 case "(($ac_try" in
42822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42823   *) ac_try_echo=$ac_try;;
42824 esac
42825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42826   (eval "$ac_link") 2>&5
42827   ac_status=$?
42828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42829   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42830   { (case "(($ac_try" in
42831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42832   *) ac_try_echo=$ac_try;;
42833 esac
42834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42835   (eval "$ac_try") 2>&5
42836   ac_status=$?
42837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42838   (exit $ac_status); }; }; then
42839   ac_cv_func_calloc_0_nonnull=yes
42840 else
42841   echo "$as_me: program exited with status $ac_status" >&5
42842 echo "$as_me: failed program was:" >&5
42843 sed 's/^/| /' conftest.$ac_ext >&5
42844
42845 ( exit $ac_status )
42846 ac_cv_func_calloc_0_nonnull=no
42847 fi
42848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42849 fi
42850
42851
42852 fi
42853 { echo "$as_me:$LINENO: result: $ac_cv_func_calloc_0_nonnull" >&5
42854 echo "${ECHO_T}$ac_cv_func_calloc_0_nonnull" >&6; }
42855 if test $ac_cv_func_calloc_0_nonnull = yes; then
42856
42857 cat >>confdefs.h <<\_ACEOF
42858 #define HAVE_CALLOC 1
42859 _ACEOF
42860
42861 else
42862   cat >>confdefs.h <<\_ACEOF
42863 #define HAVE_CALLOC 0
42864 _ACEOF
42865
42866    case " $LIBOBJS " in
42867   *" calloc.$ac_objext "* ) ;;
42868   *) LIBOBJS="$LIBOBJS calloc.$ac_objext"
42869  ;;
42870 esac
42871
42872
42873 cat >>confdefs.h <<\_ACEOF
42874 #define calloc rpl_calloc
42875 _ACEOF
42876
42877 fi
42878
42879
42880
42881 { echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
42882 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6; }
42883 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
42884   echo $ECHO_N "(cached) $ECHO_C" >&6
42885 else
42886   cat >conftest.$ac_ext <<_ACEOF
42887 /* confdefs.h.  */
42888 _ACEOF
42889 cat confdefs.h >>conftest.$ac_ext
42890 cat >>conftest.$ac_ext <<_ACEOF
42891 /* end confdefs.h.  */
42892 $ac_includes_default
42893 int
42894 main ()
42895 {
42896 #ifndef clearerr_unlocked
42897   char *p = (char *) clearerr_unlocked;
42898   return !p;
42899 #endif
42900
42901   ;
42902   return 0;
42903 }
42904 _ACEOF
42905 rm -f conftest.$ac_objext
42906 if { (ac_try="$ac_compile"
42907 case "(($ac_try" in
42908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42909   *) ac_try_echo=$ac_try;;
42910 esac
42911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42912   (eval "$ac_compile") 2>conftest.er1
42913   ac_status=$?
42914   grep -v '^ *+' conftest.er1 >conftest.err
42915   rm -f conftest.er1
42916   cat conftest.err >&5
42917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42918   (exit $ac_status); } &&
42919          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42920   { (case "(($ac_try" in
42921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42922   *) ac_try_echo=$ac_try;;
42923 esac
42924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42925   (eval "$ac_try") 2>&5
42926   ac_status=$?
42927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42928   (exit $ac_status); }; } &&
42929          { ac_try='test -s conftest.$ac_objext'
42930   { (case "(($ac_try" in
42931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42932   *) ac_try_echo=$ac_try;;
42933 esac
42934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42935   (eval "$ac_try") 2>&5
42936   ac_status=$?
42937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42938   (exit $ac_status); }; }; then
42939   ac_cv_have_decl_clearerr_unlocked=yes
42940 else
42941   echo "$as_me: failed program was:" >&5
42942 sed 's/^/| /' conftest.$ac_ext >&5
42943
42944         ac_cv_have_decl_clearerr_unlocked=no
42945 fi
42946
42947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42948 fi
42949 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
42950 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6; }
42951 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
42952
42953 cat >>confdefs.h <<_ACEOF
42954 #define HAVE_DECL_CLEARERR_UNLOCKED 1
42955 _ACEOF
42956
42957
42958 else
42959   cat >>confdefs.h <<_ACEOF
42960 #define HAVE_DECL_CLEARERR_UNLOCKED 0
42961 _ACEOF
42962
42963
42964 fi
42965
42966
42967 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
42968 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
42969 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
42970   echo $ECHO_N "(cached) $ECHO_C" >&6
42971 else
42972   cat >conftest.$ac_ext <<_ACEOF
42973 /* confdefs.h.  */
42974 _ACEOF
42975 cat confdefs.h >>conftest.$ac_ext
42976 cat >>conftest.$ac_ext <<_ACEOF
42977 /* end confdefs.h.  */
42978 $ac_includes_default
42979 int
42980 main ()
42981 {
42982 #ifndef feof_unlocked
42983   char *p = (char *) feof_unlocked;
42984   return !p;
42985 #endif
42986
42987   ;
42988   return 0;
42989 }
42990 _ACEOF
42991 rm -f conftest.$ac_objext
42992 if { (ac_try="$ac_compile"
42993 case "(($ac_try" in
42994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42995   *) ac_try_echo=$ac_try;;
42996 esac
42997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42998   (eval "$ac_compile") 2>conftest.er1
42999   ac_status=$?
43000   grep -v '^ *+' conftest.er1 >conftest.err
43001   rm -f conftest.er1
43002   cat conftest.err >&5
43003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43004   (exit $ac_status); } &&
43005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43006   { (case "(($ac_try" in
43007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43008   *) ac_try_echo=$ac_try;;
43009 esac
43010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43011   (eval "$ac_try") 2>&5
43012   ac_status=$?
43013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43014   (exit $ac_status); }; } &&
43015          { ac_try='test -s conftest.$ac_objext'
43016   { (case "(($ac_try" in
43017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43018   *) ac_try_echo=$ac_try;;
43019 esac
43020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43021   (eval "$ac_try") 2>&5
43022   ac_status=$?
43023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43024   (exit $ac_status); }; }; then
43025   ac_cv_have_decl_feof_unlocked=yes
43026 else
43027   echo "$as_me: failed program was:" >&5
43028 sed 's/^/| /' conftest.$ac_ext >&5
43029
43030         ac_cv_have_decl_feof_unlocked=no
43031 fi
43032
43033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43034 fi
43035 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
43036 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
43037 if test $ac_cv_have_decl_feof_unlocked = yes; then
43038
43039 cat >>confdefs.h <<_ACEOF
43040 #define HAVE_DECL_FEOF_UNLOCKED 1
43041 _ACEOF
43042
43043
43044 else
43045   cat >>confdefs.h <<_ACEOF
43046 #define HAVE_DECL_FEOF_UNLOCKED 0
43047 _ACEOF
43048
43049
43050 fi
43051
43052
43053 { echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
43054 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6; }
43055 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
43056   echo $ECHO_N "(cached) $ECHO_C" >&6
43057 else
43058   cat >conftest.$ac_ext <<_ACEOF
43059 /* confdefs.h.  */
43060 _ACEOF
43061 cat confdefs.h >>conftest.$ac_ext
43062 cat >>conftest.$ac_ext <<_ACEOF
43063 /* end confdefs.h.  */
43064 $ac_includes_default
43065 int
43066 main ()
43067 {
43068 #ifndef ferror_unlocked
43069   char *p = (char *) ferror_unlocked;
43070   return !p;
43071 #endif
43072
43073   ;
43074   return 0;
43075 }
43076 _ACEOF
43077 rm -f conftest.$ac_objext
43078 if { (ac_try="$ac_compile"
43079 case "(($ac_try" in
43080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43081   *) ac_try_echo=$ac_try;;
43082 esac
43083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43084   (eval "$ac_compile") 2>conftest.er1
43085   ac_status=$?
43086   grep -v '^ *+' conftest.er1 >conftest.err
43087   rm -f conftest.er1
43088   cat conftest.err >&5
43089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43090   (exit $ac_status); } &&
43091          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43092   { (case "(($ac_try" in
43093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43094   *) ac_try_echo=$ac_try;;
43095 esac
43096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43097   (eval "$ac_try") 2>&5
43098   ac_status=$?
43099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43100   (exit $ac_status); }; } &&
43101          { ac_try='test -s conftest.$ac_objext'
43102   { (case "(($ac_try" in
43103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43104   *) ac_try_echo=$ac_try;;
43105 esac
43106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43107   (eval "$ac_try") 2>&5
43108   ac_status=$?
43109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43110   (exit $ac_status); }; }; then
43111   ac_cv_have_decl_ferror_unlocked=yes
43112 else
43113   echo "$as_me: failed program was:" >&5
43114 sed 's/^/| /' conftest.$ac_ext >&5
43115
43116         ac_cv_have_decl_ferror_unlocked=no
43117 fi
43118
43119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43120 fi
43121 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
43122 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6; }
43123 if test $ac_cv_have_decl_ferror_unlocked = yes; then
43124
43125 cat >>confdefs.h <<_ACEOF
43126 #define HAVE_DECL_FERROR_UNLOCKED 1
43127 _ACEOF
43128
43129
43130 else
43131   cat >>confdefs.h <<_ACEOF
43132 #define HAVE_DECL_FERROR_UNLOCKED 0
43133 _ACEOF
43134
43135
43136 fi
43137
43138
43139 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
43140 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
43141 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
43142   echo $ECHO_N "(cached) $ECHO_C" >&6
43143 else
43144   cat >conftest.$ac_ext <<_ACEOF
43145 /* confdefs.h.  */
43146 _ACEOF
43147 cat confdefs.h >>conftest.$ac_ext
43148 cat >>conftest.$ac_ext <<_ACEOF
43149 /* end confdefs.h.  */
43150 $ac_includes_default
43151 int
43152 main ()
43153 {
43154 #ifndef fgets_unlocked
43155   char *p = (char *) fgets_unlocked;
43156   return !p;
43157 #endif
43158
43159   ;
43160   return 0;
43161 }
43162 _ACEOF
43163 rm -f conftest.$ac_objext
43164 if { (ac_try="$ac_compile"
43165 case "(($ac_try" in
43166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43167   *) ac_try_echo=$ac_try;;
43168 esac
43169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43170   (eval "$ac_compile") 2>conftest.er1
43171   ac_status=$?
43172   grep -v '^ *+' conftest.er1 >conftest.err
43173   rm -f conftest.er1
43174   cat conftest.err >&5
43175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43176   (exit $ac_status); } &&
43177          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43178   { (case "(($ac_try" in
43179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43180   *) ac_try_echo=$ac_try;;
43181 esac
43182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43183   (eval "$ac_try") 2>&5
43184   ac_status=$?
43185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43186   (exit $ac_status); }; } &&
43187          { ac_try='test -s conftest.$ac_objext'
43188   { (case "(($ac_try" in
43189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43190   *) ac_try_echo=$ac_try;;
43191 esac
43192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43193   (eval "$ac_try") 2>&5
43194   ac_status=$?
43195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43196   (exit $ac_status); }; }; then
43197   ac_cv_have_decl_fgets_unlocked=yes
43198 else
43199   echo "$as_me: failed program was:" >&5
43200 sed 's/^/| /' conftest.$ac_ext >&5
43201
43202         ac_cv_have_decl_fgets_unlocked=no
43203 fi
43204
43205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43206 fi
43207 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
43208 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
43209 if test $ac_cv_have_decl_fgets_unlocked = yes; then
43210
43211 cat >>confdefs.h <<_ACEOF
43212 #define HAVE_DECL_FGETS_UNLOCKED 1
43213 _ACEOF
43214
43215
43216 else
43217   cat >>confdefs.h <<_ACEOF
43218 #define HAVE_DECL_FGETS_UNLOCKED 0
43219 _ACEOF
43220
43221
43222 fi
43223
43224
43225 { echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
43226 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6; }
43227 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
43228   echo $ECHO_N "(cached) $ECHO_C" >&6
43229 else
43230   cat >conftest.$ac_ext <<_ACEOF
43231 /* confdefs.h.  */
43232 _ACEOF
43233 cat confdefs.h >>conftest.$ac_ext
43234 cat >>conftest.$ac_ext <<_ACEOF
43235 /* end confdefs.h.  */
43236 $ac_includes_default
43237 int
43238 main ()
43239 {
43240 #ifndef fputc_unlocked
43241   char *p = (char *) fputc_unlocked;
43242   return !p;
43243 #endif
43244
43245   ;
43246   return 0;
43247 }
43248 _ACEOF
43249 rm -f conftest.$ac_objext
43250 if { (ac_try="$ac_compile"
43251 case "(($ac_try" in
43252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43253   *) ac_try_echo=$ac_try;;
43254 esac
43255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43256   (eval "$ac_compile") 2>conftest.er1
43257   ac_status=$?
43258   grep -v '^ *+' conftest.er1 >conftest.err
43259   rm -f conftest.er1
43260   cat conftest.err >&5
43261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43262   (exit $ac_status); } &&
43263          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43264   { (case "(($ac_try" in
43265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43266   *) ac_try_echo=$ac_try;;
43267 esac
43268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43269   (eval "$ac_try") 2>&5
43270   ac_status=$?
43271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43272   (exit $ac_status); }; } &&
43273          { ac_try='test -s conftest.$ac_objext'
43274   { (case "(($ac_try" in
43275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43276   *) ac_try_echo=$ac_try;;
43277 esac
43278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43279   (eval "$ac_try") 2>&5
43280   ac_status=$?
43281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43282   (exit $ac_status); }; }; then
43283   ac_cv_have_decl_fputc_unlocked=yes
43284 else
43285   echo "$as_me: failed program was:" >&5
43286 sed 's/^/| /' conftest.$ac_ext >&5
43287
43288         ac_cv_have_decl_fputc_unlocked=no
43289 fi
43290
43291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43292 fi
43293 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
43294 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6; }
43295 if test $ac_cv_have_decl_fputc_unlocked = yes; then
43296
43297 cat >>confdefs.h <<_ACEOF
43298 #define HAVE_DECL_FPUTC_UNLOCKED 1
43299 _ACEOF
43300
43301
43302 else
43303   cat >>confdefs.h <<_ACEOF
43304 #define HAVE_DECL_FPUTC_UNLOCKED 0
43305 _ACEOF
43306
43307
43308 fi
43309
43310
43311 { echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
43312 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6; }
43313 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
43314   echo $ECHO_N "(cached) $ECHO_C" >&6
43315 else
43316   cat >conftest.$ac_ext <<_ACEOF
43317 /* confdefs.h.  */
43318 _ACEOF
43319 cat confdefs.h >>conftest.$ac_ext
43320 cat >>conftest.$ac_ext <<_ACEOF
43321 /* end confdefs.h.  */
43322 $ac_includes_default
43323 int
43324 main ()
43325 {
43326 #ifndef fread_unlocked
43327   char *p = (char *) fread_unlocked;
43328   return !p;
43329 #endif
43330
43331   ;
43332   return 0;
43333 }
43334 _ACEOF
43335 rm -f conftest.$ac_objext
43336 if { (ac_try="$ac_compile"
43337 case "(($ac_try" in
43338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43339   *) ac_try_echo=$ac_try;;
43340 esac
43341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43342   (eval "$ac_compile") 2>conftest.er1
43343   ac_status=$?
43344   grep -v '^ *+' conftest.er1 >conftest.err
43345   rm -f conftest.er1
43346   cat conftest.err >&5
43347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43348   (exit $ac_status); } &&
43349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43350   { (case "(($ac_try" in
43351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43352   *) ac_try_echo=$ac_try;;
43353 esac
43354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43355   (eval "$ac_try") 2>&5
43356   ac_status=$?
43357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43358   (exit $ac_status); }; } &&
43359          { ac_try='test -s conftest.$ac_objext'
43360   { (case "(($ac_try" in
43361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43362   *) ac_try_echo=$ac_try;;
43363 esac
43364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43365   (eval "$ac_try") 2>&5
43366   ac_status=$?
43367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43368   (exit $ac_status); }; }; then
43369   ac_cv_have_decl_fread_unlocked=yes
43370 else
43371   echo "$as_me: failed program was:" >&5
43372 sed 's/^/| /' conftest.$ac_ext >&5
43373
43374         ac_cv_have_decl_fread_unlocked=no
43375 fi
43376
43377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43378 fi
43379 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
43380 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6; }
43381 if test $ac_cv_have_decl_fread_unlocked = yes; then
43382
43383 cat >>confdefs.h <<_ACEOF
43384 #define HAVE_DECL_FREAD_UNLOCKED 1
43385 _ACEOF
43386
43387
43388 else
43389   cat >>confdefs.h <<_ACEOF
43390 #define HAVE_DECL_FREAD_UNLOCKED 0
43391 _ACEOF
43392
43393
43394 fi
43395
43396
43397 { echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
43398 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6; }
43399 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
43400   echo $ECHO_N "(cached) $ECHO_C" >&6
43401 else
43402   cat >conftest.$ac_ext <<_ACEOF
43403 /* confdefs.h.  */
43404 _ACEOF
43405 cat confdefs.h >>conftest.$ac_ext
43406 cat >>conftest.$ac_ext <<_ACEOF
43407 /* end confdefs.h.  */
43408 $ac_includes_default
43409 int
43410 main ()
43411 {
43412 #ifndef fwrite_unlocked
43413   char *p = (char *) fwrite_unlocked;
43414   return !p;
43415 #endif
43416
43417   ;
43418   return 0;
43419 }
43420 _ACEOF
43421 rm -f conftest.$ac_objext
43422 if { (ac_try="$ac_compile"
43423 case "(($ac_try" in
43424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43425   *) ac_try_echo=$ac_try;;
43426 esac
43427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43428   (eval "$ac_compile") 2>conftest.er1
43429   ac_status=$?
43430   grep -v '^ *+' conftest.er1 >conftest.err
43431   rm -f conftest.er1
43432   cat conftest.err >&5
43433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43434   (exit $ac_status); } &&
43435          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43436   { (case "(($ac_try" in
43437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43438   *) ac_try_echo=$ac_try;;
43439 esac
43440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43441   (eval "$ac_try") 2>&5
43442   ac_status=$?
43443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43444   (exit $ac_status); }; } &&
43445          { ac_try='test -s conftest.$ac_objext'
43446   { (case "(($ac_try" in
43447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43448   *) ac_try_echo=$ac_try;;
43449 esac
43450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43451   (eval "$ac_try") 2>&5
43452   ac_status=$?
43453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43454   (exit $ac_status); }; }; then
43455   ac_cv_have_decl_fwrite_unlocked=yes
43456 else
43457   echo "$as_me: failed program was:" >&5
43458 sed 's/^/| /' conftest.$ac_ext >&5
43459
43460         ac_cv_have_decl_fwrite_unlocked=no
43461 fi
43462
43463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43464 fi
43465 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
43466 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6; }
43467 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
43468
43469 cat >>confdefs.h <<_ACEOF
43470 #define HAVE_DECL_FWRITE_UNLOCKED 1
43471 _ACEOF
43472
43473
43474 else
43475   cat >>confdefs.h <<_ACEOF
43476 #define HAVE_DECL_FWRITE_UNLOCKED 0
43477 _ACEOF
43478
43479
43480 fi
43481
43482
43483 { echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
43484 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6; }
43485 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
43486   echo $ECHO_N "(cached) $ECHO_C" >&6
43487 else
43488   cat >conftest.$ac_ext <<_ACEOF
43489 /* confdefs.h.  */
43490 _ACEOF
43491 cat confdefs.h >>conftest.$ac_ext
43492 cat >>conftest.$ac_ext <<_ACEOF
43493 /* end confdefs.h.  */
43494 $ac_includes_default
43495 int
43496 main ()
43497 {
43498 #ifndef getchar_unlocked
43499   char *p = (char *) getchar_unlocked;
43500   return !p;
43501 #endif
43502
43503   ;
43504   return 0;
43505 }
43506 _ACEOF
43507 rm -f conftest.$ac_objext
43508 if { (ac_try="$ac_compile"
43509 case "(($ac_try" in
43510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43511   *) ac_try_echo=$ac_try;;
43512 esac
43513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43514   (eval "$ac_compile") 2>conftest.er1
43515   ac_status=$?
43516   grep -v '^ *+' conftest.er1 >conftest.err
43517   rm -f conftest.er1
43518   cat conftest.err >&5
43519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43520   (exit $ac_status); } &&
43521          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43522   { (case "(($ac_try" in
43523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43524   *) ac_try_echo=$ac_try;;
43525 esac
43526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43527   (eval "$ac_try") 2>&5
43528   ac_status=$?
43529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43530   (exit $ac_status); }; } &&
43531          { ac_try='test -s conftest.$ac_objext'
43532   { (case "(($ac_try" in
43533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43534   *) ac_try_echo=$ac_try;;
43535 esac
43536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43537   (eval "$ac_try") 2>&5
43538   ac_status=$?
43539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43540   (exit $ac_status); }; }; then
43541   ac_cv_have_decl_getchar_unlocked=yes
43542 else
43543   echo "$as_me: failed program was:" >&5
43544 sed 's/^/| /' conftest.$ac_ext >&5
43545
43546         ac_cv_have_decl_getchar_unlocked=no
43547 fi
43548
43549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43550 fi
43551 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
43552 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6; }
43553 if test $ac_cv_have_decl_getchar_unlocked = yes; then
43554
43555 cat >>confdefs.h <<_ACEOF
43556 #define HAVE_DECL_GETCHAR_UNLOCKED 1
43557 _ACEOF
43558
43559
43560 else
43561   cat >>confdefs.h <<_ACEOF
43562 #define HAVE_DECL_GETCHAR_UNLOCKED 0
43563 _ACEOF
43564
43565
43566 fi
43567
43568
43569 { echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
43570 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6; }
43571 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
43572   echo $ECHO_N "(cached) $ECHO_C" >&6
43573 else
43574   cat >conftest.$ac_ext <<_ACEOF
43575 /* confdefs.h.  */
43576 _ACEOF
43577 cat confdefs.h >>conftest.$ac_ext
43578 cat >>conftest.$ac_ext <<_ACEOF
43579 /* end confdefs.h.  */
43580 $ac_includes_default
43581 int
43582 main ()
43583 {
43584 #ifndef putchar_unlocked
43585   char *p = (char *) putchar_unlocked;
43586   return !p;
43587 #endif
43588
43589   ;
43590   return 0;
43591 }
43592 _ACEOF
43593 rm -f conftest.$ac_objext
43594 if { (ac_try="$ac_compile"
43595 case "(($ac_try" in
43596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43597   *) ac_try_echo=$ac_try;;
43598 esac
43599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43600   (eval "$ac_compile") 2>conftest.er1
43601   ac_status=$?
43602   grep -v '^ *+' conftest.er1 >conftest.err
43603   rm -f conftest.er1
43604   cat conftest.err >&5
43605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43606   (exit $ac_status); } &&
43607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43608   { (case "(($ac_try" in
43609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43610   *) ac_try_echo=$ac_try;;
43611 esac
43612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43613   (eval "$ac_try") 2>&5
43614   ac_status=$?
43615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43616   (exit $ac_status); }; } &&
43617          { ac_try='test -s conftest.$ac_objext'
43618   { (case "(($ac_try" in
43619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43620   *) ac_try_echo=$ac_try;;
43621 esac
43622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43623   (eval "$ac_try") 2>&5
43624   ac_status=$?
43625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43626   (exit $ac_status); }; }; then
43627   ac_cv_have_decl_putchar_unlocked=yes
43628 else
43629   echo "$as_me: failed program was:" >&5
43630 sed 's/^/| /' conftest.$ac_ext >&5
43631
43632         ac_cv_have_decl_putchar_unlocked=no
43633 fi
43634
43635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43636 fi
43637 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
43638 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6; }
43639 if test $ac_cv_have_decl_putchar_unlocked = yes; then
43640
43641 cat >>confdefs.h <<_ACEOF
43642 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
43643 _ACEOF
43644
43645
43646 else
43647   cat >>confdefs.h <<_ACEOF
43648 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
43649 _ACEOF
43650
43651
43652 fi
43653
43654
43655
43656
43657
43658
43659 cat >>confdefs.h <<\_ACEOF
43660 #define USE_UNLOCKED_IO 1
43661 _ACEOF
43662
43663
43664
43665
43666
43667
43668
43669
43670
43671
43672
43673
43674
43675
43676
43677
43678
43679
43680
43681
43682
43683
43684
43685
43686
43687
43688
43689
43690
43691
43692
43693
43694
43695
43696
43697
43698
43699
43700
43701
43702
43703
43704
43705
43706
43707
43708
43709
43710
43711
43712
43713
43714
43715
43716
43717
43718
43719
43720
43721
43722
43723
43724
43725
43726
43727  case " $LIBOBJS " in
43728   *" strftime.$ac_objext "* ) ;;
43729   *) LIBOBJS="$LIBOBJS strftime.$ac_objext"
43730  ;;
43731 esac
43732
43733
43734  # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
43735
43736
43737
43738
43739
43740
43741
43742
43743
43744
43745
43746
43747
43748
43749
43750
43751
43752
43753
43754
43755
43756
43757
43758
43759
43760
43761
43762
43763 cat >>confdefs.h <<\_ACEOF
43764 #define my_strftime nstrftime
43765 _ACEOF
43766
43767
43768
43769
43770 for ac_header in stdlib.h
43771 do
43772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43774   { echo "$as_me:$LINENO: checking for $ac_header" >&5
43775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43777   echo $ECHO_N "(cached) $ECHO_C" >&6
43778 fi
43779 ac_res=`eval echo '${'$as_ac_Header'}'`
43780                { echo "$as_me:$LINENO: result: $ac_res" >&5
43781 echo "${ECHO_T}$ac_res" >&6; }
43782 else
43783   # Is the header compilable?
43784 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
43785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
43786 cat >conftest.$ac_ext <<_ACEOF
43787 /* confdefs.h.  */
43788 _ACEOF
43789 cat confdefs.h >>conftest.$ac_ext
43790 cat >>conftest.$ac_ext <<_ACEOF
43791 /* end confdefs.h.  */
43792 $ac_includes_default
43793 #include <$ac_header>
43794 _ACEOF
43795 rm -f conftest.$ac_objext
43796 if { (ac_try="$ac_compile"
43797 case "(($ac_try" in
43798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43799   *) ac_try_echo=$ac_try;;
43800 esac
43801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43802   (eval "$ac_compile") 2>conftest.er1
43803   ac_status=$?
43804   grep -v '^ *+' conftest.er1 >conftest.err
43805   rm -f conftest.er1
43806   cat conftest.err >&5
43807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43808   (exit $ac_status); } &&
43809          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43810   { (case "(($ac_try" in
43811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43812   *) ac_try_echo=$ac_try;;
43813 esac
43814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43815   (eval "$ac_try") 2>&5
43816   ac_status=$?
43817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43818   (exit $ac_status); }; } &&
43819          { ac_try='test -s conftest.$ac_objext'
43820   { (case "(($ac_try" in
43821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43822   *) ac_try_echo=$ac_try;;
43823 esac
43824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43825   (eval "$ac_try") 2>&5
43826   ac_status=$?
43827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43828   (exit $ac_status); }; }; then
43829   ac_header_compiler=yes
43830 else
43831   echo "$as_me: failed program was:" >&5
43832 sed 's/^/| /' conftest.$ac_ext >&5
43833
43834         ac_header_compiler=no
43835 fi
43836
43837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43839 echo "${ECHO_T}$ac_header_compiler" >&6; }
43840
43841 # Is the header present?
43842 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
43843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
43844 cat >conftest.$ac_ext <<_ACEOF
43845 /* confdefs.h.  */
43846 _ACEOF
43847 cat confdefs.h >>conftest.$ac_ext
43848 cat >>conftest.$ac_ext <<_ACEOF
43849 /* end confdefs.h.  */
43850 #include <$ac_header>
43851 _ACEOF
43852 if { (ac_try="$ac_cpp conftest.$ac_ext"
43853 case "(($ac_try" in
43854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43855   *) ac_try_echo=$ac_try;;
43856 esac
43857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43858   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43859   ac_status=$?
43860   grep -v '^ *+' conftest.er1 >conftest.err
43861   rm -f conftest.er1
43862   cat conftest.err >&5
43863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43864   (exit $ac_status); } >/dev/null; then
43865   if test -s conftest.err; then
43866     ac_cpp_err=$ac_c_preproc_warn_flag
43867     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43868   else
43869     ac_cpp_err=
43870   fi
43871 else
43872   ac_cpp_err=yes
43873 fi
43874 if test -z "$ac_cpp_err"; then
43875   ac_header_preproc=yes
43876 else
43877   echo "$as_me: failed program was:" >&5
43878 sed 's/^/| /' conftest.$ac_ext >&5
43879
43880   ac_header_preproc=no
43881 fi
43882
43883 rm -f conftest.err conftest.$ac_ext
43884 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43885 echo "${ECHO_T}$ac_header_preproc" >&6; }
43886
43887 # So?  What about this header?
43888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43889   yes:no: )
43890     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43892     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43894     ac_header_preproc=yes
43895     ;;
43896   no:yes:* )
43897     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43899     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43900 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43901     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43903     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43904 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43905     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43907     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43909     ( cat <<\_ASBOX
43910 ## ------------------------------------ ##
43911 ## Report this to bug-coreutils@gnu.org ##
43912 ## ------------------------------------ ##
43913 _ASBOX
43914      ) | sed "s/^/$as_me: WARNING:     /" >&2
43915     ;;
43916 esac
43917 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43920   echo $ECHO_N "(cached) $ECHO_C" >&6
43921 else
43922   eval "$as_ac_Header=\$ac_header_preproc"
43923 fi
43924 ac_res=`eval echo '${'$as_ac_Header'}'`
43925                { echo "$as_me:$LINENO: result: $ac_res" >&5
43926 echo "${ECHO_T}$ac_res" >&6; }
43927
43928 fi
43929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43930   cat >>confdefs.h <<_ACEOF
43931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43932 _ACEOF
43933
43934 fi
43935
43936 done
43937
43938 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
43939 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
43940 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
43941   echo $ECHO_N "(cached) $ECHO_C" >&6
43942 else
43943   if test "$cross_compiling" = yes; then
43944   ac_cv_func_malloc_0_nonnull=no
43945 else
43946   cat >conftest.$ac_ext <<_ACEOF
43947 /* confdefs.h.  */
43948 _ACEOF
43949 cat confdefs.h >>conftest.$ac_ext
43950 cat >>conftest.$ac_ext <<_ACEOF
43951 /* end confdefs.h.  */
43952 #if STDC_HEADERS || HAVE_STDLIB_H
43953 # include <stdlib.h>
43954 #else
43955 char *malloc ();
43956 #endif
43957
43958 int
43959 main ()
43960 {
43961 return ! malloc (0);
43962   ;
43963   return 0;
43964 }
43965 _ACEOF
43966 rm -f conftest$ac_exeext
43967 if { (ac_try="$ac_link"
43968 case "(($ac_try" in
43969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43970   *) ac_try_echo=$ac_try;;
43971 esac
43972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43973   (eval "$ac_link") 2>&5
43974   ac_status=$?
43975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43976   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43977   { (case "(($ac_try" in
43978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43979   *) ac_try_echo=$ac_try;;
43980 esac
43981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43982   (eval "$ac_try") 2>&5
43983   ac_status=$?
43984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43985   (exit $ac_status); }; }; then
43986   ac_cv_func_malloc_0_nonnull=yes
43987 else
43988   echo "$as_me: program exited with status $ac_status" >&5
43989 echo "$as_me: failed program was:" >&5
43990 sed 's/^/| /' conftest.$ac_ext >&5
43991
43992 ( exit $ac_status )
43993 ac_cv_func_malloc_0_nonnull=no
43994 fi
43995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43996 fi
43997
43998
43999 fi
44000 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
44001 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
44002 if test $ac_cv_func_malloc_0_nonnull = yes; then
44003
44004 cat >>confdefs.h <<\_ACEOF
44005 #define HAVE_MALLOC 1
44006 _ACEOF
44007
44008 else
44009   cat >>confdefs.h <<\_ACEOF
44010 #define HAVE_MALLOC 0
44011 _ACEOF
44012
44013    case " $LIBOBJS " in
44014   *" malloc.$ac_objext "* ) ;;
44015   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
44016  ;;
44017 esac
44018
44019
44020 cat >>confdefs.h <<\_ACEOF
44021 #define malloc rpl_malloc
44022 _ACEOF
44023
44024 fi
44025
44026
44027
44028 { echo "$as_me:$LINENO: checking for working memcmp" >&5
44029 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
44030 if test "${ac_cv_func_memcmp_working+set}" = set; then
44031   echo $ECHO_N "(cached) $ECHO_C" >&6
44032 else
44033   if test "$cross_compiling" = yes; then
44034   ac_cv_func_memcmp_working=no
44035 else
44036   cat >conftest.$ac_ext <<_ACEOF
44037 /* confdefs.h.  */
44038 _ACEOF
44039 cat confdefs.h >>conftest.$ac_ext
44040 cat >>conftest.$ac_ext <<_ACEOF
44041 /* end confdefs.h.  */
44042 $ac_includes_default
44043 int
44044 main ()
44045 {
44046
44047   /* Some versions of memcmp are not 8-bit clean.  */
44048   char c0 = '\100', c1 = '\200', c2 = '\201';
44049   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
44050     return 1;
44051
44052   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
44053      or more and with at least one buffer not starting on a 4-byte boundary.
44054      William Lewis provided this test program.   */
44055   {
44056     char foo[21];
44057     char bar[21];
44058     int i;
44059     for (i = 0; i < 4; i++)
44060       {
44061         char *a = foo + i;
44062         char *b = bar + i;
44063         strcpy (a, "--------01111111");
44064         strcpy (b, "--------10000000");
44065         if (memcmp (a, b, 16) >= 0)
44066           return 1;
44067       }
44068     return 0;
44069   }
44070
44071   ;
44072   return 0;
44073 }
44074 _ACEOF
44075 rm -f conftest$ac_exeext
44076 if { (ac_try="$ac_link"
44077 case "(($ac_try" in
44078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44079   *) ac_try_echo=$ac_try;;
44080 esac
44081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44082   (eval "$ac_link") 2>&5
44083   ac_status=$?
44084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44085   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44086   { (case "(($ac_try" in
44087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44088   *) ac_try_echo=$ac_try;;
44089 esac
44090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44091   (eval "$ac_try") 2>&5
44092   ac_status=$?
44093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44094   (exit $ac_status); }; }; then
44095   ac_cv_func_memcmp_working=yes
44096 else
44097   echo "$as_me: program exited with status $ac_status" >&5
44098 echo "$as_me: failed program was:" >&5
44099 sed 's/^/| /' conftest.$ac_ext >&5
44100
44101 ( exit $ac_status )
44102 ac_cv_func_memcmp_working=no
44103 fi
44104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44105 fi
44106
44107
44108 fi
44109 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
44110 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
44111 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
44112   *" memcmp.$ac_objext "* ) ;;
44113   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
44114  ;;
44115 esac
44116
44117
44118
44119
44120   if test $ac_cv_func_memcmp_working = no; then
44121
44122 cat >>confdefs.h <<\_ACEOF
44123 #define memcmp rpl_memcmp
44124 _ACEOF
44125
44126     :
44127   fi
44128
44129
44130
44131
44132
44133
44134
44135
44136
44137
44138
44139
44140
44141
44142
44143
44144
44145
44146  nanosleep_save_libs=$LIBS
44147
44148  # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
44149  # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
44150  { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
44151 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
44152 if test "${ac_cv_search_nanosleep+set}" = set; then
44153   echo $ECHO_N "(cached) $ECHO_C" >&6
44154 else
44155   ac_func_search_save_LIBS=$LIBS
44156 cat >conftest.$ac_ext <<_ACEOF
44157 /* confdefs.h.  */
44158 _ACEOF
44159 cat confdefs.h >>conftest.$ac_ext
44160 cat >>conftest.$ac_ext <<_ACEOF
44161 /* end confdefs.h.  */
44162
44163 /* Override any GCC internal prototype to avoid an error.
44164    Use char because int might match the return type of a GCC
44165    builtin and then its argument prototype would still apply.  */
44166 #ifdef __cplusplus
44167 extern "C"
44168 #endif
44169 char nanosleep ();
44170 int
44171 main ()
44172 {
44173 return nanosleep ();
44174   ;
44175   return 0;
44176 }
44177 _ACEOF
44178 for ac_lib in '' rt posix4; do
44179   if test -z "$ac_lib"; then
44180     ac_res="none required"
44181   else
44182     ac_res=-l$ac_lib
44183     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
44184   fi
44185   rm -f conftest.$ac_objext conftest$ac_exeext
44186 if { (ac_try="$ac_link"
44187 case "(($ac_try" in
44188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44189   *) ac_try_echo=$ac_try;;
44190 esac
44191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44192   (eval "$ac_link") 2>conftest.er1
44193   ac_status=$?
44194   grep -v '^ *+' conftest.er1 >conftest.err
44195   rm -f conftest.er1
44196   cat conftest.err >&5
44197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44198   (exit $ac_status); } &&
44199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44200   { (case "(($ac_try" in
44201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44202   *) ac_try_echo=$ac_try;;
44203 esac
44204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44205   (eval "$ac_try") 2>&5
44206   ac_status=$?
44207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44208   (exit $ac_status); }; } &&
44209          { ac_try='test -s conftest$ac_exeext'
44210   { (case "(($ac_try" in
44211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44212   *) ac_try_echo=$ac_try;;
44213 esac
44214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44215   (eval "$ac_try") 2>&5
44216   ac_status=$?
44217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44218   (exit $ac_status); }; }; then
44219   ac_cv_search_nanosleep=$ac_res
44220 else
44221   echo "$as_me: failed program was:" >&5
44222 sed 's/^/| /' conftest.$ac_ext >&5
44223
44224
44225 fi
44226
44227 rm -f core conftest.err conftest.$ac_objext \
44228       conftest$ac_exeext
44229   if test "${ac_cv_search_nanosleep+set}" = set; then
44230   break
44231 fi
44232 done
44233 if test "${ac_cv_search_nanosleep+set}" = set; then
44234   :
44235 else
44236   ac_cv_search_nanosleep=no
44237 fi
44238 rm conftest.$ac_ext
44239 LIBS=$ac_func_search_save_LIBS
44240 fi
44241 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
44242 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
44243 ac_res=$ac_cv_search_nanosleep
44244 if test "$ac_res" != no; then
44245   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
44246   test "$ac_cv_search_nanosleep" = "none required" ||
44247                  LIB_NANOSLEEP=$ac_cv_search_nanosleep
44248 fi
44249
44250
44251
44252  { echo "$as_me:$LINENO: checking for nanosleep" >&5
44253 echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
44254 if test "${gl_cv_func_nanosleep+set}" = set; then
44255   echo $ECHO_N "(cached) $ECHO_C" >&6
44256 else
44257
44258    cat >conftest.$ac_ext <<_ACEOF
44259 /* confdefs.h.  */
44260 _ACEOF
44261 cat confdefs.h >>conftest.$ac_ext
44262 cat >>conftest.$ac_ext <<_ACEOF
44263 /* end confdefs.h.  */
44264
44265 #   if TIME_WITH_SYS_TIME
44266 #    include <sys/time.h>
44267 #    include <time.h>
44268 #   else
44269 #    if HAVE_SYS_TIME_H
44270 #     include <sys/time.h>
44271 #    else
44272 #     include <time.h>
44273 #    endif
44274 #   endif
44275
44276     int
44277     main ()
44278     {
44279       struct timespec ts_sleep, ts_remaining;
44280       ts_sleep.tv_sec = 0;
44281       ts_sleep.tv_nsec = 1;
44282       return nanosleep (&ts_sleep, &ts_remaining) < 0;
44283     }
44284
44285 _ACEOF
44286 rm -f conftest.$ac_objext conftest$ac_exeext
44287 if { (ac_try="$ac_link"
44288 case "(($ac_try" in
44289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44290   *) ac_try_echo=$ac_try;;
44291 esac
44292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44293   (eval "$ac_link") 2>conftest.er1
44294   ac_status=$?
44295   grep -v '^ *+' conftest.er1 >conftest.err
44296   rm -f conftest.er1
44297   cat conftest.err >&5
44298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44299   (exit $ac_status); } &&
44300          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44301   { (case "(($ac_try" in
44302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44303   *) ac_try_echo=$ac_try;;
44304 esac
44305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44306   (eval "$ac_try") 2>&5
44307   ac_status=$?
44308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44309   (exit $ac_status); }; } &&
44310          { ac_try='test -s conftest$ac_exeext'
44311   { (case "(($ac_try" in
44312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44313   *) ac_try_echo=$ac_try;;
44314 esac
44315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44316   (eval "$ac_try") 2>&5
44317   ac_status=$?
44318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44319   (exit $ac_status); }; }; then
44320   gl_cv_func_nanosleep=yes
44321 else
44322   echo "$as_me: failed program was:" >&5
44323 sed 's/^/| /' conftest.$ac_ext >&5
44324
44325         gl_cv_func_nanosleep=no
44326 fi
44327
44328 rm -f core conftest.err conftest.$ac_objext \
44329       conftest$ac_exeext conftest.$ac_ext
44330
44331 fi
44332 { echo "$as_me:$LINENO: result: $gl_cv_func_nanosleep" >&5
44333 echo "${ECHO_T}$gl_cv_func_nanosleep" >&6; }
44334   if test $gl_cv_func_nanosleep = no; then
44335     case " $LIBOBJS " in
44336   *" nanosleep.$ac_objext "* ) ;;
44337   *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
44338  ;;
44339 esac
44340
44341
44342 cat >>confdefs.h <<\_ACEOF
44343 #define nanosleep rpl_nanosleep
44344 _ACEOF
44345
44346
44347
44348
44349
44350
44351
44352
44353
44354
44355
44356
44357
44358
44359
44360   fi
44361
44362  LIBS=$nanosleep_save_libs
44363
44364 { echo "$as_me:$LINENO: checking for SVID conformant putenv" >&5
44365 echo $ECHO_N "checking for SVID conformant putenv... $ECHO_C" >&6; }
44366 if test "${jm_cv_func_svid_putenv+set}" = set; then
44367   echo $ECHO_N "(cached) $ECHO_C" >&6
44368 else
44369   if test "$cross_compiling" = yes; then
44370              jm_cv_func_svid_putenv=no
44371 else
44372   cat >conftest.$ac_ext <<_ACEOF
44373 /* confdefs.h.  */
44374 _ACEOF
44375 cat confdefs.h >>conftest.$ac_ext
44376 cat >>conftest.$ac_ext <<_ACEOF
44377 /* end confdefs.h.  */
44378
44379     int
44380     main ()
44381     {
44382       /* Put it in env.  */
44383       if (putenv ("CONFTEST_putenv=val"))
44384         return 1;
44385
44386       /* Try to remove it.  */
44387       if (putenv ("CONFTEST_putenv"))
44388         return 1;
44389
44390       /* Make sure it was deleted.  */
44391       if (getenv ("CONFTEST_putenv") != 0)
44392         return 1;
44393
44394       return 0;
44395     }
44396
44397 _ACEOF
44398 rm -f conftest$ac_exeext
44399 if { (ac_try="$ac_link"
44400 case "(($ac_try" in
44401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44402   *) ac_try_echo=$ac_try;;
44403 esac
44404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44405   (eval "$ac_link") 2>&5
44406   ac_status=$?
44407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44408   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44409   { (case "(($ac_try" in
44410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44411   *) ac_try_echo=$ac_try;;
44412 esac
44413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44414   (eval "$ac_try") 2>&5
44415   ac_status=$?
44416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44417   (exit $ac_status); }; }; then
44418   jm_cv_func_svid_putenv=yes
44419 else
44420   echo "$as_me: program exited with status $ac_status" >&5
44421 echo "$as_me: failed program was:" >&5
44422 sed 's/^/| /' conftest.$ac_ext >&5
44423
44424 ( exit $ac_status )
44425 jm_cv_func_svid_putenv=no
44426 fi
44427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44428 fi
44429
44430
44431
44432 fi
44433 { echo "$as_me:$LINENO: result: $jm_cv_func_svid_putenv" >&5
44434 echo "${ECHO_T}$jm_cv_func_svid_putenv" >&6; }
44435   if test $jm_cv_func_svid_putenv = no; then
44436     case " $LIBOBJS " in
44437   *" putenv.$ac_objext "* ) ;;
44438   *) LIBOBJS="$LIBOBJS putenv.$ac_objext"
44439  ;;
44440 esac
44441
44442
44443 cat >>confdefs.h <<\_ACEOF
44444 #define putenv rpl_putenv
44445 _ACEOF
44446
44447   fi
44448
44449
44450 for ac_header in stdlib.h
44451 do
44452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44454   { echo "$as_me:$LINENO: checking for $ac_header" >&5
44455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44457   echo $ECHO_N "(cached) $ECHO_C" >&6
44458 fi
44459 ac_res=`eval echo '${'$as_ac_Header'}'`
44460                { echo "$as_me:$LINENO: result: $ac_res" >&5
44461 echo "${ECHO_T}$ac_res" >&6; }
44462 else
44463   # Is the header compilable?
44464 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
44465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
44466 cat >conftest.$ac_ext <<_ACEOF
44467 /* confdefs.h.  */
44468 _ACEOF
44469 cat confdefs.h >>conftest.$ac_ext
44470 cat >>conftest.$ac_ext <<_ACEOF
44471 /* end confdefs.h.  */
44472 $ac_includes_default
44473 #include <$ac_header>
44474 _ACEOF
44475 rm -f conftest.$ac_objext
44476 if { (ac_try="$ac_compile"
44477 case "(($ac_try" in
44478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44479   *) ac_try_echo=$ac_try;;
44480 esac
44481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44482   (eval "$ac_compile") 2>conftest.er1
44483   ac_status=$?
44484   grep -v '^ *+' conftest.er1 >conftest.err
44485   rm -f conftest.er1
44486   cat conftest.err >&5
44487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44488   (exit $ac_status); } &&
44489          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44490   { (case "(($ac_try" in
44491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44492   *) ac_try_echo=$ac_try;;
44493 esac
44494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44495   (eval "$ac_try") 2>&5
44496   ac_status=$?
44497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44498   (exit $ac_status); }; } &&
44499          { ac_try='test -s conftest.$ac_objext'
44500   { (case "(($ac_try" in
44501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44502   *) ac_try_echo=$ac_try;;
44503 esac
44504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44505   (eval "$ac_try") 2>&5
44506   ac_status=$?
44507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44508   (exit $ac_status); }; }; then
44509   ac_header_compiler=yes
44510 else
44511   echo "$as_me: failed program was:" >&5
44512 sed 's/^/| /' conftest.$ac_ext >&5
44513
44514         ac_header_compiler=no
44515 fi
44516
44517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44519 echo "${ECHO_T}$ac_header_compiler" >&6; }
44520
44521 # Is the header present?
44522 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
44523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
44524 cat >conftest.$ac_ext <<_ACEOF
44525 /* confdefs.h.  */
44526 _ACEOF
44527 cat confdefs.h >>conftest.$ac_ext
44528 cat >>conftest.$ac_ext <<_ACEOF
44529 /* end confdefs.h.  */
44530 #include <$ac_header>
44531 _ACEOF
44532 if { (ac_try="$ac_cpp conftest.$ac_ext"
44533 case "(($ac_try" in
44534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44535   *) ac_try_echo=$ac_try;;
44536 esac
44537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44538   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44539   ac_status=$?
44540   grep -v '^ *+' conftest.er1 >conftest.err
44541   rm -f conftest.er1
44542   cat conftest.err >&5
44543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44544   (exit $ac_status); } >/dev/null; then
44545   if test -s conftest.err; then
44546     ac_cpp_err=$ac_c_preproc_warn_flag
44547     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44548   else
44549     ac_cpp_err=
44550   fi
44551 else
44552   ac_cpp_err=yes
44553 fi
44554 if test -z "$ac_cpp_err"; then
44555   ac_header_preproc=yes
44556 else
44557   echo "$as_me: failed program was:" >&5
44558 sed 's/^/| /' conftest.$ac_ext >&5
44559
44560   ac_header_preproc=no
44561 fi
44562
44563 rm -f conftest.err conftest.$ac_ext
44564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44565 echo "${ECHO_T}$ac_header_preproc" >&6; }
44566
44567 # So?  What about this header?
44568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44569   yes:no: )
44570     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44572     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44574     ac_header_preproc=yes
44575     ;;
44576   no:yes:* )
44577     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44579     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44580 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44581     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44583     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44584 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44585     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44587     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44589     ( cat <<\_ASBOX
44590 ## ------------------------------------ ##
44591 ## Report this to bug-coreutils@gnu.org ##
44592 ## ------------------------------------ ##
44593 _ASBOX
44594      ) | sed "s/^/$as_me: WARNING:     /" >&2
44595     ;;
44596 esac
44597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
44598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44600   echo $ECHO_N "(cached) $ECHO_C" >&6
44601 else
44602   eval "$as_ac_Header=\$ac_header_preproc"
44603 fi
44604 ac_res=`eval echo '${'$as_ac_Header'}'`
44605                { echo "$as_me:$LINENO: result: $ac_res" >&5
44606 echo "${ECHO_T}$ac_res" >&6; }
44607
44608 fi
44609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44610   cat >>confdefs.h <<_ACEOF
44611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44612 _ACEOF
44613
44614 fi
44615
44616 done
44617
44618 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
44619 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
44620 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
44621   echo $ECHO_N "(cached) $ECHO_C" >&6
44622 else
44623   if test "$cross_compiling" = yes; then
44624   ac_cv_func_realloc_0_nonnull=no
44625 else
44626   cat >conftest.$ac_ext <<_ACEOF
44627 /* confdefs.h.  */
44628 _ACEOF
44629 cat confdefs.h >>conftest.$ac_ext
44630 cat >>conftest.$ac_ext <<_ACEOF
44631 /* end confdefs.h.  */
44632 #if STDC_HEADERS || HAVE_STDLIB_H
44633 # include <stdlib.h>
44634 #else
44635 char *realloc ();
44636 #endif
44637
44638 int
44639 main ()
44640 {
44641 return ! realloc (0, 0);
44642   ;
44643   return 0;
44644 }
44645 _ACEOF
44646 rm -f conftest$ac_exeext
44647 if { (ac_try="$ac_link"
44648 case "(($ac_try" in
44649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44650   *) ac_try_echo=$ac_try;;
44651 esac
44652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44653   (eval "$ac_link") 2>&5
44654   ac_status=$?
44655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44656   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44657   { (case "(($ac_try" in
44658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44659   *) ac_try_echo=$ac_try;;
44660 esac
44661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44662   (eval "$ac_try") 2>&5
44663   ac_status=$?
44664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44665   (exit $ac_status); }; }; then
44666   ac_cv_func_realloc_0_nonnull=yes
44667 else
44668   echo "$as_me: program exited with status $ac_status" >&5
44669 echo "$as_me: failed program was:" >&5
44670 sed 's/^/| /' conftest.$ac_ext >&5
44671
44672 ( exit $ac_status )
44673 ac_cv_func_realloc_0_nonnull=no
44674 fi
44675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44676 fi
44677
44678
44679 fi
44680 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
44681 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
44682 if test $ac_cv_func_realloc_0_nonnull = yes; then
44683
44684 cat >>confdefs.h <<\_ACEOF
44685 #define HAVE_REALLOC 1
44686 _ACEOF
44687
44688 else
44689   cat >>confdefs.h <<\_ACEOF
44690 #define HAVE_REALLOC 0
44691 _ACEOF
44692
44693    case " $LIBOBJS " in
44694   *" realloc.$ac_objext "* ) ;;
44695   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
44696  ;;
44697 esac
44698
44699
44700 cat >>confdefs.h <<\_ACEOF
44701 #define realloc rpl_realloc
44702 _ACEOF
44703
44704 fi
44705
44706
44707
44708 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
44709 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
44710 if test "${ac_cv_func_utime_null+set}" = set; then
44711   echo $ECHO_N "(cached) $ECHO_C" >&6
44712 else
44713   rm -f conftest.data; >conftest.data
44714 # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
44715 if test "$cross_compiling" = yes; then
44716   ac_cv_func_utime_null=no
44717 else
44718   cat >conftest.$ac_ext <<_ACEOF
44719 /* confdefs.h.  */
44720 _ACEOF
44721 cat confdefs.h >>conftest.$ac_ext
44722 cat >>conftest.$ac_ext <<_ACEOF
44723 /* end confdefs.h.  */
44724 $ac_includes_default
44725 int
44726 main ()
44727 {
44728 struct stat s, t;
44729   return ! (stat ("conftest.data", &s) == 0
44730             && utime ("conftest.data", 0) == 0
44731             && stat ("conftest.data", &t) == 0
44732             && t.st_mtime >= s.st_mtime
44733             && t.st_mtime - s.st_mtime < 120);
44734   ;
44735   return 0;
44736 }
44737 _ACEOF
44738 rm -f conftest$ac_exeext
44739 if { (ac_try="$ac_link"
44740 case "(($ac_try" in
44741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44742   *) ac_try_echo=$ac_try;;
44743 esac
44744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44745   (eval "$ac_link") 2>&5
44746   ac_status=$?
44747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44748   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44749   { (case "(($ac_try" in
44750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44751   *) ac_try_echo=$ac_try;;
44752 esac
44753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44754   (eval "$ac_try") 2>&5
44755   ac_status=$?
44756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44757   (exit $ac_status); }; }; then
44758   ac_cv_func_utime_null=yes
44759 else
44760   echo "$as_me: program exited with status $ac_status" >&5
44761 echo "$as_me: failed program was:" >&5
44762 sed 's/^/| /' conftest.$ac_ext >&5
44763
44764 ( exit $ac_status )
44765 ac_cv_func_utime_null=no
44766 fi
44767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44768 fi
44769
44770
44771 fi
44772 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
44773 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
44774 if test $ac_cv_func_utime_null = yes; then
44775
44776 cat >>confdefs.h <<\_ACEOF
44777 #define HAVE_UTIME_NULL 1
44778 _ACEOF
44779
44780 fi
44781 rm -f conftest.data
44782
44783
44784
44785   if test $ac_cv_func_utime_null = no; then
44786     case " $LIBOBJS " in
44787   *" utime.$ac_objext "* ) ;;
44788   *) LIBOBJS="$LIBOBJS utime.$ac_objext"
44789  ;;
44790 esac
44791
44792
44793 cat >>confdefs.h <<\_ACEOF
44794 #define utime rpl_utime
44795 _ACEOF
44796
44797
44798
44799
44800
44801
44802
44803
44804
44805   { echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
44806 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6; }
44807 if test "${ac_cv_func_utimes_null+set}" = set; then
44808   echo $ECHO_N "(cached) $ECHO_C" >&6
44809 else
44810   rm -f conftest.data; > conftest.data
44811 if test "$cross_compiling" = yes; then
44812   ac_cv_func_utimes_null=no
44813 else
44814   cat >conftest.$ac_ext <<_ACEOF
44815 /* confdefs.h.  */
44816 _ACEOF
44817 cat confdefs.h >>conftest.$ac_ext
44818 cat >>conftest.$ac_ext <<_ACEOF
44819 /* end confdefs.h.  */
44820
44821 /* In case stat has been defined to rpl_stat, undef it here.  */
44822 #undef stat
44823 #include <sys/types.h>
44824 #include <sys/stat.h>
44825 #include <sys/time.h>
44826 int
44827 main () {
44828 struct stat s, t;
44829 return ! (stat ("conftest.data", &s) == 0
44830           && utimes ("conftest.data", 0) == 0
44831           && stat ("conftest.data", &t) == 0
44832           && t.st_mtime >= s.st_mtime
44833           && t.st_mtime - s.st_mtime < 120));
44834 }
44835 _ACEOF
44836 rm -f conftest$ac_exeext
44837 if { (ac_try="$ac_link"
44838 case "(($ac_try" in
44839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44840   *) ac_try_echo=$ac_try;;
44841 esac
44842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44843   (eval "$ac_link") 2>&5
44844   ac_status=$?
44845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44846   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44847   { (case "(($ac_try" in
44848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44849   *) ac_try_echo=$ac_try;;
44850 esac
44851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44852   (eval "$ac_try") 2>&5
44853   ac_status=$?
44854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44855   (exit $ac_status); }; }; then
44856   ac_cv_func_utimes_null=yes
44857 else
44858   echo "$as_me: program exited with status $ac_status" >&5
44859 echo "$as_me: failed program was:" >&5
44860 sed 's/^/| /' conftest.$ac_ext >&5
44861
44862 ( exit $ac_status )
44863 ac_cv_func_utimes_null=no
44864 fi
44865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44866 fi
44867
44868
44869 rm -f core core.* *.core
44870 fi
44871 { echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
44872 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6; }
44873
44874     if test $ac_cv_func_utimes_null = yes; then
44875
44876 cat >>confdefs.h <<\_ACEOF
44877 #define HAVE_UTIMES_NULL 1
44878 _ACEOF
44879
44880     fi
44881
44882
44883
44884   fi
44885
44886
44887
44888
44889
44890
44891
44892
44893
44894
44895  { echo "$as_me:$LINENO: checking whether rename is broken" >&5
44896 echo $ECHO_N "checking whether rename is broken... $ECHO_C" >&6; }
44897 if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then
44898   echo $ECHO_N "(cached) $ECHO_C" >&6
44899 else
44900
44901     rm -rf conftest.d1 conftest.d2
44902     mkdir conftest.d1 ||
44903       { { echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
44904 echo "$as_me: error: cannot create temporary directory" >&2;}
44905    { (exit 1); exit 1; }; }
44906     if test "$cross_compiling" = yes; then
44907         vb_cv_func_rename_trailing_slash_bug=yes
44908 else
44909   cat >conftest.$ac_ext <<_ACEOF
44910 /* confdefs.h.  */
44911 _ACEOF
44912 cat confdefs.h >>conftest.$ac_ext
44913 cat >>conftest.$ac_ext <<_ACEOF
44914 /* end confdefs.h.  */
44915
44916 #       include <stdio.h>
44917 #       include <stdlib.h>
44918         int
44919         main ()
44920         {
44921           exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
44922         }
44923
44924 _ACEOF
44925 rm -f conftest$ac_exeext
44926 if { (ac_try="$ac_link"
44927 case "(($ac_try" in
44928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44929   *) ac_try_echo=$ac_try;;
44930 esac
44931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44932   (eval "$ac_link") 2>&5
44933   ac_status=$?
44934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44935   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44936   { (case "(($ac_try" in
44937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44938   *) ac_try_echo=$ac_try;;
44939 esac
44940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44941   (eval "$ac_try") 2>&5
44942   ac_status=$?
44943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44944   (exit $ac_status); }; }; then
44945   vb_cv_func_rename_trailing_slash_bug=no
44946 else
44947   echo "$as_me: program exited with status $ac_status" >&5
44948 echo "$as_me: failed program was:" >&5
44949 sed 's/^/| /' conftest.$ac_ext >&5
44950
44951 ( exit $ac_status )
44952 vb_cv_func_rename_trailing_slash_bug=yes
44953 fi
44954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44955 fi
44956
44957
44958
44959       rm -rf conftest.d1 conftest.d2
44960
44961 fi
44962 { echo "$as_me:$LINENO: result: $vb_cv_func_rename_trailing_slash_bug" >&5
44963 echo "${ECHO_T}$vb_cv_func_rename_trailing_slash_bug" >&6; }
44964   if test $vb_cv_func_rename_trailing_slash_bug = yes; then
44965     case " $LIBOBJS " in
44966   *" rename.$ac_objext "* ) ;;
44967   *) LIBOBJS="$LIBOBJS rename.$ac_objext"
44968  ;;
44969 esac
44970
44971
44972 cat >>confdefs.h <<\_ACEOF
44973 #define rename rpl_rename
44974 _ACEOF
44975
44976
44977 cat >>confdefs.h <<\_ACEOF
44978 #define RENAME_TRAILING_SLASH_BUG 1
44979 _ACEOF
44980
44981     :
44982   fi
44983
44984
44985
44986
44987
44988
44989
44990
44991
44992   # No system provides these functions; compile them unconditionally.
44993   case " $LIBOBJS " in
44994   *" mkdirat.$ac_objext "* ) ;;
44995   *) LIBOBJS="$LIBOBJS mkdirat.$ac_objext"
44996  ;;
44997 esac
44998
44999   case " $LIBOBJS " in
45000   *" fchmodat.$ac_objext "* ) ;;
45001   *) LIBOBJS="$LIBOBJS fchmodat.$ac_objext"
45002  ;;
45003 esac
45004
45005
45006   case " $LIBOBJS " in
45007   *" openat-die.$ac_objext "* ) ;;
45008   *) LIBOBJS="$LIBOBJS openat-die.$ac_objext"
45009  ;;
45010 esac
45011
45012
45013
45014
45015
45016
45017
45018
45019
45020
45021
45022
45023
45024
45025
45026 for ac_func in openat
45027 do
45028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45029 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45031 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45032   echo $ECHO_N "(cached) $ECHO_C" >&6
45033 else
45034   cat >conftest.$ac_ext <<_ACEOF
45035 /* confdefs.h.  */
45036 _ACEOF
45037 cat confdefs.h >>conftest.$ac_ext
45038 cat >>conftest.$ac_ext <<_ACEOF
45039 /* end confdefs.h.  */
45040 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45041    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45042 #define $ac_func innocuous_$ac_func
45043
45044 /* System header to define __stub macros and hopefully few prototypes,
45045     which can conflict with char $ac_func (); below.
45046     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45047     <limits.h> exists even on freestanding compilers.  */
45048
45049 #ifdef __STDC__
45050 # include <limits.h>
45051 #else
45052 # include <assert.h>
45053 #endif
45054
45055 #undef $ac_func
45056
45057 /* Override any GCC internal prototype to avoid an error.
45058    Use char because int might match the return type of a GCC
45059    builtin and then its argument prototype would still apply.  */
45060 #ifdef __cplusplus
45061 extern "C"
45062 #endif
45063 char $ac_func ();
45064 /* The GNU C library defines this for functions which it implements
45065     to always fail with ENOSYS.  Some functions are actually named
45066     something starting with __ and the normal name is an alias.  */
45067 #if defined __stub_$ac_func || defined __stub___$ac_func
45068 choke me
45069 #endif
45070
45071 int
45072 main ()
45073 {
45074 return $ac_func ();
45075   ;
45076   return 0;
45077 }
45078 _ACEOF
45079 rm -f conftest.$ac_objext conftest$ac_exeext
45080 if { (ac_try="$ac_link"
45081 case "(($ac_try" in
45082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45083   *) ac_try_echo=$ac_try;;
45084 esac
45085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45086   (eval "$ac_link") 2>conftest.er1
45087   ac_status=$?
45088   grep -v '^ *+' conftest.er1 >conftest.err
45089   rm -f conftest.er1
45090   cat conftest.err >&5
45091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45092   (exit $ac_status); } &&
45093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45094   { (case "(($ac_try" in
45095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45096   *) ac_try_echo=$ac_try;;
45097 esac
45098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45099   (eval "$ac_try") 2>&5
45100   ac_status=$?
45101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45102   (exit $ac_status); }; } &&
45103          { ac_try='test -s conftest$ac_exeext'
45104   { (case "(($ac_try" in
45105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45106   *) ac_try_echo=$ac_try;;
45107 esac
45108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45109   (eval "$ac_try") 2>&5
45110   ac_status=$?
45111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45112   (exit $ac_status); }; }; then
45113   eval "$as_ac_var=yes"
45114 else
45115   echo "$as_me: failed program was:" >&5
45116 sed 's/^/| /' conftest.$ac_ext >&5
45117
45118         eval "$as_ac_var=no"
45119 fi
45120
45121 rm -f core conftest.err conftest.$ac_objext \
45122       conftest$ac_exeext conftest.$ac_ext
45123 fi
45124 ac_res=`eval echo '${'$as_ac_var'}'`
45125                { echo "$as_me:$LINENO: result: $ac_res" >&5
45126 echo "${ECHO_T}$ac_res" >&6; }
45127 if test `eval echo '${'$as_ac_var'}'` = yes; then
45128   cat >>confdefs.h <<_ACEOF
45129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45130 _ACEOF
45131
45132 else
45133   case " $LIBOBJS " in
45134   *" $ac_func.$ac_objext "* ) ;;
45135   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
45136  ;;
45137 esac
45138
45139 fi
45140 done
45141
45142
45143   case $ac_cv_func_openat in
45144   yes) ;;
45145   *)
45146
45147 cat >>confdefs.h <<\_ACEOF
45148 #define __OPENAT_PREFIX rpl_
45149 _ACEOF
45150
45151
45152
45153 ;;
45154   esac
45155
45156
45157
45158
45159       case " $LIBOBJS " in
45160   *" fts.$ac_objext "* ) ;;
45161   *) LIBOBJS="$LIBOBJS fts.$ac_objext"
45162  ;;
45163 esac
45164
45165
45166
45167
45168   # Checks for header files.
45169
45170
45171
45172
45173
45174
45175
45176
45177
45178
45179
45180
45181   case " $LIBOBJS " in
45182   *" memcasecmp.$ac_objext "* ) ;;
45183   *) LIBOBJS="$LIBOBJS memcasecmp.$ac_objext"
45184  ;;
45185 esac
45186
45187
45188
45189
45190   case " $LIBOBJS " in
45191   *" argmatch.$ac_objext "* ) ;;
45192   *) LIBOBJS="$LIBOBJS argmatch.$ac_objext"
45193  ;;
45194 esac
45195
45196
45197
45198
45199   case " $LIBOBJS " in
45200   *" cycle-check.$ac_objext "* ) ;;
45201   *) LIBOBJS="$LIBOBJS cycle-check.$ac_objext"
45202  ;;
45203 esac
45204
45205
45206
45207
45208
45209
45210   case " $LIBOBJS " in
45211   *" euidaccess-stat.$ac_objext "* ) ;;
45212   *) LIBOBJS="$LIBOBJS euidaccess-stat.$ac_objext"
45213  ;;
45214 esac
45215
45216
45217
45218   # We don't yet use c-stack.c.
45219   # AC_REQUIRE([gl_C_STACK])
45220
45221
45222
45223
45224
45225
45226
45227
45228
45229
45230
45231
45232
45233
45234
45235
45236
45237
45238
45239
45240
45241
45242
45243
45244
45245
45246
45247
45248
45249
45250
45251
45252
45253
45254
45255
45256
45257
45258
45259
45260
45261
45262
45263
45264
45265
45266
45267
45268
45269
45270
45271
45272
45273
45274
45275
45276
45277
45278
45279
45280
45281
45282
45283
45284
45285
45286
45287
45288
45289
45290
45291
45292
45293
45294
45295
45296
45297
45298
45299
45300
45301
45302
45303
45304
45305
45306
45307
45308
45309
45310
45311
45312
45313
45314
45315
45316
45317
45318
45319
45320
45321
45322
45323
45324
45325
45326
45327
45328
45329
45330
45331
45332
45333
45334
45335
45336
45337
45338
45339
45340
45341
45342
45343
45344
45345
45346
45347
45348
45349
45350
45351
45352
45353
45354
45355
45356
45357
45358
45359
45360
45361
45362
45363
45364
45365
45366
45367
45368
45369
45370
45371
45372
45373
45374
45375
45376
45377
45378
45379
45380 for ac_func in dirfd
45381 do
45382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45383 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45385 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45386   echo $ECHO_N "(cached) $ECHO_C" >&6
45387 else
45388   cat >conftest.$ac_ext <<_ACEOF
45389 /* confdefs.h.  */
45390 _ACEOF
45391 cat confdefs.h >>conftest.$ac_ext
45392 cat >>conftest.$ac_ext <<_ACEOF
45393 /* end confdefs.h.  */
45394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45395    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45396 #define $ac_func innocuous_$ac_func
45397
45398 /* System header to define __stub macros and hopefully few prototypes,
45399     which can conflict with char $ac_func (); below.
45400     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45401     <limits.h> exists even on freestanding compilers.  */
45402
45403 #ifdef __STDC__
45404 # include <limits.h>
45405 #else
45406 # include <assert.h>
45407 #endif
45408
45409 #undef $ac_func
45410
45411 /* Override any GCC internal prototype to avoid an error.
45412    Use char because int might match the return type of a GCC
45413    builtin and then its argument prototype would still apply.  */
45414 #ifdef __cplusplus
45415 extern "C"
45416 #endif
45417 char $ac_func ();
45418 /* The GNU C library defines this for functions which it implements
45419     to always fail with ENOSYS.  Some functions are actually named
45420     something starting with __ and the normal name is an alias.  */
45421 #if defined __stub_$ac_func || defined __stub___$ac_func
45422 choke me
45423 #endif
45424
45425 int
45426 main ()
45427 {
45428 return $ac_func ();
45429   ;
45430   return 0;
45431 }
45432 _ACEOF
45433 rm -f conftest.$ac_objext conftest$ac_exeext
45434 if { (ac_try="$ac_link"
45435 case "(($ac_try" in
45436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45437   *) ac_try_echo=$ac_try;;
45438 esac
45439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45440   (eval "$ac_link") 2>conftest.er1
45441   ac_status=$?
45442   grep -v '^ *+' conftest.er1 >conftest.err
45443   rm -f conftest.er1
45444   cat conftest.err >&5
45445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45446   (exit $ac_status); } &&
45447          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45448   { (case "(($ac_try" in
45449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45450   *) ac_try_echo=$ac_try;;
45451 esac
45452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45453   (eval "$ac_try") 2>&5
45454   ac_status=$?
45455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45456   (exit $ac_status); }; } &&
45457          { ac_try='test -s conftest$ac_exeext'
45458   { (case "(($ac_try" in
45459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45460   *) ac_try_echo=$ac_try;;
45461 esac
45462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45463   (eval "$ac_try") 2>&5
45464   ac_status=$?
45465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45466   (exit $ac_status); }; }; then
45467   eval "$as_ac_var=yes"
45468 else
45469   echo "$as_me: failed program was:" >&5
45470 sed 's/^/| /' conftest.$ac_ext >&5
45471
45472         eval "$as_ac_var=no"
45473 fi
45474
45475 rm -f core conftest.err conftest.$ac_objext \
45476       conftest$ac_exeext conftest.$ac_ext
45477 fi
45478 ac_res=`eval echo '${'$as_ac_var'}'`
45479                { echo "$as_me:$LINENO: result: $ac_res" >&5
45480 echo "${ECHO_T}$ac_res" >&6; }
45481 if test `eval echo '${'$as_ac_var'}'` = yes; then
45482   cat >>confdefs.h <<_ACEOF
45483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45484 _ACEOF
45485
45486 fi
45487 done
45488
45489   { echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
45490 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6; }
45491 if test "${ac_cv_have_decl_dirfd+set}" = set; then
45492   echo $ECHO_N "(cached) $ECHO_C" >&6
45493 else
45494   cat >conftest.$ac_ext <<_ACEOF
45495 /* confdefs.h.  */
45496 _ACEOF
45497 cat confdefs.h >>conftest.$ac_ext
45498 cat >>conftest.$ac_ext <<_ACEOF
45499 /* end confdefs.h.  */
45500 #include <sys/types.h>
45501      #include <dirent.h>
45502
45503 int
45504 main ()
45505 {
45506 #ifndef dirfd
45507   char *p = (char *) dirfd;
45508   return !p;
45509 #endif
45510
45511   ;
45512   return 0;
45513 }
45514 _ACEOF
45515 rm -f conftest.$ac_objext
45516 if { (ac_try="$ac_compile"
45517 case "(($ac_try" in
45518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45519   *) ac_try_echo=$ac_try;;
45520 esac
45521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45522   (eval "$ac_compile") 2>conftest.er1
45523   ac_status=$?
45524   grep -v '^ *+' conftest.er1 >conftest.err
45525   rm -f conftest.er1
45526   cat conftest.err >&5
45527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45528   (exit $ac_status); } &&
45529          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45530   { (case "(($ac_try" in
45531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45532   *) ac_try_echo=$ac_try;;
45533 esac
45534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45535   (eval "$ac_try") 2>&5
45536   ac_status=$?
45537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45538   (exit $ac_status); }; } &&
45539          { ac_try='test -s conftest.$ac_objext'
45540   { (case "(($ac_try" in
45541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45542   *) ac_try_echo=$ac_try;;
45543 esac
45544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45545   (eval "$ac_try") 2>&5
45546   ac_status=$?
45547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45548   (exit $ac_status); }; }; then
45549   ac_cv_have_decl_dirfd=yes
45550 else
45551   echo "$as_me: failed program was:" >&5
45552 sed 's/^/| /' conftest.$ac_ext >&5
45553
45554         ac_cv_have_decl_dirfd=no
45555 fi
45556
45557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45558 fi
45559 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
45560 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6; }
45561 if test $ac_cv_have_decl_dirfd = yes; then
45562
45563 cat >>confdefs.h <<_ACEOF
45564 #define HAVE_DECL_DIRFD 1
45565 _ACEOF
45566
45567
45568 else
45569   cat >>confdefs.h <<_ACEOF
45570 #define HAVE_DECL_DIRFD 0
45571 _ACEOF
45572
45573
45574 fi
45575
45576
45577
45578   { echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
45579 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6; }
45580 if test "${gl_cv_func_dirfd_macro+set}" = set; then
45581   echo $ECHO_N "(cached) $ECHO_C" >&6
45582 else
45583   cat >conftest.$ac_ext <<_ACEOF
45584 /* confdefs.h.  */
45585 _ACEOF
45586 cat confdefs.h >>conftest.$ac_ext
45587 cat >>conftest.$ac_ext <<_ACEOF
45588 /* end confdefs.h.  */
45589
45590 #include <sys/types.h>
45591 #include <dirent.h>
45592 #ifdef dirfd
45593  dirent_header_defines_dirfd
45594 #endif
45595 _ACEOF
45596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45597   $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
45598   gl_cv_func_dirfd_macro=yes
45599 else
45600   gl_cv_func_dirfd_macro=no
45601 fi
45602 rm -f conftest*
45603
45604 fi
45605 { echo "$as_me:$LINENO: result: $gl_cv_func_dirfd_macro" >&5
45606 echo "${ECHO_T}$gl_cv_func_dirfd_macro" >&6; }
45607
45608   # Use the replacement only if we have no function, macro,
45609   # or declaration with that name.
45610   if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$gl_cv_func_dirfd_macro \
45611       = no,no,no; then
45612
45613 for ac_func in dirfd
45614 do
45615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45616 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45619   echo $ECHO_N "(cached) $ECHO_C" >&6
45620 else
45621   cat >conftest.$ac_ext <<_ACEOF
45622 /* confdefs.h.  */
45623 _ACEOF
45624 cat confdefs.h >>conftest.$ac_ext
45625 cat >>conftest.$ac_ext <<_ACEOF
45626 /* end confdefs.h.  */
45627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45628    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45629 #define $ac_func innocuous_$ac_func
45630
45631 /* System header to define __stub macros and hopefully few prototypes,
45632     which can conflict with char $ac_func (); below.
45633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45634     <limits.h> exists even on freestanding compilers.  */
45635
45636 #ifdef __STDC__
45637 # include <limits.h>
45638 #else
45639 # include <assert.h>
45640 #endif
45641
45642 #undef $ac_func
45643
45644 /* Override any GCC internal prototype to avoid an error.
45645    Use char because int might match the return type of a GCC
45646    builtin and then its argument prototype would still apply.  */
45647 #ifdef __cplusplus
45648 extern "C"
45649 #endif
45650 char $ac_func ();
45651 /* The GNU C library defines this for functions which it implements
45652     to always fail with ENOSYS.  Some functions are actually named
45653     something starting with __ and the normal name is an alias.  */
45654 #if defined __stub_$ac_func || defined __stub___$ac_func
45655 choke me
45656 #endif
45657
45658 int
45659 main ()
45660 {
45661 return $ac_func ();
45662   ;
45663   return 0;
45664 }
45665 _ACEOF
45666 rm -f conftest.$ac_objext conftest$ac_exeext
45667 if { (ac_try="$ac_link"
45668 case "(($ac_try" in
45669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45670   *) ac_try_echo=$ac_try;;
45671 esac
45672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45673   (eval "$ac_link") 2>conftest.er1
45674   ac_status=$?
45675   grep -v '^ *+' conftest.er1 >conftest.err
45676   rm -f conftest.er1
45677   cat conftest.err >&5
45678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45679   (exit $ac_status); } &&
45680          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45681   { (case "(($ac_try" in
45682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45683   *) ac_try_echo=$ac_try;;
45684 esac
45685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45686   (eval "$ac_try") 2>&5
45687   ac_status=$?
45688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45689   (exit $ac_status); }; } &&
45690          { ac_try='test -s conftest$ac_exeext'
45691   { (case "(($ac_try" in
45692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45693   *) ac_try_echo=$ac_try;;
45694 esac
45695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45696   (eval "$ac_try") 2>&5
45697   ac_status=$?
45698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45699   (exit $ac_status); }; }; then
45700   eval "$as_ac_var=yes"
45701 else
45702   echo "$as_me: failed program was:" >&5
45703 sed 's/^/| /' conftest.$ac_ext >&5
45704
45705         eval "$as_ac_var=no"
45706 fi
45707
45708 rm -f core conftest.err conftest.$ac_objext \
45709       conftest$ac_exeext conftest.$ac_ext
45710 fi
45711 ac_res=`eval echo '${'$as_ac_var'}'`
45712                { echo "$as_me:$LINENO: result: $ac_res" >&5
45713 echo "${ECHO_T}$ac_res" >&6; }
45714 if test `eval echo '${'$as_ac_var'}'` = yes; then
45715   cat >>confdefs.h <<_ACEOF
45716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45717 _ACEOF
45718
45719 else
45720   case " $LIBOBJS " in
45721   *" $ac_func.$ac_objext "* ) ;;
45722   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
45723  ;;
45724 esac
45725
45726 fi
45727 done
45728
45729
45730     { echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
45731 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6; }
45732 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
45733   echo $ECHO_N "(cached) $ECHO_C" >&6
45734 else
45735
45736         dirfd_save_CFLAGS=$CFLAGS
45737         for ac_expr in d_fd dd_fd; do
45738
45739           CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
45740           cat >conftest.$ac_ext <<_ACEOF
45741 /* confdefs.h.  */
45742 _ACEOF
45743 cat confdefs.h >>conftest.$ac_ext
45744 cat >>conftest.$ac_ext <<_ACEOF
45745 /* end confdefs.h.  */
45746 #include <sys/types.h>
45747              #include <dirent.h>
45748 int
45749 main ()
45750 {
45751 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
45752   ;
45753   return 0;
45754 }
45755 _ACEOF
45756 rm -f conftest.$ac_objext
45757 if { (ac_try="$ac_compile"
45758 case "(($ac_try" in
45759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45760   *) ac_try_echo=$ac_try;;
45761 esac
45762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45763   (eval "$ac_compile") 2>conftest.er1
45764   ac_status=$?
45765   grep -v '^ *+' conftest.er1 >conftest.err
45766   rm -f conftest.er1
45767   cat conftest.err >&5
45768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45769   (exit $ac_status); } &&
45770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45771   { (case "(($ac_try" in
45772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45773   *) ac_try_echo=$ac_try;;
45774 esac
45775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45776   (eval "$ac_try") 2>&5
45777   ac_status=$?
45778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45779   (exit $ac_status); }; } &&
45780          { ac_try='test -s conftest.$ac_objext'
45781   { (case "(($ac_try" in
45782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45783   *) ac_try_echo=$ac_try;;
45784 esac
45785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45786   (eval "$ac_try") 2>&5
45787   ac_status=$?
45788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45789   (exit $ac_status); }; }; then
45790   dir_fd_found=yes
45791
45792 else
45793   echo "$as_me: failed program was:" >&5
45794 sed 's/^/| /' conftest.$ac_ext >&5
45795
45796
45797 fi
45798
45799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45800           CFLAGS=$dirfd_save_CFLAGS
45801           test "$dir_fd_found" = yes && break
45802         done
45803         test "$dir_fd_found" = yes || ac_expr=no_such_member
45804
45805         gl_cv_sys_dir_fd_member_name=$ac_expr
45806
45807
45808 fi
45809 { echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
45810 echo "${ECHO_T}$gl_cv_sys_dir_fd_member_name" >&6; }
45811     if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
45812
45813 cat >>confdefs.h <<_ACEOF
45814 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
45815 _ACEOF
45816
45817     fi
45818
45819
45820   fi
45821
45822
45823
45824   case " $LIBOBJS " in
45825   *" acl.$ac_objext "* ) ;;
45826   *) LIBOBJS="$LIBOBJS acl.$ac_objext"
45827  ;;
45828 esac
45829
45830
45831
45832 for ac_header in sys/acl.h
45833 do
45834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45836   { echo "$as_me:$LINENO: checking for $ac_header" >&5
45837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45839   echo $ECHO_N "(cached) $ECHO_C" >&6
45840 fi
45841 ac_res=`eval echo '${'$as_ac_Header'}'`
45842                { echo "$as_me:$LINENO: result: $ac_res" >&5
45843 echo "${ECHO_T}$ac_res" >&6; }
45844 else
45845   # Is the header compilable?
45846 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
45847 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
45848 cat >conftest.$ac_ext <<_ACEOF
45849 /* confdefs.h.  */
45850 _ACEOF
45851 cat confdefs.h >>conftest.$ac_ext
45852 cat >>conftest.$ac_ext <<_ACEOF
45853 /* end confdefs.h.  */
45854 $ac_includes_default
45855 #include <$ac_header>
45856 _ACEOF
45857 rm -f conftest.$ac_objext
45858 if { (ac_try="$ac_compile"
45859 case "(($ac_try" in
45860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45861   *) ac_try_echo=$ac_try;;
45862 esac
45863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45864   (eval "$ac_compile") 2>conftest.er1
45865   ac_status=$?
45866   grep -v '^ *+' conftest.er1 >conftest.err
45867   rm -f conftest.er1
45868   cat conftest.err >&5
45869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45870   (exit $ac_status); } &&
45871          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45872   { (case "(($ac_try" in
45873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45874   *) ac_try_echo=$ac_try;;
45875 esac
45876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45877   (eval "$ac_try") 2>&5
45878   ac_status=$?
45879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45880   (exit $ac_status); }; } &&
45881          { ac_try='test -s conftest.$ac_objext'
45882   { (case "(($ac_try" in
45883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45884   *) ac_try_echo=$ac_try;;
45885 esac
45886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45887   (eval "$ac_try") 2>&5
45888   ac_status=$?
45889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45890   (exit $ac_status); }; }; then
45891   ac_header_compiler=yes
45892 else
45893   echo "$as_me: failed program was:" >&5
45894 sed 's/^/| /' conftest.$ac_ext >&5
45895
45896         ac_header_compiler=no
45897 fi
45898
45899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45901 echo "${ECHO_T}$ac_header_compiler" >&6; }
45902
45903 # Is the header present?
45904 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
45905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
45906 cat >conftest.$ac_ext <<_ACEOF
45907 /* confdefs.h.  */
45908 _ACEOF
45909 cat confdefs.h >>conftest.$ac_ext
45910 cat >>conftest.$ac_ext <<_ACEOF
45911 /* end confdefs.h.  */
45912 #include <$ac_header>
45913 _ACEOF
45914 if { (ac_try="$ac_cpp conftest.$ac_ext"
45915 case "(($ac_try" in
45916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45917   *) ac_try_echo=$ac_try;;
45918 esac
45919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45920   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45921   ac_status=$?
45922   grep -v '^ *+' conftest.er1 >conftest.err
45923   rm -f conftest.er1
45924   cat conftest.err >&5
45925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45926   (exit $ac_status); } >/dev/null; then
45927   if test -s conftest.err; then
45928     ac_cpp_err=$ac_c_preproc_warn_flag
45929     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45930   else
45931     ac_cpp_err=
45932   fi
45933 else
45934   ac_cpp_err=yes
45935 fi
45936 if test -z "$ac_cpp_err"; then
45937   ac_header_preproc=yes
45938 else
45939   echo "$as_me: failed program was:" >&5
45940 sed 's/^/| /' conftest.$ac_ext >&5
45941
45942   ac_header_preproc=no
45943 fi
45944
45945 rm -f conftest.err conftest.$ac_ext
45946 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45947 echo "${ECHO_T}$ac_header_preproc" >&6; }
45948
45949 # So?  What about this header?
45950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45951   yes:no: )
45952     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45953 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45954     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45955 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45956     ac_header_preproc=yes
45957     ;;
45958   no:yes:* )
45959     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45960 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45961     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45962 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45963     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45964 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45965     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45966 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45967     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45968 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45969     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45970 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45971     ( cat <<\_ASBOX
45972 ## ------------------------------------ ##
45973 ## Report this to bug-coreutils@gnu.org ##
45974 ## ------------------------------------ ##
45975 _ASBOX
45976      ) | sed "s/^/$as_me: WARNING:     /" >&2
45977     ;;
45978 esac
45979 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45982   echo $ECHO_N "(cached) $ECHO_C" >&6
45983 else
45984   eval "$as_ac_Header=\$ac_header_preproc"
45985 fi
45986 ac_res=`eval echo '${'$as_ac_Header'}'`
45987                { echo "$as_me:$LINENO: result: $ac_res" >&5
45988 echo "${ECHO_T}$ac_res" >&6; }
45989
45990 fi
45991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45992   cat >>confdefs.h <<_ACEOF
45993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45994 _ACEOF
45995
45996 fi
45997
45998 done
45999
46000   if test "$ac_cv_header_sys_acl_h" = yes; then
46001     use_acl=1
46002   else
46003     use_acl=0
46004   fi
46005
46006 cat >>confdefs.h <<_ACEOF
46007 #define USE_ACL $use_acl
46008 _ACEOF
46009
46010
46011 for ac_func in acl
46012 do
46013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46014 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46016 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46017   echo $ECHO_N "(cached) $ECHO_C" >&6
46018 else
46019   cat >conftest.$ac_ext <<_ACEOF
46020 /* confdefs.h.  */
46021 _ACEOF
46022 cat confdefs.h >>conftest.$ac_ext
46023 cat >>conftest.$ac_ext <<_ACEOF
46024 /* end confdefs.h.  */
46025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46026    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46027 #define $ac_func innocuous_$ac_func
46028
46029 /* System header to define __stub macros and hopefully few prototypes,
46030     which can conflict with char $ac_func (); below.
46031     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46032     <limits.h> exists even on freestanding compilers.  */
46033
46034 #ifdef __STDC__
46035 # include <limits.h>
46036 #else
46037 # include <assert.h>
46038 #endif
46039
46040 #undef $ac_func
46041
46042 /* Override any GCC internal prototype to avoid an error.
46043    Use char because int might match the return type of a GCC
46044    builtin and then its argument prototype would still apply.  */
46045 #ifdef __cplusplus
46046 extern "C"
46047 #endif
46048 char $ac_func ();
46049 /* The GNU C library defines this for functions which it implements
46050     to always fail with ENOSYS.  Some functions are actually named
46051     something starting with __ and the normal name is an alias.  */
46052 #if defined __stub_$ac_func || defined __stub___$ac_func
46053 choke me
46054 #endif
46055
46056 int
46057 main ()
46058 {
46059 return $ac_func ();
46060   ;
46061   return 0;
46062 }
46063 _ACEOF
46064 rm -f conftest.$ac_objext conftest$ac_exeext
46065 if { (ac_try="$ac_link"
46066 case "(($ac_try" in
46067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46068   *) ac_try_echo=$ac_try;;
46069 esac
46070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46071   (eval "$ac_link") 2>conftest.er1
46072   ac_status=$?
46073   grep -v '^ *+' conftest.er1 >conftest.err
46074   rm -f conftest.er1
46075   cat conftest.err >&5
46076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46077   (exit $ac_status); } &&
46078          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46079   { (case "(($ac_try" in
46080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46081   *) ac_try_echo=$ac_try;;
46082 esac
46083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46084   (eval "$ac_try") 2>&5
46085   ac_status=$?
46086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46087   (exit $ac_status); }; } &&
46088          { ac_try='test -s conftest$ac_exeext'
46089   { (case "(($ac_try" in
46090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46091   *) ac_try_echo=$ac_try;;
46092 esac
46093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46094   (eval "$ac_try") 2>&5
46095   ac_status=$?
46096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46097   (exit $ac_status); }; }; then
46098   eval "$as_ac_var=yes"
46099 else
46100   echo "$as_me: failed program was:" >&5
46101 sed 's/^/| /' conftest.$ac_ext >&5
46102
46103         eval "$as_ac_var=no"
46104 fi
46105
46106 rm -f core conftest.err conftest.$ac_objext \
46107       conftest$ac_exeext conftest.$ac_ext
46108 fi
46109 ac_res=`eval echo '${'$as_ac_var'}'`
46110                { echo "$as_me:$LINENO: result: $ac_res" >&5
46111 echo "${ECHO_T}$ac_res" >&6; }
46112 if test `eval echo '${'$as_ac_var'}'` = yes; then
46113   cat >>confdefs.h <<_ACEOF
46114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46115 _ACEOF
46116
46117 fi
46118 done
46119
46120   ac_save_LIBS="$LIBS"
46121   { echo "$as_me:$LINENO: checking for library containing acl_get_file" >&5
46122 echo $ECHO_N "checking for library containing acl_get_file... $ECHO_C" >&6; }
46123 if test "${ac_cv_search_acl_get_file+set}" = set; then
46124   echo $ECHO_N "(cached) $ECHO_C" >&6
46125 else
46126   ac_func_search_save_LIBS=$LIBS
46127 cat >conftest.$ac_ext <<_ACEOF
46128 /* confdefs.h.  */
46129 _ACEOF
46130 cat confdefs.h >>conftest.$ac_ext
46131 cat >>conftest.$ac_ext <<_ACEOF
46132 /* end confdefs.h.  */
46133
46134 /* Override any GCC internal prototype to avoid an error.
46135    Use char because int might match the return type of a GCC
46136    builtin and then its argument prototype would still apply.  */
46137 #ifdef __cplusplus
46138 extern "C"
46139 #endif
46140 char acl_get_file ();
46141 int
46142 main ()
46143 {
46144 return acl_get_file ();
46145   ;
46146   return 0;
46147 }
46148 _ACEOF
46149 for ac_lib in '' acl; do
46150   if test -z "$ac_lib"; then
46151     ac_res="none required"
46152   else
46153     ac_res=-l$ac_lib
46154     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
46155   fi
46156   rm -f conftest.$ac_objext conftest$ac_exeext
46157 if { (ac_try="$ac_link"
46158 case "(($ac_try" in
46159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46160   *) ac_try_echo=$ac_try;;
46161 esac
46162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46163   (eval "$ac_link") 2>conftest.er1
46164   ac_status=$?
46165   grep -v '^ *+' conftest.er1 >conftest.err
46166   rm -f conftest.er1
46167   cat conftest.err >&5
46168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46169   (exit $ac_status); } &&
46170          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46171   { (case "(($ac_try" in
46172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46173   *) ac_try_echo=$ac_try;;
46174 esac
46175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46176   (eval "$ac_try") 2>&5
46177   ac_status=$?
46178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46179   (exit $ac_status); }; } &&
46180          { ac_try='test -s conftest$ac_exeext'
46181   { (case "(($ac_try" in
46182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46183   *) ac_try_echo=$ac_try;;
46184 esac
46185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46186   (eval "$ac_try") 2>&5
46187   ac_status=$?
46188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46189   (exit $ac_status); }; }; then
46190   ac_cv_search_acl_get_file=$ac_res
46191 else
46192   echo "$as_me: failed program was:" >&5
46193 sed 's/^/| /' conftest.$ac_ext >&5
46194
46195
46196 fi
46197
46198 rm -f core conftest.err conftest.$ac_objext \
46199       conftest$ac_exeext
46200   if test "${ac_cv_search_acl_get_file+set}" = set; then
46201   break
46202 fi
46203 done
46204 if test "${ac_cv_search_acl_get_file+set}" = set; then
46205   :
46206 else
46207   ac_cv_search_acl_get_file=no
46208 fi
46209 rm conftest.$ac_ext
46210 LIBS=$ac_func_search_save_LIBS
46211 fi
46212 { echo "$as_me:$LINENO: result: $ac_cv_search_acl_get_file" >&5
46213 echo "${ECHO_T}$ac_cv_search_acl_get_file" >&6; }
46214 ac_res=$ac_cv_search_acl_get_file
46215 if test "$ac_res" != no; then
46216   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
46217   test "$ac_cv_search_acl_get_file" = "none required" ||
46218                   LIB_ACL=$ac_cv_search_acl_get_file
46219 fi
46220
46221
46222
46223 for ac_header in acl/libacl.h
46224 do
46225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46227   { echo "$as_me:$LINENO: checking for $ac_header" >&5
46228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46230   echo $ECHO_N "(cached) $ECHO_C" >&6
46231 fi
46232 ac_res=`eval echo '${'$as_ac_Header'}'`
46233                { echo "$as_me:$LINENO: result: $ac_res" >&5
46234 echo "${ECHO_T}$ac_res" >&6; }
46235 else
46236   # Is the header compilable?
46237 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
46238 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
46239 cat >conftest.$ac_ext <<_ACEOF
46240 /* confdefs.h.  */
46241 _ACEOF
46242 cat confdefs.h >>conftest.$ac_ext
46243 cat >>conftest.$ac_ext <<_ACEOF
46244 /* end confdefs.h.  */
46245 $ac_includes_default
46246 #include <$ac_header>
46247 _ACEOF
46248 rm -f conftest.$ac_objext
46249 if { (ac_try="$ac_compile"
46250 case "(($ac_try" in
46251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46252   *) ac_try_echo=$ac_try;;
46253 esac
46254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46255   (eval "$ac_compile") 2>conftest.er1
46256   ac_status=$?
46257   grep -v '^ *+' conftest.er1 >conftest.err
46258   rm -f conftest.er1
46259   cat conftest.err >&5
46260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46261   (exit $ac_status); } &&
46262          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46263   { (case "(($ac_try" in
46264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46265   *) ac_try_echo=$ac_try;;
46266 esac
46267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46268   (eval "$ac_try") 2>&5
46269   ac_status=$?
46270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46271   (exit $ac_status); }; } &&
46272          { ac_try='test -s conftest.$ac_objext'
46273   { (case "(($ac_try" in
46274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46275   *) ac_try_echo=$ac_try;;
46276 esac
46277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46278   (eval "$ac_try") 2>&5
46279   ac_status=$?
46280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46281   (exit $ac_status); }; }; then
46282   ac_header_compiler=yes
46283 else
46284   echo "$as_me: failed program was:" >&5
46285 sed 's/^/| /' conftest.$ac_ext >&5
46286
46287         ac_header_compiler=no
46288 fi
46289
46290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46292 echo "${ECHO_T}$ac_header_compiler" >&6; }
46293
46294 # Is the header present?
46295 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
46296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
46297 cat >conftest.$ac_ext <<_ACEOF
46298 /* confdefs.h.  */
46299 _ACEOF
46300 cat confdefs.h >>conftest.$ac_ext
46301 cat >>conftest.$ac_ext <<_ACEOF
46302 /* end confdefs.h.  */
46303 #include <$ac_header>
46304 _ACEOF
46305 if { (ac_try="$ac_cpp conftest.$ac_ext"
46306 case "(($ac_try" in
46307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46308   *) ac_try_echo=$ac_try;;
46309 esac
46310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46311   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46312   ac_status=$?
46313   grep -v '^ *+' conftest.er1 >conftest.err
46314   rm -f conftest.er1
46315   cat conftest.err >&5
46316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46317   (exit $ac_status); } >/dev/null; then
46318   if test -s conftest.err; then
46319     ac_cpp_err=$ac_c_preproc_warn_flag
46320     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46321   else
46322     ac_cpp_err=
46323   fi
46324 else
46325   ac_cpp_err=yes
46326 fi
46327 if test -z "$ac_cpp_err"; then
46328   ac_header_preproc=yes
46329 else
46330   echo "$as_me: failed program was:" >&5
46331 sed 's/^/| /' conftest.$ac_ext >&5
46332
46333   ac_header_preproc=no
46334 fi
46335
46336 rm -f conftest.err conftest.$ac_ext
46337 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46338 echo "${ECHO_T}$ac_header_preproc" >&6; }
46339
46340 # So?  What about this header?
46341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46342   yes:no: )
46343     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46345     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46347     ac_header_preproc=yes
46348     ;;
46349   no:yes:* )
46350     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46352     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46353 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46354     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46356     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46357 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46358     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46360     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46362     ( cat <<\_ASBOX
46363 ## ------------------------------------ ##
46364 ## Report this to bug-coreutils@gnu.org ##
46365 ## ------------------------------------ ##
46366 _ASBOX
46367      ) | sed "s/^/$as_me: WARNING:     /" >&2
46368     ;;
46369 esac
46370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
46371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46373   echo $ECHO_N "(cached) $ECHO_C" >&6
46374 else
46375   eval "$as_ac_Header=\$ac_header_preproc"
46376 fi
46377 ac_res=`eval echo '${'$as_ac_Header'}'`
46378                { echo "$as_me:$LINENO: result: $ac_res" >&5
46379 echo "${ECHO_T}$ac_res" >&6; }
46380
46381 fi
46382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46383   cat >>confdefs.h <<_ACEOF
46384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46385 _ACEOF
46386
46387 fi
46388
46389 done
46390
46391
46392
46393
46394
46395
46396
46397
46398
46399
46400
46401
46402 for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \
46403                  acl_free acl_from_mode acl_from_text acl_to_text \
46404                  acl_delete_def_file acl_entries acl_extended_file
46405 do
46406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46410   echo $ECHO_N "(cached) $ECHO_C" >&6
46411 else
46412   cat >conftest.$ac_ext <<_ACEOF
46413 /* confdefs.h.  */
46414 _ACEOF
46415 cat confdefs.h >>conftest.$ac_ext
46416 cat >>conftest.$ac_ext <<_ACEOF
46417 /* end confdefs.h.  */
46418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46419    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46420 #define $ac_func innocuous_$ac_func
46421
46422 /* System header to define __stub macros and hopefully few prototypes,
46423     which can conflict with char $ac_func (); below.
46424     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46425     <limits.h> exists even on freestanding compilers.  */
46426
46427 #ifdef __STDC__
46428 # include <limits.h>
46429 #else
46430 # include <assert.h>
46431 #endif
46432
46433 #undef $ac_func
46434
46435 /* Override any GCC internal prototype to avoid an error.
46436    Use char because int might match the return type of a GCC
46437    builtin and then its argument prototype would still apply.  */
46438 #ifdef __cplusplus
46439 extern "C"
46440 #endif
46441 char $ac_func ();
46442 /* The GNU C library defines this for functions which it implements
46443     to always fail with ENOSYS.  Some functions are actually named
46444     something starting with __ and the normal name is an alias.  */
46445 #if defined __stub_$ac_func || defined __stub___$ac_func
46446 choke me
46447 #endif
46448
46449 int
46450 main ()
46451 {
46452 return $ac_func ();
46453   ;
46454   return 0;
46455 }
46456 _ACEOF
46457 rm -f conftest.$ac_objext conftest$ac_exeext
46458 if { (ac_try="$ac_link"
46459 case "(($ac_try" in
46460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46461   *) ac_try_echo=$ac_try;;
46462 esac
46463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46464   (eval "$ac_link") 2>conftest.er1
46465   ac_status=$?
46466   grep -v '^ *+' conftest.er1 >conftest.err
46467   rm -f conftest.er1
46468   cat conftest.err >&5
46469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46470   (exit $ac_status); } &&
46471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46472   { (case "(($ac_try" in
46473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46474   *) ac_try_echo=$ac_try;;
46475 esac
46476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46477   (eval "$ac_try") 2>&5
46478   ac_status=$?
46479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46480   (exit $ac_status); }; } &&
46481          { ac_try='test -s conftest$ac_exeext'
46482   { (case "(($ac_try" in
46483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46484   *) ac_try_echo=$ac_try;;
46485 esac
46486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46487   (eval "$ac_try") 2>&5
46488   ac_status=$?
46489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46490   (exit $ac_status); }; }; then
46491   eval "$as_ac_var=yes"
46492 else
46493   echo "$as_me: failed program was:" >&5
46494 sed 's/^/| /' conftest.$ac_ext >&5
46495
46496         eval "$as_ac_var=no"
46497 fi
46498
46499 rm -f core conftest.err conftest.$ac_objext \
46500       conftest$ac_exeext conftest.$ac_ext
46501 fi
46502 ac_res=`eval echo '${'$as_ac_var'}'`
46503                { echo "$as_me:$LINENO: result: $ac_res" >&5
46504 echo "${ECHO_T}$ac_res" >&6; }
46505 if test `eval echo '${'$as_ac_var'}'` = yes; then
46506   cat >>confdefs.h <<_ACEOF
46507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46508 _ACEOF
46509
46510 fi
46511 done
46512
46513   LIBS="$ac_save_LIBS"
46514
46515   { echo "$as_me:$LINENO: checking for rmdir-not-empty errno value" >&5
46516 echo $ECHO_N "checking for rmdir-not-empty errno value... $ECHO_C" >&6; }
46517 if test "${gl_cv_func_rmdir_errno_not_empty+set}" = set; then
46518   echo $ECHO_N "(cached) $ECHO_C" >&6
46519 else
46520
46521       # Arrange for deletion of the temporary directory this test creates.
46522       ac_clean_files="$ac_clean_files confdir2"
46523       mkdir confdir2; : > confdir2/file
46524       if test "$cross_compiling" = yes; then
46525   gl_cv_func_rmdir_errno_not_empty=ENOTEMPTY
46526
46527 else
46528   cat >conftest.$ac_ext <<_ACEOF
46529 /* confdefs.h.  */
46530 _ACEOF
46531 cat confdefs.h >>conftest.$ac_ext
46532 cat >>conftest.$ac_ext <<_ACEOF
46533 /* end confdefs.h.  */
46534
46535 #include <stdio.h>
46536 #include <errno.h>
46537         int main ()
46538         {
46539           FILE *s;
46540           int val;
46541           rmdir ("confdir2");
46542           val = errno;
46543           s = fopen ("confdir2/errno", "w");
46544           fprintf (s, "%d\n", val);
46545           return 0;
46546         }
46547
46548 _ACEOF
46549 rm -f conftest$ac_exeext
46550 if { (ac_try="$ac_link"
46551 case "(($ac_try" in
46552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46553   *) ac_try_echo=$ac_try;;
46554 esac
46555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46556   (eval "$ac_link") 2>&5
46557   ac_status=$?
46558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46559   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46560   { (case "(($ac_try" in
46561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46562   *) ac_try_echo=$ac_try;;
46563 esac
46564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46565   (eval "$ac_try") 2>&5
46566   ac_status=$?
46567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46568   (exit $ac_status); }; }; then
46569   gl_cv_func_rmdir_errno_not_empty=`cat confdir2/errno`
46570 else
46571   echo "$as_me: program exited with status $ac_status" >&5
46572 echo "$as_me: failed program was:" >&5
46573 sed 's/^/| /' conftest.$ac_ext >&5
46574
46575 ( exit $ac_status )
46576 gl_cv_func_rmdir_errno_not_empty='configure error in rmdir-errno.m4'
46577 fi
46578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46579 fi
46580
46581
46582
46583
46584 fi
46585 { echo "$as_me:$LINENO: result: $gl_cv_func_rmdir_errno_not_empty" >&5
46586 echo "${ECHO_T}$gl_cv_func_rmdir_errno_not_empty" >&6; }
46587
46588
46589 cat >>confdefs.h <<_ACEOF
46590 #define RMDIR_ERRNO_NOT_EMPTY $gl_cv_func_rmdir_errno_not_empty
46591 _ACEOF
46592
46593
46594 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
46595 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
46596 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
46597   echo $ECHO_N "(cached) $ECHO_C" >&6
46598 else
46599   if test "$cross_compiling" = yes; then
46600   ac_cv_func_lstat_empty_string_bug=yes
46601 else
46602   cat >conftest.$ac_ext <<_ACEOF
46603 /* confdefs.h.  */
46604 _ACEOF
46605 cat confdefs.h >>conftest.$ac_ext
46606 cat >>conftest.$ac_ext <<_ACEOF
46607 /* end confdefs.h.  */
46608 $ac_includes_default
46609 int
46610 main ()
46611 {
46612 struct stat sbuf;
46613   return lstat ("", &sbuf) == 0;
46614   ;
46615   return 0;
46616 }
46617 _ACEOF
46618 rm -f conftest$ac_exeext
46619 if { (ac_try="$ac_link"
46620 case "(($ac_try" in
46621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46622   *) ac_try_echo=$ac_try;;
46623 esac
46624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46625   (eval "$ac_link") 2>&5
46626   ac_status=$?
46627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46628   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46629   { (case "(($ac_try" in
46630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46631   *) ac_try_echo=$ac_try;;
46632 esac
46633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46634   (eval "$ac_try") 2>&5
46635   ac_status=$?
46636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46637   (exit $ac_status); }; }; then
46638   ac_cv_func_lstat_empty_string_bug=no
46639 else
46640   echo "$as_me: program exited with status $ac_status" >&5
46641 echo "$as_me: failed program was:" >&5
46642 sed 's/^/| /' conftest.$ac_ext >&5
46643
46644 ( exit $ac_status )
46645 ac_cv_func_lstat_empty_string_bug=yes
46646 fi
46647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46648 fi
46649
46650
46651 fi
46652 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
46653 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
46654 if test $ac_cv_func_lstat_empty_string_bug = yes; then
46655   case " $LIBOBJS " in
46656   *" lstat.$ac_objext "* ) ;;
46657   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
46658  ;;
46659 esac
46660
46661
46662 cat >>confdefs.h <<_ACEOF
46663 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
46664 _ACEOF
46665
46666 fi
46667
46668
46669
46670
46671
46672
46673       { echo "$as_me:$LINENO: checking for group_member" >&5
46674 echo $ECHO_N "checking for group_member... $ECHO_C" >&6; }
46675 if test "${ac_cv_func_group_member+set}" = set; then
46676   echo $ECHO_N "(cached) $ECHO_C" >&6
46677 else
46678   cat >conftest.$ac_ext <<_ACEOF
46679 /* confdefs.h.  */
46680 _ACEOF
46681 cat confdefs.h >>conftest.$ac_ext
46682 cat >>conftest.$ac_ext <<_ACEOF
46683 /* end confdefs.h.  */
46684 /* Define group_member to an innocuous variant, in case <limits.h> declares group_member.
46685    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46686 #define group_member innocuous_group_member
46687
46688 /* System header to define __stub macros and hopefully few prototypes,
46689     which can conflict with char group_member (); below.
46690     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46691     <limits.h> exists even on freestanding compilers.  */
46692
46693 #ifdef __STDC__
46694 # include <limits.h>
46695 #else
46696 # include <assert.h>
46697 #endif
46698
46699 #undef group_member
46700
46701 /* Override any GCC internal prototype to avoid an error.
46702    Use char because int might match the return type of a GCC
46703    builtin and then its argument prototype would still apply.  */
46704 #ifdef __cplusplus
46705 extern "C"
46706 #endif
46707 char group_member ();
46708 /* The GNU C library defines this for functions which it implements
46709     to always fail with ENOSYS.  Some functions are actually named
46710     something starting with __ and the normal name is an alias.  */
46711 #if defined __stub_group_member || defined __stub___group_member
46712 choke me
46713 #endif
46714
46715 int
46716 main ()
46717 {
46718 return group_member ();
46719   ;
46720   return 0;
46721 }
46722 _ACEOF
46723 rm -f conftest.$ac_objext conftest$ac_exeext
46724 if { (ac_try="$ac_link"
46725 case "(($ac_try" in
46726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46727   *) ac_try_echo=$ac_try;;
46728 esac
46729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46730   (eval "$ac_link") 2>conftest.er1
46731   ac_status=$?
46732   grep -v '^ *+' conftest.er1 >conftest.err
46733   rm -f conftest.er1
46734   cat conftest.err >&5
46735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46736   (exit $ac_status); } &&
46737          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46738   { (case "(($ac_try" in
46739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46740   *) ac_try_echo=$ac_try;;
46741 esac
46742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46743   (eval "$ac_try") 2>&5
46744   ac_status=$?
46745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46746   (exit $ac_status); }; } &&
46747          { ac_try='test -s conftest$ac_exeext'
46748   { (case "(($ac_try" in
46749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46750   *) ac_try_echo=$ac_try;;
46751 esac
46752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46753   (eval "$ac_try") 2>&5
46754   ac_status=$?
46755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46756   (exit $ac_status); }; }; then
46757   ac_cv_func_group_member=yes
46758 else
46759   echo "$as_me: failed program was:" >&5
46760 sed 's/^/| /' conftest.$ac_ext >&5
46761
46762         ac_cv_func_group_member=no
46763 fi
46764
46765 rm -f core conftest.err conftest.$ac_objext \
46766       conftest$ac_exeext conftest.$ac_ext
46767 fi
46768 { echo "$as_me:$LINENO: result: $ac_cv_func_group_member" >&5
46769 echo "${ECHO_T}$ac_cv_func_group_member" >&6; }
46770 if test $ac_cv_func_group_member = yes; then
46771   :
46772 else
46773
46774     case " $LIBOBJS " in
46775   *" group-member.$ac_objext "* ) ;;
46776   *) LIBOBJS="$LIBOBJS group-member.$ac_objext"
46777  ;;
46778 esac
46779
46780
46781
46782
46783
46784 fi
46785
46786
46787   { echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink specified with a trailing slash" >&5
46788 echo $ECHO_N "checking whether link(2) dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
46789 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
46790   echo $ECHO_N "(cached) $ECHO_C" >&6
46791 else
46792
46793     # Create a regular file.
46794     echo > conftest.file
46795     if test "$cross_compiling" = yes; then
46796   jm_ac_cv_func_link_follows_symlink=yes
46797 else
46798   cat >conftest.$ac_ext <<_ACEOF
46799 /* confdefs.h.  */
46800 _ACEOF
46801 cat confdefs.h >>conftest.$ac_ext
46802 cat >>conftest.$ac_ext <<_ACEOF
46803 /* end confdefs.h.  */
46804
46805 #       include <sys/types.h>
46806 #       include <sys/stat.h>
46807 #       include <unistd.h>
46808
46809 #       define SAME_INODE(Stat_buf_1, Stat_buf_2) \
46810           ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
46811            && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
46812
46813         int
46814         main ()
46815         {
46816           const char *file = "conftest.file";
46817           const char *sym = "conftest.sym";
46818           const char *hard = "conftest.hard";
46819           struct stat sb_file, sb_hard;
46820
46821           /* Create a symlink to the regular file. */
46822           if (symlink (file, sym))
46823             abort ();
46824
46825           /* Create a hard link to that symlink.  */
46826           if (link (sym, hard))
46827             abort ();
46828
46829           if (lstat (hard, &sb_hard))
46830             abort ();
46831           if (lstat (file, &sb_file))
46832             abort ();
46833
46834           /* If the dev/inode of hard and file are the same, then
46835              the link call followed the symlink.  */
46836           return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
46837         }
46838
46839 _ACEOF
46840 rm -f conftest$ac_exeext
46841 if { (ac_try="$ac_link"
46842 case "(($ac_try" in
46843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46844   *) ac_try_echo=$ac_try;;
46845 esac
46846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46847   (eval "$ac_link") 2>&5
46848   ac_status=$?
46849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46850   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46851   { (case "(($ac_try" in
46852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46853   *) ac_try_echo=$ac_try;;
46854 esac
46855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46856   (eval "$ac_try") 2>&5
46857   ac_status=$?
46858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46859   (exit $ac_status); }; }; then
46860   jm_ac_cv_func_link_follows_symlink=yes
46861 else
46862   echo "$as_me: program exited with status $ac_status" >&5
46863 echo "$as_me: failed program was:" >&5
46864 sed 's/^/| /' conftest.$ac_ext >&5
46865
46866 ( exit $ac_status )
46867 jm_ac_cv_func_link_follows_symlink=no
46868 fi
46869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46870 fi
46871
46872
46873
46874 fi
46875 { echo "$as_me:$LINENO: result: $jm_ac_cv_func_link_follows_symlink" >&5
46876 echo "${ECHO_T}$jm_ac_cv_func_link_follows_symlink" >&6; }
46877   if test $jm_ac_cv_func_link_follows_symlink = yes; then
46878
46879 cat >>confdefs.h <<\_ACEOF
46880 #define LINK_FOLLOWS_SYMLINKS 1
46881 _ACEOF
46882
46883   fi
46884
46885
46886
46887
46888
46889 for ac_header in stdio_ext.h
46890 do
46891 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46893   { echo "$as_me:$LINENO: checking for $ac_header" >&5
46894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46896   echo $ECHO_N "(cached) $ECHO_C" >&6
46897 fi
46898 ac_res=`eval echo '${'$as_ac_Header'}'`
46899                { echo "$as_me:$LINENO: result: $ac_res" >&5
46900 echo "${ECHO_T}$ac_res" >&6; }
46901 else
46902   # Is the header compilable?
46903 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
46904 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
46905 cat >conftest.$ac_ext <<_ACEOF
46906 /* confdefs.h.  */
46907 _ACEOF
46908 cat confdefs.h >>conftest.$ac_ext
46909 cat >>conftest.$ac_ext <<_ACEOF
46910 /* end confdefs.h.  */
46911 $ac_includes_default
46912 #include <$ac_header>
46913 _ACEOF
46914 rm -f conftest.$ac_objext
46915 if { (ac_try="$ac_compile"
46916 case "(($ac_try" in
46917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46918   *) ac_try_echo=$ac_try;;
46919 esac
46920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46921   (eval "$ac_compile") 2>conftest.er1
46922   ac_status=$?
46923   grep -v '^ *+' conftest.er1 >conftest.err
46924   rm -f conftest.er1
46925   cat conftest.err >&5
46926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46927   (exit $ac_status); } &&
46928          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46929   { (case "(($ac_try" in
46930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46931   *) ac_try_echo=$ac_try;;
46932 esac
46933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46934   (eval "$ac_try") 2>&5
46935   ac_status=$?
46936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46937   (exit $ac_status); }; } &&
46938          { ac_try='test -s conftest.$ac_objext'
46939   { (case "(($ac_try" in
46940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46941   *) ac_try_echo=$ac_try;;
46942 esac
46943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46944   (eval "$ac_try") 2>&5
46945   ac_status=$?
46946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46947   (exit $ac_status); }; }; then
46948   ac_header_compiler=yes
46949 else
46950   echo "$as_me: failed program was:" >&5
46951 sed 's/^/| /' conftest.$ac_ext >&5
46952
46953         ac_header_compiler=no
46954 fi
46955
46956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46957 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46958 echo "${ECHO_T}$ac_header_compiler" >&6; }
46959
46960 # Is the header present?
46961 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
46962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
46963 cat >conftest.$ac_ext <<_ACEOF
46964 /* confdefs.h.  */
46965 _ACEOF
46966 cat confdefs.h >>conftest.$ac_ext
46967 cat >>conftest.$ac_ext <<_ACEOF
46968 /* end confdefs.h.  */
46969 #include <$ac_header>
46970 _ACEOF
46971 if { (ac_try="$ac_cpp conftest.$ac_ext"
46972 case "(($ac_try" in
46973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46974   *) ac_try_echo=$ac_try;;
46975 esac
46976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46977   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46978   ac_status=$?
46979   grep -v '^ *+' conftest.er1 >conftest.err
46980   rm -f conftest.er1
46981   cat conftest.err >&5
46982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46983   (exit $ac_status); } >/dev/null; then
46984   if test -s conftest.err; then
46985     ac_cpp_err=$ac_c_preproc_warn_flag
46986     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46987   else
46988     ac_cpp_err=
46989   fi
46990 else
46991   ac_cpp_err=yes
46992 fi
46993 if test -z "$ac_cpp_err"; then
46994   ac_header_preproc=yes
46995 else
46996   echo "$as_me: failed program was:" >&5
46997 sed 's/^/| /' conftest.$ac_ext >&5
46998
46999   ac_header_preproc=no
47000 fi
47001
47002 rm -f conftest.err conftest.$ac_ext
47003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47004 echo "${ECHO_T}$ac_header_preproc" >&6; }
47005
47006 # So?  What about this header?
47007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47008   yes:no: )
47009     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47011     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
47012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
47013     ac_header_preproc=yes
47014     ;;
47015   no:yes:* )
47016     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47018     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
47019 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
47020     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
47021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
47022     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
47023 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
47024     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47026     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
47027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
47028     ( cat <<\_ASBOX
47029 ## ------------------------------------ ##
47030 ## Report this to bug-coreutils@gnu.org ##
47031 ## ------------------------------------ ##
47032 _ASBOX
47033      ) | sed "s/^/$as_me: WARNING:     /" >&2
47034     ;;
47035 esac
47036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47039   echo $ECHO_N "(cached) $ECHO_C" >&6
47040 else
47041   eval "$as_ac_Header=\$ac_header_preproc"
47042 fi
47043 ac_res=`eval echo '${'$as_ac_Header'}'`
47044                { echo "$as_me:$LINENO: result: $ac_res" >&5
47045 echo "${ECHO_T}$ac_res" >&6; }
47046
47047 fi
47048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47049   cat >>confdefs.h <<_ACEOF
47050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47051 _ACEOF
47052
47053 fi
47054
47055 done
47056
47057
47058 for ac_func in __fpending
47059 do
47060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47061 { echo "$as_me:$LINENO: checking for $ac_func" >&5
47062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47063 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47064   echo $ECHO_N "(cached) $ECHO_C" >&6
47065 else
47066   cat >conftest.$ac_ext <<_ACEOF
47067 /* confdefs.h.  */
47068 _ACEOF
47069 cat confdefs.h >>conftest.$ac_ext
47070 cat >>conftest.$ac_ext <<_ACEOF
47071 /* end confdefs.h.  */
47072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47073    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47074 #define $ac_func innocuous_$ac_func
47075
47076 /* System header to define __stub macros and hopefully few prototypes,
47077     which can conflict with char $ac_func (); below.
47078     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47079     <limits.h> exists even on freestanding compilers.  */
47080
47081 #ifdef __STDC__
47082 # include <limits.h>
47083 #else
47084 # include <assert.h>
47085 #endif
47086
47087 #undef $ac_func
47088
47089 /* Override any GCC internal prototype to avoid an error.
47090    Use char because int might match the return type of a GCC
47091    builtin and then its argument prototype would still apply.  */
47092 #ifdef __cplusplus
47093 extern "C"
47094 #endif
47095 char $ac_func ();
47096 /* The GNU C library defines this for functions which it implements
47097     to always fail with ENOSYS.  Some functions are actually named
47098     something starting with __ and the normal name is an alias.  */
47099 #if defined __stub_$ac_func || defined __stub___$ac_func
47100 choke me
47101 #endif
47102
47103 int
47104 main ()
47105 {
47106 return $ac_func ();
47107   ;
47108   return 0;
47109 }
47110 _ACEOF
47111 rm -f conftest.$ac_objext conftest$ac_exeext
47112 if { (ac_try="$ac_link"
47113 case "(($ac_try" in
47114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47115   *) ac_try_echo=$ac_try;;
47116 esac
47117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47118   (eval "$ac_link") 2>conftest.er1
47119   ac_status=$?
47120   grep -v '^ *+' conftest.er1 >conftest.err
47121   rm -f conftest.er1
47122   cat conftest.err >&5
47123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47124   (exit $ac_status); } &&
47125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47126   { (case "(($ac_try" in
47127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47128   *) ac_try_echo=$ac_try;;
47129 esac
47130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47131   (eval "$ac_try") 2>&5
47132   ac_status=$?
47133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47134   (exit $ac_status); }; } &&
47135          { ac_try='test -s conftest$ac_exeext'
47136   { (case "(($ac_try" in
47137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47138   *) ac_try_echo=$ac_try;;
47139 esac
47140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47141   (eval "$ac_try") 2>&5
47142   ac_status=$?
47143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47144   (exit $ac_status); }; }; then
47145   eval "$as_ac_var=yes"
47146 else
47147   echo "$as_me: failed program was:" >&5
47148 sed 's/^/| /' conftest.$ac_ext >&5
47149
47150         eval "$as_ac_var=no"
47151 fi
47152
47153 rm -f core conftest.err conftest.$ac_objext \
47154       conftest$ac_exeext conftest.$ac_ext
47155 fi
47156 ac_res=`eval echo '${'$as_ac_var'}'`
47157                { echo "$as_me:$LINENO: result: $ac_res" >&5
47158 echo "${ECHO_T}$ac_res" >&6; }
47159 if test `eval echo '${'$as_ac_var'}'` = yes; then
47160   cat >>confdefs.h <<_ACEOF
47161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47162 _ACEOF
47163
47164 else
47165   case " $LIBOBJS " in
47166   *" $ac_func.$ac_objext "* ) ;;
47167   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
47168  ;;
47169 esac
47170
47171 fi
47172 done
47173
47174
47175   fp_headers='
47176 #     include <stdio.h>
47177 #     if HAVE_STDIO_EXT_H
47178 #      include <stdio_ext.h>
47179 #     endif
47180 '
47181   { echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
47182 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6; }
47183 if test "${ac_cv_have_decl___fpending+set}" = set; then
47184   echo $ECHO_N "(cached) $ECHO_C" >&6
47185 else
47186   cat >conftest.$ac_ext <<_ACEOF
47187 /* confdefs.h.  */
47188 _ACEOF
47189 cat confdefs.h >>conftest.$ac_ext
47190 cat >>conftest.$ac_ext <<_ACEOF
47191 /* end confdefs.h.  */
47192 $fp_headers
47193
47194 int
47195 main ()
47196 {
47197 #ifndef __fpending
47198   char *p = (char *) __fpending;
47199   return !p;
47200 #endif
47201
47202   ;
47203   return 0;
47204 }
47205 _ACEOF
47206 rm -f conftest.$ac_objext
47207 if { (ac_try="$ac_compile"
47208 case "(($ac_try" in
47209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47210   *) ac_try_echo=$ac_try;;
47211 esac
47212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47213   (eval "$ac_compile") 2>conftest.er1
47214   ac_status=$?
47215   grep -v '^ *+' conftest.er1 >conftest.err
47216   rm -f conftest.er1
47217   cat conftest.err >&5
47218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47219   (exit $ac_status); } &&
47220          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47221   { (case "(($ac_try" in
47222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47223   *) ac_try_echo=$ac_try;;
47224 esac
47225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47226   (eval "$ac_try") 2>&5
47227   ac_status=$?
47228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47229   (exit $ac_status); }; } &&
47230          { ac_try='test -s conftest.$ac_objext'
47231   { (case "(($ac_try" in
47232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47233   *) ac_try_echo=$ac_try;;
47234 esac
47235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47236   (eval "$ac_try") 2>&5
47237   ac_status=$?
47238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47239   (exit $ac_status); }; }; then
47240   ac_cv_have_decl___fpending=yes
47241 else
47242   echo "$as_me: failed program was:" >&5
47243 sed 's/^/| /' conftest.$ac_ext >&5
47244
47245         ac_cv_have_decl___fpending=no
47246 fi
47247
47248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47249 fi
47250 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
47251 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6; }
47252 if test $ac_cv_have_decl___fpending = yes; then
47253
47254 cat >>confdefs.h <<_ACEOF
47255 #define HAVE_DECL___FPENDING 1
47256 _ACEOF
47257
47258
47259 else
47260   cat >>confdefs.h <<_ACEOF
47261 #define HAVE_DECL___FPENDING 0
47262 _ACEOF
47263
47264
47265 fi
47266
47267
47268   if test $ac_cv_func___fpending = no; then
47269     { echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
47270 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6; }
47271 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
47272   echo $ECHO_N "(cached) $ECHO_C" >&6
47273 else
47274
47275         for ac_expr in                                          \
47276                                                                 \
47277             '# glibc2'                                          \
47278             'fp->_IO_write_ptr - fp->_IO_write_base'            \
47279                                                                 \
47280             '# traditional Unix'                                \
47281             'fp->_ptr - fp->_base'                              \
47282                                                                 \
47283             '# BSD'                                             \
47284             'fp->_p - fp->_bf._base'                            \
47285                                                                 \
47286             '# SCO, Unixware'                                   \
47287             '(fp->__ptr ? fp->__ptr - fp->__base : 0)'          \
47288                                                                 \
47289             '# old glibc?'                                      \
47290             'fp->__bufp - fp->__buffer'                         \
47291                                                                 \
47292             '# old glibc iostream?'                             \
47293             'fp->_pptr - fp->_pbase'                            \
47294                                                                 \
47295             '# VMS'                                             \
47296             '(*fp)->_ptr - (*fp)->_base'                        \
47297                                                                 \
47298             '# e.g., DGUX R4.11; the info is not available'     \
47299             1                                                   \
47300             ; do
47301
47302           # Skip each embedded comment.
47303           case "$ac_expr" in '#'*) continue;; esac
47304
47305           cat >conftest.$ac_ext <<_ACEOF
47306 /* confdefs.h.  */
47307 _ACEOF
47308 cat confdefs.h >>conftest.$ac_ext
47309 cat >>conftest.$ac_ext <<_ACEOF
47310 /* end confdefs.h.  */
47311 #include <stdio.h>
47312
47313 int
47314 main ()
47315 {
47316 FILE *fp = stdin; (void) ($ac_expr);
47317   ;
47318   return 0;
47319 }
47320 _ACEOF
47321 rm -f conftest.$ac_objext
47322 if { (ac_try="$ac_compile"
47323 case "(($ac_try" in
47324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47325   *) ac_try_echo=$ac_try;;
47326 esac
47327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47328   (eval "$ac_compile") 2>conftest.er1
47329   ac_status=$?
47330   grep -v '^ *+' conftest.er1 >conftest.err
47331   rm -f conftest.er1
47332   cat conftest.err >&5
47333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47334   (exit $ac_status); } &&
47335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47336   { (case "(($ac_try" in
47337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47338   *) ac_try_echo=$ac_try;;
47339 esac
47340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47341   (eval "$ac_try") 2>&5
47342   ac_status=$?
47343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47344   (exit $ac_status); }; } &&
47345          { ac_try='test -s conftest.$ac_objext'
47346   { (case "(($ac_try" in
47347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47348   *) ac_try_echo=$ac_try;;
47349 esac
47350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47351   (eval "$ac_try") 2>&5
47352   ac_status=$?
47353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47354   (exit $ac_status); }; }; then
47355   fp_done=yes
47356
47357 else
47358   echo "$as_me: failed program was:" >&5
47359 sed 's/^/| /' conftest.$ac_ext >&5
47360
47361
47362 fi
47363
47364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47365           test "$fp_done" = yes && break
47366         done
47367
47368         ac_cv_sys_pending_output_n_bytes=$ac_expr
47369
47370
47371 fi
47372 { echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
47373 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6; }
47374
47375 cat >>confdefs.h <<_ACEOF
47376 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
47377 _ACEOF
47378
47379   fi
47380
47381
47382   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
47383 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
47384 if test "${gt_cv_header_inttypes_h+set}" = set; then
47385   echo $ECHO_N "(cached) $ECHO_C" >&6
47386 else
47387
47388     cat >conftest.$ac_ext <<_ACEOF
47389 /* confdefs.h.  */
47390 _ACEOF
47391 cat confdefs.h >>conftest.$ac_ext
47392 cat >>conftest.$ac_ext <<_ACEOF
47393 /* end confdefs.h.  */
47394 #include <sys/types.h>
47395 #include <inttypes.h>
47396 int
47397 main ()
47398 {
47399
47400   ;
47401   return 0;
47402 }
47403 _ACEOF
47404 rm -f conftest.$ac_objext
47405 if { (ac_try="$ac_compile"
47406 case "(($ac_try" in
47407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47408   *) ac_try_echo=$ac_try;;
47409 esac
47410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47411   (eval "$ac_compile") 2>conftest.er1
47412   ac_status=$?
47413   grep -v '^ *+' conftest.er1 >conftest.err
47414   rm -f conftest.er1
47415   cat conftest.err >&5
47416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47417   (exit $ac_status); } &&
47418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47419   { (case "(($ac_try" in
47420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47421   *) ac_try_echo=$ac_try;;
47422 esac
47423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47424   (eval "$ac_try") 2>&5
47425   ac_status=$?
47426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47427   (exit $ac_status); }; } &&
47428          { ac_try='test -s conftest.$ac_objext'
47429   { (case "(($ac_try" in
47430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47431   *) ac_try_echo=$ac_try;;
47432 esac
47433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47434   (eval "$ac_try") 2>&5
47435   ac_status=$?
47436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47437   (exit $ac_status); }; }; then
47438   gt_cv_header_inttypes_h=yes
47439 else
47440   echo "$as_me: failed program was:" >&5
47441 sed 's/^/| /' conftest.$ac_ext >&5
47442
47443         gt_cv_header_inttypes_h=no
47444 fi
47445
47446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47447
47448 fi
47449 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
47450 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
47451   if test $gt_cv_header_inttypes_h = yes; then
47452
47453 cat >>confdefs.h <<_ACEOF
47454 #define HAVE_INTTYPES_H 1
47455 _ACEOF
47456
47457   fi
47458
47459
47460
47461   if test $gt_cv_header_inttypes_h = yes; then
47462     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
47463 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
47464 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
47465   echo $ECHO_N "(cached) $ECHO_C" >&6
47466 else
47467
47468         cat >conftest.$ac_ext <<_ACEOF
47469 /* confdefs.h.  */
47470 _ACEOF
47471 cat confdefs.h >>conftest.$ac_ext
47472 cat >>conftest.$ac_ext <<_ACEOF
47473 /* end confdefs.h.  */
47474 #include <inttypes.h>
47475 #ifdef PRId32
47476 char *p = PRId32;
47477 #endif
47478
47479 int
47480 main ()
47481 {
47482
47483   ;
47484   return 0;
47485 }
47486 _ACEOF
47487 rm -f conftest.$ac_objext
47488 if { (ac_try="$ac_compile"
47489 case "(($ac_try" in
47490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47491   *) ac_try_echo=$ac_try;;
47492 esac
47493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47494   (eval "$ac_compile") 2>conftest.er1
47495   ac_status=$?
47496   grep -v '^ *+' conftest.er1 >conftest.err
47497   rm -f conftest.er1
47498   cat conftest.err >&5
47499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47500   (exit $ac_status); } &&
47501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47502   { (case "(($ac_try" in
47503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47504   *) ac_try_echo=$ac_try;;
47505 esac
47506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47507   (eval "$ac_try") 2>&5
47508   ac_status=$?
47509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47510   (exit $ac_status); }; } &&
47511          { ac_try='test -s conftest.$ac_objext'
47512   { (case "(($ac_try" in
47513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47514   *) ac_try_echo=$ac_try;;
47515 esac
47516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47517   (eval "$ac_try") 2>&5
47518   ac_status=$?
47519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47520   (exit $ac_status); }; }; then
47521   gt_cv_inttypes_pri_broken=no
47522 else
47523   echo "$as_me: failed program was:" >&5
47524 sed 's/^/| /' conftest.$ac_ext >&5
47525
47526         gt_cv_inttypes_pri_broken=yes
47527 fi
47528
47529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47530
47531 fi
47532 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
47533 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
47534   fi
47535   if test "$gt_cv_inttypes_pri_broken" = yes; then
47536
47537 cat >>confdefs.h <<_ACEOF
47538 #define PRI_MACROS_BROKEN 1
47539 _ACEOF
47540
47541   fi
47542
47543
47544       { echo "$as_me:$LINENO: checking whether ULONG_MAX < ULLONG_MAX" >&5
47545 echo $ECHO_N "checking whether ULONG_MAX < ULLONG_MAX... $ECHO_C" >&6; }
47546 if test "${gl_cv_ulong_max_lt_ullong_max+set}" = set; then
47547   echo $ECHO_N "(cached) $ECHO_C" >&6
47548 else
47549   cat >conftest.$ac_ext <<_ACEOF
47550 /* confdefs.h.  */
47551 _ACEOF
47552 cat confdefs.h >>conftest.$ac_ext
47553 cat >>conftest.$ac_ext <<_ACEOF
47554 /* end confdefs.h.  */
47555 $ac_includes_default
47556 int
47557 main ()
47558 {
47559 static int test_array [1 - 2 * !((unsigned long int) -1 < (unsigned long long int) -1)];
47560 test_array [0] = 0
47561
47562   ;
47563   return 0;
47564 }
47565 _ACEOF
47566 rm -f conftest.$ac_objext
47567 if { (ac_try="$ac_compile"
47568 case "(($ac_try" in
47569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47570   *) ac_try_echo=$ac_try;;
47571 esac
47572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47573   (eval "$ac_compile") 2>conftest.er1
47574   ac_status=$?
47575   grep -v '^ *+' conftest.er1 >conftest.err
47576   rm -f conftest.er1
47577   cat conftest.err >&5
47578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47579   (exit $ac_status); } &&
47580          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47581   { (case "(($ac_try" in
47582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47583   *) ac_try_echo=$ac_try;;
47584 esac
47585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47586   (eval "$ac_try") 2>&5
47587   ac_status=$?
47588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47589   (exit $ac_status); }; } &&
47590          { ac_try='test -s conftest.$ac_objext'
47591   { (case "(($ac_try" in
47592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47593   *) ac_try_echo=$ac_try;;
47594 esac
47595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47596   (eval "$ac_try") 2>&5
47597   ac_status=$?
47598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47599   (exit $ac_status); }; }; then
47600   gl_cv_ulong_max_lt_ullong_max=yes
47601 else
47602   echo "$as_me: failed program was:" >&5
47603 sed 's/^/| /' conftest.$ac_ext >&5
47604
47605         gl_cv_ulong_max_lt_ullong_max=no
47606 fi
47607
47608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47609 fi
47610 { echo "$as_me:$LINENO: result: $gl_cv_ulong_max_lt_ullong_max" >&5
47611 echo "${ECHO_T}$gl_cv_ulong_max_lt_ullong_max" >&6; }
47612   if test $gl_cv_ulong_max_lt_ullong_max = yes; then
47613
47614 cat >>confdefs.h <<\_ACEOF
47615 #define ULONG_MAX_LT_ULLONG_MAX 1
47616 _ACEOF
47617
47618   fi
47619
47620
47621
47622   if test $ac_cv_func_getgroups_works = no; then
47623     case " $LIBOBJS " in
47624   *" getgroups.$ac_objext "* ) ;;
47625   *) LIBOBJS="$LIBOBJS getgroups.$ac_objext"
47626  ;;
47627 esac
47628
47629
47630 cat >>confdefs.h <<\_ACEOF
47631 #define getgroups rpl_getgroups
47632 _ACEOF
47633
47634
47635
47636
47637   fi
47638   test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
47639
47640 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
47641 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
47642 if test "${ac_cv_sys_largefile_source+set}" = set; then
47643   echo $ECHO_N "(cached) $ECHO_C" >&6
47644 else
47645   while :; do
47646   ac_cv_sys_largefile_source=no
47647   cat >conftest.$ac_ext <<_ACEOF
47648 /* confdefs.h.  */
47649 _ACEOF
47650 cat confdefs.h >>conftest.$ac_ext
47651 cat >>conftest.$ac_ext <<_ACEOF
47652 /* end confdefs.h.  */
47653 #include <stdio.h>
47654 int
47655 main ()
47656 {
47657 return !fseeko;
47658   ;
47659   return 0;
47660 }
47661 _ACEOF
47662 rm -f conftest.$ac_objext
47663 if { (ac_try="$ac_compile"
47664 case "(($ac_try" in
47665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47666   *) ac_try_echo=$ac_try;;
47667 esac
47668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47669   (eval "$ac_compile") 2>conftest.er1
47670   ac_status=$?
47671   grep -v '^ *+' conftest.er1 >conftest.err
47672   rm -f conftest.er1
47673   cat conftest.err >&5
47674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47675   (exit $ac_status); } &&
47676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47677   { (case "(($ac_try" in
47678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47679   *) ac_try_echo=$ac_try;;
47680 esac
47681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47682   (eval "$ac_try") 2>&5
47683   ac_status=$?
47684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47685   (exit $ac_status); }; } &&
47686          { ac_try='test -s conftest.$ac_objext'
47687   { (case "(($ac_try" in
47688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47689   *) ac_try_echo=$ac_try;;
47690 esac
47691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47692   (eval "$ac_try") 2>&5
47693   ac_status=$?
47694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47695   (exit $ac_status); }; }; then
47696   break
47697 else
47698   echo "$as_me: failed program was:" >&5
47699 sed 's/^/| /' conftest.$ac_ext >&5
47700
47701
47702 fi
47703
47704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47705   cat >conftest.$ac_ext <<_ACEOF
47706 /* confdefs.h.  */
47707 _ACEOF
47708 cat confdefs.h >>conftest.$ac_ext
47709 cat >>conftest.$ac_ext <<_ACEOF
47710 /* end confdefs.h.  */
47711 #define _LARGEFILE_SOURCE 1
47712 #include <stdio.h>
47713 int
47714 main ()
47715 {
47716 return !fseeko;
47717   ;
47718   return 0;
47719 }
47720 _ACEOF
47721 rm -f conftest.$ac_objext
47722 if { (ac_try="$ac_compile"
47723 case "(($ac_try" in
47724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47725   *) ac_try_echo=$ac_try;;
47726 esac
47727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47728   (eval "$ac_compile") 2>conftest.er1
47729   ac_status=$?
47730   grep -v '^ *+' conftest.er1 >conftest.err
47731   rm -f conftest.er1
47732   cat conftest.err >&5
47733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47734   (exit $ac_status); } &&
47735          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47736   { (case "(($ac_try" in
47737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47738   *) ac_try_echo=$ac_try;;
47739 esac
47740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47741   (eval "$ac_try") 2>&5
47742   ac_status=$?
47743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47744   (exit $ac_status); }; } &&
47745          { ac_try='test -s conftest.$ac_objext'
47746   { (case "(($ac_try" in
47747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47748   *) ac_try_echo=$ac_try;;
47749 esac
47750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47751   (eval "$ac_try") 2>&5
47752   ac_status=$?
47753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47754   (exit $ac_status); }; }; then
47755   ac_cv_sys_largefile_source=1; break
47756 else
47757   echo "$as_me: failed program was:" >&5
47758 sed 's/^/| /' conftest.$ac_ext >&5
47759
47760
47761 fi
47762
47763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47764   break
47765 done
47766 fi
47767 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
47768 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
47769 if test "$ac_cv_sys_largefile_source" != no; then
47770
47771 cat >>confdefs.h <<_ACEOF
47772 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
47773 _ACEOF
47774
47775 fi
47776 rm -f conftest*
47777
47778 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
47779 # in glibc 2.1.3, but that breaks too many other things.
47780 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
47781 { echo "$as_me:$LINENO: checking for fseeko" >&5
47782 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6; }
47783 if test "${ac_cv_func_fseeko+set}" = set; then
47784   echo $ECHO_N "(cached) $ECHO_C" >&6
47785 else
47786   cat >conftest.$ac_ext <<_ACEOF
47787 /* confdefs.h.  */
47788 _ACEOF
47789 cat confdefs.h >>conftest.$ac_ext
47790 cat >>conftest.$ac_ext <<_ACEOF
47791 /* end confdefs.h.  */
47792 #include <stdio.h>
47793 int
47794 main ()
47795 {
47796 return fseeko && fseeko (stdin, 0, 0);
47797   ;
47798   return 0;
47799 }
47800 _ACEOF
47801 rm -f conftest.$ac_objext conftest$ac_exeext
47802 if { (ac_try="$ac_link"
47803 case "(($ac_try" in
47804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47805   *) ac_try_echo=$ac_try;;
47806 esac
47807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47808   (eval "$ac_link") 2>conftest.er1
47809   ac_status=$?
47810   grep -v '^ *+' conftest.er1 >conftest.err
47811   rm -f conftest.er1
47812   cat conftest.err >&5
47813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47814   (exit $ac_status); } &&
47815          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47816   { (case "(($ac_try" in
47817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47818   *) ac_try_echo=$ac_try;;
47819 esac
47820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47821   (eval "$ac_try") 2>&5
47822   ac_status=$?
47823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47824   (exit $ac_status); }; } &&
47825          { ac_try='test -s conftest$ac_exeext'
47826   { (case "(($ac_try" in
47827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47828   *) ac_try_echo=$ac_try;;
47829 esac
47830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47831   (eval "$ac_try") 2>&5
47832   ac_status=$?
47833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47834   (exit $ac_status); }; }; then
47835   ac_cv_func_fseeko=yes
47836 else
47837   echo "$as_me: failed program was:" >&5
47838 sed 's/^/| /' conftest.$ac_ext >&5
47839
47840         ac_cv_func_fseeko=no
47841 fi
47842
47843 rm -f core conftest.err conftest.$ac_objext \
47844       conftest$ac_exeext conftest.$ac_ext
47845 fi
47846 { echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
47847 echo "${ECHO_T}$ac_cv_func_fseeko" >&6; }
47848 if test $ac_cv_func_fseeko = yes; then
47849
47850 cat >>confdefs.h <<\_ACEOF
47851 #define HAVE_FSEEKO 1
47852 _ACEOF
47853
47854 fi
47855
47856
47857   { echo "$as_me:$LINENO: checking for /proc/uptime" >&5
47858 echo $ECHO_N "checking for /proc/uptime... $ECHO_C" >&6; }
47859 if test "${jm_cv_have_proc_uptime+set}" = set; then
47860   echo $ECHO_N "(cached) $ECHO_C" >&6
47861 else
47862   jm_cv_have_proc_uptime=no
47863     test -f /proc/uptime \
47864       && test "$cross_compiling" = no \
47865       && cat < /proc/uptime >/dev/null 2>/dev/null \
47866       && jm_cv_have_proc_uptime=yes
47867 fi
47868 { echo "$as_me:$LINENO: result: $jm_cv_have_proc_uptime" >&5
47869 echo "${ECHO_T}$jm_cv_have_proc_uptime" >&6; }
47870   if test $jm_cv_have_proc_uptime = yes; then
47871
47872 cat >>confdefs.h <<\_ACEOF
47873 #define HAVE_PROC_UPTIME 1
47874 _ACEOF
47875
47876   fi
47877
47878
47879
47880 for ac_func in ftruncate
47881 do
47882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47883 { echo "$as_me:$LINENO: checking for $ac_func" >&5
47884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47885 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47886   echo $ECHO_N "(cached) $ECHO_C" >&6
47887 else
47888   cat >conftest.$ac_ext <<_ACEOF
47889 /* confdefs.h.  */
47890 _ACEOF
47891 cat confdefs.h >>conftest.$ac_ext
47892 cat >>conftest.$ac_ext <<_ACEOF
47893 /* end confdefs.h.  */
47894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47895    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47896 #define $ac_func innocuous_$ac_func
47897
47898 /* System header to define __stub macros and hopefully few prototypes,
47899     which can conflict with char $ac_func (); below.
47900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47901     <limits.h> exists even on freestanding compilers.  */
47902
47903 #ifdef __STDC__
47904 # include <limits.h>
47905 #else
47906 # include <assert.h>
47907 #endif
47908
47909 #undef $ac_func
47910
47911 /* Override any GCC internal prototype to avoid an error.
47912    Use char because int might match the return type of a GCC
47913    builtin and then its argument prototype would still apply.  */
47914 #ifdef __cplusplus
47915 extern "C"
47916 #endif
47917 char $ac_func ();
47918 /* The GNU C library defines this for functions which it implements
47919     to always fail with ENOSYS.  Some functions are actually named
47920     something starting with __ and the normal name is an alias.  */
47921 #if defined __stub_$ac_func || defined __stub___$ac_func
47922 choke me
47923 #endif
47924
47925 int
47926 main ()
47927 {
47928 return $ac_func ();
47929   ;
47930   return 0;
47931 }
47932 _ACEOF
47933 rm -f conftest.$ac_objext conftest$ac_exeext
47934 if { (ac_try="$ac_link"
47935 case "(($ac_try" in
47936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47937   *) ac_try_echo=$ac_try;;
47938 esac
47939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47940   (eval "$ac_link") 2>conftest.er1
47941   ac_status=$?
47942   grep -v '^ *+' conftest.er1 >conftest.err
47943   rm -f conftest.er1
47944   cat conftest.err >&5
47945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47946   (exit $ac_status); } &&
47947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47948   { (case "(($ac_try" in
47949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47950   *) ac_try_echo=$ac_try;;
47951 esac
47952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47953   (eval "$ac_try") 2>&5
47954   ac_status=$?
47955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47956   (exit $ac_status); }; } &&
47957          { ac_try='test -s conftest$ac_exeext'
47958   { (case "(($ac_try" in
47959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47960   *) ac_try_echo=$ac_try;;
47961 esac
47962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47963   (eval "$ac_try") 2>&5
47964   ac_status=$?
47965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47966   (exit $ac_status); }; }; then
47967   eval "$as_ac_var=yes"
47968 else
47969   echo "$as_me: failed program was:" >&5
47970 sed 's/^/| /' conftest.$ac_ext >&5
47971
47972         eval "$as_ac_var=no"
47973 fi
47974
47975 rm -f core conftest.err conftest.$ac_objext \
47976       conftest$ac_exeext conftest.$ac_ext
47977 fi
47978 ac_res=`eval echo '${'$as_ac_var'}'`
47979                { echo "$as_me:$LINENO: result: $ac_res" >&5
47980 echo "${ECHO_T}$ac_res" >&6; }
47981 if test `eval echo '${'$as_ac_var'}'` = yes; then
47982   cat >>confdefs.h <<_ACEOF
47983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47984 _ACEOF
47985
47986 else
47987   case " $LIBOBJS " in
47988   *" $ac_func.$ac_objext "* ) ;;
47989   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
47990  ;;
47991 esac
47992
47993 fi
47994 done
47995
47996
47997   if test $ac_cv_func_ftruncate = no; then
47998
47999
48000 for ac_func in chsize
48001 do
48002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48003 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48005 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48006   echo $ECHO_N "(cached) $ECHO_C" >&6
48007 else
48008   cat >conftest.$ac_ext <<_ACEOF
48009 /* confdefs.h.  */
48010 _ACEOF
48011 cat confdefs.h >>conftest.$ac_ext
48012 cat >>conftest.$ac_ext <<_ACEOF
48013 /* end confdefs.h.  */
48014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48015    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48016 #define $ac_func innocuous_$ac_func
48017
48018 /* System header to define __stub macros and hopefully few prototypes,
48019     which can conflict with char $ac_func (); below.
48020     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48021     <limits.h> exists even on freestanding compilers.  */
48022
48023 #ifdef __STDC__
48024 # include <limits.h>
48025 #else
48026 # include <assert.h>
48027 #endif
48028
48029 #undef $ac_func
48030
48031 /* Override any GCC internal prototype to avoid an error.
48032    Use char because int might match the return type of a GCC
48033    builtin and then its argument prototype would still apply.  */
48034 #ifdef __cplusplus
48035 extern "C"
48036 #endif
48037 char $ac_func ();
48038 /* The GNU C library defines this for functions which it implements
48039     to always fail with ENOSYS.  Some functions are actually named
48040     something starting with __ and the normal name is an alias.  */
48041 #if defined __stub_$ac_func || defined __stub___$ac_func
48042 choke me
48043 #endif
48044
48045 int
48046 main ()
48047 {
48048 return $ac_func ();
48049   ;
48050   return 0;
48051 }
48052 _ACEOF
48053 rm -f conftest.$ac_objext conftest$ac_exeext
48054 if { (ac_try="$ac_link"
48055 case "(($ac_try" in
48056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48057   *) ac_try_echo=$ac_try;;
48058 esac
48059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48060   (eval "$ac_link") 2>conftest.er1
48061   ac_status=$?
48062   grep -v '^ *+' conftest.er1 >conftest.err
48063   rm -f conftest.er1
48064   cat conftest.err >&5
48065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48066   (exit $ac_status); } &&
48067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48068   { (case "(($ac_try" in
48069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48070   *) ac_try_echo=$ac_try;;
48071 esac
48072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48073   (eval "$ac_try") 2>&5
48074   ac_status=$?
48075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48076   (exit $ac_status); }; } &&
48077          { ac_try='test -s conftest$ac_exeext'
48078   { (case "(($ac_try" in
48079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48080   *) ac_try_echo=$ac_try;;
48081 esac
48082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48083   (eval "$ac_try") 2>&5
48084   ac_status=$?
48085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48086   (exit $ac_status); }; }; then
48087   eval "$as_ac_var=yes"
48088 else
48089   echo "$as_me: failed program was:" >&5
48090 sed 's/^/| /' conftest.$ac_ext >&5
48091
48092         eval "$as_ac_var=no"
48093 fi
48094
48095 rm -f core conftest.err conftest.$ac_objext \
48096       conftest$ac_exeext conftest.$ac_ext
48097 fi
48098 ac_res=`eval echo '${'$as_ac_var'}'`
48099                { echo "$as_me:$LINENO: result: $ac_res" >&5
48100 echo "${ECHO_T}$ac_res" >&6; }
48101 if test `eval echo '${'$as_ac_var'}'` = yes; then
48102   cat >>confdefs.h <<_ACEOF
48103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48104 _ACEOF
48105
48106 fi
48107 done
48108
48109
48110     # If someone lacks ftruncate, make configure fail, and request
48111     # a bug report to inform us about it.
48112     if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
48113       { { echo "$as_me:$LINENO: error: Your system lacks the ftruncate function.
48114           Please report this, along with the output of \"uname -a\", to the
48115           bug-coreutils@gnu.org mailing list.  To continue past this point,
48116           rerun configure with SKIP_FTRUNCATE_CHECK=yes.
48117           E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
48118 See \`config.log' for more details." >&5
48119 echo "$as_me: error: Your system lacks the ftruncate function.
48120           Please report this, along with the output of \"uname -a\", to the
48121           bug-coreutils@gnu.org mailing list.  To continue past this point,
48122           rerun configure with SKIP_FTRUNCATE_CHECK=yes.
48123           E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
48124 See \`config.log' for more details." >&2;}
48125    { (exit 1); exit 1; }; }
48126     fi
48127   fi
48128
48129
48130
48131
48132
48133
48134
48135
48136 ac_header_dirent=no
48137 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
48138   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
48139 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
48140 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
48141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48142   echo $ECHO_N "(cached) $ECHO_C" >&6
48143 else
48144   cat >conftest.$ac_ext <<_ACEOF
48145 /* confdefs.h.  */
48146 _ACEOF
48147 cat confdefs.h >>conftest.$ac_ext
48148 cat >>conftest.$ac_ext <<_ACEOF
48149 /* end confdefs.h.  */
48150 #include <sys/types.h>
48151 #include <$ac_hdr>
48152
48153 int
48154 main ()
48155 {
48156 if ((DIR *) 0)
48157 return 0;
48158   ;
48159   return 0;
48160 }
48161 _ACEOF
48162 rm -f conftest.$ac_objext
48163 if { (ac_try="$ac_compile"
48164 case "(($ac_try" in
48165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48166   *) ac_try_echo=$ac_try;;
48167 esac
48168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48169   (eval "$ac_compile") 2>conftest.er1
48170   ac_status=$?
48171   grep -v '^ *+' conftest.er1 >conftest.err
48172   rm -f conftest.er1
48173   cat conftest.err >&5
48174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48175   (exit $ac_status); } &&
48176          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48177   { (case "(($ac_try" in
48178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48179   *) ac_try_echo=$ac_try;;
48180 esac
48181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48182   (eval "$ac_try") 2>&5
48183   ac_status=$?
48184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48185   (exit $ac_status); }; } &&
48186          { ac_try='test -s conftest.$ac_objext'
48187   { (case "(($ac_try" in
48188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48189   *) ac_try_echo=$ac_try;;
48190 esac
48191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48192   (eval "$ac_try") 2>&5
48193   ac_status=$?
48194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48195   (exit $ac_status); }; }; then
48196   eval "$as_ac_Header=yes"
48197 else
48198   echo "$as_me: failed program was:" >&5
48199 sed 's/^/| /' conftest.$ac_ext >&5
48200
48201         eval "$as_ac_Header=no"
48202 fi
48203
48204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48205 fi
48206 ac_res=`eval echo '${'$as_ac_Header'}'`
48207                { echo "$as_me:$LINENO: result: $ac_res" >&5
48208 echo "${ECHO_T}$ac_res" >&6; }
48209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48210   cat >>confdefs.h <<_ACEOF
48211 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
48212 _ACEOF
48213
48214 ac_header_dirent=$ac_hdr; break
48215 fi
48216
48217 done
48218 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
48219 if test $ac_header_dirent = dirent.h; then
48220   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
48221 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
48222 if test "${ac_cv_search_opendir+set}" = set; then
48223   echo $ECHO_N "(cached) $ECHO_C" >&6
48224 else
48225   ac_func_search_save_LIBS=$LIBS
48226 cat >conftest.$ac_ext <<_ACEOF
48227 /* confdefs.h.  */
48228 _ACEOF
48229 cat confdefs.h >>conftest.$ac_ext
48230 cat >>conftest.$ac_ext <<_ACEOF
48231 /* end confdefs.h.  */
48232
48233 /* Override any GCC internal prototype to avoid an error.
48234    Use char because int might match the return type of a GCC
48235    builtin and then its argument prototype would still apply.  */
48236 #ifdef __cplusplus
48237 extern "C"
48238 #endif
48239 char opendir ();
48240 int
48241 main ()
48242 {
48243 return opendir ();
48244   ;
48245   return 0;
48246 }
48247 _ACEOF
48248 for ac_lib in '' dir; do
48249   if test -z "$ac_lib"; then
48250     ac_res="none required"
48251   else
48252     ac_res=-l$ac_lib
48253     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
48254   fi
48255   rm -f conftest.$ac_objext conftest$ac_exeext
48256 if { (ac_try="$ac_link"
48257 case "(($ac_try" in
48258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48259   *) ac_try_echo=$ac_try;;
48260 esac
48261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48262   (eval "$ac_link") 2>conftest.er1
48263   ac_status=$?
48264   grep -v '^ *+' conftest.er1 >conftest.err
48265   rm -f conftest.er1
48266   cat conftest.err >&5
48267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48268   (exit $ac_status); } &&
48269          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48270   { (case "(($ac_try" in
48271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48272   *) ac_try_echo=$ac_try;;
48273 esac
48274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48275   (eval "$ac_try") 2>&5
48276   ac_status=$?
48277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48278   (exit $ac_status); }; } &&
48279          { ac_try='test -s conftest$ac_exeext'
48280   { (case "(($ac_try" in
48281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48282   *) ac_try_echo=$ac_try;;
48283 esac
48284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48285   (eval "$ac_try") 2>&5
48286   ac_status=$?
48287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48288   (exit $ac_status); }; }; then
48289   ac_cv_search_opendir=$ac_res
48290 else
48291   echo "$as_me: failed program was:" >&5
48292 sed 's/^/| /' conftest.$ac_ext >&5
48293
48294
48295 fi
48296
48297 rm -f core conftest.err conftest.$ac_objext \
48298       conftest$ac_exeext
48299   if test "${ac_cv_search_opendir+set}" = set; then
48300   break
48301 fi
48302 done
48303 if test "${ac_cv_search_opendir+set}" = set; then
48304   :
48305 else
48306   ac_cv_search_opendir=no
48307 fi
48308 rm conftest.$ac_ext
48309 LIBS=$ac_func_search_save_LIBS
48310 fi
48311 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
48312 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
48313 ac_res=$ac_cv_search_opendir
48314 if test "$ac_res" != no; then
48315   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
48316
48317 fi
48318
48319 else
48320   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
48321 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
48322 if test "${ac_cv_search_opendir+set}" = set; then
48323   echo $ECHO_N "(cached) $ECHO_C" >&6
48324 else
48325   ac_func_search_save_LIBS=$LIBS
48326 cat >conftest.$ac_ext <<_ACEOF
48327 /* confdefs.h.  */
48328 _ACEOF
48329 cat confdefs.h >>conftest.$ac_ext
48330 cat >>conftest.$ac_ext <<_ACEOF
48331 /* end confdefs.h.  */
48332
48333 /* Override any GCC internal prototype to avoid an error.
48334    Use char because int might match the return type of a GCC
48335    builtin and then its argument prototype would still apply.  */
48336 #ifdef __cplusplus
48337 extern "C"
48338 #endif
48339 char opendir ();
48340 int
48341 main ()
48342 {
48343 return opendir ();
48344   ;
48345   return 0;
48346 }
48347 _ACEOF
48348 for ac_lib in '' x; do
48349   if test -z "$ac_lib"; then
48350     ac_res="none required"
48351   else
48352     ac_res=-l$ac_lib
48353     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
48354   fi
48355   rm -f conftest.$ac_objext conftest$ac_exeext
48356 if { (ac_try="$ac_link"
48357 case "(($ac_try" in
48358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48359   *) ac_try_echo=$ac_try;;
48360 esac
48361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48362   (eval "$ac_link") 2>conftest.er1
48363   ac_status=$?
48364   grep -v '^ *+' conftest.er1 >conftest.err
48365   rm -f conftest.er1
48366   cat conftest.err >&5
48367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48368   (exit $ac_status); } &&
48369          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48370   { (case "(($ac_try" in
48371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48372   *) ac_try_echo=$ac_try;;
48373 esac
48374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48375   (eval "$ac_try") 2>&5
48376   ac_status=$?
48377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48378   (exit $ac_status); }; } &&
48379          { ac_try='test -s conftest$ac_exeext'
48380   { (case "(($ac_try" in
48381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48382   *) ac_try_echo=$ac_try;;
48383 esac
48384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48385   (eval "$ac_try") 2>&5
48386   ac_status=$?
48387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48388   (exit $ac_status); }; }; then
48389   ac_cv_search_opendir=$ac_res
48390 else
48391   echo "$as_me: failed program was:" >&5
48392 sed 's/^/| /' conftest.$ac_ext >&5
48393
48394
48395 fi
48396
48397 rm -f core conftest.err conftest.$ac_objext \
48398       conftest$ac_exeext
48399   if test "${ac_cv_search_opendir+set}" = set; then
48400   break
48401 fi
48402 done
48403 if test "${ac_cv_search_opendir+set}" = set; then
48404   :
48405 else
48406   ac_cv_search_opendir=no
48407 fi
48408 rm conftest.$ac_ext
48409 LIBS=$ac_func_search_save_LIBS
48410 fi
48411 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
48412 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
48413 ac_res=$ac_cv_search_opendir
48414 if test "$ac_res" != no; then
48415   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
48416
48417 fi
48418
48419 fi
48420
48421 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
48422 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
48423 if test "${ac_cv_func_closedir_void+set}" = set; then
48424   echo $ECHO_N "(cached) $ECHO_C" >&6
48425 else
48426   if test "$cross_compiling" = yes; then
48427   ac_cv_func_closedir_void=yes
48428 else
48429   cat >conftest.$ac_ext <<_ACEOF
48430 /* confdefs.h.  */
48431 _ACEOF
48432 cat confdefs.h >>conftest.$ac_ext
48433 cat >>conftest.$ac_ext <<_ACEOF
48434 /* end confdefs.h.  */
48435 $ac_includes_default
48436 #include <$ac_header_dirent>
48437 #ifndef __cplusplus
48438 int closedir ();
48439 #endif
48440
48441 int
48442 main ()
48443 {
48444 return closedir (opendir (".")) != 0;
48445   ;
48446   return 0;
48447 }
48448 _ACEOF
48449 rm -f conftest$ac_exeext
48450 if { (ac_try="$ac_link"
48451 case "(($ac_try" in
48452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48453   *) ac_try_echo=$ac_try;;
48454 esac
48455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48456   (eval "$ac_link") 2>&5
48457   ac_status=$?
48458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48459   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48460   { (case "(($ac_try" in
48461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48462   *) ac_try_echo=$ac_try;;
48463 esac
48464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48465   (eval "$ac_try") 2>&5
48466   ac_status=$?
48467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48468   (exit $ac_status); }; }; then
48469   ac_cv_func_closedir_void=no
48470 else
48471   echo "$as_me: program exited with status $ac_status" >&5
48472 echo "$as_me: failed program was:" >&5
48473 sed 's/^/| /' conftest.$ac_ext >&5
48474
48475 ( exit $ac_status )
48476 ac_cv_func_closedir_void=yes
48477 fi
48478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48479 fi
48480
48481
48482 fi
48483 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
48484 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
48485 if test $ac_cv_func_closedir_void = yes; then
48486
48487 cat >>confdefs.h <<\_ACEOF
48488 #define CLOSEDIR_VOID 1
48489 _ACEOF
48490
48491 fi
48492
48493
48494
48495
48496
48497
48498
48499
48500
48501
48502
48503
48504
48505
48506
48507
48508
48509
48510
48511
48512
48513
48514
48515
48516
48517
48518
48519
48520
48521
48522
48523
48524
48525
48526
48527
48528
48529
48530
48531
48532
48533
48534
48535
48536
48537
48538
48539
48540
48541
48542
48543
48544
48545 for ac_header in sys/mount.h
48546 do
48547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
48548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
48549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
48550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48551   echo $ECHO_N "(cached) $ECHO_C" >&6
48552 else
48553   cat >conftest.$ac_ext <<_ACEOF
48554 /* confdefs.h.  */
48555 _ACEOF
48556 cat confdefs.h >>conftest.$ac_ext
48557 cat >>conftest.$ac_ext <<_ACEOF
48558 /* end confdefs.h.  */
48559 $ac_includes_default
48560      #if HAVE_SYS_PARAM_H
48561        #include <sys/param.h>
48562       #endif
48563
48564 #include <$ac_header>
48565 _ACEOF
48566 rm -f conftest.$ac_objext
48567 if { (ac_try="$ac_compile"
48568 case "(($ac_try" in
48569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48570   *) ac_try_echo=$ac_try;;
48571 esac
48572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48573   (eval "$ac_compile") 2>conftest.er1
48574   ac_status=$?
48575   grep -v '^ *+' conftest.er1 >conftest.err
48576   rm -f conftest.er1
48577   cat conftest.err >&5
48578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48579   (exit $ac_status); } &&
48580          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48581   { (case "(($ac_try" in
48582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48583   *) ac_try_echo=$ac_try;;
48584 esac
48585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48586   (eval "$ac_try") 2>&5
48587   ac_status=$?
48588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48589   (exit $ac_status); }; } &&
48590          { ac_try='test -s conftest.$ac_objext'
48591   { (case "(($ac_try" in
48592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48593   *) ac_try_echo=$ac_try;;
48594 esac
48595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48596   (eval "$ac_try") 2>&5
48597   ac_status=$?
48598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48599   (exit $ac_status); }; }; then
48600   eval "$as_ac_Header=yes"
48601 else
48602   echo "$as_me: failed program was:" >&5
48603 sed 's/^/| /' conftest.$ac_ext >&5
48604
48605         eval "$as_ac_Header=no"
48606 fi
48607
48608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48609 fi
48610 ac_res=`eval echo '${'$as_ac_Header'}'`
48611                { echo "$as_me:$LINENO: result: $ac_res" >&5
48612 echo "${ECHO_T}$ac_res" >&6; }
48613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48614   cat >>confdefs.h <<_ACEOF
48615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48616 _ACEOF
48617
48618 fi
48619
48620 done
48621
48622
48623
48624
48625
48626
48627
48628
48629   # For `struct statfs' on Ultrix 4.4.
48630
48631
48632
48633 for ac_header in netinet/in.h nfs/nfs_clnt.h nfs/vfs.h
48634 do
48635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
48636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
48637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
48638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48639   echo $ECHO_N "(cached) $ECHO_C" >&6
48640 else
48641   cat >conftest.$ac_ext <<_ACEOF
48642 /* confdefs.h.  */
48643 _ACEOF
48644 cat confdefs.h >>conftest.$ac_ext
48645 cat >>conftest.$ac_ext <<_ACEOF
48646 /* end confdefs.h.  */
48647 $ac_includes_default
48648
48649 #include <$ac_header>
48650 _ACEOF
48651 rm -f conftest.$ac_objext
48652 if { (ac_try="$ac_compile"
48653 case "(($ac_try" in
48654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48655   *) ac_try_echo=$ac_try;;
48656 esac
48657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48658   (eval "$ac_compile") 2>conftest.er1
48659   ac_status=$?
48660   grep -v '^ *+' conftest.er1 >conftest.err
48661   rm -f conftest.er1
48662   cat conftest.err >&5
48663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48664   (exit $ac_status); } &&
48665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48666   { (case "(($ac_try" in
48667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48668   *) ac_try_echo=$ac_try;;
48669 esac
48670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48671   (eval "$ac_try") 2>&5
48672   ac_status=$?
48673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48674   (exit $ac_status); }; } &&
48675          { ac_try='test -s conftest.$ac_objext'
48676   { (case "(($ac_try" in
48677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48678   *) ac_try_echo=$ac_try;;
48679 esac
48680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48681   (eval "$ac_try") 2>&5
48682   ac_status=$?
48683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48684   (exit $ac_status); }; }; then
48685   eval "$as_ac_Header=yes"
48686 else
48687   echo "$as_me: failed program was:" >&5
48688 sed 's/^/| /' conftest.$ac_ext >&5
48689
48690         eval "$as_ac_Header=no"
48691 fi
48692
48693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48694 fi
48695 ac_res=`eval echo '${'$as_ac_Header'}'`
48696                { echo "$as_me:$LINENO: result: $ac_res" >&5
48697 echo "${ECHO_T}$ac_res" >&6; }
48698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48699   cat >>confdefs.h <<_ACEOF
48700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48701 _ACEOF
48702
48703 fi
48704
48705 done
48706
48707
48708
48709
48710
48711   statxfs_includes="\
48712 $ac_includes_default
48713 #if HAVE_SYS_STATVFS_H
48714 # include <sys/statvfs.h>
48715 #endif
48716 #if HAVE_SYS_VFS_H
48717 # include <sys/vfs.h>
48718 #endif
48719 #if !HAVE_SYS_STATVFS_H && !HAVE_SYS_VFS_H
48720 # if HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H
48721 /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
48722 #  include <sys/param.h>
48723 #  include <sys/mount.h>
48724 # elif HAVE_NETINET_IN_H && HAVE_NFS_NFS_CLNT_H && HAVE_NFS_VFS_H
48725 /* Ultrix 4.4 needs these for the declaration of struct statfs.  */
48726 #  include <netinet/in.h>
48727 #  include <nfs/nfs_clnt.h>
48728 #  include <nfs/vfs.h>
48729 # endif
48730 #endif
48731 "
48732   { echo "$as_me:$LINENO: checking for struct statfs.f_basetype" >&5
48733 echo $ECHO_N "checking for struct statfs.f_basetype... $ECHO_C" >&6; }
48734 if test "${ac_cv_member_struct_statfs_f_basetype+set}" = set; then
48735   echo $ECHO_N "(cached) $ECHO_C" >&6
48736 else
48737   cat >conftest.$ac_ext <<_ACEOF
48738 /* confdefs.h.  */
48739 _ACEOF
48740 cat confdefs.h >>conftest.$ac_ext
48741 cat >>conftest.$ac_ext <<_ACEOF
48742 /* end confdefs.h.  */
48743 $statxfs_includes
48744
48745 int
48746 main ()
48747 {
48748 static struct statfs ac_aggr;
48749 if (ac_aggr.f_basetype)
48750 return 0;
48751   ;
48752   return 0;
48753 }
48754 _ACEOF
48755 rm -f conftest.$ac_objext
48756 if { (ac_try="$ac_compile"
48757 case "(($ac_try" in
48758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48759   *) ac_try_echo=$ac_try;;
48760 esac
48761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48762   (eval "$ac_compile") 2>conftest.er1
48763   ac_status=$?
48764   grep -v '^ *+' conftest.er1 >conftest.err
48765   rm -f conftest.er1
48766   cat conftest.err >&5
48767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48768   (exit $ac_status); } &&
48769          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48770   { (case "(($ac_try" in
48771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48772   *) ac_try_echo=$ac_try;;
48773 esac
48774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48775   (eval "$ac_try") 2>&5
48776   ac_status=$?
48777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48778   (exit $ac_status); }; } &&
48779          { ac_try='test -s conftest.$ac_objext'
48780   { (case "(($ac_try" in
48781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48782   *) ac_try_echo=$ac_try;;
48783 esac
48784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48785   (eval "$ac_try") 2>&5
48786   ac_status=$?
48787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48788   (exit $ac_status); }; }; then
48789   ac_cv_member_struct_statfs_f_basetype=yes
48790 else
48791   echo "$as_me: failed program was:" >&5
48792 sed 's/^/| /' conftest.$ac_ext >&5
48793
48794         cat >conftest.$ac_ext <<_ACEOF
48795 /* confdefs.h.  */
48796 _ACEOF
48797 cat confdefs.h >>conftest.$ac_ext
48798 cat >>conftest.$ac_ext <<_ACEOF
48799 /* end confdefs.h.  */
48800 $statxfs_includes
48801
48802 int
48803 main ()
48804 {
48805 static struct statfs ac_aggr;
48806 if (sizeof ac_aggr.f_basetype)
48807 return 0;
48808   ;
48809   return 0;
48810 }
48811 _ACEOF
48812 rm -f conftest.$ac_objext
48813 if { (ac_try="$ac_compile"
48814 case "(($ac_try" in
48815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48816   *) ac_try_echo=$ac_try;;
48817 esac
48818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48819   (eval "$ac_compile") 2>conftest.er1
48820   ac_status=$?
48821   grep -v '^ *+' conftest.er1 >conftest.err
48822   rm -f conftest.er1
48823   cat conftest.err >&5
48824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48825   (exit $ac_status); } &&
48826          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48827   { (case "(($ac_try" in
48828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48829   *) ac_try_echo=$ac_try;;
48830 esac
48831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48832   (eval "$ac_try") 2>&5
48833   ac_status=$?
48834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48835   (exit $ac_status); }; } &&
48836          { ac_try='test -s conftest.$ac_objext'
48837   { (case "(($ac_try" in
48838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48839   *) ac_try_echo=$ac_try;;
48840 esac
48841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48842   (eval "$ac_try") 2>&5
48843   ac_status=$?
48844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48845   (exit $ac_status); }; }; then
48846   ac_cv_member_struct_statfs_f_basetype=yes
48847 else
48848   echo "$as_me: failed program was:" >&5
48849 sed 's/^/| /' conftest.$ac_ext >&5
48850
48851         ac_cv_member_struct_statfs_f_basetype=no
48852 fi
48853
48854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48855 fi
48856
48857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48858 fi
48859 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_basetype" >&5
48860 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_basetype" >&6; }
48861 if test $ac_cv_member_struct_statfs_f_basetype = yes; then
48862
48863 cat >>confdefs.h <<_ACEOF
48864 #define HAVE_STRUCT_STATFS_F_BASETYPE 1
48865 _ACEOF
48866
48867
48868 fi
48869
48870   { echo "$as_me:$LINENO: checking for struct statvfs.f_basetype" >&5
48871 echo $ECHO_N "checking for struct statvfs.f_basetype... $ECHO_C" >&6; }
48872 if test "${ac_cv_member_struct_statvfs_f_basetype+set}" = set; then
48873   echo $ECHO_N "(cached) $ECHO_C" >&6
48874 else
48875   cat >conftest.$ac_ext <<_ACEOF
48876 /* confdefs.h.  */
48877 _ACEOF
48878 cat confdefs.h >>conftest.$ac_ext
48879 cat >>conftest.$ac_ext <<_ACEOF
48880 /* end confdefs.h.  */
48881 $statxfs_includes
48882
48883 int
48884 main ()
48885 {
48886 static struct statvfs ac_aggr;
48887 if (ac_aggr.f_basetype)
48888 return 0;
48889   ;
48890   return 0;
48891 }
48892 _ACEOF
48893 rm -f conftest.$ac_objext
48894 if { (ac_try="$ac_compile"
48895 case "(($ac_try" in
48896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48897   *) ac_try_echo=$ac_try;;
48898 esac
48899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48900   (eval "$ac_compile") 2>conftest.er1
48901   ac_status=$?
48902   grep -v '^ *+' conftest.er1 >conftest.err
48903   rm -f conftest.er1
48904   cat conftest.err >&5
48905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48906   (exit $ac_status); } &&
48907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48908   { (case "(($ac_try" in
48909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48910   *) ac_try_echo=$ac_try;;
48911 esac
48912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48913   (eval "$ac_try") 2>&5
48914   ac_status=$?
48915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48916   (exit $ac_status); }; } &&
48917          { ac_try='test -s conftest.$ac_objext'
48918   { (case "(($ac_try" in
48919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48920   *) ac_try_echo=$ac_try;;
48921 esac
48922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48923   (eval "$ac_try") 2>&5
48924   ac_status=$?
48925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48926   (exit $ac_status); }; }; then
48927   ac_cv_member_struct_statvfs_f_basetype=yes
48928 else
48929   echo "$as_me: failed program was:" >&5
48930 sed 's/^/| /' conftest.$ac_ext >&5
48931
48932         cat >conftest.$ac_ext <<_ACEOF
48933 /* confdefs.h.  */
48934 _ACEOF
48935 cat confdefs.h >>conftest.$ac_ext
48936 cat >>conftest.$ac_ext <<_ACEOF
48937 /* end confdefs.h.  */
48938 $statxfs_includes
48939
48940 int
48941 main ()
48942 {
48943 static struct statvfs ac_aggr;
48944 if (sizeof ac_aggr.f_basetype)
48945 return 0;
48946   ;
48947   return 0;
48948 }
48949 _ACEOF
48950 rm -f conftest.$ac_objext
48951 if { (ac_try="$ac_compile"
48952 case "(($ac_try" in
48953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48954   *) ac_try_echo=$ac_try;;
48955 esac
48956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48957   (eval "$ac_compile") 2>conftest.er1
48958   ac_status=$?
48959   grep -v '^ *+' conftest.er1 >conftest.err
48960   rm -f conftest.er1
48961   cat conftest.err >&5
48962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48963   (exit $ac_status); } &&
48964          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48965   { (case "(($ac_try" in
48966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48967   *) ac_try_echo=$ac_try;;
48968 esac
48969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48970   (eval "$ac_try") 2>&5
48971   ac_status=$?
48972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48973   (exit $ac_status); }; } &&
48974          { ac_try='test -s conftest.$ac_objext'
48975   { (case "(($ac_try" in
48976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48977   *) ac_try_echo=$ac_try;;
48978 esac
48979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48980   (eval "$ac_try") 2>&5
48981   ac_status=$?
48982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48983   (exit $ac_status); }; }; then
48984   ac_cv_member_struct_statvfs_f_basetype=yes
48985 else
48986   echo "$as_me: failed program was:" >&5
48987 sed 's/^/| /' conftest.$ac_ext >&5
48988
48989         ac_cv_member_struct_statvfs_f_basetype=no
48990 fi
48991
48992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48993 fi
48994
48995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48996 fi
48997 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_basetype" >&5
48998 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_basetype" >&6; }
48999 if test $ac_cv_member_struct_statvfs_f_basetype = yes; then
49000
49001 cat >>confdefs.h <<_ACEOF
49002 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
49003 _ACEOF
49004
49005
49006 fi
49007
49008   { echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
49009 echo $ECHO_N "checking for struct statfs.f_fstypename... $ECHO_C" >&6; }
49010 if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
49011   echo $ECHO_N "(cached) $ECHO_C" >&6
49012 else
49013   cat >conftest.$ac_ext <<_ACEOF
49014 /* confdefs.h.  */
49015 _ACEOF
49016 cat confdefs.h >>conftest.$ac_ext
49017 cat >>conftest.$ac_ext <<_ACEOF
49018 /* end confdefs.h.  */
49019 $statxfs_includes
49020
49021 int
49022 main ()
49023 {
49024 static struct statfs ac_aggr;
49025 if (ac_aggr.f_fstypename)
49026 return 0;
49027   ;
49028   return 0;
49029 }
49030 _ACEOF
49031 rm -f conftest.$ac_objext
49032 if { (ac_try="$ac_compile"
49033 case "(($ac_try" in
49034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49035   *) ac_try_echo=$ac_try;;
49036 esac
49037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49038   (eval "$ac_compile") 2>conftest.er1
49039   ac_status=$?
49040   grep -v '^ *+' conftest.er1 >conftest.err
49041   rm -f conftest.er1
49042   cat conftest.err >&5
49043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49044   (exit $ac_status); } &&
49045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49046   { (case "(($ac_try" in
49047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49048   *) ac_try_echo=$ac_try;;
49049 esac
49050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49051   (eval "$ac_try") 2>&5
49052   ac_status=$?
49053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49054   (exit $ac_status); }; } &&
49055          { ac_try='test -s conftest.$ac_objext'
49056   { (case "(($ac_try" in
49057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49058   *) ac_try_echo=$ac_try;;
49059 esac
49060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49061   (eval "$ac_try") 2>&5
49062   ac_status=$?
49063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49064   (exit $ac_status); }; }; then
49065   ac_cv_member_struct_statfs_f_fstypename=yes
49066 else
49067   echo "$as_me: failed program was:" >&5
49068 sed 's/^/| /' conftest.$ac_ext >&5
49069
49070         cat >conftest.$ac_ext <<_ACEOF
49071 /* confdefs.h.  */
49072 _ACEOF
49073 cat confdefs.h >>conftest.$ac_ext
49074 cat >>conftest.$ac_ext <<_ACEOF
49075 /* end confdefs.h.  */
49076 $statxfs_includes
49077
49078 int
49079 main ()
49080 {
49081 static struct statfs ac_aggr;
49082 if (sizeof ac_aggr.f_fstypename)
49083 return 0;
49084   ;
49085   return 0;
49086 }
49087 _ACEOF
49088 rm -f conftest.$ac_objext
49089 if { (ac_try="$ac_compile"
49090 case "(($ac_try" in
49091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49092   *) ac_try_echo=$ac_try;;
49093 esac
49094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49095   (eval "$ac_compile") 2>conftest.er1
49096   ac_status=$?
49097   grep -v '^ *+' conftest.er1 >conftest.err
49098   rm -f conftest.er1
49099   cat conftest.err >&5
49100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49101   (exit $ac_status); } &&
49102          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49103   { (case "(($ac_try" in
49104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49105   *) ac_try_echo=$ac_try;;
49106 esac
49107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49108   (eval "$ac_try") 2>&5
49109   ac_status=$?
49110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49111   (exit $ac_status); }; } &&
49112          { ac_try='test -s conftest.$ac_objext'
49113   { (case "(($ac_try" in
49114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49115   *) ac_try_echo=$ac_try;;
49116 esac
49117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49118   (eval "$ac_try") 2>&5
49119   ac_status=$?
49120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49121   (exit $ac_status); }; }; then
49122   ac_cv_member_struct_statfs_f_fstypename=yes
49123 else
49124   echo "$as_me: failed program was:" >&5
49125 sed 's/^/| /' conftest.$ac_ext >&5
49126
49127         ac_cv_member_struct_statfs_f_fstypename=no
49128 fi
49129
49130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49131 fi
49132
49133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49134 fi
49135 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
49136 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fstypename" >&6; }
49137 if test $ac_cv_member_struct_statfs_f_fstypename = yes; then
49138
49139 cat >>confdefs.h <<_ACEOF
49140 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
49141 _ACEOF
49142
49143
49144 fi
49145
49146   { echo "$as_me:$LINENO: checking for struct statfs.f_type" >&5
49147 echo $ECHO_N "checking for struct statfs.f_type... $ECHO_C" >&6; }
49148 if test "${ac_cv_member_struct_statfs_f_type+set}" = set; then
49149   echo $ECHO_N "(cached) $ECHO_C" >&6
49150 else
49151   cat >conftest.$ac_ext <<_ACEOF
49152 /* confdefs.h.  */
49153 _ACEOF
49154 cat confdefs.h >>conftest.$ac_ext
49155 cat >>conftest.$ac_ext <<_ACEOF
49156 /* end confdefs.h.  */
49157 $statxfs_includes
49158
49159 int
49160 main ()
49161 {
49162 static struct statfs ac_aggr;
49163 if (ac_aggr.f_type)
49164 return 0;
49165   ;
49166   return 0;
49167 }
49168 _ACEOF
49169 rm -f conftest.$ac_objext
49170 if { (ac_try="$ac_compile"
49171 case "(($ac_try" in
49172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49173   *) ac_try_echo=$ac_try;;
49174 esac
49175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49176   (eval "$ac_compile") 2>conftest.er1
49177   ac_status=$?
49178   grep -v '^ *+' conftest.er1 >conftest.err
49179   rm -f conftest.er1
49180   cat conftest.err >&5
49181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49182   (exit $ac_status); } &&
49183          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49184   { (case "(($ac_try" in
49185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49186   *) ac_try_echo=$ac_try;;
49187 esac
49188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49189   (eval "$ac_try") 2>&5
49190   ac_status=$?
49191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49192   (exit $ac_status); }; } &&
49193          { ac_try='test -s conftest.$ac_objext'
49194   { (case "(($ac_try" in
49195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49196   *) ac_try_echo=$ac_try;;
49197 esac
49198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49199   (eval "$ac_try") 2>&5
49200   ac_status=$?
49201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49202   (exit $ac_status); }; }; then
49203   ac_cv_member_struct_statfs_f_type=yes
49204 else
49205   echo "$as_me: failed program was:" >&5
49206 sed 's/^/| /' conftest.$ac_ext >&5
49207
49208         cat >conftest.$ac_ext <<_ACEOF
49209 /* confdefs.h.  */
49210 _ACEOF
49211 cat confdefs.h >>conftest.$ac_ext
49212 cat >>conftest.$ac_ext <<_ACEOF
49213 /* end confdefs.h.  */
49214 $statxfs_includes
49215
49216 int
49217 main ()
49218 {
49219 static struct statfs ac_aggr;
49220 if (sizeof ac_aggr.f_type)
49221 return 0;
49222   ;
49223   return 0;
49224 }
49225 _ACEOF
49226 rm -f conftest.$ac_objext
49227 if { (ac_try="$ac_compile"
49228 case "(($ac_try" in
49229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49230   *) ac_try_echo=$ac_try;;
49231 esac
49232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49233   (eval "$ac_compile") 2>conftest.er1
49234   ac_status=$?
49235   grep -v '^ *+' conftest.er1 >conftest.err
49236   rm -f conftest.er1
49237   cat conftest.err >&5
49238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49239   (exit $ac_status); } &&
49240          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49241   { (case "(($ac_try" in
49242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49243   *) ac_try_echo=$ac_try;;
49244 esac
49245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49246   (eval "$ac_try") 2>&5
49247   ac_status=$?
49248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49249   (exit $ac_status); }; } &&
49250          { ac_try='test -s conftest.$ac_objext'
49251   { (case "(($ac_try" in
49252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49253   *) ac_try_echo=$ac_try;;
49254 esac
49255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49256   (eval "$ac_try") 2>&5
49257   ac_status=$?
49258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49259   (exit $ac_status); }; }; then
49260   ac_cv_member_struct_statfs_f_type=yes
49261 else
49262   echo "$as_me: failed program was:" >&5
49263 sed 's/^/| /' conftest.$ac_ext >&5
49264
49265         ac_cv_member_struct_statfs_f_type=no
49266 fi
49267
49268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49269 fi
49270
49271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49272 fi
49273 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_type" >&5
49274 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_type" >&6; }
49275 if test $ac_cv_member_struct_statfs_f_type = yes; then
49276
49277 cat >>confdefs.h <<_ACEOF
49278 #define HAVE_STRUCT_STATFS_F_TYPE 1
49279 _ACEOF
49280
49281
49282 fi
49283
49284   { echo "$as_me:$LINENO: checking for struct statvfs.f_type" >&5
49285 echo $ECHO_N "checking for struct statvfs.f_type... $ECHO_C" >&6; }
49286 if test "${ac_cv_member_struct_statvfs_f_type+set}" = set; then
49287   echo $ECHO_N "(cached) $ECHO_C" >&6
49288 else
49289   cat >conftest.$ac_ext <<_ACEOF
49290 /* confdefs.h.  */
49291 _ACEOF
49292 cat confdefs.h >>conftest.$ac_ext
49293 cat >>conftest.$ac_ext <<_ACEOF
49294 /* end confdefs.h.  */
49295 $statxfs_includes
49296
49297 int
49298 main ()
49299 {
49300 static struct statvfs ac_aggr;
49301 if (ac_aggr.f_type)
49302 return 0;
49303   ;
49304   return 0;
49305 }
49306 _ACEOF
49307 rm -f conftest.$ac_objext
49308 if { (ac_try="$ac_compile"
49309 case "(($ac_try" in
49310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49311   *) ac_try_echo=$ac_try;;
49312 esac
49313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49314   (eval "$ac_compile") 2>conftest.er1
49315   ac_status=$?
49316   grep -v '^ *+' conftest.er1 >conftest.err
49317   rm -f conftest.er1
49318   cat conftest.err >&5
49319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49320   (exit $ac_status); } &&
49321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49322   { (case "(($ac_try" in
49323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49324   *) ac_try_echo=$ac_try;;
49325 esac
49326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49327   (eval "$ac_try") 2>&5
49328   ac_status=$?
49329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49330   (exit $ac_status); }; } &&
49331          { ac_try='test -s conftest.$ac_objext'
49332   { (case "(($ac_try" in
49333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49334   *) ac_try_echo=$ac_try;;
49335 esac
49336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49337   (eval "$ac_try") 2>&5
49338   ac_status=$?
49339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49340   (exit $ac_status); }; }; then
49341   ac_cv_member_struct_statvfs_f_type=yes
49342 else
49343   echo "$as_me: failed program was:" >&5
49344 sed 's/^/| /' conftest.$ac_ext >&5
49345
49346         cat >conftest.$ac_ext <<_ACEOF
49347 /* confdefs.h.  */
49348 _ACEOF
49349 cat confdefs.h >>conftest.$ac_ext
49350 cat >>conftest.$ac_ext <<_ACEOF
49351 /* end confdefs.h.  */
49352 $statxfs_includes
49353
49354 int
49355 main ()
49356 {
49357 static struct statvfs ac_aggr;
49358 if (sizeof ac_aggr.f_type)
49359 return 0;
49360   ;
49361   return 0;
49362 }
49363 _ACEOF
49364 rm -f conftest.$ac_objext
49365 if { (ac_try="$ac_compile"
49366 case "(($ac_try" in
49367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49368   *) ac_try_echo=$ac_try;;
49369 esac
49370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49371   (eval "$ac_compile") 2>conftest.er1
49372   ac_status=$?
49373   grep -v '^ *+' conftest.er1 >conftest.err
49374   rm -f conftest.er1
49375   cat conftest.err >&5
49376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49377   (exit $ac_status); } &&
49378          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49379   { (case "(($ac_try" in
49380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49381   *) ac_try_echo=$ac_try;;
49382 esac
49383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49384   (eval "$ac_try") 2>&5
49385   ac_status=$?
49386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49387   (exit $ac_status); }; } &&
49388          { ac_try='test -s conftest.$ac_objext'
49389   { (case "(($ac_try" in
49390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49391   *) ac_try_echo=$ac_try;;
49392 esac
49393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49394   (eval "$ac_try") 2>&5
49395   ac_status=$?
49396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49397   (exit $ac_status); }; }; then
49398   ac_cv_member_struct_statvfs_f_type=yes
49399 else
49400   echo "$as_me: failed program was:" >&5
49401 sed 's/^/| /' conftest.$ac_ext >&5
49402
49403         ac_cv_member_struct_statvfs_f_type=no
49404 fi
49405
49406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49407 fi
49408
49409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49410 fi
49411 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_type" >&5
49412 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_type" >&6; }
49413 if test $ac_cv_member_struct_statvfs_f_type = yes; then
49414
49415 cat >>confdefs.h <<_ACEOF
49416 #define HAVE_STRUCT_STATVFS_F_TYPE 1
49417 _ACEOF
49418
49419
49420 fi
49421
49422   { echo "$as_me:$LINENO: checking for struct statfs.f_fsid.__val" >&5
49423 echo $ECHO_N "checking for struct statfs.f_fsid.__val... $ECHO_C" >&6; }
49424 if test "${ac_cv_member_struct_statfs_f_fsid___val+set}" = set; then
49425   echo $ECHO_N "(cached) $ECHO_C" >&6
49426 else
49427   cat >conftest.$ac_ext <<_ACEOF
49428 /* confdefs.h.  */
49429 _ACEOF
49430 cat confdefs.h >>conftest.$ac_ext
49431 cat >>conftest.$ac_ext <<_ACEOF
49432 /* end confdefs.h.  */
49433 $statxfs_includes
49434
49435 int
49436 main ()
49437 {
49438 static struct statfs ac_aggr;
49439 if (ac_aggr.f_fsid.__val)
49440 return 0;
49441   ;
49442   return 0;
49443 }
49444 _ACEOF
49445 rm -f conftest.$ac_objext
49446 if { (ac_try="$ac_compile"
49447 case "(($ac_try" in
49448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49449   *) ac_try_echo=$ac_try;;
49450 esac
49451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49452   (eval "$ac_compile") 2>conftest.er1
49453   ac_status=$?
49454   grep -v '^ *+' conftest.er1 >conftest.err
49455   rm -f conftest.er1
49456   cat conftest.err >&5
49457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49458   (exit $ac_status); } &&
49459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49460   { (case "(($ac_try" in
49461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49462   *) ac_try_echo=$ac_try;;
49463 esac
49464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49465   (eval "$ac_try") 2>&5
49466   ac_status=$?
49467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49468   (exit $ac_status); }; } &&
49469          { ac_try='test -s conftest.$ac_objext'
49470   { (case "(($ac_try" in
49471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49472   *) ac_try_echo=$ac_try;;
49473 esac
49474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49475   (eval "$ac_try") 2>&5
49476   ac_status=$?
49477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49478   (exit $ac_status); }; }; then
49479   ac_cv_member_struct_statfs_f_fsid___val=yes
49480 else
49481   echo "$as_me: failed program was:" >&5
49482 sed 's/^/| /' conftest.$ac_ext >&5
49483
49484         cat >conftest.$ac_ext <<_ACEOF
49485 /* confdefs.h.  */
49486 _ACEOF
49487 cat confdefs.h >>conftest.$ac_ext
49488 cat >>conftest.$ac_ext <<_ACEOF
49489 /* end confdefs.h.  */
49490 $statxfs_includes
49491
49492 int
49493 main ()
49494 {
49495 static struct statfs ac_aggr;
49496 if (sizeof ac_aggr.f_fsid.__val)
49497 return 0;
49498   ;
49499   return 0;
49500 }
49501 _ACEOF
49502 rm -f conftest.$ac_objext
49503 if { (ac_try="$ac_compile"
49504 case "(($ac_try" in
49505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49506   *) ac_try_echo=$ac_try;;
49507 esac
49508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49509   (eval "$ac_compile") 2>conftest.er1
49510   ac_status=$?
49511   grep -v '^ *+' conftest.er1 >conftest.err
49512   rm -f conftest.er1
49513   cat conftest.err >&5
49514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49515   (exit $ac_status); } &&
49516          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49517   { (case "(($ac_try" in
49518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49519   *) ac_try_echo=$ac_try;;
49520 esac
49521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49522   (eval "$ac_try") 2>&5
49523   ac_status=$?
49524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49525   (exit $ac_status); }; } &&
49526          { ac_try='test -s conftest.$ac_objext'
49527   { (case "(($ac_try" in
49528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49529   *) ac_try_echo=$ac_try;;
49530 esac
49531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49532   (eval "$ac_try") 2>&5
49533   ac_status=$?
49534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49535   (exit $ac_status); }; }; then
49536   ac_cv_member_struct_statfs_f_fsid___val=yes
49537 else
49538   echo "$as_me: failed program was:" >&5
49539 sed 's/^/| /' conftest.$ac_ext >&5
49540
49541         ac_cv_member_struct_statfs_f_fsid___val=no
49542 fi
49543
49544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49545 fi
49546
49547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49548 fi
49549 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fsid___val" >&5
49550 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fsid___val" >&6; }
49551 if test $ac_cv_member_struct_statfs_f_fsid___val = yes; then
49552
49553 cat >>confdefs.h <<_ACEOF
49554 #define HAVE_STRUCT_STATFS_F_FSID___VAL 1
49555 _ACEOF
49556
49557
49558 fi
49559
49560   { echo "$as_me:$LINENO: checking for struct statvfs.f_fsid.__val" >&5
49561 echo $ECHO_N "checking for struct statvfs.f_fsid.__val... $ECHO_C" >&6; }
49562 if test "${ac_cv_member_struct_statvfs_f_fsid___val+set}" = set; then
49563   echo $ECHO_N "(cached) $ECHO_C" >&6
49564 else
49565   cat >conftest.$ac_ext <<_ACEOF
49566 /* confdefs.h.  */
49567 _ACEOF
49568 cat confdefs.h >>conftest.$ac_ext
49569 cat >>conftest.$ac_ext <<_ACEOF
49570 /* end confdefs.h.  */
49571 $statxfs_includes
49572
49573 int
49574 main ()
49575 {
49576 static struct statvfs ac_aggr;
49577 if (ac_aggr.f_fsid.__val)
49578 return 0;
49579   ;
49580   return 0;
49581 }
49582 _ACEOF
49583 rm -f conftest.$ac_objext
49584 if { (ac_try="$ac_compile"
49585 case "(($ac_try" in
49586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49587   *) ac_try_echo=$ac_try;;
49588 esac
49589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49590   (eval "$ac_compile") 2>conftest.er1
49591   ac_status=$?
49592   grep -v '^ *+' conftest.er1 >conftest.err
49593   rm -f conftest.er1
49594   cat conftest.err >&5
49595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49596   (exit $ac_status); } &&
49597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49598   { (case "(($ac_try" in
49599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49600   *) ac_try_echo=$ac_try;;
49601 esac
49602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49603   (eval "$ac_try") 2>&5
49604   ac_status=$?
49605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49606   (exit $ac_status); }; } &&
49607          { ac_try='test -s conftest.$ac_objext'
49608   { (case "(($ac_try" in
49609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49610   *) ac_try_echo=$ac_try;;
49611 esac
49612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49613   (eval "$ac_try") 2>&5
49614   ac_status=$?
49615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49616   (exit $ac_status); }; }; then
49617   ac_cv_member_struct_statvfs_f_fsid___val=yes
49618 else
49619   echo "$as_me: failed program was:" >&5
49620 sed 's/^/| /' conftest.$ac_ext >&5
49621
49622         cat >conftest.$ac_ext <<_ACEOF
49623 /* confdefs.h.  */
49624 _ACEOF
49625 cat confdefs.h >>conftest.$ac_ext
49626 cat >>conftest.$ac_ext <<_ACEOF
49627 /* end confdefs.h.  */
49628 $statxfs_includes
49629
49630 int
49631 main ()
49632 {
49633 static struct statvfs ac_aggr;
49634 if (sizeof ac_aggr.f_fsid.__val)
49635 return 0;
49636   ;
49637   return 0;
49638 }
49639 _ACEOF
49640 rm -f conftest.$ac_objext
49641 if { (ac_try="$ac_compile"
49642 case "(($ac_try" in
49643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49644   *) ac_try_echo=$ac_try;;
49645 esac
49646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49647   (eval "$ac_compile") 2>conftest.er1
49648   ac_status=$?
49649   grep -v '^ *+' conftest.er1 >conftest.err
49650   rm -f conftest.er1
49651   cat conftest.err >&5
49652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49653   (exit $ac_status); } &&
49654          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49655   { (case "(($ac_try" in
49656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49657   *) ac_try_echo=$ac_try;;
49658 esac
49659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49660   (eval "$ac_try") 2>&5
49661   ac_status=$?
49662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49663   (exit $ac_status); }; } &&
49664          { ac_try='test -s conftest.$ac_objext'
49665   { (case "(($ac_try" in
49666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49667   *) ac_try_echo=$ac_try;;
49668 esac
49669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49670   (eval "$ac_try") 2>&5
49671   ac_status=$?
49672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49673   (exit $ac_status); }; }; then
49674   ac_cv_member_struct_statvfs_f_fsid___val=yes
49675 else
49676   echo "$as_me: failed program was:" >&5
49677 sed 's/^/| /' conftest.$ac_ext >&5
49678
49679         ac_cv_member_struct_statvfs_f_fsid___val=no
49680 fi
49681
49682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49683 fi
49684
49685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49686 fi
49687 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_fsid___val" >&5
49688 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_fsid___val" >&6; }
49689 if test $ac_cv_member_struct_statvfs_f_fsid___val = yes; then
49690
49691 cat >>confdefs.h <<_ACEOF
49692 #define HAVE_STRUCT_STATVFS_F_FSID___VAL 1
49693 _ACEOF
49694
49695
49696 fi
49697
49698   { echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
49699 echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6; }
49700 if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
49701   echo $ECHO_N "(cached) $ECHO_C" >&6
49702 else
49703   cat >conftest.$ac_ext <<_ACEOF
49704 /* confdefs.h.  */
49705 _ACEOF
49706 cat confdefs.h >>conftest.$ac_ext
49707 cat >>conftest.$ac_ext <<_ACEOF
49708 /* end confdefs.h.  */
49709 $statxfs_includes
49710
49711 int
49712 main ()
49713 {
49714 static struct statfs ac_aggr;
49715 if (ac_aggr.f_namemax)
49716 return 0;
49717   ;
49718   return 0;
49719 }
49720 _ACEOF
49721 rm -f conftest.$ac_objext
49722 if { (ac_try="$ac_compile"
49723 case "(($ac_try" in
49724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49725   *) ac_try_echo=$ac_try;;
49726 esac
49727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49728   (eval "$ac_compile") 2>conftest.er1
49729   ac_status=$?
49730   grep -v '^ *+' conftest.er1 >conftest.err
49731   rm -f conftest.er1
49732   cat conftest.err >&5
49733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49734   (exit $ac_status); } &&
49735          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49736   { (case "(($ac_try" in
49737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49738   *) ac_try_echo=$ac_try;;
49739 esac
49740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49741   (eval "$ac_try") 2>&5
49742   ac_status=$?
49743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49744   (exit $ac_status); }; } &&
49745          { ac_try='test -s conftest.$ac_objext'
49746   { (case "(($ac_try" in
49747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49748   *) ac_try_echo=$ac_try;;
49749 esac
49750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49751   (eval "$ac_try") 2>&5
49752   ac_status=$?
49753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49754   (exit $ac_status); }; }; then
49755   ac_cv_member_struct_statfs_f_namemax=yes
49756 else
49757   echo "$as_me: failed program was:" >&5
49758 sed 's/^/| /' conftest.$ac_ext >&5
49759
49760         cat >conftest.$ac_ext <<_ACEOF
49761 /* confdefs.h.  */
49762 _ACEOF
49763 cat confdefs.h >>conftest.$ac_ext
49764 cat >>conftest.$ac_ext <<_ACEOF
49765 /* end confdefs.h.  */
49766 $statxfs_includes
49767
49768 int
49769 main ()
49770 {
49771 static struct statfs ac_aggr;
49772 if (sizeof ac_aggr.f_namemax)
49773 return 0;
49774   ;
49775   return 0;
49776 }
49777 _ACEOF
49778 rm -f conftest.$ac_objext
49779 if { (ac_try="$ac_compile"
49780 case "(($ac_try" in
49781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49782   *) ac_try_echo=$ac_try;;
49783 esac
49784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49785   (eval "$ac_compile") 2>conftest.er1
49786   ac_status=$?
49787   grep -v '^ *+' conftest.er1 >conftest.err
49788   rm -f conftest.er1
49789   cat conftest.err >&5
49790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49791   (exit $ac_status); } &&
49792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49793   { (case "(($ac_try" in
49794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49795   *) ac_try_echo=$ac_try;;
49796 esac
49797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49798   (eval "$ac_try") 2>&5
49799   ac_status=$?
49800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49801   (exit $ac_status); }; } &&
49802          { ac_try='test -s conftest.$ac_objext'
49803   { (case "(($ac_try" in
49804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49805   *) ac_try_echo=$ac_try;;
49806 esac
49807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49808   (eval "$ac_try") 2>&5
49809   ac_status=$?
49810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49811   (exit $ac_status); }; }; then
49812   ac_cv_member_struct_statfs_f_namemax=yes
49813 else
49814   echo "$as_me: failed program was:" >&5
49815 sed 's/^/| /' conftest.$ac_ext >&5
49816
49817         ac_cv_member_struct_statfs_f_namemax=no
49818 fi
49819
49820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49821 fi
49822
49823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49824 fi
49825 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
49826 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6; }
49827 if test $ac_cv_member_struct_statfs_f_namemax = yes; then
49828
49829 cat >>confdefs.h <<_ACEOF
49830 #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
49831 _ACEOF
49832
49833
49834 fi
49835
49836   { echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
49837 echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6; }
49838 if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
49839   echo $ECHO_N "(cached) $ECHO_C" >&6
49840 else
49841   cat >conftest.$ac_ext <<_ACEOF
49842 /* confdefs.h.  */
49843 _ACEOF
49844 cat confdefs.h >>conftest.$ac_ext
49845 cat >>conftest.$ac_ext <<_ACEOF
49846 /* end confdefs.h.  */
49847 $statxfs_includes
49848
49849 int
49850 main ()
49851 {
49852 static struct statvfs ac_aggr;
49853 if (ac_aggr.f_namemax)
49854 return 0;
49855   ;
49856   return 0;
49857 }
49858 _ACEOF
49859 rm -f conftest.$ac_objext
49860 if { (ac_try="$ac_compile"
49861 case "(($ac_try" in
49862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49863   *) ac_try_echo=$ac_try;;
49864 esac
49865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49866   (eval "$ac_compile") 2>conftest.er1
49867   ac_status=$?
49868   grep -v '^ *+' conftest.er1 >conftest.err
49869   rm -f conftest.er1
49870   cat conftest.err >&5
49871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49872   (exit $ac_status); } &&
49873          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49874   { (case "(($ac_try" in
49875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49876   *) ac_try_echo=$ac_try;;
49877 esac
49878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49879   (eval "$ac_try") 2>&5
49880   ac_status=$?
49881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49882   (exit $ac_status); }; } &&
49883          { ac_try='test -s conftest.$ac_objext'
49884   { (case "(($ac_try" in
49885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49886   *) ac_try_echo=$ac_try;;
49887 esac
49888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49889   (eval "$ac_try") 2>&5
49890   ac_status=$?
49891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49892   (exit $ac_status); }; }; then
49893   ac_cv_member_struct_statvfs_f_namemax=yes
49894 else
49895   echo "$as_me: failed program was:" >&5
49896 sed 's/^/| /' conftest.$ac_ext >&5
49897
49898         cat >conftest.$ac_ext <<_ACEOF
49899 /* confdefs.h.  */
49900 _ACEOF
49901 cat confdefs.h >>conftest.$ac_ext
49902 cat >>conftest.$ac_ext <<_ACEOF
49903 /* end confdefs.h.  */
49904 $statxfs_includes
49905
49906 int
49907 main ()
49908 {
49909 static struct statvfs ac_aggr;
49910 if (sizeof ac_aggr.f_namemax)
49911 return 0;
49912   ;
49913   return 0;
49914 }
49915 _ACEOF
49916 rm -f conftest.$ac_objext
49917 if { (ac_try="$ac_compile"
49918 case "(($ac_try" in
49919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49920   *) ac_try_echo=$ac_try;;
49921 esac
49922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49923   (eval "$ac_compile") 2>conftest.er1
49924   ac_status=$?
49925   grep -v '^ *+' conftest.er1 >conftest.err
49926   rm -f conftest.er1
49927   cat conftest.err >&5
49928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49929   (exit $ac_status); } &&
49930          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49931   { (case "(($ac_try" in
49932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49933   *) ac_try_echo=$ac_try;;
49934 esac
49935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49936   (eval "$ac_try") 2>&5
49937   ac_status=$?
49938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49939   (exit $ac_status); }; } &&
49940          { ac_try='test -s conftest.$ac_objext'
49941   { (case "(($ac_try" in
49942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49943   *) ac_try_echo=$ac_try;;
49944 esac
49945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49946   (eval "$ac_try") 2>&5
49947   ac_status=$?
49948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49949   (exit $ac_status); }; }; then
49950   ac_cv_member_struct_statvfs_f_namemax=yes
49951 else
49952   echo "$as_me: failed program was:" >&5
49953 sed 's/^/| /' conftest.$ac_ext >&5
49954
49955         ac_cv_member_struct_statvfs_f_namemax=no
49956 fi
49957
49958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49959 fi
49960
49961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49962 fi
49963 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
49964 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6; }
49965 if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
49966
49967 cat >>confdefs.h <<_ACEOF
49968 #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
49969 _ACEOF
49970
49971
49972 fi
49973
49974   { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
49975 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
49976 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
49977   echo $ECHO_N "(cached) $ECHO_C" >&6
49978 else
49979   cat >conftest.$ac_ext <<_ACEOF
49980 /* confdefs.h.  */
49981 _ACEOF
49982 cat confdefs.h >>conftest.$ac_ext
49983 cat >>conftest.$ac_ext <<_ACEOF
49984 /* end confdefs.h.  */
49985 $statxfs_includes
49986
49987 int
49988 main ()
49989 {
49990 static struct statfs ac_aggr;
49991 if (ac_aggr.f_namelen)
49992 return 0;
49993   ;
49994   return 0;
49995 }
49996 _ACEOF
49997 rm -f conftest.$ac_objext
49998 if { (ac_try="$ac_compile"
49999 case "(($ac_try" in
50000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50001   *) ac_try_echo=$ac_try;;
50002 esac
50003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50004   (eval "$ac_compile") 2>conftest.er1
50005   ac_status=$?
50006   grep -v '^ *+' conftest.er1 >conftest.err
50007   rm -f conftest.er1
50008   cat conftest.err >&5
50009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50010   (exit $ac_status); } &&
50011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50012   { (case "(($ac_try" in
50013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50014   *) ac_try_echo=$ac_try;;
50015 esac
50016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50017   (eval "$ac_try") 2>&5
50018   ac_status=$?
50019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50020   (exit $ac_status); }; } &&
50021          { ac_try='test -s conftest.$ac_objext'
50022   { (case "(($ac_try" in
50023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50024   *) ac_try_echo=$ac_try;;
50025 esac
50026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50027   (eval "$ac_try") 2>&5
50028   ac_status=$?
50029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50030   (exit $ac_status); }; }; then
50031   ac_cv_member_struct_statfs_f_namelen=yes
50032 else
50033   echo "$as_me: failed program was:" >&5
50034 sed 's/^/| /' conftest.$ac_ext >&5
50035
50036         cat >conftest.$ac_ext <<_ACEOF
50037 /* confdefs.h.  */
50038 _ACEOF
50039 cat confdefs.h >>conftest.$ac_ext
50040 cat >>conftest.$ac_ext <<_ACEOF
50041 /* end confdefs.h.  */
50042 $statxfs_includes
50043
50044 int
50045 main ()
50046 {
50047 static struct statfs ac_aggr;
50048 if (sizeof ac_aggr.f_namelen)
50049 return 0;
50050   ;
50051   return 0;
50052 }
50053 _ACEOF
50054 rm -f conftest.$ac_objext
50055 if { (ac_try="$ac_compile"
50056 case "(($ac_try" in
50057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50058   *) ac_try_echo=$ac_try;;
50059 esac
50060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50061   (eval "$ac_compile") 2>conftest.er1
50062   ac_status=$?
50063   grep -v '^ *+' conftest.er1 >conftest.err
50064   rm -f conftest.er1
50065   cat conftest.err >&5
50066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50067   (exit $ac_status); } &&
50068          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50069   { (case "(($ac_try" in
50070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50071   *) ac_try_echo=$ac_try;;
50072 esac
50073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50074   (eval "$ac_try") 2>&5
50075   ac_status=$?
50076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50077   (exit $ac_status); }; } &&
50078          { ac_try='test -s conftest.$ac_objext'
50079   { (case "(($ac_try" in
50080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50081   *) ac_try_echo=$ac_try;;
50082 esac
50083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50084   (eval "$ac_try") 2>&5
50085   ac_status=$?
50086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50087   (exit $ac_status); }; }; then
50088   ac_cv_member_struct_statfs_f_namelen=yes
50089 else
50090   echo "$as_me: failed program was:" >&5
50091 sed 's/^/| /' conftest.$ac_ext >&5
50092
50093         ac_cv_member_struct_statfs_f_namelen=no
50094 fi
50095
50096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50097 fi
50098
50099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50100 fi
50101 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
50102 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
50103 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
50104
50105 cat >>confdefs.h <<_ACEOF
50106 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
50107 _ACEOF
50108
50109
50110 fi
50111
50112   { echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
50113 echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6; }
50114 if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
50115   echo $ECHO_N "(cached) $ECHO_C" >&6
50116 else
50117   cat >conftest.$ac_ext <<_ACEOF
50118 /* confdefs.h.  */
50119 _ACEOF
50120 cat confdefs.h >>conftest.$ac_ext
50121 cat >>conftest.$ac_ext <<_ACEOF
50122 /* end confdefs.h.  */
50123 $statxfs_includes
50124
50125 int
50126 main ()
50127 {
50128 static struct statvfs ac_aggr;
50129 if (ac_aggr.f_namelen)
50130 return 0;
50131   ;
50132   return 0;
50133 }
50134 _ACEOF
50135 rm -f conftest.$ac_objext
50136 if { (ac_try="$ac_compile"
50137 case "(($ac_try" in
50138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50139   *) ac_try_echo=$ac_try;;
50140 esac
50141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50142   (eval "$ac_compile") 2>conftest.er1
50143   ac_status=$?
50144   grep -v '^ *+' conftest.er1 >conftest.err
50145   rm -f conftest.er1
50146   cat conftest.err >&5
50147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50148   (exit $ac_status); } &&
50149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50150   { (case "(($ac_try" in
50151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50152   *) ac_try_echo=$ac_try;;
50153 esac
50154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50155   (eval "$ac_try") 2>&5
50156   ac_status=$?
50157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50158   (exit $ac_status); }; } &&
50159          { ac_try='test -s conftest.$ac_objext'
50160   { (case "(($ac_try" in
50161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50162   *) ac_try_echo=$ac_try;;
50163 esac
50164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50165   (eval "$ac_try") 2>&5
50166   ac_status=$?
50167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50168   (exit $ac_status); }; }; then
50169   ac_cv_member_struct_statvfs_f_namelen=yes
50170 else
50171   echo "$as_me: failed program was:" >&5
50172 sed 's/^/| /' conftest.$ac_ext >&5
50173
50174         cat >conftest.$ac_ext <<_ACEOF
50175 /* confdefs.h.  */
50176 _ACEOF
50177 cat confdefs.h >>conftest.$ac_ext
50178 cat >>conftest.$ac_ext <<_ACEOF
50179 /* end confdefs.h.  */
50180 $statxfs_includes
50181
50182 int
50183 main ()
50184 {
50185 static struct statvfs ac_aggr;
50186 if (sizeof ac_aggr.f_namelen)
50187 return 0;
50188   ;
50189   return 0;
50190 }
50191 _ACEOF
50192 rm -f conftest.$ac_objext
50193 if { (ac_try="$ac_compile"
50194 case "(($ac_try" in
50195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50196   *) ac_try_echo=$ac_try;;
50197 esac
50198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50199   (eval "$ac_compile") 2>conftest.er1
50200   ac_status=$?
50201   grep -v '^ *+' conftest.er1 >conftest.err
50202   rm -f conftest.er1
50203   cat conftest.err >&5
50204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50205   (exit $ac_status); } &&
50206          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50207   { (case "(($ac_try" in
50208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50209   *) ac_try_echo=$ac_try;;
50210 esac
50211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50212   (eval "$ac_try") 2>&5
50213   ac_status=$?
50214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50215   (exit $ac_status); }; } &&
50216          { ac_try='test -s conftest.$ac_objext'
50217   { (case "(($ac_try" in
50218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50219   *) ac_try_echo=$ac_try;;
50220 esac
50221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50222   (eval "$ac_try") 2>&5
50223   ac_status=$?
50224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50225   (exit $ac_status); }; }; then
50226   ac_cv_member_struct_statvfs_f_namelen=yes
50227 else
50228   echo "$as_me: failed program was:" >&5
50229 sed 's/^/| /' conftest.$ac_ext >&5
50230
50231         ac_cv_member_struct_statvfs_f_namelen=no
50232 fi
50233
50234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50235 fi
50236
50237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50238 fi
50239 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
50240 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6; }
50241 if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
50242
50243 cat >>confdefs.h <<_ACEOF
50244 #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
50245 _ACEOF
50246
50247
50248 fi
50249
50250
50251
50252       if test "X$prefix" = "XNONE"; then
50253     acl_final_prefix="$ac_default_prefix"
50254   else
50255     acl_final_prefix="$prefix"
50256   fi
50257   if test "X$exec_prefix" = "XNONE"; then
50258     acl_final_exec_prefix='${prefix}'
50259   else
50260     acl_final_exec_prefix="$exec_prefix"
50261   fi
50262   acl_save_prefix="$prefix"
50263   prefix="$acl_final_prefix"
50264   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
50265   prefix="$acl_save_prefix"
50266
50267
50268 # Check whether --with-gnu-ld was given.
50269 if test "${with_gnu_ld+set}" = set; then
50270   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
50271 else
50272   with_gnu_ld=no
50273 fi
50274
50275 # Prepare PATH_SEPARATOR.
50276 # The user is always right.
50277 if test "${PATH_SEPARATOR+set}" != set; then
50278   echo "#! /bin/sh" >conf$$.sh
50279   echo  "exit 0"   >>conf$$.sh
50280   chmod +x conf$$.sh
50281   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50282     PATH_SEPARATOR=';'
50283   else
50284     PATH_SEPARATOR=:
50285   fi
50286   rm -f conf$$.sh
50287 fi
50288 ac_prog=ld
50289 if test "$GCC" = yes; then
50290   # Check if gcc -print-prog-name=ld gives a path.
50291   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
50292 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
50293   case $host in
50294   *-*-mingw*)
50295     # gcc leaves a trailing carriage return which upsets mingw
50296     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
50297   *)
50298     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
50299   esac
50300   case $ac_prog in
50301     # Accept absolute paths.
50302     [\\/]* | [A-Za-z]:[\\/]*)
50303       re_direlt='/[^/][^/]*/\.\./'
50304       # Canonicalize the path of ld
50305       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
50306       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
50307         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
50308       done
50309       test -z "$LD" && LD="$ac_prog"
50310       ;;
50311   "")
50312     # If it fails, then pretend we aren't using GCC.
50313     ac_prog=ld
50314     ;;
50315   *)
50316     # If it is relative, then search for the first ld in PATH.
50317     with_gnu_ld=unknown
50318     ;;
50319   esac
50320 elif test "$with_gnu_ld" = yes; then
50321   { echo "$as_me:$LINENO: checking for GNU ld" >&5
50322 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
50323 else
50324   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
50325 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
50326 fi
50327 if test "${acl_cv_path_LD+set}" = set; then
50328   echo $ECHO_N "(cached) $ECHO_C" >&6
50329 else
50330   if test -z "$LD"; then
50331   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
50332   for ac_dir in $PATH; do
50333     test -z "$ac_dir" && ac_dir=.
50334     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
50335       acl_cv_path_LD="$ac_dir/$ac_prog"
50336       # Check to see if the program is GNU ld.  I'd rather use --version,
50337       # but apparently some GNU ld's only accept -v.
50338       # Break only if it was the GNU/non-GNU ld that we prefer.
50339       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
50340       *GNU* | *'with BFD'*)
50341         test "$with_gnu_ld" != no && break ;;
50342       *)
50343         test "$with_gnu_ld" != yes && break ;;
50344       esac
50345     fi
50346   done
50347   IFS="$ac_save_ifs"
50348 else
50349   acl_cv_path_LD="$LD" # Let the user override the test with a path.
50350 fi
50351 fi
50352
50353 LD="$acl_cv_path_LD"
50354 if test -n "$LD"; then
50355   { echo "$as_me:$LINENO: result: $LD" >&5
50356 echo "${ECHO_T}$LD" >&6; }
50357 else
50358   { echo "$as_me:$LINENO: result: no" >&5
50359 echo "${ECHO_T}no" >&6; }
50360 fi
50361 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
50362 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
50363    { (exit 1); exit 1; }; }
50364 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
50365 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
50366 if test "${acl_cv_prog_gnu_ld+set}" = set; then
50367   echo $ECHO_N "(cached) $ECHO_C" >&6
50368 else
50369   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
50370 case `$LD -v 2>&1 </dev/null` in
50371 *GNU* | *'with BFD'*)
50372   acl_cv_prog_gnu_ld=yes ;;
50373 *)
50374   acl_cv_prog_gnu_ld=no ;;
50375 esac
50376 fi
50377 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
50378 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
50379 with_gnu_ld=$acl_cv_prog_gnu_ld
50380
50381
50382
50383
50384                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
50385 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
50386 if test "${acl_cv_rpath+set}" = set; then
50387   echo $ECHO_N "(cached) $ECHO_C" >&6
50388 else
50389
50390     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
50391     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
50392     . ./conftest.sh
50393     rm -f ./conftest.sh
50394     acl_cv_rpath=done
50395
50396 fi
50397 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
50398 echo "${ECHO_T}$acl_cv_rpath" >&6; }
50399   wl="$acl_cv_wl"
50400   libext="$acl_cv_libext"
50401   shlibext="$acl_cv_shlibext"
50402   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
50403   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
50404   hardcode_direct="$acl_cv_hardcode_direct"
50405   hardcode_minus_L="$acl_cv_hardcode_minus_L"
50406     # Check whether --enable-rpath was given.
50407 if test "${enable_rpath+set}" = set; then
50408   enableval=$enable_rpath; :
50409 else
50410   enable_rpath=yes
50411 fi
50412
50413
50414
50415                   acl_libdirstem=lib
50416   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
50417   if test -n "$searchpath"; then
50418     acl_save_IFS="${IFS=        }"; IFS=":"
50419     for searchdir in $searchpath; do
50420       if test -d "$searchdir"; then
50421         case "$searchdir" in
50422           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
50423           *) searchdir=`cd "$searchdir" && pwd`
50424              case "$searchdir" in
50425                */lib64 ) acl_libdirstem=lib64 ;;
50426              esac ;;
50427         esac
50428       fi
50429     done
50430     IFS="$acl_save_IFS"
50431   fi
50432
50433
50434
50435
50436
50437
50438
50439
50440     use_additional=yes
50441
50442   acl_save_prefix="$prefix"
50443   prefix="$acl_final_prefix"
50444   acl_save_exec_prefix="$exec_prefix"
50445   exec_prefix="$acl_final_exec_prefix"
50446
50447     eval additional_includedir=\"$includedir\"
50448     eval additional_libdir=\"$libdir\"
50449
50450   exec_prefix="$acl_save_exec_prefix"
50451   prefix="$acl_save_prefix"
50452
50453
50454 # Check whether --with-libiconv-prefix was given.
50455 if test "${with_libiconv_prefix+set}" = set; then
50456   withval=$with_libiconv_prefix;
50457     if test "X$withval" = "Xno"; then
50458       use_additional=no
50459     else
50460       if test "X$withval" = "X"; then
50461
50462   acl_save_prefix="$prefix"
50463   prefix="$acl_final_prefix"
50464   acl_save_exec_prefix="$exec_prefix"
50465   exec_prefix="$acl_final_exec_prefix"
50466
50467           eval additional_includedir=\"$includedir\"
50468           eval additional_libdir=\"$libdir\"
50469
50470   exec_prefix="$acl_save_exec_prefix"
50471   prefix="$acl_save_prefix"
50472
50473       else
50474         additional_includedir="$withval/include"
50475         additional_libdir="$withval/$acl_libdirstem"
50476       fi
50477     fi
50478
50479 fi
50480
50481       LIBICONV=
50482   LTLIBICONV=
50483   INCICONV=
50484   rpathdirs=
50485   ltrpathdirs=
50486   names_already_handled=
50487   names_next_round='iconv '
50488   while test -n "$names_next_round"; do
50489     names_this_round="$names_next_round"
50490     names_next_round=
50491     for name in $names_this_round; do
50492       already_handled=
50493       for n in $names_already_handled; do
50494         if test "$n" = "$name"; then
50495           already_handled=yes
50496           break
50497         fi
50498       done
50499       if test -z "$already_handled"; then
50500         names_already_handled="$names_already_handled $name"
50501                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
50502         eval value=\"\$HAVE_LIB$uppername\"
50503         if test -n "$value"; then
50504           if test "$value" = yes; then
50505             eval value=\"\$LIB$uppername\"
50506             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
50507             eval value=\"\$LTLIB$uppername\"
50508             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
50509           else
50510                                     :
50511           fi
50512         else
50513                               found_dir=
50514           found_la=
50515           found_so=
50516           found_a=
50517           if test $use_additional = yes; then
50518             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
50519               found_dir="$additional_libdir"
50520               found_so="$additional_libdir/lib$name.$shlibext"
50521               if test -f "$additional_libdir/lib$name.la"; then
50522                 found_la="$additional_libdir/lib$name.la"
50523               fi
50524             else
50525               if test -f "$additional_libdir/lib$name.$libext"; then
50526                 found_dir="$additional_libdir"
50527                 found_a="$additional_libdir/lib$name.$libext"
50528                 if test -f "$additional_libdir/lib$name.la"; then
50529                   found_la="$additional_libdir/lib$name.la"
50530                 fi
50531               fi
50532             fi
50533           fi
50534           if test "X$found_dir" = "X"; then
50535             for x in $LDFLAGS $LTLIBICONV; do
50536
50537   acl_save_prefix="$prefix"
50538   prefix="$acl_final_prefix"
50539   acl_save_exec_prefix="$exec_prefix"
50540   exec_prefix="$acl_final_exec_prefix"
50541   eval x=\"$x\"
50542   exec_prefix="$acl_save_exec_prefix"
50543   prefix="$acl_save_prefix"
50544
50545               case "$x" in
50546                 -L*)
50547                   dir=`echo "X$x" | sed -e 's/^X-L//'`
50548                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
50549                     found_dir="$dir"
50550                     found_so="$dir/lib$name.$shlibext"
50551                     if test -f "$dir/lib$name.la"; then
50552                       found_la="$dir/lib$name.la"
50553                     fi
50554                   else
50555                     if test -f "$dir/lib$name.$libext"; then
50556                       found_dir="$dir"
50557                       found_a="$dir/lib$name.$libext"
50558                       if test -f "$dir/lib$name.la"; then
50559                         found_la="$dir/lib$name.la"
50560                       fi
50561                     fi
50562                   fi
50563                   ;;
50564               esac
50565               if test "X$found_dir" != "X"; then
50566                 break
50567               fi
50568             done
50569           fi
50570           if test "X$found_dir" != "X"; then
50571                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
50572             if test "X$found_so" != "X"; then
50573                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
50574                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
50575               else
50576                                                                                 haveit=
50577                 for x in $ltrpathdirs; do
50578                   if test "X$x" = "X$found_dir"; then
50579                     haveit=yes
50580                     break
50581                   fi
50582                 done
50583                 if test -z "$haveit"; then
50584                   ltrpathdirs="$ltrpathdirs $found_dir"
50585                 fi
50586                                 if test "$hardcode_direct" = yes; then
50587                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
50588                 else
50589                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
50590                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
50591                                                             haveit=
50592                     for x in $rpathdirs; do
50593                       if test "X$x" = "X$found_dir"; then
50594                         haveit=yes
50595                         break
50596                       fi
50597                     done
50598                     if test -z "$haveit"; then
50599                       rpathdirs="$rpathdirs $found_dir"
50600                     fi
50601                   else
50602                                                                                 haveit=
50603                     for x in $LDFLAGS $LIBICONV; do
50604
50605   acl_save_prefix="$prefix"
50606   prefix="$acl_final_prefix"
50607   acl_save_exec_prefix="$exec_prefix"
50608   exec_prefix="$acl_final_exec_prefix"
50609   eval x=\"$x\"
50610   exec_prefix="$acl_save_exec_prefix"
50611   prefix="$acl_save_prefix"
50612
50613                       if test "X$x" = "X-L$found_dir"; then
50614                         haveit=yes
50615                         break
50616                       fi
50617                     done
50618                     if test -z "$haveit"; then
50619                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
50620                     fi
50621                     if test "$hardcode_minus_L" != no; then
50622                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
50623                     else
50624                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
50625                     fi
50626                   fi
50627                 fi
50628               fi
50629             else
50630               if test "X$found_a" != "X"; then
50631                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
50632               else
50633                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
50634               fi
50635             fi
50636                         additional_includedir=
50637             case "$found_dir" in
50638               */$acl_libdirstem | */$acl_libdirstem/)
50639                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
50640                 additional_includedir="$basedir/include"
50641                 ;;
50642             esac
50643             if test "X$additional_includedir" != "X"; then
50644                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
50645                 haveit=
50646                 if test "X$additional_includedir" = "X/usr/local/include"; then
50647                   if test -n "$GCC"; then
50648                     case $host_os in
50649                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
50650                     esac
50651                   fi
50652                 fi
50653                 if test -z "$haveit"; then
50654                   for x in $CPPFLAGS $INCICONV; do
50655
50656   acl_save_prefix="$prefix"
50657   prefix="$acl_final_prefix"
50658   acl_save_exec_prefix="$exec_prefix"
50659   exec_prefix="$acl_final_exec_prefix"
50660   eval x=\"$x\"
50661   exec_prefix="$acl_save_exec_prefix"
50662   prefix="$acl_save_prefix"
50663
50664                     if test "X$x" = "X-I$additional_includedir"; then
50665                       haveit=yes
50666                       break
50667                     fi
50668                   done
50669                   if test -z "$haveit"; then
50670                     if test -d "$additional_includedir"; then
50671                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
50672                     fi
50673                   fi
50674                 fi
50675               fi
50676             fi
50677                         if test -n "$found_la"; then
50678                                                         save_libdir="$libdir"
50679               case "$found_la" in
50680                 */* | *\\*) . "$found_la" ;;
50681                 *) . "./$found_la" ;;
50682               esac
50683               libdir="$save_libdir"
50684                             for dep in $dependency_libs; do
50685                 case "$dep" in
50686                   -L*)
50687                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
50688                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
50689                       haveit=
50690                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
50691                         if test -n "$GCC"; then
50692                           case $host_os in
50693                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
50694                           esac
50695                         fi
50696                       fi
50697                       if test -z "$haveit"; then
50698                         haveit=
50699                         for x in $LDFLAGS $LIBICONV; do
50700
50701   acl_save_prefix="$prefix"
50702   prefix="$acl_final_prefix"
50703   acl_save_exec_prefix="$exec_prefix"
50704   exec_prefix="$acl_final_exec_prefix"
50705   eval x=\"$x\"
50706   exec_prefix="$acl_save_exec_prefix"
50707   prefix="$acl_save_prefix"
50708
50709                           if test "X$x" = "X-L$additional_libdir"; then
50710                             haveit=yes
50711                             break
50712                           fi
50713                         done
50714                         if test -z "$haveit"; then
50715                           if test -d "$additional_libdir"; then
50716                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
50717                           fi
50718                         fi
50719                         haveit=
50720                         for x in $LDFLAGS $LTLIBICONV; do
50721
50722   acl_save_prefix="$prefix"
50723   prefix="$acl_final_prefix"
50724   acl_save_exec_prefix="$exec_prefix"
50725   exec_prefix="$acl_final_exec_prefix"
50726   eval x=\"$x\"
50727   exec_prefix="$acl_save_exec_prefix"
50728   prefix="$acl_save_prefix"
50729
50730                           if test "X$x" = "X-L$additional_libdir"; then
50731                             haveit=yes
50732                             break
50733                           fi
50734                         done
50735                         if test -z "$haveit"; then
50736                           if test -d "$additional_libdir"; then
50737                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
50738                           fi
50739                         fi
50740                       fi
50741                     fi
50742                     ;;
50743                   -R*)
50744                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
50745                     if test "$enable_rpath" != no; then
50746                                                                   haveit=
50747                       for x in $rpathdirs; do
50748                         if test "X$x" = "X$dir"; then
50749                           haveit=yes
50750                           break
50751                         fi
50752                       done
50753                       if test -z "$haveit"; then
50754                         rpathdirs="$rpathdirs $dir"
50755                       fi
50756                                                                   haveit=
50757                       for x in $ltrpathdirs; do
50758                         if test "X$x" = "X$dir"; then
50759                           haveit=yes
50760                           break
50761                         fi
50762                       done
50763                       if test -z "$haveit"; then
50764                         ltrpathdirs="$ltrpathdirs $dir"
50765                       fi
50766                     fi
50767                     ;;
50768                   -l*)
50769                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
50770                     ;;
50771                   *.la)
50772                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
50773                     ;;
50774                   *)
50775                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
50776                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
50777                     ;;
50778                 esac
50779               done
50780             fi
50781           else
50782                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
50783             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
50784           fi
50785         fi
50786       fi
50787     done
50788   done
50789   if test "X$rpathdirs" != "X"; then
50790     if test -n "$hardcode_libdir_separator"; then
50791                         alldirs=
50792       for found_dir in $rpathdirs; do
50793         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
50794       done
50795             acl_save_libdir="$libdir"
50796       libdir="$alldirs"
50797       eval flag=\"$hardcode_libdir_flag_spec\"
50798       libdir="$acl_save_libdir"
50799       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
50800     else
50801             for found_dir in $rpathdirs; do
50802         acl_save_libdir="$libdir"
50803         libdir="$found_dir"
50804         eval flag=\"$hardcode_libdir_flag_spec\"
50805         libdir="$acl_save_libdir"
50806         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
50807       done
50808     fi
50809   fi
50810   if test "X$ltrpathdirs" != "X"; then
50811             for found_dir in $ltrpathdirs; do
50812       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
50813     done
50814   fi
50815
50816
50817
50818
50819     case " $LIBOBJS " in
50820   *" canonicalize.$ac_objext "* ) ;;
50821   *) LIBOBJS="$LIBOBJS canonicalize.$ac_objext"
50822  ;;
50823 esac
50824
50825
50826
50827 for ac_header in sys/param.h
50828 do
50829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
50831   { echo "$as_me:$LINENO: checking for $ac_header" >&5
50832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
50833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
50834   echo $ECHO_N "(cached) $ECHO_C" >&6
50835 fi
50836 ac_res=`eval echo '${'$as_ac_Header'}'`
50837                { echo "$as_me:$LINENO: result: $ac_res" >&5
50838 echo "${ECHO_T}$ac_res" >&6; }
50839 else
50840   # Is the header compilable?
50841 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
50842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
50843 cat >conftest.$ac_ext <<_ACEOF
50844 /* confdefs.h.  */
50845 _ACEOF
50846 cat confdefs.h >>conftest.$ac_ext
50847 cat >>conftest.$ac_ext <<_ACEOF
50848 /* end confdefs.h.  */
50849 $ac_includes_default
50850 #include <$ac_header>
50851 _ACEOF
50852 rm -f conftest.$ac_objext
50853 if { (ac_try="$ac_compile"
50854 case "(($ac_try" in
50855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50856   *) ac_try_echo=$ac_try;;
50857 esac
50858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50859   (eval "$ac_compile") 2>conftest.er1
50860   ac_status=$?
50861   grep -v '^ *+' conftest.er1 >conftest.err
50862   rm -f conftest.er1
50863   cat conftest.err >&5
50864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50865   (exit $ac_status); } &&
50866          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50867   { (case "(($ac_try" in
50868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50869   *) ac_try_echo=$ac_try;;
50870 esac
50871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50872   (eval "$ac_try") 2>&5
50873   ac_status=$?
50874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50875   (exit $ac_status); }; } &&
50876          { ac_try='test -s conftest.$ac_objext'
50877   { (case "(($ac_try" in
50878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50879   *) ac_try_echo=$ac_try;;
50880 esac
50881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50882   (eval "$ac_try") 2>&5
50883   ac_status=$?
50884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50885   (exit $ac_status); }; }; then
50886   ac_header_compiler=yes
50887 else
50888   echo "$as_me: failed program was:" >&5
50889 sed 's/^/| /' conftest.$ac_ext >&5
50890
50891         ac_header_compiler=no
50892 fi
50893
50894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50896 echo "${ECHO_T}$ac_header_compiler" >&6; }
50897
50898 # Is the header present?
50899 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
50900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
50901 cat >conftest.$ac_ext <<_ACEOF
50902 /* confdefs.h.  */
50903 _ACEOF
50904 cat confdefs.h >>conftest.$ac_ext
50905 cat >>conftest.$ac_ext <<_ACEOF
50906 /* end confdefs.h.  */
50907 #include <$ac_header>
50908 _ACEOF
50909 if { (ac_try="$ac_cpp conftest.$ac_ext"
50910 case "(($ac_try" in
50911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50912   *) ac_try_echo=$ac_try;;
50913 esac
50914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
50916   ac_status=$?
50917   grep -v '^ *+' conftest.er1 >conftest.err
50918   rm -f conftest.er1
50919   cat conftest.err >&5
50920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50921   (exit $ac_status); } >/dev/null; then
50922   if test -s conftest.err; then
50923     ac_cpp_err=$ac_c_preproc_warn_flag
50924     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
50925   else
50926     ac_cpp_err=
50927   fi
50928 else
50929   ac_cpp_err=yes
50930 fi
50931 if test -z "$ac_cpp_err"; then
50932   ac_header_preproc=yes
50933 else
50934   echo "$as_me: failed program was:" >&5
50935 sed 's/^/| /' conftest.$ac_ext >&5
50936
50937   ac_header_preproc=no
50938 fi
50939
50940 rm -f conftest.err conftest.$ac_ext
50941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50942 echo "${ECHO_T}$ac_header_preproc" >&6; }
50943
50944 # So?  What about this header?
50945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
50946   yes:no: )
50947     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50949     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
50950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
50951     ac_header_preproc=yes
50952     ;;
50953   no:yes:* )
50954     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50956     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
50957 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
50958     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
50959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
50960     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
50961 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
50962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50964     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
50965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
50966     ( cat <<\_ASBOX
50967 ## ------------------------------------ ##
50968 ## Report this to bug-coreutils@gnu.org ##
50969 ## ------------------------------------ ##
50970 _ASBOX
50971      ) | sed "s/^/$as_me: WARNING:     /" >&2
50972     ;;
50973 esac
50974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
50975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
50976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
50977   echo $ECHO_N "(cached) $ECHO_C" >&6
50978 else
50979   eval "$as_ac_Header=\$ac_header_preproc"
50980 fi
50981 ac_res=`eval echo '${'$as_ac_Header'}'`
50982                { echo "$as_me:$LINENO: result: $ac_res" >&5
50983 echo "${ECHO_T}$ac_res" >&6; }
50984
50985 fi
50986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50987   cat >>confdefs.h <<_ACEOF
50988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50989 _ACEOF
50990
50991 fi
50992
50993 done
50994
50995
50996
50997 for ac_func in resolvepath canonicalize_file_name
50998 do
50999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51000 { echo "$as_me:$LINENO: checking for $ac_func" >&5
51001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
51002 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51003   echo $ECHO_N "(cached) $ECHO_C" >&6
51004 else
51005   cat >conftest.$ac_ext <<_ACEOF
51006 /* confdefs.h.  */
51007 _ACEOF
51008 cat confdefs.h >>conftest.$ac_ext
51009 cat >>conftest.$ac_ext <<_ACEOF
51010 /* end confdefs.h.  */
51011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51013 #define $ac_func innocuous_$ac_func
51014
51015 /* System header to define __stub macros and hopefully few prototypes,
51016     which can conflict with char $ac_func (); below.
51017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51018     <limits.h> exists even on freestanding compilers.  */
51019
51020 #ifdef __STDC__
51021 # include <limits.h>
51022 #else
51023 # include <assert.h>
51024 #endif
51025
51026 #undef $ac_func
51027
51028 /* Override any GCC internal prototype to avoid an error.
51029    Use char because int might match the return type of a GCC
51030    builtin and then its argument prototype would still apply.  */
51031 #ifdef __cplusplus
51032 extern "C"
51033 #endif
51034 char $ac_func ();
51035 /* The GNU C library defines this for functions which it implements
51036     to always fail with ENOSYS.  Some functions are actually named
51037     something starting with __ and the normal name is an alias.  */
51038 #if defined __stub_$ac_func || defined __stub___$ac_func
51039 choke me
51040 #endif
51041
51042 int
51043 main ()
51044 {
51045 return $ac_func ();
51046   ;
51047   return 0;
51048 }
51049 _ACEOF
51050 rm -f conftest.$ac_objext conftest$ac_exeext
51051 if { (ac_try="$ac_link"
51052 case "(($ac_try" in
51053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51054   *) ac_try_echo=$ac_try;;
51055 esac
51056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51057   (eval "$ac_link") 2>conftest.er1
51058   ac_status=$?
51059   grep -v '^ *+' conftest.er1 >conftest.err
51060   rm -f conftest.er1
51061   cat conftest.err >&5
51062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51063   (exit $ac_status); } &&
51064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51065   { (case "(($ac_try" in
51066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51067   *) ac_try_echo=$ac_try;;
51068 esac
51069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51070   (eval "$ac_try") 2>&5
51071   ac_status=$?
51072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51073   (exit $ac_status); }; } &&
51074          { ac_try='test -s conftest$ac_exeext'
51075   { (case "(($ac_try" in
51076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51077   *) ac_try_echo=$ac_try;;
51078 esac
51079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51080   (eval "$ac_try") 2>&5
51081   ac_status=$?
51082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51083   (exit $ac_status); }; }; then
51084   eval "$as_ac_var=yes"
51085 else
51086   echo "$as_me: failed program was:" >&5
51087 sed 's/^/| /' conftest.$ac_ext >&5
51088
51089         eval "$as_ac_var=no"
51090 fi
51091
51092 rm -f core conftest.err conftest.$ac_objext \
51093       conftest$ac_exeext conftest.$ac_ext
51094 fi
51095 ac_res=`eval echo '${'$as_ac_var'}'`
51096                { echo "$as_me:$LINENO: result: $ac_res" >&5
51097 echo "${ECHO_T}$ac_res" >&6; }
51098 if test `eval echo '${'$as_ac_var'}'` = yes; then
51099   cat >>confdefs.h <<_ACEOF
51100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51101 _ACEOF
51102
51103 fi
51104 done
51105
51106
51107
51108
51109   { echo "$as_me:$LINENO: checking whether this system has an arbitrary file name length limit" >&5
51110 echo $ECHO_N "checking whether this system has an arbitrary file name length limit... $ECHO_C" >&6; }
51111 if test "${gl_have_arbitrary_file_name_length_limit+set}" = set; then
51112   echo $ECHO_N "(cached) $ECHO_C" >&6
51113 else
51114   cat >conftest.$ac_ext <<_ACEOF
51115 /* confdefs.h.  */
51116 _ACEOF
51117 cat confdefs.h >>conftest.$ac_ext
51118 cat >>conftest.$ac_ext <<_ACEOF
51119 /* end confdefs.h.  */
51120 #include <unistd.h>
51121 #include <limits.h>
51122 #if defined PATH_MAX || defined MAXPATHLEN
51123 have_arbitrary_file_name_length_limit
51124 #endif
51125 _ACEOF
51126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51127   $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then
51128   gl_have_arbitrary_file_name_length_limit=yes
51129 else
51130   gl_have_arbitrary_file_name_length_limit=no
51131 fi
51132 rm -f conftest*
51133
51134 fi
51135 { echo "$as_me:$LINENO: result: $gl_have_arbitrary_file_name_length_limit" >&5
51136 echo "${ECHO_T}$gl_have_arbitrary_file_name_length_limit" >&6; }
51137
51138   if test $gl_have_arbitrary_file_name_length_limit = yes; then
51139     case " $LIBOBJS " in
51140   *" chdir-long.$ac_objext "* ) ;;
51141   *) LIBOBJS="$LIBOBJS chdir-long.$ac_objext"
51142  ;;
51143 esac
51144
51145
51146
51147
51148
51149   # Define two additional variables used in the Makefile substitution.
51150
51151   if test "$ac_cv_header_stdbool_h" = yes; then
51152     STDBOOL_H=''
51153   else
51154     STDBOOL_H='stdbool.h'
51155   fi
51156
51157
51158   if test "$ac_cv_type__Bool" = yes; then
51159     HAVE__BOOL=1
51160   else
51161     HAVE__BOOL=0
51162   fi
51163
51164
51165
51166
51167
51168
51169
51170
51171 for ac_func in mempcpy
51172 do
51173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51174 { echo "$as_me:$LINENO: checking for $ac_func" >&5
51175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
51176 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51177   echo $ECHO_N "(cached) $ECHO_C" >&6
51178 else
51179   cat >conftest.$ac_ext <<_ACEOF
51180 /* confdefs.h.  */
51181 _ACEOF
51182 cat confdefs.h >>conftest.$ac_ext
51183 cat >>conftest.$ac_ext <<_ACEOF
51184 /* end confdefs.h.  */
51185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51186    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51187 #define $ac_func innocuous_$ac_func
51188
51189 /* System header to define __stub macros and hopefully few prototypes,
51190     which can conflict with char $ac_func (); below.
51191     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51192     <limits.h> exists even on freestanding compilers.  */
51193
51194 #ifdef __STDC__
51195 # include <limits.h>
51196 #else
51197 # include <assert.h>
51198 #endif
51199
51200 #undef $ac_func
51201
51202 /* Override any GCC internal prototype to avoid an error.
51203    Use char because int might match the return type of a GCC
51204    builtin and then its argument prototype would still apply.  */
51205 #ifdef __cplusplus
51206 extern "C"
51207 #endif
51208 char $ac_func ();
51209 /* The GNU C library defines this for functions which it implements
51210     to always fail with ENOSYS.  Some functions are actually named
51211     something starting with __ and the normal name is an alias.  */
51212 #if defined __stub_$ac_func || defined __stub___$ac_func
51213 choke me
51214 #endif
51215
51216 int
51217 main ()
51218 {
51219 return $ac_func ();
51220   ;
51221   return 0;
51222 }
51223 _ACEOF
51224 rm -f conftest.$ac_objext conftest$ac_exeext
51225 if { (ac_try="$ac_link"
51226 case "(($ac_try" in
51227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51228   *) ac_try_echo=$ac_try;;
51229 esac
51230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51231   (eval "$ac_link") 2>conftest.er1
51232   ac_status=$?
51233   grep -v '^ *+' conftest.er1 >conftest.err
51234   rm -f conftest.er1
51235   cat conftest.err >&5
51236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51237   (exit $ac_status); } &&
51238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51239   { (case "(($ac_try" in
51240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51241   *) ac_try_echo=$ac_try;;
51242 esac
51243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51244   (eval "$ac_try") 2>&5
51245   ac_status=$?
51246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51247   (exit $ac_status); }; } &&
51248          { ac_try='test -s conftest$ac_exeext'
51249   { (case "(($ac_try" in
51250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51251   *) ac_try_echo=$ac_try;;
51252 esac
51253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51254   (eval "$ac_try") 2>&5
51255   ac_status=$?
51256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51257   (exit $ac_status); }; }; then
51258   eval "$as_ac_var=yes"
51259 else
51260   echo "$as_me: failed program was:" >&5
51261 sed 's/^/| /' conftest.$ac_ext >&5
51262
51263         eval "$as_ac_var=no"
51264 fi
51265
51266 rm -f core conftest.err conftest.$ac_objext \
51267       conftest$ac_exeext conftest.$ac_ext
51268 fi
51269 ac_res=`eval echo '${'$as_ac_var'}'`
51270                { echo "$as_me:$LINENO: result: $ac_res" >&5
51271 echo "${ECHO_T}$ac_res" >&6; }
51272 if test `eval echo '${'$as_ac_var'}'` = yes; then
51273   cat >>confdefs.h <<_ACEOF
51274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51275 _ACEOF
51276
51277 else
51278   case " $LIBOBJS " in
51279   *" $ac_func.$ac_objext "* ) ;;
51280   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
51281  ;;
51282 esac
51283
51284 fi
51285 done
51286
51287
51288   if test $ac_cv_func_mempcpy = no; then
51289
51290   :
51291
51292   fi
51293
51294
51295
51296
51297
51298
51299
51300   # No system provides these functions; compile them unconditionally.
51301   case " $LIBOBJS " in
51302   *" mkdirat.$ac_objext "* ) ;;
51303   *) LIBOBJS="$LIBOBJS mkdirat.$ac_objext"
51304  ;;
51305 esac
51306
51307   case " $LIBOBJS " in
51308   *" fchmodat.$ac_objext "* ) ;;
51309   *) LIBOBJS="$LIBOBJS fchmodat.$ac_objext"
51310  ;;
51311 esac
51312
51313
51314   case " $LIBOBJS " in
51315   *" openat-die.$ac_objext "* ) ;;
51316   *) LIBOBJS="$LIBOBJS openat-die.$ac_objext"
51317  ;;
51318 esac
51319
51320
51321
51322
51323
51324
51325
51326
51327
51328
51329
51330
51331
51332
51333
51334 for ac_func in openat
51335 do
51336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51337 { echo "$as_me:$LINENO: checking for $ac_func" >&5
51338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
51339 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51340   echo $ECHO_N "(cached) $ECHO_C" >&6
51341 else
51342   cat >conftest.$ac_ext <<_ACEOF
51343 /* confdefs.h.  */
51344 _ACEOF
51345 cat confdefs.h >>conftest.$ac_ext
51346 cat >>conftest.$ac_ext <<_ACEOF
51347 /* end confdefs.h.  */
51348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51349    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51350 #define $ac_func innocuous_$ac_func
51351
51352 /* System header to define __stub macros and hopefully few prototypes,
51353     which can conflict with char $ac_func (); below.
51354     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51355     <limits.h> exists even on freestanding compilers.  */
51356
51357 #ifdef __STDC__
51358 # include <limits.h>
51359 #else
51360 # include <assert.h>
51361 #endif
51362
51363 #undef $ac_func
51364
51365 /* Override any GCC internal prototype to avoid an error.
51366    Use char because int might match the return type of a GCC
51367    builtin and then its argument prototype would still apply.  */
51368 #ifdef __cplusplus
51369 extern "C"
51370 #endif
51371 char $ac_func ();
51372 /* The GNU C library defines this for functions which it implements
51373     to always fail with ENOSYS.  Some functions are actually named
51374     something starting with __ and the normal name is an alias.  */
51375 #if defined __stub_$ac_func || defined __stub___$ac_func
51376 choke me
51377 #endif
51378
51379 int
51380 main ()
51381 {
51382 return $ac_func ();
51383   ;
51384   return 0;
51385 }
51386 _ACEOF
51387 rm -f conftest.$ac_objext conftest$ac_exeext
51388 if { (ac_try="$ac_link"
51389 case "(($ac_try" in
51390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51391   *) ac_try_echo=$ac_try;;
51392 esac
51393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51394   (eval "$ac_link") 2>conftest.er1
51395   ac_status=$?
51396   grep -v '^ *+' conftest.er1 >conftest.err
51397   rm -f conftest.er1
51398   cat conftest.err >&5
51399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51400   (exit $ac_status); } &&
51401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51402   { (case "(($ac_try" in
51403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51404   *) ac_try_echo=$ac_try;;
51405 esac
51406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51407   (eval "$ac_try") 2>&5
51408   ac_status=$?
51409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51410   (exit $ac_status); }; } &&
51411          { ac_try='test -s conftest$ac_exeext'
51412   { (case "(($ac_try" in
51413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51414   *) ac_try_echo=$ac_try;;
51415 esac
51416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51417   (eval "$ac_try") 2>&5
51418   ac_status=$?
51419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51420   (exit $ac_status); }; }; then
51421   eval "$as_ac_var=yes"
51422 else
51423   echo "$as_me: failed program was:" >&5
51424 sed 's/^/| /' conftest.$ac_ext >&5
51425
51426         eval "$as_ac_var=no"
51427 fi
51428
51429 rm -f core conftest.err conftest.$ac_objext \
51430       conftest$ac_exeext conftest.$ac_ext
51431 fi
51432 ac_res=`eval echo '${'$as_ac_var'}'`
51433                { echo "$as_me:$LINENO: result: $ac_res" >&5
51434 echo "${ECHO_T}$ac_res" >&6; }
51435 if test `eval echo '${'$as_ac_var'}'` = yes; then
51436   cat >>confdefs.h <<_ACEOF
51437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51438 _ACEOF
51439
51440 else
51441   case " $LIBOBJS " in
51442   *" $ac_func.$ac_objext "* ) ;;
51443   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
51444  ;;
51445 esac
51446
51447 fi
51448 done
51449
51450
51451   case $ac_cv_func_openat in
51452   yes) ;;
51453   *)
51454
51455 cat >>confdefs.h <<\_ACEOF
51456 #define __OPENAT_PREFIX rpl_
51457 _ACEOF
51458
51459
51460
51461 ;;
51462   esac
51463
51464
51465
51466
51467
51468
51469
51470
51471
51472
51473
51474
51475 for ac_func in memrchr
51476 do
51477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51478 { echo "$as_me:$LINENO: checking for $ac_func" >&5
51479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
51480 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51481   echo $ECHO_N "(cached) $ECHO_C" >&6
51482 else
51483   cat >conftest.$ac_ext <<_ACEOF
51484 /* confdefs.h.  */
51485 _ACEOF
51486 cat confdefs.h >>conftest.$ac_ext
51487 cat >>conftest.$ac_ext <<_ACEOF
51488 /* end confdefs.h.  */
51489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51490    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51491 #define $ac_func innocuous_$ac_func
51492
51493 /* System header to define __stub macros and hopefully few prototypes,
51494     which can conflict with char $ac_func (); below.
51495     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51496     <limits.h> exists even on freestanding compilers.  */
51497
51498 #ifdef __STDC__
51499 # include <limits.h>
51500 #else
51501 # include <assert.h>
51502 #endif
51503
51504 #undef $ac_func
51505
51506 /* Override any GCC internal prototype to avoid an error.
51507    Use char because int might match the return type of a GCC
51508    builtin and then its argument prototype would still apply.  */
51509 #ifdef __cplusplus
51510 extern "C"
51511 #endif
51512 char $ac_func ();
51513 /* The GNU C library defines this for functions which it implements
51514     to always fail with ENOSYS.  Some functions are actually named
51515     something starting with __ and the normal name is an alias.  */
51516 #if defined __stub_$ac_func || defined __stub___$ac_func
51517 choke me
51518 #endif
51519
51520 int
51521 main ()
51522 {
51523 return $ac_func ();
51524   ;
51525   return 0;
51526 }
51527 _ACEOF
51528 rm -f conftest.$ac_objext conftest$ac_exeext
51529 if { (ac_try="$ac_link"
51530 case "(($ac_try" in
51531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51532   *) ac_try_echo=$ac_try;;
51533 esac
51534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51535   (eval "$ac_link") 2>conftest.er1
51536   ac_status=$?
51537   grep -v '^ *+' conftest.er1 >conftest.err
51538   rm -f conftest.er1
51539   cat conftest.err >&5
51540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51541   (exit $ac_status); } &&
51542          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51543   { (case "(($ac_try" in
51544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51545   *) ac_try_echo=$ac_try;;
51546 esac
51547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51548   (eval "$ac_try") 2>&5
51549   ac_status=$?
51550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51551   (exit $ac_status); }; } &&
51552          { ac_try='test -s conftest$ac_exeext'
51553   { (case "(($ac_try" in
51554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51555   *) ac_try_echo=$ac_try;;
51556 esac
51557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51558   (eval "$ac_try") 2>&5
51559   ac_status=$?
51560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51561   (exit $ac_status); }; }; then
51562   eval "$as_ac_var=yes"
51563 else
51564   echo "$as_me: failed program was:" >&5
51565 sed 's/^/| /' conftest.$ac_ext >&5
51566
51567         eval "$as_ac_var=no"
51568 fi
51569
51570 rm -f core conftest.err conftest.$ac_objext \
51571       conftest$ac_exeext conftest.$ac_ext
51572 fi
51573 ac_res=`eval echo '${'$as_ac_var'}'`
51574                { echo "$as_me:$LINENO: result: $ac_res" >&5
51575 echo "${ECHO_T}$ac_res" >&6; }
51576 if test `eval echo '${'$as_ac_var'}'` = yes; then
51577   cat >>confdefs.h <<_ACEOF
51578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51579 _ACEOF
51580
51581 else
51582   case " $LIBOBJS " in
51583   *" $ac_func.$ac_objext "* ) ;;
51584   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
51585  ;;
51586 esac
51587
51588 fi
51589 done
51590
51591
51592   if test $ac_cv_func_memrchr = no; then
51593     :
51594   fi
51595
51596
51597   fi
51598
51599
51600
51601   case " $LIBOBJS " in
51602   *" xfts.$ac_objext "* ) ;;
51603   *) LIBOBJS="$LIBOBJS xfts.$ac_objext"
51604  ;;
51605 esac
51606
51607
51608     :
51609
51610
51611
51612   case " $LIBOBJS " in
51613   *" root-dev-ino.$ac_objext "* ) ;;
51614   *) LIBOBJS="$LIBOBJS root-dev-ino.$ac_objext"
51615  ;;
51616 esac
51617
51618
51619
51620   :
51621
51622
51623
51624   case " $LIBOBJS " in
51625   *" version-etc-fsf.$ac_objext "* ) ;;
51626   *) LIBOBJS="$LIBOBJS version-etc-fsf.$ac_objext"
51627  ;;
51628 esac
51629
51630   case " $LIBOBJS " in
51631   *" version-etc.$ac_objext "* ) ;;
51632   *) LIBOBJS="$LIBOBJS version-etc.$ac_objext"
51633  ;;
51634 esac
51635
51636
51637     :
51638
51639
51640
51641   case " $LIBOBJS " in
51642   *" diacrit.$ac_objext "* ) ;;
51643   *) LIBOBJS="$LIBOBJS diacrit.$ac_objext"
51644  ;;
51645 esac
51646
51647
51648     :
51649
51650    { echo "$as_me:$LINENO: checking for socklen_t" >&5
51651 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
51652 if test "${ac_cv_type_socklen_t+set}" = set; then
51653   echo $ECHO_N "(cached) $ECHO_C" >&6
51654 else
51655   cat >conftest.$ac_ext <<_ACEOF
51656 /* confdefs.h.  */
51657 _ACEOF
51658 cat confdefs.h >>conftest.$ac_ext
51659 cat >>conftest.$ac_ext <<_ACEOF
51660 /* end confdefs.h.  */
51661 #include <sys/types.h>
51662       #if HAVE_SYS_SOCKET_H
51663       # include <sys/socket.h>
51664       #elif HAVE_WS2TCPIP_H
51665       # include <ws2tcpip.h>
51666       #endif
51667
51668 typedef socklen_t ac__type_new_;
51669 int
51670 main ()
51671 {
51672 if ((ac__type_new_ *) 0)
51673   return 0;
51674 if (sizeof (ac__type_new_))
51675   return 0;
51676   ;
51677   return 0;
51678 }
51679 _ACEOF
51680 rm -f conftest.$ac_objext
51681 if { (ac_try="$ac_compile"
51682 case "(($ac_try" in
51683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51684   *) ac_try_echo=$ac_try;;
51685 esac
51686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51687   (eval "$ac_compile") 2>conftest.er1
51688   ac_status=$?
51689   grep -v '^ *+' conftest.er1 >conftest.err
51690   rm -f conftest.er1
51691   cat conftest.err >&5
51692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51693   (exit $ac_status); } &&
51694          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51695   { (case "(($ac_try" in
51696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51697   *) ac_try_echo=$ac_try;;
51698 esac
51699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51700   (eval "$ac_try") 2>&5
51701   ac_status=$?
51702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51703   (exit $ac_status); }; } &&
51704          { ac_try='test -s conftest.$ac_objext'
51705   { (case "(($ac_try" in
51706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51707   *) ac_try_echo=$ac_try;;
51708 esac
51709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51710   (eval "$ac_try") 2>&5
51711   ac_status=$?
51712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51713   (exit $ac_status); }; }; then
51714   ac_cv_type_socklen_t=yes
51715 else
51716   echo "$as_me: failed program was:" >&5
51717 sed 's/^/| /' conftest.$ac_ext >&5
51718
51719         ac_cv_type_socklen_t=no
51720 fi
51721
51722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51723 fi
51724 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
51725 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
51726 if test $ac_cv_type_socklen_t = yes; then
51727   :
51728 else
51729   { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
51730 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
51731       if test "${gl_cv_gl_cv_socklen_t_equiv+set}" = set; then
51732   echo $ECHO_N "(cached) $ECHO_C" >&6
51733 else
51734   # Systems have either "struct sockaddr *" or
51735          # "void *" as the second argument to getpeername
51736          gl_cv_socklen_t_equiv=
51737          for arg2 in "struct sockaddr" void; do
51738            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
51739              cat >conftest.$ac_ext <<_ACEOF
51740 /* confdefs.h.  */
51741 _ACEOF
51742 cat confdefs.h >>conftest.$ac_ext
51743 cat >>conftest.$ac_ext <<_ACEOF
51744 /* end confdefs.h.  */
51745 #include <sys/types.h>
51746                 #include <sys/socket.h>
51747
51748                 int getpeername (int, $arg2 *, $t *);
51749 int
51750 main ()
51751 {
51752 $t len;
51753                 getpeername (0, 0, &len);
51754   ;
51755   return 0;
51756 }
51757 _ACEOF
51758 rm -f conftest.$ac_objext
51759 if { (ac_try="$ac_compile"
51760 case "(($ac_try" in
51761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51762   *) ac_try_echo=$ac_try;;
51763 esac
51764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51765   (eval "$ac_compile") 2>conftest.er1
51766   ac_status=$?
51767   grep -v '^ *+' conftest.er1 >conftest.err
51768   rm -f conftest.er1
51769   cat conftest.err >&5
51770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51771   (exit $ac_status); } &&
51772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51773   { (case "(($ac_try" in
51774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51775   *) ac_try_echo=$ac_try;;
51776 esac
51777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51778   (eval "$ac_try") 2>&5
51779   ac_status=$?
51780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51781   (exit $ac_status); }; } &&
51782          { ac_try='test -s conftest.$ac_objext'
51783   { (case "(($ac_try" in
51784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51785   *) ac_try_echo=$ac_try;;
51786 esac
51787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51788   (eval "$ac_try") 2>&5
51789   ac_status=$?
51790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51791   (exit $ac_status); }; }; then
51792   gl_cv_socklen_t_equiv="$t"
51793 else
51794   echo "$as_me: failed program was:" >&5
51795 sed 's/^/| /' conftest.$ac_ext >&5
51796
51797
51798 fi
51799
51800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51801              test "$gl_cv_socklen_t_equiv" != "" && break
51802            done
51803            test "$gl_cv_socklen_t_equiv" != "" && break
51804          done
51805
51806 fi
51807
51808       if test "$gl_cv_socklen_t_equiv" = ""; then
51809         { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
51810 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
51811    { (exit 1); exit 1; }; }
51812       fi
51813       { echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
51814 echo "${ECHO_T}$gl_cv_socklen_t_equiv" >&6; }
51815
51816 cat >>confdefs.h <<_ACEOF
51817 #define socklen_t $gl_cv_socklen_t_equiv
51818 _ACEOF
51819
51820 fi
51821
51822
51823
51824   case " $LIBOBJS " in
51825   *" fprintftime.$ac_objext "* ) ;;
51826   *) LIBOBJS="$LIBOBJS fprintftime.$ac_objext"
51827  ;;
51828 esac
51829
51830
51831
51832
51833   case " $LIBOBJS " in
51834   *" chdir-safer.$ac_objext "* ) ;;
51835   *) LIBOBJS="$LIBOBJS chdir-safer.$ac_objext"
51836  ;;
51837 esac
51838
51839
51840
51841
51842
51843   GNU_PACKAGE="GNU $PACKAGE"
51844
51845 cat >>confdefs.h <<_ACEOF
51846 #define GNU_PACKAGE "$GNU_PACKAGE"
51847 _ACEOF
51848
51849
51850
51851
51852 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
51853
51854
51855
51856
51857
51858
51859
51860
51861
51862
51863
51864
51865
51866
51867
51868
51869
51870   { echo "$as_me:$LINENO: checking for struct stat.st_author" >&5
51871 echo $ECHO_N "checking for struct stat.st_author... $ECHO_C" >&6; }
51872 if test "${ac_cv_member_struct_stat_st_author+set}" = set; then
51873   echo $ECHO_N "(cached) $ECHO_C" >&6
51874 else
51875   cat >conftest.$ac_ext <<_ACEOF
51876 /* confdefs.h.  */
51877 _ACEOF
51878 cat confdefs.h >>conftest.$ac_ext
51879 cat >>conftest.$ac_ext <<_ACEOF
51880 /* end confdefs.h.  */
51881 $ac_includes_default
51882 #include <sys/stat.h>
51883
51884
51885 int
51886 main ()
51887 {
51888 static struct stat ac_aggr;
51889 if (ac_aggr.st_author)
51890 return 0;
51891   ;
51892   return 0;
51893 }
51894 _ACEOF
51895 rm -f conftest.$ac_objext
51896 if { (ac_try="$ac_compile"
51897 case "(($ac_try" in
51898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51899   *) ac_try_echo=$ac_try;;
51900 esac
51901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51902   (eval "$ac_compile") 2>conftest.er1
51903   ac_status=$?
51904   grep -v '^ *+' conftest.er1 >conftest.err
51905   rm -f conftest.er1
51906   cat conftest.err >&5
51907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51908   (exit $ac_status); } &&
51909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51910   { (case "(($ac_try" in
51911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51912   *) ac_try_echo=$ac_try;;
51913 esac
51914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51915   (eval "$ac_try") 2>&5
51916   ac_status=$?
51917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51918   (exit $ac_status); }; } &&
51919          { ac_try='test -s conftest.$ac_objext'
51920   { (case "(($ac_try" in
51921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51922   *) ac_try_echo=$ac_try;;
51923 esac
51924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51925   (eval "$ac_try") 2>&5
51926   ac_status=$?
51927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51928   (exit $ac_status); }; }; then
51929   ac_cv_member_struct_stat_st_author=yes
51930 else
51931   echo "$as_me: failed program was:" >&5
51932 sed 's/^/| /' conftest.$ac_ext >&5
51933
51934         cat >conftest.$ac_ext <<_ACEOF
51935 /* confdefs.h.  */
51936 _ACEOF
51937 cat confdefs.h >>conftest.$ac_ext
51938 cat >>conftest.$ac_ext <<_ACEOF
51939 /* end confdefs.h.  */
51940 $ac_includes_default
51941 #include <sys/stat.h>
51942
51943
51944 int
51945 main ()
51946 {
51947 static struct stat ac_aggr;
51948 if (sizeof ac_aggr.st_author)
51949 return 0;
51950   ;
51951   return 0;
51952 }
51953 _ACEOF
51954 rm -f conftest.$ac_objext
51955 if { (ac_try="$ac_compile"
51956 case "(($ac_try" in
51957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51958   *) ac_try_echo=$ac_try;;
51959 esac
51960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51961   (eval "$ac_compile") 2>conftest.er1
51962   ac_status=$?
51963   grep -v '^ *+' conftest.er1 >conftest.err
51964   rm -f conftest.er1
51965   cat conftest.err >&5
51966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51967   (exit $ac_status); } &&
51968          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51969   { (case "(($ac_try" in
51970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51971   *) ac_try_echo=$ac_try;;
51972 esac
51973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51974   (eval "$ac_try") 2>&5
51975   ac_status=$?
51976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51977   (exit $ac_status); }; } &&
51978          { ac_try='test -s conftest.$ac_objext'
51979   { (case "(($ac_try" in
51980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51981   *) ac_try_echo=$ac_try;;
51982 esac
51983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51984   (eval "$ac_try") 2>&5
51985   ac_status=$?
51986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51987   (exit $ac_status); }; }; then
51988   ac_cv_member_struct_stat_st_author=yes
51989 else
51990   echo "$as_me: failed program was:" >&5
51991 sed 's/^/| /' conftest.$ac_ext >&5
51992
51993         ac_cv_member_struct_stat_st_author=no
51994 fi
51995
51996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51997 fi
51998
51999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52000 fi
52001 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_author" >&5
52002 echo "${ECHO_T}$ac_cv_member_struct_stat_st_author" >&6; }
52003 if test $ac_cv_member_struct_stat_st_author = yes; then
52004
52005 cat >>confdefs.h <<_ACEOF
52006 #define HAVE_STRUCT_STAT_ST_AUTHOR 1
52007 _ACEOF
52008
52009
52010 fi
52011 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
52012 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
52013 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
52014   echo $ECHO_N "(cached) $ECHO_C" >&6
52015 else
52016   cat >conftest.$ac_ext <<_ACEOF
52017 /* confdefs.h.  */
52018 _ACEOF
52019 cat confdefs.h >>conftest.$ac_ext
52020 cat >>conftest.$ac_ext <<_ACEOF
52021 /* end confdefs.h.  */
52022 $ac_includes_default
52023 #include <sys/stat.h>
52024
52025
52026 int
52027 main ()
52028 {
52029 static struct stat ac_aggr;
52030 if (ac_aggr.st_blksize)
52031 return 0;
52032   ;
52033   return 0;
52034 }
52035 _ACEOF
52036 rm -f conftest.$ac_objext
52037 if { (ac_try="$ac_compile"
52038 case "(($ac_try" in
52039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52040   *) ac_try_echo=$ac_try;;
52041 esac
52042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52043   (eval "$ac_compile") 2>conftest.er1
52044   ac_status=$?
52045   grep -v '^ *+' conftest.er1 >conftest.err
52046   rm -f conftest.er1
52047   cat conftest.err >&5
52048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52049   (exit $ac_status); } &&
52050          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52051   { (case "(($ac_try" in
52052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52053   *) ac_try_echo=$ac_try;;
52054 esac
52055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52056   (eval "$ac_try") 2>&5
52057   ac_status=$?
52058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52059   (exit $ac_status); }; } &&
52060          { ac_try='test -s conftest.$ac_objext'
52061   { (case "(($ac_try" in
52062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52063   *) ac_try_echo=$ac_try;;
52064 esac
52065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52066   (eval "$ac_try") 2>&5
52067   ac_status=$?
52068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52069   (exit $ac_status); }; }; then
52070   ac_cv_member_struct_stat_st_blksize=yes
52071 else
52072   echo "$as_me: failed program was:" >&5
52073 sed 's/^/| /' conftest.$ac_ext >&5
52074
52075         cat >conftest.$ac_ext <<_ACEOF
52076 /* confdefs.h.  */
52077 _ACEOF
52078 cat confdefs.h >>conftest.$ac_ext
52079 cat >>conftest.$ac_ext <<_ACEOF
52080 /* end confdefs.h.  */
52081 $ac_includes_default
52082 #include <sys/stat.h>
52083
52084
52085 int
52086 main ()
52087 {
52088 static struct stat ac_aggr;
52089 if (sizeof ac_aggr.st_blksize)
52090 return 0;
52091   ;
52092   return 0;
52093 }
52094 _ACEOF
52095 rm -f conftest.$ac_objext
52096 if { (ac_try="$ac_compile"
52097 case "(($ac_try" in
52098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52099   *) ac_try_echo=$ac_try;;
52100 esac
52101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52102   (eval "$ac_compile") 2>conftest.er1
52103   ac_status=$?
52104   grep -v '^ *+' conftest.er1 >conftest.err
52105   rm -f conftest.er1
52106   cat conftest.err >&5
52107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52108   (exit $ac_status); } &&
52109          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52110   { (case "(($ac_try" in
52111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52112   *) ac_try_echo=$ac_try;;
52113 esac
52114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52115   (eval "$ac_try") 2>&5
52116   ac_status=$?
52117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52118   (exit $ac_status); }; } &&
52119          { ac_try='test -s conftest.$ac_objext'
52120   { (case "(($ac_try" in
52121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52122   *) ac_try_echo=$ac_try;;
52123 esac
52124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52125   (eval "$ac_try") 2>&5
52126   ac_status=$?
52127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52128   (exit $ac_status); }; }; then
52129   ac_cv_member_struct_stat_st_blksize=yes
52130 else
52131   echo "$as_me: failed program was:" >&5
52132 sed 's/^/| /' conftest.$ac_ext >&5
52133
52134         ac_cv_member_struct_stat_st_blksize=no
52135 fi
52136
52137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52138 fi
52139
52140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52141 fi
52142 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
52143 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
52144 if test $ac_cv_member_struct_stat_st_blksize = yes; then
52145
52146 cat >>confdefs.h <<_ACEOF
52147 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
52148 _ACEOF
52149
52150
52151 fi
52152
52153
52154
52155
52156
52157
52158
52159
52160
52161
52162
52163
52164   { echo "$as_me:$LINENO: checking for ino_t" >&5
52165 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
52166 if test "${ac_cv_type_ino_t+set}" = set; then
52167   echo $ECHO_N "(cached) $ECHO_C" >&6
52168 else
52169   cat >conftest.$ac_ext <<_ACEOF
52170 /* confdefs.h.  */
52171 _ACEOF
52172 cat confdefs.h >>conftest.$ac_ext
52173 cat >>conftest.$ac_ext <<_ACEOF
52174 /* end confdefs.h.  */
52175 $ac_includes_default
52176 typedef ino_t ac__type_new_;
52177 int
52178 main ()
52179 {
52180 if ((ac__type_new_ *) 0)
52181   return 0;
52182 if (sizeof (ac__type_new_))
52183   return 0;
52184   ;
52185   return 0;
52186 }
52187 _ACEOF
52188 rm -f conftest.$ac_objext
52189 if { (ac_try="$ac_compile"
52190 case "(($ac_try" in
52191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52192   *) ac_try_echo=$ac_try;;
52193 esac
52194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52195   (eval "$ac_compile") 2>conftest.er1
52196   ac_status=$?
52197   grep -v '^ *+' conftest.er1 >conftest.err
52198   rm -f conftest.er1
52199   cat conftest.err >&5
52200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52201   (exit $ac_status); } &&
52202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52203   { (case "(($ac_try" in
52204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52205   *) ac_try_echo=$ac_try;;
52206 esac
52207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52208   (eval "$ac_try") 2>&5
52209   ac_status=$?
52210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52211   (exit $ac_status); }; } &&
52212          { ac_try='test -s conftest.$ac_objext'
52213   { (case "(($ac_try" in
52214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52215   *) ac_try_echo=$ac_try;;
52216 esac
52217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52218   (eval "$ac_try") 2>&5
52219   ac_status=$?
52220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52221   (exit $ac_status); }; }; then
52222   ac_cv_type_ino_t=yes
52223 else
52224   echo "$as_me: failed program was:" >&5
52225 sed 's/^/| /' conftest.$ac_ext >&5
52226
52227         ac_cv_type_ino_t=no
52228 fi
52229
52230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52231 fi
52232 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
52233 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
52234 if test $ac_cv_type_ino_t = yes; then
52235   :
52236 else
52237
52238 cat >>confdefs.h <<_ACEOF
52239 #define ino_t unsigned long int
52240 _ACEOF
52241
52242 fi
52243
52244
52245
52246   { echo "$as_me:$LINENO: checking for ssize_t" >&5
52247 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
52248 if test "${gt_cv_ssize_t+set}" = set; then
52249   echo $ECHO_N "(cached) $ECHO_C" >&6
52250 else
52251   cat >conftest.$ac_ext <<_ACEOF
52252 /* confdefs.h.  */
52253 _ACEOF
52254 cat confdefs.h >>conftest.$ac_ext
52255 cat >>conftest.$ac_ext <<_ACEOF
52256 /* end confdefs.h.  */
52257 #include <sys/types.h>
52258 int
52259 main ()
52260 {
52261 int x = sizeof (ssize_t *) + sizeof (ssize_t);
52262         return !x;
52263   ;
52264   return 0;
52265 }
52266 _ACEOF
52267 rm -f conftest.$ac_objext
52268 if { (ac_try="$ac_compile"
52269 case "(($ac_try" in
52270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52271   *) ac_try_echo=$ac_try;;
52272 esac
52273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52274   (eval "$ac_compile") 2>conftest.er1
52275   ac_status=$?
52276   grep -v '^ *+' conftest.er1 >conftest.err
52277   rm -f conftest.er1
52278   cat conftest.err >&5
52279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52280   (exit $ac_status); } &&
52281          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52282   { (case "(($ac_try" in
52283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52284   *) ac_try_echo=$ac_try;;
52285 esac
52286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52287   (eval "$ac_try") 2>&5
52288   ac_status=$?
52289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52290   (exit $ac_status); }; } &&
52291          { ac_try='test -s conftest.$ac_objext'
52292   { (case "(($ac_try" in
52293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52294   *) ac_try_echo=$ac_try;;
52295 esac
52296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52297   (eval "$ac_try") 2>&5
52298   ac_status=$?
52299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52300   (exit $ac_status); }; }; then
52301   gt_cv_ssize_t=yes
52302 else
52303   echo "$as_me: failed program was:" >&5
52304 sed 's/^/| /' conftest.$ac_ext >&5
52305
52306         gt_cv_ssize_t=no
52307 fi
52308
52309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52310 fi
52311 { echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
52312 echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
52313   if test $gt_cv_ssize_t = no; then
52314
52315 cat >>confdefs.h <<\_ACEOF
52316 #define ssize_t int
52317 _ACEOF
52318
52319   fi
52320
52321
52322       { echo "$as_me:$LINENO: checking for major_t" >&5
52323 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
52324 if test "${ac_cv_type_major_t+set}" = set; then
52325   echo $ECHO_N "(cached) $ECHO_C" >&6
52326 else
52327   cat >conftest.$ac_ext <<_ACEOF
52328 /* confdefs.h.  */
52329 _ACEOF
52330 cat confdefs.h >>conftest.$ac_ext
52331 cat >>conftest.$ac_ext <<_ACEOF
52332 /* end confdefs.h.  */
52333 $ac_includes_default
52334 typedef major_t ac__type_new_;
52335 int
52336 main ()
52337 {
52338 if ((ac__type_new_ *) 0)
52339   return 0;
52340 if (sizeof (ac__type_new_))
52341   return 0;
52342   ;
52343   return 0;
52344 }
52345 _ACEOF
52346 rm -f conftest.$ac_objext
52347 if { (ac_try="$ac_compile"
52348 case "(($ac_try" in
52349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52350   *) ac_try_echo=$ac_try;;
52351 esac
52352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52353   (eval "$ac_compile") 2>conftest.er1
52354   ac_status=$?
52355   grep -v '^ *+' conftest.er1 >conftest.err
52356   rm -f conftest.er1
52357   cat conftest.err >&5
52358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52359   (exit $ac_status); } &&
52360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52361   { (case "(($ac_try" in
52362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52363   *) ac_try_echo=$ac_try;;
52364 esac
52365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52366   (eval "$ac_try") 2>&5
52367   ac_status=$?
52368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52369   (exit $ac_status); }; } &&
52370          { ac_try='test -s conftest.$ac_objext'
52371   { (case "(($ac_try" in
52372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52373   *) ac_try_echo=$ac_try;;
52374 esac
52375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52376   (eval "$ac_try") 2>&5
52377   ac_status=$?
52378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52379   (exit $ac_status); }; }; then
52380   ac_cv_type_major_t=yes
52381 else
52382   echo "$as_me: failed program was:" >&5
52383 sed 's/^/| /' conftest.$ac_ext >&5
52384
52385         ac_cv_type_major_t=no
52386 fi
52387
52388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52389 fi
52390 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
52391 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
52392 if test $ac_cv_type_major_t = yes; then
52393   :
52394 else
52395
52396 cat >>confdefs.h <<_ACEOF
52397 #define major_t unsigned int
52398 _ACEOF
52399
52400 fi
52401
52402   { echo "$as_me:$LINENO: checking for minor_t" >&5
52403 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
52404 if test "${ac_cv_type_minor_t+set}" = set; then
52405   echo $ECHO_N "(cached) $ECHO_C" >&6
52406 else
52407   cat >conftest.$ac_ext <<_ACEOF
52408 /* confdefs.h.  */
52409 _ACEOF
52410 cat confdefs.h >>conftest.$ac_ext
52411 cat >>conftest.$ac_ext <<_ACEOF
52412 /* end confdefs.h.  */
52413 $ac_includes_default
52414 typedef minor_t ac__type_new_;
52415 int
52416 main ()
52417 {
52418 if ((ac__type_new_ *) 0)
52419   return 0;
52420 if (sizeof (ac__type_new_))
52421   return 0;
52422   ;
52423   return 0;
52424 }
52425 _ACEOF
52426 rm -f conftest.$ac_objext
52427 if { (ac_try="$ac_compile"
52428 case "(($ac_try" in
52429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52430   *) ac_try_echo=$ac_try;;
52431 esac
52432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52433   (eval "$ac_compile") 2>conftest.er1
52434   ac_status=$?
52435   grep -v '^ *+' conftest.er1 >conftest.err
52436   rm -f conftest.er1
52437   cat conftest.err >&5
52438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52439   (exit $ac_status); } &&
52440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52441   { (case "(($ac_try" in
52442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52443   *) ac_try_echo=$ac_try;;
52444 esac
52445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52446   (eval "$ac_try") 2>&5
52447   ac_status=$?
52448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52449   (exit $ac_status); }; } &&
52450          { ac_try='test -s conftest.$ac_objext'
52451   { (case "(($ac_try" in
52452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52453   *) ac_try_echo=$ac_try;;
52454 esac
52455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52456   (eval "$ac_try") 2>&5
52457   ac_status=$?
52458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52459   (exit $ac_status); }; }; then
52460   ac_cv_type_minor_t=yes
52461 else
52462   echo "$as_me: failed program was:" >&5
52463 sed 's/^/| /' conftest.$ac_ext >&5
52464
52465         ac_cv_type_minor_t=no
52466 fi
52467
52468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52469 fi
52470 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
52471 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
52472 if test $ac_cv_type_minor_t = yes; then
52473   :
52474 else
52475
52476 cat >>confdefs.h <<_ACEOF
52477 #define minor_t unsigned int
52478 _ACEOF
52479
52480 fi
52481
52482
52483
52484
52485
52486
52487
52488
52489
52490
52491
52492
52493
52494
52495
52496
52497
52498
52499
52500
52501
52502
52503
52504
52505
52506
52507
52508
52509
52510
52511   # This is for od and stat, and any other program that
52512   # uses the PRI.MAX macros from inttypes.h.
52513
52514
52515
52516
52517
52518
52519
52520
52521
52522   ac_have_func=no # yes means we've found a way to get the load average.
52523
52524 # Make sure getloadavg.c is where it belongs, at configure-time.
52525 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
52526   { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
52527 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
52528    { (exit 1); exit 1; }; }
52529
52530 ac_save_LIBS=$LIBS
52531
52532 # Check for getloadavg, but be sure not to touch the cache variable.
52533 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
52534 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
52535 if test "${ac_cv_func_getloadavg+set}" = set; then
52536   echo $ECHO_N "(cached) $ECHO_C" >&6
52537 else
52538   cat >conftest.$ac_ext <<_ACEOF
52539 /* confdefs.h.  */
52540 _ACEOF
52541 cat confdefs.h >>conftest.$ac_ext
52542 cat >>conftest.$ac_ext <<_ACEOF
52543 /* end confdefs.h.  */
52544 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
52545    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52546 #define getloadavg innocuous_getloadavg
52547
52548 /* System header to define __stub macros and hopefully few prototypes,
52549     which can conflict with char getloadavg (); below.
52550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52551     <limits.h> exists even on freestanding compilers.  */
52552
52553 #ifdef __STDC__
52554 # include <limits.h>
52555 #else
52556 # include <assert.h>
52557 #endif
52558
52559 #undef getloadavg
52560
52561 /* Override any GCC internal prototype to avoid an error.
52562    Use char because int might match the return type of a GCC
52563    builtin and then its argument prototype would still apply.  */
52564 #ifdef __cplusplus
52565 extern "C"
52566 #endif
52567 char getloadavg ();
52568 /* The GNU C library defines this for functions which it implements
52569     to always fail with ENOSYS.  Some functions are actually named
52570     something starting with __ and the normal name is an alias.  */
52571 #if defined __stub_getloadavg || defined __stub___getloadavg
52572 choke me
52573 #endif
52574
52575 int
52576 main ()
52577 {
52578 return getloadavg ();
52579   ;
52580   return 0;
52581 }
52582 _ACEOF
52583 rm -f conftest.$ac_objext conftest$ac_exeext
52584 if { (ac_try="$ac_link"
52585 case "(($ac_try" in
52586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52587   *) ac_try_echo=$ac_try;;
52588 esac
52589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52590   (eval "$ac_link") 2>conftest.er1
52591   ac_status=$?
52592   grep -v '^ *+' conftest.er1 >conftest.err
52593   rm -f conftest.er1
52594   cat conftest.err >&5
52595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52596   (exit $ac_status); } &&
52597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52598   { (case "(($ac_try" in
52599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52600   *) ac_try_echo=$ac_try;;
52601 esac
52602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52603   (eval "$ac_try") 2>&5
52604   ac_status=$?
52605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52606   (exit $ac_status); }; } &&
52607          { ac_try='test -s conftest$ac_exeext'
52608   { (case "(($ac_try" in
52609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52610   *) ac_try_echo=$ac_try;;
52611 esac
52612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52613   (eval "$ac_try") 2>&5
52614   ac_status=$?
52615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52616   (exit $ac_status); }; }; then
52617   ac_cv_func_getloadavg=yes
52618 else
52619   echo "$as_me: failed program was:" >&5
52620 sed 's/^/| /' conftest.$ac_ext >&5
52621
52622         ac_cv_func_getloadavg=no
52623 fi
52624
52625 rm -f core conftest.err conftest.$ac_objext \
52626       conftest$ac_exeext conftest.$ac_ext
52627 fi
52628 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
52629 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
52630 if test $ac_cv_func_getloadavg = yes; then
52631   exit 0
52632 else
52633   exit 1
52634 fi
52635 ) && ac_have_func=yes
52636
52637 # On HPUX9, an unprivileged user can get load averages through this function.
52638
52639 for ac_func in pstat_getdynamic
52640 do
52641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
52643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
52644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
52645   echo $ECHO_N "(cached) $ECHO_C" >&6
52646 else
52647   cat >conftest.$ac_ext <<_ACEOF
52648 /* confdefs.h.  */
52649 _ACEOF
52650 cat confdefs.h >>conftest.$ac_ext
52651 cat >>conftest.$ac_ext <<_ACEOF
52652 /* end confdefs.h.  */
52653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52655 #define $ac_func innocuous_$ac_func
52656
52657 /* System header to define __stub macros and hopefully few prototypes,
52658     which can conflict with char $ac_func (); below.
52659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52660     <limits.h> exists even on freestanding compilers.  */
52661
52662 #ifdef __STDC__
52663 # include <limits.h>
52664 #else
52665 # include <assert.h>
52666 #endif
52667
52668 #undef $ac_func
52669
52670 /* Override any GCC internal prototype to avoid an error.
52671    Use char because int might match the return type of a GCC
52672    builtin and then its argument prototype would still apply.  */
52673 #ifdef __cplusplus
52674 extern "C"
52675 #endif
52676 char $ac_func ();
52677 /* The GNU C library defines this for functions which it implements
52678     to always fail with ENOSYS.  Some functions are actually named
52679     something starting with __ and the normal name is an alias.  */
52680 #if defined __stub_$ac_func || defined __stub___$ac_func
52681 choke me
52682 #endif
52683
52684 int
52685 main ()
52686 {
52687 return $ac_func ();
52688   ;
52689   return 0;
52690 }
52691 _ACEOF
52692 rm -f conftest.$ac_objext conftest$ac_exeext
52693 if { (ac_try="$ac_link"
52694 case "(($ac_try" in
52695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52696   *) ac_try_echo=$ac_try;;
52697 esac
52698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52699   (eval "$ac_link") 2>conftest.er1
52700   ac_status=$?
52701   grep -v '^ *+' conftest.er1 >conftest.err
52702   rm -f conftest.er1
52703   cat conftest.err >&5
52704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52705   (exit $ac_status); } &&
52706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52707   { (case "(($ac_try" in
52708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52709   *) ac_try_echo=$ac_try;;
52710 esac
52711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52712   (eval "$ac_try") 2>&5
52713   ac_status=$?
52714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52715   (exit $ac_status); }; } &&
52716          { ac_try='test -s conftest$ac_exeext'
52717   { (case "(($ac_try" in
52718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52719   *) ac_try_echo=$ac_try;;
52720 esac
52721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52722   (eval "$ac_try") 2>&5
52723   ac_status=$?
52724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52725   (exit $ac_status); }; }; then
52726   eval "$as_ac_var=yes"
52727 else
52728   echo "$as_me: failed program was:" >&5
52729 sed 's/^/| /' conftest.$ac_ext >&5
52730
52731         eval "$as_ac_var=no"
52732 fi
52733
52734 rm -f core conftest.err conftest.$ac_objext \
52735       conftest$ac_exeext conftest.$ac_ext
52736 fi
52737 ac_res=`eval echo '${'$as_ac_var'}'`
52738                { echo "$as_me:$LINENO: result: $ac_res" >&5
52739 echo "${ECHO_T}$ac_res" >&6; }
52740 if test `eval echo '${'$as_ac_var'}'` = yes; then
52741   cat >>confdefs.h <<_ACEOF
52742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52743 _ACEOF
52744
52745 fi
52746 done
52747
52748
52749 # Solaris has libkstat which does not require root.
52750
52751 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
52752 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
52753 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
52754   echo $ECHO_N "(cached) $ECHO_C" >&6
52755 else
52756   ac_check_lib_save_LIBS=$LIBS
52757 LIBS="-lkstat  $LIBS"
52758 cat >conftest.$ac_ext <<_ACEOF
52759 /* confdefs.h.  */
52760 _ACEOF
52761 cat confdefs.h >>conftest.$ac_ext
52762 cat >>conftest.$ac_ext <<_ACEOF
52763 /* end confdefs.h.  */
52764
52765 /* Override any GCC internal prototype to avoid an error.
52766    Use char because int might match the return type of a GCC
52767    builtin and then its argument prototype would still apply.  */
52768 #ifdef __cplusplus
52769 extern "C"
52770 #endif
52771 char kstat_open ();
52772 int
52773 main ()
52774 {
52775 return kstat_open ();
52776   ;
52777   return 0;
52778 }
52779 _ACEOF
52780 rm -f conftest.$ac_objext conftest$ac_exeext
52781 if { (ac_try="$ac_link"
52782 case "(($ac_try" in
52783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52784   *) ac_try_echo=$ac_try;;
52785 esac
52786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52787   (eval "$ac_link") 2>conftest.er1
52788   ac_status=$?
52789   grep -v '^ *+' conftest.er1 >conftest.err
52790   rm -f conftest.er1
52791   cat conftest.err >&5
52792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52793   (exit $ac_status); } &&
52794          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52795   { (case "(($ac_try" in
52796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52797   *) ac_try_echo=$ac_try;;
52798 esac
52799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52800   (eval "$ac_try") 2>&5
52801   ac_status=$?
52802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52803   (exit $ac_status); }; } &&
52804          { ac_try='test -s conftest$ac_exeext'
52805   { (case "(($ac_try" in
52806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52807   *) ac_try_echo=$ac_try;;
52808 esac
52809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52810   (eval "$ac_try") 2>&5
52811   ac_status=$?
52812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52813   (exit $ac_status); }; }; then
52814   ac_cv_lib_kstat_kstat_open=yes
52815 else
52816   echo "$as_me: failed program was:" >&5
52817 sed 's/^/| /' conftest.$ac_ext >&5
52818
52819         ac_cv_lib_kstat_kstat_open=no
52820 fi
52821
52822 rm -f core conftest.err conftest.$ac_objext \
52823       conftest$ac_exeext conftest.$ac_ext
52824 LIBS=$ac_check_lib_save_LIBS
52825 fi
52826 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
52827 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
52828 if test $ac_cv_lib_kstat_kstat_open = yes; then
52829   cat >>confdefs.h <<_ACEOF
52830 #define HAVE_LIBKSTAT 1
52831 _ACEOF
52832
52833   LIBS="-lkstat $LIBS"
52834
52835 fi
52836
52837 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
52838
52839 # Some systems with -lutil have (and need) -lkvm as well, some do not.
52840 # On Solaris, -lkvm requires nlist from -lelf, so check that first
52841 # to get the right answer into the cache.
52842 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
52843 if test $ac_have_func = no; then
52844   { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
52845 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
52846 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
52847   echo $ECHO_N "(cached) $ECHO_C" >&6
52848 else
52849   ac_check_lib_save_LIBS=$LIBS
52850 LIBS="-lelf  $LIBS"
52851 cat >conftest.$ac_ext <<_ACEOF
52852 /* confdefs.h.  */
52853 _ACEOF
52854 cat confdefs.h >>conftest.$ac_ext
52855 cat >>conftest.$ac_ext <<_ACEOF
52856 /* end confdefs.h.  */
52857
52858 /* Override any GCC internal prototype to avoid an error.
52859    Use char because int might match the return type of a GCC
52860    builtin and then its argument prototype would still apply.  */
52861 #ifdef __cplusplus
52862 extern "C"
52863 #endif
52864 char elf_begin ();
52865 int
52866 main ()
52867 {
52868 return elf_begin ();
52869   ;
52870   return 0;
52871 }
52872 _ACEOF
52873 rm -f conftest.$ac_objext conftest$ac_exeext
52874 if { (ac_try="$ac_link"
52875 case "(($ac_try" in
52876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52877   *) ac_try_echo=$ac_try;;
52878 esac
52879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52880   (eval "$ac_link") 2>conftest.er1
52881   ac_status=$?
52882   grep -v '^ *+' conftest.er1 >conftest.err
52883   rm -f conftest.er1
52884   cat conftest.err >&5
52885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52886   (exit $ac_status); } &&
52887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52888   { (case "(($ac_try" in
52889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52890   *) ac_try_echo=$ac_try;;
52891 esac
52892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52893   (eval "$ac_try") 2>&5
52894   ac_status=$?
52895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52896   (exit $ac_status); }; } &&
52897          { ac_try='test -s conftest$ac_exeext'
52898   { (case "(($ac_try" in
52899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52900   *) ac_try_echo=$ac_try;;
52901 esac
52902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52903   (eval "$ac_try") 2>&5
52904   ac_status=$?
52905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52906   (exit $ac_status); }; }; then
52907   ac_cv_lib_elf_elf_begin=yes
52908 else
52909   echo "$as_me: failed program was:" >&5
52910 sed 's/^/| /' conftest.$ac_ext >&5
52911
52912         ac_cv_lib_elf_elf_begin=no
52913 fi
52914
52915 rm -f core conftest.err conftest.$ac_objext \
52916       conftest$ac_exeext conftest.$ac_ext
52917 LIBS=$ac_check_lib_save_LIBS
52918 fi
52919 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
52920 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
52921 if test $ac_cv_lib_elf_elf_begin = yes; then
52922   LIBS="-lelf $LIBS"
52923 fi
52924
52925 fi
52926 if test $ac_have_func = no; then
52927   { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
52928 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
52929 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
52930   echo $ECHO_N "(cached) $ECHO_C" >&6
52931 else
52932   ac_check_lib_save_LIBS=$LIBS
52933 LIBS="-lkvm  $LIBS"
52934 cat >conftest.$ac_ext <<_ACEOF
52935 /* confdefs.h.  */
52936 _ACEOF
52937 cat confdefs.h >>conftest.$ac_ext
52938 cat >>conftest.$ac_ext <<_ACEOF
52939 /* end confdefs.h.  */
52940
52941 /* Override any GCC internal prototype to avoid an error.
52942    Use char because int might match the return type of a GCC
52943    builtin and then its argument prototype would still apply.  */
52944 #ifdef __cplusplus
52945 extern "C"
52946 #endif
52947 char kvm_open ();
52948 int
52949 main ()
52950 {
52951 return kvm_open ();
52952   ;
52953   return 0;
52954 }
52955 _ACEOF
52956 rm -f conftest.$ac_objext conftest$ac_exeext
52957 if { (ac_try="$ac_link"
52958 case "(($ac_try" in
52959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52960   *) ac_try_echo=$ac_try;;
52961 esac
52962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52963   (eval "$ac_link") 2>conftest.er1
52964   ac_status=$?
52965   grep -v '^ *+' conftest.er1 >conftest.err
52966   rm -f conftest.er1
52967   cat conftest.err >&5
52968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52969   (exit $ac_status); } &&
52970          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52971   { (case "(($ac_try" in
52972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52973   *) ac_try_echo=$ac_try;;
52974 esac
52975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52976   (eval "$ac_try") 2>&5
52977   ac_status=$?
52978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52979   (exit $ac_status); }; } &&
52980          { ac_try='test -s conftest$ac_exeext'
52981   { (case "(($ac_try" in
52982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52983   *) ac_try_echo=$ac_try;;
52984 esac
52985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52986   (eval "$ac_try") 2>&5
52987   ac_status=$?
52988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52989   (exit $ac_status); }; }; then
52990   ac_cv_lib_kvm_kvm_open=yes
52991 else
52992   echo "$as_me: failed program was:" >&5
52993 sed 's/^/| /' conftest.$ac_ext >&5
52994
52995         ac_cv_lib_kvm_kvm_open=no
52996 fi
52997
52998 rm -f core conftest.err conftest.$ac_objext \
52999       conftest$ac_exeext conftest.$ac_ext
53000 LIBS=$ac_check_lib_save_LIBS
53001 fi
53002 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
53003 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
53004 if test $ac_cv_lib_kvm_kvm_open = yes; then
53005   LIBS="-lkvm $LIBS"
53006 fi
53007
53008   # Check for the 4.4BSD definition of getloadavg.
53009   { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
53010 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
53011 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
53012   echo $ECHO_N "(cached) $ECHO_C" >&6
53013 else
53014   ac_check_lib_save_LIBS=$LIBS
53015 LIBS="-lutil  $LIBS"
53016 cat >conftest.$ac_ext <<_ACEOF
53017 /* confdefs.h.  */
53018 _ACEOF
53019 cat confdefs.h >>conftest.$ac_ext
53020 cat >>conftest.$ac_ext <<_ACEOF
53021 /* end confdefs.h.  */
53022
53023 /* Override any GCC internal prototype to avoid an error.
53024    Use char because int might match the return type of a GCC
53025    builtin and then its argument prototype would still apply.  */
53026 #ifdef __cplusplus
53027 extern "C"
53028 #endif
53029 char getloadavg ();
53030 int
53031 main ()
53032 {
53033 return getloadavg ();
53034   ;
53035   return 0;
53036 }
53037 _ACEOF
53038 rm -f conftest.$ac_objext conftest$ac_exeext
53039 if { (ac_try="$ac_link"
53040 case "(($ac_try" in
53041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53042   *) ac_try_echo=$ac_try;;
53043 esac
53044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53045   (eval "$ac_link") 2>conftest.er1
53046   ac_status=$?
53047   grep -v '^ *+' conftest.er1 >conftest.err
53048   rm -f conftest.er1
53049   cat conftest.err >&5
53050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53051   (exit $ac_status); } &&
53052          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53053   { (case "(($ac_try" in
53054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53055   *) ac_try_echo=$ac_try;;
53056 esac
53057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53058   (eval "$ac_try") 2>&5
53059   ac_status=$?
53060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53061   (exit $ac_status); }; } &&
53062          { ac_try='test -s conftest$ac_exeext'
53063   { (case "(($ac_try" in
53064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53065   *) ac_try_echo=$ac_try;;
53066 esac
53067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53068   (eval "$ac_try") 2>&5
53069   ac_status=$?
53070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53071   (exit $ac_status); }; }; then
53072   ac_cv_lib_util_getloadavg=yes
53073 else
53074   echo "$as_me: failed program was:" >&5
53075 sed 's/^/| /' conftest.$ac_ext >&5
53076
53077         ac_cv_lib_util_getloadavg=no
53078 fi
53079
53080 rm -f core conftest.err conftest.$ac_objext \
53081       conftest$ac_exeext conftest.$ac_ext
53082 LIBS=$ac_check_lib_save_LIBS
53083 fi
53084 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
53085 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
53086 if test $ac_cv_lib_util_getloadavg = yes; then
53087   LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
53088 fi
53089
53090 fi
53091
53092 if test $ac_have_func = no; then
53093   # There is a commonly available library for RS/6000 AIX.
53094   # Since it is not a standard part of AIX, it might be installed locally.
53095   ac_getloadavg_LIBS=$LIBS
53096   LIBS="-L/usr/local/lib $LIBS"
53097   { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
53098 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
53099 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
53100   echo $ECHO_N "(cached) $ECHO_C" >&6
53101 else
53102   ac_check_lib_save_LIBS=$LIBS
53103 LIBS="-lgetloadavg  $LIBS"
53104 cat >conftest.$ac_ext <<_ACEOF
53105 /* confdefs.h.  */
53106 _ACEOF
53107 cat confdefs.h >>conftest.$ac_ext
53108 cat >>conftest.$ac_ext <<_ACEOF
53109 /* end confdefs.h.  */
53110
53111 /* Override any GCC internal prototype to avoid an error.
53112    Use char because int might match the return type of a GCC
53113    builtin and then its argument prototype would still apply.  */
53114 #ifdef __cplusplus
53115 extern "C"
53116 #endif
53117 char getloadavg ();
53118 int
53119 main ()
53120 {
53121 return getloadavg ();
53122   ;
53123   return 0;
53124 }
53125 _ACEOF
53126 rm -f conftest.$ac_objext conftest$ac_exeext
53127 if { (ac_try="$ac_link"
53128 case "(($ac_try" in
53129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53130   *) ac_try_echo=$ac_try;;
53131 esac
53132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53133   (eval "$ac_link") 2>conftest.er1
53134   ac_status=$?
53135   grep -v '^ *+' conftest.er1 >conftest.err
53136   rm -f conftest.er1
53137   cat conftest.err >&5
53138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53139   (exit $ac_status); } &&
53140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53141   { (case "(($ac_try" in
53142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53143   *) ac_try_echo=$ac_try;;
53144 esac
53145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53146   (eval "$ac_try") 2>&5
53147   ac_status=$?
53148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53149   (exit $ac_status); }; } &&
53150          { ac_try='test -s conftest$ac_exeext'
53151   { (case "(($ac_try" in
53152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53153   *) ac_try_echo=$ac_try;;
53154 esac
53155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53156   (eval "$ac_try") 2>&5
53157   ac_status=$?
53158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53159   (exit $ac_status); }; }; then
53160   ac_cv_lib_getloadavg_getloadavg=yes
53161 else
53162   echo "$as_me: failed program was:" >&5
53163 sed 's/^/| /' conftest.$ac_ext >&5
53164
53165         ac_cv_lib_getloadavg_getloadavg=no
53166 fi
53167
53168 rm -f core conftest.err conftest.$ac_objext \
53169       conftest$ac_exeext conftest.$ac_ext
53170 LIBS=$ac_check_lib_save_LIBS
53171 fi
53172 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
53173 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
53174 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
53175   LIBS="-lgetloadavg $LIBS"
53176 else
53177   LIBS=$ac_getloadavg_LIBS
53178 fi
53179
53180 fi
53181
53182 # Make sure it is really in the library, if we think we found it,
53183 # otherwise set up the replacement function.
53184
53185 for ac_func in getloadavg
53186 do
53187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53188 { echo "$as_me:$LINENO: checking for $ac_func" >&5
53189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
53190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
53191   echo $ECHO_N "(cached) $ECHO_C" >&6
53192 else
53193   cat >conftest.$ac_ext <<_ACEOF
53194 /* confdefs.h.  */
53195 _ACEOF
53196 cat confdefs.h >>conftest.$ac_ext
53197 cat >>conftest.$ac_ext <<_ACEOF
53198 /* end confdefs.h.  */
53199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53200    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53201 #define $ac_func innocuous_$ac_func
53202
53203 /* System header to define __stub macros and hopefully few prototypes,
53204     which can conflict with char $ac_func (); below.
53205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53206     <limits.h> exists even on freestanding compilers.  */
53207
53208 #ifdef __STDC__
53209 # include <limits.h>
53210 #else
53211 # include <assert.h>
53212 #endif
53213
53214 #undef $ac_func
53215
53216 /* Override any GCC internal prototype to avoid an error.
53217    Use char because int might match the return type of a GCC
53218    builtin and then its argument prototype would still apply.  */
53219 #ifdef __cplusplus
53220 extern "C"
53221 #endif
53222 char $ac_func ();
53223 /* The GNU C library defines this for functions which it implements
53224     to always fail with ENOSYS.  Some functions are actually named
53225     something starting with __ and the normal name is an alias.  */
53226 #if defined __stub_$ac_func || defined __stub___$ac_func
53227 choke me
53228 #endif
53229
53230 int
53231 main ()
53232 {
53233 return $ac_func ();
53234   ;
53235   return 0;
53236 }
53237 _ACEOF
53238 rm -f conftest.$ac_objext conftest$ac_exeext
53239 if { (ac_try="$ac_link"
53240 case "(($ac_try" in
53241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53242   *) ac_try_echo=$ac_try;;
53243 esac
53244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53245   (eval "$ac_link") 2>conftest.er1
53246   ac_status=$?
53247   grep -v '^ *+' conftest.er1 >conftest.err
53248   rm -f conftest.er1
53249   cat conftest.err >&5
53250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53251   (exit $ac_status); } &&
53252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53253   { (case "(($ac_try" in
53254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53255   *) ac_try_echo=$ac_try;;
53256 esac
53257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53258   (eval "$ac_try") 2>&5
53259   ac_status=$?
53260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53261   (exit $ac_status); }; } &&
53262          { ac_try='test -s conftest$ac_exeext'
53263   { (case "(($ac_try" in
53264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53265   *) ac_try_echo=$ac_try;;
53266 esac
53267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53268   (eval "$ac_try") 2>&5
53269   ac_status=$?
53270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53271   (exit $ac_status); }; }; then
53272   eval "$as_ac_var=yes"
53273 else
53274   echo "$as_me: failed program was:" >&5
53275 sed 's/^/| /' conftest.$ac_ext >&5
53276
53277         eval "$as_ac_var=no"
53278 fi
53279
53280 rm -f core conftest.err conftest.$ac_objext \
53281       conftest$ac_exeext conftest.$ac_ext
53282 fi
53283 ac_res=`eval echo '${'$as_ac_var'}'`
53284                { echo "$as_me:$LINENO: result: $ac_res" >&5
53285 echo "${ECHO_T}$ac_res" >&6; }
53286 if test `eval echo '${'$as_ac_var'}'` = yes; then
53287   cat >>confdefs.h <<_ACEOF
53288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53289 _ACEOF
53290
53291 else
53292   case " $LIBOBJS " in
53293   *" getloadavg.$ac_objext "* ) ;;
53294   *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
53295  ;;
53296 esac
53297
53298
53299 cat >>confdefs.h <<\_ACEOF
53300 #define C_GETLOADAVG 1
53301 _ACEOF
53302
53303 # Figure out what our getloadavg.c needs.
53304 ac_have_func=no
53305 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
53306   { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
53307 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
53308 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
53309   echo $ECHO_N "(cached) $ECHO_C" >&6
53310 fi
53311 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
53312 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
53313 else
53314   # Is the header compilable?
53315 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
53316 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
53317 cat >conftest.$ac_ext <<_ACEOF
53318 /* confdefs.h.  */
53319 _ACEOF
53320 cat confdefs.h >>conftest.$ac_ext
53321 cat >>conftest.$ac_ext <<_ACEOF
53322 /* end confdefs.h.  */
53323 $ac_includes_default
53324 #include <sys/dg_sys_info.h>
53325 _ACEOF
53326 rm -f conftest.$ac_objext
53327 if { (ac_try="$ac_compile"
53328 case "(($ac_try" in
53329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53330   *) ac_try_echo=$ac_try;;
53331 esac
53332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53333   (eval "$ac_compile") 2>conftest.er1
53334   ac_status=$?
53335   grep -v '^ *+' conftest.er1 >conftest.err
53336   rm -f conftest.er1
53337   cat conftest.err >&5
53338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53339   (exit $ac_status); } &&
53340          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53341   { (case "(($ac_try" in
53342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53343   *) ac_try_echo=$ac_try;;
53344 esac
53345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53346   (eval "$ac_try") 2>&5
53347   ac_status=$?
53348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53349   (exit $ac_status); }; } &&
53350          { ac_try='test -s conftest.$ac_objext'
53351   { (case "(($ac_try" in
53352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53353   *) ac_try_echo=$ac_try;;
53354 esac
53355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53356   (eval "$ac_try") 2>&5
53357   ac_status=$?
53358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53359   (exit $ac_status); }; }; then
53360   ac_header_compiler=yes
53361 else
53362   echo "$as_me: failed program was:" >&5
53363 sed 's/^/| /' conftest.$ac_ext >&5
53364
53365         ac_header_compiler=no
53366 fi
53367
53368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53370 echo "${ECHO_T}$ac_header_compiler" >&6; }
53371
53372 # Is the header present?
53373 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
53374 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
53375 cat >conftest.$ac_ext <<_ACEOF
53376 /* confdefs.h.  */
53377 _ACEOF
53378 cat confdefs.h >>conftest.$ac_ext
53379 cat >>conftest.$ac_ext <<_ACEOF
53380 /* end confdefs.h.  */
53381 #include <sys/dg_sys_info.h>
53382 _ACEOF
53383 if { (ac_try="$ac_cpp conftest.$ac_ext"
53384 case "(($ac_try" in
53385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53386   *) ac_try_echo=$ac_try;;
53387 esac
53388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53389   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
53390   ac_status=$?
53391   grep -v '^ *+' conftest.er1 >conftest.err
53392   rm -f conftest.er1
53393   cat conftest.err >&5
53394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53395   (exit $ac_status); } >/dev/null; then
53396   if test -s conftest.err; then
53397     ac_cpp_err=$ac_c_preproc_warn_flag
53398     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53399   else
53400     ac_cpp_err=
53401   fi
53402 else
53403   ac_cpp_err=yes
53404 fi
53405 if test -z "$ac_cpp_err"; then
53406   ac_header_preproc=yes
53407 else
53408   echo "$as_me: failed program was:" >&5
53409 sed 's/^/| /' conftest.$ac_ext >&5
53410
53411   ac_header_preproc=no
53412 fi
53413
53414 rm -f conftest.err conftest.$ac_ext
53415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53416 echo "${ECHO_T}$ac_header_preproc" >&6; }
53417
53418 # So?  What about this header?
53419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53420   yes:no: )
53421     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
53422 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
53423     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
53424 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
53425     ac_header_preproc=yes
53426     ;;
53427   no:yes:* )
53428     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
53429 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
53430     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&5
53431 echo "$as_me: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&2;}
53432     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
53433 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
53434     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&5
53435 echo "$as_me: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&2;}
53436     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
53437 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
53438     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
53439 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
53440     ( cat <<\_ASBOX
53441 ## ------------------------------------ ##
53442 ## Report this to bug-coreutils@gnu.org ##
53443 ## ------------------------------------ ##
53444 _ASBOX
53445      ) | sed "s/^/$as_me: WARNING:     /" >&2
53446     ;;
53447 esac
53448 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
53449 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
53450 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
53451   echo $ECHO_N "(cached) $ECHO_C" >&6
53452 else
53453   ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
53454 fi
53455 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
53456 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
53457
53458 fi
53459 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
53460   ac_have_func=yes
53461
53462 cat >>confdefs.h <<\_ACEOF
53463 #define DGUX 1
53464 _ACEOF
53465
53466
53467 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
53468 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
53469 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
53470   echo $ECHO_N "(cached) $ECHO_C" >&6
53471 else
53472   ac_check_lib_save_LIBS=$LIBS
53473 LIBS="-ldgc  $LIBS"
53474 cat >conftest.$ac_ext <<_ACEOF
53475 /* confdefs.h.  */
53476 _ACEOF
53477 cat confdefs.h >>conftest.$ac_ext
53478 cat >>conftest.$ac_ext <<_ACEOF
53479 /* end confdefs.h.  */
53480
53481 /* Override any GCC internal prototype to avoid an error.
53482    Use char because int might match the return type of a GCC
53483    builtin and then its argument prototype would still apply.  */
53484 #ifdef __cplusplus
53485 extern "C"
53486 #endif
53487 char dg_sys_info ();
53488 int
53489 main ()
53490 {
53491 return dg_sys_info ();
53492   ;
53493   return 0;
53494 }
53495 _ACEOF
53496 rm -f conftest.$ac_objext conftest$ac_exeext
53497 if { (ac_try="$ac_link"
53498 case "(($ac_try" in
53499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53500   *) ac_try_echo=$ac_try;;
53501 esac
53502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53503   (eval "$ac_link") 2>conftest.er1
53504   ac_status=$?
53505   grep -v '^ *+' conftest.er1 >conftest.err
53506   rm -f conftest.er1
53507   cat conftest.err >&5
53508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53509   (exit $ac_status); } &&
53510          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53511   { (case "(($ac_try" in
53512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53513   *) ac_try_echo=$ac_try;;
53514 esac
53515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53516   (eval "$ac_try") 2>&5
53517   ac_status=$?
53518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53519   (exit $ac_status); }; } &&
53520          { ac_try='test -s conftest$ac_exeext'
53521   { (case "(($ac_try" in
53522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53523   *) ac_try_echo=$ac_try;;
53524 esac
53525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53526   (eval "$ac_try") 2>&5
53527   ac_status=$?
53528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53529   (exit $ac_status); }; }; then
53530   ac_cv_lib_dgc_dg_sys_info=yes
53531 else
53532   echo "$as_me: failed program was:" >&5
53533 sed 's/^/| /' conftest.$ac_ext >&5
53534
53535         ac_cv_lib_dgc_dg_sys_info=no
53536 fi
53537
53538 rm -f core conftest.err conftest.$ac_objext \
53539       conftest$ac_exeext conftest.$ac_ext
53540 LIBS=$ac_check_lib_save_LIBS
53541 fi
53542 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
53543 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
53544 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
53545   cat >>confdefs.h <<_ACEOF
53546 #define HAVE_LIBDGC 1
53547 _ACEOF
53548
53549   LIBS="-ldgc $LIBS"
53550
53551 fi
53552
53553 fi
53554
53555
53556
53557 if test "${ac_cv_header_locale_h+set}" = set; then
53558   { echo "$as_me:$LINENO: checking for locale.h" >&5
53559 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
53560 if test "${ac_cv_header_locale_h+set}" = set; then
53561   echo $ECHO_N "(cached) $ECHO_C" >&6
53562 fi
53563 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
53564 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
53565 else
53566   # Is the header compilable?
53567 { echo "$as_me:$LINENO: checking locale.h usability" >&5
53568 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
53569 cat >conftest.$ac_ext <<_ACEOF
53570 /* confdefs.h.  */
53571 _ACEOF
53572 cat confdefs.h >>conftest.$ac_ext
53573 cat >>conftest.$ac_ext <<_ACEOF
53574 /* end confdefs.h.  */
53575 $ac_includes_default
53576 #include <locale.h>
53577 _ACEOF
53578 rm -f conftest.$ac_objext
53579 if { (ac_try="$ac_compile"
53580 case "(($ac_try" in
53581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53582   *) ac_try_echo=$ac_try;;
53583 esac
53584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53585   (eval "$ac_compile") 2>conftest.er1
53586   ac_status=$?
53587   grep -v '^ *+' conftest.er1 >conftest.err
53588   rm -f conftest.er1
53589   cat conftest.err >&5
53590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53591   (exit $ac_status); } &&
53592          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53593   { (case "(($ac_try" in
53594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53595   *) ac_try_echo=$ac_try;;
53596 esac
53597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53598   (eval "$ac_try") 2>&5
53599   ac_status=$?
53600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53601   (exit $ac_status); }; } &&
53602          { ac_try='test -s conftest.$ac_objext'
53603   { (case "(($ac_try" in
53604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53605   *) ac_try_echo=$ac_try;;
53606 esac
53607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53608   (eval "$ac_try") 2>&5
53609   ac_status=$?
53610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53611   (exit $ac_status); }; }; then
53612   ac_header_compiler=yes
53613 else
53614   echo "$as_me: failed program was:" >&5
53615 sed 's/^/| /' conftest.$ac_ext >&5
53616
53617         ac_header_compiler=no
53618 fi
53619
53620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53622 echo "${ECHO_T}$ac_header_compiler" >&6; }
53623
53624 # Is the header present?
53625 { echo "$as_me:$LINENO: checking locale.h presence" >&5
53626 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
53627 cat >conftest.$ac_ext <<_ACEOF
53628 /* confdefs.h.  */
53629 _ACEOF
53630 cat confdefs.h >>conftest.$ac_ext
53631 cat >>conftest.$ac_ext <<_ACEOF
53632 /* end confdefs.h.  */
53633 #include <locale.h>
53634 _ACEOF
53635 if { (ac_try="$ac_cpp conftest.$ac_ext"
53636 case "(($ac_try" in
53637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53638   *) ac_try_echo=$ac_try;;
53639 esac
53640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53641   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
53642   ac_status=$?
53643   grep -v '^ *+' conftest.er1 >conftest.err
53644   rm -f conftest.er1
53645   cat conftest.err >&5
53646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53647   (exit $ac_status); } >/dev/null; then
53648   if test -s conftest.err; then
53649     ac_cpp_err=$ac_c_preproc_warn_flag
53650     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53651   else
53652     ac_cpp_err=
53653   fi
53654 else
53655   ac_cpp_err=yes
53656 fi
53657 if test -z "$ac_cpp_err"; then
53658   ac_header_preproc=yes
53659 else
53660   echo "$as_me: failed program was:" >&5
53661 sed 's/^/| /' conftest.$ac_ext >&5
53662
53663   ac_header_preproc=no
53664 fi
53665
53666 rm -f conftest.err conftest.$ac_ext
53667 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53668 echo "${ECHO_T}$ac_header_preproc" >&6; }
53669
53670 # So?  What about this header?
53671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53672   yes:no: )
53673     { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
53674 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
53675     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
53676 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
53677     ac_header_preproc=yes
53678     ;;
53679   no:yes:* )
53680     { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
53681 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
53682     { echo "$as_me:$LINENO: WARNING: locale.h:     check for missing prerequisite headers?" >&5
53683 echo "$as_me: WARNING: locale.h:     check for missing prerequisite headers?" >&2;}
53684     { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
53685 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
53686     { echo "$as_me:$LINENO: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&5
53687 echo "$as_me: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&2;}
53688     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
53689 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
53690     { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
53691 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
53692     ( cat <<\_ASBOX
53693 ## ------------------------------------ ##
53694 ## Report this to bug-coreutils@gnu.org ##
53695 ## ------------------------------------ ##
53696 _ASBOX
53697      ) | sed "s/^/$as_me: WARNING:     /" >&2
53698     ;;
53699 esac
53700 { echo "$as_me:$LINENO: checking for locale.h" >&5
53701 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
53702 if test "${ac_cv_header_locale_h+set}" = set; then
53703   echo $ECHO_N "(cached) $ECHO_C" >&6
53704 else
53705   ac_cv_header_locale_h=$ac_header_preproc
53706 fi
53707 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
53708 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
53709
53710 fi
53711
53712
53713
53714 for ac_func in setlocale
53715 do
53716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53717 { echo "$as_me:$LINENO: checking for $ac_func" >&5
53718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
53719 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
53720   echo $ECHO_N "(cached) $ECHO_C" >&6
53721 else
53722   cat >conftest.$ac_ext <<_ACEOF
53723 /* confdefs.h.  */
53724 _ACEOF
53725 cat confdefs.h >>conftest.$ac_ext
53726 cat >>conftest.$ac_ext <<_ACEOF
53727 /* end confdefs.h.  */
53728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53729    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53730 #define $ac_func innocuous_$ac_func
53731
53732 /* System header to define __stub macros and hopefully few prototypes,
53733     which can conflict with char $ac_func (); below.
53734     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53735     <limits.h> exists even on freestanding compilers.  */
53736
53737 #ifdef __STDC__
53738 # include <limits.h>
53739 #else
53740 # include <assert.h>
53741 #endif
53742
53743 #undef $ac_func
53744
53745 /* Override any GCC internal prototype to avoid an error.
53746    Use char because int might match the return type of a GCC
53747    builtin and then its argument prototype would still apply.  */
53748 #ifdef __cplusplus
53749 extern "C"
53750 #endif
53751 char $ac_func ();
53752 /* The GNU C library defines this for functions which it implements
53753     to always fail with ENOSYS.  Some functions are actually named
53754     something starting with __ and the normal name is an alias.  */
53755 #if defined __stub_$ac_func || defined __stub___$ac_func
53756 choke me
53757 #endif
53758
53759 int
53760 main ()
53761 {
53762 return $ac_func ();
53763   ;
53764   return 0;
53765 }
53766 _ACEOF
53767 rm -f conftest.$ac_objext conftest$ac_exeext
53768 if { (ac_try="$ac_link"
53769 case "(($ac_try" in
53770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53771   *) ac_try_echo=$ac_try;;
53772 esac
53773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53774   (eval "$ac_link") 2>conftest.er1
53775   ac_status=$?
53776   grep -v '^ *+' conftest.er1 >conftest.err
53777   rm -f conftest.er1
53778   cat conftest.err >&5
53779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53780   (exit $ac_status); } &&
53781          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53782   { (case "(($ac_try" in
53783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53784   *) ac_try_echo=$ac_try;;
53785 esac
53786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53787   (eval "$ac_try") 2>&5
53788   ac_status=$?
53789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53790   (exit $ac_status); }; } &&
53791          { ac_try='test -s conftest$ac_exeext'
53792   { (case "(($ac_try" in
53793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53794   *) ac_try_echo=$ac_try;;
53795 esac
53796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53797   (eval "$ac_try") 2>&5
53798   ac_status=$?
53799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53800   (exit $ac_status); }; }; then
53801   eval "$as_ac_var=yes"
53802 else
53803   echo "$as_me: failed program was:" >&5
53804 sed 's/^/| /' conftest.$ac_ext >&5
53805
53806         eval "$as_ac_var=no"
53807 fi
53808
53809 rm -f core conftest.err conftest.$ac_objext \
53810       conftest$ac_exeext conftest.$ac_ext
53811 fi
53812 ac_res=`eval echo '${'$as_ac_var'}'`
53813                { echo "$as_me:$LINENO: result: $ac_res" >&5
53814 echo "${ECHO_T}$ac_res" >&6; }
53815 if test `eval echo '${'$as_ac_var'}'` = yes; then
53816   cat >>confdefs.h <<_ACEOF
53817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53818 _ACEOF
53819
53820 fi
53821 done
53822
53823
53824 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
53825 # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
53826 # Irix 4.0.5F has the header but not the library.
53827 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
53828   ac_have_func=yes
53829
53830 cat >>confdefs.h <<\_ACEOF
53831 #define SVR4 1
53832 _ACEOF
53833
53834 fi
53835
53836 if test $ac_have_func = no; then
53837   if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
53838   { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
53839 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
53840 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
53841   echo $ECHO_N "(cached) $ECHO_C" >&6
53842 fi
53843 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
53844 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
53845 else
53846   # Is the header compilable?
53847 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
53848 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
53849 cat >conftest.$ac_ext <<_ACEOF
53850 /* confdefs.h.  */
53851 _ACEOF
53852 cat confdefs.h >>conftest.$ac_ext
53853 cat >>conftest.$ac_ext <<_ACEOF
53854 /* end confdefs.h.  */
53855 $ac_includes_default
53856 #include <inq_stats/cpustats.h>
53857 _ACEOF
53858 rm -f conftest.$ac_objext
53859 if { (ac_try="$ac_compile"
53860 case "(($ac_try" in
53861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53862   *) ac_try_echo=$ac_try;;
53863 esac
53864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53865   (eval "$ac_compile") 2>conftest.er1
53866   ac_status=$?
53867   grep -v '^ *+' conftest.er1 >conftest.err
53868   rm -f conftest.er1
53869   cat conftest.err >&5
53870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53871   (exit $ac_status); } &&
53872          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53873   { (case "(($ac_try" in
53874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53875   *) ac_try_echo=$ac_try;;
53876 esac
53877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53878   (eval "$ac_try") 2>&5
53879   ac_status=$?
53880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53881   (exit $ac_status); }; } &&
53882          { ac_try='test -s conftest.$ac_objext'
53883   { (case "(($ac_try" in
53884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53885   *) ac_try_echo=$ac_try;;
53886 esac
53887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53888   (eval "$ac_try") 2>&5
53889   ac_status=$?
53890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53891   (exit $ac_status); }; }; then
53892   ac_header_compiler=yes
53893 else
53894   echo "$as_me: failed program was:" >&5
53895 sed 's/^/| /' conftest.$ac_ext >&5
53896
53897         ac_header_compiler=no
53898 fi
53899
53900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53902 echo "${ECHO_T}$ac_header_compiler" >&6; }
53903
53904 # Is the header present?
53905 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
53906 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
53907 cat >conftest.$ac_ext <<_ACEOF
53908 /* confdefs.h.  */
53909 _ACEOF
53910 cat confdefs.h >>conftest.$ac_ext
53911 cat >>conftest.$ac_ext <<_ACEOF
53912 /* end confdefs.h.  */
53913 #include <inq_stats/cpustats.h>
53914 _ACEOF
53915 if { (ac_try="$ac_cpp conftest.$ac_ext"
53916 case "(($ac_try" in
53917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53918   *) ac_try_echo=$ac_try;;
53919 esac
53920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53921   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
53922   ac_status=$?
53923   grep -v '^ *+' conftest.er1 >conftest.err
53924   rm -f conftest.er1
53925   cat conftest.err >&5
53926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53927   (exit $ac_status); } >/dev/null; then
53928   if test -s conftest.err; then
53929     ac_cpp_err=$ac_c_preproc_warn_flag
53930     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53931   else
53932     ac_cpp_err=
53933   fi
53934 else
53935   ac_cpp_err=yes
53936 fi
53937 if test -z "$ac_cpp_err"; then
53938   ac_header_preproc=yes
53939 else
53940   echo "$as_me: failed program was:" >&5
53941 sed 's/^/| /' conftest.$ac_ext >&5
53942
53943   ac_header_preproc=no
53944 fi
53945
53946 rm -f conftest.err conftest.$ac_ext
53947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53948 echo "${ECHO_T}$ac_header_preproc" >&6; }
53949
53950 # So?  What about this header?
53951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53952   yes:no: )
53953     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
53954 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
53955     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
53956 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
53957     ac_header_preproc=yes
53958     ;;
53959   no:yes:* )
53960     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
53961 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
53962     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&5
53963 echo "$as_me: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&2;}
53964     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
53965 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
53966     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
53967 echo "$as_me: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
53968     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
53969 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
53970     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
53971 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
53972     ( cat <<\_ASBOX
53973 ## ------------------------------------ ##
53974 ## Report this to bug-coreutils@gnu.org ##
53975 ## ------------------------------------ ##
53976 _ASBOX
53977      ) | sed "s/^/$as_me: WARNING:     /" >&2
53978     ;;
53979 esac
53980 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
53981 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
53982 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
53983   echo $ECHO_N "(cached) $ECHO_C" >&6
53984 else
53985   ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
53986 fi
53987 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
53988 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
53989
53990 fi
53991 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
53992   ac_have_func=yes
53993
53994 cat >>confdefs.h <<\_ACEOF
53995 #define UMAX 1
53996 _ACEOF
53997
53998
53999 cat >>confdefs.h <<\_ACEOF
54000 #define UMAX4_3 1
54001 _ACEOF
54002
54003 fi
54004
54005
54006 fi
54007
54008 if test $ac_have_func = no; then
54009   if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
54010   { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
54011 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
54012 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
54013   echo $ECHO_N "(cached) $ECHO_C" >&6
54014 fi
54015 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
54016 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
54017 else
54018   # Is the header compilable?
54019 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
54020 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
54021 cat >conftest.$ac_ext <<_ACEOF
54022 /* confdefs.h.  */
54023 _ACEOF
54024 cat confdefs.h >>conftest.$ac_ext
54025 cat >>conftest.$ac_ext <<_ACEOF
54026 /* end confdefs.h.  */
54027 $ac_includes_default
54028 #include <sys/cpustats.h>
54029 _ACEOF
54030 rm -f conftest.$ac_objext
54031 if { (ac_try="$ac_compile"
54032 case "(($ac_try" in
54033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54034   *) ac_try_echo=$ac_try;;
54035 esac
54036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54037   (eval "$ac_compile") 2>conftest.er1
54038   ac_status=$?
54039   grep -v '^ *+' conftest.er1 >conftest.err
54040   rm -f conftest.er1
54041   cat conftest.err >&5
54042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54043   (exit $ac_status); } &&
54044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54045   { (case "(($ac_try" in
54046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54047   *) ac_try_echo=$ac_try;;
54048 esac
54049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54050   (eval "$ac_try") 2>&5
54051   ac_status=$?
54052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54053   (exit $ac_status); }; } &&
54054          { ac_try='test -s conftest.$ac_objext'
54055   { (case "(($ac_try" in
54056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54057   *) ac_try_echo=$ac_try;;
54058 esac
54059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54060   (eval "$ac_try") 2>&5
54061   ac_status=$?
54062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54063   (exit $ac_status); }; }; then
54064   ac_header_compiler=yes
54065 else
54066   echo "$as_me: failed program was:" >&5
54067 sed 's/^/| /' conftest.$ac_ext >&5
54068
54069         ac_header_compiler=no
54070 fi
54071
54072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54074 echo "${ECHO_T}$ac_header_compiler" >&6; }
54075
54076 # Is the header present?
54077 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
54078 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
54079 cat >conftest.$ac_ext <<_ACEOF
54080 /* confdefs.h.  */
54081 _ACEOF
54082 cat confdefs.h >>conftest.$ac_ext
54083 cat >>conftest.$ac_ext <<_ACEOF
54084 /* end confdefs.h.  */
54085 #include <sys/cpustats.h>
54086 _ACEOF
54087 if { (ac_try="$ac_cpp conftest.$ac_ext"
54088 case "(($ac_try" in
54089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54090   *) ac_try_echo=$ac_try;;
54091 esac
54092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54093   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
54094   ac_status=$?
54095   grep -v '^ *+' conftest.er1 >conftest.err
54096   rm -f conftest.er1
54097   cat conftest.err >&5
54098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54099   (exit $ac_status); } >/dev/null; then
54100   if test -s conftest.err; then
54101     ac_cpp_err=$ac_c_preproc_warn_flag
54102     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
54103   else
54104     ac_cpp_err=
54105   fi
54106 else
54107   ac_cpp_err=yes
54108 fi
54109 if test -z "$ac_cpp_err"; then
54110   ac_header_preproc=yes
54111 else
54112   echo "$as_me: failed program was:" >&5
54113 sed 's/^/| /' conftest.$ac_ext >&5
54114
54115   ac_header_preproc=no
54116 fi
54117
54118 rm -f conftest.err conftest.$ac_ext
54119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54120 echo "${ECHO_T}$ac_header_preproc" >&6; }
54121
54122 # So?  What about this header?
54123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54124   yes:no: )
54125     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
54126 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
54127     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
54128 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
54129     ac_header_preproc=yes
54130     ;;
54131   no:yes:* )
54132     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
54133 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
54134     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&5
54135 echo "$as_me: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&2;}
54136     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
54137 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
54138     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
54139 echo "$as_me: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
54140     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
54141 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
54142     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
54143 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
54144     ( cat <<\_ASBOX
54145 ## ------------------------------------ ##
54146 ## Report this to bug-coreutils@gnu.org ##
54147 ## ------------------------------------ ##
54148 _ASBOX
54149      ) | sed "s/^/$as_me: WARNING:     /" >&2
54150     ;;
54151 esac
54152 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
54153 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
54154 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
54155   echo $ECHO_N "(cached) $ECHO_C" >&6
54156 else
54157   ac_cv_header_sys_cpustats_h=$ac_header_preproc
54158 fi
54159 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
54160 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
54161
54162 fi
54163 if test $ac_cv_header_sys_cpustats_h = yes; then
54164   ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
54165 #define UMAX 1
54166 _ACEOF
54167
54168 fi
54169
54170
54171 fi
54172
54173 if test $ac_have_func = no; then
54174
54175 for ac_header in mach/mach.h
54176 do
54177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54179   { echo "$as_me:$LINENO: checking for $ac_header" >&5
54180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
54181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54182   echo $ECHO_N "(cached) $ECHO_C" >&6
54183 fi
54184 ac_res=`eval echo '${'$as_ac_Header'}'`
54185                { echo "$as_me:$LINENO: result: $ac_res" >&5
54186 echo "${ECHO_T}$ac_res" >&6; }
54187 else
54188   # Is the header compilable?
54189 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
54190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
54191 cat >conftest.$ac_ext <<_ACEOF
54192 /* confdefs.h.  */
54193 _ACEOF
54194 cat confdefs.h >>conftest.$ac_ext
54195 cat >>conftest.$ac_ext <<_ACEOF
54196 /* end confdefs.h.  */
54197 $ac_includes_default
54198 #include <$ac_header>
54199 _ACEOF
54200 rm -f conftest.$ac_objext
54201 if { (ac_try="$ac_compile"
54202 case "(($ac_try" in
54203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54204   *) ac_try_echo=$ac_try;;
54205 esac
54206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54207   (eval "$ac_compile") 2>conftest.er1
54208   ac_status=$?
54209   grep -v '^ *+' conftest.er1 >conftest.err
54210   rm -f conftest.er1
54211   cat conftest.err >&5
54212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54213   (exit $ac_status); } &&
54214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54215   { (case "(($ac_try" in
54216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54217   *) ac_try_echo=$ac_try;;
54218 esac
54219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54220   (eval "$ac_try") 2>&5
54221   ac_status=$?
54222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54223   (exit $ac_status); }; } &&
54224          { ac_try='test -s conftest.$ac_objext'
54225   { (case "(($ac_try" in
54226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54227   *) ac_try_echo=$ac_try;;
54228 esac
54229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54230   (eval "$ac_try") 2>&5
54231   ac_status=$?
54232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54233   (exit $ac_status); }; }; then
54234   ac_header_compiler=yes
54235 else
54236   echo "$as_me: failed program was:" >&5
54237 sed 's/^/| /' conftest.$ac_ext >&5
54238
54239         ac_header_compiler=no
54240 fi
54241
54242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54244 echo "${ECHO_T}$ac_header_compiler" >&6; }
54245
54246 # Is the header present?
54247 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
54248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
54249 cat >conftest.$ac_ext <<_ACEOF
54250 /* confdefs.h.  */
54251 _ACEOF
54252 cat confdefs.h >>conftest.$ac_ext
54253 cat >>conftest.$ac_ext <<_ACEOF
54254 /* end confdefs.h.  */
54255 #include <$ac_header>
54256 _ACEOF
54257 if { (ac_try="$ac_cpp conftest.$ac_ext"
54258 case "(($ac_try" in
54259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54260   *) ac_try_echo=$ac_try;;
54261 esac
54262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54263   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
54264   ac_status=$?
54265   grep -v '^ *+' conftest.er1 >conftest.err
54266   rm -f conftest.er1
54267   cat conftest.err >&5
54268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54269   (exit $ac_status); } >/dev/null; then
54270   if test -s conftest.err; then
54271     ac_cpp_err=$ac_c_preproc_warn_flag
54272     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
54273   else
54274     ac_cpp_err=
54275   fi
54276 else
54277   ac_cpp_err=yes
54278 fi
54279 if test -z "$ac_cpp_err"; then
54280   ac_header_preproc=yes
54281 else
54282   echo "$as_me: failed program was:" >&5
54283 sed 's/^/| /' conftest.$ac_ext >&5
54284
54285   ac_header_preproc=no
54286 fi
54287
54288 rm -f conftest.err conftest.$ac_ext
54289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54290 echo "${ECHO_T}$ac_header_preproc" >&6; }
54291
54292 # So?  What about this header?
54293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54294   yes:no: )
54295     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54299     ac_header_preproc=yes
54300     ;;
54301   no:yes:* )
54302     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54304     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
54305 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
54306     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54308     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
54309 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
54310     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54312     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54314     ( cat <<\_ASBOX
54315 ## ------------------------------------ ##
54316 ## Report this to bug-coreutils@gnu.org ##
54317 ## ------------------------------------ ##
54318 _ASBOX
54319      ) | sed "s/^/$as_me: WARNING:     /" >&2
54320     ;;
54321 esac
54322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
54323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
54324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54325   echo $ECHO_N "(cached) $ECHO_C" >&6
54326 else
54327   eval "$as_ac_Header=\$ac_header_preproc"
54328 fi
54329 ac_res=`eval echo '${'$as_ac_Header'}'`
54330                { echo "$as_me:$LINENO: result: $ac_res" >&5
54331 echo "${ECHO_T}$ac_res" >&6; }
54332
54333 fi
54334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54335   cat >>confdefs.h <<_ACEOF
54336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54337 _ACEOF
54338
54339 fi
54340
54341 done
54342
54343 fi
54344
54345
54346 for ac_header in nlist.h
54347 do
54348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54350   { echo "$as_me:$LINENO: checking for $ac_header" >&5
54351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
54352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54353   echo $ECHO_N "(cached) $ECHO_C" >&6
54354 fi
54355 ac_res=`eval echo '${'$as_ac_Header'}'`
54356                { echo "$as_me:$LINENO: result: $ac_res" >&5
54357 echo "${ECHO_T}$ac_res" >&6; }
54358 else
54359   # Is the header compilable?
54360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
54361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
54362 cat >conftest.$ac_ext <<_ACEOF
54363 /* confdefs.h.  */
54364 _ACEOF
54365 cat confdefs.h >>conftest.$ac_ext
54366 cat >>conftest.$ac_ext <<_ACEOF
54367 /* end confdefs.h.  */
54368 $ac_includes_default
54369 #include <$ac_header>
54370 _ACEOF
54371 rm -f conftest.$ac_objext
54372 if { (ac_try="$ac_compile"
54373 case "(($ac_try" in
54374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54375   *) ac_try_echo=$ac_try;;
54376 esac
54377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54378   (eval "$ac_compile") 2>conftest.er1
54379   ac_status=$?
54380   grep -v '^ *+' conftest.er1 >conftest.err
54381   rm -f conftest.er1
54382   cat conftest.err >&5
54383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54384   (exit $ac_status); } &&
54385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54386   { (case "(($ac_try" in
54387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54388   *) ac_try_echo=$ac_try;;
54389 esac
54390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54391   (eval "$ac_try") 2>&5
54392   ac_status=$?
54393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54394   (exit $ac_status); }; } &&
54395          { ac_try='test -s conftest.$ac_objext'
54396   { (case "(($ac_try" in
54397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54398   *) ac_try_echo=$ac_try;;
54399 esac
54400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54401   (eval "$ac_try") 2>&5
54402   ac_status=$?
54403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54404   (exit $ac_status); }; }; then
54405   ac_header_compiler=yes
54406 else
54407   echo "$as_me: failed program was:" >&5
54408 sed 's/^/| /' conftest.$ac_ext >&5
54409
54410         ac_header_compiler=no
54411 fi
54412
54413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54415 echo "${ECHO_T}$ac_header_compiler" >&6; }
54416
54417 # Is the header present?
54418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
54419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
54420 cat >conftest.$ac_ext <<_ACEOF
54421 /* confdefs.h.  */
54422 _ACEOF
54423 cat confdefs.h >>conftest.$ac_ext
54424 cat >>conftest.$ac_ext <<_ACEOF
54425 /* end confdefs.h.  */
54426 #include <$ac_header>
54427 _ACEOF
54428 if { (ac_try="$ac_cpp conftest.$ac_ext"
54429 case "(($ac_try" in
54430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54431   *) ac_try_echo=$ac_try;;
54432 esac
54433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54434   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
54435   ac_status=$?
54436   grep -v '^ *+' conftest.er1 >conftest.err
54437   rm -f conftest.er1
54438   cat conftest.err >&5
54439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54440   (exit $ac_status); } >/dev/null; then
54441   if test -s conftest.err; then
54442     ac_cpp_err=$ac_c_preproc_warn_flag
54443     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
54444   else
54445     ac_cpp_err=
54446   fi
54447 else
54448   ac_cpp_err=yes
54449 fi
54450 if test -z "$ac_cpp_err"; then
54451   ac_header_preproc=yes
54452 else
54453   echo "$as_me: failed program was:" >&5
54454 sed 's/^/| /' conftest.$ac_ext >&5
54455
54456   ac_header_preproc=no
54457 fi
54458
54459 rm -f conftest.err conftest.$ac_ext
54460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54461 echo "${ECHO_T}$ac_header_preproc" >&6; }
54462
54463 # So?  What about this header?
54464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54465   yes:no: )
54466     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54470     ac_header_preproc=yes
54471     ;;
54472   no:yes:* )
54473     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54475     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
54476 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
54477     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54479     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
54480 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
54481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54483     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54485     ( cat <<\_ASBOX
54486 ## ------------------------------------ ##
54487 ## Report this to bug-coreutils@gnu.org ##
54488 ## ------------------------------------ ##
54489 _ASBOX
54490      ) | sed "s/^/$as_me: WARNING:     /" >&2
54491     ;;
54492 esac
54493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
54494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
54495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54496   echo $ECHO_N "(cached) $ECHO_C" >&6
54497 else
54498   eval "$as_ac_Header=\$ac_header_preproc"
54499 fi
54500 ac_res=`eval echo '${'$as_ac_Header'}'`
54501                { echo "$as_me:$LINENO: result: $ac_res" >&5
54502 echo "${ECHO_T}$ac_res" >&6; }
54503
54504 fi
54505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54506   cat >>confdefs.h <<_ACEOF
54507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54508 _ACEOF
54509  { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
54510 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
54511 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
54512   echo $ECHO_N "(cached) $ECHO_C" >&6
54513 else
54514   cat >conftest.$ac_ext <<_ACEOF
54515 /* confdefs.h.  */
54516 _ACEOF
54517 cat confdefs.h >>conftest.$ac_ext
54518 cat >>conftest.$ac_ext <<_ACEOF
54519 /* end confdefs.h.  */
54520 #include <nlist.h>
54521
54522 int
54523 main ()
54524 {
54525 static struct nlist ac_aggr;
54526 if (ac_aggr.n_un.n_name)
54527 return 0;
54528   ;
54529   return 0;
54530 }
54531 _ACEOF
54532 rm -f conftest.$ac_objext
54533 if { (ac_try="$ac_compile"
54534 case "(($ac_try" in
54535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54536   *) ac_try_echo=$ac_try;;
54537 esac
54538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54539   (eval "$ac_compile") 2>conftest.er1
54540   ac_status=$?
54541   grep -v '^ *+' conftest.er1 >conftest.err
54542   rm -f conftest.er1
54543   cat conftest.err >&5
54544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54545   (exit $ac_status); } &&
54546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54547   { (case "(($ac_try" in
54548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54549   *) ac_try_echo=$ac_try;;
54550 esac
54551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54552   (eval "$ac_try") 2>&5
54553   ac_status=$?
54554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54555   (exit $ac_status); }; } &&
54556          { ac_try='test -s conftest.$ac_objext'
54557   { (case "(($ac_try" in
54558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54559   *) ac_try_echo=$ac_try;;
54560 esac
54561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54562   (eval "$ac_try") 2>&5
54563   ac_status=$?
54564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54565   (exit $ac_status); }; }; then
54566   ac_cv_member_struct_nlist_n_un_n_name=yes
54567 else
54568   echo "$as_me: failed program was:" >&5
54569 sed 's/^/| /' conftest.$ac_ext >&5
54570
54571         cat >conftest.$ac_ext <<_ACEOF
54572 /* confdefs.h.  */
54573 _ACEOF
54574 cat confdefs.h >>conftest.$ac_ext
54575 cat >>conftest.$ac_ext <<_ACEOF
54576 /* end confdefs.h.  */
54577 #include <nlist.h>
54578
54579 int
54580 main ()
54581 {
54582 static struct nlist ac_aggr;
54583 if (sizeof ac_aggr.n_un.n_name)
54584 return 0;
54585   ;
54586   return 0;
54587 }
54588 _ACEOF
54589 rm -f conftest.$ac_objext
54590 if { (ac_try="$ac_compile"
54591 case "(($ac_try" in
54592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54593   *) ac_try_echo=$ac_try;;
54594 esac
54595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54596   (eval "$ac_compile") 2>conftest.er1
54597   ac_status=$?
54598   grep -v '^ *+' conftest.er1 >conftest.err
54599   rm -f conftest.er1
54600   cat conftest.err >&5
54601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54602   (exit $ac_status); } &&
54603          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54604   { (case "(($ac_try" in
54605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54606   *) ac_try_echo=$ac_try;;
54607 esac
54608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54609   (eval "$ac_try") 2>&5
54610   ac_status=$?
54611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54612   (exit $ac_status); }; } &&
54613          { ac_try='test -s conftest.$ac_objext'
54614   { (case "(($ac_try" in
54615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54616   *) ac_try_echo=$ac_try;;
54617 esac
54618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54619   (eval "$ac_try") 2>&5
54620   ac_status=$?
54621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54622   (exit $ac_status); }; }; then
54623   ac_cv_member_struct_nlist_n_un_n_name=yes
54624 else
54625   echo "$as_me: failed program was:" >&5
54626 sed 's/^/| /' conftest.$ac_ext >&5
54627
54628         ac_cv_member_struct_nlist_n_un_n_name=no
54629 fi
54630
54631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54632 fi
54633
54634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54635 fi
54636 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
54637 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
54638 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
54639
54640 cat >>confdefs.h <<_ACEOF
54641 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
54642 _ACEOF
54643
54644
54645 cat >>confdefs.h <<\_ACEOF
54646 #define NLIST_NAME_UNION 1
54647 _ACEOF
54648
54649 fi
54650
54651
54652 fi
54653
54654 done
54655
54656 fi
54657 done
54658
54659
54660 # Some definitions of getloadavg require that the program be installed setgid.
54661 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
54662 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
54663 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
54664   echo $ECHO_N "(cached) $ECHO_C" >&6
54665 else
54666   cat >conftest.$ac_ext <<_ACEOF
54667 /* confdefs.h.  */
54668 _ACEOF
54669 cat confdefs.h >>conftest.$ac_ext
54670 cat >>conftest.$ac_ext <<_ACEOF
54671 /* end confdefs.h.  */
54672 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
54673 #ifdef LDAV_PRIVILEGED
54674 Yowza Am I SETGID yet
54675 #endif
54676 _ACEOF
54677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54678   $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
54679   ac_cv_func_getloadavg_setgid=yes
54680 else
54681   ac_cv_func_getloadavg_setgid=no
54682 fi
54683 rm -f conftest*
54684
54685 fi
54686 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
54687 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
54688 if test $ac_cv_func_getloadavg_setgid = yes; then
54689   NEED_SETGID=true
54690
54691 cat >>confdefs.h <<\_ACEOF
54692 #define GETLOADAVG_PRIVILEGED 1
54693 _ACEOF
54694
54695 else
54696   NEED_SETGID=false
54697 fi
54698
54699 if test $ac_cv_func_getloadavg_setgid = yes; then
54700   { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
54701 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
54702 if test "${ac_cv_group_kmem+set}" = set; then
54703   echo $ECHO_N "(cached) $ECHO_C" >&6
54704 else
54705    # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
54706   ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
54707   # If we got an error (system does not support symlinks), try without -L.
54708   test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
54709   ac_cv_group_kmem=`echo $ac_ls_output \
54710     | sed -ne 's/[       ][      ]*/ /g;
54711                s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
54712                / /s/.* //;p;'`
54713
54714 fi
54715 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
54716 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
54717   KMEM_GROUP=$ac_cv_group_kmem
54718 fi
54719 if test "x$ac_save_LIBS" = x; then
54720   GETLOADAVG_LIBS=$LIBS
54721 else
54722   GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
54723 fi
54724 LIBS=$ac_save_LIBS
54725
54726
54727
54728
54729
54730
54731   # raise is used by at least sort and ls.
54732
54733 for ac_func in raise
54734 do
54735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54736 { echo "$as_me:$LINENO: checking for $ac_func" >&5
54737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
54738 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
54739   echo $ECHO_N "(cached) $ECHO_C" >&6
54740 else
54741   cat >conftest.$ac_ext <<_ACEOF
54742 /* confdefs.h.  */
54743 _ACEOF
54744 cat confdefs.h >>conftest.$ac_ext
54745 cat >>conftest.$ac_ext <<_ACEOF
54746 /* end confdefs.h.  */
54747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54748    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54749 #define $ac_func innocuous_$ac_func
54750
54751 /* System header to define __stub macros and hopefully few prototypes,
54752     which can conflict with char $ac_func (); below.
54753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54754     <limits.h> exists even on freestanding compilers.  */
54755
54756 #ifdef __STDC__
54757 # include <limits.h>
54758 #else
54759 # include <assert.h>
54760 #endif
54761
54762 #undef $ac_func
54763
54764 /* Override any GCC internal prototype to avoid an error.
54765    Use char because int might match the return type of a GCC
54766    builtin and then its argument prototype would still apply.  */
54767 #ifdef __cplusplus
54768 extern "C"
54769 #endif
54770 char $ac_func ();
54771 /* The GNU C library defines this for functions which it implements
54772     to always fail with ENOSYS.  Some functions are actually named
54773     something starting with __ and the normal name is an alias.  */
54774 #if defined __stub_$ac_func || defined __stub___$ac_func
54775 choke me
54776 #endif
54777
54778 int
54779 main ()
54780 {
54781 return $ac_func ();
54782   ;
54783   return 0;
54784 }
54785 _ACEOF
54786 rm -f conftest.$ac_objext conftest$ac_exeext
54787 if { (ac_try="$ac_link"
54788 case "(($ac_try" in
54789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54790   *) ac_try_echo=$ac_try;;
54791 esac
54792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54793   (eval "$ac_link") 2>conftest.er1
54794   ac_status=$?
54795   grep -v '^ *+' conftest.er1 >conftest.err
54796   rm -f conftest.er1
54797   cat conftest.err >&5
54798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54799   (exit $ac_status); } &&
54800          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54801   { (case "(($ac_try" in
54802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54803   *) ac_try_echo=$ac_try;;
54804 esac
54805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54806   (eval "$ac_try") 2>&5
54807   ac_status=$?
54808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54809   (exit $ac_status); }; } &&
54810          { ac_try='test -s conftest$ac_exeext'
54811   { (case "(($ac_try" in
54812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54813   *) ac_try_echo=$ac_try;;
54814 esac
54815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54816   (eval "$ac_try") 2>&5
54817   ac_status=$?
54818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54819   (exit $ac_status); }; }; then
54820   eval "$as_ac_var=yes"
54821 else
54822   echo "$as_me: failed program was:" >&5
54823 sed 's/^/| /' conftest.$ac_ext >&5
54824
54825         eval "$as_ac_var=no"
54826 fi
54827
54828 rm -f core conftest.err conftest.$ac_objext \
54829       conftest$ac_exeext conftest.$ac_ext
54830 fi
54831 ac_res=`eval echo '${'$as_ac_var'}'`
54832                { echo "$as_me:$LINENO: result: $ac_res" >&5
54833 echo "${ECHO_T}$ac_res" >&6; }
54834 if test `eval echo '${'$as_ac_var'}'` = yes; then
54835   cat >>confdefs.h <<_ACEOF
54836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54837 _ACEOF
54838
54839 else
54840   case " $LIBOBJS " in
54841   *" $ac_func.$ac_objext "* ) ;;
54842   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
54843  ;;
54844 esac
54845
54846 fi
54847 done
54848
54849
54850
54851   # By default, argmatch should fail calling usage (1).
54852
54853 cat >>confdefs.h <<\_ACEOF
54854 #define ARGMATCH_DIE usage (1)
54855 _ACEOF
54856
54857
54858 cat >>confdefs.h <<\_ACEOF
54859 #define ARGMATCH_DIE_DECL extern void usage ()
54860 _ACEOF
54861
54862
54863         { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
54864 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
54865 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
54866   echo $ECHO_N "(cached) $ECHO_C" >&6
54867 else
54868   ac_cv_func_setvbuf_reversed=no
54869    cat >conftest.$ac_ext <<_ACEOF
54870 /* confdefs.h.  */
54871 _ACEOF
54872 cat confdefs.h >>conftest.$ac_ext
54873 cat >>conftest.$ac_ext <<_ACEOF
54874 /* end confdefs.h.  */
54875 #include <stdio.h>
54876 #         if PROTOTYPES
54877            int (setvbuf) (FILE *, int, char *, size_t);
54878 #         endif
54879 int
54880 main ()
54881 {
54882 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
54883   ;
54884   return 0;
54885 }
54886 _ACEOF
54887 rm -f conftest.$ac_objext conftest$ac_exeext
54888 if { (ac_try="$ac_link"
54889 case "(($ac_try" in
54890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54891   *) ac_try_echo=$ac_try;;
54892 esac
54893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54894   (eval "$ac_link") 2>conftest.er1
54895   ac_status=$?
54896   grep -v '^ *+' conftest.er1 >conftest.err
54897   rm -f conftest.er1
54898   cat conftest.err >&5
54899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54900   (exit $ac_status); } &&
54901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54902   { (case "(($ac_try" in
54903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54904   *) ac_try_echo=$ac_try;;
54905 esac
54906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54907   (eval "$ac_try") 2>&5
54908   ac_status=$?
54909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54910   (exit $ac_status); }; } &&
54911          { ac_try='test -s conftest$ac_exeext'
54912   { (case "(($ac_try" in
54913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54914   *) ac_try_echo=$ac_try;;
54915 esac
54916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54917   (eval "$ac_try") 2>&5
54918   ac_status=$?
54919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54920   (exit $ac_status); }; }; then
54921   cat >conftest.$ac_ext <<_ACEOF
54922 /* confdefs.h.  */
54923 _ACEOF
54924 cat confdefs.h >>conftest.$ac_ext
54925 cat >>conftest.$ac_ext <<_ACEOF
54926 /* end confdefs.h.  */
54927 #include <stdio.h>
54928 #            if PROTOTYPES
54929               int (setvbuf) (FILE *, int, char *, size_t);
54930 #            endif
54931 int
54932 main ()
54933 {
54934 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
54935   ;
54936   return 0;
54937 }
54938 _ACEOF
54939 rm -f conftest.$ac_objext conftest$ac_exeext
54940 if { (ac_try="$ac_link"
54941 case "(($ac_try" in
54942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54943   *) ac_try_echo=$ac_try;;
54944 esac
54945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54946   (eval "$ac_link") 2>conftest.er1
54947   ac_status=$?
54948   grep -v '^ *+' conftest.er1 >conftest.err
54949   rm -f conftest.er1
54950   cat conftest.err >&5
54951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54952   (exit $ac_status); } &&
54953          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54954   { (case "(($ac_try" in
54955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54956   *) ac_try_echo=$ac_try;;
54957 esac
54958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54959   (eval "$ac_try") 2>&5
54960   ac_status=$?
54961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54962   (exit $ac_status); }; } &&
54963          { ac_try='test -s conftest$ac_exeext'
54964   { (case "(($ac_try" in
54965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54966   *) ac_try_echo=$ac_try;;
54967 esac
54968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54969   (eval "$ac_try") 2>&5
54970   ac_status=$?
54971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54972   (exit $ac_status); }; }; then
54973   # It compiles and links either way, so it must not be declared
54974          # with a prototype and most likely this is a K&R C compiler.
54975          # Try running it.
54976          if test "$cross_compiling" = yes; then
54977   : # Assume setvbuf is not reversed when cross-compiling.
54978 else
54979   cat >conftest.$ac_ext <<_ACEOF
54980 /* confdefs.h.  */
54981 _ACEOF
54982 cat confdefs.h >>conftest.$ac_ext
54983 cat >>conftest.$ac_ext <<_ACEOF
54984 /* end confdefs.h.  */
54985 $ac_includes_default
54986 int
54987 main ()
54988 {
54989 /* This call has the arguments reversed.
54990                    A reversed system may check and see that the address of buf
54991                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
54992                 char buf;
54993                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
54994                   return 1;
54995                 putchar ('\r');
54996                 return 0; /* Non-reversed systems SEGV here.  */
54997   ;
54998   return 0;
54999 }
55000 _ACEOF
55001 rm -f conftest$ac_exeext
55002 if { (ac_try="$ac_link"
55003 case "(($ac_try" in
55004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55005   *) ac_try_echo=$ac_try;;
55006 esac
55007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55008   (eval "$ac_link") 2>&5
55009   ac_status=$?
55010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55011   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55012   { (case "(($ac_try" in
55013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55014   *) ac_try_echo=$ac_try;;
55015 esac
55016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55017   (eval "$ac_try") 2>&5
55018   ac_status=$?
55019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55020   (exit $ac_status); }; }; then
55021   ac_cv_func_setvbuf_reversed=yes
55022 else
55023   echo "$as_me: program exited with status $ac_status" >&5
55024 echo "$as_me: failed program was:" >&5
55025 sed 's/^/| /' conftest.$ac_ext >&5
55026
55027 fi
55028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55029 fi
55030
55031
55032         ac_cv_func_setvbuf_reversed=yes
55033 else
55034   echo "$as_me: failed program was:" >&5
55035 sed 's/^/| /' conftest.$ac_ext >&5
55036
55037
55038 fi
55039
55040 rm -f core conftest.err conftest.$ac_objext \
55041       conftest$ac_exeext conftest.$ac_ext
55042 else
55043   echo "$as_me: failed program was:" >&5
55044 sed 's/^/| /' conftest.$ac_ext >&5
55045
55046
55047 fi
55048
55049 rm -f core conftest.err conftest.$ac_objext \
55050       conftest$ac_exeext conftest.$ac_ext
55051 fi
55052 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
55053 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
55054 if test $ac_cv_func_setvbuf_reversed = yes; then
55055
55056 cat >>confdefs.h <<\_ACEOF
55057 #define SETVBUF_REVERSED 1
55058 _ACEOF
55059
55060 fi
55061
55062
55063   # used by sleep and shred
55064
55065
55066
55067
55068
55069
55070
55071
55072
55073  { echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
55074 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6; }
55075 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
55076   echo $ECHO_N "(cached) $ECHO_C" >&6
55077 else
55078   if test "$cross_compiling" = yes; then
55079          jm_cv_func_gettimeofday_clobber=yes
55080 else
55081   cat >conftest.$ac_ext <<_ACEOF
55082 /* confdefs.h.  */
55083 _ACEOF
55084 cat confdefs.h >>conftest.$ac_ext
55085 cat >>conftest.$ac_ext <<_ACEOF
55086 /* end confdefs.h.  */
55087
55088 #include <stdio.h>
55089 #include <string.h>
55090
55091 #if TIME_WITH_SYS_TIME
55092 # include <sys/time.h>
55093 # include <time.h>
55094 #else
55095 # if HAVE_SYS_TIME_H
55096 #  include <sys/time.h>
55097 # else
55098 #  include <time.h>
55099 # endif
55100 #endif
55101
55102 #include <stdlib.h>
55103
55104 int
55105 main ()
55106 {
55107   time_t t = 0;
55108   struct tm *lt;
55109   struct tm saved_lt;
55110   struct timeval tv;
55111   lt = localtime (&t);
55112   saved_lt = *lt;
55113   gettimeofday (&tv, NULL);
55114   if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
55115     exit (1);
55116
55117   exit (0);
55118 }
55119
55120 _ACEOF
55121 rm -f conftest$ac_exeext
55122 if { (ac_try="$ac_link"
55123 case "(($ac_try" in
55124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55125   *) ac_try_echo=$ac_try;;
55126 esac
55127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55128   (eval "$ac_link") 2>&5
55129   ac_status=$?
55130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55131   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55132   { (case "(($ac_try" in
55133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55134   *) ac_try_echo=$ac_try;;
55135 esac
55136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55137   (eval "$ac_try") 2>&5
55138   ac_status=$?
55139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55140   (exit $ac_status); }; }; then
55141   jm_cv_func_gettimeofday_clobber=no
55142 else
55143   echo "$as_me: program exited with status $ac_status" >&5
55144 echo "$as_me: failed program was:" >&5
55145 sed 's/^/| /' conftest.$ac_ext >&5
55146
55147 ( exit $ac_status )
55148 jm_cv_func_gettimeofday_clobber=yes
55149 fi
55150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55151 fi
55152
55153
55154
55155 fi
55156 { echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
55157 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6; }
55158   if test $jm_cv_func_gettimeofday_clobber = yes; then
55159
55160   case " $LIBOBJS " in
55161   *" gettimeofday.$ac_objext "* ) ;;
55162   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
55163  ;;
55164 esac
55165
55166
55167 cat >>confdefs.h <<\_ACEOF
55168 #define gmtime rpl_gmtime
55169 _ACEOF
55170
55171
55172 cat >>confdefs.h <<\_ACEOF
55173 #define localtime rpl_localtime
55174 _ACEOF
55175
55176
55177
55178
55179 cat >>confdefs.h <<\_ACEOF
55180 #define gettimeofday rpl_gettimeofday
55181 _ACEOF
55182
55183
55184
55185
55186   fi
55187
55188   # used by shred
55189
55190
55191
55192
55193
55194
55195
55196
55197
55198
55199
55200
55201
55202
55203
55204
55205
55206
55207
55208
55209
55210
55211
55212
55213
55214
55215
55216
55217
55218
55219
55220
55221
55222
55223
55224
55225
55226
55227
55228
55229
55230
55231
55232
55233
55234
55235
55236
55237
55238
55239
55240
55241
55242
55243
55244
55245
55246
55247
55248
55249   { echo "$as_me:$LINENO: checking for working strtod" >&5
55250 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
55251 if test "${ac_cv_func_strtod+set}" = set; then
55252   echo $ECHO_N "(cached) $ECHO_C" >&6
55253 else
55254   if test "$cross_compiling" = yes; then
55255   ac_cv_func_strtod=no
55256 else
55257   cat >conftest.$ac_ext <<_ACEOF
55258 /* confdefs.h.  */
55259 _ACEOF
55260 cat confdefs.h >>conftest.$ac_ext
55261 cat >>conftest.$ac_ext <<_ACEOF
55262 /* end confdefs.h.  */
55263
55264 $ac_includes_default
55265 #ifndef strtod
55266 double strtod ();
55267 #endif
55268 int
55269 main()
55270 {
55271   {
55272     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
55273     char *string = " +69";
55274     char *term;
55275     double value;
55276     value = strtod (string, &term);
55277     if (value != 69 || term != (string + 4))
55278       return 1;
55279   }
55280
55281   {
55282     /* Under Solaris 2.4, strtod returns the wrong value for the
55283        terminating character under some conditions.  */
55284     char *string = "NaN";
55285     char *term;
55286     strtod (string, &term);
55287     if (term != string && *(term - 1) == 0)
55288       return 1;
55289   }
55290   return 0;
55291 }
55292
55293 _ACEOF
55294 rm -f conftest$ac_exeext
55295 if { (ac_try="$ac_link"
55296 case "(($ac_try" in
55297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55298   *) ac_try_echo=$ac_try;;
55299 esac
55300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55301   (eval "$ac_link") 2>&5
55302   ac_status=$?
55303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55304   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55305   { (case "(($ac_try" in
55306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55307   *) ac_try_echo=$ac_try;;
55308 esac
55309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55310   (eval "$ac_try") 2>&5
55311   ac_status=$?
55312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55313   (exit $ac_status); }; }; then
55314   ac_cv_func_strtod=yes
55315 else
55316   echo "$as_me: program exited with status $ac_status" >&5
55317 echo "$as_me: failed program was:" >&5
55318 sed 's/^/| /' conftest.$ac_ext >&5
55319
55320 ( exit $ac_status )
55321 ac_cv_func_strtod=no
55322 fi
55323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55324 fi
55325
55326
55327 fi
55328 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
55329 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
55330 if test $ac_cv_func_strtod = no; then
55331   case " $LIBOBJS " in
55332   *" strtod.$ac_objext "* ) ;;
55333   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
55334  ;;
55335 esac
55336
55337 { echo "$as_me:$LINENO: checking for pow" >&5
55338 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
55339 if test "${ac_cv_func_pow+set}" = set; then
55340   echo $ECHO_N "(cached) $ECHO_C" >&6
55341 else
55342   cat >conftest.$ac_ext <<_ACEOF
55343 /* confdefs.h.  */
55344 _ACEOF
55345 cat confdefs.h >>conftest.$ac_ext
55346 cat >>conftest.$ac_ext <<_ACEOF
55347 /* end confdefs.h.  */
55348 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
55349    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55350 #define pow innocuous_pow
55351
55352 /* System header to define __stub macros and hopefully few prototypes,
55353     which can conflict with char pow (); below.
55354     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55355     <limits.h> exists even on freestanding compilers.  */
55356
55357 #ifdef __STDC__
55358 # include <limits.h>
55359 #else
55360 # include <assert.h>
55361 #endif
55362
55363 #undef pow
55364
55365 /* Override any GCC internal prototype to avoid an error.
55366    Use char because int might match the return type of a GCC
55367    builtin and then its argument prototype would still apply.  */
55368 #ifdef __cplusplus
55369 extern "C"
55370 #endif
55371 char pow ();
55372 /* The GNU C library defines this for functions which it implements
55373     to always fail with ENOSYS.  Some functions are actually named
55374     something starting with __ and the normal name is an alias.  */
55375 #if defined __stub_pow || defined __stub___pow
55376 choke me
55377 #endif
55378
55379 int
55380 main ()
55381 {
55382 return pow ();
55383   ;
55384   return 0;
55385 }
55386 _ACEOF
55387 rm -f conftest.$ac_objext conftest$ac_exeext
55388 if { (ac_try="$ac_link"
55389 case "(($ac_try" in
55390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55391   *) ac_try_echo=$ac_try;;
55392 esac
55393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55394   (eval "$ac_link") 2>conftest.er1
55395   ac_status=$?
55396   grep -v '^ *+' conftest.er1 >conftest.err
55397   rm -f conftest.er1
55398   cat conftest.err >&5
55399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55400   (exit $ac_status); } &&
55401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55402   { (case "(($ac_try" in
55403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55404   *) ac_try_echo=$ac_try;;
55405 esac
55406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55407   (eval "$ac_try") 2>&5
55408   ac_status=$?
55409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55410   (exit $ac_status); }; } &&
55411          { ac_try='test -s conftest$ac_exeext'
55412   { (case "(($ac_try" in
55413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55414   *) ac_try_echo=$ac_try;;
55415 esac
55416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55417   (eval "$ac_try") 2>&5
55418   ac_status=$?
55419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55420   (exit $ac_status); }; }; then
55421   ac_cv_func_pow=yes
55422 else
55423   echo "$as_me: failed program was:" >&5
55424 sed 's/^/| /' conftest.$ac_ext >&5
55425
55426         ac_cv_func_pow=no
55427 fi
55428
55429 rm -f core conftest.err conftest.$ac_objext \
55430       conftest$ac_exeext conftest.$ac_ext
55431 fi
55432 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
55433 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
55434
55435 if test $ac_cv_func_pow = no; then
55436   { echo "$as_me:$LINENO: checking for pow in -lm" >&5
55437 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
55438 if test "${ac_cv_lib_m_pow+set}" = set; then
55439   echo $ECHO_N "(cached) $ECHO_C" >&6
55440 else
55441   ac_check_lib_save_LIBS=$LIBS
55442 LIBS="-lm  $LIBS"
55443 cat >conftest.$ac_ext <<_ACEOF
55444 /* confdefs.h.  */
55445 _ACEOF
55446 cat confdefs.h >>conftest.$ac_ext
55447 cat >>conftest.$ac_ext <<_ACEOF
55448 /* end confdefs.h.  */
55449
55450 /* Override any GCC internal prototype to avoid an error.
55451    Use char because int might match the return type of a GCC
55452    builtin and then its argument prototype would still apply.  */
55453 #ifdef __cplusplus
55454 extern "C"
55455 #endif
55456 char pow ();
55457 int
55458 main ()
55459 {
55460 return pow ();
55461   ;
55462   return 0;
55463 }
55464 _ACEOF
55465 rm -f conftest.$ac_objext conftest$ac_exeext
55466 if { (ac_try="$ac_link"
55467 case "(($ac_try" in
55468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55469   *) ac_try_echo=$ac_try;;
55470 esac
55471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55472   (eval "$ac_link") 2>conftest.er1
55473   ac_status=$?
55474   grep -v '^ *+' conftest.er1 >conftest.err
55475   rm -f conftest.er1
55476   cat conftest.err >&5
55477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55478   (exit $ac_status); } &&
55479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55480   { (case "(($ac_try" in
55481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55482   *) ac_try_echo=$ac_try;;
55483 esac
55484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55485   (eval "$ac_try") 2>&5
55486   ac_status=$?
55487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55488   (exit $ac_status); }; } &&
55489          { ac_try='test -s conftest$ac_exeext'
55490   { (case "(($ac_try" in
55491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55492   *) ac_try_echo=$ac_try;;
55493 esac
55494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55495   (eval "$ac_try") 2>&5
55496   ac_status=$?
55497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55498   (exit $ac_status); }; }; then
55499   ac_cv_lib_m_pow=yes
55500 else
55501   echo "$as_me: failed program was:" >&5
55502 sed 's/^/| /' conftest.$ac_ext >&5
55503
55504         ac_cv_lib_m_pow=no
55505 fi
55506
55507 rm -f core conftest.err conftest.$ac_objext \
55508       conftest$ac_exeext conftest.$ac_ext
55509 LIBS=$ac_check_lib_save_LIBS
55510 fi
55511 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
55512 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
55513 if test $ac_cv_lib_m_pow = yes; then
55514   POW_LIB=-lm
55515 else
55516   { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
55517 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
55518 fi
55519
55520 fi
55521
55522 fi
55523
55524
55525
55526
55527   # for dd.c and shred.c
55528   coreutils_saved_libs=$LIBS
55529     { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
55530 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
55531 if test "${ac_cv_search_fdatasync+set}" = set; then
55532   echo $ECHO_N "(cached) $ECHO_C" >&6
55533 else
55534   ac_func_search_save_LIBS=$LIBS
55535 cat >conftest.$ac_ext <<_ACEOF
55536 /* confdefs.h.  */
55537 _ACEOF
55538 cat confdefs.h >>conftest.$ac_ext
55539 cat >>conftest.$ac_ext <<_ACEOF
55540 /* end confdefs.h.  */
55541
55542 /* Override any GCC internal prototype to avoid an error.
55543    Use char because int might match the return type of a GCC
55544    builtin and then its argument prototype would still apply.  */
55545 #ifdef __cplusplus
55546 extern "C"
55547 #endif
55548 char fdatasync ();
55549 int
55550 main ()
55551 {
55552 return fdatasync ();
55553   ;
55554   return 0;
55555 }
55556 _ACEOF
55557 for ac_lib in '' rt posix4; do
55558   if test -z "$ac_lib"; then
55559     ac_res="none required"
55560   else
55561     ac_res=-l$ac_lib
55562     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
55563   fi
55564   rm -f conftest.$ac_objext conftest$ac_exeext
55565 if { (ac_try="$ac_link"
55566 case "(($ac_try" in
55567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55568   *) ac_try_echo=$ac_try;;
55569 esac
55570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55571   (eval "$ac_link") 2>conftest.er1
55572   ac_status=$?
55573   grep -v '^ *+' conftest.er1 >conftest.err
55574   rm -f conftest.er1
55575   cat conftest.err >&5
55576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55577   (exit $ac_status); } &&
55578          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55579   { (case "(($ac_try" in
55580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55581   *) ac_try_echo=$ac_try;;
55582 esac
55583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55584   (eval "$ac_try") 2>&5
55585   ac_status=$?
55586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55587   (exit $ac_status); }; } &&
55588          { ac_try='test -s conftest$ac_exeext'
55589   { (case "(($ac_try" in
55590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55591   *) ac_try_echo=$ac_try;;
55592 esac
55593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55594   (eval "$ac_try") 2>&5
55595   ac_status=$?
55596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55597   (exit $ac_status); }; }; then
55598   ac_cv_search_fdatasync=$ac_res
55599 else
55600   echo "$as_me: failed program was:" >&5
55601 sed 's/^/| /' conftest.$ac_ext >&5
55602
55603
55604 fi
55605
55606 rm -f core conftest.err conftest.$ac_objext \
55607       conftest$ac_exeext
55608   if test "${ac_cv_search_fdatasync+set}" = set; then
55609   break
55610 fi
55611 done
55612 if test "${ac_cv_search_fdatasync+set}" = set; then
55613   :
55614 else
55615   ac_cv_search_fdatasync=no
55616 fi
55617 rm conftest.$ac_ext
55618 LIBS=$ac_func_search_save_LIBS
55619 fi
55620 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
55621 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
55622 ac_res=$ac_cv_search_fdatasync
55623 if test "$ac_res" != no; then
55624   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
55625   test "$ac_cv_search_fdatasync" = "none required" ||
55626                     LIB_FDATASYNC=$ac_cv_search_fdatasync
55627 fi
55628
55629
55630
55631 for ac_func in fdatasync
55632 do
55633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55634 { echo "$as_me:$LINENO: checking for $ac_func" >&5
55635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
55636 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55637   echo $ECHO_N "(cached) $ECHO_C" >&6
55638 else
55639   cat >conftest.$ac_ext <<_ACEOF
55640 /* confdefs.h.  */
55641 _ACEOF
55642 cat confdefs.h >>conftest.$ac_ext
55643 cat >>conftest.$ac_ext <<_ACEOF
55644 /* end confdefs.h.  */
55645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55646    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55647 #define $ac_func innocuous_$ac_func
55648
55649 /* System header to define __stub macros and hopefully few prototypes,
55650     which can conflict with char $ac_func (); below.
55651     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55652     <limits.h> exists even on freestanding compilers.  */
55653
55654 #ifdef __STDC__
55655 # include <limits.h>
55656 #else
55657 # include <assert.h>
55658 #endif
55659
55660 #undef $ac_func
55661
55662 /* Override any GCC internal prototype to avoid an error.
55663    Use char because int might match the return type of a GCC
55664    builtin and then its argument prototype would still apply.  */
55665 #ifdef __cplusplus
55666 extern "C"
55667 #endif
55668 char $ac_func ();
55669 /* The GNU C library defines this for functions which it implements
55670     to always fail with ENOSYS.  Some functions are actually named
55671     something starting with __ and the normal name is an alias.  */
55672 #if defined __stub_$ac_func || defined __stub___$ac_func
55673 choke me
55674 #endif
55675
55676 int
55677 main ()
55678 {
55679 return $ac_func ();
55680   ;
55681   return 0;
55682 }
55683 _ACEOF
55684 rm -f conftest.$ac_objext conftest$ac_exeext
55685 if { (ac_try="$ac_link"
55686 case "(($ac_try" in
55687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55688   *) ac_try_echo=$ac_try;;
55689 esac
55690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55691   (eval "$ac_link") 2>conftest.er1
55692   ac_status=$?
55693   grep -v '^ *+' conftest.er1 >conftest.err
55694   rm -f conftest.er1
55695   cat conftest.err >&5
55696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55697   (exit $ac_status); } &&
55698          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55699   { (case "(($ac_try" in
55700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55701   *) ac_try_echo=$ac_try;;
55702 esac
55703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55704   (eval "$ac_try") 2>&5
55705   ac_status=$?
55706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55707   (exit $ac_status); }; } &&
55708          { ac_try='test -s conftest$ac_exeext'
55709   { (case "(($ac_try" in
55710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55711   *) ac_try_echo=$ac_try;;
55712 esac
55713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55714   (eval "$ac_try") 2>&5
55715   ac_status=$?
55716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55717   (exit $ac_status); }; }; then
55718   eval "$as_ac_var=yes"
55719 else
55720   echo "$as_me: failed program was:" >&5
55721 sed 's/^/| /' conftest.$ac_ext >&5
55722
55723         eval "$as_ac_var=no"
55724 fi
55725
55726 rm -f core conftest.err conftest.$ac_objext \
55727       conftest$ac_exeext conftest.$ac_ext
55728 fi
55729 ac_res=`eval echo '${'$as_ac_var'}'`
55730                { echo "$as_me:$LINENO: result: $ac_res" >&5
55731 echo "${ECHO_T}$ac_res" >&6; }
55732 if test `eval echo '${'$as_ac_var'}'` = yes; then
55733   cat >>confdefs.h <<_ACEOF
55734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55735 _ACEOF
55736
55737 fi
55738 done
55739
55740   LIBS=$coreutils_saved_libs
55741
55742   # See if linking `seq' requires -lm.
55743   # It does on nearly every system.  The single exception (so far) is
55744   # BeOS which has all the math functions in the normal runtime library
55745   # and doesn't have a separate math library.
55746
55747
55748   ac_seq_body='
55749      static double x, y;
55750      x = floor (x);
55751      x = rint (x);
55752      x = modf (x, &y);'
55753   cat >conftest.$ac_ext <<_ACEOF
55754 /* confdefs.h.  */
55755 _ACEOF
55756 cat confdefs.h >>conftest.$ac_ext
55757 cat >>conftest.$ac_ext <<_ACEOF
55758 /* end confdefs.h.  */
55759 #include <math.h>
55760 int
55761 main ()
55762 {
55763 $ac_seq_body
55764   ;
55765   return 0;
55766 }
55767 _ACEOF
55768 rm -f conftest.$ac_objext conftest$ac_exeext
55769 if { (ac_try="$ac_link"
55770 case "(($ac_try" in
55771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55772   *) ac_try_echo=$ac_try;;
55773 esac
55774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55775   (eval "$ac_link") 2>conftest.er1
55776   ac_status=$?
55777   grep -v '^ *+' conftest.er1 >conftest.err
55778   rm -f conftest.er1
55779   cat conftest.err >&5
55780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55781   (exit $ac_status); } &&
55782          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55783   { (case "(($ac_try" in
55784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55785   *) ac_try_echo=$ac_try;;
55786 esac
55787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55788   (eval "$ac_try") 2>&5
55789   ac_status=$?
55790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55791   (exit $ac_status); }; } &&
55792          { ac_try='test -s conftest$ac_exeext'
55793   { (case "(($ac_try" in
55794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55795   *) ac_try_echo=$ac_try;;
55796 esac
55797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55798   (eval "$ac_try") 2>&5
55799   ac_status=$?
55800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55801   (exit $ac_status); }; }; then
55802   :
55803 else
55804   echo "$as_me: failed program was:" >&5
55805 sed 's/^/| /' conftest.$ac_ext >&5
55806
55807         ac_seq_save_LIBS="$LIBS"
55808      LIBS="$LIBS -lm"
55809      cat >conftest.$ac_ext <<_ACEOF
55810 /* confdefs.h.  */
55811 _ACEOF
55812 cat confdefs.h >>conftest.$ac_ext
55813 cat >>conftest.$ac_ext <<_ACEOF
55814 /* end confdefs.h.  */
55815 #include <math.h>
55816 int
55817 main ()
55818 {
55819 $ac_seq_body
55820   ;
55821   return 0;
55822 }
55823 _ACEOF
55824 rm -f conftest.$ac_objext conftest$ac_exeext
55825 if { (ac_try="$ac_link"
55826 case "(($ac_try" in
55827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55828   *) ac_try_echo=$ac_try;;
55829 esac
55830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55831   (eval "$ac_link") 2>conftest.er1
55832   ac_status=$?
55833   grep -v '^ *+' conftest.er1 >conftest.err
55834   rm -f conftest.er1
55835   cat conftest.err >&5
55836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55837   (exit $ac_status); } &&
55838          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55839   { (case "(($ac_try" in
55840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55841   *) ac_try_echo=$ac_try;;
55842 esac
55843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55844   (eval "$ac_try") 2>&5
55845   ac_status=$?
55846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55847   (exit $ac_status); }; } &&
55848          { ac_try='test -s conftest$ac_exeext'
55849   { (case "(($ac_try" in
55850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55851   *) ac_try_echo=$ac_try;;
55852 esac
55853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55854   (eval "$ac_try") 2>&5
55855   ac_status=$?
55856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55857   (exit $ac_status); }; }; then
55858   SEQ_LIBM=-lm
55859 else
55860   echo "$as_me: failed program was:" >&5
55861 sed 's/^/| /' conftest.$ac_ext >&5
55862
55863
55864 fi
55865
55866 rm -f core conftest.err conftest.$ac_objext \
55867       conftest$ac_exeext conftest.$ac_ext
55868      LIBS="$ac_seq_save_LIBS"
55869
55870 fi
55871
55872 rm -f core conftest.err conftest.$ac_objext \
55873       conftest$ac_exeext conftest.$ac_ext
55874
55875
55876
55877
55878
55879
55880
55881
55882           am_save_CPPFLAGS="$CPPFLAGS"
55883
55884   for element in $INCICONV; do
55885     haveit=
55886     for x in $CPPFLAGS; do
55887
55888   acl_save_prefix="$prefix"
55889   prefix="$acl_final_prefix"
55890   acl_save_exec_prefix="$exec_prefix"
55891   exec_prefix="$acl_final_exec_prefix"
55892   eval x=\"$x\"
55893   exec_prefix="$acl_save_exec_prefix"
55894   prefix="$acl_save_prefix"
55895
55896       if test "X$x" = "X$element"; then
55897         haveit=yes
55898         break
55899       fi
55900     done
55901     if test -z "$haveit"; then
55902       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
55903     fi
55904   done
55905
55906
55907   { echo "$as_me:$LINENO: checking for iconv" >&5
55908 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
55909 if test "${am_cv_func_iconv+set}" = set; then
55910   echo $ECHO_N "(cached) $ECHO_C" >&6
55911 else
55912
55913     am_cv_func_iconv="no, consider installing GNU libiconv"
55914     am_cv_lib_iconv=no
55915     cat >conftest.$ac_ext <<_ACEOF
55916 /* confdefs.h.  */
55917 _ACEOF
55918 cat confdefs.h >>conftest.$ac_ext
55919 cat >>conftest.$ac_ext <<_ACEOF
55920 /* end confdefs.h.  */
55921 #include <stdlib.h>
55922 #include <iconv.h>
55923 int
55924 main ()
55925 {
55926 iconv_t cd = iconv_open("","");
55927        iconv(cd,NULL,NULL,NULL,NULL);
55928        iconv_close(cd);
55929   ;
55930   return 0;
55931 }
55932 _ACEOF
55933 rm -f conftest.$ac_objext conftest$ac_exeext
55934 if { (ac_try="$ac_link"
55935 case "(($ac_try" in
55936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55937   *) ac_try_echo=$ac_try;;
55938 esac
55939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55940   (eval "$ac_link") 2>conftest.er1
55941   ac_status=$?
55942   grep -v '^ *+' conftest.er1 >conftest.err
55943   rm -f conftest.er1
55944   cat conftest.err >&5
55945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55946   (exit $ac_status); } &&
55947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55948   { (case "(($ac_try" in
55949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55950   *) ac_try_echo=$ac_try;;
55951 esac
55952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55953   (eval "$ac_try") 2>&5
55954   ac_status=$?
55955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55956   (exit $ac_status); }; } &&
55957          { ac_try='test -s conftest$ac_exeext'
55958   { (case "(($ac_try" in
55959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55960   *) ac_try_echo=$ac_try;;
55961 esac
55962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55963   (eval "$ac_try") 2>&5
55964   ac_status=$?
55965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55966   (exit $ac_status); }; }; then
55967   am_cv_func_iconv=yes
55968 else
55969   echo "$as_me: failed program was:" >&5
55970 sed 's/^/| /' conftest.$ac_ext >&5
55971
55972
55973 fi
55974
55975 rm -f core conftest.err conftest.$ac_objext \
55976       conftest$ac_exeext conftest.$ac_ext
55977     if test "$am_cv_func_iconv" != yes; then
55978       am_save_LIBS="$LIBS"
55979       LIBS="$LIBS $LIBICONV"
55980       cat >conftest.$ac_ext <<_ACEOF
55981 /* confdefs.h.  */
55982 _ACEOF
55983 cat confdefs.h >>conftest.$ac_ext
55984 cat >>conftest.$ac_ext <<_ACEOF
55985 /* end confdefs.h.  */
55986 #include <stdlib.h>
55987 #include <iconv.h>
55988 int
55989 main ()
55990 {
55991 iconv_t cd = iconv_open("","");
55992          iconv(cd,NULL,NULL,NULL,NULL);
55993          iconv_close(cd);
55994   ;
55995   return 0;
55996 }
55997 _ACEOF
55998 rm -f conftest.$ac_objext conftest$ac_exeext
55999 if { (ac_try="$ac_link"
56000 case "(($ac_try" in
56001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56002   *) ac_try_echo=$ac_try;;
56003 esac
56004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56005   (eval "$ac_link") 2>conftest.er1
56006   ac_status=$?
56007   grep -v '^ *+' conftest.er1 >conftest.err
56008   rm -f conftest.er1
56009   cat conftest.err >&5
56010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56011   (exit $ac_status); } &&
56012          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56013   { (case "(($ac_try" in
56014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56015   *) ac_try_echo=$ac_try;;
56016 esac
56017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56018   (eval "$ac_try") 2>&5
56019   ac_status=$?
56020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56021   (exit $ac_status); }; } &&
56022          { ac_try='test -s conftest$ac_exeext'
56023   { (case "(($ac_try" in
56024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56025   *) ac_try_echo=$ac_try;;
56026 esac
56027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56028   (eval "$ac_try") 2>&5
56029   ac_status=$?
56030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56031   (exit $ac_status); }; }; then
56032   am_cv_lib_iconv=yes
56033         am_cv_func_iconv=yes
56034 else
56035   echo "$as_me: failed program was:" >&5
56036 sed 's/^/| /' conftest.$ac_ext >&5
56037
56038
56039 fi
56040
56041 rm -f core conftest.err conftest.$ac_objext \
56042       conftest$ac_exeext conftest.$ac_ext
56043       LIBS="$am_save_LIBS"
56044     fi
56045
56046 fi
56047 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
56048 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
56049   if test "$am_cv_func_iconv" = yes; then
56050
56051 cat >>confdefs.h <<\_ACEOF
56052 #define HAVE_ICONV 1
56053 _ACEOF
56054
56055   fi
56056   if test "$am_cv_lib_iconv" = yes; then
56057     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
56058 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
56059     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
56060 echo "${ECHO_T}$LIBICONV" >&6; }
56061   else
56062             CPPFLAGS="$am_save_CPPFLAGS"
56063     LIBICONV=
56064     LTLIBICONV=
56065   fi
56066
56067
56068
56069   if test "$am_cv_func_iconv" = yes; then
56070     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
56071 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
56072     if test "${am_cv_proto_iconv+set}" = set; then
56073   echo $ECHO_N "(cached) $ECHO_C" >&6
56074 else
56075
56076       cat >conftest.$ac_ext <<_ACEOF
56077 /* confdefs.h.  */
56078 _ACEOF
56079 cat confdefs.h >>conftest.$ac_ext
56080 cat >>conftest.$ac_ext <<_ACEOF
56081 /* end confdefs.h.  */
56082
56083 #include <stdlib.h>
56084 #include <iconv.h>
56085 extern
56086 #ifdef __cplusplus
56087 "C"
56088 #endif
56089 #if defined(__STDC__) || defined(__cplusplus)
56090 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
56091 #else
56092 size_t iconv();
56093 #endif
56094
56095 int
56096 main ()
56097 {
56098
56099   ;
56100   return 0;
56101 }
56102 _ACEOF
56103 rm -f conftest.$ac_objext
56104 if { (ac_try="$ac_compile"
56105 case "(($ac_try" in
56106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56107   *) ac_try_echo=$ac_try;;
56108 esac
56109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56110   (eval "$ac_compile") 2>conftest.er1
56111   ac_status=$?
56112   grep -v '^ *+' conftest.er1 >conftest.err
56113   rm -f conftest.er1
56114   cat conftest.err >&5
56115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56116   (exit $ac_status); } &&
56117          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56118   { (case "(($ac_try" in
56119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56120   *) ac_try_echo=$ac_try;;
56121 esac
56122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56123   (eval "$ac_try") 2>&5
56124   ac_status=$?
56125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56126   (exit $ac_status); }; } &&
56127          { ac_try='test -s conftest.$ac_objext'
56128   { (case "(($ac_try" in
56129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56130   *) ac_try_echo=$ac_try;;
56131 esac
56132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56133   (eval "$ac_try") 2>&5
56134   ac_status=$?
56135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56136   (exit $ac_status); }; }; then
56137   am_cv_proto_iconv_arg1=""
56138 else
56139   echo "$as_me: failed program was:" >&5
56140 sed 's/^/| /' conftest.$ac_ext >&5
56141
56142         am_cv_proto_iconv_arg1="const"
56143 fi
56144
56145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56146       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);"
56147 fi
56148
56149     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
56150     { echo "$as_me:$LINENO: result: ${ac_t:-
56151          }$am_cv_proto_iconv" >&5
56152 echo "${ECHO_T}${ac_t:-
56153          }$am_cv_proto_iconv" >&6; }
56154
56155 cat >>confdefs.h <<_ACEOF
56156 #define ICONV_CONST $am_cv_proto_iconv_arg1
56157 _ACEOF
56158
56159   fi
56160
56161     { echo "$as_me:$LINENO: checking whether a running program can be unlinked" >&5
56162 echo $ECHO_N "checking whether a running program can be unlinked... $ECHO_C" >&6; }
56163 if test "${jm_cv_func_unlink_busy_text+set}" = set; then
56164   echo $ECHO_N "(cached) $ECHO_C" >&6
56165 else
56166
56167       if test "$cross_compiling" = yes; then
56168   jm_cv_func_unlink_busy_text=no
56169
56170 else
56171   cat >conftest.$ac_ext <<_ACEOF
56172 /* confdefs.h.  */
56173 _ACEOF
56174 cat confdefs.h >>conftest.$ac_ext
56175 cat >>conftest.$ac_ext <<_ACEOF
56176 /* end confdefs.h.  */
56177 $ac_includes_default
56178             int
56179             main (int argc, char **argv)
56180             {
56181               return !argc || unlink (argv0) != 0;
56182             }
56183 _ACEOF
56184 rm -f conftest$ac_exeext
56185 if { (ac_try="$ac_link"
56186 case "(($ac_try" in
56187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56188   *) ac_try_echo=$ac_try;;
56189 esac
56190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56191   (eval "$ac_link") 2>&5
56192   ac_status=$?
56193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56194   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56195   { (case "(($ac_try" in
56196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56197   *) ac_try_echo=$ac_try;;
56198 esac
56199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56200   (eval "$ac_try") 2>&5
56201   ac_status=$?
56202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56203   (exit $ac_status); }; }; then
56204   jm_cv_func_unlink_busy_text=yes
56205 else
56206   echo "$as_me: program exited with status $ac_status" >&5
56207 echo "$as_me: failed program was:" >&5
56208 sed 's/^/| /' conftest.$ac_ext >&5
56209
56210 ( exit $ac_status )
56211 jm_cv_func_unlink_busy_text=no
56212 fi
56213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56214 fi
56215
56216
56217
56218
56219 fi
56220 { echo "$as_me:$LINENO: result: $jm_cv_func_unlink_busy_text" >&5
56221 echo "${ECHO_T}$jm_cv_func_unlink_busy_text" >&6; }
56222
56223   if test $jm_cv_func_unlink_busy_text = no; then
56224     INSTALL=$ac_install_sh
56225   fi
56226
56227
56228   # These tests are for df.
56229
56230
56231   if test $gl_cv_list_mounted_fs = yes && test $gl_cv_fs_space = yes; then
56232     DF_PROG='df$(EXEEXT)'
56233   fi
56234
56235
56236
56237   # If any of these functions don't exist (e.g. DJGPP 2.03),
56238   # use the corresponding stub.
56239   { echo "$as_me:$LINENO: checking for fchdir" >&5
56240 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
56241 if test "${ac_cv_func_fchdir+set}" = set; then
56242   echo $ECHO_N "(cached) $ECHO_C" >&6
56243 else
56244   cat >conftest.$ac_ext <<_ACEOF
56245 /* confdefs.h.  */
56246 _ACEOF
56247 cat confdefs.h >>conftest.$ac_ext
56248 cat >>conftest.$ac_ext <<_ACEOF
56249 /* end confdefs.h.  */
56250 /* Define fchdir to an innocuous variant, in case <limits.h> declares fchdir.
56251    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56252 #define fchdir innocuous_fchdir
56253
56254 /* System header to define __stub macros and hopefully few prototypes,
56255     which can conflict with char fchdir (); below.
56256     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56257     <limits.h> exists even on freestanding compilers.  */
56258
56259 #ifdef __STDC__
56260 # include <limits.h>
56261 #else
56262 # include <assert.h>
56263 #endif
56264
56265 #undef fchdir
56266
56267 /* Override any GCC internal prototype to avoid an error.
56268    Use char because int might match the return type of a GCC
56269    builtin and then its argument prototype would still apply.  */
56270 #ifdef __cplusplus
56271 extern "C"
56272 #endif
56273 char fchdir ();
56274 /* The GNU C library defines this for functions which it implements
56275     to always fail with ENOSYS.  Some functions are actually named
56276     something starting with __ and the normal name is an alias.  */
56277 #if defined __stub_fchdir || defined __stub___fchdir
56278 choke me
56279 #endif
56280
56281 int
56282 main ()
56283 {
56284 return fchdir ();
56285   ;
56286   return 0;
56287 }
56288 _ACEOF
56289 rm -f conftest.$ac_objext conftest$ac_exeext
56290 if { (ac_try="$ac_link"
56291 case "(($ac_try" in
56292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56293   *) ac_try_echo=$ac_try;;
56294 esac
56295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56296   (eval "$ac_link") 2>conftest.er1
56297   ac_status=$?
56298   grep -v '^ *+' conftest.er1 >conftest.err
56299   rm -f conftest.er1
56300   cat conftest.err >&5
56301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56302   (exit $ac_status); } &&
56303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56304   { (case "(($ac_try" in
56305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56306   *) ac_try_echo=$ac_try;;
56307 esac
56308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56309   (eval "$ac_try") 2>&5
56310   ac_status=$?
56311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56312   (exit $ac_status); }; } &&
56313          { ac_try='test -s conftest$ac_exeext'
56314   { (case "(($ac_try" in
56315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56316   *) ac_try_echo=$ac_try;;
56317 esac
56318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56319   (eval "$ac_try") 2>&5
56320   ac_status=$?
56321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56322   (exit $ac_status); }; }; then
56323   ac_cv_func_fchdir=yes
56324 else
56325   echo "$as_me: failed program was:" >&5
56326 sed 's/^/| /' conftest.$ac_ext >&5
56327
56328         ac_cv_func_fchdir=no
56329 fi
56330
56331 rm -f core conftest.err conftest.$ac_objext \
56332       conftest$ac_exeext conftest.$ac_ext
56333 fi
56334 { echo "$as_me:$LINENO: result: $ac_cv_func_fchdir" >&5
56335 echo "${ECHO_T}$ac_cv_func_fchdir" >&6; }
56336 if test $ac_cv_func_fchdir = yes; then
56337   :
56338 else
56339   case " $LIBOBJS " in
56340   *" fchdir-stub.$ac_objext "* ) ;;
56341   *) LIBOBJS="$LIBOBJS fchdir-stub.$ac_objext"
56342  ;;
56343 esac
56344
56345 fi
56346
56347
56348
56349
56350
56351
56352
56353
56354
56355
56356
56357
56358
56359 { echo "$as_me:$LINENO: checking POSIX termios" >&5
56360 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
56361 if test "${ac_cv_sys_posix_termios+set}" = set; then
56362   echo $ECHO_N "(cached) $ECHO_C" >&6
56363 else
56364   cat >conftest.$ac_ext <<_ACEOF
56365 /* confdefs.h.  */
56366 _ACEOF
56367 cat confdefs.h >>conftest.$ac_ext
56368 cat >>conftest.$ac_ext <<_ACEOF
56369 /* end confdefs.h.  */
56370 #include <sys/types.h>
56371 #include <unistd.h>
56372 #include <termios.h>
56373
56374 int
56375 main ()
56376 {
56377 /* SunOS 4.0.3 has termios.h but not the library calls.  */
56378    tcgetattr(0, 0);
56379   ;
56380   return 0;
56381 }
56382 _ACEOF
56383 rm -f conftest.$ac_objext conftest$ac_exeext
56384 if { (ac_try="$ac_link"
56385 case "(($ac_try" in
56386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56387   *) ac_try_echo=$ac_try;;
56388 esac
56389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56390   (eval "$ac_link") 2>conftest.er1
56391   ac_status=$?
56392   grep -v '^ *+' conftest.er1 >conftest.err
56393   rm -f conftest.er1
56394   cat conftest.err >&5
56395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56396   (exit $ac_status); } &&
56397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56398   { (case "(($ac_try" in
56399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56400   *) ac_try_echo=$ac_try;;
56401 esac
56402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56403   (eval "$ac_try") 2>&5
56404   ac_status=$?
56405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56406   (exit $ac_status); }; } &&
56407          { ac_try='test -s conftest$ac_exeext'
56408   { (case "(($ac_try" in
56409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56410   *) ac_try_echo=$ac_try;;
56411 esac
56412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56413   (eval "$ac_try") 2>&5
56414   ac_status=$?
56415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56416   (exit $ac_status); }; }; then
56417   ac_cv_sys_posix_termios=yes
56418 else
56419   echo "$as_me: failed program was:" >&5
56420 sed 's/^/| /' conftest.$ac_ext >&5
56421
56422         ac_cv_sys_posix_termios=no
56423 fi
56424
56425 rm -f core conftest.err conftest.$ac_objext \
56426       conftest$ac_exeext conftest.$ac_ext
56427 fi
56428 { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
56429 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
56430
56431
56432    { echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
56433 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6; }
56434 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
56435   echo $ECHO_N "(cached) $ECHO_C" >&6
56436 else
56437   jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
56438       if test $ac_cv_sys_posix_termios = yes; then
56439         cat >conftest.$ac_ext <<_ACEOF
56440 /* confdefs.h.  */
56441 _ACEOF
56442 cat confdefs.h >>conftest.$ac_ext
56443 cat >>conftest.$ac_ext <<_ACEOF
56444 /* end confdefs.h.  */
56445 #include <termios.h>
56446           struct winsize x;
56447 int
56448 main ()
56449 {
56450 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
56451   ;
56452   return 0;
56453 }
56454 _ACEOF
56455 rm -f conftest.$ac_objext
56456 if { (ac_try="$ac_compile"
56457 case "(($ac_try" in
56458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56459   *) ac_try_echo=$ac_try;;
56460 esac
56461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56462   (eval "$ac_compile") 2>conftest.er1
56463   ac_status=$?
56464   grep -v '^ *+' conftest.er1 >conftest.err
56465   rm -f conftest.er1
56466   cat conftest.err >&5
56467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56468   (exit $ac_status); } &&
56469          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56470   { (case "(($ac_try" in
56471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56472   *) ac_try_echo=$ac_try;;
56473 esac
56474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56475   (eval "$ac_try") 2>&5
56476   ac_status=$?
56477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56478   (exit $ac_status); }; } &&
56479          { ac_try='test -s conftest.$ac_objext'
56480   { (case "(($ac_try" in
56481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56482   *) ac_try_echo=$ac_try;;
56483 esac
56484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56485   (eval "$ac_try") 2>&5
56486   ac_status=$?
56487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56488   (exit $ac_status); }; }; then
56489   :
56490 else
56491   echo "$as_me: failed program was:" >&5
56492 sed 's/^/| /' conftest.$ac_ext >&5
56493
56494
56495 fi
56496
56497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56498       fi
56499       if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
56500         cat >conftest.$ac_ext <<_ACEOF
56501 /* confdefs.h.  */
56502 _ACEOF
56503 cat confdefs.h >>conftest.$ac_ext
56504 cat >>conftest.$ac_ext <<_ACEOF
56505 /* end confdefs.h.  */
56506 #include <sys/ptem.h>
56507 int
56508 main ()
56509 {
56510 struct winsize x;
56511   ;
56512   return 0;
56513 }
56514 _ACEOF
56515 rm -f conftest.$ac_objext
56516 if { (ac_try="$ac_compile"
56517 case "(($ac_try" in
56518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56519   *) ac_try_echo=$ac_try;;
56520 esac
56521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56522   (eval "$ac_compile") 2>conftest.er1
56523   ac_status=$?
56524   grep -v '^ *+' conftest.er1 >conftest.err
56525   rm -f conftest.er1
56526   cat conftest.err >&5
56527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56528   (exit $ac_status); } &&
56529          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56530   { (case "(($ac_try" in
56531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56532   *) ac_try_echo=$ac_try;;
56533 esac
56534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56535   (eval "$ac_try") 2>&5
56536   ac_status=$?
56537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56538   (exit $ac_status); }; } &&
56539          { ac_try='test -s conftest.$ac_objext'
56540   { (case "(($ac_try" in
56541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56542   *) ac_try_echo=$ac_try;;
56543 esac
56544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56545   (eval "$ac_try") 2>&5
56546   ac_status=$?
56547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56548   (exit $ac_status); }; }; then
56549   :
56550 else
56551   echo "$as_me: failed program was:" >&5
56552 sed 's/^/| /' conftest.$ac_ext >&5
56553
56554         jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
56555 fi
56556
56557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56558       fi
56559 fi
56560 { echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
56561 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6; }
56562    if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
56563
56564 cat >>confdefs.h <<\_ACEOF
56565 #define WINSIZE_IN_PTEM 1
56566 _ACEOF
56567
56568    fi
56569
56570 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
56571 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
56572 if test "${utils_cv_localtime_cache+set}" = set; then
56573   echo $ECHO_N "(cached) $ECHO_C" >&6
56574 else
56575   if test x$ac_cv_func_tzset = xyes; then
56576 if test "$cross_compiling" = yes; then
56577   # If we have tzset, assume the worst when cross-compiling.
56578 utils_cv_localtime_cache=yes
56579 else
56580   cat >conftest.$ac_ext <<_ACEOF
56581 /* confdefs.h.  */
56582 _ACEOF
56583 cat confdefs.h >>conftest.$ac_ext
56584 cat >>conftest.$ac_ext <<_ACEOF
56585 /* end confdefs.h.  */
56586 #include <time.h>
56587 #if STDC_HEADERS
56588 # include <stdlib.h>
56589 #endif
56590 extern char **environ;
56591 unset_TZ ()
56592 {
56593   char **from, **to;
56594   for (to = from = environ; (*to = *from); from++)
56595     if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
56596       to++;
56597 }
56598 main()
56599 {
56600   time_t now = time ((time_t *) 0);
56601   int hour_GMT0, hour_unset;
56602   if (putenv ("TZ=GMT0") != 0)
56603     exit (1);
56604   hour_GMT0 = localtime (&now)->tm_hour;
56605   unset_TZ ();
56606   hour_unset = localtime (&now)->tm_hour;
56607   if (putenv ("TZ=PST8") != 0)
56608     exit (1);
56609   if (localtime (&now)->tm_hour == hour_GMT0)
56610     exit (1);
56611   unset_TZ ();
56612   if (localtime (&now)->tm_hour != hour_unset)
56613     exit (1);
56614   exit (0);
56615 }
56616 _ACEOF
56617 rm -f conftest$ac_exeext
56618 if { (ac_try="$ac_link"
56619 case "(($ac_try" in
56620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56621   *) ac_try_echo=$ac_try;;
56622 esac
56623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56624   (eval "$ac_link") 2>&5
56625   ac_status=$?
56626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56627   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56628   { (case "(($ac_try" in
56629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56630   *) ac_try_echo=$ac_try;;
56631 esac
56632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56633   (eval "$ac_try") 2>&5
56634   ac_status=$?
56635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56636   (exit $ac_status); }; }; then
56637   utils_cv_localtime_cache=no
56638 else
56639   echo "$as_me: program exited with status $ac_status" >&5
56640 echo "$as_me: failed program was:" >&5
56641 sed 's/^/| /' conftest.$ac_ext >&5
56642
56643 ( exit $ac_status )
56644 utils_cv_localtime_cache=yes
56645 fi
56646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56647 fi
56648
56649
56650 else
56651         # If we lack tzset, report that localtime does not cache TZ,
56652         # since we can't invalidate the cache if we don't have tzset.
56653         utils_cv_localtime_cache=no
56654 fi
56655 fi
56656 { echo "$as_me:$LINENO: result: $utils_cv_localtime_cache" >&5
56657 echo "${ECHO_T}$utils_cv_localtime_cache" >&6; }
56658 if test $utils_cv_localtime_cache = yes; then
56659
56660 cat >>confdefs.h <<\_ACEOF
56661 #define LOCALTIME_CACHE 1
56662 _ACEOF
56663
56664 fi
56665
56666 # SCO-ODT-3.0 is reported to need -los to link programs using initgroups
56667
56668 for ac_func in initgroups
56669 do
56670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56671 { echo "$as_me:$LINENO: checking for $ac_func" >&5
56672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
56673 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56674   echo $ECHO_N "(cached) $ECHO_C" >&6
56675 else
56676   cat >conftest.$ac_ext <<_ACEOF
56677 /* confdefs.h.  */
56678 _ACEOF
56679 cat confdefs.h >>conftest.$ac_ext
56680 cat >>conftest.$ac_ext <<_ACEOF
56681 /* end confdefs.h.  */
56682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56683    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56684 #define $ac_func innocuous_$ac_func
56685
56686 /* System header to define __stub macros and hopefully few prototypes,
56687     which can conflict with char $ac_func (); below.
56688     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56689     <limits.h> exists even on freestanding compilers.  */
56690
56691 #ifdef __STDC__
56692 # include <limits.h>
56693 #else
56694 # include <assert.h>
56695 #endif
56696
56697 #undef $ac_func
56698
56699 /* Override any GCC internal prototype to avoid an error.
56700    Use char because int might match the return type of a GCC
56701    builtin and then its argument prototype would still apply.  */
56702 #ifdef __cplusplus
56703 extern "C"
56704 #endif
56705 char $ac_func ();
56706 /* The GNU C library defines this for functions which it implements
56707     to always fail with ENOSYS.  Some functions are actually named
56708     something starting with __ and the normal name is an alias.  */
56709 #if defined __stub_$ac_func || defined __stub___$ac_func
56710 choke me
56711 #endif
56712
56713 int
56714 main ()
56715 {
56716 return $ac_func ();
56717   ;
56718   return 0;
56719 }
56720 _ACEOF
56721 rm -f conftest.$ac_objext conftest$ac_exeext
56722 if { (ac_try="$ac_link"
56723 case "(($ac_try" in
56724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56725   *) ac_try_echo=$ac_try;;
56726 esac
56727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56728   (eval "$ac_link") 2>conftest.er1
56729   ac_status=$?
56730   grep -v '^ *+' conftest.er1 >conftest.err
56731   rm -f conftest.er1
56732   cat conftest.err >&5
56733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56734   (exit $ac_status); } &&
56735          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56736   { (case "(($ac_try" in
56737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56738   *) ac_try_echo=$ac_try;;
56739 esac
56740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56741   (eval "$ac_try") 2>&5
56742   ac_status=$?
56743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56744   (exit $ac_status); }; } &&
56745          { ac_try='test -s conftest$ac_exeext'
56746   { (case "(($ac_try" in
56747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56748   *) ac_try_echo=$ac_try;;
56749 esac
56750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56751   (eval "$ac_try") 2>&5
56752   ac_status=$?
56753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56754   (exit $ac_status); }; }; then
56755   eval "$as_ac_var=yes"
56756 else
56757   echo "$as_me: failed program was:" >&5
56758 sed 's/^/| /' conftest.$ac_ext >&5
56759
56760         eval "$as_ac_var=no"
56761 fi
56762
56763 rm -f core conftest.err conftest.$ac_objext \
56764       conftest$ac_exeext conftest.$ac_ext
56765 fi
56766 ac_res=`eval echo '${'$as_ac_var'}'`
56767                { echo "$as_me:$LINENO: result: $ac_res" >&5
56768 echo "${ECHO_T}$ac_res" >&6; }
56769 if test `eval echo '${'$as_ac_var'}'` = yes; then
56770   cat >>confdefs.h <<_ACEOF
56771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56772 _ACEOF
56773
56774 fi
56775 done
56776
56777 if test $ac_cv_func_initgroups = no; then
56778
56779 { echo "$as_me:$LINENO: checking for initgroups in -los" >&5
56780 echo $ECHO_N "checking for initgroups in -los... $ECHO_C" >&6; }
56781 if test "${ac_cv_lib_os_initgroups+set}" = set; then
56782   echo $ECHO_N "(cached) $ECHO_C" >&6
56783 else
56784   ac_check_lib_save_LIBS=$LIBS
56785 LIBS="-los  $LIBS"
56786 cat >conftest.$ac_ext <<_ACEOF
56787 /* confdefs.h.  */
56788 _ACEOF
56789 cat confdefs.h >>conftest.$ac_ext
56790 cat >>conftest.$ac_ext <<_ACEOF
56791 /* end confdefs.h.  */
56792
56793 /* Override any GCC internal prototype to avoid an error.
56794    Use char because int might match the return type of a GCC
56795    builtin and then its argument prototype would still apply.  */
56796 #ifdef __cplusplus
56797 extern "C"
56798 #endif
56799 char initgroups ();
56800 int
56801 main ()
56802 {
56803 return initgroups ();
56804   ;
56805   return 0;
56806 }
56807 _ACEOF
56808 rm -f conftest.$ac_objext conftest$ac_exeext
56809 if { (ac_try="$ac_link"
56810 case "(($ac_try" in
56811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56812   *) ac_try_echo=$ac_try;;
56813 esac
56814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56815   (eval "$ac_link") 2>conftest.er1
56816   ac_status=$?
56817   grep -v '^ *+' conftest.er1 >conftest.err
56818   rm -f conftest.er1
56819   cat conftest.err >&5
56820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56821   (exit $ac_status); } &&
56822          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56823   { (case "(($ac_try" in
56824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56825   *) ac_try_echo=$ac_try;;
56826 esac
56827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56828   (eval "$ac_try") 2>&5
56829   ac_status=$?
56830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56831   (exit $ac_status); }; } &&
56832          { ac_try='test -s conftest$ac_exeext'
56833   { (case "(($ac_try" in
56834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56835   *) ac_try_echo=$ac_try;;
56836 esac
56837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56838   (eval "$ac_try") 2>&5
56839   ac_status=$?
56840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56841   (exit $ac_status); }; }; then
56842   ac_cv_lib_os_initgroups=yes
56843 else
56844   echo "$as_me: failed program was:" >&5
56845 sed 's/^/| /' conftest.$ac_ext >&5
56846
56847         ac_cv_lib_os_initgroups=no
56848 fi
56849
56850 rm -f core conftest.err conftest.$ac_objext \
56851       conftest$ac_exeext conftest.$ac_ext
56852 LIBS=$ac_check_lib_save_LIBS
56853 fi
56854 { echo "$as_me:$LINENO: result: $ac_cv_lib_os_initgroups" >&5
56855 echo "${ECHO_T}$ac_cv_lib_os_initgroups" >&6; }
56856 if test $ac_cv_lib_os_initgroups = yes; then
56857   cat >>confdefs.h <<_ACEOF
56858 #define HAVE_LIBOS 1
56859 _ACEOF
56860
56861   LIBS="-los $LIBS"
56862
56863 fi
56864
56865 fi
56866
56867
56868 for ac_func in syslog
56869 do
56870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
56872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
56873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56874   echo $ECHO_N "(cached) $ECHO_C" >&6
56875 else
56876   cat >conftest.$ac_ext <<_ACEOF
56877 /* confdefs.h.  */
56878 _ACEOF
56879 cat confdefs.h >>conftest.$ac_ext
56880 cat >>conftest.$ac_ext <<_ACEOF
56881 /* end confdefs.h.  */
56882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56884 #define $ac_func innocuous_$ac_func
56885
56886 /* System header to define __stub macros and hopefully few prototypes,
56887     which can conflict with char $ac_func (); below.
56888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56889     <limits.h> exists even on freestanding compilers.  */
56890
56891 #ifdef __STDC__
56892 # include <limits.h>
56893 #else
56894 # include <assert.h>
56895 #endif
56896
56897 #undef $ac_func
56898
56899 /* Override any GCC internal prototype to avoid an error.
56900    Use char because int might match the return type of a GCC
56901    builtin and then its argument prototype would still apply.  */
56902 #ifdef __cplusplus
56903 extern "C"
56904 #endif
56905 char $ac_func ();
56906 /* The GNU C library defines this for functions which it implements
56907     to always fail with ENOSYS.  Some functions are actually named
56908     something starting with __ and the normal name is an alias.  */
56909 #if defined __stub_$ac_func || defined __stub___$ac_func
56910 choke me
56911 #endif
56912
56913 int
56914 main ()
56915 {
56916 return $ac_func ();
56917   ;
56918   return 0;
56919 }
56920 _ACEOF
56921 rm -f conftest.$ac_objext conftest$ac_exeext
56922 if { (ac_try="$ac_link"
56923 case "(($ac_try" in
56924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56925   *) ac_try_echo=$ac_try;;
56926 esac
56927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56928   (eval "$ac_link") 2>conftest.er1
56929   ac_status=$?
56930   grep -v '^ *+' conftest.er1 >conftest.err
56931   rm -f conftest.er1
56932   cat conftest.err >&5
56933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56934   (exit $ac_status); } &&
56935          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56936   { (case "(($ac_try" in
56937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56938   *) ac_try_echo=$ac_try;;
56939 esac
56940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56941   (eval "$ac_try") 2>&5
56942   ac_status=$?
56943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56944   (exit $ac_status); }; } &&
56945          { ac_try='test -s conftest$ac_exeext'
56946   { (case "(($ac_try" in
56947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56948   *) ac_try_echo=$ac_try;;
56949 esac
56950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56951   (eval "$ac_try") 2>&5
56952   ac_status=$?
56953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56954   (exit $ac_status); }; }; then
56955   eval "$as_ac_var=yes"
56956 else
56957   echo "$as_me: failed program was:" >&5
56958 sed 's/^/| /' conftest.$ac_ext >&5
56959
56960         eval "$as_ac_var=no"
56961 fi
56962
56963 rm -f core conftest.err conftest.$ac_objext \
56964       conftest$ac_exeext conftest.$ac_ext
56965 fi
56966 ac_res=`eval echo '${'$as_ac_var'}'`
56967                { echo "$as_me:$LINENO: result: $ac_res" >&5
56968 echo "${ECHO_T}$ac_res" >&6; }
56969 if test `eval echo '${'$as_ac_var'}'` = yes; then
56970   cat >>confdefs.h <<_ACEOF
56971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56972 _ACEOF
56973
56974 fi
56975 done
56976
56977 if test $ac_cv_func_syslog = no; then
56978   # syslog is not in the default libraries.  See if it's in some other.
56979   for lib in bsd socket inet; do
56980     as_ac_Lib=`echo "ac_cv_lib_$lib''_syslog" | $as_tr_sh`
56981 { echo "$as_me:$LINENO: checking for syslog in -l$lib" >&5
56982 echo $ECHO_N "checking for syslog in -l$lib... $ECHO_C" >&6; }
56983 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
56984   echo $ECHO_N "(cached) $ECHO_C" >&6
56985 else
56986   ac_check_lib_save_LIBS=$LIBS
56987 LIBS="-l$lib  $LIBS"
56988 cat >conftest.$ac_ext <<_ACEOF
56989 /* confdefs.h.  */
56990 _ACEOF
56991 cat confdefs.h >>conftest.$ac_ext
56992 cat >>conftest.$ac_ext <<_ACEOF
56993 /* end confdefs.h.  */
56994
56995 /* Override any GCC internal prototype to avoid an error.
56996    Use char because int might match the return type of a GCC
56997    builtin and then its argument prototype would still apply.  */
56998 #ifdef __cplusplus
56999 extern "C"
57000 #endif
57001 char syslog ();
57002 int
57003 main ()
57004 {
57005 return syslog ();
57006   ;
57007   return 0;
57008 }
57009 _ACEOF
57010 rm -f conftest.$ac_objext conftest$ac_exeext
57011 if { (ac_try="$ac_link"
57012 case "(($ac_try" in
57013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57014   *) ac_try_echo=$ac_try;;
57015 esac
57016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57017   (eval "$ac_link") 2>conftest.er1
57018   ac_status=$?
57019   grep -v '^ *+' conftest.er1 >conftest.err
57020   rm -f conftest.er1
57021   cat conftest.err >&5
57022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57023   (exit $ac_status); } &&
57024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57025   { (case "(($ac_try" in
57026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57027   *) ac_try_echo=$ac_try;;
57028 esac
57029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57030   (eval "$ac_try") 2>&5
57031   ac_status=$?
57032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57033   (exit $ac_status); }; } &&
57034          { ac_try='test -s conftest$ac_exeext'
57035   { (case "(($ac_try" in
57036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57037   *) ac_try_echo=$ac_try;;
57038 esac
57039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57040   (eval "$ac_try") 2>&5
57041   ac_status=$?
57042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57043   (exit $ac_status); }; }; then
57044   eval "$as_ac_Lib=yes"
57045 else
57046   echo "$as_me: failed program was:" >&5
57047 sed 's/^/| /' conftest.$ac_ext >&5
57048
57049         eval "$as_ac_Lib=no"
57050 fi
57051
57052 rm -f core conftest.err conftest.$ac_objext \
57053       conftest$ac_exeext conftest.$ac_ext
57054 LIBS=$ac_check_lib_save_LIBS
57055 fi
57056 ac_res=`eval echo '${'$as_ac_Lib'}'`
57057                { echo "$as_me:$LINENO: result: $ac_res" >&5
57058 echo "${ECHO_T}$ac_res" >&6; }
57059 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
57060
57061 cat >>confdefs.h <<\_ACEOF
57062 #define HAVE_SYSLOG 1
57063 _ACEOF
57064
57065       LIBS="$LIBS -l$lib"; break
57066 fi
57067
57068   done
57069 fi
57070
57071 { echo "$as_me:$LINENO: checking for 3-argument setpriority function" >&5
57072 echo $ECHO_N "checking for 3-argument setpriority function... $ECHO_C" >&6; }
57073 if test "${utils_cv_func_setpriority+set}" = set; then
57074   echo $ECHO_N "(cached) $ECHO_C" >&6
57075 else
57076   cat >conftest.$ac_ext <<_ACEOF
57077 /* confdefs.h.  */
57078 _ACEOF
57079 cat confdefs.h >>conftest.$ac_ext
57080 cat >>conftest.$ac_ext <<_ACEOF
57081 /* end confdefs.h.  */
57082 #include <sys/time.h>
57083          #include <sys/resource.h>
57084
57085 int
57086 main ()
57087 {
57088 setpriority (0, 0, 0);
57089   ;
57090   return 0;
57091 }
57092 _ACEOF
57093 rm -f conftest.$ac_objext conftest$ac_exeext
57094 if { (ac_try="$ac_link"
57095 case "(($ac_try" in
57096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57097   *) ac_try_echo=$ac_try;;
57098 esac
57099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57100   (eval "$ac_link") 2>conftest.er1
57101   ac_status=$?
57102   grep -v '^ *+' conftest.er1 >conftest.err
57103   rm -f conftest.er1
57104   cat conftest.err >&5
57105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57106   (exit $ac_status); } &&
57107          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57108   { (case "(($ac_try" in
57109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57110   *) ac_try_echo=$ac_try;;
57111 esac
57112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57113   (eval "$ac_try") 2>&5
57114   ac_status=$?
57115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57116   (exit $ac_status); }; } &&
57117          { ac_try='test -s conftest$ac_exeext'
57118   { (case "(($ac_try" in
57119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57120   *) ac_try_echo=$ac_try;;
57121 esac
57122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57123   (eval "$ac_try") 2>&5
57124   ac_status=$?
57125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57126   (exit $ac_status); }; }; then
57127   utils_cv_func_setpriority=yes
57128 else
57129   echo "$as_me: failed program was:" >&5
57130 sed 's/^/| /' conftest.$ac_ext >&5
57131
57132         utils_cv_func_setpriority=no
57133 fi
57134
57135 rm -f core conftest.err conftest.$ac_objext \
57136       conftest$ac_exeext conftest.$ac_ext
57137 fi
57138 { echo "$as_me:$LINENO: result: $utils_cv_func_setpriority" >&5
57139 echo "${ECHO_T}$utils_cv_func_setpriority" >&6; }
57140 if test $utils_cv_func_setpriority = no; then
57141
57142 for ac_func in nice
57143 do
57144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57145 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57148   echo $ECHO_N "(cached) $ECHO_C" >&6
57149 else
57150   cat >conftest.$ac_ext <<_ACEOF
57151 /* confdefs.h.  */
57152 _ACEOF
57153 cat confdefs.h >>conftest.$ac_ext
57154 cat >>conftest.$ac_ext <<_ACEOF
57155 /* end confdefs.h.  */
57156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57157    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57158 #define $ac_func innocuous_$ac_func
57159
57160 /* System header to define __stub macros and hopefully few prototypes,
57161     which can conflict with char $ac_func (); below.
57162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57163     <limits.h> exists even on freestanding compilers.  */
57164
57165 #ifdef __STDC__
57166 # include <limits.h>
57167 #else
57168 # include <assert.h>
57169 #endif
57170
57171 #undef $ac_func
57172
57173 /* Override any GCC internal prototype to avoid an error.
57174    Use char because int might match the return type of a GCC
57175    builtin and then its argument prototype would still apply.  */
57176 #ifdef __cplusplus
57177 extern "C"
57178 #endif
57179 char $ac_func ();
57180 /* The GNU C library defines this for functions which it implements
57181     to always fail with ENOSYS.  Some functions are actually named
57182     something starting with __ and the normal name is an alias.  */
57183 #if defined __stub_$ac_func || defined __stub___$ac_func
57184 choke me
57185 #endif
57186
57187 int
57188 main ()
57189 {
57190 return $ac_func ();
57191   ;
57192   return 0;
57193 }
57194 _ACEOF
57195 rm -f conftest.$ac_objext conftest$ac_exeext
57196 if { (ac_try="$ac_link"
57197 case "(($ac_try" in
57198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57199   *) ac_try_echo=$ac_try;;
57200 esac
57201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57202   (eval "$ac_link") 2>conftest.er1
57203   ac_status=$?
57204   grep -v '^ *+' conftest.er1 >conftest.err
57205   rm -f conftest.er1
57206   cat conftest.err >&5
57207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57208   (exit $ac_status); } &&
57209          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57210   { (case "(($ac_try" in
57211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57212   *) ac_try_echo=$ac_try;;
57213 esac
57214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57215   (eval "$ac_try") 2>&5
57216   ac_status=$?
57217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57218   (exit $ac_status); }; } &&
57219          { ac_try='test -s conftest$ac_exeext'
57220   { (case "(($ac_try" in
57221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57222   *) ac_try_echo=$ac_try;;
57223 esac
57224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57225   (eval "$ac_try") 2>&5
57226   ac_status=$?
57227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57228   (exit $ac_status); }; }; then
57229   eval "$as_ac_var=yes"
57230 else
57231   echo "$as_me: failed program was:" >&5
57232 sed 's/^/| /' conftest.$ac_ext >&5
57233
57234         eval "$as_ac_var=no"
57235 fi
57236
57237 rm -f core conftest.err conftest.$ac_objext \
57238       conftest$ac_exeext conftest.$ac_ext
57239 fi
57240 ac_res=`eval echo '${'$as_ac_var'}'`
57241                { echo "$as_me:$LINENO: result: $ac_res" >&5
57242 echo "${ECHO_T}$ac_res" >&6; }
57243 if test `eval echo '${'$as_ac_var'}'` = yes; then
57244   cat >>confdefs.h <<_ACEOF
57245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57246 _ACEOF
57247
57248 fi
57249 done
57250
57251 fi
57252 case $utils_cv_func_setpriority,$ac_cv_func_nice in
57253 *yes*)
57254   OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice\$(EXEEXT)"
57255   MAN="$MAN nice.1";;
57256 esac
57257
57258
57259
57260
57261   if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
57262     OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS pinky\$(EXEEXT)"
57263     OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS users\$(EXEEXT)"
57264     OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS who\$(EXEEXT)"
57265     MAN="$MAN pinky.1 users.1 who.1"
57266   fi
57267
57268
57269 { echo "$as_me:$LINENO: checking ut_host in struct utmp" >&5
57270 echo $ECHO_N "checking ut_host in struct utmp... $ECHO_C" >&6; }
57271 if test "${su_cv_func_ut_host_in_utmp+set}" = set; then
57272   echo $ECHO_N "(cached) $ECHO_C" >&6
57273 else
57274   cat >conftest.$ac_ext <<_ACEOF
57275 /* confdefs.h.  */
57276 _ACEOF
57277 cat confdefs.h >>conftest.$ac_ext
57278 cat >>conftest.$ac_ext <<_ACEOF
57279 /* end confdefs.h.  */
57280 #include <sys/types.h>
57281 #include <utmp.h>
57282 int
57283 main ()
57284 {
57285 struct utmp ut; ut.ut_host;
57286   ;
57287   return 0;
57288 }
57289 _ACEOF
57290 rm -f conftest.$ac_objext conftest$ac_exeext
57291 if { (ac_try="$ac_link"
57292 case "(($ac_try" in
57293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57294   *) ac_try_echo=$ac_try;;
57295 esac
57296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57297   (eval "$ac_link") 2>conftest.er1
57298   ac_status=$?
57299   grep -v '^ *+' conftest.er1 >conftest.err
57300   rm -f conftest.er1
57301   cat conftest.err >&5
57302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57303   (exit $ac_status); } &&
57304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57305   { (case "(($ac_try" in
57306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57307   *) ac_try_echo=$ac_try;;
57308 esac
57309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57310   (eval "$ac_try") 2>&5
57311   ac_status=$?
57312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57313   (exit $ac_status); }; } &&
57314          { ac_try='test -s conftest$ac_exeext'
57315   { (case "(($ac_try" in
57316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57317   *) ac_try_echo=$ac_try;;
57318 esac
57319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57320   (eval "$ac_try") 2>&5
57321   ac_status=$?
57322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57323   (exit $ac_status); }; }; then
57324   su_cv_func_ut_host_in_utmp=yes
57325 else
57326   echo "$as_me: failed program was:" >&5
57327 sed 's/^/| /' conftest.$ac_ext >&5
57328
57329         su_cv_func_ut_host_in_utmp=no
57330 fi
57331
57332 rm -f core conftest.err conftest.$ac_objext \
57333       conftest$ac_exeext conftest.$ac_ext
57334 fi
57335
57336 { echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmp" >&5
57337 echo "${ECHO_T}$su_cv_func_ut_host_in_utmp" >&6; }
57338 if test $su_cv_func_ut_host_in_utmp = yes; then
57339   have_ut_host=1
57340
57341 cat >>confdefs.h <<\_ACEOF
57342 #define HAVE_UT_HOST 1
57343 _ACEOF
57344
57345 fi
57346
57347 if test -z "$have_ut_host"; then
57348   { echo "$as_me:$LINENO: checking ut_host in struct utmpx" >&5
57349 echo $ECHO_N "checking ut_host in struct utmpx... $ECHO_C" >&6; }
57350   if test "${su_cv_func_ut_host_in_utmpx+set}" = set; then
57351   echo $ECHO_N "(cached) $ECHO_C" >&6
57352 else
57353   cat >conftest.$ac_ext <<_ACEOF
57354 /* confdefs.h.  */
57355 _ACEOF
57356 cat confdefs.h >>conftest.$ac_ext
57357 cat >>conftest.$ac_ext <<_ACEOF
57358 /* end confdefs.h.  */
57359 #include <sys/types.h>
57360 #include <utmpx.h>
57361 int
57362 main ()
57363 {
57364 struct utmpx ut; ut.ut_host;
57365   ;
57366   return 0;
57367 }
57368 _ACEOF
57369 rm -f conftest.$ac_objext conftest$ac_exeext
57370 if { (ac_try="$ac_link"
57371 case "(($ac_try" in
57372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57373   *) ac_try_echo=$ac_try;;
57374 esac
57375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57376   (eval "$ac_link") 2>conftest.er1
57377   ac_status=$?
57378   grep -v '^ *+' conftest.er1 >conftest.err
57379   rm -f conftest.er1
57380   cat conftest.err >&5
57381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57382   (exit $ac_status); } &&
57383          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57384   { (case "(($ac_try" in
57385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57386   *) ac_try_echo=$ac_try;;
57387 esac
57388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57389   (eval "$ac_try") 2>&5
57390   ac_status=$?
57391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57392   (exit $ac_status); }; } &&
57393          { ac_try='test -s conftest$ac_exeext'
57394   { (case "(($ac_try" in
57395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57396   *) ac_try_echo=$ac_try;;
57397 esac
57398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57399   (eval "$ac_try") 2>&5
57400   ac_status=$?
57401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57402   (exit $ac_status); }; }; then
57403   su_cv_func_ut_host_in_utmpx=yes
57404 else
57405   echo "$as_me: failed program was:" >&5
57406 sed 's/^/| /' conftest.$ac_ext >&5
57407
57408         su_cv_func_ut_host_in_utmpx=no
57409 fi
57410
57411 rm -f core conftest.err conftest.$ac_objext \
57412       conftest$ac_exeext conftest.$ac_ext
57413 fi
57414
57415   { echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmpx" >&5
57416 echo "${ECHO_T}$su_cv_func_ut_host_in_utmpx" >&6; }
57417   if test $su_cv_func_ut_host_in_utmpx = yes; then
57418
57419 cat >>confdefs.h <<\_ACEOF
57420 #define HAVE_UTMPX_H 1
57421 _ACEOF
57422
57423
57424 cat >>confdefs.h <<\_ACEOF
57425 #define HAVE_UT_HOST 1
57426 _ACEOF
57427
57428   fi
57429 fi
57430
57431
57432
57433 for ac_func in sysctl
57434 do
57435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57436 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57438 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57439   echo $ECHO_N "(cached) $ECHO_C" >&6
57440 else
57441   cat >conftest.$ac_ext <<_ACEOF
57442 /* confdefs.h.  */
57443 _ACEOF
57444 cat confdefs.h >>conftest.$ac_ext
57445 cat >>conftest.$ac_ext <<_ACEOF
57446 /* end confdefs.h.  */
57447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57448    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57449 #define $ac_func innocuous_$ac_func
57450
57451 /* System header to define __stub macros and hopefully few prototypes,
57452     which can conflict with char $ac_func (); below.
57453     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57454     <limits.h> exists even on freestanding compilers.  */
57455
57456 #ifdef __STDC__
57457 # include <limits.h>
57458 #else
57459 # include <assert.h>
57460 #endif
57461
57462 #undef $ac_func
57463
57464 /* Override any GCC internal prototype to avoid an error.
57465    Use char because int might match the return type of a GCC
57466    builtin and then its argument prototype would still apply.  */
57467 #ifdef __cplusplus
57468 extern "C"
57469 #endif
57470 char $ac_func ();
57471 /* The GNU C library defines this for functions which it implements
57472     to always fail with ENOSYS.  Some functions are actually named
57473     something starting with __ and the normal name is an alias.  */
57474 #if defined __stub_$ac_func || defined __stub___$ac_func
57475 choke me
57476 #endif
57477
57478 int
57479 main ()
57480 {
57481 return $ac_func ();
57482   ;
57483   return 0;
57484 }
57485 _ACEOF
57486 rm -f conftest.$ac_objext conftest$ac_exeext
57487 if { (ac_try="$ac_link"
57488 case "(($ac_try" in
57489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57490   *) ac_try_echo=$ac_try;;
57491 esac
57492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57493   (eval "$ac_link") 2>conftest.er1
57494   ac_status=$?
57495   grep -v '^ *+' conftest.er1 >conftest.err
57496   rm -f conftest.er1
57497   cat conftest.err >&5
57498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57499   (exit $ac_status); } &&
57500          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57501   { (case "(($ac_try" in
57502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57503   *) ac_try_echo=$ac_try;;
57504 esac
57505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57506   (eval "$ac_try") 2>&5
57507   ac_status=$?
57508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57509   (exit $ac_status); }; } &&
57510          { ac_try='test -s conftest$ac_exeext'
57511   { (case "(($ac_try" in
57512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57513   *) ac_try_echo=$ac_try;;
57514 esac
57515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57516   (eval "$ac_try") 2>&5
57517   ac_status=$?
57518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57519   (exit $ac_status); }; }; then
57520   eval "$as_ac_var=yes"
57521 else
57522   echo "$as_me: failed program was:" >&5
57523 sed 's/^/| /' conftest.$ac_ext >&5
57524
57525         eval "$as_ac_var=no"
57526 fi
57527
57528 rm -f core conftest.err conftest.$ac_objext \
57529       conftest$ac_exeext conftest.$ac_ext
57530 fi
57531 ac_res=`eval echo '${'$as_ac_var'}'`
57532                { echo "$as_me:$LINENO: result: $ac_res" >&5
57533 echo "${ECHO_T}$ac_res" >&6; }
57534 if test `eval echo '${'$as_ac_var'}'` = yes; then
57535   cat >>confdefs.h <<_ACEOF
57536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57537 _ACEOF
57538
57539 fi
57540 done
57541
57542
57543
57544
57545
57546
57547
57548
57549 for ac_header in sys/sysctl.h
57550 do
57551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
57552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
57553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
57554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57555   echo $ECHO_N "(cached) $ECHO_C" >&6
57556 else
57557   cat >conftest.$ac_ext <<_ACEOF
57558 /* confdefs.h.  */
57559 _ACEOF
57560 cat confdefs.h >>conftest.$ac_ext
57561 cat >>conftest.$ac_ext <<_ACEOF
57562 /* end confdefs.h.  */
57563 $ac_includes_default
57564      #if HAVE_SYS_PARAM_H
57565        #include <sys/param.h>
57566       #endif
57567
57568 #include <$ac_header>
57569 _ACEOF
57570 rm -f conftest.$ac_objext
57571 if { (ac_try="$ac_compile"
57572 case "(($ac_try" in
57573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57574   *) ac_try_echo=$ac_try;;
57575 esac
57576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57577   (eval "$ac_compile") 2>conftest.er1
57578   ac_status=$?
57579   grep -v '^ *+' conftest.er1 >conftest.err
57580   rm -f conftest.er1
57581   cat conftest.err >&5
57582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57583   (exit $ac_status); } &&
57584          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57585   { (case "(($ac_try" in
57586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57587   *) ac_try_echo=$ac_try;;
57588 esac
57589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57590   (eval "$ac_try") 2>&5
57591   ac_status=$?
57592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57593   (exit $ac_status); }; } &&
57594          { ac_try='test -s conftest.$ac_objext'
57595   { (case "(($ac_try" in
57596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57597   *) ac_try_echo=$ac_try;;
57598 esac
57599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57600   (eval "$ac_try") 2>&5
57601   ac_status=$?
57602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57603   (exit $ac_status); }; }; then
57604   eval "$as_ac_Header=yes"
57605 else
57606   echo "$as_me: failed program was:" >&5
57607 sed 's/^/| /' conftest.$ac_ext >&5
57608
57609         eval "$as_ac_Header=no"
57610 fi
57611
57612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57613 fi
57614 ac_res=`eval echo '${'$as_ac_Header'}'`
57615                { echo "$as_me:$LINENO: result: $ac_res" >&5
57616 echo "${ECHO_T}$ac_res" >&6; }
57617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
57618   cat >>confdefs.h <<_ACEOF
57619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
57620 _ACEOF
57621
57622 fi
57623
57624 done
57625
57626   { echo "$as_me:$LINENO: checking whether we can get the system boot time" >&5
57627 echo $ECHO_N "checking whether we can get the system boot time... $ECHO_C" >&6; }
57628 if test "${gnulib_cv_have_boot_time+set}" = set; then
57629   echo $ECHO_N "(cached) $ECHO_C" >&6
57630 else
57631
57632       cat >conftest.$ac_ext <<_ACEOF
57633 /* confdefs.h.  */
57634 _ACEOF
57635 cat confdefs.h >>conftest.$ac_ext
57636 cat >>conftest.$ac_ext <<_ACEOF
57637 /* end confdefs.h.  */
57638 $ac_includes_default
57639 #if HAVE_SYSCTL && HAVE_SYS_SYSCTL_H
57640 # if HAVE_SYS_PARAM_H
57641 #  include <sys/param.h> /* needed for OpenBSD 3.0 */
57642 # endif
57643 # include <sys/sysctl.h>
57644 #endif
57645 #ifdef HAVE_UTMPX_H
57646 # include <utmpx.h>
57647 #else
57648 # include <utmp.h>
57649 #endif
57650
57651 int
57652 main ()
57653 {
57654
57655 #if defined BOOT_TIME || (defined CTL_KERN && defined KERN_BOOTTIME)
57656 /* your system *does* have the infrastructure to determine boot time */
57657 #else
57658 please_tell_us_how_to_determine_boot_time_on_your_system
57659 #endif
57660
57661   ;
57662   return 0;
57663 }
57664 _ACEOF
57665 rm -f conftest.$ac_objext
57666 if { (ac_try="$ac_compile"
57667 case "(($ac_try" in
57668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57669   *) ac_try_echo=$ac_try;;
57670 esac
57671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57672   (eval "$ac_compile") 2>conftest.er1
57673   ac_status=$?
57674   grep -v '^ *+' conftest.er1 >conftest.err
57675   rm -f conftest.er1
57676   cat conftest.err >&5
57677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57678   (exit $ac_status); } &&
57679          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57680   { (case "(($ac_try" in
57681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57682   *) ac_try_echo=$ac_try;;
57683 esac
57684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57685   (eval "$ac_try") 2>&5
57686   ac_status=$?
57687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57688   (exit $ac_status); }; } &&
57689          { ac_try='test -s conftest.$ac_objext'
57690   { (case "(($ac_try" in
57691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57692   *) ac_try_echo=$ac_try;;
57693 esac
57694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57695   (eval "$ac_try") 2>&5
57696   ac_status=$?
57697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57698   (exit $ac_status); }; }; then
57699   gnulib_cv_have_boot_time=yes
57700 else
57701   echo "$as_me: failed program was:" >&5
57702 sed 's/^/| /' conftest.$ac_ext >&5
57703
57704         gnulib_cv_have_boot_time=no
57705 fi
57706
57707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57708
57709 fi
57710 { echo "$as_me:$LINENO: result: $gnulib_cv_have_boot_time" >&5
57711 echo "${ECHO_T}$gnulib_cv_have_boot_time" >&6; }
57712   if test $gnulib_cv_have_boot_time = yes; then
57713   OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uptime\$(EXEEXT)"
57714   MAN="$MAN uptime.1"
57715 fi
57716
57717
57718
57719 { echo "$as_me:$LINENO: checking POSIX termios" >&5
57720 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
57721 if test "${ac_cv_sys_posix_termios+set}" = set; then
57722   echo $ECHO_N "(cached) $ECHO_C" >&6
57723 else
57724   cat >conftest.$ac_ext <<_ACEOF
57725 /* confdefs.h.  */
57726 _ACEOF
57727 cat confdefs.h >>conftest.$ac_ext
57728 cat >>conftest.$ac_ext <<_ACEOF
57729 /* end confdefs.h.  */
57730 #include <sys/types.h>
57731 #include <unistd.h>
57732 #include <termios.h>
57733
57734 int
57735 main ()
57736 {
57737 /* SunOS 4.0.3 has termios.h but not the library calls.  */
57738    tcgetattr(0, 0);
57739   ;
57740   return 0;
57741 }
57742 _ACEOF
57743 rm -f conftest.$ac_objext conftest$ac_exeext
57744 if { (ac_try="$ac_link"
57745 case "(($ac_try" in
57746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57747   *) ac_try_echo=$ac_try;;
57748 esac
57749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57750   (eval "$ac_link") 2>conftest.er1
57751   ac_status=$?
57752   grep -v '^ *+' conftest.er1 >conftest.err
57753   rm -f conftest.er1
57754   cat conftest.err >&5
57755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57756   (exit $ac_status); } &&
57757          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57758   { (case "(($ac_try" in
57759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57760   *) ac_try_echo=$ac_try;;
57761 esac
57762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57763   (eval "$ac_try") 2>&5
57764   ac_status=$?
57765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57766   (exit $ac_status); }; } &&
57767          { ac_try='test -s conftest$ac_exeext'
57768   { (case "(($ac_try" in
57769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57770   *) ac_try_echo=$ac_try;;
57771 esac
57772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57773   (eval "$ac_try") 2>&5
57774   ac_status=$?
57775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57776   (exit $ac_status); }; }; then
57777   ac_cv_sys_posix_termios=yes
57778 else
57779   echo "$as_me: failed program was:" >&5
57780 sed 's/^/| /' conftest.$ac_ext >&5
57781
57782         ac_cv_sys_posix_termios=no
57783 fi
57784
57785 rm -f core conftest.err conftest.$ac_objext \
57786       conftest$ac_exeext conftest.$ac_ext
57787 fi
57788 { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
57789 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
57790
57791
57792  { echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
57793 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6; }
57794 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
57795   echo $ECHO_N "(cached) $ECHO_C" >&6
57796 else
57797   jm_cv_sys_tiocgwinsz_needs_termios_h=no
57798
57799    if test $ac_cv_sys_posix_termios = yes; then
57800      cat >conftest.$ac_ext <<_ACEOF
57801 /* confdefs.h.  */
57802 _ACEOF
57803 cat confdefs.h >>conftest.$ac_ext
57804 cat >>conftest.$ac_ext <<_ACEOF
57805 /* end confdefs.h.  */
57806 #include <sys/types.h>
57807 #      include <termios.h>
57808 #      ifdef TIOCGWINSZ
57809          yes
57810 #      endif
57811
57812 _ACEOF
57813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57814   $EGREP "yes" >/dev/null 2>&1; then
57815   jm_cv_sys_tiocgwinsz_needs_termios_h=yes
57816 fi
57817 rm -f conftest*
57818
57819    fi
57820
57821 fi
57822 { echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
57823 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6; }
57824
57825
57826  { echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
57827 echo $ECHO_N "checking whether use of TIOCGWINSZ requires sys/ioctl.h... $ECHO_C" >&6; }
57828 if test "${jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then
57829   echo $ECHO_N "(cached) $ECHO_C" >&6
57830 else
57831   jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
57832
57833   if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no; then
57834     cat >conftest.$ac_ext <<_ACEOF
57835 /* confdefs.h.  */
57836 _ACEOF
57837 cat confdefs.h >>conftest.$ac_ext
57838 cat >>conftest.$ac_ext <<_ACEOF
57839 /* end confdefs.h.  */
57840 #include <sys/types.h>
57841 #     include <sys/ioctl.h>
57842 #     ifdef TIOCGWINSZ
57843         yes
57844 #     endif
57845
57846 _ACEOF
57847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57848   $EGREP "yes" >/dev/null 2>&1; then
57849   jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
57850 fi
57851 rm -f conftest*
57852
57853   fi
57854
57855 fi
57856 { echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&5
57857 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&6; }
57858   if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
57859
57860 cat >>confdefs.h <<\_ACEOF
57861 #define GWINSZ_IN_SYS_IOCTL 1
57862 _ACEOF
57863
57864   fi
57865
57866
57867 if test $ac_cv_sys_posix_termios = yes; then
57868   OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS stty\$(EXEEXT)" MAN="$MAN stty.1"
57869
57870   { echo "$as_me:$LINENO: checking whether termios.h needs _XOPEN_SOURCE" >&5
57871 echo $ECHO_N "checking whether termios.h needs _XOPEN_SOURCE... $ECHO_C" >&6; }
57872   if test "${su_cv_sys_termios_needs_xopen_source+set}" = set; then
57873   echo $ECHO_N "(cached) $ECHO_C" >&6
57874 else
57875   cat >conftest.$ac_ext <<_ACEOF
57876 /* confdefs.h.  */
57877 _ACEOF
57878 cat confdefs.h >>conftest.$ac_ext
57879 cat >>conftest.$ac_ext <<_ACEOF
57880 /* end confdefs.h.  */
57881 #include <termios.h>
57882 #ifdef IUCLC
57883 yes
57884 #endif
57885 _ACEOF
57886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57887   $EGREP "yes" >/dev/null 2>&1; then
57888   su_cv_sys_termios_needs_xopen_source=no
57889 else
57890   cat >conftest.$ac_ext <<_ACEOF
57891 /* confdefs.h.  */
57892 _ACEOF
57893 cat confdefs.h >>conftest.$ac_ext
57894 cat >>conftest.$ac_ext <<_ACEOF
57895 /* end confdefs.h.  */
57896 #define _XOPEN_SOURCE
57897 #include <termios.h>
57898 #ifdef IUCLC
57899 yes
57900 #endif
57901 _ACEOF
57902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57903   $EGREP "yes" >/dev/null 2>&1; then
57904   su_cv_sys_termios_needs_xopen_source=yes
57905 else
57906   su_cv_sys_termios_needs_xopen_source=no
57907 fi
57908 rm -f conftest*
57909
57910 fi
57911 rm -f conftest*
57912
57913 fi
57914
57915   { echo "$as_me:$LINENO: result: $su_cv_sys_termios_needs_xopen_source" >&5
57916 echo "${ECHO_T}$su_cv_sys_termios_needs_xopen_source" >&6; }
57917   test $su_cv_sys_termios_needs_xopen_source = yes &&
57918
57919 cat >>confdefs.h <<\_ACEOF
57920 #define TERMIOS_NEEDS_XOPEN_SOURCE 1
57921 _ACEOF
57922
57923
57924   { echo "$as_me:$LINENO: checking c_line in struct termios" >&5
57925 echo $ECHO_N "checking c_line in struct termios... $ECHO_C" >&6; }
57926   if test "${su_cv_sys_c_line_in_termios+set}" = set; then
57927   echo $ECHO_N "(cached) $ECHO_C" >&6
57928 else
57929   cat >conftest.$ac_ext <<_ACEOF
57930 /* confdefs.h.  */
57931 _ACEOF
57932 cat confdefs.h >>conftest.$ac_ext
57933 cat >>conftest.$ac_ext <<_ACEOF
57934 /* end confdefs.h.  */
57935 #if TERMIOS_NEEDS_XOPEN_SOURCE
57936 #define _XOPEN_SOURCE
57937 #endif
57938 #include <sys/types.h>
57939 #include <termios.h>
57940 int
57941 main ()
57942 {
57943 struct termios t; t.c_line;
57944   ;
57945   return 0;
57946 }
57947 _ACEOF
57948 rm -f conftest.$ac_objext conftest$ac_exeext
57949 if { (ac_try="$ac_link"
57950 case "(($ac_try" in
57951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57952   *) ac_try_echo=$ac_try;;
57953 esac
57954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57955   (eval "$ac_link") 2>conftest.er1
57956   ac_status=$?
57957   grep -v '^ *+' conftest.er1 >conftest.err
57958   rm -f conftest.er1
57959   cat conftest.err >&5
57960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57961   (exit $ac_status); } &&
57962          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57963   { (case "(($ac_try" in
57964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57965   *) ac_try_echo=$ac_try;;
57966 esac
57967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57968   (eval "$ac_try") 2>&5
57969   ac_status=$?
57970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57971   (exit $ac_status); }; } &&
57972          { ac_try='test -s conftest$ac_exeext'
57973   { (case "(($ac_try" in
57974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57975   *) ac_try_echo=$ac_try;;
57976 esac
57977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57978   (eval "$ac_try") 2>&5
57979   ac_status=$?
57980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57981   (exit $ac_status); }; }; then
57982   su_cv_sys_c_line_in_termios=yes
57983 else
57984   echo "$as_me: failed program was:" >&5
57985 sed 's/^/| /' conftest.$ac_ext >&5
57986
57987         su_cv_sys_c_line_in_termios=no
57988 fi
57989
57990 rm -f core conftest.err conftest.$ac_objext \
57991       conftest$ac_exeext conftest.$ac_ext
57992 fi
57993
57994   { echo "$as_me:$LINENO: result: $su_cv_sys_c_line_in_termios" >&5
57995 echo "${ECHO_T}$su_cv_sys_c_line_in_termios" >&6; }
57996   test $su_cv_sys_c_line_in_termios = yes \
57997     &&
57998 cat >>confdefs.h <<\_ACEOF
57999 #define HAVE_C_LINE 1
58000 _ACEOF
58001
58002 fi
58003
58004 # FIXME: note that this macro appears above, too.
58005 # I'm leaving it here for now.  This whole thing needs to be modernized...
58006
58007    { echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
58008 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6; }
58009 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
58010   echo $ECHO_N "(cached) $ECHO_C" >&6
58011 else
58012   jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
58013       if test $ac_cv_sys_posix_termios = yes; then
58014         cat >conftest.$ac_ext <<_ACEOF
58015 /* confdefs.h.  */
58016 _ACEOF
58017 cat confdefs.h >>conftest.$ac_ext
58018 cat >>conftest.$ac_ext <<_ACEOF
58019 /* end confdefs.h.  */
58020 #include <termios.h>
58021           struct winsize x;
58022 int
58023 main ()
58024 {
58025 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
58026   ;
58027   return 0;
58028 }
58029 _ACEOF
58030 rm -f conftest.$ac_objext
58031 if { (ac_try="$ac_compile"
58032 case "(($ac_try" in
58033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58034   *) ac_try_echo=$ac_try;;
58035 esac
58036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58037   (eval "$ac_compile") 2>conftest.er1
58038   ac_status=$?
58039   grep -v '^ *+' conftest.er1 >conftest.err
58040   rm -f conftest.er1
58041   cat conftest.err >&5
58042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58043   (exit $ac_status); } &&
58044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58045   { (case "(($ac_try" in
58046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58047   *) ac_try_echo=$ac_try;;
58048 esac
58049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58050   (eval "$ac_try") 2>&5
58051   ac_status=$?
58052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58053   (exit $ac_status); }; } &&
58054          { ac_try='test -s conftest.$ac_objext'
58055   { (case "(($ac_try" in
58056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58057   *) ac_try_echo=$ac_try;;
58058 esac
58059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58060   (eval "$ac_try") 2>&5
58061   ac_status=$?
58062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58063   (exit $ac_status); }; }; then
58064   :
58065 else
58066   echo "$as_me: failed program was:" >&5
58067 sed 's/^/| /' conftest.$ac_ext >&5
58068
58069
58070 fi
58071
58072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58073       fi
58074       if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
58075         cat >conftest.$ac_ext <<_ACEOF
58076 /* confdefs.h.  */
58077 _ACEOF
58078 cat confdefs.h >>conftest.$ac_ext
58079 cat >>conftest.$ac_ext <<_ACEOF
58080 /* end confdefs.h.  */
58081 #include <sys/ptem.h>
58082 int
58083 main ()
58084 {
58085 struct winsize x;
58086   ;
58087   return 0;
58088 }
58089 _ACEOF
58090 rm -f conftest.$ac_objext
58091 if { (ac_try="$ac_compile"
58092 case "(($ac_try" in
58093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58094   *) ac_try_echo=$ac_try;;
58095 esac
58096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58097   (eval "$ac_compile") 2>conftest.er1
58098   ac_status=$?
58099   grep -v '^ *+' conftest.er1 >conftest.err
58100   rm -f conftest.er1
58101   cat conftest.err >&5
58102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58103   (exit $ac_status); } &&
58104          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58105   { (case "(($ac_try" in
58106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58107   *) ac_try_echo=$ac_try;;
58108 esac
58109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58110   (eval "$ac_try") 2>&5
58111   ac_status=$?
58112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58113   (exit $ac_status); }; } &&
58114          { ac_try='test -s conftest.$ac_objext'
58115   { (case "(($ac_try" in
58116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58117   *) ac_try_echo=$ac_try;;
58118 esac
58119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58120   (eval "$ac_try") 2>&5
58121   ac_status=$?
58122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58123   (exit $ac_status); }; }; then
58124   :
58125 else
58126   echo "$as_me: failed program was:" >&5
58127 sed 's/^/| /' conftest.$ac_ext >&5
58128
58129         jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
58130 fi
58131
58132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58133       fi
58134 fi
58135 { echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
58136 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6; }
58137    if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
58138
58139 cat >>confdefs.h <<\_ACEOF
58140 #define WINSIZE_IN_PTEM 1
58141 _ACEOF
58142
58143    fi
58144
58145
58146  { echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
58147 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6; }
58148 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
58149   echo $ECHO_N "(cached) $ECHO_C" >&6
58150 else
58151   jm_cv_sys_tiocgwinsz_needs_termios_h=no
58152
58153    if test $ac_cv_sys_posix_termios = yes; then
58154      cat >conftest.$ac_ext <<_ACEOF
58155 /* confdefs.h.  */
58156 _ACEOF
58157 cat confdefs.h >>conftest.$ac_ext
58158 cat >>conftest.$ac_ext <<_ACEOF
58159 /* end confdefs.h.  */
58160 #include <sys/types.h>
58161 #      include <termios.h>
58162 #      ifdef TIOCGWINSZ
58163          yes
58164 #      endif
58165
58166 _ACEOF
58167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58168   $EGREP "yes" >/dev/null 2>&1; then
58169   jm_cv_sys_tiocgwinsz_needs_termios_h=yes
58170 fi
58171 rm -f conftest*
58172
58173    fi
58174
58175 fi
58176 { echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
58177 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6; }
58178
58179
58180 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no && \
58181    test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = no; then
58182   { echo "$as_me:$LINENO: checking TIOCGWINSZ in sys/pty.h" >&5
58183 echo $ECHO_N "checking TIOCGWINSZ in sys/pty.h... $ECHO_C" >&6; }
58184   if test "${su_cv_sys_tiocgwinsz_in_sys_pty_h+set}" = set; then
58185   echo $ECHO_N "(cached) $ECHO_C" >&6
58186 else
58187   cat >conftest.$ac_ext <<_ACEOF
58188 /* confdefs.h.  */
58189 _ACEOF
58190 cat confdefs.h >>conftest.$ac_ext
58191 cat >>conftest.$ac_ext <<_ACEOF
58192 /* end confdefs.h.  */
58193 #include <sys/types.h>
58194 #ifdef WINSIZE_IN_PTEM
58195 # include <sys/stream.h>
58196 # include <sys/ptem.h>
58197 #endif
58198 #include <sys/ioctl.h>
58199 #include <sys/tty.h>
58200 #include <sys/pty.h>
58201 int
58202 main ()
58203 {
58204 int x = TIOCGWINSZ;
58205   ;
58206   return 0;
58207 }
58208 _ACEOF
58209 rm -f conftest.$ac_objext conftest$ac_exeext
58210 if { (ac_try="$ac_link"
58211 case "(($ac_try" in
58212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58213   *) ac_try_echo=$ac_try;;
58214 esac
58215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58216   (eval "$ac_link") 2>conftest.er1
58217   ac_status=$?
58218   grep -v '^ *+' conftest.er1 >conftest.err
58219   rm -f conftest.er1
58220   cat conftest.err >&5
58221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58222   (exit $ac_status); } &&
58223          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58224   { (case "(($ac_try" in
58225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58226   *) ac_try_echo=$ac_try;;
58227 esac
58228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58229   (eval "$ac_try") 2>&5
58230   ac_status=$?
58231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58232   (exit $ac_status); }; } &&
58233          { ac_try='test -s conftest$ac_exeext'
58234   { (case "(($ac_try" in
58235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58236   *) ac_try_echo=$ac_try;;
58237 esac
58238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58239   (eval "$ac_try") 2>&5
58240   ac_status=$?
58241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58242   (exit $ac_status); }; }; then
58243   su_cv_sys_tiocgwinsz_in_sys_pty_h=yes
58244 else
58245   echo "$as_me: failed program was:" >&5
58246 sed 's/^/| /' conftest.$ac_ext >&5
58247
58248         su_cv_sys_tiocgwinsz_in_sys_pty_h=no
58249 fi
58250
58251 rm -f core conftest.err conftest.$ac_objext \
58252       conftest$ac_exeext conftest.$ac_ext
58253 fi
58254
58255   { echo "$as_me:$LINENO: result: $su_cv_sys_tiocgwinsz_in_sys_pty_h" >&5
58256 echo "${ECHO_T}$su_cv_sys_tiocgwinsz_in_sys_pty_h" >&6; }
58257
58258   test $su_cv_sys_tiocgwinsz_in_sys_pty_h = yes \
58259       &&
58260 cat >>confdefs.h <<\_ACEOF
58261 #define GWINSZ_IN_SYS_PTY 1
58262 _ACEOF
58263
58264 fi
58265
58266 # For src/kill.c.
58267 { echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
58268 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6; }
58269 if test "${ac_cv_have_decl_strsignal+set}" = set; then
58270   echo $ECHO_N "(cached) $ECHO_C" >&6
58271 else
58272   cat >conftest.$ac_ext <<_ACEOF
58273 /* confdefs.h.  */
58274 _ACEOF
58275 cat confdefs.h >>conftest.$ac_ext
58276 cat >>conftest.$ac_ext <<_ACEOF
58277 /* end confdefs.h.  */
58278 $ac_includes_default
58279 #include <signal.h>
58280
58281 int
58282 main ()
58283 {
58284 #ifndef strsignal
58285   char *p = (char *) strsignal;
58286   return !p;
58287 #endif
58288
58289   ;
58290   return 0;
58291 }
58292 _ACEOF
58293 rm -f conftest.$ac_objext
58294 if { (ac_try="$ac_compile"
58295 case "(($ac_try" in
58296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58297   *) ac_try_echo=$ac_try;;
58298 esac
58299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58300   (eval "$ac_compile") 2>conftest.er1
58301   ac_status=$?
58302   grep -v '^ *+' conftest.er1 >conftest.err
58303   rm -f conftest.er1
58304   cat conftest.err >&5
58305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58306   (exit $ac_status); } &&
58307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58308   { (case "(($ac_try" in
58309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58310   *) ac_try_echo=$ac_try;;
58311 esac
58312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58313   (eval "$ac_try") 2>&5
58314   ac_status=$?
58315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58316   (exit $ac_status); }; } &&
58317          { ac_try='test -s conftest.$ac_objext'
58318   { (case "(($ac_try" in
58319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58320   *) ac_try_echo=$ac_try;;
58321 esac
58322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58323   (eval "$ac_try") 2>&5
58324   ac_status=$?
58325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58326   (exit $ac_status); }; }; then
58327   ac_cv_have_decl_strsignal=yes
58328 else
58329   echo "$as_me: failed program was:" >&5
58330 sed 's/^/| /' conftest.$ac_ext >&5
58331
58332         ac_cv_have_decl_strsignal=no
58333 fi
58334
58335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58336 fi
58337 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
58338 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6; }
58339 if test $ac_cv_have_decl_strsignal = yes; then
58340
58341 cat >>confdefs.h <<_ACEOF
58342 #define HAVE_DECL_STRSIGNAL 1
58343 _ACEOF
58344
58345
58346 else
58347   cat >>confdefs.h <<_ACEOF
58348 #define HAVE_DECL_STRSIGNAL 0
58349 _ACEOF
58350
58351
58352 fi
58353 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
58354 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
58355 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
58356   echo $ECHO_N "(cached) $ECHO_C" >&6
58357 else
58358   cat >conftest.$ac_ext <<_ACEOF
58359 /* confdefs.h.  */
58360 _ACEOF
58361 cat confdefs.h >>conftest.$ac_ext
58362 cat >>conftest.$ac_ext <<_ACEOF
58363 /* end confdefs.h.  */
58364 $ac_includes_default
58365 #include <signal.h>
58366
58367 int
58368 main ()
58369 {
58370 #ifndef sys_siglist
58371   char *p = (char *) sys_siglist;
58372   return !p;
58373 #endif
58374
58375   ;
58376   return 0;
58377 }
58378 _ACEOF
58379 rm -f conftest.$ac_objext
58380 if { (ac_try="$ac_compile"
58381 case "(($ac_try" in
58382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58383   *) ac_try_echo=$ac_try;;
58384 esac
58385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58386   (eval "$ac_compile") 2>conftest.er1
58387   ac_status=$?
58388   grep -v '^ *+' conftest.er1 >conftest.err
58389   rm -f conftest.er1
58390   cat conftest.err >&5
58391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58392   (exit $ac_status); } &&
58393          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58394   { (case "(($ac_try" in
58395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58396   *) ac_try_echo=$ac_try;;
58397 esac
58398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58399   (eval "$ac_try") 2>&5
58400   ac_status=$?
58401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58402   (exit $ac_status); }; } &&
58403          { ac_try='test -s conftest.$ac_objext'
58404   { (case "(($ac_try" in
58405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58406   *) ac_try_echo=$ac_try;;
58407 esac
58408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58409   (eval "$ac_try") 2>&5
58410   ac_status=$?
58411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58412   (exit $ac_status); }; }; then
58413   ac_cv_have_decl_sys_siglist=yes
58414 else
58415   echo "$as_me: failed program was:" >&5
58416 sed 's/^/| /' conftest.$ac_ext >&5
58417
58418         ac_cv_have_decl_sys_siglist=no
58419 fi
58420
58421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58422 fi
58423 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
58424 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
58425 if test $ac_cv_have_decl_sys_siglist = yes; then
58426
58427 cat >>confdefs.h <<_ACEOF
58428 #define HAVE_DECL_SYS_SIGLIST 1
58429 _ACEOF
58430
58431
58432 else
58433   cat >>confdefs.h <<_ACEOF
58434 #define HAVE_DECL_SYS_SIGLIST 0
58435 _ACEOF
58436
58437
58438 fi
58439 { echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
58440 echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6; }
58441 if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
58442   echo $ECHO_N "(cached) $ECHO_C" >&6
58443 else
58444   cat >conftest.$ac_ext <<_ACEOF
58445 /* confdefs.h.  */
58446 _ACEOF
58447 cat confdefs.h >>conftest.$ac_ext
58448 cat >>conftest.$ac_ext <<_ACEOF
58449 /* end confdefs.h.  */
58450 $ac_includes_default
58451 #include <signal.h>
58452
58453 int
58454 main ()
58455 {
58456 #ifndef _sys_siglist
58457   char *p = (char *) _sys_siglist;
58458   return !p;
58459 #endif
58460
58461   ;
58462   return 0;
58463 }
58464 _ACEOF
58465 rm -f conftest.$ac_objext
58466 if { (ac_try="$ac_compile"
58467 case "(($ac_try" in
58468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58469   *) ac_try_echo=$ac_try;;
58470 esac
58471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58472   (eval "$ac_compile") 2>conftest.er1
58473   ac_status=$?
58474   grep -v '^ *+' conftest.er1 >conftest.err
58475   rm -f conftest.er1
58476   cat conftest.err >&5
58477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58478   (exit $ac_status); } &&
58479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58480   { (case "(($ac_try" in
58481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58482   *) ac_try_echo=$ac_try;;
58483 esac
58484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58485   (eval "$ac_try") 2>&5
58486   ac_status=$?
58487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58488   (exit $ac_status); }; } &&
58489          { ac_try='test -s conftest.$ac_objext'
58490   { (case "(($ac_try" in
58491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58492   *) ac_try_echo=$ac_try;;
58493 esac
58494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58495   (eval "$ac_try") 2>&5
58496   ac_status=$?
58497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58498   (exit $ac_status); }; }; then
58499   ac_cv_have_decl__sys_siglist=yes
58500 else
58501   echo "$as_me: failed program was:" >&5
58502 sed 's/^/| /' conftest.$ac_ext >&5
58503
58504         ac_cv_have_decl__sys_siglist=no
58505 fi
58506
58507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58508 fi
58509 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
58510 echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6; }
58511 if test $ac_cv_have_decl__sys_siglist = yes; then
58512
58513 cat >>confdefs.h <<_ACEOF
58514 #define HAVE_DECL__SYS_SIGLIST 1
58515 _ACEOF
58516
58517
58518 else
58519   cat >>confdefs.h <<_ACEOF
58520 #define HAVE_DECL__SYS_SIGLIST 0
58521 _ACEOF
58522
58523
58524 fi
58525 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
58526 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
58527 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
58528   echo $ECHO_N "(cached) $ECHO_C" >&6
58529 else
58530   cat >conftest.$ac_ext <<_ACEOF
58531 /* confdefs.h.  */
58532 _ACEOF
58533 cat confdefs.h >>conftest.$ac_ext
58534 cat >>conftest.$ac_ext <<_ACEOF
58535 /* end confdefs.h.  */
58536 $ac_includes_default
58537 #include <signal.h>
58538
58539 int
58540 main ()
58541 {
58542 #ifndef __sys_siglist
58543   char *p = (char *) __sys_siglist;
58544   return !p;
58545 #endif
58546
58547   ;
58548   return 0;
58549 }
58550 _ACEOF
58551 rm -f conftest.$ac_objext
58552 if { (ac_try="$ac_compile"
58553 case "(($ac_try" in
58554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58555   *) ac_try_echo=$ac_try;;
58556 esac
58557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58558   (eval "$ac_compile") 2>conftest.er1
58559   ac_status=$?
58560   grep -v '^ *+' conftest.er1 >conftest.err
58561   rm -f conftest.er1
58562   cat conftest.err >&5
58563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58564   (exit $ac_status); } &&
58565          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58566   { (case "(($ac_try" in
58567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58568   *) ac_try_echo=$ac_try;;
58569 esac
58570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58571   (eval "$ac_try") 2>&5
58572   ac_status=$?
58573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58574   (exit $ac_status); }; } &&
58575          { ac_try='test -s conftest.$ac_objext'
58576   { (case "(($ac_try" in
58577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58578   *) ac_try_echo=$ac_try;;
58579 esac
58580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58581   (eval "$ac_try") 2>&5
58582   ac_status=$?
58583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58584   (exit $ac_status); }; }; then
58585   ac_cv_have_decl___sys_siglist=yes
58586 else
58587   echo "$as_me: failed program was:" >&5
58588 sed 's/^/| /' conftest.$ac_ext >&5
58589
58590         ac_cv_have_decl___sys_siglist=no
58591 fi
58592
58593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58594 fi
58595 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
58596 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
58597 if test $ac_cv_have_decl___sys_siglist = yes; then
58598
58599 cat >>confdefs.h <<_ACEOF
58600 #define HAVE_DECL___SYS_SIGLIST 1
58601 _ACEOF
58602
58603
58604 else
58605   cat >>confdefs.h <<_ACEOF
58606 #define HAVE_DECL___SYS_SIGLIST 0
58607 _ACEOF
58608
58609
58610 fi
58611
58612
58613
58614 # For src/kill.c and src/printf.c.
58615 { echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
58616 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6; }
58617 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
58618   echo $ECHO_N "(cached) $ECHO_C" >&6
58619 else
58620   cat >conftest.$ac_ext <<_ACEOF
58621 /* confdefs.h.  */
58622 _ACEOF
58623 cat confdefs.h >>conftest.$ac_ext
58624 cat >>conftest.$ac_ext <<_ACEOF
58625 /* end confdefs.h.  */
58626 $ac_includes_default
58627 int
58628 main ()
58629 {
58630 #ifndef strtoimax
58631   char *p = (char *) strtoimax;
58632   return !p;
58633 #endif
58634
58635   ;
58636   return 0;
58637 }
58638 _ACEOF
58639 rm -f conftest.$ac_objext
58640 if { (ac_try="$ac_compile"
58641 case "(($ac_try" in
58642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58643   *) ac_try_echo=$ac_try;;
58644 esac
58645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58646   (eval "$ac_compile") 2>conftest.er1
58647   ac_status=$?
58648   grep -v '^ *+' conftest.er1 >conftest.err
58649   rm -f conftest.er1
58650   cat conftest.err >&5
58651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58652   (exit $ac_status); } &&
58653          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58654   { (case "(($ac_try" in
58655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58656   *) ac_try_echo=$ac_try;;
58657 esac
58658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58659   (eval "$ac_try") 2>&5
58660   ac_status=$?
58661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58662   (exit $ac_status); }; } &&
58663          { ac_try='test -s conftest.$ac_objext'
58664   { (case "(($ac_try" in
58665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58666   *) ac_try_echo=$ac_try;;
58667 esac
58668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58669   (eval "$ac_try") 2>&5
58670   ac_status=$?
58671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58672   (exit $ac_status); }; }; then
58673   ac_cv_have_decl_strtoimax=yes
58674 else
58675   echo "$as_me: failed program was:" >&5
58676 sed 's/^/| /' conftest.$ac_ext >&5
58677
58678         ac_cv_have_decl_strtoimax=no
58679 fi
58680
58681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58682 fi
58683 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
58684 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6; }
58685 if test $ac_cv_have_decl_strtoimax = yes; then
58686
58687 cat >>confdefs.h <<_ACEOF
58688 #define HAVE_DECL_STRTOIMAX 1
58689 _ACEOF
58690
58691
58692 else
58693   cat >>confdefs.h <<_ACEOF
58694 #define HAVE_DECL_STRTOIMAX 0
58695 _ACEOF
58696
58697
58698 fi
58699 { echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
58700 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6; }
58701 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
58702   echo $ECHO_N "(cached) $ECHO_C" >&6
58703 else
58704   cat >conftest.$ac_ext <<_ACEOF
58705 /* confdefs.h.  */
58706 _ACEOF
58707 cat confdefs.h >>conftest.$ac_ext
58708 cat >>conftest.$ac_ext <<_ACEOF
58709 /* end confdefs.h.  */
58710 $ac_includes_default
58711 int
58712 main ()
58713 {
58714 #ifndef strtoumax
58715   char *p = (char *) strtoumax;
58716   return !p;
58717 #endif
58718
58719   ;
58720   return 0;
58721 }
58722 _ACEOF
58723 rm -f conftest.$ac_objext
58724 if { (ac_try="$ac_compile"
58725 case "(($ac_try" in
58726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58727   *) ac_try_echo=$ac_try;;
58728 esac
58729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58730   (eval "$ac_compile") 2>conftest.er1
58731   ac_status=$?
58732   grep -v '^ *+' conftest.er1 >conftest.err
58733   rm -f conftest.er1
58734   cat conftest.err >&5
58735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58736   (exit $ac_status); } &&
58737          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58738   { (case "(($ac_try" in
58739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58740   *) ac_try_echo=$ac_try;;
58741 esac
58742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58743   (eval "$ac_try") 2>&5
58744   ac_status=$?
58745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58746   (exit $ac_status); }; } &&
58747          { ac_try='test -s conftest.$ac_objext'
58748   { (case "(($ac_try" in
58749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58750   *) ac_try_echo=$ac_try;;
58751 esac
58752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58753   (eval "$ac_try") 2>&5
58754   ac_status=$?
58755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58756   (exit $ac_status); }; }; then
58757   ac_cv_have_decl_strtoumax=yes
58758 else
58759   echo "$as_me: failed program was:" >&5
58760 sed 's/^/| /' conftest.$ac_ext >&5
58761
58762         ac_cv_have_decl_strtoumax=no
58763 fi
58764
58765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58766 fi
58767 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
58768 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6; }
58769 if test $ac_cv_have_decl_strtoumax = yes; then
58770
58771 cat >>confdefs.h <<_ACEOF
58772 #define HAVE_DECL_STRTOUMAX 1
58773 _ACEOF
58774
58775
58776 else
58777   cat >>confdefs.h <<_ACEOF
58778 #define HAVE_DECL_STRTOUMAX 0
58779 _ACEOF
58780
58781
58782 fi
58783
58784
58785
58786
58787
58788   # Check for libypsec.a on Dolphin M88K machines.
58789
58790 { echo "$as_me:$LINENO: checking for main in -lypsec" >&5
58791 echo $ECHO_N "checking for main in -lypsec... $ECHO_C" >&6; }
58792 if test "${ac_cv_lib_ypsec_main+set}" = set; then
58793   echo $ECHO_N "(cached) $ECHO_C" >&6
58794 else
58795   ac_check_lib_save_LIBS=$LIBS
58796 LIBS="-lypsec  $LIBS"
58797 cat >conftest.$ac_ext <<_ACEOF
58798 /* confdefs.h.  */
58799 _ACEOF
58800 cat confdefs.h >>conftest.$ac_ext
58801 cat >>conftest.$ac_ext <<_ACEOF
58802 /* end confdefs.h.  */
58803
58804
58805 int
58806 main ()
58807 {
58808 return main ();
58809   ;
58810   return 0;
58811 }
58812 _ACEOF
58813 rm -f conftest.$ac_objext conftest$ac_exeext
58814 if { (ac_try="$ac_link"
58815 case "(($ac_try" in
58816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58817   *) ac_try_echo=$ac_try;;
58818 esac
58819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58820   (eval "$ac_link") 2>conftest.er1
58821   ac_status=$?
58822   grep -v '^ *+' conftest.er1 >conftest.err
58823   rm -f conftest.er1
58824   cat conftest.err >&5
58825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58826   (exit $ac_status); } &&
58827          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58828   { (case "(($ac_try" in
58829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58830   *) ac_try_echo=$ac_try;;
58831 esac
58832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58833   (eval "$ac_try") 2>&5
58834   ac_status=$?
58835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58836   (exit $ac_status); }; } &&
58837          { ac_try='test -s conftest$ac_exeext'
58838   { (case "(($ac_try" in
58839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58840   *) ac_try_echo=$ac_try;;
58841 esac
58842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58843   (eval "$ac_try") 2>&5
58844   ac_status=$?
58845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58846   (exit $ac_status); }; }; then
58847   ac_cv_lib_ypsec_main=yes
58848 else
58849   echo "$as_me: failed program was:" >&5
58850 sed 's/^/| /' conftest.$ac_ext >&5
58851
58852         ac_cv_lib_ypsec_main=no
58853 fi
58854
58855 rm -f core conftest.err conftest.$ac_objext \
58856       conftest$ac_exeext conftest.$ac_ext
58857 LIBS=$ac_check_lib_save_LIBS
58858 fi
58859 { echo "$as_me:$LINENO: result: $ac_cv_lib_ypsec_main" >&5
58860 echo "${ECHO_T}$ac_cv_lib_ypsec_main" >&6; }
58861 if test $ac_cv_lib_ypsec_main = yes; then
58862   cat >>confdefs.h <<_ACEOF
58863 #define HAVE_LIBYPSEC 1
58864 _ACEOF
58865
58866   LIBS="-lypsec $LIBS"
58867
58868 fi
58869
58870
58871   # m88k running dgux 5.4 needs this
58872
58873 { echo "$as_me:$LINENO: checking for main in -lldgc" >&5
58874 echo $ECHO_N "checking for main in -lldgc... $ECHO_C" >&6; }
58875 if test "${ac_cv_lib_ldgc_main+set}" = set; then
58876   echo $ECHO_N "(cached) $ECHO_C" >&6
58877 else
58878   ac_check_lib_save_LIBS=$LIBS
58879 LIBS="-lldgc  $LIBS"
58880 cat >conftest.$ac_ext <<_ACEOF
58881 /* confdefs.h.  */
58882 _ACEOF
58883 cat confdefs.h >>conftest.$ac_ext
58884 cat >>conftest.$ac_ext <<_ACEOF
58885 /* end confdefs.h.  */
58886
58887
58888 int
58889 main ()
58890 {
58891 return main ();
58892   ;
58893   return 0;
58894 }
58895 _ACEOF
58896 rm -f conftest.$ac_objext conftest$ac_exeext
58897 if { (ac_try="$ac_link"
58898 case "(($ac_try" in
58899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58900   *) ac_try_echo=$ac_try;;
58901 esac
58902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58903   (eval "$ac_link") 2>conftest.er1
58904   ac_status=$?
58905   grep -v '^ *+' conftest.er1 >conftest.err
58906   rm -f conftest.er1
58907   cat conftest.err >&5
58908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58909   (exit $ac_status); } &&
58910          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58911   { (case "(($ac_try" in
58912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58913   *) ac_try_echo=$ac_try;;
58914 esac
58915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58916   (eval "$ac_try") 2>&5
58917   ac_status=$?
58918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58919   (exit $ac_status); }; } &&
58920          { ac_try='test -s conftest$ac_exeext'
58921   { (case "(($ac_try" in
58922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58923   *) ac_try_echo=$ac_try;;
58924 esac
58925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58926   (eval "$ac_try") 2>&5
58927   ac_status=$?
58928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58929   (exit $ac_status); }; }; then
58930   ac_cv_lib_ldgc_main=yes
58931 else
58932   echo "$as_me: failed program was:" >&5
58933 sed 's/^/| /' conftest.$ac_ext >&5
58934
58935         ac_cv_lib_ldgc_main=no
58936 fi
58937
58938 rm -f core conftest.err conftest.$ac_objext \
58939       conftest$ac_exeext conftest.$ac_ext
58940 LIBS=$ac_check_lib_save_LIBS
58941 fi
58942 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldgc_main" >&5
58943 echo "${ECHO_T}$ac_cv_lib_ldgc_main" >&6; }
58944 if test $ac_cv_lib_ldgc_main = yes; then
58945   cat >>confdefs.h <<_ACEOF
58946 #define HAVE_LIBLDGC 1
58947 _ACEOF
58948
58949   LIBS="-lldgc $LIBS"
58950
58951 fi
58952
58953
58954   # The -lsun library is required for YP support on Irix-4.0.5 systems.
58955   # m88k/svr3 DolphinOS systems using YP need -lypsec for id.
58956   { echo "$as_me:$LINENO: checking for library containing yp_match" >&5
58957 echo $ECHO_N "checking for library containing yp_match... $ECHO_C" >&6; }
58958 if test "${ac_cv_search_yp_match+set}" = set; then
58959   echo $ECHO_N "(cached) $ECHO_C" >&6
58960 else
58961   ac_func_search_save_LIBS=$LIBS
58962 cat >conftest.$ac_ext <<_ACEOF
58963 /* confdefs.h.  */
58964 _ACEOF
58965 cat confdefs.h >>conftest.$ac_ext
58966 cat >>conftest.$ac_ext <<_ACEOF
58967 /* end confdefs.h.  */
58968
58969 /* Override any GCC internal prototype to avoid an error.
58970    Use char because int might match the return type of a GCC
58971    builtin and then its argument prototype would still apply.  */
58972 #ifdef __cplusplus
58973 extern "C"
58974 #endif
58975 char yp_match ();
58976 int
58977 main ()
58978 {
58979 return yp_match ();
58980   ;
58981   return 0;
58982 }
58983 _ACEOF
58984 for ac_lib in '' sun ypsec; do
58985   if test -z "$ac_lib"; then
58986     ac_res="none required"
58987   else
58988     ac_res=-l$ac_lib
58989     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
58990   fi
58991   rm -f conftest.$ac_objext conftest$ac_exeext
58992 if { (ac_try="$ac_link"
58993 case "(($ac_try" in
58994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58995   *) ac_try_echo=$ac_try;;
58996 esac
58997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58998   (eval "$ac_link") 2>conftest.er1
58999   ac_status=$?
59000   grep -v '^ *+' conftest.er1 >conftest.err
59001   rm -f conftest.er1
59002   cat conftest.err >&5
59003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59004   (exit $ac_status); } &&
59005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59006   { (case "(($ac_try" in
59007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59008   *) ac_try_echo=$ac_try;;
59009 esac
59010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59011   (eval "$ac_try") 2>&5
59012   ac_status=$?
59013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59014   (exit $ac_status); }; } &&
59015          { ac_try='test -s conftest$ac_exeext'
59016   { (case "(($ac_try" in
59017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59018   *) ac_try_echo=$ac_try;;
59019 esac
59020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59021   (eval "$ac_try") 2>&5
59022   ac_status=$?
59023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59024   (exit $ac_status); }; }; then
59025   ac_cv_search_yp_match=$ac_res
59026 else
59027   echo "$as_me: failed program was:" >&5
59028 sed 's/^/| /' conftest.$ac_ext >&5
59029
59030
59031 fi
59032
59033 rm -f core conftest.err conftest.$ac_objext \
59034       conftest$ac_exeext
59035   if test "${ac_cv_search_yp_match+set}" = set; then
59036   break
59037 fi
59038 done
59039 if test "${ac_cv_search_yp_match+set}" = set; then
59040   :
59041 else
59042   ac_cv_search_yp_match=no
59043 fi
59044 rm conftest.$ac_ext
59045 LIBS=$ac_func_search_save_LIBS
59046 fi
59047 { echo "$as_me:$LINENO: result: $ac_cv_search_yp_match" >&5
59048 echo "${ECHO_T}$ac_cv_search_yp_match" >&6; }
59049 ac_res=$ac_cv_search_yp_match
59050 if test "$ac_res" != no; then
59051   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
59052
59053 fi
59054
59055
59056   # SysV needs -lsec, older versions of Linux need -lshadow for
59057   # shadow passwords.  UnixWare 7 needs -lgen.
59058   { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
59059 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
59060 if test "${ac_cv_search_getspnam+set}" = set; then
59061   echo $ECHO_N "(cached) $ECHO_C" >&6
59062 else
59063   ac_func_search_save_LIBS=$LIBS
59064 cat >conftest.$ac_ext <<_ACEOF
59065 /* confdefs.h.  */
59066 _ACEOF
59067 cat confdefs.h >>conftest.$ac_ext
59068 cat >>conftest.$ac_ext <<_ACEOF
59069 /* end confdefs.h.  */
59070
59071 /* Override any GCC internal prototype to avoid an error.
59072    Use char because int might match the return type of a GCC
59073    builtin and then its argument prototype would still apply.  */
59074 #ifdef __cplusplus
59075 extern "C"
59076 #endif
59077 char getspnam ();
59078 int
59079 main ()
59080 {
59081 return getspnam ();
59082   ;
59083   return 0;
59084 }
59085 _ACEOF
59086 for ac_lib in '' shadow sec gen; do
59087   if test -z "$ac_lib"; then
59088     ac_res="none required"
59089   else
59090     ac_res=-l$ac_lib
59091     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
59092   fi
59093   rm -f conftest.$ac_objext conftest$ac_exeext
59094 if { (ac_try="$ac_link"
59095 case "(($ac_try" in
59096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59097   *) ac_try_echo=$ac_try;;
59098 esac
59099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59100   (eval "$ac_link") 2>conftest.er1
59101   ac_status=$?
59102   grep -v '^ *+' conftest.er1 >conftest.err
59103   rm -f conftest.er1
59104   cat conftest.err >&5
59105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59106   (exit $ac_status); } &&
59107          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59108   { (case "(($ac_try" in
59109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59110   *) ac_try_echo=$ac_try;;
59111 esac
59112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59113   (eval "$ac_try") 2>&5
59114   ac_status=$?
59115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59116   (exit $ac_status); }; } &&
59117          { ac_try='test -s conftest$ac_exeext'
59118   { (case "(($ac_try" in
59119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59120   *) ac_try_echo=$ac_try;;
59121 esac
59122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59123   (eval "$ac_try") 2>&5
59124   ac_status=$?
59125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59126   (exit $ac_status); }; }; then
59127   ac_cv_search_getspnam=$ac_res
59128 else
59129   echo "$as_me: failed program was:" >&5
59130 sed 's/^/| /' conftest.$ac_ext >&5
59131
59132
59133 fi
59134
59135 rm -f core conftest.err conftest.$ac_objext \
59136       conftest$ac_exeext
59137   if test "${ac_cv_search_getspnam+set}" = set; then
59138   break
59139 fi
59140 done
59141 if test "${ac_cv_search_getspnam+set}" = set; then
59142   :
59143 else
59144   ac_cv_search_getspnam=no
59145 fi
59146 rm conftest.$ac_ext
59147 LIBS=$ac_func_search_save_LIBS
59148 fi
59149 { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
59150 echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
59151 ac_res=$ac_cv_search_getspnam
59152 if test "$ac_res" != no; then
59153   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
59154
59155 fi
59156
59157
59158
59159 for ac_header in shadow.h
59160 do
59161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
59162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
59163   { echo "$as_me:$LINENO: checking for $ac_header" >&5
59164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
59165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
59166   echo $ECHO_N "(cached) $ECHO_C" >&6
59167 fi
59168 ac_res=`eval echo '${'$as_ac_Header'}'`
59169                { echo "$as_me:$LINENO: result: $ac_res" >&5
59170 echo "${ECHO_T}$ac_res" >&6; }
59171 else
59172   # Is the header compilable?
59173 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
59174 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
59175 cat >conftest.$ac_ext <<_ACEOF
59176 /* confdefs.h.  */
59177 _ACEOF
59178 cat confdefs.h >>conftest.$ac_ext
59179 cat >>conftest.$ac_ext <<_ACEOF
59180 /* end confdefs.h.  */
59181 $ac_includes_default
59182 #include <$ac_header>
59183 _ACEOF
59184 rm -f conftest.$ac_objext
59185 if { (ac_try="$ac_compile"
59186 case "(($ac_try" in
59187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59188   *) ac_try_echo=$ac_try;;
59189 esac
59190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59191   (eval "$ac_compile") 2>conftest.er1
59192   ac_status=$?
59193   grep -v '^ *+' conftest.er1 >conftest.err
59194   rm -f conftest.er1
59195   cat conftest.err >&5
59196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59197   (exit $ac_status); } &&
59198          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59199   { (case "(($ac_try" in
59200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59201   *) ac_try_echo=$ac_try;;
59202 esac
59203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59204   (eval "$ac_try") 2>&5
59205   ac_status=$?
59206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59207   (exit $ac_status); }; } &&
59208          { ac_try='test -s conftest.$ac_objext'
59209   { (case "(($ac_try" in
59210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59211   *) ac_try_echo=$ac_try;;
59212 esac
59213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59214   (eval "$ac_try") 2>&5
59215   ac_status=$?
59216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59217   (exit $ac_status); }; }; then
59218   ac_header_compiler=yes
59219 else
59220   echo "$as_me: failed program was:" >&5
59221 sed 's/^/| /' conftest.$ac_ext >&5
59222
59223         ac_header_compiler=no
59224 fi
59225
59226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59227 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59228 echo "${ECHO_T}$ac_header_compiler" >&6; }
59229
59230 # Is the header present?
59231 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
59232 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
59233 cat >conftest.$ac_ext <<_ACEOF
59234 /* confdefs.h.  */
59235 _ACEOF
59236 cat confdefs.h >>conftest.$ac_ext
59237 cat >>conftest.$ac_ext <<_ACEOF
59238 /* end confdefs.h.  */
59239 #include <$ac_header>
59240 _ACEOF
59241 if { (ac_try="$ac_cpp conftest.$ac_ext"
59242 case "(($ac_try" in
59243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59244   *) ac_try_echo=$ac_try;;
59245 esac
59246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59247   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
59248   ac_status=$?
59249   grep -v '^ *+' conftest.er1 >conftest.err
59250   rm -f conftest.er1
59251   cat conftest.err >&5
59252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59253   (exit $ac_status); } >/dev/null; then
59254   if test -s conftest.err; then
59255     ac_cpp_err=$ac_c_preproc_warn_flag
59256     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59257   else
59258     ac_cpp_err=
59259   fi
59260 else
59261   ac_cpp_err=yes
59262 fi
59263 if test -z "$ac_cpp_err"; then
59264   ac_header_preproc=yes
59265 else
59266   echo "$as_me: failed program was:" >&5
59267 sed 's/^/| /' conftest.$ac_ext >&5
59268
59269   ac_header_preproc=no
59270 fi
59271
59272 rm -f conftest.err conftest.$ac_ext
59273 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59274 echo "${ECHO_T}$ac_header_preproc" >&6; }
59275
59276 # So?  What about this header?
59277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59278   yes:no: )
59279     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
59280 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
59281     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
59282 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
59283     ac_header_preproc=yes
59284     ;;
59285   no:yes:* )
59286     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
59287 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
59288     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
59289 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
59290     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
59291 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
59292     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
59293 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
59294     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59295 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59296     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
59297 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
59298     ( cat <<\_ASBOX
59299 ## ------------------------------------ ##
59300 ## Report this to bug-coreutils@gnu.org ##
59301 ## ------------------------------------ ##
59302 _ASBOX
59303      ) | sed "s/^/$as_me: WARNING:     /" >&2
59304     ;;
59305 esac
59306 { echo "$as_me:$LINENO: checking for $ac_header" >&5
59307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
59308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
59309   echo $ECHO_N "(cached) $ECHO_C" >&6
59310 else
59311   eval "$as_ac_Header=\$ac_header_preproc"
59312 fi
59313 ac_res=`eval echo '${'$as_ac_Header'}'`
59314                { echo "$as_me:$LINENO: result: $ac_res" >&5
59315 echo "${ECHO_T}$ac_res" >&6; }
59316
59317 fi
59318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
59319   cat >>confdefs.h <<_ACEOF
59320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
59321 _ACEOF
59322
59323 fi
59324
59325 done
59326
59327
59328   # Requirements for su.c.
59329   shadow_includes="\
59330 $ac_includes_default
59331 #if HAVE_SHADOW_H
59332 # include <shadow.h>
59333 #endif
59334 "
59335   { echo "$as_me:$LINENO: checking for struct spwd.sp_pwdp" >&5
59336 echo $ECHO_N "checking for struct spwd.sp_pwdp... $ECHO_C" >&6; }
59337 if test "${ac_cv_member_struct_spwd_sp_pwdp+set}" = set; then
59338   echo $ECHO_N "(cached) $ECHO_C" >&6
59339 else
59340   cat >conftest.$ac_ext <<_ACEOF
59341 /* confdefs.h.  */
59342 _ACEOF
59343 cat confdefs.h >>conftest.$ac_ext
59344 cat >>conftest.$ac_ext <<_ACEOF
59345 /* end confdefs.h.  */
59346 $shadow_includes
59347
59348 int
59349 main ()
59350 {
59351 static struct spwd ac_aggr;
59352 if (ac_aggr.sp_pwdp)
59353 return 0;
59354   ;
59355   return 0;
59356 }
59357 _ACEOF
59358 rm -f conftest.$ac_objext
59359 if { (ac_try="$ac_compile"
59360 case "(($ac_try" in
59361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59362   *) ac_try_echo=$ac_try;;
59363 esac
59364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59365   (eval "$ac_compile") 2>conftest.er1
59366   ac_status=$?
59367   grep -v '^ *+' conftest.er1 >conftest.err
59368   rm -f conftest.er1
59369   cat conftest.err >&5
59370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59371   (exit $ac_status); } &&
59372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59373   { (case "(($ac_try" in
59374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59375   *) ac_try_echo=$ac_try;;
59376 esac
59377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59378   (eval "$ac_try") 2>&5
59379   ac_status=$?
59380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59381   (exit $ac_status); }; } &&
59382          { ac_try='test -s conftest.$ac_objext'
59383   { (case "(($ac_try" in
59384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59385   *) ac_try_echo=$ac_try;;
59386 esac
59387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59388   (eval "$ac_try") 2>&5
59389   ac_status=$?
59390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59391   (exit $ac_status); }; }; then
59392   ac_cv_member_struct_spwd_sp_pwdp=yes
59393 else
59394   echo "$as_me: failed program was:" >&5
59395 sed 's/^/| /' conftest.$ac_ext >&5
59396
59397         cat >conftest.$ac_ext <<_ACEOF
59398 /* confdefs.h.  */
59399 _ACEOF
59400 cat confdefs.h >>conftest.$ac_ext
59401 cat >>conftest.$ac_ext <<_ACEOF
59402 /* end confdefs.h.  */
59403 $shadow_includes
59404
59405 int
59406 main ()
59407 {
59408 static struct spwd ac_aggr;
59409 if (sizeof ac_aggr.sp_pwdp)
59410 return 0;
59411   ;
59412   return 0;
59413 }
59414 _ACEOF
59415 rm -f conftest.$ac_objext
59416 if { (ac_try="$ac_compile"
59417 case "(($ac_try" in
59418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59419   *) ac_try_echo=$ac_try;;
59420 esac
59421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59422   (eval "$ac_compile") 2>conftest.er1
59423   ac_status=$?
59424   grep -v '^ *+' conftest.er1 >conftest.err
59425   rm -f conftest.er1
59426   cat conftest.err >&5
59427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59428   (exit $ac_status); } &&
59429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59430   { (case "(($ac_try" in
59431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59432   *) ac_try_echo=$ac_try;;
59433 esac
59434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59435   (eval "$ac_try") 2>&5
59436   ac_status=$?
59437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59438   (exit $ac_status); }; } &&
59439          { ac_try='test -s conftest.$ac_objext'
59440   { (case "(($ac_try" in
59441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59442   *) ac_try_echo=$ac_try;;
59443 esac
59444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59445   (eval "$ac_try") 2>&5
59446   ac_status=$?
59447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59448   (exit $ac_status); }; }; then
59449   ac_cv_member_struct_spwd_sp_pwdp=yes
59450 else
59451   echo "$as_me: failed program was:" >&5
59452 sed 's/^/| /' conftest.$ac_ext >&5
59453
59454         ac_cv_member_struct_spwd_sp_pwdp=no
59455 fi
59456
59457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59458 fi
59459
59460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59461 fi
59462 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_spwd_sp_pwdp" >&5
59463 echo "${ECHO_T}$ac_cv_member_struct_spwd_sp_pwdp" >&6; }
59464 if test $ac_cv_member_struct_spwd_sp_pwdp = yes; then
59465
59466 cat >>confdefs.h <<_ACEOF
59467 #define HAVE_STRUCT_SPWD_SP_PWDP 1
59468 _ACEOF
59469
59470
59471 fi
59472
59473
59474 for ac_func in getspnam
59475 do
59476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59477 { echo "$as_me:$LINENO: checking for $ac_func" >&5
59478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
59479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59480   echo $ECHO_N "(cached) $ECHO_C" >&6
59481 else
59482   cat >conftest.$ac_ext <<_ACEOF
59483 /* confdefs.h.  */
59484 _ACEOF
59485 cat confdefs.h >>conftest.$ac_ext
59486 cat >>conftest.$ac_ext <<_ACEOF
59487 /* end confdefs.h.  */
59488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59489    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59490 #define $ac_func innocuous_$ac_func
59491
59492 /* System header to define __stub macros and hopefully few prototypes,
59493     which can conflict with char $ac_func (); below.
59494     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59495     <limits.h> exists even on freestanding compilers.  */
59496
59497 #ifdef __STDC__
59498 # include <limits.h>
59499 #else
59500 # include <assert.h>
59501 #endif
59502
59503 #undef $ac_func
59504
59505 /* Override any GCC internal prototype to avoid an error.
59506    Use char because int might match the return type of a GCC
59507    builtin and then its argument prototype would still apply.  */
59508 #ifdef __cplusplus
59509 extern "C"
59510 #endif
59511 char $ac_func ();
59512 /* The GNU C library defines this for functions which it implements
59513     to always fail with ENOSYS.  Some functions are actually named
59514     something starting with __ and the normal name is an alias.  */
59515 #if defined __stub_$ac_func || defined __stub___$ac_func
59516 choke me
59517 #endif
59518
59519 int
59520 main ()
59521 {
59522 return $ac_func ();
59523   ;
59524   return 0;
59525 }
59526 _ACEOF
59527 rm -f conftest.$ac_objext conftest$ac_exeext
59528 if { (ac_try="$ac_link"
59529 case "(($ac_try" in
59530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59531   *) ac_try_echo=$ac_try;;
59532 esac
59533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59534   (eval "$ac_link") 2>conftest.er1
59535   ac_status=$?
59536   grep -v '^ *+' conftest.er1 >conftest.err
59537   rm -f conftest.er1
59538   cat conftest.err >&5
59539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59540   (exit $ac_status); } &&
59541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59542   { (case "(($ac_try" in
59543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59544   *) ac_try_echo=$ac_try;;
59545 esac
59546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59547   (eval "$ac_try") 2>&5
59548   ac_status=$?
59549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59550   (exit $ac_status); }; } &&
59551          { ac_try='test -s conftest$ac_exeext'
59552   { (case "(($ac_try" in
59553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59554   *) ac_try_echo=$ac_try;;
59555 esac
59556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59557   (eval "$ac_try") 2>&5
59558   ac_status=$?
59559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59560   (exit $ac_status); }; }; then
59561   eval "$as_ac_var=yes"
59562 else
59563   echo "$as_me: failed program was:" >&5
59564 sed 's/^/| /' conftest.$ac_ext >&5
59565
59566         eval "$as_ac_var=no"
59567 fi
59568
59569 rm -f core conftest.err conftest.$ac_objext \
59570       conftest$ac_exeext conftest.$ac_ext
59571 fi
59572 ac_res=`eval echo '${'$as_ac_var'}'`
59573                { echo "$as_me:$LINENO: result: $ac_res" >&5
59574 echo "${ECHO_T}$ac_res" >&6; }
59575 if test `eval echo '${'$as_ac_var'}'` = yes; then
59576   cat >>confdefs.h <<_ACEOF
59577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59578 _ACEOF
59579
59580 fi
59581 done
59582
59583
59584   # SCO-ODT-3.0 is reported to need -lufc for crypt.
59585   # NetBSD needs -lcrypt for crypt.
59586   cu_saved_libs="$LIBS"
59587   { echo "$as_me:$LINENO: checking for library containing crypt" >&5
59588 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
59589 if test "${ac_cv_search_crypt+set}" = set; then
59590   echo $ECHO_N "(cached) $ECHO_C" >&6
59591 else
59592   ac_func_search_save_LIBS=$LIBS
59593 cat >conftest.$ac_ext <<_ACEOF
59594 /* confdefs.h.  */
59595 _ACEOF
59596 cat confdefs.h >>conftest.$ac_ext
59597 cat >>conftest.$ac_ext <<_ACEOF
59598 /* end confdefs.h.  */
59599
59600 /* Override any GCC internal prototype to avoid an error.
59601    Use char because int might match the return type of a GCC
59602    builtin and then its argument prototype would still apply.  */
59603 #ifdef __cplusplus
59604 extern "C"
59605 #endif
59606 char crypt ();
59607 int
59608 main ()
59609 {
59610 return crypt ();
59611   ;
59612   return 0;
59613 }
59614 _ACEOF
59615 for ac_lib in '' ufc crypt; do
59616   if test -z "$ac_lib"; then
59617     ac_res="none required"
59618   else
59619     ac_res=-l$ac_lib
59620     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
59621   fi
59622   rm -f conftest.$ac_objext conftest$ac_exeext
59623 if { (ac_try="$ac_link"
59624 case "(($ac_try" in
59625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59626   *) ac_try_echo=$ac_try;;
59627 esac
59628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59629   (eval "$ac_link") 2>conftest.er1
59630   ac_status=$?
59631   grep -v '^ *+' conftest.er1 >conftest.err
59632   rm -f conftest.er1
59633   cat conftest.err >&5
59634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59635   (exit $ac_status); } &&
59636          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59637   { (case "(($ac_try" in
59638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59639   *) ac_try_echo=$ac_try;;
59640 esac
59641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59642   (eval "$ac_try") 2>&5
59643   ac_status=$?
59644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59645   (exit $ac_status); }; } &&
59646          { ac_try='test -s conftest$ac_exeext'
59647   { (case "(($ac_try" in
59648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59649   *) ac_try_echo=$ac_try;;
59650 esac
59651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59652   (eval "$ac_try") 2>&5
59653   ac_status=$?
59654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59655   (exit $ac_status); }; }; then
59656   ac_cv_search_crypt=$ac_res
59657 else
59658   echo "$as_me: failed program was:" >&5
59659 sed 's/^/| /' conftest.$ac_ext >&5
59660
59661
59662 fi
59663
59664 rm -f core conftest.err conftest.$ac_objext \
59665       conftest$ac_exeext
59666   if test "${ac_cv_search_crypt+set}" = set; then
59667   break
59668 fi
59669 done
59670 if test "${ac_cv_search_crypt+set}" = set; then
59671   :
59672 else
59673   ac_cv_search_crypt=no
59674 fi
59675 rm conftest.$ac_ext
59676 LIBS=$ac_func_search_save_LIBS
59677 fi
59678 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
59679 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
59680 ac_res=$ac_cv_search_crypt
59681 if test "$ac_res" != no; then
59682   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
59683   test "$ac_cv_search_crypt" = "none required" ||
59684                   LIB_CRYPT="$ac_cv_search_crypt"
59685 fi
59686
59687   LIBS="$cu_saved_libs"
59688
59689
59690
59691
59692
59693         MKINSTALLDIRS=
59694   if test -n "$ac_aux_dir"; then
59695     case "$ac_aux_dir" in
59696       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
59697       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
59698     esac
59699   fi
59700   if test -z "$MKINSTALLDIRS"; then
59701     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
59702   fi
59703
59704
59705
59706   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
59707 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
59708     # Check whether --enable-nls was given.
59709 if test "${enable_nls+set}" = set; then
59710   enableval=$enable_nls; USE_NLS=$enableval
59711 else
59712   USE_NLS=yes
59713 fi
59714
59715   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
59716 echo "${ECHO_T}$USE_NLS" >&6; }
59717
59718
59719
59720
59721
59722
59723 # Prepare PATH_SEPARATOR.
59724 # The user is always right.
59725 if test "${PATH_SEPARATOR+set}" != set; then
59726   echo "#! /bin/sh" >conf$$.sh
59727   echo  "exit 0"   >>conf$$.sh
59728   chmod +x conf$$.sh
59729   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
59730     PATH_SEPARATOR=';'
59731   else
59732     PATH_SEPARATOR=:
59733   fi
59734   rm -f conf$$.sh
59735 fi
59736
59737 # Find out how to test for executable files. Don't use a zero-byte file,
59738 # as systems may use methods other than mode bits to determine executability.
59739 cat >conf$$.file <<_ASEOF
59740 #! /bin/sh
59741 exit 0
59742 _ASEOF
59743 chmod +x conf$$.file
59744 if test -x conf$$.file >/dev/null 2>&1; then
59745   ac_executable_p="test -x"
59746 else
59747   ac_executable_p="test -f"
59748 fi
59749 rm -f conf$$.file
59750
59751 # Extract the first word of "msgfmt", so it can be a program name with args.
59752 set dummy msgfmt; ac_word=$2
59753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
59754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59755 if test "${ac_cv_path_MSGFMT+set}" = set; then
59756   echo $ECHO_N "(cached) $ECHO_C" >&6
59757 else
59758   case "$MSGFMT" in
59759   [\\/]* | ?:[\\/]*)
59760     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
59761     ;;
59762   *)
59763     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
59764     for ac_dir in $PATH; do
59765       IFS="$ac_save_IFS"
59766       test -z "$ac_dir" && ac_dir=.
59767       for ac_exec_ext in '' $ac_executable_extensions; do
59768         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
59769           echo "$as_me: trying $ac_dir/$ac_word..." >&5
59770           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
59771      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
59772             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
59773             break 2
59774           fi
59775         fi
59776       done
59777     done
59778     IFS="$ac_save_IFS"
59779   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
59780     ;;
59781 esac
59782 fi
59783 MSGFMT="$ac_cv_path_MSGFMT"
59784 if test "$MSGFMT" != ":"; then
59785   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
59786 echo "${ECHO_T}$MSGFMT" >&6; }
59787 else
59788   { echo "$as_me:$LINENO: result: no" >&5
59789 echo "${ECHO_T}no" >&6; }
59790 fi
59791
59792   # Extract the first word of "gmsgfmt", so it can be a program name with args.
59793 set dummy gmsgfmt; ac_word=$2
59794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
59795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59796 if test "${ac_cv_path_GMSGFMT+set}" = set; then
59797   echo $ECHO_N "(cached) $ECHO_C" >&6
59798 else
59799   case $GMSGFMT in
59800   [\\/]* | ?:[\\/]*)
59801   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
59802   ;;
59803   *)
59804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
59805 for as_dir in $PATH
59806 do
59807   IFS=$as_save_IFS
59808   test -z "$as_dir" && as_dir=.
59809   for ac_exec_ext in '' $ac_executable_extensions; do
59810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
59811     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
59812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
59813     break 2
59814   fi
59815 done
59816 done
59817 IFS=$as_save_IFS
59818
59819   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
59820   ;;
59821 esac
59822 fi
59823 GMSGFMT=$ac_cv_path_GMSGFMT
59824 if test -n "$GMSGFMT"; then
59825   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
59826 echo "${ECHO_T}$GMSGFMT" >&6; }
59827 else
59828   { echo "$as_me:$LINENO: result: no" >&5
59829 echo "${ECHO_T}no" >&6; }
59830 fi
59831
59832
59833
59834
59835 # Prepare PATH_SEPARATOR.
59836 # The user is always right.
59837 if test "${PATH_SEPARATOR+set}" != set; then
59838   echo "#! /bin/sh" >conf$$.sh
59839   echo  "exit 0"   >>conf$$.sh
59840   chmod +x conf$$.sh
59841   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
59842     PATH_SEPARATOR=';'
59843   else
59844     PATH_SEPARATOR=:
59845   fi
59846   rm -f conf$$.sh
59847 fi
59848
59849 # Find out how to test for executable files. Don't use a zero-byte file,
59850 # as systems may use methods other than mode bits to determine executability.
59851 cat >conf$$.file <<_ASEOF
59852 #! /bin/sh
59853 exit 0
59854 _ASEOF
59855 chmod +x conf$$.file
59856 if test -x conf$$.file >/dev/null 2>&1; then
59857   ac_executable_p="test -x"
59858 else
59859   ac_executable_p="test -f"
59860 fi
59861 rm -f conf$$.file
59862
59863 # Extract the first word of "xgettext", so it can be a program name with args.
59864 set dummy xgettext; ac_word=$2
59865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
59866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59867 if test "${ac_cv_path_XGETTEXT+set}" = set; then
59868   echo $ECHO_N "(cached) $ECHO_C" >&6
59869 else
59870   case "$XGETTEXT" in
59871   [\\/]* | ?:[\\/]*)
59872     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
59873     ;;
59874   *)
59875     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
59876     for ac_dir in $PATH; do
59877       IFS="$ac_save_IFS"
59878       test -z "$ac_dir" && ac_dir=.
59879       for ac_exec_ext in '' $ac_executable_extensions; do
59880         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
59881           echo "$as_me: trying $ac_dir/$ac_word..." >&5
59882           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
59883      (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
59884             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
59885             break 2
59886           fi
59887         fi
59888       done
59889     done
59890     IFS="$ac_save_IFS"
59891   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
59892     ;;
59893 esac
59894 fi
59895 XGETTEXT="$ac_cv_path_XGETTEXT"
59896 if test "$XGETTEXT" != ":"; then
59897   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
59898 echo "${ECHO_T}$XGETTEXT" >&6; }
59899 else
59900   { echo "$as_me:$LINENO: result: no" >&5
59901 echo "${ECHO_T}no" >&6; }
59902 fi
59903
59904     rm -f messages.po
59905
59906
59907 # Prepare PATH_SEPARATOR.
59908 # The user is always right.
59909 if test "${PATH_SEPARATOR+set}" != set; then
59910   echo "#! /bin/sh" >conf$$.sh
59911   echo  "exit 0"   >>conf$$.sh
59912   chmod +x conf$$.sh
59913   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
59914     PATH_SEPARATOR=';'
59915   else
59916     PATH_SEPARATOR=:
59917   fi
59918   rm -f conf$$.sh
59919 fi
59920
59921 # Find out how to test for executable files. Don't use a zero-byte file,
59922 # as systems may use methods other than mode bits to determine executability.
59923 cat >conf$$.file <<_ASEOF
59924 #! /bin/sh
59925 exit 0
59926 _ASEOF
59927 chmod +x conf$$.file
59928 if test -x conf$$.file >/dev/null 2>&1; then
59929   ac_executable_p="test -x"
59930 else
59931   ac_executable_p="test -f"
59932 fi
59933 rm -f conf$$.file
59934
59935 # Extract the first word of "msgmerge", so it can be a program name with args.
59936 set dummy msgmerge; ac_word=$2
59937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
59938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59939 if test "${ac_cv_path_MSGMERGE+set}" = set; then
59940   echo $ECHO_N "(cached) $ECHO_C" >&6
59941 else
59942   case "$MSGMERGE" in
59943   [\\/]* | ?:[\\/]*)
59944     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
59945     ;;
59946   *)
59947     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
59948     for ac_dir in $PATH; do
59949       IFS="$ac_save_IFS"
59950       test -z "$ac_dir" && ac_dir=.
59951       for ac_exec_ext in '' $ac_executable_extensions; do
59952         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
59953           echo "$as_me: trying $ac_dir/$ac_word..." >&5
59954           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
59955             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
59956             break 2
59957           fi
59958         fi
59959       done
59960     done
59961     IFS="$ac_save_IFS"
59962   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
59963     ;;
59964 esac
59965 fi
59966 MSGMERGE="$ac_cv_path_MSGMERGE"
59967 if test "$MSGMERGE" != ":"; then
59968   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
59969 echo "${ECHO_T}$MSGMERGE" >&6; }
59970 else
59971   { echo "$as_me:$LINENO: result: no" >&5
59972 echo "${ECHO_T}no" >&6; }
59973 fi
59974
59975
59976       if test "$GMSGFMT" != ":"; then
59977             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
59978        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
59979       : ;
59980     else
59981       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
59982       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
59983 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
59984       GMSGFMT=":"
59985     fi
59986   fi
59987
59988       if test "$XGETTEXT" != ":"; then
59989             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
59990        (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
59991       : ;
59992     else
59993       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
59994 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
59995       XGETTEXT=":"
59996     fi
59997         rm -f messages.po
59998   fi
59999
60000   ac_config_commands="$ac_config_commands default-1"
60001
60002
60003
60004
60005
60006
60007
60008
60009
60010
60011
60012
60013
60014
60015
60016
60017
60018
60019     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
60020 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
60021 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
60022   echo $ECHO_N "(cached) $ECHO_C" >&6
60023 else
60024   gt_save_CPPFLAGS="$CPPFLAGS"
60025      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
60026      gt_save_LIBS="$LIBS"
60027      LIBS="$LIBS -framework CoreFoundation"
60028      cat >conftest.$ac_ext <<_ACEOF
60029 /* confdefs.h.  */
60030 _ACEOF
60031 cat confdefs.h >>conftest.$ac_ext
60032 cat >>conftest.$ac_ext <<_ACEOF
60033 /* end confdefs.h.  */
60034 #include <CFPreferences.h>
60035 int
60036 main ()
60037 {
60038 CFPreferencesCopyAppValue(NULL, NULL)
60039   ;
60040   return 0;
60041 }
60042 _ACEOF
60043 rm -f conftest.$ac_objext conftest$ac_exeext
60044 if { (ac_try="$ac_link"
60045 case "(($ac_try" in
60046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60047   *) ac_try_echo=$ac_try;;
60048 esac
60049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60050   (eval "$ac_link") 2>conftest.er1
60051   ac_status=$?
60052   grep -v '^ *+' conftest.er1 >conftest.err
60053   rm -f conftest.er1
60054   cat conftest.err >&5
60055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60056   (exit $ac_status); } &&
60057          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60058   { (case "(($ac_try" in
60059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60060   *) ac_try_echo=$ac_try;;
60061 esac
60062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60063   (eval "$ac_try") 2>&5
60064   ac_status=$?
60065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60066   (exit $ac_status); }; } &&
60067          { ac_try='test -s conftest$ac_exeext'
60068   { (case "(($ac_try" in
60069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60070   *) ac_try_echo=$ac_try;;
60071 esac
60072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60073   (eval "$ac_try") 2>&5
60074   ac_status=$?
60075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60076   (exit $ac_status); }; }; then
60077   gt_cv_func_CFPreferencesCopyAppValue=yes
60078 else
60079   echo "$as_me: failed program was:" >&5
60080 sed 's/^/| /' conftest.$ac_ext >&5
60081
60082         gt_cv_func_CFPreferencesCopyAppValue=no
60083 fi
60084
60085 rm -f core conftest.err conftest.$ac_objext \
60086       conftest$ac_exeext conftest.$ac_ext
60087      CPPFLAGS="$gt_save_CPPFLAGS"
60088      LIBS="$gt_save_LIBS"
60089 fi
60090 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
60091 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
60092   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
60093
60094 cat >>confdefs.h <<\_ACEOF
60095 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
60096 _ACEOF
60097
60098   fi
60099     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
60100 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
60101 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
60102   echo $ECHO_N "(cached) $ECHO_C" >&6
60103 else
60104   gt_save_CPPFLAGS="$CPPFLAGS"
60105      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
60106      gt_save_LIBS="$LIBS"
60107      LIBS="$LIBS -framework CoreFoundation"
60108      cat >conftest.$ac_ext <<_ACEOF
60109 /* confdefs.h.  */
60110 _ACEOF
60111 cat confdefs.h >>conftest.$ac_ext
60112 cat >>conftest.$ac_ext <<_ACEOF
60113 /* end confdefs.h.  */
60114 #include <CFLocale.h>
60115 int
60116 main ()
60117 {
60118 CFLocaleCopyCurrent();
60119   ;
60120   return 0;
60121 }
60122 _ACEOF
60123 rm -f conftest.$ac_objext conftest$ac_exeext
60124 if { (ac_try="$ac_link"
60125 case "(($ac_try" in
60126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60127   *) ac_try_echo=$ac_try;;
60128 esac
60129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60130   (eval "$ac_link") 2>conftest.er1
60131   ac_status=$?
60132   grep -v '^ *+' conftest.er1 >conftest.err
60133   rm -f conftest.er1
60134   cat conftest.err >&5
60135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60136   (exit $ac_status); } &&
60137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60138   { (case "(($ac_try" in
60139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60140   *) ac_try_echo=$ac_try;;
60141 esac
60142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60143   (eval "$ac_try") 2>&5
60144   ac_status=$?
60145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60146   (exit $ac_status); }; } &&
60147          { ac_try='test -s conftest$ac_exeext'
60148   { (case "(($ac_try" in
60149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60150   *) ac_try_echo=$ac_try;;
60151 esac
60152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60153   (eval "$ac_try") 2>&5
60154   ac_status=$?
60155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60156   (exit $ac_status); }; }; then
60157   gt_cv_func_CFLocaleCopyCurrent=yes
60158 else
60159   echo "$as_me: failed program was:" >&5
60160 sed 's/^/| /' conftest.$ac_ext >&5
60161
60162         gt_cv_func_CFLocaleCopyCurrent=no
60163 fi
60164
60165 rm -f core conftest.err conftest.$ac_objext \
60166       conftest$ac_exeext conftest.$ac_ext
60167      CPPFLAGS="$gt_save_CPPFLAGS"
60168      LIBS="$gt_save_LIBS"
60169 fi
60170 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
60171 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
60172   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
60173
60174 cat >>confdefs.h <<\_ACEOF
60175 #define HAVE_CFLOCALECOPYCURRENT 1
60176 _ACEOF
60177
60178   fi
60179   INTL_MACOSX_LIBS=
60180   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
60181     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
60182   fi
60183
60184
60185
60186
60187   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
60188 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
60189     # Check whether --enable-nls was given.
60190 if test "${enable_nls+set}" = set; then
60191   enableval=$enable_nls; USE_NLS=$enableval
60192 else
60193   USE_NLS=yes
60194 fi
60195
60196   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
60197 echo "${ECHO_T}$USE_NLS" >&6; }
60198
60199
60200
60201
60202   LIBINTL=
60203   LTLIBINTL=
60204   POSUB=
60205
60206     if test "$USE_NLS" = "yes"; then
60207     gt_use_preinstalled_gnugettext=no
60208
60209
60210
60211
60212
60213
60214         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
60215 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
60216 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
60217   echo $ECHO_N "(cached) $ECHO_C" >&6
60218 else
60219   cat >conftest.$ac_ext <<_ACEOF
60220 /* confdefs.h.  */
60221 _ACEOF
60222 cat confdefs.h >>conftest.$ac_ext
60223 cat >>conftest.$ac_ext <<_ACEOF
60224 /* end confdefs.h.  */
60225 #include <libintl.h>
60226 extern int _nl_msg_cat_cntr;
60227 extern int *_nl_domain_bindings;
60228 int
60229 main ()
60230 {
60231 bindtextdomain ("", "");
60232 return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
60233   ;
60234   return 0;
60235 }
60236 _ACEOF
60237 rm -f conftest.$ac_objext conftest$ac_exeext
60238 if { (ac_try="$ac_link"
60239 case "(($ac_try" in
60240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60241   *) ac_try_echo=$ac_try;;
60242 esac
60243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60244   (eval "$ac_link") 2>conftest.er1
60245   ac_status=$?
60246   grep -v '^ *+' conftest.er1 >conftest.err
60247   rm -f conftest.er1
60248   cat conftest.err >&5
60249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60250   (exit $ac_status); } &&
60251          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60252   { (case "(($ac_try" in
60253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60254   *) ac_try_echo=$ac_try;;
60255 esac
60256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60257   (eval "$ac_try") 2>&5
60258   ac_status=$?
60259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60260   (exit $ac_status); }; } &&
60261          { ac_try='test -s conftest$ac_exeext'
60262   { (case "(($ac_try" in
60263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60264   *) ac_try_echo=$ac_try;;
60265 esac
60266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60267   (eval "$ac_try") 2>&5
60268   ac_status=$?
60269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60270   (exit $ac_status); }; }; then
60271   gt_cv_func_gnugettext2_libc=yes
60272 else
60273   echo "$as_me: failed program was:" >&5
60274 sed 's/^/| /' conftest.$ac_ext >&5
60275
60276         gt_cv_func_gnugettext2_libc=no
60277 fi
60278
60279 rm -f core conftest.err conftest.$ac_objext \
60280       conftest$ac_exeext conftest.$ac_ext
60281 fi
60282 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
60283 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6; }
60284
60285         if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
60286
60287
60288
60289
60290
60291           am_save_CPPFLAGS="$CPPFLAGS"
60292
60293   for element in $INCICONV; do
60294     haveit=
60295     for x in $CPPFLAGS; do
60296
60297   acl_save_prefix="$prefix"
60298   prefix="$acl_final_prefix"
60299   acl_save_exec_prefix="$exec_prefix"
60300   exec_prefix="$acl_final_exec_prefix"
60301   eval x=\"$x\"
60302   exec_prefix="$acl_save_exec_prefix"
60303   prefix="$acl_save_prefix"
60304
60305       if test "X$x" = "X$element"; then
60306         haveit=yes
60307         break
60308       fi
60309     done
60310     if test -z "$haveit"; then
60311       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
60312     fi
60313   done
60314
60315
60316   { echo "$as_me:$LINENO: checking for iconv" >&5
60317 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
60318 if test "${am_cv_func_iconv+set}" = set; then
60319   echo $ECHO_N "(cached) $ECHO_C" >&6
60320 else
60321
60322     am_cv_func_iconv="no, consider installing GNU libiconv"
60323     am_cv_lib_iconv=no
60324     cat >conftest.$ac_ext <<_ACEOF
60325 /* confdefs.h.  */
60326 _ACEOF
60327 cat confdefs.h >>conftest.$ac_ext
60328 cat >>conftest.$ac_ext <<_ACEOF
60329 /* end confdefs.h.  */
60330 #include <stdlib.h>
60331 #include <iconv.h>
60332 int
60333 main ()
60334 {
60335 iconv_t cd = iconv_open("","");
60336        iconv(cd,NULL,NULL,NULL,NULL);
60337        iconv_close(cd);
60338   ;
60339   return 0;
60340 }
60341 _ACEOF
60342 rm -f conftest.$ac_objext conftest$ac_exeext
60343 if { (ac_try="$ac_link"
60344 case "(($ac_try" in
60345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60346   *) ac_try_echo=$ac_try;;
60347 esac
60348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60349   (eval "$ac_link") 2>conftest.er1
60350   ac_status=$?
60351   grep -v '^ *+' conftest.er1 >conftest.err
60352   rm -f conftest.er1
60353   cat conftest.err >&5
60354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60355   (exit $ac_status); } &&
60356          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60357   { (case "(($ac_try" in
60358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60359   *) ac_try_echo=$ac_try;;
60360 esac
60361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60362   (eval "$ac_try") 2>&5
60363   ac_status=$?
60364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60365   (exit $ac_status); }; } &&
60366          { ac_try='test -s conftest$ac_exeext'
60367   { (case "(($ac_try" in
60368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60369   *) ac_try_echo=$ac_try;;
60370 esac
60371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60372   (eval "$ac_try") 2>&5
60373   ac_status=$?
60374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60375   (exit $ac_status); }; }; then
60376   am_cv_func_iconv=yes
60377 else
60378   echo "$as_me: failed program was:" >&5
60379 sed 's/^/| /' conftest.$ac_ext >&5
60380
60381
60382 fi
60383
60384 rm -f core conftest.err conftest.$ac_objext \
60385       conftest$ac_exeext conftest.$ac_ext
60386     if test "$am_cv_func_iconv" != yes; then
60387       am_save_LIBS="$LIBS"
60388       LIBS="$LIBS $LIBICONV"
60389       cat >conftest.$ac_ext <<_ACEOF
60390 /* confdefs.h.  */
60391 _ACEOF
60392 cat confdefs.h >>conftest.$ac_ext
60393 cat >>conftest.$ac_ext <<_ACEOF
60394 /* end confdefs.h.  */
60395 #include <stdlib.h>
60396 #include <iconv.h>
60397 int
60398 main ()
60399 {
60400 iconv_t cd = iconv_open("","");
60401          iconv(cd,NULL,NULL,NULL,NULL);
60402          iconv_close(cd);
60403   ;
60404   return 0;
60405 }
60406 _ACEOF
60407 rm -f conftest.$ac_objext conftest$ac_exeext
60408 if { (ac_try="$ac_link"
60409 case "(($ac_try" in
60410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60411   *) ac_try_echo=$ac_try;;
60412 esac
60413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60414   (eval "$ac_link") 2>conftest.er1
60415   ac_status=$?
60416   grep -v '^ *+' conftest.er1 >conftest.err
60417   rm -f conftest.er1
60418   cat conftest.err >&5
60419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60420   (exit $ac_status); } &&
60421          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60422   { (case "(($ac_try" in
60423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60424   *) ac_try_echo=$ac_try;;
60425 esac
60426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60427   (eval "$ac_try") 2>&5
60428   ac_status=$?
60429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60430   (exit $ac_status); }; } &&
60431          { ac_try='test -s conftest$ac_exeext'
60432   { (case "(($ac_try" in
60433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60434   *) ac_try_echo=$ac_try;;
60435 esac
60436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60437   (eval "$ac_try") 2>&5
60438   ac_status=$?
60439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60440   (exit $ac_status); }; }; then
60441   am_cv_lib_iconv=yes
60442         am_cv_func_iconv=yes
60443 else
60444   echo "$as_me: failed program was:" >&5
60445 sed 's/^/| /' conftest.$ac_ext >&5
60446
60447
60448 fi
60449
60450 rm -f core conftest.err conftest.$ac_objext \
60451       conftest$ac_exeext conftest.$ac_ext
60452       LIBS="$am_save_LIBS"
60453     fi
60454
60455 fi
60456 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
60457 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
60458   if test "$am_cv_func_iconv" = yes; then
60459
60460 cat >>confdefs.h <<\_ACEOF
60461 #define HAVE_ICONV 1
60462 _ACEOF
60463
60464   fi
60465   if test "$am_cv_lib_iconv" = yes; then
60466     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
60467 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
60468     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
60469 echo "${ECHO_T}$LIBICONV" >&6; }
60470   else
60471             CPPFLAGS="$am_save_CPPFLAGS"
60472     LIBICONV=
60473     LTLIBICONV=
60474   fi
60475
60476
60477
60478
60479
60480
60481
60482     use_additional=yes
60483
60484   acl_save_prefix="$prefix"
60485   prefix="$acl_final_prefix"
60486   acl_save_exec_prefix="$exec_prefix"
60487   exec_prefix="$acl_final_exec_prefix"
60488
60489     eval additional_includedir=\"$includedir\"
60490     eval additional_libdir=\"$libdir\"
60491
60492   exec_prefix="$acl_save_exec_prefix"
60493   prefix="$acl_save_prefix"
60494
60495
60496 # Check whether --with-libintl-prefix was given.
60497 if test "${with_libintl_prefix+set}" = set; then
60498   withval=$with_libintl_prefix;
60499     if test "X$withval" = "Xno"; then
60500       use_additional=no
60501     else
60502       if test "X$withval" = "X"; then
60503
60504   acl_save_prefix="$prefix"
60505   prefix="$acl_final_prefix"
60506   acl_save_exec_prefix="$exec_prefix"
60507   exec_prefix="$acl_final_exec_prefix"
60508
60509           eval additional_includedir=\"$includedir\"
60510           eval additional_libdir=\"$libdir\"
60511
60512   exec_prefix="$acl_save_exec_prefix"
60513   prefix="$acl_save_prefix"
60514
60515       else
60516         additional_includedir="$withval/include"
60517         additional_libdir="$withval/$acl_libdirstem"
60518       fi
60519     fi
60520
60521 fi
60522
60523       LIBINTL=
60524   LTLIBINTL=
60525   INCINTL=
60526   rpathdirs=
60527   ltrpathdirs=
60528   names_already_handled=
60529   names_next_round='intl '
60530   while test -n "$names_next_round"; do
60531     names_this_round="$names_next_round"
60532     names_next_round=
60533     for name in $names_this_round; do
60534       already_handled=
60535       for n in $names_already_handled; do
60536         if test "$n" = "$name"; then
60537           already_handled=yes
60538           break
60539         fi
60540       done
60541       if test -z "$already_handled"; then
60542         names_already_handled="$names_already_handled $name"
60543                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
60544         eval value=\"\$HAVE_LIB$uppername\"
60545         if test -n "$value"; then
60546           if test "$value" = yes; then
60547             eval value=\"\$LIB$uppername\"
60548             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
60549             eval value=\"\$LTLIB$uppername\"
60550             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
60551           else
60552                                     :
60553           fi
60554         else
60555                               found_dir=
60556           found_la=
60557           found_so=
60558           found_a=
60559           if test $use_additional = yes; then
60560             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
60561               found_dir="$additional_libdir"
60562               found_so="$additional_libdir/lib$name.$shlibext"
60563               if test -f "$additional_libdir/lib$name.la"; then
60564                 found_la="$additional_libdir/lib$name.la"
60565               fi
60566             else
60567               if test -f "$additional_libdir/lib$name.$libext"; then
60568                 found_dir="$additional_libdir"
60569                 found_a="$additional_libdir/lib$name.$libext"
60570                 if test -f "$additional_libdir/lib$name.la"; then
60571                   found_la="$additional_libdir/lib$name.la"
60572                 fi
60573               fi
60574             fi
60575           fi
60576           if test "X$found_dir" = "X"; then
60577             for x in $LDFLAGS $LTLIBINTL; do
60578
60579   acl_save_prefix="$prefix"
60580   prefix="$acl_final_prefix"
60581   acl_save_exec_prefix="$exec_prefix"
60582   exec_prefix="$acl_final_exec_prefix"
60583   eval x=\"$x\"
60584   exec_prefix="$acl_save_exec_prefix"
60585   prefix="$acl_save_prefix"
60586
60587               case "$x" in
60588                 -L*)
60589                   dir=`echo "X$x" | sed -e 's/^X-L//'`
60590                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
60591                     found_dir="$dir"
60592                     found_so="$dir/lib$name.$shlibext"
60593                     if test -f "$dir/lib$name.la"; then
60594                       found_la="$dir/lib$name.la"
60595                     fi
60596                   else
60597                     if test -f "$dir/lib$name.$libext"; then
60598                       found_dir="$dir"
60599                       found_a="$dir/lib$name.$libext"
60600                       if test -f "$dir/lib$name.la"; then
60601                         found_la="$dir/lib$name.la"
60602                       fi
60603                     fi
60604                   fi
60605                   ;;
60606               esac
60607               if test "X$found_dir" != "X"; then
60608                 break
60609               fi
60610             done
60611           fi
60612           if test "X$found_dir" != "X"; then
60613                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
60614             if test "X$found_so" != "X"; then
60615                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
60616                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
60617               else
60618                                                                                 haveit=
60619                 for x in $ltrpathdirs; do
60620                   if test "X$x" = "X$found_dir"; then
60621                     haveit=yes
60622                     break
60623                   fi
60624                 done
60625                 if test -z "$haveit"; then
60626                   ltrpathdirs="$ltrpathdirs $found_dir"
60627                 fi
60628                                 if test "$hardcode_direct" = yes; then
60629                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
60630                 else
60631                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
60632                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
60633                                                             haveit=
60634                     for x in $rpathdirs; do
60635                       if test "X$x" = "X$found_dir"; then
60636                         haveit=yes
60637                         break
60638                       fi
60639                     done
60640                     if test -z "$haveit"; then
60641                       rpathdirs="$rpathdirs $found_dir"
60642                     fi
60643                   else
60644                                                                                 haveit=
60645                     for x in $LDFLAGS $LIBINTL; do
60646
60647   acl_save_prefix="$prefix"
60648   prefix="$acl_final_prefix"
60649   acl_save_exec_prefix="$exec_prefix"
60650   exec_prefix="$acl_final_exec_prefix"
60651   eval x=\"$x\"
60652   exec_prefix="$acl_save_exec_prefix"
60653   prefix="$acl_save_prefix"
60654
60655                       if test "X$x" = "X-L$found_dir"; then
60656                         haveit=yes
60657                         break
60658                       fi
60659                     done
60660                     if test -z "$haveit"; then
60661                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
60662                     fi
60663                     if test "$hardcode_minus_L" != no; then
60664                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
60665                     else
60666                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
60667                     fi
60668                   fi
60669                 fi
60670               fi
60671             else
60672               if test "X$found_a" != "X"; then
60673                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
60674               else
60675                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
60676               fi
60677             fi
60678                         additional_includedir=
60679             case "$found_dir" in
60680               */$acl_libdirstem | */$acl_libdirstem/)
60681                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
60682                 additional_includedir="$basedir/include"
60683                 ;;
60684             esac
60685             if test "X$additional_includedir" != "X"; then
60686                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
60687                 haveit=
60688                 if test "X$additional_includedir" = "X/usr/local/include"; then
60689                   if test -n "$GCC"; then
60690                     case $host_os in
60691                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
60692                     esac
60693                   fi
60694                 fi
60695                 if test -z "$haveit"; then
60696                   for x in $CPPFLAGS $INCINTL; do
60697
60698   acl_save_prefix="$prefix"
60699   prefix="$acl_final_prefix"
60700   acl_save_exec_prefix="$exec_prefix"
60701   exec_prefix="$acl_final_exec_prefix"
60702   eval x=\"$x\"
60703   exec_prefix="$acl_save_exec_prefix"
60704   prefix="$acl_save_prefix"
60705
60706                     if test "X$x" = "X-I$additional_includedir"; then
60707                       haveit=yes
60708                       break
60709                     fi
60710                   done
60711                   if test -z "$haveit"; then
60712                     if test -d "$additional_includedir"; then
60713                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
60714                     fi
60715                   fi
60716                 fi
60717               fi
60718             fi
60719                         if test -n "$found_la"; then
60720                                                         save_libdir="$libdir"
60721               case "$found_la" in
60722                 */* | *\\*) . "$found_la" ;;
60723                 *) . "./$found_la" ;;
60724               esac
60725               libdir="$save_libdir"
60726                             for dep in $dependency_libs; do
60727                 case "$dep" in
60728                   -L*)
60729                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
60730                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
60731                       haveit=
60732                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
60733                         if test -n "$GCC"; then
60734                           case $host_os in
60735                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
60736                           esac
60737                         fi
60738                       fi
60739                       if test -z "$haveit"; then
60740                         haveit=
60741                         for x in $LDFLAGS $LIBINTL; do
60742
60743   acl_save_prefix="$prefix"
60744   prefix="$acl_final_prefix"
60745   acl_save_exec_prefix="$exec_prefix"
60746   exec_prefix="$acl_final_exec_prefix"
60747   eval x=\"$x\"
60748   exec_prefix="$acl_save_exec_prefix"
60749   prefix="$acl_save_prefix"
60750
60751                           if test "X$x" = "X-L$additional_libdir"; then
60752                             haveit=yes
60753                             break
60754                           fi
60755                         done
60756                         if test -z "$haveit"; then
60757                           if test -d "$additional_libdir"; then
60758                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
60759                           fi
60760                         fi
60761                         haveit=
60762                         for x in $LDFLAGS $LTLIBINTL; do
60763
60764   acl_save_prefix="$prefix"
60765   prefix="$acl_final_prefix"
60766   acl_save_exec_prefix="$exec_prefix"
60767   exec_prefix="$acl_final_exec_prefix"
60768   eval x=\"$x\"
60769   exec_prefix="$acl_save_exec_prefix"
60770   prefix="$acl_save_prefix"
60771
60772                           if test "X$x" = "X-L$additional_libdir"; then
60773                             haveit=yes
60774                             break
60775                           fi
60776                         done
60777                         if test -z "$haveit"; then
60778                           if test -d "$additional_libdir"; then
60779                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
60780                           fi
60781                         fi
60782                       fi
60783                     fi
60784                     ;;
60785                   -R*)
60786                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
60787                     if test "$enable_rpath" != no; then
60788                                                                   haveit=
60789                       for x in $rpathdirs; do
60790                         if test "X$x" = "X$dir"; then
60791                           haveit=yes
60792                           break
60793                         fi
60794                       done
60795                       if test -z "$haveit"; then
60796                         rpathdirs="$rpathdirs $dir"
60797                       fi
60798                                                                   haveit=
60799                       for x in $ltrpathdirs; do
60800                         if test "X$x" = "X$dir"; then
60801                           haveit=yes
60802                           break
60803                         fi
60804                       done
60805                       if test -z "$haveit"; then
60806                         ltrpathdirs="$ltrpathdirs $dir"
60807                       fi
60808                     fi
60809                     ;;
60810                   -l*)
60811                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
60812                     ;;
60813                   *.la)
60814                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
60815                     ;;
60816                   *)
60817                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
60818                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
60819                     ;;
60820                 esac
60821               done
60822             fi
60823           else
60824                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
60825             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
60826           fi
60827         fi
60828       fi
60829     done
60830   done
60831   if test "X$rpathdirs" != "X"; then
60832     if test -n "$hardcode_libdir_separator"; then
60833                         alldirs=
60834       for found_dir in $rpathdirs; do
60835         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
60836       done
60837             acl_save_libdir="$libdir"
60838       libdir="$alldirs"
60839       eval flag=\"$hardcode_libdir_flag_spec\"
60840       libdir="$acl_save_libdir"
60841       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
60842     else
60843             for found_dir in $rpathdirs; do
60844         acl_save_libdir="$libdir"
60845         libdir="$found_dir"
60846         eval flag=\"$hardcode_libdir_flag_spec\"
60847         libdir="$acl_save_libdir"
60848         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
60849       done
60850     fi
60851   fi
60852   if test "X$ltrpathdirs" != "X"; then
60853             for found_dir in $ltrpathdirs; do
60854       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
60855     done
60856   fi
60857
60858           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
60859 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
60860 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
60861   echo $ECHO_N "(cached) $ECHO_C" >&6
60862 else
60863   gt_save_CPPFLAGS="$CPPFLAGS"
60864             CPPFLAGS="$CPPFLAGS $INCINTL"
60865             gt_save_LIBS="$LIBS"
60866             LIBS="$LIBS $LIBINTL"
60867                         cat >conftest.$ac_ext <<_ACEOF
60868 /* confdefs.h.  */
60869 _ACEOF
60870 cat confdefs.h >>conftest.$ac_ext
60871 cat >>conftest.$ac_ext <<_ACEOF
60872 /* end confdefs.h.  */
60873 #include <libintl.h>
60874 extern int _nl_msg_cat_cntr;
60875 extern
60876 #ifdef __cplusplus
60877 "C"
60878 #endif
60879 const char *_nl_expand_alias (const char *);
60880 int
60881 main ()
60882 {
60883 bindtextdomain ("", "");
60884 return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
60885   ;
60886   return 0;
60887 }
60888 _ACEOF
60889 rm -f conftest.$ac_objext conftest$ac_exeext
60890 if { (ac_try="$ac_link"
60891 case "(($ac_try" in
60892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60893   *) ac_try_echo=$ac_try;;
60894 esac
60895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60896   (eval "$ac_link") 2>conftest.er1
60897   ac_status=$?
60898   grep -v '^ *+' conftest.er1 >conftest.err
60899   rm -f conftest.er1
60900   cat conftest.err >&5
60901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60902   (exit $ac_status); } &&
60903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60904   { (case "(($ac_try" in
60905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60906   *) ac_try_echo=$ac_try;;
60907 esac
60908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60909   (eval "$ac_try") 2>&5
60910   ac_status=$?
60911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60912   (exit $ac_status); }; } &&
60913          { ac_try='test -s conftest$ac_exeext'
60914   { (case "(($ac_try" in
60915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60916   *) ac_try_echo=$ac_try;;
60917 esac
60918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60919   (eval "$ac_try") 2>&5
60920   ac_status=$?
60921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60922   (exit $ac_status); }; }; then
60923   gt_cv_func_gnugettext2_libintl=yes
60924 else
60925   echo "$as_me: failed program was:" >&5
60926 sed 's/^/| /' conftest.$ac_ext >&5
60927
60928         gt_cv_func_gnugettext2_libintl=no
60929 fi
60930
60931 rm -f core conftest.err conftest.$ac_objext \
60932       conftest$ac_exeext conftest.$ac_ext
60933                         if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
60934               LIBS="$LIBS $LIBICONV"
60935               cat >conftest.$ac_ext <<_ACEOF
60936 /* confdefs.h.  */
60937 _ACEOF
60938 cat confdefs.h >>conftest.$ac_ext
60939 cat >>conftest.$ac_ext <<_ACEOF
60940 /* end confdefs.h.  */
60941 #include <libintl.h>
60942 extern int _nl_msg_cat_cntr;
60943 extern
60944 #ifdef __cplusplus
60945 "C"
60946 #endif
60947 const char *_nl_expand_alias (const char *);
60948 int
60949 main ()
60950 {
60951 bindtextdomain ("", "");
60952 return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
60953   ;
60954   return 0;
60955 }
60956 _ACEOF
60957 rm -f conftest.$ac_objext conftest$ac_exeext
60958 if { (ac_try="$ac_link"
60959 case "(($ac_try" in
60960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60961   *) ac_try_echo=$ac_try;;
60962 esac
60963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60964   (eval "$ac_link") 2>conftest.er1
60965   ac_status=$?
60966   grep -v '^ *+' conftest.er1 >conftest.err
60967   rm -f conftest.er1
60968   cat conftest.err >&5
60969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60970   (exit $ac_status); } &&
60971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60972   { (case "(($ac_try" in
60973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60974   *) ac_try_echo=$ac_try;;
60975 esac
60976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60977   (eval "$ac_try") 2>&5
60978   ac_status=$?
60979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60980   (exit $ac_status); }; } &&
60981          { ac_try='test -s conftest$ac_exeext'
60982   { (case "(($ac_try" in
60983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60984   *) ac_try_echo=$ac_try;;
60985 esac
60986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60987   (eval "$ac_try") 2>&5
60988   ac_status=$?
60989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60990   (exit $ac_status); }; }; then
60991   LIBINTL="$LIBINTL $LIBICONV"
60992                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
60993                 gt_cv_func_gnugettext2_libintl=yes
60994
60995 else
60996   echo "$as_me: failed program was:" >&5
60997 sed 's/^/| /' conftest.$ac_ext >&5
60998
60999
61000 fi
61001
61002 rm -f core conftest.err conftest.$ac_objext \
61003       conftest$ac_exeext conftest.$ac_ext
61004             fi
61005             CPPFLAGS="$gt_save_CPPFLAGS"
61006             LIBS="$gt_save_LIBS"
61007 fi
61008 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
61009 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6; }
61010         fi
61011
61012                                         if test "$gt_cv_func_gnugettext2_libc" = "yes" \
61013            || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
61014                 && test "$PACKAGE" != gettext-runtime \
61015                 && test "$PACKAGE" != gettext-tools; }; then
61016           gt_use_preinstalled_gnugettext=yes
61017         else
61018                     LIBINTL=
61019           LTLIBINTL=
61020           INCINTL=
61021         fi
61022
61023
61024
61025     if test -n "$INTL_MACOSX_LIBS"; then
61026       if test "$gt_use_preinstalled_gnugettext" = "yes" \
61027          || test "$nls_cv_use_gnu_gettext" = "yes"; then
61028                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
61029         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
61030       fi
61031     fi
61032
61033     if test "$gt_use_preinstalled_gnugettext" = "yes" \
61034        || test "$nls_cv_use_gnu_gettext" = "yes"; then
61035
61036 cat >>confdefs.h <<\_ACEOF
61037 #define ENABLE_NLS 1
61038 _ACEOF
61039
61040     else
61041       USE_NLS=no
61042     fi
61043   fi
61044
61045   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
61046 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
61047   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
61048 echo "${ECHO_T}$USE_NLS" >&6; }
61049   if test "$USE_NLS" = "yes"; then
61050     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
61051 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
61052     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
61053       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
61054         gt_source="external libintl"
61055       else
61056         gt_source="libc"
61057       fi
61058     else
61059       gt_source="included intl directory"
61060     fi
61061     { echo "$as_me:$LINENO: result: $gt_source" >&5
61062 echo "${ECHO_T}$gt_source" >&6; }
61063   fi
61064
61065   if test "$USE_NLS" = "yes"; then
61066
61067     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
61068       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
61069         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
61070 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
61071         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
61072 echo "${ECHO_T}$LIBINTL" >&6; }
61073
61074   for element in $INCINTL; do
61075     haveit=
61076     for x in $CPPFLAGS; do
61077
61078   acl_save_prefix="$prefix"
61079   prefix="$acl_final_prefix"
61080   acl_save_exec_prefix="$exec_prefix"
61081   exec_prefix="$acl_final_exec_prefix"
61082   eval x=\"$x\"
61083   exec_prefix="$acl_save_exec_prefix"
61084   prefix="$acl_save_prefix"
61085
61086       if test "X$x" = "X$element"; then
61087         haveit=yes
61088         break
61089       fi
61090     done
61091     if test -z "$haveit"; then
61092       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
61093     fi
61094   done
61095
61096       fi
61097
61098
61099 cat >>confdefs.h <<\_ACEOF
61100 #define HAVE_GETTEXT 1
61101 _ACEOF
61102
61103
61104 cat >>confdefs.h <<\_ACEOF
61105 #define HAVE_DCGETTEXT 1
61106 _ACEOF
61107
61108     fi
61109
61110         POSUB=po
61111   fi
61112
61113
61114
61115     INTLLIBS="$LIBINTL"
61116
61117
61118
61119
61120
61121
61122
61123
61124 ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile man/Makefile po/Makefile.in src/Makefile tests/Makefile tests/chgrp/Makefile tests/chmod/Makefile tests/chown/Makefile tests/cp/Makefile tests/cut/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/readlink/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/tee/Makefile tests/test/Makefile tests/touch/Makefile tests/tr/Makefile tests/tsort/Makefile tests/unexpand/Makefile tests/uniq/Makefile tests/wc/Makefile"
61125
61126 cat >confcache <<\_ACEOF
61127 # This file is a shell script that caches the results of configure
61128 # tests run on this system so they can be shared between configure
61129 # scripts and configure runs, see configure's option --config-cache.
61130 # It is not useful on other systems.  If it contains results you don't
61131 # want to keep, you may remove or edit it.
61132 #
61133 # config.status only pays attention to the cache file if you give it
61134 # the --recheck option to rerun configure.
61135 #
61136 # `ac_cv_env_foo' variables (set or unset) will be overridden when
61137 # loading this file, other *unset* `ac_cv_foo' will be assigned the
61138 # following values.
61139
61140 _ACEOF
61141
61142 # The following way of writing the cache mishandles newlines in values,
61143 # but we know of no workaround that is simple, portable, and efficient.
61144 # So, we kill variables containing newlines.
61145 # Ultrix sh set writes to stderr and can't be redirected directly,
61146 # and sets the high bit in the cache file unless we assign to the vars.
61147 (
61148   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
61149     eval ac_val=\$$ac_var
61150     case $ac_val in #(
61151     *${as_nl}*)
61152       case $ac_var in #(
61153       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
61154 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
61155       esac
61156       case $ac_var in #(
61157       _ | IFS | as_nl) ;; #(
61158       *) $as_unset $ac_var ;;
61159       esac ;;
61160     esac
61161   done
61162
61163   (set) 2>&1 |
61164     case $as_nl`(ac_space=' '; set) 2>&1` in #(
61165     *${as_nl}ac_space=\ *)
61166       # `set' does not quote correctly, so add quotes (double-quote
61167       # substitution turns \\\\ into \\, and sed turns \\ into \).
61168       sed -n \
61169         "s/'/'\\\\''/g;
61170           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
61171       ;; #(
61172     *)
61173       # `set' quotes correctly as required by POSIX, so do not add quotes.
61174       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
61175       ;;
61176     esac |
61177     sort
61178 ) |
61179   sed '
61180      /^ac_cv_env_/b end
61181      t clear
61182      :clear
61183      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
61184      t end
61185      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
61186      :end' >>confcache
61187 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
61188   if test -w "$cache_file"; then
61189     test "x$cache_file" != "x/dev/null" &&
61190       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
61191 echo "$as_me: updating cache $cache_file" >&6;}
61192     cat confcache >$cache_file
61193   else
61194     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
61195 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
61196   fi
61197 fi
61198 rm -f confcache
61199
61200 test "x$prefix" = xNONE && prefix=$ac_default_prefix
61201 # Let make expand exec_prefix.
61202 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
61203
61204 DEFS=-DHAVE_CONFIG_H
61205
61206 ac_libobjs=
61207 ac_ltlibobjs=
61208 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
61209   # 1. Remove the extension, and $U if already installed.
61210   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
61211   ac_i=`echo "$ac_i" | sed "$ac_script"`
61212   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
61213   #    will be set to the directory where LIBOBJS objects are built.
61214   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
61215   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
61216 done
61217 LIBOBJS=$ac_libobjs
61218
61219 LTLIBOBJS=$ac_ltlibobjs
61220
61221
61222 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
61223   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
61224 Usually this means the macro was only invoked conditionally." >&5
61225 echo "$as_me: error: conditional \"AMDEP\" was never defined.
61226 Usually this means the macro was only invoked conditionally." >&2;}
61227    { (exit 1); exit 1; }; }
61228 fi
61229 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
61230   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
61231 Usually this means the macro was only invoked conditionally." >&5
61232 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
61233 Usually this means the macro was only invoked conditionally." >&2;}
61234    { (exit 1); exit 1; }; }
61235 fi
61236
61237 : ${CONFIG_STATUS=./config.status}
61238 ac_clean_files_save=$ac_clean_files
61239 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
61240 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
61241 echo "$as_me: creating $CONFIG_STATUS" >&6;}
61242 cat >$CONFIG_STATUS <<_ACEOF
61243 #! $SHELL
61244 # Generated by $as_me.
61245 # Run this file to recreate the current configuration.
61246 # Compiler output produced by configure, useful for debugging
61247 # configure, is in config.log if it exists.
61248
61249 debug=false
61250 ac_cs_recheck=false
61251 ac_cs_silent=false
61252 SHELL=\${CONFIG_SHELL-$SHELL}
61253 _ACEOF
61254
61255 cat >>$CONFIG_STATUS <<\_ACEOF
61256 ## --------------------- ##
61257 ## M4sh Initialization.  ##
61258 ## --------------------- ##
61259
61260 # Be Bourne compatible
61261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
61262   emulate sh
61263   NULLCMD=:
61264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
61265   # is contrary to our usage.  Disable this feature.
61266   alias -g '${1+"$@"}'='"$@"'
61267   setopt NO_GLOB_SUBST
61268 else
61269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
61270 fi
61271 BIN_SH=xpg4; export BIN_SH # for Tru64
61272 DUALCASE=1; export DUALCASE # for MKS sh
61273
61274
61275 # PATH needs CR
61276 # Avoid depending upon Character Ranges.
61277 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
61278 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
61279 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
61280 as_cr_digits='0123456789'
61281 as_cr_alnum=$as_cr_Letters$as_cr_digits
61282
61283 # The user is always right.
61284 if test "${PATH_SEPARATOR+set}" != set; then
61285   echo "#! /bin/sh" >conf$$.sh
61286   echo  "exit 0"   >>conf$$.sh
61287   chmod +x conf$$.sh
61288   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
61289     PATH_SEPARATOR=';'
61290   else
61291     PATH_SEPARATOR=:
61292   fi
61293   rm -f conf$$.sh
61294 fi
61295
61296 # Support unset when possible.
61297 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
61298   as_unset=unset
61299 else
61300   as_unset=false
61301 fi
61302
61303
61304 # IFS
61305 # We need space, tab and new line, in precisely that order.  Quoting is
61306 # there to prevent editors from complaining about space-tab.
61307 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61308 # splitting by setting IFS to empty value.)
61309 as_nl='
61310 '
61311 IFS=" ""        $as_nl"
61312
61313 # Find who we are.  Look in the path if we contain no directory separator.
61314 case $0 in
61315   *[\\/]* ) as_myself=$0 ;;
61316   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
61317 for as_dir in $PATH
61318 do
61319   IFS=$as_save_IFS
61320   test -z "$as_dir" && as_dir=.
61321   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
61322 done
61323 IFS=$as_save_IFS
61324
61325      ;;
61326 esac
61327 # We did not find ourselves, most probably we were run as `sh COMMAND'
61328 # in which case we are not to be found in the path.
61329 if test "x$as_myself" = x; then
61330   as_myself=$0
61331 fi
61332 if test ! -f "$as_myself"; then
61333   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
61334   { (exit 1); exit 1; }
61335 fi
61336
61337 # Work around bugs in pre-3.0 UWIN ksh.
61338 for as_var in ENV MAIL MAILPATH
61339 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
61340 done
61341 PS1='$ '
61342 PS2='> '
61343 PS4='+ '
61344
61345 # NLS nuisances.
61346 for as_var in \
61347   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
61348   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
61349   LC_TELEPHONE LC_TIME
61350 do
61351   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
61352     eval $as_var=C; export $as_var
61353   else
61354     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
61355   fi
61356 done
61357
61358 # Required to use basename.
61359 if expr a : '\(a\)' >/dev/null 2>&1 &&
61360    test "X`expr 00001 : '.*\(...\)'`" = X001; then
61361   as_expr=expr
61362 else
61363   as_expr=false
61364 fi
61365
61366 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
61367   as_basename=basename
61368 else
61369   as_basename=false
61370 fi
61371
61372
61373 # Name of the executable.
61374 as_me=`$as_basename -- "$0" ||
61375 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
61376          X"$0" : 'X\(//\)$' \| \
61377          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
61378 echo X/"$0" |
61379     sed '/^.*\/\([^/][^/]*\)\/*$/{
61380             s//\1/
61381             q
61382           }
61383           /^X\/\(\/\/\)$/{
61384             s//\1/
61385             q
61386           }
61387           /^X\/\(\/\).*/{
61388             s//\1/
61389             q
61390           }
61391           s/.*/./; q'`
61392
61393 # CDPATH.
61394 $as_unset CDPATH
61395
61396
61397
61398   as_lineno_1=$LINENO
61399   as_lineno_2=$LINENO
61400   test "x$as_lineno_1" != "x$as_lineno_2" &&
61401   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
61402
61403   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
61404   # uniformly replaced by the line number.  The first 'sed' inserts a
61405   # line-number line after each line using $LINENO; the second 'sed'
61406   # does the real work.  The second script uses 'N' to pair each
61407   # line-number line with the line containing $LINENO, and appends
61408   # trailing '-' during substitution so that $LINENO is not a special
61409   # case at line end.
61410   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
61411   # scripts with optimization help from Paolo Bonzini.  Blame Lee
61412   # E. McMahon (1931-1989) for sed's syntax.  :-)
61413   sed -n '
61414     p
61415     /[$]LINENO/=
61416   ' <$as_myself |
61417     sed '
61418       s/[$]LINENO.*/&-/
61419       t lineno
61420       b
61421       :lineno
61422       N
61423       :loop
61424       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
61425       t loop
61426       s/-\n.*//
61427     ' >$as_me.lineno &&
61428   chmod +x "$as_me.lineno" ||
61429     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
61430    { (exit 1); exit 1; }; }
61431
61432   # Don't try to exec as it changes $[0], causing all sort of problems
61433   # (the dirname of $[0] is not the place where we might find the
61434   # original and so on.  Autoconf is especially sensitive to this).
61435   . "./$as_me.lineno"
61436   # Exit status is that of the last command.
61437   exit
61438 }
61439
61440
61441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
61442   as_dirname=dirname
61443 else
61444   as_dirname=false
61445 fi
61446
61447 ECHO_C= ECHO_N= ECHO_T=
61448 case `echo -n x` in
61449 -n*)
61450   case `echo 'x\c'` in
61451   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
61452   *)   ECHO_C='\c';;
61453   esac;;
61454 *)
61455   ECHO_N='-n';;
61456 esac
61457
61458 if expr a : '\(a\)' >/dev/null 2>&1 &&
61459    test "X`expr 00001 : '.*\(...\)'`" = X001; then
61460   as_expr=expr
61461 else
61462   as_expr=false
61463 fi
61464
61465 rm -f conf$$ conf$$.exe conf$$.file
61466 if test -d conf$$.dir; then
61467   rm -f conf$$.dir/conf$$.file
61468 else
61469   rm -f conf$$.dir
61470   mkdir conf$$.dir
61471 fi
61472 echo >conf$$.file
61473 if ln -s conf$$.file conf$$ 2>/dev/null; then
61474   as_ln_s='ln -s'
61475   # ... but there are two gotchas:
61476   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
61477   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
61478   # In both cases, we have to default to `cp -p'.
61479   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
61480     as_ln_s='cp -p'
61481 elif ln conf$$.file conf$$ 2>/dev/null; then
61482   as_ln_s=ln
61483 else
61484   as_ln_s='cp -p'
61485 fi
61486 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
61487 rmdir conf$$.dir 2>/dev/null
61488
61489 if mkdir -p . 2>/dev/null; then
61490   as_mkdir_p=:
61491 else
61492   test -d ./-p && rmdir ./-p
61493   as_mkdir_p=false
61494 fi
61495
61496 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
61497 # systems may use methods other than mode bits to determine executability.
61498 cat >conf$$.file <<_ASEOF
61499 #! /bin/sh
61500 exit 0
61501 _ASEOF
61502 chmod +x conf$$.file
61503 if test -x conf$$.file >/dev/null 2>&1; then
61504   as_executable_p="test -x"
61505 else
61506   as_executable_p=:
61507 fi
61508 rm -f conf$$.file
61509
61510 # Sed expression to map a string onto a valid CPP name.
61511 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
61512
61513 # Sed expression to map a string onto a valid variable name.
61514 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
61515
61516
61517 exec 6>&1
61518
61519 # Save the log message, to keep $[0] and so on meaningful, and to
61520 # report actual input values of CONFIG_FILES etc. instead of their
61521 # values after options handling.
61522 ac_log="
61523 This file was extended by GNU coreutils $as_me 6.0-cvs, which was
61524 generated by GNU Autoconf 2.60.  Invocation command line was
61525
61526   CONFIG_FILES    = $CONFIG_FILES
61527   CONFIG_HEADERS  = $CONFIG_HEADERS
61528   CONFIG_LINKS    = $CONFIG_LINKS
61529   CONFIG_COMMANDS = $CONFIG_COMMANDS
61530   $ $0 $@
61531
61532 on `(hostname || uname -n) 2>/dev/null | sed 1q`
61533 "
61534
61535 _ACEOF
61536
61537 cat >>$CONFIG_STATUS <<_ACEOF
61538 # Files that config.status was made for.
61539 config_files="$ac_config_files"
61540 config_headers="$ac_config_headers"
61541 config_commands="$ac_config_commands"
61542
61543 _ACEOF
61544
61545 cat >>$CONFIG_STATUS <<\_ACEOF
61546 ac_cs_usage="\
61547 \`$as_me' instantiates files from templates according to the
61548 current configuration.
61549
61550 Usage: $0 [OPTIONS] [FILE]...
61551
61552   -h, --help       print this help, then exit
61553   -V, --version    print version number, then exit
61554   -q, --quiet      do not print progress messages
61555   -d, --debug      don't remove temporary files
61556       --recheck    update $as_me by reconfiguring in the same conditions
61557   --file=FILE[:TEMPLATE]
61558                    instantiate the configuration file FILE
61559   --header=FILE[:TEMPLATE]
61560                    instantiate the configuration header FILE
61561
61562 Configuration files:
61563 $config_files
61564
61565 Configuration headers:
61566 $config_headers
61567
61568 Configuration commands:
61569 $config_commands
61570
61571 Report bugs to <bug-autoconf@gnu.org>."
61572
61573 _ACEOF
61574 cat >>$CONFIG_STATUS <<_ACEOF
61575 ac_cs_version="\\
61576 GNU coreutils config.status 6.0-cvs
61577 configured by $0, generated by GNU Autoconf 2.60,
61578   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
61579
61580 Copyright (C) 2006 Free Software Foundation, Inc.
61581 This config.status script is free software; the Free Software Foundation
61582 gives unlimited permission to copy, distribute and modify it."
61583
61584 ac_pwd='$ac_pwd'
61585 srcdir='$srcdir'
61586 INSTALL='$INSTALL'
61587 _ACEOF
61588
61589 cat >>$CONFIG_STATUS <<\_ACEOF
61590 # If no file are specified by the user, then we need to provide default
61591 # value.  By we need to know if files were specified by the user.
61592 ac_need_defaults=:
61593 while test $# != 0
61594 do
61595   case $1 in
61596   --*=*)
61597     ac_option=`expr "X$1" : 'X\([^=]*\)='`
61598     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
61599     ac_shift=:
61600     ;;
61601   *)
61602     ac_option=$1
61603     ac_optarg=$2
61604     ac_shift=shift
61605     ;;
61606   esac
61607
61608   case $ac_option in
61609   # Handling of the options.
61610   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
61611     ac_cs_recheck=: ;;
61612   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
61613     echo "$ac_cs_version"; exit ;;
61614   --debug | --debu | --deb | --de | --d | -d )
61615     debug=: ;;
61616   --file | --fil | --fi | --f )
61617     $ac_shift
61618     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
61619     ac_need_defaults=false;;
61620   --header | --heade | --head | --hea )
61621     $ac_shift
61622     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
61623     ac_need_defaults=false;;
61624   --he | --h)
61625     # Conflict between --help and --header
61626     { echo "$as_me: error: ambiguous option: $1
61627 Try \`$0 --help' for more information." >&2
61628    { (exit 1); exit 1; }; };;
61629   --help | --hel | -h )
61630     echo "$ac_cs_usage"; exit ;;
61631   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
61632   | -silent | --silent | --silen | --sile | --sil | --si | --s)
61633     ac_cs_silent=: ;;
61634
61635   # This is an error.
61636   -*) { echo "$as_me: error: unrecognized option: $1
61637 Try \`$0 --help' for more information." >&2
61638    { (exit 1); exit 1; }; } ;;
61639
61640   *) ac_config_targets="$ac_config_targets $1"
61641      ac_need_defaults=false ;;
61642
61643   esac
61644   shift
61645 done
61646
61647 ac_configure_extra_args=
61648
61649 if $ac_cs_silent; then
61650   exec 6>/dev/null
61651   ac_configure_extra_args="$ac_configure_extra_args --silent"
61652 fi
61653
61654 _ACEOF
61655 cat >>$CONFIG_STATUS <<_ACEOF
61656 if \$ac_cs_recheck; then
61657   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
61658   CONFIG_SHELL=$SHELL
61659   export CONFIG_SHELL
61660   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
61661 fi
61662
61663 _ACEOF
61664 cat >>$CONFIG_STATUS <<\_ACEOF
61665 exec 5>>config.log
61666 {
61667   echo
61668   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
61669 ## Running $as_me. ##
61670 _ASBOX
61671   echo "$ac_log"
61672 } >&5
61673
61674 _ACEOF
61675 cat >>$CONFIG_STATUS <<_ACEOF
61676 #
61677 # INIT-COMMANDS
61678 #
61679 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
61680 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
61681     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
61682     # from automake.
61683     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
61684     # Capture the value of LINGUAS because we need it to compute CATALOGS.
61685     LINGUAS="${LINGUAS-%UNSET%}"
61686
61687
61688 _ACEOF
61689
61690 cat >>$CONFIG_STATUS <<\_ACEOF
61691
61692 # Handling of arguments.
61693 for ac_config_target in $ac_config_targets
61694 do
61695   case $ac_config_target in
61696     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
61697     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
61698     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
61699     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
61700     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
61701     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
61702     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
61703     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
61704     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
61705     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
61706     "tests/chgrp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/chgrp/Makefile" ;;
61707     "tests/chmod/Makefile") CONFIG_FILES="$CONFIG_FILES tests/chmod/Makefile" ;;
61708     "tests/chown/Makefile") CONFIG_FILES="$CONFIG_FILES tests/chown/Makefile" ;;
61709     "tests/cp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cp/Makefile" ;;
61710     "tests/cut/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cut/Makefile" ;;
61711     "tests/dd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dd/Makefile" ;;
61712     "tests/dircolors/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dircolors/Makefile" ;;
61713     "tests/du/Makefile") CONFIG_FILES="$CONFIG_FILES tests/du/Makefile" ;;
61714     "tests/expr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/expr/Makefile" ;;
61715     "tests/factor/Makefile") CONFIG_FILES="$CONFIG_FILES tests/factor/Makefile" ;;
61716     "tests/fmt/Makefile") CONFIG_FILES="$CONFIG_FILES tests/fmt/Makefile" ;;
61717     "tests/head/Makefile") CONFIG_FILES="$CONFIG_FILES tests/head/Makefile" ;;
61718     "tests/install/Makefile") CONFIG_FILES="$CONFIG_FILES tests/install/Makefile" ;;
61719     "tests/join/Makefile") CONFIG_FILES="$CONFIG_FILES tests/join/Makefile" ;;
61720     "tests/ln/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ln/Makefile" ;;
61721     "tests/ls-2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ls-2/Makefile" ;;
61722     "tests/ls/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ls/Makefile" ;;
61723     "tests/md5sum/Makefile") CONFIG_FILES="$CONFIG_FILES tests/md5sum/Makefile" ;;
61724     "tests/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
61725     "tests/mkdir/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mkdir/Makefile" ;;
61726     "tests/mv/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mv/Makefile" ;;
61727     "tests/od/Makefile") CONFIG_FILES="$CONFIG_FILES tests/od/Makefile" ;;
61728     "tests/pr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pr/Makefile" ;;
61729     "tests/readlink/Makefile") CONFIG_FILES="$CONFIG_FILES tests/readlink/Makefile" ;;
61730     "tests/rm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rm/Makefile" ;;
61731     "tests/rmdir/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rmdir/Makefile" ;;
61732     "tests/seq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/seq/Makefile" ;;
61733     "tests/sha1sum/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sha1sum/Makefile" ;;
61734     "tests/shred/Makefile") CONFIG_FILES="$CONFIG_FILES tests/shred/Makefile" ;;
61735     "tests/sort/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sort/Makefile" ;;
61736     "tests/stty/Makefile") CONFIG_FILES="$CONFIG_FILES tests/stty/Makefile" ;;
61737     "tests/sum/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sum/Makefile" ;;
61738     "tests/tac/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tac/Makefile" ;;
61739     "tests/tail-2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tail-2/Makefile" ;;
61740     "tests/tail/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tail/Makefile" ;;
61741     "tests/tee/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tee/Makefile" ;;
61742     "tests/test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test/Makefile" ;;
61743     "tests/touch/Makefile") CONFIG_FILES="$CONFIG_FILES tests/touch/Makefile" ;;
61744     "tests/tr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tr/Makefile" ;;
61745     "tests/tsort/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tsort/Makefile" ;;
61746     "tests/unexpand/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unexpand/Makefile" ;;
61747     "tests/uniq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/uniq/Makefile" ;;
61748     "tests/wc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/wc/Makefile" ;;
61749
61750   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
61751 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
61752    { (exit 1); exit 1; }; };;
61753   esac
61754 done
61755
61756
61757 # If the user did not use the arguments to specify the items to instantiate,
61758 # then the envvar interface is used.  Set only those that are not.
61759 # We use the long form for the default assignment because of an extremely
61760 # bizarre bug on SunOS 4.1.3.
61761 if $ac_need_defaults; then
61762   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
61763   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
61764   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
61765 fi
61766
61767 # Have a temporary directory for convenience.  Make it in the build tree
61768 # simply because there is no reason against having it here, and in addition,
61769 # creating and moving files from /tmp can sometimes cause problems.
61770 # Hook for its removal unless debugging.
61771 # Note that there is a small window in which the directory will not be cleaned:
61772 # after its creation but before its name has been assigned to `$tmp'.
61773 $debug ||
61774 {
61775   tmp=
61776   trap 'exit_status=$?
61777   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
61778 ' 0
61779   trap '{ (exit 1); exit 1; }' 1 2 13 15
61780 }
61781 # Create a (secure) tmp directory for tmp files.
61782
61783 {
61784   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
61785   test -n "$tmp" && test -d "$tmp"
61786 }  ||
61787 {
61788   tmp=./conf$$-$RANDOM
61789   (umask 077 && mkdir "$tmp")
61790 } ||
61791 {
61792    echo "$me: cannot create a temporary directory in ." >&2
61793    { (exit 1); exit 1; }
61794 }
61795
61796 #
61797 # Set up the sed scripts for CONFIG_FILES section.
61798 #
61799
61800 # No need to generate the scripts if there are no CONFIG_FILES.
61801 # This happens for instance when ./config.status config.h
61802 if test -n "$CONFIG_FILES"; then
61803
61804 _ACEOF
61805
61806
61807
61808 ac_delim='%!_!# '
61809 for ac_last_try in false false false false false :; do
61810   cat >conf$$subs.sed <<_ACEOF
61811 SHELL!$SHELL$ac_delim
61812 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
61813 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
61814 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
61815 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
61816 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
61817 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
61818 exec_prefix!$exec_prefix$ac_delim
61819 prefix!$prefix$ac_delim
61820 program_transform_name!$program_transform_name$ac_delim
61821 bindir!$bindir$ac_delim
61822 sbindir!$sbindir$ac_delim
61823 libexecdir!$libexecdir$ac_delim
61824 datarootdir!$datarootdir$ac_delim
61825 datadir!$datadir$ac_delim
61826 sysconfdir!$sysconfdir$ac_delim
61827 sharedstatedir!$sharedstatedir$ac_delim
61828 localstatedir!$localstatedir$ac_delim
61829 includedir!$includedir$ac_delim
61830 oldincludedir!$oldincludedir$ac_delim
61831 docdir!$docdir$ac_delim
61832 infodir!$infodir$ac_delim
61833 htmldir!$htmldir$ac_delim
61834 dvidir!$dvidir$ac_delim
61835 pdfdir!$pdfdir$ac_delim
61836 psdir!$psdir$ac_delim
61837 libdir!$libdir$ac_delim
61838 localedir!$localedir$ac_delim
61839 mandir!$mandir$ac_delim
61840 DEFS!$DEFS$ac_delim
61841 ECHO_C!$ECHO_C$ac_delim
61842 ECHO_N!$ECHO_N$ac_delim
61843 ECHO_T!$ECHO_T$ac_delim
61844 LIBS!$LIBS$ac_delim
61845 build_alias!$build_alias$ac_delim
61846 host_alias!$host_alias$ac_delim
61847 target_alias!$target_alias$ac_delim
61848 build!$build$ac_delim
61849 build_cpu!$build_cpu$ac_delim
61850 build_vendor!$build_vendor$ac_delim
61851 build_os!$build_os$ac_delim
61852 host!$host$ac_delim
61853 host_cpu!$host_cpu$ac_delim
61854 host_vendor!$host_vendor$ac_delim
61855 host_os!$host_os$ac_delim
61856 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
61857 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
61858 INSTALL_DATA!$INSTALL_DATA$ac_delim
61859 CYGPATH_W!$CYGPATH_W$ac_delim
61860 PACKAGE!$PACKAGE$ac_delim
61861 VERSION!$VERSION$ac_delim
61862 ACLOCAL!$ACLOCAL$ac_delim
61863 AUTOCONF!$AUTOCONF$ac_delim
61864 AUTOMAKE!$AUTOMAKE$ac_delim
61865 AUTOHEADER!$AUTOHEADER$ac_delim
61866 MAKEINFO!$MAKEINFO$ac_delim
61867 install_sh!$install_sh$ac_delim
61868 STRIP!$STRIP$ac_delim
61869 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
61870 mkdir_p!$mkdir_p$ac_delim
61871 AWK!$AWK$ac_delim
61872 SET_MAKE!$SET_MAKE$ac_delim
61873 am__leading_dot!$am__leading_dot$ac_delim
61874 AMTAR!$AMTAR$ac_delim
61875 am__tar!$am__tar$ac_delim
61876 am__untar!$am__untar$ac_delim
61877 DEFAULT_POSIX2_VERSION!$DEFAULT_POSIX2_VERSION$ac_delim
61878 CC!$CC$ac_delim
61879 CFLAGS!$CFLAGS$ac_delim
61880 LDFLAGS!$LDFLAGS$ac_delim
61881 CPPFLAGS!$CPPFLAGS$ac_delim
61882 ac_ct_CC!$ac_ct_CC$ac_delim
61883 EXEEXT!$EXEEXT$ac_delim
61884 OBJEXT!$OBJEXT$ac_delim
61885 DEPDIR!$DEPDIR$ac_delim
61886 am__include!$am__include$ac_delim
61887 am__quote!$am__quote$ac_delim
61888 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
61889 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
61890 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
61891 CCDEPMODE!$CCDEPMODE$ac_delim
61892 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
61893 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
61894 CPP!$CPP$ac_delim
61895 GREP!$GREP$ac_delim
61896 EGREP!$EGREP$ac_delim
61897 PERL!$PERL$ac_delim
61898 RANLIB!$RANLIB$ac_delim
61899 LN_S!$LN_S$ac_delim
61900 GNU_PACKAGE!$GNU_PACKAGE$ac_delim
61901 HELP2MAN!$HELP2MAN$ac_delim
61902 OPTIONAL_BIN_PROGS!$OPTIONAL_BIN_PROGS$ac_delim
61903 MAN!$MAN$ac_delim
61904 DF_PROG!$DF_PROG$ac_delim
61905 U!$U$ac_delim
61906 ANSI2KNR!$ANSI2KNR$ac_delim
61907 LIBOBJS!$LIBOBJS$ac_delim
61908 _ACEOF
61909
61910   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
61911     break
61912   elif $ac_last_try; then
61913     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
61914 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
61915    { (exit 1); exit 1; }; }
61916   else
61917     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
61918   fi
61919 done
61920
61921 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
61922 if test -n "$ac_eof"; then
61923   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
61924   ac_eof=`expr $ac_eof + 1`
61925 fi
61926
61927 cat >>$CONFIG_STATUS <<_ACEOF
61928 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
61929 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
61930 _ACEOF
61931 sed '
61932 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
61933 s/^/s,@/; s/!/@,|#_!!_#|/
61934 :n
61935 t n
61936 s/'"$ac_delim"'$/,g/; t
61937 s/$/\\/; p
61938 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
61939 ' >>$CONFIG_STATUS <conf$$subs.sed
61940 rm -f conf$$subs.sed
61941 cat >>$CONFIG_STATUS <<_ACEOF
61942 CEOF$ac_eof
61943 _ACEOF
61944
61945
61946 ac_delim='%!_!# '
61947 for ac_last_try in false false false false false :; do
61948   cat >conf$$subs.sed <<_ACEOF
61949 STDBOOL_H!$STDBOOL_H$ac_delim
61950 HAVE__BOOL!$HAVE__BOOL$ac_delim
61951 ALLOCA!$ALLOCA$ac_delim
61952 ALLOCA_H!$ALLOCA_H$ac_delim
61953 SYS_SOCKET_H!$SYS_SOCKET_H$ac_delim
61954 FNMATCH_H!$FNMATCH_H$ac_delim
61955 NEED_SETGID!$NEED_SETGID$ac_delim
61956 KMEM_GROUP!$KMEM_GROUP$ac_delim
61957 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
61958 LIB_EACCESS!$LIB_EACCESS$ac_delim
61959 POW_LIB!$POW_LIB$ac_delim
61960 EOVERFLOW!$EOVERFLOW$ac_delim
61961 YACC!$YACC$ac_delim
61962 YFLAGS!$YFLAGS$ac_delim
61963 LIB_CLOCK_GETTIME!$LIB_CLOCK_GETTIME$ac_delim
61964 LIB_GETHRXTIME!$LIB_GETHRXTIME$ac_delim
61965 GETOPT_H!$GETOPT_H$ac_delim
61966 GLIBC21!$GLIBC21$ac_delim
61967 HAVE_LONG_LONG_INT!$HAVE_LONG_LONG_INT$ac_delim
61968 HAVE_WCHAR_H!$HAVE_WCHAR_H$ac_delim
61969 HAVE_INTTYPES_H!$HAVE_INTTYPES_H$ac_delim
61970 HAVE_SYS_TYPES_H!$HAVE_SYS_TYPES_H$ac_delim
61971 ABSOLUTE_STDINT_H!$ABSOLUTE_STDINT_H$ac_delim
61972 HAVE_STDINT_H!$HAVE_STDINT_H$ac_delim
61973 HAVE_SYS_INTTYPES_H!$HAVE_SYS_INTTYPES_H$ac_delim
61974 HAVE_SYS_BITYPES_H!$HAVE_SYS_BITYPES_H$ac_delim
61975 BITSIZEOF_PTRDIFF_T!$BITSIZEOF_PTRDIFF_T$ac_delim
61976 BITSIZEOF_SIG_ATOMIC_T!$BITSIZEOF_SIG_ATOMIC_T$ac_delim
61977 BITSIZEOF_SIZE_T!$BITSIZEOF_SIZE_T$ac_delim
61978 BITSIZEOF_WCHAR_T!$BITSIZEOF_WCHAR_T$ac_delim
61979 BITSIZEOF_WINT_T!$BITSIZEOF_WINT_T$ac_delim
61980 HAVE_SIGNED_SIG_ATOMIC_T!$HAVE_SIGNED_SIG_ATOMIC_T$ac_delim
61981 HAVE_SIGNED_WCHAR_T!$HAVE_SIGNED_WCHAR_T$ac_delim
61982 HAVE_SIGNED_WINT_T!$HAVE_SIGNED_WINT_T$ac_delim
61983 PTRDIFF_T_SUFFIX!$PTRDIFF_T_SUFFIX$ac_delim
61984 SIG_ATOMIC_T_SUFFIX!$SIG_ATOMIC_T_SUFFIX$ac_delim
61985 SIZE_T_SUFFIX!$SIZE_T_SUFFIX$ac_delim
61986 WCHAR_T_SUFFIX!$WCHAR_T_SUFFIX$ac_delim
61987 WINT_T_SUFFIX!$WINT_T_SUFFIX$ac_delim
61988 STDINT_H!$STDINT_H$ac_delim
61989 LIB_NANOSLEEP!$LIB_NANOSLEEP$ac_delim
61990 LIB_ACL!$LIB_ACL$ac_delim
61991 LIB_FDATASYNC!$LIB_FDATASYNC$ac_delim
61992 SEQ_LIBM!$SEQ_LIBM$ac_delim
61993 LIBICONV!$LIBICONV$ac_delim
61994 LTLIBICONV!$LTLIBICONV$ac_delim
61995 LIB_CRYPT!$LIB_CRYPT$ac_delim
61996 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
61997 USE_NLS!$USE_NLS$ac_delim
61998 MSGFMT!$MSGFMT$ac_delim
61999 GMSGFMT!$GMSGFMT$ac_delim
62000 XGETTEXT!$XGETTEXT$ac_delim
62001 MSGMERGE!$MSGMERGE$ac_delim
62002 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
62003 INTLLIBS!$INTLLIBS$ac_delim
62004 LIBINTL!$LIBINTL$ac_delim
62005 LTLIBINTL!$LTLIBINTL$ac_delim
62006 POSUB!$POSUB$ac_delim
62007 LTLIBOBJS!$LTLIBOBJS$ac_delim
62008 _ACEOF
62009
62010   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 59; then
62011     break
62012   elif $ac_last_try; then
62013     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
62014 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
62015    { (exit 1); exit 1; }; }
62016   else
62017     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
62018   fi
62019 done
62020
62021 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
62022 if test -n "$ac_eof"; then
62023   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
62024   ac_eof=`expr $ac_eof + 1`
62025 fi
62026
62027 cat >>$CONFIG_STATUS <<_ACEOF
62028 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
62029 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
62030 _ACEOF
62031 sed '
62032 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
62033 s/^/s,@/; s/!/@,|#_!!_#|/
62034 :n
62035 t n
62036 s/'"$ac_delim"'$/,g/; t
62037 s/$/\\/; p
62038 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
62039 ' >>$CONFIG_STATUS <conf$$subs.sed
62040 rm -f conf$$subs.sed
62041 cat >>$CONFIG_STATUS <<_ACEOF
62042 :end
62043 s/|#_!!_#|//g
62044 CEOF$ac_eof
62045 _ACEOF
62046
62047
62048 # VPATH may cause trouble with some makes, so we remove $(srcdir),
62049 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
62050 # trailing colons and then remove the whole line if VPATH becomes empty
62051 # (actually we leave an empty line to preserve line numbers).
62052 if test "x$srcdir" = x.; then
62053   ac_vpsub='/^[  ]*VPATH[        ]*=/{
62054 s/:*\$(srcdir):*/:/
62055 s/:*\${srcdir}:*/:/
62056 s/:*@srcdir@:*/:/
62057 s/^\([^=]*=[     ]*\):*/\1/
62058 s/:*$//
62059 s/^[^=]*=[       ]*$//
62060 }'
62061 fi
62062
62063 cat >>$CONFIG_STATUS <<\_ACEOF
62064 fi # test -n "$CONFIG_FILES"
62065
62066
62067 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
62068 do
62069   case $ac_tag in
62070   :[FHLC]) ac_mode=$ac_tag; continue;;
62071   esac
62072   case $ac_mode$ac_tag in
62073   :[FHL]*:*);;
62074   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
62075 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
62076    { (exit 1); exit 1; }; };;
62077   :[FH]-) ac_tag=-:-;;
62078   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
62079   esac
62080   ac_save_IFS=$IFS
62081   IFS=:
62082   set x $ac_tag
62083   IFS=$ac_save_IFS
62084   shift
62085   ac_file=$1
62086   shift
62087
62088   case $ac_mode in
62089   :L) ac_source=$1;;
62090   :[FH])
62091     ac_file_inputs=
62092     for ac_f
62093     do
62094       case $ac_f in
62095       -) ac_f="$tmp/stdin";;
62096       *) # Look for the file first in the build tree, then in the source tree
62097          # (if the path is not absolute).  The absolute path cannot be DOS-style,
62098          # because $ac_f cannot contain `:'.
62099          test -f "$ac_f" ||
62100            case $ac_f in
62101            [\\/$]*) false;;
62102            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
62103            esac ||
62104            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
62105 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
62106    { (exit 1); exit 1; }; };;
62107       esac
62108       ac_file_inputs="$ac_file_inputs $ac_f"
62109     done
62110
62111     # Let's still pretend it is `configure' which instantiates (i.e., don't
62112     # use $as_me), people would be surprised to read:
62113     #    /* config.h.  Generated by config.status.  */
62114     configure_input="Generated from "`IFS=:
62115           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
62116     if test x"$ac_file" != x-; then
62117       configure_input="$ac_file.  $configure_input"
62118       { echo "$as_me:$LINENO: creating $ac_file" >&5
62119 echo "$as_me: creating $ac_file" >&6;}
62120     fi
62121
62122     case $ac_tag in
62123     *:-:* | *:-) cat >"$tmp/stdin";;
62124     esac
62125     ;;
62126   esac
62127
62128   ac_dir=`$as_dirname -- "$ac_file" ||
62129 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62130          X"$ac_file" : 'X\(//\)[^/]' \| \
62131          X"$ac_file" : 'X\(//\)$' \| \
62132          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
62133 echo X"$ac_file" |
62134     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
62135             s//\1/
62136             q
62137           }
62138           /^X\(\/\/\)[^/].*/{
62139             s//\1/
62140             q
62141           }
62142           /^X\(\/\/\)$/{
62143             s//\1/
62144             q
62145           }
62146           /^X\(\/\).*/{
62147             s//\1/
62148             q
62149           }
62150           s/.*/./; q'`
62151   { as_dir="$ac_dir"
62152   case $as_dir in #(
62153   -*) as_dir=./$as_dir;;
62154   esac
62155   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
62156     as_dirs=
62157     while :; do
62158       case $as_dir in #(
62159       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
62160       *) as_qdir=$as_dir;;
62161       esac
62162       as_dirs="'$as_qdir' $as_dirs"
62163       as_dir=`$as_dirname -- "$as_dir" ||
62164 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62165          X"$as_dir" : 'X\(//\)[^/]' \| \
62166          X"$as_dir" : 'X\(//\)$' \| \
62167          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
62168 echo X"$as_dir" |
62169     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
62170             s//\1/
62171             q
62172           }
62173           /^X\(\/\/\)[^/].*/{
62174             s//\1/
62175             q
62176           }
62177           /^X\(\/\/\)$/{
62178             s//\1/
62179             q
62180           }
62181           /^X\(\/\).*/{
62182             s//\1/
62183             q
62184           }
62185           s/.*/./; q'`
62186       test -d "$as_dir" && break
62187     done
62188     test -z "$as_dirs" || eval "mkdir $as_dirs"
62189   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
62190 echo "$as_me: error: cannot create directory $as_dir" >&2;}
62191    { (exit 1); exit 1; }; }; }
62192   ac_builddir=.
62193
62194 case "$ac_dir" in
62195 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
62196 *)
62197   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
62198   # A ".." for each directory in $ac_dir_suffix.
62199   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
62200   case $ac_top_builddir_sub in
62201   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
62202   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
62203   esac ;;
62204 esac
62205 ac_abs_top_builddir=$ac_pwd
62206 ac_abs_builddir=$ac_pwd$ac_dir_suffix
62207 # for backward compatibility:
62208 ac_top_builddir=$ac_top_build_prefix
62209
62210 case $srcdir in
62211   .)  # We are building in place.
62212     ac_srcdir=.
62213     ac_top_srcdir=$ac_top_builddir_sub
62214     ac_abs_top_srcdir=$ac_pwd ;;
62215   [\\/]* | ?:[\\/]* )  # Absolute name.
62216     ac_srcdir=$srcdir$ac_dir_suffix;
62217     ac_top_srcdir=$srcdir
62218     ac_abs_top_srcdir=$srcdir ;;
62219   *) # Relative name.
62220     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
62221     ac_top_srcdir=$ac_top_build_prefix$srcdir
62222     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
62223 esac
62224 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
62225
62226
62227   case $ac_mode in
62228   :F)
62229   #
62230   # CONFIG_FILE
62231   #
62232
62233   case $INSTALL in
62234   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
62235   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
62236   esac
62237 _ACEOF
62238
62239 cat >>$CONFIG_STATUS <<\_ACEOF
62240 # If the template does not know about datarootdir, expand it.
62241 # FIXME: This hack should be removed a few years after 2.60.
62242 ac_datarootdir_hack=; ac_datarootdir_seen=
62243
62244 case `sed -n '/datarootdir/ {
62245   p
62246   q
62247 }
62248 /@datadir@/p
62249 /@docdir@/p
62250 /@infodir@/p
62251 /@localedir@/p
62252 /@mandir@/p
62253 ' $ac_file_inputs` in
62254 *datarootdir*) ac_datarootdir_seen=yes;;
62255 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
62256   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
62257 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
62258 _ACEOF
62259 cat >>$CONFIG_STATUS <<_ACEOF
62260   ac_datarootdir_hack='
62261   s&@datadir@&$datadir&g
62262   s&@docdir@&$docdir&g
62263   s&@infodir@&$infodir&g
62264   s&@localedir@&$localedir&g
62265   s&@mandir@&$mandir&g
62266     s&\\\${datarootdir}&$datarootdir&g' ;;
62267 esac
62268 _ACEOF
62269
62270 # Neutralize VPATH when `$srcdir' = `.'.
62271 # Shell code in configure.ac might set extrasub.
62272 # FIXME: do we really want to maintain this feature?
62273 cat >>$CONFIG_STATUS <<_ACEOF
62274   sed "$ac_vpsub
62275 $extrasub
62276 _ACEOF
62277 cat >>$CONFIG_STATUS <<\_ACEOF
62278 :t
62279 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
62280 s&@configure_input@&$configure_input&;t t
62281 s&@top_builddir@&$ac_top_builddir_sub&;t t
62282 s&@srcdir@&$ac_srcdir&;t t
62283 s&@abs_srcdir@&$ac_abs_srcdir&;t t
62284 s&@top_srcdir@&$ac_top_srcdir&;t t
62285 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
62286 s&@builddir@&$ac_builddir&;t t
62287 s&@abs_builddir@&$ac_abs_builddir&;t t
62288 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
62289 s&@INSTALL@&$ac_INSTALL&;t t
62290 $ac_datarootdir_hack
62291 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
62292
62293 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
62294   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
62295   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
62296   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
62297 which seems to be undefined.  Please make sure it is defined." >&5
62298 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
62299 which seems to be undefined.  Please make sure it is defined." >&2;}
62300
62301   rm -f "$tmp/stdin"
62302   case $ac_file in
62303   -) cat "$tmp/out"; rm -f "$tmp/out";;
62304   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
62305   esac
62306  ;;
62307   :H)
62308   #
62309   # CONFIG_HEADER
62310   #
62311 _ACEOF
62312
62313 # Transform confdefs.h into a sed script `conftest.defines', that
62314 # substitutes the proper values into config.h.in to produce config.h.
62315 rm -f conftest.defines conftest.tail
62316 # First, append a space to every undef/define line, to ease matching.
62317 echo 's/$/ /' >conftest.defines
62318 # Then, protect against being on the right side of a sed subst, or in
62319 # an unquoted here document, in config.status.  If some macros were
62320 # called several times there might be several #defines for the same
62321 # symbol, which is useless.  But do not sort them, since the last
62322 # AC_DEFINE must be honored.
62323 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
62324 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
62325 # NAME is the cpp macro being defined, VALUE is the value it is being given.
62326 # PARAMS is the parameter list in the macro definition--in most cases, it's
62327 # just an empty string.
62328 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
62329 ac_dB='\\)[      (].*,\\1define\\2'
62330 ac_dC=' '
62331 ac_dD=' ,'
62332
62333 uniq confdefs.h |
62334   sed -n '
62335         t rset
62336         :rset
62337         s/^[     ]*#[    ]*define[       ][      ]*//
62338         t ok
62339         d
62340         :ok
62341         s/[\\&,]/\\&/g
62342         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
62343         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
62344   ' >>conftest.defines
62345
62346 # Remove the space that was appended to ease matching.
62347 # Then replace #undef with comments.  This is necessary, for
62348 # example, in the case of _POSIX_SOURCE, which is predefined and required
62349 # on some systems where configure will not decide to define it.
62350 # (The regexp can be short, since the line contains either #define or #undef.)
62351 echo 's/ $//
62352 s,^[     #]*u.*,/* & */,' >>conftest.defines
62353
62354 # Break up conftest.defines:
62355 ac_max_sed_lines=50
62356
62357 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
62358 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
62359 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
62360 # et cetera.
62361 ac_in='$ac_file_inputs'
62362 ac_out='"$tmp/out1"'
62363 ac_nxt='"$tmp/out2"'
62364
62365 while :
62366 do
62367   # Write a here document:
62368     cat >>$CONFIG_STATUS <<_ACEOF
62369     # First, check the format of the line:
62370     cat >"\$tmp/defines.sed" <<\\CEOF
62371 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
62372 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
62373 b
62374 :def
62375 _ACEOF
62376   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
62377   echo 'CEOF
62378     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
62379   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
62380   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
62381   grep . conftest.tail >/dev/null || break
62382   rm -f conftest.defines
62383   mv conftest.tail conftest.defines
62384 done
62385 rm -f conftest.defines conftest.tail
62386
62387 echo "ac_result=$ac_in" >>$CONFIG_STATUS
62388 cat >>$CONFIG_STATUS <<\_ACEOF
62389   if test x"$ac_file" != x-; then
62390     echo "/* $configure_input  */" >"$tmp/config.h"
62391     cat "$ac_result" >>"$tmp/config.h"
62392     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
62393       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
62394 echo "$as_me: $ac_file is unchanged" >&6;}
62395     else
62396       rm -f $ac_file
62397       mv "$tmp/config.h" $ac_file
62398     fi
62399   else
62400     echo "/* $configure_input  */"
62401     cat "$ac_result"
62402   fi
62403   rm -f "$tmp/out12"
62404 # Compute $ac_file's index in $config_headers.
62405 _am_stamp_count=1
62406 for _am_header in $config_headers :; do
62407   case $_am_header in
62408     $ac_file | $ac_file:* )
62409       break ;;
62410     * )
62411       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
62412   esac
62413 done
62414 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
62415 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62416          X$ac_file : 'X\(//\)[^/]' \| \
62417          X$ac_file : 'X\(//\)$' \| \
62418          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
62419 echo X$ac_file |
62420     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
62421             s//\1/
62422             q
62423           }
62424           /^X\(\/\/\)[^/].*/{
62425             s//\1/
62426             q
62427           }
62428           /^X\(\/\/\)$/{
62429             s//\1/
62430             q
62431           }
62432           /^X\(\/\).*/{
62433             s//\1/
62434             q
62435           }
62436           s/.*/./; q'`/stamp-h$_am_stamp_count
62437  ;;
62438
62439   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
62440 echo "$as_me: executing $ac_file commands" >&6;}
62441  ;;
62442   esac
62443
62444
62445   case $ac_file$ac_mode in
62446     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
62447   # Strip MF so we end up with the name of the file.
62448   mf=`echo "$mf" | sed -e 's/:.*$//'`
62449   # Check whether this is an Automake generated Makefile or not.
62450   # We used to match only the files named `Makefile.in', but
62451   # some people rename them; so instead we look at the file content.
62452   # Grep'ing the first line is not enough: some people post-process
62453   # each Makefile.in and add a new line on top of each file to say so.
62454   # So let's grep whole file.
62455   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
62456     dirpart=`$as_dirname -- "$mf" ||
62457 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62458          X"$mf" : 'X\(//\)[^/]' \| \
62459          X"$mf" : 'X\(//\)$' \| \
62460          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
62461 echo X"$mf" |
62462     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
62463             s//\1/
62464             q
62465           }
62466           /^X\(\/\/\)[^/].*/{
62467             s//\1/
62468             q
62469           }
62470           /^X\(\/\/\)$/{
62471             s//\1/
62472             q
62473           }
62474           /^X\(\/\).*/{
62475             s//\1/
62476             q
62477           }
62478           s/.*/./; q'`
62479   else
62480     continue
62481   fi
62482   # Extract the definition of DEPDIR, am__include, and am__quote
62483   # from the Makefile without running `make'.
62484   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
62485   test -z "$DEPDIR" && continue
62486   am__include=`sed -n 's/^am__include = //p' < "$mf"`
62487   test -z "am__include" && continue
62488   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
62489   # When using ansi2knr, U may be empty or an underscore; expand it
62490   U=`sed -n 's/^U = //p' < "$mf"`
62491   # Find all dependency output files, they are included files with
62492   # $(DEPDIR) in their names.  We invoke sed twice because it is the
62493   # simplest approach to changing $(DEPDIR) to its actual value in the
62494   # expansion.
62495   for file in `sed -n "
62496     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
62497        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
62498     # Make sure the directory exists.
62499     test -f "$dirpart/$file" && continue
62500     fdir=`$as_dirname -- "$file" ||
62501 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62502          X"$file" : 'X\(//\)[^/]' \| \
62503          X"$file" : 'X\(//\)$' \| \
62504          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
62505 echo X"$file" |
62506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
62507             s//\1/
62508             q
62509           }
62510           /^X\(\/\/\)[^/].*/{
62511             s//\1/
62512             q
62513           }
62514           /^X\(\/\/\)$/{
62515             s//\1/
62516             q
62517           }
62518           /^X\(\/\).*/{
62519             s//\1/
62520             q
62521           }
62522           s/.*/./; q'`
62523     { as_dir=$dirpart/$fdir
62524   case $as_dir in #(
62525   -*) as_dir=./$as_dir;;
62526   esac
62527   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
62528     as_dirs=
62529     while :; do
62530       case $as_dir in #(
62531       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
62532       *) as_qdir=$as_dir;;
62533       esac
62534       as_dirs="'$as_qdir' $as_dirs"
62535       as_dir=`$as_dirname -- "$as_dir" ||
62536 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62537          X"$as_dir" : 'X\(//\)[^/]' \| \
62538          X"$as_dir" : 'X\(//\)$' \| \
62539          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
62540 echo X"$as_dir" |
62541     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
62542             s//\1/
62543             q
62544           }
62545           /^X\(\/\/\)[^/].*/{
62546             s//\1/
62547             q
62548           }
62549           /^X\(\/\/\)$/{
62550             s//\1/
62551             q
62552           }
62553           /^X\(\/\).*/{
62554             s//\1/
62555             q
62556           }
62557           s/.*/./; q'`
62558       test -d "$as_dir" && break
62559     done
62560     test -z "$as_dirs" || eval "mkdir $as_dirs"
62561   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
62562 echo "$as_me: error: cannot create directory $as_dir" >&2;}
62563    { (exit 1); exit 1; }; }; }
62564     # echo "creating $dirpart/$file"
62565     echo '# dummy' > "$dirpart/$file"
62566   done
62567 done
62568  ;;
62569     "default-1":C)
62570     for ac_file in $CONFIG_FILES; do
62571       # Support "outfile[:infile[:infile...]]"
62572       case "$ac_file" in
62573         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
62574       esac
62575       # PO directories have a Makefile.in generated from Makefile.in.in.
62576       case "$ac_file" in */Makefile.in)
62577         # Adjust a relative srcdir.
62578         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
62579         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
62580         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
62581         # In autoconf-2.13 it is called $ac_given_srcdir.
62582         # In autoconf-2.50 it is called $srcdir.
62583         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
62584         case "$ac_given_srcdir" in
62585           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
62586           /*) top_srcdir="$ac_given_srcdir" ;;
62587           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
62588         esac
62589         # Treat a directory as a PO directory if and only if it has a
62590         # POTFILES.in file. This allows packages to have multiple PO
62591         # directories under different names or in different locations.
62592         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
62593           rm -f "$ac_dir/POTFILES"
62594           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
62595           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
62596           POMAKEFILEDEPS="POTFILES.in"
62597           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
62598           # on $ac_dir but don't depend on user-specified configuration
62599           # parameters.
62600           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
62601             # The LINGUAS file contains the set of available languages.
62602             if test -n "$OBSOLETE_ALL_LINGUAS"; then
62603               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
62604             fi
62605             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
62606             # Hide the ALL_LINGUAS assigment from automake.
62607             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
62608             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
62609           else
62610             # The set of available languages was given in configure.in.
62611             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
62612           fi
62613           # Compute POFILES
62614           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
62615           # Compute UPDATEPOFILES
62616           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
62617           # Compute DUMMYPOFILES
62618           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
62619           # Compute GMOFILES
62620           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
62621           case "$ac_given_srcdir" in
62622             .) srcdirpre= ;;
62623             *) srcdirpre='$(srcdir)/' ;;
62624           esac
62625           POFILES=
62626           UPDATEPOFILES=
62627           DUMMYPOFILES=
62628           GMOFILES=
62629           for lang in $ALL_LINGUAS; do
62630             POFILES="$POFILES $srcdirpre$lang.po"
62631             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
62632             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
62633             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
62634           done
62635           # CATALOGS depends on both $ac_dir and the user's LINGUAS
62636           # environment variable.
62637           INST_LINGUAS=
62638           if test -n "$ALL_LINGUAS"; then
62639             for presentlang in $ALL_LINGUAS; do
62640               useit=no
62641               if test "%UNSET%" != "$LINGUAS"; then
62642                 desiredlanguages="$LINGUAS"
62643               else
62644                 desiredlanguages="$ALL_LINGUAS"
62645               fi
62646               for desiredlang in $desiredlanguages; do
62647                 # Use the presentlang catalog if desiredlang is
62648                 #   a. equal to presentlang, or
62649                 #   b. a variant of presentlang (because in this case,
62650                 #      presentlang can be used as a fallback for messages
62651                 #      which are not translated in the desiredlang catalog).
62652                 case "$desiredlang" in
62653                   "$presentlang"*) useit=yes;;
62654                 esac
62655               done
62656               if test $useit = yes; then
62657                 INST_LINGUAS="$INST_LINGUAS $presentlang"
62658               fi
62659             done
62660           fi
62661           CATALOGS=
62662           if test -n "$INST_LINGUAS"; then
62663             for lang in $INST_LINGUAS; do
62664               CATALOGS="$CATALOGS $lang.gmo"
62665             done
62666           fi
62667           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
62668           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
62669           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
62670             if test -f "$f"; then
62671               case "$f" in
62672                 *.orig | *.bak | *~) ;;
62673                 *) cat "$f" >> "$ac_dir/Makefile" ;;
62674               esac
62675             fi
62676           done
62677         fi
62678         ;;
62679       esac
62680     done ;;
62681
62682   esac
62683 done # for ac_tag
62684
62685
62686 { (exit 0); exit 0; }
62687 _ACEOF
62688 chmod +x $CONFIG_STATUS
62689 ac_clean_files=$ac_clean_files_save
62690
62691
62692 # configure is writing to config.log, and then calls config.status.
62693 # config.status does its own redirection, appending to config.log.
62694 # Unfortunately, on DOS this fails, as config.log is still kept open
62695 # by configure, so config.status won't be able to write to it; its
62696 # output is simply discarded.  So we exec the FD to /dev/null,
62697 # effectively closing config.log, so it can be properly (re)opened and
62698 # appended to by config.status.  When coming back to configure, we
62699 # need to make the FD available again.
62700 if test "$no_create" != yes; then
62701   ac_cs_success=:
62702   ac_config_status_args=
62703   test "$silent" = yes &&
62704     ac_config_status_args="$ac_config_status_args --quiet"
62705   exec 5>/dev/null
62706   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
62707   exec 5>>config.log
62708   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
62709   # would make configure fail if this is the last instruction.
62710   $ac_cs_success || { (exit 1); exit 1; }
62711 fi
62712