Tizen 2.0 Release
[external/tizen-coreutils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61a for GNU coreutils 6.9.
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 more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   echo "#! /bin/sh" >conf$$.sh
77   echo  "exit 0"   >>conf$$.sh
78   chmod +x conf$$.sh
79   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
80     PATH_SEPARATOR=';'
81   else
82     PATH_SEPARATOR=:
83   fi
84   rm -f conf$$.sh
85 fi
86
87 # Support unset when possible.
88 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
89   as_unset=unset
90 else
91   as_unset=false
92 fi
93
94
95 # IFS
96 # We need space, tab and new line, in precisely that order.  Quoting is
97 # there to prevent editors from complaining about space-tab.
98 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
99 # splitting by setting IFS to empty value.)
100 IFS=" ""        $as_nl"
101
102 # Find who we are.  Look in the path if we contain no directory separator.
103 case $0 in
104   *[\\/]* ) as_myself=$0 ;;
105   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
106 for as_dir in $PATH
107 do
108   IFS=$as_save_IFS
109   test -z "$as_dir" && as_dir=.
110   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
111 done
112 IFS=$as_save_IFS
113
114      ;;
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119   as_myself=$0
120 fi
121 if test ! -f "$as_myself"; then
122   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
123   { (exit 1); exit 1; }
124 fi
125
126 # Work around bugs in pre-3.0 UWIN ksh.
127 for as_var in ENV MAIL MAILPATH
128 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
129 done
130 PS1='$ '
131 PS2='> '
132 PS4='+ '
133
134 # NLS nuisances.
135 for as_var in \
136   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
137   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
138   LC_TELEPHONE LC_TIME
139 do
140   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
141     eval $as_var=C; export $as_var
142   else
143     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
144   fi
145 done
146
147 # Required to use basename.
148 if expr a : '\(a\)' >/dev/null 2>&1 &&
149    test "X`expr 00001 : '.*\(...\)'`" = X001; then
150   as_expr=expr
151 else
152   as_expr=false
153 fi
154
155 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
156   as_basename=basename
157 else
158   as_basename=false
159 fi
160
161
162 # Name of the executable.
163 as_me=`$as_basename -- "$0" ||
164 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
165          X"$0" : 'X\(//\)$' \| \
166          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
167 $as_echo X/"$0" |
168     sed '/^.*\/\([^/][^/]*\)\/*$/{
169             s//\1/
170             q
171           }
172           /^X\/\(\/\/\)$/{
173             s//\1/
174             q
175           }
176           /^X\/\(\/\).*/{
177             s//\1/
178             q
179           }
180           s/.*/./; q'`
181
182 # CDPATH.
183 $as_unset CDPATH
184
185
186 if test "x$CONFIG_SHELL" = x; then
187   if (eval ":") 2>/dev/null; then
188   as_have_required=yes
189 else
190   as_have_required=no
191 fi
192
193   if test $as_have_required = yes &&     (eval ":
194 (as_func_return () {
195   (exit \$1)
196 }
197 as_func_success () {
198   as_func_return 0
199 }
200 as_func_failure () {
201   as_func_return 1
202 }
203 as_func_ret_success () {
204   return 0
205 }
206 as_func_ret_failure () {
207   return 1
208 }
209
210 exitcode=0
211 if as_func_success; then
212   :
213 else
214   exitcode=1
215   echo as_func_success failed.
216 fi
217
218 if as_func_failure; then
219   exitcode=1
220   echo as_func_failure succeeded.
221 fi
222
223 if as_func_ret_success; then
224   :
225 else
226   exitcode=1
227   echo as_func_ret_success failed.
228 fi
229
230 if as_func_ret_failure; then
231   exitcode=1
232   echo as_func_ret_failure succeeded.
233 fi
234
235 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
236   :
237 else
238   exitcode=1
239   echo positional parameters were not saved.
240 fi
241
242 test \$exitcode = 0) || { (exit 1); exit 1; }
243
244 (
245   as_lineno_1=\$LINENO
246   as_lineno_2=\$LINENO
247   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
248   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
249 ") 2> /dev/null; then
250   :
251 else
252   as_candidate_shells=
253     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
254 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
255 do
256   IFS=$as_save_IFS
257   test -z "$as_dir" && as_dir=.
258   case $as_dir in
259          /*)
260            for as_base in sh bash ksh sh5; do
261              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
262            done;;
263        esac
264 done
265 IFS=$as_save_IFS
266
267
268       for as_shell in $as_candidate_shells $SHELL; do
269          # Try only shells that exist, to save several forks.
270          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
271                 { ("$as_shell") 2> /dev/null <<\_ASEOF
272 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
273   emulate sh
274   NULLCMD=:
275   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
276   # is contrary to our usage.  Disable this feature.
277   alias -g '${1+"$@"}'='"$@"'
278   setopt NO_GLOB_SUBST
279 else
280   case `(set -o) 2>/dev/null` in
281   *posix*) set -o posix ;;
282 esac
283
284 fi
285
286
287 :
288 _ASEOF
289 }; then
290   CONFIG_SHELL=$as_shell
291                as_have_required=yes
292                if { "$as_shell" 2> /dev/null <<\_ASEOF
293 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
294   emulate sh
295   NULLCMD=:
296   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
297   # is contrary to our usage.  Disable this feature.
298   alias -g '${1+"$@"}'='"$@"'
299   setopt NO_GLOB_SUBST
300 else
301   case `(set -o) 2>/dev/null` in
302   *posix*) set -o posix ;;
303 esac
304
305 fi
306
307
308 :
309 (as_func_return () {
310   (exit $1)
311 }
312 as_func_success () {
313   as_func_return 0
314 }
315 as_func_failure () {
316   as_func_return 1
317 }
318 as_func_ret_success () {
319   return 0
320 }
321 as_func_ret_failure () {
322   return 1
323 }
324
325 exitcode=0
326 if as_func_success; then
327   :
328 else
329   exitcode=1
330   echo as_func_success failed.
331 fi
332
333 if as_func_failure; then
334   exitcode=1
335   echo as_func_failure succeeded.
336 fi
337
338 if as_func_ret_success; then
339   :
340 else
341   exitcode=1
342   echo as_func_ret_success failed.
343 fi
344
345 if as_func_ret_failure; then
346   exitcode=1
347   echo as_func_ret_failure succeeded.
348 fi
349
350 if ( set x; as_func_ret_success y && test x = "$1" ); then
351   :
352 else
353   exitcode=1
354   echo positional parameters were not saved.
355 fi
356
357 test $exitcode = 0) || { (exit 1); exit 1; }
358
359 (
360   as_lineno_1=$LINENO
361   as_lineno_2=$LINENO
362   test "x$as_lineno_1" != "x$as_lineno_2" &&
363   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
364
365 _ASEOF
366 }; then
367   break
368 fi
369
370 fi
371
372       done
373
374       if test "x$CONFIG_SHELL" != x; then
375   for as_var in BASH_ENV ENV
376         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
377         done
378         export CONFIG_SHELL
379         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
380 fi
381
382
383     if test $as_have_required = no; then
384   echo This script requires a shell more modern than all the
385       echo shells that I found on your system.  Please install a
386       echo modern shell, or manually run the script under such a
387       echo shell if you do have one.
388       { (exit 1); exit 1; }
389 fi
390
391
392 fi
393
394 fi
395
396
397
398 (eval "as_func_return () {
399   (exit \$1)
400 }
401 as_func_success () {
402   as_func_return 0
403 }
404 as_func_failure () {
405   as_func_return 1
406 }
407 as_func_ret_success () {
408   return 0
409 }
410 as_func_ret_failure () {
411   return 1
412 }
413
414 exitcode=0
415 if as_func_success; then
416   :
417 else
418   exitcode=1
419   echo as_func_success failed.
420 fi
421
422 if as_func_failure; then
423   exitcode=1
424   echo as_func_failure succeeded.
425 fi
426
427 if as_func_ret_success; then
428   :
429 else
430   exitcode=1
431   echo as_func_ret_success failed.
432 fi
433
434 if as_func_ret_failure; then
435   exitcode=1
436   echo as_func_ret_failure succeeded.
437 fi
438
439 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
440   :
441 else
442   exitcode=1
443   echo positional parameters were not saved.
444 fi
445
446 test \$exitcode = 0") || {
447   echo No shell found that supports shell functions.
448   echo Please tell autoconf@gnu.org about your system,
449   echo including any error possibly output before this
450   echo message
451 }
452
453
454
455   as_lineno_1=$LINENO
456   as_lineno_2=$LINENO
457   test "x$as_lineno_1" != "x$as_lineno_2" &&
458   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
459
460   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
461   # uniformly replaced by the line number.  The first 'sed' inserts a
462   # line-number line after each line using $LINENO; the second 'sed'
463   # does the real work.  The second script uses 'N' to pair each
464   # line-number line with the line containing $LINENO, and appends
465   # trailing '-' during substitution so that $LINENO is not a special
466   # case at line end.
467   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
468   # scripts with optimization help from Paolo Bonzini.  Blame Lee
469   # E. McMahon (1931-1989) for sed's syntax.  :-)
470   sed -n '
471     p
472     /[$]LINENO/=
473   ' <$as_myself |
474     sed '
475       s/[$]LINENO.*/&-/
476       t lineno
477       b
478       :lineno
479       N
480       :loop
481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482       t loop
483       s/-\n.*//
484     ' >$as_me.lineno &&
485   chmod +x "$as_me.lineno" ||
486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
487    { (exit 1); exit 1; }; }
488
489   # Don't try to exec as it changes $[0], causing all sort of problems
490   # (the dirname of $[0] is not the place where we might find the
491   # original and so on.  Autoconf is especially sensitive to this).
492   . "./$as_me.lineno"
493   # Exit status is that of the last command.
494   exit
495 }
496
497
498 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
499   as_dirname=dirname
500 else
501   as_dirname=false
502 fi
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in
506 -n*)
507   case `echo 'x\c'` in
508   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
509   *)   ECHO_C='\c';;
510   esac;;
511 *)
512   ECHO_N='-n';;
513 esac
514 if expr a : '\(a\)' >/dev/null 2>&1 &&
515    test "X`expr 00001 : '.*\(...\)'`" = X001; then
516   as_expr=expr
517 else
518   as_expr=false
519 fi
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir
527 fi
528 echo >conf$$.file
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530   as_ln_s='ln -s'
531   # ... but there are two gotchas:
532   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534   # In both cases, we have to default to `cp -p'.
535   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536     as_ln_s='cp -p'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538   as_ln_s=ln
539 else
540   as_ln_s='cp -p'
541 fi
542 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
543 rmdir conf$$.dir 2>/dev/null
544
545 if mkdir -p . 2>/dev/null; then
546   as_mkdir_p=:
547 else
548   test -d ./-p && rmdir ./-p
549   as_mkdir_p=false
550 fi
551
552 if test -x / >/dev/null 2>&1; then
553   as_test_x='test -x'
554 else
555   if ls -dL / >/dev/null 2>&1; then
556     as_ls_L_option=L
557   else
558     as_ls_L_option=
559   fi
560   as_test_x='
561     eval sh -c '\''
562       if test -d "$1"; then
563         test -d "$1/.";
564       else
565         case $1 in
566         -*)set "./$1";;
567         esac;
568         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
569         ???[sx]*):;;*)false;;esac;fi
570     '\'' sh
571   '
572 fi
573 as_executable_p=$as_test_x
574
575 # Sed expression to map a string onto a valid CPP name.
576 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
577
578 # Sed expression to map a string onto a valid variable name.
579 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
580
581
582
583 exec 7<&0 </dev/null 6>&1
584
585 # Name of the host.
586 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
587 # so uname gets run too.
588 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
589
590 #
591 # Initializations.
592 #
593 ac_default_prefix=/usr/local
594 ac_clean_files=
595 ac_config_libobj_dir=.
596 LIBOBJS=
597 cross_compiling=no
598 subdirs=
599 MFLAGS=
600 MAKEFLAGS=
601 SHELL=${CONFIG_SHELL-/bin/sh}
602
603 # Identity of this package.
604 PACKAGE_NAME='GNU coreutils'
605 PACKAGE_TARNAME='coreutils'
606 PACKAGE_VERSION='6.9'
607 PACKAGE_STRING='GNU coreutils 6.9'
608 PACKAGE_BUGREPORT='bug-coreutils@gnu.org'
609
610 ac_unique_file="src/ls.c"
611 # Factoring default headers for most tests.
612 ac_includes_default="\
613 #include <stdio.h>
614 #ifdef HAVE_SYS_TYPES_H
615 # include <sys/types.h>
616 #endif
617 #ifdef HAVE_SYS_STAT_H
618 # include <sys/stat.h>
619 #endif
620 #ifdef STDC_HEADERS
621 # include <stdlib.h>
622 # include <stddef.h>
623 #else
624 # ifdef HAVE_STDLIB_H
625 #  include <stdlib.h>
626 # endif
627 #endif
628 #ifdef HAVE_STRING_H
629 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
630 #  include <memory.h>
631 # endif
632 # include <string.h>
633 #endif
634 #ifdef HAVE_STRINGS_H
635 # include <strings.h>
636 #endif
637 #ifdef HAVE_INTTYPES_H
638 # include <inttypes.h>
639 #endif
640 #ifdef HAVE_STDINT_H
641 # include <stdint.h>
642 #endif
643 #ifdef HAVE_UNISTD_H
644 # include <unistd.h>
645 #endif"
646
647 ac_header_list=
648 ac_func_list=
649 gt_needs=
650 ac_subst_vars='SHELL
651 PATH_SEPARATOR
652 PACKAGE_NAME
653 PACKAGE_TARNAME
654 PACKAGE_VERSION
655 PACKAGE_STRING
656 PACKAGE_BUGREPORT
657 exec_prefix
658 prefix
659 program_transform_name
660 bindir
661 sbindir
662 libexecdir
663 datarootdir
664 datadir
665 sysconfdir
666 sharedstatedir
667 localstatedir
668 includedir
669 oldincludedir
670 docdir
671 infodir
672 htmldir
673 dvidir
674 pdfdir
675 psdir
676 libdir
677 localedir
678 mandir
679 DEFS
680 ECHO_C
681 ECHO_N
682 ECHO_T
683 LIBS
684 build_alias
685 host_alias
686 target_alias
687 build
688 build_cpu
689 build_vendor
690 build_os
691 host
692 host_cpu
693 host_vendor
694 host_os
695 INSTALL_PROGRAM
696 INSTALL_SCRIPT
697 INSTALL_DATA
698 am__isrc
699 CYGPATH_W
700 PACKAGE
701 VERSION
702 ACLOCAL
703 AUTOCONF
704 AUTOMAKE
705 AUTOHEADER
706 MAKEINFO
707 install_sh
708 STRIP
709 INSTALL_STRIP_PROGRAM
710 mkdir_p
711 AWK
712 SET_MAKE
713 am__leading_dot
714 AMTAR
715 am__tar
716 am__untar
717 CC
718 CFLAGS
719 LDFLAGS
720 CPPFLAGS
721 ac_ct_CC
722 EXEEXT
723 OBJEXT
724 DEPDIR
725 am__include
726 am__quote
727 AMDEP_TRUE
728 AMDEP_FALSE
729 AMDEPBACKSLASH
730 CCDEPMODE
731 am__fastdepCC_TRUE
732 am__fastdepCC_FALSE
733 CPP
734 GREP
735 EGREP
736 RANLIB
737 LN_S
738 GL_COND_LIBTOOL_TRUE
739 GL_COND_LIBTOOL_FALSE
740 LIB_ACL
741 LIB_ACL_TRIVIAL
742 ALLOCA
743 ALLOCA_H
744 ARPA_INET_H
745 GNULIB_CHOWN
746 GNULIB_DUP2
747 GNULIB_FCHDIR
748 GNULIB_FTRUNCATE
749 GNULIB_GETCWD
750 GNULIB_GETLOGIN_R
751 GNULIB_READLINK
752 HAVE_DUP2
753 HAVE_FTRUNCATE
754 HAVE_READLINK
755 HAVE_DECL_GETLOGIN_R
756 REPLACE_CHOWN
757 REPLACE_FCHDIR
758 REPLACE_GETCWD
759 LIB_CLOCK_GETTIME
760 LIB_EACCESS
761 ABSOLUTE_DIRENT_H
762 DIRENT_H
763 ABSOLUTE_FCNTL_H
764 FCNTL_H
765 FNMATCH_H
766 ABSOLUTE_SYS_SOCKET_H
767 HAVE_SYS_SOCKET_H
768 HAVE_WINSOCK2_H
769 HAVE_WS2TCPIP_H
770 SYS_SOCKET_H
771 STDBOOL_H
772 HAVE__BOOL
773 YACC
774 YFLAGS
775 LIB_GETHRXTIME
776 NEED_SETGID
777 KMEM_GROUP
778 GETLOADAVG_LIBS
779 GETOPT_H
780 ABSOLUTE_SYS_TIME_H
781 HAVE_SYS_TIME_H
782 HAVE_STRUCT_TIMEVAL
783 REPLACE_GETTIMEOFDAY
784 SYS_TIME_H
785 LIBICONV
786 LTLIBICONV
787 HAVE_LONG_LONG_INT
788 HAVE_UNSIGNED_LONG_LONG_INT
789 HAVE_INTTYPES_H
790 HAVE_SYS_TYPES_H
791 ABSOLUTE_STDINT_H
792 HAVE_STDINT_H
793 HAVE_SYS_INTTYPES_H
794 HAVE_SYS_BITYPES_H
795 BITSIZEOF_PTRDIFF_T
796 BITSIZEOF_SIG_ATOMIC_T
797 BITSIZEOF_SIZE_T
798 BITSIZEOF_WCHAR_T
799 BITSIZEOF_WINT_T
800 HAVE_SIGNED_SIG_ATOMIC_T
801 HAVE_SIGNED_WCHAR_T
802 HAVE_SIGNED_WINT_T
803 PTRDIFF_T_SUFFIX
804 SIG_ATOMIC_T_SUFFIX
805 SIZE_T_SUFFIX
806 WCHAR_T_SUFFIX
807 WINT_T_SUFFIX
808 STDINT_H
809 PRI_MACROS_BROKEN
810 GNULIB_IMAXABS
811 GNULIB_IMAXDIV
812 GNULIB_STRTOIMAX
813 GNULIB_STRTOUMAX
814 HAVE_DECL_IMAXABS
815 HAVE_DECL_IMAXDIV
816 HAVE_DECL_STRTOIMAX
817 HAVE_DECL_STRTOUMAX
818 ABSOLUTE_INTTYPES_H
819 PRIPTR_PREFIX
820 INTTYPES_H
821 GLIBC21
822 GNULIB_MEMMEM
823 GNULIB_MEMPCPY
824 GNULIB_MEMRCHR
825 GNULIB_STPCPY
826 GNULIB_STPNCPY
827 GNULIB_STRCHRNUL
828 GNULIB_STRDUP
829 GNULIB_STRNDUP
830 GNULIB_STRNLEN
831 GNULIB_STRPBRK
832 GNULIB_STRSEP
833 GNULIB_STRCASESTR
834 GNULIB_STRTOK_R
835 GNULIB_MBSLEN
836 GNULIB_MBSCHR
837 GNULIB_MBSRCHR
838 GNULIB_MBSSTR
839 GNULIB_MBSCASECMP
840 GNULIB_MBSNCASECMP
841 GNULIB_MBSPCASECMP
842 GNULIB_MBSCASESTR
843 GNULIB_MBSCSPN
844 GNULIB_MBSPBRK
845 GNULIB_MBSSPN
846 GNULIB_MBSSEP
847 GNULIB_MBSTOK_R
848 HAVE_DECL_MEMMEM
849 HAVE_MEMPCPY
850 HAVE_DECL_MEMRCHR
851 HAVE_STPCPY
852 HAVE_STPNCPY
853 HAVE_STRCASECMP
854 HAVE_DECL_STRNCASECMP
855 HAVE_STRCHRNUL
856 HAVE_DECL_STRDUP
857 HAVE_STRNDUP
858 HAVE_DECL_STRNDUP
859 HAVE_DECL_STRNLEN
860 HAVE_STRPBRK
861 HAVE_STRSEP
862 HAVE_STRCASESTR
863 HAVE_DECL_STRTOK_R
864 GNULIB_GETSUBOPT
865 GNULIB_MKDTEMP
866 GNULIB_MKSTEMP
867 HAVE_GETSUBOPT
868 HAVE_MKDTEMP
869 REPLACE_MKSTEMP
870 REPLACE_LOCALTIME_R
871 REPLACE_NANOSLEEP
872 REPLACE_STRPTIME
873 REPLACE_TIMEGM
874 LIB_NANOSLEEP
875 ABSOLUTE_NETINET_IN_H
876 HAVE_NETINET_IN_H
877 NETINET_IN_H
878 PERL
879 DEFAULT_POSIX2_VERSION
880 GNULIB_FPRINTF_POSIX
881 GNULIB_PRINTF_POSIX
882 GNULIB_SNPRINTF
883 GNULIB_SPRINTF_POSIX
884 GNULIB_VFPRINTF_POSIX
885 GNULIB_VPRINTF_POSIX
886 GNULIB_VSNPRINTF
887 GNULIB_VSPRINTF_POSIX
888 REPLACE_FPRINTF
889 REPLACE_VFPRINTF
890 REPLACE_PRINTF
891 REPLACE_VPRINTF
892 REPLACE_SNPRINTF
893 HAVE_DECL_SNPRINTF
894 REPLACE_VSNPRINTF
895 HAVE_DECL_VSNPRINTF
896 REPLACE_SPRINTF
897 REPLACE_VSPRINTF
898 ABSOLUTE_STDIO_H
899 ABSOLUTE_STDLIB_H
900 ABSOLUTE_STRING_H
901 POW_LIB
902 ABSOLUTE_SYS_STAT_H
903 SYS_STAT_H
904 ABSOLUTE_TIME_H
905 TIME_H_DEFINES_STRUCT_TIMESPEC
906 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
907 HAVE_UNISTD_H
908 ABSOLUTE_UNISTD_H
909 EOVERFLOW
910 ABSOLUTE_WCHAR_H
911 WCHAR_H
912 HAVE_WINT_T
913 ABSOLUTE_WCTYPE_H
914 HAVE_WCTYPE_H
915 WCTYPE_H
916 LIBCOREUTILS_LIBDEPS
917 LIBCOREUTILS_LTLIBDEPS
918 GNU_PACKAGE
919 HELP2MAN
920 OPTIONAL_BIN_PROGS
921 MAN
922 DF_PROG
923 U
924 ANSI2KNR
925 LIBOBJS
926 LIB_FDATASYNC
927 SEQ_LIBM
928 LIB_CRYPT
929 USE_NLS
930 MSGFMT
931 GMSGFMT
932 MSGFMT_015
933 GMSGFMT_015
934 XGETTEXT
935 XGETTEXT_015
936 MSGMERGE
937 INTL_MACOSX_LIBS
938 INTLLIBS
939 LIBINTL
940 LTLIBINTL
941 POSUB
942 LTLIBOBJS
943 gl_LIBOBJS
944 gl_LTLIBOBJS'
945 ac_subst_files=''
946       ac_precious_vars='build_alias
947 host_alias
948 target_alias
949 CC
950 CFLAGS
951 LDFLAGS
952 LIBS
953 CPPFLAGS
954 CPP
955 YACC
956 YFLAGS
957 DEFAULT_POSIX2_VERSION'
958
959
960 # Initialize some variables set by options.
961 ac_init_help=
962 ac_init_version=false
963 # The variables have the same names as the options, with
964 # dashes changed to underlines.
965 cache_file=/dev/null
966 exec_prefix=NONE
967 no_create=
968 no_recursion=
969 prefix=NONE
970 program_prefix=NONE
971 program_suffix=NONE
972 program_transform_name=s,x,x,
973 silent=
974 site=
975 srcdir=
976 verbose=
977 x_includes=NONE
978 x_libraries=NONE
979
980 # Installation directory options.
981 # These are left unexpanded so users can "make install exec_prefix=/foo"
982 # and all the variables that are supposed to be based on exec_prefix
983 # by default will actually change.
984 # Use braces instead of parens because sh, perl, etc. also accept them.
985 # (The list follows the same order as the GNU Coding Standards.)
986 bindir='${exec_prefix}/bin'
987 sbindir='${exec_prefix}/sbin'
988 libexecdir='${exec_prefix}/libexec'
989 datarootdir='${prefix}/share'
990 datadir='${datarootdir}'
991 sysconfdir='${prefix}/etc'
992 sharedstatedir='${prefix}/com'
993 localstatedir='${prefix}/var'
994 includedir='${prefix}/include'
995 oldincludedir='/usr/include'
996 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
997 infodir='${datarootdir}/info'
998 htmldir='${docdir}'
999 dvidir='${docdir}'
1000 pdfdir='${docdir}'
1001 psdir='${docdir}'
1002 libdir='${exec_prefix}/lib'
1003 localedir='${datarootdir}/locale'
1004 mandir='${datarootdir}/man'
1005
1006 ac_prev=
1007 ac_dashdash=
1008 for ac_option
1009 do
1010   # If the previous option needs an argument, assign it.
1011   if test -n "$ac_prev"; then
1012     eval $ac_prev=\$ac_option
1013     ac_prev=
1014     continue
1015   fi
1016
1017   case $ac_option in
1018   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1019   *)    ac_optarg=yes ;;
1020   esac
1021
1022   # Accept the important Cygnus configure options, so we can diagnose typos.
1023
1024   case $ac_dashdash$ac_option in
1025   --)
1026     ac_dashdash=yes ;;
1027
1028   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1029     ac_prev=bindir ;;
1030   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1031     bindir=$ac_optarg ;;
1032
1033   -build | --build | --buil | --bui | --bu)
1034     ac_prev=build_alias ;;
1035   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1036     build_alias=$ac_optarg ;;
1037
1038   -cache-file | --cache-file | --cache-fil | --cache-fi \
1039   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1040     ac_prev=cache_file ;;
1041   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1042   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1043     cache_file=$ac_optarg ;;
1044
1045   --config-cache | -C)
1046     cache_file=config.cache ;;
1047
1048   -datadir | --datadir | --datadi | --datad)
1049     ac_prev=datadir ;;
1050   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1051     datadir=$ac_optarg ;;
1052
1053   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1054   | --dataroo | --dataro | --datar)
1055     ac_prev=datarootdir ;;
1056   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1057   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1058     datarootdir=$ac_optarg ;;
1059
1060   -disable-* | --disable-*)
1061     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062     # Reject names that are not valid shell variable names.
1063     expr "x$ac_useropt" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1064       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1065    { (exit 1); exit 1; }; }
1066     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-.]/_/g'`
1067     eval enable_$ac_useropt=no ;;
1068
1069   -docdir | --docdir | --docdi | --doc | --do)
1070     ac_prev=docdir ;;
1071   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1072     docdir=$ac_optarg ;;
1073
1074   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1075     ac_prev=dvidir ;;
1076   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1077     dvidir=$ac_optarg ;;
1078
1079   -enable-* | --enable-*)
1080     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1081     # Reject names that are not valid shell variable names.
1082     expr "x$ac_useropt" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1083       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1084    { (exit 1); exit 1; }; }
1085     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-.]/_/g'`
1086     eval enable_$ac_useropt=\$ac_optarg ;;
1087
1088   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090   | --exec | --exe | --ex)
1091     ac_prev=exec_prefix ;;
1092   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094   | --exec=* | --exe=* | --ex=*)
1095     exec_prefix=$ac_optarg ;;
1096
1097   -gas | --gas | --ga | --g)
1098     # Obsolete; use --with-gas.
1099     with_gas=yes ;;
1100
1101   -help | --help | --hel | --he | -h)
1102     ac_init_help=long ;;
1103   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104     ac_init_help=recursive ;;
1105   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106     ac_init_help=short ;;
1107
1108   -host | --host | --hos | --ho)
1109     ac_prev=host_alias ;;
1110   -host=* | --host=* | --hos=* | --ho=*)
1111     host_alias=$ac_optarg ;;
1112
1113   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114     ac_prev=htmldir ;;
1115   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116   | --ht=*)
1117     htmldir=$ac_optarg ;;
1118
1119   -includedir | --includedir | --includedi | --included | --include \
1120   | --includ | --inclu | --incl | --inc)
1121     ac_prev=includedir ;;
1122   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123   | --includ=* | --inclu=* | --incl=* | --inc=*)
1124     includedir=$ac_optarg ;;
1125
1126   -infodir | --infodir | --infodi | --infod | --info | --inf)
1127     ac_prev=infodir ;;
1128   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129     infodir=$ac_optarg ;;
1130
1131   -libdir | --libdir | --libdi | --libd)
1132     ac_prev=libdir ;;
1133   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134     libdir=$ac_optarg ;;
1135
1136   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137   | --libexe | --libex | --libe)
1138     ac_prev=libexecdir ;;
1139   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140   | --libexe=* | --libex=* | --libe=*)
1141     libexecdir=$ac_optarg ;;
1142
1143   -localedir | --localedir | --localedi | --localed | --locale)
1144     ac_prev=localedir ;;
1145   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146     localedir=$ac_optarg ;;
1147
1148   -localstatedir | --localstatedir | --localstatedi | --localstated \
1149   | --localstate | --localstat | --localsta | --localst | --locals)
1150     ac_prev=localstatedir ;;
1151   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1152   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1153     localstatedir=$ac_optarg ;;
1154
1155   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156     ac_prev=mandir ;;
1157   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158     mandir=$ac_optarg ;;
1159
1160   -nfp | --nfp | --nf)
1161     # Obsolete; use --without-fp.
1162     with_fp=no ;;
1163
1164   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165   | --no-cr | --no-c | -n)
1166     no_create=yes ;;
1167
1168   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170     no_recursion=yes ;;
1171
1172   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174   | --oldin | --oldi | --old | --ol | --o)
1175     ac_prev=oldincludedir ;;
1176   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179     oldincludedir=$ac_optarg ;;
1180
1181   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182     ac_prev=prefix ;;
1183   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184     prefix=$ac_optarg ;;
1185
1186   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187   | --program-pre | --program-pr | --program-p)
1188     ac_prev=program_prefix ;;
1189   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191     program_prefix=$ac_optarg ;;
1192
1193   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194   | --program-suf | --program-su | --program-s)
1195     ac_prev=program_suffix ;;
1196   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198     program_suffix=$ac_optarg ;;
1199
1200   -program-transform-name | --program-transform-name \
1201   | --program-transform-nam | --program-transform-na \
1202   | --program-transform-n | --program-transform- \
1203   | --program-transform | --program-transfor \
1204   | --program-transfo | --program-transf \
1205   | --program-trans | --program-tran \
1206   | --progr-tra | --program-tr | --program-t)
1207     ac_prev=program_transform_name ;;
1208   -program-transform-name=* | --program-transform-name=* \
1209   | --program-transform-nam=* | --program-transform-na=* \
1210   | --program-transform-n=* | --program-transform-=* \
1211   | --program-transform=* | --program-transfor=* \
1212   | --program-transfo=* | --program-transf=* \
1213   | --program-trans=* | --program-tran=* \
1214   | --progr-tra=* | --program-tr=* | --program-t=*)
1215     program_transform_name=$ac_optarg ;;
1216
1217   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218     ac_prev=pdfdir ;;
1219   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220     pdfdir=$ac_optarg ;;
1221
1222   -psdir | --psdir | --psdi | --psd | --ps)
1223     ac_prev=psdir ;;
1224   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225     psdir=$ac_optarg ;;
1226
1227   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228   | -silent | --silent | --silen | --sile | --sil)
1229     silent=yes ;;
1230
1231   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232     ac_prev=sbindir ;;
1233   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234   | --sbi=* | --sb=*)
1235     sbindir=$ac_optarg ;;
1236
1237   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239   | --sharedst | --shareds | --shared | --share | --shar \
1240   | --sha | --sh)
1241     ac_prev=sharedstatedir ;;
1242   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245   | --sha=* | --sh=*)
1246     sharedstatedir=$ac_optarg ;;
1247
1248   -site | --site | --sit)
1249     ac_prev=site ;;
1250   -site=* | --site=* | --sit=*)
1251     site=$ac_optarg ;;
1252
1253   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254     ac_prev=srcdir ;;
1255   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256     srcdir=$ac_optarg ;;
1257
1258   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259   | --syscon | --sysco | --sysc | --sys | --sy)
1260     ac_prev=sysconfdir ;;
1261   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263     sysconfdir=$ac_optarg ;;
1264
1265   -target | --target | --targe | --targ | --tar | --ta | --t)
1266     ac_prev=target_alias ;;
1267   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268     target_alias=$ac_optarg ;;
1269
1270   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271     verbose=yes ;;
1272
1273   -version | --version | --versio | --versi | --vers | -V)
1274     ac_init_version=: ;;
1275
1276   -with-* | --with-*)
1277     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278     # Reject names that are not valid shell variable names.
1279     expr "x$ac_useropt" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1281    { (exit 1); exit 1; }; }
1282     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-.]/_/g'`
1283     eval with_$ac_useropt=\$ac_optarg ;;
1284
1285   -without-* | --without-*)
1286     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287     # Reject names that are not valid shell variable names.
1288     expr "x$ac_useropt" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1289       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1290    { (exit 1); exit 1; }; }
1291     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-.]/_/g'`
1292     eval with_$ac_useropt=no ;;
1293
1294   --x)
1295     # Obsolete; use --with-x.
1296     with_x=yes ;;
1297
1298   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1299   | --x-incl | --x-inc | --x-in | --x-i)
1300     ac_prev=x_includes ;;
1301   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1302   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1303     x_includes=$ac_optarg ;;
1304
1305   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1306   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1307     ac_prev=x_libraries ;;
1308   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1309   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1310     x_libraries=$ac_optarg ;;
1311
1312   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1313 Try \`$0 --help' for more information." >&2
1314    { (exit 1); exit 1; }; }
1315     ;;
1316
1317   *=*)
1318     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1319     # Reject names that are not valid shell variable names.
1320     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1321       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1322    { (exit 1); exit 1; }; }
1323     eval $ac_envvar=\$ac_optarg
1324     export $ac_envvar ;;
1325
1326   *)
1327     # FIXME: should be removed in autoconf 3.0.
1328     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1329     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1330       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1331     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1332     ;;
1333
1334   esac
1335 done
1336
1337 if test -n "$ac_prev"; then
1338   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1339   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1340    { (exit 1); exit 1; }; }
1341 fi
1342
1343 # Be sure to have absolute directory names.
1344 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345                 datadir sysconfdir sharedstatedir localstatedir includedir \
1346                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347                 libdir localedir mandir
1348 do
1349   eval ac_val=\$$ac_var
1350   case $ac_val in
1351     [\\/$]* | ?:[\\/]* )  continue;;
1352     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1353   esac
1354   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1355    { (exit 1); exit 1; }; }
1356 done
1357
1358 # There might be people who depend on the old broken behavior: `$host'
1359 # used to hold the argument of --host etc.
1360 # FIXME: To remove some day.
1361 build=$build_alias
1362 host=$host_alias
1363 target=$target_alias
1364
1365 # FIXME: To remove some day.
1366 if test "x$host_alias" != x; then
1367   if test "x$build_alias" = x; then
1368     cross_compiling=maybe
1369     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1370     If a cross compiler is detected then cross compile mode will be used." >&2
1371   elif test "x$build_alias" != "x$host_alias"; then
1372     cross_compiling=yes
1373   fi
1374 fi
1375
1376 ac_tool_prefix=
1377 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1378
1379 test "$silent" = yes && exec 6>/dev/null
1380
1381
1382 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1383 ac_ls_di=`ls -di .` &&
1384 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1385   { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1386    { (exit 1); exit 1; }; }
1387 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1388   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1389    { (exit 1); exit 1; }; }
1390
1391
1392 # Find the source files, if location was not specified.
1393 if test -z "$srcdir"; then
1394   ac_srcdir_defaulted=yes
1395   # Try the directory containing this script, then the parent directory.
1396   ac_confdir=`$as_dirname -- "$0" ||
1397 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398          X"$0" : 'X\(//\)[^/]' \| \
1399          X"$0" : 'X\(//\)$' \| \
1400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1401 $as_echo X"$0" |
1402     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403             s//\1/
1404             q
1405           }
1406           /^X\(\/\/\)[^/].*/{
1407             s//\1/
1408             q
1409           }
1410           /^X\(\/\/\)$/{
1411             s//\1/
1412             q
1413           }
1414           /^X\(\/\).*/{
1415             s//\1/
1416             q
1417           }
1418           s/.*/./; q'`
1419   srcdir=$ac_confdir
1420   if test ! -r "$srcdir/$ac_unique_file"; then
1421     srcdir=..
1422   fi
1423 else
1424   ac_srcdir_defaulted=no
1425 fi
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1429    { (exit 1); exit 1; }; }
1430 fi
1431 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432 ac_abs_confdir=`(
1433         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1434    { (exit 1); exit 1; }; }
1435         pwd)`
1436 # When building in place, set srcdir=.
1437 if test "$ac_abs_confdir" = "$ac_pwd"; then
1438   srcdir=.
1439 fi
1440 # Remove unnecessary trailing slashes from srcdir.
1441 # Double slashes in file names in object file debugging info
1442 # mess up M-x gdb in Emacs.
1443 case $srcdir in
1444 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445 esac
1446 for ac_var in $ac_precious_vars; do
1447   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1448   eval ac_env_${ac_var}_value=\$${ac_var}
1449   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1450   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1451 done
1452
1453 #
1454 # Report the --help message.
1455 #
1456 if test "$ac_init_help" = "long"; then
1457   # Omit some internal or obsolete options to make the list less imposing.
1458   # This message is too long to be a string in the A/UX 3.1 sh.
1459   cat <<_ACEOF
1460 \`configure' configures GNU coreutils 6.9 to adapt to many kinds of systems.
1461
1462 Usage: $0 [OPTION]... [VAR=VALUE]...
1463
1464 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465 VAR=VALUE.  See below for descriptions of some of the useful variables.
1466
1467 Defaults for the options are specified in brackets.
1468
1469 Configuration:
1470   -h, --help              display this help and exit
1471       --help=short        display options specific to this package
1472       --help=recursive    display the short help of all the included packages
1473   -V, --version           display version information and exit
1474   -q, --quiet, --silent   do not print \`checking...' messages
1475       --cache-file=FILE   cache test results in FILE [disabled]
1476   -C, --config-cache      alias for \`--cache-file=config.cache'
1477   -n, --no-create         do not create output files
1478       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1479
1480 Installation directories:
1481   --prefix=PREFIX         install architecture-independent files in PREFIX
1482                           [$ac_default_prefix]
1483   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1484                           [PREFIX]
1485
1486 By default, \`make install' will install all the files in
1487 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1488 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489 for instance \`--prefix=\$HOME'.
1490
1491 For better control, use the options below.
1492
1493 Fine tuning of the installation directories:
1494   --bindir=DIR           user executables [EPREFIX/bin]
1495   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1496   --libexecdir=DIR       program executables [EPREFIX/libexec]
1497   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1498   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1499   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1500   --libdir=DIR           object code libraries [EPREFIX/lib]
1501   --includedir=DIR       C header files [PREFIX/include]
1502   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1503   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1504   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1505   --infodir=DIR          info documentation [DATAROOTDIR/info]
1506   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1507   --mandir=DIR           man documentation [DATAROOTDIR/man]
1508   --docdir=DIR           documentation root [DATAROOTDIR/doc/coreutils]
1509   --htmldir=DIR          html documentation [DOCDIR]
1510   --dvidir=DIR           dvi documentation [DOCDIR]
1511   --pdfdir=DIR           pdf documentation [DOCDIR]
1512   --psdir=DIR            ps documentation [DOCDIR]
1513 _ACEOF
1514
1515   cat <<\_ACEOF
1516
1517 Program names:
1518   --program-prefix=PREFIX            prepend PREFIX to installed program names
1519   --program-suffix=SUFFIX            append SUFFIX to installed program names
1520   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1521
1522 System types:
1523   --build=BUILD     configure for building on BUILD [guessed]
1524   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1525 _ACEOF
1526 fi
1527
1528 if test -n "$ac_init_help"; then
1529   case $ac_init_help in
1530      short | recursive ) echo "Configuration of GNU coreutils 6.9:";;
1531    esac
1532   cat <<\_ACEOF
1533
1534 Optional Features:
1535   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1536   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1537   --disable-dependency-tracking  speeds up one-time build
1538   --enable-dependency-tracking   do not reject slow dependency extractors
1539   --disable-assert        turn off assertions
1540   --disable-rpath         do not hardcode runtime library paths
1541   --disable-largefile     omit support for large files
1542   --disable-nls           do not use Native Language Support
1543
1544 Optional Packages:
1545   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1546   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1547   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1548   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1549   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1550   --without-included-regex
1551                           don't compile regex; this is the default on 32-bit
1552                           systems with recent-enough versions of the GNU C
1553                           Library (use with caution on other systems). On
1554                           systems with 64-bit ptrdiff_t and 32-bit int,
1555                           --with-included-regex is the default, in case regex
1556                           functions operate on very long strings (>2GB)
1557   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1558   --without-libintl-prefix     don't search for libintl in includedir and libdir
1559
1560 Some influential environment variables:
1561   CC          C compiler command
1562   CFLAGS      C compiler flags
1563   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1564               nonstandard directory <lib dir>
1565   LIBS        libraries to pass to the linker, e.g. -l<library>
1566   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1567               you have headers in a nonstandard directory <include dir>
1568   CPP         C preprocessor
1569   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1570               `bison -y'. Values other than `bison -y' will most likely break
1571               on most systems.
1572   YFLAGS      YFLAGS contains the list arguments that will be passed by
1573               default to Bison. This script will default YFLAGS to the empty
1574               string to avoid a default value of `-d' given by some make
1575               applications.
1576   DEFAULT_POSIX2_VERSION
1577               POSIX version to default to; see 'config.hin'.
1578
1579 Use these variables to override the choices made by `configure' or to help
1580 it to find libraries and programs with nonstandard names/locations.
1581
1582 Report bugs to <bug-coreutils@gnu.org>.
1583 _ACEOF
1584 ac_status=$?
1585 fi
1586
1587 if test "$ac_init_help" = "recursive"; then
1588   # If there are subdirs, report their specific --help.
1589   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1590     test -d "$ac_dir" || continue
1591     ac_builddir=.
1592
1593 case "$ac_dir" in
1594 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595 *)
1596   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's,^\.[\\/],,'`
1597   # A ".." for each directory in $ac_dir_suffix.
1598   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1599   case $ac_top_builddir_sub in
1600   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1602   esac ;;
1603 esac
1604 ac_abs_top_builddir=$ac_pwd
1605 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1606 # for backward compatibility:
1607 ac_top_builddir=$ac_top_build_prefix
1608
1609 case $srcdir in
1610   .)  # We are building in place.
1611     ac_srcdir=.
1612     ac_top_srcdir=$ac_top_builddir_sub
1613     ac_abs_top_srcdir=$ac_pwd ;;
1614   [\\/]* | ?:[\\/]* )  # Absolute name.
1615     ac_srcdir=$srcdir$ac_dir_suffix;
1616     ac_top_srcdir=$srcdir
1617     ac_abs_top_srcdir=$srcdir ;;
1618   *) # Relative name.
1619     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1620     ac_top_srcdir=$ac_top_build_prefix$srcdir
1621     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1622 esac
1623 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1624
1625     cd "$ac_dir" || { ac_status=$?; continue; }
1626     # Check for guested configure.
1627     if test -f "$ac_srcdir/configure.gnu"; then
1628       echo &&
1629       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1630     elif test -f "$ac_srcdir/configure"; then
1631       echo &&
1632       $SHELL "$ac_srcdir/configure" --help=recursive
1633     else
1634       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1635     fi || ac_status=$?
1636     cd "$ac_pwd" || { ac_status=$?; break; }
1637   done
1638 fi
1639
1640 test -n "$ac_init_help" && exit $ac_status
1641 if $ac_init_version; then
1642   cat <<\_ACEOF
1643 GNU coreutils configure 6.9
1644 generated by GNU Autoconf 2.61a
1645
1646 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1647 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1648 This configure script is free software; the Free Software Foundation
1649 gives unlimited permission to copy, distribute and modify it.
1650 _ACEOF
1651   exit
1652 fi
1653 cat >config.log <<_ACEOF
1654 This file contains any messages produced by compilers while
1655 running configure, to aid debugging if configure makes a mistake.
1656
1657 It was created by GNU coreutils $as_me 6.9, which was
1658 generated by GNU Autoconf 2.61a.  Invocation command line was
1659
1660   $ $0 $@
1661
1662 _ACEOF
1663 exec 5>>config.log
1664 {
1665 cat <<_ASUNAME
1666 ## --------- ##
1667 ## Platform. ##
1668 ## --------- ##
1669
1670 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1671 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1672 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1673 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1674 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1675
1676 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1677 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1678
1679 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1680 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1681 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1682 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1683 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1684 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1685 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1686
1687 _ASUNAME
1688
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690 for as_dir in $PATH
1691 do
1692   IFS=$as_save_IFS
1693   test -z "$as_dir" && as_dir=.
1694   $as_echo "PATH: $as_dir"
1695 done
1696 IFS=$as_save_IFS
1697
1698 } >&5
1699
1700 cat >&5 <<_ACEOF
1701
1702
1703 ## ----------- ##
1704 ## Core tests. ##
1705 ## ----------- ##
1706
1707 _ACEOF
1708
1709
1710 # Keep a trace of the command line.
1711 # Strip out --no-create and --no-recursion so they do not pile up.
1712 # Strip out --silent because we don't want to record it for future runs.
1713 # Also quote any args containing shell meta-characters.
1714 # Make two passes to allow for proper duplicate-argument suppression.
1715 ac_configure_args=
1716 ac_configure_args0=
1717 ac_configure_args1=
1718 ac_must_keep_next=false
1719 for ac_pass in 1 2
1720 do
1721   for ac_arg
1722   do
1723     case $ac_arg in
1724     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1725     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1726     | -silent | --silent | --silen | --sile | --sil)
1727       continue ;;
1728     *\'*)
1729       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1730     esac
1731     case $ac_pass in
1732     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1733     2)
1734       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1735       if test $ac_must_keep_next = true; then
1736         ac_must_keep_next=false # Got value, back to normal.
1737       else
1738         case $ac_arg in
1739           *=* | --config-cache | -C | -disable-* | --disable-* \
1740           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1741           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1742           | -with-* | --with-* | -without-* | --without-* | --x)
1743             case "$ac_configure_args0 " in
1744               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1745             esac
1746             ;;
1747           -* ) ac_must_keep_next=true ;;
1748         esac
1749       fi
1750       ac_configure_args="$ac_configure_args '$ac_arg'"
1751       ;;
1752     esac
1753   done
1754 done
1755 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1756 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1757
1758 # When interrupted or exit'd, cleanup temporary files, and complete
1759 # config.log.  We remove comments because anyway the quotes in there
1760 # would cause problems or look ugly.
1761 # WARNING: Use '\'' to represent an apostrophe within the trap.
1762 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1763 trap 'exit_status=$?
1764   # Save into config.log some information that might help in debugging.
1765   {
1766     echo
1767
1768     cat <<\_ASBOX
1769 ## ---------------- ##
1770 ## Cache variables. ##
1771 ## ---------------- ##
1772 _ASBOX
1773     echo
1774     # The following way of writing the cache mishandles newlines in values,
1775 (
1776   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1777     eval ac_val=\$$ac_var
1778     case $ac_val in #(
1779     *${as_nl}*)
1780       case $ac_var in #(
1781       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1782 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1783       esac
1784       case $ac_var in #(
1785       _ | IFS | as_nl) ;; #(
1786       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1787       *) $as_unset $ac_var ;;
1788       esac ;;
1789     esac
1790   done
1791   (set) 2>&1 |
1792     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1793     *${as_nl}ac_space=\ *)
1794       sed -n \
1795         "s/'\''/'\''\\\\'\'''\''/g;
1796           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1797       ;; #(
1798     *)
1799       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1800       ;;
1801     esac |
1802     sort
1803 )
1804     echo
1805
1806     cat <<\_ASBOX
1807 ## ----------------- ##
1808 ## Output variables. ##
1809 ## ----------------- ##
1810 _ASBOX
1811     echo
1812     for ac_var in $ac_subst_vars
1813     do
1814       eval ac_val=\$$ac_var
1815       case $ac_val in
1816       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1817       esac
1818       $as_echo "$ac_var='\''$ac_val'\''"
1819     done | sort
1820     echo
1821
1822     if test -n "$ac_subst_files"; then
1823       cat <<\_ASBOX
1824 ## ------------------- ##
1825 ## File substitutions. ##
1826 ## ------------------- ##
1827 _ASBOX
1828       echo
1829       for ac_var in $ac_subst_files
1830       do
1831         eval ac_val=\$$ac_var
1832         case $ac_val in
1833         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1834         esac
1835         $as_echo "$ac_var='\''$ac_val'\''"
1836       done | sort
1837       echo
1838     fi
1839
1840     if test -s confdefs.h; then
1841       cat <<\_ASBOX
1842 ## ----------- ##
1843 ## confdefs.h. ##
1844 ## ----------- ##
1845 _ASBOX
1846       echo
1847       cat confdefs.h
1848       echo
1849     fi
1850     test "$ac_signal" != 0 &&
1851       $as_echo "$as_me: caught signal $ac_signal"
1852     $as_echo "$as_me: exit $exit_status"
1853   } >&5
1854   rm -f core *.core core.conftest.* &&
1855     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1856     exit $exit_status
1857 ' 0
1858 for ac_signal in 1 2 13 15; do
1859   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1860 done
1861 ac_signal=0
1862
1863 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1864 rm -f -r conftest* confdefs.h
1865
1866 # Predefined preprocessor variables.
1867
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_NAME "$PACKAGE_NAME"
1870 _ACEOF
1871
1872
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1875 _ACEOF
1876
1877
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1880 _ACEOF
1881
1882
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_STRING "$PACKAGE_STRING"
1885 _ACEOF
1886
1887
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1890 _ACEOF
1891
1892
1893 # Let the site file select an alternate cache file if it wants to.
1894 # Prefer explicitly selected file to automatically selected ones.
1895 if test -n "$CONFIG_SITE"; then
1896   set x "$CONFIG_SITE"
1897 elif test "x$prefix" != xNONE; then
1898   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1899 else
1900   set x "$ac_default_prefix/share/config.site" \
1901         "$ac_default_prefix/etc/config.site"
1902 fi
1903 shift
1904 for ac_site_file
1905 do
1906   if test -r "$ac_site_file"; then
1907     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1908 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1909     sed 's/^/| /' "$ac_site_file" >&5
1910     . "$ac_site_file"
1911   fi
1912 done
1913
1914 if test -r "$cache_file"; then
1915   # Some versions of bash will fail to source /dev/null (special
1916   # files actually), so we avoid doing that.
1917   if test -f "$cache_file"; then
1918     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1919 $as_echo "$as_me: loading cache $cache_file" >&6;}
1920     case $cache_file in
1921       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1922       *)                      . "./$cache_file";;
1923     esac
1924   fi
1925 else
1926   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1927 $as_echo "$as_me: creating cache $cache_file" >&6;}
1928   >$cache_file
1929 fi
1930
1931 ac_header_list="$ac_header_list arpa/inet.h"
1932 ac_func_list="$ac_func_list pathconf"
1933 ac_header_list="$ac_header_list sys/param.h"
1934 ac_func_list="$ac_func_list canonicalize_file_name"
1935 ac_func_list="$ac_func_list resolvepath"
1936 ac_func_list="$ac_func_list dup2"
1937 ac_header_list="$ac_header_list libgen.h"
1938 ac_func_list="$ac_func_list fchdir"
1939 ac_header_list="$ac_header_list dirent.h"
1940 ac_header_list="$ac_header_list fcntl.h"
1941 ac_func_list="$ac_func_list mempcpy"
1942 ac_func_list="$ac_func_list btowc"
1943 ac_func_list="$ac_func_list iswctype"
1944 ac_func_list="$ac_func_list mbsrtowcs"
1945 ac_func_list="$ac_func_list wmemchr"
1946 ac_func_list="$ac_func_list wmemcpy"
1947 ac_func_list="$ac_func_list wmempcpy"
1948 ac_header_list="$ac_header_list wctype.h"
1949 ac_header_list="$ac_header_list stdio_ext.h"
1950 ac_header_list="$ac_header_list sys/vfs.h"
1951 ac_header_list="$ac_header_list sys/fs_types.h"
1952 ac_func_list="$ac_func_list ftruncate"
1953 ac_func_list="$ac_func_list lchmod"
1954 ac_func_list="$ac_func_list fdopendir"
1955 ac_header_list="$ac_header_list sys/socket.h"
1956 ac_header_list="$ac_header_list netinet/in.h"
1957 ac_header_list="$ac_header_list netdb.h"
1958 ac_func_list="$ac_func_list microuptime"
1959 ac_func_list="$ac_func_list nanouptime"
1960 ac_header_list="$ac_header_list termios.h"
1961 ac_func_list="$ac_func_list __fsetlocking"
1962 ac_func_list="$ac_func_list tcgetattr"
1963 ac_func_list="$ac_func_list tcsetattr"
1964 ac_func_list="$ac_func_list gettimeofday"
1965 ac_func_list="$ac_func_list nanotime"
1966 ac_header_list="$ac_header_list sys/time.h"
1967 ac_header_list="$ac_header_list stdint.h"
1968 ac_header_list="$ac_header_list inttypes.h"
1969 ac_header_list="$ac_header_list wchar.h"
1970 ac_func_list="$ac_func_list isascii"
1971 ac_func_list="$ac_func_list mbsinit"
1972 ac_header_list="$ac_header_list unistd.h"
1973 ac_func_list="$ac_func_list fchmod"
1974 ac_func_list="$ac_func_list alarm"
1975 ac_header_list="$ac_header_list sys/statvfs.h"
1976 ac_func_list="$ac_func_list siginterrupt"
1977 ac_header_list="$ac_header_list sys/select.h"
1978 ac_func_list="$ac_func_list readlink"
1979 ac_header_list="$ac_header_list utmp.h"
1980 ac_header_list="$ac_header_list utmpx.h"
1981 ac_func_list="$ac_func_list utmpname"
1982 ac_func_list="$ac_func_list utmpxname"
1983 ac_header_list="$ac_header_list locale.h"
1984 ac_func_list="$ac_func_list mbrtowc"
1985 ac_func_list="$ac_func_list wcrtomb"
1986 ac_func_list="$ac_func_list wcscoll"
1987 ac_func_list="$ac_func_list setenv"
1988 ac_func_list="$ac_func_list settimeofday"
1989 ac_func_list="$ac_func_list stime"
1990 ac_header_list="$ac_header_list stdio.h"
1991 ac_header_list="$ac_header_list stdlib.h"
1992 ac_func_list="$ac_func_list mblen"
1993 ac_func_list="$ac_func_list mbrlen"
1994 ac_func_list="$ac_func_list tzset"
1995 ac_header_list="$ac_header_list string.h"
1996 ac_func_list="$ac_func_list lstat"
1997 ac_header_list="$ac_header_list sys/stat.h"
1998 ac_header_list="$ac_header_list time.h"
1999 ac_func_list="$ac_func_list pipe"
2000 ac_header_list="$ac_header_list priv.h"
2001 ac_header_list="$ac_header_list utime.h"
2002 ac_func_list="$ac_func_list futimes"
2003 ac_func_list="$ac_func_list futimesat"
2004 ac_func_list="$ac_func_list vasnprintf"
2005 ac_func_list="$ac_func_list iswcntrl"
2006 ac_func_list="$ac_func_list wcwidth"
2007 ac_header_list="$ac_header_list hurd.h"
2008 ac_header_list="$ac_header_list paths.h"
2009 ac_header_list="$ac_header_list stropts.h"
2010 ac_header_list="$ac_header_list sys/ioctl.h"
2011 ac_header_list="$ac_header_list sys/resource.h"
2012 ac_header_list="$ac_header_list sys/systeminfo.h"
2013 ac_header_list="$ac_header_list sys/wait.h"
2014 ac_header_list="$ac_header_list syslog.h"
2015 ac_header_list="$ac_header_list grp.h"
2016 ac_header_list="$ac_header_list pwd.h"
2017 ac_func_list="$ac_func_list strxfrm"
2018 ac_func_list="$ac_func_list directio"
2019 ac_func_list="$ac_func_list endgrent"
2020 ac_func_list="$ac_func_list endpwent"
2021 ac_func_list="$ac_func_list fchown"
2022 ac_func_list="$ac_func_list iswspace"
2023 ac_func_list="$ac_func_list mkfifo"
2024 ac_func_list="$ac_func_list setgroups"
2025 ac_func_list="$ac_func_list sethostname"
2026 ac_func_list="$ac_func_list sync"
2027 ac_func_list="$ac_func_list sysctl"
2028 ac_func_list="$ac_func_list sysinfo"
2029 ac_func_list="$ac_func_list tcgetpgrp"
2030 ac_header_list="$ac_header_list OS.h"
2031 gt_needs="$gt_needs need-formatstring-macros"
2032 # Check that the precious variables saved in the cache have kept the same
2033 # value.
2034 ac_cache_corrupted=false
2035 for ac_var in $ac_precious_vars; do
2036   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2037   eval ac_new_set=\$ac_env_${ac_var}_set
2038   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2039   eval ac_new_val=\$ac_env_${ac_var}_value
2040   case $ac_old_set,$ac_new_set in
2041     set,)
2042       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2043 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2044       ac_cache_corrupted=: ;;
2045     ,set)
2046       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2047 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2048       ac_cache_corrupted=: ;;
2049     ,);;
2050     *)
2051       if test "x$ac_old_val" != "x$ac_new_val"; then
2052         { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2053 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2054         { $as_echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2055 $as_echo "$as_me:   former value:  $ac_old_val" >&2;}
2056         { $as_echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2057 $as_echo "$as_me:   current value: $ac_new_val" >&2;}
2058         ac_cache_corrupted=:
2059       fi;;
2060   esac
2061   # Pass precious variables to config.status.
2062   if test "$ac_new_set" = set; then
2063     case $ac_new_val in
2064     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2065     *) ac_arg=$ac_var=$ac_new_val ;;
2066     esac
2067     case " $ac_configure_args " in
2068       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2069       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2070     esac
2071   fi
2072 done
2073 if $ac_cache_corrupted; then
2074   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2075 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2076   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2077 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2078    { (exit 1); exit 1; }; }
2079 fi
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105 ac_ext=c
2106 ac_cpp='$CPP $CPPFLAGS'
2107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2110
2111
2112
2113
2114 ac_aux_dir=
2115 for ac_dir in build-aux "$srcdir"/build-aux; do
2116   if test -f "$ac_dir/install-sh"; then
2117     ac_aux_dir=$ac_dir
2118     ac_install_sh="$ac_aux_dir/install-sh -c"
2119     break
2120   elif test -f "$ac_dir/install.sh"; then
2121     ac_aux_dir=$ac_dir
2122     ac_install_sh="$ac_aux_dir/install.sh -c"
2123     break
2124   elif test -f "$ac_dir/shtool"; then
2125     ac_aux_dir=$ac_dir
2126     ac_install_sh="$ac_aux_dir/shtool install -c"
2127     break
2128   fi
2129 done
2130 if test -z "$ac_aux_dir"; then
2131   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2132 $as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2133    { (exit 1); exit 1; }; }
2134 fi
2135
2136 # These three variables are undocumented and unsupported,
2137 # and are intended to be withdrawn in a future Autoconf release.
2138 # They can cause serious problems if a builder's source tree is in a directory
2139 # whose full name contains unusual characters.
2140 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2141 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2142 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2143
2144
2145 ac_config_headers="$ac_config_headers lib/config.h:lib/config.hin"
2146
2147
2148 # Make sure we can run config.sub.
2149 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2150   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2151 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2152    { (exit 1); exit 1; }; }
2153
2154 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2155 $as_echo_n "checking build system type... " >&6; }
2156 if test "${ac_cv_build+set}" = set; then
2157   $as_echo_n "(cached) " >&6
2158 else
2159   ac_build_alias=$build_alias
2160 test "x$ac_build_alias" = x &&
2161   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2162 test "x$ac_build_alias" = x &&
2163   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2164 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2165    { (exit 1); exit 1; }; }
2166 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2167   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2168 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2169    { (exit 1); exit 1; }; }
2170
2171 fi
2172 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2173 $as_echo "$ac_cv_build" >&6; }
2174 case $ac_cv_build in
2175 *-*-*) ;;
2176 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2177 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2178    { (exit 1); exit 1; }; };;
2179 esac
2180 build=$ac_cv_build
2181 ac_save_IFS=$IFS; IFS='-'
2182 set x $ac_cv_build
2183 shift
2184 build_cpu=$1
2185 build_vendor=$2
2186 shift; shift
2187 # Remember, the first character of IFS is used to create $*,
2188 # except with old shells:
2189 build_os=$*
2190 IFS=$ac_save_IFS
2191 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2192
2193
2194 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2195 $as_echo_n "checking host system type... " >&6; }
2196 if test "${ac_cv_host+set}" = set; then
2197   $as_echo_n "(cached) " >&6
2198 else
2199   if test "x$host_alias" = x; then
2200   ac_cv_host=$ac_cv_build
2201 else
2202   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2203     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2204 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2205    { (exit 1); exit 1; }; }
2206 fi
2207
2208 fi
2209 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2210 $as_echo "$ac_cv_host" >&6; }
2211 case $ac_cv_host in
2212 *-*-*) ;;
2213 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2214 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2215    { (exit 1); exit 1; }; };;
2216 esac
2217 host=$ac_cv_host
2218 ac_save_IFS=$IFS; IFS='-'
2219 set x $ac_cv_host
2220 shift
2221 host_cpu=$1
2222 host_vendor=$2
2223 shift; shift
2224 # Remember, the first character of IFS is used to create $*,
2225 # except with old shells:
2226 host_os=$*
2227 IFS=$ac_save_IFS
2228 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2229
2230
2231
2232
2233
2234
2235         { $as_echo "$as_me:$LINENO: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
2236 $as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
2237         { $as_echo "$as_me:$LINENO: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
2238 $as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
2239         hostname=`hostname`
2240         if test "$hostname"; then
2241            { $as_echo "$as_me:$LINENO: autobuild hostname... $hostname" >&5
2242 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
2243         fi
2244
2245         date=`date +%Y%m%d-%H%M%S`
2246         if test "$?" != 0; then
2247            date=`date`
2248         fi
2249         if test "$date"; then
2250            { $as_echo "$as_me:$LINENO: autobuild timestamp... $date" >&5
2251 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
2252         fi
2253
2254 am__api_version='1.10'
2255
2256 # Find a good install program.  We prefer a C program (faster),
2257 # so one script is as good as another.  But avoid the broken or
2258 # incompatible versions:
2259 # SysV /etc/install, /usr/sbin/install
2260 # SunOS /usr/etc/install
2261 # IRIX /sbin/install
2262 # AIX /bin/install
2263 # AmigaOS /C/install, which installs bootblocks on floppy discs
2264 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2265 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2266 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2267 # OS/2's system install, which has a completely different semantic
2268 # ./install, which can be erroneously created by make from ./install.sh.
2269 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2270 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2271 if test -z "$INSTALL"; then
2272 if test "${ac_cv_path_install+set}" = set; then
2273   $as_echo_n "(cached) " >&6
2274 else
2275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2277 do
2278   IFS=$as_save_IFS
2279   test -z "$as_dir" && as_dir=.
2280   # Account for people who put trailing slashes in PATH elements.
2281 case $as_dir/ in
2282   ./ | .// | /cC/* | \
2283   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2284   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2285   /usr/ucb/* ) ;;
2286   *)
2287     # OSF1 and SCO ODT 3.0 have their own names for install.
2288     # Don't use installbsd from OSF since it installs stuff as root
2289     # by default.
2290     for ac_prog in ginstall scoinst install; do
2291       for ac_exec_ext in '' $ac_executable_extensions; do
2292         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2293           if test $ac_prog = install &&
2294             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2295             # AIX install.  It has an incompatible calling convention.
2296             :
2297           elif test $ac_prog = install &&
2298             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2299             # program-specific install script used by HP pwplus--don't use.
2300             :
2301           else
2302             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2303             break 3
2304           fi
2305         fi
2306       done
2307     done
2308     ;;
2309 esac
2310 done
2311 IFS=$as_save_IFS
2312
2313
2314 fi
2315   if test "${ac_cv_path_install+set}" = set; then
2316     INSTALL=$ac_cv_path_install
2317   else
2318     # As a last resort, use the slow shell script.  Don't cache a
2319     # value for INSTALL within a source directory, because that will
2320     # break other packages using the cache if that directory is
2321     # removed, or if the value is a relative name.
2322     INSTALL=$ac_install_sh
2323   fi
2324 fi
2325 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2326 $as_echo "$INSTALL" >&6; }
2327
2328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2329 # It thinks the first close brace ends the variable substitution.
2330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2331
2332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2333
2334 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2335
2336 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2337 $as_echo_n "checking whether build environment is sane... " >&6; }
2338 # Just in case
2339 sleep 1
2340 echo timestamp > conftest.file
2341 # Do `set' in a subshell so we don't clobber the current shell's
2342 # arguments.  Must try -L first in case configure is actually a
2343 # symlink; some systems play weird games with the mod time of symlinks
2344 # (eg FreeBSD returns the mod time of the symlink's containing
2345 # directory).
2346 if (
2347    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2348    if test "$*" = "X"; then
2349       # -L didn't work.
2350       set X `ls -t $srcdir/configure conftest.file`
2351    fi
2352    rm -f conftest.file
2353    if test "$*" != "X $srcdir/configure conftest.file" \
2354       && test "$*" != "X conftest.file $srcdir/configure"; then
2355
2356       # If neither matched, then we have a broken ls.  This can happen
2357       # if, for instance, CONFIG_SHELL is bash and it inherits a
2358       # broken ls alias from the environment.  This has actually
2359       # happened.  Such a system could not be considered "sane".
2360       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2361 alias in your environment" >&5
2362 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2363 alias in your environment" >&2;}
2364    { (exit 1); exit 1; }; }
2365    fi
2366
2367    test "$2" = conftest.file
2368    )
2369 then
2370    # Ok.
2371    :
2372 else
2373    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2374 Check your system clock" >&5
2375 $as_echo "$as_me: error: newly created file is older than distributed files!
2376 Check your system clock" >&2;}
2377    { (exit 1); exit 1; }; }
2378 fi
2379 { $as_echo "$as_me:$LINENO: result: yes" >&5
2380 $as_echo "yes" >&6; }
2381 test "$program_prefix" != NONE &&
2382   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2383 # Use a double $ so make ignores it.
2384 test "$program_suffix" != NONE &&
2385   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2386 # Double any \ or $.
2387 # By default was `s,x,x', remove it if useless.
2388 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2389 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2390
2391 # expand $ac_aux_dir to an absolute path
2392 am_aux_dir=`cd $ac_aux_dir && pwd`
2393
2394 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2395 # Use eval to expand $SHELL
2396 if eval "$MISSING --run true"; then
2397   am_missing_run="$MISSING --run "
2398 else
2399   am_missing_run=
2400   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2401 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2402 fi
2403
2404 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2405 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2406 if test -z "$MKDIR_P"; then
2407   if test "${ac_cv_path_mkdir+set}" = set; then
2408   $as_echo_n "(cached) " >&6
2409 else
2410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2412 do
2413   IFS=$as_save_IFS
2414   test -z "$as_dir" && as_dir=.
2415   for ac_prog in mkdir gmkdir; do
2416          for ac_exec_ext in '' $ac_executable_extensions; do
2417            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2418            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2419              'mkdir (GNU coreutils) '* | \
2420              'mkdir (coreutils) '* | \
2421              'mkdir (fileutils) '4.1*)
2422                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2423                break 3;;
2424            esac
2425          done
2426        done
2427 done
2428 IFS=$as_save_IFS
2429
2430 fi
2431
2432   if test "${ac_cv_path_mkdir+set}" = set; then
2433     MKDIR_P="$ac_cv_path_mkdir -p"
2434   else
2435     # As a last resort, use the slow shell script.  Don't cache a
2436     # value for MKDIR_P within a source directory, because that will
2437     # break other packages using the cache if that directory is
2438     # removed, or if the value is a relative name.
2439     test -d ./--version && rmdir ./--version
2440     MKDIR_P="$ac_install_sh -d"
2441   fi
2442 fi
2443 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2444 $as_echo "$MKDIR_P" >&6; }
2445
2446 mkdir_p="$MKDIR_P"
2447 case $mkdir_p in
2448   [\\/$]* | ?:[\\/]*) ;;
2449   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2450 esac
2451
2452 for ac_prog in gawk mawk nawk awk
2453 do
2454   # Extract the first word of "$ac_prog", so it can be a program name with args.
2455 set dummy $ac_prog; ac_word=$2
2456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2457 $as_echo_n "checking for $ac_word... " >&6; }
2458 if test "${ac_cv_prog_AWK+set}" = set; then
2459   $as_echo_n "(cached) " >&6
2460 else
2461   if test -n "$AWK"; then
2462   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2463 else
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 for as_dir in $PATH
2466 do
2467   IFS=$as_save_IFS
2468   test -z "$as_dir" && as_dir=.
2469   for ac_exec_ext in '' $ac_executable_extensions; do
2470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471     ac_cv_prog_AWK="$ac_prog"
2472     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2473     break 2
2474   fi
2475 done
2476 done
2477 IFS=$as_save_IFS
2478
2479 fi
2480 fi
2481 AWK=$ac_cv_prog_AWK
2482 if test -n "$AWK"; then
2483   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2484 $as_echo "$AWK" >&6; }
2485 else
2486   { $as_echo "$as_me:$LINENO: result: no" >&5
2487 $as_echo "no" >&6; }
2488 fi
2489
2490
2491   test -n "$AWK" && break
2492 done
2493
2494 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2495 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2496 set x ${MAKE-make}
2497 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2498 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2499   $as_echo_n "(cached) " >&6
2500 else
2501   cat >conftest.make <<\_ACEOF
2502 SHELL = /bin/sh
2503 all:
2504         @echo '@@@%%%=$(MAKE)=@@@%%%'
2505 _ACEOF
2506 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2507 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2508   *@@@%%%=?*=@@@%%%*)
2509     eval ac_cv_prog_make_${ac_make}_set=yes;;
2510   *)
2511     eval ac_cv_prog_make_${ac_make}_set=no;;
2512 esac
2513 rm -f conftest.make
2514 fi
2515 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2516   { $as_echo "$as_me:$LINENO: result: yes" >&5
2517 $as_echo "yes" >&6; }
2518   SET_MAKE=
2519 else
2520   { $as_echo "$as_me:$LINENO: result: no" >&5
2521 $as_echo "no" >&6; }
2522   SET_MAKE="MAKE=${MAKE-make}"
2523 fi
2524
2525 rm -rf .tst 2>/dev/null
2526 mkdir .tst 2>/dev/null
2527 if test -d .tst; then
2528   am__leading_dot=.
2529 else
2530   am__leading_dot=_
2531 fi
2532 rmdir .tst 2>/dev/null
2533
2534 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2535   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2536   # is not polluted with repeated "-I."
2537   am__isrc=' -I$(srcdir)'
2538   # test to see if srcdir already configured
2539   if test -f $srcdir/config.status; then
2540     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2541 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2542    { (exit 1); exit 1; }; }
2543   fi
2544 fi
2545
2546 # test whether we have cygpath
2547 if test -z "$CYGPATH_W"; then
2548   if (cygpath --version) >/dev/null 2>/dev/null; then
2549     CYGPATH_W='cygpath -w'
2550   else
2551     CYGPATH_W=echo
2552   fi
2553 fi
2554
2555
2556 # Define the identity of the package.
2557  PACKAGE='coreutils'
2558  VERSION='6.9'
2559
2560
2561 cat >>confdefs.h <<_ACEOF
2562 #define PACKAGE "$PACKAGE"
2563 _ACEOF
2564
2565
2566 cat >>confdefs.h <<_ACEOF
2567 #define VERSION "$VERSION"
2568 _ACEOF
2569
2570 # Some tools Automake needs.
2571
2572 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2573
2574
2575 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2576
2577
2578 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2579
2580
2581 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2582
2583
2584 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2585
2586 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2587
2588 # Installed binaries are usually stripped using `strip' when the user
2589 # run `make install-strip'.  However `strip' might not be the right
2590 # tool to use in cross-compilation environments, therefore Automake
2591 # will honor the `STRIP' environment variable to overrule this program.
2592 if test "$cross_compiling" != no; then
2593   if test -n "$ac_tool_prefix"; then
2594   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2595 set dummy ${ac_tool_prefix}strip; ac_word=$2
2596 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2597 $as_echo_n "checking for $ac_word... " >&6; }
2598 if test "${ac_cv_prog_STRIP+set}" = set; then
2599   $as_echo_n "(cached) " >&6
2600 else
2601   if test -n "$STRIP"; then
2602   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2606 do
2607   IFS=$as_save_IFS
2608   test -z "$as_dir" && as_dir=.
2609   for ac_exec_ext in '' $ac_executable_extensions; do
2610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2611     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2612     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613     break 2
2614   fi
2615 done
2616 done
2617 IFS=$as_save_IFS
2618
2619 fi
2620 fi
2621 STRIP=$ac_cv_prog_STRIP
2622 if test -n "$STRIP"; then
2623   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2624 $as_echo "$STRIP" >&6; }
2625 else
2626   { $as_echo "$as_me:$LINENO: result: no" >&5
2627 $as_echo "no" >&6; }
2628 fi
2629
2630
2631 fi
2632 if test -z "$ac_cv_prog_STRIP"; then
2633   ac_ct_STRIP=$STRIP
2634   # Extract the first word of "strip", so it can be a program name with args.
2635 set dummy strip; ac_word=$2
2636 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2637 $as_echo_n "checking for $ac_word... " >&6; }
2638 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2639   $as_echo_n "(cached) " >&6
2640 else
2641   if test -n "$ac_ct_STRIP"; then
2642   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2646 do
2647   IFS=$as_save_IFS
2648   test -z "$as_dir" && as_dir=.
2649   for ac_exec_ext in '' $ac_executable_extensions; do
2650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2651     ac_cv_prog_ac_ct_STRIP="strip"
2652     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653     break 2
2654   fi
2655 done
2656 done
2657 IFS=$as_save_IFS
2658
2659 fi
2660 fi
2661 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2662 if test -n "$ac_ct_STRIP"; then
2663   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2664 $as_echo "$ac_ct_STRIP" >&6; }
2665 else
2666   { $as_echo "$as_me:$LINENO: result: no" >&5
2667 $as_echo "no" >&6; }
2668 fi
2669
2670   if test "x$ac_ct_STRIP" = x; then
2671     STRIP=":"
2672   else
2673     case $cross_compiling:$ac_tool_warned in
2674 yes:)
2675 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2676 whose name does not start with the host triplet.  If you think this
2677 configuration is useful to you, please write to autoconf@gnu.org." >&5
2678 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2679 whose name does not start with the host triplet.  If you think this
2680 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2681 ac_tool_warned=yes ;;
2682 esac
2683     STRIP=$ac_ct_STRIP
2684   fi
2685 else
2686   STRIP="$ac_cv_prog_STRIP"
2687 fi
2688
2689 fi
2690 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2691
2692 # We need awk for the "check" target.  The system "awk" is bad on
2693 # some platforms.
2694 # Always define AMTAR for backward compatibility.
2695
2696 AMTAR=${AMTAR-"${am_missing_run}tar"}
2697
2698 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2699
2700
2701
2702
2703
2704
2705 DEPDIR="${am__leading_dot}deps"
2706
2707 ac_config_commands="$ac_config_commands depfiles"
2708
2709
2710 am_make=${MAKE-make}
2711 cat > confinc << 'END'
2712 am__doit:
2713         @echo done
2714 .PHONY: am__doit
2715 END
2716 # If we don't find an include directive, just comment out the code.
2717 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2718 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2719 am__include="#"
2720 am__quote=
2721 _am_result=none
2722 # First try GNU make style include.
2723 echo "include confinc" > confmf
2724 # We grep out `Entering directory' and `Leaving directory'
2725 # messages which can occur if `w' ends up in MAKEFLAGS.
2726 # In particular we don't look at `^make:' because GNU make might
2727 # be invoked under some other name (usually "gmake"), in which
2728 # case it prints its new name instead of `make'.
2729 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2730    am__include=include
2731    am__quote=
2732    _am_result=GNU
2733 fi
2734 # Now try BSD make style include.
2735 if test "$am__include" = "#"; then
2736    echo '.include "confinc"' > confmf
2737    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2738       am__include=.include
2739       am__quote="\""
2740       _am_result=BSD
2741    fi
2742 fi
2743
2744
2745 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2746 $as_echo "$_am_result" >&6; }
2747 rm -f confinc confmf
2748
2749 # Check whether --enable-dependency-tracking was given.
2750 if test "${enable_dependency_tracking+set}" = set; then
2751   enableval=$enable_dependency_tracking;
2752 fi
2753
2754 if test "x$enable_dependency_tracking" != xno; then
2755   am_depcomp="$ac_aux_dir/depcomp"
2756   AMDEPBACKSLASH='\'
2757 fi
2758  if test "x$enable_dependency_tracking" != xno; then
2759   AMDEP_TRUE=
2760   AMDEP_FALSE='#'
2761 else
2762   AMDEP_TRUE='#'
2763   AMDEP_FALSE=
2764 fi
2765
2766
2767 ac_ext=c
2768 ac_cpp='$CPP $CPPFLAGS'
2769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2772 if test -n "$ac_tool_prefix"; then
2773   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2774 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2775 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if test "${ac_cv_prog_CC+set}" = set; then
2778   $as_echo_n "(cached) " >&6
2779 else
2780   if test -n "$CC"; then
2781   ac_cv_prog_CC="$CC" # Let the user override the test.
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2785 do
2786   IFS=$as_save_IFS
2787   test -z "$as_dir" && as_dir=.
2788   for ac_exec_ext in '' $ac_executable_extensions; do
2789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2790     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2791     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792     break 2
2793   fi
2794 done
2795 done
2796 IFS=$as_save_IFS
2797
2798 fi
2799 fi
2800 CC=$ac_cv_prog_CC
2801 if test -n "$CC"; then
2802   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2803 $as_echo "$CC" >&6; }
2804 else
2805   { $as_echo "$as_me:$LINENO: result: no" >&5
2806 $as_echo "no" >&6; }
2807 fi
2808
2809
2810 fi
2811 if test -z "$ac_cv_prog_CC"; then
2812   ac_ct_CC=$CC
2813   # Extract the first word of "gcc", so it can be a program name with args.
2814 set dummy gcc; ac_word=$2
2815 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2818   $as_echo_n "(cached) " >&6
2819 else
2820   if test -n "$ac_ct_CC"; then
2821   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826   IFS=$as_save_IFS
2827   test -z "$as_dir" && as_dir=.
2828   for ac_exec_ext in '' $ac_executable_extensions; do
2829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2830     ac_cv_prog_ac_ct_CC="gcc"
2831     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832     break 2
2833   fi
2834 done
2835 done
2836 IFS=$as_save_IFS
2837
2838 fi
2839 fi
2840 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2841 if test -n "$ac_ct_CC"; then
2842   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2843 $as_echo "$ac_ct_CC" >&6; }
2844 else
2845   { $as_echo "$as_me:$LINENO: result: no" >&5
2846 $as_echo "no" >&6; }
2847 fi
2848
2849   if test "x$ac_ct_CC" = x; then
2850     CC=""
2851   else
2852     case $cross_compiling:$ac_tool_warned in
2853 yes:)
2854 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2855 whose name does not start with the host triplet.  If you think this
2856 configuration is useful to you, please write to autoconf@gnu.org." >&5
2857 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2858 whose name does not start with the host triplet.  If you think this
2859 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2860 ac_tool_warned=yes ;;
2861 esac
2862     CC=$ac_ct_CC
2863   fi
2864 else
2865   CC="$ac_cv_prog_CC"
2866 fi
2867
2868 if test -z "$CC"; then
2869           if test -n "$ac_tool_prefix"; then
2870     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2871 set dummy ${ac_tool_prefix}cc; ac_word=$2
2872 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2873 $as_echo_n "checking for $ac_word... " >&6; }
2874 if test "${ac_cv_prog_CC+set}" = set; then
2875   $as_echo_n "(cached) " >&6
2876 else
2877   if test -n "$CC"; then
2878   ac_cv_prog_CC="$CC" # Let the user override the test.
2879 else
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2882 do
2883   IFS=$as_save_IFS
2884   test -z "$as_dir" && as_dir=.
2885   for ac_exec_ext in '' $ac_executable_extensions; do
2886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2887     ac_cv_prog_CC="${ac_tool_prefix}cc"
2888     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889     break 2
2890   fi
2891 done
2892 done
2893 IFS=$as_save_IFS
2894
2895 fi
2896 fi
2897 CC=$ac_cv_prog_CC
2898 if test -n "$CC"; then
2899   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2900 $as_echo "$CC" >&6; }
2901 else
2902   { $as_echo "$as_me:$LINENO: result: no" >&5
2903 $as_echo "no" >&6; }
2904 fi
2905
2906
2907   fi
2908 fi
2909 if test -z "$CC"; then
2910   # Extract the first word of "cc", so it can be a program name with args.
2911 set dummy cc; ac_word=$2
2912 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if test "${ac_cv_prog_CC+set}" = set; then
2915   $as_echo_n "(cached) " >&6
2916 else
2917   if test -n "$CC"; then
2918   ac_cv_prog_CC="$CC" # Let the user override the test.
2919 else
2920   ac_prog_rejected=no
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2923 do
2924   IFS=$as_save_IFS
2925   test -z "$as_dir" && as_dir=.
2926   for ac_exec_ext in '' $ac_executable_extensions; do
2927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2929        ac_prog_rejected=yes
2930        continue
2931      fi
2932     ac_cv_prog_CC="cc"
2933     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2934     break 2
2935   fi
2936 done
2937 done
2938 IFS=$as_save_IFS
2939
2940 if test $ac_prog_rejected = yes; then
2941   # We found a bogon in the path, so make sure we never use it.
2942   set dummy $ac_cv_prog_CC
2943   shift
2944   if test $# != 0; then
2945     # We chose a different compiler from the bogus one.
2946     # However, it has the same basename, so the bogon will be chosen
2947     # first if we set CC to just the basename; use the full file name.
2948     shift
2949     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2950   fi
2951 fi
2952 fi
2953 fi
2954 CC=$ac_cv_prog_CC
2955 if test -n "$CC"; then
2956   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2957 $as_echo "$CC" >&6; }
2958 else
2959   { $as_echo "$as_me:$LINENO: result: no" >&5
2960 $as_echo "no" >&6; }
2961 fi
2962
2963
2964 fi
2965 if test -z "$CC"; then
2966   if test -n "$ac_tool_prefix"; then
2967   for ac_prog in cl.exe
2968   do
2969     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2970 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2971 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2972 $as_echo_n "checking for $ac_word... " >&6; }
2973 if test "${ac_cv_prog_CC+set}" = set; then
2974   $as_echo_n "(cached) " >&6
2975 else
2976   if test -n "$CC"; then
2977   ac_cv_prog_CC="$CC" # Let the user override the test.
2978 else
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2981 do
2982   IFS=$as_save_IFS
2983   test -z "$as_dir" && as_dir=.
2984   for ac_exec_ext in '' $ac_executable_extensions; do
2985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2987     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2988     break 2
2989   fi
2990 done
2991 done
2992 IFS=$as_save_IFS
2993
2994 fi
2995 fi
2996 CC=$ac_cv_prog_CC
2997 if test -n "$CC"; then
2998   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2999 $as_echo "$CC" >&6; }
3000 else
3001   { $as_echo "$as_me:$LINENO: result: no" >&5
3002 $as_echo "no" >&6; }
3003 fi
3004
3005
3006     test -n "$CC" && break
3007   done
3008 fi
3009 if test -z "$CC"; then
3010   ac_ct_CC=$CC
3011   for ac_prog in cl.exe
3012 do
3013   # Extract the first word of "$ac_prog", so it can be a program name with args.
3014 set dummy $ac_prog; ac_word=$2
3015 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3018   $as_echo_n "(cached) " >&6
3019 else
3020   if test -n "$ac_ct_CC"; then
3021   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3022 else
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 for as_dir in $PATH
3025 do
3026   IFS=$as_save_IFS
3027   test -z "$as_dir" && as_dir=.
3028   for ac_exec_ext in '' $ac_executable_extensions; do
3029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3030     ac_cv_prog_ac_ct_CC="$ac_prog"
3031     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3032     break 2
3033   fi
3034 done
3035 done
3036 IFS=$as_save_IFS
3037
3038 fi
3039 fi
3040 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3041 if test -n "$ac_ct_CC"; then
3042   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3043 $as_echo "$ac_ct_CC" >&6; }
3044 else
3045   { $as_echo "$as_me:$LINENO: result: no" >&5
3046 $as_echo "no" >&6; }
3047 fi
3048
3049
3050   test -n "$ac_ct_CC" && break
3051 done
3052
3053   if test "x$ac_ct_CC" = x; then
3054     CC=""
3055   else
3056     case $cross_compiling:$ac_tool_warned in
3057 yes:)
3058 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3059 whose name does not start with the host triplet.  If you think this
3060 configuration is useful to you, please write to autoconf@gnu.org." >&5
3061 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3062 whose name does not start with the host triplet.  If you think this
3063 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3064 ac_tool_warned=yes ;;
3065 esac
3066     CC=$ac_ct_CC
3067   fi
3068 fi
3069
3070 fi
3071
3072
3073 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3074 See \`config.log' for more details." >&5
3075 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3076 See \`config.log' for more details." >&2;}
3077    { (exit 1); exit 1; }; }
3078
3079 # Provide some information about the compiler.
3080 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3081 set X $ac_compile
3082 ac_compiler=$2
3083 { (ac_try="$ac_compiler --version >&5"
3084 case "(($ac_try" in
3085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086   *) ac_try_echo=$ac_try;;
3087 esac
3088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3089 $as_echo "$ac_try_echo") >&5
3090   (eval "$ac_compiler --version >&5") 2>&5
3091   ac_status=$?
3092   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); }
3094 { (ac_try="$ac_compiler -v >&5"
3095 case "(($ac_try" in
3096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097   *) ac_try_echo=$ac_try;;
3098 esac
3099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3100 $as_echo "$ac_try_echo") >&5
3101   (eval "$ac_compiler -v >&5") 2>&5
3102   ac_status=$?
3103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104   (exit $ac_status); }
3105 { (ac_try="$ac_compiler -V >&5"
3106 case "(($ac_try" in
3107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108   *) ac_try_echo=$ac_try;;
3109 esac
3110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3111 $as_echo "$ac_try_echo") >&5
3112   (eval "$ac_compiler -V >&5") 2>&5
3113   ac_status=$?
3114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115   (exit $ac_status); }
3116
3117 cat >conftest.$ac_ext <<_ACEOF
3118 /* confdefs.h.  */
3119 _ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h.  */
3123
3124 int
3125 main ()
3126 {
3127
3128   ;
3129   return 0;
3130 }
3131 _ACEOF
3132 ac_clean_files_save=$ac_clean_files
3133 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3134 # Try to create an executable without -o first, disregard a.out.
3135 # It will help us diagnose broken compilers, and finding out an intuition
3136 # of exeext.
3137 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3138 $as_echo_n "checking for C compiler default output file name... " >&6; }
3139 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3140 #
3141 # List of possible output files, starting from the most likely.
3142 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3143 # only as a last resort.  b.out is created by i960 compilers.
3144 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3145 #
3146 # The IRIX 6 linker writes into existing files which may not be
3147 # executable, retaining their permissions.  Remove them first so a
3148 # subsequent execution test works.
3149 ac_rmfiles=
3150 for ac_file in $ac_files
3151 do
3152   case $ac_file in
3153     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3154     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3155   esac
3156 done
3157 rm -f $ac_rmfiles
3158
3159 if { (ac_try="$ac_link_default"
3160 case "(($ac_try" in
3161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162   *) ac_try_echo=$ac_try;;
3163 esac
3164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3165 $as_echo "$ac_try_echo") >&5
3166   (eval "$ac_link_default") 2>&5
3167   ac_status=$?
3168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169   (exit $ac_status); }; then
3170   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3171 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3172 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3173 # so that the user can short-circuit this test for compilers unknown to
3174 # Autoconf.
3175 for ac_file in $ac_files ''
3176 do
3177   test -f "$ac_file" || continue
3178   case $ac_file in
3179     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3180         ;;
3181     [ab].out )
3182         # We found the default executable, but exeext='' is most
3183         # certainly right.
3184         break;;
3185     *.* )
3186         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3187         then :; else
3188            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3189         fi
3190         # We set ac_cv_exeext here because the later test for it is not
3191         # safe: cross compilers may not add the suffix if given an `-o'
3192         # argument, so we may need to know it at that point already.
3193         # Even if this section looks crufty: it has the advantage of
3194         # actually working.
3195         break;;
3196     * )
3197         break;;
3198   esac
3199 done
3200 test "$ac_cv_exeext" = no && ac_cv_exeext=
3201
3202 else
3203   ac_file=''
3204 fi
3205
3206 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3207 $as_echo "$ac_file" >&6; }
3208 if test -z "$ac_file"; then
3209   $as_echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3211
3212 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3213 See \`config.log' for more details." >&5
3214 $as_echo "$as_me: error: C compiler cannot create executables
3215 See \`config.log' for more details." >&2;}
3216    { (exit 77); exit 77; }; }
3217 fi
3218
3219 ac_exeext=$ac_cv_exeext
3220
3221 # Check that the compiler produces executables we can run.  If not, either
3222 # the compiler is broken, or we cross compile.
3223 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3224 $as_echo_n "checking whether the C compiler works... " >&6; }
3225 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3226 # If not cross compiling, check that we can run a simple program.
3227 if test "$cross_compiling" != yes; then
3228   if { ac_try='./$ac_file'
3229   { (case "(($ac_try" in
3230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231   *) ac_try_echo=$ac_try;;
3232 esac
3233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3234 $as_echo "$ac_try_echo") >&5
3235   (eval "$ac_try") 2>&5
3236   ac_status=$?
3237   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); }; }; then
3239     cross_compiling=no
3240   else
3241     if test "$cross_compiling" = maybe; then
3242         cross_compiling=yes
3243     else
3244         { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3245 If you meant to cross compile, use \`--host'.
3246 See \`config.log' for more details." >&5
3247 $as_echo "$as_me: error: cannot run C compiled programs.
3248 If you meant to cross compile, use \`--host'.
3249 See \`config.log' for more details." >&2;}
3250    { (exit 1); exit 1; }; }
3251     fi
3252   fi
3253 fi
3254 { $as_echo "$as_me:$LINENO: result: yes" >&5
3255 $as_echo "yes" >&6; }
3256
3257 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3258 ac_clean_files=$ac_clean_files_save
3259 # Check that the compiler produces executables we can run.  If not, either
3260 # the compiler is broken, or we cross compile.
3261 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3262 $as_echo_n "checking whether we are cross compiling... " >&6; }
3263 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3264 $as_echo "$cross_compiling" >&6; }
3265
3266 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3267 $as_echo_n "checking for suffix of executables... " >&6; }
3268 if { (ac_try="$ac_link"
3269 case "(($ac_try" in
3270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271   *) ac_try_echo=$ac_try;;
3272 esac
3273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3274 $as_echo "$ac_try_echo") >&5
3275   (eval "$ac_link") 2>&5
3276   ac_status=$?
3277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278   (exit $ac_status); }; then
3279   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3280 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3281 # work properly (i.e., refer to `conftest.exe'), while it won't with
3282 # `rm'.
3283 for ac_file in conftest.exe conftest conftest.*; do
3284   test -f "$ac_file" || continue
3285   case $ac_file in
3286     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3287     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3288           break;;
3289     * ) break;;
3290   esac
3291 done
3292 else
3293   { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3294 See \`config.log' for more details." >&5
3295 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3296 See \`config.log' for more details." >&2;}
3297    { (exit 1); exit 1; }; }
3298 fi
3299
3300 rm -f conftest$ac_cv_exeext
3301 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3302 $as_echo "$ac_cv_exeext" >&6; }
3303
3304 rm -f conftest.$ac_ext
3305 EXEEXT=$ac_cv_exeext
3306 ac_exeext=$EXEEXT
3307 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3308 $as_echo_n "checking for suffix of object files... " >&6; }
3309 if test "${ac_cv_objext+set}" = set; then
3310   $as_echo_n "(cached) " >&6
3311 else
3312   cat >conftest.$ac_ext <<_ACEOF
3313 /* confdefs.h.  */
3314 _ACEOF
3315 cat confdefs.h >>conftest.$ac_ext
3316 cat >>conftest.$ac_ext <<_ACEOF
3317 /* end confdefs.h.  */
3318
3319 int
3320 main ()
3321 {
3322
3323   ;
3324   return 0;
3325 }
3326 _ACEOF
3327 rm -f conftest.o conftest.obj
3328 if { (ac_try="$ac_compile"
3329 case "(($ac_try" in
3330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331   *) ac_try_echo=$ac_try;;
3332 esac
3333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3334 $as_echo "$ac_try_echo") >&5
3335   (eval "$ac_compile") 2>&5
3336   ac_status=$?
3337   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338   (exit $ac_status); }; then
3339   for ac_file in conftest.o conftest.obj conftest.*; do
3340   test -f "$ac_file" || continue;
3341   case $ac_file in
3342     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3343     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3344        break;;
3345   esac
3346 done
3347 else
3348   $as_echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3350
3351 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3352 See \`config.log' for more details." >&5
3353 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3354 See \`config.log' for more details." >&2;}
3355    { (exit 1); exit 1; }; }
3356 fi
3357
3358 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3359 fi
3360 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3361 $as_echo "$ac_cv_objext" >&6; }
3362 OBJEXT=$ac_cv_objext
3363 ac_objext=$OBJEXT
3364 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3365 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3366 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3367   $as_echo_n "(cached) " >&6
3368 else
3369   cat >conftest.$ac_ext <<_ACEOF
3370 /* confdefs.h.  */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h.  */
3375
3376 int
3377 main ()
3378 {
3379 #ifndef __GNUC__
3380        choke me
3381 #endif
3382
3383   ;
3384   return 0;
3385 }
3386 _ACEOF
3387 rm -f conftest.$ac_objext
3388 if { (ac_try="$ac_compile"
3389 case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3394 $as_echo "$ac_try_echo") >&5
3395   (eval "$ac_compile") 2>conftest.er1
3396   ac_status=$?
3397   grep -v '^ *+' conftest.er1 >conftest.err
3398   rm -f conftest.er1
3399   cat conftest.err >&5
3400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401   (exit $ac_status); } && {
3402          test -z "$ac_c_werror_flag" ||
3403          test ! -s conftest.err
3404        } && test -s conftest.$ac_objext; then
3405   ac_compiler_gnu=yes
3406 else
3407   $as_echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3409
3410         ac_compiler_gnu=no
3411 fi
3412
3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3414 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3415
3416 fi
3417 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3418 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3419 if test $ac_compiler_gnu = yes; then
3420   GCC=yes
3421 else
3422   GCC=
3423 fi
3424 ac_test_CFLAGS=${CFLAGS+set}
3425 ac_save_CFLAGS=$CFLAGS
3426 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3427 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3428 if test "${ac_cv_prog_cc_g+set}" = set; then
3429   $as_echo_n "(cached) " >&6
3430 else
3431   ac_save_c_werror_flag=$ac_c_werror_flag
3432    ac_c_werror_flag=yes
3433    ac_cv_prog_cc_g=no
3434    CFLAGS="-g"
3435    cat >conftest.$ac_ext <<_ACEOF
3436 /* confdefs.h.  */
3437 _ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h.  */
3441
3442 int
3443 main ()
3444 {
3445
3446   ;
3447   return 0;
3448 }
3449 _ACEOF
3450 rm -f conftest.$ac_objext
3451 if { (ac_try="$ac_compile"
3452 case "(($ac_try" in
3453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454   *) ac_try_echo=$ac_try;;
3455 esac
3456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3457 $as_echo "$ac_try_echo") >&5
3458   (eval "$ac_compile") 2>conftest.er1
3459   ac_status=$?
3460   grep -v '^ *+' conftest.er1 >conftest.err
3461   rm -f conftest.er1
3462   cat conftest.err >&5
3463   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464   (exit $ac_status); } && {
3465          test -z "$ac_c_werror_flag" ||
3466          test ! -s conftest.err
3467        } && test -s conftest.$ac_objext; then
3468   ac_cv_prog_cc_g=yes
3469 else
3470   $as_echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3472
3473         CFLAGS=""
3474       cat >conftest.$ac_ext <<_ACEOF
3475 /* confdefs.h.  */
3476 _ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h.  */
3480
3481 int
3482 main ()
3483 {
3484
3485   ;
3486   return 0;
3487 }
3488 _ACEOF
3489 rm -f conftest.$ac_objext
3490 if { (ac_try="$ac_compile"
3491 case "(($ac_try" in
3492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493   *) ac_try_echo=$ac_try;;
3494 esac
3495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3496 $as_echo "$ac_try_echo") >&5
3497   (eval "$ac_compile") 2>conftest.er1
3498   ac_status=$?
3499   grep -v '^ *+' conftest.er1 >conftest.err
3500   rm -f conftest.er1
3501   cat conftest.err >&5
3502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503   (exit $ac_status); } && {
3504          test -z "$ac_c_werror_flag" ||
3505          test ! -s conftest.err
3506        } && test -s conftest.$ac_objext; then
3507   :
3508 else
3509   $as_echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3511
3512         ac_c_werror_flag=$ac_save_c_werror_flag
3513          CFLAGS="-g"
3514          cat >conftest.$ac_ext <<_ACEOF
3515 /* confdefs.h.  */
3516 _ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h.  */
3520
3521 int
3522 main ()
3523 {
3524
3525   ;
3526   return 0;
3527 }
3528 _ACEOF
3529 rm -f conftest.$ac_objext
3530 if { (ac_try="$ac_compile"
3531 case "(($ac_try" in
3532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533   *) ac_try_echo=$ac_try;;
3534 esac
3535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3536 $as_echo "$ac_try_echo") >&5
3537   (eval "$ac_compile") 2>conftest.er1
3538   ac_status=$?
3539   grep -v '^ *+' conftest.er1 >conftest.err
3540   rm -f conftest.er1
3541   cat conftest.err >&5
3542   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543   (exit $ac_status); } && {
3544          test -z "$ac_c_werror_flag" ||
3545          test ! -s conftest.err
3546        } && test -s conftest.$ac_objext; then
3547   ac_cv_prog_cc_g=yes
3548 else
3549   $as_echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3551
3552
3553 fi
3554
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556 fi
3557
3558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559 fi
3560
3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562    ac_c_werror_flag=$ac_save_c_werror_flag
3563 fi
3564 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3565 $as_echo "$ac_cv_prog_cc_g" >&6; }
3566 if test "$ac_test_CFLAGS" = set; then
3567   CFLAGS=$ac_save_CFLAGS
3568 elif test $ac_cv_prog_cc_g = yes; then
3569   if test "$GCC" = yes; then
3570     CFLAGS="-g -O2"
3571   else
3572     CFLAGS="-g"
3573   fi
3574 else
3575   if test "$GCC" = yes; then
3576     CFLAGS="-O2"
3577   else
3578     CFLAGS=
3579   fi
3580 fi
3581 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3582 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3583 if test "${ac_cv_prog_cc_c89+set}" = set; then
3584   $as_echo_n "(cached) " >&6
3585 else
3586   ac_cv_prog_cc_c89=no
3587 ac_save_CC=$CC
3588 cat >conftest.$ac_ext <<_ACEOF
3589 /* confdefs.h.  */
3590 _ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h.  */
3594 #include <stdarg.h>
3595 #include <stdio.h>
3596 #include <sys/types.h>
3597 #include <sys/stat.h>
3598 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3599 struct buf { int x; };
3600 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3601 static char *e (p, i)
3602      char **p;
3603      int i;
3604 {
3605   return p[i];
3606 }
3607 static char *f (char * (*g) (char **, int), char **p, ...)
3608 {
3609   char *s;
3610   va_list v;
3611   va_start (v,p);
3612   s = g (p, va_arg (v,int));
3613   va_end (v);
3614   return s;
3615 }
3616
3617 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3618    function prototypes and stuff, but not '\xHH' hex character constants.
3619    These don't provoke an error unfortunately, instead are silently treated
3620    as 'x'.  The following induces an error, until -std is added to get
3621    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3622    array size at least.  It's necessary to write '\x00'==0 to get something
3623    that's true only with -std.  */
3624 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3625
3626 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3627    inside strings and character constants.  */
3628 #define FOO(x) 'x'
3629 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3630
3631 int test (int i, double x);
3632 struct s1 {int (*f) (int a);};
3633 struct s2 {int (*f) (double a);};
3634 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3635 int argc;
3636 char **argv;
3637 int
3638 main ()
3639 {
3640 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3641   ;
3642   return 0;
3643 }
3644 _ACEOF
3645 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3646         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3647 do
3648   CC="$ac_save_CC $ac_arg"
3649   rm -f conftest.$ac_objext
3650 if { (ac_try="$ac_compile"
3651 case "(($ac_try" in
3652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653   *) ac_try_echo=$ac_try;;
3654 esac
3655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3656 $as_echo "$ac_try_echo") >&5
3657   (eval "$ac_compile") 2>conftest.er1
3658   ac_status=$?
3659   grep -v '^ *+' conftest.er1 >conftest.err
3660   rm -f conftest.er1
3661   cat conftest.err >&5
3662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663   (exit $ac_status); } && {
3664          test -z "$ac_c_werror_flag" ||
3665          test ! -s conftest.err
3666        } && test -s conftest.$ac_objext; then
3667   ac_cv_prog_cc_c89=$ac_arg
3668 else
3669   $as_echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3671
3672
3673 fi
3674
3675 rm -f core conftest.err conftest.$ac_objext
3676   test "x$ac_cv_prog_cc_c89" != "xno" && break
3677 done
3678 rm -f conftest.$ac_ext
3679 CC=$ac_save_CC
3680
3681 fi
3682 # AC_CACHE_VAL
3683 case "x$ac_cv_prog_cc_c89" in
3684   x)
3685     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3686 $as_echo "none needed" >&6; } ;;
3687   xno)
3688     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3689 $as_echo "unsupported" >&6; } ;;
3690   *)
3691     CC="$CC $ac_cv_prog_cc_c89"
3692     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3693 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3694 esac
3695
3696
3697 ac_ext=c
3698 ac_cpp='$CPP $CPPFLAGS'
3699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3702
3703 depcc="$CC"   am_compiler_list=
3704
3705 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3706 $as_echo_n "checking dependency style of $depcc... " >&6; }
3707 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3708   $as_echo_n "(cached) " >&6
3709 else
3710   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3711   # We make a subdir and do the tests there.  Otherwise we can end up
3712   # making bogus files that we don't know about and never remove.  For
3713   # instance it was reported that on HP-UX the gcc test will end up
3714   # making a dummy file named `D' -- because `-MD' means `put the output
3715   # in D'.
3716   mkdir conftest.dir
3717   # Copy depcomp to subdir because otherwise we won't find it if we're
3718   # using a relative directory.
3719   cp "$am_depcomp" conftest.dir
3720   cd conftest.dir
3721   # We will build objects and dependencies in a subdirectory because
3722   # it helps to detect inapplicable dependency modes.  For instance
3723   # both Tru64's cc and ICC support -MD to output dependencies as a
3724   # side effect of compilation, but ICC will put the dependencies in
3725   # the current directory while Tru64 will put them in the object
3726   # directory.
3727   mkdir sub
3728
3729   am_cv_CC_dependencies_compiler_type=none
3730   if test "$am_compiler_list" = ""; then
3731      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3732   fi
3733   for depmode in $am_compiler_list; do
3734     # Setup a source with many dependencies, because some compilers
3735     # like to wrap large dependency lists on column 80 (with \), and
3736     # we should not choose a depcomp mode which is confused by this.
3737     #
3738     # We need to recreate these files for each test, as the compiler may
3739     # overwrite some of them when testing with obscure command lines.
3740     # This happens at least with the AIX C compiler.
3741     : > sub/conftest.c
3742     for i in 1 2 3 4 5 6; do
3743       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3744       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3745       # Solaris 8's {/usr,}/bin/sh.
3746       touch sub/conftst$i.h
3747     done
3748     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3749
3750     case $depmode in
3751     nosideeffect)
3752       # after this tag, mechanisms are not by side-effect, so they'll
3753       # only be used when explicitly requested
3754       if test "x$enable_dependency_tracking" = xyes; then
3755         continue
3756       else
3757         break
3758       fi
3759       ;;
3760     none) break ;;
3761     esac
3762     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3763     # mode.  It turns out that the SunPro C++ compiler does not properly
3764     # handle `-M -o', and we need to detect this.
3765     if depmode=$depmode \
3766        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3767        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3768        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3769          >/dev/null 2>conftest.err &&
3770        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3771        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3772        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3773        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3774       # icc doesn't choke on unknown options, it will just issue warnings
3775       # or remarks (even with -Werror).  So we grep stderr for any message
3776       # that says an option was ignored or not supported.
3777       # When given -MP, icc 7.0 and 7.1 complain thusly:
3778       #   icc: Command line warning: ignoring option '-M'; no argument required
3779       # The diagnosis changed in icc 8.0:
3780       #   icc: Command line remark: option '-MP' not supported
3781       if (grep 'ignoring option' conftest.err ||
3782           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3783         am_cv_CC_dependencies_compiler_type=$depmode
3784         break
3785       fi
3786     fi
3787   done
3788
3789   cd ..
3790   rm -rf conftest.dir
3791 else
3792   am_cv_CC_dependencies_compiler_type=none
3793 fi
3794
3795 fi
3796 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3797 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3798 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3799
3800  if
3801   test "x$enable_dependency_tracking" != xno \
3802   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3803   am__fastdepCC_TRUE=
3804   am__fastdepCC_FALSE='#'
3805 else
3806   am__fastdepCC_TRUE='#'
3807   am__fastdepCC_FALSE=
3808 fi
3809
3810
3811    case $ac_cv_prog_cc_stdc in
3812   no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
3813   *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3814 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3815 if test "${ac_cv_prog_cc_c99+set}" = set; then
3816   $as_echo_n "(cached) " >&6
3817 else
3818   ac_cv_prog_cc_c99=no
3819 ac_save_CC=$CC
3820 cat >conftest.$ac_ext <<_ACEOF
3821 /* confdefs.h.  */
3822 _ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h.  */
3826 #include <stdarg.h>
3827 #include <stdbool.h>
3828 #include <stdlib.h>
3829 #include <wchar.h>
3830 #include <stdio.h>
3831
3832 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
3833 #define debug(...) fprintf (stderr, __VA_ARGS__)
3834 #define showlist(...) puts (#__VA_ARGS__)
3835 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3836 static void
3837 test_varargs_macros (void)
3838 {
3839   int x = 1234;
3840   int y = 5678;
3841   debug ("Flag");
3842   debug ("X = %d\n", x);
3843   showlist (The first, second, and third items.);
3844   report (x>y, "x is %d but y is %d", x, y);
3845 }
3846
3847 // Check long long types.
3848 #define BIG64 18446744073709551615ull
3849 #define BIG32 4294967295ul
3850 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3851 #if !BIG_OK
3852   your preprocessor is broken;
3853 #endif
3854 #if BIG_OK
3855 #else
3856   your preprocessor is broken;
3857 #endif
3858 static long long int bignum = -9223372036854775807LL;
3859 static unsigned long long int ubignum = BIG64;
3860
3861 struct incomplete_array
3862 {
3863   int datasize;
3864   double data[];
3865 };
3866
3867 struct named_init {
3868   int number;
3869   const wchar_t *name;
3870   double average;
3871 };
3872
3873 typedef const char *ccp;
3874
3875 static inline int
3876 test_restrict (ccp restrict text)
3877 {
3878   // See if C++-style comments work.
3879   // Iterate through items via the restricted pointer.
3880   // Also check for declarations in for loops.
3881   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3882     continue;
3883   return 0;
3884 }
3885
3886 // Check varargs and va_copy.
3887 static void
3888 test_varargs (const char *format, ...)
3889 {
3890   va_list args;
3891   va_start (args, format);
3892   va_list args_copy;
3893   va_copy (args_copy, args);
3894
3895   const char *str;
3896   int number;
3897   float fnumber;
3898
3899   while (*format)
3900     {
3901       switch (*format++)
3902         {
3903         case 's': // string
3904           str = va_arg (args_copy, const char *);
3905           break;
3906         case 'd': // int
3907           number = va_arg (args_copy, int);
3908           break;
3909         case 'f': // float
3910           fnumber = va_arg (args_copy, double);
3911           break;
3912         default:
3913           break;
3914         }
3915     }
3916   va_end (args_copy);
3917   va_end (args);
3918 }
3919
3920 int
3921 main ()
3922 {
3923
3924   // Check bool.
3925   _Bool success = false;
3926
3927   // Check restrict.
3928   if (test_restrict ("String literal") == 0)
3929     success = true;
3930   char *restrict newvar = "Another string";
3931
3932   // Check varargs.
3933   test_varargs ("s, d' f .", "string", 65, 34.234);
3934   test_varargs_macros ();
3935
3936   // Check flexible array members.
3937   struct incomplete_array *ia =
3938     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3939   ia->datasize = 10;
3940   for (int i = 0; i < ia->datasize; ++i)
3941     ia->data[i] = i * 1.234;
3942
3943   // Check named initializers.
3944   struct named_init ni = {
3945     .number = 34,
3946     .name = L"Test wide string",
3947     .average = 543.34343,
3948   };
3949
3950   ni.number = 58;
3951
3952   int dynamic_array[ni.number];
3953   dynamic_array[ni.number - 1] = 543;
3954
3955   // work around unused variable warnings
3956   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3957           || dynamic_array[ni.number - 1] != 543);
3958
3959   ;
3960   return 0;
3961 }
3962 _ACEOF
3963 for ac_arg in '' -std=gnu99 -c99 -xc99=all -qlanglvl=extc99
3964 do
3965   CC="$ac_save_CC $ac_arg"
3966   rm -f conftest.$ac_objext
3967 if { (ac_try="$ac_compile"
3968 case "(($ac_try" in
3969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970   *) ac_try_echo=$ac_try;;
3971 esac
3972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3973 $as_echo "$ac_try_echo") >&5
3974   (eval "$ac_compile") 2>conftest.er1
3975   ac_status=$?
3976   grep -v '^ *+' conftest.er1 >conftest.err
3977   rm -f conftest.er1
3978   cat conftest.err >&5
3979   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980   (exit $ac_status); } && {
3981          test -z "$ac_c_werror_flag" ||
3982          test ! -s conftest.err
3983        } && test -s conftest.$ac_objext; then
3984   ac_cv_prog_cc_c99=$ac_arg
3985 else
3986   $as_echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3988
3989
3990 fi
3991
3992 rm -f core conftest.err conftest.$ac_objext
3993   test "x$ac_cv_prog_cc_c99" != "xno" && break
3994 done
3995 rm -f conftest.$ac_ext
3996 CC=$ac_save_CC
3997
3998 fi
3999 # AC_CACHE_VAL
4000 case "x$ac_cv_prog_cc_c99" in
4001   x)
4002     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4003 $as_echo "none needed" >&6; } ;;
4004   xno)
4005     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4006 $as_echo "unsupported" >&6; } ;;
4007   *)
4008     CC="$CC $ac_cv_prog_cc_c99"
4009     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4010 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4011 esac
4012 if test "x$ac_cv_prog_cc_c99" != xno; then
4013   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4014 else
4015   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4016 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4017 if test "${ac_cv_prog_cc_c89+set}" = set; then
4018   $as_echo_n "(cached) " >&6
4019 else
4020   ac_cv_prog_cc_c89=no
4021 ac_save_CC=$CC
4022 cat >conftest.$ac_ext <<_ACEOF
4023 /* confdefs.h.  */
4024 _ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h.  */
4028 #include <stdarg.h>
4029 #include <stdio.h>
4030 #include <sys/types.h>
4031 #include <sys/stat.h>
4032 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4033 struct buf { int x; };
4034 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4035 static char *e (p, i)
4036      char **p;
4037      int i;
4038 {
4039   return p[i];
4040 }
4041 static char *f (char * (*g) (char **, int), char **p, ...)
4042 {
4043   char *s;
4044   va_list v;
4045   va_start (v,p);
4046   s = g (p, va_arg (v,int));
4047   va_end (v);
4048   return s;
4049 }
4050
4051 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4052    function prototypes and stuff, but not '\xHH' hex character constants.
4053    These don't provoke an error unfortunately, instead are silently treated
4054    as 'x'.  The following induces an error, until -std is added to get
4055    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4056    array size at least.  It's necessary to write '\x00'==0 to get something
4057    that's true only with -std.  */
4058 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4059
4060 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4061    inside strings and character constants.  */
4062 #define FOO(x) 'x'
4063 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4064
4065 int test (int i, double x);
4066 struct s1 {int (*f) (int a);};
4067 struct s2 {int (*f) (double a);};
4068 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4069 int argc;
4070 char **argv;
4071 int
4072 main ()
4073 {
4074 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4075   ;
4076   return 0;
4077 }
4078 _ACEOF
4079 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4080         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4081 do
4082   CC="$ac_save_CC $ac_arg"
4083   rm -f conftest.$ac_objext
4084 if { (ac_try="$ac_compile"
4085 case "(($ac_try" in
4086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087   *) ac_try_echo=$ac_try;;
4088 esac
4089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4090 $as_echo "$ac_try_echo") >&5
4091   (eval "$ac_compile") 2>conftest.er1
4092   ac_status=$?
4093   grep -v '^ *+' conftest.er1 >conftest.err
4094   rm -f conftest.er1
4095   cat conftest.err >&5
4096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097   (exit $ac_status); } && {
4098          test -z "$ac_c_werror_flag" ||
4099          test ! -s conftest.err
4100        } && test -s conftest.$ac_objext; then
4101   ac_cv_prog_cc_c89=$ac_arg
4102 else
4103   $as_echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4105
4106
4107 fi
4108
4109 rm -f core conftest.err conftest.$ac_objext
4110   test "x$ac_cv_prog_cc_c89" != "xno" && break
4111 done
4112 rm -f conftest.$ac_ext
4113 CC=$ac_save_CC
4114
4115 fi
4116 # AC_CACHE_VAL
4117 case "x$ac_cv_prog_cc_c89" in
4118   x)
4119     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4120 $as_echo "none needed" >&6; } ;;
4121   xno)
4122     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4123 $as_echo "unsupported" >&6; } ;;
4124   *)
4125     CC="$CC $ac_cv_prog_cc_c89"
4126     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4127 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4128 esac
4129 if test "x$ac_cv_prog_cc_c89" != xno; then
4130   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4131 else
4132   ac_cv_prog_cc_stdc=no
4133 fi
4134
4135
4136 fi
4137
4138  ;;
4139 esac
4140   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
4141 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4142   if test "${ac_cv_prog_cc_stdc+set}" = set; then
4143   $as_echo_n "(cached) " >&6
4144 fi
4145
4146   case $ac_cv_prog_cc_stdc in
4147   no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4148 $as_echo "unsupported" >&6; } ;;
4149   '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
4150 $as_echo "none needed" >&6; } ;;
4151   *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4152 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4153 esac
4154
4155
4156 if test "x$CC" != xcc; then
4157   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4158 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4159 else
4160   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4161 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4162 fi
4163 set dummy $CC; ac_cc=`$as_echo "$2" |
4164                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4165 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4166   $as_echo_n "(cached) " >&6
4167 else
4168   cat >conftest.$ac_ext <<_ACEOF
4169 /* confdefs.h.  */
4170 _ACEOF
4171 cat confdefs.h >>conftest.$ac_ext
4172 cat >>conftest.$ac_ext <<_ACEOF
4173 /* end confdefs.h.  */
4174
4175 int
4176 main ()
4177 {
4178
4179   ;
4180   return 0;
4181 }
4182 _ACEOF
4183 # Make sure it works both with $CC and with simple cc.
4184 # We do the test twice because some compilers refuse to overwrite an
4185 # existing .o file with -o, though they will create one.
4186 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4187 rm -f conftest2.*
4188 if { (case "(($ac_try" in
4189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190   *) ac_try_echo=$ac_try;;
4191 esac
4192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4193 $as_echo "$ac_try_echo") >&5
4194   (eval "$ac_try") 2>&5
4195   ac_status=$?
4196   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197   (exit $ac_status); } &&
4198    test -f conftest2.$ac_objext && { (case "(($ac_try" in
4199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200   *) ac_try_echo=$ac_try;;
4201 esac
4202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4203 $as_echo "$ac_try_echo") >&5
4204   (eval "$ac_try") 2>&5
4205   ac_status=$?
4206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207   (exit $ac_status); };
4208 then
4209   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4210   if test "x$CC" != xcc; then
4211     # Test first that cc exists at all.
4212     if { ac_try='cc -c conftest.$ac_ext >&5'
4213   { (case "(($ac_try" in
4214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215   *) ac_try_echo=$ac_try;;
4216 esac
4217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4218 $as_echo "$ac_try_echo") >&5
4219   (eval "$ac_try") 2>&5
4220   ac_status=$?
4221   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222   (exit $ac_status); }; }; then
4223       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4224       rm -f conftest2.*
4225       if { (case "(($ac_try" in
4226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227   *) ac_try_echo=$ac_try;;
4228 esac
4229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4230 $as_echo "$ac_try_echo") >&5
4231   (eval "$ac_try") 2>&5
4232   ac_status=$?
4233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); } &&
4235          test -f conftest2.$ac_objext && { (case "(($ac_try" in
4236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237   *) ac_try_echo=$ac_try;;
4238 esac
4239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4240 $as_echo "$ac_try_echo") >&5
4241   (eval "$ac_try") 2>&5
4242   ac_status=$?
4243   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244   (exit $ac_status); };
4245       then
4246         # cc works too.
4247         :
4248       else
4249         # cc exists but doesn't like -o.
4250         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4251       fi
4252     fi
4253   fi
4254 else
4255   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4256 fi
4257 rm -f core conftest*
4258
4259 fi
4260 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4261   { $as_echo "$as_me:$LINENO: result: yes" >&5
4262 $as_echo "yes" >&6; }
4263 else
4264   { $as_echo "$as_me:$LINENO: result: no" >&5
4265 $as_echo "no" >&6; }
4266
4267 cat >>confdefs.h <<\_ACEOF
4268 #define NO_MINUS_C_MINUS_O 1
4269 _ACEOF
4270
4271 fi
4272
4273 # FIXME: we rely on the cache variable name because
4274 # there is no other way.
4275 set dummy $CC
4276 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4277 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4278    # Losing compiler, so override with the script.
4279    # FIXME: It is wrong to rewrite CC.
4280    # But if we don't then we get into trouble of one sort or another.
4281    # A longer-term fix would be to have automake use am__CC in this case,
4282    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4283    CC="$am_aux_dir/compile $CC"
4284 fi
4285
4286
4287 ac_ext=c
4288 ac_cpp='$CPP $CPPFLAGS'
4289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4292 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4293 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4294 # On Suns, sometimes $CPP names a directory.
4295 if test -n "$CPP" && test -d "$CPP"; then
4296   CPP=
4297 fi
4298 if test -z "$CPP"; then
4299   if test "${ac_cv_prog_CPP+set}" = set; then
4300   $as_echo_n "(cached) " >&6
4301 else
4302       # Double quotes because CPP needs to be expanded
4303     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4304     do
4305       ac_preproc_ok=false
4306 for ac_c_preproc_warn_flag in '' yes
4307 do
4308   # Use a header file that comes with gcc, so configuring glibc
4309   # with a fresh cross-compiler works.
4310   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4311   # <limits.h> exists even on freestanding compilers.
4312   # On the NeXT, cc -E runs the code through the compiler's parser,
4313   # not just through cpp. "Syntax error" is here to catch this case.
4314   cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h.  */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h.  */
4320 #ifdef __STDC__
4321 # include <limits.h>
4322 #else
4323 # include <assert.h>
4324 #endif
4325                      Syntax error
4326 _ACEOF
4327 if { (ac_try="$ac_cpp conftest.$ac_ext"
4328 case "(($ac_try" in
4329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330   *) ac_try_echo=$ac_try;;
4331 esac
4332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4333 $as_echo "$ac_try_echo") >&5
4334   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4335   ac_status=$?
4336   grep -v '^ *+' conftest.er1 >conftest.err
4337   rm -f conftest.er1
4338   cat conftest.err >&5
4339   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); } >/dev/null && {
4341          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4342          test ! -s conftest.err
4343        }; then
4344   :
4345 else
4346   $as_echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4348
4349   # Broken: fails on valid input.
4350 continue
4351 fi
4352
4353 rm -f conftest.err conftest.$ac_ext
4354
4355   # OK, works on sane cases.  Now check whether nonexistent headers
4356   # can be detected and how.
4357   cat >conftest.$ac_ext <<_ACEOF
4358 /* confdefs.h.  */
4359 _ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h.  */
4363 #include <ac_nonexistent.h>
4364 _ACEOF
4365 if { (ac_try="$ac_cpp conftest.$ac_ext"
4366 case "(($ac_try" in
4367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368   *) ac_try_echo=$ac_try;;
4369 esac
4370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4371 $as_echo "$ac_try_echo") >&5
4372   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4373   ac_status=$?
4374   grep -v '^ *+' conftest.er1 >conftest.err
4375   rm -f conftest.er1
4376   cat conftest.err >&5
4377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378   (exit $ac_status); } >/dev/null && {
4379          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4380          test ! -s conftest.err
4381        }; then
4382   # Broken: success on invalid input.
4383 continue
4384 else
4385   $as_echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4387
4388   # Passes both tests.
4389 ac_preproc_ok=:
4390 break
4391 fi
4392
4393 rm -f conftest.err conftest.$ac_ext
4394
4395 done
4396 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4397 rm -f conftest.err conftest.$ac_ext
4398 if $ac_preproc_ok; then
4399   break
4400 fi
4401
4402     done
4403     ac_cv_prog_CPP=$CPP
4404
4405 fi
4406   CPP=$ac_cv_prog_CPP
4407 else
4408   ac_cv_prog_CPP=$CPP
4409 fi
4410 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4411 $as_echo "$CPP" >&6; }
4412 ac_preproc_ok=false
4413 for ac_c_preproc_warn_flag in '' yes
4414 do
4415   # Use a header file that comes with gcc, so configuring glibc
4416   # with a fresh cross-compiler works.
4417   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4418   # <limits.h> exists even on freestanding compilers.
4419   # On the NeXT, cc -E runs the code through the compiler's parser,
4420   # not just through cpp. "Syntax error" is here to catch this case.
4421   cat >conftest.$ac_ext <<_ACEOF
4422 /* confdefs.h.  */
4423 _ACEOF
4424 cat confdefs.h >>conftest.$ac_ext
4425 cat >>conftest.$ac_ext <<_ACEOF
4426 /* end confdefs.h.  */
4427 #ifdef __STDC__
4428 # include <limits.h>
4429 #else
4430 # include <assert.h>
4431 #endif
4432                      Syntax error
4433 _ACEOF
4434 if { (ac_try="$ac_cpp conftest.$ac_ext"
4435 case "(($ac_try" in
4436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4437   *) ac_try_echo=$ac_try;;
4438 esac
4439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4440 $as_echo "$ac_try_echo") >&5
4441   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4442   ac_status=$?
4443   grep -v '^ *+' conftest.er1 >conftest.err
4444   rm -f conftest.er1
4445   cat conftest.err >&5
4446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447   (exit $ac_status); } >/dev/null && {
4448          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4449          test ! -s conftest.err
4450        }; then
4451   :
4452 else
4453   $as_echo "$as_me: failed program was:" >&5
4454 sed 's/^/| /' conftest.$ac_ext >&5
4455
4456   # Broken: fails on valid input.
4457 continue
4458 fi
4459
4460 rm -f conftest.err conftest.$ac_ext
4461
4462   # OK, works on sane cases.  Now check whether nonexistent headers
4463   # can be detected and how.
4464   cat >conftest.$ac_ext <<_ACEOF
4465 /* confdefs.h.  */
4466 _ACEOF
4467 cat confdefs.h >>conftest.$ac_ext
4468 cat >>conftest.$ac_ext <<_ACEOF
4469 /* end confdefs.h.  */
4470 #include <ac_nonexistent.h>
4471 _ACEOF
4472 if { (ac_try="$ac_cpp conftest.$ac_ext"
4473 case "(($ac_try" in
4474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475   *) ac_try_echo=$ac_try;;
4476 esac
4477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4478 $as_echo "$ac_try_echo") >&5
4479   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4480   ac_status=$?
4481   grep -v '^ *+' conftest.er1 >conftest.err
4482   rm -f conftest.er1
4483   cat conftest.err >&5
4484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485   (exit $ac_status); } >/dev/null && {
4486          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4487          test ! -s conftest.err
4488        }; then
4489   # Broken: success on invalid input.
4490 continue
4491 else
4492   $as_echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4494
4495   # Passes both tests.
4496 ac_preproc_ok=:
4497 break
4498 fi
4499
4500 rm -f conftest.err conftest.$ac_ext
4501
4502 done
4503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4504 rm -f conftest.err conftest.$ac_ext
4505 if $ac_preproc_ok; then
4506   :
4507 else
4508   { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4509 See \`config.log' for more details." >&5
4510 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4511 See \`config.log' for more details." >&2;}
4512    { (exit 1); exit 1; }; }
4513 fi
4514
4515 ac_ext=c
4516 ac_cpp='$CPP $CPPFLAGS'
4517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4520
4521
4522
4523 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4524 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4525 if test "${ac_cv_path_GREP+set}" = set; then
4526   $as_echo_n "(cached) " >&6
4527 else
4528   # Extract the first word of "grep ggrep" to use in msg output
4529 if test -z "$GREP"; then
4530 set dummy grep ggrep; ac_prog_name=$2
4531 if test "${ac_cv_path_GREP+set}" = set; then
4532   $as_echo_n "(cached) " >&6
4533 else
4534   ac_path_GREP_found=false
4535 # Loop through the user's path and test for each of PROGNAME-LIST
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4538 do
4539   IFS=$as_save_IFS
4540   test -z "$as_dir" && as_dir=.
4541   for ac_prog in grep ggrep; do
4542   for ac_exec_ext in '' $ac_executable_extensions; do
4543     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4544     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4545     # Check for GNU ac_path_GREP and select it if it is found.
4546   # Check for GNU $ac_path_GREP
4547 case `"$ac_path_GREP" --version 2>&1` in
4548 *GNU*)
4549   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4550 *)
4551   ac_count=0
4552   $as_echo_n 0123456789 >"conftest.in"
4553   while :
4554   do
4555     cat "conftest.in" "conftest.in" >"conftest.tmp"
4556     mv "conftest.tmp" "conftest.in"
4557     cp "conftest.in" "conftest.nl"
4558     $as_echo 'GREP' >> "conftest.nl"
4559     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4560     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4561     ac_count=`expr $ac_count + 1`
4562     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4563       # Best one so far, save it but keep looking for a better one
4564       ac_cv_path_GREP="$ac_path_GREP"
4565       ac_path_GREP_max=$ac_count
4566     fi
4567     # 10*(2^10) chars as input seems more than enough
4568     test $ac_count -gt 10 && break
4569   done
4570   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4571 esac
4572
4573
4574     $ac_path_GREP_found && break 3
4575   done
4576 done
4577
4578 done
4579 IFS=$as_save_IFS
4580
4581
4582 fi
4583
4584 GREP="$ac_cv_path_GREP"
4585 if test -z "$GREP"; then
4586   { { $as_echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4587 $as_echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4588    { (exit 1); exit 1; }; }
4589 fi
4590
4591 else
4592   ac_cv_path_GREP=$GREP
4593 fi
4594
4595
4596 fi
4597 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4598 $as_echo "$ac_cv_path_GREP" >&6; }
4599  GREP="$ac_cv_path_GREP"
4600
4601
4602 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4603 $as_echo_n "checking for egrep... " >&6; }
4604 if test "${ac_cv_path_EGREP+set}" = set; then
4605   $as_echo_n "(cached) " >&6
4606 else
4607   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4608    then ac_cv_path_EGREP="$GREP -E"
4609    else
4610      # Extract the first word of "egrep" to use in msg output
4611 if test -z "$EGREP"; then
4612 set dummy egrep; ac_prog_name=$2
4613 if test "${ac_cv_path_EGREP+set}" = set; then
4614   $as_echo_n "(cached) " >&6
4615 else
4616   ac_path_EGREP_found=false
4617 # Loop through the user's path and test for each of PROGNAME-LIST
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4620 do
4621   IFS=$as_save_IFS
4622   test -z "$as_dir" && as_dir=.
4623   for ac_prog in egrep; do
4624   for ac_exec_ext in '' $ac_executable_extensions; do
4625     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4626     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4627     # Check for GNU ac_path_EGREP and select it if it is found.
4628   # Check for GNU $ac_path_EGREP
4629 case `"$ac_path_EGREP" --version 2>&1` in
4630 *GNU*)
4631   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4632 *)
4633   ac_count=0
4634   $as_echo_n 0123456789 >"conftest.in"
4635   while :
4636   do
4637     cat "conftest.in" "conftest.in" >"conftest.tmp"
4638     mv "conftest.tmp" "conftest.in"
4639     cp "conftest.in" "conftest.nl"
4640     $as_echo 'EGREP' >> "conftest.nl"
4641     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4642     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4643     ac_count=`expr $ac_count + 1`
4644     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4645       # Best one so far, save it but keep looking for a better one
4646       ac_cv_path_EGREP="$ac_path_EGREP"
4647       ac_path_EGREP_max=$ac_count
4648     fi
4649     # 10*(2^10) chars as input seems more than enough
4650     test $ac_count -gt 10 && break
4651   done
4652   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4653 esac
4654
4655
4656     $ac_path_EGREP_found && break 3
4657   done
4658 done
4659
4660 done
4661 IFS=$as_save_IFS
4662
4663
4664 fi
4665
4666 EGREP="$ac_cv_path_EGREP"
4667 if test -z "$EGREP"; then
4668   { { $as_echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4669 $as_echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4670    { (exit 1); exit 1; }; }
4671 fi
4672
4673 else
4674   ac_cv_path_EGREP=$EGREP
4675 fi
4676
4677
4678    fi
4679 fi
4680 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4681 $as_echo "$ac_cv_path_EGREP" >&6; }
4682  EGREP="$ac_cv_path_EGREP"
4683
4684
4685 if test $ac_cv_c_compiler_gnu = yes; then
4686     { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4687 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4688 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4689   $as_echo_n "(cached) " >&6
4690 else
4691     ac_pattern="Autoconf.*'x'"
4692   cat >conftest.$ac_ext <<_ACEOF
4693 /* confdefs.h.  */
4694 _ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h.  */
4698 #include <sgtty.h>
4699 Autoconf TIOCGETP
4700 _ACEOF
4701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4702   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4703   ac_cv_prog_gcc_traditional=yes
4704 else
4705   ac_cv_prog_gcc_traditional=no
4706 fi
4707 rm -f conftest*
4708
4709
4710   if test $ac_cv_prog_gcc_traditional = no; then
4711     cat >conftest.$ac_ext <<_ACEOF
4712 /* confdefs.h.  */
4713 _ACEOF
4714 cat confdefs.h >>conftest.$ac_ext
4715 cat >>conftest.$ac_ext <<_ACEOF
4716 /* end confdefs.h.  */
4717 #include <termio.h>
4718 Autoconf TCGETA
4719 _ACEOF
4720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4721   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4722   ac_cv_prog_gcc_traditional=yes
4723 fi
4724 rm -f conftest*
4725
4726   fi
4727 fi
4728 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4729 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4730   if test $ac_cv_prog_gcc_traditional = yes; then
4731     CC="$CC -traditional"
4732   fi
4733 fi
4734
4735 if test -n "$ac_tool_prefix"; then
4736   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4737 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4738 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if test "${ac_cv_prog_RANLIB+set}" = set; then
4741   $as_echo_n "(cached) " >&6
4742 else
4743   if test -n "$RANLIB"; then
4744   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749   IFS=$as_save_IFS
4750   test -z "$as_dir" && as_dir=.
4751   for ac_exec_ext in '' $ac_executable_extensions; do
4752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4754     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755     break 2
4756   fi
4757 done
4758 done
4759 IFS=$as_save_IFS
4760
4761 fi
4762 fi
4763 RANLIB=$ac_cv_prog_RANLIB
4764 if test -n "$RANLIB"; then
4765   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4766 $as_echo "$RANLIB" >&6; }
4767 else
4768   { $as_echo "$as_me:$LINENO: result: no" >&5
4769 $as_echo "no" >&6; }
4770 fi
4771
4772
4773 fi
4774 if test -z "$ac_cv_prog_RANLIB"; then
4775   ac_ct_RANLIB=$RANLIB
4776   # Extract the first word of "ranlib", so it can be a program name with args.
4777 set dummy ranlib; ac_word=$2
4778 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4779 $as_echo_n "checking for $ac_word... " >&6; }
4780 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4781   $as_echo_n "(cached) " >&6
4782 else
4783   if test -n "$ac_ct_RANLIB"; then
4784   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4785 else
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4788 do
4789   IFS=$as_save_IFS
4790   test -z "$as_dir" && as_dir=.
4791   for ac_exec_ext in '' $ac_executable_extensions; do
4792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4793     ac_cv_prog_ac_ct_RANLIB="ranlib"
4794     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4795     break 2
4796   fi
4797 done
4798 done
4799 IFS=$as_save_IFS
4800
4801 fi
4802 fi
4803 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4804 if test -n "$ac_ct_RANLIB"; then
4805   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4806 $as_echo "$ac_ct_RANLIB" >&6; }
4807 else
4808   { $as_echo "$as_me:$LINENO: result: no" >&5
4809 $as_echo "no" >&6; }
4810 fi
4811
4812   if test "x$ac_ct_RANLIB" = x; then
4813     RANLIB=":"
4814   else
4815     case $cross_compiling:$ac_tool_warned in
4816 yes:)
4817 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4818 whose name does not start with the host triplet.  If you think this
4819 configuration is useful to you, please write to autoconf@gnu.org." >&5
4820 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4821 whose name does not start with the host triplet.  If you think this
4822 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4823 ac_tool_warned=yes ;;
4824 esac
4825     RANLIB=$ac_ct_RANLIB
4826   fi
4827 else
4828   RANLIB="$ac_cv_prog_RANLIB"
4829 fi
4830
4831 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4832 $as_echo_n "checking whether ln -s works... " >&6; }
4833 LN_S=$as_ln_s
4834 if test "$LN_S" = "ln -s"; then
4835   { $as_echo "$as_me:$LINENO: result: yes" >&5
4836 $as_echo "yes" >&6; }
4837 else
4838   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4839 $as_echo "no, using $LN_S" >&6; }
4840 fi
4841
4842
4843 cat >>confdefs.h <<\_ACEOF
4844 #define _GNU_SOURCE 1
4845 _ACEOF
4846
4847
4848
4849 { $as_echo "$as_me:$LINENO: checking for AIX" >&5
4850 $as_echo_n "checking for AIX... " >&6; }
4851 cat >conftest.$ac_ext <<_ACEOF
4852 /* confdefs.h.  */
4853 _ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h.  */
4857 #ifdef _AIX
4858   yes
4859 #endif
4860
4861 _ACEOF
4862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4863   $EGREP "yes" >/dev/null 2>&1; then
4864   { $as_echo "$as_me:$LINENO: result: yes" >&5
4865 $as_echo "yes" >&6; }
4866 cat >>confdefs.h <<\_ACEOF
4867 #define _ALL_SOURCE 1
4868 _ACEOF
4869
4870 else
4871   { $as_echo "$as_me:$LINENO: result: no" >&5
4872 $as_echo "no" >&6; }
4873 fi
4874 rm -f conftest*
4875
4876
4877 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4878 $as_echo_n "checking for ANSI C header files... " >&6; }
4879 if test "${ac_cv_header_stdc+set}" = set; then
4880   $as_echo_n "(cached) " >&6
4881 else
4882   cat >conftest.$ac_ext <<_ACEOF
4883 /* confdefs.h.  */
4884 _ACEOF
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h.  */
4888 #include <stdlib.h>
4889 #include <stdarg.h>
4890 #include <string.h>
4891 #include <float.h>
4892
4893 int
4894 main ()
4895 {
4896
4897   ;
4898   return 0;
4899 }
4900 _ACEOF
4901 rm -f conftest.$ac_objext
4902 if { (ac_try="$ac_compile"
4903 case "(($ac_try" in
4904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905   *) ac_try_echo=$ac_try;;
4906 esac
4907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4908 $as_echo "$ac_try_echo") >&5
4909   (eval "$ac_compile") 2>conftest.er1
4910   ac_status=$?
4911   grep -v '^ *+' conftest.er1 >conftest.err
4912   rm -f conftest.er1
4913   cat conftest.err >&5
4914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915   (exit $ac_status); } && {
4916          test -z "$ac_c_werror_flag" ||
4917          test ! -s conftest.err
4918        } && test -s conftest.$ac_objext; then
4919   ac_cv_header_stdc=yes
4920 else
4921   $as_echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4923
4924         ac_cv_header_stdc=no
4925 fi
4926
4927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4928
4929 if test $ac_cv_header_stdc = yes; then
4930   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4931   cat >conftest.$ac_ext <<_ACEOF
4932 /* confdefs.h.  */
4933 _ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h.  */
4937 #include <string.h>
4938
4939 _ACEOF
4940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4941   $EGREP "memchr" >/dev/null 2>&1; then
4942   :
4943 else
4944   ac_cv_header_stdc=no
4945 fi
4946 rm -f conftest*
4947
4948 fi
4949
4950 if test $ac_cv_header_stdc = yes; then
4951   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4952   cat >conftest.$ac_ext <<_ACEOF
4953 /* confdefs.h.  */
4954 _ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h.  */
4958 #include <stdlib.h>
4959
4960 _ACEOF
4961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4962   $EGREP "free" >/dev/null 2>&1; then
4963   :
4964 else
4965   ac_cv_header_stdc=no
4966 fi
4967 rm -f conftest*
4968
4969 fi
4970
4971 if test $ac_cv_header_stdc = yes; then
4972   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4973   if test "$cross_compiling" = yes; then
4974   :
4975 else
4976   cat >conftest.$ac_ext <<_ACEOF
4977 /* confdefs.h.  */
4978 _ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h.  */
4982 #include <ctype.h>
4983 #include <stdlib.h>
4984 #if ((' ' & 0x0FF) == 0x020)
4985 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4986 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4987 #else
4988 # define ISLOWER(c) \
4989                    (('a' <= (c) && (c) <= 'i') \
4990                      || ('j' <= (c) && (c) <= 'r') \
4991                      || ('s' <= (c) && (c) <= 'z'))
4992 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4993 #endif
4994
4995 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4996 int
4997 main ()
4998 {
4999   int i;
5000   for (i = 0; i < 256; i++)
5001     if (XOR (islower (i), ISLOWER (i))
5002         || toupper (i) != TOUPPER (i))
5003       return 2;
5004   return 0;
5005 }
5006 _ACEOF
5007 rm -f conftest$ac_exeext
5008 if { (ac_try="$ac_link"
5009 case "(($ac_try" in
5010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011   *) ac_try_echo=$ac_try;;
5012 esac
5013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5014 $as_echo "$ac_try_echo") >&5
5015   (eval "$ac_link") 2>&5
5016   ac_status=$?
5017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5019   { (case "(($ac_try" in
5020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5021   *) ac_try_echo=$ac_try;;
5022 esac
5023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5024 $as_echo "$ac_try_echo") >&5
5025   (eval "$ac_try") 2>&5
5026   ac_status=$?
5027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028   (exit $ac_status); }; }; then
5029   :
5030 else
5031   $as_echo "$as_me: program exited with status $ac_status" >&5
5032 $as_echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5034
5035 ( exit $ac_status )
5036 ac_cv_header_stdc=no
5037 fi
5038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5039 fi
5040
5041
5042 fi
5043 fi
5044 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5045 $as_echo "$ac_cv_header_stdc" >&6; }
5046 if test $ac_cv_header_stdc = yes; then
5047
5048 cat >>confdefs.h <<\_ACEOF
5049 #define STDC_HEADERS 1
5050 _ACEOF
5051
5052 fi
5053
5054 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5065                   inttypes.h stdint.h unistd.h
5066 do
5067 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5068 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5069 $as_echo_n "checking for $ac_header... " >&6; }
5070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5071   $as_echo_n "(cached) " >&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 $ac_includes_default
5080
5081 #include <$ac_header>
5082 _ACEOF
5083 rm -f conftest.$ac_objext
5084 if { (ac_try="$ac_compile"
5085 case "(($ac_try" in
5086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5087   *) ac_try_echo=$ac_try;;
5088 esac
5089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5090 $as_echo "$ac_try_echo") >&5
5091   (eval "$ac_compile") 2>conftest.er1
5092   ac_status=$?
5093   grep -v '^ *+' conftest.er1 >conftest.err
5094   rm -f conftest.er1
5095   cat conftest.err >&5
5096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097   (exit $ac_status); } && {
5098          test -z "$ac_c_werror_flag" ||
5099          test ! -s conftest.err
5100        } && test -s conftest.$ac_objext; then
5101   eval "$as_ac_Header=yes"
5102 else
5103   $as_echo "$as_me: failed program was:" >&5
5104 sed 's/^/| /' conftest.$ac_ext >&5
5105
5106         eval "$as_ac_Header=no"
5107 fi
5108
5109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5110 fi
5111 ac_res=`eval 'as_val=${'$as_ac_Header'}
5112                  $as_echo "$as_val"'`
5113                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5114 $as_echo "$ac_res" >&6; }
5115 if test `eval 'as_val=${'$as_ac_Header'}
5116                  $as_echo "$as_val"'` = yes; then
5117   cat >>confdefs.h <<_ACEOF
5118 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5119 _ACEOF
5120
5121 fi
5122
5123 done
5124
5125
5126 if test "${ac_cv_header_minix_config_h+set}" = set; then
5127   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5128 $as_echo_n "checking for minix/config.h... " >&6; }
5129 if test "${ac_cv_header_minix_config_h+set}" = set; then
5130   $as_echo_n "(cached) " >&6
5131 fi
5132 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5133 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5134 else
5135   # Is the header compilable?
5136 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5137 $as_echo_n "checking minix/config.h usability... " >&6; }
5138 cat >conftest.$ac_ext <<_ACEOF
5139 /* confdefs.h.  */
5140 _ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h.  */
5144 $ac_includes_default
5145 #include <minix/config.h>
5146 _ACEOF
5147 rm -f conftest.$ac_objext
5148 if { (ac_try="$ac_compile"
5149 case "(($ac_try" in
5150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5151   *) ac_try_echo=$ac_try;;
5152 esac
5153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5154 $as_echo "$ac_try_echo") >&5
5155   (eval "$ac_compile") 2>conftest.er1
5156   ac_status=$?
5157   grep -v '^ *+' conftest.er1 >conftest.err
5158   rm -f conftest.er1
5159   cat conftest.err >&5
5160   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161   (exit $ac_status); } && {
5162          test -z "$ac_c_werror_flag" ||
5163          test ! -s conftest.err
5164        } && test -s conftest.$ac_objext; then
5165   ac_header_compiler=yes
5166 else
5167   $as_echo "$as_me: failed program was:" >&5
5168 sed 's/^/| /' conftest.$ac_ext >&5
5169
5170         ac_header_compiler=no
5171 fi
5172
5173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5174 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5175 $as_echo "$ac_header_compiler" >&6; }
5176
5177 # Is the header present?
5178 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5179 $as_echo_n "checking minix/config.h presence... " >&6; }
5180 cat >conftest.$ac_ext <<_ACEOF
5181 /* confdefs.h.  */
5182 _ACEOF
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h.  */
5186 #include <minix/config.h>
5187 _ACEOF
5188 if { (ac_try="$ac_cpp conftest.$ac_ext"
5189 case "(($ac_try" in
5190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191   *) ac_try_echo=$ac_try;;
5192 esac
5193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5194 $as_echo "$ac_try_echo") >&5
5195   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5196   ac_status=$?
5197   grep -v '^ *+' conftest.er1 >conftest.err
5198   rm -f conftest.er1
5199   cat conftest.err >&5
5200   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201   (exit $ac_status); } >/dev/null && {
5202          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5203          test ! -s conftest.err
5204        }; then
5205   ac_header_preproc=yes
5206 else
5207   $as_echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5209
5210   ac_header_preproc=no
5211 fi
5212
5213 rm -f conftest.err conftest.$ac_ext
5214 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5215 $as_echo "$ac_header_preproc" >&6; }
5216
5217 # So?  What about this header?
5218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5219   yes:no: )
5220     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5221 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5222     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5223 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5224     ac_header_preproc=yes
5225     ;;
5226   no:yes:* )
5227     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5228 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5229     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
5230 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
5231     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5232 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5233     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
5234 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5235     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5236 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5237     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5238 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5239     ( cat <<\_ASBOX
5240 ## ------------------------------------ ##
5241 ## Report this to bug-coreutils@gnu.org ##
5242 ## ------------------------------------ ##
5243 _ASBOX
5244      ) | sed "s/^/$as_me: WARNING:     /" >&2
5245     ;;
5246 esac
5247 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5248 $as_echo_n "checking for minix/config.h... " >&6; }
5249 if test "${ac_cv_header_minix_config_h+set}" = set; then
5250   $as_echo_n "(cached) " >&6
5251 else
5252   ac_cv_header_minix_config_h=$ac_header_preproc
5253 fi
5254 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5255 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5256
5257 fi
5258 if test $ac_cv_header_minix_config_h = yes; then
5259   MINIX=yes
5260 else
5261   MINIX=
5262 fi
5263
5264
5265 if test "$MINIX" = yes; then
5266
5267 cat >>confdefs.h <<\_ACEOF
5268 #define _POSIX_SOURCE 1
5269 _ACEOF
5270
5271
5272 cat >>confdefs.h <<\_ACEOF
5273 #define _POSIX_1_SOURCE 2
5274 _ACEOF
5275
5276
5277 cat >>confdefs.h <<\_ACEOF
5278 #define _MINIX 1
5279 _ACEOF
5280
5281 fi
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5294 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5295 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5296   $as_echo_n "(cached) " >&6
5297 else
5298   cat >conftest.$ac_ext <<_ACEOF
5299 /* confdefs.h.  */
5300 _ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h.  */
5304
5305 #         define __EXTENSIONS__ 1
5306           $ac_includes_default
5307 int
5308 main ()
5309 {
5310
5311   ;
5312   return 0;
5313 }
5314 _ACEOF
5315 rm -f conftest.$ac_objext
5316 if { (ac_try="$ac_compile"
5317 case "(($ac_try" in
5318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5319   *) ac_try_echo=$ac_try;;
5320 esac
5321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5322 $as_echo "$ac_try_echo") >&5
5323   (eval "$ac_compile") 2>conftest.er1
5324   ac_status=$?
5325   grep -v '^ *+' conftest.er1 >conftest.err
5326   rm -f conftest.er1
5327   cat conftest.err >&5
5328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329   (exit $ac_status); } && {
5330          test -z "$ac_c_werror_flag" ||
5331          test ! -s conftest.err
5332        } && test -s conftest.$ac_objext; then
5333   ac_cv_safe_to_define___extensions__=yes
5334 else
5335   $as_echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.$ac_ext >&5
5337
5338         ac_cv_safe_to_define___extensions__=no
5339 fi
5340
5341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5342 fi
5343 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5344 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5345   test $ac_cv_safe_to_define___extensions__ = yes &&
5346     cat >>confdefs.h <<\_ACEOF
5347 #define __EXTENSIONS__ 1
5348 _ACEOF
5349
5350   cat >>confdefs.h <<\_ACEOF
5351 #define _POSIX_PTHREAD_SEMANTICS 1
5352 _ACEOF
5353
5354   cat >>confdefs.h <<\_ACEOF
5355 #define _TANDEM_SOURCE 1
5356 _ACEOF
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5367 # for constant arguments.  Useless!
5368 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
5369 $as_echo_n "checking for working alloca.h... " >&6; }
5370 if test "${ac_cv_working_alloca_h+set}" = set; then
5371   $as_echo_n "(cached) " >&6
5372 else
5373   cat >conftest.$ac_ext <<_ACEOF
5374 /* confdefs.h.  */
5375 _ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h.  */
5379 #include <alloca.h>
5380 int
5381 main ()
5382 {
5383 char *p = (char *) alloca (2 * sizeof (int));
5384                           if (p) return 0;
5385   ;
5386   return 0;
5387 }
5388 _ACEOF
5389 rm -f conftest.$ac_objext conftest$ac_exeext
5390 if { (ac_try="$ac_link"
5391 case "(($ac_try" in
5392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393   *) ac_try_echo=$ac_try;;
5394 esac
5395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5396 $as_echo "$ac_try_echo") >&5
5397   (eval "$ac_link") 2>conftest.er1
5398   ac_status=$?
5399   grep -v '^ *+' conftest.er1 >conftest.err
5400   rm -f conftest.er1
5401   cat conftest.err >&5
5402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403   (exit $ac_status); } && {
5404          test -z "$ac_c_werror_flag" ||
5405          test ! -s conftest.err
5406        } && test -s conftest$ac_exeext &&
5407        $as_test_x conftest$ac_exeext; then
5408   ac_cv_working_alloca_h=yes
5409 else
5410   $as_echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5412
5413         ac_cv_working_alloca_h=no
5414 fi
5415
5416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5417       conftest$ac_exeext conftest.$ac_ext
5418 fi
5419 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5420 $as_echo "$ac_cv_working_alloca_h" >&6; }
5421 if test $ac_cv_working_alloca_h = yes; then
5422
5423 cat >>confdefs.h <<\_ACEOF
5424 #define HAVE_ALLOCA_H 1
5425 _ACEOF
5426
5427 fi
5428
5429 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
5430 $as_echo_n "checking for alloca... " >&6; }
5431 if test "${ac_cv_func_alloca_works+set}" = set; then
5432   $as_echo_n "(cached) " >&6
5433 else
5434   cat >conftest.$ac_ext <<_ACEOF
5435 /* confdefs.h.  */
5436 _ACEOF
5437 cat confdefs.h >>conftest.$ac_ext
5438 cat >>conftest.$ac_ext <<_ACEOF
5439 /* end confdefs.h.  */
5440 #ifdef __GNUC__
5441 # define alloca __builtin_alloca
5442 #else
5443 # ifdef _MSC_VER
5444 #  include <malloc.h>
5445 #  define alloca _alloca
5446 # else
5447 #  ifdef HAVE_ALLOCA_H
5448 #   include <alloca.h>
5449 #  else
5450 #   ifdef _AIX
5451  #pragma alloca
5452 #   else
5453 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5454 char *alloca ();
5455 #    endif
5456 #   endif
5457 #  endif
5458 # endif
5459 #endif
5460
5461 int
5462 main ()
5463 {
5464 char *p = (char *) alloca (1);
5465                                     if (p) return 0;
5466   ;
5467   return 0;
5468 }
5469 _ACEOF
5470 rm -f conftest.$ac_objext conftest$ac_exeext
5471 if { (ac_try="$ac_link"
5472 case "(($ac_try" in
5473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474   *) ac_try_echo=$ac_try;;
5475 esac
5476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5477 $as_echo "$ac_try_echo") >&5
5478   (eval "$ac_link") 2>conftest.er1
5479   ac_status=$?
5480   grep -v '^ *+' conftest.er1 >conftest.err
5481   rm -f conftest.er1
5482   cat conftest.err >&5
5483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484   (exit $ac_status); } && {
5485          test -z "$ac_c_werror_flag" ||
5486          test ! -s conftest.err
5487        } && test -s conftest$ac_exeext &&
5488        $as_test_x conftest$ac_exeext; then
5489   ac_cv_func_alloca_works=yes
5490 else
5491   $as_echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.$ac_ext >&5
5493
5494         ac_cv_func_alloca_works=no
5495 fi
5496
5497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5498       conftest$ac_exeext conftest.$ac_ext
5499 fi
5500 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5501 $as_echo "$ac_cv_func_alloca_works" >&6; }
5502
5503 if test $ac_cv_func_alloca_works = yes; then
5504
5505 cat >>confdefs.h <<\_ACEOF
5506 #define HAVE_ALLOCA 1
5507 _ACEOF
5508
5509 else
5510   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5511 # that cause trouble.  Some versions do not even contain alloca or
5512 # contain a buggy version.  If you still want to use their alloca,
5513 # use ar to extract alloca.o from them instead of compiling alloca.c.
5514
5515 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5516
5517 cat >>confdefs.h <<\_ACEOF
5518 #define C_ALLOCA 1
5519 _ACEOF
5520
5521
5522 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5523 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5524 if test "${ac_cv_os_cray+set}" = set; then
5525   $as_echo_n "(cached) " >&6
5526 else
5527   cat >conftest.$ac_ext <<_ACEOF
5528 /* confdefs.h.  */
5529 _ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h.  */
5533 #if defined CRAY && ! defined CRAY2
5534 webecray
5535 #else
5536 wenotbecray
5537 #endif
5538
5539 _ACEOF
5540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5541   $EGREP "webecray" >/dev/null 2>&1; then
5542   ac_cv_os_cray=yes
5543 else
5544   ac_cv_os_cray=no
5545 fi
5546 rm -f conftest*
5547
5548 fi
5549 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5550 $as_echo "$ac_cv_os_cray" >&6; }
5551 if test $ac_cv_os_cray = yes; then
5552   for ac_func in _getb67 GETB67 getb67; do
5553     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5554 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5555 $as_echo_n "checking for $ac_func... " >&6; }
5556 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5557   $as_echo_n "(cached) " >&6
5558 else
5559   cat >conftest.$ac_ext <<_ACEOF
5560 /* confdefs.h.  */
5561 _ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h.  */
5565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5566    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5567 #define $ac_func innocuous_$ac_func
5568
5569 /* System header to define __stub macros and hopefully few prototypes,
5570     which can conflict with char $ac_func (); below.
5571     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5572     <limits.h> exists even on freestanding compilers.  */
5573
5574 #ifdef __STDC__
5575 # include <limits.h>
5576 #else
5577 # include <assert.h>
5578 #endif
5579
5580 #undef $ac_func
5581
5582 /* Override any GCC internal prototype to avoid an error.
5583    Use char because int might match the return type of a GCC
5584    builtin and then its argument prototype would still apply.  */
5585 #ifdef __cplusplus
5586 extern "C"
5587 #endif
5588 char $ac_func ();
5589 /* The GNU C library defines this for functions which it implements
5590     to always fail with ENOSYS.  Some functions are actually named
5591     something starting with __ and the normal name is an alias.  */
5592 #if defined __stub_$ac_func || defined __stub___$ac_func
5593 choke me
5594 #endif
5595
5596 int
5597 main ()
5598 {
5599 return $ac_func ();
5600   ;
5601   return 0;
5602 }
5603 _ACEOF
5604 rm -f conftest.$ac_objext conftest$ac_exeext
5605 if { (ac_try="$ac_link"
5606 case "(($ac_try" in
5607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5608   *) ac_try_echo=$ac_try;;
5609 esac
5610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5611 $as_echo "$ac_try_echo") >&5
5612   (eval "$ac_link") 2>conftest.er1
5613   ac_status=$?
5614   grep -v '^ *+' conftest.er1 >conftest.err
5615   rm -f conftest.er1
5616   cat conftest.err >&5
5617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618   (exit $ac_status); } && {
5619          test -z "$ac_c_werror_flag" ||
5620          test ! -s conftest.err
5621        } && test -s conftest$ac_exeext &&
5622        $as_test_x conftest$ac_exeext; then
5623   eval "$as_ac_var=yes"
5624 else
5625   $as_echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5627
5628         eval "$as_ac_var=no"
5629 fi
5630
5631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5632       conftest$ac_exeext conftest.$ac_ext
5633 fi
5634 ac_res=`eval 'as_val=${'$as_ac_var'}
5635                  $as_echo "$as_val"'`
5636                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5637 $as_echo "$ac_res" >&6; }
5638 if test `eval 'as_val=${'$as_ac_var'}
5639                  $as_echo "$as_val"'` = yes; then
5640
5641 cat >>confdefs.h <<_ACEOF
5642 #define CRAY_STACKSEG_END $ac_func
5643 _ACEOF
5644
5645     break
5646 fi
5647
5648   done
5649 fi
5650
5651 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5652 $as_echo_n "checking stack direction for C alloca... " >&6; }
5653 if test "${ac_cv_c_stack_direction+set}" = set; then
5654   $as_echo_n "(cached) " >&6
5655 else
5656   if test "$cross_compiling" = yes; then
5657   ac_cv_c_stack_direction=0
5658 else
5659   cat >conftest.$ac_ext <<_ACEOF
5660 /* confdefs.h.  */
5661 _ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h.  */
5665 $ac_includes_default
5666 int
5667 find_stack_direction ()
5668 {
5669   static char *addr = 0;
5670   auto char dummy;
5671   if (addr == 0)
5672     {
5673       addr = &dummy;
5674       return find_stack_direction ();
5675     }
5676   else
5677     return (&dummy > addr) ? 1 : -1;
5678 }
5679
5680 int
5681 main ()
5682 {
5683   return find_stack_direction () < 0;
5684 }
5685 _ACEOF
5686 rm -f conftest$ac_exeext
5687 if { (ac_try="$ac_link"
5688 case "(($ac_try" in
5689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690   *) ac_try_echo=$ac_try;;
5691 esac
5692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5693 $as_echo "$ac_try_echo") >&5
5694   (eval "$ac_link") 2>&5
5695   ac_status=$?
5696   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5698   { (case "(($ac_try" in
5699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700   *) ac_try_echo=$ac_try;;
5701 esac
5702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5703 $as_echo "$ac_try_echo") >&5
5704   (eval "$ac_try") 2>&5
5705   ac_status=$?
5706   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707   (exit $ac_status); }; }; then
5708   ac_cv_c_stack_direction=1
5709 else
5710   $as_echo "$as_me: program exited with status $ac_status" >&5
5711 $as_echo "$as_me: failed program was:" >&5
5712 sed 's/^/| /' conftest.$ac_ext >&5
5713
5714 ( exit $ac_status )
5715 ac_cv_c_stack_direction=-1
5716 fi
5717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5718 fi
5719
5720
5721 fi
5722 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5723 $as_echo "$ac_cv_c_stack_direction" >&6; }
5724
5725 cat >>confdefs.h <<_ACEOF
5726 #define STACK_DIRECTION $ac_cv_c_stack_direction
5727 _ACEOF
5728
5729
5730 fi
5731
5732
5733
5734 for ac_header in stdlib.h
5735 do
5736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5738   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5739 $as_echo_n "checking for $ac_header... " >&6; }
5740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5741   $as_echo_n "(cached) " >&6
5742 fi
5743 ac_res=`eval 'as_val=${'$as_ac_Header'}
5744                  $as_echo "$as_val"'`
5745                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5746 $as_echo "$ac_res" >&6; }
5747 else
5748   # Is the header compilable?
5749 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5750 $as_echo_n "checking $ac_header usability... " >&6; }
5751 cat >conftest.$ac_ext <<_ACEOF
5752 /* confdefs.h.  */
5753 _ACEOF
5754 cat confdefs.h >>conftest.$ac_ext
5755 cat >>conftest.$ac_ext <<_ACEOF
5756 /* end confdefs.h.  */
5757 $ac_includes_default
5758 #include <$ac_header>
5759 _ACEOF
5760 rm -f conftest.$ac_objext
5761 if { (ac_try="$ac_compile"
5762 case "(($ac_try" in
5763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764   *) ac_try_echo=$ac_try;;
5765 esac
5766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5767 $as_echo "$ac_try_echo") >&5
5768   (eval "$ac_compile") 2>conftest.er1
5769   ac_status=$?
5770   grep -v '^ *+' conftest.er1 >conftest.err
5771   rm -f conftest.er1
5772   cat conftest.err >&5
5773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774   (exit $ac_status); } && {
5775          test -z "$ac_c_werror_flag" ||
5776          test ! -s conftest.err
5777        } && test -s conftest.$ac_objext; then
5778   ac_header_compiler=yes
5779 else
5780   $as_echo "$as_me: failed program was:" >&5
5781 sed 's/^/| /' conftest.$ac_ext >&5
5782
5783         ac_header_compiler=no
5784 fi
5785
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5788 $as_echo "$ac_header_compiler" >&6; }
5789
5790 # Is the header present?
5791 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5792 $as_echo_n "checking $ac_header presence... " >&6; }
5793 cat >conftest.$ac_ext <<_ACEOF
5794 /* confdefs.h.  */
5795 _ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h.  */
5799 #include <$ac_header>
5800 _ACEOF
5801 if { (ac_try="$ac_cpp conftest.$ac_ext"
5802 case "(($ac_try" in
5803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804   *) ac_try_echo=$ac_try;;
5805 esac
5806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5807 $as_echo "$ac_try_echo") >&5
5808   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5809   ac_status=$?
5810   grep -v '^ *+' conftest.er1 >conftest.err
5811   rm -f conftest.er1
5812   cat conftest.err >&5
5813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); } >/dev/null && {
5815          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5816          test ! -s conftest.err
5817        }; then
5818   ac_header_preproc=yes
5819 else
5820   $as_echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5822
5823   ac_header_preproc=no
5824 fi
5825
5826 rm -f conftest.err conftest.$ac_ext
5827 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5828 $as_echo "$ac_header_preproc" >&6; }
5829
5830 # So?  What about this header?
5831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5832   yes:no: )
5833     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5834 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5835     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5836 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5837     ac_header_preproc=yes
5838     ;;
5839   no:yes:* )
5840     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5841 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5842     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5843 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5844     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5845 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5846     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5847 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5848     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5849 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5850     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5851 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5852     ( cat <<\_ASBOX
5853 ## ------------------------------------ ##
5854 ## Report this to bug-coreutils@gnu.org ##
5855 ## ------------------------------------ ##
5856 _ASBOX
5857      ) | sed "s/^/$as_me: WARNING:     /" >&2
5858     ;;
5859 esac
5860 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5861 $as_echo_n "checking for $ac_header... " >&6; }
5862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5863   $as_echo_n "(cached) " >&6
5864 else
5865   eval "$as_ac_Header=\$ac_header_preproc"
5866 fi
5867 ac_res=`eval 'as_val=${'$as_ac_Header'}
5868                  $as_echo "$as_val"'`
5869                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5870 $as_echo "$ac_res" >&6; }
5871
5872 fi
5873 if test `eval 'as_val=${'$as_ac_Header'}
5874                  $as_echo "$as_val"'` = yes; then
5875   cat >>confdefs.h <<_ACEOF
5876 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5877 _ACEOF
5878
5879 fi
5880
5881 done
5882
5883 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
5884 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
5885 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
5886   $as_echo_n "(cached) " >&6
5887 else
5888   if test "$cross_compiling" = yes; then
5889   ac_cv_func_malloc_0_nonnull=no
5890 else
5891   cat >conftest.$ac_ext <<_ACEOF
5892 /* confdefs.h.  */
5893 _ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h.  */
5897 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5898 # include <stdlib.h>
5899 #else
5900 char *malloc ();
5901 #endif
5902
5903 int
5904 main ()
5905 {
5906 return ! malloc (0);
5907   ;
5908   return 0;
5909 }
5910 _ACEOF
5911 rm -f conftest$ac_exeext
5912 if { (ac_try="$ac_link"
5913 case "(($ac_try" in
5914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915   *) ac_try_echo=$ac_try;;
5916 esac
5917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5918 $as_echo "$ac_try_echo") >&5
5919   (eval "$ac_link") 2>&5
5920   ac_status=$?
5921   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5923   { (case "(($ac_try" in
5924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925   *) ac_try_echo=$ac_try;;
5926 esac
5927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5928 $as_echo "$ac_try_echo") >&5
5929   (eval "$ac_try") 2>&5
5930   ac_status=$?
5931   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932   (exit $ac_status); }; }; then
5933   ac_cv_func_malloc_0_nonnull=yes
5934 else
5935   $as_echo "$as_me: program exited with status $ac_status" >&5
5936 $as_echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5938
5939 ( exit $ac_status )
5940 ac_cv_func_malloc_0_nonnull=no
5941 fi
5942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5943 fi
5944
5945
5946 fi
5947 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
5948 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
5949 if test $ac_cv_func_malloc_0_nonnull = yes; then
5950   gl_cv_func_malloc_0_nonnull=1
5951 else
5952   gl_cv_func_malloc_0_nonnull=0
5953 fi
5954
5955
5956
5957 cat >>confdefs.h <<_ACEOF
5958 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
5959 _ACEOF
5960
5961
5962
5963   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
5964 $as_echo_n "checking for long long int... " >&6; }
5965 if test "${ac_cv_type_long_long_int+set}" = set; then
5966   $as_echo_n "(cached) " >&6
5967 else
5968   cat >conftest.$ac_ext <<_ACEOF
5969 /* confdefs.h.  */
5970 _ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h.  */
5974 long long int ll = 9223372036854775807ll;
5975             long long int nll = -9223372036854775807LL;
5976             typedef int a[((-9223372036854775807LL < 0
5977                             && 0 < 9223372036854775807ll)
5978                            ? 1 : -1)];
5979             int i = 63;
5980 int
5981 main ()
5982 {
5983 long long int llmax = 9223372036854775807ll;
5984             return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5985                     | (llmax / ll) | (llmax % ll));
5986   ;
5987   return 0;
5988 }
5989 _ACEOF
5990 rm -f conftest.$ac_objext conftest$ac_exeext
5991 if { (ac_try="$ac_link"
5992 case "(($ac_try" in
5993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994   *) ac_try_echo=$ac_try;;
5995 esac
5996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5997 $as_echo "$ac_try_echo") >&5
5998   (eval "$ac_link") 2>conftest.er1
5999   ac_status=$?
6000   grep -v '^ *+' conftest.er1 >conftest.err
6001   rm -f conftest.er1
6002   cat conftest.err >&5
6003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004   (exit $ac_status); } && {
6005          test -z "$ac_c_werror_flag" ||
6006          test ! -s conftest.err
6007        } && test -s conftest$ac_exeext &&
6008        $as_test_x conftest$ac_exeext; then
6009                         if test "$cross_compiling" = yes; then
6010   ac_cv_type_long_long_int=yes
6011 else
6012   cat >conftest.$ac_ext <<_ACEOF
6013 /* confdefs.h.  */
6014 _ACEOF
6015 cat confdefs.h >>conftest.$ac_ext
6016 cat >>conftest.$ac_ext <<_ACEOF
6017 /* end confdefs.h.  */
6018 #include <limits.h>
6019                #ifndef LLONG_MAX
6020                # define HALF \
6021                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6022                # define LLONG_MAX (HALF - 1 + HALF)
6023                #endif
6024 int
6025 main ()
6026 {
6027 long long int n = 1;
6028                int i;
6029                for (i = 0; ; i++)
6030                  {
6031                    long long int m = n << i;
6032                    if (m >> i != n)
6033                      return 1;
6034                    if (LLONG_MAX / 2 < m)
6035                      break;
6036                  }
6037                return 0;
6038   ;
6039   return 0;
6040 }
6041 _ACEOF
6042 rm -f conftest$ac_exeext
6043 if { (ac_try="$ac_link"
6044 case "(($ac_try" in
6045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046   *) ac_try_echo=$ac_try;;
6047 esac
6048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6049 $as_echo "$ac_try_echo") >&5
6050   (eval "$ac_link") 2>&5
6051   ac_status=$?
6052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6054   { (case "(($ac_try" in
6055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6056   *) ac_try_echo=$ac_try;;
6057 esac
6058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6059 $as_echo "$ac_try_echo") >&5
6060   (eval "$ac_try") 2>&5
6061   ac_status=$?
6062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063   (exit $ac_status); }; }; then
6064   ac_cv_type_long_long_int=yes
6065 else
6066   $as_echo "$as_me: program exited with status $ac_status" >&5
6067 $as_echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.$ac_ext >&5
6069
6070 ( exit $ac_status )
6071 ac_cv_type_long_long_int=no
6072 fi
6073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6074 fi
6075
6076
6077 else
6078   $as_echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6080
6081         ac_cv_type_long_long_int=no
6082 fi
6083
6084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6085       conftest$ac_exeext conftest.$ac_ext
6086 fi
6087 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
6088 $as_echo "$ac_cv_type_long_long_int" >&6; }
6089   if test $ac_cv_type_long_long_int = yes; then
6090
6091 cat >>confdefs.h <<\_ACEOF
6092 #define HAVE_LONG_LONG_INT 1
6093 _ACEOF
6094
6095   fi
6096
6097
6098   { $as_echo "$as_me:$LINENO: checking for long double" >&5
6099 $as_echo_n "checking for long double... " >&6; }
6100 if test "${gt_cv_c_long_double+set}" = set; then
6101   $as_echo_n "(cached) " >&6
6102 else
6103   if test "$GCC" = yes; then
6104        gt_cv_c_long_double=yes
6105      else
6106        cat >conftest.$ac_ext <<_ACEOF
6107 /* confdefs.h.  */
6108 _ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h.  */
6112
6113          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
6114          long double foo = 0.0;
6115          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
6116          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6117
6118 int
6119 main ()
6120 {
6121
6122   ;
6123   return 0;
6124 }
6125 _ACEOF
6126 rm -f conftest.$ac_objext
6127 if { (ac_try="$ac_compile"
6128 case "(($ac_try" in
6129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6130   *) ac_try_echo=$ac_try;;
6131 esac
6132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6133 $as_echo "$ac_try_echo") >&5
6134   (eval "$ac_compile") 2>conftest.er1
6135   ac_status=$?
6136   grep -v '^ *+' conftest.er1 >conftest.err
6137   rm -f conftest.er1
6138   cat conftest.err >&5
6139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140   (exit $ac_status); } && {
6141          test -z "$ac_c_werror_flag" ||
6142          test ! -s conftest.err
6143        } && test -s conftest.$ac_objext; then
6144   gt_cv_c_long_double=yes
6145 else
6146   $as_echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6148
6149         gt_cv_c_long_double=no
6150 fi
6151
6152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153      fi
6154 fi
6155 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
6156 $as_echo "$gt_cv_c_long_double" >&6; }
6157   if test $gt_cv_c_long_double = yes; then
6158
6159 cat >>confdefs.h <<\_ACEOF
6160 #define HAVE_LONG_DOUBLE 1
6161 _ACEOF
6162
6163   fi
6164
6165
6166
6167
6168
6169 for ac_header in $ac_header_list
6170 do
6171 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6173   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6174 $as_echo_n "checking for $ac_header... " >&6; }
6175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6176   $as_echo_n "(cached) " >&6
6177 fi
6178 ac_res=`eval 'as_val=${'$as_ac_Header'}
6179                  $as_echo "$as_val"'`
6180                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6181 $as_echo "$ac_res" >&6; }
6182 else
6183   # Is the header compilable?
6184 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6185 $as_echo_n "checking $ac_header usability... " >&6; }
6186 cat >conftest.$ac_ext <<_ACEOF
6187 /* confdefs.h.  */
6188 _ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h.  */
6192 $ac_includes_default
6193 #include <$ac_header>
6194 _ACEOF
6195 rm -f conftest.$ac_objext
6196 if { (ac_try="$ac_compile"
6197 case "(($ac_try" in
6198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199   *) ac_try_echo=$ac_try;;
6200 esac
6201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6202 $as_echo "$ac_try_echo") >&5
6203   (eval "$ac_compile") 2>conftest.er1
6204   ac_status=$?
6205   grep -v '^ *+' conftest.er1 >conftest.err
6206   rm -f conftest.er1
6207   cat conftest.err >&5
6208   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209   (exit $ac_status); } && {
6210          test -z "$ac_c_werror_flag" ||
6211          test ! -s conftest.err
6212        } && test -s conftest.$ac_objext; then
6213   ac_header_compiler=yes
6214 else
6215   $as_echo "$as_me: failed program was:" >&5
6216 sed 's/^/| /' conftest.$ac_ext >&5
6217
6218         ac_header_compiler=no
6219 fi
6220
6221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6222 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6223 $as_echo "$ac_header_compiler" >&6; }
6224
6225 # Is the header present?
6226 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6227 $as_echo_n "checking $ac_header presence... " >&6; }
6228 cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h.  */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h.  */
6234 #include <$ac_header>
6235 _ACEOF
6236 if { (ac_try="$ac_cpp conftest.$ac_ext"
6237 case "(($ac_try" in
6238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6239   *) ac_try_echo=$ac_try;;
6240 esac
6241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6242 $as_echo "$ac_try_echo") >&5
6243   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6244   ac_status=$?
6245   grep -v '^ *+' conftest.er1 >conftest.err
6246   rm -f conftest.er1
6247   cat conftest.err >&5
6248   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249   (exit $ac_status); } >/dev/null && {
6250          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6251          test ! -s conftest.err
6252        }; then
6253   ac_header_preproc=yes
6254 else
6255   $as_echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.$ac_ext >&5
6257
6258   ac_header_preproc=no
6259 fi
6260
6261 rm -f conftest.err conftest.$ac_ext
6262 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6263 $as_echo "$ac_header_preproc" >&6; }
6264
6265 # So?  What about this header?
6266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6267   yes:no: )
6268     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6269 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6270     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6271 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6272     ac_header_preproc=yes
6273     ;;
6274   no:yes:* )
6275     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6276 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6277     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6278 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6279     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6280 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6281     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6282 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6283     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6284 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6285     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6286 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6287     ( cat <<\_ASBOX
6288 ## ------------------------------------ ##
6289 ## Report this to bug-coreutils@gnu.org ##
6290 ## ------------------------------------ ##
6291 _ASBOX
6292      ) | sed "s/^/$as_me: WARNING:     /" >&2
6293     ;;
6294 esac
6295 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6296 $as_echo_n "checking for $ac_header... " >&6; }
6297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6298   $as_echo_n "(cached) " >&6
6299 else
6300   eval "$as_ac_Header=\$ac_header_preproc"
6301 fi
6302 ac_res=`eval 'as_val=${'$as_ac_Header'}
6303                  $as_echo "$as_val"'`
6304                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6305 $as_echo "$ac_res" >&6; }
6306
6307 fi
6308 if test `eval 'as_val=${'$as_ac_Header'}
6309                  $as_echo "$as_val"'` = yes; then
6310   cat >>confdefs.h <<_ACEOF
6311 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6312 _ACEOF
6313
6314 fi
6315
6316 done
6317
6318
6319
6320 { $as_echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
6321 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
6322 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
6323   $as_echo_n "(cached) " >&6
6324 else
6325   cat >conftest.$ac_ext <<_ACEOF
6326 /* confdefs.h.  */
6327 _ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h.  */
6331
6332 #include <sys/types.h>
6333 #include <dirent.h>
6334
6335 int
6336 main ()
6337 {
6338 struct dirent dp; dp.d_ino = 0;
6339   ;
6340   return 0;
6341 }
6342 _ACEOF
6343 rm -f conftest.$ac_objext conftest$ac_exeext
6344 if { (ac_try="$ac_link"
6345 case "(($ac_try" in
6346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347   *) ac_try_echo=$ac_try;;
6348 esac
6349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6350 $as_echo "$ac_try_echo") >&5
6351   (eval "$ac_link") 2>conftest.er1
6352   ac_status=$?
6353   grep -v '^ *+' conftest.er1 >conftest.err
6354   rm -f conftest.er1
6355   cat conftest.err >&5
6356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357   (exit $ac_status); } && {
6358          test -z "$ac_c_werror_flag" ||
6359          test ! -s conftest.err
6360        } && test -s conftest$ac_exeext &&
6361        $as_test_x conftest$ac_exeext; then
6362   jm_cv_struct_dirent_d_ino=yes
6363 else
6364   $as_echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6366
6367         jm_cv_struct_dirent_d_ino=no
6368 fi
6369
6370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6371       conftest$ac_exeext conftest.$ac_ext
6372
6373
6374 fi
6375 { $as_echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
6376 $as_echo "$jm_cv_struct_dirent_d_ino" >&6; }
6377    if test $jm_cv_struct_dirent_d_ino = yes; then
6378
6379 cat >>confdefs.h <<\_ACEOF
6380 #define D_INO_IN_DIRENT 1
6381 _ACEOF
6382
6383    fi
6384
6385
6386
6387     { $as_echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
6388 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
6389 if test "${ac_cv_win_or_dos+set}" = set; then
6390   $as_echo_n "(cached) " >&6
6391 else
6392
6393         cat >conftest.$ac_ext <<_ACEOF
6394 /* confdefs.h.  */
6395 _ACEOF
6396 cat confdefs.h >>conftest.$ac_ext
6397 cat >>conftest.$ac_ext <<_ACEOF
6398 /* end confdefs.h.  */
6399
6400 int
6401 main ()
6402 {
6403 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
6404 neither MSDOS nor Windows
6405 #endif
6406   ;
6407   return 0;
6408 }
6409 _ACEOF
6410 rm -f conftest.$ac_objext
6411 if { (ac_try="$ac_compile"
6412 case "(($ac_try" in
6413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6414   *) ac_try_echo=$ac_try;;
6415 esac
6416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6417 $as_echo "$ac_try_echo") >&5
6418   (eval "$ac_compile") 2>conftest.er1
6419   ac_status=$?
6420   grep -v '^ *+' conftest.er1 >conftest.err
6421   rm -f conftest.er1
6422   cat conftest.err >&5
6423   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424   (exit $ac_status); } && {
6425          test -z "$ac_c_werror_flag" ||
6426          test ! -s conftest.err
6427        } && test -s conftest.$ac_objext; then
6428   ac_cv_win_or_dos=yes
6429 else
6430   $as_echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.$ac_ext >&5
6432
6433         ac_cv_win_or_dos=no
6434 fi
6435
6436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6437
6438 fi
6439 { $as_echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
6440 $as_echo "$ac_cv_win_or_dos" >&6; }
6441
6442     if test x"$ac_cv_win_or_dos" = xyes; then
6443       ac_fs_accepts_drive_letter_prefix=1
6444       ac_fs_backslash_is_file_name_separator=1
6445       { $as_echo "$as_me:$LINENO: checking whether drive letter can start relative path" >&5
6446 $as_echo_n "checking whether drive letter can start relative path... " >&6; }
6447 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then
6448   $as_echo_n "(cached) " >&6
6449 else
6450
6451           cat >conftest.$ac_ext <<_ACEOF
6452 /* confdefs.h.  */
6453 _ACEOF
6454 cat confdefs.h >>conftest.$ac_ext
6455 cat >>conftest.$ac_ext <<_ACEOF
6456 /* end confdefs.h.  */
6457
6458 int
6459 main ()
6460 {
6461 #if defined __CYGWIN__
6462 drive letters are always absolute
6463 #endif
6464   ;
6465   return 0;
6466 }
6467 _ACEOF
6468 rm -f conftest.$ac_objext
6469 if { (ac_try="$ac_compile"
6470 case "(($ac_try" in
6471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6472   *) ac_try_echo=$ac_try;;
6473 esac
6474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6475 $as_echo "$ac_try_echo") >&5
6476   (eval "$ac_compile") 2>conftest.er1
6477   ac_status=$?
6478   grep -v '^ *+' conftest.er1 >conftest.err
6479   rm -f conftest.er1
6480   cat conftest.err >&5
6481   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482   (exit $ac_status); } && {
6483          test -z "$ac_c_werror_flag" ||
6484          test ! -s conftest.err
6485        } && test -s conftest.$ac_objext; then
6486   ac_cv_drive_letter_can_be_relative=yes
6487 else
6488   $as_echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.$ac_ext >&5
6490
6491         ac_cv_drive_letter_can_be_relative=no
6492 fi
6493
6494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6495
6496 fi
6497 { $as_echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5
6498 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
6499       if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
6500         ac_fs_drive_letter_can_be_relative=1
6501       else
6502         ac_fs_drive_letter_can_be_relative=0
6503       fi
6504     else
6505       ac_fs_accepts_drive_letter_prefix=0
6506       ac_fs_backslash_is_file_name_separator=0
6507       ac_fs_drive_letter_can_be_relative=0
6508     fi
6509
6510
6511 cat >>confdefs.h <<_ACEOF
6512 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
6513 _ACEOF
6514
6515
6516
6517
6518
6519
6520 cat >>confdefs.h <<_ACEOF
6521 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
6522 _ACEOF
6523
6524
6525
6526 cat >>confdefs.h <<_ACEOF
6527 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
6528 _ACEOF
6529
6530
6531 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
6532 $as_echo_n "checking for long file names... " >&6; }
6533 if test "${ac_cv_sys_long_file_names+set}" = set; then
6534   $as_echo_n "(cached) " >&6
6535 else
6536   ac_cv_sys_long_file_names=yes
6537 # Test for long file names in all the places we know might matter:
6538 #      .                the current directory, where building will happen
6539 #      $prefix/lib      where we will be installing things
6540 #      $exec_prefix/lib likewise
6541 #      $TMPDIR          if set, where it might want to write temporary files
6542 #      /tmp             where it might want to write temporary files
6543 #      /var/tmp         likewise
6544 #      /usr/tmp         likewise
6545 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
6546   # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
6547   # in the usual case where exec_prefix is '${prefix}'.
6548   case $ac_dir in #(
6549     . | /* | ?:[\\/]*) ;; #(
6550     *) continue;;
6551   esac
6552   test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
6553   ac_xdir=$ac_dir/cf$$
6554   (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
6555   ac_tf1=$ac_xdir/conftest9012345
6556   ac_tf2=$ac_xdir/conftest9012346
6557   touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
6558     ac_cv_sys_long_file_names=no
6559   rm -f -r "$ac_xdir" 2>/dev/null
6560   test $ac_cv_sys_long_file_names = no && break
6561 done
6562 fi
6563 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6564 $as_echo "$ac_cv_sys_long_file_names" >&6; }
6565 if test $ac_cv_sys_long_file_names = yes; then
6566
6567 cat >>confdefs.h <<\_ACEOF
6568 #define HAVE_LONG_FILE_NAMES 1
6569 _ACEOF
6570
6571 fi
6572
6573
6574
6575
6576
6577 for ac_func in $ac_func_list
6578 do
6579 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6580 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6581 $as_echo_n "checking for $ac_func... " >&6; }
6582 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6583   $as_echo_n "(cached) " >&6
6584 else
6585   cat >conftest.$ac_ext <<_ACEOF
6586 /* confdefs.h.  */
6587 _ACEOF
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h.  */
6591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6592    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6593 #define $ac_func innocuous_$ac_func
6594
6595 /* System header to define __stub macros and hopefully few prototypes,
6596     which can conflict with char $ac_func (); below.
6597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6598     <limits.h> exists even on freestanding compilers.  */
6599
6600 #ifdef __STDC__
6601 # include <limits.h>
6602 #else
6603 # include <assert.h>
6604 #endif
6605
6606 #undef $ac_func
6607
6608 /* Override any GCC internal prototype to avoid an error.
6609    Use char because int might match the return type of a GCC
6610    builtin and then its argument prototype would still apply.  */
6611 #ifdef __cplusplus
6612 extern "C"
6613 #endif
6614 char $ac_func ();
6615 /* The GNU C library defines this for functions which it implements
6616     to always fail with ENOSYS.  Some functions are actually named
6617     something starting with __ and the normal name is an alias.  */
6618 #if defined __stub_$ac_func || defined __stub___$ac_func
6619 choke me
6620 #endif
6621
6622 int
6623 main ()
6624 {
6625 return $ac_func ();
6626   ;
6627   return 0;
6628 }
6629 _ACEOF
6630 rm -f conftest.$ac_objext conftest$ac_exeext
6631 if { (ac_try="$ac_link"
6632 case "(($ac_try" in
6633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634   *) ac_try_echo=$ac_try;;
6635 esac
6636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6637 $as_echo "$ac_try_echo") >&5
6638   (eval "$ac_link") 2>conftest.er1
6639   ac_status=$?
6640   grep -v '^ *+' conftest.er1 >conftest.err
6641   rm -f conftest.er1
6642   cat conftest.err >&5
6643   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644   (exit $ac_status); } && {
6645          test -z "$ac_c_werror_flag" ||
6646          test ! -s conftest.err
6647        } && test -s conftest$ac_exeext &&
6648        $as_test_x conftest$ac_exeext; then
6649   eval "$as_ac_var=yes"
6650 else
6651   $as_echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6653
6654         eval "$as_ac_var=no"
6655 fi
6656
6657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6658       conftest$ac_exeext conftest.$ac_ext
6659 fi
6660 ac_res=`eval 'as_val=${'$as_ac_var'}
6661                  $as_echo "$as_val"'`
6662                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6663 $as_echo "$ac_res" >&6; }
6664 if test `eval 'as_val=${'$as_ac_var'}
6665                  $as_echo "$as_val"'` = yes; then
6666   cat >>confdefs.h <<_ACEOF
6667 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6668 _ACEOF
6669
6670 fi
6671 done
6672
6673
6674
6675 { $as_echo "$as_me:$LINENO: checking for inline" >&5
6676 $as_echo_n "checking for inline... " >&6; }
6677 if test "${ac_cv_c_inline+set}" = set; then
6678   $as_echo_n "(cached) " >&6
6679 else
6680   ac_cv_c_inline=no
6681 for ac_kw in inline __inline__ __inline; do
6682   cat >conftest.$ac_ext <<_ACEOF
6683 /* confdefs.h.  */
6684 _ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h.  */
6688 #ifndef __cplusplus
6689 typedef int foo_t;
6690 static $ac_kw foo_t static_foo () {return 0; }
6691 $ac_kw foo_t foo () {return 0; }
6692 #endif
6693
6694 _ACEOF
6695 rm -f conftest.$ac_objext
6696 if { (ac_try="$ac_compile"
6697 case "(($ac_try" in
6698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6699   *) ac_try_echo=$ac_try;;
6700 esac
6701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6702 $as_echo "$ac_try_echo") >&5
6703   (eval "$ac_compile") 2>conftest.er1
6704   ac_status=$?
6705   grep -v '^ *+' conftest.er1 >conftest.err
6706   rm -f conftest.er1
6707   cat conftest.err >&5
6708   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709   (exit $ac_status); } && {
6710          test -z "$ac_c_werror_flag" ||
6711          test ! -s conftest.err
6712        } && test -s conftest.$ac_objext; then
6713   ac_cv_c_inline=$ac_kw
6714 else
6715   $as_echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6717
6718
6719 fi
6720
6721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6722   test "$ac_cv_c_inline" != no && break
6723 done
6724
6725 fi
6726 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6727 $as_echo "$ac_cv_c_inline" >&6; }
6728
6729
6730 case $ac_cv_c_inline in
6731   inline | yes) ;;
6732   *)
6733     case $ac_cv_c_inline in
6734       no) ac_val=;;
6735       *) ac_val=$ac_cv_c_inline;;
6736     esac
6737     cat >>confdefs.h <<_ACEOF
6738 #ifndef __cplusplus
6739 #define inline $ac_val
6740 #endif
6741 _ACEOF
6742     ;;
6743 esac
6744
6745 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
6746 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6747 if test "${ac_cv_c_restrict+set}" = set; then
6748   $as_echo_n "(cached) " >&6
6749 else
6750   ac_cv_c_restrict=no
6751    # Try the official restrict keyword, then gcc's __restrict, and
6752    # the less common variants.
6753    for ac_kw in restrict __restrict __restrict__ _Restrict; do
6754      cat >conftest.$ac_ext <<_ACEOF
6755 /* confdefs.h.  */
6756 _ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h.  */
6760 typedef int * int_ptr;
6761         int foo (int_ptr $ac_kw ip) {
6762         return ip[0];
6763        }
6764 int
6765 main ()
6766 {
6767 int s[1];
6768         int * $ac_kw t = s;
6769         t[0] = 0;
6770         return foo(t)
6771   ;
6772   return 0;
6773 }
6774 _ACEOF
6775 rm -f conftest.$ac_objext
6776 if { (ac_try="$ac_compile"
6777 case "(($ac_try" in
6778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6779   *) ac_try_echo=$ac_try;;
6780 esac
6781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6782 $as_echo "$ac_try_echo") >&5
6783   (eval "$ac_compile") 2>conftest.er1
6784   ac_status=$?
6785   grep -v '^ *+' conftest.er1 >conftest.err
6786   rm -f conftest.er1
6787   cat conftest.err >&5
6788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789   (exit $ac_status); } && {
6790          test -z "$ac_c_werror_flag" ||
6791          test ! -s conftest.err
6792        } && test -s conftest.$ac_objext; then
6793   ac_cv_c_restrict=$ac_kw
6794 else
6795   $as_echo "$as_me: failed program was:" >&5
6796 sed 's/^/| /' conftest.$ac_ext >&5
6797
6798
6799 fi
6800
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802      test "$ac_cv_c_restrict" != no && break
6803    done
6804
6805 fi
6806 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
6807 $as_echo "$ac_cv_c_restrict" >&6; }
6808  case $ac_cv_c_restrict in
6809    restrict) ;;
6810    no)
6811 cat >>confdefs.h <<\_ACEOF
6812 #define restrict
6813 _ACEOF
6814  ;;
6815    *)  cat >>confdefs.h <<_ACEOF
6816 #define restrict $ac_cv_c_restrict
6817 _ACEOF
6818  ;;
6819  esac
6820
6821
6822   { $as_echo "$as_me:$LINENO: checking whether strtold conforms to C99" >&5
6823 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
6824 if test "${gl_cv_func_c99_strtold+set}" = set; then
6825   $as_echo_n "(cached) " >&6
6826 else
6827   cat >conftest.$ac_ext <<_ACEOF
6828 /* confdefs.h.  */
6829 _ACEOF
6830 cat confdefs.h >>conftest.$ac_ext
6831 cat >>conftest.$ac_ext <<_ACEOF
6832 /* end confdefs.h.  */
6833 /* On HP-UX before 11.23, strtold returns a struct instead of
6834                 long double.  Reject implementations like that, by requiring
6835                 compatibility with the C99 prototype.  */
6836              #include <stdlib.h>
6837              static long double (*p) (char const *, char **) = strtold;
6838              static long double
6839              test (char const *nptr, char **endptr)
6840              {
6841                long double r;
6842                r = strtold (nptr, endptr);
6843                return r;
6844              }
6845 int
6846 main ()
6847 {
6848 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
6849   ;
6850   return 0;
6851 }
6852 _ACEOF
6853 rm -f conftest.$ac_objext conftest$ac_exeext
6854 if { (ac_try="$ac_link"
6855 case "(($ac_try" in
6856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6857   *) ac_try_echo=$ac_try;;
6858 esac
6859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6860 $as_echo "$ac_try_echo") >&5
6861   (eval "$ac_link") 2>conftest.er1
6862   ac_status=$?
6863   grep -v '^ *+' conftest.er1 >conftest.err
6864   rm -f conftest.er1
6865   cat conftest.err >&5
6866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867   (exit $ac_status); } && {
6868          test -z "$ac_c_werror_flag" ||
6869          test ! -s conftest.err
6870        } && test -s conftest$ac_exeext &&
6871        $as_test_x conftest$ac_exeext; then
6872   gl_cv_func_c99_strtold=yes
6873 else
6874   $as_echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6876
6877         gl_cv_func_c99_strtold=no
6878 fi
6879
6880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6881       conftest$ac_exeext conftest.$ac_ext
6882 fi
6883 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_c99_strtold" >&5
6884 $as_echo "$gl_cv_func_c99_strtold" >&6; }
6885   if test $gl_cv_func_c99_strtold = yes; then
6886
6887 cat >>confdefs.h <<\_ACEOF
6888 #define HAVE_C99_STRTOLD 1
6889 _ACEOF
6890
6891   fi
6892
6893 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
6894 $as_echo_n "checking for size_t... " >&6; }
6895 if test "${ac_cv_type_size_t+set}" = set; then
6896   $as_echo_n "(cached) " >&6
6897 else
6898   cat >conftest.$ac_ext <<_ACEOF
6899 /* confdefs.h.  */
6900 _ACEOF
6901 cat confdefs.h >>conftest.$ac_ext
6902 cat >>conftest.$ac_ext <<_ACEOF
6903 /* end confdefs.h.  */
6904 $ac_includes_default
6905 typedef size_t ac__type_new_;
6906 int
6907 main ()
6908 {
6909 if ((ac__type_new_ *) 0)
6910   return 0;
6911 if (sizeof (ac__type_new_))
6912   return 0;
6913   ;
6914   return 0;
6915 }
6916 _ACEOF
6917 rm -f conftest.$ac_objext
6918 if { (ac_try="$ac_compile"
6919 case "(($ac_try" in
6920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6921   *) ac_try_echo=$ac_try;;
6922 esac
6923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6924 $as_echo "$ac_try_echo") >&5
6925   (eval "$ac_compile") 2>conftest.er1
6926   ac_status=$?
6927   grep -v '^ *+' conftest.er1 >conftest.err
6928   rm -f conftest.er1
6929   cat conftest.err >&5
6930   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931   (exit $ac_status); } && {
6932          test -z "$ac_c_werror_flag" ||
6933          test ! -s conftest.err
6934        } && test -s conftest.$ac_objext; then
6935   ac_cv_type_size_t=yes
6936 else
6937   $as_echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6939
6940         ac_cv_type_size_t=no
6941 fi
6942
6943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6944 fi
6945 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6946 $as_echo "$ac_cv_type_size_t" >&6; }
6947 if test $ac_cv_type_size_t = yes; then
6948   :
6949 else
6950
6951 cat >>confdefs.h <<_ACEOF
6952 #define size_t unsigned int
6953 _ACEOF
6954
6955 fi
6956
6957
6958
6959 { $as_echo "$as_me:$LINENO: checking whether canonicalize_file_name is declared" >&5
6960 $as_echo_n "checking whether canonicalize_file_name is declared... " >&6; }
6961 if test "${ac_cv_have_decl_canonicalize_file_name+set}" = set; then
6962   $as_echo_n "(cached) " >&6
6963 else
6964   cat >conftest.$ac_ext <<_ACEOF
6965 /* confdefs.h.  */
6966 _ACEOF
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h.  */
6970 $ac_includes_default
6971 int
6972 main ()
6973 {
6974 #ifndef canonicalize_file_name
6975   (void) canonicalize_file_name;
6976 #endif
6977
6978   ;
6979   return 0;
6980 }
6981 _ACEOF
6982 rm -f conftest.$ac_objext
6983 if { (ac_try="$ac_compile"
6984 case "(($ac_try" in
6985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6986   *) ac_try_echo=$ac_try;;
6987 esac
6988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6989 $as_echo "$ac_try_echo") >&5
6990   (eval "$ac_compile") 2>conftest.er1
6991   ac_status=$?
6992   grep -v '^ *+' conftest.er1 >conftest.err
6993   rm -f conftest.er1
6994   cat conftest.err >&5
6995   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996   (exit $ac_status); } && {
6997          test -z "$ac_c_werror_flag" ||
6998          test ! -s conftest.err
6999        } && test -s conftest.$ac_objext; then
7000   ac_cv_have_decl_canonicalize_file_name=yes
7001 else
7002   $as_echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7004
7005         ac_cv_have_decl_canonicalize_file_name=no
7006 fi
7007
7008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7009 fi
7010 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_canonicalize_file_name" >&5
7011 $as_echo "$ac_cv_have_decl_canonicalize_file_name" >&6; }
7012 if test $ac_cv_have_decl_canonicalize_file_name = yes; then
7013
7014 cat >>confdefs.h <<_ACEOF
7015 #define HAVE_DECL_CANONICALIZE_FILE_NAME 1
7016 _ACEOF
7017
7018
7019 else
7020   cat >>confdefs.h <<_ACEOF
7021 #define HAVE_DECL_CANONICALIZE_FILE_NAME 0
7022 _ACEOF
7023
7024
7025 fi
7026
7027
7028
7029
7030
7031
7032
7033   GNULIB_CHOWN=0;
7034   GNULIB_DUP2=0;
7035   GNULIB_FCHDIR=0;
7036   GNULIB_FTRUNCATE=0;
7037   GNULIB_GETCWD=0;
7038   GNULIB_GETLOGIN_R=0;
7039   GNULIB_READLINK=0;
7040     HAVE_DUP2=1;
7041   HAVE_FTRUNCATE=1;
7042   HAVE_READLINK=1;
7043   HAVE_DECL_GETLOGIN_R=1;
7044   REPLACE_CHOWN=0;
7045   REPLACE_FCHDIR=0;
7046   REPLACE_GETCWD=0;
7047
7048 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7049 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7050 if test "${ac_cv_type_uid_t+set}" = set; then
7051   $as_echo_n "(cached) " >&6
7052 else
7053   cat >conftest.$ac_ext <<_ACEOF
7054 /* confdefs.h.  */
7055 _ACEOF
7056 cat confdefs.h >>conftest.$ac_ext
7057 cat >>conftest.$ac_ext <<_ACEOF
7058 /* end confdefs.h.  */
7059 #include <sys/types.h>
7060
7061 _ACEOF
7062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7063   $EGREP "uid_t" >/dev/null 2>&1; then
7064   ac_cv_type_uid_t=yes
7065 else
7066   ac_cv_type_uid_t=no
7067 fi
7068 rm -f conftest*
7069
7070 fi
7071 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7072 $as_echo "$ac_cv_type_uid_t" >&6; }
7073 if test $ac_cv_type_uid_t = no; then
7074
7075 cat >>confdefs.h <<\_ACEOF
7076 #define uid_t int
7077 _ACEOF
7078
7079
7080 cat >>confdefs.h <<\_ACEOF
7081 #define gid_t int
7082 _ACEOF
7083
7084 fi
7085
7086
7087 for ac_header in unistd.h
7088 do
7089 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7091   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7092 $as_echo_n "checking for $ac_header... " >&6; }
7093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7094   $as_echo_n "(cached) " >&6
7095 fi
7096 ac_res=`eval 'as_val=${'$as_ac_Header'}
7097                  $as_echo "$as_val"'`
7098                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7099 $as_echo "$ac_res" >&6; }
7100 else
7101   # Is the header compilable?
7102 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7103 $as_echo_n "checking $ac_header usability... " >&6; }
7104 cat >conftest.$ac_ext <<_ACEOF
7105 /* confdefs.h.  */
7106 _ACEOF
7107 cat confdefs.h >>conftest.$ac_ext
7108 cat >>conftest.$ac_ext <<_ACEOF
7109 /* end confdefs.h.  */
7110 $ac_includes_default
7111 #include <$ac_header>
7112 _ACEOF
7113 rm -f conftest.$ac_objext
7114 if { (ac_try="$ac_compile"
7115 case "(($ac_try" in
7116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117   *) ac_try_echo=$ac_try;;
7118 esac
7119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7120 $as_echo "$ac_try_echo") >&5
7121   (eval "$ac_compile") 2>conftest.er1
7122   ac_status=$?
7123   grep -v '^ *+' conftest.er1 >conftest.err
7124   rm -f conftest.er1
7125   cat conftest.err >&5
7126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127   (exit $ac_status); } && {
7128          test -z "$ac_c_werror_flag" ||
7129          test ! -s conftest.err
7130        } && test -s conftest.$ac_objext; then
7131   ac_header_compiler=yes
7132 else
7133   $as_echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7135
7136         ac_header_compiler=no
7137 fi
7138
7139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7141 $as_echo "$ac_header_compiler" >&6; }
7142
7143 # Is the header present?
7144 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7145 $as_echo_n "checking $ac_header presence... " >&6; }
7146 cat >conftest.$ac_ext <<_ACEOF
7147 /* confdefs.h.  */
7148 _ACEOF
7149 cat confdefs.h >>conftest.$ac_ext
7150 cat >>conftest.$ac_ext <<_ACEOF
7151 /* end confdefs.h.  */
7152 #include <$ac_header>
7153 _ACEOF
7154 if { (ac_try="$ac_cpp conftest.$ac_ext"
7155 case "(($ac_try" in
7156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7157   *) ac_try_echo=$ac_try;;
7158 esac
7159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7160 $as_echo "$ac_try_echo") >&5
7161   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7162   ac_status=$?
7163   grep -v '^ *+' conftest.er1 >conftest.err
7164   rm -f conftest.er1
7165   cat conftest.err >&5
7166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167   (exit $ac_status); } >/dev/null && {
7168          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7169          test ! -s conftest.err
7170        }; then
7171   ac_header_preproc=yes
7172 else
7173   $as_echo "$as_me: failed program was:" >&5
7174 sed 's/^/| /' conftest.$ac_ext >&5
7175
7176   ac_header_preproc=no
7177 fi
7178
7179 rm -f conftest.err conftest.$ac_ext
7180 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7181 $as_echo "$ac_header_preproc" >&6; }
7182
7183 # So?  What about this header?
7184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7185   yes:no: )
7186     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7187 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7188     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7189 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7190     ac_header_preproc=yes
7191     ;;
7192   no:yes:* )
7193     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7194 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7195     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7196 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7197     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7198 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7199     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7200 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7201     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7202 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7203     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7204 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7205     ( cat <<\_ASBOX
7206 ## ------------------------------------ ##
7207 ## Report this to bug-coreutils@gnu.org ##
7208 ## ------------------------------------ ##
7209 _ASBOX
7210      ) | sed "s/^/$as_me: WARNING:     /" >&2
7211     ;;
7212 esac
7213 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7214 $as_echo_n "checking for $ac_header... " >&6; }
7215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7216   $as_echo_n "(cached) " >&6
7217 else
7218   eval "$as_ac_Header=\$ac_header_preproc"
7219 fi
7220 ac_res=`eval 'as_val=${'$as_ac_Header'}
7221                  $as_echo "$as_val"'`
7222                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7223 $as_echo "$ac_res" >&6; }
7224
7225 fi
7226 if test `eval 'as_val=${'$as_ac_Header'}
7227                  $as_echo "$as_val"'` = yes; then
7228   cat >>confdefs.h <<_ACEOF
7229 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7230 _ACEOF
7231
7232 fi
7233
7234 done
7235
7236 { $as_echo "$as_me:$LINENO: checking for working chown" >&5
7237 $as_echo_n "checking for working chown... " >&6; }
7238 if test "${ac_cv_func_chown_works+set}" = set; then
7239   $as_echo_n "(cached) " >&6
7240 else
7241   if test "$cross_compiling" = yes; then
7242   ac_cv_func_chown_works=no
7243 else
7244   cat >conftest.$ac_ext <<_ACEOF
7245 /* confdefs.h.  */
7246 _ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h.  */
7250 $ac_includes_default
7251 #include <fcntl.h>
7252
7253 int
7254 main ()
7255 {
7256   char *f = "conftest.chown";
7257   struct stat before, after;
7258
7259   if (creat (f, 0600) < 0)
7260     return 1;
7261   if (stat (f, &before) < 0)
7262     return 1;
7263   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
7264     return 1;
7265   if (stat (f, &after) < 0)
7266     return 1;
7267   return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
7268
7269   ;
7270   return 0;
7271 }
7272 _ACEOF
7273 rm -f conftest$ac_exeext
7274 if { (ac_try="$ac_link"
7275 case "(($ac_try" in
7276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7277   *) ac_try_echo=$ac_try;;
7278 esac
7279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7280 $as_echo "$ac_try_echo") >&5
7281   (eval "$ac_link") 2>&5
7282   ac_status=$?
7283   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7285   { (case "(($ac_try" in
7286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7287   *) ac_try_echo=$ac_try;;
7288 esac
7289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7290 $as_echo "$ac_try_echo") >&5
7291   (eval "$ac_try") 2>&5
7292   ac_status=$?
7293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294   (exit $ac_status); }; }; then
7295   ac_cv_func_chown_works=yes
7296 else
7297   $as_echo "$as_me: program exited with status $ac_status" >&5
7298 $as_echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7300
7301 ( exit $ac_status )
7302 ac_cv_func_chown_works=no
7303 fi
7304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7305 fi
7306
7307
7308 rm -f conftest.chown
7309
7310 fi
7311 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
7312 $as_echo "$ac_cv_func_chown_works" >&6; }
7313 if test $ac_cv_func_chown_works = yes; then
7314
7315 cat >>confdefs.h <<\_ACEOF
7316 #define HAVE_CHOWN 1
7317 _ACEOF
7318
7319 fi
7320
7321
7322   { $as_echo "$as_me:$LINENO: checking whether chown(2) dereferences symlinks" >&5
7323 $as_echo_n "checking whether chown(2) dereferences symlinks... " >&6; }
7324 if test "${gl_cv_func_chown_follows_symlink+set}" = set; then
7325   $as_echo_n "(cached) " >&6
7326 else
7327
7328       if test "$cross_compiling" = yes; then
7329   gl_cv_func_chown_follows_symlink=yes
7330
7331 else
7332   cat >conftest.$ac_ext <<_ACEOF
7333 /* confdefs.h.  */
7334 _ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h.  */
7338
7339 #include <unistd.h>
7340 #include <stdlib.h>
7341 #include <errno.h>
7342
7343         int
7344         main ()
7345         {
7346           char const *dangling_symlink = "conftest.dangle";
7347
7348           unlink (dangling_symlink);
7349           if (symlink ("conftest.no-such", dangling_symlink))
7350             abort ();
7351
7352           /* Exit successfully on a conforming system,
7353              i.e., where chown must fail with ENOENT.  */
7354           exit ( ! (chown (dangling_symlink, getuid (), getgid ()) != 0
7355                     && errno == ENOENT));
7356         }
7357
7358 _ACEOF
7359 rm -f conftest$ac_exeext
7360 if { (ac_try="$ac_link"
7361 case "(($ac_try" in
7362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7363   *) ac_try_echo=$ac_try;;
7364 esac
7365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7366 $as_echo "$ac_try_echo") >&5
7367   (eval "$ac_link") 2>&5
7368   ac_status=$?
7369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7371   { (case "(($ac_try" in
7372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7373   *) ac_try_echo=$ac_try;;
7374 esac
7375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7376 $as_echo "$ac_try_echo") >&5
7377   (eval "$ac_try") 2>&5
7378   ac_status=$?
7379   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380   (exit $ac_status); }; }; then
7381   gl_cv_func_chown_follows_symlink=yes
7382 else
7383   $as_echo "$as_me: program exited with status $ac_status" >&5
7384 $as_echo "$as_me: failed program was:" >&5
7385 sed 's/^/| /' conftest.$ac_ext >&5
7386
7387 ( exit $ac_status )
7388 gl_cv_func_chown_follows_symlink=no
7389 fi
7390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7391 fi
7392
7393
7394
7395
7396 fi
7397 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_chown_follows_symlink" >&5
7398 $as_echo "$gl_cv_func_chown_follows_symlink" >&6; }
7399
7400   if test $gl_cv_func_chown_follows_symlink = no; then
7401
7402 cat >>confdefs.h <<\_ACEOF
7403 #define CHOWN_MODIFIES_SYMLINK 1
7404 _ACEOF
7405
7406   fi
7407
7408
7409
7410   { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
7411 $as_echo_n "checking whether // is distinct from /... " >&6; }
7412 if test "${gl_cv_double_slash_root+set}" = set; then
7413   $as_echo_n "(cached) " >&6
7414 else
7415    if test x"$cross_compiling" = xyes ; then
7416         # When cross-compiling, there is no way to tell whether // is special
7417         # short of a list of hosts.  However, the only known hosts to date
7418         # that have a distinct // are Apollo DomainOS (too old to port to),
7419         # Cygwin, and z/OS.  If anyone knows of another system for which // has
7420         # special semantics and is distinct from /, please report it to
7421         # <bug-gnulib@gnu.org>.
7422         case $host in
7423           *-cygwin | i370-ibm-openedition)
7424             gl_cv_double_slash_root=yes ;;
7425           *)
7426             # Be optimistic and assume that / and // are the same when we
7427             # don't know.
7428             gl_cv_double_slash_root='unknown, assuming no' ;;
7429         esac
7430       else
7431         set x `ls -di / //`
7432         if test $2 = $4 && wc //dev/null >/dev/null 2>&1; then
7433           gl_cv_double_slash_root=no
7434         else
7435           gl_cv_double_slash_root=yes
7436         fi
7437       fi
7438 fi
7439 { $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
7440 $as_echo "$gl_cv_double_slash_root" >&6; }
7441   if test "$gl_cv_double_slash_root" = yes; then
7442
7443 cat >>confdefs.h <<\_ACEOF
7444 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
7445 _ACEOF
7446
7447   fi
7448
7449
7450
7451 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
7452 $as_echo_n "checking whether strerror_r is declared... " >&6; }
7453 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
7454   $as_echo_n "(cached) " >&6
7455 else
7456   cat >conftest.$ac_ext <<_ACEOF
7457 /* confdefs.h.  */
7458 _ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h.  */
7462 $ac_includes_default
7463 int
7464 main ()
7465 {
7466 #ifndef strerror_r
7467   (void) strerror_r;
7468 #endif
7469
7470   ;
7471   return 0;
7472 }
7473 _ACEOF
7474 rm -f conftest.$ac_objext
7475 if { (ac_try="$ac_compile"
7476 case "(($ac_try" in
7477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7478   *) ac_try_echo=$ac_try;;
7479 esac
7480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7481 $as_echo "$ac_try_echo") >&5
7482   (eval "$ac_compile") 2>conftest.er1
7483   ac_status=$?
7484   grep -v '^ *+' conftest.er1 >conftest.err
7485   rm -f conftest.er1
7486   cat conftest.err >&5
7487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488   (exit $ac_status); } && {
7489          test -z "$ac_c_werror_flag" ||
7490          test ! -s conftest.err
7491        } && test -s conftest.$ac_objext; then
7492   ac_cv_have_decl_strerror_r=yes
7493 else
7494   $as_echo "$as_me: failed program was:" >&5
7495 sed 's/^/| /' conftest.$ac_ext >&5
7496
7497         ac_cv_have_decl_strerror_r=no
7498 fi
7499
7500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7501 fi
7502 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
7503 $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
7504 if test $ac_cv_have_decl_strerror_r = yes; then
7505
7506 cat >>confdefs.h <<_ACEOF
7507 #define HAVE_DECL_STRERROR_R 1
7508 _ACEOF
7509
7510
7511 else
7512   cat >>confdefs.h <<_ACEOF
7513 #define HAVE_DECL_STRERROR_R 0
7514 _ACEOF
7515
7516
7517 fi
7518
7519
7520
7521 for ac_func in strerror_r
7522 do
7523 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7524 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7525 $as_echo_n "checking for $ac_func... " >&6; }
7526 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7527   $as_echo_n "(cached) " >&6
7528 else
7529   cat >conftest.$ac_ext <<_ACEOF
7530 /* confdefs.h.  */
7531 _ACEOF
7532 cat confdefs.h >>conftest.$ac_ext
7533 cat >>conftest.$ac_ext <<_ACEOF
7534 /* end confdefs.h.  */
7535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7536    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7537 #define $ac_func innocuous_$ac_func
7538
7539 /* System header to define __stub macros and hopefully few prototypes,
7540     which can conflict with char $ac_func (); below.
7541     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7542     <limits.h> exists even on freestanding compilers.  */
7543
7544 #ifdef __STDC__
7545 # include <limits.h>
7546 #else
7547 # include <assert.h>
7548 #endif
7549
7550 #undef $ac_func
7551
7552 /* Override any GCC internal prototype to avoid an error.
7553    Use char because int might match the return type of a GCC
7554    builtin and then its argument prototype would still apply.  */
7555 #ifdef __cplusplus
7556 extern "C"
7557 #endif
7558 char $ac_func ();
7559 /* The GNU C library defines this for functions which it implements
7560     to always fail with ENOSYS.  Some functions are actually named
7561     something starting with __ and the normal name is an alias.  */
7562 #if defined __stub_$ac_func || defined __stub___$ac_func
7563 choke me
7564 #endif
7565
7566 int
7567 main ()
7568 {
7569 return $ac_func ();
7570   ;
7571   return 0;
7572 }
7573 _ACEOF
7574 rm -f conftest.$ac_objext conftest$ac_exeext
7575 if { (ac_try="$ac_link"
7576 case "(($ac_try" in
7577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7578   *) ac_try_echo=$ac_try;;
7579 esac
7580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7581 $as_echo "$ac_try_echo") >&5
7582   (eval "$ac_link") 2>conftest.er1
7583   ac_status=$?
7584   grep -v '^ *+' conftest.er1 >conftest.err
7585   rm -f conftest.er1
7586   cat conftest.err >&5
7587   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588   (exit $ac_status); } && {
7589          test -z "$ac_c_werror_flag" ||
7590          test ! -s conftest.err
7591        } && test -s conftest$ac_exeext &&
7592        $as_test_x conftest$ac_exeext; then
7593   eval "$as_ac_var=yes"
7594 else
7595   $as_echo "$as_me: failed program was:" >&5
7596 sed 's/^/| /' conftest.$ac_ext >&5
7597
7598         eval "$as_ac_var=no"
7599 fi
7600
7601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7602       conftest$ac_exeext conftest.$ac_ext
7603 fi
7604 ac_res=`eval 'as_val=${'$as_ac_var'}
7605                  $as_echo "$as_val"'`
7606                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7607 $as_echo "$ac_res" >&6; }
7608 if test `eval 'as_val=${'$as_ac_var'}
7609                  $as_echo "$as_val"'` = yes; then
7610   cat >>confdefs.h <<_ACEOF
7611 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7612 _ACEOF
7613
7614 fi
7615 done
7616
7617 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
7618 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
7619 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
7620   $as_echo_n "(cached) " >&6
7621 else
7622
7623     ac_cv_func_strerror_r_char_p=no
7624     if test $ac_cv_have_decl_strerror_r = yes; then
7625       cat >conftest.$ac_ext <<_ACEOF
7626 /* confdefs.h.  */
7627 _ACEOF
7628 cat confdefs.h >>conftest.$ac_ext
7629 cat >>conftest.$ac_ext <<_ACEOF
7630 /* end confdefs.h.  */
7631 $ac_includes_default
7632 int
7633 main ()
7634 {
7635
7636           char buf[100];
7637           char x = *strerror_r (0, buf, sizeof buf);
7638           char *p = strerror_r (0, buf, sizeof buf);
7639           return !p || x;
7640
7641   ;
7642   return 0;
7643 }
7644 _ACEOF
7645 rm -f conftest.$ac_objext
7646 if { (ac_try="$ac_compile"
7647 case "(($ac_try" in
7648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7649   *) ac_try_echo=$ac_try;;
7650 esac
7651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7652 $as_echo "$ac_try_echo") >&5
7653   (eval "$ac_compile") 2>conftest.er1
7654   ac_status=$?
7655   grep -v '^ *+' conftest.er1 >conftest.err
7656   rm -f conftest.er1
7657   cat conftest.err >&5
7658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659   (exit $ac_status); } && {
7660          test -z "$ac_c_werror_flag" ||
7661          test ! -s conftest.err
7662        } && test -s conftest.$ac_objext; then
7663   ac_cv_func_strerror_r_char_p=yes
7664 else
7665   $as_echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7667
7668
7669 fi
7670
7671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7672     else
7673       # strerror_r is not declared.  Choose between
7674       # systems that have relatively inaccessible declarations for the
7675       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
7676       # former has a strerror_r that returns char*, while the latter
7677       # has a strerror_r that returns `int'.
7678       # This test should segfault on the DEC system.
7679       if test "$cross_compiling" = yes; then
7680   :
7681 else
7682   cat >conftest.$ac_ext <<_ACEOF
7683 /* confdefs.h.  */
7684 _ACEOF
7685 cat confdefs.h >>conftest.$ac_ext
7686 cat >>conftest.$ac_ext <<_ACEOF
7687 /* end confdefs.h.  */
7688 $ac_includes_default
7689         extern char *strerror_r ();
7690 int
7691 main ()
7692 {
7693 char buf[100];
7694           char x = *strerror_r (0, buf, sizeof buf);
7695           return ! isalpha (x);
7696   ;
7697   return 0;
7698 }
7699 _ACEOF
7700 rm -f conftest$ac_exeext
7701 if { (ac_try="$ac_link"
7702 case "(($ac_try" in
7703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7704   *) ac_try_echo=$ac_try;;
7705 esac
7706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7707 $as_echo "$ac_try_echo") >&5
7708   (eval "$ac_link") 2>&5
7709   ac_status=$?
7710   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7712   { (case "(($ac_try" in
7713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714   *) ac_try_echo=$ac_try;;
7715 esac
7716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7717 $as_echo "$ac_try_echo") >&5
7718   (eval "$ac_try") 2>&5
7719   ac_status=$?
7720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721   (exit $ac_status); }; }; then
7722   ac_cv_func_strerror_r_char_p=yes
7723 else
7724   $as_echo "$as_me: program exited with status $ac_status" >&5
7725 $as_echo "$as_me: failed program was:" >&5
7726 sed 's/^/| /' conftest.$ac_ext >&5
7727
7728 fi
7729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7730 fi
7731
7732
7733     fi
7734
7735 fi
7736 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
7737 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
7738 if test $ac_cv_func_strerror_r_char_p = yes; then
7739
7740 cat >>confdefs.h <<\_ACEOF
7741 #define STRERROR_R_CHAR_P 1
7742 _ACEOF
7743
7744 fi
7745
7746 { $as_echo "$as_me:$LINENO: checking whether euidaccess is declared" >&5
7747 $as_echo_n "checking whether euidaccess is declared... " >&6; }
7748 if test "${ac_cv_have_decl_euidaccess+set}" = set; then
7749   $as_echo_n "(cached) " >&6
7750 else
7751   cat >conftest.$ac_ext <<_ACEOF
7752 /* confdefs.h.  */
7753 _ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h.  */
7757 $ac_includes_default
7758 int
7759 main ()
7760 {
7761 #ifndef euidaccess
7762   (void) euidaccess;
7763 #endif
7764
7765   ;
7766   return 0;
7767 }
7768 _ACEOF
7769 rm -f conftest.$ac_objext
7770 if { (ac_try="$ac_compile"
7771 case "(($ac_try" in
7772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7773   *) ac_try_echo=$ac_try;;
7774 esac
7775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7776 $as_echo "$ac_try_echo") >&5
7777   (eval "$ac_compile") 2>conftest.er1
7778   ac_status=$?
7779   grep -v '^ *+' conftest.er1 >conftest.err
7780   rm -f conftest.er1
7781   cat conftest.err >&5
7782   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783   (exit $ac_status); } && {
7784          test -z "$ac_c_werror_flag" ||
7785          test ! -s conftest.err
7786        } && test -s conftest.$ac_objext; then
7787   ac_cv_have_decl_euidaccess=yes
7788 else
7789   $as_echo "$as_me: failed program was:" >&5
7790 sed 's/^/| /' conftest.$ac_ext >&5
7791
7792         ac_cv_have_decl_euidaccess=no
7793 fi
7794
7795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7796 fi
7797 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_euidaccess" >&5
7798 $as_echo "$ac_cv_have_decl_euidaccess" >&6; }
7799 if test $ac_cv_have_decl_euidaccess = yes; then
7800
7801 cat >>confdefs.h <<_ACEOF
7802 #define HAVE_DECL_EUIDACCESS 1
7803 _ACEOF
7804
7805
7806 else
7807   cat >>confdefs.h <<_ACEOF
7808 #define HAVE_DECL_EUIDACCESS 0
7809 _ACEOF
7810
7811
7812 fi
7813
7814
7815
7816
7817 { $as_echo "$as_me:$LINENO: checking whether setregid is declared" >&5
7818 $as_echo_n "checking whether setregid is declared... " >&6; }
7819 if test "${ac_cv_have_decl_setregid+set}" = set; then
7820   $as_echo_n "(cached) " >&6
7821 else
7822   cat >conftest.$ac_ext <<_ACEOF
7823 /* confdefs.h.  */
7824 _ACEOF
7825 cat confdefs.h >>conftest.$ac_ext
7826 cat >>conftest.$ac_ext <<_ACEOF
7827 /* end confdefs.h.  */
7828 $ac_includes_default
7829 int
7830 main ()
7831 {
7832 #ifndef setregid
7833   (void) setregid;
7834 #endif
7835
7836   ;
7837   return 0;
7838 }
7839 _ACEOF
7840 rm -f conftest.$ac_objext
7841 if { (ac_try="$ac_compile"
7842 case "(($ac_try" in
7843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844   *) ac_try_echo=$ac_try;;
7845 esac
7846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7847 $as_echo "$ac_try_echo") >&5
7848   (eval "$ac_compile") 2>conftest.er1
7849   ac_status=$?
7850   grep -v '^ *+' conftest.er1 >conftest.err
7851   rm -f conftest.er1
7852   cat conftest.err >&5
7853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854   (exit $ac_status); } && {
7855          test -z "$ac_c_werror_flag" ||
7856          test ! -s conftest.err
7857        } && test -s conftest.$ac_objext; then
7858   ac_cv_have_decl_setregid=yes
7859 else
7860   $as_echo "$as_me: failed program was:" >&5
7861 sed 's/^/| /' conftest.$ac_ext >&5
7862
7863         ac_cv_have_decl_setregid=no
7864 fi
7865
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867 fi
7868 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5
7869 $as_echo "$ac_cv_have_decl_setregid" >&6; }
7870 if test $ac_cv_have_decl_setregid = yes; then
7871
7872 cat >>confdefs.h <<_ACEOF
7873 #define HAVE_DECL_SETREGID 1
7874 _ACEOF
7875
7876
7877 else
7878   cat >>confdefs.h <<_ACEOF
7879 #define HAVE_DECL_SETREGID 0
7880 _ACEOF
7881
7882
7883 fi
7884
7885
7886 { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7887 $as_echo_n "checking type of array argument to getgroups... " >&6; }
7888 if test "${ac_cv_type_getgroups+set}" = set; then
7889   $as_echo_n "(cached) " >&6
7890 else
7891   if test "$cross_compiling" = yes; then
7892   ac_cv_type_getgroups=cross
7893 else
7894   cat >conftest.$ac_ext <<_ACEOF
7895 /* confdefs.h.  */
7896 _ACEOF
7897 cat confdefs.h >>conftest.$ac_ext
7898 cat >>conftest.$ac_ext <<_ACEOF
7899 /* end confdefs.h.  */
7900 /* Thanks to Mike Rendell for this test.  */
7901 $ac_includes_default
7902 #define NGID 256
7903 #undef MAX
7904 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7905
7906 int
7907 main ()
7908 {
7909   gid_t gidset[NGID];
7910   int i, n;
7911   union { gid_t gval; long int lval; }  val;
7912
7913   val.lval = -1;
7914   for (i = 0; i < NGID; i++)
7915     gidset[i] = val.gval;
7916   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7917                  gidset);
7918   /* Exit non-zero if getgroups seems to require an array of ints.  This
7919      happens when gid_t is short int but getgroups modifies an array
7920      of ints.  */
7921   return n > 0 && gidset[n] != val.gval;
7922 }
7923 _ACEOF
7924 rm -f conftest$ac_exeext
7925 if { (ac_try="$ac_link"
7926 case "(($ac_try" in
7927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928   *) ac_try_echo=$ac_try;;
7929 esac
7930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7931 $as_echo "$ac_try_echo") >&5
7932   (eval "$ac_link") 2>&5
7933   ac_status=$?
7934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7936   { (case "(($ac_try" in
7937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938   *) ac_try_echo=$ac_try;;
7939 esac
7940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7941 $as_echo "$ac_try_echo") >&5
7942   (eval "$ac_try") 2>&5
7943   ac_status=$?
7944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945   (exit $ac_status); }; }; then
7946   ac_cv_type_getgroups=gid_t
7947 else
7948   $as_echo "$as_me: program exited with status $ac_status" >&5
7949 $as_echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.$ac_ext >&5
7951
7952 ( exit $ac_status )
7953 ac_cv_type_getgroups=int
7954 fi
7955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7956 fi
7957
7958
7959 if test $ac_cv_type_getgroups = cross; then
7960         cat >conftest.$ac_ext <<_ACEOF
7961 /* confdefs.h.  */
7962 _ACEOF
7963 cat confdefs.h >>conftest.$ac_ext
7964 cat >>conftest.$ac_ext <<_ACEOF
7965 /* end confdefs.h.  */
7966 #include <unistd.h>
7967
7968 _ACEOF
7969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7970   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7971   ac_cv_type_getgroups=gid_t
7972 else
7973   ac_cv_type_getgroups=int
7974 fi
7975 rm -f conftest*
7976
7977 fi
7978 fi
7979 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7980 $as_echo "$ac_cv_type_getgroups" >&6; }
7981
7982 cat >>confdefs.h <<_ACEOF
7983 #define GETGROUPS_T $ac_cv_type_getgroups
7984 _ACEOF
7985
7986
7987 { $as_echo "$as_me:$LINENO: checking for getgroups" >&5
7988 $as_echo_n "checking for getgroups... " >&6; }
7989 if test "${ac_cv_func_getgroups+set}" = set; then
7990   $as_echo_n "(cached) " >&6
7991 else
7992   cat >conftest.$ac_ext <<_ACEOF
7993 /* confdefs.h.  */
7994 _ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h.  */
7998 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
7999    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8000 #define getgroups innocuous_getgroups
8001
8002 /* System header to define __stub macros and hopefully few prototypes,
8003     which can conflict with char getgroups (); below.
8004     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8005     <limits.h> exists even on freestanding compilers.  */
8006
8007 #ifdef __STDC__
8008 # include <limits.h>
8009 #else
8010 # include <assert.h>
8011 #endif
8012
8013 #undef getgroups
8014
8015 /* Override any GCC internal prototype to avoid an error.
8016    Use char because int might match the return type of a GCC
8017    builtin and then its argument prototype would still apply.  */
8018 #ifdef __cplusplus
8019 extern "C"
8020 #endif
8021 char getgroups ();
8022 /* The GNU C library defines this for functions which it implements
8023     to always fail with ENOSYS.  Some functions are actually named
8024     something starting with __ and the normal name is an alias.  */
8025 #if defined __stub_getgroups || defined __stub___getgroups
8026 choke me
8027 #endif
8028
8029 int
8030 main ()
8031 {
8032 return getgroups ();
8033   ;
8034   return 0;
8035 }
8036 _ACEOF
8037 rm -f conftest.$ac_objext conftest$ac_exeext
8038 if { (ac_try="$ac_link"
8039 case "(($ac_try" in
8040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041   *) ac_try_echo=$ac_try;;
8042 esac
8043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8044 $as_echo "$ac_try_echo") >&5
8045   (eval "$ac_link") 2>conftest.er1
8046   ac_status=$?
8047   grep -v '^ *+' conftest.er1 >conftest.err
8048   rm -f conftest.er1
8049   cat conftest.err >&5
8050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051   (exit $ac_status); } && {
8052          test -z "$ac_c_werror_flag" ||
8053          test ! -s conftest.err
8054        } && test -s conftest$ac_exeext &&
8055        $as_test_x conftest$ac_exeext; then
8056   ac_cv_func_getgroups=yes
8057 else
8058   $as_echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.$ac_ext >&5
8060
8061         ac_cv_func_getgroups=no
8062 fi
8063
8064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8065       conftest$ac_exeext conftest.$ac_ext
8066 fi
8067 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
8068 $as_echo "$ac_cv_func_getgroups" >&6; }
8069
8070
8071 # If we don't yet have getgroups, see if it's in -lbsd.
8072 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
8073 ac_save_LIBS=$LIBS
8074 if test $ac_cv_func_getgroups = no; then
8075   { $as_echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
8076 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
8077 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
8078   $as_echo_n "(cached) " >&6
8079 else
8080   ac_check_lib_save_LIBS=$LIBS
8081 LIBS="-lbsd  $LIBS"
8082 cat >conftest.$ac_ext <<_ACEOF
8083 /* confdefs.h.  */
8084 _ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h.  */
8088
8089 /* Override any GCC internal prototype to avoid an error.
8090    Use char because int might match the return type of a GCC
8091    builtin and then its argument prototype would still apply.  */
8092 #ifdef __cplusplus
8093 extern "C"
8094 #endif
8095 char getgroups ();
8096 int
8097 main ()
8098 {
8099 return getgroups ();
8100   ;
8101   return 0;
8102 }
8103 _ACEOF
8104 rm -f conftest.$ac_objext conftest$ac_exeext
8105 if { (ac_try="$ac_link"
8106 case "(($ac_try" in
8107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108   *) ac_try_echo=$ac_try;;
8109 esac
8110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8111 $as_echo "$ac_try_echo") >&5
8112   (eval "$ac_link") 2>conftest.er1
8113   ac_status=$?
8114   grep -v '^ *+' conftest.er1 >conftest.err
8115   rm -f conftest.er1
8116   cat conftest.err >&5
8117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118   (exit $ac_status); } && {
8119          test -z "$ac_c_werror_flag" ||
8120          test ! -s conftest.err
8121        } && test -s conftest$ac_exeext &&
8122        $as_test_x conftest$ac_exeext; then
8123   ac_cv_lib_bsd_getgroups=yes
8124 else
8125   $as_echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8127
8128         ac_cv_lib_bsd_getgroups=no
8129 fi
8130
8131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8132       conftest$ac_exeext conftest.$ac_ext
8133 LIBS=$ac_check_lib_save_LIBS
8134 fi
8135 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
8136 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
8137 if test $ac_cv_lib_bsd_getgroups = yes; then
8138   GETGROUPS_LIB=-lbsd
8139 fi
8140
8141 fi
8142
8143 # Run the program to test the functionality of the system-supplied
8144 # getgroups function only if there is such a function.
8145 if test $ac_cv_func_getgroups = yes; then
8146   { $as_echo "$as_me:$LINENO: checking for working getgroups" >&5
8147 $as_echo_n "checking for working getgroups... " >&6; }
8148 if test "${ac_cv_func_getgroups_works+set}" = set; then
8149   $as_echo_n "(cached) " >&6
8150 else
8151   if test "$cross_compiling" = yes; then
8152   ac_cv_func_getgroups_works=no
8153 else
8154   cat >conftest.$ac_ext <<_ACEOF
8155 /* confdefs.h.  */
8156 _ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h.  */
8160 $ac_includes_default
8161 int
8162 main ()
8163 {
8164 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
8165        return getgroups (0, 0) == -1;
8166   ;
8167   return 0;
8168 }
8169 _ACEOF
8170 rm -f conftest$ac_exeext
8171 if { (ac_try="$ac_link"
8172 case "(($ac_try" in
8173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174   *) ac_try_echo=$ac_try;;
8175 esac
8176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8177 $as_echo "$ac_try_echo") >&5
8178   (eval "$ac_link") 2>&5
8179   ac_status=$?
8180   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8182   { (case "(($ac_try" in
8183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184   *) ac_try_echo=$ac_try;;
8185 esac
8186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8187 $as_echo "$ac_try_echo") >&5
8188   (eval "$ac_try") 2>&5
8189   ac_status=$?
8190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191   (exit $ac_status); }; }; then
8192   ac_cv_func_getgroups_works=yes
8193 else
8194   $as_echo "$as_me: program exited with status $ac_status" >&5
8195 $as_echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8197
8198 ( exit $ac_status )
8199 ac_cv_func_getgroups_works=no
8200 fi
8201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8202 fi
8203
8204
8205
8206 fi
8207 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
8208 $as_echo "$ac_cv_func_getgroups_works" >&6; }
8209   if test $ac_cv_func_getgroups_works = yes; then
8210
8211 cat >>confdefs.h <<\_ACEOF
8212 #define HAVE_GETGROUPS 1
8213 _ACEOF
8214
8215   fi
8216 fi
8217 LIBS=$ac_save_LIBS
8218
8219
8220
8221
8222
8223
8224
8225 { $as_echo "$as_me:$LINENO: checking for st_dm_mode in struct stat" >&5
8226 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
8227 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
8228   $as_echo_n "(cached) " >&6
8229 else
8230   cat >conftest.$ac_ext <<_ACEOF
8231 /* confdefs.h.  */
8232 _ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h.  */
8236 #include <sys/types.h>
8237 #include <sys/stat.h>
8238 int
8239 main ()
8240 {
8241 struct stat s; s.st_dm_mode;
8242   ;
8243   return 0;
8244 }
8245 _ACEOF
8246 rm -f conftest.$ac_objext
8247 if { (ac_try="$ac_compile"
8248 case "(($ac_try" in
8249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8250   *) ac_try_echo=$ac_try;;
8251 esac
8252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8253 $as_echo "$ac_try_echo") >&5
8254   (eval "$ac_compile") 2>conftest.er1
8255   ac_status=$?
8256   grep -v '^ *+' conftest.er1 >conftest.err
8257   rm -f conftest.er1
8258   cat conftest.err >&5
8259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260   (exit $ac_status); } && {
8261          test -z "$ac_c_werror_flag" ||
8262          test ! -s conftest.err
8263        } && test -s conftest.$ac_objext; then
8264   ac_cv_struct_st_dm_mode=yes
8265 else
8266   $as_echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8268
8269         ac_cv_struct_st_dm_mode=no
8270 fi
8271
8272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8273 fi
8274 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_st_dm_mode" >&5
8275 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
8276
8277   if test $ac_cv_struct_st_dm_mode = yes; then
8278
8279 cat >>confdefs.h <<\_ACEOF
8280 #define HAVE_ST_DM_MODE 1
8281 _ACEOF
8282
8283   fi
8284
8285
8286 { $as_echo "$as_me:$LINENO: checking whether strmode is declared" >&5
8287 $as_echo_n "checking whether strmode is declared... " >&6; }
8288 if test "${ac_cv_have_decl_strmode+set}" = set; then
8289   $as_echo_n "(cached) " >&6
8290 else
8291   cat >conftest.$ac_ext <<_ACEOF
8292 /* confdefs.h.  */
8293 _ACEOF
8294 cat confdefs.h >>conftest.$ac_ext
8295 cat >>conftest.$ac_ext <<_ACEOF
8296 /* end confdefs.h.  */
8297 $ac_includes_default
8298 int
8299 main ()
8300 {
8301 #ifndef strmode
8302   (void) strmode;
8303 #endif
8304
8305   ;
8306   return 0;
8307 }
8308 _ACEOF
8309 rm -f conftest.$ac_objext
8310 if { (ac_try="$ac_compile"
8311 case "(($ac_try" in
8312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313   *) ac_try_echo=$ac_try;;
8314 esac
8315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8316 $as_echo "$ac_try_echo") >&5
8317   (eval "$ac_compile") 2>conftest.er1
8318   ac_status=$?
8319   grep -v '^ *+' conftest.er1 >conftest.err
8320   rm -f conftest.er1
8321   cat conftest.err >&5
8322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323   (exit $ac_status); } && {
8324          test -z "$ac_c_werror_flag" ||
8325          test ! -s conftest.err
8326        } && test -s conftest.$ac_objext; then
8327   ac_cv_have_decl_strmode=yes
8328 else
8329   $as_echo "$as_me: failed program was:" >&5
8330 sed 's/^/| /' conftest.$ac_ext >&5
8331
8332         ac_cv_have_decl_strmode=no
8333 fi
8334
8335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8336 fi
8337 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strmode" >&5
8338 $as_echo "$ac_cv_have_decl_strmode" >&6; }
8339 if test $ac_cv_have_decl_strmode = yes; then
8340
8341 cat >>confdefs.h <<_ACEOF
8342 #define HAVE_DECL_STRMODE 1
8343 _ACEOF
8344
8345
8346 else
8347   cat >>confdefs.h <<_ACEOF
8348 #define HAVE_DECL_STRMODE 0
8349 _ACEOF
8350
8351
8352 fi
8353
8354
8355
8356
8357 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
8358 $as_echo_n "checking for mbstate_t... " >&6; }
8359 if test "${ac_cv_type_mbstate_t+set}" = set; then
8360   $as_echo_n "(cached) " >&6
8361 else
8362   cat >conftest.$ac_ext <<_ACEOF
8363 /* confdefs.h.  */
8364 _ACEOF
8365 cat confdefs.h >>conftest.$ac_ext
8366 cat >>conftest.$ac_ext <<_ACEOF
8367 /* end confdefs.h.  */
8368 $ac_includes_default
8369 #           include <wchar.h>
8370 int
8371 main ()
8372 {
8373 mbstate_t x; return sizeof x;
8374   ;
8375   return 0;
8376 }
8377 _ACEOF
8378 rm -f conftest.$ac_objext
8379 if { (ac_try="$ac_compile"
8380 case "(($ac_try" in
8381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8382   *) ac_try_echo=$ac_try;;
8383 esac
8384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8385 $as_echo "$ac_try_echo") >&5
8386   (eval "$ac_compile") 2>conftest.er1
8387   ac_status=$?
8388   grep -v '^ *+' conftest.er1 >conftest.err
8389   rm -f conftest.er1
8390   cat conftest.err >&5
8391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392   (exit $ac_status); } && {
8393          test -z "$ac_c_werror_flag" ||
8394          test ! -s conftest.err
8395        } && test -s conftest.$ac_objext; then
8396   ac_cv_type_mbstate_t=yes
8397 else
8398   $as_echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8400
8401         ac_cv_type_mbstate_t=no
8402 fi
8403
8404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8405 fi
8406 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
8407 $as_echo "$ac_cv_type_mbstate_t" >&6; }
8408    if test $ac_cv_type_mbstate_t = yes; then
8409
8410 cat >>confdefs.h <<\_ACEOF
8411 #define HAVE_MBSTATE_T 1
8412 _ACEOF
8413
8414    else
8415
8416 cat >>confdefs.h <<\_ACEOF
8417 #define mbstate_t int
8418 _ACEOF
8419
8420    fi
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450   { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
8451 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
8452 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
8453   $as_echo_n "(cached) " >&6
8454 else
8455
8456       cat >conftest.$ac_ext <<_ACEOF
8457 /* confdefs.h.  */
8458 _ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h.  */
8462 #include <sys/socket.h>
8463 int
8464 main ()
8465 {
8466
8467   ;
8468   return 0;
8469 }
8470 _ACEOF
8471 rm -f conftest.$ac_objext
8472 if { (ac_try="$ac_compile"
8473 case "(($ac_try" in
8474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475   *) ac_try_echo=$ac_try;;
8476 esac
8477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8478 $as_echo "$ac_try_echo") >&5
8479   (eval "$ac_compile") 2>conftest.er1
8480   ac_status=$?
8481   grep -v '^ *+' conftest.er1 >conftest.err
8482   rm -f conftest.er1
8483   cat conftest.err >&5
8484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); } && {
8486          test -z "$ac_c_werror_flag" ||
8487          test ! -s conftest.err
8488        } && test -s conftest.$ac_objext; then
8489   gl_cv_header_sys_socket_h_selfcontained=yes
8490 else
8491   $as_echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.$ac_ext >&5
8493
8494         gl_cv_header_sys_socket_h_selfcontained=no
8495 fi
8496
8497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8498
8499 fi
8500 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
8501 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
8502   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
8503     SYS_SOCKET_H=''
8504   else
8505     SYS_SOCKET_H='sys/socket.h'
8506
8507
8508 for ac_header in sys/socket.h
8509 do
8510 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8512   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8513 $as_echo_n "checking for $ac_header... " >&6; }
8514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8515   $as_echo_n "(cached) " >&6
8516 fi
8517 ac_res=`eval 'as_val=${'$as_ac_Header'}
8518                  $as_echo "$as_val"'`
8519                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8520 $as_echo "$ac_res" >&6; }
8521 else
8522   # Is the header compilable?
8523 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8524 $as_echo_n "checking $ac_header usability... " >&6; }
8525 cat >conftest.$ac_ext <<_ACEOF
8526 /* confdefs.h.  */
8527 _ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h.  */
8531 $ac_includes_default
8532 #include <$ac_header>
8533 _ACEOF
8534 rm -f conftest.$ac_objext
8535 if { (ac_try="$ac_compile"
8536 case "(($ac_try" in
8537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8538   *) ac_try_echo=$ac_try;;
8539 esac
8540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8541 $as_echo "$ac_try_echo") >&5
8542   (eval "$ac_compile") 2>conftest.er1
8543   ac_status=$?
8544   grep -v '^ *+' conftest.er1 >conftest.err
8545   rm -f conftest.er1
8546   cat conftest.err >&5
8547   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548   (exit $ac_status); } && {
8549          test -z "$ac_c_werror_flag" ||
8550          test ! -s conftest.err
8551        } && test -s conftest.$ac_objext; then
8552   ac_header_compiler=yes
8553 else
8554   $as_echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8556
8557         ac_header_compiler=no
8558 fi
8559
8560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8561 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8562 $as_echo "$ac_header_compiler" >&6; }
8563
8564 # Is the header present?
8565 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8566 $as_echo_n "checking $ac_header presence... " >&6; }
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 <$ac_header>
8574 _ACEOF
8575 if { (ac_try="$ac_cpp conftest.$ac_ext"
8576 case "(($ac_try" in
8577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578   *) ac_try_echo=$ac_try;;
8579 esac
8580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8581 $as_echo "$ac_try_echo") >&5
8582   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8583   ac_status=$?
8584   grep -v '^ *+' conftest.er1 >conftest.err
8585   rm -f conftest.er1
8586   cat conftest.err >&5
8587   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588   (exit $ac_status); } >/dev/null && {
8589          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8590          test ! -s conftest.err
8591        }; then
8592   ac_header_preproc=yes
8593 else
8594   $as_echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8596
8597   ac_header_preproc=no
8598 fi
8599
8600 rm -f conftest.err conftest.$ac_ext
8601 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8602 $as_echo "$ac_header_preproc" >&6; }
8603
8604 # So?  What about this header?
8605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8606   yes:no: )
8607     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8608 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8609     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8610 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8611     ac_header_preproc=yes
8612     ;;
8613   no:yes:* )
8614     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8615 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8616     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8617 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8618     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8619 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8620     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8621 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8622     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8623 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8624     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8625 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8626     ( cat <<\_ASBOX
8627 ## ------------------------------------ ##
8628 ## Report this to bug-coreutils@gnu.org ##
8629 ## ------------------------------------ ##
8630 _ASBOX
8631      ) | sed "s/^/$as_me: WARNING:     /" >&2
8632     ;;
8633 esac
8634 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8635 $as_echo_n "checking for $ac_header... " >&6; }
8636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8637   $as_echo_n "(cached) " >&6
8638 else
8639   eval "$as_ac_Header=\$ac_header_preproc"
8640 fi
8641 ac_res=`eval 'as_val=${'$as_ac_Header'}
8642                  $as_echo "$as_val"'`
8643                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8644 $as_echo "$ac_res" >&6; }
8645
8646 fi
8647 if test `eval 'as_val=${'$as_ac_Header'}
8648                  $as_echo "$as_val"'` = yes; then
8649   cat >>confdefs.h <<_ACEOF
8650 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8651 _ACEOF
8652
8653 fi
8654
8655 done
8656
8657       { $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
8658 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
8659 if test "${gl_cv_absolute_sys_socket_h+set}" = set; then
8660   $as_echo_n "(cached) " >&6
8661 else
8662
8663
8664
8665
8666
8667     if test $ac_cv_header_sys_socket_h = yes; then
8668       cat >conftest.$ac_ext <<_ACEOF
8669 /* confdefs.h.  */
8670 _ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h.  */
8674 #include <sys/socket.h>
8675 _ACEOF
8676       gl_cv_absolute_sys_socket_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8677 sed -n '\#/sys/socket.h#{s#.*"\(.*/sys/socket.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
8678     fi
8679
8680 fi
8681 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_sys_socket_h" >&5
8682 $as_echo "$gl_cv_absolute_sys_socket_h" >&6; }
8683 cat >>confdefs.h <<_ACEOF
8684 #define ABSOLUTE_SYS_SOCKET_H "$gl_cv_absolute_sys_socket_h"
8685 _ACEOF
8686
8687
8688     ABSOLUTE_SYS_SOCKET_H=\"$gl_cv_absolute_sys_socket_h\"
8689
8690     if test $ac_cv_header_sys_socket_h = yes; then
8691       HAVE_SYS_SOCKET_H=1
8692       HAVE_WINSOCK2_H=0
8693       HAVE_WS2TCPIP_H=0
8694     else
8695       HAVE_SYS_SOCKET_H=0
8696
8697
8698 for ac_header in winsock2.h ws2tcpip.h
8699 do
8700 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8702   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8703 $as_echo_n "checking for $ac_header... " >&6; }
8704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8705   $as_echo_n "(cached) " >&6
8706 fi
8707 ac_res=`eval 'as_val=${'$as_ac_Header'}
8708                  $as_echo "$as_val"'`
8709                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8710 $as_echo "$ac_res" >&6; }
8711 else
8712   # Is the header compilable?
8713 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8714 $as_echo_n "checking $ac_header usability... " >&6; }
8715 cat >conftest.$ac_ext <<_ACEOF
8716 /* confdefs.h.  */
8717 _ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h.  */
8721 $ac_includes_default
8722 #include <$ac_header>
8723 _ACEOF
8724 rm -f conftest.$ac_objext
8725 if { (ac_try="$ac_compile"
8726 case "(($ac_try" in
8727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8728   *) ac_try_echo=$ac_try;;
8729 esac
8730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8731 $as_echo "$ac_try_echo") >&5
8732   (eval "$ac_compile") 2>conftest.er1
8733   ac_status=$?
8734   grep -v '^ *+' conftest.er1 >conftest.err
8735   rm -f conftest.er1
8736   cat conftest.err >&5
8737   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738   (exit $ac_status); } && {
8739          test -z "$ac_c_werror_flag" ||
8740          test ! -s conftest.err
8741        } && test -s conftest.$ac_objext; then
8742   ac_header_compiler=yes
8743 else
8744   $as_echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8746
8747         ac_header_compiler=no
8748 fi
8749
8750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8751 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8752 $as_echo "$ac_header_compiler" >&6; }
8753
8754 # Is the header present?
8755 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8756 $as_echo_n "checking $ac_header presence... " >&6; }
8757 cat >conftest.$ac_ext <<_ACEOF
8758 /* confdefs.h.  */
8759 _ACEOF
8760 cat confdefs.h >>conftest.$ac_ext
8761 cat >>conftest.$ac_ext <<_ACEOF
8762 /* end confdefs.h.  */
8763 #include <$ac_header>
8764 _ACEOF
8765 if { (ac_try="$ac_cpp conftest.$ac_ext"
8766 case "(($ac_try" in
8767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8768   *) ac_try_echo=$ac_try;;
8769 esac
8770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8771 $as_echo "$ac_try_echo") >&5
8772   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8773   ac_status=$?
8774   grep -v '^ *+' conftest.er1 >conftest.err
8775   rm -f conftest.er1
8776   cat conftest.err >&5
8777   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778   (exit $ac_status); } >/dev/null && {
8779          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8780          test ! -s conftest.err
8781        }; then
8782   ac_header_preproc=yes
8783 else
8784   $as_echo "$as_me: failed program was:" >&5
8785 sed 's/^/| /' conftest.$ac_ext >&5
8786
8787   ac_header_preproc=no
8788 fi
8789
8790 rm -f conftest.err conftest.$ac_ext
8791 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8792 $as_echo "$ac_header_preproc" >&6; }
8793
8794 # So?  What about this header?
8795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8796   yes:no: )
8797     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8798 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8799     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8800 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8801     ac_header_preproc=yes
8802     ;;
8803   no:yes:* )
8804     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8805 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8806     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8807 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8808     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8809 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8810     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8811 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8812     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8813 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8814     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8815 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8816     ( cat <<\_ASBOX
8817 ## ------------------------------------ ##
8818 ## Report this to bug-coreutils@gnu.org ##
8819 ## ------------------------------------ ##
8820 _ASBOX
8821      ) | sed "s/^/$as_me: WARNING:     /" >&2
8822     ;;
8823 esac
8824 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8825 $as_echo_n "checking for $ac_header... " >&6; }
8826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8827   $as_echo_n "(cached) " >&6
8828 else
8829   eval "$as_ac_Header=\$ac_header_preproc"
8830 fi
8831 ac_res=`eval 'as_val=${'$as_ac_Header'}
8832                  $as_echo "$as_val"'`
8833                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8834 $as_echo "$ac_res" >&6; }
8835
8836 fi
8837 if test `eval 'as_val=${'$as_ac_Header'}
8838                  $as_echo "$as_val"'` = yes; then
8839   cat >>confdefs.h <<_ACEOF
8840 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8841 _ACEOF
8842
8843 fi
8844
8845 done
8846
8847       if test $ac_cv_header_winsock2_h = yes; then
8848         HAVE_WINSOCK2_H=1
8849       else
8850         HAVE_WINSOCK2_H=0
8851       fi
8852       if test $ac_cv_header_ws2tcpip_h = yes; then
8853         HAVE_WS2TCPIP_H=1
8854       else
8855         HAVE_WS2TCPIP_H=0
8856       fi
8857     fi
8858
8859
8860
8861   fi
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875   { $as_echo "$as_me:$LINENO: checking for IPv4 sockets" >&5
8876 $as_echo_n "checking for IPv4 sockets... " >&6; }
8877   if test "${gl_cv_socket_ipv4+set}" = set; then
8878   $as_echo_n "(cached) " >&6
8879 else
8880   cat >conftest.$ac_ext <<_ACEOF
8881 /* confdefs.h.  */
8882 _ACEOF
8883 cat confdefs.h >>conftest.$ac_ext
8884 cat >>conftest.$ac_ext <<_ACEOF
8885 /* end confdefs.h.  */
8886 #include <sys/types.h>
8887 #ifdef HAVE_SYS_SOCKET_H
8888 #include <sys/socket.h>
8889 #endif
8890 #ifdef HAVE_NETINET_IN_H
8891 #include <netinet/in.h>
8892 #endif
8893 #ifdef HAVE_WINSOCK2_H
8894 #include <winsock2.h>
8895 #endif
8896 int
8897 main ()
8898 {
8899 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
8900  if (&x && &y && &z) return 0;
8901   ;
8902   return 0;
8903 }
8904 _ACEOF
8905 rm -f conftest.$ac_objext
8906 if { (ac_try="$ac_compile"
8907 case "(($ac_try" in
8908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8909   *) ac_try_echo=$ac_try;;
8910 esac
8911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8912 $as_echo "$ac_try_echo") >&5
8913   (eval "$ac_compile") 2>conftest.er1
8914   ac_status=$?
8915   grep -v '^ *+' conftest.er1 >conftest.err
8916   rm -f conftest.er1
8917   cat conftest.err >&5
8918   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919   (exit $ac_status); } && {
8920          test -z "$ac_c_werror_flag" ||
8921          test ! -s conftest.err
8922        } && test -s conftest.$ac_objext; then
8923   gl_cv_socket_ipv4=yes
8924 else
8925   $as_echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8927
8928         gl_cv_socket_ipv4=no
8929 fi
8930
8931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8932 fi
8933
8934   { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv4" >&5
8935 $as_echo "$gl_cv_socket_ipv4" >&6; }
8936   if test $gl_cv_socket_ipv4 = yes; then
8937
8938 cat >>confdefs.h <<\_ACEOF
8939 #define HAVE_IPV4 1
8940 _ACEOF
8941
8942   fi
8943
8944   { $as_echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
8945 $as_echo_n "checking for IPv6 sockets... " >&6; }
8946   if test "${gl_cv_socket_ipv6+set}" = set; then
8947   $as_echo_n "(cached) " >&6
8948 else
8949   cat >conftest.$ac_ext <<_ACEOF
8950 /* confdefs.h.  */
8951 _ACEOF
8952 cat confdefs.h >>conftest.$ac_ext
8953 cat >>conftest.$ac_ext <<_ACEOF
8954 /* end confdefs.h.  */
8955 #include <sys/types.h>
8956 #ifdef HAVE_SYS_SOCKET_H
8957 #include <sys/socket.h>
8958 #endif
8959 #ifdef HAVE_NETINET_IN_H
8960 #include <netinet/in.h>
8961 #endif
8962 #ifdef HAVE_WINSOCK2_H
8963 #include <winsock2.h>
8964 #endif
8965 int
8966 main ()
8967 {
8968 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
8969  if (&x && &y && &z) return 0;
8970   ;
8971   return 0;
8972 }
8973 _ACEOF
8974 rm -f conftest.$ac_objext
8975 if { (ac_try="$ac_compile"
8976 case "(($ac_try" in
8977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8978   *) ac_try_echo=$ac_try;;
8979 esac
8980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8981 $as_echo "$ac_try_echo") >&5
8982   (eval "$ac_compile") 2>conftest.er1
8983   ac_status=$?
8984   grep -v '^ *+' conftest.er1 >conftest.err
8985   rm -f conftest.er1
8986   cat conftest.err >&5
8987   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988   (exit $ac_status); } && {
8989          test -z "$ac_c_werror_flag" ||
8990          test ! -s conftest.err
8991        } && test -s conftest.$ac_objext; then
8992   gl_cv_socket_ipv6=yes
8993 else
8994   $as_echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8996
8997         gl_cv_socket_ipv6=no
8998 fi
8999
9000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9001 fi
9002
9003   { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv6" >&5
9004 $as_echo "$gl_cv_socket_ipv6" >&6; }
9005   if test $gl_cv_socket_ipv6 = yes; then
9006
9007 cat >>confdefs.h <<\_ACEOF
9008 #define HAVE_IPV6 1
9009 _ACEOF
9010
9011   fi
9012
9013
9014
9015
9016    { $as_echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
9017 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
9018 if test "${gl_cv_func_getcwd_null+set}" = set; then
9019   $as_echo_n "(cached) " >&6
9020 else
9021   if test "$cross_compiling" = yes; then
9022   gl_cv_func_getcwd_null=no
9023 else
9024   cat >conftest.$ac_ext <<_ACEOF
9025 /* confdefs.h.  */
9026 _ACEOF
9027 cat confdefs.h >>conftest.$ac_ext
9028 cat >>conftest.$ac_ext <<_ACEOF
9029 /* end confdefs.h.  */
9030
9031 #        include <stdlib.h>
9032 #        include <unistd.h>
9033 #        ifndef getcwd
9034          char *getcwd ();
9035 #        endif
9036          int
9037          main ()
9038          {
9039            if (chdir ("/") != 0)
9040              exit (1);
9041            else
9042              {
9043                char *f = getcwd (NULL, 0);
9044                exit (! (f && f[0] == '/' && !f[1]));
9045              }
9046          }
9047 _ACEOF
9048 rm -f conftest$ac_exeext
9049 if { (ac_try="$ac_link"
9050 case "(($ac_try" in
9051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9052   *) ac_try_echo=$ac_try;;
9053 esac
9054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9055 $as_echo "$ac_try_echo") >&5
9056   (eval "$ac_link") 2>&5
9057   ac_status=$?
9058   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9060   { (case "(($ac_try" in
9061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9062   *) ac_try_echo=$ac_try;;
9063 esac
9064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9065 $as_echo "$ac_try_echo") >&5
9066   (eval "$ac_try") 2>&5
9067   ac_status=$?
9068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069   (exit $ac_status); }; }; then
9070   gl_cv_func_getcwd_null=yes
9071 else
9072   $as_echo "$as_me: program exited with status $ac_status" >&5
9073 $as_echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.$ac_ext >&5
9075
9076 ( exit $ac_status )
9077 gl_cv_func_getcwd_null=no
9078 fi
9079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9080 fi
9081
9082
9083 fi
9084 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_null" >&5
9085 $as_echo "$gl_cv_func_getcwd_null" >&6; }
9086
9087 { $as_echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
9088 $as_echo_n "checking whether getcwd is declared... " >&6; }
9089 if test "${ac_cv_have_decl_getcwd+set}" = set; then
9090   $as_echo_n "(cached) " >&6
9091 else
9092   cat >conftest.$ac_ext <<_ACEOF
9093 /* confdefs.h.  */
9094 _ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h.  */
9098 $ac_includes_default
9099 int
9100 main ()
9101 {
9102 #ifndef getcwd
9103   (void) getcwd;
9104 #endif
9105
9106   ;
9107   return 0;
9108 }
9109 _ACEOF
9110 rm -f conftest.$ac_objext
9111 if { (ac_try="$ac_compile"
9112 case "(($ac_try" in
9113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114   *) ac_try_echo=$ac_try;;
9115 esac
9116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9117 $as_echo "$ac_try_echo") >&5
9118   (eval "$ac_compile") 2>conftest.er1
9119   ac_status=$?
9120   grep -v '^ *+' conftest.er1 >conftest.err
9121   rm -f conftest.er1
9122   cat conftest.err >&5
9123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124   (exit $ac_status); } && {
9125          test -z "$ac_c_werror_flag" ||
9126          test ! -s conftest.err
9127        } && test -s conftest.$ac_objext; then
9128   ac_cv_have_decl_getcwd=yes
9129 else
9130   $as_echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9132
9133         ac_cv_have_decl_getcwd=no
9134 fi
9135
9136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9137 fi
9138 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
9139 $as_echo "$ac_cv_have_decl_getcwd" >&6; }
9140 if test $ac_cv_have_decl_getcwd = yes; then
9141
9142 cat >>confdefs.h <<_ACEOF
9143 #define HAVE_DECL_GETCWD 1
9144 _ACEOF
9145
9146
9147 else
9148   cat >>confdefs.h <<_ACEOF
9149 #define HAVE_DECL_GETCWD 0
9150 _ACEOF
9151
9152
9153 fi
9154
9155
9156 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9157 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9158 if test "${ac_cv_header_stdbool_h+set}" = set; then
9159   $as_echo_n "(cached) " >&6
9160 else
9161   cat >conftest.$ac_ext <<_ACEOF
9162 /* confdefs.h.  */
9163 _ACEOF
9164 cat confdefs.h >>conftest.$ac_ext
9165 cat >>conftest.$ac_ext <<_ACEOF
9166 /* end confdefs.h.  */
9167
9168           #include <stdbool.h>
9169           #ifndef bool
9170            "error: bool is not defined"
9171           #endif
9172           #ifndef false
9173            "error: false is not defined"
9174           #endif
9175           #if false
9176            "error: false is not 0"
9177           #endif
9178           #ifndef true
9179            "error: true is not defined"
9180           #endif
9181           #if true != 1
9182            "error: true is not 1"
9183           #endif
9184           #ifndef __bool_true_false_are_defined
9185            "error: __bool_true_false_are_defined is not defined"
9186           #endif
9187
9188           struct s { _Bool s: 1; _Bool t; } s;
9189
9190           char a[true == 1 ? 1 : -1];
9191           char b[false == 0 ? 1 : -1];
9192           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9193           char d[(bool) 0.5 == true ? 1 : -1];
9194           bool e = &s;
9195           char f[(_Bool) 0.0 == false ? 1 : -1];
9196           char g[true];
9197           char h[sizeof (_Bool)];
9198           char i[sizeof s.t];
9199           enum { j = false, k = true, l = false * true, m = true * 256 };
9200           _Bool n[m];
9201           char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9202           char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9203           #if defined __xlc__ || defined __GNUC__
9204            /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9205               reported by James Lemley on 2005-10-05; see
9206               http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9207               This test is not quite right, since xlc is allowed to
9208               reject this program, as the initializer for xlcbug is
9209               not one of the forms that C requires support for.
9210               However, doing the test right would require a run-time
9211               test, and that would make cross-compilation harder.
9212               Let us hope that IBM fixes the xlc bug, and also adds
9213               support for this kind of constant expression.  In the
9214               meantime, this test will reject xlc, which is OK, since
9215               our stdbool.h substitute should suffice.  We also test
9216               this with GCC, where it should work, to detect more
9217               quickly whether someone messes up the test in the
9218               future.  */
9219            char digs[] = "0123456789";
9220            int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9221           #endif
9222           /* Catch a bug in an HP-UX C compiler.  See
9223              http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9224              http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9225            */
9226           _Bool q = true;
9227           _Bool *pq = &q;
9228
9229 int
9230 main ()
9231 {
9232
9233           *pq |= q;
9234           *pq |= ! q;
9235           /* Refer to every declared value, to avoid compiler optimizations.  */
9236           return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9237                   + !m + !n + !o + !p + !q + !pq);
9238
9239   ;
9240   return 0;
9241 }
9242 _ACEOF
9243 rm -f conftest.$ac_objext
9244 if { (ac_try="$ac_compile"
9245 case "(($ac_try" in
9246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9247   *) ac_try_echo=$ac_try;;
9248 esac
9249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9250 $as_echo "$ac_try_echo") >&5
9251   (eval "$ac_compile") 2>conftest.er1
9252   ac_status=$?
9253   grep -v '^ *+' conftest.er1 >conftest.err
9254   rm -f conftest.er1
9255   cat conftest.err >&5
9256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); } && {
9258          test -z "$ac_c_werror_flag" ||
9259          test ! -s conftest.err
9260        } && test -s conftest.$ac_objext; then
9261   ac_cv_header_stdbool_h=yes
9262 else
9263   $as_echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9265
9266         ac_cv_header_stdbool_h=no
9267 fi
9268
9269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9270 fi
9271 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9272 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9273    { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
9274 $as_echo_n "checking for _Bool... " >&6; }
9275 if test "${ac_cv_type__Bool+set}" = set; then
9276   $as_echo_n "(cached) " >&6
9277 else
9278   cat >conftest.$ac_ext <<_ACEOF
9279 /* confdefs.h.  */
9280 _ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h.  */
9284 $ac_includes_default
9285 typedef _Bool ac__type_new_;
9286 int
9287 main ()
9288 {
9289 if ((ac__type_new_ *) 0)
9290   return 0;
9291 if (sizeof (ac__type_new_))
9292   return 0;
9293   ;
9294   return 0;
9295 }
9296 _ACEOF
9297 rm -f conftest.$ac_objext
9298 if { (ac_try="$ac_compile"
9299 case "(($ac_try" in
9300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9301   *) ac_try_echo=$ac_try;;
9302 esac
9303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9304 $as_echo "$ac_try_echo") >&5
9305   (eval "$ac_compile") 2>conftest.er1
9306   ac_status=$?
9307   grep -v '^ *+' conftest.er1 >conftest.err
9308   rm -f conftest.er1
9309   cat conftest.err >&5
9310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311   (exit $ac_status); } && {
9312          test -z "$ac_c_werror_flag" ||
9313          test ! -s conftest.err
9314        } && test -s conftest.$ac_objext; then
9315   ac_cv_type__Bool=yes
9316 else
9317   $as_echo "$as_me: failed program was:" >&5
9318 sed 's/^/| /' conftest.$ac_ext >&5
9319
9320         ac_cv_type__Bool=no
9321 fi
9322
9323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9324 fi
9325 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9326 $as_echo "$ac_cv_type__Bool" >&6; }
9327 if test $ac_cv_type__Bool = yes; then
9328
9329 cat >>confdefs.h <<_ACEOF
9330 #define HAVE__BOOL 1
9331 _ACEOF
9332
9333
9334 fi
9335
9336    if test $ac_cv_header_stdbool_h = yes; then
9337
9338 cat >>confdefs.h <<\_ACEOF
9339 #define HAVE_STDBOOL_H 1
9340 _ACEOF
9341
9342    fi
9343
9344
9345
9346   # Define two additional variables used in the Makefile substitution.
9347
9348   if test "$ac_cv_header_stdbool_h" = yes; then
9349     STDBOOL_H=''
9350   else
9351     STDBOOL_H='stdbool.h'
9352   fi
9353
9354
9355   if test "$ac_cv_type__Bool" = yes; then
9356     HAVE__BOOL=1
9357   else
9358     HAVE__BOOL=0
9359   fi
9360
9361
9362
9363
9364
9365
9366   # getdate.y works with bison only.
9367   : ${YACC='bison -y'}
9368
9369
9370   { $as_echo "$as_me:$LINENO: checking for compound literals" >&5
9371 $as_echo_n "checking for compound literals... " >&6; }
9372 if test "${gl_cv_compound_literals+set}" = set; then
9373   $as_echo_n "(cached) " >&6
9374 else
9375   cat >conftest.$ac_ext <<_ACEOF
9376 /* confdefs.h.  */
9377 _ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h.  */
9381 struct s { int i, j; }; struct s s = (struct s) { 1, 2 };
9382 int
9383 main ()
9384 {
9385 struct s t = (struct s) { 3, 4 };
9386      if (t.i != 0) return 0;
9387   ;
9388   return 0;
9389 }
9390 _ACEOF
9391 rm -f conftest.$ac_objext
9392 if { (ac_try="$ac_compile"
9393 case "(($ac_try" in
9394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395   *) ac_try_echo=$ac_try;;
9396 esac
9397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9398 $as_echo "$ac_try_echo") >&5
9399   (eval "$ac_compile") 2>conftest.er1
9400   ac_status=$?
9401   grep -v '^ *+' conftest.er1 >conftest.err
9402   rm -f conftest.er1
9403   cat conftest.err >&5
9404   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405   (exit $ac_status); } && {
9406          test -z "$ac_c_werror_flag" ||
9407          test ! -s conftest.err
9408        } && test -s conftest.$ac_objext; then
9409   gl_cv_compound_literals=yes
9410 else
9411   $as_echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.$ac_ext >&5
9413
9414         gl_cv_compound_literals=no
9415 fi
9416
9417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9418 fi
9419 { $as_echo "$as_me:$LINENO: result: $gl_cv_compound_literals" >&5
9420 $as_echo "$gl_cv_compound_literals" >&6; }
9421   if test $gl_cv_compound_literals = yes; then
9422
9423 cat >>confdefs.h <<\_ACEOF
9424 #define HAVE_COMPOUND_LITERALS 1
9425 _ACEOF
9426
9427   fi
9428
9429 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9430 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9431 if test "${ac_cv_struct_tm+set}" = set; then
9432   $as_echo_n "(cached) " >&6
9433 else
9434   cat >conftest.$ac_ext <<_ACEOF
9435 /* confdefs.h.  */
9436 _ACEOF
9437 cat confdefs.h >>conftest.$ac_ext
9438 cat >>conftest.$ac_ext <<_ACEOF
9439 /* end confdefs.h.  */
9440 #include <sys/types.h>
9441 #include <time.h>
9442
9443 int
9444 main ()
9445 {
9446 struct tm tm;
9447                                      int *p = &tm.tm_sec;
9448                                      return !p;
9449   ;
9450   return 0;
9451 }
9452 _ACEOF
9453 rm -f conftest.$ac_objext
9454 if { (ac_try="$ac_compile"
9455 case "(($ac_try" in
9456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9457   *) ac_try_echo=$ac_try;;
9458 esac
9459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9460 $as_echo "$ac_try_echo") >&5
9461   (eval "$ac_compile") 2>conftest.er1
9462   ac_status=$?
9463   grep -v '^ *+' conftest.er1 >conftest.err
9464   rm -f conftest.er1
9465   cat conftest.err >&5
9466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467   (exit $ac_status); } && {
9468          test -z "$ac_c_werror_flag" ||
9469          test ! -s conftest.err
9470        } && test -s conftest.$ac_objext; then
9471   ac_cv_struct_tm=time.h
9472 else
9473   $as_echo "$as_me: failed program was:" >&5
9474 sed 's/^/| /' conftest.$ac_ext >&5
9475
9476         ac_cv_struct_tm=sys/time.h
9477 fi
9478
9479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9480 fi
9481 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9482 $as_echo "$ac_cv_struct_tm" >&6; }
9483 if test $ac_cv_struct_tm = sys/time.h; then
9484
9485 cat >>confdefs.h <<\_ACEOF
9486 #define TM_IN_SYS_TIME 1
9487 _ACEOF
9488
9489 fi
9490
9491
9492  { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
9493 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
9494 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
9495   $as_echo_n "(cached) " >&6
9496 else
9497   cat >conftest.$ac_ext <<_ACEOF
9498 /* confdefs.h.  */
9499 _ACEOF
9500 cat confdefs.h >>conftest.$ac_ext
9501 cat >>conftest.$ac_ext <<_ACEOF
9502 /* end confdefs.h.  */
9503 #include <time.h>
9504
9505 int
9506 main ()
9507 {
9508 static struct tm ac_aggr;
9509 if (ac_aggr.tm_gmtoff)
9510 return 0;
9511   ;
9512   return 0;
9513 }
9514 _ACEOF
9515 rm -f conftest.$ac_objext
9516 if { (ac_try="$ac_compile"
9517 case "(($ac_try" in
9518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9519   *) ac_try_echo=$ac_try;;
9520 esac
9521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9522 $as_echo "$ac_try_echo") >&5
9523   (eval "$ac_compile") 2>conftest.er1
9524   ac_status=$?
9525   grep -v '^ *+' conftest.er1 >conftest.err
9526   rm -f conftest.er1
9527   cat conftest.err >&5
9528   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529   (exit $ac_status); } && {
9530          test -z "$ac_c_werror_flag" ||
9531          test ! -s conftest.err
9532        } && test -s conftest.$ac_objext; then
9533   ac_cv_member_struct_tm_tm_gmtoff=yes
9534 else
9535   $as_echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.$ac_ext >&5
9537
9538         cat >conftest.$ac_ext <<_ACEOF
9539 /* confdefs.h.  */
9540 _ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h.  */
9544 #include <time.h>
9545
9546 int
9547 main ()
9548 {
9549 static struct tm ac_aggr;
9550 if (sizeof ac_aggr.tm_gmtoff)
9551 return 0;
9552   ;
9553   return 0;
9554 }
9555 _ACEOF
9556 rm -f conftest.$ac_objext
9557 if { (ac_try="$ac_compile"
9558 case "(($ac_try" in
9559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560   *) ac_try_echo=$ac_try;;
9561 esac
9562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9563 $as_echo "$ac_try_echo") >&5
9564   (eval "$ac_compile") 2>conftest.er1
9565   ac_status=$?
9566   grep -v '^ *+' conftest.er1 >conftest.err
9567   rm -f conftest.er1
9568   cat conftest.err >&5
9569   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570   (exit $ac_status); } && {
9571          test -z "$ac_c_werror_flag" ||
9572          test ! -s conftest.err
9573        } && test -s conftest.$ac_objext; then
9574   ac_cv_member_struct_tm_tm_gmtoff=yes
9575 else
9576   $as_echo "$as_me: failed program was:" >&5
9577 sed 's/^/| /' conftest.$ac_ext >&5
9578
9579         ac_cv_member_struct_tm_tm_gmtoff=no
9580 fi
9581
9582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9583 fi
9584
9585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9586 fi
9587 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
9588 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
9589 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
9590
9591 cat >>confdefs.h <<\_ACEOF
9592 #define HAVE_TM_GMTOFF 1
9593 _ACEOF
9594
9595 fi
9596
9597
9598 { $as_echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
9599 $as_echo_n "checking whether getdelim is declared... " >&6; }
9600 if test "${ac_cv_have_decl_getdelim+set}" = set; then
9601   $as_echo_n "(cached) " >&6
9602 else
9603   cat >conftest.$ac_ext <<_ACEOF
9604 /* confdefs.h.  */
9605 _ACEOF
9606 cat confdefs.h >>conftest.$ac_ext
9607 cat >>conftest.$ac_ext <<_ACEOF
9608 /* end confdefs.h.  */
9609 $ac_includes_default
9610 int
9611 main ()
9612 {
9613 #ifndef getdelim
9614   (void) getdelim;
9615 #endif
9616
9617   ;
9618   return 0;
9619 }
9620 _ACEOF
9621 rm -f conftest.$ac_objext
9622 if { (ac_try="$ac_compile"
9623 case "(($ac_try" in
9624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625   *) ac_try_echo=$ac_try;;
9626 esac
9627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9628 $as_echo "$ac_try_echo") >&5
9629   (eval "$ac_compile") 2>conftest.er1
9630   ac_status=$?
9631   grep -v '^ *+' conftest.er1 >conftest.err
9632   rm -f conftest.er1
9633   cat conftest.err >&5
9634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635   (exit $ac_status); } && {
9636          test -z "$ac_c_werror_flag" ||
9637          test ! -s conftest.err
9638        } && test -s conftest.$ac_objext; then
9639   ac_cv_have_decl_getdelim=yes
9640 else
9641   $as_echo "$as_me: failed program was:" >&5
9642 sed 's/^/| /' conftest.$ac_ext >&5
9643
9644         ac_cv_have_decl_getdelim=no
9645 fi
9646
9647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9648 fi
9649 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
9650 $as_echo "$ac_cv_have_decl_getdelim" >&6; }
9651 if test $ac_cv_have_decl_getdelim = yes; then
9652
9653 cat >>confdefs.h <<_ACEOF
9654 #define HAVE_DECL_GETDELIM 1
9655 _ACEOF
9656
9657
9658 else
9659   cat >>confdefs.h <<_ACEOF
9660 #define HAVE_DECL_GETDELIM 0
9661 _ACEOF
9662
9663
9664 fi
9665
9666
9667
9668
9669   { $as_echo "$as_me:$LINENO: checking for arithmetic hrtime_t" >&5
9670 $as_echo_n "checking for arithmetic hrtime_t... " >&6; }
9671 if test "${gl_cv_arithmetic_hrtime_t+set}" = set; then
9672   $as_echo_n "(cached) " >&6
9673 else
9674   cat >conftest.$ac_ext <<_ACEOF
9675 /* confdefs.h.  */
9676 _ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h.  */
9680 #include <time.h>
9681 int
9682 main ()
9683 {
9684 hrtime_t x = 0; return x/x;
9685   ;
9686   return 0;
9687 }
9688 _ACEOF
9689 rm -f conftest.$ac_objext
9690 if { (ac_try="$ac_compile"
9691 case "(($ac_try" in
9692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9693   *) ac_try_echo=$ac_try;;
9694 esac
9695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9696 $as_echo "$ac_try_echo") >&5
9697   (eval "$ac_compile") 2>conftest.er1
9698   ac_status=$?
9699   grep -v '^ *+' conftest.er1 >conftest.err
9700   rm -f conftest.er1
9701   cat conftest.err >&5
9702   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703   (exit $ac_status); } && {
9704          test -z "$ac_c_werror_flag" ||
9705          test ! -s conftest.err
9706        } && test -s conftest.$ac_objext; then
9707   gl_cv_arithmetic_hrtime_t=yes
9708 else
9709   $as_echo "$as_me: failed program was:" >&5
9710 sed 's/^/| /' conftest.$ac_ext >&5
9711
9712         gl_cv_arithmetic_hrtime_t=no
9713 fi
9714
9715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9716 fi
9717 { $as_echo "$as_me:$LINENO: result: $gl_cv_arithmetic_hrtime_t" >&5
9718 $as_echo "$gl_cv_arithmetic_hrtime_t" >&6; }
9719   if test $gl_cv_arithmetic_hrtime_t = yes; then
9720
9721 cat >>confdefs.h <<\_ACEOF
9722 #define HAVE_ARITHMETIC_HRTIME_T 1
9723 _ACEOF
9724
9725   fi
9726
9727
9728
9729
9730   :
9731
9732
9733
9734
9735
9736
9737   { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
9738 $as_echo_n "checking for ssize_t... " >&6; }
9739 if test "${gt_cv_ssize_t+set}" = set; then
9740   $as_echo_n "(cached) " >&6
9741 else
9742   cat >conftest.$ac_ext <<_ACEOF
9743 /* confdefs.h.  */
9744 _ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h.  */
9748 #include <sys/types.h>
9749 int
9750 main ()
9751 {
9752 int x = sizeof (ssize_t *) + sizeof (ssize_t);
9753         return !x;
9754   ;
9755   return 0;
9756 }
9757 _ACEOF
9758 rm -f conftest.$ac_objext
9759 if { (ac_try="$ac_compile"
9760 case "(($ac_try" in
9761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762   *) ac_try_echo=$ac_try;;
9763 esac
9764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9765 $as_echo "$ac_try_echo") >&5
9766   (eval "$ac_compile") 2>conftest.er1
9767   ac_status=$?
9768   grep -v '^ *+' conftest.er1 >conftest.err
9769   rm -f conftest.er1
9770   cat conftest.err >&5
9771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772   (exit $ac_status); } && {
9773          test -z "$ac_c_werror_flag" ||
9774          test ! -s conftest.err
9775        } && test -s conftest.$ac_objext; then
9776   gt_cv_ssize_t=yes
9777 else
9778   $as_echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9780
9781         gt_cv_ssize_t=no
9782 fi
9783
9784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9785 fi
9786 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
9787 $as_echo "$gt_cv_ssize_t" >&6; }
9788   if test $gt_cv_ssize_t = no; then
9789
9790 cat >>confdefs.h <<\_ACEOF
9791 #define ssize_t int
9792 _ACEOF
9793
9794   fi
9795
9796
9797   if test -z "$GETOPT_H"; then
9798
9799 for ac_header in getopt.h
9800 do
9801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9803   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9804 $as_echo_n "checking for $ac_header... " >&6; }
9805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9806   $as_echo_n "(cached) " >&6
9807 fi
9808 ac_res=`eval 'as_val=${'$as_ac_Header'}
9809                  $as_echo "$as_val"'`
9810                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9811 $as_echo "$ac_res" >&6; }
9812 else
9813   # Is the header compilable?
9814 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9815 $as_echo_n "checking $ac_header usability... " >&6; }
9816 cat >conftest.$ac_ext <<_ACEOF
9817 /* confdefs.h.  */
9818 _ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h.  */
9822 $ac_includes_default
9823 #include <$ac_header>
9824 _ACEOF
9825 rm -f conftest.$ac_objext
9826 if { (ac_try="$ac_compile"
9827 case "(($ac_try" in
9828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829   *) ac_try_echo=$ac_try;;
9830 esac
9831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9832 $as_echo "$ac_try_echo") >&5
9833   (eval "$ac_compile") 2>conftest.er1
9834   ac_status=$?
9835   grep -v '^ *+' conftest.er1 >conftest.err
9836   rm -f conftest.er1
9837   cat conftest.err >&5
9838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839   (exit $ac_status); } && {
9840          test -z "$ac_c_werror_flag" ||
9841          test ! -s conftest.err
9842        } && test -s conftest.$ac_objext; then
9843   ac_header_compiler=yes
9844 else
9845   $as_echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9847
9848         ac_header_compiler=no
9849 fi
9850
9851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9852 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9853 $as_echo "$ac_header_compiler" >&6; }
9854
9855 # Is the header present?
9856 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9857 $as_echo_n "checking $ac_header presence... " >&6; }
9858 cat >conftest.$ac_ext <<_ACEOF
9859 /* confdefs.h.  */
9860 _ACEOF
9861 cat confdefs.h >>conftest.$ac_ext
9862 cat >>conftest.$ac_ext <<_ACEOF
9863 /* end confdefs.h.  */
9864 #include <$ac_header>
9865 _ACEOF
9866 if { (ac_try="$ac_cpp conftest.$ac_ext"
9867 case "(($ac_try" in
9868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869   *) ac_try_echo=$ac_try;;
9870 esac
9871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9872 $as_echo "$ac_try_echo") >&5
9873   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9874   ac_status=$?
9875   grep -v '^ *+' conftest.er1 >conftest.err
9876   rm -f conftest.er1
9877   cat conftest.err >&5
9878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); } >/dev/null && {
9880          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9881          test ! -s conftest.err
9882        }; then
9883   ac_header_preproc=yes
9884 else
9885   $as_echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9887
9888   ac_header_preproc=no
9889 fi
9890
9891 rm -f conftest.err conftest.$ac_ext
9892 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9893 $as_echo "$ac_header_preproc" >&6; }
9894
9895 # So?  What about this header?
9896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9897   yes:no: )
9898     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9899 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9900     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9901 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9902     ac_header_preproc=yes
9903     ;;
9904   no:yes:* )
9905     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9906 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9907     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9908 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9909     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9910 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9911     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9912 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9913     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9914 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9915     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9916 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9917     ( cat <<\_ASBOX
9918 ## ------------------------------------ ##
9919 ## Report this to bug-coreutils@gnu.org ##
9920 ## ------------------------------------ ##
9921 _ASBOX
9922      ) | sed "s/^/$as_me: WARNING:     /" >&2
9923     ;;
9924 esac
9925 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9926 $as_echo_n "checking for $ac_header... " >&6; }
9927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9928   $as_echo_n "(cached) " >&6
9929 else
9930   eval "$as_ac_Header=\$ac_header_preproc"
9931 fi
9932 ac_res=`eval 'as_val=${'$as_ac_Header'}
9933                  $as_echo "$as_val"'`
9934                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9935 $as_echo "$ac_res" >&6; }
9936
9937 fi
9938 if test `eval 'as_val=${'$as_ac_Header'}
9939                  $as_echo "$as_val"'` = yes; then
9940   cat >>confdefs.h <<_ACEOF
9941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9942 _ACEOF
9943
9944 else
9945   GETOPT_H=getopt.h
9946 fi
9947
9948 done
9949
9950   fi
9951
9952   if test -z "$GETOPT_H"; then
9953
9954 for ac_func in getopt_long_only
9955 do
9956 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9957 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9958 $as_echo_n "checking for $ac_func... " >&6; }
9959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9960   $as_echo_n "(cached) " >&6
9961 else
9962   cat >conftest.$ac_ext <<_ACEOF
9963 /* confdefs.h.  */
9964 _ACEOF
9965 cat confdefs.h >>conftest.$ac_ext
9966 cat >>conftest.$ac_ext <<_ACEOF
9967 /* end confdefs.h.  */
9968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9970 #define $ac_func innocuous_$ac_func
9971
9972 /* System header to define __stub macros and hopefully few prototypes,
9973     which can conflict with char $ac_func (); below.
9974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9975     <limits.h> exists even on freestanding compilers.  */
9976
9977 #ifdef __STDC__
9978 # include <limits.h>
9979 #else
9980 # include <assert.h>
9981 #endif
9982
9983 #undef $ac_func
9984
9985 /* Override any GCC internal prototype to avoid an error.
9986    Use char because int might match the return type of a GCC
9987    builtin and then its argument prototype would still apply.  */
9988 #ifdef __cplusplus
9989 extern "C"
9990 #endif
9991 char $ac_func ();
9992 /* The GNU C library defines this for functions which it implements
9993     to always fail with ENOSYS.  Some functions are actually named
9994     something starting with __ and the normal name is an alias.  */
9995 #if defined __stub_$ac_func || defined __stub___$ac_func
9996 choke me
9997 #endif
9998
9999 int
10000 main ()
10001 {
10002 return $ac_func ();
10003   ;
10004   return 0;
10005 }
10006 _ACEOF
10007 rm -f conftest.$ac_objext conftest$ac_exeext
10008 if { (ac_try="$ac_link"
10009 case "(($ac_try" in
10010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011   *) ac_try_echo=$ac_try;;
10012 esac
10013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10014 $as_echo "$ac_try_echo") >&5
10015   (eval "$ac_link") 2>conftest.er1
10016   ac_status=$?
10017   grep -v '^ *+' conftest.er1 >conftest.err
10018   rm -f conftest.er1
10019   cat conftest.err >&5
10020   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021   (exit $ac_status); } && {
10022          test -z "$ac_c_werror_flag" ||
10023          test ! -s conftest.err
10024        } && test -s conftest$ac_exeext &&
10025        $as_test_x conftest$ac_exeext; then
10026   eval "$as_ac_var=yes"
10027 else
10028   $as_echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.$ac_ext >&5
10030
10031         eval "$as_ac_var=no"
10032 fi
10033
10034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10035       conftest$ac_exeext conftest.$ac_ext
10036 fi
10037 ac_res=`eval 'as_val=${'$as_ac_var'}
10038                  $as_echo "$as_val"'`
10039                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10040 $as_echo "$ac_res" >&6; }
10041 if test `eval 'as_val=${'$as_ac_var'}
10042                  $as_echo "$as_val"'` = yes; then
10043   cat >>confdefs.h <<_ACEOF
10044 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10045 _ACEOF
10046
10047 else
10048   GETOPT_H=getopt.h
10049 fi
10050 done
10051
10052   fi
10053
10054       if test -z "$GETOPT_H"; then
10055     { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
10056 $as_echo_n "checking whether optreset is declared... " >&6; }
10057 if test "${ac_cv_have_decl_optreset+set}" = set; then
10058   $as_echo_n "(cached) " >&6
10059 else
10060   cat >conftest.$ac_ext <<_ACEOF
10061 /* confdefs.h.  */
10062 _ACEOF
10063 cat confdefs.h >>conftest.$ac_ext
10064 cat >>conftest.$ac_ext <<_ACEOF
10065 /* end confdefs.h.  */
10066 #include <getopt.h>
10067
10068 int
10069 main ()
10070 {
10071 #ifndef optreset
10072   (void) optreset;
10073 #endif
10074
10075   ;
10076   return 0;
10077 }
10078 _ACEOF
10079 rm -f conftest.$ac_objext
10080 if { (ac_try="$ac_compile"
10081 case "(($ac_try" in
10082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10083   *) ac_try_echo=$ac_try;;
10084 esac
10085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10086 $as_echo "$ac_try_echo") >&5
10087   (eval "$ac_compile") 2>conftest.er1
10088   ac_status=$?
10089   grep -v '^ *+' conftest.er1 >conftest.err
10090   rm -f conftest.er1
10091   cat conftest.err >&5
10092   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093   (exit $ac_status); } && {
10094          test -z "$ac_c_werror_flag" ||
10095          test ! -s conftest.err
10096        } && test -s conftest.$ac_objext; then
10097   ac_cv_have_decl_optreset=yes
10098 else
10099   $as_echo "$as_me: failed program was:" >&5
10100 sed 's/^/| /' conftest.$ac_ext >&5
10101
10102         ac_cv_have_decl_optreset=no
10103 fi
10104
10105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10106 fi
10107 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
10108 $as_echo "$ac_cv_have_decl_optreset" >&6; }
10109 if test $ac_cv_have_decl_optreset = yes; then
10110   GETOPT_H=getopt.h
10111 fi
10112
10113   fi
10114
10115       if test -z "$GETOPT_H"; then
10116     { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
10117 $as_echo_n "checking for working GNU getopt function... " >&6; }
10118 if test "${gl_cv_func_gnu_getopt+set}" = set; then
10119   $as_echo_n "(cached) " >&6
10120 else
10121   if test "$cross_compiling" = yes; then
10122                          { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
10123 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
10124 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
10125   $as_echo_n "(cached) " >&6
10126 else
10127   cat >conftest.$ac_ext <<_ACEOF
10128 /* confdefs.h.  */
10129 _ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h.  */
10133 #include <getopt.h>
10134
10135 int
10136 main ()
10137 {
10138 #ifndef getopt_clip
10139   (void) getopt_clip;
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10153 $as_echo "$ac_try_echo") >&5
10154   (eval "$ac_compile") 2>conftest.er1
10155   ac_status=$?
10156   grep -v '^ *+' conftest.er1 >conftest.err
10157   rm -f conftest.er1
10158   cat conftest.err >&5
10159   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160   (exit $ac_status); } && {
10161          test -z "$ac_c_werror_flag" ||
10162          test ! -s conftest.err
10163        } && test -s conftest.$ac_objext; then
10164   ac_cv_have_decl_getopt_clip=yes
10165 else
10166   $as_echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.$ac_ext >&5
10168
10169         ac_cv_have_decl_getopt_clip=no
10170 fi
10171
10172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10173 fi
10174 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
10175 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
10176 if test $ac_cv_have_decl_getopt_clip = yes; then
10177   gl_cv_func_gnu_getopt=no
10178 else
10179   gl_cv_func_gnu_getopt=yes
10180 fi
10181
10182 else
10183   cat >conftest.$ac_ext <<_ACEOF
10184 /* confdefs.h.  */
10185 _ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h.  */
10189 #include <getopt.h>
10190 int
10191 main ()
10192 {
10193
10194              char *myargv[3];
10195              myargv[0] = "conftest";
10196              myargv[1] = "-+";
10197              myargv[2] = 0;
10198              return getopt (2, myargv, "+a") != '?';
10199
10200   ;
10201   return 0;
10202 }
10203 _ACEOF
10204 rm -f conftest$ac_exeext
10205 if { (ac_try="$ac_link"
10206 case "(($ac_try" in
10207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208   *) ac_try_echo=$ac_try;;
10209 esac
10210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10211 $as_echo "$ac_try_echo") >&5
10212   (eval "$ac_link") 2>&5
10213   ac_status=$?
10214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10216   { (case "(($ac_try" in
10217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218   *) ac_try_echo=$ac_try;;
10219 esac
10220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10221 $as_echo "$ac_try_echo") >&5
10222   (eval "$ac_try") 2>&5
10223   ac_status=$?
10224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225   (exit $ac_status); }; }; then
10226   gl_cv_func_gnu_getopt=yes
10227 else
10228   $as_echo "$as_me: program exited with status $ac_status" >&5
10229 $as_echo "$as_me: failed program was:" >&5
10230 sed 's/^/| /' conftest.$ac_ext >&5
10231
10232 ( exit $ac_status )
10233 gl_cv_func_gnu_getopt=no
10234 fi
10235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10236 fi
10237
10238
10239 fi
10240 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
10241 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
10242     if test "$gl_cv_func_gnu_getopt" = "no"; then
10243       GETOPT_H=getopt.h
10244     fi
10245   fi
10246
10247 { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10248 $as_echo_n "checking whether getenv is declared... " >&6; }
10249 if test "${ac_cv_have_decl_getenv+set}" = set; then
10250   $as_echo_n "(cached) " >&6
10251 else
10252   cat >conftest.$ac_ext <<_ACEOF
10253 /* confdefs.h.  */
10254 _ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h.  */
10258 $ac_includes_default
10259 int
10260 main ()
10261 {
10262 #ifndef getenv
10263   (void) getenv;
10264 #endif
10265
10266   ;
10267   return 0;
10268 }
10269 _ACEOF
10270 rm -f conftest.$ac_objext
10271 if { (ac_try="$ac_compile"
10272 case "(($ac_try" in
10273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274   *) ac_try_echo=$ac_try;;
10275 esac
10276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10277 $as_echo "$ac_try_echo") >&5
10278   (eval "$ac_compile") 2>conftest.er1
10279   ac_status=$?
10280   grep -v '^ *+' conftest.er1 >conftest.err
10281   rm -f conftest.er1
10282   cat conftest.err >&5
10283   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284   (exit $ac_status); } && {
10285          test -z "$ac_c_werror_flag" ||
10286          test ! -s conftest.err
10287        } && test -s conftest.$ac_objext; then
10288   ac_cv_have_decl_getenv=yes
10289 else
10290   $as_echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10292
10293         ac_cv_have_decl_getenv=no
10294 fi
10295
10296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10297 fi
10298 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
10299 $as_echo "$ac_cv_have_decl_getenv" >&6; }
10300 if test $ac_cv_have_decl_getenv = yes; then
10301
10302 cat >>confdefs.h <<_ACEOF
10303 #define HAVE_DECL_GETENV 1
10304 _ACEOF
10305
10306
10307 else
10308   cat >>confdefs.h <<_ACEOF
10309 #define HAVE_DECL_GETENV 0
10310 _ACEOF
10311
10312
10313 fi
10314
10315
10316 { $as_echo "$as_me:$LINENO: checking whether getpass is declared" >&5
10317 $as_echo_n "checking whether getpass is declared... " >&6; }
10318 if test "${ac_cv_have_decl_getpass+set}" = set; then
10319   $as_echo_n "(cached) " >&6
10320 else
10321   cat >conftest.$ac_ext <<_ACEOF
10322 /* confdefs.h.  */
10323 _ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h.  */
10327 $ac_includes_default
10328 int
10329 main ()
10330 {
10331 #ifndef getpass
10332   (void) getpass;
10333 #endif
10334
10335   ;
10336   return 0;
10337 }
10338 _ACEOF
10339 rm -f conftest.$ac_objext
10340 if { (ac_try="$ac_compile"
10341 case "(($ac_try" in
10342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343   *) ac_try_echo=$ac_try;;
10344 esac
10345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10346 $as_echo "$ac_try_echo") >&5
10347   (eval "$ac_compile") 2>conftest.er1
10348   ac_status=$?
10349   grep -v '^ *+' conftest.er1 >conftest.err
10350   rm -f conftest.er1
10351   cat conftest.err >&5
10352   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353   (exit $ac_status); } && {
10354          test -z "$ac_c_werror_flag" ||
10355          test ! -s conftest.err
10356        } && test -s conftest.$ac_objext; then
10357   ac_cv_have_decl_getpass=yes
10358 else
10359   $as_echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10361
10362         ac_cv_have_decl_getpass=no
10363 fi
10364
10365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10366 fi
10367 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpass" >&5
10368 $as_echo "$ac_cv_have_decl_getpass" >&6; }
10369 if test $ac_cv_have_decl_getpass = yes; then
10370
10371 cat >>confdefs.h <<_ACEOF
10372 #define HAVE_DECL_GETPASS 1
10373 _ACEOF
10374
10375
10376 else
10377   cat >>confdefs.h <<_ACEOF
10378 #define HAVE_DECL_GETPASS 0
10379 _ACEOF
10380
10381
10382 fi
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393 { $as_echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
10394 $as_echo_n "checking whether fflush_unlocked is declared... " >&6; }
10395 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
10396   $as_echo_n "(cached) " >&6
10397 else
10398   cat >conftest.$ac_ext <<_ACEOF
10399 /* confdefs.h.  */
10400 _ACEOF
10401 cat confdefs.h >>conftest.$ac_ext
10402 cat >>conftest.$ac_ext <<_ACEOF
10403 /* end confdefs.h.  */
10404 $ac_includes_default
10405 int
10406 main ()
10407 {
10408 #ifndef fflush_unlocked
10409   (void) fflush_unlocked;
10410 #endif
10411
10412   ;
10413   return 0;
10414 }
10415 _ACEOF
10416 rm -f conftest.$ac_objext
10417 if { (ac_try="$ac_compile"
10418 case "(($ac_try" in
10419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10420   *) ac_try_echo=$ac_try;;
10421 esac
10422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10423 $as_echo "$ac_try_echo") >&5
10424   (eval "$ac_compile") 2>conftest.er1
10425   ac_status=$?
10426   grep -v '^ *+' conftest.er1 >conftest.err
10427   rm -f conftest.er1
10428   cat conftest.err >&5
10429   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430   (exit $ac_status); } && {
10431          test -z "$ac_c_werror_flag" ||
10432          test ! -s conftest.err
10433        } && test -s conftest.$ac_objext; then
10434   ac_cv_have_decl_fflush_unlocked=yes
10435 else
10436   $as_echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10438
10439         ac_cv_have_decl_fflush_unlocked=no
10440 fi
10441
10442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10443 fi
10444 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
10445 $as_echo "$ac_cv_have_decl_fflush_unlocked" >&6; }
10446 if test $ac_cv_have_decl_fflush_unlocked = yes; then
10447
10448 cat >>confdefs.h <<_ACEOF
10449 #define HAVE_DECL_FFLUSH_UNLOCKED 1
10450 _ACEOF
10451
10452
10453 else
10454   cat >>confdefs.h <<_ACEOF
10455 #define HAVE_DECL_FFLUSH_UNLOCKED 0
10456 _ACEOF
10457
10458
10459 fi
10460
10461
10462 { $as_echo "$as_me:$LINENO: checking whether flockfile is declared" >&5
10463 $as_echo_n "checking whether flockfile is declared... " >&6; }
10464 if test "${ac_cv_have_decl_flockfile+set}" = set; then
10465   $as_echo_n "(cached) " >&6
10466 else
10467   cat >conftest.$ac_ext <<_ACEOF
10468 /* confdefs.h.  */
10469 _ACEOF
10470 cat confdefs.h >>conftest.$ac_ext
10471 cat >>conftest.$ac_ext <<_ACEOF
10472 /* end confdefs.h.  */
10473 $ac_includes_default
10474 int
10475 main ()
10476 {
10477 #ifndef flockfile
10478   (void) flockfile;
10479 #endif
10480
10481   ;
10482   return 0;
10483 }
10484 _ACEOF
10485 rm -f conftest.$ac_objext
10486 if { (ac_try="$ac_compile"
10487 case "(($ac_try" in
10488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489   *) ac_try_echo=$ac_try;;
10490 esac
10491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10492 $as_echo "$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   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499   (exit $ac_status); } && {
10500          test -z "$ac_c_werror_flag" ||
10501          test ! -s conftest.err
10502        } && test -s conftest.$ac_objext; then
10503   ac_cv_have_decl_flockfile=yes
10504 else
10505   $as_echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10507
10508         ac_cv_have_decl_flockfile=no
10509 fi
10510
10511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10512 fi
10513 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_flockfile" >&5
10514 $as_echo "$ac_cv_have_decl_flockfile" >&6; }
10515 if test $ac_cv_have_decl_flockfile = yes; then
10516
10517 cat >>confdefs.h <<_ACEOF
10518 #define HAVE_DECL_FLOCKFILE 1
10519 _ACEOF
10520
10521
10522 else
10523   cat >>confdefs.h <<_ACEOF
10524 #define HAVE_DECL_FLOCKFILE 0
10525 _ACEOF
10526
10527
10528 fi
10529
10530
10531 { $as_echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
10532 $as_echo_n "checking whether fputs_unlocked is declared... " >&6; }
10533 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
10534   $as_echo_n "(cached) " >&6
10535 else
10536   cat >conftest.$ac_ext <<_ACEOF
10537 /* confdefs.h.  */
10538 _ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h.  */
10542 $ac_includes_default
10543 int
10544 main ()
10545 {
10546 #ifndef fputs_unlocked
10547   (void) fputs_unlocked;
10548 #endif
10549
10550   ;
10551   return 0;
10552 }
10553 _ACEOF
10554 rm -f conftest.$ac_objext
10555 if { (ac_try="$ac_compile"
10556 case "(($ac_try" in
10557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558   *) ac_try_echo=$ac_try;;
10559 esac
10560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10561 $as_echo "$ac_try_echo") >&5
10562   (eval "$ac_compile") 2>conftest.er1
10563   ac_status=$?
10564   grep -v '^ *+' conftest.er1 >conftest.err
10565   rm -f conftest.er1
10566   cat conftest.err >&5
10567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); } && {
10569          test -z "$ac_c_werror_flag" ||
10570          test ! -s conftest.err
10571        } && test -s conftest.$ac_objext; then
10572   ac_cv_have_decl_fputs_unlocked=yes
10573 else
10574   $as_echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10576
10577         ac_cv_have_decl_fputs_unlocked=no
10578 fi
10579
10580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10581 fi
10582 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
10583 $as_echo "$ac_cv_have_decl_fputs_unlocked" >&6; }
10584 if test $ac_cv_have_decl_fputs_unlocked = yes; then
10585
10586 cat >>confdefs.h <<_ACEOF
10587 #define HAVE_DECL_FPUTS_UNLOCKED 1
10588 _ACEOF
10589
10590
10591 else
10592   cat >>confdefs.h <<_ACEOF
10593 #define HAVE_DECL_FPUTS_UNLOCKED 0
10594 _ACEOF
10595
10596
10597 fi
10598
10599
10600 { $as_echo "$as_me:$LINENO: checking whether funlockfile is declared" >&5
10601 $as_echo_n "checking whether funlockfile is declared... " >&6; }
10602 if test "${ac_cv_have_decl_funlockfile+set}" = set; then
10603   $as_echo_n "(cached) " >&6
10604 else
10605   cat >conftest.$ac_ext <<_ACEOF
10606 /* confdefs.h.  */
10607 _ACEOF
10608 cat confdefs.h >>conftest.$ac_ext
10609 cat >>conftest.$ac_ext <<_ACEOF
10610 /* end confdefs.h.  */
10611 $ac_includes_default
10612 int
10613 main ()
10614 {
10615 #ifndef funlockfile
10616   (void) funlockfile;
10617 #endif
10618
10619   ;
10620   return 0;
10621 }
10622 _ACEOF
10623 rm -f conftest.$ac_objext
10624 if { (ac_try="$ac_compile"
10625 case "(($ac_try" in
10626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627   *) ac_try_echo=$ac_try;;
10628 esac
10629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10630 $as_echo "$ac_try_echo") >&5
10631   (eval "$ac_compile") 2>conftest.er1
10632   ac_status=$?
10633   grep -v '^ *+' conftest.er1 >conftest.err
10634   rm -f conftest.er1
10635   cat conftest.err >&5
10636   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637   (exit $ac_status); } && {
10638          test -z "$ac_c_werror_flag" ||
10639          test ! -s conftest.err
10640        } && test -s conftest.$ac_objext; then
10641   ac_cv_have_decl_funlockfile=yes
10642 else
10643   $as_echo "$as_me: failed program was:" >&5
10644 sed 's/^/| /' conftest.$ac_ext >&5
10645
10646         ac_cv_have_decl_funlockfile=no
10647 fi
10648
10649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10650 fi
10651 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_funlockfile" >&5
10652 $as_echo "$ac_cv_have_decl_funlockfile" >&6; }
10653 if test $ac_cv_have_decl_funlockfile = yes; then
10654
10655 cat >>confdefs.h <<_ACEOF
10656 #define HAVE_DECL_FUNLOCKFILE 1
10657 _ACEOF
10658
10659
10660 else
10661   cat >>confdefs.h <<_ACEOF
10662 #define HAVE_DECL_FUNLOCKFILE 0
10663 _ACEOF
10664
10665
10666 fi
10667
10668
10669 { $as_echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
10670 $as_echo_n "checking whether putc_unlocked is declared... " >&6; }
10671 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
10672   $as_echo_n "(cached) " >&6
10673 else
10674   cat >conftest.$ac_ext <<_ACEOF
10675 /* confdefs.h.  */
10676 _ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h.  */
10680 $ac_includes_default
10681 int
10682 main ()
10683 {
10684 #ifndef putc_unlocked
10685   (void) putc_unlocked;
10686 #endif
10687
10688   ;
10689   return 0;
10690 }
10691 _ACEOF
10692 rm -f conftest.$ac_objext
10693 if { (ac_try="$ac_compile"
10694 case "(($ac_try" in
10695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696   *) ac_try_echo=$ac_try;;
10697 esac
10698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10699 $as_echo "$ac_try_echo") >&5
10700   (eval "$ac_compile") 2>conftest.er1
10701   ac_status=$?
10702   grep -v '^ *+' conftest.er1 >conftest.err
10703   rm -f conftest.er1
10704   cat conftest.err >&5
10705   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706   (exit $ac_status); } && {
10707          test -z "$ac_c_werror_flag" ||
10708          test ! -s conftest.err
10709        } && test -s conftest.$ac_objext; then
10710   ac_cv_have_decl_putc_unlocked=yes
10711 else
10712   $as_echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10714
10715         ac_cv_have_decl_putc_unlocked=no
10716 fi
10717
10718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10719 fi
10720 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
10721 $as_echo "$ac_cv_have_decl_putc_unlocked" >&6; }
10722 if test $ac_cv_have_decl_putc_unlocked = yes; then
10723
10724 cat >>confdefs.h <<_ACEOF
10725 #define HAVE_DECL_PUTC_UNLOCKED 1
10726 _ACEOF
10727
10728
10729 else
10730   cat >>confdefs.h <<_ACEOF
10731 #define HAVE_DECL_PUTC_UNLOCKED 0
10732 _ACEOF
10733
10734
10735 fi
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753   if test $ac_cv_header_sys_time_h = yes; then
10754       { $as_echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
10755 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
10756 if test "${gl_cv_absolute_sys_time_h+set}" = set; then
10757   $as_echo_n "(cached) " >&6
10758 else
10759
10760
10761
10762
10763
10764     if test $ac_cv_header_sys_time_h = yes; then
10765       cat >conftest.$ac_ext <<_ACEOF
10766 /* confdefs.h.  */
10767 _ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h.  */
10771 #include <sys/time.h>
10772 _ACEOF
10773       gl_cv_absolute_sys_time_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10774 sed -n '\#/sys/time.h#{s#.*"\(.*/sys/time.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
10775     fi
10776
10777 fi
10778 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_sys_time_h" >&5
10779 $as_echo "$gl_cv_absolute_sys_time_h" >&6; }
10780 cat >>confdefs.h <<_ACEOF
10781 #define ABSOLUTE_SYS_TIME_H "$gl_cv_absolute_sys_time_h"
10782 _ACEOF
10783
10784
10785     ABSOLUTE_SYS_TIME_H=\"$gl_cv_absolute_sys_time_h\"
10786     HAVE_SYS_TIME_H=1
10787   else
10788     ABSOLUTE_SYS_TIME_H=\"no/such/file/sys/time.h\"
10789     HAVE_SYS_TIME_H=0
10790   fi
10791
10792
10793
10794   { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
10795 $as_echo_n "checking for struct timeval... " >&6; }
10796 if test "${gl_cv_sys_struct_timeval+set}" = set; then
10797   $as_echo_n "(cached) " >&6
10798 else
10799   cat >conftest.$ac_ext <<_ACEOF
10800 /* confdefs.h.  */
10801 _ACEOF
10802 cat confdefs.h >>conftest.$ac_ext
10803 cat >>conftest.$ac_ext <<_ACEOF
10804 /* end confdefs.h.  */
10805 #if HAVE_SYS_TIME_H
10806              #include <sys/time.h>
10807             #endif
10808             #include <time.h>
10809
10810 int
10811 main ()
10812 {
10813 static struct timeval x; x.tv_sec = x.tv_usec;
10814   ;
10815   return 0;
10816 }
10817 _ACEOF
10818 rm -f conftest.$ac_objext
10819 if { (ac_try="$ac_compile"
10820 case "(($ac_try" in
10821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822   *) ac_try_echo=$ac_try;;
10823 esac
10824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10825 $as_echo "$ac_try_echo") >&5
10826   (eval "$ac_compile") 2>conftest.er1
10827   ac_status=$?
10828   grep -v '^ *+' conftest.er1 >conftest.err
10829   rm -f conftest.er1
10830   cat conftest.err >&5
10831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832   (exit $ac_status); } && {
10833          test -z "$ac_c_werror_flag" ||
10834          test ! -s conftest.err
10835        } && test -s conftest.$ac_objext; then
10836   gl_cv_sys_struct_timeval=yes
10837 else
10838   $as_echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.$ac_ext >&5
10840
10841         gl_cv_sys_struct_timeval=no
10842 fi
10843
10844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10845 fi
10846 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
10847 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
10848   if test $gl_cv_sys_struct_timeval = yes; then
10849     HAVE_STRUCT_TIMEVAL=1
10850   else
10851     HAVE_STRUCT_TIMEVAL=0
10852   fi
10853
10854
10855     REPLACE_GETTIMEOFDAY=0
10856
10857   if test $HAVE_SYS_TIME_H = 0 || test $HAVE_STRUCT_TIMEVAL = 0; then
10858     SYS_TIME_H=sys/time.h
10859   else
10860     SYS_TIME_H=
10861   fi
10862
10863
10864
10865
10866
10867
10868       if test "X$prefix" = "XNONE"; then
10869     acl_final_prefix="$ac_default_prefix"
10870   else
10871     acl_final_prefix="$prefix"
10872   fi
10873   if test "X$exec_prefix" = "XNONE"; then
10874     acl_final_exec_prefix='${prefix}'
10875   else
10876     acl_final_exec_prefix="$exec_prefix"
10877   fi
10878   acl_save_prefix="$prefix"
10879   prefix="$acl_final_prefix"
10880   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10881   prefix="$acl_save_prefix"
10882
10883
10884 # Check whether --with-gnu-ld was given.
10885 if test "${with_gnu_ld+set}" = set; then
10886   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10887 else
10888   with_gnu_ld=no
10889 fi
10890
10891 # Prepare PATH_SEPARATOR.
10892 # The user is always right.
10893 if test "${PATH_SEPARATOR+set}" != set; then
10894   echo "#! /bin/sh" >conf$$.sh
10895   echo  "exit 0"   >>conf$$.sh
10896   chmod +x conf$$.sh
10897   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10898     PATH_SEPARATOR=';'
10899   else
10900     PATH_SEPARATOR=:
10901   fi
10902   rm -f conf$$.sh
10903 fi
10904 ac_prog=ld
10905 if test "$GCC" = yes; then
10906   # Check if gcc -print-prog-name=ld gives a path.
10907   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10908 $as_echo_n "checking for ld used by GCC... " >&6; }
10909   case $host in
10910   *-*-mingw*)
10911     # gcc leaves a trailing carriage return which upsets mingw
10912     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10913   *)
10914     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10915   esac
10916   case $ac_prog in
10917     # Accept absolute paths.
10918     [\\/]* | [A-Za-z]:[\\/]*)
10919       re_direlt='/[^/][^/]*/\.\./'
10920       # Canonicalize the path of ld
10921       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10922       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10923         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10924       done
10925       test -z "$LD" && LD="$ac_prog"
10926       ;;
10927   "")
10928     # If it fails, then pretend we aren't using GCC.
10929     ac_prog=ld
10930     ;;
10931   *)
10932     # If it is relative, then search for the first ld in PATH.
10933     with_gnu_ld=unknown
10934     ;;
10935   esac
10936 elif test "$with_gnu_ld" = yes; then
10937   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
10938 $as_echo_n "checking for GNU ld... " >&6; }
10939 else
10940   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10941 $as_echo_n "checking for non-GNU ld... " >&6; }
10942 fi
10943 if test "${acl_cv_path_LD+set}" = set; then
10944   $as_echo_n "(cached) " >&6
10945 else
10946   if test -z "$LD"; then
10947   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10948   for ac_dir in $PATH; do
10949     test -z "$ac_dir" && ac_dir=.
10950     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10951       acl_cv_path_LD="$ac_dir/$ac_prog"
10952       # Check to see if the program is GNU ld.  I'd rather use --version,
10953       # but apparently some GNU ld's only accept -v.
10954       # Break only if it was the GNU/non-GNU ld that we prefer.
10955       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
10956       *GNU* | *'with BFD'*)
10957         test "$with_gnu_ld" != no && break ;;
10958       *)
10959         test "$with_gnu_ld" != yes && break ;;
10960       esac
10961     fi
10962   done
10963   IFS="$ac_save_ifs"
10964 else
10965   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10966 fi
10967 fi
10968
10969 LD="$acl_cv_path_LD"
10970 if test -n "$LD"; then
10971   { $as_echo "$as_me:$LINENO: result: $LD" >&5
10972 $as_echo "$LD" >&6; }
10973 else
10974   { $as_echo "$as_me:$LINENO: result: no" >&5
10975 $as_echo "no" >&6; }
10976 fi
10977 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10978 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10979    { (exit 1); exit 1; }; }
10980 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10981 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10982 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10983   $as_echo_n "(cached) " >&6
10984 else
10985   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10986 case `$LD -v 2>&1 </dev/null` in
10987 *GNU* | *'with BFD'*)
10988   acl_cv_prog_gnu_ld=yes ;;
10989 *)
10990   acl_cv_prog_gnu_ld=no ;;
10991 esac
10992 fi
10993 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10994 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10995 with_gnu_ld=$acl_cv_prog_gnu_ld
10996
10997
10998
10999
11000                                                 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11001 $as_echo_n "checking for shared library run path origin... " >&6; }
11002 if test "${acl_cv_rpath+set}" = set; then
11003   $as_echo_n "(cached) " >&6
11004 else
11005
11006     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11007     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11008     . ./conftest.sh
11009     rm -f ./conftest.sh
11010     acl_cv_rpath=done
11011
11012 fi
11013 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11014 $as_echo "$acl_cv_rpath" >&6; }
11015   wl="$acl_cv_wl"
11016   acl_libext="$acl_cv_libext"
11017   acl_shlibext="$acl_cv_shlibext"
11018   acl_libname_spec="$acl_cv_libname_spec"
11019   acl_library_names_spec="$acl_cv_library_names_spec"
11020   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11021   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11022   acl_hardcode_direct="$acl_cv_hardcode_direct"
11023   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
11024     # Check whether --enable-rpath was given.
11025 if test "${enable_rpath+set}" = set; then
11026   enableval=$enable_rpath; :
11027 else
11028   enable_rpath=yes
11029 fi
11030
11031
11032
11033                   acl_libdirstem=lib
11034   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11035   if test -n "$searchpath"; then
11036     acl_save_IFS="${IFS=        }"; IFS=":"
11037     for searchdir in $searchpath; do
11038       if test -d "$searchdir"; then
11039         case "$searchdir" in
11040           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11041           *) searchdir=`cd "$searchdir" && pwd`
11042              case "$searchdir" in
11043                */lib64 ) acl_libdirstem=lib64 ;;
11044              esac ;;
11045         esac
11046       fi
11047     done
11048     IFS="$acl_save_IFS"
11049   fi
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059     use_additional=yes
11060
11061   acl_save_prefix="$prefix"
11062   prefix="$acl_final_prefix"
11063   acl_save_exec_prefix="$exec_prefix"
11064   exec_prefix="$acl_final_exec_prefix"
11065
11066     eval additional_includedir=\"$includedir\"
11067     eval additional_libdir=\"$libdir\"
11068
11069   exec_prefix="$acl_save_exec_prefix"
11070   prefix="$acl_save_prefix"
11071
11072
11073 # Check whether --with-libiconv-prefix was given.
11074 if test "${with_libiconv_prefix+set}" = set; then
11075   withval=$with_libiconv_prefix;
11076     if test "X$withval" = "Xno"; then
11077       use_additional=no
11078     else
11079       if test "X$withval" = "X"; then
11080
11081   acl_save_prefix="$prefix"
11082   prefix="$acl_final_prefix"
11083   acl_save_exec_prefix="$exec_prefix"
11084   exec_prefix="$acl_final_exec_prefix"
11085
11086           eval additional_includedir=\"$includedir\"
11087           eval additional_libdir=\"$libdir\"
11088
11089   exec_prefix="$acl_save_exec_prefix"
11090   prefix="$acl_save_prefix"
11091
11092       else
11093         additional_includedir="$withval/include"
11094         additional_libdir="$withval/$acl_libdirstem"
11095       fi
11096     fi
11097
11098 fi
11099
11100       LIBICONV=
11101   LTLIBICONV=
11102   INCICONV=
11103   LIBICONV_PREFIX=
11104   rpathdirs=
11105   ltrpathdirs=
11106   names_already_handled=
11107   names_next_round='iconv '
11108   while test -n "$names_next_round"; do
11109     names_this_round="$names_next_round"
11110     names_next_round=
11111     for name in $names_this_round; do
11112       already_handled=
11113       for n in $names_already_handled; do
11114         if test "$n" = "$name"; then
11115           already_handled=yes
11116           break
11117         fi
11118       done
11119       if test -z "$already_handled"; then
11120         names_already_handled="$names_already_handled $name"
11121                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11122         eval value=\"\$HAVE_LIB$uppername\"
11123         if test -n "$value"; then
11124           if test "$value" = yes; then
11125             eval value=\"\$LIB$uppername\"
11126             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11127             eval value=\"\$LTLIB$uppername\"
11128             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11129           else
11130                                     :
11131           fi
11132         else
11133                               found_dir=
11134           found_la=
11135           found_so=
11136           found_a=
11137           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
11138           if test -n "$acl_shlibext"; then
11139             shrext=".$acl_shlibext"             # typically: shrext=.so
11140           else
11141             shrext=
11142           fi
11143           if test $use_additional = yes; then
11144             dir="$additional_libdir"
11145                                     if test -n "$acl_shlibext"; then
11146               if test -f "$dir/$libname$shrext"; then
11147                 found_dir="$dir"
11148                 found_so="$dir/$libname$shrext"
11149               else
11150                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11151                   ver=`(cd "$dir" && \
11152                         for f in "$libname$shrext".*; do echo "$f"; done \
11153                         | sed -e "s,^$libname$shrext\\\\.,," \
11154                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11155                         | sed 1q ) 2>/dev/null`
11156                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11157                     found_dir="$dir"
11158                     found_so="$dir/$libname$shrext.$ver"
11159                   fi
11160                 else
11161                   eval library_names=\"$acl_library_names_spec\"
11162                   for f in $library_names; do
11163                     if test -f "$dir/$f"; then
11164                       found_dir="$dir"
11165                       found_so="$dir/$f"
11166                       break
11167                     fi
11168                   done
11169                 fi
11170               fi
11171             fi
11172                         if test "X$found_dir" = "X"; then
11173               if test -f "$dir/$libname.$acl_libext"; then
11174                 found_dir="$dir"
11175                 found_a="$dir/$libname.$acl_libext"
11176               fi
11177             fi
11178             if test "X$found_dir" != "X"; then
11179               if test -f "$dir/$libname.la"; then
11180                 found_la="$dir/$libname.la"
11181               fi
11182             fi
11183           fi
11184           if test "X$found_dir" = "X"; then
11185             for x in $LDFLAGS $LTLIBICONV; do
11186
11187   acl_save_prefix="$prefix"
11188   prefix="$acl_final_prefix"
11189   acl_save_exec_prefix="$exec_prefix"
11190   exec_prefix="$acl_final_exec_prefix"
11191   eval x=\"$x\"
11192   exec_prefix="$acl_save_exec_prefix"
11193   prefix="$acl_save_prefix"
11194
11195               case "$x" in
11196                 -L*)
11197                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11198                                     if test -n "$acl_shlibext"; then
11199                     if test -f "$dir/$libname$shrext"; then
11200                       found_dir="$dir"
11201                       found_so="$dir/$libname$shrext"
11202                     else
11203                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11204                         ver=`(cd "$dir" && \
11205                               for f in "$libname$shrext".*; do echo "$f"; done \
11206                               | sed -e "s,^$libname$shrext\\\\.,," \
11207                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11208                               | sed 1q ) 2>/dev/null`
11209                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11210                           found_dir="$dir"
11211                           found_so="$dir/$libname$shrext.$ver"
11212                         fi
11213                       else
11214                         eval library_names=\"$acl_library_names_spec\"
11215                         for f in $library_names; do
11216                           if test -f "$dir/$f"; then
11217                             found_dir="$dir"
11218                             found_so="$dir/$f"
11219                             break
11220                           fi
11221                         done
11222                       fi
11223                     fi
11224                   fi
11225                                     if test "X$found_dir" = "X"; then
11226                     if test -f "$dir/$libname.$acl_libext"; then
11227                       found_dir="$dir"
11228                       found_a="$dir/$libname.$acl_libext"
11229                     fi
11230                   fi
11231                   if test "X$found_dir" != "X"; then
11232                     if test -f "$dir/$libname.la"; then
11233                       found_la="$dir/$libname.la"
11234                     fi
11235                   fi
11236                   ;;
11237               esac
11238               if test "X$found_dir" != "X"; then
11239                 break
11240               fi
11241             done
11242           fi
11243           if test "X$found_dir" != "X"; then
11244                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11245             if test "X$found_so" != "X"; then
11246                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11247                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11248               else
11249                                                                                 haveit=
11250                 for x in $ltrpathdirs; do
11251                   if test "X$x" = "X$found_dir"; then
11252                     haveit=yes
11253                     break
11254                   fi
11255                 done
11256                 if test -z "$haveit"; then
11257                   ltrpathdirs="$ltrpathdirs $found_dir"
11258                 fi
11259                                 if test "$acl_hardcode_direct" = yes; then
11260                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11261                 else
11262                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11263                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11264                                                             haveit=
11265                     for x in $rpathdirs; do
11266                       if test "X$x" = "X$found_dir"; then
11267                         haveit=yes
11268                         break
11269                       fi
11270                     done
11271                     if test -z "$haveit"; then
11272                       rpathdirs="$rpathdirs $found_dir"
11273                     fi
11274                   else
11275                                                                                 haveit=
11276                     for x in $LDFLAGS $LIBICONV; do
11277
11278   acl_save_prefix="$prefix"
11279   prefix="$acl_final_prefix"
11280   acl_save_exec_prefix="$exec_prefix"
11281   exec_prefix="$acl_final_exec_prefix"
11282   eval x=\"$x\"
11283   exec_prefix="$acl_save_exec_prefix"
11284   prefix="$acl_save_prefix"
11285
11286                       if test "X$x" = "X-L$found_dir"; then
11287                         haveit=yes
11288                         break
11289                       fi
11290                     done
11291                     if test -z "$haveit"; then
11292                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11293                     fi
11294                     if test "$acl_hardcode_minus_L" != no; then
11295                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11296                     else
11297                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11298                     fi
11299                   fi
11300                 fi
11301               fi
11302             else
11303               if test "X$found_a" != "X"; then
11304                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11305               else
11306                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11307               fi
11308             fi
11309                         additional_includedir=
11310             case "$found_dir" in
11311               */$acl_libdirstem | */$acl_libdirstem/)
11312                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11313                 LIBICONV_PREFIX="$basedir"
11314                 additional_includedir="$basedir/include"
11315                 ;;
11316             esac
11317             if test "X$additional_includedir" != "X"; then
11318                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11319                 haveit=
11320                 if test "X$additional_includedir" = "X/usr/local/include"; then
11321                   if test -n "$GCC"; then
11322                     case $host_os in
11323                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11324                     esac
11325                   fi
11326                 fi
11327                 if test -z "$haveit"; then
11328                   for x in $CPPFLAGS $INCICONV; do
11329
11330   acl_save_prefix="$prefix"
11331   prefix="$acl_final_prefix"
11332   acl_save_exec_prefix="$exec_prefix"
11333   exec_prefix="$acl_final_exec_prefix"
11334   eval x=\"$x\"
11335   exec_prefix="$acl_save_exec_prefix"
11336   prefix="$acl_save_prefix"
11337
11338                     if test "X$x" = "X-I$additional_includedir"; then
11339                       haveit=yes
11340                       break
11341                     fi
11342                   done
11343                   if test -z "$haveit"; then
11344                     if test -d "$additional_includedir"; then
11345                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11346                     fi
11347                   fi
11348                 fi
11349               fi
11350             fi
11351                         if test -n "$found_la"; then
11352                                                         save_libdir="$libdir"
11353               case "$found_la" in
11354                 */* | *\\*) . "$found_la" ;;
11355                 *) . "./$found_la" ;;
11356               esac
11357               libdir="$save_libdir"
11358                             for dep in $dependency_libs; do
11359                 case "$dep" in
11360                   -L*)
11361                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11362                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
11363                       haveit=
11364                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
11365                         if test -n "$GCC"; then
11366                           case $host_os in
11367                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11368                           esac
11369                         fi
11370                       fi
11371                       if test -z "$haveit"; then
11372                         haveit=
11373                         for x in $LDFLAGS $LIBICONV; do
11374
11375   acl_save_prefix="$prefix"
11376   prefix="$acl_final_prefix"
11377   acl_save_exec_prefix="$exec_prefix"
11378   exec_prefix="$acl_final_exec_prefix"
11379   eval x=\"$x\"
11380   exec_prefix="$acl_save_exec_prefix"
11381   prefix="$acl_save_prefix"
11382
11383                           if test "X$x" = "X-L$additional_libdir"; then
11384                             haveit=yes
11385                             break
11386                           fi
11387                         done
11388                         if test -z "$haveit"; then
11389                           if test -d "$additional_libdir"; then
11390                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11391                           fi
11392                         fi
11393                         haveit=
11394                         for x in $LDFLAGS $LTLIBICONV; do
11395
11396   acl_save_prefix="$prefix"
11397   prefix="$acl_final_prefix"
11398   acl_save_exec_prefix="$exec_prefix"
11399   exec_prefix="$acl_final_exec_prefix"
11400   eval x=\"$x\"
11401   exec_prefix="$acl_save_exec_prefix"
11402   prefix="$acl_save_prefix"
11403
11404                           if test "X$x" = "X-L$additional_libdir"; then
11405                             haveit=yes
11406                             break
11407                           fi
11408                         done
11409                         if test -z "$haveit"; then
11410                           if test -d "$additional_libdir"; then
11411                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11412                           fi
11413                         fi
11414                       fi
11415                     fi
11416                     ;;
11417                   -R*)
11418                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11419                     if test "$enable_rpath" != no; then
11420                                                                   haveit=
11421                       for x in $rpathdirs; do
11422                         if test "X$x" = "X$dir"; then
11423                           haveit=yes
11424                           break
11425                         fi
11426                       done
11427                       if test -z "$haveit"; then
11428                         rpathdirs="$rpathdirs $dir"
11429                       fi
11430                                                                   haveit=
11431                       for x in $ltrpathdirs; do
11432                         if test "X$x" = "X$dir"; then
11433                           haveit=yes
11434                           break
11435                         fi
11436                       done
11437                       if test -z "$haveit"; then
11438                         ltrpathdirs="$ltrpathdirs $dir"
11439                       fi
11440                     fi
11441                     ;;
11442                   -l*)
11443                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11444                     ;;
11445                   *.la)
11446                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11447                     ;;
11448                   *)
11449                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11450                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11451                     ;;
11452                 esac
11453               done
11454             fi
11455           else
11456                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11457             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11458           fi
11459         fi
11460       fi
11461     done
11462   done
11463   if test "X$rpathdirs" != "X"; then
11464     if test -n "$acl_hardcode_libdir_separator"; then
11465                         alldirs=
11466       for found_dir in $rpathdirs; do
11467         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11468       done
11469             acl_save_libdir="$libdir"
11470       libdir="$alldirs"
11471       eval flag=\"$acl_hardcode_libdir_flag_spec\"
11472       libdir="$acl_save_libdir"
11473       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11474     else
11475             for found_dir in $rpathdirs; do
11476         acl_save_libdir="$libdir"
11477         libdir="$found_dir"
11478         eval flag=\"$acl_hardcode_libdir_flag_spec\"
11479         libdir="$acl_save_libdir"
11480         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11481       done
11482     fi
11483   fi
11484   if test "X$ltrpathdirs" != "X"; then
11485             for found_dir in $ltrpathdirs; do
11486       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11487     done
11488   fi
11489
11490
11491 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
11492 $as_echo_n "checking for off_t... " >&6; }
11493 if test "${ac_cv_type_off_t+set}" = set; then
11494   $as_echo_n "(cached) " >&6
11495 else
11496   cat >conftest.$ac_ext <<_ACEOF
11497 /* confdefs.h.  */
11498 _ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h.  */
11502 $ac_includes_default
11503 typedef off_t ac__type_new_;
11504 int
11505 main ()
11506 {
11507 if ((ac__type_new_ *) 0)
11508   return 0;
11509 if (sizeof (ac__type_new_))
11510   return 0;
11511   ;
11512   return 0;
11513 }
11514 _ACEOF
11515 rm -f conftest.$ac_objext
11516 if { (ac_try="$ac_compile"
11517 case "(($ac_try" in
11518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519   *) ac_try_echo=$ac_try;;
11520 esac
11521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11522 $as_echo "$ac_try_echo") >&5
11523   (eval "$ac_compile") 2>conftest.er1
11524   ac_status=$?
11525   grep -v '^ *+' conftest.er1 >conftest.err
11526   rm -f conftest.er1
11527   cat conftest.err >&5
11528   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529   (exit $ac_status); } && {
11530          test -z "$ac_c_werror_flag" ||
11531          test ! -s conftest.err
11532        } && test -s conftest.$ac_objext; then
11533   ac_cv_type_off_t=yes
11534 else
11535   $as_echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11537
11538         ac_cv_type_off_t=no
11539 fi
11540
11541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11542 fi
11543 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11544 $as_echo "$ac_cv_type_off_t" >&6; }
11545 if test $ac_cv_type_off_t = yes; then
11546   :
11547 else
11548
11549 cat >>confdefs.h <<_ACEOF
11550 #define off_t long int
11551 _ACEOF
11552
11553 fi
11554
11555
11556   { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
11557 $as_echo_n "checking for unsigned long long int... " >&6; }
11558 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
11559   $as_echo_n "(cached) " >&6
11560 else
11561   cat >conftest.$ac_ext <<_ACEOF
11562 /* confdefs.h.  */
11563 _ACEOF
11564 cat confdefs.h >>conftest.$ac_ext
11565 cat >>conftest.$ac_ext <<_ACEOF
11566 /* end confdefs.h.  */
11567 unsigned long long int ull = 18446744073709551615ULL;
11568             typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
11569                            ? 1 : -1)];
11570            int i = 63;
11571 int
11572 main ()
11573 {
11574 unsigned long long int ullmax = 18446744073709551615ull;
11575             return (ull << 63 | ull >> 63 | ull << i | ull >> i
11576                     | ullmax / ull | ullmax % ull);
11577   ;
11578   return 0;
11579 }
11580 _ACEOF
11581 rm -f conftest.$ac_objext conftest$ac_exeext
11582 if { (ac_try="$ac_link"
11583 case "(($ac_try" in
11584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585   *) ac_try_echo=$ac_try;;
11586 esac
11587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11588 $as_echo "$ac_try_echo") >&5
11589   (eval "$ac_link") 2>conftest.er1
11590   ac_status=$?
11591   grep -v '^ *+' conftest.er1 >conftest.err
11592   rm -f conftest.er1
11593   cat conftest.err >&5
11594   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595   (exit $ac_status); } && {
11596          test -z "$ac_c_werror_flag" ||
11597          test ! -s conftest.err
11598        } && test -s conftest$ac_exeext &&
11599        $as_test_x conftest$ac_exeext; then
11600   ac_cv_type_unsigned_long_long_int=yes
11601 else
11602   $as_echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.$ac_ext >&5
11604
11605         ac_cv_type_unsigned_long_long_int=no
11606 fi
11607
11608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11609       conftest$ac_exeext conftest.$ac_ext
11610 fi
11611 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
11612 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
11613   if test $ac_cv_type_unsigned_long_long_int = yes; then
11614
11615 cat >>confdefs.h <<\_ACEOF
11616 #define HAVE_UNSIGNED_LONG_LONG_INT 1
11617 _ACEOF
11618
11619   fi
11620
11621
11622
11623
11624
11625
11626   if test $ac_cv_type_long_long_int = yes; then
11627     HAVE_LONG_LONG_INT=1
11628   else
11629     HAVE_LONG_LONG_INT=0
11630   fi
11631
11632
11633   if test $ac_cv_type_unsigned_long_long_int = yes; then
11634     HAVE_UNSIGNED_LONG_LONG_INT=1
11635   else
11636     HAVE_UNSIGNED_LONG_LONG_INT=0
11637   fi
11638
11639
11640       if test $ac_cv_header_inttypes_h = yes; then
11641     HAVE_INTTYPES_H=1
11642   else
11643     HAVE_INTTYPES_H=0
11644   fi
11645
11646
11647       if test $ac_cv_header_sys_types_h = yes; then
11648     HAVE_SYS_TYPES_H=1
11649   else
11650     HAVE_SYS_TYPES_H=0
11651   fi
11652
11653
11654     if test $ac_cv_header_stdint_h = yes; then
11655       { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
11656 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
11657 if test "${gl_cv_absolute_stdint_h+set}" = set; then
11658   $as_echo_n "(cached) " >&6
11659 else
11660
11661
11662
11663
11664
11665     if test $ac_cv_header_stdint_h = yes; then
11666       cat >conftest.$ac_ext <<_ACEOF
11667 /* confdefs.h.  */
11668 _ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h.  */
11672 #include <stdint.h>
11673 _ACEOF
11674       gl_cv_absolute_stdint_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11675 sed -n '\#/stdint.h#{s#.*"\(.*/stdint.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
11676     fi
11677
11678 fi
11679 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_stdint_h" >&5
11680 $as_echo "$gl_cv_absolute_stdint_h" >&6; }
11681 cat >>confdefs.h <<_ACEOF
11682 #define ABSOLUTE_STDINT_H "$gl_cv_absolute_stdint_h"
11683 _ACEOF
11684
11685
11686     ABSOLUTE_STDINT_H=\"$gl_cv_absolute_stdint_h\"
11687     HAVE_STDINT_H=1
11688   else
11689     ABSOLUTE_STDINT_H=\"no/such/file/stdint.h\"
11690     HAVE_STDINT_H=0
11691   fi
11692
11693
11694
11695           if test $ac_cv_header_stdint_h = yes; then
11696     { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
11697 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
11698 if test "${gl_cv_header_working_stdint_h+set}" = set; then
11699   $as_echo_n "(cached) " >&6
11700 else
11701   gl_cv_header_working_stdint_h=no
11702        cat >conftest.$ac_ext <<_ACEOF
11703
11704          /* confdefs.h.  */
11705 _ACEOF
11706 cat confdefs.h >>conftest.$ac_ext
11707 cat >>conftest.$ac_ext <<_ACEOF
11708 /* end confdefs.h.  */
11709
11710 #include <stddef.h>
11711 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
11712 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
11713 #include ABSOLUTE_STDINT_H
11714 #ifdef INT8_MAX
11715 int8_t a1 = INT8_MAX;
11716 int8_t a1min = INT8_MIN;
11717 #endif
11718 #ifdef INT16_MAX
11719 int16_t a2 = INT16_MAX;
11720 int16_t a2min = INT16_MIN;
11721 #endif
11722 #ifdef INT32_MAX
11723 int32_t a3 = INT32_MAX;
11724 int32_t a3min = INT32_MIN;
11725 #endif
11726 #ifdef INT64_MAX
11727 int64_t a4 = INT64_MAX;
11728 int64_t a4min = INT64_MIN;
11729 #endif
11730 #ifdef UINT8_MAX
11731 uint8_t b1 = UINT8_MAX;
11732 #else
11733 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
11734 #endif
11735 #ifdef UINT16_MAX
11736 uint16_t b2 = UINT16_MAX;
11737 #endif
11738 #ifdef UINT32_MAX
11739 uint32_t b3 = UINT32_MAX;
11740 #endif
11741 #ifdef UINT64_MAX
11742 uint64_t b4 = UINT64_MAX;
11743 #endif
11744 int_least8_t c1 = INT8_C (0x7f);
11745 int_least8_t c1max = INT_LEAST8_MAX;
11746 int_least8_t c1min = INT_LEAST8_MIN;
11747 int_least16_t c2 = INT16_C (0x7fff);
11748 int_least16_t c2max = INT_LEAST16_MAX;
11749 int_least16_t c2min = INT_LEAST16_MIN;
11750 int_least32_t c3 = INT32_C (0x7fffffff);
11751 int_least32_t c3max = INT_LEAST32_MAX;
11752 int_least32_t c3min = INT_LEAST32_MIN;
11753 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
11754 int_least64_t c4max = INT_LEAST64_MAX;
11755 int_least64_t c4min = INT_LEAST64_MIN;
11756 uint_least8_t d1 = UINT8_C (0xff);
11757 uint_least8_t d1max = UINT_LEAST8_MAX;
11758 uint_least16_t d2 = UINT16_C (0xffff);
11759 uint_least16_t d2max = UINT_LEAST16_MAX;
11760 uint_least32_t d3 = UINT32_C (0xffffffff);
11761 uint_least32_t d3max = UINT_LEAST32_MAX;
11762 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
11763 uint_least64_t d4max = UINT_LEAST64_MAX;
11764 int_fast8_t e1 = INT_FAST8_MAX;
11765 int_fast8_t e1min = INT_FAST8_MIN;
11766 int_fast16_t e2 = INT_FAST16_MAX;
11767 int_fast16_t e2min = INT_FAST16_MIN;
11768 int_fast32_t e3 = INT_FAST32_MAX;
11769 int_fast32_t e3min = INT_FAST32_MIN;
11770 int_fast64_t e4 = INT_FAST64_MAX;
11771 int_fast64_t e4min = INT_FAST64_MIN;
11772 uint_fast8_t f1 = UINT_FAST8_MAX;
11773 uint_fast16_t f2 = UINT_FAST16_MAX;
11774 uint_fast32_t f3 = UINT_FAST32_MAX;
11775 uint_fast64_t f4 = UINT_FAST64_MAX;
11776 #ifdef INTPTR_MAX
11777 intptr_t g = INTPTR_MAX;
11778 intptr_t gmin = INTPTR_MIN;
11779 #endif
11780 #ifdef UINTPTR_MAX
11781 uintptr_t h = UINTPTR_MAX;
11782 #endif
11783 intmax_t i = INTMAX_MAX;
11784 uintmax_t j = UINTMAX_MAX;
11785 struct s {
11786   int check_PTRDIFF: PTRDIFF_MIN < 0 && 0 < PTRDIFF_MAX ? 1 : -1;
11787   int check_SIG_ATOMIC: SIG_ATOMIC_MIN <= 0 && 0 < SIG_ATOMIC_MAX ? 1 : -1;
11788   int check_SIZE: 0 < SIZE_MAX ? 1 : -1;
11789   int check_WCHAR: WCHAR_MIN <= 0 && 0 < WCHAR_MAX ? 1 : -1;
11790   int check_WINT: WINT_MIN <= 0 && 0 < WINT_MAX ? 1 : -1;
11791
11792   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
11793   int check_UINT8_C:
11794         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
11795   int check_UINT16_C:
11796         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
11797
11798   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
11799 #ifdef UINT8_MAX
11800   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
11801 #endif
11802 #ifdef UINT16_MAX
11803   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
11804 #endif
11805 #ifdef UINT32_MAX
11806   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
11807 #endif
11808 #ifdef UINT64_MAX
11809   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
11810 #endif
11811   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
11812   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
11813   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
11814   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
11815   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
11816   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
11817   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
11818   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
11819   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
11820   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
11821   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
11822 };
11823
11824 int
11825 main ()
11826 {
11827
11828   ;
11829   return 0;
11830 }
11831 _ACEOF
11832 rm -f conftest.$ac_objext
11833 if { (ac_try="$ac_compile"
11834 case "(($ac_try" in
11835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836   *) ac_try_echo=$ac_try;;
11837 esac
11838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11839 $as_echo "$ac_try_echo") >&5
11840   (eval "$ac_compile") 2>conftest.er1
11841   ac_status=$?
11842   grep -v '^ *+' conftest.er1 >conftest.err
11843   rm -f conftest.er1
11844   cat conftest.err >&5
11845   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846   (exit $ac_status); } && {
11847          test -z "$ac_c_werror_flag" ||
11848          test ! -s conftest.err
11849        } && test -s conftest.$ac_objext; then
11850   gl_cv_header_working_stdint_h=yes
11851 else
11852   $as_echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.$ac_ext >&5
11854
11855
11856 fi
11857
11858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11859 fi
11860 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
11861 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
11862   fi
11863   if test "$gl_cv_header_working_stdint_h" = yes; then
11864     STDINT_H=
11865   else
11866
11867
11868 for ac_header in sys/inttypes.h sys/bitypes.h
11869 do
11870 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11872   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11873 $as_echo_n "checking for $ac_header... " >&6; }
11874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11875   $as_echo_n "(cached) " >&6
11876 fi
11877 ac_res=`eval 'as_val=${'$as_ac_Header'}
11878                  $as_echo "$as_val"'`
11879                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11880 $as_echo "$ac_res" >&6; }
11881 else
11882   # Is the header compilable?
11883 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11884 $as_echo_n "checking $ac_header usability... " >&6; }
11885 cat >conftest.$ac_ext <<_ACEOF
11886 /* confdefs.h.  */
11887 _ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h.  */
11891 $ac_includes_default
11892 #include <$ac_header>
11893 _ACEOF
11894 rm -f conftest.$ac_objext
11895 if { (ac_try="$ac_compile"
11896 case "(($ac_try" in
11897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11898   *) ac_try_echo=$ac_try;;
11899 esac
11900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11901 $as_echo "$ac_try_echo") >&5
11902   (eval "$ac_compile") 2>conftest.er1
11903   ac_status=$?
11904   grep -v '^ *+' conftest.er1 >conftest.err
11905   rm -f conftest.er1
11906   cat conftest.err >&5
11907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); } && {
11909          test -z "$ac_c_werror_flag" ||
11910          test ! -s conftest.err
11911        } && test -s conftest.$ac_objext; then
11912   ac_header_compiler=yes
11913 else
11914   $as_echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.$ac_ext >&5
11916
11917         ac_header_compiler=no
11918 fi
11919
11920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11921 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11922 $as_echo "$ac_header_compiler" >&6; }
11923
11924 # Is the header present?
11925 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11926 $as_echo_n "checking $ac_header presence... " >&6; }
11927 cat >conftest.$ac_ext <<_ACEOF
11928 /* confdefs.h.  */
11929 _ACEOF
11930 cat confdefs.h >>conftest.$ac_ext
11931 cat >>conftest.$ac_ext <<_ACEOF
11932 /* end confdefs.h.  */
11933 #include <$ac_header>
11934 _ACEOF
11935 if { (ac_try="$ac_cpp conftest.$ac_ext"
11936 case "(($ac_try" in
11937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11938   *) ac_try_echo=$ac_try;;
11939 esac
11940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11941 $as_echo "$ac_try_echo") >&5
11942   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11943   ac_status=$?
11944   grep -v '^ *+' conftest.er1 >conftest.err
11945   rm -f conftest.er1
11946   cat conftest.err >&5
11947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948   (exit $ac_status); } >/dev/null && {
11949          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11950          test ! -s conftest.err
11951        }; then
11952   ac_header_preproc=yes
11953 else
11954   $as_echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11956
11957   ac_header_preproc=no
11958 fi
11959
11960 rm -f conftest.err conftest.$ac_ext
11961 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11962 $as_echo "$ac_header_preproc" >&6; }
11963
11964 # So?  What about this header?
11965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11966   yes:no: )
11967     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11968 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11969     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11970 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11971     ac_header_preproc=yes
11972     ;;
11973   no:yes:* )
11974     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11975 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11976     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11977 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11978     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11979 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11980     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11981 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11982     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11983 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11984     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11985 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11986     ( cat <<\_ASBOX
11987 ## ------------------------------------ ##
11988 ## Report this to bug-coreutils@gnu.org ##
11989 ## ------------------------------------ ##
11990 _ASBOX
11991      ) | sed "s/^/$as_me: WARNING:     /" >&2
11992     ;;
11993 esac
11994 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11995 $as_echo_n "checking for $ac_header... " >&6; }
11996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11997   $as_echo_n "(cached) " >&6
11998 else
11999   eval "$as_ac_Header=\$ac_header_preproc"
12000 fi
12001 ac_res=`eval 'as_val=${'$as_ac_Header'}
12002                  $as_echo "$as_val"'`
12003                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12004 $as_echo "$ac_res" >&6; }
12005
12006 fi
12007 if test `eval 'as_val=${'$as_ac_Header'}
12008                  $as_echo "$as_val"'` = yes; then
12009   cat >>confdefs.h <<_ACEOF
12010 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12011 _ACEOF
12012
12013 fi
12014
12015 done
12016
12017     if test $ac_cv_header_sys_inttypes_h = yes; then
12018       HAVE_SYS_INTTYPES_H=1
12019     else
12020       HAVE_SYS_INTTYPES_H=0
12021     fi
12022
12023     if test $ac_cv_header_sys_bitypes_h = yes; then
12024       HAVE_SYS_BITYPES_H=1
12025     else
12026       HAVE_SYS_BITYPES_H=0
12027     fi
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
12039     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
12040 $as_echo_n "checking for bit size of $gltype... " >&6; }
12041 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
12042   $as_echo_n "(cached) " >&6
12043 else
12044   if test "$cross_compiling" = yes; then
12045   # Depending upon the size, compute the lo and hi bounds.
12046 cat >conftest.$ac_ext <<_ACEOF
12047 /* confdefs.h.  */
12048 _ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h.  */
12052
12053   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12054      included before <wchar.h>.  */
12055   #include <stddef.h>
12056   #include <signal.h>
12057   #include <stdio.h>
12058   #include <time.h>
12059   #include <wchar.h>
12060
12061 #include <limits.h>
12062 int
12063 main ()
12064 {
12065 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
12066 test_array [0] = 0
12067
12068   ;
12069   return 0;
12070 }
12071 _ACEOF
12072 rm -f conftest.$ac_objext
12073 if { (ac_try="$ac_compile"
12074 case "(($ac_try" in
12075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12076   *) ac_try_echo=$ac_try;;
12077 esac
12078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12079 $as_echo "$ac_try_echo") >&5
12080   (eval "$ac_compile") 2>conftest.er1
12081   ac_status=$?
12082   grep -v '^ *+' conftest.er1 >conftest.err
12083   rm -f conftest.er1
12084   cat conftest.err >&5
12085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086   (exit $ac_status); } && {
12087          test -z "$ac_c_werror_flag" ||
12088          test ! -s conftest.err
12089        } && test -s conftest.$ac_objext; then
12090   ac_lo=0 ac_mid=0
12091   while :; do
12092     cat >conftest.$ac_ext <<_ACEOF
12093 /* confdefs.h.  */
12094 _ACEOF
12095 cat confdefs.h >>conftest.$ac_ext
12096 cat >>conftest.$ac_ext <<_ACEOF
12097 /* end confdefs.h.  */
12098
12099   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12100      included before <wchar.h>.  */
12101   #include <stddef.h>
12102   #include <signal.h>
12103   #include <stdio.h>
12104   #include <time.h>
12105   #include <wchar.h>
12106
12107 #include <limits.h>
12108 int
12109 main ()
12110 {
12111 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
12112 test_array [0] = 0
12113
12114   ;
12115   return 0;
12116 }
12117 _ACEOF
12118 rm -f conftest.$ac_objext
12119 if { (ac_try="$ac_compile"
12120 case "(($ac_try" in
12121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122   *) ac_try_echo=$ac_try;;
12123 esac
12124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12125 $as_echo "$ac_try_echo") >&5
12126   (eval "$ac_compile") 2>conftest.er1
12127   ac_status=$?
12128   grep -v '^ *+' conftest.er1 >conftest.err
12129   rm -f conftest.er1
12130   cat conftest.err >&5
12131   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132   (exit $ac_status); } && {
12133          test -z "$ac_c_werror_flag" ||
12134          test ! -s conftest.err
12135        } && test -s conftest.$ac_objext; then
12136   ac_hi=$ac_mid; break
12137 else
12138   $as_echo "$as_me: failed program was:" >&5
12139 sed 's/^/| /' conftest.$ac_ext >&5
12140
12141         ac_lo=`expr $ac_mid + 1`
12142                         if test $ac_lo -le $ac_mid; then
12143                           ac_lo= ac_hi=
12144                           break
12145                         fi
12146                         ac_mid=`expr 2 '*' $ac_mid + 1`
12147 fi
12148
12149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12150   done
12151 else
12152   $as_echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12154
12155         cat >conftest.$ac_ext <<_ACEOF
12156 /* confdefs.h.  */
12157 _ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h.  */
12161
12162   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12163      included before <wchar.h>.  */
12164   #include <stddef.h>
12165   #include <signal.h>
12166   #include <stdio.h>
12167   #include <time.h>
12168   #include <wchar.h>
12169
12170 #include <limits.h>
12171 int
12172 main ()
12173 {
12174 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
12175 test_array [0] = 0
12176
12177   ;
12178   return 0;
12179 }
12180 _ACEOF
12181 rm -f conftest.$ac_objext
12182 if { (ac_try="$ac_compile"
12183 case "(($ac_try" in
12184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185   *) ac_try_echo=$ac_try;;
12186 esac
12187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12188 $as_echo "$ac_try_echo") >&5
12189   (eval "$ac_compile") 2>conftest.er1
12190   ac_status=$?
12191   grep -v '^ *+' conftest.er1 >conftest.err
12192   rm -f conftest.er1
12193   cat conftest.err >&5
12194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195   (exit $ac_status); } && {
12196          test -z "$ac_c_werror_flag" ||
12197          test ! -s conftest.err
12198        } && test -s conftest.$ac_objext; then
12199   ac_hi=-1 ac_mid=-1
12200   while :; do
12201     cat >conftest.$ac_ext <<_ACEOF
12202 /* confdefs.h.  */
12203 _ACEOF
12204 cat confdefs.h >>conftest.$ac_ext
12205 cat >>conftest.$ac_ext <<_ACEOF
12206 /* end confdefs.h.  */
12207
12208   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12209      included before <wchar.h>.  */
12210   #include <stddef.h>
12211   #include <signal.h>
12212   #include <stdio.h>
12213   #include <time.h>
12214   #include <wchar.h>
12215
12216 #include <limits.h>
12217 int
12218 main ()
12219 {
12220 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
12221 test_array [0] = 0
12222
12223   ;
12224   return 0;
12225 }
12226 _ACEOF
12227 rm -f conftest.$ac_objext
12228 if { (ac_try="$ac_compile"
12229 case "(($ac_try" in
12230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231   *) ac_try_echo=$ac_try;;
12232 esac
12233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12234 $as_echo "$ac_try_echo") >&5
12235   (eval "$ac_compile") 2>conftest.er1
12236   ac_status=$?
12237   grep -v '^ *+' conftest.er1 >conftest.err
12238   rm -f conftest.er1
12239   cat conftest.err >&5
12240   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241   (exit $ac_status); } && {
12242          test -z "$ac_c_werror_flag" ||
12243          test ! -s conftest.err
12244        } && test -s conftest.$ac_objext; then
12245   ac_lo=$ac_mid; break
12246 else
12247   $as_echo "$as_me: failed program was:" >&5
12248 sed 's/^/| /' conftest.$ac_ext >&5
12249
12250         ac_hi=`expr '(' $ac_mid ')' - 1`
12251                         if test $ac_mid -le $ac_hi; then
12252                           ac_lo= ac_hi=
12253                           break
12254                         fi
12255                         ac_mid=`expr 2 '*' $ac_mid`
12256 fi
12257
12258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12259   done
12260 else
12261   $as_echo "$as_me: failed program was:" >&5
12262 sed 's/^/| /' conftest.$ac_ext >&5
12263
12264         ac_lo= ac_hi=
12265 fi
12266
12267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12268 fi
12269
12270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12271 # Binary search between lo and hi bounds.
12272 while test "x$ac_lo" != "x$ac_hi"; do
12273   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12274   cat >conftest.$ac_ext <<_ACEOF
12275 /* confdefs.h.  */
12276 _ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h.  */
12280
12281   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12282      included before <wchar.h>.  */
12283   #include <stddef.h>
12284   #include <signal.h>
12285   #include <stdio.h>
12286   #include <time.h>
12287   #include <wchar.h>
12288
12289 #include <limits.h>
12290 int
12291 main ()
12292 {
12293 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
12294 test_array [0] = 0
12295
12296   ;
12297   return 0;
12298 }
12299 _ACEOF
12300 rm -f conftest.$ac_objext
12301 if { (ac_try="$ac_compile"
12302 case "(($ac_try" in
12303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12304   *) ac_try_echo=$ac_try;;
12305 esac
12306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12307 $as_echo "$ac_try_echo") >&5
12308   (eval "$ac_compile") 2>conftest.er1
12309   ac_status=$?
12310   grep -v '^ *+' conftest.er1 >conftest.err
12311   rm -f conftest.er1
12312   cat conftest.err >&5
12313   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314   (exit $ac_status); } && {
12315          test -z "$ac_c_werror_flag" ||
12316          test ! -s conftest.err
12317        } && test -s conftest.$ac_objext; then
12318   ac_hi=$ac_mid
12319 else
12320   $as_echo "$as_me: failed program was:" >&5
12321 sed 's/^/| /' conftest.$ac_ext >&5
12322
12323         ac_lo=`expr '(' $ac_mid ')' + 1`
12324 fi
12325
12326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12327 done
12328 case $ac_lo in
12329 ?*) result=$ac_lo;;
12330 '') result=unknown ;;
12331 esac
12332 else
12333   cat >conftest.$ac_ext <<_ACEOF
12334 /* confdefs.h.  */
12335 _ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h.  */
12339
12340   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12341      included before <wchar.h>.  */
12342   #include <stddef.h>
12343   #include <signal.h>
12344   #include <stdio.h>
12345   #include <time.h>
12346   #include <wchar.h>
12347
12348 #include <limits.h>
12349 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
12350 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
12351 #include <stdio.h>
12352 #include <stdlib.h>
12353 int
12354 main ()
12355 {
12356
12357   FILE *f = fopen ("conftest.val", "w");
12358   if (! f)
12359     return 1;
12360   if ((sizeof ($gltype) * CHAR_BIT) < 0)
12361     {
12362       long int i = longval ();
12363       if (i != (sizeof ($gltype) * CHAR_BIT))
12364         return 1;
12365       fprintf (f, "%ld", i);
12366     }
12367   else
12368     {
12369       unsigned long int i = ulongval ();
12370       if (i != (sizeof ($gltype) * CHAR_BIT))
12371         return 1;
12372       fprintf (f, "%lu", i);
12373     }
12374   /* Do not output a trailing newline, as this causes \r\n confusion
12375      on some platforms.  */
12376   return ferror (f) || fclose (f) != 0;
12377
12378   ;
12379   return 0;
12380 }
12381 _ACEOF
12382 rm -f conftest$ac_exeext
12383 if { (ac_try="$ac_link"
12384 case "(($ac_try" in
12385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12386   *) ac_try_echo=$ac_try;;
12387 esac
12388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12389 $as_echo "$ac_try_echo") >&5
12390   (eval "$ac_link") 2>&5
12391   ac_status=$?
12392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12394   { (case "(($ac_try" in
12395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396   *) ac_try_echo=$ac_try;;
12397 esac
12398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12399 $as_echo "$ac_try_echo") >&5
12400   (eval "$ac_try") 2>&5
12401   ac_status=$?
12402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403   (exit $ac_status); }; }; then
12404   result=`cat conftest.val`
12405 else
12406   $as_echo "$as_me: program exited with status $ac_status" >&5
12407 $as_echo "$as_me: failed program was:" >&5
12408 sed 's/^/| /' conftest.$ac_ext >&5
12409
12410 ( exit $ac_status )
12411 result=unknown
12412 fi
12413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12414 fi
12415 rm -f conftest.val
12416        eval gl_cv_bitsizeof_${gltype}=\$result
12417
12418 fi
12419 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
12420                  $as_echo "$as_val"'`
12421                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12422 $as_echo "$ac_res" >&6; }
12423     eval result=\$gl_cv_bitsizeof_${gltype}
12424     if test $result = unknown; then
12425                                                 result=0
12426     fi
12427     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12428     cat >>confdefs.h <<_ACEOF
12429 #define BITSIZEOF_${GLTYPE} $result
12430 _ACEOF
12431
12432     eval BITSIZEOF_${GLTYPE}=\$result
12433   done
12434
12435
12436
12437
12438
12439
12440
12441   for gltype in sig_atomic_t wchar_t wint_t ; do
12442     { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
12443 $as_echo_n "checking whether $gltype is signed... " >&6; }
12444 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
12445   $as_echo_n "(cached) " >&6
12446 else
12447   cat >conftest.$ac_ext <<_ACEOF
12448 /* confdefs.h.  */
12449 _ACEOF
12450 cat confdefs.h >>conftest.$ac_ext
12451 cat >>conftest.$ac_ext <<_ACEOF
12452 /* end confdefs.h.  */
12453
12454   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12455      included before <wchar.h>.  */
12456   #include <stddef.h>
12457   #include <signal.h>
12458   #include <stdio.h>
12459   #include <time.h>
12460   #include <wchar.h>
12461
12462             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
12463 int
12464 main ()
12465 {
12466
12467   ;
12468   return 0;
12469 }
12470 _ACEOF
12471 rm -f conftest.$ac_objext
12472 if { (ac_try="$ac_compile"
12473 case "(($ac_try" in
12474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12475   *) ac_try_echo=$ac_try;;
12476 esac
12477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12478 $as_echo "$ac_try_echo") >&5
12479   (eval "$ac_compile") 2>conftest.er1
12480   ac_status=$?
12481   grep -v '^ *+' conftest.er1 >conftest.err
12482   rm -f conftest.er1
12483   cat conftest.err >&5
12484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485   (exit $ac_status); } && {
12486          test -z "$ac_c_werror_flag" ||
12487          test ! -s conftest.err
12488        } && test -s conftest.$ac_objext; then
12489   result=yes
12490 else
12491   $as_echo "$as_me: failed program was:" >&5
12492 sed 's/^/| /' conftest.$ac_ext >&5
12493
12494         result=no
12495 fi
12496
12497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12498        eval gl_cv_type_${gltype}_signed=\$result
12499
12500 fi
12501 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
12502                  $as_echo "$as_val"'`
12503                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12504 $as_echo "$ac_res" >&6; }
12505     eval result=\$gl_cv_type_${gltype}_signed
12506     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12507     if test "$result" = yes; then
12508       cat >>confdefs.h <<_ACEOF
12509 #define HAVE_SIGNED_${GLTYPE} 1
12510 _ACEOF
12511
12512       eval HAVE_SIGNED_${GLTYPE}=1
12513     else
12514       eval HAVE_SIGNED_${GLTYPE}=0
12515     fi
12516   done
12517
12518
12519   gl_cv_type_ptrdiff_t_signed=yes
12520   gl_cv_type_size_t_signed=no
12521
12522
12523
12524
12525
12526
12527
12528   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
12529     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
12530 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
12531 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
12532   $as_echo_n "(cached) " >&6
12533 else
12534   eval gl_cv_type_${gltype}_suffix=no
12535        eval result=\$gl_cv_type_${gltype}_signed
12536        if test "$result" = yes; then
12537          glsufu=
12538        else
12539          glsufu=u
12540        fi
12541        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
12542          case $glsuf in
12543            '')  gltype1='int';;
12544            l)   gltype1='long int';;
12545            ll)  gltype1='long long int';;
12546            i64) gltype1='__int64';;
12547            u)   gltype1='unsigned int';;
12548            ul)  gltype1='unsigned long int';;
12549            ull) gltype1='unsigned long long int';;
12550            ui64)gltype1='unsigned __int64';;
12551          esac
12552          cat >conftest.$ac_ext <<_ACEOF
12553 /* confdefs.h.  */
12554 _ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h.  */
12558
12559   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12560      included before <wchar.h>.  */
12561   #include <stddef.h>
12562   #include <signal.h>
12563   #include <stdio.h>
12564   #include <time.h>
12565   #include <wchar.h>
12566
12567               extern $gltype foo;
12568               extern $gltype1 foo;
12569 int
12570 main ()
12571 {
12572
12573   ;
12574   return 0;
12575 }
12576 _ACEOF
12577 rm -f conftest.$ac_objext
12578 if { (ac_try="$ac_compile"
12579 case "(($ac_try" in
12580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581   *) ac_try_echo=$ac_try;;
12582 esac
12583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12584 $as_echo "$ac_try_echo") >&5
12585   (eval "$ac_compile") 2>conftest.er1
12586   ac_status=$?
12587   grep -v '^ *+' conftest.er1 >conftest.err
12588   rm -f conftest.er1
12589   cat conftest.err >&5
12590   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591   (exit $ac_status); } && {
12592          test -z "$ac_c_werror_flag" ||
12593          test ! -s conftest.err
12594        } && test -s conftest.$ac_objext; then
12595   eval gl_cv_type_${gltype}_suffix=\$glsuf
12596 else
12597   $as_echo "$as_me: failed program was:" >&5
12598 sed 's/^/| /' conftest.$ac_ext >&5
12599
12600
12601 fi
12602
12603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12604          eval result=\$gl_cv_type_${gltype}_suffix
12605          test "$result" != no && break
12606        done
12607 fi
12608 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
12609                  $as_echo "$as_val"'`
12610                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12611 $as_echo "$ac_res" >&6; }
12612     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12613     eval result=\$gl_cv_type_${gltype}_suffix
12614     test "$result" = no && result=
12615     eval ${GLTYPE}_SUFFIX=\$result
12616     cat >>confdefs.h <<_ACEOF
12617 #define ${GLTYPE}_SUFFIX $result
12618 _ACEOF
12619
12620   done
12621
12622
12623
12624     STDINT_H=stdint.h
12625   fi
12626
12627
12628
12629
12630 for ac_header in inttypes.h
12631 do
12632 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12634   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12635 $as_echo_n "checking for $ac_header... " >&6; }
12636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12637   $as_echo_n "(cached) " >&6
12638 fi
12639 ac_res=`eval 'as_val=${'$as_ac_Header'}
12640                  $as_echo "$as_val"'`
12641                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12642 $as_echo "$ac_res" >&6; }
12643 else
12644   # Is the header compilable?
12645 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12646 $as_echo_n "checking $ac_header usability... " >&6; }
12647 cat >conftest.$ac_ext <<_ACEOF
12648 /* confdefs.h.  */
12649 _ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h.  */
12653 $ac_includes_default
12654 #include <$ac_header>
12655 _ACEOF
12656 rm -f conftest.$ac_objext
12657 if { (ac_try="$ac_compile"
12658 case "(($ac_try" in
12659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12660   *) ac_try_echo=$ac_try;;
12661 esac
12662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12663 $as_echo "$ac_try_echo") >&5
12664   (eval "$ac_compile") 2>conftest.er1
12665   ac_status=$?
12666   grep -v '^ *+' conftest.er1 >conftest.err
12667   rm -f conftest.er1
12668   cat conftest.err >&5
12669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670   (exit $ac_status); } && {
12671          test -z "$ac_c_werror_flag" ||
12672          test ! -s conftest.err
12673        } && test -s conftest.$ac_objext; then
12674   ac_header_compiler=yes
12675 else
12676   $as_echo "$as_me: failed program was:" >&5
12677 sed 's/^/| /' conftest.$ac_ext >&5
12678
12679         ac_header_compiler=no
12680 fi
12681
12682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12683 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12684 $as_echo "$ac_header_compiler" >&6; }
12685
12686 # Is the header present?
12687 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12688 $as_echo_n "checking $ac_header presence... " >&6; }
12689 cat >conftest.$ac_ext <<_ACEOF
12690 /* confdefs.h.  */
12691 _ACEOF
12692 cat confdefs.h >>conftest.$ac_ext
12693 cat >>conftest.$ac_ext <<_ACEOF
12694 /* end confdefs.h.  */
12695 #include <$ac_header>
12696 _ACEOF
12697 if { (ac_try="$ac_cpp conftest.$ac_ext"
12698 case "(($ac_try" in
12699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12700   *) ac_try_echo=$ac_try;;
12701 esac
12702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12703 $as_echo "$ac_try_echo") >&5
12704   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12705   ac_status=$?
12706   grep -v '^ *+' conftest.er1 >conftest.err
12707   rm -f conftest.er1
12708   cat conftest.err >&5
12709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710   (exit $ac_status); } >/dev/null && {
12711          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12712          test ! -s conftest.err
12713        }; then
12714   ac_header_preproc=yes
12715 else
12716   $as_echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12718
12719   ac_header_preproc=no
12720 fi
12721
12722 rm -f conftest.err conftest.$ac_ext
12723 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12724 $as_echo "$ac_header_preproc" >&6; }
12725
12726 # So?  What about this header?
12727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12728   yes:no: )
12729     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12730 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12731     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12732 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12733     ac_header_preproc=yes
12734     ;;
12735   no:yes:* )
12736     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12737 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12738     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12739 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12740     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12741 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12742     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12743 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12744     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12745 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12746     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12747 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12748     ( cat <<\_ASBOX
12749 ## ------------------------------------ ##
12750 ## Report this to bug-coreutils@gnu.org ##
12751 ## ------------------------------------ ##
12752 _ASBOX
12753      ) | sed "s/^/$as_me: WARNING:     /" >&2
12754     ;;
12755 esac
12756 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12757 $as_echo_n "checking for $ac_header... " >&6; }
12758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12759   $as_echo_n "(cached) " >&6
12760 else
12761   eval "$as_ac_Header=\$ac_header_preproc"
12762 fi
12763 ac_res=`eval 'as_val=${'$as_ac_Header'}
12764                  $as_echo "$as_val"'`
12765                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12766 $as_echo "$ac_res" >&6; }
12767
12768 fi
12769 if test `eval 'as_val=${'$as_ac_Header'}
12770                  $as_echo "$as_val"'` = yes; then
12771   cat >>confdefs.h <<_ACEOF
12772 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12773 _ACEOF
12774
12775 fi
12776
12777 done
12778
12779   if test $ac_cv_header_inttypes_h = yes; then
12780     { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
12781 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
12782 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
12783   $as_echo_n "(cached) " >&6
12784 else
12785
12786         cat >conftest.$ac_ext <<_ACEOF
12787 /* confdefs.h.  */
12788 _ACEOF
12789 cat confdefs.h >>conftest.$ac_ext
12790 cat >>conftest.$ac_ext <<_ACEOF
12791 /* end confdefs.h.  */
12792 #include <inttypes.h>
12793 #ifdef PRId32
12794 char *p = PRId32;
12795 #endif
12796
12797 int
12798 main ()
12799 {
12800
12801   ;
12802   return 0;
12803 }
12804 _ACEOF
12805 rm -f conftest.$ac_objext
12806 if { (ac_try="$ac_compile"
12807 case "(($ac_try" in
12808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12809   *) ac_try_echo=$ac_try;;
12810 esac
12811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12812 $as_echo "$ac_try_echo") >&5
12813   (eval "$ac_compile") 2>conftest.er1
12814   ac_status=$?
12815   grep -v '^ *+' conftest.er1 >conftest.err
12816   rm -f conftest.er1
12817   cat conftest.err >&5
12818   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819   (exit $ac_status); } && {
12820          test -z "$ac_c_werror_flag" ||
12821          test ! -s conftest.err
12822        } && test -s conftest.$ac_objext; then
12823   gt_cv_inttypes_pri_broken=no
12824 else
12825   $as_echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12827
12828         gt_cv_inttypes_pri_broken=yes
12829 fi
12830
12831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12832
12833 fi
12834 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
12835 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
12836   fi
12837   if test "$gt_cv_inttypes_pri_broken" = yes; then
12838
12839 cat >>confdefs.h <<_ACEOF
12840 #define PRI_MACROS_BROKEN 1
12841 _ACEOF
12842
12843     PRI_MACROS_BROKEN=1
12844   else
12845     PRI_MACROS_BROKEN=0
12846   fi
12847
12848
12849 { $as_echo "$as_me:$LINENO: checking whether imaxabs is declared" >&5
12850 $as_echo_n "checking whether imaxabs is declared... " >&6; }
12851 if test "${ac_cv_have_decl_imaxabs+set}" = set; then
12852   $as_echo_n "(cached) " >&6
12853 else
12854   cat >conftest.$ac_ext <<_ACEOF
12855 /* confdefs.h.  */
12856 _ACEOF
12857 cat confdefs.h >>conftest.$ac_ext
12858 cat >>conftest.$ac_ext <<_ACEOF
12859 /* end confdefs.h.  */
12860 $ac_includes_default
12861 int
12862 main ()
12863 {
12864 #ifndef imaxabs
12865   (void) imaxabs;
12866 #endif
12867
12868   ;
12869   return 0;
12870 }
12871 _ACEOF
12872 rm -f conftest.$ac_objext
12873 if { (ac_try="$ac_compile"
12874 case "(($ac_try" in
12875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876   *) ac_try_echo=$ac_try;;
12877 esac
12878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12879 $as_echo "$ac_try_echo") >&5
12880   (eval "$ac_compile") 2>conftest.er1
12881   ac_status=$?
12882   grep -v '^ *+' conftest.er1 >conftest.err
12883   rm -f conftest.er1
12884   cat conftest.err >&5
12885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886   (exit $ac_status); } && {
12887          test -z "$ac_c_werror_flag" ||
12888          test ! -s conftest.err
12889        } && test -s conftest.$ac_objext; then
12890   ac_cv_have_decl_imaxabs=yes
12891 else
12892   $as_echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12894
12895         ac_cv_have_decl_imaxabs=no
12896 fi
12897
12898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12899 fi
12900 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxabs" >&5
12901 $as_echo "$ac_cv_have_decl_imaxabs" >&6; }
12902 if test $ac_cv_have_decl_imaxabs = yes; then
12903
12904 cat >>confdefs.h <<_ACEOF
12905 #define HAVE_DECL_IMAXABS 1
12906 _ACEOF
12907
12908
12909 else
12910   cat >>confdefs.h <<_ACEOF
12911 #define HAVE_DECL_IMAXABS 0
12912 _ACEOF
12913
12914
12915 fi
12916
12917
12918 { $as_echo "$as_me:$LINENO: checking whether imaxdiv is declared" >&5
12919 $as_echo_n "checking whether imaxdiv is declared... " >&6; }
12920 if test "${ac_cv_have_decl_imaxdiv+set}" = set; then
12921   $as_echo_n "(cached) " >&6
12922 else
12923   cat >conftest.$ac_ext <<_ACEOF
12924 /* confdefs.h.  */
12925 _ACEOF
12926 cat confdefs.h >>conftest.$ac_ext
12927 cat >>conftest.$ac_ext <<_ACEOF
12928 /* end confdefs.h.  */
12929 $ac_includes_default
12930 int
12931 main ()
12932 {
12933 #ifndef imaxdiv
12934   (void) imaxdiv;
12935 #endif
12936
12937   ;
12938   return 0;
12939 }
12940 _ACEOF
12941 rm -f conftest.$ac_objext
12942 if { (ac_try="$ac_compile"
12943 case "(($ac_try" in
12944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12945   *) ac_try_echo=$ac_try;;
12946 esac
12947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12948 $as_echo "$ac_try_echo") >&5
12949   (eval "$ac_compile") 2>conftest.er1
12950   ac_status=$?
12951   grep -v '^ *+' conftest.er1 >conftest.err
12952   rm -f conftest.er1
12953   cat conftest.err >&5
12954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955   (exit $ac_status); } && {
12956          test -z "$ac_c_werror_flag" ||
12957          test ! -s conftest.err
12958        } && test -s conftest.$ac_objext; then
12959   ac_cv_have_decl_imaxdiv=yes
12960 else
12961   $as_echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.$ac_ext >&5
12963
12964         ac_cv_have_decl_imaxdiv=no
12965 fi
12966
12967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12968 fi
12969 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxdiv" >&5
12970 $as_echo "$ac_cv_have_decl_imaxdiv" >&6; }
12971 if test $ac_cv_have_decl_imaxdiv = yes; then
12972
12973 cat >>confdefs.h <<_ACEOF
12974 #define HAVE_DECL_IMAXDIV 1
12975 _ACEOF
12976
12977
12978 else
12979   cat >>confdefs.h <<_ACEOF
12980 #define HAVE_DECL_IMAXDIV 0
12981 _ACEOF
12982
12983
12984 fi
12985
12986
12987 { $as_echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
12988 $as_echo_n "checking whether strtoimax is declared... " >&6; }
12989 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
12990   $as_echo_n "(cached) " >&6
12991 else
12992   cat >conftest.$ac_ext <<_ACEOF
12993 /* confdefs.h.  */
12994 _ACEOF
12995 cat confdefs.h >>conftest.$ac_ext
12996 cat >>conftest.$ac_ext <<_ACEOF
12997 /* end confdefs.h.  */
12998 $ac_includes_default
12999 int
13000 main ()
13001 {
13002 #ifndef strtoimax
13003   (void) strtoimax;
13004 #endif
13005
13006   ;
13007   return 0;
13008 }
13009 _ACEOF
13010 rm -f conftest.$ac_objext
13011 if { (ac_try="$ac_compile"
13012 case "(($ac_try" in
13013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014   *) ac_try_echo=$ac_try;;
13015 esac
13016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13017 $as_echo "$ac_try_echo") >&5
13018   (eval "$ac_compile") 2>conftest.er1
13019   ac_status=$?
13020   grep -v '^ *+' conftest.er1 >conftest.err
13021   rm -f conftest.er1
13022   cat conftest.err >&5
13023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024   (exit $ac_status); } && {
13025          test -z "$ac_c_werror_flag" ||
13026          test ! -s conftest.err
13027        } && test -s conftest.$ac_objext; then
13028   ac_cv_have_decl_strtoimax=yes
13029 else
13030   $as_echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.$ac_ext >&5
13032
13033         ac_cv_have_decl_strtoimax=no
13034 fi
13035
13036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13037 fi
13038 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
13039 $as_echo "$ac_cv_have_decl_strtoimax" >&6; }
13040 if test $ac_cv_have_decl_strtoimax = yes; then
13041
13042 cat >>confdefs.h <<_ACEOF
13043 #define HAVE_DECL_STRTOIMAX 1
13044 _ACEOF
13045
13046
13047 else
13048   cat >>confdefs.h <<_ACEOF
13049 #define HAVE_DECL_STRTOIMAX 0
13050 _ACEOF
13051
13052
13053 fi
13054
13055
13056 { $as_echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
13057 $as_echo_n "checking whether strtoumax is declared... " >&6; }
13058 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
13059   $as_echo_n "(cached) " >&6
13060 else
13061   cat >conftest.$ac_ext <<_ACEOF
13062 /* confdefs.h.  */
13063 _ACEOF
13064 cat confdefs.h >>conftest.$ac_ext
13065 cat >>conftest.$ac_ext <<_ACEOF
13066 /* end confdefs.h.  */
13067 $ac_includes_default
13068 int
13069 main ()
13070 {
13071 #ifndef strtoumax
13072   (void) strtoumax;
13073 #endif
13074
13075   ;
13076   return 0;
13077 }
13078 _ACEOF
13079 rm -f conftest.$ac_objext
13080 if { (ac_try="$ac_compile"
13081 case "(($ac_try" in
13082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13083   *) ac_try_echo=$ac_try;;
13084 esac
13085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13086 $as_echo "$ac_try_echo") >&5
13087   (eval "$ac_compile") 2>conftest.er1
13088   ac_status=$?
13089   grep -v '^ *+' conftest.er1 >conftest.err
13090   rm -f conftest.er1
13091   cat conftest.err >&5
13092   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093   (exit $ac_status); } && {
13094          test -z "$ac_c_werror_flag" ||
13095          test ! -s conftest.err
13096        } && test -s conftest.$ac_objext; then
13097   ac_cv_have_decl_strtoumax=yes
13098 else
13099   $as_echo "$as_me: failed program was:" >&5
13100 sed 's/^/| /' conftest.$ac_ext >&5
13101
13102         ac_cv_have_decl_strtoumax=no
13103 fi
13104
13105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13106 fi
13107 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
13108 $as_echo "$ac_cv_have_decl_strtoumax" >&6; }
13109 if test $ac_cv_have_decl_strtoumax = yes; then
13110
13111 cat >>confdefs.h <<_ACEOF
13112 #define HAVE_DECL_STRTOUMAX 1
13113 _ACEOF
13114
13115
13116 else
13117   cat >>confdefs.h <<_ACEOF
13118 #define HAVE_DECL_STRTOUMAX 0
13119 _ACEOF
13120
13121
13122 fi
13123
13124
13125
13126   GNULIB_IMAXABS=0;
13127   GNULIB_IMAXDIV=0;
13128   GNULIB_STRTOIMAX=0;
13129   GNULIB_STRTOUMAX=0;
13130     HAVE_DECL_IMAXABS=1;
13131   HAVE_DECL_IMAXDIV=1;
13132   HAVE_DECL_STRTOIMAX=1;
13133   HAVE_DECL_STRTOUMAX=1;
13134
13135
13136
13137 { $as_echo "$as_me:$LINENO: checking whether lchown is declared" >&5
13138 $as_echo_n "checking whether lchown is declared... " >&6; }
13139 if test "${ac_cv_have_decl_lchown+set}" = set; then
13140   $as_echo_n "(cached) " >&6
13141 else
13142   cat >conftest.$ac_ext <<_ACEOF
13143 /* confdefs.h.  */
13144 _ACEOF
13145 cat confdefs.h >>conftest.$ac_ext
13146 cat >>conftest.$ac_ext <<_ACEOF
13147 /* end confdefs.h.  */
13148 $ac_includes_default
13149 int
13150 main ()
13151 {
13152 #ifndef lchown
13153   (void) lchown;
13154 #endif
13155
13156   ;
13157   return 0;
13158 }
13159 _ACEOF
13160 rm -f conftest.$ac_objext
13161 if { (ac_try="$ac_compile"
13162 case "(($ac_try" in
13163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13164   *) ac_try_echo=$ac_try;;
13165 esac
13166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13167 $as_echo "$ac_try_echo") >&5
13168   (eval "$ac_compile") 2>conftest.er1
13169   ac_status=$?
13170   grep -v '^ *+' conftest.er1 >conftest.err
13171   rm -f conftest.er1
13172   cat conftest.err >&5
13173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174   (exit $ac_status); } && {
13175          test -z "$ac_c_werror_flag" ||
13176          test ! -s conftest.err
13177        } && test -s conftest.$ac_objext; then
13178   ac_cv_have_decl_lchown=yes
13179 else
13180   $as_echo "$as_me: failed program was:" >&5
13181 sed 's/^/| /' conftest.$ac_ext >&5
13182
13183         ac_cv_have_decl_lchown=no
13184 fi
13185
13186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13187 fi
13188 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lchown" >&5
13189 $as_echo "$ac_cv_have_decl_lchown" >&6; }
13190 if test $ac_cv_have_decl_lchown = yes; then
13191
13192 cat >>confdefs.h <<_ACEOF
13193 #define HAVE_DECL_LCHOWN 1
13194 _ACEOF
13195
13196
13197 else
13198   cat >>confdefs.h <<_ACEOF
13199 #define HAVE_DECL_LCHOWN 0
13200 _ACEOF
13201
13202
13203 fi
13204
13205
13206
13207   { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13208 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13209 if test "${am_cv_langinfo_codeset+set}" = set; then
13210   $as_echo_n "(cached) " >&6
13211 else
13212   cat >conftest.$ac_ext <<_ACEOF
13213 /* confdefs.h.  */
13214 _ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h.  */
13218 #include <langinfo.h>
13219 int
13220 main ()
13221 {
13222 char* cs = nl_langinfo(CODESET); return !cs;
13223   ;
13224   return 0;
13225 }
13226 _ACEOF
13227 rm -f conftest.$ac_objext conftest$ac_exeext
13228 if { (ac_try="$ac_link"
13229 case "(($ac_try" in
13230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13231   *) ac_try_echo=$ac_try;;
13232 esac
13233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13234 $as_echo "$ac_try_echo") >&5
13235   (eval "$ac_link") 2>conftest.er1
13236   ac_status=$?
13237   grep -v '^ *+' conftest.er1 >conftest.err
13238   rm -f conftest.er1
13239   cat conftest.err >&5
13240   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); } && {
13242          test -z "$ac_c_werror_flag" ||
13243          test ! -s conftest.err
13244        } && test -s conftest$ac_exeext &&
13245        $as_test_x conftest$ac_exeext; then
13246   am_cv_langinfo_codeset=yes
13247 else
13248   $as_echo "$as_me: failed program was:" >&5
13249 sed 's/^/| /' conftest.$ac_ext >&5
13250
13251         am_cv_langinfo_codeset=no
13252 fi
13253
13254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13255       conftest$ac_exeext conftest.$ac_ext
13256
13257 fi
13258 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13259 $as_echo "$am_cv_langinfo_codeset" >&6; }
13260   if test $am_cv_langinfo_codeset = yes; then
13261
13262 cat >>confdefs.h <<\_ACEOF
13263 #define HAVE_LANGINFO_CODESET 1
13264 _ACEOF
13265
13266   fi
13267
13268 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13269 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
13270 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13271   $as_echo_n "(cached) " >&6
13272 else
13273   cat >conftest.$ac_ext <<_ACEOF
13274 /* confdefs.h.  */
13275 _ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h.  */
13279 $ac_includes_default
13280 int
13281 main ()
13282 {
13283 #ifndef getc_unlocked
13284   (void) getc_unlocked;
13285 #endif
13286
13287   ;
13288   return 0;
13289 }
13290 _ACEOF
13291 rm -f conftest.$ac_objext
13292 if { (ac_try="$ac_compile"
13293 case "(($ac_try" in
13294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295   *) ac_try_echo=$ac_try;;
13296 esac
13297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13298 $as_echo "$ac_try_echo") >&5
13299   (eval "$ac_compile") 2>conftest.er1
13300   ac_status=$?
13301   grep -v '^ *+' conftest.er1 >conftest.err
13302   rm -f conftest.er1
13303   cat conftest.err >&5
13304   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305   (exit $ac_status); } && {
13306          test -z "$ac_c_werror_flag" ||
13307          test ! -s conftest.err
13308        } && test -s conftest.$ac_objext; then
13309   ac_cv_have_decl_getc_unlocked=yes
13310 else
13311   $as_echo "$as_me: failed program was:" >&5
13312 sed 's/^/| /' conftest.$ac_ext >&5
13313
13314         ac_cv_have_decl_getc_unlocked=no
13315 fi
13316
13317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13318 fi
13319 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13320 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
13321 if test $ac_cv_have_decl_getc_unlocked = yes; then
13322
13323 cat >>confdefs.h <<_ACEOF
13324 #define HAVE_DECL_GETC_UNLOCKED 1
13325 _ACEOF
13326
13327
13328 else
13329   cat >>confdefs.h <<_ACEOF
13330 #define HAVE_DECL_GETC_UNLOCKED 0
13331 _ACEOF
13332
13333
13334 fi
13335
13336
13337
13338     { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
13339 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
13340 if test "${ac_cv_gnu_library_2_1+set}" = set; then
13341   $as_echo_n "(cached) " >&6
13342 else
13343   cat >conftest.$ac_ext <<_ACEOF
13344 /* confdefs.h.  */
13345 _ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h.  */
13349
13350 #include <features.h>
13351 #ifdef __GNU_LIBRARY__
13352  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13353   Lucky GNU user
13354  #endif
13355 #endif
13356
13357 _ACEOF
13358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13359   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
13360   ac_cv_gnu_library_2_1=yes
13361 else
13362   ac_cv_gnu_library_2_1=no
13363 fi
13364 rm -f conftest*
13365
13366
13367
13368 fi
13369 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
13370 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
13371
13372     GLIBC21="$ac_cv_gnu_library_2_1"
13373
13374
13375
13376     { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
13377 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
13378 if test "${gl_cv_func_mbrtowc+set}" = set; then
13379   $as_echo_n "(cached) " >&6
13380 else
13381   cat >conftest.$ac_ext <<_ACEOF
13382 /* confdefs.h.  */
13383 _ACEOF
13384 cat confdefs.h >>conftest.$ac_ext
13385 cat >>conftest.$ac_ext <<_ACEOF
13386 /* end confdefs.h.  */
13387 #include <wchar.h>
13388 int
13389 main ()
13390 {
13391 wchar_t wc;
13392               char const s[] = "";
13393               size_t n = 1;
13394               mbstate_t state;
13395               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
13396   ;
13397   return 0;
13398 }
13399 _ACEOF
13400 rm -f conftest.$ac_objext conftest$ac_exeext
13401 if { (ac_try="$ac_link"
13402 case "(($ac_try" in
13403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404   *) ac_try_echo=$ac_try;;
13405 esac
13406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13407 $as_echo "$ac_try_echo") >&5
13408   (eval "$ac_link") 2>conftest.er1
13409   ac_status=$?
13410   grep -v '^ *+' conftest.er1 >conftest.err
13411   rm -f conftest.er1
13412   cat conftest.err >&5
13413   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414   (exit $ac_status); } && {
13415          test -z "$ac_c_werror_flag" ||
13416          test ! -s conftest.err
13417        } && test -s conftest$ac_exeext &&
13418        $as_test_x conftest$ac_exeext; then
13419   gl_cv_func_mbrtowc=yes
13420 else
13421   $as_echo "$as_me: failed program was:" >&5
13422 sed 's/^/| /' conftest.$ac_ext >&5
13423
13424         gl_cv_func_mbrtowc=no
13425 fi
13426
13427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13428       conftest$ac_exeext conftest.$ac_ext
13429 fi
13430 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
13431 $as_echo "$gl_cv_func_mbrtowc" >&6; }
13432   if test $gl_cv_func_mbrtowc = yes; then
13433
13434 cat >>confdefs.h <<\_ACEOF
13435 #define HAVE_MBRTOWC 1
13436 _ACEOF
13437
13438   fi
13439
13440
13441   GNULIB_MEMMEM=0;
13442   GNULIB_MEMPCPY=0;
13443   GNULIB_MEMRCHR=0;
13444   GNULIB_STPCPY=0;
13445   GNULIB_STPNCPY=0;
13446   GNULIB_STRCHRNUL=0;
13447   GNULIB_STRDUP=0;
13448   GNULIB_STRNDUP=0;
13449   GNULIB_STRNLEN=0;
13450   GNULIB_STRPBRK=0;
13451   GNULIB_STRSEP=0;
13452   GNULIB_STRCASESTR=0;
13453   GNULIB_STRTOK_R=0;
13454   GNULIB_MBSLEN=0;
13455   GNULIB_MBSCHR=0;
13456   GNULIB_MBSRCHR=0;
13457   GNULIB_MBSSTR=0;
13458   GNULIB_MBSCASECMP=0;
13459   GNULIB_MBSNCASECMP=0;
13460   GNULIB_MBSPCASECMP=0;
13461   GNULIB_MBSCASESTR=0;
13462   GNULIB_MBSCSPN=0;
13463   GNULIB_MBSPBRK=0;
13464   GNULIB_MBSSPN=0;
13465   GNULIB_MBSSEP=0;
13466   GNULIB_MBSTOK_R=0;
13467     HAVE_DECL_MEMMEM=1;
13468   HAVE_MEMPCPY=1;
13469   HAVE_DECL_MEMRCHR=1;
13470   HAVE_STPCPY=1;
13471   HAVE_STPNCPY=1;
13472   HAVE_STRCASECMP=1;
13473   HAVE_DECL_STRNCASECMP=1;
13474   HAVE_STRCHRNUL=1;
13475   HAVE_DECL_STRDUP=1;
13476   HAVE_STRNDUP=1;
13477   HAVE_DECL_STRNDUP=1;
13478   HAVE_DECL_STRNLEN=1;
13479   HAVE_STRPBRK=1;
13480   HAVE_STRSEP=1;
13481   HAVE_STRCASESTR=1;
13482   HAVE_DECL_STRTOK_R=1;
13483
13484
13485
13486
13487
13488
13489
13490 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13491 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13492 if test "${ac_cv_c_bigendian+set}" = set; then
13493   $as_echo_n "(cached) " >&6
13494 else
13495   # See if sys/param.h defines the BYTE_ORDER macro.
13496 cat >conftest.$ac_ext <<_ACEOF
13497 /* confdefs.h.  */
13498 _ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h.  */
13502 #include <sys/types.h>
13503 #include <sys/param.h>
13504
13505 int
13506 main ()
13507 {
13508 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13509         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13510  bogus endian macros
13511 #endif
13512
13513   ;
13514   return 0;
13515 }
13516 _ACEOF
13517 rm -f conftest.$ac_objext
13518 if { (ac_try="$ac_compile"
13519 case "(($ac_try" in
13520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521   *) ac_try_echo=$ac_try;;
13522 esac
13523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13524 $as_echo "$ac_try_echo") >&5
13525   (eval "$ac_compile") 2>conftest.er1
13526   ac_status=$?
13527   grep -v '^ *+' conftest.er1 >conftest.err
13528   rm -f conftest.er1
13529   cat conftest.err >&5
13530   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531   (exit $ac_status); } && {
13532          test -z "$ac_c_werror_flag" ||
13533          test ! -s conftest.err
13534        } && test -s conftest.$ac_objext; then
13535   # It does; now see whether it defined to BIG_ENDIAN or not.
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 #include <sys/param.h>
13544
13545 int
13546 main ()
13547 {
13548 #if BYTE_ORDER != BIG_ENDIAN
13549  not big endian
13550 #endif
13551
13552   ;
13553   return 0;
13554 }
13555 _ACEOF
13556 rm -f conftest.$ac_objext
13557 if { (ac_try="$ac_compile"
13558 case "(($ac_try" in
13559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560   *) ac_try_echo=$ac_try;;
13561 esac
13562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13563 $as_echo "$ac_try_echo") >&5
13564   (eval "$ac_compile") 2>conftest.er1
13565   ac_status=$?
13566   grep -v '^ *+' conftest.er1 >conftest.err
13567   rm -f conftest.er1
13568   cat conftest.err >&5
13569   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570   (exit $ac_status); } && {
13571          test -z "$ac_c_werror_flag" ||
13572          test ! -s conftest.err
13573        } && test -s conftest.$ac_objext; then
13574   ac_cv_c_bigendian=yes
13575 else
13576   $as_echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.$ac_ext >&5
13578
13579         ac_cv_c_bigendian=no
13580 fi
13581
13582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13583 else
13584   $as_echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13586
13587         # It does not; compile a test program.
13588 if test "$cross_compiling" = yes; then
13589   # try to guess the endianness by grepping values into an object file
13590   ac_cv_c_bigendian=unknown
13591   cat >conftest.$ac_ext <<_ACEOF
13592 /* confdefs.h.  */
13593 _ACEOF
13594 cat confdefs.h >>conftest.$ac_ext
13595 cat >>conftest.$ac_ext <<_ACEOF
13596 /* end confdefs.h.  */
13597 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13598 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13599 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13600 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13601 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13602 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13603 int
13604 main ()
13605 {
13606  _ascii (); _ebcdic ();
13607   ;
13608   return 0;
13609 }
13610 _ACEOF
13611 rm -f conftest.$ac_objext
13612 if { (ac_try="$ac_compile"
13613 case "(($ac_try" in
13614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13615   *) ac_try_echo=$ac_try;;
13616 esac
13617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13618 $as_echo "$ac_try_echo") >&5
13619   (eval "$ac_compile") 2>conftest.er1
13620   ac_status=$?
13621   grep -v '^ *+' conftest.er1 >conftest.err
13622   rm -f conftest.er1
13623   cat conftest.err >&5
13624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625   (exit $ac_status); } && {
13626          test -z "$ac_c_werror_flag" ||
13627          test ! -s conftest.err
13628        } && test -s conftest.$ac_objext; then
13629   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13630   ac_cv_c_bigendian=yes
13631 fi
13632 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13633   if test "$ac_cv_c_bigendian" = unknown; then
13634     ac_cv_c_bigendian=no
13635   else
13636     # finding both strings is unlikely to happen, but who knows?
13637     ac_cv_c_bigendian=unknown
13638   fi
13639 fi
13640 else
13641   $as_echo "$as_me: failed program was:" >&5
13642 sed 's/^/| /' conftest.$ac_ext >&5
13643
13644
13645 fi
13646
13647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13648 else
13649   cat >conftest.$ac_ext <<_ACEOF
13650 /* confdefs.h.  */
13651 _ACEOF
13652 cat confdefs.h >>conftest.$ac_ext
13653 cat >>conftest.$ac_ext <<_ACEOF
13654 /* end confdefs.h.  */
13655 $ac_includes_default
13656 int
13657 main ()
13658 {
13659
13660   /* Are we little or big endian?  From Harbison&Steele.  */
13661   union
13662   {
13663     long int l;
13664     char c[sizeof (long int)];
13665   } u;
13666   u.l = 1;
13667   return u.c[sizeof (long int) - 1] == 1;
13668
13669   ;
13670   return 0;
13671 }
13672 _ACEOF
13673 rm -f conftest$ac_exeext
13674 if { (ac_try="$ac_link"
13675 case "(($ac_try" in
13676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677   *) ac_try_echo=$ac_try;;
13678 esac
13679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13680 $as_echo "$ac_try_echo") >&5
13681   (eval "$ac_link") 2>&5
13682   ac_status=$?
13683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13685   { (case "(($ac_try" in
13686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13687   *) ac_try_echo=$ac_try;;
13688 esac
13689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13690 $as_echo "$ac_try_echo") >&5
13691   (eval "$ac_try") 2>&5
13692   ac_status=$?
13693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694   (exit $ac_status); }; }; then
13695   ac_cv_c_bigendian=no
13696 else
13697   $as_echo "$as_me: program exited with status $ac_status" >&5
13698 $as_echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13700
13701 ( exit $ac_status )
13702 ac_cv_c_bigendian=yes
13703 fi
13704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13705 fi
13706
13707
13708 fi
13709
13710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13711 fi
13712 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13713 $as_echo "$ac_cv_c_bigendian" >&6; }
13714 case $ac_cv_c_bigendian in
13715   yes)
13716
13717 cat >>confdefs.h <<\_ACEOF
13718 #define WORDS_BIGENDIAN 1
13719 _ACEOF
13720  ;;
13721   no)
13722      ;;
13723   *)
13724     { { $as_echo "$as_me:$LINENO: error: unknown endianness
13725 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13726 $as_echo "$as_me: error: unknown endianness
13727 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13728    { (exit 1); exit 1; }; } ;;
13729 esac
13730
13731 { $as_echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
13732 $as_echo_n "checking whether memrchr is declared... " >&6; }
13733 if test "${ac_cv_have_decl_memrchr+set}" = set; then
13734   $as_echo_n "(cached) " >&6
13735 else
13736   cat >conftest.$ac_ext <<_ACEOF
13737 /* confdefs.h.  */
13738 _ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h.  */
13742 $ac_includes_default
13743 int
13744 main ()
13745 {
13746 #ifndef memrchr
13747   (void) memrchr;
13748 #endif
13749
13750   ;
13751   return 0;
13752 }
13753 _ACEOF
13754 rm -f conftest.$ac_objext
13755 if { (ac_try="$ac_compile"
13756 case "(($ac_try" in
13757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758   *) ac_try_echo=$ac_try;;
13759 esac
13760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13761 $as_echo "$ac_try_echo") >&5
13762   (eval "$ac_compile") 2>conftest.er1
13763   ac_status=$?
13764   grep -v '^ *+' conftest.er1 >conftest.err
13765   rm -f conftest.er1
13766   cat conftest.err >&5
13767   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768   (exit $ac_status); } && {
13769          test -z "$ac_c_werror_flag" ||
13770          test ! -s conftest.err
13771        } && test -s conftest.$ac_objext; then
13772   ac_cv_have_decl_memrchr=yes
13773 else
13774   $as_echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.$ac_ext >&5
13776
13777         ac_cv_have_decl_memrchr=no
13778 fi
13779
13780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13781 fi
13782 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
13783 $as_echo "$ac_cv_have_decl_memrchr" >&6; }
13784 if test $ac_cv_have_decl_memrchr = yes; then
13785
13786 cat >>confdefs.h <<_ACEOF
13787 #define HAVE_DECL_MEMRCHR 1
13788 _ACEOF
13789
13790
13791 else
13792   cat >>confdefs.h <<_ACEOF
13793 #define HAVE_DECL_MEMRCHR 0
13794 _ACEOF
13795
13796
13797 fi
13798
13799
13800
13801
13802
13803
13804
13805   GNULIB_GETSUBOPT=0;
13806   GNULIB_MKDTEMP=0;
13807   GNULIB_MKSTEMP=0;
13808     HAVE_GETSUBOPT=1;
13809   HAVE_MKDTEMP=1;
13810   REPLACE_MKSTEMP=0;
13811
13812 # Check whether --enable-largefile was given.
13813 if test "${enable_largefile+set}" = set; then
13814   enableval=$enable_largefile;
13815 fi
13816
13817 if test "$enable_largefile" != no; then
13818
13819   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
13820 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13821 if test "${ac_cv_sys_largefile_CC+set}" = set; then
13822   $as_echo_n "(cached) " >&6
13823 else
13824   ac_cv_sys_largefile_CC=no
13825      if test "$GCC" != yes; then
13826        ac_save_CC=$CC
13827        while :; do
13828          # IRIX 6.2 and later do not support large files by default,
13829          # so use the C compiler's -n32 option if that helps.
13830          cat >conftest.$ac_ext <<_ACEOF
13831 /* confdefs.h.  */
13832 _ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h.  */
13836 #include <sys/types.h>
13837  /* Check that off_t can represent 2**63 - 1 correctly.
13838     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13839     since some C++ compilers masquerading as C compilers
13840     incorrectly reject 9223372036854775807.  */
13841 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13842   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13843                        && LARGE_OFF_T % 2147483647 == 1)
13844                       ? 1 : -1];
13845 int
13846 main ()
13847 {
13848
13849   ;
13850   return 0;
13851 }
13852 _ACEOF
13853          rm -f conftest.$ac_objext
13854 if { (ac_try="$ac_compile"
13855 case "(($ac_try" in
13856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857   *) ac_try_echo=$ac_try;;
13858 esac
13859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13860 $as_echo "$ac_try_echo") >&5
13861   (eval "$ac_compile") 2>conftest.er1
13862   ac_status=$?
13863   grep -v '^ *+' conftest.er1 >conftest.err
13864   rm -f conftest.er1
13865   cat conftest.err >&5
13866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867   (exit $ac_status); } && {
13868          test -z "$ac_c_werror_flag" ||
13869          test ! -s conftest.err
13870        } && test -s conftest.$ac_objext; then
13871   break
13872 else
13873   $as_echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13875
13876
13877 fi
13878
13879 rm -f core conftest.err conftest.$ac_objext
13880          CC="$CC -n32"
13881          rm -f conftest.$ac_objext
13882 if { (ac_try="$ac_compile"
13883 case "(($ac_try" in
13884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885   *) ac_try_echo=$ac_try;;
13886 esac
13887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13888 $as_echo "$ac_try_echo") >&5
13889   (eval "$ac_compile") 2>conftest.er1
13890   ac_status=$?
13891   grep -v '^ *+' conftest.er1 >conftest.err
13892   rm -f conftest.er1
13893   cat conftest.err >&5
13894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895   (exit $ac_status); } && {
13896          test -z "$ac_c_werror_flag" ||
13897          test ! -s conftest.err
13898        } && test -s conftest.$ac_objext; then
13899   ac_cv_sys_largefile_CC=' -n32'; break
13900 else
13901   $as_echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13903
13904
13905 fi
13906
13907 rm -f core conftest.err conftest.$ac_objext
13908          break
13909        done
13910        CC=$ac_save_CC
13911        rm -f conftest.$ac_ext
13912     fi
13913 fi
13914 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
13915 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13916   if test "$ac_cv_sys_largefile_CC" != no; then
13917     CC=$CC$ac_cv_sys_largefile_CC
13918   fi
13919
13920   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13921 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13922 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
13923   $as_echo_n "(cached) " >&6
13924 else
13925   while :; do
13926   cat >conftest.$ac_ext <<_ACEOF
13927 /* confdefs.h.  */
13928 _ACEOF
13929 cat confdefs.h >>conftest.$ac_ext
13930 cat >>conftest.$ac_ext <<_ACEOF
13931 /* end confdefs.h.  */
13932 #include <sys/types.h>
13933  /* Check that off_t can represent 2**63 - 1 correctly.
13934     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13935     since some C++ compilers masquerading as C compilers
13936     incorrectly reject 9223372036854775807.  */
13937 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13938   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13939                        && LARGE_OFF_T % 2147483647 == 1)
13940                       ? 1 : -1];
13941 int
13942 main ()
13943 {
13944
13945   ;
13946   return 0;
13947 }
13948 _ACEOF
13949 rm -f conftest.$ac_objext
13950 if { (ac_try="$ac_compile"
13951 case "(($ac_try" in
13952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953   *) ac_try_echo=$ac_try;;
13954 esac
13955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13956 $as_echo "$ac_try_echo") >&5
13957   (eval "$ac_compile") 2>conftest.er1
13958   ac_status=$?
13959   grep -v '^ *+' conftest.er1 >conftest.err
13960   rm -f conftest.er1
13961   cat conftest.err >&5
13962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963   (exit $ac_status); } && {
13964          test -z "$ac_c_werror_flag" ||
13965          test ! -s conftest.err
13966        } && test -s conftest.$ac_objext; then
13967   ac_cv_sys_file_offset_bits=no; break
13968 else
13969   $as_echo "$as_me: failed program was:" >&5
13970 sed 's/^/| /' conftest.$ac_ext >&5
13971
13972
13973 fi
13974
13975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13976   cat >conftest.$ac_ext <<_ACEOF
13977 /* confdefs.h.  */
13978 _ACEOF
13979 cat confdefs.h >>conftest.$ac_ext
13980 cat >>conftest.$ac_ext <<_ACEOF
13981 /* end confdefs.h.  */
13982 #define _FILE_OFFSET_BITS 64
13983 #include <sys/types.h>
13984  /* Check that off_t can represent 2**63 - 1 correctly.
13985     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13986     since some C++ compilers masquerading as C compilers
13987     incorrectly reject 9223372036854775807.  */
13988 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13989   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13990                        && LARGE_OFF_T % 2147483647 == 1)
13991                       ? 1 : -1];
13992 int
13993 main ()
13994 {
13995
13996   ;
13997   return 0;
13998 }
13999 _ACEOF
14000 rm -f conftest.$ac_objext
14001 if { (ac_try="$ac_compile"
14002 case "(($ac_try" in
14003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14004   *) ac_try_echo=$ac_try;;
14005 esac
14006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14007 $as_echo "$ac_try_echo") >&5
14008   (eval "$ac_compile") 2>conftest.er1
14009   ac_status=$?
14010   grep -v '^ *+' conftest.er1 >conftest.err
14011   rm -f conftest.er1
14012   cat conftest.err >&5
14013   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014   (exit $ac_status); } && {
14015          test -z "$ac_c_werror_flag" ||
14016          test ! -s conftest.err
14017        } && test -s conftest.$ac_objext; then
14018   ac_cv_sys_file_offset_bits=64; break
14019 else
14020   $as_echo "$as_me: failed program was:" >&5
14021 sed 's/^/| /' conftest.$ac_ext >&5
14022
14023
14024 fi
14025
14026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14027   ac_cv_sys_file_offset_bits=unknown
14028   break
14029 done
14030 fi
14031 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
14032 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14033 case $ac_cv_sys_file_offset_bits in #(
14034   no | unknown) ;;
14035   *)
14036 cat >>confdefs.h <<_ACEOF
14037 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14038 _ACEOF
14039 ;;
14040 esac
14041 rm -f conftest*
14042   if test $ac_cv_sys_file_offset_bits = unknown; then
14043     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
14044 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14045 if test "${ac_cv_sys_large_files+set}" = set; then
14046   $as_echo_n "(cached) " >&6
14047 else
14048   while :; do
14049   cat >conftest.$ac_ext <<_ACEOF
14050 /* confdefs.h.  */
14051 _ACEOF
14052 cat confdefs.h >>conftest.$ac_ext
14053 cat >>conftest.$ac_ext <<_ACEOF
14054 /* end confdefs.h.  */
14055 #include <sys/types.h>
14056  /* Check that off_t can represent 2**63 - 1 correctly.
14057     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14058     since some C++ compilers masquerading as C compilers
14059     incorrectly reject 9223372036854775807.  */
14060 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14061   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14062                        && LARGE_OFF_T % 2147483647 == 1)
14063                       ? 1 : -1];
14064 int
14065 main ()
14066 {
14067
14068   ;
14069   return 0;
14070 }
14071 _ACEOF
14072 rm -f conftest.$ac_objext
14073 if { (ac_try="$ac_compile"
14074 case "(($ac_try" in
14075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14076   *) ac_try_echo=$ac_try;;
14077 esac
14078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14079 $as_echo "$ac_try_echo") >&5
14080   (eval "$ac_compile") 2>conftest.er1
14081   ac_status=$?
14082   grep -v '^ *+' conftest.er1 >conftest.err
14083   rm -f conftest.er1
14084   cat conftest.err >&5
14085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086   (exit $ac_status); } && {
14087          test -z "$ac_c_werror_flag" ||
14088          test ! -s conftest.err
14089        } && test -s conftest.$ac_objext; then
14090   ac_cv_sys_large_files=no; break
14091 else
14092   $as_echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.$ac_ext >&5
14094
14095
14096 fi
14097
14098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14099   cat >conftest.$ac_ext <<_ACEOF
14100 /* confdefs.h.  */
14101 _ACEOF
14102 cat confdefs.h >>conftest.$ac_ext
14103 cat >>conftest.$ac_ext <<_ACEOF
14104 /* end confdefs.h.  */
14105 #define _LARGE_FILES 1
14106 #include <sys/types.h>
14107  /* Check that off_t can represent 2**63 - 1 correctly.
14108     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14109     since some C++ compilers masquerading as C compilers
14110     incorrectly reject 9223372036854775807.  */
14111 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14112   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14113                        && LARGE_OFF_T % 2147483647 == 1)
14114                       ? 1 : -1];
14115 int
14116 main ()
14117 {
14118
14119   ;
14120   return 0;
14121 }
14122 _ACEOF
14123 rm -f conftest.$ac_objext
14124 if { (ac_try="$ac_compile"
14125 case "(($ac_try" in
14126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127   *) ac_try_echo=$ac_try;;
14128 esac
14129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14130 $as_echo "$ac_try_echo") >&5
14131   (eval "$ac_compile") 2>conftest.er1
14132   ac_status=$?
14133   grep -v '^ *+' conftest.er1 >conftest.err
14134   rm -f conftest.er1
14135   cat conftest.err >&5
14136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137   (exit $ac_status); } && {
14138          test -z "$ac_c_werror_flag" ||
14139          test ! -s conftest.err
14140        } && test -s conftest.$ac_objext; then
14141   ac_cv_sys_large_files=1; break
14142 else
14143   $as_echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.$ac_ext >&5
14145
14146
14147 fi
14148
14149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14150   ac_cv_sys_large_files=unknown
14151   break
14152 done
14153 fi
14154 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
14155 $as_echo "$ac_cv_sys_large_files" >&6; }
14156 case $ac_cv_sys_large_files in #(
14157   no | unknown) ;;
14158   *)
14159 cat >>confdefs.h <<_ACEOF
14160 #define _LARGE_FILES $ac_cv_sys_large_files
14161 _ACEOF
14162 ;;
14163 esac
14164 rm -f conftest*
14165   fi
14166 fi
14167
14168
14169
14170
14171
14172
14173         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14174   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14175   REPLACE_STRPTIME=GNULIB_PORTCHECK;
14176   REPLACE_TIMEGM=GNULIB_PORTCHECK;
14177
14178
14179
14180
14181
14182 { $as_echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
14183 $as_echo_n "checking for external symbol _system_configuration... " >&6; }
14184 if test "${gl_cv_var__system_configuration+set}" = set; then
14185   $as_echo_n "(cached) " >&6
14186 else
14187   cat >conftest.$ac_ext <<_ACEOF
14188 /* confdefs.h.  */
14189 _ACEOF
14190 cat confdefs.h >>conftest.$ac_ext
14191 cat >>conftest.$ac_ext <<_ACEOF
14192 /* end confdefs.h.  */
14193 #include <sys/systemcfg.h>
14194
14195 int
14196 main ()
14197 {
14198 double x = _system_configuration.physmem;
14199                        if (x > 0.0) return 0;
14200   ;
14201   return 0;
14202 }
14203 _ACEOF
14204 rm -f conftest.$ac_objext conftest$ac_exeext
14205 if { (ac_try="$ac_link"
14206 case "(($ac_try" in
14207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208   *) ac_try_echo=$ac_try;;
14209 esac
14210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14211 $as_echo "$ac_try_echo") >&5
14212   (eval "$ac_link") 2>conftest.er1
14213   ac_status=$?
14214   grep -v '^ *+' conftest.er1 >conftest.err
14215   rm -f conftest.er1
14216   cat conftest.err >&5
14217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218   (exit $ac_status); } && {
14219          test -z "$ac_c_werror_flag" ||
14220          test ! -s conftest.err
14221        } && test -s conftest$ac_exeext &&
14222        $as_test_x conftest$ac_exeext; then
14223   gl_cv_var__system_configuration=yes
14224 else
14225   $as_echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14227
14228         gl_cv_var__system_configuration=no
14229 fi
14230
14231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14232       conftest$ac_exeext conftest.$ac_ext
14233 fi
14234 { $as_echo "$as_me:$LINENO: result: $gl_cv_var__system_configuration" >&5
14235 $as_echo "$gl_cv_var__system_configuration" >&6; }
14236
14237     if test $gl_cv_var__system_configuration = yes; then
14238
14239 cat >>confdefs.h <<\_ACEOF
14240 #define HAVE__SYSTEM_CONFIGURATION 1
14241 _ACEOF
14242
14243     fi
14244
14245
14246
14247   { $as_echo "$as_me:$LINENO: checking for desired default level of POSIX conformance" >&5
14248 $as_echo_n "checking for desired default level of POSIX conformance... " >&6; }
14249   gl_default_posix2_version=none-specified
14250   if test -n "$ac_cv_env_DEFAULT_POSIX2_VERSION_set"; then
14251     gl_default_posix2_version=$ac_cv_env_DEFAULT_POSIX2_VERSION_value
14252
14253 cat >>confdefs.h <<_ACEOF
14254 #define DEFAULT_POSIX2_VERSION $gl_default_posix2_version
14255 _ACEOF
14256
14257   fi
14258   { $as_echo "$as_me:$LINENO: result: $gl_default_posix2_version" >&5
14259 $as_echo "$gl_default_posix2_version" >&6; }
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
14281 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
14282 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
14283   $as_echo_n "(cached) " >&6
14284 else
14285   if test "$cross_compiling" = yes; then
14286   ac_cv_func_lstat_empty_string_bug=yes
14287 else
14288   cat >conftest.$ac_ext <<_ACEOF
14289 /* confdefs.h.  */
14290 _ACEOF
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h.  */
14294 $ac_includes_default
14295 int
14296 main ()
14297 {
14298 struct stat sbuf;
14299   return lstat ("", &sbuf) == 0;
14300   ;
14301   return 0;
14302 }
14303 _ACEOF
14304 rm -f conftest$ac_exeext
14305 if { (ac_try="$ac_link"
14306 case "(($ac_try" in
14307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14308   *) ac_try_echo=$ac_try;;
14309 esac
14310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14311 $as_echo "$ac_try_echo") >&5
14312   (eval "$ac_link") 2>&5
14313   ac_status=$?
14314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14316   { (case "(($ac_try" in
14317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318   *) ac_try_echo=$ac_try;;
14319 esac
14320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14321 $as_echo "$ac_try_echo") >&5
14322   (eval "$ac_try") 2>&5
14323   ac_status=$?
14324   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325   (exit $ac_status); }; }; then
14326   ac_cv_func_lstat_empty_string_bug=no
14327 else
14328   $as_echo "$as_me: program exited with status $ac_status" >&5
14329 $as_echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14331
14332 ( exit $ac_status )
14333 ac_cv_func_lstat_empty_string_bug=yes
14334 fi
14335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14336 fi
14337
14338
14339 fi
14340 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
14341 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
14342 if test $ac_cv_func_lstat_empty_string_bug = yes; then
14343   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14344
14345 cat >>confdefs.h <<_ACEOF
14346 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
14347 _ACEOF
14348
14349 fi
14350
14351
14352
14353
14354
14355
14356
14357
14358   GNULIB_FPRINTF_POSIX=0;
14359   GNULIB_PRINTF_POSIX=0;
14360   GNULIB_SNPRINTF=0;
14361   GNULIB_SPRINTF_POSIX=0;
14362   GNULIB_VFPRINTF_POSIX=0;
14363   GNULIB_VPRINTF_POSIX=0;
14364   GNULIB_VSNPRINTF=0;
14365   GNULIB_VSPRINTF_POSIX=0;
14366     REPLACE_FPRINTF=0;
14367   REPLACE_VFPRINTF=0;
14368   REPLACE_PRINTF=0;
14369   REPLACE_VPRINTF=0;
14370   REPLACE_SNPRINTF=0;
14371   HAVE_DECL_SNPRINTF=1;
14372   REPLACE_VSNPRINTF=0;
14373   HAVE_DECL_VSNPRINTF=1;
14374   REPLACE_SPRINTF=0;
14375   REPLACE_VSPRINTF=0;
14376
14377 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14378 $as_echo_n "checking whether snprintf is declared... " >&6; }
14379 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14380   $as_echo_n "(cached) " >&6
14381 else
14382   cat >conftest.$ac_ext <<_ACEOF
14383 /* confdefs.h.  */
14384 _ACEOF
14385 cat confdefs.h >>conftest.$ac_ext
14386 cat >>conftest.$ac_ext <<_ACEOF
14387 /* end confdefs.h.  */
14388 $ac_includes_default
14389 int
14390 main ()
14391 {
14392 #ifndef snprintf
14393   (void) snprintf;
14394 #endif
14395
14396   ;
14397   return 0;
14398 }
14399 _ACEOF
14400 rm -f conftest.$ac_objext
14401 if { (ac_try="$ac_compile"
14402 case "(($ac_try" in
14403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404   *) ac_try_echo=$ac_try;;
14405 esac
14406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14407 $as_echo "$ac_try_echo") >&5
14408   (eval "$ac_compile") 2>conftest.er1
14409   ac_status=$?
14410   grep -v '^ *+' conftest.er1 >conftest.err
14411   rm -f conftest.er1
14412   cat conftest.err >&5
14413   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414   (exit $ac_status); } && {
14415          test -z "$ac_c_werror_flag" ||
14416          test ! -s conftest.err
14417        } && test -s conftest.$ac_objext; then
14418   ac_cv_have_decl_snprintf=yes
14419 else
14420   $as_echo "$as_me: failed program was:" >&5
14421 sed 's/^/| /' conftest.$ac_ext >&5
14422
14423         ac_cv_have_decl_snprintf=no
14424 fi
14425
14426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14427 fi
14428 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14429 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
14430 if test $ac_cv_have_decl_snprintf = yes; then
14431
14432 cat >>confdefs.h <<_ACEOF
14433 #define HAVE_DECL_SNPRINTF 1
14434 _ACEOF
14435
14436
14437 else
14438   cat >>confdefs.h <<_ACEOF
14439 #define HAVE_DECL_SNPRINTF 0
14440 _ACEOF
14441
14442
14443 fi
14444
14445
14446
14447
14448
14449
14450 { $as_echo "$as_me:$LINENO: checking whether strdup is declared" >&5
14451 $as_echo_n "checking whether strdup is declared... " >&6; }
14452 if test "${ac_cv_have_decl_strdup+set}" = set; then
14453   $as_echo_n "(cached) " >&6
14454 else
14455   cat >conftest.$ac_ext <<_ACEOF
14456 /* confdefs.h.  */
14457 _ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h.  */
14461 $ac_includes_default
14462 int
14463 main ()
14464 {
14465 #ifndef strdup
14466   (void) strdup;
14467 #endif
14468
14469   ;
14470   return 0;
14471 }
14472 _ACEOF
14473 rm -f conftest.$ac_objext
14474 if { (ac_try="$ac_compile"
14475 case "(($ac_try" in
14476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14477   *) ac_try_echo=$ac_try;;
14478 esac
14479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14480 $as_echo "$ac_try_echo") >&5
14481   (eval "$ac_compile") 2>conftest.er1
14482   ac_status=$?
14483   grep -v '^ *+' conftest.er1 >conftest.err
14484   rm -f conftest.er1
14485   cat conftest.err >&5
14486   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487   (exit $ac_status); } && {
14488          test -z "$ac_c_werror_flag" ||
14489          test ! -s conftest.err
14490        } && test -s conftest.$ac_objext; then
14491   ac_cv_have_decl_strdup=yes
14492 else
14493   $as_echo "$as_me: failed program was:" >&5
14494 sed 's/^/| /' conftest.$ac_ext >&5
14495
14496         ac_cv_have_decl_strdup=no
14497 fi
14498
14499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14500 fi
14501 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
14502 $as_echo "$ac_cv_have_decl_strdup" >&6; }
14503 if test $ac_cv_have_decl_strdup = yes; then
14504
14505 cat >>confdefs.h <<_ACEOF
14506 #define HAVE_DECL_STRDUP 1
14507 _ACEOF
14508
14509
14510 else
14511   cat >>confdefs.h <<_ACEOF
14512 #define HAVE_DECL_STRDUP 0
14513 _ACEOF
14514
14515
14516 fi
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530     { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
14531 $as_echo_n "checking absolute name of <string.h>... " >&6; }
14532 if test "${gl_cv_absolute_string_h+set}" = set; then
14533   $as_echo_n "(cached) " >&6
14534 else
14535
14536
14537
14538
14539
14540     if test $ac_cv_header_string_h = yes; then
14541       cat >conftest.$ac_ext <<_ACEOF
14542 /* confdefs.h.  */
14543 _ACEOF
14544 cat confdefs.h >>conftest.$ac_ext
14545 cat >>conftest.$ac_ext <<_ACEOF
14546 /* end confdefs.h.  */
14547 #include <string.h>
14548 _ACEOF
14549       gl_cv_absolute_string_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14550 sed -n '\#/string.h#{s#.*"\(.*/string.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
14551     fi
14552
14553 fi
14554 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_string_h" >&5
14555 $as_echo "$gl_cv_absolute_string_h" >&6; }
14556 cat >>confdefs.h <<_ACEOF
14557 #define ABSOLUTE_STRING_H "$gl_cv_absolute_string_h"
14558 _ACEOF
14559
14560
14561   ABSOLUTE_STRING_H=\"$gl_cv_absolute_string_h\"
14562
14563
14564 { $as_echo "$as_me:$LINENO: checking whether strndup is declared" >&5
14565 $as_echo_n "checking whether strndup is declared... " >&6; }
14566 if test "${ac_cv_have_decl_strndup+set}" = set; then
14567   $as_echo_n "(cached) " >&6
14568 else
14569   cat >conftest.$ac_ext <<_ACEOF
14570 /* confdefs.h.  */
14571 _ACEOF
14572 cat confdefs.h >>conftest.$ac_ext
14573 cat >>conftest.$ac_ext <<_ACEOF
14574 /* end confdefs.h.  */
14575 $ac_includes_default
14576 int
14577 main ()
14578 {
14579 #ifndef strndup
14580   (void) strndup;
14581 #endif
14582
14583   ;
14584   return 0;
14585 }
14586 _ACEOF
14587 rm -f conftest.$ac_objext
14588 if { (ac_try="$ac_compile"
14589 case "(($ac_try" in
14590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14591   *) ac_try_echo=$ac_try;;
14592 esac
14593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14594 $as_echo "$ac_try_echo") >&5
14595   (eval "$ac_compile") 2>conftest.er1
14596   ac_status=$?
14597   grep -v '^ *+' conftest.er1 >conftest.err
14598   rm -f conftest.er1
14599   cat conftest.err >&5
14600   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601   (exit $ac_status); } && {
14602          test -z "$ac_c_werror_flag" ||
14603          test ! -s conftest.err
14604        } && test -s conftest.$ac_objext; then
14605   ac_cv_have_decl_strndup=yes
14606 else
14607   $as_echo "$as_me: failed program was:" >&5
14608 sed 's/^/| /' conftest.$ac_ext >&5
14609
14610         ac_cv_have_decl_strndup=no
14611 fi
14612
14613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14614 fi
14615 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
14616 $as_echo "$ac_cv_have_decl_strndup" >&6; }
14617 if test $ac_cv_have_decl_strndup = yes; then
14618
14619 cat >>confdefs.h <<_ACEOF
14620 #define HAVE_DECL_STRNDUP 1
14621 _ACEOF
14622
14623
14624 else
14625   cat >>confdefs.h <<_ACEOF
14626 #define HAVE_DECL_STRNDUP 0
14627 _ACEOF
14628
14629
14630 fi
14631
14632
14633 { $as_echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
14634 $as_echo_n "checking whether strnlen is declared... " >&6; }
14635 if test "${ac_cv_have_decl_strnlen+set}" = set; then
14636   $as_echo_n "(cached) " >&6
14637 else
14638   cat >conftest.$ac_ext <<_ACEOF
14639 /* confdefs.h.  */
14640 _ACEOF
14641 cat confdefs.h >>conftest.$ac_ext
14642 cat >>conftest.$ac_ext <<_ACEOF
14643 /* end confdefs.h.  */
14644 $ac_includes_default
14645 int
14646 main ()
14647 {
14648 #ifndef strnlen
14649   (void) strnlen;
14650 #endif
14651
14652   ;
14653   return 0;
14654 }
14655 _ACEOF
14656 rm -f conftest.$ac_objext
14657 if { (ac_try="$ac_compile"
14658 case "(($ac_try" in
14659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14660   *) ac_try_echo=$ac_try;;
14661 esac
14662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14663 $as_echo "$ac_try_echo") >&5
14664   (eval "$ac_compile") 2>conftest.er1
14665   ac_status=$?
14666   grep -v '^ *+' conftest.er1 >conftest.err
14667   rm -f conftest.er1
14668   cat conftest.err >&5
14669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670   (exit $ac_status); } && {
14671          test -z "$ac_c_werror_flag" ||
14672          test ! -s conftest.err
14673        } && test -s conftest.$ac_objext; then
14674   ac_cv_have_decl_strnlen=yes
14675 else
14676   $as_echo "$as_me: failed program was:" >&5
14677 sed 's/^/| /' conftest.$ac_ext >&5
14678
14679         ac_cv_have_decl_strnlen=no
14680 fi
14681
14682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14683 fi
14684 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
14685 $as_echo "$ac_cv_have_decl_strnlen" >&6; }
14686 if test $ac_cv_have_decl_strnlen = yes; then
14687
14688 cat >>confdefs.h <<_ACEOF
14689 #define HAVE_DECL_STRNLEN 1
14690 _ACEOF
14691
14692
14693 else
14694   cat >>confdefs.h <<_ACEOF
14695 #define HAVE_DECL_STRNLEN 0
14696 _ACEOF
14697
14698
14699 fi
14700
14701
14702
14703
14704 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14705 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
14706 if test "${ac_cv_header_stat_broken+set}" = set; then
14707   $as_echo_n "(cached) " >&6
14708 else
14709   cat >conftest.$ac_ext <<_ACEOF
14710 /* confdefs.h.  */
14711 _ACEOF
14712 cat confdefs.h >>conftest.$ac_ext
14713 cat >>conftest.$ac_ext <<_ACEOF
14714 /* end confdefs.h.  */
14715 #include <sys/types.h>
14716 #include <sys/stat.h>
14717
14718 #if defined S_ISBLK && defined S_IFDIR
14719 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14720 #endif
14721
14722 #if defined S_ISBLK && defined S_IFCHR
14723 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14724 #endif
14725
14726 #if defined S_ISLNK && defined S_IFREG
14727 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
14728 #endif
14729
14730 #if defined S_ISSOCK && defined S_IFREG
14731 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
14732 #endif
14733
14734 _ACEOF
14735 rm -f conftest.$ac_objext
14736 if { (ac_try="$ac_compile"
14737 case "(($ac_try" in
14738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739   *) ac_try_echo=$ac_try;;
14740 esac
14741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14742 $as_echo "$ac_try_echo") >&5
14743   (eval "$ac_compile") 2>conftest.er1
14744   ac_status=$?
14745   grep -v '^ *+' conftest.er1 >conftest.err
14746   rm -f conftest.er1
14747   cat conftest.err >&5
14748   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749   (exit $ac_status); } && {
14750          test -z "$ac_c_werror_flag" ||
14751          test ! -s conftest.err
14752        } && test -s conftest.$ac_objext; then
14753   ac_cv_header_stat_broken=no
14754 else
14755   $as_echo "$as_me: failed program was:" >&5
14756 sed 's/^/| /' conftest.$ac_ext >&5
14757
14758         ac_cv_header_stat_broken=yes
14759 fi
14760
14761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14762 fi
14763 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14764 $as_echo "$ac_cv_header_stat_broken" >&6; }
14765 if test $ac_cv_header_stat_broken = yes; then
14766
14767 cat >>confdefs.h <<\_ACEOF
14768 #define STAT_MACROS_BROKEN 1
14769 _ACEOF
14770
14771 fi
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784   { $as_echo "$as_me:$LINENO: checking for struct timespec in <time.h>" >&5
14785 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14786 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then
14787   $as_echo_n "(cached) " >&6
14788 else
14789   cat >conftest.$ac_ext <<_ACEOF
14790 /* confdefs.h.  */
14791 _ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h.  */
14795 #include <time.h>
14796
14797 int
14798 main ()
14799 {
14800 static struct timespec x; x.tv_sec = x.tv_nsec;
14801   ;
14802   return 0;
14803 }
14804 _ACEOF
14805 rm -f conftest.$ac_objext
14806 if { (ac_try="$ac_compile"
14807 case "(($ac_try" in
14808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14809   *) ac_try_echo=$ac_try;;
14810 esac
14811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14812 $as_echo "$ac_try_echo") >&5
14813   (eval "$ac_compile") 2>conftest.er1
14814   ac_status=$?
14815   grep -v '^ *+' conftest.er1 >conftest.err
14816   rm -f conftest.er1
14817   cat conftest.err >&5
14818   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819   (exit $ac_status); } && {
14820          test -z "$ac_c_werror_flag" ||
14821          test ! -s conftest.err
14822        } && test -s conftest.$ac_objext; then
14823   gl_cv_sys_struct_timespec_in_time_h=yes
14824 else
14825   $as_echo "$as_me: failed program was:" >&5
14826 sed 's/^/| /' conftest.$ac_ext >&5
14827
14828         gl_cv_sys_struct_timespec_in_time_h=no
14829 fi
14830
14831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14832 fi
14833 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14834 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14835
14836   TIME_H_DEFINES_STRUCT_TIMESPEC=0
14837   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14838   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14839     TIME_H_DEFINES_STRUCT_TIMESPEC=1
14840   else
14841     { $as_echo "$as_me:$LINENO: checking for struct timespec in <sys/time.h>" >&5
14842 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14843 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then
14844   $as_echo_n "(cached) " >&6
14845 else
14846   cat >conftest.$ac_ext <<_ACEOF
14847 /* confdefs.h.  */
14848 _ACEOF
14849 cat confdefs.h >>conftest.$ac_ext
14850 cat >>conftest.$ac_ext <<_ACEOF
14851 /* end confdefs.h.  */
14852 #include <sys/time.h>
14853
14854 int
14855 main ()
14856 {
14857 static struct timespec x; x.tv_sec = x.tv_nsec;
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14869 $as_echo "$ac_try_echo") >&5
14870   (eval "$ac_compile") 2>conftest.er1
14871   ac_status=$?
14872   grep -v '^ *+' conftest.er1 >conftest.err
14873   rm -f conftest.er1
14874   cat conftest.err >&5
14875   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876   (exit $ac_status); } && {
14877          test -z "$ac_c_werror_flag" ||
14878          test ! -s conftest.err
14879        } && test -s conftest.$ac_objext; then
14880   gl_cv_sys_struct_timespec_in_sys_time_h=yes
14881 else
14882   $as_echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14884
14885         gl_cv_sys_struct_timespec_in_sys_time_h=no
14886 fi
14887
14888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14889 fi
14890 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14891 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14892     if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14893       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
14894     fi
14895   fi
14896
14897
14898
14899
14900
14901
14902     { $as_echo "$as_me:$LINENO: checking absolute name of <time.h>" >&5
14903 $as_echo_n "checking absolute name of <time.h>... " >&6; }
14904 if test "${gl_cv_absolute_time_h+set}" = set; then
14905   $as_echo_n "(cached) " >&6
14906 else
14907
14908
14909
14910
14911
14912     if test $ac_cv_header_time_h = yes; then
14913       cat >conftest.$ac_ext <<_ACEOF
14914 /* confdefs.h.  */
14915 _ACEOF
14916 cat confdefs.h >>conftest.$ac_ext
14917 cat >>conftest.$ac_ext <<_ACEOF
14918 /* end confdefs.h.  */
14919 #include <time.h>
14920 _ACEOF
14921       gl_cv_absolute_time_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14922 sed -n '\#/time.h#{s#.*"\(.*/time.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
14923     fi
14924
14925 fi
14926 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_time_h" >&5
14927 $as_echo "$gl_cv_absolute_time_h" >&6; }
14928 cat >>confdefs.h <<_ACEOF
14929 #define ABSOLUTE_TIME_H "$gl_cv_absolute_time_h"
14930 _ACEOF
14931
14932
14933   ABSOLUTE_TIME_H=\"$gl_cv_absolute_time_h\"
14934
14935
14936
14937
14938
14939
14940
14941 { $as_echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
14942 $as_echo_n "checking whether clearerr_unlocked is declared... " >&6; }
14943 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
14944   $as_echo_n "(cached) " >&6
14945 else
14946   cat >conftest.$ac_ext <<_ACEOF
14947 /* confdefs.h.  */
14948 _ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h.  */
14952 $ac_includes_default
14953 int
14954 main ()
14955 {
14956 #ifndef clearerr_unlocked
14957   (void) clearerr_unlocked;
14958 #endif
14959
14960   ;
14961   return 0;
14962 }
14963 _ACEOF
14964 rm -f conftest.$ac_objext
14965 if { (ac_try="$ac_compile"
14966 case "(($ac_try" in
14967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14968   *) ac_try_echo=$ac_try;;
14969 esac
14970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14971 $as_echo "$ac_try_echo") >&5
14972   (eval "$ac_compile") 2>conftest.er1
14973   ac_status=$?
14974   grep -v '^ *+' conftest.er1 >conftest.err
14975   rm -f conftest.er1
14976   cat conftest.err >&5
14977   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978   (exit $ac_status); } && {
14979          test -z "$ac_c_werror_flag" ||
14980          test ! -s conftest.err
14981        } && test -s conftest.$ac_objext; then
14982   ac_cv_have_decl_clearerr_unlocked=yes
14983 else
14984   $as_echo "$as_me: failed program was:" >&5
14985 sed 's/^/| /' conftest.$ac_ext >&5
14986
14987         ac_cv_have_decl_clearerr_unlocked=no
14988 fi
14989
14990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14991 fi
14992 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
14993 $as_echo "$ac_cv_have_decl_clearerr_unlocked" >&6; }
14994 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
14995
14996 cat >>confdefs.h <<_ACEOF
14997 #define HAVE_DECL_CLEARERR_UNLOCKED 1
14998 _ACEOF
14999
15000
15001 else
15002   cat >>confdefs.h <<_ACEOF
15003 #define HAVE_DECL_CLEARERR_UNLOCKED 0
15004 _ACEOF
15005
15006
15007 fi
15008
15009
15010 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
15011 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
15012 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
15013   $as_echo_n "(cached) " >&6
15014 else
15015   cat >conftest.$ac_ext <<_ACEOF
15016 /* confdefs.h.  */
15017 _ACEOF
15018 cat confdefs.h >>conftest.$ac_ext
15019 cat >>conftest.$ac_ext <<_ACEOF
15020 /* end confdefs.h.  */
15021 $ac_includes_default
15022 int
15023 main ()
15024 {
15025 #ifndef feof_unlocked
15026   (void) feof_unlocked;
15027 #endif
15028
15029   ;
15030   return 0;
15031 }
15032 _ACEOF
15033 rm -f conftest.$ac_objext
15034 if { (ac_try="$ac_compile"
15035 case "(($ac_try" in
15036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037   *) ac_try_echo=$ac_try;;
15038 esac
15039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15040 $as_echo "$ac_try_echo") >&5
15041   (eval "$ac_compile") 2>conftest.er1
15042   ac_status=$?
15043   grep -v '^ *+' conftest.er1 >conftest.err
15044   rm -f conftest.er1
15045   cat conftest.err >&5
15046   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047   (exit $ac_status); } && {
15048          test -z "$ac_c_werror_flag" ||
15049          test ! -s conftest.err
15050        } && test -s conftest.$ac_objext; then
15051   ac_cv_have_decl_feof_unlocked=yes
15052 else
15053   $as_echo "$as_me: failed program was:" >&5
15054 sed 's/^/| /' conftest.$ac_ext >&5
15055
15056         ac_cv_have_decl_feof_unlocked=no
15057 fi
15058
15059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15060 fi
15061 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
15062 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
15063 if test $ac_cv_have_decl_feof_unlocked = yes; then
15064
15065 cat >>confdefs.h <<_ACEOF
15066 #define HAVE_DECL_FEOF_UNLOCKED 1
15067 _ACEOF
15068
15069
15070 else
15071   cat >>confdefs.h <<_ACEOF
15072 #define HAVE_DECL_FEOF_UNLOCKED 0
15073 _ACEOF
15074
15075
15076 fi
15077
15078
15079 { $as_echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
15080 $as_echo_n "checking whether ferror_unlocked is declared... " >&6; }
15081 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
15082   $as_echo_n "(cached) " >&6
15083 else
15084   cat >conftest.$ac_ext <<_ACEOF
15085 /* confdefs.h.  */
15086 _ACEOF
15087 cat confdefs.h >>conftest.$ac_ext
15088 cat >>conftest.$ac_ext <<_ACEOF
15089 /* end confdefs.h.  */
15090 $ac_includes_default
15091 int
15092 main ()
15093 {
15094 #ifndef ferror_unlocked
15095   (void) ferror_unlocked;
15096 #endif
15097
15098   ;
15099   return 0;
15100 }
15101 _ACEOF
15102 rm -f conftest.$ac_objext
15103 if { (ac_try="$ac_compile"
15104 case "(($ac_try" in
15105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15106   *) ac_try_echo=$ac_try;;
15107 esac
15108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15109 $as_echo "$ac_try_echo") >&5
15110   (eval "$ac_compile") 2>conftest.er1
15111   ac_status=$?
15112   grep -v '^ *+' conftest.er1 >conftest.err
15113   rm -f conftest.er1
15114   cat conftest.err >&5
15115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116   (exit $ac_status); } && {
15117          test -z "$ac_c_werror_flag" ||
15118          test ! -s conftest.err
15119        } && test -s conftest.$ac_objext; then
15120   ac_cv_have_decl_ferror_unlocked=yes
15121 else
15122   $as_echo "$as_me: failed program was:" >&5
15123 sed 's/^/| /' conftest.$ac_ext >&5
15124
15125         ac_cv_have_decl_ferror_unlocked=no
15126 fi
15127
15128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15129 fi
15130 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
15131 $as_echo "$ac_cv_have_decl_ferror_unlocked" >&6; }
15132 if test $ac_cv_have_decl_ferror_unlocked = yes; then
15133
15134 cat >>confdefs.h <<_ACEOF
15135 #define HAVE_DECL_FERROR_UNLOCKED 1
15136 _ACEOF
15137
15138
15139 else
15140   cat >>confdefs.h <<_ACEOF
15141 #define HAVE_DECL_FERROR_UNLOCKED 0
15142 _ACEOF
15143
15144
15145 fi
15146
15147
15148 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
15149 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
15150 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
15151   $as_echo_n "(cached) " >&6
15152 else
15153   cat >conftest.$ac_ext <<_ACEOF
15154 /* confdefs.h.  */
15155 _ACEOF
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h.  */
15159 $ac_includes_default
15160 int
15161 main ()
15162 {
15163 #ifndef fgets_unlocked
15164   (void) fgets_unlocked;
15165 #endif
15166
15167   ;
15168   return 0;
15169 }
15170 _ACEOF
15171 rm -f conftest.$ac_objext
15172 if { (ac_try="$ac_compile"
15173 case "(($ac_try" in
15174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15175   *) ac_try_echo=$ac_try;;
15176 esac
15177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15178 $as_echo "$ac_try_echo") >&5
15179   (eval "$ac_compile") 2>conftest.er1
15180   ac_status=$?
15181   grep -v '^ *+' conftest.er1 >conftest.err
15182   rm -f conftest.er1
15183   cat conftest.err >&5
15184   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185   (exit $ac_status); } && {
15186          test -z "$ac_c_werror_flag" ||
15187          test ! -s conftest.err
15188        } && test -s conftest.$ac_objext; then
15189   ac_cv_have_decl_fgets_unlocked=yes
15190 else
15191   $as_echo "$as_me: failed program was:" >&5
15192 sed 's/^/| /' conftest.$ac_ext >&5
15193
15194         ac_cv_have_decl_fgets_unlocked=no
15195 fi
15196
15197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15198 fi
15199 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
15200 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
15201 if test $ac_cv_have_decl_fgets_unlocked = yes; then
15202
15203 cat >>confdefs.h <<_ACEOF
15204 #define HAVE_DECL_FGETS_UNLOCKED 1
15205 _ACEOF
15206
15207
15208 else
15209   cat >>confdefs.h <<_ACEOF
15210 #define HAVE_DECL_FGETS_UNLOCKED 0
15211 _ACEOF
15212
15213
15214 fi
15215
15216
15217 { $as_echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
15218 $as_echo_n "checking whether fputc_unlocked is declared... " >&6; }
15219 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
15220   $as_echo_n "(cached) " >&6
15221 else
15222   cat >conftest.$ac_ext <<_ACEOF
15223 /* confdefs.h.  */
15224 _ACEOF
15225 cat confdefs.h >>conftest.$ac_ext
15226 cat >>conftest.$ac_ext <<_ACEOF
15227 /* end confdefs.h.  */
15228 $ac_includes_default
15229 int
15230 main ()
15231 {
15232 #ifndef fputc_unlocked
15233   (void) fputc_unlocked;
15234 #endif
15235
15236   ;
15237   return 0;
15238 }
15239 _ACEOF
15240 rm -f conftest.$ac_objext
15241 if { (ac_try="$ac_compile"
15242 case "(($ac_try" in
15243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15244   *) ac_try_echo=$ac_try;;
15245 esac
15246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15247 $as_echo "$ac_try_echo") >&5
15248   (eval "$ac_compile") 2>conftest.er1
15249   ac_status=$?
15250   grep -v '^ *+' conftest.er1 >conftest.err
15251   rm -f conftest.er1
15252   cat conftest.err >&5
15253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254   (exit $ac_status); } && {
15255          test -z "$ac_c_werror_flag" ||
15256          test ! -s conftest.err
15257        } && test -s conftest.$ac_objext; then
15258   ac_cv_have_decl_fputc_unlocked=yes
15259 else
15260   $as_echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15262
15263         ac_cv_have_decl_fputc_unlocked=no
15264 fi
15265
15266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15267 fi
15268 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
15269 $as_echo "$ac_cv_have_decl_fputc_unlocked" >&6; }
15270 if test $ac_cv_have_decl_fputc_unlocked = yes; then
15271
15272 cat >>confdefs.h <<_ACEOF
15273 #define HAVE_DECL_FPUTC_UNLOCKED 1
15274 _ACEOF
15275
15276
15277 else
15278   cat >>confdefs.h <<_ACEOF
15279 #define HAVE_DECL_FPUTC_UNLOCKED 0
15280 _ACEOF
15281
15282
15283 fi
15284
15285
15286 { $as_echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
15287 $as_echo_n "checking whether fread_unlocked is declared... " >&6; }
15288 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
15289   $as_echo_n "(cached) " >&6
15290 else
15291   cat >conftest.$ac_ext <<_ACEOF
15292 /* confdefs.h.  */
15293 _ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h.  */
15297 $ac_includes_default
15298 int
15299 main ()
15300 {
15301 #ifndef fread_unlocked
15302   (void) fread_unlocked;
15303 #endif
15304
15305   ;
15306   return 0;
15307 }
15308 _ACEOF
15309 rm -f conftest.$ac_objext
15310 if { (ac_try="$ac_compile"
15311 case "(($ac_try" in
15312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15313   *) ac_try_echo=$ac_try;;
15314 esac
15315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15316 $as_echo "$ac_try_echo") >&5
15317   (eval "$ac_compile") 2>conftest.er1
15318   ac_status=$?
15319   grep -v '^ *+' conftest.er1 >conftest.err
15320   rm -f conftest.er1
15321   cat conftest.err >&5
15322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323   (exit $ac_status); } && {
15324          test -z "$ac_c_werror_flag" ||
15325          test ! -s conftest.err
15326        } && test -s conftest.$ac_objext; then
15327   ac_cv_have_decl_fread_unlocked=yes
15328 else
15329   $as_echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15331
15332         ac_cv_have_decl_fread_unlocked=no
15333 fi
15334
15335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15336 fi
15337 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
15338 $as_echo "$ac_cv_have_decl_fread_unlocked" >&6; }
15339 if test $ac_cv_have_decl_fread_unlocked = yes; then
15340
15341 cat >>confdefs.h <<_ACEOF
15342 #define HAVE_DECL_FREAD_UNLOCKED 1
15343 _ACEOF
15344
15345
15346 else
15347   cat >>confdefs.h <<_ACEOF
15348 #define HAVE_DECL_FREAD_UNLOCKED 0
15349 _ACEOF
15350
15351
15352 fi
15353
15354
15355 { $as_echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
15356 $as_echo_n "checking whether fwrite_unlocked is declared... " >&6; }
15357 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
15358   $as_echo_n "(cached) " >&6
15359 else
15360   cat >conftest.$ac_ext <<_ACEOF
15361 /* confdefs.h.  */
15362 _ACEOF
15363 cat confdefs.h >>conftest.$ac_ext
15364 cat >>conftest.$ac_ext <<_ACEOF
15365 /* end confdefs.h.  */
15366 $ac_includes_default
15367 int
15368 main ()
15369 {
15370 #ifndef fwrite_unlocked
15371   (void) fwrite_unlocked;
15372 #endif
15373
15374   ;
15375   return 0;
15376 }
15377 _ACEOF
15378 rm -f conftest.$ac_objext
15379 if { (ac_try="$ac_compile"
15380 case "(($ac_try" in
15381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382   *) ac_try_echo=$ac_try;;
15383 esac
15384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15385 $as_echo "$ac_try_echo") >&5
15386   (eval "$ac_compile") 2>conftest.er1
15387   ac_status=$?
15388   grep -v '^ *+' conftest.er1 >conftest.err
15389   rm -f conftest.er1
15390   cat conftest.err >&5
15391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392   (exit $ac_status); } && {
15393          test -z "$ac_c_werror_flag" ||
15394          test ! -s conftest.err
15395        } && test -s conftest.$ac_objext; then
15396   ac_cv_have_decl_fwrite_unlocked=yes
15397 else
15398   $as_echo "$as_me: failed program was:" >&5
15399 sed 's/^/| /' conftest.$ac_ext >&5
15400
15401         ac_cv_have_decl_fwrite_unlocked=no
15402 fi
15403
15404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15405 fi
15406 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
15407 $as_echo "$ac_cv_have_decl_fwrite_unlocked" >&6; }
15408 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
15409
15410 cat >>confdefs.h <<_ACEOF
15411 #define HAVE_DECL_FWRITE_UNLOCKED 1
15412 _ACEOF
15413
15414
15415 else
15416   cat >>confdefs.h <<_ACEOF
15417 #define HAVE_DECL_FWRITE_UNLOCKED 0
15418 _ACEOF
15419
15420
15421 fi
15422
15423
15424 { $as_echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
15425 $as_echo_n "checking whether getchar_unlocked is declared... " >&6; }
15426 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
15427   $as_echo_n "(cached) " >&6
15428 else
15429   cat >conftest.$ac_ext <<_ACEOF
15430 /* confdefs.h.  */
15431 _ACEOF
15432 cat confdefs.h >>conftest.$ac_ext
15433 cat >>conftest.$ac_ext <<_ACEOF
15434 /* end confdefs.h.  */
15435 $ac_includes_default
15436 int
15437 main ()
15438 {
15439 #ifndef getchar_unlocked
15440   (void) getchar_unlocked;
15441 #endif
15442
15443   ;
15444   return 0;
15445 }
15446 _ACEOF
15447 rm -f conftest.$ac_objext
15448 if { (ac_try="$ac_compile"
15449 case "(($ac_try" in
15450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451   *) ac_try_echo=$ac_try;;
15452 esac
15453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15454 $as_echo "$ac_try_echo") >&5
15455   (eval "$ac_compile") 2>conftest.er1
15456   ac_status=$?
15457   grep -v '^ *+' conftest.er1 >conftest.err
15458   rm -f conftest.er1
15459   cat conftest.err >&5
15460   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461   (exit $ac_status); } && {
15462          test -z "$ac_c_werror_flag" ||
15463          test ! -s conftest.err
15464        } && test -s conftest.$ac_objext; then
15465   ac_cv_have_decl_getchar_unlocked=yes
15466 else
15467   $as_echo "$as_me: failed program was:" >&5
15468 sed 's/^/| /' conftest.$ac_ext >&5
15469
15470         ac_cv_have_decl_getchar_unlocked=no
15471 fi
15472
15473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15474 fi
15475 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
15476 $as_echo "$ac_cv_have_decl_getchar_unlocked" >&6; }
15477 if test $ac_cv_have_decl_getchar_unlocked = yes; then
15478
15479 cat >>confdefs.h <<_ACEOF
15480 #define HAVE_DECL_GETCHAR_UNLOCKED 1
15481 _ACEOF
15482
15483
15484 else
15485   cat >>confdefs.h <<_ACEOF
15486 #define HAVE_DECL_GETCHAR_UNLOCKED 0
15487 _ACEOF
15488
15489
15490 fi
15491
15492
15493 { $as_echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
15494 $as_echo_n "checking whether putchar_unlocked is declared... " >&6; }
15495 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
15496   $as_echo_n "(cached) " >&6
15497 else
15498   cat >conftest.$ac_ext <<_ACEOF
15499 /* confdefs.h.  */
15500 _ACEOF
15501 cat confdefs.h >>conftest.$ac_ext
15502 cat >>conftest.$ac_ext <<_ACEOF
15503 /* end confdefs.h.  */
15504 $ac_includes_default
15505 int
15506 main ()
15507 {
15508 #ifndef putchar_unlocked
15509   (void) putchar_unlocked;
15510 #endif
15511
15512   ;
15513   return 0;
15514 }
15515 _ACEOF
15516 rm -f conftest.$ac_objext
15517 if { (ac_try="$ac_compile"
15518 case "(($ac_try" in
15519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520   *) ac_try_echo=$ac_try;;
15521 esac
15522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15523 $as_echo "$ac_try_echo") >&5
15524   (eval "$ac_compile") 2>conftest.er1
15525   ac_status=$?
15526   grep -v '^ *+' conftest.er1 >conftest.err
15527   rm -f conftest.er1
15528   cat conftest.err >&5
15529   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530   (exit $ac_status); } && {
15531          test -z "$ac_c_werror_flag" ||
15532          test ! -s conftest.err
15533        } && test -s conftest.$ac_objext; then
15534   ac_cv_have_decl_putchar_unlocked=yes
15535 else
15536   $as_echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15538
15539         ac_cv_have_decl_putchar_unlocked=no
15540 fi
15541
15542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15543 fi
15544 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
15545 $as_echo "$ac_cv_have_decl_putchar_unlocked" >&6; }
15546 if test $ac_cv_have_decl_putchar_unlocked = yes; then
15547
15548 cat >>confdefs.h <<_ACEOF
15549 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
15550 _ACEOF
15551
15552
15553 else
15554   cat >>confdefs.h <<_ACEOF
15555 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
15556 _ACEOF
15557
15558
15559 fi
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570 { $as_echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
15571 $as_echo_n "checking whether utime accepts a null argument... " >&6; }
15572 if test "${ac_cv_func_utime_null+set}" = set; then
15573   $as_echo_n "(cached) " >&6
15574 else
15575   rm -f conftest.data; >conftest.data
15576 # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
15577 if test "$cross_compiling" = yes; then
15578   ac_cv_func_utime_null=no
15579 else
15580   cat >conftest.$ac_ext <<_ACEOF
15581 /* confdefs.h.  */
15582 _ACEOF
15583 cat confdefs.h >>conftest.$ac_ext
15584 cat >>conftest.$ac_ext <<_ACEOF
15585 /* end confdefs.h.  */
15586 $ac_includes_default
15587                #ifdef HAVE_UTIME_H
15588                # include <utime.h>
15589                #endif
15590 int
15591 main ()
15592 {
15593 struct stat s, t;
15594   return ! (stat ("conftest.data", &s) == 0
15595             && utime ("conftest.data", 0) == 0
15596             && stat ("conftest.data", &t) == 0
15597             && t.st_mtime >= s.st_mtime
15598             && t.st_mtime - s.st_mtime < 120);
15599   ;
15600   return 0;
15601 }
15602 _ACEOF
15603 rm -f conftest$ac_exeext
15604 if { (ac_try="$ac_link"
15605 case "(($ac_try" in
15606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15607   *) ac_try_echo=$ac_try;;
15608 esac
15609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15610 $as_echo "$ac_try_echo") >&5
15611   (eval "$ac_link") 2>&5
15612   ac_status=$?
15613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15615   { (case "(($ac_try" in
15616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15617   *) ac_try_echo=$ac_try;;
15618 esac
15619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15620 $as_echo "$ac_try_echo") >&5
15621   (eval "$ac_try") 2>&5
15622   ac_status=$?
15623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624   (exit $ac_status); }; }; then
15625   ac_cv_func_utime_null=yes
15626 else
15627   $as_echo "$as_me: program exited with status $ac_status" >&5
15628 $as_echo "$as_me: failed program was:" >&5
15629 sed 's/^/| /' conftest.$ac_ext >&5
15630
15631 ( exit $ac_status )
15632 ac_cv_func_utime_null=no
15633 fi
15634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15635 fi
15636
15637
15638 fi
15639 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
15640 $as_echo "$ac_cv_func_utime_null" >&6; }
15641 if test $ac_cv_func_utime_null = yes; then
15642
15643 cat >>confdefs.h <<\_ACEOF
15644 #define HAVE_UTIME_NULL 1
15645 _ACEOF
15646
15647 fi
15648 rm -f conftest.data
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659   { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
15660 $as_echo_n "checking for struct utimbuf... " >&6; }
15661 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then
15662   $as_echo_n "(cached) " >&6
15663 else
15664   cat >conftest.$ac_ext <<_ACEOF
15665 /* confdefs.h.  */
15666 _ACEOF
15667 cat confdefs.h >>conftest.$ac_ext
15668 cat >>conftest.$ac_ext <<_ACEOF
15669 /* end confdefs.h.  */
15670 #if HAVE_SYS_TIME_H
15671              #include <sys/time.h>
15672             #endif
15673             #include <time.h>
15674             #ifdef HAVE_UTIME_H
15675              #include <utime.h>
15676             #endif
15677
15678 int
15679 main ()
15680 {
15681 static struct utimbuf x; x.actime = x.modtime;
15682   ;
15683   return 0;
15684 }
15685 _ACEOF
15686 rm -f conftest.$ac_objext
15687 if { (ac_try="$ac_compile"
15688 case "(($ac_try" in
15689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15690   *) ac_try_echo=$ac_try;;
15691 esac
15692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15693 $as_echo "$ac_try_echo") >&5
15694   (eval "$ac_compile") 2>conftest.er1
15695   ac_status=$?
15696   grep -v '^ *+' conftest.er1 >conftest.err
15697   rm -f conftest.er1
15698   cat conftest.err >&5
15699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700   (exit $ac_status); } && {
15701          test -z "$ac_c_werror_flag" ||
15702          test ! -s conftest.err
15703        } && test -s conftest.$ac_objext; then
15704   gl_cv_sys_struct_utimbuf=yes
15705 else
15706   $as_echo "$as_me: failed program was:" >&5
15707 sed 's/^/| /' conftest.$ac_ext >&5
15708
15709         gl_cv_sys_struct_utimbuf=no
15710 fi
15711
15712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15713 fi
15714 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_utimbuf" >&5
15715 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
15716
15717   if test $gl_cv_sys_struct_utimbuf = yes; then
15718
15719 cat >>confdefs.h <<\_ACEOF
15720 #define HAVE_STRUCT_UTIMBUF 1
15721 _ACEOF
15722
15723   fi
15724
15725
15726   { $as_echo "$as_me:$LINENO: checking determine whether the utimes function works" >&5
15727 $as_echo_n "checking determine whether the utimes function works... " >&6; }
15728 if test "${gl_cv_func_working_utimes+set}" = set; then
15729   $as_echo_n "(cached) " >&6
15730 else
15731
15732   if test "$cross_compiling" = yes; then
15733   gl_cv_func_working_utimes=no
15734 else
15735   cat >conftest.$ac_ext <<_ACEOF
15736 /* confdefs.h.  */
15737 _ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h.  */
15741
15742 #include <sys/types.h>
15743 #include <sys/stat.h>
15744 #include <fcntl.h>
15745 #include <sys/time.h>
15746 #include <time.h>
15747 #include <unistd.h>
15748 #include <stdlib.h>
15749 #include <stdio.h>
15750 #include <utime.h>
15751
15752 int
15753 main ()
15754 {
15755   static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
15756   struct stat sbuf;
15757   char const *file = "conftest.utimes";
15758   FILE *f;
15759   time_t now;
15760   int fd;
15761
15762   int ok = ((f = fopen (file, "w"))
15763             && fclose (f) == 0
15764             && utimes (file, timeval) == 0
15765             && lstat (file, &sbuf) == 0
15766             && sbuf.st_atime == timeval[0].tv_sec
15767             && sbuf.st_mtime == timeval[1].tv_sec);
15768   unlink (file);
15769   if (!ok)
15770     exit (1);
15771
15772   ok =
15773     ((f = fopen (file, "w"))
15774      && fclose (f) == 0
15775      && time (&now) != (time_t)-1
15776      && utimes (file, NULL) == 0
15777      && lstat (file, &sbuf) == 0
15778      && now - sbuf.st_atime <= 2
15779      && now - sbuf.st_mtime <= 2);
15780   unlink (file);
15781   if (!ok)
15782     exit (1);
15783
15784   ok = (0 <= (fd = open (file, O_WRONLY|O_CREAT, 0444))
15785               && close (fd) == 0
15786               && utimes (file, NULL) == 0);
15787   unlink (file);
15788
15789   exit (!ok);
15790 }
15791
15792 _ACEOF
15793 rm -f conftest$ac_exeext
15794 if { (ac_try="$ac_link"
15795 case "(($ac_try" in
15796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797   *) ac_try_echo=$ac_try;;
15798 esac
15799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15800 $as_echo "$ac_try_echo") >&5
15801   (eval "$ac_link") 2>&5
15802   ac_status=$?
15803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15805   { (case "(($ac_try" in
15806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15807   *) ac_try_echo=$ac_try;;
15808 esac
15809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15810 $as_echo "$ac_try_echo") >&5
15811   (eval "$ac_try") 2>&5
15812   ac_status=$?
15813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814   (exit $ac_status); }; }; then
15815   gl_cv_func_working_utimes=yes
15816 else
15817   $as_echo "$as_me: program exited with status $ac_status" >&5
15818 $as_echo "$as_me: failed program was:" >&5
15819 sed 's/^/| /' conftest.$ac_ext >&5
15820
15821 ( exit $ac_status )
15822 gl_cv_func_working_utimes=no
15823 fi
15824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15825 fi
15826
15827
15828 fi
15829 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
15830 $as_echo "$gl_cv_func_working_utimes" >&6; }
15831
15832   if test $gl_cv_func_working_utimes = yes; then
15833
15834 cat >>confdefs.h <<\_ACEOF
15835 #define HAVE_WORKING_UTIMES 1
15836 _ACEOF
15837
15838   fi
15839
15840
15841
15842
15843
15844
15845
15846   { $as_echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
15847 $as_echo_n "checking for EOVERFLOW... " >&6; }
15848 if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
15849   $as_echo_n "(cached) " >&6
15850 else
15851
15852     cat >conftest.$ac_ext <<_ACEOF
15853 /* confdefs.h.  */
15854 _ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h.  */
15858
15859 #include <errno.h>
15860 #ifdef EOVERFLOW
15861 yes
15862 #endif
15863
15864 _ACEOF
15865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15866   $EGREP "yes" >/dev/null 2>&1; then
15867   have_eoverflow=1
15868 fi
15869 rm -f conftest*
15870
15871     if test -n "$have_eoverflow"; then
15872             ac_cv_decl_EOVERFLOW=yes
15873     else
15874       cat >conftest.$ac_ext <<_ACEOF
15875 /* confdefs.h.  */
15876 _ACEOF
15877 cat confdefs.h >>conftest.$ac_ext
15878 cat >>conftest.$ac_ext <<_ACEOF
15879 /* end confdefs.h.  */
15880
15881 #define _XOPEN_SOURCE_EXTENDED 1
15882 #include <errno.h>
15883 #ifdef EOVERFLOW
15884 yes
15885 #endif
15886
15887 _ACEOF
15888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15889   $EGREP "yes" >/dev/null 2>&1; then
15890   have_eoverflow=1
15891 fi
15892 rm -f conftest*
15893
15894       if test -n "$have_eoverflow"; then
15895                         if test "$cross_compiling" = yes; then
15896   # Depending upon the size, compute the lo and hi bounds.
15897 cat >conftest.$ac_ext <<_ACEOF
15898 /* confdefs.h.  */
15899 _ACEOF
15900 cat confdefs.h >>conftest.$ac_ext
15901 cat >>conftest.$ac_ext <<_ACEOF
15902 /* end confdefs.h.  */
15903
15904 #define _XOPEN_SOURCE_EXTENDED 1
15905 #include <errno.h>
15906 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
15907 #include <stdio.h>
15908 #include <stdlib.h>
15909
15910 int
15911 main ()
15912 {
15913 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
15914 test_array [0] = 0
15915
15916   ;
15917   return 0;
15918 }
15919 _ACEOF
15920 rm -f conftest.$ac_objext
15921 if { (ac_try="$ac_compile"
15922 case "(($ac_try" in
15923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15924   *) ac_try_echo=$ac_try;;
15925 esac
15926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15927 $as_echo "$ac_try_echo") >&5
15928   (eval "$ac_compile") 2>conftest.er1
15929   ac_status=$?
15930   grep -v '^ *+' conftest.er1 >conftest.err
15931   rm -f conftest.er1
15932   cat conftest.err >&5
15933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934   (exit $ac_status); } && {
15935          test -z "$ac_c_werror_flag" ||
15936          test ! -s conftest.err
15937        } && test -s conftest.$ac_objext; then
15938   ac_lo=0 ac_mid=0
15939   while :; do
15940     cat >conftest.$ac_ext <<_ACEOF
15941 /* confdefs.h.  */
15942 _ACEOF
15943 cat confdefs.h >>conftest.$ac_ext
15944 cat >>conftest.$ac_ext <<_ACEOF
15945 /* end confdefs.h.  */
15946
15947 #define _XOPEN_SOURCE_EXTENDED 1
15948 #include <errno.h>
15949 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
15950 #include <stdio.h>
15951 #include <stdlib.h>
15952
15953 int
15954 main ()
15955 {
15956 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
15957 test_array [0] = 0
15958
15959   ;
15960   return 0;
15961 }
15962 _ACEOF
15963 rm -f conftest.$ac_objext
15964 if { (ac_try="$ac_compile"
15965 case "(($ac_try" in
15966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15967   *) ac_try_echo=$ac_try;;
15968 esac
15969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15970 $as_echo "$ac_try_echo") >&5
15971   (eval "$ac_compile") 2>conftest.er1
15972   ac_status=$?
15973   grep -v '^ *+' conftest.er1 >conftest.err
15974   rm -f conftest.er1
15975   cat conftest.err >&5
15976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977   (exit $ac_status); } && {
15978          test -z "$ac_c_werror_flag" ||
15979          test ! -s conftest.err
15980        } && test -s conftest.$ac_objext; then
15981   ac_hi=$ac_mid; break
15982 else
15983   $as_echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.$ac_ext >&5
15985
15986         ac_lo=`expr $ac_mid + 1`
15987                         if test $ac_lo -le $ac_mid; then
15988                           ac_lo= ac_hi=
15989                           break
15990                         fi
15991                         ac_mid=`expr 2 '*' $ac_mid + 1`
15992 fi
15993
15994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15995   done
15996 else
15997   $as_echo "$as_me: failed program was:" >&5
15998 sed 's/^/| /' conftest.$ac_ext >&5
15999
16000         cat >conftest.$ac_ext <<_ACEOF
16001 /* confdefs.h.  */
16002 _ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h.  */
16006
16007 #define _XOPEN_SOURCE_EXTENDED 1
16008 #include <errno.h>
16009 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16010 #include <stdio.h>
16011 #include <stdlib.h>
16012
16013 int
16014 main ()
16015 {
16016 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
16017 test_array [0] = 0
16018
16019   ;
16020   return 0;
16021 }
16022 _ACEOF
16023 rm -f conftest.$ac_objext
16024 if { (ac_try="$ac_compile"
16025 case "(($ac_try" in
16026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16027   *) ac_try_echo=$ac_try;;
16028 esac
16029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16030 $as_echo "$ac_try_echo") >&5
16031   (eval "$ac_compile") 2>conftest.er1
16032   ac_status=$?
16033   grep -v '^ *+' conftest.er1 >conftest.err
16034   rm -f conftest.er1
16035   cat conftest.err >&5
16036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037   (exit $ac_status); } && {
16038          test -z "$ac_c_werror_flag" ||
16039          test ! -s conftest.err
16040        } && test -s conftest.$ac_objext; then
16041   ac_hi=-1 ac_mid=-1
16042   while :; do
16043     cat >conftest.$ac_ext <<_ACEOF
16044 /* confdefs.h.  */
16045 _ACEOF
16046 cat confdefs.h >>conftest.$ac_ext
16047 cat >>conftest.$ac_ext <<_ACEOF
16048 /* end confdefs.h.  */
16049
16050 #define _XOPEN_SOURCE_EXTENDED 1
16051 #include <errno.h>
16052 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16053 #include <stdio.h>
16054 #include <stdlib.h>
16055
16056 int
16057 main ()
16058 {
16059 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
16060 test_array [0] = 0
16061
16062   ;
16063   return 0;
16064 }
16065 _ACEOF
16066 rm -f conftest.$ac_objext
16067 if { (ac_try="$ac_compile"
16068 case "(($ac_try" in
16069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16070   *) ac_try_echo=$ac_try;;
16071 esac
16072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16073 $as_echo "$ac_try_echo") >&5
16074   (eval "$ac_compile") 2>conftest.er1
16075   ac_status=$?
16076   grep -v '^ *+' conftest.er1 >conftest.err
16077   rm -f conftest.er1
16078   cat conftest.err >&5
16079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080   (exit $ac_status); } && {
16081          test -z "$ac_c_werror_flag" ||
16082          test ! -s conftest.err
16083        } && test -s conftest.$ac_objext; then
16084   ac_lo=$ac_mid; break
16085 else
16086   $as_echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16088
16089         ac_hi=`expr '(' $ac_mid ')' - 1`
16090                         if test $ac_mid -le $ac_hi; then
16091                           ac_lo= ac_hi=
16092                           break
16093                         fi
16094                         ac_mid=`expr 2 '*' $ac_mid`
16095 fi
16096
16097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16098   done
16099 else
16100   $as_echo "$as_me: failed program was:" >&5
16101 sed 's/^/| /' conftest.$ac_ext >&5
16102
16103         ac_lo= ac_hi=
16104 fi
16105
16106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16107 fi
16108
16109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16110 # Binary search between lo and hi bounds.
16111 while test "x$ac_lo" != "x$ac_hi"; do
16112   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16113   cat >conftest.$ac_ext <<_ACEOF
16114 /* confdefs.h.  */
16115 _ACEOF
16116 cat confdefs.h >>conftest.$ac_ext
16117 cat >>conftest.$ac_ext <<_ACEOF
16118 /* end confdefs.h.  */
16119
16120 #define _XOPEN_SOURCE_EXTENDED 1
16121 #include <errno.h>
16122 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16123 #include <stdio.h>
16124 #include <stdlib.h>
16125
16126 int
16127 main ()
16128 {
16129 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
16130 test_array [0] = 0
16131
16132   ;
16133   return 0;
16134 }
16135 _ACEOF
16136 rm -f conftest.$ac_objext
16137 if { (ac_try="$ac_compile"
16138 case "(($ac_try" in
16139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16140   *) ac_try_echo=$ac_try;;
16141 esac
16142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16143 $as_echo "$ac_try_echo") >&5
16144   (eval "$ac_compile") 2>conftest.er1
16145   ac_status=$?
16146   grep -v '^ *+' conftest.er1 >conftest.err
16147   rm -f conftest.er1
16148   cat conftest.err >&5
16149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150   (exit $ac_status); } && {
16151          test -z "$ac_c_werror_flag" ||
16152          test ! -s conftest.err
16153        } && test -s conftest.$ac_objext; then
16154   ac_hi=$ac_mid
16155 else
16156   $as_echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16158
16159         ac_lo=`expr '(' $ac_mid ')' + 1`
16160 fi
16161
16162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16163 done
16164 case $ac_lo in
16165 ?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
16166 '')  ;;
16167 esac
16168 else
16169   cat >conftest.$ac_ext <<_ACEOF
16170 /* confdefs.h.  */
16171 _ACEOF
16172 cat confdefs.h >>conftest.$ac_ext
16173 cat >>conftest.$ac_ext <<_ACEOF
16174 /* end confdefs.h.  */
16175
16176 #define _XOPEN_SOURCE_EXTENDED 1
16177 #include <errno.h>
16178 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16179 #include <stdio.h>
16180 #include <stdlib.h>
16181
16182 static long int longval () { return EOVERFLOW; }
16183 static unsigned long int ulongval () { return EOVERFLOW; }
16184 #include <stdio.h>
16185 #include <stdlib.h>
16186 int
16187 main ()
16188 {
16189
16190   FILE *f = fopen ("conftest.val", "w");
16191   if (! f)
16192     return 1;
16193   if ((EOVERFLOW) < 0)
16194     {
16195       long int i = longval ();
16196       if (i != (EOVERFLOW))
16197         return 1;
16198       fprintf (f, "%ld", i);
16199     }
16200   else
16201     {
16202       unsigned long int i = ulongval ();
16203       if (i != (EOVERFLOW))
16204         return 1;
16205       fprintf (f, "%lu", i);
16206     }
16207   /* Do not output a trailing newline, as this causes \r\n confusion
16208      on some platforms.  */
16209   return ferror (f) || fclose (f) != 0;
16210
16211   ;
16212   return 0;
16213 }
16214 _ACEOF
16215 rm -f conftest$ac_exeext
16216 if { (ac_try="$ac_link"
16217 case "(($ac_try" in
16218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219   *) ac_try_echo=$ac_try;;
16220 esac
16221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16222 $as_echo "$ac_try_echo") >&5
16223   (eval "$ac_link") 2>&5
16224   ac_status=$?
16225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16227   { (case "(($ac_try" in
16228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229   *) ac_try_echo=$ac_try;;
16230 esac
16231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16232 $as_echo "$ac_try_echo") >&5
16233   (eval "$ac_try") 2>&5
16234   ac_status=$?
16235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236   (exit $ac_status); }; }; then
16237   ac_cv_decl_EOVERFLOW=`cat conftest.val`
16238 else
16239   $as_echo "$as_me: program exited with status $ac_status" >&5
16240 $as_echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.$ac_ext >&5
16242
16243 fi
16244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16245 fi
16246 rm -f conftest.val
16247       else
16248                                 ac_cv_decl_EOVERFLOW=E2BIG
16249       fi
16250     fi
16251
16252 fi
16253 { $as_echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
16254 $as_echo "$ac_cv_decl_EOVERFLOW" >&6; }
16255   if test "$ac_cv_decl_EOVERFLOW" != yes; then
16256
16257 cat >>confdefs.h <<_ACEOF
16258 #define EOVERFLOW $ac_cv_decl_EOVERFLOW
16259 _ACEOF
16260
16261     EOVERFLOW="$ac_cv_decl_EOVERFLOW"
16262
16263   fi
16264
16265
16266
16267
16268   { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
16269 $as_echo_n "checking for wchar_t... " >&6; }
16270 if test "${gt_cv_c_wchar_t+set}" = set; then
16271   $as_echo_n "(cached) " >&6
16272 else
16273   cat >conftest.$ac_ext <<_ACEOF
16274 /* confdefs.h.  */
16275 _ACEOF
16276 cat confdefs.h >>conftest.$ac_ext
16277 cat >>conftest.$ac_ext <<_ACEOF
16278 /* end confdefs.h.  */
16279 #include <stddef.h>
16280        wchar_t foo = (wchar_t)'\0';
16281 int
16282 main ()
16283 {
16284
16285   ;
16286   return 0;
16287 }
16288 _ACEOF
16289 rm -f conftest.$ac_objext
16290 if { (ac_try="$ac_compile"
16291 case "(($ac_try" in
16292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16293   *) ac_try_echo=$ac_try;;
16294 esac
16295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16296 $as_echo "$ac_try_echo") >&5
16297   (eval "$ac_compile") 2>conftest.er1
16298   ac_status=$?
16299   grep -v '^ *+' conftest.er1 >conftest.err
16300   rm -f conftest.er1
16301   cat conftest.err >&5
16302   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303   (exit $ac_status); } && {
16304          test -z "$ac_c_werror_flag" ||
16305          test ! -s conftest.err
16306        } && test -s conftest.$ac_objext; then
16307   gt_cv_c_wchar_t=yes
16308 else
16309   $as_echo "$as_me: failed program was:" >&5
16310 sed 's/^/| /' conftest.$ac_ext >&5
16311
16312         gt_cv_c_wchar_t=no
16313 fi
16314
16315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16316 fi
16317 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
16318 $as_echo "$gt_cv_c_wchar_t" >&6; }
16319   if test $gt_cv_c_wchar_t = yes; then
16320
16321 cat >>confdefs.h <<\_ACEOF
16322 #define HAVE_WCHAR_T 1
16323 _ACEOF
16324
16325   fi
16326
16327
16328   { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
16329 $as_echo_n "checking for wint_t... " >&6; }
16330 if test "${gt_cv_c_wint_t+set}" = set; then
16331   $as_echo_n "(cached) " >&6
16332 else
16333   cat >conftest.$ac_ext <<_ACEOF
16334 /* confdefs.h.  */
16335 _ACEOF
16336 cat confdefs.h >>conftest.$ac_ext
16337 cat >>conftest.$ac_ext <<_ACEOF
16338 /* end confdefs.h.  */
16339
16340 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16341    <wchar.h>.
16342    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
16343    before <wchar.h>.  */
16344 #include <stddef.h>
16345 #include <stdio.h>
16346 #include <time.h>
16347 #include <wchar.h>
16348        wint_t foo = (wchar_t)'\0';
16349 int
16350 main ()
16351 {
16352
16353   ;
16354   return 0;
16355 }
16356 _ACEOF
16357 rm -f conftest.$ac_objext
16358 if { (ac_try="$ac_compile"
16359 case "(($ac_try" in
16360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361   *) ac_try_echo=$ac_try;;
16362 esac
16363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16364 $as_echo "$ac_try_echo") >&5
16365   (eval "$ac_compile") 2>conftest.er1
16366   ac_status=$?
16367   grep -v '^ *+' conftest.er1 >conftest.err
16368   rm -f conftest.er1
16369   cat conftest.err >&5
16370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371   (exit $ac_status); } && {
16372          test -z "$ac_c_werror_flag" ||
16373          test ! -s conftest.err
16374        } && test -s conftest.$ac_objext; then
16375   gt_cv_c_wint_t=yes
16376 else
16377   $as_echo "$as_me: failed program was:" >&5
16378 sed 's/^/| /' conftest.$ac_ext >&5
16379
16380         gt_cv_c_wint_t=no
16381 fi
16382
16383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16384 fi
16385 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
16386 $as_echo "$gt_cv_c_wint_t" >&6; }
16387   if test $gt_cv_c_wint_t = yes; then
16388
16389 cat >>confdefs.h <<\_ACEOF
16390 #define HAVE_WINT_T 1
16391 _ACEOF
16392
16393   fi
16394
16395
16396   { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
16397 $as_echo_n "checking for inttypes.h... " >&6; }
16398 if test "${gl_cv_header_inttypes_h+set}" = set; then
16399   $as_echo_n "(cached) " >&6
16400 else
16401   cat >conftest.$ac_ext <<_ACEOF
16402 /* confdefs.h.  */
16403 _ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h.  */
16407 #include <sys/types.h>
16408 #include <inttypes.h>
16409 int
16410 main ()
16411 {
16412 uintmax_t i = (uintmax_t) -1; return !i;
16413   ;
16414   return 0;
16415 }
16416 _ACEOF
16417 rm -f conftest.$ac_objext
16418 if { (ac_try="$ac_compile"
16419 case "(($ac_try" in
16420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421   *) ac_try_echo=$ac_try;;
16422 esac
16423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16424 $as_echo "$ac_try_echo") >&5
16425   (eval "$ac_compile") 2>conftest.er1
16426   ac_status=$?
16427   grep -v '^ *+' conftest.er1 >conftest.err
16428   rm -f conftest.er1
16429   cat conftest.err >&5
16430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431   (exit $ac_status); } && {
16432          test -z "$ac_c_werror_flag" ||
16433          test ! -s conftest.err
16434        } && test -s conftest.$ac_objext; then
16435   gl_cv_header_inttypes_h=yes
16436 else
16437   $as_echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16439
16440         gl_cv_header_inttypes_h=no
16441 fi
16442
16443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16444 fi
16445 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
16446 $as_echo "$gl_cv_header_inttypes_h" >&6; }
16447   if test $gl_cv_header_inttypes_h = yes; then
16448
16449 cat >>confdefs.h <<_ACEOF
16450 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
16451 _ACEOF
16452
16453   fi
16454
16455
16456   { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
16457 $as_echo_n "checking for stdint.h... " >&6; }
16458 if test "${gl_cv_header_stdint_h+set}" = set; then
16459   $as_echo_n "(cached) " >&6
16460 else
16461   cat >conftest.$ac_ext <<_ACEOF
16462 /* confdefs.h.  */
16463 _ACEOF
16464 cat confdefs.h >>conftest.$ac_ext
16465 cat >>conftest.$ac_ext <<_ACEOF
16466 /* end confdefs.h.  */
16467 #include <sys/types.h>
16468 #include <stdint.h>
16469 int
16470 main ()
16471 {
16472 uintmax_t i = (uintmax_t) -1; return !i;
16473   ;
16474   return 0;
16475 }
16476 _ACEOF
16477 rm -f conftest.$ac_objext
16478 if { (ac_try="$ac_compile"
16479 case "(($ac_try" in
16480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481   *) ac_try_echo=$ac_try;;
16482 esac
16483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16484 $as_echo "$ac_try_echo") >&5
16485   (eval "$ac_compile") 2>conftest.er1
16486   ac_status=$?
16487   grep -v '^ *+' conftest.er1 >conftest.err
16488   rm -f conftest.er1
16489   cat conftest.err >&5
16490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491   (exit $ac_status); } && {
16492          test -z "$ac_c_werror_flag" ||
16493          test ! -s conftest.err
16494        } && test -s conftest.$ac_objext; then
16495   gl_cv_header_stdint_h=yes
16496 else
16497   $as_echo "$as_me: failed program was:" >&5
16498 sed 's/^/| /' conftest.$ac_ext >&5
16499
16500         gl_cv_header_stdint_h=no
16501 fi
16502
16503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16504 fi
16505 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
16506 $as_echo "$gl_cv_header_stdint_h" >&6; }
16507   if test $gl_cv_header_stdint_h = yes; then
16508
16509 cat >>confdefs.h <<_ACEOF
16510 #define HAVE_STDINT_H_WITH_UINTMAX 1
16511 _ACEOF
16512
16513   fi
16514
16515
16516
16517   ac_cv_type_long_long=$ac_cv_type_long_long_int
16518   if test $ac_cv_type_long_long = yes; then
16519
16520 cat >>confdefs.h <<\_ACEOF
16521 #define HAVE_LONG_LONG 1
16522 _ACEOF
16523
16524   fi
16525
16526
16527
16528
16529   { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
16530 $as_echo_n "checking for intmax_t... " >&6; }
16531 if test "${gt_cv_c_intmax_t+set}" = set; then
16532   $as_echo_n "(cached) " >&6
16533 else
16534   cat >conftest.$ac_ext <<_ACEOF
16535 /* confdefs.h.  */
16536 _ACEOF
16537 cat confdefs.h >>conftest.$ac_ext
16538 cat >>conftest.$ac_ext <<_ACEOF
16539 /* end confdefs.h.  */
16540
16541 #include <stddef.h>
16542 #include <stdlib.h>
16543 #if HAVE_STDINT_H_WITH_UINTMAX
16544 #include <stdint.h>
16545 #endif
16546 #if HAVE_INTTYPES_H_WITH_UINTMAX
16547 #include <inttypes.h>
16548 #endif
16549
16550 int
16551 main ()
16552 {
16553 intmax_t x = -1; return !x;
16554   ;
16555   return 0;
16556 }
16557 _ACEOF
16558 rm -f conftest.$ac_objext
16559 if { (ac_try="$ac_compile"
16560 case "(($ac_try" in
16561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16562   *) ac_try_echo=$ac_try;;
16563 esac
16564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16565 $as_echo "$ac_try_echo") >&5
16566   (eval "$ac_compile") 2>conftest.er1
16567   ac_status=$?
16568   grep -v '^ *+' conftest.er1 >conftest.err
16569   rm -f conftest.er1
16570   cat conftest.err >&5
16571   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572   (exit $ac_status); } && {
16573          test -z "$ac_c_werror_flag" ||
16574          test ! -s conftest.err
16575        } && test -s conftest.$ac_objext; then
16576   gt_cv_c_intmax_t=yes
16577 else
16578   $as_echo "$as_me: failed program was:" >&5
16579 sed 's/^/| /' conftest.$ac_ext >&5
16580
16581         gt_cv_c_intmax_t=no
16582 fi
16583
16584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16585 fi
16586 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
16587 $as_echo "$gt_cv_c_intmax_t" >&6; }
16588   if test $gt_cv_c_intmax_t = yes; then
16589
16590 cat >>confdefs.h <<\_ACEOF
16591 #define HAVE_INTMAX_T 1
16592 _ACEOF
16593
16594   else
16595
16596     test $ac_cv_type_long_long = yes \
16597       && ac_type='long long' \
16598       || ac_type='long'
16599
16600 cat >>confdefs.h <<_ACEOF
16601 #define intmax_t $ac_type
16602 _ACEOF
16603
16604   fi
16605
16606
16607
16608
16609
16610 { $as_echo "$as_me:$LINENO: checking POSIX termios" >&5
16611 $as_echo_n "checking POSIX termios... " >&6; }
16612 if test "${ac_cv_sys_posix_termios+set}" = set; then
16613   $as_echo_n "(cached) " >&6
16614 else
16615   cat >conftest.$ac_ext <<_ACEOF
16616 /* confdefs.h.  */
16617 _ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h.  */
16621 #include <sys/types.h>
16622 #include <unistd.h>
16623 #include <termios.h>
16624
16625 int
16626 main ()
16627 {
16628 /* SunOS 4.0.3 has termios.h but not the library calls.  */
16629    tcgetattr(0, 0);
16630   ;
16631   return 0;
16632 }
16633 _ACEOF
16634 rm -f conftest.$ac_objext conftest$ac_exeext
16635 if { (ac_try="$ac_link"
16636 case "(($ac_try" in
16637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16638   *) ac_try_echo=$ac_try;;
16639 esac
16640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16641 $as_echo "$ac_try_echo") >&5
16642   (eval "$ac_link") 2>conftest.er1
16643   ac_status=$?
16644   grep -v '^ *+' conftest.er1 >conftest.err
16645   rm -f conftest.er1
16646   cat conftest.err >&5
16647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648   (exit $ac_status); } && {
16649          test -z "$ac_c_werror_flag" ||
16650          test ! -s conftest.err
16651        } && test -s conftest$ac_exeext &&
16652        $as_test_x conftest$ac_exeext; then
16653   ac_cv_sys_posix_termios=yes
16654 else
16655   $as_echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16657
16658         ac_cv_sys_posix_termios=no
16659 fi
16660
16661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16662       conftest$ac_exeext conftest.$ac_ext
16663 fi
16664 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
16665 $as_echo "$ac_cv_sys_posix_termios" >&6; }
16666
16667
16668  { $as_echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
16669 $as_echo_n "checking whether use of TIOCGWINSZ requires termios.h... " >&6; }
16670 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
16671   $as_echo_n "(cached) " >&6
16672 else
16673   jm_cv_sys_tiocgwinsz_needs_termios_h=no
16674
16675    if test $ac_cv_sys_posix_termios = yes; then
16676      cat >conftest.$ac_ext <<_ACEOF
16677 /* confdefs.h.  */
16678 _ACEOF
16679 cat confdefs.h >>conftest.$ac_ext
16680 cat >>conftest.$ac_ext <<_ACEOF
16681 /* end confdefs.h.  */
16682 #include <sys/types.h>
16683 #      include <termios.h>
16684 #      ifdef TIOCGWINSZ
16685          yes
16686 #      endif
16687
16688 _ACEOF
16689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16690   $EGREP "yes" >/dev/null 2>&1; then
16691   jm_cv_sys_tiocgwinsz_needs_termios_h=yes
16692 fi
16693 rm -f conftest*
16694
16695    fi
16696
16697 fi
16698 { $as_echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
16699 $as_echo "$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6; }
16700
16701
16702
16703
16704
16705    if false; then
16706   GL_COND_LIBTOOL_TRUE=
16707   GL_COND_LIBTOOL_FALSE='#'
16708 else
16709   GL_COND_LIBTOOL_TRUE='#'
16710   GL_COND_LIBTOOL_FALSE=
16711 fi
16712
16713   gl_cond_libtool=false
16714   gl_libdeps=
16715   gl_ltlibdeps=
16716   gl_source_base='lib'
16717
16718   gl_LIBOBJS="$gl_LIBOBJS acl.$ac_objext"
16719   gl_LIBOBJS="$gl_LIBOBJS file-has-acl.$ac_objext"
16720
16721
16722 for ac_header in sys/acl.h
16723 do
16724 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16726   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16727 $as_echo_n "checking for $ac_header... " >&6; }
16728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16729   $as_echo_n "(cached) " >&6
16730 fi
16731 ac_res=`eval 'as_val=${'$as_ac_Header'}
16732                  $as_echo "$as_val"'`
16733                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16734 $as_echo "$ac_res" >&6; }
16735 else
16736   # Is the header compilable?
16737 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16738 $as_echo_n "checking $ac_header usability... " >&6; }
16739 cat >conftest.$ac_ext <<_ACEOF
16740 /* confdefs.h.  */
16741 _ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h.  */
16745 $ac_includes_default
16746 #include <$ac_header>
16747 _ACEOF
16748 rm -f conftest.$ac_objext
16749 if { (ac_try="$ac_compile"
16750 case "(($ac_try" in
16751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16752   *) ac_try_echo=$ac_try;;
16753 esac
16754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16755 $as_echo "$ac_try_echo") >&5
16756   (eval "$ac_compile") 2>conftest.er1
16757   ac_status=$?
16758   grep -v '^ *+' conftest.er1 >conftest.err
16759   rm -f conftest.er1
16760   cat conftest.err >&5
16761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762   (exit $ac_status); } && {
16763          test -z "$ac_c_werror_flag" ||
16764          test ! -s conftest.err
16765        } && test -s conftest.$ac_objext; then
16766   ac_header_compiler=yes
16767 else
16768   $as_echo "$as_me: failed program was:" >&5
16769 sed 's/^/| /' conftest.$ac_ext >&5
16770
16771         ac_header_compiler=no
16772 fi
16773
16774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16775 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16776 $as_echo "$ac_header_compiler" >&6; }
16777
16778 # Is the header present?
16779 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16780 $as_echo_n "checking $ac_header presence... " >&6; }
16781 cat >conftest.$ac_ext <<_ACEOF
16782 /* confdefs.h.  */
16783 _ACEOF
16784 cat confdefs.h >>conftest.$ac_ext
16785 cat >>conftest.$ac_ext <<_ACEOF
16786 /* end confdefs.h.  */
16787 #include <$ac_header>
16788 _ACEOF
16789 if { (ac_try="$ac_cpp conftest.$ac_ext"
16790 case "(($ac_try" in
16791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16792   *) ac_try_echo=$ac_try;;
16793 esac
16794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16795 $as_echo "$ac_try_echo") >&5
16796   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16797   ac_status=$?
16798   grep -v '^ *+' conftest.er1 >conftest.err
16799   rm -f conftest.er1
16800   cat conftest.err >&5
16801   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802   (exit $ac_status); } >/dev/null && {
16803          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16804          test ! -s conftest.err
16805        }; then
16806   ac_header_preproc=yes
16807 else
16808   $as_echo "$as_me: failed program was:" >&5
16809 sed 's/^/| /' conftest.$ac_ext >&5
16810
16811   ac_header_preproc=no
16812 fi
16813
16814 rm -f conftest.err conftest.$ac_ext
16815 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16816 $as_echo "$ac_header_preproc" >&6; }
16817
16818 # So?  What about this header?
16819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16820   yes:no: )
16821     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16822 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16823     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16824 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16825     ac_header_preproc=yes
16826     ;;
16827   no:yes:* )
16828     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16829 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16830     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16831 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16832     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16833 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16834     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16835 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16836     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16837 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16838     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16839 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16840     ( cat <<\_ASBOX
16841 ## ------------------------------------ ##
16842 ## Report this to bug-coreutils@gnu.org ##
16843 ## ------------------------------------ ##
16844 _ASBOX
16845      ) | sed "s/^/$as_me: WARNING:     /" >&2
16846     ;;
16847 esac
16848 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16849 $as_echo_n "checking for $ac_header... " >&6; }
16850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16851   $as_echo_n "(cached) " >&6
16852 else
16853   eval "$as_ac_Header=\$ac_header_preproc"
16854 fi
16855 ac_res=`eval 'as_val=${'$as_ac_Header'}
16856                  $as_echo "$as_val"'`
16857                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16858 $as_echo "$ac_res" >&6; }
16859
16860 fi
16861 if test `eval 'as_val=${'$as_ac_Header'}
16862                  $as_echo "$as_val"'` = yes; then
16863   cat >>confdefs.h <<_ACEOF
16864 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16865 _ACEOF
16866
16867 fi
16868
16869 done
16870
16871
16872 for ac_func in acl
16873 do
16874 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16875 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16876 $as_echo_n "checking for $ac_func... " >&6; }
16877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16878   $as_echo_n "(cached) " >&6
16879 else
16880   cat >conftest.$ac_ext <<_ACEOF
16881 /* confdefs.h.  */
16882 _ACEOF
16883 cat confdefs.h >>conftest.$ac_ext
16884 cat >>conftest.$ac_ext <<_ACEOF
16885 /* end confdefs.h.  */
16886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16887    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16888 #define $ac_func innocuous_$ac_func
16889
16890 /* System header to define __stub macros and hopefully few prototypes,
16891     which can conflict with char $ac_func (); below.
16892     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16893     <limits.h> exists even on freestanding compilers.  */
16894
16895 #ifdef __STDC__
16896 # include <limits.h>
16897 #else
16898 # include <assert.h>
16899 #endif
16900
16901 #undef $ac_func
16902
16903 /* Override any GCC internal prototype to avoid an error.
16904    Use char because int might match the return type of a GCC
16905    builtin and then its argument prototype would still apply.  */
16906 #ifdef __cplusplus
16907 extern "C"
16908 #endif
16909 char $ac_func ();
16910 /* The GNU C library defines this for functions which it implements
16911     to always fail with ENOSYS.  Some functions are actually named
16912     something starting with __ and the normal name is an alias.  */
16913 #if defined __stub_$ac_func || defined __stub___$ac_func
16914 choke me
16915 #endif
16916
16917 int
16918 main ()
16919 {
16920 return $ac_func ();
16921   ;
16922   return 0;
16923 }
16924 _ACEOF
16925 rm -f conftest.$ac_objext conftest$ac_exeext
16926 if { (ac_try="$ac_link"
16927 case "(($ac_try" in
16928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16929   *) ac_try_echo=$ac_try;;
16930 esac
16931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16932 $as_echo "$ac_try_echo") >&5
16933   (eval "$ac_link") 2>conftest.er1
16934   ac_status=$?
16935   grep -v '^ *+' conftest.er1 >conftest.err
16936   rm -f conftest.er1
16937   cat conftest.err >&5
16938   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939   (exit $ac_status); } && {
16940          test -z "$ac_c_werror_flag" ||
16941          test ! -s conftest.err
16942        } && test -s conftest$ac_exeext &&
16943        $as_test_x conftest$ac_exeext; then
16944   eval "$as_ac_var=yes"
16945 else
16946   $as_echo "$as_me: failed program was:" >&5
16947 sed 's/^/| /' conftest.$ac_ext >&5
16948
16949         eval "$as_ac_var=no"
16950 fi
16951
16952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16953       conftest$ac_exeext conftest.$ac_ext
16954 fi
16955 ac_res=`eval 'as_val=${'$as_ac_var'}
16956                  $as_echo "$as_val"'`
16957                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16958 $as_echo "$ac_res" >&6; }
16959 if test `eval 'as_val=${'$as_ac_var'}
16960                  $as_echo "$as_val"'` = yes; then
16961   cat >>confdefs.h <<_ACEOF
16962 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16963 _ACEOF
16964
16965 fi
16966 done
16967
16968   ac_save_LIBS="$LIBS"
16969     { $as_echo "$as_me:$LINENO: checking for library containing acl_get_file" >&5
16970 $as_echo_n "checking for library containing acl_get_file... " >&6; }
16971 if test "${ac_cv_search_acl_get_file+set}" = set; then
16972   $as_echo_n "(cached) " >&6
16973 else
16974   ac_func_search_save_LIBS=$LIBS
16975 cat >conftest.$ac_ext <<_ACEOF
16976 /* confdefs.h.  */
16977 _ACEOF
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h.  */
16981
16982 /* Override any GCC internal prototype to avoid an error.
16983    Use char because int might match the return type of a GCC
16984    builtin and then its argument prototype would still apply.  */
16985 #ifdef __cplusplus
16986 extern "C"
16987 #endif
16988 char acl_get_file ();
16989 int
16990 main ()
16991 {
16992 return acl_get_file ();
16993   ;
16994   return 0;
16995 }
16996 _ACEOF
16997 for ac_lib in '' acl; do
16998   if test -z "$ac_lib"; then
16999     ac_res="none required"
17000   else
17001     ac_res=-l$ac_lib
17002     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17003   fi
17004   rm -f conftest.$ac_objext conftest$ac_exeext
17005 if { (ac_try="$ac_link"
17006 case "(($ac_try" in
17007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008   *) ac_try_echo=$ac_try;;
17009 esac
17010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17011 $as_echo "$ac_try_echo") >&5
17012   (eval "$ac_link") 2>conftest.er1
17013   ac_status=$?
17014   grep -v '^ *+' conftest.er1 >conftest.err
17015   rm -f conftest.er1
17016   cat conftest.err >&5
17017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018   (exit $ac_status); } && {
17019          test -z "$ac_c_werror_flag" ||
17020          test ! -s conftest.err
17021        } && test -s conftest$ac_exeext &&
17022        $as_test_x conftest$ac_exeext; then
17023   ac_cv_search_acl_get_file=$ac_res
17024 else
17025   $as_echo "$as_me: failed program was:" >&5
17026 sed 's/^/| /' conftest.$ac_ext >&5
17027
17028
17029 fi
17030
17031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17032       conftest$ac_exeext
17033   if test "${ac_cv_search_acl_get_file+set}" = set; then
17034   break
17035 fi
17036 done
17037 if test "${ac_cv_search_acl_get_file+set}" = set; then
17038   :
17039 else
17040   ac_cv_search_acl_get_file=no
17041 fi
17042 rm conftest.$ac_ext
17043 LIBS=$ac_func_search_save_LIBS
17044 fi
17045 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_acl_get_file" >&5
17046 $as_echo "$ac_cv_search_acl_get_file" >&6; }
17047 ac_res=$ac_cv_search_acl_get_file
17048 if test "$ac_res" != no; then
17049   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17050   test "$ac_cv_search_acl_get_file" = "none required" ||
17051                     LIB_ACL=$ac_cv_search_acl_get_file
17052 fi
17053
17054
17055
17056 for ac_header in acl/libacl.h
17057 do
17058 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17060   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17061 $as_echo_n "checking for $ac_header... " >&6; }
17062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17063   $as_echo_n "(cached) " >&6
17064 fi
17065 ac_res=`eval 'as_val=${'$as_ac_Header'}
17066                  $as_echo "$as_val"'`
17067                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17068 $as_echo "$ac_res" >&6; }
17069 else
17070   # Is the header compilable?
17071 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17072 $as_echo_n "checking $ac_header usability... " >&6; }
17073 cat >conftest.$ac_ext <<_ACEOF
17074 /* confdefs.h.  */
17075 _ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h.  */
17079 $ac_includes_default
17080 #include <$ac_header>
17081 _ACEOF
17082 rm -f conftest.$ac_objext
17083 if { (ac_try="$ac_compile"
17084 case "(($ac_try" in
17085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086   *) ac_try_echo=$ac_try;;
17087 esac
17088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17089 $as_echo "$ac_try_echo") >&5
17090   (eval "$ac_compile") 2>conftest.er1
17091   ac_status=$?
17092   grep -v '^ *+' conftest.er1 >conftest.err
17093   rm -f conftest.er1
17094   cat conftest.err >&5
17095   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096   (exit $ac_status); } && {
17097          test -z "$ac_c_werror_flag" ||
17098          test ! -s conftest.err
17099        } && test -s conftest.$ac_objext; then
17100   ac_header_compiler=yes
17101 else
17102   $as_echo "$as_me: failed program was:" >&5
17103 sed 's/^/| /' conftest.$ac_ext >&5
17104
17105         ac_header_compiler=no
17106 fi
17107
17108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17109 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17110 $as_echo "$ac_header_compiler" >&6; }
17111
17112 # Is the header present?
17113 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17114 $as_echo_n "checking $ac_header presence... " >&6; }
17115 cat >conftest.$ac_ext <<_ACEOF
17116 /* confdefs.h.  */
17117 _ACEOF
17118 cat confdefs.h >>conftest.$ac_ext
17119 cat >>conftest.$ac_ext <<_ACEOF
17120 /* end confdefs.h.  */
17121 #include <$ac_header>
17122 _ACEOF
17123 if { (ac_try="$ac_cpp conftest.$ac_ext"
17124 case "(($ac_try" in
17125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126   *) ac_try_echo=$ac_try;;
17127 esac
17128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17129 $as_echo "$ac_try_echo") >&5
17130   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17131   ac_status=$?
17132   grep -v '^ *+' conftest.er1 >conftest.err
17133   rm -f conftest.er1
17134   cat conftest.err >&5
17135   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136   (exit $ac_status); } >/dev/null && {
17137          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17138          test ! -s conftest.err
17139        }; then
17140   ac_header_preproc=yes
17141 else
17142   $as_echo "$as_me: failed program was:" >&5
17143 sed 's/^/| /' conftest.$ac_ext >&5
17144
17145   ac_header_preproc=no
17146 fi
17147
17148 rm -f conftest.err conftest.$ac_ext
17149 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17150 $as_echo "$ac_header_preproc" >&6; }
17151
17152 # So?  What about this header?
17153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17154   yes:no: )
17155     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17156 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17157     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17158 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17159     ac_header_preproc=yes
17160     ;;
17161   no:yes:* )
17162     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17163 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17164     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17165 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17166     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17167 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17168     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17169 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17170     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17171 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17172     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17173 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17174     ( cat <<\_ASBOX
17175 ## ------------------------------------ ##
17176 ## Report this to bug-coreutils@gnu.org ##
17177 ## ------------------------------------ ##
17178 _ASBOX
17179      ) | sed "s/^/$as_me: WARNING:     /" >&2
17180     ;;
17181 esac
17182 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17183 $as_echo_n "checking for $ac_header... " >&6; }
17184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17185   $as_echo_n "(cached) " >&6
17186 else
17187   eval "$as_ac_Header=\$ac_header_preproc"
17188 fi
17189 ac_res=`eval 'as_val=${'$as_ac_Header'}
17190                  $as_echo "$as_val"'`
17191                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17192 $as_echo "$ac_res" >&6; }
17193
17194 fi
17195 if test `eval 'as_val=${'$as_ac_Header'}
17196                  $as_echo "$as_val"'` = yes; then
17197   cat >>confdefs.h <<_ACEOF
17198 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17199 _ACEOF
17200
17201 fi
17202
17203 done
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214 for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \
17215                    acl_free acl_from_mode acl_from_text \
17216                    acl_delete_def_file acl_extended_file
17217 do
17218 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17219 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17220 $as_echo_n "checking for $ac_func... " >&6; }
17221 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17222   $as_echo_n "(cached) " >&6
17223 else
17224   cat >conftest.$ac_ext <<_ACEOF
17225 /* confdefs.h.  */
17226 _ACEOF
17227 cat confdefs.h >>conftest.$ac_ext
17228 cat >>conftest.$ac_ext <<_ACEOF
17229 /* end confdefs.h.  */
17230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17231    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17232 #define $ac_func innocuous_$ac_func
17233
17234 /* System header to define __stub macros and hopefully few prototypes,
17235     which can conflict with char $ac_func (); below.
17236     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17237     <limits.h> exists even on freestanding compilers.  */
17238
17239 #ifdef __STDC__
17240 # include <limits.h>
17241 #else
17242 # include <assert.h>
17243 #endif
17244
17245 #undef $ac_func
17246
17247 /* Override any GCC internal prototype to avoid an error.
17248    Use char because int might match the return type of a GCC
17249    builtin and then its argument prototype would still apply.  */
17250 #ifdef __cplusplus
17251 extern "C"
17252 #endif
17253 char $ac_func ();
17254 /* The GNU C library defines this for functions which it implements
17255     to always fail with ENOSYS.  Some functions are actually named
17256     something starting with __ and the normal name is an alias.  */
17257 #if defined __stub_$ac_func || defined __stub___$ac_func
17258 choke me
17259 #endif
17260
17261 int
17262 main ()
17263 {
17264 return $ac_func ();
17265   ;
17266   return 0;
17267 }
17268 _ACEOF
17269 rm -f conftest.$ac_objext conftest$ac_exeext
17270 if { (ac_try="$ac_link"
17271 case "(($ac_try" in
17272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273   *) ac_try_echo=$ac_try;;
17274 esac
17275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17276 $as_echo "$ac_try_echo") >&5
17277   (eval "$ac_link") 2>conftest.er1
17278   ac_status=$?
17279   grep -v '^ *+' conftest.er1 >conftest.err
17280   rm -f conftest.er1
17281   cat conftest.err >&5
17282   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283   (exit $ac_status); } && {
17284          test -z "$ac_c_werror_flag" ||
17285          test ! -s conftest.err
17286        } && test -s conftest$ac_exeext &&
17287        $as_test_x conftest$ac_exeext; then
17288   eval "$as_ac_var=yes"
17289 else
17290   $as_echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17292
17293         eval "$as_ac_var=no"
17294 fi
17295
17296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17297       conftest$ac_exeext conftest.$ac_ext
17298 fi
17299 ac_res=`eval 'as_val=${'$as_ac_var'}
17300                  $as_echo "$as_val"'`
17301                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17302 $as_echo "$ac_res" >&6; }
17303 if test `eval 'as_val=${'$as_ac_var'}
17304                  $as_echo "$as_val"'` = yes; then
17305   cat >>confdefs.h <<_ACEOF
17306 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17307 _ACEOF
17308
17309 fi
17310 done
17311
17312     if test $ac_cv_header_sys_acl_h = yes; then
17313       use_acl=1
17314       if test $ac_cv_func_acl_get_file = yes; then
17315         # If we detect the acl_get_file bug, disable ACL support altogether.
17316
17317   { $as_echo "$as_me:$LINENO: checking for working acl_get_file" >&5
17318 $as_echo_n "checking for working acl_get_file... " >&6; }
17319 if test "${gl_cv_func_working_acl_get_file+set}" = set; then
17320   $as_echo_n "(cached) " >&6
17321 else
17322   if test "$cross_compiling" = yes; then
17323   gl_cv_func_working_acl_get_file=cross-compiling
17324 else
17325   cat >conftest.$ac_ext <<_ACEOF
17326 /* confdefs.h.  */
17327 _ACEOF
17328 cat confdefs.h >>conftest.$ac_ext
17329 cat >>conftest.$ac_ext <<_ACEOF
17330 /* end confdefs.h.  */
17331 #include <sys/types.h>
17332            #include <sys/acl.h>
17333            #include <errno.h>
17334
17335 int
17336 main ()
17337 {
17338 return !! (!acl_get_file (".", ACL_TYPE_ACCESS)
17339                        && errno == ENOENT);
17340   ;
17341   return 0;
17342 }
17343 _ACEOF
17344 rm -f conftest$ac_exeext
17345 if { (ac_try="$ac_link"
17346 case "(($ac_try" in
17347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17348   *) ac_try_echo=$ac_try;;
17349 esac
17350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17351 $as_echo "$ac_try_echo") >&5
17352   (eval "$ac_link") 2>&5
17353   ac_status=$?
17354   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17356   { (case "(($ac_try" in
17357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17358   *) ac_try_echo=$ac_try;;
17359 esac
17360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17361 $as_echo "$ac_try_echo") >&5
17362   (eval "$ac_try") 2>&5
17363   ac_status=$?
17364   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365   (exit $ac_status); }; }; then
17366   gl_cv_func_working_acl_get_file=yes
17367 else
17368   $as_echo "$as_me: program exited with status $ac_status" >&5
17369 $as_echo "$as_me: failed program was:" >&5
17370 sed 's/^/| /' conftest.$ac_ext >&5
17371
17372 ( exit $ac_status )
17373 gl_cv_func_working_acl_get_file=no
17374 fi
17375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17376 fi
17377
17378
17379 fi
17380 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_acl_get_file" >&5
17381 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
17382
17383   if test $gl_cv_func_working_acl_get_file = yes; then
17384   :
17385 else
17386   use_acl=0
17387 fi
17388
17389
17390       fi
17391     else
17392       use_acl=0
17393     fi
17394     if test $use_acl = 1 &&
17395        test $ac_cv_func_acl_get_file = yes &&
17396        test $ac_cv_func_acl_free = yes; then
17397
17398 for ac_func in acl_entries
17399 do
17400 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17401 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17402 $as_echo_n "checking for $ac_func... " >&6; }
17403 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17404   $as_echo_n "(cached) " >&6
17405 else
17406   cat >conftest.$ac_ext <<_ACEOF
17407 /* confdefs.h.  */
17408 _ACEOF
17409 cat confdefs.h >>conftest.$ac_ext
17410 cat >>conftest.$ac_ext <<_ACEOF
17411 /* end confdefs.h.  */
17412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17413    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17414 #define $ac_func innocuous_$ac_func
17415
17416 /* System header to define __stub macros and hopefully few prototypes,
17417     which can conflict with char $ac_func (); below.
17418     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17419     <limits.h> exists even on freestanding compilers.  */
17420
17421 #ifdef __STDC__
17422 # include <limits.h>
17423 #else
17424 # include <assert.h>
17425 #endif
17426
17427 #undef $ac_func
17428
17429 /* Override any GCC internal prototype to avoid an error.
17430    Use char because int might match the return type of a GCC
17431    builtin and then its argument prototype would still apply.  */
17432 #ifdef __cplusplus
17433 extern "C"
17434 #endif
17435 char $ac_func ();
17436 /* The GNU C library defines this for functions which it implements
17437     to always fail with ENOSYS.  Some functions are actually named
17438     something starting with __ and the normal name is an alias.  */
17439 #if defined __stub_$ac_func || defined __stub___$ac_func
17440 choke me
17441 #endif
17442
17443 int
17444 main ()
17445 {
17446 return $ac_func ();
17447   ;
17448   return 0;
17449 }
17450 _ACEOF
17451 rm -f conftest.$ac_objext conftest$ac_exeext
17452 if { (ac_try="$ac_link"
17453 case "(($ac_try" in
17454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17455   *) ac_try_echo=$ac_try;;
17456 esac
17457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17458 $as_echo "$ac_try_echo") >&5
17459   (eval "$ac_link") 2>conftest.er1
17460   ac_status=$?
17461   grep -v '^ *+' conftest.er1 >conftest.err
17462   rm -f conftest.er1
17463   cat conftest.err >&5
17464   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465   (exit $ac_status); } && {
17466          test -z "$ac_c_werror_flag" ||
17467          test ! -s conftest.err
17468        } && test -s conftest$ac_exeext &&
17469        $as_test_x conftest$ac_exeext; then
17470   eval "$as_ac_var=yes"
17471 else
17472   $as_echo "$as_me: failed program was:" >&5
17473 sed 's/^/| /' conftest.$ac_ext >&5
17474
17475         eval "$as_ac_var=no"
17476 fi
17477
17478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17479       conftest$ac_exeext conftest.$ac_ext
17480 fi
17481 ac_res=`eval 'as_val=${'$as_ac_var'}
17482                  $as_echo "$as_val"'`
17483                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17484 $as_echo "$ac_res" >&6; }
17485 if test `eval 'as_val=${'$as_ac_var'}
17486                  $as_echo "$as_val"'` = yes; then
17487   cat >>confdefs.h <<_ACEOF
17488 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17489 _ACEOF
17490
17491 else
17492   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
17493 fi
17494 done
17495
17496     fi
17497   LIBS="$ac_save_LIBS"
17498   if test $use_acl = 1; then
17499     ac_save_LIBS="$LIBS"
17500     { $as_echo "$as_me:$LINENO: checking for library containing acl_trivial" >&5
17501 $as_echo_n "checking for library containing acl_trivial... " >&6; }
17502 if test "${ac_cv_search_acl_trivial+set}" = set; then
17503   $as_echo_n "(cached) " >&6
17504 else
17505   ac_func_search_save_LIBS=$LIBS
17506 cat >conftest.$ac_ext <<_ACEOF
17507 /* confdefs.h.  */
17508 _ACEOF
17509 cat confdefs.h >>conftest.$ac_ext
17510 cat >>conftest.$ac_ext <<_ACEOF
17511 /* end confdefs.h.  */
17512
17513 /* Override any GCC internal prototype to avoid an error.
17514    Use char because int might match the return type of a GCC
17515    builtin and then its argument prototype would still apply.  */
17516 #ifdef __cplusplus
17517 extern "C"
17518 #endif
17519 char acl_trivial ();
17520 int
17521 main ()
17522 {
17523 return acl_trivial ();
17524   ;
17525   return 0;
17526 }
17527 _ACEOF
17528 for ac_lib in '' sec; do
17529   if test -z "$ac_lib"; then
17530     ac_res="none required"
17531   else
17532     ac_res=-l$ac_lib
17533     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17534   fi
17535   rm -f conftest.$ac_objext conftest$ac_exeext
17536 if { (ac_try="$ac_link"
17537 case "(($ac_try" in
17538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539   *) ac_try_echo=$ac_try;;
17540 esac
17541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17542 $as_echo "$ac_try_echo") >&5
17543   (eval "$ac_link") 2>conftest.er1
17544   ac_status=$?
17545   grep -v '^ *+' conftest.er1 >conftest.err
17546   rm -f conftest.er1
17547   cat conftest.err >&5
17548   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549   (exit $ac_status); } && {
17550          test -z "$ac_c_werror_flag" ||
17551          test ! -s conftest.err
17552        } && test -s conftest$ac_exeext &&
17553        $as_test_x conftest$ac_exeext; then
17554   ac_cv_search_acl_trivial=$ac_res
17555 else
17556   $as_echo "$as_me: failed program was:" >&5
17557 sed 's/^/| /' conftest.$ac_ext >&5
17558
17559
17560 fi
17561
17562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17563       conftest$ac_exeext
17564   if test "${ac_cv_search_acl_trivial+set}" = set; then
17565   break
17566 fi
17567 done
17568 if test "${ac_cv_search_acl_trivial+set}" = set; then
17569   :
17570 else
17571   ac_cv_search_acl_trivial=no
17572 fi
17573 rm conftest.$ac_ext
17574 LIBS=$ac_func_search_save_LIBS
17575 fi
17576 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_acl_trivial" >&5
17577 $as_echo "$ac_cv_search_acl_trivial" >&6; }
17578 ac_res=$ac_cv_search_acl_trivial
17579 if test "$ac_res" != no; then
17580   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17581
17582 cat >>confdefs.h <<\_ACEOF
17583 #define HAVE_ACL_TRIVIAL 1
17584 _ACEOF
17585
17586        test "$ac_cv_search_acl_trivial" = "none required" ||
17587        LIB_ACL_TRIVIAL="$ac_cv_search_acl_trivial"
17588 fi
17589
17590
17591     LIBS="$ac_save_LIBS"
17592   fi
17593
17594 cat >>confdefs.h <<_ACEOF
17595 #define USE_ACL $use_acl
17596 _ACEOF
17597
17598
17599
17600
17601
17602
17603
17604   if test $ac_cv_func_alloca_works = no; then
17605     :
17606   fi
17607
17608   # Define an additional variable used in the Makefile substitution.
17609   if test $ac_cv_working_alloca_h = yes; then
17610     { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
17611 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
17612 if test "${gl_cv_rpl_alloca+set}" = set; then
17613   $as_echo_n "(cached) " >&6
17614 else
17615
17616       cat >conftest.$ac_ext <<_ACEOF
17617 /* confdefs.h.  */
17618 _ACEOF
17619 cat confdefs.h >>conftest.$ac_ext
17620 cat >>conftest.$ac_ext <<_ACEOF
17621 /* end confdefs.h.  */
17622
17623 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
17624         Need own alloca
17625 #endif
17626
17627 _ACEOF
17628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17629   $EGREP "Need own alloca" >/dev/null 2>&1; then
17630   gl_cv_rpl_alloca=yes
17631 else
17632   gl_cv_rpl_alloca=no
17633 fi
17634 rm -f conftest*
17635
17636
17637 fi
17638 { $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
17639 $as_echo "$gl_cv_rpl_alloca" >&6; }
17640     if test $gl_cv_rpl_alloca = yes; then
17641
17642 cat >>confdefs.h <<\_ACEOF
17643 #define HAVE_ALLOCA 1
17644 _ACEOF
17645
17646       ALLOCA_H=alloca.h
17647     else
17648                   ALLOCA_H=
17649     fi
17650   else
17651     ALLOCA_H=alloca.h
17652   fi
17653
17654
17655
17656 cat >>confdefs.h <<\_ACEOF
17657 #define HAVE_ALLOCA_H 1
17658 _ACEOF
17659
17660
17661
17662
17663
17664
17665
17666
17667   gl_LIBOBJS="$gl_LIBOBJS argmatch.$ac_objext"
17668
17669
17670
17671
17672
17673
17674
17675
17676   if test $ac_cv_header_arpa_inet_h = yes; then
17677     ARPA_INET_H=''
17678   else
17679     ARPA_INET_H='arpa/inet.h'
17680   fi
17681
17682
17683   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
17684 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
17685 if test -z "$MKDIR_P"; then
17686   if test "${ac_cv_path_mkdir+set}" = set; then
17687   $as_echo_n "(cached) " >&6
17688 else
17689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17690 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
17691 do
17692   IFS=$as_save_IFS
17693   test -z "$as_dir" && as_dir=.
17694   for ac_prog in mkdir gmkdir; do
17695          for ac_exec_ext in '' $ac_executable_extensions; do
17696            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
17697            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
17698              'mkdir (GNU coreutils) '* | \
17699              'mkdir (coreutils) '* | \
17700              'mkdir (fileutils) '4.1*)
17701                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
17702                break 3;;
17703            esac
17704          done
17705        done
17706 done
17707 IFS=$as_save_IFS
17708
17709 fi
17710
17711   if test "${ac_cv_path_mkdir+set}" = set; then
17712     MKDIR_P="$ac_cv_path_mkdir -p"
17713   else
17714     # As a last resort, use the slow shell script.  Don't cache a
17715     # value for MKDIR_P within a source directory, because that will
17716     # break other packages using the cache if that directory is
17717     # removed, or if the value is a relative name.
17718     test -d ./--version && rmdir ./--version
17719     MKDIR_P="$ac_install_sh -d"
17720   fi
17721 fi
17722 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
17723 $as_echo "$MKDIR_P" >&6; }
17724
17725
17726   { $as_echo "$as_me:$LINENO: checking whether to enable assertions" >&5
17727 $as_echo_n "checking whether to enable assertions... " >&6; }
17728   # Check whether --enable-assert was given.
17729 if test "${enable_assert+set}" = set; then
17730   enableval=$enable_assert;  { $as_echo "$as_me:$LINENO: result: no" >&5
17731 $as_echo "no" >&6; }
17732
17733 cat >>confdefs.h <<\_ACEOF
17734 #define NDEBUG 1
17735 _ACEOF
17736
17737 else
17738    { $as_echo "$as_me:$LINENO: result: yes" >&5
17739 $as_echo "yes" >&6; }
17740
17741 fi
17742
17743
17744
17745
17746 for ac_func in atexit
17747 do
17748 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17749 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17750 $as_echo_n "checking for $ac_func... " >&6; }
17751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17752   $as_echo_n "(cached) " >&6
17753 else
17754   cat >conftest.$ac_ext <<_ACEOF
17755 /* confdefs.h.  */
17756 _ACEOF
17757 cat confdefs.h >>conftest.$ac_ext
17758 cat >>conftest.$ac_ext <<_ACEOF
17759 /* end confdefs.h.  */
17760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17761    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17762 #define $ac_func innocuous_$ac_func
17763
17764 /* System header to define __stub macros and hopefully few prototypes,
17765     which can conflict with char $ac_func (); below.
17766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17767     <limits.h> exists even on freestanding compilers.  */
17768
17769 #ifdef __STDC__
17770 # include <limits.h>
17771 #else
17772 # include <assert.h>
17773 #endif
17774
17775 #undef $ac_func
17776
17777 /* Override any GCC internal prototype to avoid an error.
17778    Use char because int might match the return type of a GCC
17779    builtin and then its argument prototype would still apply.  */
17780 #ifdef __cplusplus
17781 extern "C"
17782 #endif
17783 char $ac_func ();
17784 /* The GNU C library defines this for functions which it implements
17785     to always fail with ENOSYS.  Some functions are actually named
17786     something starting with __ and the normal name is an alias.  */
17787 #if defined __stub_$ac_func || defined __stub___$ac_func
17788 choke me
17789 #endif
17790
17791 int
17792 main ()
17793 {
17794 return $ac_func ();
17795   ;
17796   return 0;
17797 }
17798 _ACEOF
17799 rm -f conftest.$ac_objext conftest$ac_exeext
17800 if { (ac_try="$ac_link"
17801 case "(($ac_try" in
17802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17803   *) ac_try_echo=$ac_try;;
17804 esac
17805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17806 $as_echo "$ac_try_echo") >&5
17807   (eval "$ac_link") 2>conftest.er1
17808   ac_status=$?
17809   grep -v '^ *+' conftest.er1 >conftest.err
17810   rm -f conftest.er1
17811   cat conftest.err >&5
17812   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813   (exit $ac_status); } && {
17814          test -z "$ac_c_werror_flag" ||
17815          test ! -s conftest.err
17816        } && test -s conftest$ac_exeext &&
17817        $as_test_x conftest$ac_exeext; then
17818   eval "$as_ac_var=yes"
17819 else
17820   $as_echo "$as_me: failed program was:" >&5
17821 sed 's/^/| /' conftest.$ac_ext >&5
17822
17823         eval "$as_ac_var=no"
17824 fi
17825
17826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17827       conftest$ac_exeext conftest.$ac_ext
17828 fi
17829 ac_res=`eval 'as_val=${'$as_ac_var'}
17830                  $as_echo "$as_val"'`
17831                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17832 $as_echo "$ac_res" >&6; }
17833 if test `eval 'as_val=${'$as_ac_var'}
17834                  $as_echo "$as_val"'` = yes; then
17835   cat >>confdefs.h <<_ACEOF
17836 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17837 _ACEOF
17838
17839 else
17840   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
17841 fi
17842 done
17843
17844   if test $ac_cv_func_atexit = no; then
17845
17846   :
17847
17848   fi
17849
17850
17851   gl_LIBOBJS="$gl_LIBOBJS backupfile.$ac_objext"
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870   gl_LIBOBJS="$gl_LIBOBJS c-strtod.$ac_objext"
17871
17872
17873   :
17874
17875
17876   gl_LIBOBJS="$gl_LIBOBJS c-strtold.$ac_objext"
17877
17878
17879
17880   :
17881
17882   { $as_echo "$as_me:$LINENO: checking for GNU libc compatible calloc" >&5
17883 $as_echo_n "checking for GNU libc compatible calloc... " >&6; }
17884 if test "${ac_cv_func_calloc_0_nonnull+set}" = set; then
17885   $as_echo_n "(cached) " >&6
17886 else
17887   if test "$cross_compiling" = yes; then
17888   ac_cv_func_calloc_0_nonnull=no
17889 else
17890   cat >conftest.$ac_ext <<_ACEOF
17891 /* confdefs.h.  */
17892 _ACEOF
17893 cat confdefs.h >>conftest.$ac_ext
17894 cat >>conftest.$ac_ext <<_ACEOF
17895 /* end confdefs.h.  */
17896 $ac_includes_default
17897 int
17898 main ()
17899 {
17900 exit (!calloc (0, 0) || calloc ((size_t) -1 / 8 + 1, 8));
17901   ;
17902   return 0;
17903 }
17904 _ACEOF
17905 rm -f conftest$ac_exeext
17906 if { (ac_try="$ac_link"
17907 case "(($ac_try" in
17908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909   *) ac_try_echo=$ac_try;;
17910 esac
17911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17912 $as_echo "$ac_try_echo") >&5
17913   (eval "$ac_link") 2>&5
17914   ac_status=$?
17915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17917   { (case "(($ac_try" in
17918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919   *) ac_try_echo=$ac_try;;
17920 esac
17921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17922 $as_echo "$ac_try_echo") >&5
17923   (eval "$ac_try") 2>&5
17924   ac_status=$?
17925   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926   (exit $ac_status); }; }; then
17927   ac_cv_func_calloc_0_nonnull=yes
17928 else
17929   $as_echo "$as_me: program exited with status $ac_status" >&5
17930 $as_echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17932
17933 ( exit $ac_status )
17934 ac_cv_func_calloc_0_nonnull=no
17935 fi
17936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17937 fi
17938
17939
17940 fi
17941 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_calloc_0_nonnull" >&5
17942 $as_echo "$ac_cv_func_calloc_0_nonnull" >&6; }
17943 if test $ac_cv_func_calloc_0_nonnull = yes; then
17944
17945 cat >>confdefs.h <<\_ACEOF
17946 #define HAVE_CALLOC 1
17947 _ACEOF
17948
17949 else
17950   cat >>confdefs.h <<\_ACEOF
17951 #define HAVE_CALLOC 0
17952 _ACEOF
17953
17954    gl_LIBOBJS="$gl_LIBOBJS calloc.$ac_objext"
17955
17956 cat >>confdefs.h <<\_ACEOF
17957 #define calloc rpl_calloc
17958 _ACEOF
17959
17960 fi
17961
17962
17963
17964
17965   gl_LIBOBJS="$gl_LIBOBJS canon-host.$ac_objext"
17966
17967   :
17968
17969
17970
17971     gl_LIBOBJS="$gl_LIBOBJS canonicalize.$ac_objext"
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994 cat >>confdefs.h <<\_ACEOF
17995 #define GNULIB_CANONICALIZE 1
17996 _ACEOF
17997
17998
17999
18000   { $as_echo "$as_me:$LINENO: checking whether this system has an arbitrary file name length limit" >&5
18001 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
18002 if test "${gl_cv_have_arbitrary_file_name_length_limit+set}" = set; then
18003   $as_echo_n "(cached) " >&6
18004 else
18005   cat >conftest.$ac_ext <<_ACEOF
18006 /* confdefs.h.  */
18007 _ACEOF
18008 cat confdefs.h >>conftest.$ac_ext
18009 cat >>conftest.$ac_ext <<_ACEOF
18010 /* end confdefs.h.  */
18011 #include <unistd.h>
18012 #include <limits.h>
18013 #if defined PATH_MAX || defined MAXPATHLEN
18014 have_arbitrary_file_name_length_limit
18015 #endif
18016 _ACEOF
18017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18018   $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then
18019   gl_cv_have_arbitrary_file_name_length_limit=yes
18020 else
18021   gl_cv_have_arbitrary_file_name_length_limit=no
18022 fi
18023 rm -f conftest*
18024
18025 fi
18026 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
18027 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
18028
18029   if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
18030     gl_LIBOBJS="$gl_LIBOBJS chdir-long.$ac_objext"
18031
18032   :
18033
18034   fi
18035
18036
18037
18038
18039
18040
18041
18042   if test $ac_cv_func_chown_works = no; then
18043
18044 cat >>confdefs.h <<\_ACEOF
18045 #define CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE 1
18046 _ACEOF
18047
18048   fi
18049
18050   # If chown has either of the above problems, then we need the wrapper.
18051   if test $ac_cv_func_chown_works$gl_cv_func_chown_follows_symlink = yesyes; then
18052     : # no wrapper needed
18053   else
18054     REPLACE_CHOWN=1
18055     gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
18056
18057   { $as_echo "$as_me:$LINENO: checking for fchown" >&5
18058 $as_echo_n "checking for fchown... " >&6; }
18059 if test "${ac_cv_func_fchown+set}" = set; then
18060   $as_echo_n "(cached) " >&6
18061 else
18062   cat >conftest.$ac_ext <<_ACEOF
18063 /* confdefs.h.  */
18064 _ACEOF
18065 cat confdefs.h >>conftest.$ac_ext
18066 cat >>conftest.$ac_ext <<_ACEOF
18067 /* end confdefs.h.  */
18068 /* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
18069    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18070 #define fchown innocuous_fchown
18071
18072 /* System header to define __stub macros and hopefully few prototypes,
18073     which can conflict with char fchown (); below.
18074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18075     <limits.h> exists even on freestanding compilers.  */
18076
18077 #ifdef __STDC__
18078 # include <limits.h>
18079 #else
18080 # include <assert.h>
18081 #endif
18082
18083 #undef fchown
18084
18085 /* Override any GCC internal prototype to avoid an error.
18086    Use char because int might match the return type of a GCC
18087    builtin and then its argument prototype would still apply.  */
18088 #ifdef __cplusplus
18089 extern "C"
18090 #endif
18091 char fchown ();
18092 /* The GNU C library defines this for functions which it implements
18093     to always fail with ENOSYS.  Some functions are actually named
18094     something starting with __ and the normal name is an alias.  */
18095 #if defined __stub_fchown || defined __stub___fchown
18096 choke me
18097 #endif
18098
18099 int
18100 main ()
18101 {
18102 return fchown ();
18103   ;
18104   return 0;
18105 }
18106 _ACEOF
18107 rm -f conftest.$ac_objext conftest$ac_exeext
18108 if { (ac_try="$ac_link"
18109 case "(($ac_try" in
18110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18111   *) ac_try_echo=$ac_try;;
18112 esac
18113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18114 $as_echo "$ac_try_echo") >&5
18115   (eval "$ac_link") 2>conftest.er1
18116   ac_status=$?
18117   grep -v '^ *+' conftest.er1 >conftest.err
18118   rm -f conftest.er1
18119   cat conftest.err >&5
18120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121   (exit $ac_status); } && {
18122          test -z "$ac_c_werror_flag" ||
18123          test ! -s conftest.err
18124        } && test -s conftest$ac_exeext &&
18125        $as_test_x conftest$ac_exeext; then
18126   ac_cv_func_fchown=yes
18127 else
18128   $as_echo "$as_me: failed program was:" >&5
18129 sed 's/^/| /' conftest.$ac_ext >&5
18130
18131         ac_cv_func_fchown=no
18132 fi
18133
18134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18135       conftest$ac_exeext conftest.$ac_ext
18136 fi
18137 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
18138 $as_echo "$ac_cv_func_fchown" >&6; }
18139 if test $ac_cv_func_fchown = yes; then
18140   :
18141 else
18142   gl_LIBOBJS="$gl_LIBOBJS fchown-stub.$ac_objext"
18143 fi
18144
18145
18146   fi
18147
18148
18149
18150   GNULIB_CHOWN=1
18151
18152
18153
18154
18155   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
18156   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
18157
18158   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
18159   # programs in the package would end up linked with that potentially-shared
18160   # library, inducing unnecessary run-time overhead.
18161   gl_saved_libs=$LIBS
18162     { $as_echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
18163 $as_echo_n "checking for library containing clock_gettime... " >&6; }
18164 if test "${ac_cv_search_clock_gettime+set}" = set; then
18165   $as_echo_n "(cached) " >&6
18166 else
18167   ac_func_search_save_LIBS=$LIBS
18168 cat >conftest.$ac_ext <<_ACEOF
18169 /* confdefs.h.  */
18170 _ACEOF
18171 cat confdefs.h >>conftest.$ac_ext
18172 cat >>conftest.$ac_ext <<_ACEOF
18173 /* end confdefs.h.  */
18174
18175 /* Override any GCC internal prototype to avoid an error.
18176    Use char because int might match the return type of a GCC
18177    builtin and then its argument prototype would still apply.  */
18178 #ifdef __cplusplus
18179 extern "C"
18180 #endif
18181 char clock_gettime ();
18182 int
18183 main ()
18184 {
18185 return clock_gettime ();
18186   ;
18187   return 0;
18188 }
18189 _ACEOF
18190 for ac_lib in '' rt posix4; do
18191   if test -z "$ac_lib"; then
18192     ac_res="none required"
18193   else
18194     ac_res=-l$ac_lib
18195     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18196   fi
18197   rm -f conftest.$ac_objext conftest$ac_exeext
18198 if { (ac_try="$ac_link"
18199 case "(($ac_try" in
18200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201   *) ac_try_echo=$ac_try;;
18202 esac
18203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18204 $as_echo "$ac_try_echo") >&5
18205   (eval "$ac_link") 2>conftest.er1
18206   ac_status=$?
18207   grep -v '^ *+' conftest.er1 >conftest.err
18208   rm -f conftest.er1
18209   cat conftest.err >&5
18210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211   (exit $ac_status); } && {
18212          test -z "$ac_c_werror_flag" ||
18213          test ! -s conftest.err
18214        } && test -s conftest$ac_exeext &&
18215        $as_test_x conftest$ac_exeext; then
18216   ac_cv_search_clock_gettime=$ac_res
18217 else
18218   $as_echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18220
18221
18222 fi
18223
18224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18225       conftest$ac_exeext
18226   if test "${ac_cv_search_clock_gettime+set}" = set; then
18227   break
18228 fi
18229 done
18230 if test "${ac_cv_search_clock_gettime+set}" = set; then
18231   :
18232 else
18233   ac_cv_search_clock_gettime=no
18234 fi
18235 rm conftest.$ac_ext
18236 LIBS=$ac_func_search_save_LIBS
18237 fi
18238 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
18239 $as_echo "$ac_cv_search_clock_gettime" >&6; }
18240 ac_res=$ac_cv_search_clock_gettime
18241 if test "$ac_res" != no; then
18242   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18243   test "$ac_cv_search_clock_gettime" = "none required" ||
18244                     LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
18245 fi
18246
18247
18248
18249
18250 for ac_func in clock_gettime clock_settime
18251 do
18252 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18253 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18254 $as_echo_n "checking for $ac_func... " >&6; }
18255 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18256   $as_echo_n "(cached) " >&6
18257 else
18258   cat >conftest.$ac_ext <<_ACEOF
18259 /* confdefs.h.  */
18260 _ACEOF
18261 cat confdefs.h >>conftest.$ac_ext
18262 cat >>conftest.$ac_ext <<_ACEOF
18263 /* end confdefs.h.  */
18264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18265    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18266 #define $ac_func innocuous_$ac_func
18267
18268 /* System header to define __stub macros and hopefully few prototypes,
18269     which can conflict with char $ac_func (); below.
18270     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18271     <limits.h> exists even on freestanding compilers.  */
18272
18273 #ifdef __STDC__
18274 # include <limits.h>
18275 #else
18276 # include <assert.h>
18277 #endif
18278
18279 #undef $ac_func
18280
18281 /* Override any GCC internal prototype to avoid an error.
18282    Use char because int might match the return type of a GCC
18283    builtin and then its argument prototype would still apply.  */
18284 #ifdef __cplusplus
18285 extern "C"
18286 #endif
18287 char $ac_func ();
18288 /* The GNU C library defines this for functions which it implements
18289     to always fail with ENOSYS.  Some functions are actually named
18290     something starting with __ and the normal name is an alias.  */
18291 #if defined __stub_$ac_func || defined __stub___$ac_func
18292 choke me
18293 #endif
18294
18295 int
18296 main ()
18297 {
18298 return $ac_func ();
18299   ;
18300   return 0;
18301 }
18302 _ACEOF
18303 rm -f conftest.$ac_objext conftest$ac_exeext
18304 if { (ac_try="$ac_link"
18305 case "(($ac_try" in
18306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18307   *) ac_try_echo=$ac_try;;
18308 esac
18309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18310 $as_echo "$ac_try_echo") >&5
18311   (eval "$ac_link") 2>conftest.er1
18312   ac_status=$?
18313   grep -v '^ *+' conftest.er1 >conftest.err
18314   rm -f conftest.er1
18315   cat conftest.err >&5
18316   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317   (exit $ac_status); } && {
18318          test -z "$ac_c_werror_flag" ||
18319          test ! -s conftest.err
18320        } && test -s conftest$ac_exeext &&
18321        $as_test_x conftest$ac_exeext; then
18322   eval "$as_ac_var=yes"
18323 else
18324   $as_echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18326
18327         eval "$as_ac_var=no"
18328 fi
18329
18330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18331       conftest$ac_exeext conftest.$ac_ext
18332 fi
18333 ac_res=`eval 'as_val=${'$as_ac_var'}
18334                  $as_echo "$as_val"'`
18335                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18336 $as_echo "$ac_res" >&6; }
18337 if test `eval 'as_val=${'$as_ac_var'}
18338                  $as_echo "$as_val"'` = yes; then
18339   cat >>confdefs.h <<_ACEOF
18340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18341 _ACEOF
18342
18343 fi
18344 done
18345
18346   LIBS=$gl_saved_libs
18347
18348
18349   gl_LIBOBJS="$gl_LIBOBJS cloexec.$ac_objext"
18350
18351
18352   gl_LIBOBJS="$gl_LIBOBJS close-stream.$ac_objext"
18353
18354     :
18355
18356
18357
18358 cat >>confdefs.h <<\_ACEOF
18359 #define GNULIB_CLOSE_STREAM 1
18360 _ACEOF
18361
18362
18363
18364   gl_LIBOBJS="$gl_LIBOBJS closeout.$ac_objext"
18365
18366     :
18367
18368
18369
18370
18371   gl_LIBOBJS="$gl_LIBOBJS cycle-check.$ac_objext"
18372
18373   { $as_echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
18374 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
18375 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
18376   $as_echo_n "(cached) " >&6
18377 else
18378   cat >conftest.$ac_ext <<_ACEOF
18379 /* confdefs.h.  */
18380 _ACEOF
18381 cat confdefs.h >>conftest.$ac_ext
18382 cat >>conftest.$ac_ext <<_ACEOF
18383 /* end confdefs.h.  */
18384
18385 #include <sys/types.h>
18386 #include <dirent.h>
18387
18388 int
18389 main ()
18390 {
18391 struct dirent dp; dp.d_ino = 0;
18392   ;
18393   return 0;
18394 }
18395 _ACEOF
18396 rm -f conftest.$ac_objext conftest$ac_exeext
18397 if { (ac_try="$ac_link"
18398 case "(($ac_try" in
18399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18400   *) ac_try_echo=$ac_try;;
18401 esac
18402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18403 $as_echo "$ac_try_echo") >&5
18404   (eval "$ac_link") 2>conftest.er1
18405   ac_status=$?
18406   grep -v '^ *+' conftest.er1 >conftest.err
18407   rm -f conftest.er1
18408   cat conftest.err >&5
18409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410   (exit $ac_status); } && {
18411          test -z "$ac_c_werror_flag" ||
18412          test ! -s conftest.err
18413        } && test -s conftest$ac_exeext &&
18414        $as_test_x conftest$ac_exeext; then
18415   jm_cv_struct_dirent_d_ino=yes
18416 else
18417   $as_echo "$as_me: failed program was:" >&5
18418 sed 's/^/| /' conftest.$ac_ext >&5
18419
18420         jm_cv_struct_dirent_d_ino=no
18421 fi
18422
18423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18424       conftest$ac_exeext conftest.$ac_ext
18425
18426
18427 fi
18428 { $as_echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
18429 $as_echo "$jm_cv_struct_dirent_d_ino" >&6; }
18430    if test $jm_cv_struct_dirent_d_ino = yes; then
18431
18432 cat >>confdefs.h <<\_ACEOF
18433 #define D_INO_IN_DIRENT 1
18434 _ACEOF
18435
18436    fi
18437
18438
18439   { $as_echo "$as_me:$LINENO: checking for d_type member in directory struct" >&5
18440 $as_echo_n "checking for d_type member in directory struct... " >&6; }
18441 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
18442   $as_echo_n "(cached) " >&6
18443 else
18444   cat >conftest.$ac_ext <<_ACEOF
18445 /* confdefs.h.  */
18446 _ACEOF
18447 cat confdefs.h >>conftest.$ac_ext
18448 cat >>conftest.$ac_ext <<_ACEOF
18449 /* end confdefs.h.  */
18450
18451 #include <sys/types.h>
18452 #include <dirent.h>
18453
18454 int
18455 main ()
18456 {
18457 struct dirent dp; dp.d_type = 0;
18458   ;
18459   return 0;
18460 }
18461 _ACEOF
18462 rm -f conftest.$ac_objext conftest$ac_exeext
18463 if { (ac_try="$ac_link"
18464 case "(($ac_try" in
18465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466   *) ac_try_echo=$ac_try;;
18467 esac
18468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18469 $as_echo "$ac_try_echo") >&5
18470   (eval "$ac_link") 2>conftest.er1
18471   ac_status=$?
18472   grep -v '^ *+' conftest.er1 >conftest.err
18473   rm -f conftest.er1
18474   cat conftest.err >&5
18475   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476   (exit $ac_status); } && {
18477          test -z "$ac_c_werror_flag" ||
18478          test ! -s conftest.err
18479        } && test -s conftest$ac_exeext &&
18480        $as_test_x conftest$ac_exeext; then
18481   jm_cv_struct_dirent_d_type=yes
18482 else
18483   $as_echo "$as_me: failed program was:" >&5
18484 sed 's/^/| /' conftest.$ac_ext >&5
18485
18486         jm_cv_struct_dirent_d_type=no
18487 fi
18488
18489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18490       conftest$ac_exeext conftest.$ac_ext
18491
18492
18493 fi
18494 { $as_echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_type" >&5
18495 $as_echo "$jm_cv_struct_dirent_d_type" >&6; }
18496    if test $jm_cv_struct_dirent_d_type = yes; then
18497
18498 cat >>confdefs.h <<\_ACEOF
18499 #define HAVE_STRUCT_DIRENT_D_TYPE 1
18500 _ACEOF
18501
18502    fi
18503
18504
18505
18506
18507
18508
18509 for ac_func in dirfd
18510 do
18511 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18512 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18513 $as_echo_n "checking for $ac_func... " >&6; }
18514 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18515   $as_echo_n "(cached) " >&6
18516 else
18517   cat >conftest.$ac_ext <<_ACEOF
18518 /* confdefs.h.  */
18519 _ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h.  */
18523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18524    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18525 #define $ac_func innocuous_$ac_func
18526
18527 /* System header to define __stub macros and hopefully few prototypes,
18528     which can conflict with char $ac_func (); below.
18529     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18530     <limits.h> exists even on freestanding compilers.  */
18531
18532 #ifdef __STDC__
18533 # include <limits.h>
18534 #else
18535 # include <assert.h>
18536 #endif
18537
18538 #undef $ac_func
18539
18540 /* Override any GCC internal prototype to avoid an error.
18541    Use char because int might match the return type of a GCC
18542    builtin and then its argument prototype would still apply.  */
18543 #ifdef __cplusplus
18544 extern "C"
18545 #endif
18546 char $ac_func ();
18547 /* The GNU C library defines this for functions which it implements
18548     to always fail with ENOSYS.  Some functions are actually named
18549     something starting with __ and the normal name is an alias.  */
18550 #if defined __stub_$ac_func || defined __stub___$ac_func
18551 choke me
18552 #endif
18553
18554 int
18555 main ()
18556 {
18557 return $ac_func ();
18558   ;
18559   return 0;
18560 }
18561 _ACEOF
18562 rm -f conftest.$ac_objext conftest$ac_exeext
18563 if { (ac_try="$ac_link"
18564 case "(($ac_try" in
18565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18566   *) ac_try_echo=$ac_try;;
18567 esac
18568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18569 $as_echo "$ac_try_echo") >&5
18570   (eval "$ac_link") 2>conftest.er1
18571   ac_status=$?
18572   grep -v '^ *+' conftest.er1 >conftest.err
18573   rm -f conftest.er1
18574   cat conftest.err >&5
18575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576   (exit $ac_status); } && {
18577          test -z "$ac_c_werror_flag" ||
18578          test ! -s conftest.err
18579        } && test -s conftest$ac_exeext &&
18580        $as_test_x conftest$ac_exeext; then
18581   eval "$as_ac_var=yes"
18582 else
18583   $as_echo "$as_me: failed program was:" >&5
18584 sed 's/^/| /' conftest.$ac_ext >&5
18585
18586         eval "$as_ac_var=no"
18587 fi
18588
18589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18590       conftest$ac_exeext conftest.$ac_ext
18591 fi
18592 ac_res=`eval 'as_val=${'$as_ac_var'}
18593                  $as_echo "$as_val"'`
18594                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18595 $as_echo "$ac_res" >&6; }
18596 if test `eval 'as_val=${'$as_ac_var'}
18597                  $as_echo "$as_val"'` = yes; then
18598   cat >>confdefs.h <<_ACEOF
18599 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18600 _ACEOF
18601
18602 fi
18603 done
18604
18605   { $as_echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
18606 $as_echo_n "checking whether dirfd is declared... " >&6; }
18607 if test "${ac_cv_have_decl_dirfd+set}" = set; then
18608   $as_echo_n "(cached) " >&6
18609 else
18610   cat >conftest.$ac_ext <<_ACEOF
18611 /* confdefs.h.  */
18612 _ACEOF
18613 cat confdefs.h >>conftest.$ac_ext
18614 cat >>conftest.$ac_ext <<_ACEOF
18615 /* end confdefs.h.  */
18616 #include <sys/types.h>
18617      #include <dirent.h>
18618
18619 int
18620 main ()
18621 {
18622 #ifndef dirfd
18623   (void) dirfd;
18624 #endif
18625
18626   ;
18627   return 0;
18628 }
18629 _ACEOF
18630 rm -f conftest.$ac_objext
18631 if { (ac_try="$ac_compile"
18632 case "(($ac_try" in
18633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634   *) ac_try_echo=$ac_try;;
18635 esac
18636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18637 $as_echo "$ac_try_echo") >&5
18638   (eval "$ac_compile") 2>conftest.er1
18639   ac_status=$?
18640   grep -v '^ *+' conftest.er1 >conftest.err
18641   rm -f conftest.er1
18642   cat conftest.err >&5
18643   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644   (exit $ac_status); } && {
18645          test -z "$ac_c_werror_flag" ||
18646          test ! -s conftest.err
18647        } && test -s conftest.$ac_objext; then
18648   ac_cv_have_decl_dirfd=yes
18649 else
18650   $as_echo "$as_me: failed program was:" >&5
18651 sed 's/^/| /' conftest.$ac_ext >&5
18652
18653         ac_cv_have_decl_dirfd=no
18654 fi
18655
18656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18657 fi
18658 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
18659 $as_echo "$ac_cv_have_decl_dirfd" >&6; }
18660 if test $ac_cv_have_decl_dirfd = yes; then
18661
18662 cat >>confdefs.h <<_ACEOF
18663 #define HAVE_DECL_DIRFD 1
18664 _ACEOF
18665
18666
18667 else
18668   cat >>confdefs.h <<_ACEOF
18669 #define HAVE_DECL_DIRFD 0
18670 _ACEOF
18671
18672
18673 fi
18674
18675
18676
18677   { $as_echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
18678 $as_echo_n "checking whether dirfd is a macro... " >&6; }
18679 if test "${gl_cv_func_dirfd_macro+set}" = set; then
18680   $as_echo_n "(cached) " >&6
18681 else
18682   cat >conftest.$ac_ext <<_ACEOF
18683 /* confdefs.h.  */
18684 _ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h.  */
18688
18689 #include <sys/types.h>
18690 #include <dirent.h>
18691 #ifdef dirfd
18692  dirent_header_defines_dirfd
18693 #endif
18694 _ACEOF
18695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18696   $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
18697   gl_cv_func_dirfd_macro=yes
18698 else
18699   gl_cv_func_dirfd_macro=no
18700 fi
18701 rm -f conftest*
18702
18703 fi
18704 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_dirfd_macro" >&5
18705 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
18706
18707   # Use the replacement only if we have no function, macro,
18708   # or declaration with that name.
18709   if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$gl_cv_func_dirfd_macro \
18710       = no,no,no; then
18711
18712 for ac_func in dirfd
18713 do
18714 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18715 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18716 $as_echo_n "checking for $ac_func... " >&6; }
18717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18718   $as_echo_n "(cached) " >&6
18719 else
18720   cat >conftest.$ac_ext <<_ACEOF
18721 /* confdefs.h.  */
18722 _ACEOF
18723 cat confdefs.h >>conftest.$ac_ext
18724 cat >>conftest.$ac_ext <<_ACEOF
18725 /* end confdefs.h.  */
18726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18728 #define $ac_func innocuous_$ac_func
18729
18730 /* System header to define __stub macros and hopefully few prototypes,
18731     which can conflict with char $ac_func (); below.
18732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18733     <limits.h> exists even on freestanding compilers.  */
18734
18735 #ifdef __STDC__
18736 # include <limits.h>
18737 #else
18738 # include <assert.h>
18739 #endif
18740
18741 #undef $ac_func
18742
18743 /* Override any GCC internal prototype to avoid an error.
18744    Use char because int might match the return type of a GCC
18745    builtin and then its argument prototype would still apply.  */
18746 #ifdef __cplusplus
18747 extern "C"
18748 #endif
18749 char $ac_func ();
18750 /* The GNU C library defines this for functions which it implements
18751     to always fail with ENOSYS.  Some functions are actually named
18752     something starting with __ and the normal name is an alias.  */
18753 #if defined __stub_$ac_func || defined __stub___$ac_func
18754 choke me
18755 #endif
18756
18757 int
18758 main ()
18759 {
18760 return $ac_func ();
18761   ;
18762   return 0;
18763 }
18764 _ACEOF
18765 rm -f conftest.$ac_objext conftest$ac_exeext
18766 if { (ac_try="$ac_link"
18767 case "(($ac_try" in
18768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18769   *) ac_try_echo=$ac_try;;
18770 esac
18771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18772 $as_echo "$ac_try_echo") >&5
18773   (eval "$ac_link") 2>conftest.er1
18774   ac_status=$?
18775   grep -v '^ *+' conftest.er1 >conftest.err
18776   rm -f conftest.er1
18777   cat conftest.err >&5
18778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779   (exit $ac_status); } && {
18780          test -z "$ac_c_werror_flag" ||
18781          test ! -s conftest.err
18782        } && test -s conftest$ac_exeext &&
18783        $as_test_x conftest$ac_exeext; then
18784   eval "$as_ac_var=yes"
18785 else
18786   $as_echo "$as_me: failed program was:" >&5
18787 sed 's/^/| /' conftest.$ac_ext >&5
18788
18789         eval "$as_ac_var=no"
18790 fi
18791
18792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18793       conftest$ac_exeext conftest.$ac_ext
18794 fi
18795 ac_res=`eval 'as_val=${'$as_ac_var'}
18796                  $as_echo "$as_val"'`
18797                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18798 $as_echo "$ac_res" >&6; }
18799 if test `eval 'as_val=${'$as_ac_var'}
18800                  $as_echo "$as_val"'` = yes; then
18801   cat >>confdefs.h <<_ACEOF
18802 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18803 _ACEOF
18804
18805 else
18806   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
18807 fi
18808 done
18809
18810     { $as_echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
18811 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
18812 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
18813   $as_echo_n "(cached) " >&6
18814 else
18815
18816         dirfd_save_CFLAGS=$CFLAGS
18817         for ac_expr in d_fd dd_fd; do
18818
18819           CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
18820           cat >conftest.$ac_ext <<_ACEOF
18821 /* confdefs.h.  */
18822 _ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h.  */
18826 #include <sys/types.h>
18827              #include <dirent.h>
18828 int
18829 main ()
18830 {
18831 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
18832   ;
18833   return 0;
18834 }
18835 _ACEOF
18836 rm -f conftest.$ac_objext
18837 if { (ac_try="$ac_compile"
18838 case "(($ac_try" in
18839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840   *) ac_try_echo=$ac_try;;
18841 esac
18842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18843 $as_echo "$ac_try_echo") >&5
18844   (eval "$ac_compile") 2>conftest.er1
18845   ac_status=$?
18846   grep -v '^ *+' conftest.er1 >conftest.err
18847   rm -f conftest.er1
18848   cat conftest.err >&5
18849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850   (exit $ac_status); } && {
18851          test -z "$ac_c_werror_flag" ||
18852          test ! -s conftest.err
18853        } && test -s conftest.$ac_objext; then
18854   dir_fd_found=yes
18855
18856 else
18857   $as_echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.$ac_ext >&5
18859
18860
18861 fi
18862
18863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18864           CFLAGS=$dirfd_save_CFLAGS
18865           test "$dir_fd_found" = yes && break
18866         done
18867         test "$dir_fd_found" = yes || ac_expr=no_such_member
18868
18869         gl_cv_sys_dir_fd_member_name=$ac_expr
18870
18871
18872 fi
18873 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
18874 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
18875     if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
18876
18877 cat >>confdefs.h <<_ACEOF
18878 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
18879 _ACEOF
18880
18881     fi
18882
18883
18884   fi
18885
18886
18887   gl_LIBOBJS="$gl_LIBOBJS basename.$ac_objext"
18888   gl_LIBOBJS="$gl_LIBOBJS dirname.$ac_objext"
18889   gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
18890
18891
18892
18893
18894
18895
18896
18897   { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
18898 $as_echo_n "checking whether // is distinct from /... " >&6; }
18899 if test "${gl_cv_double_slash_root+set}" = set; then
18900   $as_echo_n "(cached) " >&6
18901 else
18902    if test x"$cross_compiling" = xyes ; then
18903         # When cross-compiling, there is no way to tell whether // is special
18904         # short of a list of hosts.  However, the only known hosts to date
18905         # that have a distinct // are Apollo DomainOS (too old to port to),
18906         # Cygwin, and z/OS.  If anyone knows of another system for which // has
18907         # special semantics and is distinct from /, please report it to
18908         # <bug-gnulib@gnu.org>.
18909         case $host in
18910           *-cygwin | i370-ibm-openedition)
18911             gl_cv_double_slash_root=yes ;;
18912           *)
18913             # Be optimistic and assume that / and // are the same when we
18914             # don't know.
18915             gl_cv_double_slash_root='unknown, assuming no' ;;
18916         esac
18917       else
18918         set x `ls -di / //`
18919         if test $2 = $4 && wc //dev/null >/dev/null 2>&1; then
18920           gl_cv_double_slash_root=no
18921         else
18922           gl_cv_double_slash_root=yes
18923         fi
18924       fi
18925 fi
18926 { $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
18927 $as_echo "$gl_cv_double_slash_root" >&6; }
18928   if test "$gl_cv_double_slash_root" = yes; then
18929
18930 cat >>confdefs.h <<\_ACEOF
18931 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
18932 _ACEOF
18933
18934   fi
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944   if test $ac_cv_func_dup2 = no; then
18945     HAVE_DUP2=0
18946     gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
18947   fi
18948
18949
18950
18951   GNULIB_DUP2=1
18952
18953
18954   { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
18955 $as_echo_n "checking for error_at_line... " >&6; }
18956 if test "${ac_cv_lib_error_at_line+set}" = set; then
18957   $as_echo_n "(cached) " >&6
18958 else
18959   cat >conftest.$ac_ext <<_ACEOF
18960 /* confdefs.h.  */
18961 _ACEOF
18962 cat confdefs.h >>conftest.$ac_ext
18963 cat >>conftest.$ac_ext <<_ACEOF
18964 /* end confdefs.h.  */
18965 #include <error.h>
18966 int
18967 main ()
18968 {
18969 error_at_line (0, 0, "", 0, "an error occurred");
18970   ;
18971   return 0;
18972 }
18973 _ACEOF
18974 rm -f conftest.$ac_objext conftest$ac_exeext
18975 if { (ac_try="$ac_link"
18976 case "(($ac_try" in
18977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978   *) ac_try_echo=$ac_try;;
18979 esac
18980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18981 $as_echo "$ac_try_echo") >&5
18982   (eval "$ac_link") 2>conftest.er1
18983   ac_status=$?
18984   grep -v '^ *+' conftest.er1 >conftest.err
18985   rm -f conftest.er1
18986   cat conftest.err >&5
18987   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988   (exit $ac_status); } && {
18989          test -z "$ac_c_werror_flag" ||
18990          test ! -s conftest.err
18991        } && test -s conftest$ac_exeext &&
18992        $as_test_x conftest$ac_exeext; then
18993   ac_cv_lib_error_at_line=yes
18994 else
18995   $as_echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.$ac_ext >&5
18997
18998         ac_cv_lib_error_at_line=no
18999 fi
19000
19001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19002       conftest$ac_exeext conftest.$ac_ext
19003 fi
19004 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
19005 $as_echo "$ac_cv_lib_error_at_line" >&6; }
19006 if test $ac_cv_lib_error_at_line = no; then
19007   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
19008 fi
19009
19010
19011
19012   :
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023 for ac_func in euidaccess
19024 do
19025 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19026 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19027 $as_echo_n "checking for $ac_func... " >&6; }
19028 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19029   $as_echo_n "(cached) " >&6
19030 else
19031   cat >conftest.$ac_ext <<_ACEOF
19032 /* confdefs.h.  */
19033 _ACEOF
19034 cat confdefs.h >>conftest.$ac_ext
19035 cat >>conftest.$ac_ext <<_ACEOF
19036 /* end confdefs.h.  */
19037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19038    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19039 #define $ac_func innocuous_$ac_func
19040
19041 /* System header to define __stub macros and hopefully few prototypes,
19042     which can conflict with char $ac_func (); below.
19043     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19044     <limits.h> exists even on freestanding compilers.  */
19045
19046 #ifdef __STDC__
19047 # include <limits.h>
19048 #else
19049 # include <assert.h>
19050 #endif
19051
19052 #undef $ac_func
19053
19054 /* Override any GCC internal prototype to avoid an error.
19055    Use char because int might match the return type of a GCC
19056    builtin and then its argument prototype would still apply.  */
19057 #ifdef __cplusplus
19058 extern "C"
19059 #endif
19060 char $ac_func ();
19061 /* The GNU C library defines this for functions which it implements
19062     to always fail with ENOSYS.  Some functions are actually named
19063     something starting with __ and the normal name is an alias.  */
19064 #if defined __stub_$ac_func || defined __stub___$ac_func
19065 choke me
19066 #endif
19067
19068 int
19069 main ()
19070 {
19071 return $ac_func ();
19072   ;
19073   return 0;
19074 }
19075 _ACEOF
19076 rm -f conftest.$ac_objext conftest$ac_exeext
19077 if { (ac_try="$ac_link"
19078 case "(($ac_try" in
19079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080   *) ac_try_echo=$ac_try;;
19081 esac
19082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19083 $as_echo "$ac_try_echo") >&5
19084   (eval "$ac_link") 2>conftest.er1
19085   ac_status=$?
19086   grep -v '^ *+' conftest.er1 >conftest.err
19087   rm -f conftest.er1
19088   cat conftest.err >&5
19089   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090   (exit $ac_status); } && {
19091          test -z "$ac_c_werror_flag" ||
19092          test ! -s conftest.err
19093        } && test -s conftest$ac_exeext &&
19094        $as_test_x conftest$ac_exeext; then
19095   eval "$as_ac_var=yes"
19096 else
19097   $as_echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19099
19100         eval "$as_ac_var=no"
19101 fi
19102
19103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19104       conftest$ac_exeext conftest.$ac_ext
19105 fi
19106 ac_res=`eval 'as_val=${'$as_ac_var'}
19107                  $as_echo "$as_val"'`
19108                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19109 $as_echo "$ac_res" >&6; }
19110 if test `eval 'as_val=${'$as_ac_var'}
19111                  $as_echo "$as_val"'` = yes; then
19112   cat >>confdefs.h <<_ACEOF
19113 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19114 _ACEOF
19115
19116 else
19117   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
19118 fi
19119 done
19120
19121   if test $ac_cv_func_euidaccess = no; then
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135   # Solaris 9 needs -lgen to get the eaccess function.
19136   # Save and restore LIBS so -lgen isn't added to it.  Otherwise, *all*
19137   # programs in the package would end up linked with that potentially-shared
19138   # library, inducing unnecessary run-time overhead.
19139   gl_saved_libs=$LIBS
19140     { $as_echo "$as_me:$LINENO: checking for library containing eaccess" >&5
19141 $as_echo_n "checking for library containing eaccess... " >&6; }
19142 if test "${ac_cv_search_eaccess+set}" = set; then
19143   $as_echo_n "(cached) " >&6
19144 else
19145   ac_func_search_save_LIBS=$LIBS
19146 cat >conftest.$ac_ext <<_ACEOF
19147 /* confdefs.h.  */
19148 _ACEOF
19149 cat confdefs.h >>conftest.$ac_ext
19150 cat >>conftest.$ac_ext <<_ACEOF
19151 /* end confdefs.h.  */
19152
19153 /* Override any GCC internal prototype to avoid an error.
19154    Use char because int might match the return type of a GCC
19155    builtin and then its argument prototype would still apply.  */
19156 #ifdef __cplusplus
19157 extern "C"
19158 #endif
19159 char eaccess ();
19160 int
19161 main ()
19162 {
19163 return eaccess ();
19164   ;
19165   return 0;
19166 }
19167 _ACEOF
19168 for ac_lib in '' gen; do
19169   if test -z "$ac_lib"; then
19170     ac_res="none required"
19171   else
19172     ac_res=-l$ac_lib
19173     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19174   fi
19175   rm -f conftest.$ac_objext conftest$ac_exeext
19176 if { (ac_try="$ac_link"
19177 case "(($ac_try" in
19178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19179   *) ac_try_echo=$ac_try;;
19180 esac
19181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19182 $as_echo "$ac_try_echo") >&5
19183   (eval "$ac_link") 2>conftest.er1
19184   ac_status=$?
19185   grep -v '^ *+' conftest.er1 >conftest.err
19186   rm -f conftest.er1
19187   cat conftest.err >&5
19188   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189   (exit $ac_status); } && {
19190          test -z "$ac_c_werror_flag" ||
19191          test ! -s conftest.err
19192        } && test -s conftest$ac_exeext &&
19193        $as_test_x conftest$ac_exeext; then
19194   ac_cv_search_eaccess=$ac_res
19195 else
19196   $as_echo "$as_me: failed program was:" >&5
19197 sed 's/^/| /' conftest.$ac_ext >&5
19198
19199
19200 fi
19201
19202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19203       conftest$ac_exeext
19204   if test "${ac_cv_search_eaccess+set}" = set; then
19205   break
19206 fi
19207 done
19208 if test "${ac_cv_search_eaccess+set}" = set; then
19209   :
19210 else
19211   ac_cv_search_eaccess=no
19212 fi
19213 rm conftest.$ac_ext
19214 LIBS=$ac_func_search_save_LIBS
19215 fi
19216 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_eaccess" >&5
19217 $as_echo "$ac_cv_search_eaccess" >&6; }
19218 ac_res=$ac_cv_search_eaccess
19219 if test "$ac_res" != no; then
19220   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19221   test "$ac_cv_search_eaccess" = "none required" ||
19222                     LIB_EACCESS=$ac_cv_search_eaccess
19223 fi
19224
19225
19226
19227 for ac_func in eaccess
19228 do
19229 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19230 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19231 $as_echo_n "checking for $ac_func... " >&6; }
19232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19233   $as_echo_n "(cached) " >&6
19234 else
19235   cat >conftest.$ac_ext <<_ACEOF
19236 /* confdefs.h.  */
19237 _ACEOF
19238 cat confdefs.h >>conftest.$ac_ext
19239 cat >>conftest.$ac_ext <<_ACEOF
19240 /* end confdefs.h.  */
19241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19242    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19243 #define $ac_func innocuous_$ac_func
19244
19245 /* System header to define __stub macros and hopefully few prototypes,
19246     which can conflict with char $ac_func (); below.
19247     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19248     <limits.h> exists even on freestanding compilers.  */
19249
19250 #ifdef __STDC__
19251 # include <limits.h>
19252 #else
19253 # include <assert.h>
19254 #endif
19255
19256 #undef $ac_func
19257
19258 /* Override any GCC internal prototype to avoid an error.
19259    Use char because int might match the return type of a GCC
19260    builtin and then its argument prototype would still apply.  */
19261 #ifdef __cplusplus
19262 extern "C"
19263 #endif
19264 char $ac_func ();
19265 /* The GNU C library defines this for functions which it implements
19266     to always fail with ENOSYS.  Some functions are actually named
19267     something starting with __ and the normal name is an alias.  */
19268 #if defined __stub_$ac_func || defined __stub___$ac_func
19269 choke me
19270 #endif
19271
19272 int
19273 main ()
19274 {
19275 return $ac_func ();
19276   ;
19277   return 0;
19278 }
19279 _ACEOF
19280 rm -f conftest.$ac_objext conftest$ac_exeext
19281 if { (ac_try="$ac_link"
19282 case "(($ac_try" in
19283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284   *) ac_try_echo=$ac_try;;
19285 esac
19286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19287 $as_echo "$ac_try_echo") >&5
19288   (eval "$ac_link") 2>conftest.er1
19289   ac_status=$?
19290   grep -v '^ *+' conftest.er1 >conftest.err
19291   rm -f conftest.er1
19292   cat conftest.err >&5
19293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294   (exit $ac_status); } && {
19295          test -z "$ac_c_werror_flag" ||
19296          test ! -s conftest.err
19297        } && test -s conftest$ac_exeext &&
19298        $as_test_x conftest$ac_exeext; then
19299   eval "$as_ac_var=yes"
19300 else
19301   $as_echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19303
19304         eval "$as_ac_var=no"
19305 fi
19306
19307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19308       conftest$ac_exeext conftest.$ac_ext
19309 fi
19310 ac_res=`eval 'as_val=${'$as_ac_var'}
19311                  $as_echo "$as_val"'`
19312                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19313 $as_echo "$ac_res" >&6; }
19314 if test `eval 'as_val=${'$as_ac_var'}
19315                  $as_echo "$as_val"'` = yes; then
19316   cat >>confdefs.h <<_ACEOF
19317 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19318 _ACEOF
19319
19320 fi
19321 done
19322
19323   LIBS=$gl_saved_libs
19324
19325   fi
19326
19327
19328   gl_LIBOBJS="$gl_LIBOBJS exclude.$ac_objext"
19329
19330
19331   gl_LIBOBJS="$gl_LIBOBJS exitfail.$ac_objext"
19332
19333     :
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343   if test $ac_cv_func_fchdir = no; then
19344     REPLACE_FCHDIR=1
19345     gl_LIBOBJS="$gl_LIBOBJS fchdir.$ac_objext"
19346     :
19347
19348 cat >>confdefs.h <<\_ACEOF
19349 #define FCHDIR_REPLACEMENT 1
19350 _ACEOF
19351
19352       { $as_echo "$as_me:$LINENO: checking absolute name of <dirent.h>" >&5
19353 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
19354 if test "${gl_cv_absolute_dirent_h+set}" = set; then
19355   $as_echo_n "(cached) " >&6
19356 else
19357
19358
19359
19360
19361
19362     if test $ac_cv_header_dirent_h = yes; then
19363       cat >conftest.$ac_ext <<_ACEOF
19364 /* confdefs.h.  */
19365 _ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h.  */
19369 #include <dirent.h>
19370 _ACEOF
19371       gl_cv_absolute_dirent_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19372 sed -n '\#/dirent.h#{s#.*"\(.*/dirent.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
19373     fi
19374
19375 fi
19376 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_dirent_h" >&5
19377 $as_echo "$gl_cv_absolute_dirent_h" >&6; }
19378 cat >>confdefs.h <<_ACEOF
19379 #define ABSOLUTE_DIRENT_H "$gl_cv_absolute_dirent_h"
19380 _ACEOF
19381
19382
19383     ABSOLUTE_DIRENT_H=\"$gl_cv_absolute_dirent_h\"
19384     DIRENT_H='dirent.h'
19385   else
19386     DIRENT_H=
19387   fi
19388
19389
19390
19391
19392
19393   GNULIB_FCHDIR=1
19394
19395
19396   { $as_echo "$as_me:$LINENO: checking for working fcntl.h" >&5
19397 $as_echo_n "checking for working fcntl.h... " >&6; }
19398 if test "${gl_cv_header_working_fcntl_h+set}" = set; then
19399   $as_echo_n "(cached) " >&6
19400 else
19401   if test "$cross_compiling" = yes; then
19402   gl_cv_header_working_fcntl_h=cross-compiling
19403 else
19404   cat >conftest.$ac_ext <<_ACEOF
19405 /* confdefs.h.  */
19406 _ACEOF
19407 cat confdefs.h >>conftest.$ac_ext
19408 cat >>conftest.$ac_ext <<_ACEOF
19409 /* end confdefs.h.  */
19410 #include <sys/types.h>
19411            #include <sys/stat.h>
19412            #include <unistd.h>
19413            #include <fcntl.h>
19414            #ifndef O_NOATIME
19415             #define O_NOATIME 0
19416            #endif
19417            #ifndef O_NOFOLLOW
19418             #define O_NOFOLLOW 0
19419            #endif
19420            static int const constants[] =
19421             {
19422               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
19423               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
19424             };
19425
19426 int
19427 main ()
19428 {
19429
19430             int status = !constants;
19431             {
19432               static char const sym[] = "conftest.sym";
19433               if (symlink (".", sym) != 0
19434                   || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
19435                 status |= 32;
19436             }
19437             {
19438               static char const file[] = "confdefs.h";
19439               int fd = open (file, O_RDONLY | O_NOATIME);
19440               char c;
19441               struct stat st0, st1;
19442               if (fd < 0
19443                   || fstat (fd, &st0) != 0
19444                   || sleep (1) != 0
19445                   || read (fd, &c, 1) != 1
19446                   || close (fd) != 0
19447                   || stat (file, &st1) != 0
19448                   || st0.st_atime != st1.st_atime)
19449                 status |= 64;
19450             }
19451             return status;
19452   ;
19453   return 0;
19454 }
19455 _ACEOF
19456 rm -f conftest$ac_exeext
19457 if { (ac_try="$ac_link"
19458 case "(($ac_try" in
19459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460   *) ac_try_echo=$ac_try;;
19461 esac
19462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19463 $as_echo "$ac_try_echo") >&5
19464   (eval "$ac_link") 2>&5
19465   ac_status=$?
19466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19468   { (case "(($ac_try" in
19469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19470   *) ac_try_echo=$ac_try;;
19471 esac
19472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19473 $as_echo "$ac_try_echo") >&5
19474   (eval "$ac_try") 2>&5
19475   ac_status=$?
19476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477   (exit $ac_status); }; }; then
19478   gl_cv_header_working_fcntl_h=yes
19479 else
19480   $as_echo "$as_me: program exited with status $ac_status" >&5
19481 $as_echo "$as_me: failed program was:" >&5
19482 sed 's/^/| /' conftest.$ac_ext >&5
19483
19484 ( exit $ac_status )
19485 case $? in #(
19486         32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
19487         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
19488         96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
19489          *) gl_cv_header_working_fcntl_h='no';;
19490         esac
19491 fi
19492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19493 fi
19494
19495
19496 fi
19497 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_fcntl_h" >&5
19498 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
19499
19500   case $gl_cv_header_working_fcntl_h in #(
19501   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
19502   *) ac_val=1;;
19503   esac
19504
19505 cat >>confdefs.h <<_ACEOF
19506 #define HAVE_WORKING_O_NOATIME $ac_val
19507 _ACEOF
19508
19509
19510   case $gl_cv_header_working_fcntl_h in #(
19511   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
19512   *) ac_val=1;;
19513   esac
19514
19515 cat >>confdefs.h <<_ACEOF
19516 #define HAVE_WORKING_O_NOFOLLOW $ac_val
19517 _ACEOF
19518
19519
19520     { $as_echo "$as_me:$LINENO: checking absolute name of <fcntl.h>" >&5
19521 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
19522 if test "${gl_cv_absolute_fcntl_h+set}" = set; then
19523   $as_echo_n "(cached) " >&6
19524 else
19525
19526
19527
19528
19529
19530     if test $ac_cv_header_fcntl_h = yes; then
19531       cat >conftest.$ac_ext <<_ACEOF
19532 /* confdefs.h.  */
19533 _ACEOF
19534 cat confdefs.h >>conftest.$ac_ext
19535 cat >>conftest.$ac_ext <<_ACEOF
19536 /* end confdefs.h.  */
19537 #include <fcntl.h>
19538 _ACEOF
19539       gl_cv_absolute_fcntl_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19540 sed -n '\#/fcntl.h#{s#.*"\(.*/fcntl.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
19541     fi
19542
19543 fi
19544 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_fcntl_h" >&5
19545 $as_echo "$gl_cv_absolute_fcntl_h" >&6; }
19546 cat >>confdefs.h <<_ACEOF
19547 #define ABSOLUTE_FCNTL_H "$gl_cv_absolute_fcntl_h"
19548 _ACEOF
19549
19550
19551   ABSOLUTE_FCNTL_H=\"$gl_cv_absolute_fcntl_h\"
19552
19553   FCNTL_H='fcntl.h'
19554
19555
19556
19557   gl_LIBOBJS="$gl_LIBOBJS open-safer.$ac_objext"
19558   gl_LIBOBJS="$gl_LIBOBJS creat-safer.$ac_objext"
19559
19560
19561
19562 cat >>confdefs.h <<\_ACEOF
19563 #define GNULIB_FCNTL_SAFER 1
19564 _ACEOF
19565
19566
19567
19568   gl_LIBOBJS="$gl_LIBOBJS file-type.$ac_objext"
19569
19570
19571   { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19572 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
19573 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19574   $as_echo_n "(cached) " >&6
19575 else
19576   cat >conftest.$ac_ext <<_ACEOF
19577 /* confdefs.h.  */
19578 _ACEOF
19579 cat confdefs.h >>conftest.$ac_ext
19580 cat >>conftest.$ac_ext <<_ACEOF
19581 /* end confdefs.h.  */
19582 $ac_includes_default
19583 int
19584 main ()
19585 {
19586 static struct stat ac_aggr;
19587 if (ac_aggr.st_blocks)
19588 return 0;
19589   ;
19590   return 0;
19591 }
19592 _ACEOF
19593 rm -f conftest.$ac_objext
19594 if { (ac_try="$ac_compile"
19595 case "(($ac_try" in
19596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19597   *) ac_try_echo=$ac_try;;
19598 esac
19599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19600 $as_echo "$ac_try_echo") >&5
19601   (eval "$ac_compile") 2>conftest.er1
19602   ac_status=$?
19603   grep -v '^ *+' conftest.er1 >conftest.err
19604   rm -f conftest.er1
19605   cat conftest.err >&5
19606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607   (exit $ac_status); } && {
19608          test -z "$ac_c_werror_flag" ||
19609          test ! -s conftest.err
19610        } && test -s conftest.$ac_objext; then
19611   ac_cv_member_struct_stat_st_blocks=yes
19612 else
19613   $as_echo "$as_me: failed program was:" >&5
19614 sed 's/^/| /' conftest.$ac_ext >&5
19615
19616         cat >conftest.$ac_ext <<_ACEOF
19617 /* confdefs.h.  */
19618 _ACEOF
19619 cat confdefs.h >>conftest.$ac_ext
19620 cat >>conftest.$ac_ext <<_ACEOF
19621 /* end confdefs.h.  */
19622 $ac_includes_default
19623 int
19624 main ()
19625 {
19626 static struct stat ac_aggr;
19627 if (sizeof ac_aggr.st_blocks)
19628 return 0;
19629   ;
19630   return 0;
19631 }
19632 _ACEOF
19633 rm -f conftest.$ac_objext
19634 if { (ac_try="$ac_compile"
19635 case "(($ac_try" in
19636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19637   *) ac_try_echo=$ac_try;;
19638 esac
19639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19640 $as_echo "$ac_try_echo") >&5
19641   (eval "$ac_compile") 2>conftest.er1
19642   ac_status=$?
19643   grep -v '^ *+' conftest.er1 >conftest.err
19644   rm -f conftest.er1
19645   cat conftest.err >&5
19646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647   (exit $ac_status); } && {
19648          test -z "$ac_c_werror_flag" ||
19649          test ! -s conftest.err
19650        } && test -s conftest.$ac_objext; then
19651   ac_cv_member_struct_stat_st_blocks=yes
19652 else
19653   $as_echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19655
19656         ac_cv_member_struct_stat_st_blocks=no
19657 fi
19658
19659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19660 fi
19661
19662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19663 fi
19664 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19665 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
19666 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19667
19668 cat >>confdefs.h <<_ACEOF
19669 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19670 _ACEOF
19671
19672
19673 cat >>confdefs.h <<\_ACEOF
19674 #define HAVE_ST_BLOCKS 1
19675 _ACEOF
19676
19677 else
19678   gl_LIBOBJS="$gl_LIBOBJS fileblocks.$ac_objext"
19679 fi
19680
19681
19682     if test $ac_cv_member_struct_stat_st_blocks = no; then
19683
19684
19685
19686
19687
19688
19689
19690   :
19691
19692   fi
19693
19694
19695
19696   gl_LIBOBJS="$gl_LIBOBJS filemode.$ac_objext"
19697
19698
19699
19700
19701
19702
19703   gl_LIBOBJS="$gl_LIBOBJS filenamecat.$ac_objext"
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713   { $as_echo "$as_me:$LINENO: checking for flexible array member" >&5
19714 $as_echo_n "checking for flexible array member... " >&6; }
19715 if test "${ac_cv_c_flexmember+set}" = set; then
19716   $as_echo_n "(cached) " >&6
19717 else
19718   cat >conftest.$ac_ext <<_ACEOF
19719 /* confdefs.h.  */
19720 _ACEOF
19721 cat confdefs.h >>conftest.$ac_ext
19722 cat >>conftest.$ac_ext <<_ACEOF
19723 /* end confdefs.h.  */
19724 #include <stdlib.h>
19725             #include <stdio.h>
19726             #include <stddef.h>
19727             struct s { int n; double d[]; };
19728 int
19729 main ()
19730 {
19731 int m = getchar ();
19732             struct s *p = malloc (offsetof (struct s, d)
19733                                   + m * sizeof (double));
19734             p->d[0] = 0.0;
19735             return p->d != (double *) NULL;
19736   ;
19737   return 0;
19738 }
19739 _ACEOF
19740 rm -f conftest.$ac_objext
19741 if { (ac_try="$ac_compile"
19742 case "(($ac_try" in
19743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19744   *) ac_try_echo=$ac_try;;
19745 esac
19746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19747 $as_echo "$ac_try_echo") >&5
19748   (eval "$ac_compile") 2>conftest.er1
19749   ac_status=$?
19750   grep -v '^ *+' conftest.er1 >conftest.err
19751   rm -f conftest.er1
19752   cat conftest.err >&5
19753   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754   (exit $ac_status); } && {
19755          test -z "$ac_c_werror_flag" ||
19756          test ! -s conftest.err
19757        } && test -s conftest.$ac_objext; then
19758   ac_cv_c_flexmember=yes
19759 else
19760   $as_echo "$as_me: failed program was:" >&5
19761 sed 's/^/| /' conftest.$ac_ext >&5
19762
19763         ac_cv_c_flexmember=no
19764 fi
19765
19766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19767 fi
19768 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
19769 $as_echo "$ac_cv_c_flexmember" >&6; }
19770   if test $ac_cv_c_flexmember = yes; then
19771
19772 cat >>confdefs.h <<\_ACEOF
19773 #define FLEXIBLE_ARRAY_MEMBER
19774 _ACEOF
19775
19776   else
19777     cat >>confdefs.h <<\_ACEOF
19778 #define FLEXIBLE_ARRAY_MEMBER 1
19779 _ACEOF
19780
19781   fi
19782
19783   # No macro. You should also use one of fnmatch-posix or fnmatch-gnu.
19784
19785
19786
19787   FNMATCH_H=
19788   { $as_echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
19789 $as_echo_n "checking for working GNU fnmatch... " >&6; }
19790 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
19791   $as_echo_n "(cached) " >&6
19792 else
19793               if test "$cross_compiling" = yes; then
19794   ac_cv_func_fnmatch_gnu=cross
19795 else
19796   cat >conftest.$ac_ext <<_ACEOF
19797 /* confdefs.h.  */
19798 _ACEOF
19799 cat confdefs.h >>conftest.$ac_ext
19800 cat >>conftest.$ac_ext <<_ACEOF
19801 /* end confdefs.h.  */
19802 #include <fnmatch.h>
19803            static int
19804            y (char const *pattern, char const *string, int flags)
19805            {
19806              return fnmatch (pattern, string, flags) == 0;
19807            }
19808            static int
19809            n (char const *pattern, char const *string, int flags)
19810            {
19811              return fnmatch (pattern, string, flags) == FNM_NOMATCH;
19812            }
19813
19814 int
19815 main ()
19816 {
19817 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
19818            char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
19819            static char const A_1[] = { 'A' - 1, 0 };
19820            static char const A01[] = { 'A' + 1, 0 };
19821            static char const a_1[] = { 'a' - 1, 0 };
19822            static char const a01[] = { 'a' + 1, 0 };
19823            static char const bs_1[] = { '\\\\' - 1, 0 };
19824            static char const bs01[] = { '\\\\' + 1, 0 };
19825            return
19826             !(n ("a*", "", 0)
19827               && y ("a*", "abc", 0)
19828               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
19829               && y ("a\\\\bc", "abc", 0)
19830               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
19831               && y ("*x", ".x", 0)
19832               && n ("*x", ".x", FNM_PERIOD)
19833               && y (Apat, "\\\\", 0) && y (Apat, "A", 0)
19834               && y (apat, "\\\\", 0) && y (apat, "a", 0)
19835               && n (Apat, A_1, 0) == ('A' < '\\\\')
19836               && n (apat, a_1, 0) == ('a' < '\\\\')
19837               && y (Apat, A01, 0) == ('A' < '\\\\')
19838               && y (apat, a01, 0) == ('a' < '\\\\')
19839               && y (Apat, bs_1, 0) == ('A' < '\\\\')
19840               && y (apat, bs_1, 0) == ('a' < '\\\\')
19841               && n (Apat, bs01, 0) == ('A' < '\\\\')
19842               && n (apat, bs01, 0) == ('a' < '\\\\')
19843               && y ("xxXX", "xXxX", FNM_CASEFOLD)
19844                     && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
19845                     && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
19846                     && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
19847                     && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
19848                     && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR));
19849   ;
19850   return 0;
19851 }
19852 _ACEOF
19853 rm -f conftest$ac_exeext
19854 if { (ac_try="$ac_link"
19855 case "(($ac_try" in
19856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857   *) ac_try_echo=$ac_try;;
19858 esac
19859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19860 $as_echo "$ac_try_echo") >&5
19861   (eval "$ac_link") 2>&5
19862   ac_status=$?
19863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19865   { (case "(($ac_try" in
19866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19867   *) ac_try_echo=$ac_try;;
19868 esac
19869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19870 $as_echo "$ac_try_echo") >&5
19871   (eval "$ac_try") 2>&5
19872   ac_status=$?
19873   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874   (exit $ac_status); }; }; then
19875   ac_cv_func_fnmatch_gnu=yes
19876 else
19877   $as_echo "$as_me: program exited with status $ac_status" >&5
19878 $as_echo "$as_me: failed program was:" >&5
19879 sed 's/^/| /' conftest.$ac_ext >&5
19880
19881 ( exit $ac_status )
19882 ac_cv_func_fnmatch_gnu=no
19883 fi
19884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19885 fi
19886
19887
19888 fi
19889 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
19890 $as_echo "$ac_cv_func_fnmatch_gnu" >&6; }
19891 if test $ac_cv_func_fnmatch_gnu = yes; then
19892   rm -f lib/fnmatch.h
19893 else
19894   { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5
19895 $as_echo_n "checking whether isblank is declared... " >&6; }
19896 if test "${ac_cv_have_decl_isblank+set}" = set; then
19897   $as_echo_n "(cached) " >&6
19898 else
19899   cat >conftest.$ac_ext <<_ACEOF
19900 /* confdefs.h.  */
19901 _ACEOF
19902 cat confdefs.h >>conftest.$ac_ext
19903 cat >>conftest.$ac_ext <<_ACEOF
19904 /* end confdefs.h.  */
19905 #include <ctype.h>
19906
19907 int
19908 main ()
19909 {
19910 #ifndef isblank
19911   (void) isblank;
19912 #endif
19913
19914   ;
19915   return 0;
19916 }
19917 _ACEOF
19918 rm -f conftest.$ac_objext
19919 if { (ac_try="$ac_compile"
19920 case "(($ac_try" in
19921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922   *) ac_try_echo=$ac_try;;
19923 esac
19924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19925 $as_echo "$ac_try_echo") >&5
19926   (eval "$ac_compile") 2>conftest.er1
19927   ac_status=$?
19928   grep -v '^ *+' conftest.er1 >conftest.err
19929   rm -f conftest.er1
19930   cat conftest.err >&5
19931   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932   (exit $ac_status); } && {
19933          test -z "$ac_c_werror_flag" ||
19934          test ! -s conftest.err
19935        } && test -s conftest.$ac_objext; then
19936   ac_cv_have_decl_isblank=yes
19937 else
19938   $as_echo "$as_me: failed program was:" >&5
19939 sed 's/^/| /' conftest.$ac_ext >&5
19940
19941         ac_cv_have_decl_isblank=no
19942 fi
19943
19944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19945 fi
19946 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
19947 $as_echo "$ac_cv_have_decl_isblank" >&6; }
19948 if test $ac_cv_have_decl_isblank = yes; then
19949
19950 cat >>confdefs.h <<_ACEOF
19951 #define HAVE_DECL_ISBLANK 1
19952 _ACEOF
19953
19954
19955 else
19956   cat >>confdefs.h <<_ACEOF
19957 #define HAVE_DECL_ISBLANK 0
19958 _ACEOF
19959
19960
19961 fi
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
19989 FNMATCH_H=fnmatch.h
19990
19991 fi
19992
19993
19994   if test $ac_cv_func_fnmatch_gnu != yes; then
19995
19996 cat >>confdefs.h <<\_ACEOF
19997 #define fnmatch gnu_fnmatch
19998 _ACEOF
19999
20000   fi
20001
20002
20003
20004   gl_LIBOBJS="$gl_LIBOBJS fopen-safer.$ac_objext"
20005
20006
20007
20008 cat >>confdefs.h <<\_ACEOF
20009 #define GNULIB_FOPEN_SAFER 1
20010 _ACEOF
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021 for ac_func in __fpending
20022 do
20023 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20024 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20025 $as_echo_n "checking for $ac_func... " >&6; }
20026 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20027   $as_echo_n "(cached) " >&6
20028 else
20029   cat >conftest.$ac_ext <<_ACEOF
20030 /* confdefs.h.  */
20031 _ACEOF
20032 cat confdefs.h >>conftest.$ac_ext
20033 cat >>conftest.$ac_ext <<_ACEOF
20034 /* end confdefs.h.  */
20035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20036    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20037 #define $ac_func innocuous_$ac_func
20038
20039 /* System header to define __stub macros and hopefully few prototypes,
20040     which can conflict with char $ac_func (); below.
20041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20042     <limits.h> exists even on freestanding compilers.  */
20043
20044 #ifdef __STDC__
20045 # include <limits.h>
20046 #else
20047 # include <assert.h>
20048 #endif
20049
20050 #undef $ac_func
20051
20052 /* Override any GCC internal prototype to avoid an error.
20053    Use char because int might match the return type of a GCC
20054    builtin and then its argument prototype would still apply.  */
20055 #ifdef __cplusplus
20056 extern "C"
20057 #endif
20058 char $ac_func ();
20059 /* The GNU C library defines this for functions which it implements
20060     to always fail with ENOSYS.  Some functions are actually named
20061     something starting with __ and the normal name is an alias.  */
20062 #if defined __stub_$ac_func || defined __stub___$ac_func
20063 choke me
20064 #endif
20065
20066 int
20067 main ()
20068 {
20069 return $ac_func ();
20070   ;
20071   return 0;
20072 }
20073 _ACEOF
20074 rm -f conftest.$ac_objext conftest$ac_exeext
20075 if { (ac_try="$ac_link"
20076 case "(($ac_try" in
20077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20078   *) ac_try_echo=$ac_try;;
20079 esac
20080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20081 $as_echo "$ac_try_echo") >&5
20082   (eval "$ac_link") 2>conftest.er1
20083   ac_status=$?
20084   grep -v '^ *+' conftest.er1 >conftest.err
20085   rm -f conftest.er1
20086   cat conftest.err >&5
20087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088   (exit $ac_status); } && {
20089          test -z "$ac_c_werror_flag" ||
20090          test ! -s conftest.err
20091        } && test -s conftest$ac_exeext &&
20092        $as_test_x conftest$ac_exeext; then
20093   eval "$as_ac_var=yes"
20094 else
20095   $as_echo "$as_me: failed program was:" >&5
20096 sed 's/^/| /' conftest.$ac_ext >&5
20097
20098         eval "$as_ac_var=no"
20099 fi
20100
20101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20102       conftest$ac_exeext conftest.$ac_ext
20103 fi
20104 ac_res=`eval 'as_val=${'$as_ac_var'}
20105                  $as_echo "$as_val"'`
20106                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20107 $as_echo "$ac_res" >&6; }
20108 if test `eval 'as_val=${'$as_ac_var'}
20109                  $as_echo "$as_val"'` = yes; then
20110   cat >>confdefs.h <<_ACEOF
20111 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20112 _ACEOF
20113
20114 else
20115   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
20116 fi
20117 done
20118
20119   fp_headers='
20120 #     include <stdio.h>
20121 #     if HAVE_STDIO_EXT_H
20122 #      include <stdio_ext.h>
20123 #     endif
20124 '
20125   { $as_echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
20126 $as_echo_n "checking whether __fpending is declared... " >&6; }
20127 if test "${ac_cv_have_decl___fpending+set}" = set; then
20128   $as_echo_n "(cached) " >&6
20129 else
20130   cat >conftest.$ac_ext <<_ACEOF
20131 /* confdefs.h.  */
20132 _ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h.  */
20136 $fp_headers
20137
20138 int
20139 main ()
20140 {
20141 #ifndef __fpending
20142   (void) __fpending;
20143 #endif
20144
20145   ;
20146   return 0;
20147 }
20148 _ACEOF
20149 rm -f conftest.$ac_objext
20150 if { (ac_try="$ac_compile"
20151 case "(($ac_try" in
20152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153   *) ac_try_echo=$ac_try;;
20154 esac
20155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20156 $as_echo "$ac_try_echo") >&5
20157   (eval "$ac_compile") 2>conftest.er1
20158   ac_status=$?
20159   grep -v '^ *+' conftest.er1 >conftest.err
20160   rm -f conftest.er1
20161   cat conftest.err >&5
20162   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163   (exit $ac_status); } && {
20164          test -z "$ac_c_werror_flag" ||
20165          test ! -s conftest.err
20166        } && test -s conftest.$ac_objext; then
20167   ac_cv_have_decl___fpending=yes
20168 else
20169   $as_echo "$as_me: failed program was:" >&5
20170 sed 's/^/| /' conftest.$ac_ext >&5
20171
20172         ac_cv_have_decl___fpending=no
20173 fi
20174
20175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20176 fi
20177 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
20178 $as_echo "$ac_cv_have_decl___fpending" >&6; }
20179 if test $ac_cv_have_decl___fpending = yes; then
20180
20181 cat >>confdefs.h <<_ACEOF
20182 #define HAVE_DECL___FPENDING 1
20183 _ACEOF
20184
20185
20186 else
20187   cat >>confdefs.h <<_ACEOF
20188 #define HAVE_DECL___FPENDING 0
20189 _ACEOF
20190
20191
20192 fi
20193
20194
20195   if test $ac_cv_func___fpending = no; then
20196     { $as_echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
20197 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
20198 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
20199   $as_echo_n "(cached) " >&6
20200 else
20201
20202         for ac_expr in                                          \
20203                                                                 \
20204             '# glibc2'                                          \
20205             'fp->_IO_write_ptr - fp->_IO_write_base'            \
20206                                                                 \
20207             '# traditional Unix'                                \
20208             'fp->_ptr - fp->_base'                              \
20209                                                                 \
20210             '# BSD'                                             \
20211             'fp->_p - fp->_bf._base'                            \
20212                                                                 \
20213             '# SCO, Unixware'                                   \
20214             '(fp->__ptr ? fp->__ptr - fp->__base : 0)'          \
20215                                                                 \
20216             '# old glibc?'                                      \
20217             'fp->__bufp - fp->__buffer'                         \
20218                                                                 \
20219             '# old glibc iostream?'                             \
20220             'fp->_pptr - fp->_pbase'                            \
20221                                                                 \
20222             '# VMS'                                             \
20223             '(*fp)->_ptr - (*fp)->_base'                        \
20224                                                                 \
20225             '# e.g., DGUX R4.11; the info is not available'     \
20226             1                                                   \
20227             ; do
20228
20229           # Skip each embedded comment.
20230           case "$ac_expr" in '#'*) continue;; esac
20231
20232           cat >conftest.$ac_ext <<_ACEOF
20233 /* confdefs.h.  */
20234 _ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h.  */
20238 #include <stdio.h>
20239
20240 int
20241 main ()
20242 {
20243 FILE *fp = stdin; (void) ($ac_expr);
20244   ;
20245   return 0;
20246 }
20247 _ACEOF
20248 rm -f conftest.$ac_objext
20249 if { (ac_try="$ac_compile"
20250 case "(($ac_try" in
20251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20252   *) ac_try_echo=$ac_try;;
20253 esac
20254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20255 $as_echo "$ac_try_echo") >&5
20256   (eval "$ac_compile") 2>conftest.er1
20257   ac_status=$?
20258   grep -v '^ *+' conftest.er1 >conftest.err
20259   rm -f conftest.er1
20260   cat conftest.err >&5
20261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262   (exit $ac_status); } && {
20263          test -z "$ac_c_werror_flag" ||
20264          test ! -s conftest.err
20265        } && test -s conftest.$ac_objext; then
20266   fp_done=yes
20267
20268 else
20269   $as_echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20271
20272
20273 fi
20274
20275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20276           test "$fp_done" = yes && break
20277         done
20278
20279         ac_cv_sys_pending_output_n_bytes=$ac_expr
20280
20281
20282 fi
20283 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
20284 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
20285
20286 cat >>confdefs.h <<_ACEOF
20287 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
20288 _ACEOF
20289
20290   fi
20291
20292
20293   gl_LIBOBJS="$gl_LIBOBJS fprintftime.$ac_objext"
20294
20295
20296   { $as_echo "$as_me:$LINENO: checking whether free (NULL) is known to work" >&5
20297 $as_echo_n "checking whether free (NULL) is known to work... " >&6; }
20298 if test "${gl_cv_func_free+set}" = set; then
20299   $as_echo_n "(cached) " >&6
20300 else
20301   cat >conftest.$ac_ext <<_ACEOF
20302 /* confdefs.h.  */
20303 _ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h.  */
20307 #include <unistd.h>
20308 int
20309 main ()
20310 {
20311 #if _POSIX_VERSION < 199009L && \
20312                 (defined unix || defined _unix || defined _unix_ \
20313                  || defined __unix || defined __unix__)
20314               #error "'free (NULL)' is not known to work"
20315             #endif
20316   ;
20317   return 0;
20318 }
20319 _ACEOF
20320 rm -f conftest.$ac_objext
20321 if { (ac_try="$ac_compile"
20322 case "(($ac_try" in
20323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20324   *) ac_try_echo=$ac_try;;
20325 esac
20326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20327 $as_echo "$ac_try_echo") >&5
20328   (eval "$ac_compile") 2>conftest.er1
20329   ac_status=$?
20330   grep -v '^ *+' conftest.er1 >conftest.err
20331   rm -f conftest.er1
20332   cat conftest.err >&5
20333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334   (exit $ac_status); } && {
20335          test -z "$ac_c_werror_flag" ||
20336          test ! -s conftest.err
20337        } && test -s conftest.$ac_objext; then
20338   gl_cv_func_free=yes
20339 else
20340   $as_echo "$as_me: failed program was:" >&5
20341 sed 's/^/| /' conftest.$ac_ext >&5
20342
20343         gl_cv_func_free=no
20344 fi
20345
20346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20347 fi
20348 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_free" >&5
20349 $as_echo "$gl_cv_func_free" >&6; }
20350
20351   if test $gl_cv_func_free = no; then
20352     gl_LIBOBJS="$gl_LIBOBJS free.$ac_objext"
20353
20354 cat >>confdefs.h <<\_ACEOF
20355 #define free rpl_free
20356 _ACEOF
20357
20358   fi
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376 for ac_header in sys/mount.h
20377 do
20378 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20379 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20380 $as_echo_n "checking for $ac_header... " >&6; }
20381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20382   $as_echo_n "(cached) " >&6
20383 else
20384   cat >conftest.$ac_ext <<_ACEOF
20385 /* confdefs.h.  */
20386 _ACEOF
20387 cat confdefs.h >>conftest.$ac_ext
20388 cat >>conftest.$ac_ext <<_ACEOF
20389 /* end confdefs.h.  */
20390 $ac_includes_default
20391      #if HAVE_SYS_PARAM_H
20392        #include <sys/param.h>
20393       #endif
20394
20395 #include <$ac_header>
20396 _ACEOF
20397 rm -f conftest.$ac_objext
20398 if { (ac_try="$ac_compile"
20399 case "(($ac_try" in
20400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20401   *) ac_try_echo=$ac_try;;
20402 esac
20403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20404 $as_echo "$ac_try_echo") >&5
20405   (eval "$ac_compile") 2>conftest.er1
20406   ac_status=$?
20407   grep -v '^ *+' conftest.er1 >conftest.err
20408   rm -f conftest.er1
20409   cat conftest.err >&5
20410   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411   (exit $ac_status); } && {
20412          test -z "$ac_c_werror_flag" ||
20413          test ! -s conftest.err
20414        } && test -s conftest.$ac_objext; then
20415   eval "$as_ac_Header=yes"
20416 else
20417   $as_echo "$as_me: failed program was:" >&5
20418 sed 's/^/| /' conftest.$ac_ext >&5
20419
20420         eval "$as_ac_Header=no"
20421 fi
20422
20423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20424 fi
20425 ac_res=`eval 'as_val=${'$as_ac_Header'}
20426                  $as_echo "$as_val"'`
20427                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20428 $as_echo "$ac_res" >&6; }
20429 if test `eval 'as_val=${'$as_ac_Header'}
20430                  $as_echo "$as_val"'` = yes; then
20431   cat >>confdefs.h <<_ACEOF
20432 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20433 _ACEOF
20434
20435 fi
20436
20437 done
20438
20439
20440
20441 { $as_echo "$as_me:$LINENO: checking how to get file system space usage" >&5
20442 $as_echo "$as_me: checking how to get file system space usage" >&6;}
20443 ac_fsusage_space=no
20444
20445 # Perform only the link test since it seems there are no variants of the
20446 # statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs)
20447 # because that got a false positive on SCO OSR5.  Adding the declaration
20448 # of a `struct statvfs' causes this test to fail (as it should) on such
20449 # systems.  That system is reported to work fine with STAT_STATFS4 which
20450 # is what it gets when this test fails.
20451 if test $ac_fsusage_space = no; then
20452   # SVR4
20453   { $as_echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
20454 $as_echo_n "checking for statvfs function (SVR4)... " >&6; }
20455 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
20456   $as_echo_n "(cached) " >&6
20457 else
20458   cat >conftest.$ac_ext <<_ACEOF
20459 /* confdefs.h.  */
20460 _ACEOF
20461 cat confdefs.h >>conftest.$ac_ext
20462 cat >>conftest.$ac_ext <<_ACEOF
20463 /* end confdefs.h.  */
20464 #include <sys/types.h>
20465 #if defined __GLIBC__ && !defined __BEOS__
20466 Do not use statvfs on systems with GNU libc, because that function stats
20467 all preceding entries in /proc/mounts, and that makes df hang if even
20468 one of the corresponding file systems is hard-mounted, but not available.
20469 statvfs in GNU libc on BeOS operates differently: it only makes a system
20470 call.
20471 #endif
20472 #include <sys/statvfs.h>
20473 int
20474 main ()
20475 {
20476 struct statvfs fsd; statvfs (0, &fsd);
20477   ;
20478   return 0;
20479 }
20480 _ACEOF
20481 rm -f conftest.$ac_objext conftest$ac_exeext
20482 if { (ac_try="$ac_link"
20483 case "(($ac_try" in
20484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485   *) ac_try_echo=$ac_try;;
20486 esac
20487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20488 $as_echo "$ac_try_echo") >&5
20489   (eval "$ac_link") 2>conftest.er1
20490   ac_status=$?
20491   grep -v '^ *+' conftest.er1 >conftest.err
20492   rm -f conftest.er1
20493   cat conftest.err >&5
20494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495   (exit $ac_status); } && {
20496          test -z "$ac_c_werror_flag" ||
20497          test ! -s conftest.err
20498        } && test -s conftest$ac_exeext &&
20499        $as_test_x conftest$ac_exeext; then
20500   fu_cv_sys_stat_statvfs=yes
20501 else
20502   $as_echo "$as_me: failed program was:" >&5
20503 sed 's/^/| /' conftest.$ac_ext >&5
20504
20505         fu_cv_sys_stat_statvfs=no
20506 fi
20507
20508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20509       conftest$ac_exeext conftest.$ac_ext
20510 fi
20511 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
20512 $as_echo "$fu_cv_sys_stat_statvfs" >&6; }
20513   if test $fu_cv_sys_stat_statvfs = yes; then
20514     ac_fsusage_space=yes
20515
20516 cat >>confdefs.h <<\_ACEOF
20517 #define STAT_STATVFS 1
20518 _ACEOF
20519
20520   fi
20521 fi
20522
20523 if test $ac_fsusage_space = no; then
20524   # DEC Alpha running OSF/1
20525   { $as_echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
20526 $as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
20527   if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
20528   $as_echo_n "(cached) " >&6
20529 else
20530   if test "$cross_compiling" = yes; then
20531   fu_cv_sys_stat_statfs3_osf1=no
20532 else
20533   cat >conftest.$ac_ext <<_ACEOF
20534 /* confdefs.h.  */
20535 _ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h.  */
20539
20540 #include <sys/param.h>
20541 #include <sys/types.h>
20542 #include <sys/mount.h>
20543   int
20544   main ()
20545   {
20546     struct statfs fsd;
20547     fsd.f_fsize = 0;
20548     return statfs (".", &fsd, sizeof (struct statfs)) != 0;
20549   }
20550 _ACEOF
20551 rm -f conftest$ac_exeext
20552 if { (ac_try="$ac_link"
20553 case "(($ac_try" in
20554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20555   *) ac_try_echo=$ac_try;;
20556 esac
20557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20558 $as_echo "$ac_try_echo") >&5
20559   (eval "$ac_link") 2>&5
20560   ac_status=$?
20561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20563   { (case "(($ac_try" in
20564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20565   *) ac_try_echo=$ac_try;;
20566 esac
20567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20568 $as_echo "$ac_try_echo") >&5
20569   (eval "$ac_try") 2>&5
20570   ac_status=$?
20571   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572   (exit $ac_status); }; }; then
20573   fu_cv_sys_stat_statfs3_osf1=yes
20574 else
20575   $as_echo "$as_me: program exited with status $ac_status" >&5
20576 $as_echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20578
20579 ( exit $ac_status )
20580 fu_cv_sys_stat_statfs3_osf1=no
20581 fi
20582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20583 fi
20584
20585
20586 fi
20587
20588   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
20589 $as_echo "$fu_cv_sys_stat_statfs3_osf1" >&6; }
20590   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
20591     ac_fsusage_space=yes
20592
20593 cat >>confdefs.h <<\_ACEOF
20594 #define STAT_STATFS3_OSF1 1
20595 _ACEOF
20596
20597   fi
20598 fi
20599
20600 if test $ac_fsusage_space = no; then
20601 # AIX
20602   { $as_echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
20603 $as_echo_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... " >&6; }
20604   if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
20605   $as_echo_n "(cached) " >&6
20606 else
20607   if test "$cross_compiling" = yes; then
20608   fu_cv_sys_stat_statfs2_bsize=no
20609 else
20610   cat >conftest.$ac_ext <<_ACEOF
20611 /* confdefs.h.  */
20612 _ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h.  */
20616
20617 #ifdef HAVE_SYS_PARAM_H
20618 #include <sys/param.h>
20619 #endif
20620 #ifdef HAVE_SYS_MOUNT_H
20621 #include <sys/mount.h>
20622 #endif
20623 #ifdef HAVE_SYS_VFS_H
20624 #include <sys/vfs.h>
20625 #endif
20626   int
20627   main ()
20628   {
20629   struct statfs fsd;
20630   fsd.f_bsize = 0;
20631   return statfs (".", &fsd) != 0;
20632   }
20633 _ACEOF
20634 rm -f conftest$ac_exeext
20635 if { (ac_try="$ac_link"
20636 case "(($ac_try" in
20637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638   *) ac_try_echo=$ac_try;;
20639 esac
20640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20641 $as_echo "$ac_try_echo") >&5
20642   (eval "$ac_link") 2>&5
20643   ac_status=$?
20644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20646   { (case "(($ac_try" in
20647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648   *) ac_try_echo=$ac_try;;
20649 esac
20650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20651 $as_echo "$ac_try_echo") >&5
20652   (eval "$ac_try") 2>&5
20653   ac_status=$?
20654   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655   (exit $ac_status); }; }; then
20656   fu_cv_sys_stat_statfs2_bsize=yes
20657 else
20658   $as_echo "$as_me: program exited with status $ac_status" >&5
20659 $as_echo "$as_me: failed program was:" >&5
20660 sed 's/^/| /' conftest.$ac_ext >&5
20661
20662 ( exit $ac_status )
20663 fu_cv_sys_stat_statfs2_bsize=no
20664 fi
20665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20666 fi
20667
20668
20669 fi
20670
20671   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
20672 $as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
20673   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
20674     ac_fsusage_space=yes
20675
20676 cat >>confdefs.h <<\_ACEOF
20677 #define STAT_STATFS2_BSIZE 1
20678 _ACEOF
20679
20680   fi
20681 fi
20682
20683 if test $ac_fsusage_space = no; then
20684 # SVR3
20685   { $as_echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
20686 $as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
20687   if test "${fu_cv_sys_stat_statfs4+set}" = set; then
20688   $as_echo_n "(cached) " >&6
20689 else
20690   if test "$cross_compiling" = yes; then
20691   fu_cv_sys_stat_statfs4=no
20692 else
20693   cat >conftest.$ac_ext <<_ACEOF
20694 /* confdefs.h.  */
20695 _ACEOF
20696 cat confdefs.h >>conftest.$ac_ext
20697 cat >>conftest.$ac_ext <<_ACEOF
20698 /* end confdefs.h.  */
20699 #include <sys/types.h>
20700 #include <sys/statfs.h>
20701   int
20702   main ()
20703   {
20704   struct statfs fsd;
20705   return statfs (".", &fsd, sizeof fsd, 0) != 0;
20706   }
20707 _ACEOF
20708 rm -f conftest$ac_exeext
20709 if { (ac_try="$ac_link"
20710 case "(($ac_try" in
20711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20712   *) ac_try_echo=$ac_try;;
20713 esac
20714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20715 $as_echo "$ac_try_echo") >&5
20716   (eval "$ac_link") 2>&5
20717   ac_status=$?
20718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20720   { (case "(($ac_try" in
20721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20722   *) ac_try_echo=$ac_try;;
20723 esac
20724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20725 $as_echo "$ac_try_echo") >&5
20726   (eval "$ac_try") 2>&5
20727   ac_status=$?
20728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729   (exit $ac_status); }; }; then
20730   fu_cv_sys_stat_statfs4=yes
20731 else
20732   $as_echo "$as_me: program exited with status $ac_status" >&5
20733 $as_echo "$as_me: failed program was:" >&5
20734 sed 's/^/| /' conftest.$ac_ext >&5
20735
20736 ( exit $ac_status )
20737 fu_cv_sys_stat_statfs4=no
20738 fi
20739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20740 fi
20741
20742
20743 fi
20744
20745   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
20746 $as_echo "$fu_cv_sys_stat_statfs4" >&6; }
20747   if test $fu_cv_sys_stat_statfs4 = yes; then
20748     ac_fsusage_space=yes
20749
20750 cat >>confdefs.h <<\_ACEOF
20751 #define STAT_STATFS4 1
20752 _ACEOF
20753
20754   fi
20755 fi
20756
20757 if test $ac_fsusage_space = no; then
20758 # 4.4BSD and NetBSD
20759   { $as_echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
20760 $as_echo_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... " >&6; }
20761   if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
20762   $as_echo_n "(cached) " >&6
20763 else
20764   if test "$cross_compiling" = yes; then
20765   fu_cv_sys_stat_statfs2_fsize=no
20766 else
20767   cat >conftest.$ac_ext <<_ACEOF
20768 /* confdefs.h.  */
20769 _ACEOF
20770 cat confdefs.h >>conftest.$ac_ext
20771 cat >>conftest.$ac_ext <<_ACEOF
20772 /* end confdefs.h.  */
20773 #include <sys/types.h>
20774 #ifdef HAVE_SYS_PARAM_H
20775 #include <sys/param.h>
20776 #endif
20777 #ifdef HAVE_SYS_MOUNT_H
20778 #include <sys/mount.h>
20779 #endif
20780   int
20781   main ()
20782   {
20783   struct statfs fsd;
20784   fsd.f_fsize = 0;
20785   return statfs (".", &fsd) != 0;
20786   }
20787 _ACEOF
20788 rm -f conftest$ac_exeext
20789 if { (ac_try="$ac_link"
20790 case "(($ac_try" in
20791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792   *) ac_try_echo=$ac_try;;
20793 esac
20794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20795 $as_echo "$ac_try_echo") >&5
20796   (eval "$ac_link") 2>&5
20797   ac_status=$?
20798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20800   { (case "(($ac_try" in
20801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802   *) ac_try_echo=$ac_try;;
20803 esac
20804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20805 $as_echo "$ac_try_echo") >&5
20806   (eval "$ac_try") 2>&5
20807   ac_status=$?
20808   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809   (exit $ac_status); }; }; then
20810   fu_cv_sys_stat_statfs2_fsize=yes
20811 else
20812   $as_echo "$as_me: program exited with status $ac_status" >&5
20813 $as_echo "$as_me: failed program was:" >&5
20814 sed 's/^/| /' conftest.$ac_ext >&5
20815
20816 ( exit $ac_status )
20817 fu_cv_sys_stat_statfs2_fsize=no
20818 fi
20819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20820 fi
20821
20822
20823 fi
20824
20825   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
20826 $as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
20827   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
20828     ac_fsusage_space=yes
20829
20830 cat >>confdefs.h <<\_ACEOF
20831 #define STAT_STATFS2_FSIZE 1
20832 _ACEOF
20833
20834   fi
20835 fi
20836
20837 if test $ac_fsusage_space = no; then
20838   # Ultrix
20839   { $as_echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
20840 $as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
20841   if test "${fu_cv_sys_stat_fs_data+set}" = set; then
20842   $as_echo_n "(cached) " >&6
20843 else
20844   if test "$cross_compiling" = yes; then
20845   fu_cv_sys_stat_fs_data=no
20846 else
20847   cat >conftest.$ac_ext <<_ACEOF
20848 /* confdefs.h.  */
20849 _ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h.  */
20853 #include <sys/types.h>
20854 #ifdef HAVE_SYS_PARAM_H
20855 #include <sys/param.h>
20856 #endif
20857 #ifdef HAVE_SYS_MOUNT_H
20858 #include <sys/mount.h>
20859 #endif
20860 #ifdef HAVE_SYS_FS_TYPES_H
20861 #include <sys/fs_types.h>
20862 #endif
20863   int
20864   main ()
20865   {
20866   struct fs_data fsd;
20867   /* Ultrix's statfs returns 1 for success,
20868      0 for not mounted, -1 for failure.  */
20869   return statfs (".", &fsd) != 1;
20870   }
20871 _ACEOF
20872 rm -f conftest$ac_exeext
20873 if { (ac_try="$ac_link"
20874 case "(($ac_try" in
20875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20876   *) ac_try_echo=$ac_try;;
20877 esac
20878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20879 $as_echo "$ac_try_echo") >&5
20880   (eval "$ac_link") 2>&5
20881   ac_status=$?
20882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20884   { (case "(($ac_try" in
20885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20886   *) ac_try_echo=$ac_try;;
20887 esac
20888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20889 $as_echo "$ac_try_echo") >&5
20890   (eval "$ac_try") 2>&5
20891   ac_status=$?
20892   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893   (exit $ac_status); }; }; then
20894   fu_cv_sys_stat_fs_data=yes
20895 else
20896   $as_echo "$as_me: program exited with status $ac_status" >&5
20897 $as_echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20899
20900 ( exit $ac_status )
20901 fu_cv_sys_stat_fs_data=no
20902 fi
20903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20904 fi
20905
20906
20907 fi
20908
20909   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
20910 $as_echo "$fu_cv_sys_stat_fs_data" >&6; }
20911   if test $fu_cv_sys_stat_fs_data = yes; then
20912     ac_fsusage_space=yes
20913
20914 cat >>confdefs.h <<\_ACEOF
20915 #define STAT_STATFS2_FS_DATA 1
20916 _ACEOF
20917
20918   fi
20919 fi
20920
20921 if test $ac_fsusage_space = no; then
20922   # SVR2
20923   cat >conftest.$ac_ext <<_ACEOF
20924 /* confdefs.h.  */
20925 _ACEOF
20926 cat confdefs.h >>conftest.$ac_ext
20927 cat >>conftest.$ac_ext <<_ACEOF
20928 /* end confdefs.h.  */
20929 #include <sys/filsys.h>
20930
20931 _ACEOF
20932 if { (ac_try="$ac_cpp conftest.$ac_ext"
20933 case "(($ac_try" in
20934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20935   *) ac_try_echo=$ac_try;;
20936 esac
20937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20938 $as_echo "$ac_try_echo") >&5
20939   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20940   ac_status=$?
20941   grep -v '^ *+' conftest.er1 >conftest.err
20942   rm -f conftest.er1
20943   cat conftest.err >&5
20944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945   (exit $ac_status); } >/dev/null && {
20946          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20947          test ! -s conftest.err
20948        }; then
20949
20950 cat >>confdefs.h <<\_ACEOF
20951 #define STAT_READ_FILSYS 1
20952 _ACEOF
20953
20954     ac_fsusage_space=yes
20955 else
20956   $as_echo "$as_me: failed program was:" >&5
20957 sed 's/^/| /' conftest.$ac_ext >&5
20958
20959
20960 fi
20961
20962 rm -f conftest.err conftest.$ac_ext
20963 fi
20964
20965 if test $ac_fsusage_space = yes; then
20966   gl_cv_fs_space=yes
20967 else
20968   gl_cv_fs_space=no
20969 fi
20970
20971
20972
20973   if test $gl_cv_fs_space = yes; then
20974     gl_LIBOBJS="$gl_LIBOBJS fsusage.$ac_objext"
20975
20976
20977
20978
20979
20980 for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h
20981 do
20982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20984   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20985 $as_echo_n "checking for $ac_header... " >&6; }
20986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20987   $as_echo_n "(cached) " >&6
20988 fi
20989 ac_res=`eval 'as_val=${'$as_ac_Header'}
20990                  $as_echo "$as_val"'`
20991                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20992 $as_echo "$ac_res" >&6; }
20993 else
20994   # Is the header compilable?
20995 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20996 $as_echo_n "checking $ac_header usability... " >&6; }
20997 cat >conftest.$ac_ext <<_ACEOF
20998 /* confdefs.h.  */
20999 _ACEOF
21000 cat confdefs.h >>conftest.$ac_ext
21001 cat >>conftest.$ac_ext <<_ACEOF
21002 /* end confdefs.h.  */
21003 $ac_includes_default
21004 #include <$ac_header>
21005 _ACEOF
21006 rm -f conftest.$ac_objext
21007 if { (ac_try="$ac_compile"
21008 case "(($ac_try" in
21009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21010   *) ac_try_echo=$ac_try;;
21011 esac
21012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21013 $as_echo "$ac_try_echo") >&5
21014   (eval "$ac_compile") 2>conftest.er1
21015   ac_status=$?
21016   grep -v '^ *+' conftest.er1 >conftest.err
21017   rm -f conftest.er1
21018   cat conftest.err >&5
21019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020   (exit $ac_status); } && {
21021          test -z "$ac_c_werror_flag" ||
21022          test ! -s conftest.err
21023        } && test -s conftest.$ac_objext; then
21024   ac_header_compiler=yes
21025 else
21026   $as_echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21028
21029         ac_header_compiler=no
21030 fi
21031
21032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21033 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21034 $as_echo "$ac_header_compiler" >&6; }
21035
21036 # Is the header present?
21037 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21038 $as_echo_n "checking $ac_header presence... " >&6; }
21039 cat >conftest.$ac_ext <<_ACEOF
21040 /* confdefs.h.  */
21041 _ACEOF
21042 cat confdefs.h >>conftest.$ac_ext
21043 cat >>conftest.$ac_ext <<_ACEOF
21044 /* end confdefs.h.  */
21045 #include <$ac_header>
21046 _ACEOF
21047 if { (ac_try="$ac_cpp conftest.$ac_ext"
21048 case "(($ac_try" in
21049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050   *) ac_try_echo=$ac_try;;
21051 esac
21052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21053 $as_echo "$ac_try_echo") >&5
21054   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21055   ac_status=$?
21056   grep -v '^ *+' conftest.er1 >conftest.err
21057   rm -f conftest.er1
21058   cat conftest.err >&5
21059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060   (exit $ac_status); } >/dev/null && {
21061          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21062          test ! -s conftest.err
21063        }; then
21064   ac_header_preproc=yes
21065 else
21066   $as_echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21068
21069   ac_header_preproc=no
21070 fi
21071
21072 rm -f conftest.err conftest.$ac_ext
21073 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21074 $as_echo "$ac_header_preproc" >&6; }
21075
21076 # So?  What about this header?
21077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21078   yes:no: )
21079     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21080 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21081     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21082 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21083     ac_header_preproc=yes
21084     ;;
21085   no:yes:* )
21086     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21087 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21088     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21089 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21090     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21091 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21092     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21093 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21094     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21095 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21096     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21097 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21098     ( cat <<\_ASBOX
21099 ## ------------------------------------ ##
21100 ## Report this to bug-coreutils@gnu.org ##
21101 ## ------------------------------------ ##
21102 _ASBOX
21103      ) | sed "s/^/$as_me: WARNING:     /" >&2
21104     ;;
21105 esac
21106 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21107 $as_echo_n "checking for $ac_header... " >&6; }
21108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21109   $as_echo_n "(cached) " >&6
21110 else
21111   eval "$as_ac_Header=\$ac_header_preproc"
21112 fi
21113 ac_res=`eval 'as_val=${'$as_ac_Header'}
21114                  $as_echo "$as_val"'`
21115                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21116 $as_echo "$ac_res" >&6; }
21117
21118 fi
21119 if test `eval 'as_val=${'$as_ac_Header'}
21120                  $as_echo "$as_val"'` = yes; then
21121   cat >>confdefs.h <<_ACEOF
21122 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21123 _ACEOF
21124
21125 fi
21126
21127 done
21128
21129
21130   { $as_echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
21131 $as_echo_n "checking for statfs that truncates block counts... " >&6; }
21132   if test "${fu_cv_sys_truncating_statfs+set}" = set; then
21133   $as_echo_n "(cached) " >&6
21134 else
21135   cat >conftest.$ac_ext <<_ACEOF
21136 /* confdefs.h.  */
21137 _ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h.  */
21141
21142 #if !defined(sun) && !defined(__sun)
21143 choke -- this is a workaround for a Sun-specific problem
21144 #endif
21145 #include <sys/types.h>
21146 #include <sys/vfs.h>
21147 int
21148 main ()
21149 {
21150 struct statfs t; long c = *(t.f_spare);
21151       if (c) return 0;
21152   ;
21153   return 0;
21154 }
21155 _ACEOF
21156 rm -f conftest.$ac_objext
21157 if { (ac_try="$ac_compile"
21158 case "(($ac_try" in
21159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21160   *) ac_try_echo=$ac_try;;
21161 esac
21162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21163 $as_echo "$ac_try_echo") >&5
21164   (eval "$ac_compile") 2>conftest.er1
21165   ac_status=$?
21166   grep -v '^ *+' conftest.er1 >conftest.err
21167   rm -f conftest.er1
21168   cat conftest.err >&5
21169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170   (exit $ac_status); } && {
21171          test -z "$ac_c_werror_flag" ||
21172          test ! -s conftest.err
21173        } && test -s conftest.$ac_objext; then
21174   fu_cv_sys_truncating_statfs=yes
21175 else
21176   $as_echo "$as_me: failed program was:" >&5
21177 sed 's/^/| /' conftest.$ac_ext >&5
21178
21179         fu_cv_sys_truncating_statfs=no
21180 fi
21181
21182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21183 fi
21184
21185   if test $fu_cv_sys_truncating_statfs = yes; then
21186
21187 cat >>confdefs.h <<\_ACEOF
21188 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
21189 _ACEOF
21190
21191   fi
21192   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
21193 $as_echo "$fu_cv_sys_truncating_statfs" >&6; }
21194
21195
21196   fi
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207   if test $ac_cv_func_ftruncate = no; then
21208     HAVE_FTRUNCATE=0
21209     gl_LIBOBJS="$gl_LIBOBJS ftruncate.$ac_objext"
21210
21211
21212 for ac_func in chsize
21213 do
21214 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21215 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21216 $as_echo_n "checking for $ac_func... " >&6; }
21217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21218   $as_echo_n "(cached) " >&6
21219 else
21220   cat >conftest.$ac_ext <<_ACEOF
21221 /* confdefs.h.  */
21222 _ACEOF
21223 cat confdefs.h >>conftest.$ac_ext
21224 cat >>conftest.$ac_ext <<_ACEOF
21225 /* end confdefs.h.  */
21226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21227    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21228 #define $ac_func innocuous_$ac_func
21229
21230 /* System header to define __stub macros and hopefully few prototypes,
21231     which can conflict with char $ac_func (); below.
21232     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21233     <limits.h> exists even on freestanding compilers.  */
21234
21235 #ifdef __STDC__
21236 # include <limits.h>
21237 #else
21238 # include <assert.h>
21239 #endif
21240
21241 #undef $ac_func
21242
21243 /* Override any GCC internal prototype to avoid an error.
21244    Use char because int might match the return type of a GCC
21245    builtin and then its argument prototype would still apply.  */
21246 #ifdef __cplusplus
21247 extern "C"
21248 #endif
21249 char $ac_func ();
21250 /* The GNU C library defines this for functions which it implements
21251     to always fail with ENOSYS.  Some functions are actually named
21252     something starting with __ and the normal name is an alias.  */
21253 #if defined __stub_$ac_func || defined __stub___$ac_func
21254 choke me
21255 #endif
21256
21257 int
21258 main ()
21259 {
21260 return $ac_func ();
21261   ;
21262   return 0;
21263 }
21264 _ACEOF
21265 rm -f conftest.$ac_objext conftest$ac_exeext
21266 if { (ac_try="$ac_link"
21267 case "(($ac_try" in
21268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21269   *) ac_try_echo=$ac_try;;
21270 esac
21271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21272 $as_echo "$ac_try_echo") >&5
21273   (eval "$ac_link") 2>conftest.er1
21274   ac_status=$?
21275   grep -v '^ *+' conftest.er1 >conftest.err
21276   rm -f conftest.er1
21277   cat conftest.err >&5
21278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279   (exit $ac_status); } && {
21280          test -z "$ac_c_werror_flag" ||
21281          test ! -s conftest.err
21282        } && test -s conftest$ac_exeext &&
21283        $as_test_x conftest$ac_exeext; then
21284   eval "$as_ac_var=yes"
21285 else
21286   $as_echo "$as_me: failed program was:" >&5
21287 sed 's/^/| /' conftest.$ac_ext >&5
21288
21289         eval "$as_ac_var=no"
21290 fi
21291
21292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21293       conftest$ac_exeext conftest.$ac_ext
21294 fi
21295 ac_res=`eval 'as_val=${'$as_ac_var'}
21296                  $as_echo "$as_val"'`
21297                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21298 $as_echo "$ac_res" >&6; }
21299 if test `eval 'as_val=${'$as_ac_var'}
21300                  $as_echo "$as_val"'` = yes; then
21301   cat >>confdefs.h <<_ACEOF
21302 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21303 _ACEOF
21304
21305 fi
21306 done
21307
21308
21309     case "$host_os" in
21310       mingw*)
21311         # Yes, we know mingw lacks ftruncate.
21312         ;;
21313       *)
21314         # If someone lacks ftruncate, make configure fail, and request
21315         # a bug report to inform us about it.
21316         if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
21317           { { $as_echo "$as_me:$LINENO: error: Your system lacks the ftruncate function.
21318               Please report this, along with the output of \"uname -a\", to the
21319               bug-coreutils@gnu.org mailing list.  To continue past this point,
21320               rerun configure with SKIP_FTRUNCATE_CHECK=yes.
21321               E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
21322 See \`config.log' for more details." >&5
21323 $as_echo "$as_me: error: Your system lacks the ftruncate function.
21324               Please report this, along with the output of \"uname -a\", to the
21325               bug-coreutils@gnu.org mailing list.  To continue past this point,
21326               rerun configure with SKIP_FTRUNCATE_CHECK=yes.
21327               E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
21328 See \`config.log' for more details." >&2;}
21329    { (exit 1); exit 1; }; }
21330         fi
21331     esac
21332   fi
21333
21334
21335
21336   GNULIB_FTRUNCATE=1
21337
21338
21339
21340       gl_LIBOBJS="$gl_LIBOBJS fts.$ac_objext"
21341
21342
21343   gl_LIBOBJS="$gl_LIBOBJS openat-die.$ac_objext"
21344   gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361 for ac_func in fchmodat mkdirat openat
21362 do
21363 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21364 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21365 $as_echo_n "checking for $ac_func... " >&6; }
21366 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21367   $as_echo_n "(cached) " >&6
21368 else
21369   cat >conftest.$ac_ext <<_ACEOF
21370 /* confdefs.h.  */
21371 _ACEOF
21372 cat confdefs.h >>conftest.$ac_ext
21373 cat >>conftest.$ac_ext <<_ACEOF
21374 /* end confdefs.h.  */
21375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21376    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21377 #define $ac_func innocuous_$ac_func
21378
21379 /* System header to define __stub macros and hopefully few prototypes,
21380     which can conflict with char $ac_func (); below.
21381     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21382     <limits.h> exists even on freestanding compilers.  */
21383
21384 #ifdef __STDC__
21385 # include <limits.h>
21386 #else
21387 # include <assert.h>
21388 #endif
21389
21390 #undef $ac_func
21391
21392 /* Override any GCC internal prototype to avoid an error.
21393    Use char because int might match the return type of a GCC
21394    builtin and then its argument prototype would still apply.  */
21395 #ifdef __cplusplus
21396 extern "C"
21397 #endif
21398 char $ac_func ();
21399 /* The GNU C library defines this for functions which it implements
21400     to always fail with ENOSYS.  Some functions are actually named
21401     something starting with __ and the normal name is an alias.  */
21402 #if defined __stub_$ac_func || defined __stub___$ac_func
21403 choke me
21404 #endif
21405
21406 int
21407 main ()
21408 {
21409 return $ac_func ();
21410   ;
21411   return 0;
21412 }
21413 _ACEOF
21414 rm -f conftest.$ac_objext conftest$ac_exeext
21415 if { (ac_try="$ac_link"
21416 case "(($ac_try" in
21417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21418   *) ac_try_echo=$ac_try;;
21419 esac
21420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21421 $as_echo "$ac_try_echo") >&5
21422   (eval "$ac_link") 2>conftest.er1
21423   ac_status=$?
21424   grep -v '^ *+' conftest.er1 >conftest.err
21425   rm -f conftest.er1
21426   cat conftest.err >&5
21427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428   (exit $ac_status); } && {
21429          test -z "$ac_c_werror_flag" ||
21430          test ! -s conftest.err
21431        } && test -s conftest$ac_exeext &&
21432        $as_test_x conftest$ac_exeext; then
21433   eval "$as_ac_var=yes"
21434 else
21435   $as_echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21437
21438         eval "$as_ac_var=no"
21439 fi
21440
21441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21442       conftest$ac_exeext conftest.$ac_ext
21443 fi
21444 ac_res=`eval 'as_val=${'$as_ac_var'}
21445                  $as_echo "$as_val"'`
21446                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21447 $as_echo "$ac_res" >&6; }
21448 if test `eval 'as_val=${'$as_ac_var'}
21449                  $as_echo "$as_val"'` = yes; then
21450   cat >>confdefs.h <<_ACEOF
21451 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21452 _ACEOF
21453
21454 else
21455   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
21456 fi
21457 done
21458
21459   case $ac_cv_func_openat+$ac_cv_func_lstat_dereferences_slashed_symlink in
21460   yes+yes) ;;
21461   yes+*) gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext";;
21462   *)
21463
21464 cat >>confdefs.h <<\_ACEOF
21465 #define __OPENAT_PREFIX rpl_
21466 _ACEOF
21467
21468
21469   :
21470 ;;
21471   esac
21472
21473   # Assume we'll use the replacement function.
21474   # The only case in which we won't is when we have fchownat, and it works.
21475   use_replacement_fchownat=yes
21476
21477   { $as_echo "$as_me:$LINENO: checking for fchownat" >&5
21478 $as_echo_n "checking for fchownat... " >&6; }
21479 if test "${ac_cv_func_fchownat+set}" = set; then
21480   $as_echo_n "(cached) " >&6
21481 else
21482   cat >conftest.$ac_ext <<_ACEOF
21483 /* confdefs.h.  */
21484 _ACEOF
21485 cat confdefs.h >>conftest.$ac_ext
21486 cat >>conftest.$ac_ext <<_ACEOF
21487 /* end confdefs.h.  */
21488 /* Define fchownat to an innocuous variant, in case <limits.h> declares fchownat.
21489    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21490 #define fchownat innocuous_fchownat
21491
21492 /* System header to define __stub macros and hopefully few prototypes,
21493     which can conflict with char fchownat (); below.
21494     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21495     <limits.h> exists even on freestanding compilers.  */
21496
21497 #ifdef __STDC__
21498 # include <limits.h>
21499 #else
21500 # include <assert.h>
21501 #endif
21502
21503 #undef fchownat
21504
21505 /* Override any GCC internal prototype to avoid an error.
21506    Use char because int might match the return type of a GCC
21507    builtin and then its argument prototype would still apply.  */
21508 #ifdef __cplusplus
21509 extern "C"
21510 #endif
21511 char fchownat ();
21512 /* The GNU C library defines this for functions which it implements
21513     to always fail with ENOSYS.  Some functions are actually named
21514     something starting with __ and the normal name is an alias.  */
21515 #if defined __stub_fchownat || defined __stub___fchownat
21516 choke me
21517 #endif
21518
21519 int
21520 main ()
21521 {
21522 return fchownat ();
21523   ;
21524   return 0;
21525 }
21526 _ACEOF
21527 rm -f conftest.$ac_objext conftest$ac_exeext
21528 if { (ac_try="$ac_link"
21529 case "(($ac_try" in
21530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21531   *) ac_try_echo=$ac_try;;
21532 esac
21533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21534 $as_echo "$ac_try_echo") >&5
21535   (eval "$ac_link") 2>conftest.er1
21536   ac_status=$?
21537   grep -v '^ *+' conftest.er1 >conftest.err
21538   rm -f conftest.er1
21539   cat conftest.err >&5
21540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541   (exit $ac_status); } && {
21542          test -z "$ac_c_werror_flag" ||
21543          test ! -s conftest.err
21544        } && test -s conftest$ac_exeext &&
21545        $as_test_x conftest$ac_exeext; then
21546   ac_cv_func_fchownat=yes
21547 else
21548   $as_echo "$as_me: failed program was:" >&5
21549 sed 's/^/| /' conftest.$ac_ext >&5
21550
21551         ac_cv_func_fchownat=no
21552 fi
21553
21554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21555       conftest$ac_exeext conftest.$ac_ext
21556 fi
21557 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fchownat" >&5
21558 $as_echo "$ac_cv_func_fchownat" >&6; }
21559 if test $ac_cv_func_fchownat = yes; then
21560   have_fchownat=yes
21561 else
21562   have_fchownat=no
21563 fi
21564
21565   if test $have_fchownat = yes; then
21566
21567   { $as_echo "$as_me:$LINENO: checking whether fchownat works with AT_SYMLINK_NOFOLLOW" >&5
21568 $as_echo_n "checking whether fchownat works with AT_SYMLINK_NOFOLLOW... " >&6; }
21569 if test "${gl_cv_func_fchownat_nofollow_works+set}" = set; then
21570   $as_echo_n "(cached) " >&6
21571 else
21572
21573      gl_dangle=conftest.dangle
21574      # Remove any remnants of a previous test.
21575      rm -f $gl_dangle
21576      # Arrange for deletion of the temporary file this test creates.
21577      ac_clean_files="$ac_clean_files $gl_dangle"
21578      if test "$cross_compiling" = yes; then
21579   gl_cv_func_fchownat_nofollow_works=no
21580 else
21581   cat >conftest.$ac_ext <<_ACEOF
21582 /* confdefs.h.  */
21583 _ACEOF
21584 cat confdefs.h >>conftest.$ac_ext
21585 cat >>conftest.$ac_ext <<_ACEOF
21586 /* end confdefs.h.  */
21587
21588 #include <fcntl.h>
21589 #include <unistd.h>
21590 #include <stdlib.h>
21591 #include <errno.h>
21592 #include <sys/types.h>
21593 int
21594 main ()
21595 {
21596   return (fchownat (AT_FDCWD, "$gl_dangle", -1, getgid (),
21597                     AT_SYMLINK_NOFOLLOW) != 0
21598           && errno == ENOENT);
21599 }
21600
21601 _ACEOF
21602 rm -f conftest$ac_exeext
21603 if { (ac_try="$ac_link"
21604 case "(($ac_try" in
21605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21606   *) ac_try_echo=$ac_try;;
21607 esac
21608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21609 $as_echo "$ac_try_echo") >&5
21610   (eval "$ac_link") 2>&5
21611   ac_status=$?
21612   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21614   { (case "(($ac_try" in
21615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21616   *) ac_try_echo=$ac_try;;
21617 esac
21618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21619 $as_echo "$ac_try_echo") >&5
21620   (eval "$ac_try") 2>&5
21621   ac_status=$?
21622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623   (exit $ac_status); }; }; then
21624   gl_cv_func_fchownat_nofollow_works=yes
21625 else
21626   $as_echo "$as_me: program exited with status $ac_status" >&5
21627 $as_echo "$as_me: failed program was:" >&5
21628 sed 's/^/| /' conftest.$ac_ext >&5
21629
21630 ( exit $ac_status )
21631 gl_cv_func_fchownat_nofollow_works=no
21632 fi
21633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21634 fi
21635
21636
21637
21638 fi
21639 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fchownat_nofollow_works" >&5
21640 $as_echo "$gl_cv_func_fchownat_nofollow_works" >&6; }
21641   if test $gl_cv_func_fchownat_nofollow_works = no; then
21642   have_fchownat_bug=yes
21643 fi
21644
21645
21646     if test $have_fchownat_bug = no; then
21647       use_replacement_fchownat=no
21648     fi
21649   fi
21650
21651   if test $use_replacement_fchownat = yes; then
21652     gl_LIBOBJS="$gl_LIBOBJS fchownat.$ac_objext"
21653
21654 cat >>confdefs.h <<\_ACEOF
21655 #define fchownat rpl_fchownat
21656 _ACEOF
21657
21658   fi
21659
21660
21661
21662   # Checks for header files.
21663
21664
21665
21666
21667
21668
21669
21670
21671
21672 cat >>confdefs.h <<\_ACEOF
21673 #define GNULIB_FTS 1
21674 _ACEOF
21675
21676
21677
21678   { $as_echo "$as_me:$LINENO: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
21679 $as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
21680
21681   { $as_echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
21682 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
21683 if test "${ac_cv_search_getaddrinfo+set}" = set; then
21684   $as_echo_n "(cached) " >&6
21685 else
21686   ac_func_search_save_LIBS=$LIBS
21687 cat >conftest.$ac_ext <<_ACEOF
21688 /* confdefs.h.  */
21689 _ACEOF
21690 cat confdefs.h >>conftest.$ac_ext
21691 cat >>conftest.$ac_ext <<_ACEOF
21692 /* end confdefs.h.  */
21693
21694 /* Override any GCC internal prototype to avoid an error.
21695    Use char because int might match the return type of a GCC
21696    builtin and then its argument prototype would still apply.  */
21697 #ifdef __cplusplus
21698 extern "C"
21699 #endif
21700 char getaddrinfo ();
21701 int
21702 main ()
21703 {
21704 return getaddrinfo ();
21705   ;
21706   return 0;
21707 }
21708 _ACEOF
21709 for ac_lib in '' nsl socket; do
21710   if test -z "$ac_lib"; then
21711     ac_res="none required"
21712   else
21713     ac_res=-l$ac_lib
21714     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21715   fi
21716   rm -f conftest.$ac_objext conftest$ac_exeext
21717 if { (ac_try="$ac_link"
21718 case "(($ac_try" in
21719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21720   *) ac_try_echo=$ac_try;;
21721 esac
21722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21723 $as_echo "$ac_try_echo") >&5
21724   (eval "$ac_link") 2>conftest.er1
21725   ac_status=$?
21726   grep -v '^ *+' conftest.er1 >conftest.err
21727   rm -f conftest.er1
21728   cat conftest.err >&5
21729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730   (exit $ac_status); } && {
21731          test -z "$ac_c_werror_flag" ||
21732          test ! -s conftest.err
21733        } && test -s conftest$ac_exeext &&
21734        $as_test_x conftest$ac_exeext; then
21735   ac_cv_search_getaddrinfo=$ac_res
21736 else
21737   $as_echo "$as_me: failed program was:" >&5
21738 sed 's/^/| /' conftest.$ac_ext >&5
21739
21740
21741 fi
21742
21743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21744       conftest$ac_exeext
21745   if test "${ac_cv_search_getaddrinfo+set}" = set; then
21746   break
21747 fi
21748 done
21749 if test "${ac_cv_search_getaddrinfo+set}" = set; then
21750   :
21751 else
21752   ac_cv_search_getaddrinfo=no
21753 fi
21754 rm conftest.$ac_ext
21755 LIBS=$ac_func_search_save_LIBS
21756 fi
21757 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
21758 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
21759 ac_res=$ac_cv_search_getaddrinfo
21760 if test "$ac_res" != no; then
21761   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21762
21763 fi
21764
21765
21766 for ac_func in getaddrinfo
21767 do
21768 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21769 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21770 $as_echo_n "checking for $ac_func... " >&6; }
21771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21772   $as_echo_n "(cached) " >&6
21773 else
21774   cat >conftest.$ac_ext <<_ACEOF
21775 /* confdefs.h.  */
21776 _ACEOF
21777 cat confdefs.h >>conftest.$ac_ext
21778 cat >>conftest.$ac_ext <<_ACEOF
21779 /* end confdefs.h.  */
21780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21781    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21782 #define $ac_func innocuous_$ac_func
21783
21784 /* System header to define __stub macros and hopefully few prototypes,
21785     which can conflict with char $ac_func (); below.
21786     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21787     <limits.h> exists even on freestanding compilers.  */
21788
21789 #ifdef __STDC__
21790 # include <limits.h>
21791 #else
21792 # include <assert.h>
21793 #endif
21794
21795 #undef $ac_func
21796
21797 /* Override any GCC internal prototype to avoid an error.
21798    Use char because int might match the return type of a GCC
21799    builtin and then its argument prototype would still apply.  */
21800 #ifdef __cplusplus
21801 extern "C"
21802 #endif
21803 char $ac_func ();
21804 /* The GNU C library defines this for functions which it implements
21805     to always fail with ENOSYS.  Some functions are actually named
21806     something starting with __ and the normal name is an alias.  */
21807 #if defined __stub_$ac_func || defined __stub___$ac_func
21808 choke me
21809 #endif
21810
21811 int
21812 main ()
21813 {
21814 return $ac_func ();
21815   ;
21816   return 0;
21817 }
21818 _ACEOF
21819 rm -f conftest.$ac_objext conftest$ac_exeext
21820 if { (ac_try="$ac_link"
21821 case "(($ac_try" in
21822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21823   *) ac_try_echo=$ac_try;;
21824 esac
21825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21826 $as_echo "$ac_try_echo") >&5
21827   (eval "$ac_link") 2>conftest.er1
21828   ac_status=$?
21829   grep -v '^ *+' conftest.er1 >conftest.err
21830   rm -f conftest.er1
21831   cat conftest.err >&5
21832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833   (exit $ac_status); } && {
21834          test -z "$ac_c_werror_flag" ||
21835          test ! -s conftest.err
21836        } && test -s conftest$ac_exeext &&
21837        $as_test_x conftest$ac_exeext; then
21838   eval "$as_ac_var=yes"
21839 else
21840   $as_echo "$as_me: failed program was:" >&5
21841 sed 's/^/| /' conftest.$ac_ext >&5
21842
21843         eval "$as_ac_var=no"
21844 fi
21845
21846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21847       conftest$ac_exeext conftest.$ac_ext
21848 fi
21849 ac_res=`eval 'as_val=${'$as_ac_var'}
21850                  $as_echo "$as_val"'`
21851                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21852 $as_echo "$ac_res" >&6; }
21853 if test `eval 'as_val=${'$as_ac_var'}
21854                  $as_echo "$as_val"'` = yes; then
21855   cat >>confdefs.h <<_ACEOF
21856 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21857 _ACEOF
21858
21859 else
21860
21861     { $as_echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
21862 $as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
21863 if test "${gl_cv_w32_getaddrinfo+set}" = set; then
21864   $as_echo_n "(cached) " >&6
21865 else
21866
21867       gl_cv_w32_getaddrinfo=no
21868       am_save_LIBS="$LIBS"
21869       LIBS="$LIBS -lws2_32"
21870       cat >conftest.$ac_ext <<_ACEOF
21871 /* confdefs.h.  */
21872 _ACEOF
21873 cat confdefs.h >>conftest.$ac_ext
21874 cat >>conftest.$ac_ext <<_ACEOF
21875 /* end confdefs.h.  */
21876
21877 #ifdef HAVE_WS2TCPIP_H
21878 #include <ws2tcpip.h>
21879 #endif
21880
21881 int
21882 main ()
21883 {
21884 getaddrinfo(0, 0, 0, 0);
21885   ;
21886   return 0;
21887 }
21888 _ACEOF
21889 rm -f conftest.$ac_objext conftest$ac_exeext
21890 if { (ac_try="$ac_link"
21891 case "(($ac_try" in
21892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21893   *) ac_try_echo=$ac_try;;
21894 esac
21895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21896 $as_echo "$ac_try_echo") >&5
21897   (eval "$ac_link") 2>conftest.er1
21898   ac_status=$?
21899   grep -v '^ *+' conftest.er1 >conftest.err
21900   rm -f conftest.er1
21901   cat conftest.err >&5
21902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903   (exit $ac_status); } && {
21904          test -z "$ac_c_werror_flag" ||
21905          test ! -s conftest.err
21906        } && test -s conftest$ac_exeext &&
21907        $as_test_x conftest$ac_exeext; then
21908   gl_cv_w32_getaddrinfo=yes
21909 else
21910   $as_echo "$as_me: failed program was:" >&5
21911 sed 's/^/| /' conftest.$ac_ext >&5
21912
21913
21914 fi
21915
21916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21917       conftest$ac_exeext conftest.$ac_ext
21918     LIBS="$am_save_LIBS"
21919 fi
21920 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_getaddrinfo" >&5
21921 $as_echo "$gl_cv_w32_getaddrinfo" >&6; }
21922     if test "$gl_cv_w32_getaddrinfo" = "yes"; then
21923       LIBS="$LIBS -lws2_32"
21924     else
21925       gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
21926     fi
21927
21928 fi
21929 done
21930
21931
21932
21933 for ac_func in gai_strerror
21934 do
21935 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21936 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21937 $as_echo_n "checking for $ac_func... " >&6; }
21938 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21939   $as_echo_n "(cached) " >&6
21940 else
21941   cat >conftest.$ac_ext <<_ACEOF
21942 /* confdefs.h.  */
21943 _ACEOF
21944 cat confdefs.h >>conftest.$ac_ext
21945 cat >>conftest.$ac_ext <<_ACEOF
21946 /* end confdefs.h.  */
21947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21948    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21949 #define $ac_func innocuous_$ac_func
21950
21951 /* System header to define __stub macros and hopefully few prototypes,
21952     which can conflict with char $ac_func (); below.
21953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21954     <limits.h> exists even on freestanding compilers.  */
21955
21956 #ifdef __STDC__
21957 # include <limits.h>
21958 #else
21959 # include <assert.h>
21960 #endif
21961
21962 #undef $ac_func
21963
21964 /* Override any GCC internal prototype to avoid an error.
21965    Use char because int might match the return type of a GCC
21966    builtin and then its argument prototype would still apply.  */
21967 #ifdef __cplusplus
21968 extern "C"
21969 #endif
21970 char $ac_func ();
21971 /* The GNU C library defines this for functions which it implements
21972     to always fail with ENOSYS.  Some functions are actually named
21973     something starting with __ and the normal name is an alias.  */
21974 #if defined __stub_$ac_func || defined __stub___$ac_func
21975 choke me
21976 #endif
21977
21978 int
21979 main ()
21980 {
21981 return $ac_func ();
21982   ;
21983   return 0;
21984 }
21985 _ACEOF
21986 rm -f conftest.$ac_objext conftest$ac_exeext
21987 if { (ac_try="$ac_link"
21988 case "(($ac_try" in
21989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990   *) ac_try_echo=$ac_try;;
21991 esac
21992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21993 $as_echo "$ac_try_echo") >&5
21994   (eval "$ac_link") 2>conftest.er1
21995   ac_status=$?
21996   grep -v '^ *+' conftest.er1 >conftest.err
21997   rm -f conftest.er1
21998   cat conftest.err >&5
21999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000   (exit $ac_status); } && {
22001          test -z "$ac_c_werror_flag" ||
22002          test ! -s conftest.err
22003        } && test -s conftest$ac_exeext &&
22004        $as_test_x conftest$ac_exeext; then
22005   eval "$as_ac_var=yes"
22006 else
22007   $as_echo "$as_me: failed program was:" >&5
22008 sed 's/^/| /' conftest.$ac_ext >&5
22009
22010         eval "$as_ac_var=no"
22011 fi
22012
22013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22014       conftest$ac_exeext conftest.$ac_ext
22015 fi
22016 ac_res=`eval 'as_val=${'$as_ac_var'}
22017                  $as_echo "$as_val"'`
22018                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22019 $as_echo "$ac_res" >&6; }
22020 if test `eval 'as_val=${'$as_ac_var'}
22021                  $as_echo "$as_val"'` = yes; then
22022   cat >>confdefs.h <<_ACEOF
22023 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22024 _ACEOF
22025
22026 else
22027   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
22028 fi
22029 done
22030
22031
22032   { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
22033 $as_echo_n "checking for library containing gethostbyname... " >&6; }
22034 if test "${ac_cv_search_gethostbyname+set}" = set; then
22035   $as_echo_n "(cached) " >&6
22036 else
22037   ac_func_search_save_LIBS=$LIBS
22038 cat >conftest.$ac_ext <<_ACEOF
22039 /* confdefs.h.  */
22040 _ACEOF
22041 cat confdefs.h >>conftest.$ac_ext
22042 cat >>conftest.$ac_ext <<_ACEOF
22043 /* end confdefs.h.  */
22044
22045 /* Override any GCC internal prototype to avoid an error.
22046    Use char because int might match the return type of a GCC
22047    builtin and then its argument prototype would still apply.  */
22048 #ifdef __cplusplus
22049 extern "C"
22050 #endif
22051 char gethostbyname ();
22052 int
22053 main ()
22054 {
22055 return gethostbyname ();
22056   ;
22057   return 0;
22058 }
22059 _ACEOF
22060 for ac_lib in '' inet nsl; do
22061   if test -z "$ac_lib"; then
22062     ac_res="none required"
22063   else
22064     ac_res=-l$ac_lib
22065     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22066   fi
22067   rm -f conftest.$ac_objext conftest$ac_exeext
22068 if { (ac_try="$ac_link"
22069 case "(($ac_try" in
22070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22071   *) ac_try_echo=$ac_try;;
22072 esac
22073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22074 $as_echo "$ac_try_echo") >&5
22075   (eval "$ac_link") 2>conftest.er1
22076   ac_status=$?
22077   grep -v '^ *+' conftest.er1 >conftest.err
22078   rm -f conftest.er1
22079   cat conftest.err >&5
22080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081   (exit $ac_status); } && {
22082          test -z "$ac_c_werror_flag" ||
22083          test ! -s conftest.err
22084        } && test -s conftest$ac_exeext &&
22085        $as_test_x conftest$ac_exeext; then
22086   ac_cv_search_gethostbyname=$ac_res
22087 else
22088   $as_echo "$as_me: failed program was:" >&5
22089 sed 's/^/| /' conftest.$ac_ext >&5
22090
22091
22092 fi
22093
22094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22095       conftest$ac_exeext
22096   if test "${ac_cv_search_gethostbyname+set}" = set; then
22097   break
22098 fi
22099 done
22100 if test "${ac_cv_search_gethostbyname+set}" = set; then
22101   :
22102 else
22103   ac_cv_search_gethostbyname=no
22104 fi
22105 rm conftest.$ac_ext
22106 LIBS=$ac_func_search_save_LIBS
22107 fi
22108 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
22109 $as_echo "$ac_cv_search_gethostbyname" >&6; }
22110 ac_res=$ac_cv_search_gethostbyname
22111 if test "$ac_res" != no; then
22112   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22113
22114 fi
22115
22116   { $as_echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
22117 $as_echo_n "checking for library containing getservbyname... " >&6; }
22118 if test "${ac_cv_search_getservbyname+set}" = set; then
22119   $as_echo_n "(cached) " >&6
22120 else
22121   ac_func_search_save_LIBS=$LIBS
22122 cat >conftest.$ac_ext <<_ACEOF
22123 /* confdefs.h.  */
22124 _ACEOF
22125 cat confdefs.h >>conftest.$ac_ext
22126 cat >>conftest.$ac_ext <<_ACEOF
22127 /* end confdefs.h.  */
22128
22129 /* Override any GCC internal prototype to avoid an error.
22130    Use char because int might match the return type of a GCC
22131    builtin and then its argument prototype would still apply.  */
22132 #ifdef __cplusplus
22133 extern "C"
22134 #endif
22135 char getservbyname ();
22136 int
22137 main ()
22138 {
22139 return getservbyname ();
22140   ;
22141   return 0;
22142 }
22143 _ACEOF
22144 for ac_lib in '' inet nsl socket xnet; do
22145   if test -z "$ac_lib"; then
22146     ac_res="none required"
22147   else
22148     ac_res=-l$ac_lib
22149     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22150   fi
22151   rm -f conftest.$ac_objext conftest$ac_exeext
22152 if { (ac_try="$ac_link"
22153 case "(($ac_try" in
22154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22155   *) ac_try_echo=$ac_try;;
22156 esac
22157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22158 $as_echo "$ac_try_echo") >&5
22159   (eval "$ac_link") 2>conftest.er1
22160   ac_status=$?
22161   grep -v '^ *+' conftest.er1 >conftest.err
22162   rm -f conftest.er1
22163   cat conftest.err >&5
22164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165   (exit $ac_status); } && {
22166          test -z "$ac_c_werror_flag" ||
22167          test ! -s conftest.err
22168        } && test -s conftest$ac_exeext &&
22169        $as_test_x conftest$ac_exeext; then
22170   ac_cv_search_getservbyname=$ac_res
22171 else
22172   $as_echo "$as_me: failed program was:" >&5
22173 sed 's/^/| /' conftest.$ac_ext >&5
22174
22175
22176 fi
22177
22178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22179       conftest$ac_exeext
22180   if test "${ac_cv_search_getservbyname+set}" = set; then
22181   break
22182 fi
22183 done
22184 if test "${ac_cv_search_getservbyname+set}" = set; then
22185   :
22186 else
22187   ac_cv_search_getservbyname=no
22188 fi
22189 rm conftest.$ac_ext
22190 LIBS=$ac_func_search_save_LIBS
22191 fi
22192 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
22193 $as_echo "$ac_cv_search_getservbyname" >&6; }
22194 ac_res=$ac_cv_search_getservbyname
22195 if test "$ac_res" != no; then
22196   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22197
22198 fi
22199
22200
22201 for ac_func in gethostbyname
22202 do
22203 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22204 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22205 $as_echo_n "checking for $ac_func... " >&6; }
22206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22207   $as_echo_n "(cached) " >&6
22208 else
22209   cat >conftest.$ac_ext <<_ACEOF
22210 /* confdefs.h.  */
22211 _ACEOF
22212 cat confdefs.h >>conftest.$ac_ext
22213 cat >>conftest.$ac_ext <<_ACEOF
22214 /* end confdefs.h.  */
22215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22216    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22217 #define $ac_func innocuous_$ac_func
22218
22219 /* System header to define __stub macros and hopefully few prototypes,
22220     which can conflict with char $ac_func (); below.
22221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22222     <limits.h> exists even on freestanding compilers.  */
22223
22224 #ifdef __STDC__
22225 # include <limits.h>
22226 #else
22227 # include <assert.h>
22228 #endif
22229
22230 #undef $ac_func
22231
22232 /* Override any GCC internal prototype to avoid an error.
22233    Use char because int might match the return type of a GCC
22234    builtin and then its argument prototype would still apply.  */
22235 #ifdef __cplusplus
22236 extern "C"
22237 #endif
22238 char $ac_func ();
22239 /* The GNU C library defines this for functions which it implements
22240     to always fail with ENOSYS.  Some functions are actually named
22241     something starting with __ and the normal name is an alias.  */
22242 #if defined __stub_$ac_func || defined __stub___$ac_func
22243 choke me
22244 #endif
22245
22246 int
22247 main ()
22248 {
22249 return $ac_func ();
22250   ;
22251   return 0;
22252 }
22253 _ACEOF
22254 rm -f conftest.$ac_objext conftest$ac_exeext
22255 if { (ac_try="$ac_link"
22256 case "(($ac_try" in
22257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22258   *) ac_try_echo=$ac_try;;
22259 esac
22260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22261 $as_echo "$ac_try_echo") >&5
22262   (eval "$ac_link") 2>conftest.er1
22263   ac_status=$?
22264   grep -v '^ *+' conftest.er1 >conftest.err
22265   rm -f conftest.er1
22266   cat conftest.err >&5
22267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268   (exit $ac_status); } && {
22269          test -z "$ac_c_werror_flag" ||
22270          test ! -s conftest.err
22271        } && test -s conftest$ac_exeext &&
22272        $as_test_x conftest$ac_exeext; then
22273   eval "$as_ac_var=yes"
22274 else
22275   $as_echo "$as_me: failed program was:" >&5
22276 sed 's/^/| /' conftest.$ac_ext >&5
22277
22278         eval "$as_ac_var=no"
22279 fi
22280
22281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22282       conftest$ac_exeext conftest.$ac_ext
22283 fi
22284 ac_res=`eval 'as_val=${'$as_ac_var'}
22285                  $as_echo "$as_val"'`
22286                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22287 $as_echo "$ac_res" >&6; }
22288 if test `eval 'as_val=${'$as_ac_var'}
22289                  $as_echo "$as_val"'` = yes; then
22290   cat >>confdefs.h <<_ACEOF
22291 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22292 _ACEOF
22293
22294 else
22295
22296     { $as_echo "$as_me:$LINENO: checking for gethostbyname in winsock2.h and -lws2_32" >&5
22297 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
22298 if test "${gl_cv_w32_gethostbyname+set}" = set; then
22299   $as_echo_n "(cached) " >&6
22300 else
22301
22302       gl_cv_w32_gethostbyname=no
22303       am_save_LIBS="$LIBS"
22304       LIBS="$LIBS -lws2_32"
22305       cat >conftest.$ac_ext <<_ACEOF
22306 /* confdefs.h.  */
22307 _ACEOF
22308 cat confdefs.h >>conftest.$ac_ext
22309 cat >>conftest.$ac_ext <<_ACEOF
22310 /* end confdefs.h.  */
22311
22312 #ifdef HAVE_WINSOCK2_H
22313 #include <winsock2.h>
22314 #endif
22315
22316 int
22317 main ()
22318 {
22319 gethostbyname(0);
22320   ;
22321   return 0;
22322 }
22323 _ACEOF
22324 rm -f conftest.$ac_objext conftest$ac_exeext
22325 if { (ac_try="$ac_link"
22326 case "(($ac_try" in
22327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22328   *) ac_try_echo=$ac_try;;
22329 esac
22330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22331 $as_echo "$ac_try_echo") >&5
22332   (eval "$ac_link") 2>conftest.er1
22333   ac_status=$?
22334   grep -v '^ *+' conftest.er1 >conftest.err
22335   rm -f conftest.er1
22336   cat conftest.err >&5
22337   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338   (exit $ac_status); } && {
22339          test -z "$ac_c_werror_flag" ||
22340          test ! -s conftest.err
22341        } && test -s conftest$ac_exeext &&
22342        $as_test_x conftest$ac_exeext; then
22343   gl_cv_w32_gethostbyname=yes
22344 else
22345   $as_echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22347
22348
22349 fi
22350
22351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22352       conftest$ac_exeext conftest.$ac_ext
22353     LIBS="$am_save_LIBS"
22354 fi
22355 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_gethostbyname" >&5
22356 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
22357     if test "$gl_cv_w32_gethostbyname" = "yes"; then
22358       LIBS="$LIBS -lws2_32"
22359     fi
22360
22361 fi
22362 done
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376
22377   { $as_echo "$as_me:$LINENO: checking whether getaddrinfo is declared" >&5
22378 $as_echo_n "checking whether getaddrinfo is declared... " >&6; }
22379 if test "${ac_cv_have_decl_getaddrinfo+set}" = set; then
22380   $as_echo_n "(cached) " >&6
22381 else
22382   cat >conftest.$ac_ext <<_ACEOF
22383 /* confdefs.h.  */
22384 _ACEOF
22385 cat confdefs.h >>conftest.$ac_ext
22386 cat >>conftest.$ac_ext <<_ACEOF
22387 /* end confdefs.h.  */
22388
22389   /* sys/types.h is not needed according to POSIX, but the
22390      sys/socket.h in i386-unknown-freebsd4.10 and
22391      powerpc-apple-darwin5.5 required it. */
22392 #include <sys/types.h>
22393 #ifdef HAVE_SYS_SOCKET_H
22394 #include <sys/socket.h>
22395 #endif
22396 #ifdef HAVE_NETDB_H
22397 #include <netdb.h>
22398 #endif
22399 #ifdef HAVE_WS2TCPIP_H
22400 #include <ws2tcpip.h>
22401 #endif
22402
22403
22404 int
22405 main ()
22406 {
22407 #ifndef getaddrinfo
22408   (void) getaddrinfo;
22409 #endif
22410
22411   ;
22412   return 0;
22413 }
22414 _ACEOF
22415 rm -f conftest.$ac_objext
22416 if { (ac_try="$ac_compile"
22417 case "(($ac_try" in
22418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22419   *) ac_try_echo=$ac_try;;
22420 esac
22421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22422 $as_echo "$ac_try_echo") >&5
22423   (eval "$ac_compile") 2>conftest.er1
22424   ac_status=$?
22425   grep -v '^ *+' conftest.er1 >conftest.err
22426   rm -f conftest.er1
22427   cat conftest.err >&5
22428   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429   (exit $ac_status); } && {
22430          test -z "$ac_c_werror_flag" ||
22431          test ! -s conftest.err
22432        } && test -s conftest.$ac_objext; then
22433   ac_cv_have_decl_getaddrinfo=yes
22434 else
22435   $as_echo "$as_me: failed program was:" >&5
22436 sed 's/^/| /' conftest.$ac_ext >&5
22437
22438         ac_cv_have_decl_getaddrinfo=no
22439 fi
22440
22441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22442 fi
22443 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getaddrinfo" >&5
22444 $as_echo "$ac_cv_have_decl_getaddrinfo" >&6; }
22445 if test $ac_cv_have_decl_getaddrinfo = yes; then
22446
22447 cat >>confdefs.h <<_ACEOF
22448 #define HAVE_DECL_GETADDRINFO 1
22449 _ACEOF
22450
22451
22452 else
22453   cat >>confdefs.h <<_ACEOF
22454 #define HAVE_DECL_GETADDRINFO 0
22455 _ACEOF
22456
22457
22458 fi
22459 { $as_echo "$as_me:$LINENO: checking whether freeaddrinfo is declared" >&5
22460 $as_echo_n "checking whether freeaddrinfo is declared... " >&6; }
22461 if test "${ac_cv_have_decl_freeaddrinfo+set}" = set; then
22462   $as_echo_n "(cached) " >&6
22463 else
22464   cat >conftest.$ac_ext <<_ACEOF
22465 /* confdefs.h.  */
22466 _ACEOF
22467 cat confdefs.h >>conftest.$ac_ext
22468 cat >>conftest.$ac_ext <<_ACEOF
22469 /* end confdefs.h.  */
22470
22471   /* sys/types.h is not needed according to POSIX, but the
22472      sys/socket.h in i386-unknown-freebsd4.10 and
22473      powerpc-apple-darwin5.5 required it. */
22474 #include <sys/types.h>
22475 #ifdef HAVE_SYS_SOCKET_H
22476 #include <sys/socket.h>
22477 #endif
22478 #ifdef HAVE_NETDB_H
22479 #include <netdb.h>
22480 #endif
22481 #ifdef HAVE_WS2TCPIP_H
22482 #include <ws2tcpip.h>
22483 #endif
22484
22485
22486 int
22487 main ()
22488 {
22489 #ifndef freeaddrinfo
22490   (void) freeaddrinfo;
22491 #endif
22492
22493   ;
22494   return 0;
22495 }
22496 _ACEOF
22497 rm -f conftest.$ac_objext
22498 if { (ac_try="$ac_compile"
22499 case "(($ac_try" in
22500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22501   *) ac_try_echo=$ac_try;;
22502 esac
22503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22504 $as_echo "$ac_try_echo") >&5
22505   (eval "$ac_compile") 2>conftest.er1
22506   ac_status=$?
22507   grep -v '^ *+' conftest.er1 >conftest.err
22508   rm -f conftest.er1
22509   cat conftest.err >&5
22510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511   (exit $ac_status); } && {
22512          test -z "$ac_c_werror_flag" ||
22513          test ! -s conftest.err
22514        } && test -s conftest.$ac_objext; then
22515   ac_cv_have_decl_freeaddrinfo=yes
22516 else
22517   $as_echo "$as_me: failed program was:" >&5
22518 sed 's/^/| /' conftest.$ac_ext >&5
22519
22520         ac_cv_have_decl_freeaddrinfo=no
22521 fi
22522
22523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22524 fi
22525 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_freeaddrinfo" >&5
22526 $as_echo "$ac_cv_have_decl_freeaddrinfo" >&6; }
22527 if test $ac_cv_have_decl_freeaddrinfo = yes; then
22528
22529 cat >>confdefs.h <<_ACEOF
22530 #define HAVE_DECL_FREEADDRINFO 1
22531 _ACEOF
22532
22533
22534 else
22535   cat >>confdefs.h <<_ACEOF
22536 #define HAVE_DECL_FREEADDRINFO 0
22537 _ACEOF
22538
22539
22540 fi
22541 { $as_echo "$as_me:$LINENO: checking whether gai_strerror is declared" >&5
22542 $as_echo_n "checking whether gai_strerror is declared... " >&6; }
22543 if test "${ac_cv_have_decl_gai_strerror+set}" = set; then
22544   $as_echo_n "(cached) " >&6
22545 else
22546   cat >conftest.$ac_ext <<_ACEOF
22547 /* confdefs.h.  */
22548 _ACEOF
22549 cat confdefs.h >>conftest.$ac_ext
22550 cat >>conftest.$ac_ext <<_ACEOF
22551 /* end confdefs.h.  */
22552
22553   /* sys/types.h is not needed according to POSIX, but the
22554      sys/socket.h in i386-unknown-freebsd4.10 and
22555      powerpc-apple-darwin5.5 required it. */
22556 #include <sys/types.h>
22557 #ifdef HAVE_SYS_SOCKET_H
22558 #include <sys/socket.h>
22559 #endif
22560 #ifdef HAVE_NETDB_H
22561 #include <netdb.h>
22562 #endif
22563 #ifdef HAVE_WS2TCPIP_H
22564 #include <ws2tcpip.h>
22565 #endif
22566
22567
22568 int
22569 main ()
22570 {
22571 #ifndef gai_strerror
22572   (void) gai_strerror;
22573 #endif
22574
22575   ;
22576   return 0;
22577 }
22578 _ACEOF
22579 rm -f conftest.$ac_objext
22580 if { (ac_try="$ac_compile"
22581 case "(($ac_try" in
22582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22583   *) ac_try_echo=$ac_try;;
22584 esac
22585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22586 $as_echo "$ac_try_echo") >&5
22587   (eval "$ac_compile") 2>conftest.er1
22588   ac_status=$?
22589   grep -v '^ *+' conftest.er1 >conftest.err
22590   rm -f conftest.er1
22591   cat conftest.err >&5
22592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593   (exit $ac_status); } && {
22594          test -z "$ac_c_werror_flag" ||
22595          test ! -s conftest.err
22596        } && test -s conftest.$ac_objext; then
22597   ac_cv_have_decl_gai_strerror=yes
22598 else
22599   $as_echo "$as_me: failed program was:" >&5
22600 sed 's/^/| /' conftest.$ac_ext >&5
22601
22602         ac_cv_have_decl_gai_strerror=no
22603 fi
22604
22605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22606 fi
22607 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_gai_strerror" >&5
22608 $as_echo "$ac_cv_have_decl_gai_strerror" >&6; }
22609 if test $ac_cv_have_decl_gai_strerror = yes; then
22610
22611 cat >>confdefs.h <<_ACEOF
22612 #define HAVE_DECL_GAI_STRERROR 1
22613 _ACEOF
22614
22615
22616 else
22617   cat >>confdefs.h <<_ACEOF
22618 #define HAVE_DECL_GAI_STRERROR 0
22619 _ACEOF
22620
22621
22622 fi
22623 { $as_echo "$as_me:$LINENO: checking whether getnameinfo is declared" >&5
22624 $as_echo_n "checking whether getnameinfo is declared... " >&6; }
22625 if test "${ac_cv_have_decl_getnameinfo+set}" = set; then
22626   $as_echo_n "(cached) " >&6
22627 else
22628   cat >conftest.$ac_ext <<_ACEOF
22629 /* confdefs.h.  */
22630 _ACEOF
22631 cat confdefs.h >>conftest.$ac_ext
22632 cat >>conftest.$ac_ext <<_ACEOF
22633 /* end confdefs.h.  */
22634
22635   /* sys/types.h is not needed according to POSIX, but the
22636      sys/socket.h in i386-unknown-freebsd4.10 and
22637      powerpc-apple-darwin5.5 required it. */
22638 #include <sys/types.h>
22639 #ifdef HAVE_SYS_SOCKET_H
22640 #include <sys/socket.h>
22641 #endif
22642 #ifdef HAVE_NETDB_H
22643 #include <netdb.h>
22644 #endif
22645 #ifdef HAVE_WS2TCPIP_H
22646 #include <ws2tcpip.h>
22647 #endif
22648
22649
22650 int
22651 main ()
22652 {
22653 #ifndef getnameinfo
22654   (void) getnameinfo;
22655 #endif
22656
22657   ;
22658   return 0;
22659 }
22660 _ACEOF
22661 rm -f conftest.$ac_objext
22662 if { (ac_try="$ac_compile"
22663 case "(($ac_try" in
22664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665   *) ac_try_echo=$ac_try;;
22666 esac
22667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22668 $as_echo "$ac_try_echo") >&5
22669   (eval "$ac_compile") 2>conftest.er1
22670   ac_status=$?
22671   grep -v '^ *+' conftest.er1 >conftest.err
22672   rm -f conftest.er1
22673   cat conftest.err >&5
22674   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675   (exit $ac_status); } && {
22676          test -z "$ac_c_werror_flag" ||
22677          test ! -s conftest.err
22678        } && test -s conftest.$ac_objext; then
22679   ac_cv_have_decl_getnameinfo=yes
22680 else
22681   $as_echo "$as_me: failed program was:" >&5
22682 sed 's/^/| /' conftest.$ac_ext >&5
22683
22684         ac_cv_have_decl_getnameinfo=no
22685 fi
22686
22687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22688 fi
22689 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getnameinfo" >&5
22690 $as_echo "$ac_cv_have_decl_getnameinfo" >&6; }
22691 if test $ac_cv_have_decl_getnameinfo = yes; then
22692
22693 cat >>confdefs.h <<_ACEOF
22694 #define HAVE_DECL_GETNAMEINFO 1
22695 _ACEOF
22696
22697
22698 else
22699   cat >>confdefs.h <<_ACEOF
22700 #define HAVE_DECL_GETNAMEINFO 0
22701 _ACEOF
22702
22703
22704 fi
22705
22706
22707   { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
22708 $as_echo_n "checking for struct addrinfo... " >&6; }
22709 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
22710   $as_echo_n "(cached) " >&6
22711 else
22712   cat >conftest.$ac_ext <<_ACEOF
22713 /* confdefs.h.  */
22714 _ACEOF
22715 cat confdefs.h >>conftest.$ac_ext
22716 cat >>conftest.$ac_ext <<_ACEOF
22717 /* end confdefs.h.  */
22718
22719 #include <sys/types.h>
22720 #ifdef HAVE_SYS_SOCKET_H
22721 #include <sys/socket.h>
22722 #endif
22723 #ifdef HAVE_NETDB_H
22724 #include <netdb.h>
22725 #endif
22726 #ifdef HAVE_WS2TCPIP_H
22727 #include <ws2tcpip.h>
22728 #endif
22729
22730
22731 typedef struct addrinfo ac__type_new_;
22732 int
22733 main ()
22734 {
22735 if ((ac__type_new_ *) 0)
22736   return 0;
22737 if (sizeof (ac__type_new_))
22738   return 0;
22739   ;
22740   return 0;
22741 }
22742 _ACEOF
22743 rm -f conftest.$ac_objext
22744 if { (ac_try="$ac_compile"
22745 case "(($ac_try" in
22746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22747   *) ac_try_echo=$ac_try;;
22748 esac
22749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22750 $as_echo "$ac_try_echo") >&5
22751   (eval "$ac_compile") 2>conftest.er1
22752   ac_status=$?
22753   grep -v '^ *+' conftest.er1 >conftest.err
22754   rm -f conftest.er1
22755   cat conftest.err >&5
22756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757   (exit $ac_status); } && {
22758          test -z "$ac_c_werror_flag" ||
22759          test ! -s conftest.err
22760        } && test -s conftest.$ac_objext; then
22761   ac_cv_type_struct_addrinfo=yes
22762 else
22763   $as_echo "$as_me: failed program was:" >&5
22764 sed 's/^/| /' conftest.$ac_ext >&5
22765
22766         ac_cv_type_struct_addrinfo=no
22767 fi
22768
22769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22770 fi
22771 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
22772 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
22773 if test $ac_cv_type_struct_addrinfo = yes; then
22774
22775 cat >>confdefs.h <<_ACEOF
22776 #define HAVE_STRUCT_ADDRINFO 1
22777 _ACEOF
22778
22779
22780 fi
22781
22782
22783
22784
22785
22786
22787
22788   gl_abort_bug=no
22789   case $gl_cv_func_getcwd_null in
22790   yes)
22791
22792
22793
22794
22795
22796
22797   { $as_echo "$as_me:$LINENO: checking whether getcwd handles long file names properly" >&5
22798 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
22799 if test "${gl_cv_func_getcwd_path_max+set}" = set; then
22800   $as_echo_n "(cached) " >&6
22801 else
22802   # Arrange for deletion of the temporary directory this test creates.
22803      ac_clean_files="$ac_clean_files confdir3"
22804      if test "$cross_compiling" = yes; then
22805   gl_cv_func_getcwd_path_max=no
22806 else
22807   cat >conftest.$ac_ext <<_ACEOF
22808 /* confdefs.h.  */
22809 _ACEOF
22810 cat confdefs.h >>conftest.$ac_ext
22811 cat >>conftest.$ac_ext <<_ACEOF
22812 /* end confdefs.h.  */
22813
22814 #include <errno.h>
22815 #include <stdlib.h>
22816 #include <unistd.h>
22817 #include <string.h>
22818 #include <limits.h>
22819 #include <sys/stat.h>
22820 #include <sys/types.h>
22821 #include <fcntl.h>
22822
22823 #ifndef AT_FDCWD
22824 # define AT_FDCWD 0
22825 #endif
22826 #ifdef ENAMETOOLONG
22827 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
22828 #else
22829 # define is_ENAMETOOLONG(x) 0
22830 #endif
22831
22832 /* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
22833 #undef mkdir
22834
22835 #ifndef S_IRWXU
22836 # define S_IRWXU 0700
22837 #endif
22838
22839 /* The length of this name must be 8.  */
22840 #define DIR_NAME "confdir3"
22841 #define DIR_NAME_LEN 8
22842 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
22843
22844 /* The length of "../".  */
22845 #define DOTDOTSLASH_LEN 3
22846
22847 /* Leftover bytes in the buffer, to work around library or OS bugs.  */
22848 #define BUF_SLOP 20
22849
22850 int
22851 main ()
22852 {
22853 #ifndef PATH_MAX
22854   /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
22855      at least not on a local file system.  And if we were to start worrying
22856      about remote file systems, we'd have to enable the wrapper function
22857      all of the time, just to be safe.  That's not worth the cost.  */
22858   exit (0);
22859 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
22860         - DIR_NAME_SIZE - BUF_SLOP) \
22861        <= PATH_MAX)
22862   /* FIXME: Assuming there's a system for which this is true,
22863      this should be done in a compile test.  */
22864   exit (0);
22865 #else
22866   char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
22867            + DIR_NAME_SIZE + BUF_SLOP];
22868   char *cwd = getcwd (buf, PATH_MAX);
22869   size_t initial_cwd_len;
22870   size_t cwd_len;
22871   int fail = 0;
22872   size_t n_chdirs = 0;
22873
22874   if (cwd == NULL)
22875     exit (1);
22876
22877   cwd_len = initial_cwd_len = strlen (cwd);
22878
22879   while (1)
22880     {
22881       size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
22882       char *c = NULL;
22883
22884       cwd_len += DIR_NAME_SIZE;
22885       /* If mkdir or chdir fails, it could be that this system cannot create
22886          any file with an absolute name longer than PATH_MAX, such as cygwin.
22887          If so, leave fail as 0, because the current working directory can't
22888          be too long for getcwd if it can't even be created.  For other
22889          errors, be pessimistic and consider that as a failure, too.  */
22890       if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
22891         {
22892           if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
22893             fail = 2;
22894           break;
22895         }
22896
22897       if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
22898         {
22899           c = getcwd (buf, PATH_MAX);
22900           if (!c && errno == ENOENT)
22901             {
22902               fail = 1;
22903               break;
22904             }
22905           if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno)))
22906             {
22907               fail = 2;
22908               break;
22909             }
22910         }
22911
22912       if (dotdot_max <= cwd_len - initial_cwd_len)
22913         {
22914           if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
22915             break;
22916           c = getcwd (buf, cwd_len + 1);
22917           if (!c)
22918             {
22919               if (! (errno == ERANGE || errno == ENOENT
22920                      || is_ENAMETOOLONG (errno)))
22921                 {
22922                   fail = 2;
22923                   break;
22924                 }
22925               if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
22926                 {
22927                   fail = 1;
22928                   break;
22929                 }
22930             }
22931         }
22932
22933       if (c && strlen (c) != cwd_len)
22934         {
22935           fail = 2;
22936           break;
22937         }
22938       ++n_chdirs;
22939     }
22940
22941   /* Leaving behind such a deep directory is not polite.
22942      So clean up here, right away, even though the driving
22943      shell script would also clean up.  */
22944   {
22945     size_t i;
22946
22947     /* Try rmdir first, in case the chdir failed.  */
22948     rmdir (DIR_NAME);
22949     for (i = 0; i <= n_chdirs; i++)
22950       {
22951         if (chdir ("..") < 0)
22952           break;
22953         rmdir (DIR_NAME);
22954       }
22955   }
22956
22957   exit (fail);
22958 #endif
22959 }
22960
22961 _ACEOF
22962 rm -f conftest$ac_exeext
22963 if { (ac_try="$ac_link"
22964 case "(($ac_try" in
22965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22966   *) ac_try_echo=$ac_try;;
22967 esac
22968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22969 $as_echo "$ac_try_echo") >&5
22970   (eval "$ac_link") 2>&5
22971   ac_status=$?
22972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22974   { (case "(($ac_try" in
22975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22976   *) ac_try_echo=$ac_try;;
22977 esac
22978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22979 $as_echo "$ac_try_echo") >&5
22980   (eval "$ac_try") 2>&5
22981   ac_status=$?
22982   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983   (exit $ac_status); }; }; then
22984   gl_cv_func_getcwd_path_max=yes
22985 else
22986   $as_echo "$as_me: program exited with status $ac_status" >&5
22987 $as_echo "$as_me: failed program was:" >&5
22988 sed 's/^/| /' conftest.$ac_ext >&5
22989
22990 ( exit $ac_status )
22991 case $? in
22992      1) gl_cv_func_getcwd_path_max='no, but it is partly working';;
22993      *) gl_cv_func_getcwd_path_max=no;;
22994      esac
22995 fi
22996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22997 fi
22998
22999
23000
23001 fi
23002 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_path_max" >&5
23003 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
23004   case $gl_cv_func_getcwd_path_max in
23005   no,*)
23006
23007 cat >>confdefs.h <<\_ACEOF
23008 #define HAVE_PARTLY_WORKING_GETCWD 1
23009 _ACEOF
23010 ;;
23011   esac
23012
23013
23014
23015
23016
23017
23018
23019 for ac_func in getpagesize
23020 do
23021 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23022 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23023 $as_echo_n "checking for $ac_func... " >&6; }
23024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23025   $as_echo_n "(cached) " >&6
23026 else
23027   cat >conftest.$ac_ext <<_ACEOF
23028 /* confdefs.h.  */
23029 _ACEOF
23030 cat confdefs.h >>conftest.$ac_ext
23031 cat >>conftest.$ac_ext <<_ACEOF
23032 /* end confdefs.h.  */
23033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23034    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23035 #define $ac_func innocuous_$ac_func
23036
23037 /* System header to define __stub macros and hopefully few prototypes,
23038     which can conflict with char $ac_func (); below.
23039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23040     <limits.h> exists even on freestanding compilers.  */
23041
23042 #ifdef __STDC__
23043 # include <limits.h>
23044 #else
23045 # include <assert.h>
23046 #endif
23047
23048 #undef $ac_func
23049
23050 /* Override any GCC internal prototype to avoid an error.
23051    Use char because int might match the return type of a GCC
23052    builtin and then its argument prototype would still apply.  */
23053 #ifdef __cplusplus
23054 extern "C"
23055 #endif
23056 char $ac_func ();
23057 /* The GNU C library defines this for functions which it implements
23058     to always fail with ENOSYS.  Some functions are actually named
23059     something starting with __ and the normal name is an alias.  */
23060 #if defined __stub_$ac_func || defined __stub___$ac_func
23061 choke me
23062 #endif
23063
23064 int
23065 main ()
23066 {
23067 return $ac_func ();
23068   ;
23069   return 0;
23070 }
23071 _ACEOF
23072 rm -f conftest.$ac_objext conftest$ac_exeext
23073 if { (ac_try="$ac_link"
23074 case "(($ac_try" in
23075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23076   *) ac_try_echo=$ac_try;;
23077 esac
23078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23079 $as_echo "$ac_try_echo") >&5
23080   (eval "$ac_link") 2>conftest.er1
23081   ac_status=$?
23082   grep -v '^ *+' conftest.er1 >conftest.err
23083   rm -f conftest.er1
23084   cat conftest.err >&5
23085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086   (exit $ac_status); } && {
23087          test -z "$ac_c_werror_flag" ||
23088          test ! -s conftest.err
23089        } && test -s conftest$ac_exeext &&
23090        $as_test_x conftest$ac_exeext; then
23091   eval "$as_ac_var=yes"
23092 else
23093   $as_echo "$as_me: failed program was:" >&5
23094 sed 's/^/| /' conftest.$ac_ext >&5
23095
23096         eval "$as_ac_var=no"
23097 fi
23098
23099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23100       conftest$ac_exeext conftest.$ac_ext
23101 fi
23102 ac_res=`eval 'as_val=${'$as_ac_var'}
23103                  $as_echo "$as_val"'`
23104                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23105 $as_echo "$ac_res" >&6; }
23106 if test `eval 'as_val=${'$as_ac_var'}
23107                  $as_echo "$as_val"'` = yes; then
23108   cat >>confdefs.h <<_ACEOF
23109 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23110 _ACEOF
23111
23112 fi
23113 done
23114
23115   { $as_echo "$as_me:$LINENO: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
23116 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
23117 if test "${gl_cv_func_getcwd_abort_bug+set}" = set; then
23118   $as_echo_n "(cached) " >&6
23119 else
23120   # Remove any remnants of a previous test.
23121      rm -rf confdir-14B---
23122      # Arrange for deletion of the temporary directory this test creates.
23123      ac_clean_files="$ac_clean_files confdir-14B---"
23124      if test "$cross_compiling" = yes; then
23125   gl_cv_func_getcwd_abort_bug=yes
23126 else
23127   cat >conftest.$ac_ext <<_ACEOF
23128 /* confdefs.h.  */
23129 _ACEOF
23130 cat confdefs.h >>conftest.$ac_ext
23131 cat >>conftest.$ac_ext <<_ACEOF
23132 /* end confdefs.h.  */
23133
23134 #include <stdlib.h>
23135 #include <unistd.h>
23136 #include <limits.h>
23137 #include <string.h>
23138 #include <sys/stat.h>
23139
23140 /* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
23141 #undef mkdir
23142
23143 #ifndef S_IRWXU
23144 # define S_IRWXU 0700
23145 #endif
23146
23147 /* FIXME: skip the run-test altogether on systems without getpagesize.  */
23148 #if ! HAVE_GETPAGESIZE
23149 # define getpagesize() 0
23150 #endif
23151
23152 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
23153    the 16kB pagesize on ia64 linux.  Those conditions make the code below
23154    trigger a bug in glibc's getcwd implementation before 2.4.90-10.  */
23155 #define TARGET_LEN (5 * 1024)
23156
23157 int
23158 main ()
23159 {
23160   char const *dir_name = "confdir-14B---";
23161   char *cwd;
23162   size_t initial_cwd_len;
23163   int fail = 0;
23164   size_t desired_depth;
23165   size_t d;
23166
23167   /* The bug is triggered when PATH_MAX < getpagesize (), so skip
23168      this relative expensive and invasive test if that's not true.  */
23169   if (getpagesize () <= PATH_MAX)
23170     return 0;
23171
23172   cwd = getcwd (NULL, 0);
23173   if (cwd == NULL)
23174     return 0;
23175
23176   initial_cwd_len = strlen (cwd);
23177   free (cwd);
23178   desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
23179                    / (1 + strlen (dir_name)));
23180   for (d = 0; d < desired_depth; d++)
23181     {
23182       if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
23183         {
23184           fail = 3; /* Unable to construct deep hierarchy.  */
23185           break;
23186         }
23187     }
23188
23189   /* If libc has the bug in question, this invocation of getcwd
23190      results in a failed assertion.  */
23191   cwd = getcwd (NULL, 0);
23192   if (cwd == NULL)
23193     fail = 4; /* getcwd failed.  This is ok, and expected.  */
23194   free (cwd);
23195
23196   /* Call rmdir first, in case the above chdir failed.  */
23197   rmdir (dir_name);
23198   while (0 < d--)
23199     {
23200       if (chdir ("..") < 0)
23201         break;
23202       rmdir (dir_name);
23203     }
23204
23205   return 0;
23206 }
23207
23208 _ACEOF
23209 rm -f conftest$ac_exeext
23210 if { (ac_try="$ac_link"
23211 case "(($ac_try" in
23212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23213   *) ac_try_echo=$ac_try;;
23214 esac
23215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23216 $as_echo "$ac_try_echo") >&5
23217   (eval "$ac_link") 2>&5
23218   ac_status=$?
23219   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23221   { (case "(($ac_try" in
23222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23223   *) ac_try_echo=$ac_try;;
23224 esac
23225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23226 $as_echo "$ac_try_echo") >&5
23227   (eval "$ac_try") 2>&5
23228   ac_status=$?
23229   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230   (exit $ac_status); }; }; then
23231   gl_cv_func_getcwd_abort_bug=no
23232 else
23233   $as_echo "$as_me: program exited with status $ac_status" >&5
23234 $as_echo "$as_me: failed program was:" >&5
23235 sed 's/^/| /' conftest.$ac_ext >&5
23236
23237 ( exit $ac_status )
23238 gl_cv_func_getcwd_abort_bug=yes
23239 fi
23240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23241 fi
23242
23243
23244
23245 fi
23246 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_abort_bug" >&5
23247 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
23248   if test $gl_cv_func_getcwd_abort_bug = yes; then
23249   gl_abort_bug=yes
23250 fi
23251
23252 ;;
23253   esac
23254
23255   case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max,$gl_abort_bug in
23256   yes,yes,no) ;;
23257   *)
23258     REPLACE_GETCWD=1
23259     gl_LIBOBJS="$gl_LIBOBJS getcwd.$ac_objext"
23260
23261
23262
23263   :
23264 ;;
23265   esac
23266
23267
23268
23269   GNULIB_GETCWD=1
23270
23271
23272
23273
23274
23275
23276
23277   { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23278 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
23279 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23280   $as_echo_n "(cached) " >&6
23281 else
23282   cat >conftest.$ac_ext <<_ACEOF
23283 /* confdefs.h.  */
23284 _ACEOF
23285 cat confdefs.h >>conftest.$ac_ext
23286 cat >>conftest.$ac_ext <<_ACEOF
23287 /* end confdefs.h.  */
23288 #include <sys/types.h>
23289 #include <$ac_cv_struct_tm>
23290
23291
23292 int
23293 main ()
23294 {
23295 static struct tm ac_aggr;
23296 if (ac_aggr.tm_zone)
23297 return 0;
23298   ;
23299   return 0;
23300 }
23301 _ACEOF
23302 rm -f conftest.$ac_objext
23303 if { (ac_try="$ac_compile"
23304 case "(($ac_try" in
23305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23306   *) ac_try_echo=$ac_try;;
23307 esac
23308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23309 $as_echo "$ac_try_echo") >&5
23310   (eval "$ac_compile") 2>conftest.er1
23311   ac_status=$?
23312   grep -v '^ *+' conftest.er1 >conftest.err
23313   rm -f conftest.er1
23314   cat conftest.err >&5
23315   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316   (exit $ac_status); } && {
23317          test -z "$ac_c_werror_flag" ||
23318          test ! -s conftest.err
23319        } && test -s conftest.$ac_objext; then
23320   ac_cv_member_struct_tm_tm_zone=yes
23321 else
23322   $as_echo "$as_me: failed program was:" >&5
23323 sed 's/^/| /' conftest.$ac_ext >&5
23324
23325         cat >conftest.$ac_ext <<_ACEOF
23326 /* confdefs.h.  */
23327 _ACEOF
23328 cat confdefs.h >>conftest.$ac_ext
23329 cat >>conftest.$ac_ext <<_ACEOF
23330 /* end confdefs.h.  */
23331 #include <sys/types.h>
23332 #include <$ac_cv_struct_tm>
23333
23334
23335 int
23336 main ()
23337 {
23338 static struct tm ac_aggr;
23339 if (sizeof ac_aggr.tm_zone)
23340 return 0;
23341   ;
23342   return 0;
23343 }
23344 _ACEOF
23345 rm -f conftest.$ac_objext
23346 if { (ac_try="$ac_compile"
23347 case "(($ac_try" in
23348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23349   *) ac_try_echo=$ac_try;;
23350 esac
23351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23352 $as_echo "$ac_try_echo") >&5
23353   (eval "$ac_compile") 2>conftest.er1
23354   ac_status=$?
23355   grep -v '^ *+' conftest.er1 >conftest.err
23356   rm -f conftest.er1
23357   cat conftest.err >&5
23358   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359   (exit $ac_status); } && {
23360          test -z "$ac_c_werror_flag" ||
23361          test ! -s conftest.err
23362        } && test -s conftest.$ac_objext; then
23363   ac_cv_member_struct_tm_tm_zone=yes
23364 else
23365   $as_echo "$as_me: failed program was:" >&5
23366 sed 's/^/| /' conftest.$ac_ext >&5
23367
23368         ac_cv_member_struct_tm_tm_zone=no
23369 fi
23370
23371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23372 fi
23373
23374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23375 fi
23376 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23377 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
23378 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23379
23380 cat >>confdefs.h <<_ACEOF
23381 #define HAVE_STRUCT_TM_TM_ZONE 1
23382 _ACEOF
23383
23384
23385 fi
23386
23387 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23388
23389 cat >>confdefs.h <<\_ACEOF
23390 #define HAVE_TM_ZONE 1
23391 _ACEOF
23392
23393 else
23394   { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23395 $as_echo_n "checking whether tzname is declared... " >&6; }
23396 if test "${ac_cv_have_decl_tzname+set}" = set; then
23397   $as_echo_n "(cached) " >&6
23398 else
23399   cat >conftest.$ac_ext <<_ACEOF
23400 /* confdefs.h.  */
23401 _ACEOF
23402 cat confdefs.h >>conftest.$ac_ext
23403 cat >>conftest.$ac_ext <<_ACEOF
23404 /* end confdefs.h.  */
23405 #include <time.h>
23406
23407 int
23408 main ()
23409 {
23410 #ifndef tzname
23411   (void) tzname;
23412 #endif
23413
23414   ;
23415   return 0;
23416 }
23417 _ACEOF
23418 rm -f conftest.$ac_objext
23419 if { (ac_try="$ac_compile"
23420 case "(($ac_try" in
23421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23422   *) ac_try_echo=$ac_try;;
23423 esac
23424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23425 $as_echo "$ac_try_echo") >&5
23426   (eval "$ac_compile") 2>conftest.er1
23427   ac_status=$?
23428   grep -v '^ *+' conftest.er1 >conftest.err
23429   rm -f conftest.er1
23430   cat conftest.err >&5
23431   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432   (exit $ac_status); } && {
23433          test -z "$ac_c_werror_flag" ||
23434          test ! -s conftest.err
23435        } && test -s conftest.$ac_objext; then
23436   ac_cv_have_decl_tzname=yes
23437 else
23438   $as_echo "$as_me: failed program was:" >&5
23439 sed 's/^/| /' conftest.$ac_ext >&5
23440
23441         ac_cv_have_decl_tzname=no
23442 fi
23443
23444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23445 fi
23446 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23447 $as_echo "$ac_cv_have_decl_tzname" >&6; }
23448 if test $ac_cv_have_decl_tzname = yes; then
23449
23450 cat >>confdefs.h <<_ACEOF
23451 #define HAVE_DECL_TZNAME 1
23452 _ACEOF
23453
23454
23455 else
23456   cat >>confdefs.h <<_ACEOF
23457 #define HAVE_DECL_TZNAME 0
23458 _ACEOF
23459
23460
23461 fi
23462
23463
23464   { $as_echo "$as_me:$LINENO: checking for tzname" >&5
23465 $as_echo_n "checking for tzname... " >&6; }
23466 if test "${ac_cv_var_tzname+set}" = set; then
23467   $as_echo_n "(cached) " >&6
23468 else
23469   cat >conftest.$ac_ext <<_ACEOF
23470 /* confdefs.h.  */
23471 _ACEOF
23472 cat confdefs.h >>conftest.$ac_ext
23473 cat >>conftest.$ac_ext <<_ACEOF
23474 /* end confdefs.h.  */
23475 #include <time.h>
23476 #if !HAVE_DECL_TZNAME
23477 extern char *tzname[];
23478 #endif
23479
23480 int
23481 main ()
23482 {
23483 return tzname[0][0];
23484   ;
23485   return 0;
23486 }
23487 _ACEOF
23488 rm -f conftest.$ac_objext conftest$ac_exeext
23489 if { (ac_try="$ac_link"
23490 case "(($ac_try" in
23491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23492   *) ac_try_echo=$ac_try;;
23493 esac
23494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23495 $as_echo "$ac_try_echo") >&5
23496   (eval "$ac_link") 2>conftest.er1
23497   ac_status=$?
23498   grep -v '^ *+' conftest.er1 >conftest.err
23499   rm -f conftest.er1
23500   cat conftest.err >&5
23501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502   (exit $ac_status); } && {
23503          test -z "$ac_c_werror_flag" ||
23504          test ! -s conftest.err
23505        } && test -s conftest$ac_exeext &&
23506        $as_test_x conftest$ac_exeext; then
23507   ac_cv_var_tzname=yes
23508 else
23509   $as_echo "$as_me: failed program was:" >&5
23510 sed 's/^/| /' conftest.$ac_ext >&5
23511
23512         ac_cv_var_tzname=no
23513 fi
23514
23515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23516       conftest$ac_exeext conftest.$ac_ext
23517 fi
23518 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23519 $as_echo "$ac_cv_var_tzname" >&6; }
23520   if test $ac_cv_var_tzname = yes; then
23521
23522 cat >>confdefs.h <<\_ACEOF
23523 #define HAVE_TZNAME 1
23524 _ACEOF
23525
23526   fi
23527 fi
23528
23529
23530
23531
23532
23533
23534
23535
23536
23537 for ac_func in getdelim
23538 do
23539 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23540 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23541 $as_echo_n "checking for $ac_func... " >&6; }
23542 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23543   $as_echo_n "(cached) " >&6
23544 else
23545   cat >conftest.$ac_ext <<_ACEOF
23546 /* confdefs.h.  */
23547 _ACEOF
23548 cat confdefs.h >>conftest.$ac_ext
23549 cat >>conftest.$ac_ext <<_ACEOF
23550 /* end confdefs.h.  */
23551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23552    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23553 #define $ac_func innocuous_$ac_func
23554
23555 /* System header to define __stub macros and hopefully few prototypes,
23556     which can conflict with char $ac_func (); below.
23557     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23558     <limits.h> exists even on freestanding compilers.  */
23559
23560 #ifdef __STDC__
23561 # include <limits.h>
23562 #else
23563 # include <assert.h>
23564 #endif
23565
23566 #undef $ac_func
23567
23568 /* Override any GCC internal prototype to avoid an error.
23569    Use char because int might match the return type of a GCC
23570    builtin and then its argument prototype would still apply.  */
23571 #ifdef __cplusplus
23572 extern "C"
23573 #endif
23574 char $ac_func ();
23575 /* The GNU C library defines this for functions which it implements
23576     to always fail with ENOSYS.  Some functions are actually named
23577     something starting with __ and the normal name is an alias.  */
23578 #if defined __stub_$ac_func || defined __stub___$ac_func
23579 choke me
23580 #endif
23581
23582 int
23583 main ()
23584 {
23585 return $ac_func ();
23586   ;
23587   return 0;
23588 }
23589 _ACEOF
23590 rm -f conftest.$ac_objext conftest$ac_exeext
23591 if { (ac_try="$ac_link"
23592 case "(($ac_try" in
23593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23594   *) ac_try_echo=$ac_try;;
23595 esac
23596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23597 $as_echo "$ac_try_echo") >&5
23598   (eval "$ac_link") 2>conftest.er1
23599   ac_status=$?
23600   grep -v '^ *+' conftest.er1 >conftest.err
23601   rm -f conftest.er1
23602   cat conftest.err >&5
23603   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604   (exit $ac_status); } && {
23605          test -z "$ac_c_werror_flag" ||
23606          test ! -s conftest.err
23607        } && test -s conftest$ac_exeext &&
23608        $as_test_x conftest$ac_exeext; then
23609   eval "$as_ac_var=yes"
23610 else
23611   $as_echo "$as_me: failed program was:" >&5
23612 sed 's/^/| /' conftest.$ac_ext >&5
23613
23614         eval "$as_ac_var=no"
23615 fi
23616
23617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23618       conftest$ac_exeext conftest.$ac_ext
23619 fi
23620 ac_res=`eval 'as_val=${'$as_ac_var'}
23621                  $as_echo "$as_val"'`
23622                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23623 $as_echo "$ac_res" >&6; }
23624 if test `eval 'as_val=${'$as_ac_var'}
23625                  $as_echo "$as_val"'` = yes; then
23626   cat >>confdefs.h <<_ACEOF
23627 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23628 _ACEOF
23629
23630 else
23631   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
23632 fi
23633 done
23634
23635
23636
23637
23638
23639
23640   if test $ac_cv_func_getdelim = no; then
23641
23642
23643
23644 for ac_func in flockfile funlockfile
23645 do
23646 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23647 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23648 $as_echo_n "checking for $ac_func... " >&6; }
23649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23650   $as_echo_n "(cached) " >&6
23651 else
23652   cat >conftest.$ac_ext <<_ACEOF
23653 /* confdefs.h.  */
23654 _ACEOF
23655 cat confdefs.h >>conftest.$ac_ext
23656 cat >>conftest.$ac_ext <<_ACEOF
23657 /* end confdefs.h.  */
23658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23659    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23660 #define $ac_func innocuous_$ac_func
23661
23662 /* System header to define __stub macros and hopefully few prototypes,
23663     which can conflict with char $ac_func (); below.
23664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23665     <limits.h> exists even on freestanding compilers.  */
23666
23667 #ifdef __STDC__
23668 # include <limits.h>
23669 #else
23670 # include <assert.h>
23671 #endif
23672
23673 #undef $ac_func
23674
23675 /* Override any GCC internal prototype to avoid an error.
23676    Use char because int might match the return type of a GCC
23677    builtin and then its argument prototype would still apply.  */
23678 #ifdef __cplusplus
23679 extern "C"
23680 #endif
23681 char $ac_func ();
23682 /* The GNU C library defines this for functions which it implements
23683     to always fail with ENOSYS.  Some functions are actually named
23684     something starting with __ and the normal name is an alias.  */
23685 #if defined __stub_$ac_func || defined __stub___$ac_func
23686 choke me
23687 #endif
23688
23689 int
23690 main ()
23691 {
23692 return $ac_func ();
23693   ;
23694   return 0;
23695 }
23696 _ACEOF
23697 rm -f conftest.$ac_objext conftest$ac_exeext
23698 if { (ac_try="$ac_link"
23699 case "(($ac_try" in
23700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23701   *) ac_try_echo=$ac_try;;
23702 esac
23703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23704 $as_echo "$ac_try_echo") >&5
23705   (eval "$ac_link") 2>conftest.er1
23706   ac_status=$?
23707   grep -v '^ *+' conftest.er1 >conftest.err
23708   rm -f conftest.er1
23709   cat conftest.err >&5
23710   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711   (exit $ac_status); } && {
23712          test -z "$ac_c_werror_flag" ||
23713          test ! -s conftest.err
23714        } && test -s conftest$ac_exeext &&
23715        $as_test_x conftest$ac_exeext; then
23716   eval "$as_ac_var=yes"
23717 else
23718   $as_echo "$as_me: failed program was:" >&5
23719 sed 's/^/| /' conftest.$ac_ext >&5
23720
23721         eval "$as_ac_var=no"
23722 fi
23723
23724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23725       conftest$ac_exeext conftest.$ac_ext
23726 fi
23727 ac_res=`eval 'as_val=${'$as_ac_var'}
23728                  $as_echo "$as_val"'`
23729                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23730 $as_echo "$ac_res" >&6; }
23731 if test `eval 'as_val=${'$as_ac_var'}
23732                  $as_echo "$as_val"'` = yes; then
23733   cat >>confdefs.h <<_ACEOF
23734 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23735 _ACEOF
23736
23737 fi
23738 done
23739
23740
23741   fi
23742
23743
23744
23745   if test $ac_cv_func_getgroups_works = no; then
23746     gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext"
23747
23748 cat >>confdefs.h <<\_ACEOF
23749 #define getgroups rpl_getgroups
23750 _ACEOF
23751
23752
23753
23754
23755   fi
23756   test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
23757
23758
23759
23760 for ac_func in gethostname
23761 do
23762 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23763 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23764 $as_echo_n "checking for $ac_func... " >&6; }
23765 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23766   $as_echo_n "(cached) " >&6
23767 else
23768   cat >conftest.$ac_ext <<_ACEOF
23769 /* confdefs.h.  */
23770 _ACEOF
23771 cat confdefs.h >>conftest.$ac_ext
23772 cat >>conftest.$ac_ext <<_ACEOF
23773 /* end confdefs.h.  */
23774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23775    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23776 #define $ac_func innocuous_$ac_func
23777
23778 /* System header to define __stub macros and hopefully few prototypes,
23779     which can conflict with char $ac_func (); below.
23780     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23781     <limits.h> exists even on freestanding compilers.  */
23782
23783 #ifdef __STDC__
23784 # include <limits.h>
23785 #else
23786 # include <assert.h>
23787 #endif
23788
23789 #undef $ac_func
23790
23791 /* Override any GCC internal prototype to avoid an error.
23792    Use char because int might match the return type of a GCC
23793    builtin and then its argument prototype would still apply.  */
23794 #ifdef __cplusplus
23795 extern "C"
23796 #endif
23797 char $ac_func ();
23798 /* The GNU C library defines this for functions which it implements
23799     to always fail with ENOSYS.  Some functions are actually named
23800     something starting with __ and the normal name is an alias.  */
23801 #if defined __stub_$ac_func || defined __stub___$ac_func
23802 choke me
23803 #endif
23804
23805 int
23806 main ()
23807 {
23808 return $ac_func ();
23809   ;
23810   return 0;
23811 }
23812 _ACEOF
23813 rm -f conftest.$ac_objext conftest$ac_exeext
23814 if { (ac_try="$ac_link"
23815 case "(($ac_try" in
23816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23817   *) ac_try_echo=$ac_try;;
23818 esac
23819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23820 $as_echo "$ac_try_echo") >&5
23821   (eval "$ac_link") 2>conftest.er1
23822   ac_status=$?
23823   grep -v '^ *+' conftest.er1 >conftest.err
23824   rm -f conftest.er1
23825   cat conftest.err >&5
23826   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23827   (exit $ac_status); } && {
23828          test -z "$ac_c_werror_flag" ||
23829          test ! -s conftest.err
23830        } && test -s conftest$ac_exeext &&
23831        $as_test_x conftest$ac_exeext; then
23832   eval "$as_ac_var=yes"
23833 else
23834   $as_echo "$as_me: failed program was:" >&5
23835 sed 's/^/| /' conftest.$ac_ext >&5
23836
23837         eval "$as_ac_var=no"
23838 fi
23839
23840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23841       conftest$ac_exeext conftest.$ac_ext
23842 fi
23843 ac_res=`eval 'as_val=${'$as_ac_var'}
23844                  $as_echo "$as_val"'`
23845                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23846 $as_echo "$ac_res" >&6; }
23847 if test `eval 'as_val=${'$as_ac_var'}
23848                  $as_echo "$as_val"'` = yes; then
23849   cat >>confdefs.h <<_ACEOF
23850 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23851 _ACEOF
23852
23853 else
23854   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
23855 fi
23856 done
23857
23858   if test $ac_cv_func_gethostname = no; then
23859
23860
23861 for ac_func in uname
23862 do
23863 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23864 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23865 $as_echo_n "checking for $ac_func... " >&6; }
23866 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23867   $as_echo_n "(cached) " >&6
23868 else
23869   cat >conftest.$ac_ext <<_ACEOF
23870 /* confdefs.h.  */
23871 _ACEOF
23872 cat confdefs.h >>conftest.$ac_ext
23873 cat >>conftest.$ac_ext <<_ACEOF
23874 /* end confdefs.h.  */
23875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23876    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23877 #define $ac_func innocuous_$ac_func
23878
23879 /* System header to define __stub macros and hopefully few prototypes,
23880     which can conflict with char $ac_func (); below.
23881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23882     <limits.h> exists even on freestanding compilers.  */
23883
23884 #ifdef __STDC__
23885 # include <limits.h>
23886 #else
23887 # include <assert.h>
23888 #endif
23889
23890 #undef $ac_func
23891
23892 /* Override any GCC internal prototype to avoid an error.
23893    Use char because int might match the return type of a GCC
23894    builtin and then its argument prototype would still apply.  */
23895 #ifdef __cplusplus
23896 extern "C"
23897 #endif
23898 char $ac_func ();
23899 /* The GNU C library defines this for functions which it implements
23900     to always fail with ENOSYS.  Some functions are actually named
23901     something starting with __ and the normal name is an alias.  */
23902 #if defined __stub_$ac_func || defined __stub___$ac_func
23903 choke me
23904 #endif
23905
23906 int
23907 main ()
23908 {
23909 return $ac_func ();
23910   ;
23911   return 0;
23912 }
23913 _ACEOF
23914 rm -f conftest.$ac_objext conftest$ac_exeext
23915 if { (ac_try="$ac_link"
23916 case "(($ac_try" in
23917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23918   *) ac_try_echo=$ac_try;;
23919 esac
23920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23921 $as_echo "$ac_try_echo") >&5
23922   (eval "$ac_link") 2>conftest.er1
23923   ac_status=$?
23924   grep -v '^ *+' conftest.er1 >conftest.err
23925   rm -f conftest.er1
23926   cat conftest.err >&5
23927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928   (exit $ac_status); } && {
23929          test -z "$ac_c_werror_flag" ||
23930          test ! -s conftest.err
23931        } && test -s conftest$ac_exeext &&
23932        $as_test_x conftest$ac_exeext; then
23933   eval "$as_ac_var=yes"
23934 else
23935   $as_echo "$as_me: failed program was:" >&5
23936 sed 's/^/| /' conftest.$ac_ext >&5
23937
23938         eval "$as_ac_var=no"
23939 fi
23940
23941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23942       conftest$ac_exeext conftest.$ac_ext
23943 fi
23944 ac_res=`eval 'as_val=${'$as_ac_var'}
23945                  $as_echo "$as_val"'`
23946                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23947 $as_echo "$ac_res" >&6; }
23948 if test `eval 'as_val=${'$as_ac_var'}
23949                  $as_echo "$as_val"'` = yes; then
23950   cat >>confdefs.h <<_ACEOF
23951 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23952 _ACEOF
23953
23954 fi
23955 done
23956
23957
23958   fi
23959
23960
23961
23962
23963
23964   { $as_echo "$as_me:$LINENO: checking whether gethrtime is declared" >&5
23965 $as_echo_n "checking whether gethrtime is declared... " >&6; }
23966 if test "${ac_cv_have_decl_gethrtime+set}" = set; then
23967   $as_echo_n "(cached) " >&6
23968 else
23969   cat >conftest.$ac_ext <<_ACEOF
23970 /* confdefs.h.  */
23971 _ACEOF
23972 cat confdefs.h >>conftest.$ac_ext
23973 cat >>conftest.$ac_ext <<_ACEOF
23974 /* end confdefs.h.  */
23975 #include <time.h>
23976
23977 int
23978 main ()
23979 {
23980 #ifndef gethrtime
23981   (void) gethrtime;
23982 #endif
23983
23984   ;
23985   return 0;
23986 }
23987 _ACEOF
23988 rm -f conftest.$ac_objext
23989 if { (ac_try="$ac_compile"
23990 case "(($ac_try" in
23991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23992   *) ac_try_echo=$ac_try;;
23993 esac
23994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23995 $as_echo "$ac_try_echo") >&5
23996   (eval "$ac_compile") 2>conftest.er1
23997   ac_status=$?
23998   grep -v '^ *+' conftest.er1 >conftest.err
23999   rm -f conftest.er1
24000   cat conftest.err >&5
24001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24002   (exit $ac_status); } && {
24003          test -z "$ac_c_werror_flag" ||
24004          test ! -s conftest.err
24005        } && test -s conftest.$ac_objext; then
24006   ac_cv_have_decl_gethrtime=yes
24007 else
24008   $as_echo "$as_me: failed program was:" >&5
24009 sed 's/^/| /' conftest.$ac_ext >&5
24010
24011         ac_cv_have_decl_gethrtime=no
24012 fi
24013
24014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24015 fi
24016 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethrtime" >&5
24017 $as_echo "$ac_cv_have_decl_gethrtime" >&6; }
24018 if test $ac_cv_have_decl_gethrtime = yes; then
24019
24020 cat >>confdefs.h <<_ACEOF
24021 #define HAVE_DECL_GETHRTIME 1
24022 _ACEOF
24023
24024
24025 else
24026   cat >>confdefs.h <<_ACEOF
24027 #define HAVE_DECL_GETHRTIME 0
24028 _ACEOF
24029
24030
24031 fi
24032
24033
24034   case $ac_cv_have_decl_gethrtime,$gl_cv_arithmetic_hrtime_t in
24035   yes,yes) ;;
24036   *)
24037     gl_LIBOBJS="$gl_LIBOBJS gethrxtime.$ac_objext"
24038
24039
24040
24041
24042
24043
24044
24045
24046
24047
24048
24049
24050   if test $ac_cv_func_nanouptime != yes; then
24051     LIB_GETHRXTIME=
24052     { $as_echo "$as_me:$LINENO: checking whether CLOCK_MONOTONIC or CLOCK_REALTIME is defined" >&5
24053 $as_echo_n "checking whether CLOCK_MONOTONIC or CLOCK_REALTIME is defined... " >&6; }
24054 if test "${gl_cv_have_clock_gettime_macro+set}" = set; then
24055   $as_echo_n "(cached) " >&6
24056 else
24057   cat >conftest.$ac_ext <<_ACEOF
24058 /* confdefs.h.  */
24059 _ACEOF
24060 cat confdefs.h >>conftest.$ac_ext
24061 cat >>conftest.$ac_ext <<_ACEOF
24062 /* end confdefs.h.  */
24063
24064 #        include <time.h>
24065 #        if defined CLOCK_MONOTONIC || defined CLOCK_REALTIME
24066           have_clock_gettime_macro
24067 #        endif
24068
24069 _ACEOF
24070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24071   $EGREP "have_clock_gettime_macro" >/dev/null 2>&1; then
24072   gl_cv_have_clock_gettime_macro=yes
24073 else
24074   gl_cv_have_clock_gettime_macro=no
24075 fi
24076 rm -f conftest*
24077
24078 fi
24079 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_clock_gettime_macro" >&5
24080 $as_echo "$gl_cv_have_clock_gettime_macro" >&6; }
24081     if test $gl_cv_have_clock_gettime_macro = yes; then
24082       LIB_GETHRXTIME=$LIB_CLOCK_GETTIME
24083     fi
24084
24085   fi
24086 ;;
24087   esac
24088
24089
24090
24091
24092   { $as_echo "$as_me:$LINENO: checking whether getline is declared" >&5
24093 $as_echo_n "checking whether getline is declared... " >&6; }
24094 if test "${ac_cv_have_decl_getline+set}" = set; then
24095   $as_echo_n "(cached) " >&6
24096 else
24097   cat >conftest.$ac_ext <<_ACEOF
24098 /* confdefs.h.  */
24099 _ACEOF
24100 cat confdefs.h >>conftest.$ac_ext
24101 cat >>conftest.$ac_ext <<_ACEOF
24102 /* end confdefs.h.  */
24103 $ac_includes_default
24104 int
24105 main ()
24106 {
24107 #ifndef getline
24108   (void) getline;
24109 #endif
24110
24111   ;
24112   return 0;
24113 }
24114 _ACEOF
24115 rm -f conftest.$ac_objext
24116 if { (ac_try="$ac_compile"
24117 case "(($ac_try" in
24118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24119   *) ac_try_echo=$ac_try;;
24120 esac
24121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24122 $as_echo "$ac_try_echo") >&5
24123   (eval "$ac_compile") 2>conftest.er1
24124   ac_status=$?
24125   grep -v '^ *+' conftest.er1 >conftest.err
24126   rm -f conftest.er1
24127   cat conftest.err >&5
24128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24129   (exit $ac_status); } && {
24130          test -z "$ac_c_werror_flag" ||
24131          test ! -s conftest.err
24132        } && test -s conftest.$ac_objext; then
24133   ac_cv_have_decl_getline=yes
24134 else
24135   $as_echo "$as_me: failed program was:" >&5
24136 sed 's/^/| /' conftest.$ac_ext >&5
24137
24138         ac_cv_have_decl_getline=no
24139 fi
24140
24141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24142 fi
24143 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
24144 $as_echo "$ac_cv_have_decl_getline" >&6; }
24145 if test $ac_cv_have_decl_getline = yes; then
24146
24147 cat >>confdefs.h <<_ACEOF
24148 #define HAVE_DECL_GETLINE 1
24149 _ACEOF
24150
24151
24152 else
24153   cat >>confdefs.h <<_ACEOF
24154 #define HAVE_DECL_GETLINE 0
24155 _ACEOF
24156
24157
24158 fi
24159
24160
24161
24162   gl_getline_needs_run_time_check=no
24163   { $as_echo "$as_me:$LINENO: checking for getline" >&5
24164 $as_echo_n "checking for getline... " >&6; }
24165 if test "${ac_cv_func_getline+set}" = set; then
24166   $as_echo_n "(cached) " >&6
24167 else
24168   cat >conftest.$ac_ext <<_ACEOF
24169 /* confdefs.h.  */
24170 _ACEOF
24171 cat confdefs.h >>conftest.$ac_ext
24172 cat >>conftest.$ac_ext <<_ACEOF
24173 /* end confdefs.h.  */
24174 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
24175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24176 #define getline innocuous_getline
24177
24178 /* System header to define __stub macros and hopefully few prototypes,
24179     which can conflict with char getline (); below.
24180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24181     <limits.h> exists even on freestanding compilers.  */
24182
24183 #ifdef __STDC__
24184 # include <limits.h>
24185 #else
24186 # include <assert.h>
24187 #endif
24188
24189 #undef getline
24190
24191 /* Override any GCC internal prototype to avoid an error.
24192    Use char because int might match the return type of a GCC
24193    builtin and then its argument prototype would still apply.  */
24194 #ifdef __cplusplus
24195 extern "C"
24196 #endif
24197 char getline ();
24198 /* The GNU C library defines this for functions which it implements
24199     to always fail with ENOSYS.  Some functions are actually named
24200     something starting with __ and the normal name is an alias.  */
24201 #if defined __stub_getline || defined __stub___getline
24202 choke me
24203 #endif
24204
24205 int
24206 main ()
24207 {
24208 return getline ();
24209   ;
24210   return 0;
24211 }
24212 _ACEOF
24213 rm -f conftest.$ac_objext conftest$ac_exeext
24214 if { (ac_try="$ac_link"
24215 case "(($ac_try" in
24216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24217   *) ac_try_echo=$ac_try;;
24218 esac
24219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24220 $as_echo "$ac_try_echo") >&5
24221   (eval "$ac_link") 2>conftest.er1
24222   ac_status=$?
24223   grep -v '^ *+' conftest.er1 >conftest.err
24224   rm -f conftest.er1
24225   cat conftest.err >&5
24226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24227   (exit $ac_status); } && {
24228          test -z "$ac_c_werror_flag" ||
24229          test ! -s conftest.err
24230        } && test -s conftest$ac_exeext &&
24231        $as_test_x conftest$ac_exeext; then
24232   ac_cv_func_getline=yes
24233 else
24234   $as_echo "$as_me: failed program was:" >&5
24235 sed 's/^/| /' conftest.$ac_ext >&5
24236
24237         ac_cv_func_getline=no
24238 fi
24239
24240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24241       conftest$ac_exeext conftest.$ac_ext
24242 fi
24243 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
24244 $as_echo "$ac_cv_func_getline" >&6; }
24245 if test $ac_cv_func_getline = yes; then
24246                 gl_getline_needs_run_time_check=yes
24247 else
24248   am_cv_func_working_getline=no
24249 fi
24250
24251   if test $gl_getline_needs_run_time_check = yes; then
24252     { $as_echo "$as_me:$LINENO: checking for working getline function" >&5
24253 $as_echo_n "checking for working getline function... " >&6; }
24254 if test "${am_cv_func_working_getline+set}" = set; then
24255   $as_echo_n "(cached) " >&6
24256 else
24257   echo fooN |tr -d '\012'|tr N '\012' > conftest.data
24258     if test "$cross_compiling" = yes; then
24259         cat >conftest.$ac_ext <<_ACEOF
24260 /* confdefs.h.  */
24261 _ACEOF
24262 cat confdefs.h >>conftest.$ac_ext
24263 cat >>conftest.$ac_ext <<_ACEOF
24264 /* end confdefs.h.  */
24265
24266 #include <features.h>
24267 #ifdef __GNU_LIBRARY__
24268  #if (__GLIBC__ >= 2)
24269   Lucky GNU user
24270  #endif
24271 #endif
24272
24273 _ACEOF
24274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24275   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
24276   am_cv_func_working_getline=yes
24277 else
24278   am_cv_func_working_getline=no
24279 fi
24280 rm -f conftest*
24281
24282
24283 else
24284   cat >conftest.$ac_ext <<_ACEOF
24285 /* confdefs.h.  */
24286 _ACEOF
24287 cat confdefs.h >>conftest.$ac_ext
24288 cat >>conftest.$ac_ext <<_ACEOF
24289 /* end confdefs.h.  */
24290
24291 #    include <stdio.h>
24292 #    include <stdlib.h>
24293 #    include <string.h>
24294     int main ()
24295     { /* Based on a test program from Karl Heuer.  */
24296       char *line = NULL;
24297       size_t siz = 0;
24298       int len;
24299       FILE *in = fopen ("./conftest.data", "r");
24300       if (!in)
24301         return 1;
24302       len = getline (&line, &siz, in);
24303       exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
24304     }
24305
24306 _ACEOF
24307 rm -f conftest$ac_exeext
24308 if { (ac_try="$ac_link"
24309 case "(($ac_try" in
24310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24311   *) ac_try_echo=$ac_try;;
24312 esac
24313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24314 $as_echo "$ac_try_echo") >&5
24315   (eval "$ac_link") 2>&5
24316   ac_status=$?
24317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24319   { (case "(($ac_try" in
24320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24321   *) ac_try_echo=$ac_try;;
24322 esac
24323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24324 $as_echo "$ac_try_echo") >&5
24325   (eval "$ac_try") 2>&5
24326   ac_status=$?
24327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24328   (exit $ac_status); }; }; then
24329   am_cv_func_working_getline=yes
24330 else
24331   $as_echo "$as_me: program exited with status $ac_status" >&5
24332 $as_echo "$as_me: failed program was:" >&5
24333 sed 's/^/| /' conftest.$ac_ext >&5
24334
24335 ( exit $ac_status )
24336 am_cv_func_working_getline=no
24337 fi
24338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24339 fi
24340
24341
24342 fi
24343 { $as_echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
24344 $as_echo "$am_cv_func_working_getline" >&6; }
24345   fi
24346
24347   if test $am_cv_func_working_getline = no; then
24348
24349 cat >>confdefs.h <<\_ACEOF
24350 #define getline gnu_getline
24351 _ACEOF
24352
24353     gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
24354
24355
24356
24357
24358
24359
24360
24361 for ac_func in getdelim
24362 do
24363 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24364 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24365 $as_echo_n "checking for $ac_func... " >&6; }
24366 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24367   $as_echo_n "(cached) " >&6
24368 else
24369   cat >conftest.$ac_ext <<_ACEOF
24370 /* confdefs.h.  */
24371 _ACEOF
24372 cat confdefs.h >>conftest.$ac_ext
24373 cat >>conftest.$ac_ext <<_ACEOF
24374 /* end confdefs.h.  */
24375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24376    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24377 #define $ac_func innocuous_$ac_func
24378
24379 /* System header to define __stub macros and hopefully few prototypes,
24380     which can conflict with char $ac_func (); below.
24381     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24382     <limits.h> exists even on freestanding compilers.  */
24383
24384 #ifdef __STDC__
24385 # include <limits.h>
24386 #else
24387 # include <assert.h>
24388 #endif
24389
24390 #undef $ac_func
24391
24392 /* Override any GCC internal prototype to avoid an error.
24393    Use char because int might match the return type of a GCC
24394    builtin and then its argument prototype would still apply.  */
24395 #ifdef __cplusplus
24396 extern "C"
24397 #endif
24398 char $ac_func ();
24399 /* The GNU C library defines this for functions which it implements
24400     to always fail with ENOSYS.  Some functions are actually named
24401     something starting with __ and the normal name is an alias.  */
24402 #if defined __stub_$ac_func || defined __stub___$ac_func
24403 choke me
24404 #endif
24405
24406 int
24407 main ()
24408 {
24409 return $ac_func ();
24410   ;
24411   return 0;
24412 }
24413 _ACEOF
24414 rm -f conftest.$ac_objext conftest$ac_exeext
24415 if { (ac_try="$ac_link"
24416 case "(($ac_try" in
24417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24418   *) ac_try_echo=$ac_try;;
24419 esac
24420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24421 $as_echo "$ac_try_echo") >&5
24422   (eval "$ac_link") 2>conftest.er1
24423   ac_status=$?
24424   grep -v '^ *+' conftest.er1 >conftest.err
24425   rm -f conftest.er1
24426   cat conftest.err >&5
24427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428   (exit $ac_status); } && {
24429          test -z "$ac_c_werror_flag" ||
24430          test ! -s conftest.err
24431        } && test -s conftest$ac_exeext &&
24432        $as_test_x conftest$ac_exeext; then
24433   eval "$as_ac_var=yes"
24434 else
24435   $as_echo "$as_me: failed program was:" >&5
24436 sed 's/^/| /' conftest.$ac_ext >&5
24437
24438         eval "$as_ac_var=no"
24439 fi
24440
24441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24442       conftest$ac_exeext conftest.$ac_ext
24443 fi
24444 ac_res=`eval 'as_val=${'$as_ac_var'}
24445                  $as_echo "$as_val"'`
24446                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24447 $as_echo "$ac_res" >&6; }
24448 if test `eval 'as_val=${'$as_ac_var'}
24449                  $as_echo "$as_val"'` = yes; then
24450   cat >>confdefs.h <<_ACEOF
24451 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24452 _ACEOF
24453
24454 else
24455   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
24456 fi
24457 done
24458
24459
24460
24461
24462
24463
24464   if test $ac_cv_func_getdelim = no; then
24465
24466
24467
24468 for ac_func in flockfile funlockfile
24469 do
24470 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24471 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24472 $as_echo_n "checking for $ac_func... " >&6; }
24473 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24474   $as_echo_n "(cached) " >&6
24475 else
24476   cat >conftest.$ac_ext <<_ACEOF
24477 /* confdefs.h.  */
24478 _ACEOF
24479 cat confdefs.h >>conftest.$ac_ext
24480 cat >>conftest.$ac_ext <<_ACEOF
24481 /* end confdefs.h.  */
24482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24484 #define $ac_func innocuous_$ac_func
24485
24486 /* System header to define __stub macros and hopefully few prototypes,
24487     which can conflict with char $ac_func (); below.
24488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24489     <limits.h> exists even on freestanding compilers.  */
24490
24491 #ifdef __STDC__
24492 # include <limits.h>
24493 #else
24494 # include <assert.h>
24495 #endif
24496
24497 #undef $ac_func
24498
24499 /* Override any GCC internal prototype to avoid an error.
24500    Use char because int might match the return type of a GCC
24501    builtin and then its argument prototype would still apply.  */
24502 #ifdef __cplusplus
24503 extern "C"
24504 #endif
24505 char $ac_func ();
24506 /* The GNU C library defines this for functions which it implements
24507     to always fail with ENOSYS.  Some functions are actually named
24508     something starting with __ and the normal name is an alias.  */
24509 #if defined __stub_$ac_func || defined __stub___$ac_func
24510 choke me
24511 #endif
24512
24513 int
24514 main ()
24515 {
24516 return $ac_func ();
24517   ;
24518   return 0;
24519 }
24520 _ACEOF
24521 rm -f conftest.$ac_objext conftest$ac_exeext
24522 if { (ac_try="$ac_link"
24523 case "(($ac_try" in
24524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24525   *) ac_try_echo=$ac_try;;
24526 esac
24527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24528 $as_echo "$ac_try_echo") >&5
24529   (eval "$ac_link") 2>conftest.er1
24530   ac_status=$?
24531   grep -v '^ *+' conftest.er1 >conftest.err
24532   rm -f conftest.er1
24533   cat conftest.err >&5
24534   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535   (exit $ac_status); } && {
24536          test -z "$ac_c_werror_flag" ||
24537          test ! -s conftest.err
24538        } && test -s conftest$ac_exeext &&
24539        $as_test_x conftest$ac_exeext; then
24540   eval "$as_ac_var=yes"
24541 else
24542   $as_echo "$as_me: failed program was:" >&5
24543 sed 's/^/| /' conftest.$ac_ext >&5
24544
24545         eval "$as_ac_var=no"
24546 fi
24547
24548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24549       conftest$ac_exeext conftest.$ac_ext
24550 fi
24551 ac_res=`eval 'as_val=${'$as_ac_var'}
24552                  $as_echo "$as_val"'`
24553                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24554 $as_echo "$ac_res" >&6; }
24555 if test `eval 'as_val=${'$as_ac_var'}
24556                  $as_echo "$as_val"'` = yes; then
24557   cat >>confdefs.h <<_ACEOF
24558 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24559 _ACEOF
24560
24561 fi
24562 done
24563
24564
24565   fi
24566
24567
24568   fi
24569
24570   gl_have_func=no # yes means we've found a way to get the load average.
24571
24572 # Make sure getloadavg.c is where it belongs, at configure-time.
24573 test -f "$srcdir/lib/getloadavg.c" ||
24574   { { $as_echo "$as_me:$LINENO: error: $srcdir/lib/getloadavg.c is missing" >&5
24575 $as_echo "$as_me: error: $srcdir/lib/getloadavg.c is missing" >&2;}
24576    { (exit 1); exit 1; }; }
24577
24578 gl_save_LIBS=$LIBS
24579
24580 # Check for getloadavg, but be sure not to touch the cache variable.
24581 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
24582 $as_echo_n "checking for getloadavg... " >&6; }
24583 if test "${ac_cv_func_getloadavg+set}" = set; then
24584   $as_echo_n "(cached) " >&6
24585 else
24586   cat >conftest.$ac_ext <<_ACEOF
24587 /* confdefs.h.  */
24588 _ACEOF
24589 cat confdefs.h >>conftest.$ac_ext
24590 cat >>conftest.$ac_ext <<_ACEOF
24591 /* end confdefs.h.  */
24592 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
24593    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24594 #define getloadavg innocuous_getloadavg
24595
24596 /* System header to define __stub macros and hopefully few prototypes,
24597     which can conflict with char getloadavg (); below.
24598     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24599     <limits.h> exists even on freestanding compilers.  */
24600
24601 #ifdef __STDC__
24602 # include <limits.h>
24603 #else
24604 # include <assert.h>
24605 #endif
24606
24607 #undef getloadavg
24608
24609 /* Override any GCC internal prototype to avoid an error.
24610    Use char because int might match the return type of a GCC
24611    builtin and then its argument prototype would still apply.  */
24612 #ifdef __cplusplus
24613 extern "C"
24614 #endif
24615 char getloadavg ();
24616 /* The GNU C library defines this for functions which it implements
24617     to always fail with ENOSYS.  Some functions are actually named
24618     something starting with __ and the normal name is an alias.  */
24619 #if defined __stub_getloadavg || defined __stub___getloadavg
24620 choke me
24621 #endif
24622
24623 int
24624 main ()
24625 {
24626 return getloadavg ();
24627   ;
24628   return 0;
24629 }
24630 _ACEOF
24631 rm -f conftest.$ac_objext conftest$ac_exeext
24632 if { (ac_try="$ac_link"
24633 case "(($ac_try" in
24634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24635   *) ac_try_echo=$ac_try;;
24636 esac
24637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24638 $as_echo "$ac_try_echo") >&5
24639   (eval "$ac_link") 2>conftest.er1
24640   ac_status=$?
24641   grep -v '^ *+' conftest.er1 >conftest.err
24642   rm -f conftest.er1
24643   cat conftest.err >&5
24644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24645   (exit $ac_status); } && {
24646          test -z "$ac_c_werror_flag" ||
24647          test ! -s conftest.err
24648        } && test -s conftest$ac_exeext &&
24649        $as_test_x conftest$ac_exeext; then
24650   ac_cv_func_getloadavg=yes
24651 else
24652   $as_echo "$as_me: failed program was:" >&5
24653 sed 's/^/| /' conftest.$ac_ext >&5
24654
24655         ac_cv_func_getloadavg=no
24656 fi
24657
24658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24659       conftest$ac_exeext conftest.$ac_ext
24660 fi
24661 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
24662 $as_echo "$ac_cv_func_getloadavg" >&6; }
24663 if test $ac_cv_func_getloadavg = yes; then
24664   exit 0
24665 else
24666   exit 1
24667 fi
24668 ) && gl_have_func=yes
24669
24670 # On HPUX9, an unprivileged user can get load averages through this function.
24671
24672 for ac_func in pstat_getdynamic
24673 do
24674 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24675 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24676 $as_echo_n "checking for $ac_func... " >&6; }
24677 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24678   $as_echo_n "(cached) " >&6
24679 else
24680   cat >conftest.$ac_ext <<_ACEOF
24681 /* confdefs.h.  */
24682 _ACEOF
24683 cat confdefs.h >>conftest.$ac_ext
24684 cat >>conftest.$ac_ext <<_ACEOF
24685 /* end confdefs.h.  */
24686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24687    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24688 #define $ac_func innocuous_$ac_func
24689
24690 /* System header to define __stub macros and hopefully few prototypes,
24691     which can conflict with char $ac_func (); below.
24692     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24693     <limits.h> exists even on freestanding compilers.  */
24694
24695 #ifdef __STDC__
24696 # include <limits.h>
24697 #else
24698 # include <assert.h>
24699 #endif
24700
24701 #undef $ac_func
24702
24703 /* Override any GCC internal prototype to avoid an error.
24704    Use char because int might match the return type of a GCC
24705    builtin and then its argument prototype would still apply.  */
24706 #ifdef __cplusplus
24707 extern "C"
24708 #endif
24709 char $ac_func ();
24710 /* The GNU C library defines this for functions which it implements
24711     to always fail with ENOSYS.  Some functions are actually named
24712     something starting with __ and the normal name is an alias.  */
24713 #if defined __stub_$ac_func || defined __stub___$ac_func
24714 choke me
24715 #endif
24716
24717 int
24718 main ()
24719 {
24720 return $ac_func ();
24721   ;
24722   return 0;
24723 }
24724 _ACEOF
24725 rm -f conftest.$ac_objext conftest$ac_exeext
24726 if { (ac_try="$ac_link"
24727 case "(($ac_try" in
24728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24729   *) ac_try_echo=$ac_try;;
24730 esac
24731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24732 $as_echo "$ac_try_echo") >&5
24733   (eval "$ac_link") 2>conftest.er1
24734   ac_status=$?
24735   grep -v '^ *+' conftest.er1 >conftest.err
24736   rm -f conftest.er1
24737   cat conftest.err >&5
24738   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739   (exit $ac_status); } && {
24740          test -z "$ac_c_werror_flag" ||
24741          test ! -s conftest.err
24742        } && test -s conftest$ac_exeext &&
24743        $as_test_x conftest$ac_exeext; then
24744   eval "$as_ac_var=yes"
24745 else
24746   $as_echo "$as_me: failed program was:" >&5
24747 sed 's/^/| /' conftest.$ac_ext >&5
24748
24749         eval "$as_ac_var=no"
24750 fi
24751
24752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24753       conftest$ac_exeext conftest.$ac_ext
24754 fi
24755 ac_res=`eval 'as_val=${'$as_ac_var'}
24756                  $as_echo "$as_val"'`
24757                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24758 $as_echo "$ac_res" >&6; }
24759 if test `eval 'as_val=${'$as_ac_var'}
24760                  $as_echo "$as_val"'` = yes; then
24761   cat >>confdefs.h <<_ACEOF
24762 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24763 _ACEOF
24764
24765 fi
24766 done
24767
24768
24769 # Solaris has libkstat which does not require root.
24770
24771 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
24772 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
24773 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
24774   $as_echo_n "(cached) " >&6
24775 else
24776   ac_check_lib_save_LIBS=$LIBS
24777 LIBS="-lkstat  $LIBS"
24778 cat >conftest.$ac_ext <<_ACEOF
24779 /* confdefs.h.  */
24780 _ACEOF
24781 cat confdefs.h >>conftest.$ac_ext
24782 cat >>conftest.$ac_ext <<_ACEOF
24783 /* end confdefs.h.  */
24784
24785 /* Override any GCC internal prototype to avoid an error.
24786    Use char because int might match the return type of a GCC
24787    builtin and then its argument prototype would still apply.  */
24788 #ifdef __cplusplus
24789 extern "C"
24790 #endif
24791 char kstat_open ();
24792 int
24793 main ()
24794 {
24795 return kstat_open ();
24796   ;
24797   return 0;
24798 }
24799 _ACEOF
24800 rm -f conftest.$ac_objext conftest$ac_exeext
24801 if { (ac_try="$ac_link"
24802 case "(($ac_try" in
24803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24804   *) ac_try_echo=$ac_try;;
24805 esac
24806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24807 $as_echo "$ac_try_echo") >&5
24808   (eval "$ac_link") 2>conftest.er1
24809   ac_status=$?
24810   grep -v '^ *+' conftest.er1 >conftest.err
24811   rm -f conftest.er1
24812   cat conftest.err >&5
24813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814   (exit $ac_status); } && {
24815          test -z "$ac_c_werror_flag" ||
24816          test ! -s conftest.err
24817        } && test -s conftest$ac_exeext &&
24818        $as_test_x conftest$ac_exeext; then
24819   ac_cv_lib_kstat_kstat_open=yes
24820 else
24821   $as_echo "$as_me: failed program was:" >&5
24822 sed 's/^/| /' conftest.$ac_ext >&5
24823
24824         ac_cv_lib_kstat_kstat_open=no
24825 fi
24826
24827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24828       conftest$ac_exeext conftest.$ac_ext
24829 LIBS=$ac_check_lib_save_LIBS
24830 fi
24831 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
24832 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
24833 if test $ac_cv_lib_kstat_kstat_open = yes; then
24834   cat >>confdefs.h <<_ACEOF
24835 #define HAVE_LIBKSTAT 1
24836 _ACEOF
24837
24838   LIBS="-lkstat $LIBS"
24839
24840 fi
24841
24842 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes
24843
24844 # Some systems with -lutil have (and need) -lkvm as well, some do not.
24845 # On Solaris, -lkvm requires nlist from -lelf, so check that first
24846 # to get the right answer into the cache.
24847 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
24848 if test $gl_have_func = no; then
24849   { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24850 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
24851 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24852   $as_echo_n "(cached) " >&6
24853 else
24854   ac_check_lib_save_LIBS=$LIBS
24855 LIBS="-lelf  $LIBS"
24856 cat >conftest.$ac_ext <<_ACEOF
24857 /* confdefs.h.  */
24858 _ACEOF
24859 cat confdefs.h >>conftest.$ac_ext
24860 cat >>conftest.$ac_ext <<_ACEOF
24861 /* end confdefs.h.  */
24862
24863 /* Override any GCC internal prototype to avoid an error.
24864    Use char because int might match the return type of a GCC
24865    builtin and then its argument prototype would still apply.  */
24866 #ifdef __cplusplus
24867 extern "C"
24868 #endif
24869 char elf_begin ();
24870 int
24871 main ()
24872 {
24873 return elf_begin ();
24874   ;
24875   return 0;
24876 }
24877 _ACEOF
24878 rm -f conftest.$ac_objext conftest$ac_exeext
24879 if { (ac_try="$ac_link"
24880 case "(($ac_try" in
24881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24882   *) ac_try_echo=$ac_try;;
24883 esac
24884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24885 $as_echo "$ac_try_echo") >&5
24886   (eval "$ac_link") 2>conftest.er1
24887   ac_status=$?
24888   grep -v '^ *+' conftest.er1 >conftest.err
24889   rm -f conftest.er1
24890   cat conftest.err >&5
24891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892   (exit $ac_status); } && {
24893          test -z "$ac_c_werror_flag" ||
24894          test ! -s conftest.err
24895        } && test -s conftest$ac_exeext &&
24896        $as_test_x conftest$ac_exeext; then
24897   ac_cv_lib_elf_elf_begin=yes
24898 else
24899   $as_echo "$as_me: failed program was:" >&5
24900 sed 's/^/| /' conftest.$ac_ext >&5
24901
24902         ac_cv_lib_elf_elf_begin=no
24903 fi
24904
24905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24906       conftest$ac_exeext conftest.$ac_ext
24907 LIBS=$ac_check_lib_save_LIBS
24908 fi
24909 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24910 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
24911 if test $ac_cv_lib_elf_elf_begin = yes; then
24912   LIBS="-lelf $LIBS"
24913 fi
24914
24915 fi
24916 if test $gl_have_func = no; then
24917   { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
24918 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
24919 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
24920   $as_echo_n "(cached) " >&6
24921 else
24922   ac_check_lib_save_LIBS=$LIBS
24923 LIBS="-lkvm  $LIBS"
24924 cat >conftest.$ac_ext <<_ACEOF
24925 /* confdefs.h.  */
24926 _ACEOF
24927 cat confdefs.h >>conftest.$ac_ext
24928 cat >>conftest.$ac_ext <<_ACEOF
24929 /* end confdefs.h.  */
24930
24931 /* Override any GCC internal prototype to avoid an error.
24932    Use char because int might match the return type of a GCC
24933    builtin and then its argument prototype would still apply.  */
24934 #ifdef __cplusplus
24935 extern "C"
24936 #endif
24937 char kvm_open ();
24938 int
24939 main ()
24940 {
24941 return kvm_open ();
24942   ;
24943   return 0;
24944 }
24945 _ACEOF
24946 rm -f conftest.$ac_objext conftest$ac_exeext
24947 if { (ac_try="$ac_link"
24948 case "(($ac_try" in
24949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24950   *) ac_try_echo=$ac_try;;
24951 esac
24952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24953 $as_echo "$ac_try_echo") >&5
24954   (eval "$ac_link") 2>conftest.er1
24955   ac_status=$?
24956   grep -v '^ *+' conftest.er1 >conftest.err
24957   rm -f conftest.er1
24958   cat conftest.err >&5
24959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960   (exit $ac_status); } && {
24961          test -z "$ac_c_werror_flag" ||
24962          test ! -s conftest.err
24963        } && test -s conftest$ac_exeext &&
24964        $as_test_x conftest$ac_exeext; then
24965   ac_cv_lib_kvm_kvm_open=yes
24966 else
24967   $as_echo "$as_me: failed program was:" >&5
24968 sed 's/^/| /' conftest.$ac_ext >&5
24969
24970         ac_cv_lib_kvm_kvm_open=no
24971 fi
24972
24973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24974       conftest$ac_exeext conftest.$ac_ext
24975 LIBS=$ac_check_lib_save_LIBS
24976 fi
24977 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
24978 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
24979 if test $ac_cv_lib_kvm_kvm_open = yes; then
24980   LIBS="-lkvm $LIBS"
24981 fi
24982
24983   # Check for the 4.4BSD definition of getloadavg.
24984   { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
24985 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
24986 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
24987   $as_echo_n "(cached) " >&6
24988 else
24989   ac_check_lib_save_LIBS=$LIBS
24990 LIBS="-lutil  $LIBS"
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
24998 /* Override any GCC internal prototype to avoid an error.
24999    Use char because int might match the return type of a GCC
25000    builtin and then its argument prototype would still apply.  */
25001 #ifdef __cplusplus
25002 extern "C"
25003 #endif
25004 char getloadavg ();
25005 int
25006 main ()
25007 {
25008 return getloadavg ();
25009   ;
25010   return 0;
25011 }
25012 _ACEOF
25013 rm -f conftest.$ac_objext conftest$ac_exeext
25014 if { (ac_try="$ac_link"
25015 case "(($ac_try" in
25016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25017   *) ac_try_echo=$ac_try;;
25018 esac
25019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25020 $as_echo "$ac_try_echo") >&5
25021   (eval "$ac_link") 2>conftest.er1
25022   ac_status=$?
25023   grep -v '^ *+' conftest.er1 >conftest.err
25024   rm -f conftest.er1
25025   cat conftest.err >&5
25026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25027   (exit $ac_status); } && {
25028          test -z "$ac_c_werror_flag" ||
25029          test ! -s conftest.err
25030        } && test -s conftest$ac_exeext &&
25031        $as_test_x conftest$ac_exeext; then
25032   ac_cv_lib_util_getloadavg=yes
25033 else
25034   $as_echo "$as_me: failed program was:" >&5
25035 sed 's/^/| /' conftest.$ac_ext >&5
25036
25037         ac_cv_lib_util_getloadavg=no
25038 fi
25039
25040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25041       conftest$ac_exeext conftest.$ac_ext
25042 LIBS=$ac_check_lib_save_LIBS
25043 fi
25044 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
25045 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
25046 if test $ac_cv_lib_util_getloadavg = yes; then
25047   LIBS="-lutil $LIBS" gl_have_func=yes gl_cv_func_getloadavg_setgid=yes
25048 fi
25049
25050 fi
25051
25052 if test $gl_have_func = no; then
25053   # There is a commonly available library for RS/6000 AIX.
25054   # Since it is not a standard part of AIX, it might be installed locally.
25055   gl_getloadavg_LIBS=$LIBS
25056   LIBS="-L/usr/local/lib $LIBS"
25057   { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
25058 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
25059 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
25060   $as_echo_n "(cached) " >&6
25061 else
25062   ac_check_lib_save_LIBS=$LIBS
25063 LIBS="-lgetloadavg  $LIBS"
25064 cat >conftest.$ac_ext <<_ACEOF
25065 /* confdefs.h.  */
25066 _ACEOF
25067 cat confdefs.h >>conftest.$ac_ext
25068 cat >>conftest.$ac_ext <<_ACEOF
25069 /* end confdefs.h.  */
25070
25071 /* Override any GCC internal prototype to avoid an error.
25072    Use char because int might match the return type of a GCC
25073    builtin and then its argument prototype would still apply.  */
25074 #ifdef __cplusplus
25075 extern "C"
25076 #endif
25077 char getloadavg ();
25078 int
25079 main ()
25080 {
25081 return getloadavg ();
25082   ;
25083   return 0;
25084 }
25085 _ACEOF
25086 rm -f conftest.$ac_objext conftest$ac_exeext
25087 if { (ac_try="$ac_link"
25088 case "(($ac_try" in
25089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25090   *) ac_try_echo=$ac_try;;
25091 esac
25092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25093 $as_echo "$ac_try_echo") >&5
25094   (eval "$ac_link") 2>conftest.er1
25095   ac_status=$?
25096   grep -v '^ *+' conftest.er1 >conftest.err
25097   rm -f conftest.er1
25098   cat conftest.err >&5
25099   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100   (exit $ac_status); } && {
25101          test -z "$ac_c_werror_flag" ||
25102          test ! -s conftest.err
25103        } && test -s conftest$ac_exeext &&
25104        $as_test_x conftest$ac_exeext; then
25105   ac_cv_lib_getloadavg_getloadavg=yes
25106 else
25107   $as_echo "$as_me: failed program was:" >&5
25108 sed 's/^/| /' conftest.$ac_ext >&5
25109
25110         ac_cv_lib_getloadavg_getloadavg=no
25111 fi
25112
25113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25114       conftest$ac_exeext conftest.$ac_ext
25115 LIBS=$ac_check_lib_save_LIBS
25116 fi
25117 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
25118 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
25119 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
25120   LIBS="-lgetloadavg $LIBS"
25121 else
25122   LIBS=$gl_getloadavg_LIBS
25123 fi
25124
25125 fi
25126
25127 # Make sure it is really in the library, if we think we found it,
25128 # otherwise set up the replacement function.
25129
25130 for ac_func in getloadavg
25131 do
25132 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25133 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25134 $as_echo_n "checking for $ac_func... " >&6; }
25135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25136   $as_echo_n "(cached) " >&6
25137 else
25138   cat >conftest.$ac_ext <<_ACEOF
25139 /* confdefs.h.  */
25140 _ACEOF
25141 cat confdefs.h >>conftest.$ac_ext
25142 cat >>conftest.$ac_ext <<_ACEOF
25143 /* end confdefs.h.  */
25144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25145    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25146 #define $ac_func innocuous_$ac_func
25147
25148 /* System header to define __stub macros and hopefully few prototypes,
25149     which can conflict with char $ac_func (); below.
25150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25151     <limits.h> exists even on freestanding compilers.  */
25152
25153 #ifdef __STDC__
25154 # include <limits.h>
25155 #else
25156 # include <assert.h>
25157 #endif
25158
25159 #undef $ac_func
25160
25161 /* Override any GCC internal prototype to avoid an error.
25162    Use char because int might match the return type of a GCC
25163    builtin and then its argument prototype would still apply.  */
25164 #ifdef __cplusplus
25165 extern "C"
25166 #endif
25167 char $ac_func ();
25168 /* The GNU C library defines this for functions which it implements
25169     to always fail with ENOSYS.  Some functions are actually named
25170     something starting with __ and the normal name is an alias.  */
25171 #if defined __stub_$ac_func || defined __stub___$ac_func
25172 choke me
25173 #endif
25174
25175 int
25176 main ()
25177 {
25178 return $ac_func ();
25179   ;
25180   return 0;
25181 }
25182 _ACEOF
25183 rm -f conftest.$ac_objext conftest$ac_exeext
25184 if { (ac_try="$ac_link"
25185 case "(($ac_try" in
25186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25187   *) ac_try_echo=$ac_try;;
25188 esac
25189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25190 $as_echo "$ac_try_echo") >&5
25191   (eval "$ac_link") 2>conftest.er1
25192   ac_status=$?
25193   grep -v '^ *+' conftest.er1 >conftest.err
25194   rm -f conftest.er1
25195   cat conftest.err >&5
25196   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197   (exit $ac_status); } && {
25198          test -z "$ac_c_werror_flag" ||
25199          test ! -s conftest.err
25200        } && test -s conftest$ac_exeext &&
25201        $as_test_x conftest$ac_exeext; then
25202   eval "$as_ac_var=yes"
25203 else
25204   $as_echo "$as_me: failed program was:" >&5
25205 sed 's/^/| /' conftest.$ac_ext >&5
25206
25207         eval "$as_ac_var=no"
25208 fi
25209
25210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25211       conftest$ac_exeext conftest.$ac_ext
25212 fi
25213 ac_res=`eval 'as_val=${'$as_ac_var'}
25214                  $as_echo "$as_val"'`
25215                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25216 $as_echo "$ac_res" >&6; }
25217 if test `eval 'as_val=${'$as_ac_var'}
25218                  $as_echo "$as_val"'` = yes; then
25219   cat >>confdefs.h <<_ACEOF
25220 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25221 _ACEOF
25222
25223 else
25224   gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
25225
25226 cat >>confdefs.h <<\_ACEOF
25227 #define C_GETLOADAVG 1
25228 _ACEOF
25229
25230 # Figure out what our getloadavg.c needs.
25231 gl_have_func=no
25232 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
25233   { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
25234 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
25235 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
25236   $as_echo_n "(cached) " >&6
25237 fi
25238 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
25239 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
25240 else
25241   # Is the header compilable?
25242 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
25243 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
25244 cat >conftest.$ac_ext <<_ACEOF
25245 /* confdefs.h.  */
25246 _ACEOF
25247 cat confdefs.h >>conftest.$ac_ext
25248 cat >>conftest.$ac_ext <<_ACEOF
25249 /* end confdefs.h.  */
25250 $ac_includes_default
25251 #include <sys/dg_sys_info.h>
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25260 $as_echo "$ac_try_echo") >&5
25261   (eval "$ac_compile") 2>conftest.er1
25262   ac_status=$?
25263   grep -v '^ *+' conftest.er1 >conftest.err
25264   rm -f conftest.er1
25265   cat conftest.err >&5
25266   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25267   (exit $ac_status); } && {
25268          test -z "$ac_c_werror_flag" ||
25269          test ! -s conftest.err
25270        } && test -s conftest.$ac_objext; then
25271   ac_header_compiler=yes
25272 else
25273   $as_echo "$as_me: failed program was:" >&5
25274 sed 's/^/| /' conftest.$ac_ext >&5
25275
25276         ac_header_compiler=no
25277 fi
25278
25279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25280 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25281 $as_echo "$ac_header_compiler" >&6; }
25282
25283 # Is the header present?
25284 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
25285 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
25286 cat >conftest.$ac_ext <<_ACEOF
25287 /* confdefs.h.  */
25288 _ACEOF
25289 cat confdefs.h >>conftest.$ac_ext
25290 cat >>conftest.$ac_ext <<_ACEOF
25291 /* end confdefs.h.  */
25292 #include <sys/dg_sys_info.h>
25293 _ACEOF
25294 if { (ac_try="$ac_cpp conftest.$ac_ext"
25295 case "(($ac_try" in
25296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25297   *) ac_try_echo=$ac_try;;
25298 esac
25299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25300 $as_echo "$ac_try_echo") >&5
25301   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25302   ac_status=$?
25303   grep -v '^ *+' conftest.er1 >conftest.err
25304   rm -f conftest.er1
25305   cat conftest.err >&5
25306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25307   (exit $ac_status); } >/dev/null && {
25308          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25309          test ! -s conftest.err
25310        }; then
25311   ac_header_preproc=yes
25312 else
25313   $as_echo "$as_me: failed program was:" >&5
25314 sed 's/^/| /' conftest.$ac_ext >&5
25315
25316   ac_header_preproc=no
25317 fi
25318
25319 rm -f conftest.err conftest.$ac_ext
25320 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25321 $as_echo "$ac_header_preproc" >&6; }
25322
25323 # So?  What about this header?
25324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25325   yes:no: )
25326     { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
25327 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25328     { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
25329 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
25330     ac_header_preproc=yes
25331     ;;
25332   no:yes:* )
25333     { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
25334 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
25335     { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&5
25336 $as_echo "$as_me: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&2;}
25337     { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
25338 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
25339     { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&5
25340 $as_echo "$as_me: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25341     { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
25342 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
25343     { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
25344 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
25345     ( cat <<\_ASBOX
25346 ## ------------------------------------ ##
25347 ## Report this to bug-coreutils@gnu.org ##
25348 ## ------------------------------------ ##
25349 _ASBOX
25350      ) | sed "s/^/$as_me: WARNING:     /" >&2
25351     ;;
25352 esac
25353 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
25354 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
25355 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
25356   $as_echo_n "(cached) " >&6
25357 else
25358   ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
25359 fi
25360 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
25361 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
25362
25363 fi
25364 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
25365   gl_have_func=yes
25366
25367 cat >>confdefs.h <<\_ACEOF
25368 #define DGUX 1
25369 _ACEOF
25370
25371
25372 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
25373 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
25374 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
25375   $as_echo_n "(cached) " >&6
25376 else
25377   ac_check_lib_save_LIBS=$LIBS
25378 LIBS="-ldgc  $LIBS"
25379 cat >conftest.$ac_ext <<_ACEOF
25380 /* confdefs.h.  */
25381 _ACEOF
25382 cat confdefs.h >>conftest.$ac_ext
25383 cat >>conftest.$ac_ext <<_ACEOF
25384 /* end confdefs.h.  */
25385
25386 /* Override any GCC internal prototype to avoid an error.
25387    Use char because int might match the return type of a GCC
25388    builtin and then its argument prototype would still apply.  */
25389 #ifdef __cplusplus
25390 extern "C"
25391 #endif
25392 char dg_sys_info ();
25393 int
25394 main ()
25395 {
25396 return dg_sys_info ();
25397   ;
25398   return 0;
25399 }
25400 _ACEOF
25401 rm -f conftest.$ac_objext conftest$ac_exeext
25402 if { (ac_try="$ac_link"
25403 case "(($ac_try" in
25404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25405   *) ac_try_echo=$ac_try;;
25406 esac
25407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25408 $as_echo "$ac_try_echo") >&5
25409   (eval "$ac_link") 2>conftest.er1
25410   ac_status=$?
25411   grep -v '^ *+' conftest.er1 >conftest.err
25412   rm -f conftest.er1
25413   cat conftest.err >&5
25414   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25415   (exit $ac_status); } && {
25416          test -z "$ac_c_werror_flag" ||
25417          test ! -s conftest.err
25418        } && test -s conftest$ac_exeext &&
25419        $as_test_x conftest$ac_exeext; then
25420   ac_cv_lib_dgc_dg_sys_info=yes
25421 else
25422   $as_echo "$as_me: failed program was:" >&5
25423 sed 's/^/| /' conftest.$ac_ext >&5
25424
25425         ac_cv_lib_dgc_dg_sys_info=no
25426 fi
25427
25428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25429       conftest$ac_exeext conftest.$ac_ext
25430 LIBS=$ac_check_lib_save_LIBS
25431 fi
25432 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
25433 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
25434 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
25435   cat >>confdefs.h <<_ACEOF
25436 #define HAVE_LIBDGC 1
25437 _ACEOF
25438
25439   LIBS="-ldgc $LIBS"
25440
25441 fi
25442
25443 fi
25444
25445
25446
25447 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
25448 # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
25449 # Irix 4.0.5F has the header but not the library.
25450 if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
25451   gl_have_func=yes
25452
25453 cat >>confdefs.h <<\_ACEOF
25454 #define SVR4 1
25455 _ACEOF
25456
25457 fi
25458
25459 if test $gl_have_func = no; then
25460   if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
25461   { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
25462 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
25463 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
25464   $as_echo_n "(cached) " >&6
25465 fi
25466 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
25467 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
25468 else
25469   # Is the header compilable?
25470 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
25471 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
25472 cat >conftest.$ac_ext <<_ACEOF
25473 /* confdefs.h.  */
25474 _ACEOF
25475 cat confdefs.h >>conftest.$ac_ext
25476 cat >>conftest.$ac_ext <<_ACEOF
25477 /* end confdefs.h.  */
25478 $ac_includes_default
25479 #include <inq_stats/cpustats.h>
25480 _ACEOF
25481 rm -f conftest.$ac_objext
25482 if { (ac_try="$ac_compile"
25483 case "(($ac_try" in
25484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25485   *) ac_try_echo=$ac_try;;
25486 esac
25487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25488 $as_echo "$ac_try_echo") >&5
25489   (eval "$ac_compile") 2>conftest.er1
25490   ac_status=$?
25491   grep -v '^ *+' conftest.er1 >conftest.err
25492   rm -f conftest.er1
25493   cat conftest.err >&5
25494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495   (exit $ac_status); } && {
25496          test -z "$ac_c_werror_flag" ||
25497          test ! -s conftest.err
25498        } && test -s conftest.$ac_objext; then
25499   ac_header_compiler=yes
25500 else
25501   $as_echo "$as_me: failed program was:" >&5
25502 sed 's/^/| /' conftest.$ac_ext >&5
25503
25504         ac_header_compiler=no
25505 fi
25506
25507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25508 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25509 $as_echo "$ac_header_compiler" >&6; }
25510
25511 # Is the header present?
25512 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
25513 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
25514 cat >conftest.$ac_ext <<_ACEOF
25515 /* confdefs.h.  */
25516 _ACEOF
25517 cat confdefs.h >>conftest.$ac_ext
25518 cat >>conftest.$ac_ext <<_ACEOF
25519 /* end confdefs.h.  */
25520 #include <inq_stats/cpustats.h>
25521 _ACEOF
25522 if { (ac_try="$ac_cpp conftest.$ac_ext"
25523 case "(($ac_try" in
25524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25525   *) ac_try_echo=$ac_try;;
25526 esac
25527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25528 $as_echo "$ac_try_echo") >&5
25529   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25530   ac_status=$?
25531   grep -v '^ *+' conftest.er1 >conftest.err
25532   rm -f conftest.er1
25533   cat conftest.err >&5
25534   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535   (exit $ac_status); } >/dev/null && {
25536          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25537          test ! -s conftest.err
25538        }; then
25539   ac_header_preproc=yes
25540 else
25541   $as_echo "$as_me: failed program was:" >&5
25542 sed 's/^/| /' conftest.$ac_ext >&5
25543
25544   ac_header_preproc=no
25545 fi
25546
25547 rm -f conftest.err conftest.$ac_ext
25548 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25549 $as_echo "$ac_header_preproc" >&6; }
25550
25551 # So?  What about this header?
25552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25553   yes:no: )
25554     { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
25555 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25556     { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
25557 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
25558     ac_header_preproc=yes
25559     ;;
25560   no:yes:* )
25561     { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
25562 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
25563     { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&5
25564 $as_echo "$as_me: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&2;}
25565     { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
25566 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
25567     { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
25568 $as_echo "$as_me: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25569     { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
25570 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
25571     { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
25572 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
25573     ( cat <<\_ASBOX
25574 ## ------------------------------------ ##
25575 ## Report this to bug-coreutils@gnu.org ##
25576 ## ------------------------------------ ##
25577 _ASBOX
25578      ) | sed "s/^/$as_me: WARNING:     /" >&2
25579     ;;
25580 esac
25581 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
25582 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
25583 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
25584   $as_echo_n "(cached) " >&6
25585 else
25586   ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
25587 fi
25588 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
25589 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
25590
25591 fi
25592 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
25593   gl_have_func=yes
25594
25595 cat >>confdefs.h <<\_ACEOF
25596 #define UMAX 1
25597 _ACEOF
25598
25599
25600 cat >>confdefs.h <<\_ACEOF
25601 #define UMAX4_3 1
25602 _ACEOF
25603
25604 fi
25605
25606
25607 fi
25608
25609 if test $gl_have_func = no; then
25610   if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
25611   { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
25612 $as_echo_n "checking for sys/cpustats.h... " >&6; }
25613 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
25614   $as_echo_n "(cached) " >&6
25615 fi
25616 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
25617 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
25618 else
25619   # Is the header compilable?
25620 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
25621 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
25622 cat >conftest.$ac_ext <<_ACEOF
25623 /* confdefs.h.  */
25624 _ACEOF
25625 cat confdefs.h >>conftest.$ac_ext
25626 cat >>conftest.$ac_ext <<_ACEOF
25627 /* end confdefs.h.  */
25628 $ac_includes_default
25629 #include <sys/cpustats.h>
25630 _ACEOF
25631 rm -f conftest.$ac_objext
25632 if { (ac_try="$ac_compile"
25633 case "(($ac_try" in
25634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25635   *) ac_try_echo=$ac_try;;
25636 esac
25637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25638 $as_echo "$ac_try_echo") >&5
25639   (eval "$ac_compile") 2>conftest.er1
25640   ac_status=$?
25641   grep -v '^ *+' conftest.er1 >conftest.err
25642   rm -f conftest.er1
25643   cat conftest.err >&5
25644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645   (exit $ac_status); } && {
25646          test -z "$ac_c_werror_flag" ||
25647          test ! -s conftest.err
25648        } && test -s conftest.$ac_objext; then
25649   ac_header_compiler=yes
25650 else
25651   $as_echo "$as_me: failed program was:" >&5
25652 sed 's/^/| /' conftest.$ac_ext >&5
25653
25654         ac_header_compiler=no
25655 fi
25656
25657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25658 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25659 $as_echo "$ac_header_compiler" >&6; }
25660
25661 # Is the header present?
25662 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
25663 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
25664 cat >conftest.$ac_ext <<_ACEOF
25665 /* confdefs.h.  */
25666 _ACEOF
25667 cat confdefs.h >>conftest.$ac_ext
25668 cat >>conftest.$ac_ext <<_ACEOF
25669 /* end confdefs.h.  */
25670 #include <sys/cpustats.h>
25671 _ACEOF
25672 if { (ac_try="$ac_cpp conftest.$ac_ext"
25673 case "(($ac_try" in
25674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25675   *) ac_try_echo=$ac_try;;
25676 esac
25677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25678 $as_echo "$ac_try_echo") >&5
25679   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25680   ac_status=$?
25681   grep -v '^ *+' conftest.er1 >conftest.err
25682   rm -f conftest.er1
25683   cat conftest.err >&5
25684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685   (exit $ac_status); } >/dev/null && {
25686          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25687          test ! -s conftest.err
25688        }; then
25689   ac_header_preproc=yes
25690 else
25691   $as_echo "$as_me: failed program was:" >&5
25692 sed 's/^/| /' conftest.$ac_ext >&5
25693
25694   ac_header_preproc=no
25695 fi
25696
25697 rm -f conftest.err conftest.$ac_ext
25698 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25699 $as_echo "$ac_header_preproc" >&6; }
25700
25701 # So?  What about this header?
25702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25703   yes:no: )
25704     { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
25705 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25706     { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
25707 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
25708     ac_header_preproc=yes
25709     ;;
25710   no:yes:* )
25711     { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
25712 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
25713     { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&5
25714 $as_echo "$as_me: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&2;}
25715     { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
25716 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
25717     { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
25718 $as_echo "$as_me: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25719     { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
25720 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
25721     { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
25722 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
25723     ( cat <<\_ASBOX
25724 ## ------------------------------------ ##
25725 ## Report this to bug-coreutils@gnu.org ##
25726 ## ------------------------------------ ##
25727 _ASBOX
25728      ) | sed "s/^/$as_me: WARNING:     /" >&2
25729     ;;
25730 esac
25731 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
25732 $as_echo_n "checking for sys/cpustats.h... " >&6; }
25733 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
25734   $as_echo_n "(cached) " >&6
25735 else
25736   ac_cv_header_sys_cpustats_h=$ac_header_preproc
25737 fi
25738 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
25739 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
25740
25741 fi
25742 if test $ac_cv_header_sys_cpustats_h = yes; then
25743   gl_have_func=yes; cat >>confdefs.h <<\_ACEOF
25744 #define UMAX 1
25745 _ACEOF
25746
25747 fi
25748
25749
25750 fi
25751
25752 if test $gl_have_func = no; then
25753
25754 for ac_header in mach/mach.h
25755 do
25756 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25758   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25759 $as_echo_n "checking for $ac_header... " >&6; }
25760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25761   $as_echo_n "(cached) " >&6
25762 fi
25763 ac_res=`eval 'as_val=${'$as_ac_Header'}
25764                  $as_echo "$as_val"'`
25765                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25766 $as_echo "$ac_res" >&6; }
25767 else
25768   # Is the header compilable?
25769 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25770 $as_echo_n "checking $ac_header usability... " >&6; }
25771 cat >conftest.$ac_ext <<_ACEOF
25772 /* confdefs.h.  */
25773 _ACEOF
25774 cat confdefs.h >>conftest.$ac_ext
25775 cat >>conftest.$ac_ext <<_ACEOF
25776 /* end confdefs.h.  */
25777 $ac_includes_default
25778 #include <$ac_header>
25779 _ACEOF
25780 rm -f conftest.$ac_objext
25781 if { (ac_try="$ac_compile"
25782 case "(($ac_try" in
25783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25784   *) ac_try_echo=$ac_try;;
25785 esac
25786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25787 $as_echo "$ac_try_echo") >&5
25788   (eval "$ac_compile") 2>conftest.er1
25789   ac_status=$?
25790   grep -v '^ *+' conftest.er1 >conftest.err
25791   rm -f conftest.er1
25792   cat conftest.err >&5
25793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794   (exit $ac_status); } && {
25795          test -z "$ac_c_werror_flag" ||
25796          test ! -s conftest.err
25797        } && test -s conftest.$ac_objext; then
25798   ac_header_compiler=yes
25799 else
25800   $as_echo "$as_me: failed program was:" >&5
25801 sed 's/^/| /' conftest.$ac_ext >&5
25802
25803         ac_header_compiler=no
25804 fi
25805
25806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25807 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25808 $as_echo "$ac_header_compiler" >&6; }
25809
25810 # Is the header present?
25811 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25812 $as_echo_n "checking $ac_header presence... " >&6; }
25813 cat >conftest.$ac_ext <<_ACEOF
25814 /* confdefs.h.  */
25815 _ACEOF
25816 cat confdefs.h >>conftest.$ac_ext
25817 cat >>conftest.$ac_ext <<_ACEOF
25818 /* end confdefs.h.  */
25819 #include <$ac_header>
25820 _ACEOF
25821 if { (ac_try="$ac_cpp conftest.$ac_ext"
25822 case "(($ac_try" in
25823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25824   *) ac_try_echo=$ac_try;;
25825 esac
25826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25827 $as_echo "$ac_try_echo") >&5
25828   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25829   ac_status=$?
25830   grep -v '^ *+' conftest.er1 >conftest.err
25831   rm -f conftest.er1
25832   cat conftest.err >&5
25833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834   (exit $ac_status); } >/dev/null && {
25835          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25836          test ! -s conftest.err
25837        }; then
25838   ac_header_preproc=yes
25839 else
25840   $as_echo "$as_me: failed program was:" >&5
25841 sed 's/^/| /' conftest.$ac_ext >&5
25842
25843   ac_header_preproc=no
25844 fi
25845
25846 rm -f conftest.err conftest.$ac_ext
25847 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25848 $as_echo "$ac_header_preproc" >&6; }
25849
25850 # So?  What about this header?
25851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25852   yes:no: )
25853     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25854 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25855     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25856 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25857     ac_header_preproc=yes
25858     ;;
25859   no:yes:* )
25860     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25861 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25862     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25863 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25864     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25865 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25866     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25867 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25868     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25869 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25870     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25871 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25872     ( cat <<\_ASBOX
25873 ## ------------------------------------ ##
25874 ## Report this to bug-coreutils@gnu.org ##
25875 ## ------------------------------------ ##
25876 _ASBOX
25877      ) | sed "s/^/$as_me: WARNING:     /" >&2
25878     ;;
25879 esac
25880 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25881 $as_echo_n "checking for $ac_header... " >&6; }
25882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25883   $as_echo_n "(cached) " >&6
25884 else
25885   eval "$as_ac_Header=\$ac_header_preproc"
25886 fi
25887 ac_res=`eval 'as_val=${'$as_ac_Header'}
25888                  $as_echo "$as_val"'`
25889                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25890 $as_echo "$ac_res" >&6; }
25891
25892 fi
25893 if test `eval 'as_val=${'$as_ac_Header'}
25894                  $as_echo "$as_val"'` = yes; then
25895   cat >>confdefs.h <<_ACEOF
25896 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25897 _ACEOF
25898
25899 fi
25900
25901 done
25902
25903 fi
25904
25905
25906 for ac_header in nlist.h
25907 do
25908 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25910   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25911 $as_echo_n "checking for $ac_header... " >&6; }
25912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25913   $as_echo_n "(cached) " >&6
25914 fi
25915 ac_res=`eval 'as_val=${'$as_ac_Header'}
25916                  $as_echo "$as_val"'`
25917                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25918 $as_echo "$ac_res" >&6; }
25919 else
25920   # Is the header compilable?
25921 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25922 $as_echo_n "checking $ac_header usability... " >&6; }
25923 cat >conftest.$ac_ext <<_ACEOF
25924 /* confdefs.h.  */
25925 _ACEOF
25926 cat confdefs.h >>conftest.$ac_ext
25927 cat >>conftest.$ac_ext <<_ACEOF
25928 /* end confdefs.h.  */
25929 $ac_includes_default
25930 #include <$ac_header>
25931 _ACEOF
25932 rm -f conftest.$ac_objext
25933 if { (ac_try="$ac_compile"
25934 case "(($ac_try" in
25935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25936   *) ac_try_echo=$ac_try;;
25937 esac
25938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25939 $as_echo "$ac_try_echo") >&5
25940   (eval "$ac_compile") 2>conftest.er1
25941   ac_status=$?
25942   grep -v '^ *+' conftest.er1 >conftest.err
25943   rm -f conftest.er1
25944   cat conftest.err >&5
25945   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946   (exit $ac_status); } && {
25947          test -z "$ac_c_werror_flag" ||
25948          test ! -s conftest.err
25949        } && test -s conftest.$ac_objext; then
25950   ac_header_compiler=yes
25951 else
25952   $as_echo "$as_me: failed program was:" >&5
25953 sed 's/^/| /' conftest.$ac_ext >&5
25954
25955         ac_header_compiler=no
25956 fi
25957
25958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25959 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25960 $as_echo "$ac_header_compiler" >&6; }
25961
25962 # Is the header present?
25963 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25964 $as_echo_n "checking $ac_header presence... " >&6; }
25965 cat >conftest.$ac_ext <<_ACEOF
25966 /* confdefs.h.  */
25967 _ACEOF
25968 cat confdefs.h >>conftest.$ac_ext
25969 cat >>conftest.$ac_ext <<_ACEOF
25970 /* end confdefs.h.  */
25971 #include <$ac_header>
25972 _ACEOF
25973 if { (ac_try="$ac_cpp conftest.$ac_ext"
25974 case "(($ac_try" in
25975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25976   *) ac_try_echo=$ac_try;;
25977 esac
25978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25979 $as_echo "$ac_try_echo") >&5
25980   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25981   ac_status=$?
25982   grep -v '^ *+' conftest.er1 >conftest.err
25983   rm -f conftest.er1
25984   cat conftest.err >&5
25985   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986   (exit $ac_status); } >/dev/null && {
25987          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25988          test ! -s conftest.err
25989        }; then
25990   ac_header_preproc=yes
25991 else
25992   $as_echo "$as_me: failed program was:" >&5
25993 sed 's/^/| /' conftest.$ac_ext >&5
25994
25995   ac_header_preproc=no
25996 fi
25997
25998 rm -f conftest.err conftest.$ac_ext
25999 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26000 $as_echo "$ac_header_preproc" >&6; }
26001
26002 # So?  What about this header?
26003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26004   yes:no: )
26005     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26006 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26007     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26008 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26009     ac_header_preproc=yes
26010     ;;
26011   no:yes:* )
26012     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26013 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26014     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26015 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26016     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26017 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26018     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26019 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26020     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26021 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26022     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26023 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26024     ( cat <<\_ASBOX
26025 ## ------------------------------------ ##
26026 ## Report this to bug-coreutils@gnu.org ##
26027 ## ------------------------------------ ##
26028 _ASBOX
26029      ) | sed "s/^/$as_me: WARNING:     /" >&2
26030     ;;
26031 esac
26032 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26033 $as_echo_n "checking for $ac_header... " >&6; }
26034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26035   $as_echo_n "(cached) " >&6
26036 else
26037   eval "$as_ac_Header=\$ac_header_preproc"
26038 fi
26039 ac_res=`eval 'as_val=${'$as_ac_Header'}
26040                  $as_echo "$as_val"'`
26041                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26042 $as_echo "$ac_res" >&6; }
26043
26044 fi
26045 if test `eval 'as_val=${'$as_ac_Header'}
26046                  $as_echo "$as_val"'` = yes; then
26047   cat >>confdefs.h <<_ACEOF
26048 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26049 _ACEOF
26050  { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
26051 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
26052 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
26053   $as_echo_n "(cached) " >&6
26054 else
26055   cat >conftest.$ac_ext <<_ACEOF
26056 /* confdefs.h.  */
26057 _ACEOF
26058 cat confdefs.h >>conftest.$ac_ext
26059 cat >>conftest.$ac_ext <<_ACEOF
26060 /* end confdefs.h.  */
26061 #include <nlist.h>
26062
26063 int
26064 main ()
26065 {
26066 static struct nlist ac_aggr;
26067 if (ac_aggr.n_un.n_name)
26068 return 0;
26069   ;
26070   return 0;
26071 }
26072 _ACEOF
26073 rm -f conftest.$ac_objext
26074 if { (ac_try="$ac_compile"
26075 case "(($ac_try" in
26076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26077   *) ac_try_echo=$ac_try;;
26078 esac
26079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26080 $as_echo "$ac_try_echo") >&5
26081   (eval "$ac_compile") 2>conftest.er1
26082   ac_status=$?
26083   grep -v '^ *+' conftest.er1 >conftest.err
26084   rm -f conftest.er1
26085   cat conftest.err >&5
26086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26087   (exit $ac_status); } && {
26088          test -z "$ac_c_werror_flag" ||
26089          test ! -s conftest.err
26090        } && test -s conftest.$ac_objext; then
26091   ac_cv_member_struct_nlist_n_un_n_name=yes
26092 else
26093   $as_echo "$as_me: failed program was:" >&5
26094 sed 's/^/| /' conftest.$ac_ext >&5
26095
26096         cat >conftest.$ac_ext <<_ACEOF
26097 /* confdefs.h.  */
26098 _ACEOF
26099 cat confdefs.h >>conftest.$ac_ext
26100 cat >>conftest.$ac_ext <<_ACEOF
26101 /* end confdefs.h.  */
26102 #include <nlist.h>
26103
26104 int
26105 main ()
26106 {
26107 static struct nlist ac_aggr;
26108 if (sizeof ac_aggr.n_un.n_name)
26109 return 0;
26110   ;
26111   return 0;
26112 }
26113 _ACEOF
26114 rm -f conftest.$ac_objext
26115 if { (ac_try="$ac_compile"
26116 case "(($ac_try" in
26117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26118   *) ac_try_echo=$ac_try;;
26119 esac
26120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26121 $as_echo "$ac_try_echo") >&5
26122   (eval "$ac_compile") 2>conftest.er1
26123   ac_status=$?
26124   grep -v '^ *+' conftest.er1 >conftest.err
26125   rm -f conftest.er1
26126   cat conftest.err >&5
26127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128   (exit $ac_status); } && {
26129          test -z "$ac_c_werror_flag" ||
26130          test ! -s conftest.err
26131        } && test -s conftest.$ac_objext; then
26132   ac_cv_member_struct_nlist_n_un_n_name=yes
26133 else
26134   $as_echo "$as_me: failed program was:" >&5
26135 sed 's/^/| /' conftest.$ac_ext >&5
26136
26137         ac_cv_member_struct_nlist_n_un_n_name=no
26138 fi
26139
26140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26141 fi
26142
26143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26144 fi
26145 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
26146 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
26147 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
26148
26149 cat >>confdefs.h <<_ACEOF
26150 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
26151 _ACEOF
26152
26153
26154 cat >>confdefs.h <<\_ACEOF
26155 #define NLIST_NAME_UNION 1
26156 _ACEOF
26157
26158 fi
26159
26160
26161 fi
26162
26163 done
26164
26165 fi
26166 done
26167
26168
26169 # Some definitions of getloadavg require that the program be installed setgid.
26170 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
26171 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
26172 if test "${gl_cv_func_getloadavg_setgid+set}" = set; then
26173   $as_echo_n "(cached) " >&6
26174 else
26175   cat >conftest.$ac_ext <<_ACEOF
26176 /* confdefs.h.  */
26177 _ACEOF
26178 cat confdefs.h >>conftest.$ac_ext
26179 cat >>conftest.$ac_ext <<_ACEOF
26180 /* end confdefs.h.  */
26181 #define CONFIGURING_GETLOADAVG
26182 #include "$srcdir/lib/getloadavg.c"
26183 #ifdef LDAV_PRIVILEGED
26184 Yowza Am I SETGID yet
26185 #endif
26186
26187 _ACEOF
26188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26189   $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
26190   gl_cv_func_getloadavg_setgid=yes
26191 else
26192   gl_cv_func_getloadavg_setgid=no
26193 fi
26194 rm -f conftest*
26195
26196 fi
26197 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getloadavg_setgid" >&5
26198 $as_echo "$gl_cv_func_getloadavg_setgid" >&6; }
26199 if test $gl_cv_func_getloadavg_setgid = yes; then
26200   NEED_SETGID=true
26201
26202 cat >>confdefs.h <<\_ACEOF
26203 #define GETLOADAVG_PRIVILEGED 1
26204 _ACEOF
26205
26206 else
26207   NEED_SETGID=false
26208 fi
26209
26210 if test $gl_cv_func_getloadavg_setgid = yes; then
26211   { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
26212 $as_echo_n "checking group of /dev/kmem... " >&6; }
26213 if test "${gl_cv_group_kmem+set}" = set; then
26214   $as_echo_n "(cached) " >&6
26215 else
26216    # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
26217   ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
26218   # If we got an error (system does not support symlinks), try without -L.
26219   test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
26220   gl_cv_group_kmem=`echo $ac_ls_output \
26221     | sed -ne 's/[       ][      ]*/ /g
26222                s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/
26223                / /s/.* //;p'`
26224
26225 fi
26226 { $as_echo "$as_me:$LINENO: result: $gl_cv_group_kmem" >&5
26227 $as_echo "$gl_cv_group_kmem" >&6; }
26228   KMEM_GROUP=$gl_cv_group_kmem
26229 fi
26230 if test "x$gl_save_LIBS" = x; then
26231   GETLOADAVG_LIBS=$LIBS
26232 else
26233   GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
26234 fi
26235 LIBS=$gl_save_LIBS
26236
26237
26238
26239   gl_LIBOBJS="$gl_LIBOBJS getndelim2.$ac_objext"
26240
26241
26242
26243
26244
26245
26246   if test -n "$GETOPT_H"; then
26247
26248   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
26249   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
26250
26251   GETOPT_H=getopt.h
26252
26253 cat >>confdefs.h <<\_ACEOF
26254 #define __GETOPT_PREFIX rpl_
26255 _ACEOF
26256
26257
26258
26259
26260
26261
26262
26263
26264
26265
26266 fi
26267
26268
26269
26270
26271
26272
26273
26274
26275
26276
26277 for ac_header in OS.h
26278 do
26279 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26281   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26282 $as_echo_n "checking for $ac_header... " >&6; }
26283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26284   $as_echo_n "(cached) " >&6
26285 fi
26286 ac_res=`eval 'as_val=${'$as_ac_Header'}
26287                  $as_echo "$as_val"'`
26288                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26289 $as_echo "$ac_res" >&6; }
26290 else
26291   # Is the header compilable?
26292 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26293 $as_echo_n "checking $ac_header usability... " >&6; }
26294 cat >conftest.$ac_ext <<_ACEOF
26295 /* confdefs.h.  */
26296 _ACEOF
26297 cat confdefs.h >>conftest.$ac_ext
26298 cat >>conftest.$ac_ext <<_ACEOF
26299 /* end confdefs.h.  */
26300 $ac_includes_default
26301 #include <$ac_header>
26302 _ACEOF
26303 rm -f conftest.$ac_objext
26304 if { (ac_try="$ac_compile"
26305 case "(($ac_try" in
26306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26307   *) ac_try_echo=$ac_try;;
26308 esac
26309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26310 $as_echo "$ac_try_echo") >&5
26311   (eval "$ac_compile") 2>conftest.er1
26312   ac_status=$?
26313   grep -v '^ *+' conftest.er1 >conftest.err
26314   rm -f conftest.er1
26315   cat conftest.err >&5
26316   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317   (exit $ac_status); } && {
26318          test -z "$ac_c_werror_flag" ||
26319          test ! -s conftest.err
26320        } && test -s conftest.$ac_objext; then
26321   ac_header_compiler=yes
26322 else
26323   $as_echo "$as_me: failed program was:" >&5
26324 sed 's/^/| /' conftest.$ac_ext >&5
26325
26326         ac_header_compiler=no
26327 fi
26328
26329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26330 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26331 $as_echo "$ac_header_compiler" >&6; }
26332
26333 # Is the header present?
26334 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26335 $as_echo_n "checking $ac_header presence... " >&6; }
26336 cat >conftest.$ac_ext <<_ACEOF
26337 /* confdefs.h.  */
26338 _ACEOF
26339 cat confdefs.h >>conftest.$ac_ext
26340 cat >>conftest.$ac_ext <<_ACEOF
26341 /* end confdefs.h.  */
26342 #include <$ac_header>
26343 _ACEOF
26344 if { (ac_try="$ac_cpp conftest.$ac_ext"
26345 case "(($ac_try" in
26346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26347   *) ac_try_echo=$ac_try;;
26348 esac
26349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26350 $as_echo "$ac_try_echo") >&5
26351   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26352   ac_status=$?
26353   grep -v '^ *+' conftest.er1 >conftest.err
26354   rm -f conftest.er1
26355   cat conftest.err >&5
26356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357   (exit $ac_status); } >/dev/null && {
26358          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26359          test ! -s conftest.err
26360        }; then
26361   ac_header_preproc=yes
26362 else
26363   $as_echo "$as_me: failed program was:" >&5
26364 sed 's/^/| /' conftest.$ac_ext >&5
26365
26366   ac_header_preproc=no
26367 fi
26368
26369 rm -f conftest.err conftest.$ac_ext
26370 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26371 $as_echo "$ac_header_preproc" >&6; }
26372
26373 # So?  What about this header?
26374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26375   yes:no: )
26376     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26377 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26378     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26379 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26380     ac_header_preproc=yes
26381     ;;
26382   no:yes:* )
26383     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26384 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26385     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26386 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26387     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26388 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26389     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26390 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26391     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26392 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26393     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26394 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26395     ( cat <<\_ASBOX
26396 ## ------------------------------------ ##
26397 ## Report this to bug-coreutils@gnu.org ##
26398 ## ------------------------------------ ##
26399 _ASBOX
26400      ) | sed "s/^/$as_me: WARNING:     /" >&2
26401     ;;
26402 esac
26403 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26404 $as_echo_n "checking for $ac_header... " >&6; }
26405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26406   $as_echo_n "(cached) " >&6
26407 else
26408   eval "$as_ac_Header=\$ac_header_preproc"
26409 fi
26410 ac_res=`eval 'as_val=${'$as_ac_Header'}
26411                  $as_echo "$as_val"'`
26412                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26413 $as_echo "$ac_res" >&6; }
26414
26415 fi
26416 if test `eval 'as_val=${'$as_ac_Header'}
26417                  $as_echo "$as_val"'` = yes; then
26418   cat >>confdefs.h <<_ACEOF
26419 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26420 _ACEOF
26421
26422 fi
26423
26424 done
26425
26426
26427 for ac_func in getpagesize
26428 do
26429 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26430 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26431 $as_echo_n "checking for $ac_func... " >&6; }
26432 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26433   $as_echo_n "(cached) " >&6
26434 else
26435   cat >conftest.$ac_ext <<_ACEOF
26436 /* confdefs.h.  */
26437 _ACEOF
26438 cat confdefs.h >>conftest.$ac_ext
26439 cat >>conftest.$ac_ext <<_ACEOF
26440 /* end confdefs.h.  */
26441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26442    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26443 #define $ac_func innocuous_$ac_func
26444
26445 /* System header to define __stub macros and hopefully few prototypes,
26446     which can conflict with char $ac_func (); below.
26447     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26448     <limits.h> exists even on freestanding compilers.  */
26449
26450 #ifdef __STDC__
26451 # include <limits.h>
26452 #else
26453 # include <assert.h>
26454 #endif
26455
26456 #undef $ac_func
26457
26458 /* Override any GCC internal prototype to avoid an error.
26459    Use char because int might match the return type of a GCC
26460    builtin and then its argument prototype would still apply.  */
26461 #ifdef __cplusplus
26462 extern "C"
26463 #endif
26464 char $ac_func ();
26465 /* The GNU C library defines this for functions which it implements
26466     to always fail with ENOSYS.  Some functions are actually named
26467     something starting with __ and the normal name is an alias.  */
26468 #if defined __stub_$ac_func || defined __stub___$ac_func
26469 choke me
26470 #endif
26471
26472 int
26473 main ()
26474 {
26475 return $ac_func ();
26476   ;
26477   return 0;
26478 }
26479 _ACEOF
26480 rm -f conftest.$ac_objext conftest$ac_exeext
26481 if { (ac_try="$ac_link"
26482 case "(($ac_try" in
26483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26484   *) ac_try_echo=$ac_try;;
26485 esac
26486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26487 $as_echo "$ac_try_echo") >&5
26488   (eval "$ac_link") 2>conftest.er1
26489   ac_status=$?
26490   grep -v '^ *+' conftest.er1 >conftest.err
26491   rm -f conftest.er1
26492   cat conftest.err >&5
26493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494   (exit $ac_status); } && {
26495          test -z "$ac_c_werror_flag" ||
26496          test ! -s conftest.err
26497        } && test -s conftest$ac_exeext &&
26498        $as_test_x conftest$ac_exeext; then
26499   eval "$as_ac_var=yes"
26500 else
26501   $as_echo "$as_me: failed program was:" >&5
26502 sed 's/^/| /' conftest.$ac_ext >&5
26503
26504         eval "$as_ac_var=no"
26505 fi
26506
26507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26508       conftest$ac_exeext conftest.$ac_ext
26509 fi
26510 ac_res=`eval 'as_val=${'$as_ac_var'}
26511                  $as_echo "$as_val"'`
26512                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26513 $as_echo "$ac_res" >&6; }
26514 if test `eval 'as_val=${'$as_ac_var'}
26515                  $as_echo "$as_val"'` = yes; then
26516   cat >>confdefs.h <<_ACEOF
26517 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26518 _ACEOF
26519
26520 fi
26521 done
26522
26523
26524
26525
26526
26527
26528
26529     gl_LIBOBJS="$gl_LIBOBJS getpass.$ac_objext"
26530
26531
26532
26533
26534
26535
26536
26537
26538
26539
26540
26541
26542
26543
26544
26545
26546
26547
26548
26549   { $as_echo "$as_me:$LINENO: checking whether __fsetlocking is declared" >&5
26550 $as_echo_n "checking whether __fsetlocking is declared... " >&6; }
26551 if test "${ac_cv_have_decl___fsetlocking+set}" = set; then
26552   $as_echo_n "(cached) " >&6
26553 else
26554   cat >conftest.$ac_ext <<_ACEOF
26555 /* confdefs.h.  */
26556 _ACEOF
26557 cat confdefs.h >>conftest.$ac_ext
26558 cat >>conftest.$ac_ext <<_ACEOF
26559 /* end confdefs.h.  */
26560 #include <stdio.h>
26561      #if HAVE_STDIO_EXT_H
26562       #include <stdio_ext.h>
26563      #endif
26564
26565 int
26566 main ()
26567 {
26568 #ifndef __fsetlocking
26569   (void) __fsetlocking;
26570 #endif
26571
26572   ;
26573   return 0;
26574 }
26575 _ACEOF
26576 rm -f conftest.$ac_objext
26577 if { (ac_try="$ac_compile"
26578 case "(($ac_try" in
26579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26580   *) ac_try_echo=$ac_try;;
26581 esac
26582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26583 $as_echo "$ac_try_echo") >&5
26584   (eval "$ac_compile") 2>conftest.er1
26585   ac_status=$?
26586   grep -v '^ *+' conftest.er1 >conftest.err
26587   rm -f conftest.er1
26588   cat conftest.err >&5
26589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590   (exit $ac_status); } && {
26591          test -z "$ac_c_werror_flag" ||
26592          test ! -s conftest.err
26593        } && test -s conftest.$ac_objext; then
26594   ac_cv_have_decl___fsetlocking=yes
26595 else
26596   $as_echo "$as_me: failed program was:" >&5
26597 sed 's/^/| /' conftest.$ac_ext >&5
26598
26599         ac_cv_have_decl___fsetlocking=no
26600 fi
26601
26602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26603 fi
26604 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___fsetlocking" >&5
26605 $as_echo "$ac_cv_have_decl___fsetlocking" >&6; }
26606 if test $ac_cv_have_decl___fsetlocking = yes; then
26607
26608 cat >>confdefs.h <<_ACEOF
26609 #define HAVE_DECL___FSETLOCKING 1
26610 _ACEOF
26611
26612
26613 else
26614   cat >>confdefs.h <<_ACEOF
26615 #define HAVE_DECL___FSETLOCKING 0
26616 _ACEOF
26617
26618
26619 fi
26620
26621
26622
26623
26624
26625
26626
26627
26628
26629
26630
26631
26632
26633
26634
26635
26636
26637
26638
26639
26640
26641
26642   :
26643
26644
26645 cat >>confdefs.h <<\_ACEOF
26646 #define getpass gnu_getpass
26647 _ACEOF
26648
26649
26650
26651
26652   gl_LIBOBJS="$gl_LIBOBJS gettime.$ac_objext"
26653
26654
26655
26656
26657
26658
26659
26660
26661
26662
26663
26664
26665
26666
26667
26668
26669
26670
26671
26672
26673
26674
26675   { $as_echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
26676 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
26677 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
26678   $as_echo_n "(cached) " >&6
26679 else
26680   cat >conftest.$ac_ext <<_ACEOF
26681 /* confdefs.h.  */
26682 _ACEOF
26683 cat confdefs.h >>conftest.$ac_ext
26684 cat >>conftest.$ac_ext <<_ACEOF
26685 /* end confdefs.h.  */
26686 #include <sys/time.h>
26687             struct timeval c;
26688
26689 int
26690 main ()
26691 {
26692
26693             int (*f) (struct timeval *restrict, void *restrict) = gettimeofday;
26694             int x = f (&c, 0);
26695             return !(x | c.tv_sec | c.tv_usec);
26696
26697   ;
26698   return 0;
26699 }
26700 _ACEOF
26701 rm -f conftest.$ac_objext
26702 if { (ac_try="$ac_compile"
26703 case "(($ac_try" in
26704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26705   *) ac_try_echo=$ac_try;;
26706 esac
26707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26708 $as_echo "$ac_try_echo") >&5
26709   (eval "$ac_compile") 2>conftest.er1
26710   ac_status=$?
26711   grep -v '^ *+' conftest.er1 >conftest.err
26712   rm -f conftest.er1
26713   cat conftest.err >&5
26714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715   (exit $ac_status); } && {
26716          test -z "$ac_c_werror_flag" ||
26717          test ! -s conftest.err
26718        } && test -s conftest.$ac_objext; then
26719   gl_cv_func_gettimeofday_posix_signature=yes
26720 else
26721   $as_echo "$as_me: failed program was:" >&5
26722 sed 's/^/| /' conftest.$ac_ext >&5
26723
26724         gl_cv_func_gettimeofday_posix_signature=no
26725 fi
26726
26727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26728 fi
26729 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
26730 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
26731
26732
26733
26734
26735  { $as_echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
26736 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
26737 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
26738   $as_echo_n "(cached) " >&6
26739 else
26740   if test "$cross_compiling" = yes; then
26741        gl_cv_func_gettimeofday_clobber=yes
26742 else
26743   cat >conftest.$ac_ext <<_ACEOF
26744 /* confdefs.h.  */
26745 _ACEOF
26746 cat confdefs.h >>conftest.$ac_ext
26747 cat >>conftest.$ac_ext <<_ACEOF
26748 /* end confdefs.h.  */
26749 #include <string.h>
26750           #include <sys/time.h>
26751           #include <time.h>
26752           #include <stdlib.h>
26753
26754 int
26755 main ()
26756 {
26757
26758           time_t t = 0;
26759           struct tm *lt;
26760           struct tm saved_lt;
26761           struct timeval tv;
26762           lt = localtime (&t);
26763           saved_lt = *lt;
26764           gettimeofday (&tv, NULL);
26765           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
26766
26767   ;
26768   return 0;
26769 }
26770 _ACEOF
26771 rm -f conftest$ac_exeext
26772 if { (ac_try="$ac_link"
26773 case "(($ac_try" in
26774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26775   *) ac_try_echo=$ac_try;;
26776 esac
26777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26778 $as_echo "$ac_try_echo") >&5
26779   (eval "$ac_link") 2>&5
26780   ac_status=$?
26781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26782   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26783   { (case "(($ac_try" in
26784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26785   *) ac_try_echo=$ac_try;;
26786 esac
26787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26788 $as_echo "$ac_try_echo") >&5
26789   (eval "$ac_try") 2>&5
26790   ac_status=$?
26791   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792   (exit $ac_status); }; }; then
26793   gl_cv_func_gettimeofday_clobber=no
26794 else
26795   $as_echo "$as_me: program exited with status $ac_status" >&5
26796 $as_echo "$as_me: failed program was:" >&5
26797 sed 's/^/| /' conftest.$ac_ext >&5
26798
26799 ( exit $ac_status )
26800 gl_cv_func_gettimeofday_clobber=yes
26801 fi
26802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26803 fi
26804
26805
26806 fi
26807 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
26808 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
26809
26810  if test $gl_cv_func_gettimeofday_clobber = yes; then
26811    REPLACE_GETTIMEOFDAY=1
26812    SYS_TIME_H=sys/time.h
26813
26814   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
26815
26816
26817 for ac_header in sys/timeb.h
26818 do
26819 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26821   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26822 $as_echo_n "checking for $ac_header... " >&6; }
26823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26824   $as_echo_n "(cached) " >&6
26825 fi
26826 ac_res=`eval 'as_val=${'$as_ac_Header'}
26827                  $as_echo "$as_val"'`
26828                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26829 $as_echo "$ac_res" >&6; }
26830 else
26831   # Is the header compilable?
26832 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26833 $as_echo_n "checking $ac_header usability... " >&6; }
26834 cat >conftest.$ac_ext <<_ACEOF
26835 /* confdefs.h.  */
26836 _ACEOF
26837 cat confdefs.h >>conftest.$ac_ext
26838 cat >>conftest.$ac_ext <<_ACEOF
26839 /* end confdefs.h.  */
26840 $ac_includes_default
26841 #include <$ac_header>
26842 _ACEOF
26843 rm -f conftest.$ac_objext
26844 if { (ac_try="$ac_compile"
26845 case "(($ac_try" in
26846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26847   *) ac_try_echo=$ac_try;;
26848 esac
26849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26850 $as_echo "$ac_try_echo") >&5
26851   (eval "$ac_compile") 2>conftest.er1
26852   ac_status=$?
26853   grep -v '^ *+' conftest.er1 >conftest.err
26854   rm -f conftest.er1
26855   cat conftest.err >&5
26856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857   (exit $ac_status); } && {
26858          test -z "$ac_c_werror_flag" ||
26859          test ! -s conftest.err
26860        } && test -s conftest.$ac_objext; then
26861   ac_header_compiler=yes
26862 else
26863   $as_echo "$as_me: failed program was:" >&5
26864 sed 's/^/| /' conftest.$ac_ext >&5
26865
26866         ac_header_compiler=no
26867 fi
26868
26869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26870 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26871 $as_echo "$ac_header_compiler" >&6; }
26872
26873 # Is the header present?
26874 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26875 $as_echo_n "checking $ac_header presence... " >&6; }
26876 cat >conftest.$ac_ext <<_ACEOF
26877 /* confdefs.h.  */
26878 _ACEOF
26879 cat confdefs.h >>conftest.$ac_ext
26880 cat >>conftest.$ac_ext <<_ACEOF
26881 /* end confdefs.h.  */
26882 #include <$ac_header>
26883 _ACEOF
26884 if { (ac_try="$ac_cpp conftest.$ac_ext"
26885 case "(($ac_try" in
26886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26887   *) ac_try_echo=$ac_try;;
26888 esac
26889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26890 $as_echo "$ac_try_echo") >&5
26891   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26892   ac_status=$?
26893   grep -v '^ *+' conftest.er1 >conftest.err
26894   rm -f conftest.er1
26895   cat conftest.err >&5
26896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26897   (exit $ac_status); } >/dev/null && {
26898          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26899          test ! -s conftest.err
26900        }; then
26901   ac_header_preproc=yes
26902 else
26903   $as_echo "$as_me: failed program was:" >&5
26904 sed 's/^/| /' conftest.$ac_ext >&5
26905
26906   ac_header_preproc=no
26907 fi
26908
26909 rm -f conftest.err conftest.$ac_ext
26910 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26911 $as_echo "$ac_header_preproc" >&6; }
26912
26913 # So?  What about this header?
26914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26915   yes:no: )
26916     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26917 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26918     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26919 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26920     ac_header_preproc=yes
26921     ;;
26922   no:yes:* )
26923     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26924 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26925     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26926 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26927     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26928 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26929     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26930 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26931     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26932 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26933     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26934 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26935     ( cat <<\_ASBOX
26936 ## ------------------------------------ ##
26937 ## Report this to bug-coreutils@gnu.org ##
26938 ## ------------------------------------ ##
26939 _ASBOX
26940      ) | sed "s/^/$as_me: WARNING:     /" >&2
26941     ;;
26942 esac
26943 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26944 $as_echo_n "checking for $ac_header... " >&6; }
26945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26946   $as_echo_n "(cached) " >&6
26947 else
26948   eval "$as_ac_Header=\$ac_header_preproc"
26949 fi
26950 ac_res=`eval 'as_val=${'$as_ac_Header'}
26951                  $as_echo "$as_val"'`
26952                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26953 $as_echo "$ac_res" >&6; }
26954
26955 fi
26956 if test `eval 'as_val=${'$as_ac_Header'}
26957                  $as_echo "$as_val"'` = yes; then
26958   cat >>confdefs.h <<_ACEOF
26959 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26960 _ACEOF
26961
26962 fi
26963
26964 done
26965
26966
26967 for ac_func in _ftime
26968 do
26969 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26970 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26971 $as_echo_n "checking for $ac_func... " >&6; }
26972 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26973   $as_echo_n "(cached) " >&6
26974 else
26975   cat >conftest.$ac_ext <<_ACEOF
26976 /* confdefs.h.  */
26977 _ACEOF
26978 cat confdefs.h >>conftest.$ac_ext
26979 cat >>conftest.$ac_ext <<_ACEOF
26980 /* end confdefs.h.  */
26981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26982    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26983 #define $ac_func innocuous_$ac_func
26984
26985 /* System header to define __stub macros and hopefully few prototypes,
26986     which can conflict with char $ac_func (); below.
26987     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26988     <limits.h> exists even on freestanding compilers.  */
26989
26990 #ifdef __STDC__
26991 # include <limits.h>
26992 #else
26993 # include <assert.h>
26994 #endif
26995
26996 #undef $ac_func
26997
26998 /* Override any GCC internal prototype to avoid an error.
26999    Use char because int might match the return type of a GCC
27000    builtin and then its argument prototype would still apply.  */
27001 #ifdef __cplusplus
27002 extern "C"
27003 #endif
27004 char $ac_func ();
27005 /* The GNU C library defines this for functions which it implements
27006     to always fail with ENOSYS.  Some functions are actually named
27007     something starting with __ and the normal name is an alias.  */
27008 #if defined __stub_$ac_func || defined __stub___$ac_func
27009 choke me
27010 #endif
27011
27012 int
27013 main ()
27014 {
27015 return $ac_func ();
27016   ;
27017   return 0;
27018 }
27019 _ACEOF
27020 rm -f conftest.$ac_objext conftest$ac_exeext
27021 if { (ac_try="$ac_link"
27022 case "(($ac_try" in
27023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024   *) ac_try_echo=$ac_try;;
27025 esac
27026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27027 $as_echo "$ac_try_echo") >&5
27028   (eval "$ac_link") 2>conftest.er1
27029   ac_status=$?
27030   grep -v '^ *+' conftest.er1 >conftest.err
27031   rm -f conftest.er1
27032   cat conftest.err >&5
27033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034   (exit $ac_status); } && {
27035          test -z "$ac_c_werror_flag" ||
27036          test ! -s conftest.err
27037        } && test -s conftest$ac_exeext &&
27038        $as_test_x conftest$ac_exeext; then
27039   eval "$as_ac_var=yes"
27040 else
27041   $as_echo "$as_me: failed program was:" >&5
27042 sed 's/^/| /' conftest.$ac_ext >&5
27043
27044         eval "$as_ac_var=no"
27045 fi
27046
27047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27048       conftest$ac_exeext conftest.$ac_ext
27049 fi
27050 ac_res=`eval 'as_val=${'$as_ac_var'}
27051                  $as_echo "$as_val"'`
27052                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27053 $as_echo "$ac_res" >&6; }
27054 if test `eval 'as_val=${'$as_ac_var'}
27055                  $as_echo "$as_val"'` = yes; then
27056   cat >>confdefs.h <<_ACEOF
27057 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27058 _ACEOF
27059
27060 fi
27061 done
27062
27063
27064
27065 cat >>confdefs.h <<\_ACEOF
27066 #define gmtime rpl_gmtime
27067 _ACEOF
27068
27069
27070 cat >>confdefs.h <<\_ACEOF
27071 #define localtime rpl_localtime
27072 _ACEOF
27073
27074
27075
27076 cat >>confdefs.h <<\_ACEOF
27077 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
27078 _ACEOF
27079
27080  fi
27081
27082
27083   if test $gl_cv_func_gettimeofday_posix_signature != yes; then
27084     REPLACE_GETTIMEOFDAY=1
27085     SYS_TIME_H=sys/time.h
27086     if test $gl_cv_func_gettimeofday_clobber != yes; then
27087       gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
27088
27089
27090 for ac_header in sys/timeb.h
27091 do
27092 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27094   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27095 $as_echo_n "checking for $ac_header... " >&6; }
27096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27097   $as_echo_n "(cached) " >&6
27098 fi
27099 ac_res=`eval 'as_val=${'$as_ac_Header'}
27100                  $as_echo "$as_val"'`
27101                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27102 $as_echo "$ac_res" >&6; }
27103 else
27104   # Is the header compilable?
27105 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
27106 $as_echo_n "checking $ac_header usability... " >&6; }
27107 cat >conftest.$ac_ext <<_ACEOF
27108 /* confdefs.h.  */
27109 _ACEOF
27110 cat confdefs.h >>conftest.$ac_ext
27111 cat >>conftest.$ac_ext <<_ACEOF
27112 /* end confdefs.h.  */
27113 $ac_includes_default
27114 #include <$ac_header>
27115 _ACEOF
27116 rm -f conftest.$ac_objext
27117 if { (ac_try="$ac_compile"
27118 case "(($ac_try" in
27119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27120   *) ac_try_echo=$ac_try;;
27121 esac
27122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27123 $as_echo "$ac_try_echo") >&5
27124   (eval "$ac_compile") 2>conftest.er1
27125   ac_status=$?
27126   grep -v '^ *+' conftest.er1 >conftest.err
27127   rm -f conftest.er1
27128   cat conftest.err >&5
27129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130   (exit $ac_status); } && {
27131          test -z "$ac_c_werror_flag" ||
27132          test ! -s conftest.err
27133        } && test -s conftest.$ac_objext; then
27134   ac_header_compiler=yes
27135 else
27136   $as_echo "$as_me: failed program was:" >&5
27137 sed 's/^/| /' conftest.$ac_ext >&5
27138
27139         ac_header_compiler=no
27140 fi
27141
27142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27143 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27144 $as_echo "$ac_header_compiler" >&6; }
27145
27146 # Is the header present?
27147 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
27148 $as_echo_n "checking $ac_header presence... " >&6; }
27149 cat >conftest.$ac_ext <<_ACEOF
27150 /* confdefs.h.  */
27151 _ACEOF
27152 cat confdefs.h >>conftest.$ac_ext
27153 cat >>conftest.$ac_ext <<_ACEOF
27154 /* end confdefs.h.  */
27155 #include <$ac_header>
27156 _ACEOF
27157 if { (ac_try="$ac_cpp conftest.$ac_ext"
27158 case "(($ac_try" in
27159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27160   *) ac_try_echo=$ac_try;;
27161 esac
27162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27163 $as_echo "$ac_try_echo") >&5
27164   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27165   ac_status=$?
27166   grep -v '^ *+' conftest.er1 >conftest.err
27167   rm -f conftest.er1
27168   cat conftest.err >&5
27169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170   (exit $ac_status); } >/dev/null && {
27171          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27172          test ! -s conftest.err
27173        }; then
27174   ac_header_preproc=yes
27175 else
27176   $as_echo "$as_me: failed program was:" >&5
27177 sed 's/^/| /' conftest.$ac_ext >&5
27178
27179   ac_header_preproc=no
27180 fi
27181
27182 rm -f conftest.err conftest.$ac_ext
27183 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27184 $as_echo "$ac_header_preproc" >&6; }
27185
27186 # So?  What about this header?
27187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27188   yes:no: )
27189     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27190 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27191     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27192 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27193     ac_header_preproc=yes
27194     ;;
27195   no:yes:* )
27196     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27197 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27198     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27199 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27200     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27201 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27202     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27203 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27204     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27205 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27206     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27207 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27208     ( cat <<\_ASBOX
27209 ## ------------------------------------ ##
27210 ## Report this to bug-coreutils@gnu.org ##
27211 ## ------------------------------------ ##
27212 _ASBOX
27213      ) | sed "s/^/$as_me: WARNING:     /" >&2
27214     ;;
27215 esac
27216 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27217 $as_echo_n "checking for $ac_header... " >&6; }
27218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27219   $as_echo_n "(cached) " >&6
27220 else
27221   eval "$as_ac_Header=\$ac_header_preproc"
27222 fi
27223 ac_res=`eval 'as_val=${'$as_ac_Header'}
27224                  $as_echo "$as_val"'`
27225                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27226 $as_echo "$ac_res" >&6; }
27227
27228 fi
27229 if test `eval 'as_val=${'$as_ac_Header'}
27230                  $as_echo "$as_val"'` = yes; then
27231   cat >>confdefs.h <<_ACEOF
27232 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27233 _ACEOF
27234
27235 fi
27236
27237 done
27238
27239
27240 for ac_func in _ftime
27241 do
27242 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27243 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27244 $as_echo_n "checking for $ac_func... " >&6; }
27245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27246   $as_echo_n "(cached) " >&6
27247 else
27248   cat >conftest.$ac_ext <<_ACEOF
27249 /* confdefs.h.  */
27250 _ACEOF
27251 cat confdefs.h >>conftest.$ac_ext
27252 cat >>conftest.$ac_ext <<_ACEOF
27253 /* end confdefs.h.  */
27254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27255    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27256 #define $ac_func innocuous_$ac_func
27257
27258 /* System header to define __stub macros and hopefully few prototypes,
27259     which can conflict with char $ac_func (); below.
27260     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27261     <limits.h> exists even on freestanding compilers.  */
27262
27263 #ifdef __STDC__
27264 # include <limits.h>
27265 #else
27266 # include <assert.h>
27267 #endif
27268
27269 #undef $ac_func
27270
27271 /* Override any GCC internal prototype to avoid an error.
27272    Use char because int might match the return type of a GCC
27273    builtin and then its argument prototype would still apply.  */
27274 #ifdef __cplusplus
27275 extern "C"
27276 #endif
27277 char $ac_func ();
27278 /* The GNU C library defines this for functions which it implements
27279     to always fail with ENOSYS.  Some functions are actually named
27280     something starting with __ and the normal name is an alias.  */
27281 #if defined __stub_$ac_func || defined __stub___$ac_func
27282 choke me
27283 #endif
27284
27285 int
27286 main ()
27287 {
27288 return $ac_func ();
27289   ;
27290   return 0;
27291 }
27292 _ACEOF
27293 rm -f conftest.$ac_objext conftest$ac_exeext
27294 if { (ac_try="$ac_link"
27295 case "(($ac_try" in
27296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27297   *) ac_try_echo=$ac_try;;
27298 esac
27299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27300 $as_echo "$ac_try_echo") >&5
27301   (eval "$ac_link") 2>conftest.er1
27302   ac_status=$?
27303   grep -v '^ *+' conftest.er1 >conftest.err
27304   rm -f conftest.er1
27305   cat conftest.err >&5
27306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307   (exit $ac_status); } && {
27308          test -z "$ac_c_werror_flag" ||
27309          test ! -s conftest.err
27310        } && test -s conftest$ac_exeext &&
27311        $as_test_x conftest$ac_exeext; then
27312   eval "$as_ac_var=yes"
27313 else
27314   $as_echo "$as_me: failed program was:" >&5
27315 sed 's/^/| /' conftest.$ac_ext >&5
27316
27317         eval "$as_ac_var=no"
27318 fi
27319
27320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27321       conftest$ac_exeext conftest.$ac_ext
27322 fi
27323 ac_res=`eval 'as_val=${'$as_ac_var'}
27324                  $as_echo "$as_val"'`
27325                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27326 $as_echo "$ac_res" >&6; }
27327 if test `eval 'as_val=${'$as_ac_var'}
27328                  $as_echo "$as_val"'` = yes; then
27329   cat >>confdefs.h <<_ACEOF
27330 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27331 _ACEOF
27332
27333 fi
27334 done
27335
27336
27337     fi
27338   fi
27339
27340
27341   gl_LIBOBJS="$gl_LIBOBJS getugroups.$ac_objext"
27342
27343     { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
27344 $as_echo_n "checking type of array argument to getgroups... " >&6; }
27345 if test "${ac_cv_type_getgroups+set}" = set; then
27346   $as_echo_n "(cached) " >&6
27347 else
27348   if test "$cross_compiling" = yes; then
27349   ac_cv_type_getgroups=cross
27350 else
27351   cat >conftest.$ac_ext <<_ACEOF
27352 /* confdefs.h.  */
27353 _ACEOF
27354 cat confdefs.h >>conftest.$ac_ext
27355 cat >>conftest.$ac_ext <<_ACEOF
27356 /* end confdefs.h.  */
27357 /* Thanks to Mike Rendell for this test.  */
27358 $ac_includes_default
27359 #define NGID 256
27360 #undef MAX
27361 #define MAX(x, y) ((x) > (y) ? (x) : (y))
27362
27363 int
27364 main ()
27365 {
27366   gid_t gidset[NGID];
27367   int i, n;
27368   union { gid_t gval; long int lval; }  val;
27369
27370   val.lval = -1;
27371   for (i = 0; i < NGID; i++)
27372     gidset[i] = val.gval;
27373   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
27374                  gidset);
27375   /* Exit non-zero if getgroups seems to require an array of ints.  This
27376      happens when gid_t is short int but getgroups modifies an array
27377      of ints.  */
27378   return n > 0 && gidset[n] != val.gval;
27379 }
27380 _ACEOF
27381 rm -f conftest$ac_exeext
27382 if { (ac_try="$ac_link"
27383 case "(($ac_try" in
27384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27385   *) ac_try_echo=$ac_try;;
27386 esac
27387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27388 $as_echo "$ac_try_echo") >&5
27389   (eval "$ac_link") 2>&5
27390   ac_status=$?
27391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27393   { (case "(($ac_try" in
27394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27395   *) ac_try_echo=$ac_try;;
27396 esac
27397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27398 $as_echo "$ac_try_echo") >&5
27399   (eval "$ac_try") 2>&5
27400   ac_status=$?
27401   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402   (exit $ac_status); }; }; then
27403   ac_cv_type_getgroups=gid_t
27404 else
27405   $as_echo "$as_me: program exited with status $ac_status" >&5
27406 $as_echo "$as_me: failed program was:" >&5
27407 sed 's/^/| /' conftest.$ac_ext >&5
27408
27409 ( exit $ac_status )
27410 ac_cv_type_getgroups=int
27411 fi
27412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27413 fi
27414
27415
27416 if test $ac_cv_type_getgroups = cross; then
27417         cat >conftest.$ac_ext <<_ACEOF
27418 /* confdefs.h.  */
27419 _ACEOF
27420 cat confdefs.h >>conftest.$ac_ext
27421 cat >>conftest.$ac_ext <<_ACEOF
27422 /* end confdefs.h.  */
27423 #include <unistd.h>
27424
27425 _ACEOF
27426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27427   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
27428   ac_cv_type_getgroups=gid_t
27429 else
27430   ac_cv_type_getgroups=int
27431 fi
27432 rm -f conftest*
27433
27434 fi
27435 fi
27436 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
27437 $as_echo "$ac_cv_type_getgroups" >&6; }
27438
27439 cat >>confdefs.h <<_ACEOF
27440 #define GETGROUPS_T $ac_cv_type_getgroups
27441 _ACEOF
27442
27443
27444
27445
27446
27447 for ac_func in getusershell
27448 do
27449 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27450 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27451 $as_echo_n "checking for $ac_func... " >&6; }
27452 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27453   $as_echo_n "(cached) " >&6
27454 else
27455   cat >conftest.$ac_ext <<_ACEOF
27456 /* confdefs.h.  */
27457 _ACEOF
27458 cat confdefs.h >>conftest.$ac_ext
27459 cat >>conftest.$ac_ext <<_ACEOF
27460 /* end confdefs.h.  */
27461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27462    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27463 #define $ac_func innocuous_$ac_func
27464
27465 /* System header to define __stub macros and hopefully few prototypes,
27466     which can conflict with char $ac_func (); below.
27467     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27468     <limits.h> exists even on freestanding compilers.  */
27469
27470 #ifdef __STDC__
27471 # include <limits.h>
27472 #else
27473 # include <assert.h>
27474 #endif
27475
27476 #undef $ac_func
27477
27478 /* Override any GCC internal prototype to avoid an error.
27479    Use char because int might match the return type of a GCC
27480    builtin and then its argument prototype would still apply.  */
27481 #ifdef __cplusplus
27482 extern "C"
27483 #endif
27484 char $ac_func ();
27485 /* The GNU C library defines this for functions which it implements
27486     to always fail with ENOSYS.  Some functions are actually named
27487     something starting with __ and the normal name is an alias.  */
27488 #if defined __stub_$ac_func || defined __stub___$ac_func
27489 choke me
27490 #endif
27491
27492 int
27493 main ()
27494 {
27495 return $ac_func ();
27496   ;
27497   return 0;
27498 }
27499 _ACEOF
27500 rm -f conftest.$ac_objext conftest$ac_exeext
27501 if { (ac_try="$ac_link"
27502 case "(($ac_try" in
27503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27504   *) ac_try_echo=$ac_try;;
27505 esac
27506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27507 $as_echo "$ac_try_echo") >&5
27508   (eval "$ac_link") 2>conftest.er1
27509   ac_status=$?
27510   grep -v '^ *+' conftest.er1 >conftest.err
27511   rm -f conftest.er1
27512   cat conftest.err >&5
27513   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514   (exit $ac_status); } && {
27515          test -z "$ac_c_werror_flag" ||
27516          test ! -s conftest.err
27517        } && test -s conftest$ac_exeext &&
27518        $as_test_x conftest$ac_exeext; then
27519   eval "$as_ac_var=yes"
27520 else
27521   $as_echo "$as_me: failed program was:" >&5
27522 sed 's/^/| /' conftest.$ac_ext >&5
27523
27524         eval "$as_ac_var=no"
27525 fi
27526
27527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27528       conftest$ac_exeext conftest.$ac_ext
27529 fi
27530 ac_res=`eval 'as_val=${'$as_ac_var'}
27531                  $as_echo "$as_val"'`
27532                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27533 $as_echo "$ac_res" >&6; }
27534 if test `eval 'as_val=${'$as_ac_var'}
27535                  $as_echo "$as_val"'` = yes; then
27536   cat >>confdefs.h <<_ACEOF
27537 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27538 _ACEOF
27539
27540 else
27541   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
27542 fi
27543 done
27544
27545
27546
27547
27548
27549       { $as_echo "$as_me:$LINENO: checking for group_member" >&5
27550 $as_echo_n "checking for group_member... " >&6; }
27551 if test "${ac_cv_func_group_member+set}" = set; then
27552   $as_echo_n "(cached) " >&6
27553 else
27554   cat >conftest.$ac_ext <<_ACEOF
27555 /* confdefs.h.  */
27556 _ACEOF
27557 cat confdefs.h >>conftest.$ac_ext
27558 cat >>conftest.$ac_ext <<_ACEOF
27559 /* end confdefs.h.  */
27560 /* Define group_member to an innocuous variant, in case <limits.h> declares group_member.
27561    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27562 #define group_member innocuous_group_member
27563
27564 /* System header to define __stub macros and hopefully few prototypes,
27565     which can conflict with char group_member (); below.
27566     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27567     <limits.h> exists even on freestanding compilers.  */
27568
27569 #ifdef __STDC__
27570 # include <limits.h>
27571 #else
27572 # include <assert.h>
27573 #endif
27574
27575 #undef group_member
27576
27577 /* Override any GCC internal prototype to avoid an error.
27578    Use char because int might match the return type of a GCC
27579    builtin and then its argument prototype would still apply.  */
27580 #ifdef __cplusplus
27581 extern "C"
27582 #endif
27583 char group_member ();
27584 /* The GNU C library defines this for functions which it implements
27585     to always fail with ENOSYS.  Some functions are actually named
27586     something starting with __ and the normal name is an alias.  */
27587 #if defined __stub_group_member || defined __stub___group_member
27588 choke me
27589 #endif
27590
27591 int
27592 main ()
27593 {
27594 return group_member ();
27595   ;
27596   return 0;
27597 }
27598 _ACEOF
27599 rm -f conftest.$ac_objext conftest$ac_exeext
27600 if { (ac_try="$ac_link"
27601 case "(($ac_try" in
27602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27603   *) ac_try_echo=$ac_try;;
27604 esac
27605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27606 $as_echo "$ac_try_echo") >&5
27607   (eval "$ac_link") 2>conftest.er1
27608   ac_status=$?
27609   grep -v '^ *+' conftest.er1 >conftest.err
27610   rm -f conftest.er1
27611   cat conftest.err >&5
27612   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27613   (exit $ac_status); } && {
27614          test -z "$ac_c_werror_flag" ||
27615          test ! -s conftest.err
27616        } && test -s conftest$ac_exeext &&
27617        $as_test_x conftest$ac_exeext; then
27618   ac_cv_func_group_member=yes
27619 else
27620   $as_echo "$as_me: failed program was:" >&5
27621 sed 's/^/| /' conftest.$ac_ext >&5
27622
27623         ac_cv_func_group_member=no
27624 fi
27625
27626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27627       conftest$ac_exeext conftest.$ac_ext
27628 fi
27629 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_group_member" >&5
27630 $as_echo "$ac_cv_func_group_member" >&6; }
27631 if test $ac_cv_func_group_member = yes; then
27632   :
27633 else
27634
27635     gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext"
27636
27637
27638
27639
27640 fi
27641
27642
27643
27644   gl_LIBOBJS="$gl_LIBOBJS hard-locale.$ac_objext"
27645
27646
27647   gl_LIBOBJS="$gl_LIBOBJS hash.$ac_objext"
27648
27649
27650
27651
27652     { $as_echo "$as_me:$LINENO: checking host operating system" >&5
27653 $as_echo_n "checking host operating system... " >&6; }
27654 if test "${gl_cv_host_operating_system+set}" = set; then
27655   $as_echo_n "(cached) " >&6
27656 else
27657   case $host_os in
27658
27659        # These operating system names do not use the default heuristic below.
27660        # They are in reverse order, so that more-specific prefixes come first.
27661        winnt*)          os='Windows NT';;
27662        vos*)            os='VOS';;
27663        sysv*)           os='Unix System V';;
27664        superux*)        os='SUPER-UX';;
27665        sunos*)          os='SunOS';;
27666        stop*)           os='STOP';;
27667        sco*)            os='SCO Unix';;
27668        riscos*)         os='RISC OS';;
27669        riscix*)         os='RISCiX';;
27670        qnx*)            os='QNX';;
27671        pw32*)           os='PW32';;
27672        ptx*)            os='ptx';;
27673        plan9*)          os='Plan 9';;
27674        osf*)            os='Tru64';;
27675        os2*)            os='OS/2';;
27676        openbsd*)        os='OpenBSD';;
27677        nsk*)            os='NonStop Kernel';;
27678        nonstopux*)      os='NonStop-UX';;
27679        netbsd*-gnu*)    os='GNU/NetBSD';; # NetBSD kernel+libc, GNU userland
27680        netbsd*)         os='NetBSD';;
27681        knetbsd*-gnu)    os='GNU/kNetBSD';; # NetBSD kernel, GNU libc+userland
27682        kfreebsd*-gnu)   os='GNU/kFreeBSD';; # FreeBSD kernel, GNU libc+userland
27683        msdosdjgpp*)     os='DJGPP';;
27684        mpeix*)          os='MPE/iX';;
27685        mint*)           os='MiNT';;
27686        mingw*)          os='MinGW';;
27687        lynxos*)         os='LynxOS';;
27688        linux*)          os='GNU/Linux';;
27689        hpux*)           os='HP-UX';;
27690        hiux*)           os='HI-UX';;
27691        gnu*)            os='GNU';;
27692        freebsd*)        os='FreeBSD';;
27693        dgux*)           os='DG/UX';;
27694        bsdi*)           os='BSD/OS';;
27695        bsd*)            os='BSD';;
27696        beos*)           os='BeOS';;
27697        aux*)            os='A/UX';;
27698        atheos*)         os='AtheOS';;
27699        amigaos*)        os='Amiga OS';;
27700        aix*)            os='AIX';;
27701
27702        # The default heuristic takes the initial alphabetic string
27703        # from $host_os, but capitalizes its first letter.
27704        [A-Za-z]*)
27705          os=`
27706            expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]'
27707          ``
27708            expr "X$host_os" : 'X.\([A-Za-z]*\)'
27709          `
27710          ;;
27711
27712        # If $host_os does not start with an alphabetic string, use it unchanged.
27713        *)
27714          os=$host_os;;
27715      esac
27716      gl_cv_host_operating_system=$os
27717 fi
27718 { $as_echo "$as_me:$LINENO: result: $gl_cv_host_operating_system" >&5
27719 $as_echo "$gl_cv_host_operating_system" >&6; }
27720
27721 cat >>confdefs.h <<_ACEOF
27722 #define HOST_OPERATING_SYSTEM "$gl_cv_host_operating_system"
27723 _ACEOF
27724
27725
27726
27727   gl_LIBOBJS="$gl_LIBOBJS human.$ac_objext"
27728
27729     :
27730
27731
27732   gl_LIBOBJS="$gl_LIBOBJS i-ring.$ac_objext"
27733
27734
27735
27736
27737
27738
27739           am_save_CPPFLAGS="$CPPFLAGS"
27740
27741   for element in $INCICONV; do
27742     haveit=
27743     for x in $CPPFLAGS; do
27744
27745   acl_save_prefix="$prefix"
27746   prefix="$acl_final_prefix"
27747   acl_save_exec_prefix="$exec_prefix"
27748   exec_prefix="$acl_final_exec_prefix"
27749   eval x=\"$x\"
27750   exec_prefix="$acl_save_exec_prefix"
27751   prefix="$acl_save_prefix"
27752
27753       if test "X$x" = "X$element"; then
27754         haveit=yes
27755         break
27756       fi
27757     done
27758     if test -z "$haveit"; then
27759       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
27760     fi
27761   done
27762
27763
27764   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
27765 $as_echo_n "checking for iconv... " >&6; }
27766 if test "${am_cv_func_iconv+set}" = set; then
27767   $as_echo_n "(cached) " >&6
27768 else
27769
27770     am_cv_func_iconv="no, consider installing GNU libiconv"
27771     am_cv_lib_iconv=no
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 #include <stdlib.h>
27779 #include <iconv.h>
27780 int
27781 main ()
27782 {
27783 iconv_t cd = iconv_open("","");
27784        iconv(cd,NULL,NULL,NULL,NULL);
27785        iconv_close(cd);
27786   ;
27787   return 0;
27788 }
27789 _ACEOF
27790 rm -f conftest.$ac_objext conftest$ac_exeext
27791 if { (ac_try="$ac_link"
27792 case "(($ac_try" in
27793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27794   *) ac_try_echo=$ac_try;;
27795 esac
27796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27797 $as_echo "$ac_try_echo") >&5
27798   (eval "$ac_link") 2>conftest.er1
27799   ac_status=$?
27800   grep -v '^ *+' conftest.er1 >conftest.err
27801   rm -f conftest.er1
27802   cat conftest.err >&5
27803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27804   (exit $ac_status); } && {
27805          test -z "$ac_c_werror_flag" ||
27806          test ! -s conftest.err
27807        } && test -s conftest$ac_exeext &&
27808        $as_test_x conftest$ac_exeext; then
27809   am_cv_func_iconv=yes
27810 else
27811   $as_echo "$as_me: failed program was:" >&5
27812 sed 's/^/| /' conftest.$ac_ext >&5
27813
27814
27815 fi
27816
27817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27818       conftest$ac_exeext conftest.$ac_ext
27819     if test "$am_cv_func_iconv" != yes; then
27820       am_save_LIBS="$LIBS"
27821       LIBS="$LIBS $LIBICONV"
27822       cat >conftest.$ac_ext <<_ACEOF
27823 /* confdefs.h.  */
27824 _ACEOF
27825 cat confdefs.h >>conftest.$ac_ext
27826 cat >>conftest.$ac_ext <<_ACEOF
27827 /* end confdefs.h.  */
27828 #include <stdlib.h>
27829 #include <iconv.h>
27830 int
27831 main ()
27832 {
27833 iconv_t cd = iconv_open("","");
27834          iconv(cd,NULL,NULL,NULL,NULL);
27835          iconv_close(cd);
27836   ;
27837   return 0;
27838 }
27839 _ACEOF
27840 rm -f conftest.$ac_objext conftest$ac_exeext
27841 if { (ac_try="$ac_link"
27842 case "(($ac_try" in
27843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27844   *) ac_try_echo=$ac_try;;
27845 esac
27846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27847 $as_echo "$ac_try_echo") >&5
27848   (eval "$ac_link") 2>conftest.er1
27849   ac_status=$?
27850   grep -v '^ *+' conftest.er1 >conftest.err
27851   rm -f conftest.er1
27852   cat conftest.err >&5
27853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854   (exit $ac_status); } && {
27855          test -z "$ac_c_werror_flag" ||
27856          test ! -s conftest.err
27857        } && test -s conftest$ac_exeext &&
27858        $as_test_x conftest$ac_exeext; then
27859   am_cv_lib_iconv=yes
27860         am_cv_func_iconv=yes
27861 else
27862   $as_echo "$as_me: failed program was:" >&5
27863 sed 's/^/| /' conftest.$ac_ext >&5
27864
27865
27866 fi
27867
27868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27869       conftest$ac_exeext conftest.$ac_ext
27870       LIBS="$am_save_LIBS"
27871     fi
27872
27873 fi
27874 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
27875 $as_echo "$am_cv_func_iconv" >&6; }
27876   if test "$am_cv_func_iconv" = yes; then
27877
27878 cat >>confdefs.h <<\_ACEOF
27879 #define HAVE_ICONV 1
27880 _ACEOF
27881
27882   fi
27883   if test "$am_cv_lib_iconv" = yes; then
27884     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
27885 $as_echo_n "checking how to link with libiconv... " >&6; }
27886     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
27887 $as_echo "$LIBICONV" >&6; }
27888   else
27889             CPPFLAGS="$am_save_CPPFLAGS"
27890     LIBICONV=
27891     LTLIBICONV=
27892   fi
27893
27894
27895
27896   if test "$am_cv_func_iconv" = yes; then
27897     { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
27898 $as_echo_n "checking for iconv declaration... " >&6; }
27899     if test "${am_cv_proto_iconv+set}" = set; then
27900   $as_echo_n "(cached) " >&6
27901 else
27902
27903       cat >conftest.$ac_ext <<_ACEOF
27904 /* confdefs.h.  */
27905 _ACEOF
27906 cat confdefs.h >>conftest.$ac_ext
27907 cat >>conftest.$ac_ext <<_ACEOF
27908 /* end confdefs.h.  */
27909
27910 #include <stdlib.h>
27911 #include <iconv.h>
27912 extern
27913 #ifdef __cplusplus
27914 "C"
27915 #endif
27916 #if defined(__STDC__) || defined(__cplusplus)
27917 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
27918 #else
27919 size_t iconv();
27920 #endif
27921
27922 int
27923 main ()
27924 {
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27937 $as_echo "$ac_try_echo") >&5
27938   (eval "$ac_compile") 2>conftest.er1
27939   ac_status=$?
27940   grep -v '^ *+' conftest.er1 >conftest.err
27941   rm -f conftest.er1
27942   cat conftest.err >&5
27943   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944   (exit $ac_status); } && {
27945          test -z "$ac_c_werror_flag" ||
27946          test ! -s conftest.err
27947        } && test -s conftest.$ac_objext; then
27948   am_cv_proto_iconv_arg1=""
27949 else
27950   $as_echo "$as_me: failed program was:" >&5
27951 sed 's/^/| /' conftest.$ac_ext >&5
27952
27953         am_cv_proto_iconv_arg1="const"
27954 fi
27955
27956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27957       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);"
27958 fi
27959
27960     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
27961     { $as_echo "$as_me:$LINENO: result: ${ac_t:-
27962          }$am_cv_proto_iconv" >&5
27963 $as_echo "${ac_t:-
27964          }$am_cv_proto_iconv" >&6; }
27965
27966 cat >>confdefs.h <<_ACEOF
27967 #define ICONV_CONST $am_cv_proto_iconv_arg1
27968 _ACEOF
27969
27970   fi
27971
27972
27973   gl_LIBOBJS="$gl_LIBOBJS idcache.$ac_objext"
27974
27975
27976
27977 for ac_func in inet_ntop
27978 do
27979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27980 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27981 $as_echo_n "checking for $ac_func... " >&6; }
27982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27983   $as_echo_n "(cached) " >&6
27984 else
27985   cat >conftest.$ac_ext <<_ACEOF
27986 /* confdefs.h.  */
27987 _ACEOF
27988 cat confdefs.h >>conftest.$ac_ext
27989 cat >>conftest.$ac_ext <<_ACEOF
27990 /* end confdefs.h.  */
27991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27992    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27993 #define $ac_func innocuous_$ac_func
27994
27995 /* System header to define __stub macros and hopefully few prototypes,
27996     which can conflict with char $ac_func (); below.
27997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27998     <limits.h> exists even on freestanding compilers.  */
27999
28000 #ifdef __STDC__
28001 # include <limits.h>
28002 #else
28003 # include <assert.h>
28004 #endif
28005
28006 #undef $ac_func
28007
28008 /* Override any GCC internal prototype to avoid an error.
28009    Use char because int might match the return type of a GCC
28010    builtin and then its argument prototype would still apply.  */
28011 #ifdef __cplusplus
28012 extern "C"
28013 #endif
28014 char $ac_func ();
28015 /* The GNU C library defines this for functions which it implements
28016     to always fail with ENOSYS.  Some functions are actually named
28017     something starting with __ and the normal name is an alias.  */
28018 #if defined __stub_$ac_func || defined __stub___$ac_func
28019 choke me
28020 #endif
28021
28022 int
28023 main ()
28024 {
28025 return $ac_func ();
28026   ;
28027   return 0;
28028 }
28029 _ACEOF
28030 rm -f conftest.$ac_objext conftest$ac_exeext
28031 if { (ac_try="$ac_link"
28032 case "(($ac_try" in
28033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28034   *) ac_try_echo=$ac_try;;
28035 esac
28036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28037 $as_echo "$ac_try_echo") >&5
28038   (eval "$ac_link") 2>conftest.er1
28039   ac_status=$?
28040   grep -v '^ *+' conftest.er1 >conftest.err
28041   rm -f conftest.er1
28042   cat conftest.err >&5
28043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044   (exit $ac_status); } && {
28045          test -z "$ac_c_werror_flag" ||
28046          test ! -s conftest.err
28047        } && test -s conftest$ac_exeext &&
28048        $as_test_x conftest$ac_exeext; then
28049   eval "$as_ac_var=yes"
28050 else
28051   $as_echo "$as_me: failed program was:" >&5
28052 sed 's/^/| /' conftest.$ac_ext >&5
28053
28054         eval "$as_ac_var=no"
28055 fi
28056
28057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28058       conftest$ac_exeext conftest.$ac_ext
28059 fi
28060 ac_res=`eval 'as_val=${'$as_ac_var'}
28061                  $as_echo "$as_val"'`
28062                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28063 $as_echo "$ac_res" >&6; }
28064 if test `eval 'as_val=${'$as_ac_var'}
28065                  $as_echo "$as_val"'` = yes; then
28066   cat >>confdefs.h <<_ACEOF
28067 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28068 _ACEOF
28069
28070 else
28071   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
28072 fi
28073 done
28074
28075
28076
28077
28078
28079
28080
28081
28082
28083
28084   { $as_echo "$as_me:$LINENO: checking whether inet_ntop is declared" >&5
28085 $as_echo_n "checking whether inet_ntop is declared... " >&6; }
28086 if test "${ac_cv_have_decl_inet_ntop+set}" = set; then
28087   $as_echo_n "(cached) " >&6
28088 else
28089   cat >conftest.$ac_ext <<_ACEOF
28090 /* confdefs.h.  */
28091 _ACEOF
28092 cat confdefs.h >>conftest.$ac_ext
28093 cat >>conftest.$ac_ext <<_ACEOF
28094 /* end confdefs.h.  */
28095 #include <arpa/inet.h>
28096
28097 int
28098 main ()
28099 {
28100 #ifndef inet_ntop
28101   (void) inet_ntop;
28102 #endif
28103
28104   ;
28105   return 0;
28106 }
28107 _ACEOF
28108 rm -f conftest.$ac_objext
28109 if { (ac_try="$ac_compile"
28110 case "(($ac_try" in
28111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28112   *) ac_try_echo=$ac_try;;
28113 esac
28114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28115 $as_echo "$ac_try_echo") >&5
28116   (eval "$ac_compile") 2>conftest.er1
28117   ac_status=$?
28118   grep -v '^ *+' conftest.er1 >conftest.err
28119   rm -f conftest.er1
28120   cat conftest.err >&5
28121   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122   (exit $ac_status); } && {
28123          test -z "$ac_c_werror_flag" ||
28124          test ! -s conftest.err
28125        } && test -s conftest.$ac_objext; then
28126   ac_cv_have_decl_inet_ntop=yes
28127 else
28128   $as_echo "$as_me: failed program was:" >&5
28129 sed 's/^/| /' conftest.$ac_ext >&5
28130
28131         ac_cv_have_decl_inet_ntop=no
28132 fi
28133
28134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28135 fi
28136 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_ntop" >&5
28137 $as_echo "$ac_cv_have_decl_inet_ntop" >&6; }
28138 if test $ac_cv_have_decl_inet_ntop = yes; then
28139
28140 cat >>confdefs.h <<_ACEOF
28141 #define HAVE_DECL_INET_NTOP 1
28142 _ACEOF
28143
28144
28145 else
28146   cat >>confdefs.h <<_ACEOF
28147 #define HAVE_DECL_INET_NTOP 0
28148 _ACEOF
28149
28150
28151 fi
28152
28153
28154
28155
28156
28157
28158
28159
28160   { $as_echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5
28161 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
28162 if test "${gl_cv_c_inline_effective+set}" = set; then
28163   $as_echo_n "(cached) " >&6
28164 else
28165   if test $ac_cv_c_inline = no; then
28166        gl_cv_c_inline_effective=no
28167      else
28168                                           cat >conftest.$ac_ext <<_ACEOF
28169 /* confdefs.h.  */
28170 _ACEOF
28171 cat confdefs.h >>conftest.$ac_ext
28172 cat >>conftest.$ac_ext <<_ACEOF
28173 /* end confdefs.h.  */
28174
28175 int
28176 main ()
28177 {
28178 #ifdef __NO_INLINE__
28179                #error "inline is not effective"
28180              #endif
28181   ;
28182   return 0;
28183 }
28184 _ACEOF
28185 rm -f conftest.$ac_objext
28186 if { (ac_try="$ac_compile"
28187 case "(($ac_try" in
28188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28189   *) ac_try_echo=$ac_try;;
28190 esac
28191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28192 $as_echo "$ac_try_echo") >&5
28193   (eval "$ac_compile") 2>conftest.er1
28194   ac_status=$?
28195   grep -v '^ *+' conftest.er1 >conftest.err
28196   rm -f conftest.er1
28197   cat conftest.err >&5
28198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199   (exit $ac_status); } && {
28200          test -z "$ac_c_werror_flag" ||
28201          test ! -s conftest.err
28202        } && test -s conftest.$ac_objext; then
28203   gl_cv_c_inline_effective=yes
28204 else
28205   $as_echo "$as_me: failed program was:" >&5
28206 sed 's/^/| /' conftest.$ac_ext >&5
28207
28208         gl_cv_c_inline_effective=no
28209 fi
28210
28211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28212      fi
28213
28214 fi
28215 { $as_echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
28216 $as_echo "$gl_cv_c_inline_effective" >&6; }
28217   if test $gl_cv_c_inline_effective = yes; then
28218
28219 cat >>confdefs.h <<\_ACEOF
28220 #define HAVE_INLINE 1
28221 _ACEOF
28222
28223   fi
28224
28225
28226   gl_LIBOBJS="$gl_LIBOBJS imaxtostr.$ac_objext"
28227   gl_LIBOBJS="$gl_LIBOBJS offtostr.$ac_objext"
28228   gl_LIBOBJS="$gl_LIBOBJS umaxtostr.$ac_objext"
28229   gl_LIBOBJS="$gl_LIBOBJS uinttostr.$ac_objext"
28230
28231
28232
28233   :
28234
28235   :
28236   :
28237   :
28238   :
28239
28240
28241
28242
28243
28244
28245
28246
28247
28248
28249
28250
28251
28252
28253
28254
28255
28256
28257
28258
28259
28260               { $as_echo "$as_me:$LINENO: checking whether inttypes.h conforms to C99" >&5
28261 $as_echo_n "checking whether inttypes.h conforms to C99... " >&6; }
28262 if test "${gl_cv_header_working_inttypes_h+set}" = set; then
28263   $as_echo_n "(cached) " >&6
28264 else
28265   gl_cv_header_working_inttypes_h=no
28266      if test "$gl_cv_header_working_stdint_h" = yes \
28267         && test $ac_cv_header_inttypes_h = yes \
28268         && test "$ac_cv_have_decl_imaxabs" = yes \
28269         && test "$ac_cv_have_decl_imaxdiv" = yes \
28270         && test "$ac_cv_have_decl_strtoimax" = yes \
28271         && test "$ac_cv_have_decl_strtoumax" = yes; then
28272        cat >conftest.$ac_ext <<_ACEOF
28273
28274          /* confdefs.h.  */
28275 _ACEOF
28276 cat confdefs.h >>conftest.$ac_ext
28277 cat >>conftest.$ac_ext <<_ACEOF
28278 /* end confdefs.h.  */
28279
28280 #include <stddef.h>
28281 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
28282 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
28283 #define __STDC_FORMAT_MACROS 1 /* to make it work also in C++ mode */
28284 #include ABSOLUTE_INTTYPES_H
28285
28286 /* No need to duplicate the tests of stdint.m4; they are subsumed by
28287    $gl_cv_header_working_stdint_h = yes.  */
28288
28289 /* Tests for macros supposed to be defined in inttypes.h.  */
28290
28291 const char *k = /* implicit string concatenation */
28292 #ifdef INT8_MAX
28293   PRId8 PRIi8
28294 #endif
28295 #ifdef UINT8_MAX
28296   PRIo8 PRIu8 PRIx8 PRIX8
28297 #endif
28298 #ifdef INT16_MAX
28299   PRId16 PRIi16
28300 #endif
28301 #ifdef UINT16_MAX
28302   PRIo16 PRIu16 PRIx16 PRIX16
28303 #endif
28304 #ifdef INT32_MAX
28305   PRId32 PRIi32
28306 #endif
28307 #ifdef UINT32_MAX
28308   PRIo32 PRIu32 PRIx32 PRIX32
28309 #endif
28310 #ifdef INT64_MAX
28311   PRId64 PRIi64
28312 #endif
28313 #ifdef UINT64_MAX
28314   PRIo64 PRIu64 PRIx64 PRIX64
28315 #endif
28316   PRIdLEAST8 PRIiLEAST8 PRIoLEAST8 PRIuLEAST8 PRIxLEAST8 PRIXLEAST8
28317   PRIdLEAST16 PRIiLEAST16 PRIoLEAST16 PRIuLEAST16 PRIxLEAST16 PRIXLEAST16
28318   PRIdLEAST32 PRIiLEAST32 PRIoLEAST32 PRIuLEAST32 PRIxLEAST32 PRIXLEAST32
28319   PRIdLEAST64 PRIiLEAST64
28320   PRIoLEAST64 PRIuLEAST64 PRIxLEAST64 PRIXLEAST64
28321   PRIdFAST8 PRIiFAST8 PRIoFAST8 PRIuFAST8 PRIxFAST8 PRIXFAST8
28322   PRIdFAST16 PRIiFAST16 PRIoFAST16 PRIuFAST16 PRIxFAST16 PRIXFAST16
28323   PRIdFAST32 PRIiFAST32 PRIoFAST32 PRIuFAST32 PRIxFAST32 PRIXFAST32
28324   PRIdFAST64 PRIiFAST64
28325   PRIoFAST64 PRIuFAST64 PRIxFAST64 PRIXFAST64
28326   PRIdMAX PRIiMAX PRIoMAX PRIuMAX PRIxMAX PRIXMAX
28327 #ifdef INTPTR_MAX
28328   PRIdPTR PRIiPTR
28329 #endif
28330 #ifdef UINTPTR_MAX
28331   PRIoPTR PRIuPTR PRIxPTR PRIXPTR
28332 #endif
28333   ;
28334 const char *l = /* implicit string concatenation */
28335 #ifdef INT8_MAX
28336   SCNd8 SCNi8
28337 #endif
28338 #ifdef UINT8_MAX
28339   SCNo8 SCNu8 SCNx8
28340 #endif
28341 #ifdef INT16_MAX
28342   SCNd16 SCNi16
28343 #endif
28344 #ifdef UINT16_MAX
28345   SCNo16 SCNu16 SCNx16
28346 #endif
28347 #ifdef INT32_MAX
28348   SCNd32 SCNi32
28349 #endif
28350 #ifdef UINT32_MAX
28351   SCNo32 SCNu32 SCNx32
28352 #endif
28353 #ifdef INT64_MAX
28354   SCNd64 SCNi64
28355 #endif
28356 #ifdef UINT64_MAX
28357   SCNo64 SCNu64 SCNx64
28358 #endif
28359   SCNdLEAST8 SCNiLEAST8 SCNoLEAST8 SCNuLEAST8 SCNxLEAST8
28360   SCNdLEAST16 SCNiLEAST16 SCNoLEAST16 SCNuLEAST16 SCNxLEAST16
28361   SCNdLEAST32 SCNiLEAST32 SCNoLEAST32 SCNuLEAST32 SCNxLEAST32
28362   SCNdLEAST64 SCNiLEAST64
28363   SCNoLEAST64 SCNuLEAST64 SCNxLEAST64
28364   SCNdFAST8 SCNiFAST8 SCNoFAST8 SCNuFAST8 SCNxFAST8
28365   SCNdFAST16 SCNiFAST16 SCNoFAST16 SCNuFAST16 SCNxFAST16
28366   SCNdFAST32 SCNiFAST32 SCNoFAST32 SCNuFAST32 SCNxFAST32
28367   SCNdFAST64 SCNiFAST64
28368   SCNoFAST64 SCNuFAST64 SCNxFAST64
28369   SCNdMAX SCNiMAX SCNoMAX SCNuMAX SCNxMAX
28370 #ifdef INTPTR_MAX
28371   SCNdPTR SCNiPTR
28372 #endif
28373 #ifdef UINTPTR_MAX
28374   SCNoPTR SCNuPTR SCNxPTR
28375 #endif
28376   ;
28377
28378 int
28379 main ()
28380 {
28381
28382   ;
28383   return 0;
28384 }
28385 _ACEOF
28386 rm -f conftest.$ac_objext
28387 if { (ac_try="$ac_compile"
28388 case "(($ac_try" in
28389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28390   *) ac_try_echo=$ac_try;;
28391 esac
28392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28393 $as_echo "$ac_try_echo") >&5
28394   (eval "$ac_compile") 2>conftest.er1
28395   ac_status=$?
28396   grep -v '^ *+' conftest.er1 >conftest.err
28397   rm -f conftest.er1
28398   cat conftest.err >&5
28399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28400   (exit $ac_status); } && {
28401          test -z "$ac_c_werror_flag" ||
28402          test ! -s conftest.err
28403        } && test -s conftest.$ac_objext; then
28404   gl_cv_header_working_inttypes_h=yes
28405 else
28406   $as_echo "$as_me: failed program was:" >&5
28407 sed 's/^/| /' conftest.$ac_ext >&5
28408
28409
28410 fi
28411
28412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28413      fi
28414 fi
28415 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_inttypes_h" >&5
28416 $as_echo "$gl_cv_header_working_inttypes_h" >&6; }
28417
28418     if false && test $gl_cv_header_working_inttypes_h = yes; then
28419         INTTYPES_H=''
28420   else
28421
28422
28423         if test $ac_cv_header_inttypes_h = yes; then
28424         { $as_echo "$as_me:$LINENO: checking absolute name of <inttypes.h>" >&5
28425 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
28426 if test "${gl_cv_absolute_inttypes_h+set}" = set; then
28427   $as_echo_n "(cached) " >&6
28428 else
28429
28430
28431
28432
28433
28434     if test $ac_cv_header_inttypes_h = yes; then
28435       cat >conftest.$ac_ext <<_ACEOF
28436 /* confdefs.h.  */
28437 _ACEOF
28438 cat confdefs.h >>conftest.$ac_ext
28439 cat >>conftest.$ac_ext <<_ACEOF
28440 /* end confdefs.h.  */
28441 #include <inttypes.h>
28442 _ACEOF
28443       gl_cv_absolute_inttypes_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28444 sed -n '\#/inttypes.h#{s#.*"\(.*/inttypes.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
28445     fi
28446
28447 fi
28448 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_inttypes_h" >&5
28449 $as_echo "$gl_cv_absolute_inttypes_h" >&6; }
28450 cat >>confdefs.h <<_ACEOF
28451 #define ABSOLUTE_INTTYPES_H "$gl_cv_absolute_inttypes_h"
28452 _ACEOF
28453
28454
28455       ABSOLUTE_INTTYPES_H=\"$gl_cv_absolute_inttypes_h\"
28456     else
28457       ABSOLUTE_INTTYPES_H=\"no/such/file/inttypes.h\"
28458     fi
28459
28460
28461     PRIPTR_PREFIX=
28462     if test -n "$STDINT_H"; then
28463             PRIPTR_PREFIX='"l"'
28464     else
28465             for glpfx in '' l ll I64; do
28466         case $glpfx in
28467           '')  gltype1='int';;
28468           l)   gltype1='long int';;
28469           ll)  gltype1='long long int';;
28470           I64) gltype1='__int64';;
28471         esac
28472         cat >conftest.$ac_ext <<_ACEOF
28473 /* confdefs.h.  */
28474 _ACEOF
28475 cat confdefs.h >>conftest.$ac_ext
28476 cat >>conftest.$ac_ext <<_ACEOF
28477 /* end confdefs.h.  */
28478 #include <stdint.h>
28479              extern intptr_t foo;
28480              extern $gltype1 foo;
28481 int
28482 main ()
28483 {
28484
28485   ;
28486   return 0;
28487 }
28488 _ACEOF
28489 rm -f conftest.$ac_objext
28490 if { (ac_try="$ac_compile"
28491 case "(($ac_try" in
28492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28493   *) ac_try_echo=$ac_try;;
28494 esac
28495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28496 $as_echo "$ac_try_echo") >&5
28497   (eval "$ac_compile") 2>conftest.er1
28498   ac_status=$?
28499   grep -v '^ *+' conftest.er1 >conftest.err
28500   rm -f conftest.er1
28501   cat conftest.err >&5
28502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503   (exit $ac_status); } && {
28504          test -z "$ac_c_werror_flag" ||
28505          test ! -s conftest.err
28506        } && test -s conftest.$ac_objext; then
28507   PRIPTR_PREFIX='"'$glpfx'"'
28508 else
28509   $as_echo "$as_me: failed program was:" >&5
28510 sed 's/^/| /' conftest.$ac_ext >&5
28511
28512
28513 fi
28514
28515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28516         test -n "$PRIPTR_PREFIX" && break
28517       done
28518     fi
28519
28520
28521     if test "$ac_cv_have_decl_imaxabs" = yes; then
28522       HAVE_DECL_IMAXABS=1
28523     else
28524       HAVE_DECL_IMAXABS=0
28525     fi
28526
28527     if test "$ac_cv_have_decl_imaxdiv" = yes; then
28528       HAVE_DECL_IMAXDIV=1
28529     else
28530       HAVE_DECL_IMAXDIV=0
28531     fi
28532
28533     if test "$ac_cv_have_decl_strtoimax" = yes; then
28534       HAVE_DECL_STRTOIMAX=1
28535     else
28536       HAVE_DECL_STRTOIMAX=0
28537     fi
28538
28539     if test "$ac_cv_have_decl_strtoumax" = yes; then
28540       HAVE_DECL_STRTOUMAX=1
28541     else
28542       HAVE_DECL_STRTOUMAX=0
28543     fi
28544
28545     INTTYPES_H='inttypes.h'
28546   fi
28547
28548
28549
28550   # OpenVMS has isapipe already, so check for it.
28551
28552 for ac_func in isapipe
28553 do
28554 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28555 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28556 $as_echo_n "checking for $ac_func... " >&6; }
28557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28558   $as_echo_n "(cached) " >&6
28559 else
28560   cat >conftest.$ac_ext <<_ACEOF
28561 /* confdefs.h.  */
28562 _ACEOF
28563 cat confdefs.h >>conftest.$ac_ext
28564 cat >>conftest.$ac_ext <<_ACEOF
28565 /* end confdefs.h.  */
28566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28567    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28568 #define $ac_func innocuous_$ac_func
28569
28570 /* System header to define __stub macros and hopefully few prototypes,
28571     which can conflict with char $ac_func (); below.
28572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28573     <limits.h> exists even on freestanding compilers.  */
28574
28575 #ifdef __STDC__
28576 # include <limits.h>
28577 #else
28578 # include <assert.h>
28579 #endif
28580
28581 #undef $ac_func
28582
28583 /* Override any GCC internal prototype to avoid an error.
28584    Use char because int might match the return type of a GCC
28585    builtin and then its argument prototype would still apply.  */
28586 #ifdef __cplusplus
28587 extern "C"
28588 #endif
28589 char $ac_func ();
28590 /* The GNU C library defines this for functions which it implements
28591     to always fail with ENOSYS.  Some functions are actually named
28592     something starting with __ and the normal name is an alias.  */
28593 #if defined __stub_$ac_func || defined __stub___$ac_func
28594 choke me
28595 #endif
28596
28597 int
28598 main ()
28599 {
28600 return $ac_func ();
28601   ;
28602   return 0;
28603 }
28604 _ACEOF
28605 rm -f conftest.$ac_objext conftest$ac_exeext
28606 if { (ac_try="$ac_link"
28607 case "(($ac_try" in
28608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28609   *) ac_try_echo=$ac_try;;
28610 esac
28611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28612 $as_echo "$ac_try_echo") >&5
28613   (eval "$ac_link") 2>conftest.er1
28614   ac_status=$?
28615   grep -v '^ *+' conftest.er1 >conftest.err
28616   rm -f conftest.er1
28617   cat conftest.err >&5
28618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619   (exit $ac_status); } && {
28620          test -z "$ac_c_werror_flag" ||
28621          test ! -s conftest.err
28622        } && test -s conftest$ac_exeext &&
28623        $as_test_x conftest$ac_exeext; then
28624   eval "$as_ac_var=yes"
28625 else
28626   $as_echo "$as_me: failed program was:" >&5
28627 sed 's/^/| /' conftest.$ac_ext >&5
28628
28629         eval "$as_ac_var=no"
28630 fi
28631
28632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28633       conftest$ac_exeext conftest.$ac_ext
28634 fi
28635 ac_res=`eval 'as_val=${'$as_ac_var'}
28636                  $as_echo "$as_val"'`
28637                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28638 $as_echo "$ac_res" >&6; }
28639 if test `eval 'as_val=${'$as_ac_var'}
28640                  $as_echo "$as_val"'` = yes; then
28641   cat >>confdefs.h <<_ACEOF
28642 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28643 _ACEOF
28644
28645 else
28646   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
28647 fi
28648 done
28649
28650   if test $ac_cv_func_isapipe = no; then
28651
28652   { $as_echo "$as_me:$LINENO: checking whether pipes are FIFOs (and for their link count)" >&5
28653 $as_echo_n "checking whether pipes are FIFOs (and for their link count)... " >&6; }
28654 if test "${gl_cv_pipes_are_fifos+set}" = set; then
28655   $as_echo_n "(cached) " >&6
28656 else
28657   if test "$cross_compiling" = yes; then
28658   gl_cv_pipes_are_fifos=cross-compiling
28659 else
28660   cat >conftest.$ac_ext <<_ACEOF
28661 /* confdefs.h.  */
28662 _ACEOF
28663 cat confdefs.h >>conftest.$ac_ext
28664 cat >>conftest.$ac_ext <<_ACEOF
28665 /* end confdefs.h.  */
28666 #include <stdio.h>
28667             #include <sys/types.h>
28668             #include <sys/stat.h>
28669             #include <unistd.h>
28670             #ifndef S_ISFIFO
28671              #define S_ISFIFO(m) 0
28672             #endif
28673             #ifndef S_ISSOCK
28674              #define S_ISSOCK(m) 0
28675             #endif
28676             int
28677             main (int argc, char **argv)
28678             {
28679               int fd[2];
28680               struct stat st;
28681               if (pipe (fd) != 0 || fstat (fd[0], &st) != 0)
28682                 return 1;
28683               if (2 <= argc && argv[1][0] == '-')
28684                 {
28685                   char const *yesno = (S_ISFIFO (st.st_mode) ? "yes" : "no");
28686                   if (st.st_nlink <= 1)
28687                     {
28688                       long int i = st.st_nlink;
28689                       if (i != st.st_nlink)
28690                         return 1;
28691                       printf ("%s (%ld)\n", yesno, i);
28692                     }
28693                   else
28694                     {
28695                       unsigned long int i = st.st_nlink;
28696                       if (i != st.st_nlink)
28697                         return 1;
28698                       printf ("%s (%lu)\n", yesno, i);
28699                     }
28700                 }
28701               else
28702                 {
28703                   if (! S_ISFIFO (st.st_mode) && ! S_ISSOCK (st.st_mode))
28704                     return 1;
28705                 }
28706               return 0;
28707             }
28708 _ACEOF
28709 rm -f conftest$ac_exeext
28710 if { (ac_try="$ac_link"
28711 case "(($ac_try" in
28712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28713   *) ac_try_echo=$ac_try;;
28714 esac
28715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28716 $as_echo "$ac_try_echo") >&5
28717   (eval "$ac_link") 2>&5
28718   ac_status=$?
28719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28720   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28721   { (case "(($ac_try" in
28722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28723   *) ac_try_echo=$ac_try;;
28724 esac
28725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28726 $as_echo "$ac_try_echo") >&5
28727   (eval "$ac_try") 2>&5
28728   ac_status=$?
28729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730   (exit $ac_status); }; }; then
28731   gl_cv_pipes_are_fifos=`./conftest$ac_exeext -`
28732         test -z "$gl_cv_pipes_are_fifos" && gl_cv_pipes_are_fifos=no
28733 else
28734   $as_echo "$as_me: program exited with status $ac_status" >&5
28735 $as_echo "$as_me: failed program was:" >&5
28736 sed 's/^/| /' conftest.$ac_ext >&5
28737
28738 ( exit $ac_status )
28739 gl_cv_pipes_are_fifos=unknown
28740 fi
28741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28742 fi
28743
28744
28745 fi
28746 { $as_echo "$as_me:$LINENO: result: $gl_cv_pipes_are_fifos" >&5
28747 $as_echo "$gl_cv_pipes_are_fifos" >&6; }
28748
28749   case $gl_cv_pipes_are_fifos in #(
28750   'yes ('*')')
28751
28752 cat >>confdefs.h <<\_ACEOF
28753 #define HAVE_FIFO_PIPES 1
28754 _ACEOF
28755 ;; #(
28756   'no ('*')')
28757     cat >>confdefs.h <<\_ACEOF
28758 #define HAVE_FIFO_PIPES 0
28759 _ACEOF
28760 ;;
28761   esac
28762
28763   case $gl_cv_pipes_are_fifos in #(
28764   *'('*')')
28765
28766 cat >>confdefs.h <<_ACEOF
28767 #define PIPE_LINK_COUNT_MAX `expr "$gl_cv_pipes_are_fifos" : '.*\((.*)\)'`
28768 _ACEOF
28769 ;;
28770   esac
28771
28772   fi
28773
28774
28775
28776
28777
28778
28779
28780
28781
28782
28783
28784
28785
28786
28787
28788
28789
28790 for ac_func in lchown
28791 do
28792 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28793 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28794 $as_echo_n "checking for $ac_func... " >&6; }
28795 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28796   $as_echo_n "(cached) " >&6
28797 else
28798   cat >conftest.$ac_ext <<_ACEOF
28799 /* confdefs.h.  */
28800 _ACEOF
28801 cat confdefs.h >>conftest.$ac_ext
28802 cat >>conftest.$ac_ext <<_ACEOF
28803 /* end confdefs.h.  */
28804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28805    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28806 #define $ac_func innocuous_$ac_func
28807
28808 /* System header to define __stub macros and hopefully few prototypes,
28809     which can conflict with char $ac_func (); below.
28810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28811     <limits.h> exists even on freestanding compilers.  */
28812
28813 #ifdef __STDC__
28814 # include <limits.h>
28815 #else
28816 # include <assert.h>
28817 #endif
28818
28819 #undef $ac_func
28820
28821 /* Override any GCC internal prototype to avoid an error.
28822    Use char because int might match the return type of a GCC
28823    builtin and then its argument prototype would still apply.  */
28824 #ifdef __cplusplus
28825 extern "C"
28826 #endif
28827 char $ac_func ();
28828 /* The GNU C library defines this for functions which it implements
28829     to always fail with ENOSYS.  Some functions are actually named
28830     something starting with __ and the normal name is an alias.  */
28831 #if defined __stub_$ac_func || defined __stub___$ac_func
28832 choke me
28833 #endif
28834
28835 int
28836 main ()
28837 {
28838 return $ac_func ();
28839   ;
28840   return 0;
28841 }
28842 _ACEOF
28843 rm -f conftest.$ac_objext conftest$ac_exeext
28844 if { (ac_try="$ac_link"
28845 case "(($ac_try" in
28846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28847   *) ac_try_echo=$ac_try;;
28848 esac
28849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28850 $as_echo "$ac_try_echo") >&5
28851   (eval "$ac_link") 2>conftest.er1
28852   ac_status=$?
28853   grep -v '^ *+' conftest.er1 >conftest.err
28854   rm -f conftest.er1
28855   cat conftest.err >&5
28856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857   (exit $ac_status); } && {
28858          test -z "$ac_c_werror_flag" ||
28859          test ! -s conftest.err
28860        } && test -s conftest$ac_exeext &&
28861        $as_test_x conftest$ac_exeext; then
28862   eval "$as_ac_var=yes"
28863 else
28864   $as_echo "$as_me: failed program was:" >&5
28865 sed 's/^/| /' conftest.$ac_ext >&5
28866
28867         eval "$as_ac_var=no"
28868 fi
28869
28870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28871       conftest$ac_exeext conftest.$ac_ext
28872 fi
28873 ac_res=`eval 'as_val=${'$as_ac_var'}
28874                  $as_echo "$as_val"'`
28875                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28876 $as_echo "$ac_res" >&6; }
28877 if test `eval 'as_val=${'$as_ac_var'}
28878                  $as_echo "$as_val"'` = yes; then
28879   cat >>confdefs.h <<_ACEOF
28880 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28881 _ACEOF
28882
28883 else
28884   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
28885 fi
28886 done
28887
28888
28889
28890   { $as_echo "$as_me:$LINENO: checking for flag to ignore unused libraries" >&5
28891 $as_echo_n "checking for flag to ignore unused libraries... " >&6; }
28892 if test "${gl_cv_ignore_unused_libraries+set}" = set; then
28893   $as_echo_n "(cached) " >&6
28894 else
28895   gl_cv_ignore_unused_libraries=none
28896      gl_saved_ldflags=$LDFLAGS
28897      gl_saved_libs=$LIBS
28898      # Link with -lm to detect binutils 2.16 bug with --as-needed; see
28899      # <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00131.html>.
28900      LIBS="$LIBS -lm"
28901      # Use long option sequences like '-z ignore' to test for the feature,
28902      # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
28903      # GCC + binutils likes '-Wl,--as-needed'.
28904      # GCC + Solaris ld likes '-Wl,-z,ignore'.
28905      # Sun C likes '-z ignore'.
28906      # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
28907      # native cc issues annoying warnings and then ignores it,
28908      # which would cause us to incorrectly conclude that it worked.
28909      for gl_flags in \
28910         '-Wl,--as-needed' \
28911         '-Wl,-z,ignore' \
28912         '-z ignore'
28913      do
28914        LDFLAGS="$gl_flags $LDFLAGS"
28915        cat >conftest.$ac_ext <<_ACEOF
28916 /* confdefs.h.  */
28917 _ACEOF
28918 cat confdefs.h >>conftest.$ac_ext
28919 cat >>conftest.$ac_ext <<_ACEOF
28920 /* end confdefs.h.  */
28921
28922 int
28923 main ()
28924 {
28925
28926   ;
28927   return 0;
28928 }
28929 _ACEOF
28930 rm -f conftest.$ac_objext conftest$ac_exeext
28931 if { (ac_try="$ac_link"
28932 case "(($ac_try" in
28933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28934   *) ac_try_echo=$ac_try;;
28935 esac
28936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28937 $as_echo "$ac_try_echo") >&5
28938   (eval "$ac_link") 2>conftest.er1
28939   ac_status=$?
28940   grep -v '^ *+' conftest.er1 >conftest.err
28941   rm -f conftest.er1
28942   cat conftest.err >&5
28943   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944   (exit $ac_status); } && {
28945          test -z "$ac_c_werror_flag" ||
28946          test ! -s conftest.err
28947        } && test -s conftest$ac_exeext &&
28948        $as_test_x conftest$ac_exeext; then
28949   gl_cv_ignore_unused_libraries=$gl_flags
28950 else
28951   $as_echo "$as_me: failed program was:" >&5
28952 sed 's/^/| /' conftest.$ac_ext >&5
28953
28954
28955 fi
28956
28957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28958       conftest$ac_exeext conftest.$ac_ext
28959        LDFLAGS=$gl_saved_ldflags
28960        test "$gl_cv_ignore_unused_libraries" != none && break
28961      done
28962      LIBS=$gl_saved_libs
28963 fi
28964 { $as_echo "$as_me:$LINENO: result: $gl_cv_ignore_unused_libraries" >&5
28965 $as_echo "$gl_cv_ignore_unused_libraries" >&6; }
28966
28967   test "$gl_cv_ignore_unused_libraries" != none &&
28968     LDFLAGS="$LDFLAGS $gl_cv_ignore_unused_libraries"
28969
28970     { $as_echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink specified with a trailing slash" >&5
28971 $as_echo_n "checking whether link(2) dereferences a symlink specified with a trailing slash... " >&6; }
28972 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
28973   $as_echo_n "(cached) " >&6
28974 else
28975
28976     # Create a regular file.
28977     echo > conftest.file
28978     if test "$cross_compiling" = yes; then
28979   jm_ac_cv_func_link_follows_symlink=yes
28980 else
28981   cat >conftest.$ac_ext <<_ACEOF
28982 /* confdefs.h.  */
28983 _ACEOF
28984 cat confdefs.h >>conftest.$ac_ext
28985 cat >>conftest.$ac_ext <<_ACEOF
28986 /* end confdefs.h.  */
28987
28988 #       include <sys/types.h>
28989 #       include <sys/stat.h>
28990 #       include <unistd.h>
28991 #       include <stdlib.h>
28992
28993 #       define SAME_INODE(Stat_buf_1, Stat_buf_2) \
28994           ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
28995            && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
28996
28997         int
28998         main ()
28999         {
29000           const char *file = "conftest.file";
29001           const char *sym = "conftest.sym";
29002           const char *hard = "conftest.hard";
29003           struct stat sb_file, sb_hard;
29004
29005           /* Create a symlink to the regular file. */
29006           if (symlink (file, sym))
29007             abort ();
29008
29009           /* Create a hard link to that symlink.  */
29010           if (link (sym, hard))
29011             abort ();
29012
29013           if (lstat (hard, &sb_hard))
29014             abort ();
29015           if (lstat (file, &sb_file))
29016             abort ();
29017
29018           /* If the dev/inode of hard and file are the same, then
29019              the link call followed the symlink.  */
29020           return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
29021         }
29022
29023 _ACEOF
29024 rm -f conftest$ac_exeext
29025 if { (ac_try="$ac_link"
29026 case "(($ac_try" in
29027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29028   *) ac_try_echo=$ac_try;;
29029 esac
29030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29031 $as_echo "$ac_try_echo") >&5
29032   (eval "$ac_link") 2>&5
29033   ac_status=$?
29034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29035   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29036   { (case "(($ac_try" in
29037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29038   *) ac_try_echo=$ac_try;;
29039 esac
29040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29041 $as_echo "$ac_try_echo") >&5
29042   (eval "$ac_try") 2>&5
29043   ac_status=$?
29044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045   (exit $ac_status); }; }; then
29046   jm_ac_cv_func_link_follows_symlink=yes
29047 else
29048   $as_echo "$as_me: program exited with status $ac_status" >&5
29049 $as_echo "$as_me: failed program was:" >&5
29050 sed 's/^/| /' conftest.$ac_ext >&5
29051
29052 ( exit $ac_status )
29053 jm_ac_cv_func_link_follows_symlink=no
29054 fi
29055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29056 fi
29057
29058
29059
29060 fi
29061 { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_func_link_follows_symlink" >&5
29062 $as_echo "$jm_ac_cv_func_link_follows_symlink" >&6; }
29063   if test $jm_ac_cv_func_link_follows_symlink = yes; then
29064
29065 cat >>confdefs.h <<\_ACEOF
29066 #define LINK_FOLLOWS_SYMLINKS 1
29067 _ACEOF
29068
29069   fi
29070
29071
29072
29073
29074
29075
29076
29077
29078
29079
29080
29081
29082   gl_LIBOBJS="$gl_LIBOBJS long-options.$ac_objext"
29083
29084
29085
29086   { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
29087 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
29088 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
29089   $as_echo_n "(cached) " >&6
29090 else
29091   rm -f conftest.sym conftest.file
29092 echo >conftest.file
29093 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
29094   if test "$cross_compiling" = yes; then
29095   ac_cv_func_lstat_dereferences_slashed_symlink=no
29096 else
29097   cat >conftest.$ac_ext <<_ACEOF
29098 /* confdefs.h.  */
29099 _ACEOF
29100 cat confdefs.h >>conftest.$ac_ext
29101 cat >>conftest.$ac_ext <<_ACEOF
29102 /* end confdefs.h.  */
29103 $ac_includes_default
29104 int
29105 main ()
29106 {
29107 struct stat sbuf;
29108      /* Linux will dereference the symlink and fail.
29109         That is better in the sense that it means we will not
29110         have to compile and use the lstat wrapper.  */
29111      return lstat ("conftest.sym/", &sbuf) == 0;
29112   ;
29113   return 0;
29114 }
29115 _ACEOF
29116 rm -f conftest$ac_exeext
29117 if { (ac_try="$ac_link"
29118 case "(($ac_try" in
29119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29120   *) ac_try_echo=$ac_try;;
29121 esac
29122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29123 $as_echo "$ac_try_echo") >&5
29124   (eval "$ac_link") 2>&5
29125   ac_status=$?
29126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29128   { (case "(($ac_try" in
29129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29130   *) ac_try_echo=$ac_try;;
29131 esac
29132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29133 $as_echo "$ac_try_echo") >&5
29134   (eval "$ac_try") 2>&5
29135   ac_status=$?
29136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137   (exit $ac_status); }; }; then
29138   ac_cv_func_lstat_dereferences_slashed_symlink=yes
29139 else
29140   $as_echo "$as_me: program exited with status $ac_status" >&5
29141 $as_echo "$as_me: failed program was:" >&5
29142 sed 's/^/| /' conftest.$ac_ext >&5
29143
29144 ( exit $ac_status )
29145 ac_cv_func_lstat_dereferences_slashed_symlink=no
29146 fi
29147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29148 fi
29149
29150
29151 else
29152   # If the `ln -s' command failed, then we probably don't even
29153   # have an lstat function.
29154   ac_cv_func_lstat_dereferences_slashed_symlink=no
29155 fi
29156 rm -f conftest.sym conftest.file
29157
29158 fi
29159 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
29160 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
29161
29162 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
29163
29164 cat >>confdefs.h <<_ACEOF
29165 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
29166 _ACEOF
29167
29168
29169 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
29170   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
29171 fi
29172
29173     :
29174
29175
29176 for ac_header in stdlib.h
29177 do
29178 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29180   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29181 $as_echo_n "checking for $ac_header... " >&6; }
29182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29183   $as_echo_n "(cached) " >&6
29184 fi
29185 ac_res=`eval 'as_val=${'$as_ac_Header'}
29186                  $as_echo "$as_val"'`
29187                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29188 $as_echo "$ac_res" >&6; }
29189 else
29190   # Is the header compilable?
29191 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29192 $as_echo_n "checking $ac_header usability... " >&6; }
29193 cat >conftest.$ac_ext <<_ACEOF
29194 /* confdefs.h.  */
29195 _ACEOF
29196 cat confdefs.h >>conftest.$ac_ext
29197 cat >>conftest.$ac_ext <<_ACEOF
29198 /* end confdefs.h.  */
29199 $ac_includes_default
29200 #include <$ac_header>
29201 _ACEOF
29202 rm -f conftest.$ac_objext
29203 if { (ac_try="$ac_compile"
29204 case "(($ac_try" in
29205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29206   *) ac_try_echo=$ac_try;;
29207 esac
29208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29209 $as_echo "$ac_try_echo") >&5
29210   (eval "$ac_compile") 2>conftest.er1
29211   ac_status=$?
29212   grep -v '^ *+' conftest.er1 >conftest.err
29213   rm -f conftest.er1
29214   cat conftest.err >&5
29215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29216   (exit $ac_status); } && {
29217          test -z "$ac_c_werror_flag" ||
29218          test ! -s conftest.err
29219        } && test -s conftest.$ac_objext; then
29220   ac_header_compiler=yes
29221 else
29222   $as_echo "$as_me: failed program was:" >&5
29223 sed 's/^/| /' conftest.$ac_ext >&5
29224
29225         ac_header_compiler=no
29226 fi
29227
29228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29229 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29230 $as_echo "$ac_header_compiler" >&6; }
29231
29232 # Is the header present?
29233 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29234 $as_echo_n "checking $ac_header presence... " >&6; }
29235 cat >conftest.$ac_ext <<_ACEOF
29236 /* confdefs.h.  */
29237 _ACEOF
29238 cat confdefs.h >>conftest.$ac_ext
29239 cat >>conftest.$ac_ext <<_ACEOF
29240 /* end confdefs.h.  */
29241 #include <$ac_header>
29242 _ACEOF
29243 if { (ac_try="$ac_cpp conftest.$ac_ext"
29244 case "(($ac_try" in
29245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29246   *) ac_try_echo=$ac_try;;
29247 esac
29248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29249 $as_echo "$ac_try_echo") >&5
29250   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29251   ac_status=$?
29252   grep -v '^ *+' conftest.er1 >conftest.err
29253   rm -f conftest.er1
29254   cat conftest.err >&5
29255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29256   (exit $ac_status); } >/dev/null && {
29257          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29258          test ! -s conftest.err
29259        }; then
29260   ac_header_preproc=yes
29261 else
29262   $as_echo "$as_me: failed program was:" >&5
29263 sed 's/^/| /' conftest.$ac_ext >&5
29264
29265   ac_header_preproc=no
29266 fi
29267
29268 rm -f conftest.err conftest.$ac_ext
29269 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29270 $as_echo "$ac_header_preproc" >&6; }
29271
29272 # So?  What about this header?
29273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29274   yes:no: )
29275     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29276 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29277     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29278 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29279     ac_header_preproc=yes
29280     ;;
29281   no:yes:* )
29282     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29283 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29284     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29285 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29286     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29287 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29288     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29289 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29290     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29291 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29292     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29293 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29294     ( cat <<\_ASBOX
29295 ## ------------------------------------ ##
29296 ## Report this to bug-coreutils@gnu.org ##
29297 ## ------------------------------------ ##
29298 _ASBOX
29299      ) | sed "s/^/$as_me: WARNING:     /" >&2
29300     ;;
29301 esac
29302 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29303 $as_echo_n "checking for $ac_header... " >&6; }
29304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29305   $as_echo_n "(cached) " >&6
29306 else
29307   eval "$as_ac_Header=\$ac_header_preproc"
29308 fi
29309 ac_res=`eval 'as_val=${'$as_ac_Header'}
29310                  $as_echo "$as_val"'`
29311                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29312 $as_echo "$ac_res" >&6; }
29313
29314 fi
29315 if test `eval 'as_val=${'$as_ac_Header'}
29316                  $as_echo "$as_val"'` = yes; then
29317   cat >>confdefs.h <<_ACEOF
29318 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29319 _ACEOF
29320
29321 fi
29322
29323 done
29324
29325 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
29326 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
29327 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
29328   $as_echo_n "(cached) " >&6
29329 else
29330   if test "$cross_compiling" = yes; then
29331   ac_cv_func_malloc_0_nonnull=no
29332 else
29333   cat >conftest.$ac_ext <<_ACEOF
29334 /* confdefs.h.  */
29335 _ACEOF
29336 cat confdefs.h >>conftest.$ac_ext
29337 cat >>conftest.$ac_ext <<_ACEOF
29338 /* end confdefs.h.  */
29339 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
29340 # include <stdlib.h>
29341 #else
29342 char *malloc ();
29343 #endif
29344
29345 int
29346 main ()
29347 {
29348 return ! malloc (0);
29349   ;
29350   return 0;
29351 }
29352 _ACEOF
29353 rm -f conftest$ac_exeext
29354 if { (ac_try="$ac_link"
29355 case "(($ac_try" in
29356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29357   *) ac_try_echo=$ac_try;;
29358 esac
29359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29360 $as_echo "$ac_try_echo") >&5
29361   (eval "$ac_link") 2>&5
29362   ac_status=$?
29363   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29365   { (case "(($ac_try" in
29366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29367   *) ac_try_echo=$ac_try;;
29368 esac
29369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29370 $as_echo "$ac_try_echo") >&5
29371   (eval "$ac_try") 2>&5
29372   ac_status=$?
29373   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374   (exit $ac_status); }; }; then
29375   ac_cv_func_malloc_0_nonnull=yes
29376 else
29377   $as_echo "$as_me: program exited with status $ac_status" >&5
29378 $as_echo "$as_me: failed program was:" >&5
29379 sed 's/^/| /' conftest.$ac_ext >&5
29380
29381 ( exit $ac_status )
29382 ac_cv_func_malloc_0_nonnull=no
29383 fi
29384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29385 fi
29386
29387
29388 fi
29389 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
29390 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
29391 if test $ac_cv_func_malloc_0_nonnull = yes; then
29392
29393 cat >>confdefs.h <<\_ACEOF
29394 #define HAVE_MALLOC 1
29395 _ACEOF
29396
29397 else
29398   cat >>confdefs.h <<\_ACEOF
29399 #define HAVE_MALLOC 0
29400 _ACEOF
29401
29402    gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
29403
29404 cat >>confdefs.h <<\_ACEOF
29405 #define malloc rpl_malloc
29406 _ACEOF
29407
29408 fi
29409
29410
29411
29412
29413
29414
29415
29416
29417
29418   :
29419
29420
29421
29422
29423   GNULIB_MBSCASECMP=1
29424
29425
29426
29427
29428
29429
29430
29431
29432
29433
29434
29435
29436
29437
29438
29439
29440
29441     { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
29442 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
29443 if test "${gl_cv_func_mbrtowc+set}" = set; then
29444   $as_echo_n "(cached) " >&6
29445 else
29446   cat >conftest.$ac_ext <<_ACEOF
29447 /* confdefs.h.  */
29448 _ACEOF
29449 cat confdefs.h >>conftest.$ac_ext
29450 cat >>conftest.$ac_ext <<_ACEOF
29451 /* end confdefs.h.  */
29452 #include <wchar.h>
29453 int
29454 main ()
29455 {
29456 wchar_t wc;
29457               char const s[] = "";
29458               size_t n = 1;
29459               mbstate_t state;
29460               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
29461   ;
29462   return 0;
29463 }
29464 _ACEOF
29465 rm -f conftest.$ac_objext conftest$ac_exeext
29466 if { (ac_try="$ac_link"
29467 case "(($ac_try" in
29468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29469   *) ac_try_echo=$ac_try;;
29470 esac
29471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29472 $as_echo "$ac_try_echo") >&5
29473   (eval "$ac_link") 2>conftest.er1
29474   ac_status=$?
29475   grep -v '^ *+' conftest.er1 >conftest.err
29476   rm -f conftest.er1
29477   cat conftest.err >&5
29478   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479   (exit $ac_status); } && {
29480          test -z "$ac_c_werror_flag" ||
29481          test ! -s conftest.err
29482        } && test -s conftest$ac_exeext &&
29483        $as_test_x conftest$ac_exeext; then
29484   gl_cv_func_mbrtowc=yes
29485 else
29486   $as_echo "$as_me: failed program was:" >&5
29487 sed 's/^/| /' conftest.$ac_ext >&5
29488
29489         gl_cv_func_mbrtowc=no
29490 fi
29491
29492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29493       conftest$ac_exeext conftest.$ac_ext
29494 fi
29495 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
29496 $as_echo "$gl_cv_func_mbrtowc" >&6; }
29497   if test $gl_cv_func_mbrtowc = yes; then
29498
29499 cat >>confdefs.h <<\_ACEOF
29500 #define HAVE_MBRTOWC 1
29501 _ACEOF
29502
29503   fi
29504
29505
29506       { $as_echo "$as_me:$LINENO: checking whether mbswidth is declared in <wchar.h>" >&5
29507 $as_echo_n "checking whether mbswidth is declared in <wchar.h>... " >&6; }
29508 if test "${ac_cv_have_decl_mbswidth+set}" = set; then
29509   $as_echo_n "(cached) " >&6
29510 else
29511   cat >conftest.$ac_ext <<_ACEOF
29512 /* confdefs.h.  */
29513 _ACEOF
29514 cat confdefs.h >>conftest.$ac_ext
29515 cat >>conftest.$ac_ext <<_ACEOF
29516 /* end confdefs.h.  */
29517
29518 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29519    <wchar.h>.
29520    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
29521    before <wchar.h>.  */
29522 #include <stddef.h>
29523 #include <stdio.h>
29524 #include <time.h>
29525 #include <wchar.h>
29526
29527 int
29528 main ()
29529 {
29530
29531   char *p = (char *) mbswidth;
29532   return !p;
29533
29534   ;
29535   return 0;
29536 }
29537 _ACEOF
29538 rm -f conftest.$ac_objext
29539 if { (ac_try="$ac_compile"
29540 case "(($ac_try" in
29541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29542   *) ac_try_echo=$ac_try;;
29543 esac
29544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29545 $as_echo "$ac_try_echo") >&5
29546   (eval "$ac_compile") 2>conftest.er1
29547   ac_status=$?
29548   grep -v '^ *+' conftest.er1 >conftest.err
29549   rm -f conftest.er1
29550   cat conftest.err >&5
29551   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29552   (exit $ac_status); } && {
29553          test -z "$ac_c_werror_flag" ||
29554          test ! -s conftest.err
29555        } && test -s conftest.$ac_objext; then
29556   ac_cv_have_decl_mbswidth=yes
29557 else
29558   $as_echo "$as_me: failed program was:" >&5
29559 sed 's/^/| /' conftest.$ac_ext >&5
29560
29561         ac_cv_have_decl_mbswidth=no
29562 fi
29563
29564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29565 fi
29566 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_mbswidth" >&5
29567 $as_echo "$ac_cv_have_decl_mbswidth" >&6; }
29568   if test $ac_cv_have_decl_mbswidth = yes; then
29569     ac_val=1
29570   else
29571     ac_val=0
29572   fi
29573
29574 cat >>confdefs.h <<_ACEOF
29575 #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
29576 _ACEOF
29577
29578
29579   { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
29580 $as_echo_n "checking for mbstate_t... " >&6; }
29581 if test "${ac_cv_type_mbstate_t+set}" = set; then
29582   $as_echo_n "(cached) " >&6
29583 else
29584   cat >conftest.$ac_ext <<_ACEOF
29585 /* confdefs.h.  */
29586 _ACEOF
29587 cat confdefs.h >>conftest.$ac_ext
29588 cat >>conftest.$ac_ext <<_ACEOF
29589 /* end confdefs.h.  */
29590 $ac_includes_default
29591 #           include <wchar.h>
29592 int
29593 main ()
29594 {
29595 mbstate_t x; return sizeof x;
29596   ;
29597   return 0;
29598 }
29599 _ACEOF
29600 rm -f conftest.$ac_objext
29601 if { (ac_try="$ac_compile"
29602 case "(($ac_try" in
29603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29604   *) ac_try_echo=$ac_try;;
29605 esac
29606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29607 $as_echo "$ac_try_echo") >&5
29608   (eval "$ac_compile") 2>conftest.er1
29609   ac_status=$?
29610   grep -v '^ *+' conftest.er1 >conftest.err
29611   rm -f conftest.er1
29612   cat conftest.err >&5
29613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29614   (exit $ac_status); } && {
29615          test -z "$ac_c_werror_flag" ||
29616          test ! -s conftest.err
29617        } && test -s conftest.$ac_objext; then
29618   ac_cv_type_mbstate_t=yes
29619 else
29620   $as_echo "$as_me: failed program was:" >&5
29621 sed 's/^/| /' conftest.$ac_ext >&5
29622
29623         ac_cv_type_mbstate_t=no
29624 fi
29625
29626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29627 fi
29628 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
29629 $as_echo "$ac_cv_type_mbstate_t" >&6; }
29630    if test $ac_cv_type_mbstate_t = yes; then
29631
29632 cat >>confdefs.h <<\_ACEOF
29633 #define HAVE_MBSTATE_T 1
29634 _ACEOF
29635
29636    else
29637
29638 cat >>confdefs.h <<\_ACEOF
29639 #define mbstate_t int
29640 _ACEOF
29641
29642    fi
29643
29644
29645
29646
29647   :
29648
29649
29650   gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext"
29651
29652
29653   :
29654
29655
29656   gl_LIBOBJS="$gl_LIBOBJS memcasecmp.$ac_objext"
29657
29658
29659
29660 for ac_func in memchr
29661 do
29662 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29663 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29664 $as_echo_n "checking for $ac_func... " >&6; }
29665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29666   $as_echo_n "(cached) " >&6
29667 else
29668   cat >conftest.$ac_ext <<_ACEOF
29669 /* confdefs.h.  */
29670 _ACEOF
29671 cat confdefs.h >>conftest.$ac_ext
29672 cat >>conftest.$ac_ext <<_ACEOF
29673 /* end confdefs.h.  */
29674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29675    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29676 #define $ac_func innocuous_$ac_func
29677
29678 /* System header to define __stub macros and hopefully few prototypes,
29679     which can conflict with char $ac_func (); below.
29680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29681     <limits.h> exists even on freestanding compilers.  */
29682
29683 #ifdef __STDC__
29684 # include <limits.h>
29685 #else
29686 # include <assert.h>
29687 #endif
29688
29689 #undef $ac_func
29690
29691 /* Override any GCC internal prototype to avoid an error.
29692    Use char because int might match the return type of a GCC
29693    builtin and then its argument prototype would still apply.  */
29694 #ifdef __cplusplus
29695 extern "C"
29696 #endif
29697 char $ac_func ();
29698 /* The GNU C library defines this for functions which it implements
29699     to always fail with ENOSYS.  Some functions are actually named
29700     something starting with __ and the normal name is an alias.  */
29701 #if defined __stub_$ac_func || defined __stub___$ac_func
29702 choke me
29703 #endif
29704
29705 int
29706 main ()
29707 {
29708 return $ac_func ();
29709   ;
29710   return 0;
29711 }
29712 _ACEOF
29713 rm -f conftest.$ac_objext conftest$ac_exeext
29714 if { (ac_try="$ac_link"
29715 case "(($ac_try" in
29716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29717   *) ac_try_echo=$ac_try;;
29718 esac
29719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29720 $as_echo "$ac_try_echo") >&5
29721   (eval "$ac_link") 2>conftest.er1
29722   ac_status=$?
29723   grep -v '^ *+' conftest.er1 >conftest.err
29724   rm -f conftest.er1
29725   cat conftest.err >&5
29726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29727   (exit $ac_status); } && {
29728          test -z "$ac_c_werror_flag" ||
29729          test ! -s conftest.err
29730        } && test -s conftest$ac_exeext &&
29731        $as_test_x conftest$ac_exeext; then
29732   eval "$as_ac_var=yes"
29733 else
29734   $as_echo "$as_me: failed program was:" >&5
29735 sed 's/^/| /' conftest.$ac_ext >&5
29736
29737         eval "$as_ac_var=no"
29738 fi
29739
29740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29741       conftest$ac_exeext conftest.$ac_ext
29742 fi
29743 ac_res=`eval 'as_val=${'$as_ac_var'}
29744                  $as_echo "$as_val"'`
29745                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29746 $as_echo "$ac_res" >&6; }
29747 if test `eval 'as_val=${'$as_ac_var'}
29748                  $as_echo "$as_val"'` = yes; then
29749   cat >>confdefs.h <<_ACEOF
29750 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29751 _ACEOF
29752
29753 else
29754   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
29755 fi
29756 done
29757
29758   if test $ac_cv_func_memchr = no; then
29759
29760
29761 for ac_header in bp-sym.h
29762 do
29763 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29765   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29766 $as_echo_n "checking for $ac_header... " >&6; }
29767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29768   $as_echo_n "(cached) " >&6
29769 fi
29770 ac_res=`eval 'as_val=${'$as_ac_Header'}
29771                  $as_echo "$as_val"'`
29772                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29773 $as_echo "$ac_res" >&6; }
29774 else
29775   # Is the header compilable?
29776 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29777 $as_echo_n "checking $ac_header usability... " >&6; }
29778 cat >conftest.$ac_ext <<_ACEOF
29779 /* confdefs.h.  */
29780 _ACEOF
29781 cat confdefs.h >>conftest.$ac_ext
29782 cat >>conftest.$ac_ext <<_ACEOF
29783 /* end confdefs.h.  */
29784 $ac_includes_default
29785 #include <$ac_header>
29786 _ACEOF
29787 rm -f conftest.$ac_objext
29788 if { (ac_try="$ac_compile"
29789 case "(($ac_try" in
29790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29791   *) ac_try_echo=$ac_try;;
29792 esac
29793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29794 $as_echo "$ac_try_echo") >&5
29795   (eval "$ac_compile") 2>conftest.er1
29796   ac_status=$?
29797   grep -v '^ *+' conftest.er1 >conftest.err
29798   rm -f conftest.er1
29799   cat conftest.err >&5
29800   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801   (exit $ac_status); } && {
29802          test -z "$ac_c_werror_flag" ||
29803          test ! -s conftest.err
29804        } && test -s conftest.$ac_objext; then
29805   ac_header_compiler=yes
29806 else
29807   $as_echo "$as_me: failed program was:" >&5
29808 sed 's/^/| /' conftest.$ac_ext >&5
29809
29810         ac_header_compiler=no
29811 fi
29812
29813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29814 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29815 $as_echo "$ac_header_compiler" >&6; }
29816
29817 # Is the header present?
29818 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29819 $as_echo_n "checking $ac_header presence... " >&6; }
29820 cat >conftest.$ac_ext <<_ACEOF
29821 /* confdefs.h.  */
29822 _ACEOF
29823 cat confdefs.h >>conftest.$ac_ext
29824 cat >>conftest.$ac_ext <<_ACEOF
29825 /* end confdefs.h.  */
29826 #include <$ac_header>
29827 _ACEOF
29828 if { (ac_try="$ac_cpp conftest.$ac_ext"
29829 case "(($ac_try" in
29830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29831   *) ac_try_echo=$ac_try;;
29832 esac
29833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29834 $as_echo "$ac_try_echo") >&5
29835   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29836   ac_status=$?
29837   grep -v '^ *+' conftest.er1 >conftest.err
29838   rm -f conftest.er1
29839   cat conftest.err >&5
29840   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29841   (exit $ac_status); } >/dev/null && {
29842          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29843          test ! -s conftest.err
29844        }; then
29845   ac_header_preproc=yes
29846 else
29847   $as_echo "$as_me: failed program was:" >&5
29848 sed 's/^/| /' conftest.$ac_ext >&5
29849
29850   ac_header_preproc=no
29851 fi
29852
29853 rm -f conftest.err conftest.$ac_ext
29854 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29855 $as_echo "$ac_header_preproc" >&6; }
29856
29857 # So?  What about this header?
29858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29859   yes:no: )
29860     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29861 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29862     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29863 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29864     ac_header_preproc=yes
29865     ;;
29866   no:yes:* )
29867     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29868 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29869     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29870 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29871     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29872 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29873     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29874 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29875     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29876 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29877     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29878 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29879     ( cat <<\_ASBOX
29880 ## ------------------------------------ ##
29881 ## Report this to bug-coreutils@gnu.org ##
29882 ## ------------------------------------ ##
29883 _ASBOX
29884      ) | sed "s/^/$as_me: WARNING:     /" >&2
29885     ;;
29886 esac
29887 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29888 $as_echo_n "checking for $ac_header... " >&6; }
29889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29890   $as_echo_n "(cached) " >&6
29891 else
29892   eval "$as_ac_Header=\$ac_header_preproc"
29893 fi
29894 ac_res=`eval 'as_val=${'$as_ac_Header'}
29895                  $as_echo "$as_val"'`
29896                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29897 $as_echo "$ac_res" >&6; }
29898
29899 fi
29900 if test `eval 'as_val=${'$as_ac_Header'}
29901                  $as_echo "$as_val"'` = yes; then
29902   cat >>confdefs.h <<_ACEOF
29903 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29904 _ACEOF
29905
29906 fi
29907
29908 done
29909
29910
29911   fi
29912
29913
29914   { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
29915 $as_echo_n "checking for working memcmp... " >&6; }
29916 if test "${ac_cv_func_memcmp_working+set}" = set; then
29917   $as_echo_n "(cached) " >&6
29918 else
29919   if test "$cross_compiling" = yes; then
29920   ac_cv_func_memcmp_working=no
29921 else
29922   cat >conftest.$ac_ext <<_ACEOF
29923 /* confdefs.h.  */
29924 _ACEOF
29925 cat confdefs.h >>conftest.$ac_ext
29926 cat >>conftest.$ac_ext <<_ACEOF
29927 /* end confdefs.h.  */
29928 $ac_includes_default
29929 int
29930 main ()
29931 {
29932
29933   /* Some versions of memcmp are not 8-bit clean.  */
29934   char c0 = '\100', c1 = '\200', c2 = '\201';
29935   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
29936     return 1;
29937
29938   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
29939      or more and with at least one buffer not starting on a 4-byte boundary.
29940      William Lewis provided this test program.   */
29941   {
29942     char foo[21];
29943     char bar[21];
29944     int i;
29945     for (i = 0; i < 4; i++)
29946       {
29947         char *a = foo + i;
29948         char *b = bar + i;
29949         strcpy (a, "--------01111111");
29950         strcpy (b, "--------10000000");
29951         if (memcmp (a, b, 16) >= 0)
29952           return 1;
29953       }
29954     return 0;
29955   }
29956
29957   ;
29958   return 0;
29959 }
29960 _ACEOF
29961 rm -f conftest$ac_exeext
29962 if { (ac_try="$ac_link"
29963 case "(($ac_try" in
29964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29965   *) ac_try_echo=$ac_try;;
29966 esac
29967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29968 $as_echo "$ac_try_echo") >&5
29969   (eval "$ac_link") 2>&5
29970   ac_status=$?
29971   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29972   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29973   { (case "(($ac_try" in
29974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29975   *) ac_try_echo=$ac_try;;
29976 esac
29977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29978 $as_echo "$ac_try_echo") >&5
29979   (eval "$ac_try") 2>&5
29980   ac_status=$?
29981   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982   (exit $ac_status); }; }; then
29983   ac_cv_func_memcmp_working=yes
29984 else
29985   $as_echo "$as_me: program exited with status $ac_status" >&5
29986 $as_echo "$as_me: failed program was:" >&5
29987 sed 's/^/| /' conftest.$ac_ext >&5
29988
29989 ( exit $ac_status )
29990 ac_cv_func_memcmp_working=no
29991 fi
29992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29993 fi
29994
29995
29996 fi
29997 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
29998 $as_echo "$ac_cv_func_memcmp_working" >&6; }
29999 test $ac_cv_func_memcmp_working = no && gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
30000
30001     if test $ac_cv_func_memcmp_working = no; then
30002
30003 cat >>confdefs.h <<\_ACEOF
30004 #define memcmp rpl_memcmp
30005 _ACEOF
30006
30007     :
30008   fi
30009
30010
30011   gl_LIBOBJS="$gl_LIBOBJS memcoll.$ac_objext"
30012
30013     { $as_echo "$as_me:$LINENO: checking for working strcoll" >&5
30014 $as_echo_n "checking for working strcoll... " >&6; }
30015 if test "${ac_cv_func_strcoll_works+set}" = set; then
30016   $as_echo_n "(cached) " >&6
30017 else
30018   if test "$cross_compiling" = yes; then
30019   ac_cv_func_strcoll_works=no
30020 else
30021   cat >conftest.$ac_ext <<_ACEOF
30022 /* confdefs.h.  */
30023 _ACEOF
30024 cat confdefs.h >>conftest.$ac_ext
30025 cat >>conftest.$ac_ext <<_ACEOF
30026 /* end confdefs.h.  */
30027 $ac_includes_default
30028 int
30029 main ()
30030 {
30031 return (strcoll ("abc", "def") >= 0 ||
30032          strcoll ("ABC", "DEF") >= 0 ||
30033          strcoll ("123", "456") >= 0)
30034   ;
30035   return 0;
30036 }
30037 _ACEOF
30038 rm -f conftest$ac_exeext
30039 if { (ac_try="$ac_link"
30040 case "(($ac_try" in
30041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30042   *) ac_try_echo=$ac_try;;
30043 esac
30044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30045 $as_echo "$ac_try_echo") >&5
30046   (eval "$ac_link") 2>&5
30047   ac_status=$?
30048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30049   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30050   { (case "(($ac_try" in
30051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30052   *) ac_try_echo=$ac_try;;
30053 esac
30054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30055 $as_echo "$ac_try_echo") >&5
30056   (eval "$ac_try") 2>&5
30057   ac_status=$?
30058   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059   (exit $ac_status); }; }; then
30060   ac_cv_func_strcoll_works=yes
30061 else
30062   $as_echo "$as_me: program exited with status $ac_status" >&5
30063 $as_echo "$as_me: failed program was:" >&5
30064 sed 's/^/| /' conftest.$ac_ext >&5
30065
30066 ( exit $ac_status )
30067 ac_cv_func_strcoll_works=no
30068 fi
30069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30070 fi
30071
30072
30073 fi
30074 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
30075 $as_echo "$ac_cv_func_strcoll_works" >&6; }
30076 if test $ac_cv_func_strcoll_works = yes; then
30077
30078 cat >>confdefs.h <<\_ACEOF
30079 #define HAVE_STRCOLL 1
30080 _ACEOF
30081
30082 fi
30083
30084
30085
30086
30087 for ac_func in memcpy
30088 do
30089 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30090 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30091 $as_echo_n "checking for $ac_func... " >&6; }
30092 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30093   $as_echo_n "(cached) " >&6
30094 else
30095   cat >conftest.$ac_ext <<_ACEOF
30096 /* confdefs.h.  */
30097 _ACEOF
30098 cat confdefs.h >>conftest.$ac_ext
30099 cat >>conftest.$ac_ext <<_ACEOF
30100 /* end confdefs.h.  */
30101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30102    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30103 #define $ac_func innocuous_$ac_func
30104
30105 /* System header to define __stub macros and hopefully few prototypes,
30106     which can conflict with char $ac_func (); below.
30107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30108     <limits.h> exists even on freestanding compilers.  */
30109
30110 #ifdef __STDC__
30111 # include <limits.h>
30112 #else
30113 # include <assert.h>
30114 #endif
30115
30116 #undef $ac_func
30117
30118 /* Override any GCC internal prototype to avoid an error.
30119    Use char because int might match the return type of a GCC
30120    builtin and then its argument prototype would still apply.  */
30121 #ifdef __cplusplus
30122 extern "C"
30123 #endif
30124 char $ac_func ();
30125 /* The GNU C library defines this for functions which it implements
30126     to always fail with ENOSYS.  Some functions are actually named
30127     something starting with __ and the normal name is an alias.  */
30128 #if defined __stub_$ac_func || defined __stub___$ac_func
30129 choke me
30130 #endif
30131
30132 int
30133 main ()
30134 {
30135 return $ac_func ();
30136   ;
30137   return 0;
30138 }
30139 _ACEOF
30140 rm -f conftest.$ac_objext conftest$ac_exeext
30141 if { (ac_try="$ac_link"
30142 case "(($ac_try" in
30143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30144   *) ac_try_echo=$ac_try;;
30145 esac
30146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30147 $as_echo "$ac_try_echo") >&5
30148   (eval "$ac_link") 2>conftest.er1
30149   ac_status=$?
30150   grep -v '^ *+' conftest.er1 >conftest.err
30151   rm -f conftest.er1
30152   cat conftest.err >&5
30153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30154   (exit $ac_status); } && {
30155          test -z "$ac_c_werror_flag" ||
30156          test ! -s conftest.err
30157        } && test -s conftest$ac_exeext &&
30158        $as_test_x conftest$ac_exeext; then
30159   eval "$as_ac_var=yes"
30160 else
30161   $as_echo "$as_me: failed program was:" >&5
30162 sed 's/^/| /' conftest.$ac_ext >&5
30163
30164         eval "$as_ac_var=no"
30165 fi
30166
30167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30168       conftest$ac_exeext conftest.$ac_ext
30169 fi
30170 ac_res=`eval 'as_val=${'$as_ac_var'}
30171                  $as_echo "$as_val"'`
30172                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30173 $as_echo "$ac_res" >&6; }
30174 if test `eval 'as_val=${'$as_ac_var'}
30175                  $as_echo "$as_val"'` = yes; then
30176   cat >>confdefs.h <<_ACEOF
30177 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30178 _ACEOF
30179
30180 else
30181   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30182 fi
30183 done
30184
30185   if test $ac_cv_func_memcpy = no; then
30186
30187   :
30188
30189   fi
30190
30191
30192
30193 for ac_func in memmove
30194 do
30195 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30196 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30197 $as_echo_n "checking for $ac_func... " >&6; }
30198 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30199   $as_echo_n "(cached) " >&6
30200 else
30201   cat >conftest.$ac_ext <<_ACEOF
30202 /* confdefs.h.  */
30203 _ACEOF
30204 cat confdefs.h >>conftest.$ac_ext
30205 cat >>conftest.$ac_ext <<_ACEOF
30206 /* end confdefs.h.  */
30207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30208    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30209 #define $ac_func innocuous_$ac_func
30210
30211 /* System header to define __stub macros and hopefully few prototypes,
30212     which can conflict with char $ac_func (); below.
30213     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30214     <limits.h> exists even on freestanding compilers.  */
30215
30216 #ifdef __STDC__
30217 # include <limits.h>
30218 #else
30219 # include <assert.h>
30220 #endif
30221
30222 #undef $ac_func
30223
30224 /* Override any GCC internal prototype to avoid an error.
30225    Use char because int might match the return type of a GCC
30226    builtin and then its argument prototype would still apply.  */
30227 #ifdef __cplusplus
30228 extern "C"
30229 #endif
30230 char $ac_func ();
30231 /* The GNU C library defines this for functions which it implements
30232     to always fail with ENOSYS.  Some functions are actually named
30233     something starting with __ and the normal name is an alias.  */
30234 #if defined __stub_$ac_func || defined __stub___$ac_func
30235 choke me
30236 #endif
30237
30238 int
30239 main ()
30240 {
30241 return $ac_func ();
30242   ;
30243   return 0;
30244 }
30245 _ACEOF
30246 rm -f conftest.$ac_objext conftest$ac_exeext
30247 if { (ac_try="$ac_link"
30248 case "(($ac_try" in
30249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30250   *) ac_try_echo=$ac_try;;
30251 esac
30252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30253 $as_echo "$ac_try_echo") >&5
30254   (eval "$ac_link") 2>conftest.er1
30255   ac_status=$?
30256   grep -v '^ *+' conftest.er1 >conftest.err
30257   rm -f conftest.er1
30258   cat conftest.err >&5
30259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260   (exit $ac_status); } && {
30261          test -z "$ac_c_werror_flag" ||
30262          test ! -s conftest.err
30263        } && test -s conftest$ac_exeext &&
30264        $as_test_x conftest$ac_exeext; then
30265   eval "$as_ac_var=yes"
30266 else
30267   $as_echo "$as_me: failed program was:" >&5
30268 sed 's/^/| /' conftest.$ac_ext >&5
30269
30270         eval "$as_ac_var=no"
30271 fi
30272
30273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30274       conftest$ac_exeext conftest.$ac_ext
30275 fi
30276 ac_res=`eval 'as_val=${'$as_ac_var'}
30277                  $as_echo "$as_val"'`
30278                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30279 $as_echo "$ac_res" >&6; }
30280 if test `eval 'as_val=${'$as_ac_var'}
30281                  $as_echo "$as_val"'` = yes; then
30282   cat >>confdefs.h <<_ACEOF
30283 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30284 _ACEOF
30285
30286 else
30287   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30288 fi
30289 done
30290
30291   if test $ac_cv_func_memmove = no; then
30292
30293   :
30294
30295   fi
30296
30297
30298
30299
30300
30301
30302
30303
30304 for ac_func in mempcpy
30305 do
30306 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30307 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30308 $as_echo_n "checking for $ac_func... " >&6; }
30309 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30310   $as_echo_n "(cached) " >&6
30311 else
30312   cat >conftest.$ac_ext <<_ACEOF
30313 /* confdefs.h.  */
30314 _ACEOF
30315 cat confdefs.h >>conftest.$ac_ext
30316 cat >>conftest.$ac_ext <<_ACEOF
30317 /* end confdefs.h.  */
30318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30319    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30320 #define $ac_func innocuous_$ac_func
30321
30322 /* System header to define __stub macros and hopefully few prototypes,
30323     which can conflict with char $ac_func (); below.
30324     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30325     <limits.h> exists even on freestanding compilers.  */
30326
30327 #ifdef __STDC__
30328 # include <limits.h>
30329 #else
30330 # include <assert.h>
30331 #endif
30332
30333 #undef $ac_func
30334
30335 /* Override any GCC internal prototype to avoid an error.
30336    Use char because int might match the return type of a GCC
30337    builtin and then its argument prototype would still apply.  */
30338 #ifdef __cplusplus
30339 extern "C"
30340 #endif
30341 char $ac_func ();
30342 /* The GNU C library defines this for functions which it implements
30343     to always fail with ENOSYS.  Some functions are actually named
30344     something starting with __ and the normal name is an alias.  */
30345 #if defined __stub_$ac_func || defined __stub___$ac_func
30346 choke me
30347 #endif
30348
30349 int
30350 main ()
30351 {
30352 return $ac_func ();
30353   ;
30354   return 0;
30355 }
30356 _ACEOF
30357 rm -f conftest.$ac_objext conftest$ac_exeext
30358 if { (ac_try="$ac_link"
30359 case "(($ac_try" in
30360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30361   *) ac_try_echo=$ac_try;;
30362 esac
30363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30364 $as_echo "$ac_try_echo") >&5
30365   (eval "$ac_link") 2>conftest.er1
30366   ac_status=$?
30367   grep -v '^ *+' conftest.er1 >conftest.err
30368   rm -f conftest.er1
30369   cat conftest.err >&5
30370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371   (exit $ac_status); } && {
30372          test -z "$ac_c_werror_flag" ||
30373          test ! -s conftest.err
30374        } && test -s conftest$ac_exeext &&
30375        $as_test_x conftest$ac_exeext; then
30376   eval "$as_ac_var=yes"
30377 else
30378   $as_echo "$as_me: failed program was:" >&5
30379 sed 's/^/| /' conftest.$ac_ext >&5
30380
30381         eval "$as_ac_var=no"
30382 fi
30383
30384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30385       conftest$ac_exeext conftest.$ac_ext
30386 fi
30387 ac_res=`eval 'as_val=${'$as_ac_var'}
30388                  $as_echo "$as_val"'`
30389                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30390 $as_echo "$ac_res" >&6; }
30391 if test `eval 'as_val=${'$as_ac_var'}
30392                  $as_echo "$as_val"'` = yes; then
30393   cat >>confdefs.h <<_ACEOF
30394 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30395 _ACEOF
30396
30397 else
30398   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30399 fi
30400 done
30401
30402   if test $ac_cv_func_mempcpy = no; then
30403     HAVE_MEMPCPY=0
30404
30405   :
30406
30407   fi
30408
30409
30410
30411   GNULIB_MEMPCPY=1
30412
30413
30414
30415
30416
30417
30418
30419
30420
30421   if test $ac_cv_have_decl_memrchr = no; then
30422     HAVE_DECL_MEMRCHR=0
30423   fi
30424
30425
30426 for ac_func in memrchr
30427 do
30428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30429 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30430 $as_echo_n "checking for $ac_func... " >&6; }
30431 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30432   $as_echo_n "(cached) " >&6
30433 else
30434   cat >conftest.$ac_ext <<_ACEOF
30435 /* confdefs.h.  */
30436 _ACEOF
30437 cat confdefs.h >>conftest.$ac_ext
30438 cat >>conftest.$ac_ext <<_ACEOF
30439 /* end confdefs.h.  */
30440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30441    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30442 #define $ac_func innocuous_$ac_func
30443
30444 /* System header to define __stub macros and hopefully few prototypes,
30445     which can conflict with char $ac_func (); below.
30446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30447     <limits.h> exists even on freestanding compilers.  */
30448
30449 #ifdef __STDC__
30450 # include <limits.h>
30451 #else
30452 # include <assert.h>
30453 #endif
30454
30455 #undef $ac_func
30456
30457 /* Override any GCC internal prototype to avoid an error.
30458    Use char because int might match the return type of a GCC
30459    builtin and then its argument prototype would still apply.  */
30460 #ifdef __cplusplus
30461 extern "C"
30462 #endif
30463 char $ac_func ();
30464 /* The GNU C library defines this for functions which it implements
30465     to always fail with ENOSYS.  Some functions are actually named
30466     something starting with __ and the normal name is an alias.  */
30467 #if defined __stub_$ac_func || defined __stub___$ac_func
30468 choke me
30469 #endif
30470
30471 int
30472 main ()
30473 {
30474 return $ac_func ();
30475   ;
30476   return 0;
30477 }
30478 _ACEOF
30479 rm -f conftest.$ac_objext conftest$ac_exeext
30480 if { (ac_try="$ac_link"
30481 case "(($ac_try" in
30482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30483   *) ac_try_echo=$ac_try;;
30484 esac
30485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30486 $as_echo "$ac_try_echo") >&5
30487   (eval "$ac_link") 2>conftest.er1
30488   ac_status=$?
30489   grep -v '^ *+' conftest.er1 >conftest.err
30490   rm -f conftest.er1
30491   cat conftest.err >&5
30492   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30493   (exit $ac_status); } && {
30494          test -z "$ac_c_werror_flag" ||
30495          test ! -s conftest.err
30496        } && test -s conftest$ac_exeext &&
30497        $as_test_x conftest$ac_exeext; then
30498   eval "$as_ac_var=yes"
30499 else
30500   $as_echo "$as_me: failed program was:" >&5
30501 sed 's/^/| /' conftest.$ac_ext >&5
30502
30503         eval "$as_ac_var=no"
30504 fi
30505
30506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30507       conftest$ac_exeext conftest.$ac_ext
30508 fi
30509 ac_res=`eval 'as_val=${'$as_ac_var'}
30510                  $as_echo "$as_val"'`
30511                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30512 $as_echo "$ac_res" >&6; }
30513 if test `eval 'as_val=${'$as_ac_var'}
30514                  $as_echo "$as_val"'` = yes; then
30515   cat >>confdefs.h <<_ACEOF
30516 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30517 _ACEOF
30518
30519 else
30520   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30521 fi
30522 done
30523
30524   if test $ac_cv_func_memrchr = no; then
30525     :
30526   fi
30527
30528
30529
30530   GNULIB_MEMRCHR=1
30531
30532
30533
30534 for ac_func in memset
30535 do
30536 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30537 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30538 $as_echo_n "checking for $ac_func... " >&6; }
30539 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30540   $as_echo_n "(cached) " >&6
30541 else
30542   cat >conftest.$ac_ext <<_ACEOF
30543 /* confdefs.h.  */
30544 _ACEOF
30545 cat confdefs.h >>conftest.$ac_ext
30546 cat >>conftest.$ac_ext <<_ACEOF
30547 /* end confdefs.h.  */
30548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30549    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30550 #define $ac_func innocuous_$ac_func
30551
30552 /* System header to define __stub macros and hopefully few prototypes,
30553     which can conflict with char $ac_func (); below.
30554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30555     <limits.h> exists even on freestanding compilers.  */
30556
30557 #ifdef __STDC__
30558 # include <limits.h>
30559 #else
30560 # include <assert.h>
30561 #endif
30562
30563 #undef $ac_func
30564
30565 /* Override any GCC internal prototype to avoid an error.
30566    Use char because int might match the return type of a GCC
30567    builtin and then its argument prototype would still apply.  */
30568 #ifdef __cplusplus
30569 extern "C"
30570 #endif
30571 char $ac_func ();
30572 /* The GNU C library defines this for functions which it implements
30573     to always fail with ENOSYS.  Some functions are actually named
30574     something starting with __ and the normal name is an alias.  */
30575 #if defined __stub_$ac_func || defined __stub___$ac_func
30576 choke me
30577 #endif
30578
30579 int
30580 main ()
30581 {
30582 return $ac_func ();
30583   ;
30584   return 0;
30585 }
30586 _ACEOF
30587 rm -f conftest.$ac_objext conftest$ac_exeext
30588 if { (ac_try="$ac_link"
30589 case "(($ac_try" in
30590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30591   *) ac_try_echo=$ac_try;;
30592 esac
30593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30594 $as_echo "$ac_try_echo") >&5
30595   (eval "$ac_link") 2>conftest.er1
30596   ac_status=$?
30597   grep -v '^ *+' conftest.er1 >conftest.err
30598   rm -f conftest.er1
30599   cat conftest.err >&5
30600   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30601   (exit $ac_status); } && {
30602          test -z "$ac_c_werror_flag" ||
30603          test ! -s conftest.err
30604        } && test -s conftest$ac_exeext &&
30605        $as_test_x conftest$ac_exeext; then
30606   eval "$as_ac_var=yes"
30607 else
30608   $as_echo "$as_me: failed program was:" >&5
30609 sed 's/^/| /' conftest.$ac_ext >&5
30610
30611         eval "$as_ac_var=no"
30612 fi
30613
30614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30615       conftest$ac_exeext conftest.$ac_ext
30616 fi
30617 ac_res=`eval 'as_val=${'$as_ac_var'}
30618                  $as_echo "$as_val"'`
30619                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30620 $as_echo "$ac_res" >&6; }
30621 if test `eval 'as_val=${'$as_ac_var'}
30622                  $as_echo "$as_val"'` = yes; then
30623   cat >>confdefs.h <<_ACEOF
30624 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30625 _ACEOF
30626
30627 else
30628   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30629 fi
30630 done
30631
30632   if test $ac_cv_func_memset = no; then
30633
30634   :
30635
30636   fi
30637
30638
30639   gl_LIBOBJS="$gl_LIBOBJS mkancesdirs.$ac_objext"
30640
30641
30642
30643
30644
30645
30646
30647   { $as_echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
30648 $as_echo_n "checking whether mkdir fails due to a trailing slash... " >&6; }
30649 if test "${gl_cv_func_mkdir_trailing_slash_bug+set}" = set; then
30650   $as_echo_n "(cached) " >&6
30651 else
30652
30653       # Arrange for deletion of the temporary directory this test might create.
30654       ac_clean_files="$ac_clean_files confdir-slash"
30655       if test "$cross_compiling" = yes; then
30656   gl_cv_func_mkdir_trailing_slash_bug=yes
30657
30658 else
30659   cat >conftest.$ac_ext <<_ACEOF
30660 /* confdefs.h.  */
30661 _ACEOF
30662 cat confdefs.h >>conftest.$ac_ext
30663 cat >>conftest.$ac_ext <<_ACEOF
30664 /* end confdefs.h.  */
30665
30666 #       include <sys/types.h>
30667 #       include <sys/stat.h>
30668 #       include <stdlib.h>
30669 #       ifdef HAVE_UNISTD_H
30670 #         include <unistd.h>
30671 #       endif
30672         int main ()
30673         {
30674           rmdir ("confdir-slash");
30675           exit (mkdir ("confdir-slash/", 0700));
30676         }
30677
30678 _ACEOF
30679 rm -f conftest$ac_exeext
30680 if { (ac_try="$ac_link"
30681 case "(($ac_try" in
30682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30683   *) ac_try_echo=$ac_try;;
30684 esac
30685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30686 $as_echo "$ac_try_echo") >&5
30687   (eval "$ac_link") 2>&5
30688   ac_status=$?
30689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30690   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30691   { (case "(($ac_try" in
30692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30693   *) ac_try_echo=$ac_try;;
30694 esac
30695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30696 $as_echo "$ac_try_echo") >&5
30697   (eval "$ac_try") 2>&5
30698   ac_status=$?
30699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30700   (exit $ac_status); }; }; then
30701   gl_cv_func_mkdir_trailing_slash_bug=no
30702 else
30703   $as_echo "$as_me: program exited with status $ac_status" >&5
30704 $as_echo "$as_me: failed program was:" >&5
30705 sed 's/^/| /' conftest.$ac_ext >&5
30706
30707 ( exit $ac_status )
30708 gl_cv_func_mkdir_trailing_slash_bug=yes
30709 fi
30710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30711 fi
30712
30713
30714
30715
30716 fi
30717 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mkdir_trailing_slash_bug" >&5
30718 $as_echo "$gl_cv_func_mkdir_trailing_slash_bug" >&6; }
30719
30720   if test $gl_cv_func_mkdir_trailing_slash_bug = yes; then
30721     gl_LIBOBJS="$gl_LIBOBJS mkdir.$ac_objext"
30722
30723 cat >>confdefs.h <<\_ACEOF
30724 #define mkdir rpl_mkdir
30725 _ACEOF
30726
30727     :
30728   fi
30729
30730
30731   gl_LIBOBJS="$gl_LIBOBJS dirchownmod.$ac_objext"
30732   gl_LIBOBJS="$gl_LIBOBJS mkdir-p.$ac_objext"
30733
30734
30735
30736
30737
30738
30739
30740
30741
30742
30743
30744
30745
30746
30747   { $as_echo "$as_me:$LINENO: checking for working mkstemp" >&5
30748 $as_echo_n "checking for working mkstemp... " >&6; }
30749 if test "${gl_cv_func_working_mkstemp+set}" = set; then
30750   $as_echo_n "(cached) " >&6
30751 else
30752
30753       mkdir conftest.mkstemp
30754       if test "$cross_compiling" = yes; then
30755   gl_cv_func_working_mkstemp=no
30756 else
30757   cat >conftest.$ac_ext <<_ACEOF
30758 /* confdefs.h.  */
30759 _ACEOF
30760 cat confdefs.h >>conftest.$ac_ext
30761 cat >>conftest.$ac_ext <<_ACEOF
30762 /* end confdefs.h.  */
30763 $ac_includes_default
30764 int
30765 main ()
30766 {
30767 int i;
30768             off_t large = (off_t) 4294967295u;
30769             if (large < 0)
30770               large = 2147483647;
30771             for (i = 0; i < 70; i++)
30772               {
30773                 char templ[] = "conftest.mkstemp/coXXXXXX";
30774                 int (*mkstemp_function) (char *) = mkstemp;
30775                 int fd = mkstemp_function (templ);
30776                 if (fd < 0 || lseek (fd, large, SEEK_SET) != large)
30777                   return 1;
30778                 close (fd);
30779               }
30780             return 0;
30781   ;
30782   return 0;
30783 }
30784 _ACEOF
30785 rm -f conftest$ac_exeext
30786 if { (ac_try="$ac_link"
30787 case "(($ac_try" in
30788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30789   *) ac_try_echo=$ac_try;;
30790 esac
30791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30792 $as_echo "$ac_try_echo") >&5
30793   (eval "$ac_link") 2>&5
30794   ac_status=$?
30795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30796   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30797   { (case "(($ac_try" in
30798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30799   *) ac_try_echo=$ac_try;;
30800 esac
30801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30802 $as_echo "$ac_try_echo") >&5
30803   (eval "$ac_try") 2>&5
30804   ac_status=$?
30805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30806   (exit $ac_status); }; }; then
30807   gl_cv_func_working_mkstemp=yes
30808 else
30809   $as_echo "$as_me: program exited with status $ac_status" >&5
30810 $as_echo "$as_me: failed program was:" >&5
30811 sed 's/^/| /' conftest.$ac_ext >&5
30812
30813 ( exit $ac_status )
30814 gl_cv_func_working_mkstemp=no
30815 fi
30816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30817 fi
30818
30819
30820       rm -rf conftest.mkstemp
30821
30822 fi
30823 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_mkstemp" >&5
30824 $as_echo "$gl_cv_func_working_mkstemp" >&6; }
30825
30826   if test $gl_cv_func_working_mkstemp != yes; then
30827     REPLACE_MKSTEMP=1
30828     gl_LIBOBJS="$gl_LIBOBJS mkstemp.$ac_objext"
30829
30830
30831   fi
30832
30833
30834
30835   GNULIB_MKSTEMP=1
30836
30837
30838
30839
30840
30841
30842
30843
30844
30845
30846
30847
30848
30849
30850 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
30851 $as_echo_n "checking for working mktime... " >&6; }
30852 if test "${ac_cv_func_working_mktime+set}" = set; then
30853   $as_echo_n "(cached) " >&6
30854 else
30855   if test "$cross_compiling" = yes; then
30856   ac_cv_func_working_mktime=no
30857 else
30858   cat >conftest.$ac_ext <<_ACEOF
30859 /* confdefs.h.  */
30860 _ACEOF
30861 cat confdefs.h >>conftest.$ac_ext
30862 cat >>conftest.$ac_ext <<_ACEOF
30863 /* end confdefs.h.  */
30864 /* Test program from Paul Eggert and Tony Leneis.  */
30865 #include <limits.h>
30866 #include <stdlib.h>
30867 #include <time.h>
30868
30869 #ifdef HAVE_UNISTD_H
30870 # include <unistd.h>
30871 #endif
30872
30873 #ifndef HAVE_ALARM
30874 # define alarm(X) /* empty */
30875 #endif
30876
30877 /* Work around redefinition to rpl_putenv by other config tests.  */
30878 #undef putenv
30879
30880 static time_t time_t_max;
30881 static time_t time_t_min;
30882
30883 /* Values we'll use to set the TZ environment variable.  */
30884 static char *tz_strings[] = {
30885   (char *) 0, "TZ=GMT0", "TZ=JST-9",
30886   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
30887 };
30888 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
30889
30890 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
30891    Based on a problem report from Andreas Jaeger.  */
30892 static int
30893 spring_forward_gap ()
30894 {
30895   /* glibc (up to about 1998-10-07) failed this test. */
30896   struct tm tm;
30897
30898   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
30899      instead of "TZ=America/Vancouver" in order to detect the bug even
30900      on systems that don't support the Olson extension, or don't have the
30901      full zoneinfo tables installed.  */
30902   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
30903
30904   tm.tm_year = 98;
30905   tm.tm_mon = 3;
30906   tm.tm_mday = 5;
30907   tm.tm_hour = 2;
30908   tm.tm_min = 0;
30909   tm.tm_sec = 0;
30910   tm.tm_isdst = -1;
30911   return mktime (&tm) != (time_t) -1;
30912 }
30913
30914 static int
30915 mktime_test1 (now)
30916      time_t now;
30917 {
30918   struct tm *lt;
30919   return ! (lt = localtime (&now)) || mktime (lt) == now;
30920 }
30921
30922 static int
30923 mktime_test (now)
30924      time_t now;
30925 {
30926   return (mktime_test1 (now)
30927           && mktime_test1 ((time_t) (time_t_max - now))
30928           && mktime_test1 ((time_t) (time_t_min + now)));
30929 }
30930
30931 static int
30932 irix_6_4_bug ()
30933 {
30934   /* Based on code from Ariel Faigon.  */
30935   struct tm tm;
30936   tm.tm_year = 96;
30937   tm.tm_mon = 3;
30938   tm.tm_mday = 0;
30939   tm.tm_hour = 0;
30940   tm.tm_min = 0;
30941   tm.tm_sec = 0;
30942   tm.tm_isdst = -1;
30943   mktime (&tm);
30944   return tm.tm_mon == 2 && tm.tm_mday == 31;
30945 }
30946
30947 static int
30948 bigtime_test (j)
30949      int j;
30950 {
30951   struct tm tm;
30952   time_t now;
30953   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
30954   now = mktime (&tm);
30955   if (now != (time_t) -1)
30956     {
30957       struct tm *lt = localtime (&now);
30958       if (! (lt
30959              && lt->tm_year == tm.tm_year
30960              && lt->tm_mon == tm.tm_mon
30961              && lt->tm_mday == tm.tm_mday
30962              && lt->tm_hour == tm.tm_hour
30963              && lt->tm_min == tm.tm_min
30964              && lt->tm_sec == tm.tm_sec
30965              && lt->tm_yday == tm.tm_yday
30966              && lt->tm_wday == tm.tm_wday
30967              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
30968                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
30969         return 0;
30970     }
30971   return 1;
30972 }
30973
30974 static int
30975 year_2050_test ()
30976 {
30977   /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
30978      ignoring leap seconds.  */
30979   unsigned long int answer = 2527315200UL;
30980
30981   struct tm tm;
30982   time_t t;
30983   tm.tm_year = 2050 - 1900;
30984   tm.tm_mon = 2 - 1;
30985   tm.tm_mday = 1;
30986   tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
30987   tm.tm_isdst = -1;
30988
30989   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
30990      instead of "TZ=America/Vancouver" in order to detect the bug even
30991      on systems that don't support the Olson extension, or don't have the
30992      full zoneinfo tables installed.  */
30993   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
30994
30995   t = mktime (&tm);
30996
30997   /* Check that the result is either a failure, or close enough
30998      to the correct answer that we can assume the discrepancy is
30999      due to leap seconds.  */
31000   return (t == (time_t) -1
31001           || (0 < t && answer - 120 <= t && t <= answer + 120));
31002 }
31003
31004 int
31005 main ()
31006 {
31007   time_t t, delta;
31008   int i, j;
31009
31010   /* This test makes some buggy mktime implementations loop.
31011      Give up after 60 seconds; a mktime slower than that
31012      isn't worth using anyway.  */
31013   alarm (60);
31014
31015   for (;;)
31016     {
31017       t = (time_t_max << 1) + 1;
31018       if (t <= time_t_max)
31019         break;
31020       time_t_max = t;
31021     }
31022   time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
31023
31024   delta = time_t_max / 997; /* a suitable prime number */
31025   for (i = 0; i < N_STRINGS; i++)
31026     {
31027       if (tz_strings[i])
31028         putenv (tz_strings[i]);
31029
31030       for (t = 0; t <= time_t_max - delta; t += delta)
31031         if (! mktime_test (t))
31032           return 1;
31033       if (! (mktime_test ((time_t) 1)
31034              && mktime_test ((time_t) (60 * 60))
31035              && mktime_test ((time_t) (60 * 60 * 24))))
31036         return 1;
31037
31038       for (j = 1; ; j <<= 1)
31039         if (! bigtime_test (j))
31040           return 1;
31041         else if (INT_MAX / 2 < j)
31042           break;
31043       if (! bigtime_test (INT_MAX))
31044         return 1;
31045     }
31046   return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
31047 }
31048 _ACEOF
31049 rm -f conftest$ac_exeext
31050 if { (ac_try="$ac_link"
31051 case "(($ac_try" in
31052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31053   *) ac_try_echo=$ac_try;;
31054 esac
31055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31056 $as_echo "$ac_try_echo") >&5
31057   (eval "$ac_link") 2>&5
31058   ac_status=$?
31059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31060   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31061   { (case "(($ac_try" in
31062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31063   *) ac_try_echo=$ac_try;;
31064 esac
31065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31066 $as_echo "$ac_try_echo") >&5
31067   (eval "$ac_try") 2>&5
31068   ac_status=$?
31069   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070   (exit $ac_status); }; }; then
31071   ac_cv_func_working_mktime=yes
31072 else
31073   $as_echo "$as_me: program exited with status $ac_status" >&5
31074 $as_echo "$as_me: failed program was:" >&5
31075 sed 's/^/| /' conftest.$ac_ext >&5
31076
31077 ( exit $ac_status )
31078 ac_cv_func_working_mktime=no
31079 fi
31080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31081 fi
31082
31083
31084 fi
31085 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
31086 $as_echo "$ac_cv_func_working_mktime" >&6; }
31087 if test $ac_cv_func_working_mktime = no; then
31088   gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
31089 fi
31090
31091     if test $ac_cv_func_working_mktime = no; then
31092
31093 cat >>confdefs.h <<\_ACEOF
31094 #define mktime rpl_mktime
31095 _ACEOF
31096
31097
31098
31099
31100   fi
31101
31102
31103   gl_LIBOBJS="$gl_LIBOBJS modechange.$ac_objext"
31104
31105
31106
31107
31108
31109 for ac_func in listmntent getmntinfo
31110 do
31111 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31112 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31113 $as_echo_n "checking for $ac_func... " >&6; }
31114 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31115   $as_echo_n "(cached) " >&6
31116 else
31117   cat >conftest.$ac_ext <<_ACEOF
31118 /* confdefs.h.  */
31119 _ACEOF
31120 cat confdefs.h >>conftest.$ac_ext
31121 cat >>conftest.$ac_ext <<_ACEOF
31122 /* end confdefs.h.  */
31123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31125 #define $ac_func innocuous_$ac_func
31126
31127 /* System header to define __stub macros and hopefully few prototypes,
31128     which can conflict with char $ac_func (); below.
31129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31130     <limits.h> exists even on freestanding compilers.  */
31131
31132 #ifdef __STDC__
31133 # include <limits.h>
31134 #else
31135 # include <assert.h>
31136 #endif
31137
31138 #undef $ac_func
31139
31140 /* Override any GCC internal prototype to avoid an error.
31141    Use char because int might match the return type of a GCC
31142    builtin and then its argument prototype would still apply.  */
31143 #ifdef __cplusplus
31144 extern "C"
31145 #endif
31146 char $ac_func ();
31147 /* The GNU C library defines this for functions which it implements
31148     to always fail with ENOSYS.  Some functions are actually named
31149     something starting with __ and the normal name is an alias.  */
31150 #if defined __stub_$ac_func || defined __stub___$ac_func
31151 choke me
31152 #endif
31153
31154 int
31155 main ()
31156 {
31157 return $ac_func ();
31158   ;
31159   return 0;
31160 }
31161 _ACEOF
31162 rm -f conftest.$ac_objext conftest$ac_exeext
31163 if { (ac_try="$ac_link"
31164 case "(($ac_try" in
31165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31166   *) ac_try_echo=$ac_try;;
31167 esac
31168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31169 $as_echo "$ac_try_echo") >&5
31170   (eval "$ac_link") 2>conftest.er1
31171   ac_status=$?
31172   grep -v '^ *+' conftest.er1 >conftest.err
31173   rm -f conftest.er1
31174   cat conftest.err >&5
31175   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31176   (exit $ac_status); } && {
31177          test -z "$ac_c_werror_flag" ||
31178          test ! -s conftest.err
31179        } && test -s conftest$ac_exeext &&
31180        $as_test_x conftest$ac_exeext; then
31181   eval "$as_ac_var=yes"
31182 else
31183   $as_echo "$as_me: failed program was:" >&5
31184 sed 's/^/| /' conftest.$ac_ext >&5
31185
31186         eval "$as_ac_var=no"
31187 fi
31188
31189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31190       conftest$ac_exeext conftest.$ac_ext
31191 fi
31192 ac_res=`eval 'as_val=${'$as_ac_var'}
31193                  $as_echo "$as_val"'`
31194                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31195 $as_echo "$ac_res" >&6; }
31196 if test `eval 'as_val=${'$as_ac_var'}
31197                  $as_echo "$as_val"'` = yes; then
31198   cat >>confdefs.h <<_ACEOF
31199 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31200 _ACEOF
31201
31202 fi
31203 done
31204
31205
31206
31207
31208
31209
31210
31211
31212
31213
31214 # We must include grp.h before ucred.h on OSF V4.0, since ucred.h uses
31215 # NGROUPS (as the array dimension for a struct member) without a definition.
31216
31217 for ac_header in sys/ucred.h
31218 do
31219 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31220 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31221 $as_echo_n "checking for $ac_header... " >&6; }
31222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31223   $as_echo_n "(cached) " >&6
31224 else
31225   cat >conftest.$ac_ext <<_ACEOF
31226 /* confdefs.h.  */
31227 _ACEOF
31228 cat confdefs.h >>conftest.$ac_ext
31229 cat >>conftest.$ac_ext <<_ACEOF
31230 /* end confdefs.h.  */
31231 #include <grp.h>
31232
31233 #include <$ac_header>
31234 _ACEOF
31235 rm -f conftest.$ac_objext
31236 if { (ac_try="$ac_compile"
31237 case "(($ac_try" in
31238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31239   *) ac_try_echo=$ac_try;;
31240 esac
31241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31242 $as_echo "$ac_try_echo") >&5
31243   (eval "$ac_compile") 2>conftest.er1
31244   ac_status=$?
31245   grep -v '^ *+' conftest.er1 >conftest.err
31246   rm -f conftest.er1
31247   cat conftest.err >&5
31248   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31249   (exit $ac_status); } && {
31250          test -z "$ac_c_werror_flag" ||
31251          test ! -s conftest.err
31252        } && test -s conftest.$ac_objext; then
31253   eval "$as_ac_Header=yes"
31254 else
31255   $as_echo "$as_me: failed program was:" >&5
31256 sed 's/^/| /' conftest.$ac_ext >&5
31257
31258         eval "$as_ac_Header=no"
31259 fi
31260
31261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31262 fi
31263 ac_res=`eval 'as_val=${'$as_ac_Header'}
31264                  $as_echo "$as_val"'`
31265                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31266 $as_echo "$ac_res" >&6; }
31267 if test `eval 'as_val=${'$as_ac_Header'}
31268                  $as_echo "$as_val"'` = yes; then
31269   cat >>confdefs.h <<_ACEOF
31270 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31271 _ACEOF
31272
31273 fi
31274
31275 done
31276
31277
31278
31279 for ac_header in sys/mount.h
31280 do
31281 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31282 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31283 $as_echo_n "checking for $ac_header... " >&6; }
31284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31285   $as_echo_n "(cached) " >&6
31286 else
31287   cat >conftest.$ac_ext <<_ACEOF
31288 /* confdefs.h.  */
31289 _ACEOF
31290 cat confdefs.h >>conftest.$ac_ext
31291 cat >>conftest.$ac_ext <<_ACEOF
31292 /* end confdefs.h.  */
31293 $ac_includes_default
31294    #if HAVE_SYS_PARAM_H
31295      #include <sys/param.h>
31296     #endif
31297
31298 #include <$ac_header>
31299 _ACEOF
31300 rm -f conftest.$ac_objext
31301 if { (ac_try="$ac_compile"
31302 case "(($ac_try" in
31303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31304   *) ac_try_echo=$ac_try;;
31305 esac
31306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31307 $as_echo "$ac_try_echo") >&5
31308   (eval "$ac_compile") 2>conftest.er1
31309   ac_status=$?
31310   grep -v '^ *+' conftest.er1 >conftest.err
31311   rm -f conftest.er1
31312   cat conftest.err >&5
31313   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31314   (exit $ac_status); } && {
31315          test -z "$ac_c_werror_flag" ||
31316          test ! -s conftest.err
31317        } && test -s conftest.$ac_objext; then
31318   eval "$as_ac_Header=yes"
31319 else
31320   $as_echo "$as_me: failed program was:" >&5
31321 sed 's/^/| /' conftest.$ac_ext >&5
31322
31323         eval "$as_ac_Header=no"
31324 fi
31325
31326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31327 fi
31328 ac_res=`eval 'as_val=${'$as_ac_Header'}
31329                  $as_echo "$as_val"'`
31330                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31331 $as_echo "$ac_res" >&6; }
31332 if test `eval 'as_val=${'$as_ac_Header'}
31333                  $as_echo "$as_val"'` = yes; then
31334   cat >>confdefs.h <<_ACEOF
31335 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31336 _ACEOF
31337
31338 fi
31339
31340 done
31341
31342
31343
31344
31345 for ac_header in mntent.h sys/fs_types.h
31346 do
31347 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31349   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31350 $as_echo_n "checking for $ac_header... " >&6; }
31351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31352   $as_echo_n "(cached) " >&6
31353 fi
31354 ac_res=`eval 'as_val=${'$as_ac_Header'}
31355                  $as_echo "$as_val"'`
31356                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31357 $as_echo "$ac_res" >&6; }
31358 else
31359   # Is the header compilable?
31360 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31361 $as_echo_n "checking $ac_header usability... " >&6; }
31362 cat >conftest.$ac_ext <<_ACEOF
31363 /* confdefs.h.  */
31364 _ACEOF
31365 cat confdefs.h >>conftest.$ac_ext
31366 cat >>conftest.$ac_ext <<_ACEOF
31367 /* end confdefs.h.  */
31368 $ac_includes_default
31369 #include <$ac_header>
31370 _ACEOF
31371 rm -f conftest.$ac_objext
31372 if { (ac_try="$ac_compile"
31373 case "(($ac_try" in
31374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31375   *) ac_try_echo=$ac_try;;
31376 esac
31377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31378 $as_echo "$ac_try_echo") >&5
31379   (eval "$ac_compile") 2>conftest.er1
31380   ac_status=$?
31381   grep -v '^ *+' conftest.er1 >conftest.err
31382   rm -f conftest.er1
31383   cat conftest.err >&5
31384   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31385   (exit $ac_status); } && {
31386          test -z "$ac_c_werror_flag" ||
31387          test ! -s conftest.err
31388        } && test -s conftest.$ac_objext; then
31389   ac_header_compiler=yes
31390 else
31391   $as_echo "$as_me: failed program was:" >&5
31392 sed 's/^/| /' conftest.$ac_ext >&5
31393
31394         ac_header_compiler=no
31395 fi
31396
31397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31398 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31399 $as_echo "$ac_header_compiler" >&6; }
31400
31401 # Is the header present?
31402 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31403 $as_echo_n "checking $ac_header presence... " >&6; }
31404 cat >conftest.$ac_ext <<_ACEOF
31405 /* confdefs.h.  */
31406 _ACEOF
31407 cat confdefs.h >>conftest.$ac_ext
31408 cat >>conftest.$ac_ext <<_ACEOF
31409 /* end confdefs.h.  */
31410 #include <$ac_header>
31411 _ACEOF
31412 if { (ac_try="$ac_cpp conftest.$ac_ext"
31413 case "(($ac_try" in
31414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31415   *) ac_try_echo=$ac_try;;
31416 esac
31417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31418 $as_echo "$ac_try_echo") >&5
31419   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31420   ac_status=$?
31421   grep -v '^ *+' conftest.er1 >conftest.err
31422   rm -f conftest.er1
31423   cat conftest.err >&5
31424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31425   (exit $ac_status); } >/dev/null && {
31426          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31427          test ! -s conftest.err
31428        }; then
31429   ac_header_preproc=yes
31430 else
31431   $as_echo "$as_me: failed program was:" >&5
31432 sed 's/^/| /' conftest.$ac_ext >&5
31433
31434   ac_header_preproc=no
31435 fi
31436
31437 rm -f conftest.err conftest.$ac_ext
31438 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31439 $as_echo "$ac_header_preproc" >&6; }
31440
31441 # So?  What about this header?
31442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31443   yes:no: )
31444     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31445 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31446     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31447 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31448     ac_header_preproc=yes
31449     ;;
31450   no:yes:* )
31451     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31452 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31453     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31454 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31455     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31456 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31457     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31458 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31459     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31460 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31461     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31462 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31463     ( cat <<\_ASBOX
31464 ## ------------------------------------ ##
31465 ## Report this to bug-coreutils@gnu.org ##
31466 ## ------------------------------------ ##
31467 _ASBOX
31468      ) | sed "s/^/$as_me: WARNING:     /" >&2
31469     ;;
31470 esac
31471 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31472 $as_echo_n "checking for $ac_header... " >&6; }
31473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31474   $as_echo_n "(cached) " >&6
31475 else
31476   eval "$as_ac_Header=\$ac_header_preproc"
31477 fi
31478 ac_res=`eval 'as_val=${'$as_ac_Header'}
31479                  $as_echo "$as_val"'`
31480                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31481 $as_echo "$ac_res" >&6; }
31482
31483 fi
31484 if test `eval 'as_val=${'$as_ac_Header'}
31485                  $as_echo "$as_val"'` = yes; then
31486   cat >>confdefs.h <<_ACEOF
31487 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31488 _ACEOF
31489
31490 fi
31491
31492 done
31493
31494     getfsstat_includes="\
31495 $ac_includes_default
31496 #if HAVE_SYS_PARAM_H
31497 # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */
31498 #endif
31499 #if HAVE_SYS_UCRED_H
31500 # include <grp.h> /* needed for definition of NGROUPS */
31501 # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
31502 #endif
31503 #if HAVE_SYS_MOUNT_H
31504 # include <sys/mount.h>
31505 #endif
31506 #if HAVE_SYS_FS_TYPES_H
31507 # include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */
31508 #endif
31509 "
31510 { $as_echo "$as_me:$LINENO: checking for struct fsstat.f_fstypename" >&5
31511 $as_echo_n "checking for struct fsstat.f_fstypename... " >&6; }
31512 if test "${ac_cv_member_struct_fsstat_f_fstypename+set}" = set; then
31513   $as_echo_n "(cached) " >&6
31514 else
31515   cat >conftest.$ac_ext <<_ACEOF
31516 /* confdefs.h.  */
31517 _ACEOF
31518 cat confdefs.h >>conftest.$ac_ext
31519 cat >>conftest.$ac_ext <<_ACEOF
31520 /* end confdefs.h.  */
31521 $getfsstat_includes
31522
31523 int
31524 main ()
31525 {
31526 static struct fsstat ac_aggr;
31527 if (ac_aggr.f_fstypename)
31528 return 0;
31529   ;
31530   return 0;
31531 }
31532 _ACEOF
31533 rm -f conftest.$ac_objext
31534 if { (ac_try="$ac_compile"
31535 case "(($ac_try" in
31536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31537   *) ac_try_echo=$ac_try;;
31538 esac
31539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31540 $as_echo "$ac_try_echo") >&5
31541   (eval "$ac_compile") 2>conftest.er1
31542   ac_status=$?
31543   grep -v '^ *+' conftest.er1 >conftest.err
31544   rm -f conftest.er1
31545   cat conftest.err >&5
31546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547   (exit $ac_status); } && {
31548          test -z "$ac_c_werror_flag" ||
31549          test ! -s conftest.err
31550        } && test -s conftest.$ac_objext; then
31551   ac_cv_member_struct_fsstat_f_fstypename=yes
31552 else
31553   $as_echo "$as_me: failed program was:" >&5
31554 sed 's/^/| /' conftest.$ac_ext >&5
31555
31556         cat >conftest.$ac_ext <<_ACEOF
31557 /* confdefs.h.  */
31558 _ACEOF
31559 cat confdefs.h >>conftest.$ac_ext
31560 cat >>conftest.$ac_ext <<_ACEOF
31561 /* end confdefs.h.  */
31562 $getfsstat_includes
31563
31564 int
31565 main ()
31566 {
31567 static struct fsstat ac_aggr;
31568 if (sizeof ac_aggr.f_fstypename)
31569 return 0;
31570   ;
31571   return 0;
31572 }
31573 _ACEOF
31574 rm -f conftest.$ac_objext
31575 if { (ac_try="$ac_compile"
31576 case "(($ac_try" in
31577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31578   *) ac_try_echo=$ac_try;;
31579 esac
31580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31581 $as_echo "$ac_try_echo") >&5
31582   (eval "$ac_compile") 2>conftest.er1
31583   ac_status=$?
31584   grep -v '^ *+' conftest.er1 >conftest.err
31585   rm -f conftest.er1
31586   cat conftest.err >&5
31587   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31588   (exit $ac_status); } && {
31589          test -z "$ac_c_werror_flag" ||
31590          test ! -s conftest.err
31591        } && test -s conftest.$ac_objext; then
31592   ac_cv_member_struct_fsstat_f_fstypename=yes
31593 else
31594   $as_echo "$as_me: failed program was:" >&5
31595 sed 's/^/| /' conftest.$ac_ext >&5
31596
31597         ac_cv_member_struct_fsstat_f_fstypename=no
31598 fi
31599
31600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31601 fi
31602
31603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31604 fi
31605 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_fsstat_f_fstypename" >&5
31606 $as_echo "$ac_cv_member_struct_fsstat_f_fstypename" >&6; }
31607 if test $ac_cv_member_struct_fsstat_f_fstypename = yes; then
31608
31609 cat >>confdefs.h <<_ACEOF
31610 #define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1
31611 _ACEOF
31612
31613
31614 fi
31615
31616
31617 # Determine how to get the list of mounted file systems.
31618 ac_list_mounted_fs=
31619
31620 # If the getmntent function is available but not in the standard library,
31621 # make sure LIBS contains the appropriate -l option.
31622 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
31623 # -lseq on Dynix/PTX, -lgen on Unixware.
31624 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
31625 $as_echo_n "checking for library containing getmntent... " >&6; }
31626 if test "${ac_cv_search_getmntent+set}" = set; then
31627   $as_echo_n "(cached) " >&6
31628 else
31629   ac_func_search_save_LIBS=$LIBS
31630 cat >conftest.$ac_ext <<_ACEOF
31631 /* confdefs.h.  */
31632 _ACEOF
31633 cat confdefs.h >>conftest.$ac_ext
31634 cat >>conftest.$ac_ext <<_ACEOF
31635 /* end confdefs.h.  */
31636
31637 /* Override any GCC internal prototype to avoid an error.
31638    Use char because int might match the return type of a GCC
31639    builtin and then its argument prototype would still apply.  */
31640 #ifdef __cplusplus
31641 extern "C"
31642 #endif
31643 char getmntent ();
31644 int
31645 main ()
31646 {
31647 return getmntent ();
31648   ;
31649   return 0;
31650 }
31651 _ACEOF
31652 for ac_lib in '' sun seq gen; do
31653   if test -z "$ac_lib"; then
31654     ac_res="none required"
31655   else
31656     ac_res=-l$ac_lib
31657     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31658   fi
31659   rm -f conftest.$ac_objext conftest$ac_exeext
31660 if { (ac_try="$ac_link"
31661 case "(($ac_try" in
31662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31663   *) ac_try_echo=$ac_try;;
31664 esac
31665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31666 $as_echo "$ac_try_echo") >&5
31667   (eval "$ac_link") 2>conftest.er1
31668   ac_status=$?
31669   grep -v '^ *+' conftest.er1 >conftest.err
31670   rm -f conftest.er1
31671   cat conftest.err >&5
31672   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673   (exit $ac_status); } && {
31674          test -z "$ac_c_werror_flag" ||
31675          test ! -s conftest.err
31676        } && test -s conftest$ac_exeext &&
31677        $as_test_x conftest$ac_exeext; then
31678   ac_cv_search_getmntent=$ac_res
31679 else
31680   $as_echo "$as_me: failed program was:" >&5
31681 sed 's/^/| /' conftest.$ac_ext >&5
31682
31683
31684 fi
31685
31686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31687       conftest$ac_exeext
31688   if test "${ac_cv_search_getmntent+set}" = set; then
31689   break
31690 fi
31691 done
31692 if test "${ac_cv_search_getmntent+set}" = set; then
31693   :
31694 else
31695   ac_cv_search_getmntent=no
31696 fi
31697 rm conftest.$ac_ext
31698 LIBS=$ac_func_search_save_LIBS
31699 fi
31700 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
31701 $as_echo "$ac_cv_search_getmntent" >&6; }
31702 ac_res=$ac_cv_search_getmntent
31703 if test "$ac_res" != no; then
31704   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31705
31706 fi
31707
31708
31709 for ac_func in getmntent
31710 do
31711 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31712 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31713 $as_echo_n "checking for $ac_func... " >&6; }
31714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31715   $as_echo_n "(cached) " >&6
31716 else
31717   cat >conftest.$ac_ext <<_ACEOF
31718 /* confdefs.h.  */
31719 _ACEOF
31720 cat confdefs.h >>conftest.$ac_ext
31721 cat >>conftest.$ac_ext <<_ACEOF
31722 /* end confdefs.h.  */
31723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31725 #define $ac_func innocuous_$ac_func
31726
31727 /* System header to define __stub macros and hopefully few prototypes,
31728     which can conflict with char $ac_func (); below.
31729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31730     <limits.h> exists even on freestanding compilers.  */
31731
31732 #ifdef __STDC__
31733 # include <limits.h>
31734 #else
31735 # include <assert.h>
31736 #endif
31737
31738 #undef $ac_func
31739
31740 /* Override any GCC internal prototype to avoid an error.
31741    Use char because int might match the return type of a GCC
31742    builtin and then its argument prototype would still apply.  */
31743 #ifdef __cplusplus
31744 extern "C"
31745 #endif
31746 char $ac_func ();
31747 /* The GNU C library defines this for functions which it implements
31748     to always fail with ENOSYS.  Some functions are actually named
31749     something starting with __ and the normal name is an alias.  */
31750 #if defined __stub_$ac_func || defined __stub___$ac_func
31751 choke me
31752 #endif
31753
31754 int
31755 main ()
31756 {
31757 return $ac_func ();
31758   ;
31759   return 0;
31760 }
31761 _ACEOF
31762 rm -f conftest.$ac_objext conftest$ac_exeext
31763 if { (ac_try="$ac_link"
31764 case "(($ac_try" in
31765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31766   *) ac_try_echo=$ac_try;;
31767 esac
31768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31769 $as_echo "$ac_try_echo") >&5
31770   (eval "$ac_link") 2>conftest.er1
31771   ac_status=$?
31772   grep -v '^ *+' conftest.er1 >conftest.err
31773   rm -f conftest.er1
31774   cat conftest.err >&5
31775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31776   (exit $ac_status); } && {
31777          test -z "$ac_c_werror_flag" ||
31778          test ! -s conftest.err
31779        } && test -s conftest$ac_exeext &&
31780        $as_test_x conftest$ac_exeext; then
31781   eval "$as_ac_var=yes"
31782 else
31783   $as_echo "$as_me: failed program was:" >&5
31784 sed 's/^/| /' conftest.$ac_ext >&5
31785
31786         eval "$as_ac_var=no"
31787 fi
31788
31789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31790       conftest$ac_exeext conftest.$ac_ext
31791 fi
31792 ac_res=`eval 'as_val=${'$as_ac_var'}
31793                  $as_echo "$as_val"'`
31794                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31795 $as_echo "$ac_res" >&6; }
31796 if test `eval 'as_val=${'$as_ac_var'}
31797                  $as_echo "$as_val"'` = yes; then
31798   cat >>confdefs.h <<_ACEOF
31799 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31800 _ACEOF
31801
31802 fi
31803 done
31804
31805
31806
31807 # This test must precede the ones for getmntent because Unicos-9 is
31808 # reported to have the getmntent function, but its support is incompatible
31809 # with other getmntent implementations.
31810
31811 # NOTE: Normally, I wouldn't use a check for system type as I've done for
31812 # `CRAY' below since that goes against the whole autoconf philosophy.  But
31813 # I think there is too great a chance that some non-Cray system has a
31814 # function named listmntent to risk the false positive.
31815
31816 if test -z "$ac_list_mounted_fs"; then
31817   # Cray UNICOS 9
31818   { $as_echo "$as_me:$LINENO: checking for listmntent of Cray/Unicos-9" >&5
31819 $as_echo_n "checking for listmntent of Cray/Unicos-9... " >&6; }
31820   if test "${fu_cv_sys_mounted_cray_listmntent+set}" = set; then
31821   $as_echo_n "(cached) " >&6
31822 else
31823   fu_cv_sys_mounted_cray_listmntent=no
31824       cat >conftest.$ac_ext <<_ACEOF
31825 /* confdefs.h.  */
31826 _ACEOF
31827 cat confdefs.h >>conftest.$ac_ext
31828 cat >>conftest.$ac_ext <<_ACEOF
31829 /* end confdefs.h.  */
31830 #ifdef _CRAY
31831 yes
31832 #endif
31833
31834 _ACEOF
31835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31836   $EGREP "yes" >/dev/null 2>&1; then
31837   test $ac_cv_func_listmntent = yes \
31838             && fu_cv_sys_mounted_cray_listmntent=yes
31839
31840 fi
31841 rm -f conftest*
31842
31843
31844
31845 fi
31846
31847   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_cray_listmntent" >&5
31848 $as_echo "$fu_cv_sys_mounted_cray_listmntent" >&6; }
31849   if test $fu_cv_sys_mounted_cray_listmntent = yes; then
31850     ac_list_mounted_fs=found
31851
31852 cat >>confdefs.h <<\_ACEOF
31853 #define MOUNTED_LISTMNTENT 1
31854 _ACEOF
31855
31856   fi
31857 fi
31858
31859 if test -z "$ac_list_mounted_fs"; then
31860   # AIX.
31861   { $as_echo "$as_me:$LINENO: checking for mntctl function and struct vmount" >&5
31862 $as_echo_n "checking for mntctl function and struct vmount... " >&6; }
31863   if test "${fu_cv_sys_mounted_vmount+set}" = set; then
31864   $as_echo_n "(cached) " >&6
31865 else
31866   cat >conftest.$ac_ext <<_ACEOF
31867 /* confdefs.h.  */
31868 _ACEOF
31869 cat confdefs.h >>conftest.$ac_ext
31870 cat >>conftest.$ac_ext <<_ACEOF
31871 /* end confdefs.h.  */
31872 #include <fshelp.h>
31873 _ACEOF
31874 if { (ac_try="$ac_cpp conftest.$ac_ext"
31875 case "(($ac_try" in
31876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31877   *) ac_try_echo=$ac_try;;
31878 esac
31879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31880 $as_echo "$ac_try_echo") >&5
31881   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31882   ac_status=$?
31883   grep -v '^ *+' conftest.er1 >conftest.err
31884   rm -f conftest.er1
31885   cat conftest.err >&5
31886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31887   (exit $ac_status); } >/dev/null && {
31888          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31889          test ! -s conftest.err
31890        }; then
31891   fu_cv_sys_mounted_vmount=yes
31892 else
31893   $as_echo "$as_me: failed program was:" >&5
31894 sed 's/^/| /' conftest.$ac_ext >&5
31895
31896   fu_cv_sys_mounted_vmount=no
31897 fi
31898
31899 rm -f conftest.err conftest.$ac_ext
31900 fi
31901
31902   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_vmount" >&5
31903 $as_echo "$fu_cv_sys_mounted_vmount" >&6; }
31904   if test $fu_cv_sys_mounted_vmount = yes; then
31905     ac_list_mounted_fs=found
31906
31907 cat >>confdefs.h <<\_ACEOF
31908 #define MOUNTED_VMOUNT 1
31909 _ACEOF
31910
31911   fi
31912 fi
31913
31914 if test $ac_cv_func_getmntent = yes; then
31915
31916   # This system has the getmntent function.
31917   # Determine whether it's the one-argument variant or the two-argument one.
31918
31919   if test -z "$ac_list_mounted_fs"; then
31920     # 4.3BSD, SunOS, HP-UX, Dynix, Irix
31921     { $as_echo "$as_me:$LINENO: checking for one-argument getmntent function" >&5
31922 $as_echo_n "checking for one-argument getmntent function... " >&6; }
31923     if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then
31924   $as_echo_n "(cached) " >&6
31925 else
31926   cat >conftest.$ac_ext <<_ACEOF
31927 /* confdefs.h.  */
31928 _ACEOF
31929 cat confdefs.h >>conftest.$ac_ext
31930 cat >>conftest.$ac_ext <<_ACEOF
31931 /* end confdefs.h.  */
31932
31933 /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */
31934 #include <stdio.h>
31935
31936 #include <mntent.h>
31937 #if !defined MOUNTED
31938 # if defined _PATH_MOUNTED      /* GNU libc  */
31939 #  define MOUNTED _PATH_MOUNTED
31940 # endif
31941 # if defined MNT_MNTTAB /* HP-UX.  */
31942 #  define MOUNTED MNT_MNTTAB
31943 # endif
31944 # if defined MNTTABNAME /* Dynix.  */
31945 #  define MOUNTED MNTTABNAME
31946 # endif
31947 #endif
31948
31949 int
31950 main ()
31951 {
31952  struct mntent *mnt = 0; char *table = MOUNTED;
31953                       if (sizeof mnt && sizeof table) return 0;
31954   ;
31955   return 0;
31956 }
31957 _ACEOF
31958 rm -f conftest.$ac_objext
31959 if { (ac_try="$ac_compile"
31960 case "(($ac_try" in
31961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31962   *) ac_try_echo=$ac_try;;
31963 esac
31964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31965 $as_echo "$ac_try_echo") >&5
31966   (eval "$ac_compile") 2>conftest.er1
31967   ac_status=$?
31968   grep -v '^ *+' conftest.er1 >conftest.err
31969   rm -f conftest.er1
31970   cat conftest.err >&5
31971   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31972   (exit $ac_status); } && {
31973          test -z "$ac_c_werror_flag" ||
31974          test ! -s conftest.err
31975        } && test -s conftest.$ac_objext; then
31976   fu_cv_sys_mounted_getmntent1=yes
31977 else
31978   $as_echo "$as_me: failed program was:" >&5
31979 sed 's/^/| /' conftest.$ac_ext >&5
31980
31981         fu_cv_sys_mounted_getmntent1=no
31982 fi
31983
31984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31985 fi
31986
31987     { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent1" >&5
31988 $as_echo "$fu_cv_sys_mounted_getmntent1" >&6; }
31989     if test $fu_cv_sys_mounted_getmntent1 = yes; then
31990       ac_list_mounted_fs=found
31991
31992 cat >>confdefs.h <<\_ACEOF
31993 #define MOUNTED_GETMNTENT1 1
31994 _ACEOF
31995
31996     fi
31997   fi
31998
31999   if test -z "$ac_list_mounted_fs"; then
32000     # SVR4
32001     { $as_echo "$as_me:$LINENO: checking for two-argument getmntent function" >&5
32002 $as_echo_n "checking for two-argument getmntent function... " >&6; }
32003     if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then
32004   $as_echo_n "(cached) " >&6
32005 else
32006   cat >conftest.$ac_ext <<_ACEOF
32007 /* confdefs.h.  */
32008 _ACEOF
32009 cat confdefs.h >>conftest.$ac_ext
32010 cat >>conftest.$ac_ext <<_ACEOF
32011 /* end confdefs.h.  */
32012 #include <sys/mnttab.h>
32013
32014 _ACEOF
32015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32016   $EGREP "getmntent" >/dev/null 2>&1; then
32017   fu_cv_sys_mounted_getmntent2=yes
32018 else
32019   fu_cv_sys_mounted_getmntent2=no
32020 fi
32021 rm -f conftest*
32022
32023 fi
32024
32025     { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent2" >&5
32026 $as_echo "$fu_cv_sys_mounted_getmntent2" >&6; }
32027     if test $fu_cv_sys_mounted_getmntent2 = yes; then
32028       ac_list_mounted_fs=found
32029
32030 cat >>confdefs.h <<\_ACEOF
32031 #define MOUNTED_GETMNTENT2 1
32032 _ACEOF
32033
32034
32035 for ac_func in hasmntopt
32036 do
32037 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32038 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32039 $as_echo_n "checking for $ac_func... " >&6; }
32040 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32041   $as_echo_n "(cached) " >&6
32042 else
32043   cat >conftest.$ac_ext <<_ACEOF
32044 /* confdefs.h.  */
32045 _ACEOF
32046 cat confdefs.h >>conftest.$ac_ext
32047 cat >>conftest.$ac_ext <<_ACEOF
32048 /* end confdefs.h.  */
32049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32050    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32051 #define $ac_func innocuous_$ac_func
32052
32053 /* System header to define __stub macros and hopefully few prototypes,
32054     which can conflict with char $ac_func (); below.
32055     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32056     <limits.h> exists even on freestanding compilers.  */
32057
32058 #ifdef __STDC__
32059 # include <limits.h>
32060 #else
32061 # include <assert.h>
32062 #endif
32063
32064 #undef $ac_func
32065
32066 /* Override any GCC internal prototype to avoid an error.
32067    Use char because int might match the return type of a GCC
32068    builtin and then its argument prototype would still apply.  */
32069 #ifdef __cplusplus
32070 extern "C"
32071 #endif
32072 char $ac_func ();
32073 /* The GNU C library defines this for functions which it implements
32074     to always fail with ENOSYS.  Some functions are actually named
32075     something starting with __ and the normal name is an alias.  */
32076 #if defined __stub_$ac_func || defined __stub___$ac_func
32077 choke me
32078 #endif
32079
32080 int
32081 main ()
32082 {
32083 return $ac_func ();
32084   ;
32085   return 0;
32086 }
32087 _ACEOF
32088 rm -f conftest.$ac_objext conftest$ac_exeext
32089 if { (ac_try="$ac_link"
32090 case "(($ac_try" in
32091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32092   *) ac_try_echo=$ac_try;;
32093 esac
32094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32095 $as_echo "$ac_try_echo") >&5
32096   (eval "$ac_link") 2>conftest.er1
32097   ac_status=$?
32098   grep -v '^ *+' conftest.er1 >conftest.err
32099   rm -f conftest.er1
32100   cat conftest.err >&5
32101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102   (exit $ac_status); } && {
32103          test -z "$ac_c_werror_flag" ||
32104          test ! -s conftest.err
32105        } && test -s conftest$ac_exeext &&
32106        $as_test_x conftest$ac_exeext; then
32107   eval "$as_ac_var=yes"
32108 else
32109   $as_echo "$as_me: failed program was:" >&5
32110 sed 's/^/| /' conftest.$ac_ext >&5
32111
32112         eval "$as_ac_var=no"
32113 fi
32114
32115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32116       conftest$ac_exeext conftest.$ac_ext
32117 fi
32118 ac_res=`eval 'as_val=${'$as_ac_var'}
32119                  $as_echo "$as_val"'`
32120                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32121 $as_echo "$ac_res" >&6; }
32122 if test `eval 'as_val=${'$as_ac_var'}
32123                  $as_echo "$as_val"'` = yes; then
32124   cat >>confdefs.h <<_ACEOF
32125 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32126 _ACEOF
32127
32128 fi
32129 done
32130
32131     fi
32132   fi
32133
32134 fi
32135
32136 if test -z "$ac_list_mounted_fs"; then
32137   # DEC Alpha running OSF/1, and Apple Darwin 1.3.
32138   # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h
32139
32140   { $as_echo "$as_me:$LINENO: checking for getfsstat function" >&5
32141 $as_echo_n "checking for getfsstat function... " >&6; }
32142   if test "${fu_cv_sys_mounted_getfsstat+set}" = set; then
32143   $as_echo_n "(cached) " >&6
32144 else
32145   cat >conftest.$ac_ext <<_ACEOF
32146 /* confdefs.h.  */
32147 _ACEOF
32148 cat confdefs.h >>conftest.$ac_ext
32149 cat >>conftest.$ac_ext <<_ACEOF
32150 /* end confdefs.h.  */
32151
32152 #include <sys/types.h>
32153 #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME
32154 # define FS_TYPE(Ent) ((Ent).f_fstypename)
32155 #else
32156 # define FS_TYPE(Ent) mnt_names[(Ent).f_type]
32157 #endif
32158 $getfsstat_includes
32159
32160 int
32161 main ()
32162 {
32163 struct statfs *stats;
32164    int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
32165    char *t = FS_TYPE (*stats);
32166   ;
32167   return 0;
32168 }
32169 _ACEOF
32170 rm -f conftest.$ac_objext conftest$ac_exeext
32171 if { (ac_try="$ac_link"
32172 case "(($ac_try" in
32173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32174   *) ac_try_echo=$ac_try;;
32175 esac
32176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32177 $as_echo "$ac_try_echo") >&5
32178   (eval "$ac_link") 2>conftest.er1
32179   ac_status=$?
32180   grep -v '^ *+' conftest.er1 >conftest.err
32181   rm -f conftest.er1
32182   cat conftest.err >&5
32183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32184   (exit $ac_status); } && {
32185          test -z "$ac_c_werror_flag" ||
32186          test ! -s conftest.err
32187        } && test -s conftest$ac_exeext &&
32188        $as_test_x conftest$ac_exeext; then
32189   fu_cv_sys_mounted_getfsstat=yes
32190 else
32191   $as_echo "$as_me: failed program was:" >&5
32192 sed 's/^/| /' conftest.$ac_ext >&5
32193
32194         fu_cv_sys_mounted_getfsstat=no
32195 fi
32196
32197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32198       conftest$ac_exeext conftest.$ac_ext
32199 fi
32200
32201   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getfsstat" >&5
32202 $as_echo "$fu_cv_sys_mounted_getfsstat" >&6; }
32203   if test $fu_cv_sys_mounted_getfsstat = yes; then
32204     ac_list_mounted_fs=found
32205
32206 cat >>confdefs.h <<\_ACEOF
32207 #define MOUNTED_GETFSSTAT 1
32208 _ACEOF
32209
32210   fi
32211 fi
32212
32213 if test -z "$ac_list_mounted_fs"; then
32214   # SVR3
32215   { $as_echo "$as_me:$LINENO: checking for FIXME existence of three headers" >&5
32216 $as_echo_n "checking for FIXME existence of three headers... " >&6; }
32217   if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then
32218   $as_echo_n "(cached) " >&6
32219 else
32220   cat >conftest.$ac_ext <<_ACEOF
32221 /* confdefs.h.  */
32222 _ACEOF
32223 cat confdefs.h >>conftest.$ac_ext
32224 cat >>conftest.$ac_ext <<_ACEOF
32225 /* end confdefs.h.  */
32226
32227 #include <sys/statfs.h>
32228 #include <sys/fstyp.h>
32229 #include <mnttab.h>
32230 _ACEOF
32231 if { (ac_try="$ac_cpp conftest.$ac_ext"
32232 case "(($ac_try" in
32233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32234   *) ac_try_echo=$ac_try;;
32235 esac
32236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32237 $as_echo "$ac_try_echo") >&5
32238   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32239   ac_status=$?
32240   grep -v '^ *+' conftest.er1 >conftest.err
32241   rm -f conftest.er1
32242   cat conftest.err >&5
32243   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32244   (exit $ac_status); } >/dev/null && {
32245          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32246          test ! -s conftest.err
32247        }; then
32248   fu_cv_sys_mounted_fread_fstyp=yes
32249 else
32250   $as_echo "$as_me: failed program was:" >&5
32251 sed 's/^/| /' conftest.$ac_ext >&5
32252
32253   fu_cv_sys_mounted_fread_fstyp=no
32254 fi
32255
32256 rm -f conftest.err conftest.$ac_ext
32257 fi
32258
32259   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread_fstyp" >&5
32260 $as_echo "$fu_cv_sys_mounted_fread_fstyp" >&6; }
32261   if test $fu_cv_sys_mounted_fread_fstyp = yes; then
32262     ac_list_mounted_fs=found
32263
32264 cat >>confdefs.h <<\_ACEOF
32265 #define MOUNTED_FREAD_FSTYP 1
32266 _ACEOF
32267
32268   fi
32269 fi
32270
32271 if test -z "$ac_list_mounted_fs"; then
32272   # 4.4BSD and DEC OSF/1.
32273   { $as_echo "$as_me:$LINENO: checking for getmntinfo function" >&5
32274 $as_echo_n "checking for getmntinfo function... " >&6; }
32275   if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then
32276   $as_echo_n "(cached) " >&6
32277 else
32278
32279       test "$ac_cv_func_getmntinfo" = yes \
32280           && fu_cv_sys_mounted_getmntinfo=yes \
32281           || fu_cv_sys_mounted_getmntinfo=no
32282
32283 fi
32284
32285   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo" >&5
32286 $as_echo "$fu_cv_sys_mounted_getmntinfo" >&6; }
32287   if test $fu_cv_sys_mounted_getmntinfo = yes; then
32288     { $as_echo "$as_me:$LINENO: checking whether getmntinfo returns statvfs structures" >&5
32289 $as_echo_n "checking whether getmntinfo returns statvfs structures... " >&6; }
32290     if test "${fu_cv_sys_mounted_getmntinfo2+set}" = set; then
32291   $as_echo_n "(cached) " >&6
32292 else
32293
32294         cat >conftest.$ac_ext <<_ACEOF
32295 /* confdefs.h.  */
32296 _ACEOF
32297 cat confdefs.h >>conftest.$ac_ext
32298 cat >>conftest.$ac_ext <<_ACEOF
32299 /* end confdefs.h.  */
32300
32301 #if HAVE_SYS_PARAM_H
32302 # include <sys/param.h>
32303 #endif
32304 #include <sys/types.h>
32305 #if HAVE_SYS_MOUNT_H
32306 # include <sys/mount.h>
32307 #endif
32308 #if HAVE_SYS_STATVFS_H
32309 # include <sys/statvfs.h>
32310 #endif
32311 extern int getmntinfo (struct statfs **, int);
32312
32313 int
32314 main ()
32315 {
32316
32317   ;
32318   return 0;
32319 }
32320 _ACEOF
32321 rm -f conftest.$ac_objext
32322 if { (ac_try="$ac_compile"
32323 case "(($ac_try" in
32324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32325   *) ac_try_echo=$ac_try;;
32326 esac
32327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32328 $as_echo "$ac_try_echo") >&5
32329   (eval "$ac_compile") 2>conftest.er1
32330   ac_status=$?
32331   grep -v '^ *+' conftest.er1 >conftest.err
32332   rm -f conftest.er1
32333   cat conftest.err >&5
32334   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335   (exit $ac_status); } && {
32336          test -z "$ac_c_werror_flag" ||
32337          test ! -s conftest.err
32338        } && test -s conftest.$ac_objext; then
32339   fu_cv_sys_mounted_getmntinfo2=no
32340 else
32341   $as_echo "$as_me: failed program was:" >&5
32342 sed 's/^/| /' conftest.$ac_ext >&5
32343
32344         fu_cv_sys_mounted_getmntinfo2=yes
32345 fi
32346
32347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32348
32349 fi
32350
32351     { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo2" >&5
32352 $as_echo "$fu_cv_sys_mounted_getmntinfo2" >&6; }
32353     if test $fu_cv_sys_mounted_getmntinfo2 = no; then
32354       ac_list_mounted_fs=found
32355
32356 cat >>confdefs.h <<\_ACEOF
32357 #define MOUNTED_GETMNTINFO 1
32358 _ACEOF
32359
32360     else
32361       ac_list_mounted_fs=found
32362
32363 cat >>confdefs.h <<\_ACEOF
32364 #define MOUNTED_GETMNTINFO2 1
32365 _ACEOF
32366
32367     fi
32368   fi
32369 fi
32370
32371 if test -z "$ac_list_mounted_fs"; then
32372   # Ultrix
32373   { $as_echo "$as_me:$LINENO: checking for getmnt function" >&5
32374 $as_echo_n "checking for getmnt function... " >&6; }
32375   if test "${fu_cv_sys_mounted_getmnt+set}" = set; then
32376   $as_echo_n "(cached) " >&6
32377 else
32378   cat >conftest.$ac_ext <<_ACEOF
32379 /* confdefs.h.  */
32380 _ACEOF
32381 cat confdefs.h >>conftest.$ac_ext
32382 cat >>conftest.$ac_ext <<_ACEOF
32383 /* end confdefs.h.  */
32384
32385 #include <sys/fs_types.h>
32386 #include <sys/mount.h>
32387 _ACEOF
32388 if { (ac_try="$ac_cpp conftest.$ac_ext"
32389 case "(($ac_try" in
32390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32391   *) ac_try_echo=$ac_try;;
32392 esac
32393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32394 $as_echo "$ac_try_echo") >&5
32395   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32396   ac_status=$?
32397   grep -v '^ *+' conftest.er1 >conftest.err
32398   rm -f conftest.er1
32399   cat conftest.err >&5
32400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401   (exit $ac_status); } >/dev/null && {
32402          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32403          test ! -s conftest.err
32404        }; then
32405   fu_cv_sys_mounted_getmnt=yes
32406 else
32407   $as_echo "$as_me: failed program was:" >&5
32408 sed 's/^/| /' conftest.$ac_ext >&5
32409
32410   fu_cv_sys_mounted_getmnt=no
32411 fi
32412
32413 rm -f conftest.err conftest.$ac_ext
32414 fi
32415
32416   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmnt" >&5
32417 $as_echo "$fu_cv_sys_mounted_getmnt" >&6; }
32418   if test $fu_cv_sys_mounted_getmnt = yes; then
32419     ac_list_mounted_fs=found
32420
32421 cat >>confdefs.h <<\_ACEOF
32422 #define MOUNTED_GETMNT 1
32423 _ACEOF
32424
32425   fi
32426 fi
32427
32428 if test -z "$ac_list_mounted_fs"; then
32429   # BeOS
32430
32431
32432 for ac_func in next_dev fs_stat_dev
32433 do
32434 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32435 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32436 $as_echo_n "checking for $ac_func... " >&6; }
32437 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32438   $as_echo_n "(cached) " >&6
32439 else
32440   cat >conftest.$ac_ext <<_ACEOF
32441 /* confdefs.h.  */
32442 _ACEOF
32443 cat confdefs.h >>conftest.$ac_ext
32444 cat >>conftest.$ac_ext <<_ACEOF
32445 /* end confdefs.h.  */
32446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32447    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32448 #define $ac_func innocuous_$ac_func
32449
32450 /* System header to define __stub macros and hopefully few prototypes,
32451     which can conflict with char $ac_func (); below.
32452     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32453     <limits.h> exists even on freestanding compilers.  */
32454
32455 #ifdef __STDC__
32456 # include <limits.h>
32457 #else
32458 # include <assert.h>
32459 #endif
32460
32461 #undef $ac_func
32462
32463 /* Override any GCC internal prototype to avoid an error.
32464    Use char because int might match the return type of a GCC
32465    builtin and then its argument prototype would still apply.  */
32466 #ifdef __cplusplus
32467 extern "C"
32468 #endif
32469 char $ac_func ();
32470 /* The GNU C library defines this for functions which it implements
32471     to always fail with ENOSYS.  Some functions are actually named
32472     something starting with __ and the normal name is an alias.  */
32473 #if defined __stub_$ac_func || defined __stub___$ac_func
32474 choke me
32475 #endif
32476
32477 int
32478 main ()
32479 {
32480 return $ac_func ();
32481   ;
32482   return 0;
32483 }
32484 _ACEOF
32485 rm -f conftest.$ac_objext conftest$ac_exeext
32486 if { (ac_try="$ac_link"
32487 case "(($ac_try" in
32488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32489   *) ac_try_echo=$ac_try;;
32490 esac
32491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32492 $as_echo "$ac_try_echo") >&5
32493   (eval "$ac_link") 2>conftest.er1
32494   ac_status=$?
32495   grep -v '^ *+' conftest.er1 >conftest.err
32496   rm -f conftest.er1
32497   cat conftest.err >&5
32498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499   (exit $ac_status); } && {
32500          test -z "$ac_c_werror_flag" ||
32501          test ! -s conftest.err
32502        } && test -s conftest$ac_exeext &&
32503        $as_test_x conftest$ac_exeext; then
32504   eval "$as_ac_var=yes"
32505 else
32506   $as_echo "$as_me: failed program was:" >&5
32507 sed 's/^/| /' conftest.$ac_ext >&5
32508
32509         eval "$as_ac_var=no"
32510 fi
32511
32512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32513       conftest$ac_exeext conftest.$ac_ext
32514 fi
32515 ac_res=`eval 'as_val=${'$as_ac_var'}
32516                  $as_echo "$as_val"'`
32517                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32518 $as_echo "$ac_res" >&6; }
32519 if test `eval 'as_val=${'$as_ac_var'}
32520                  $as_echo "$as_val"'` = yes; then
32521   cat >>confdefs.h <<_ACEOF
32522 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32523 _ACEOF
32524
32525 fi
32526 done
32527
32528
32529 for ac_header in fs_info.h
32530 do
32531 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32533   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32534 $as_echo_n "checking for $ac_header... " >&6; }
32535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32536   $as_echo_n "(cached) " >&6
32537 fi
32538 ac_res=`eval 'as_val=${'$as_ac_Header'}
32539                  $as_echo "$as_val"'`
32540                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32541 $as_echo "$ac_res" >&6; }
32542 else
32543   # Is the header compilable?
32544 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
32545 $as_echo_n "checking $ac_header usability... " >&6; }
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 <$ac_header>
32554 _ACEOF
32555 rm -f conftest.$ac_objext
32556 if { (ac_try="$ac_compile"
32557 case "(($ac_try" in
32558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32559   *) ac_try_echo=$ac_try;;
32560 esac
32561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32562 $as_echo "$ac_try_echo") >&5
32563   (eval "$ac_compile") 2>conftest.er1
32564   ac_status=$?
32565   grep -v '^ *+' conftest.er1 >conftest.err
32566   rm -f conftest.er1
32567   cat conftest.err >&5
32568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32569   (exit $ac_status); } && {
32570          test -z "$ac_c_werror_flag" ||
32571          test ! -s conftest.err
32572        } && test -s conftest.$ac_objext; then
32573   ac_header_compiler=yes
32574 else
32575   $as_echo "$as_me: failed program was:" >&5
32576 sed 's/^/| /' conftest.$ac_ext >&5
32577
32578         ac_header_compiler=no
32579 fi
32580
32581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32582 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32583 $as_echo "$ac_header_compiler" >&6; }
32584
32585 # Is the header present?
32586 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
32587 $as_echo_n "checking $ac_header presence... " >&6; }
32588 cat >conftest.$ac_ext <<_ACEOF
32589 /* confdefs.h.  */
32590 _ACEOF
32591 cat confdefs.h >>conftest.$ac_ext
32592 cat >>conftest.$ac_ext <<_ACEOF
32593 /* end confdefs.h.  */
32594 #include <$ac_header>
32595 _ACEOF
32596 if { (ac_try="$ac_cpp conftest.$ac_ext"
32597 case "(($ac_try" in
32598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32599   *) ac_try_echo=$ac_try;;
32600 esac
32601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32602 $as_echo "$ac_try_echo") >&5
32603   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32604   ac_status=$?
32605   grep -v '^ *+' conftest.er1 >conftest.err
32606   rm -f conftest.er1
32607   cat conftest.err >&5
32608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32609   (exit $ac_status); } >/dev/null && {
32610          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32611          test ! -s conftest.err
32612        }; then
32613   ac_header_preproc=yes
32614 else
32615   $as_echo "$as_me: failed program was:" >&5
32616 sed 's/^/| /' conftest.$ac_ext >&5
32617
32618   ac_header_preproc=no
32619 fi
32620
32621 rm -f conftest.err conftest.$ac_ext
32622 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32623 $as_echo "$ac_header_preproc" >&6; }
32624
32625 # So?  What about this header?
32626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32627   yes:no: )
32628     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32629 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32630     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32631 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32632     ac_header_preproc=yes
32633     ;;
32634   no:yes:* )
32635     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32636 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32637     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32638 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32639     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32640 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32641     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32642 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32643     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32644 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32645     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32646 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32647     ( cat <<\_ASBOX
32648 ## ------------------------------------ ##
32649 ## Report this to bug-coreutils@gnu.org ##
32650 ## ------------------------------------ ##
32651 _ASBOX
32652      ) | sed "s/^/$as_me: WARNING:     /" >&2
32653     ;;
32654 esac
32655 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32656 $as_echo_n "checking for $ac_header... " >&6; }
32657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32658   $as_echo_n "(cached) " >&6
32659 else
32660   eval "$as_ac_Header=\$ac_header_preproc"
32661 fi
32662 ac_res=`eval 'as_val=${'$as_ac_Header'}
32663                  $as_echo "$as_val"'`
32664                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32665 $as_echo "$ac_res" >&6; }
32666
32667 fi
32668 if test `eval 'as_val=${'$as_ac_Header'}
32669                  $as_echo "$as_val"'` = yes; then
32670   cat >>confdefs.h <<_ACEOF
32671 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32672 _ACEOF
32673
32674 fi
32675
32676 done
32677
32678   { $as_echo "$as_me:$LINENO: checking for BEOS mounted file system support functions" >&5
32679 $as_echo_n "checking for BEOS mounted file system support functions... " >&6; }
32680   if test $ac_cv_header_fs_info_h = yes \
32681       && test $ac_cv_func_next_dev = yes \
32682         && test $ac_cv_func_fs_stat_dev = yes; then
32683     fu_result=yes
32684   else
32685     fu_result=no
32686   fi
32687   { $as_echo "$as_me:$LINENO: result: $fu_result" >&5
32688 $as_echo "$fu_result" >&6; }
32689   if test $fu_result = yes; then
32690     ac_list_mounted_fs=found
32691
32692 cat >>confdefs.h <<\_ACEOF
32693 #define MOUNTED_FS_STAT_DEV 1
32694 _ACEOF
32695
32696   fi
32697 fi
32698
32699 if test -z "$ac_list_mounted_fs"; then
32700   # SVR2
32701   { $as_echo "$as_me:$LINENO: checking whether it is possible to resort to fread on /etc/mnttab" >&5
32702 $as_echo_n "checking whether it is possible to resort to fread on /etc/mnttab... " >&6; }
32703   if test "${fu_cv_sys_mounted_fread+set}" = set; then
32704   $as_echo_n "(cached) " >&6
32705 else
32706   cat >conftest.$ac_ext <<_ACEOF
32707 /* confdefs.h.  */
32708 _ACEOF
32709 cat confdefs.h >>conftest.$ac_ext
32710 cat >>conftest.$ac_ext <<_ACEOF
32711 /* end confdefs.h.  */
32712 #include <mnttab.h>
32713 _ACEOF
32714 if { (ac_try="$ac_cpp conftest.$ac_ext"
32715 case "(($ac_try" in
32716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32717   *) ac_try_echo=$ac_try;;
32718 esac
32719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32720 $as_echo "$ac_try_echo") >&5
32721   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32722   ac_status=$?
32723   grep -v '^ *+' conftest.er1 >conftest.err
32724   rm -f conftest.er1
32725   cat conftest.err >&5
32726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32727   (exit $ac_status); } >/dev/null && {
32728          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32729          test ! -s conftest.err
32730        }; then
32731   fu_cv_sys_mounted_fread=yes
32732 else
32733   $as_echo "$as_me: failed program was:" >&5
32734 sed 's/^/| /' conftest.$ac_ext >&5
32735
32736   fu_cv_sys_mounted_fread=no
32737 fi
32738
32739 rm -f conftest.err conftest.$ac_ext
32740 fi
32741
32742   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread" >&5
32743 $as_echo "$fu_cv_sys_mounted_fread" >&6; }
32744   if test $fu_cv_sys_mounted_fread = yes; then
32745     ac_list_mounted_fs=found
32746
32747 cat >>confdefs.h <<\_ACEOF
32748 #define MOUNTED_FREAD 1
32749 _ACEOF
32750
32751   fi
32752 fi
32753
32754 if test -z "$ac_list_mounted_fs"; then
32755   { { $as_echo "$as_me:$LINENO: error: could not determine how to read list of mounted file systems" >&5
32756 $as_echo "$as_me: error: could not determine how to read list of mounted file systems" >&2;}
32757    { (exit 1); exit 1; }; }
32758   # FIXME -- no need to abort building the whole package
32759   # Can't build mountlist.c or anything that needs its functions
32760 fi
32761
32762 if test $ac_list_mounted_fs = found; then
32763   gl_cv_list_mounted_fs=yes
32764 else
32765   gl_cv_list_mounted_fs=no
32766 fi
32767
32768
32769
32770   if test $gl_cv_list_mounted_fs = yes; then
32771     gl_LIBOBJS="$gl_LIBOBJS mountlist.$ac_objext"
32772
32773
32774 for ac_header in sys/mntent.h
32775 do
32776 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32778   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32779 $as_echo_n "checking for $ac_header... " >&6; }
32780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32781   $as_echo_n "(cached) " >&6
32782 fi
32783 ac_res=`eval 'as_val=${'$as_ac_Header'}
32784                  $as_echo "$as_val"'`
32785                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32786 $as_echo "$ac_res" >&6; }
32787 else
32788   # Is the header compilable?
32789 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
32790 $as_echo_n "checking $ac_header usability... " >&6; }
32791 cat >conftest.$ac_ext <<_ACEOF
32792 /* confdefs.h.  */
32793 _ACEOF
32794 cat confdefs.h >>conftest.$ac_ext
32795 cat >>conftest.$ac_ext <<_ACEOF
32796 /* end confdefs.h.  */
32797 $ac_includes_default
32798 #include <$ac_header>
32799 _ACEOF
32800 rm -f conftest.$ac_objext
32801 if { (ac_try="$ac_compile"
32802 case "(($ac_try" in
32803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32804   *) ac_try_echo=$ac_try;;
32805 esac
32806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32807 $as_echo "$ac_try_echo") >&5
32808   (eval "$ac_compile") 2>conftest.er1
32809   ac_status=$?
32810   grep -v '^ *+' conftest.er1 >conftest.err
32811   rm -f conftest.er1
32812   cat conftest.err >&5
32813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32814   (exit $ac_status); } && {
32815          test -z "$ac_c_werror_flag" ||
32816          test ! -s conftest.err
32817        } && test -s conftest.$ac_objext; then
32818   ac_header_compiler=yes
32819 else
32820   $as_echo "$as_me: failed program was:" >&5
32821 sed 's/^/| /' conftest.$ac_ext >&5
32822
32823         ac_header_compiler=no
32824 fi
32825
32826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32827 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32828 $as_echo "$ac_header_compiler" >&6; }
32829
32830 # Is the header present?
32831 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
32832 $as_echo_n "checking $ac_header presence... " >&6; }
32833 cat >conftest.$ac_ext <<_ACEOF
32834 /* confdefs.h.  */
32835 _ACEOF
32836 cat confdefs.h >>conftest.$ac_ext
32837 cat >>conftest.$ac_ext <<_ACEOF
32838 /* end confdefs.h.  */
32839 #include <$ac_header>
32840 _ACEOF
32841 if { (ac_try="$ac_cpp conftest.$ac_ext"
32842 case "(($ac_try" in
32843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32844   *) ac_try_echo=$ac_try;;
32845 esac
32846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32847 $as_echo "$ac_try_echo") >&5
32848   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32849   ac_status=$?
32850   grep -v '^ *+' conftest.er1 >conftest.err
32851   rm -f conftest.er1
32852   cat conftest.err >&5
32853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32854   (exit $ac_status); } >/dev/null && {
32855          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32856          test ! -s conftest.err
32857        }; then
32858   ac_header_preproc=yes
32859 else
32860   $as_echo "$as_me: failed program was:" >&5
32861 sed 's/^/| /' conftest.$ac_ext >&5
32862
32863   ac_header_preproc=no
32864 fi
32865
32866 rm -f conftest.err conftest.$ac_ext
32867 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32868 $as_echo "$ac_header_preproc" >&6; }
32869
32870 # So?  What about this header?
32871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32872   yes:no: )
32873     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32874 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32875     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32876 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32877     ac_header_preproc=yes
32878     ;;
32879   no:yes:* )
32880     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32881 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32882     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32883 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32884     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32885 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32886     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32887 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32888     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32889 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32890     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32891 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32892     ( cat <<\_ASBOX
32893 ## ------------------------------------ ##
32894 ## Report this to bug-coreutils@gnu.org ##
32895 ## ------------------------------------ ##
32896 _ASBOX
32897      ) | sed "s/^/$as_me: WARNING:     /" >&2
32898     ;;
32899 esac
32900 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32901 $as_echo_n "checking for $ac_header... " >&6; }
32902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32903   $as_echo_n "(cached) " >&6
32904 else
32905   eval "$as_ac_Header=\$ac_header_preproc"
32906 fi
32907 ac_res=`eval 'as_val=${'$as_ac_Header'}
32908                  $as_echo "$as_val"'`
32909                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32910 $as_echo "$ac_res" >&6; }
32911
32912 fi
32913 if test `eval 'as_val=${'$as_ac_Header'}
32914                  $as_echo "$as_val"'` = yes; then
32915   cat >>confdefs.h <<_ACEOF
32916 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32917 _ACEOF
32918
32919 fi
32920
32921 done
32922
32923
32924   { $as_echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
32925 $as_echo_n "checking for struct statfs.f_fstypename... " >&6; }
32926 if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
32927   $as_echo_n "(cached) " >&6
32928 else
32929   cat >conftest.$ac_ext <<_ACEOF
32930 /* confdefs.h.  */
32931 _ACEOF
32932 cat confdefs.h >>conftest.$ac_ext
32933 cat >>conftest.$ac_ext <<_ACEOF
32934 /* end confdefs.h.  */
32935
32936       #include <sys/types.h>
32937       #include <sys/param.h>
32938       #include <sys/mount.h>
32939
32940
32941 int
32942 main ()
32943 {
32944 static struct statfs ac_aggr;
32945 if (ac_aggr.f_fstypename)
32946 return 0;
32947   ;
32948   return 0;
32949 }
32950 _ACEOF
32951 rm -f conftest.$ac_objext
32952 if { (ac_try="$ac_compile"
32953 case "(($ac_try" in
32954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32955   *) ac_try_echo=$ac_try;;
32956 esac
32957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32958 $as_echo "$ac_try_echo") >&5
32959   (eval "$ac_compile") 2>conftest.er1
32960   ac_status=$?
32961   grep -v '^ *+' conftest.er1 >conftest.err
32962   rm -f conftest.er1
32963   cat conftest.err >&5
32964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32965   (exit $ac_status); } && {
32966          test -z "$ac_c_werror_flag" ||
32967          test ! -s conftest.err
32968        } && test -s conftest.$ac_objext; then
32969   ac_cv_member_struct_statfs_f_fstypename=yes
32970 else
32971   $as_echo "$as_me: failed program was:" >&5
32972 sed 's/^/| /' conftest.$ac_ext >&5
32973
32974         cat >conftest.$ac_ext <<_ACEOF
32975 /* confdefs.h.  */
32976 _ACEOF
32977 cat confdefs.h >>conftest.$ac_ext
32978 cat >>conftest.$ac_ext <<_ACEOF
32979 /* end confdefs.h.  */
32980
32981       #include <sys/types.h>
32982       #include <sys/param.h>
32983       #include <sys/mount.h>
32984
32985
32986 int
32987 main ()
32988 {
32989 static struct statfs ac_aggr;
32990 if (sizeof ac_aggr.f_fstypename)
32991 return 0;
32992   ;
32993   return 0;
32994 }
32995 _ACEOF
32996 rm -f conftest.$ac_objext
32997 if { (ac_try="$ac_compile"
32998 case "(($ac_try" in
32999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33000   *) ac_try_echo=$ac_try;;
33001 esac
33002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33003 $as_echo "$ac_try_echo") >&5
33004   (eval "$ac_compile") 2>conftest.er1
33005   ac_status=$?
33006   grep -v '^ *+' conftest.er1 >conftest.err
33007   rm -f conftest.er1
33008   cat conftest.err >&5
33009   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010   (exit $ac_status); } && {
33011          test -z "$ac_c_werror_flag" ||
33012          test ! -s conftest.err
33013        } && test -s conftest.$ac_objext; then
33014   ac_cv_member_struct_statfs_f_fstypename=yes
33015 else
33016   $as_echo "$as_me: failed program was:" >&5
33017 sed 's/^/| /' conftest.$ac_ext >&5
33018
33019         ac_cv_member_struct_statfs_f_fstypename=no
33020 fi
33021
33022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33023 fi
33024
33025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33026 fi
33027 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
33028 $as_echo "$ac_cv_member_struct_statfs_f_fstypename" >&6; }
33029 if test $ac_cv_member_struct_statfs_f_fstypename = yes; then
33030
33031 cat >>confdefs.h <<_ACEOF
33032 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
33033 _ACEOF
33034
33035
33036 fi
33037
33038
33039
33040   fi
33041
33042
33043
33044   gl_LIBOBJS="$gl_LIBOBJS mpsort.$ac_objext"
33045
33046
33047
33048
33049
33050
33051
33052
33053
33054
33055
33056
33057
33058  nanosleep_save_libs=$LIBS
33059
33060  # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
33061  # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
33062  { $as_echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
33063 $as_echo_n "checking for library containing nanosleep... " >&6; }
33064 if test "${ac_cv_search_nanosleep+set}" = set; then
33065   $as_echo_n "(cached) " >&6
33066 else
33067   ac_func_search_save_LIBS=$LIBS
33068 cat >conftest.$ac_ext <<_ACEOF
33069 /* confdefs.h.  */
33070 _ACEOF
33071 cat confdefs.h >>conftest.$ac_ext
33072 cat >>conftest.$ac_ext <<_ACEOF
33073 /* end confdefs.h.  */
33074
33075 /* Override any GCC internal prototype to avoid an error.
33076    Use char because int might match the return type of a GCC
33077    builtin and then its argument prototype would still apply.  */
33078 #ifdef __cplusplus
33079 extern "C"
33080 #endif
33081 char nanosleep ();
33082 int
33083 main ()
33084 {
33085 return nanosleep ();
33086   ;
33087   return 0;
33088 }
33089 _ACEOF
33090 for ac_lib in '' rt posix4; do
33091   if test -z "$ac_lib"; then
33092     ac_res="none required"
33093   else
33094     ac_res=-l$ac_lib
33095     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33096   fi
33097   rm -f conftest.$ac_objext conftest$ac_exeext
33098 if { (ac_try="$ac_link"
33099 case "(($ac_try" in
33100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33101   *) ac_try_echo=$ac_try;;
33102 esac
33103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33104 $as_echo "$ac_try_echo") >&5
33105   (eval "$ac_link") 2>conftest.er1
33106   ac_status=$?
33107   grep -v '^ *+' conftest.er1 >conftest.err
33108   rm -f conftest.er1
33109   cat conftest.err >&5
33110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111   (exit $ac_status); } && {
33112          test -z "$ac_c_werror_flag" ||
33113          test ! -s conftest.err
33114        } && test -s conftest$ac_exeext &&
33115        $as_test_x conftest$ac_exeext; then
33116   ac_cv_search_nanosleep=$ac_res
33117 else
33118   $as_echo "$as_me: failed program was:" >&5
33119 sed 's/^/| /' conftest.$ac_ext >&5
33120
33121
33122 fi
33123
33124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33125       conftest$ac_exeext
33126   if test "${ac_cv_search_nanosleep+set}" = set; then
33127   break
33128 fi
33129 done
33130 if test "${ac_cv_search_nanosleep+set}" = set; then
33131   :
33132 else
33133   ac_cv_search_nanosleep=no
33134 fi
33135 rm conftest.$ac_ext
33136 LIBS=$ac_func_search_save_LIBS
33137 fi
33138 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
33139 $as_echo "$ac_cv_search_nanosleep" >&6; }
33140 ac_res=$ac_cv_search_nanosleep
33141 if test "$ac_res" != no; then
33142   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33143   test "$ac_cv_search_nanosleep" = "none required" ||
33144                  LIB_NANOSLEEP=$ac_cv_search_nanosleep
33145 fi
33146
33147
33148  { $as_echo "$as_me:$LINENO: checking for working nanosleep" >&5
33149 $as_echo_n "checking for working nanosleep... " >&6; }
33150 if test "${gl_cv_func_nanosleep+set}" = set; then
33151   $as_echo_n "(cached) " >&6
33152 else
33153
33154    if test "$cross_compiling" = yes; then
33155   gl_cv_func_nanosleep=cross-compiling
33156 else
33157   cat >conftest.$ac_ext <<_ACEOF
33158 /* confdefs.h.  */
33159 _ACEOF
33160 cat confdefs.h >>conftest.$ac_ext
33161 cat >>conftest.$ac_ext <<_ACEOF
33162 /* end confdefs.h.  */
33163
33164         #include <errno.h>
33165         #include <limits.h>
33166         #include <signal.h>
33167         #if HAVE_SYS_TIME_H
33168          #include <sys/time.h>
33169         #endif
33170         #include <time.h>
33171         #include <unistd.h>
33172         #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
33173         #define TYPE_MAXIMUM(t) \
33174           ((t) (! TYPE_SIGNED (t) \
33175                 ? (t) -1 \
33176                 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
33177
33178         static void
33179         check_for_SIGALRM (int sig)
33180         {
33181           if (sig != SIGALRM)
33182             _exit (1);
33183         }
33184
33185         int
33186         main ()
33187         {
33188           static struct timespec ts_sleep;
33189           static struct timespec ts_remaining;
33190           static struct sigaction act;
33191           if (! nanosleep)
33192             return 1;
33193           act.sa_handler = check_for_SIGALRM;
33194           sigemptyset (&act.sa_mask);
33195           sigaction (SIGALRM, &act, NULL);
33196           ts_sleep.tv_sec = 0;
33197           ts_sleep.tv_nsec = 1;
33198           alarm (1);
33199           if (nanosleep (&ts_sleep, NULL) != 0)
33200             return 1;
33201           ts_sleep.tv_sec = TYPE_MAXIMUM (time_t);
33202           ts_sleep.tv_nsec = 999999999;
33203           alarm (1);
33204           if (nanosleep (&ts_sleep, &ts_remaining) == -1 && errno == EINTR
33205               && TYPE_MAXIMUM (time_t) - 10 < ts_remaining.tv_sec)
33206             return 0;
33207           return 119;
33208         }
33209 _ACEOF
33210 rm -f conftest$ac_exeext
33211 if { (ac_try="$ac_link"
33212 case "(($ac_try" in
33213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33214   *) ac_try_echo=$ac_try;;
33215 esac
33216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33217 $as_echo "$ac_try_echo") >&5
33218   (eval "$ac_link") 2>&5
33219   ac_status=$?
33220   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33221   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33222   { (case "(($ac_try" in
33223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33224   *) ac_try_echo=$ac_try;;
33225 esac
33226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33227 $as_echo "$ac_try_echo") >&5
33228   (eval "$ac_try") 2>&5
33229   ac_status=$?
33230   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33231   (exit $ac_status); }; }; then
33232   gl_cv_func_nanosleep=yes
33233 else
33234   $as_echo "$as_me: program exited with status $ac_status" >&5
33235 $as_echo "$as_me: failed program was:" >&5
33236 sed 's/^/| /' conftest.$ac_ext >&5
33237
33238 ( exit $ac_status )
33239 case $? in       119) gl_cv_func_nanosleep='no (mishandles large arguments)';;       *)   gl_cv_func_nanosleep=no;;
33240       esac
33241 fi
33242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33243 fi
33244
33245
33246
33247 fi
33248 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_nanosleep" >&5
33249 $as_echo "$gl_cv_func_nanosleep" >&6; }
33250   if test "$gl_cv_func_nanosleep" = yes; then
33251     REPLACE_NANOSLEEP=0
33252   else
33253     REPLACE_NANOSLEEP=1
33254     if test "$gl_cv_func_nanosleep" = 'no (mishandles large arguments)'; then
33255
33256 cat >>confdefs.h <<\_ACEOF
33257 #define HAVE_BUG_BIG_NANOSLEEP 1
33258 _ACEOF
33259
33260       for ac_lib in $LIB_CLOCK_GETTIME; do
33261         case " $LIB_NANOSLEEP " in
33262         *" $ac_lib "*) ;;
33263         *) LIB_NANOSLEEP="$LIB_NANOSLEEP $ac_lib";;
33264         esac
33265       done
33266     fi
33267     gl_LIBOBJS="$gl_LIBOBJS nanosleep.$ac_objext"
33268
33269
33270
33271
33272
33273
33274
33275
33276
33277
33278
33279
33280
33281
33282   fi
33283
33284
33285  LIBS=$nanosleep_save_libs
33286
33287
33288   { $as_echo "$as_me:$LINENO: checking whether <netinet/in.h> is self-contained" >&5
33289 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
33290 if test "${gl_cv_header_netinet_in_h_selfcontained+set}" = set; then
33291   $as_echo_n "(cached) " >&6
33292 else
33293
33294       cat >conftest.$ac_ext <<_ACEOF
33295 /* confdefs.h.  */
33296 _ACEOF
33297 cat confdefs.h >>conftest.$ac_ext
33298 cat >>conftest.$ac_ext <<_ACEOF
33299 /* end confdefs.h.  */
33300 #include <netinet/in.h>
33301 int
33302 main ()
33303 {
33304
33305   ;
33306   return 0;
33307 }
33308 _ACEOF
33309 rm -f conftest.$ac_objext
33310 if { (ac_try="$ac_compile"
33311 case "(($ac_try" in
33312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33313   *) ac_try_echo=$ac_try;;
33314 esac
33315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33316 $as_echo "$ac_try_echo") >&5
33317   (eval "$ac_compile") 2>conftest.er1
33318   ac_status=$?
33319   grep -v '^ *+' conftest.er1 >conftest.err
33320   rm -f conftest.er1
33321   cat conftest.err >&5
33322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33323   (exit $ac_status); } && {
33324          test -z "$ac_c_werror_flag" ||
33325          test ! -s conftest.err
33326        } && test -s conftest.$ac_objext; then
33327   gl_cv_header_netinet_in_h_selfcontained=yes
33328 else
33329   $as_echo "$as_me: failed program was:" >&5
33330 sed 's/^/| /' conftest.$ac_ext >&5
33331
33332         gl_cv_header_netinet_in_h_selfcontained=no
33333 fi
33334
33335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33336
33337 fi
33338 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
33339 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
33340   if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
33341     NETINET_IN_H=''
33342   else
33343     NETINET_IN_H='netinet/in.h'
33344
33345 for ac_header in netinet/in.h
33346 do
33347 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33349   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33350 $as_echo_n "checking for $ac_header... " >&6; }
33351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33352   $as_echo_n "(cached) " >&6
33353 fi
33354 ac_res=`eval 'as_val=${'$as_ac_Header'}
33355                  $as_echo "$as_val"'`
33356                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33357 $as_echo "$ac_res" >&6; }
33358 else
33359   # Is the header compilable?
33360 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33361 $as_echo_n "checking $ac_header usability... " >&6; }
33362 cat >conftest.$ac_ext <<_ACEOF
33363 /* confdefs.h.  */
33364 _ACEOF
33365 cat confdefs.h >>conftest.$ac_ext
33366 cat >>conftest.$ac_ext <<_ACEOF
33367 /* end confdefs.h.  */
33368 $ac_includes_default
33369 #include <$ac_header>
33370 _ACEOF
33371 rm -f conftest.$ac_objext
33372 if { (ac_try="$ac_compile"
33373 case "(($ac_try" in
33374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33375   *) ac_try_echo=$ac_try;;
33376 esac
33377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33378 $as_echo "$ac_try_echo") >&5
33379   (eval "$ac_compile") 2>conftest.er1
33380   ac_status=$?
33381   grep -v '^ *+' conftest.er1 >conftest.err
33382   rm -f conftest.er1
33383   cat conftest.err >&5
33384   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33385   (exit $ac_status); } && {
33386          test -z "$ac_c_werror_flag" ||
33387          test ! -s conftest.err
33388        } && test -s conftest.$ac_objext; then
33389   ac_header_compiler=yes
33390 else
33391   $as_echo "$as_me: failed program was:" >&5
33392 sed 's/^/| /' conftest.$ac_ext >&5
33393
33394         ac_header_compiler=no
33395 fi
33396
33397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33398 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33399 $as_echo "$ac_header_compiler" >&6; }
33400
33401 # Is the header present?
33402 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
33403 $as_echo_n "checking $ac_header presence... " >&6; }
33404 cat >conftest.$ac_ext <<_ACEOF
33405 /* confdefs.h.  */
33406 _ACEOF
33407 cat confdefs.h >>conftest.$ac_ext
33408 cat >>conftest.$ac_ext <<_ACEOF
33409 /* end confdefs.h.  */
33410 #include <$ac_header>
33411 _ACEOF
33412 if { (ac_try="$ac_cpp conftest.$ac_ext"
33413 case "(($ac_try" in
33414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33415   *) ac_try_echo=$ac_try;;
33416 esac
33417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33418 $as_echo "$ac_try_echo") >&5
33419   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33420   ac_status=$?
33421   grep -v '^ *+' conftest.er1 >conftest.err
33422   rm -f conftest.er1
33423   cat conftest.err >&5
33424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33425   (exit $ac_status); } >/dev/null && {
33426          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33427          test ! -s conftest.err
33428        }; then
33429   ac_header_preproc=yes
33430 else
33431   $as_echo "$as_me: failed program was:" >&5
33432 sed 's/^/| /' conftest.$ac_ext >&5
33433
33434   ac_header_preproc=no
33435 fi
33436
33437 rm -f conftest.err conftest.$ac_ext
33438 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33439 $as_echo "$ac_header_preproc" >&6; }
33440
33441 # So?  What about this header?
33442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33443   yes:no: )
33444     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33445 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33446     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33447 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33448     ac_header_preproc=yes
33449     ;;
33450   no:yes:* )
33451     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33452 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33453     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33454 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33455     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33456 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33457     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33458 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33459     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33460 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33461     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33462 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33463     ( cat <<\_ASBOX
33464 ## ------------------------------------ ##
33465 ## Report this to bug-coreutils@gnu.org ##
33466 ## ------------------------------------ ##
33467 _ASBOX
33468      ) | sed "s/^/$as_me: WARNING:     /" >&2
33469     ;;
33470 esac
33471 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33472 $as_echo_n "checking for $ac_header... " >&6; }
33473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33474   $as_echo_n "(cached) " >&6
33475 else
33476   eval "$as_ac_Header=\$ac_header_preproc"
33477 fi
33478 ac_res=`eval 'as_val=${'$as_ac_Header'}
33479                  $as_echo "$as_val"'`
33480                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33481 $as_echo "$ac_res" >&6; }
33482
33483 fi
33484 if test `eval 'as_val=${'$as_ac_Header'}
33485                  $as_echo "$as_val"'` = yes; then
33486   cat >>confdefs.h <<_ACEOF
33487 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33488 _ACEOF
33489
33490 fi
33491
33492 done
33493
33494       { $as_echo "$as_me:$LINENO: checking absolute name of <netinet/in.h>" >&5
33495 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
33496 if test "${gl_cv_absolute_netinet_in_h+set}" = set; then
33497   $as_echo_n "(cached) " >&6
33498 else
33499
33500
33501
33502
33503
33504     if test $ac_cv_header_netinet_in_h = yes; then
33505       cat >conftest.$ac_ext <<_ACEOF
33506 /* confdefs.h.  */
33507 _ACEOF
33508 cat confdefs.h >>conftest.$ac_ext
33509 cat >>conftest.$ac_ext <<_ACEOF
33510 /* end confdefs.h.  */
33511 #include <netinet/in.h>
33512 _ACEOF
33513       gl_cv_absolute_netinet_in_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33514 sed -n '\#/netinet/in.h#{s#.*"\(.*/netinet/in.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
33515     fi
33516
33517 fi
33518 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_netinet_in_h" >&5
33519 $as_echo "$gl_cv_absolute_netinet_in_h" >&6; }
33520 cat >>confdefs.h <<_ACEOF
33521 #define ABSOLUTE_NETINET_IN_H "$gl_cv_absolute_netinet_in_h"
33522 _ACEOF
33523
33524
33525     ABSOLUTE_NETINET_IN_H=\"$gl_cv_absolute_netinet_in_h\"
33526
33527     if test $ac_cv_header_netinet_in_h = yes; then
33528       HAVE_NETINET_IN_H=1
33529     else
33530       HAVE_NETINET_IN_H=0
33531     fi
33532
33533   fi
33534
33535
33536   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
33537 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
33538 if test -z "$MKDIR_P"; then
33539   if test "${ac_cv_path_mkdir+set}" = set; then
33540   $as_echo_n "(cached) " >&6
33541 else
33542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33543 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
33544 do
33545   IFS=$as_save_IFS
33546   test -z "$as_dir" && as_dir=.
33547   for ac_prog in mkdir gmkdir; do
33548          for ac_exec_ext in '' $ac_executable_extensions; do
33549            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
33550            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
33551              'mkdir (GNU coreutils) '* | \
33552              'mkdir (coreutils) '* | \
33553              'mkdir (fileutils) '4.1*)
33554                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
33555                break 3;;
33556            esac
33557          done
33558        done
33559 done
33560 IFS=$as_save_IFS
33561
33562 fi
33563
33564   if test "${ac_cv_path_mkdir+set}" = set; then
33565     MKDIR_P="$ac_cv_path_mkdir -p"
33566   else
33567     # As a last resort, use the slow shell script.  Don't cache a
33568     # value for MKDIR_P within a source directory, because that will
33569     # break other packages using the cache if that directory is
33570     # removed, or if the value is a relative name.
33571     test -d ./--version && rmdir ./--version
33572     MKDIR_P="$ac_install_sh -d"
33573   fi
33574 fi
33575 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
33576 $as_echo "$MKDIR_P" >&6; }
33577
33578   { $as_echo "$as_me:$LINENO: checking for obstacks" >&5
33579 $as_echo_n "checking for obstacks... " >&6; }
33580 if test "${ac_cv_func_obstack+set}" = set; then
33581   $as_echo_n "(cached) " >&6
33582 else
33583   cat >conftest.$ac_ext <<_ACEOF
33584 /* confdefs.h.  */
33585 _ACEOF
33586 cat confdefs.h >>conftest.$ac_ext
33587 cat >>conftest.$ac_ext <<_ACEOF
33588 /* end confdefs.h.  */
33589 $ac_includes_default
33590                       #include "obstack.h"
33591 int
33592 main ()
33593 {
33594 struct obstack mem;
33595                        #define obstack_chunk_alloc malloc
33596                        #define obstack_chunk_free free
33597                        obstack_init (&mem);
33598                        obstack_free (&mem, 0);
33599   ;
33600   return 0;
33601 }
33602 _ACEOF
33603 rm -f conftest.$ac_objext conftest$ac_exeext
33604 if { (ac_try="$ac_link"
33605 case "(($ac_try" in
33606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33607   *) ac_try_echo=$ac_try;;
33608 esac
33609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33610 $as_echo "$ac_try_echo") >&5
33611   (eval "$ac_link") 2>conftest.er1
33612   ac_status=$?
33613   grep -v '^ *+' conftest.er1 >conftest.err
33614   rm -f conftest.er1
33615   cat conftest.err >&5
33616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33617   (exit $ac_status); } && {
33618          test -z "$ac_c_werror_flag" ||
33619          test ! -s conftest.err
33620        } && test -s conftest$ac_exeext &&
33621        $as_test_x conftest$ac_exeext; then
33622   ac_cv_func_obstack=yes
33623 else
33624   $as_echo "$as_me: failed program was:" >&5
33625 sed 's/^/| /' conftest.$ac_ext >&5
33626
33627         ac_cv_func_obstack=no
33628 fi
33629
33630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33631       conftest$ac_exeext conftest.$ac_ext
33632 fi
33633 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
33634 $as_echo "$ac_cv_func_obstack" >&6; }
33635 if test $ac_cv_func_obstack = yes; then
33636
33637 cat >>confdefs.h <<\_ACEOF
33638 #define HAVE_OBSTACK 1
33639 _ACEOF
33640
33641 else
33642   gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext"
33643 fi
33644
33645
33646   gl_LIBOBJS="$gl_LIBOBJS openat-die.$ac_objext"
33647   gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
33648
33649
33650
33651
33652
33653
33654
33655
33656
33657
33658
33659
33660
33661
33662
33663
33664 for ac_func in fchmodat mkdirat openat
33665 do
33666 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33667 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33668 $as_echo_n "checking for $ac_func... " >&6; }
33669 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33670   $as_echo_n "(cached) " >&6
33671 else
33672   cat >conftest.$ac_ext <<_ACEOF
33673 /* confdefs.h.  */
33674 _ACEOF
33675 cat confdefs.h >>conftest.$ac_ext
33676 cat >>conftest.$ac_ext <<_ACEOF
33677 /* end confdefs.h.  */
33678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33679    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33680 #define $ac_func innocuous_$ac_func
33681
33682 /* System header to define __stub macros and hopefully few prototypes,
33683     which can conflict with char $ac_func (); below.
33684     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33685     <limits.h> exists even on freestanding compilers.  */
33686
33687 #ifdef __STDC__
33688 # include <limits.h>
33689 #else
33690 # include <assert.h>
33691 #endif
33692
33693 #undef $ac_func
33694
33695 /* Override any GCC internal prototype to avoid an error.
33696    Use char because int might match the return type of a GCC
33697    builtin and then its argument prototype would still apply.  */
33698 #ifdef __cplusplus
33699 extern "C"
33700 #endif
33701 char $ac_func ();
33702 /* The GNU C library defines this for functions which it implements
33703     to always fail with ENOSYS.  Some functions are actually named
33704     something starting with __ and the normal name is an alias.  */
33705 #if defined __stub_$ac_func || defined __stub___$ac_func
33706 choke me
33707 #endif
33708
33709 int
33710 main ()
33711 {
33712 return $ac_func ();
33713   ;
33714   return 0;
33715 }
33716 _ACEOF
33717 rm -f conftest.$ac_objext conftest$ac_exeext
33718 if { (ac_try="$ac_link"
33719 case "(($ac_try" in
33720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33721   *) ac_try_echo=$ac_try;;
33722 esac
33723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33724 $as_echo "$ac_try_echo") >&5
33725   (eval "$ac_link") 2>conftest.er1
33726   ac_status=$?
33727   grep -v '^ *+' conftest.er1 >conftest.err
33728   rm -f conftest.er1
33729   cat conftest.err >&5
33730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33731   (exit $ac_status); } && {
33732          test -z "$ac_c_werror_flag" ||
33733          test ! -s conftest.err
33734        } && test -s conftest$ac_exeext &&
33735        $as_test_x conftest$ac_exeext; then
33736   eval "$as_ac_var=yes"
33737 else
33738   $as_echo "$as_me: failed program was:" >&5
33739 sed 's/^/| /' conftest.$ac_ext >&5
33740
33741         eval "$as_ac_var=no"
33742 fi
33743
33744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33745       conftest$ac_exeext conftest.$ac_ext
33746 fi
33747 ac_res=`eval 'as_val=${'$as_ac_var'}
33748                  $as_echo "$as_val"'`
33749                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33750 $as_echo "$ac_res" >&6; }
33751 if test `eval 'as_val=${'$as_ac_var'}
33752                  $as_echo "$as_val"'` = yes; then
33753   cat >>confdefs.h <<_ACEOF
33754 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33755 _ACEOF
33756
33757 else
33758   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
33759 fi
33760 done
33761
33762   case $ac_cv_func_openat+$ac_cv_func_lstat_dereferences_slashed_symlink in
33763   yes+yes) ;;
33764   yes+*) gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext";;
33765   *)
33766
33767 cat >>confdefs.h <<\_ACEOF
33768 #define __OPENAT_PREFIX rpl_
33769 _ACEOF
33770
33771
33772   :
33773 ;;
33774   esac
33775
33776   # Assume we'll use the replacement function.
33777   # The only case in which we won't is when we have fchownat, and it works.
33778   use_replacement_fchownat=yes
33779
33780   { $as_echo "$as_me:$LINENO: checking for fchownat" >&5
33781 $as_echo_n "checking for fchownat... " >&6; }
33782 if test "${ac_cv_func_fchownat+set}" = set; then
33783   $as_echo_n "(cached) " >&6
33784 else
33785   cat >conftest.$ac_ext <<_ACEOF
33786 /* confdefs.h.  */
33787 _ACEOF
33788 cat confdefs.h >>conftest.$ac_ext
33789 cat >>conftest.$ac_ext <<_ACEOF
33790 /* end confdefs.h.  */
33791 /* Define fchownat to an innocuous variant, in case <limits.h> declares fchownat.
33792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33793 #define fchownat innocuous_fchownat
33794
33795 /* System header to define __stub macros and hopefully few prototypes,
33796     which can conflict with char fchownat (); below.
33797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33798     <limits.h> exists even on freestanding compilers.  */
33799
33800 #ifdef __STDC__
33801 # include <limits.h>
33802 #else
33803 # include <assert.h>
33804 #endif
33805
33806 #undef fchownat
33807
33808 /* Override any GCC internal prototype to avoid an error.
33809    Use char because int might match the return type of a GCC
33810    builtin and then its argument prototype would still apply.  */
33811 #ifdef __cplusplus
33812 extern "C"
33813 #endif
33814 char fchownat ();
33815 /* The GNU C library defines this for functions which it implements
33816     to always fail with ENOSYS.  Some functions are actually named
33817     something starting with __ and the normal name is an alias.  */
33818 #if defined __stub_fchownat || defined __stub___fchownat
33819 choke me
33820 #endif
33821
33822 int
33823 main ()
33824 {
33825 return fchownat ();
33826   ;
33827   return 0;
33828 }
33829 _ACEOF
33830 rm -f conftest.$ac_objext conftest$ac_exeext
33831 if { (ac_try="$ac_link"
33832 case "(($ac_try" in
33833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33834   *) ac_try_echo=$ac_try;;
33835 esac
33836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33837 $as_echo "$ac_try_echo") >&5
33838   (eval "$ac_link") 2>conftest.er1
33839   ac_status=$?
33840   grep -v '^ *+' conftest.er1 >conftest.err
33841   rm -f conftest.er1
33842   cat conftest.err >&5
33843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33844   (exit $ac_status); } && {
33845          test -z "$ac_c_werror_flag" ||
33846          test ! -s conftest.err
33847        } && test -s conftest$ac_exeext &&
33848        $as_test_x conftest$ac_exeext; then
33849   ac_cv_func_fchownat=yes
33850 else
33851   $as_echo "$as_me: failed program was:" >&5
33852 sed 's/^/| /' conftest.$ac_ext >&5
33853
33854         ac_cv_func_fchownat=no
33855 fi
33856
33857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33858       conftest$ac_exeext conftest.$ac_ext
33859 fi
33860 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fchownat" >&5
33861 $as_echo "$ac_cv_func_fchownat" >&6; }
33862 if test $ac_cv_func_fchownat = yes; then
33863   have_fchownat=yes
33864 else
33865   have_fchownat=no
33866 fi
33867
33868   if test $have_fchownat = yes; then
33869
33870   { $as_echo "$as_me:$LINENO: checking whether fchownat works with AT_SYMLINK_NOFOLLOW" >&5
33871 $as_echo_n "checking whether fchownat works with AT_SYMLINK_NOFOLLOW... " >&6; }
33872 if test "${gl_cv_func_fchownat_nofollow_works+set}" = set; then
33873   $as_echo_n "(cached) " >&6
33874 else
33875
33876      gl_dangle=conftest.dangle
33877      # Remove any remnants of a previous test.
33878      rm -f $gl_dangle
33879      # Arrange for deletion of the temporary file this test creates.
33880      ac_clean_files="$ac_clean_files $gl_dangle"
33881      if test "$cross_compiling" = yes; then
33882   gl_cv_func_fchownat_nofollow_works=no
33883 else
33884   cat >conftest.$ac_ext <<_ACEOF
33885 /* confdefs.h.  */
33886 _ACEOF
33887 cat confdefs.h >>conftest.$ac_ext
33888 cat >>conftest.$ac_ext <<_ACEOF
33889 /* end confdefs.h.  */
33890
33891 #include <fcntl.h>
33892 #include <unistd.h>
33893 #include <stdlib.h>
33894 #include <errno.h>
33895 #include <sys/types.h>
33896 int
33897 main ()
33898 {
33899   return (fchownat (AT_FDCWD, "$gl_dangle", -1, getgid (),
33900                     AT_SYMLINK_NOFOLLOW) != 0
33901           && errno == ENOENT);
33902 }
33903
33904 _ACEOF
33905 rm -f conftest$ac_exeext
33906 if { (ac_try="$ac_link"
33907 case "(($ac_try" in
33908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33909   *) ac_try_echo=$ac_try;;
33910 esac
33911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33912 $as_echo "$ac_try_echo") >&5
33913   (eval "$ac_link") 2>&5
33914   ac_status=$?
33915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33916   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33917   { (case "(($ac_try" in
33918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33919   *) ac_try_echo=$ac_try;;
33920 esac
33921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33922 $as_echo "$ac_try_echo") >&5
33923   (eval "$ac_try") 2>&5
33924   ac_status=$?
33925   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33926   (exit $ac_status); }; }; then
33927   gl_cv_func_fchownat_nofollow_works=yes
33928 else
33929   $as_echo "$as_me: program exited with status $ac_status" >&5
33930 $as_echo "$as_me: failed program was:" >&5
33931 sed 's/^/| /' conftest.$ac_ext >&5
33932
33933 ( exit $ac_status )
33934 gl_cv_func_fchownat_nofollow_works=no
33935 fi
33936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33937 fi
33938
33939
33940
33941 fi
33942 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fchownat_nofollow_works" >&5
33943 $as_echo "$gl_cv_func_fchownat_nofollow_works" >&6; }
33944   if test $gl_cv_func_fchownat_nofollow_works = no; then
33945   have_fchownat_bug=yes
33946 fi
33947
33948
33949     if test $have_fchownat_bug = no; then
33950       use_replacement_fchownat=no
33951     fi
33952   fi
33953
33954   if test $use_replacement_fchownat = yes; then
33955     gl_LIBOBJS="$gl_LIBOBJS fchownat.$ac_objext"
33956
33957 cat >>confdefs.h <<\_ACEOF
33958 #define fchownat rpl_fchownat
33959 _ACEOF
33960
33961   fi
33962
33963
33964
33965
33966
33967
33968
33969
33970
33971
33972
33973     { $as_echo "$as_me:$LINENO: checking for perl5.005 or newer" >&5
33974 $as_echo_n "checking for perl5.005 or newer... " >&6; }
33975   if test "${PERL+set}" = set; then
33976     # `PERL' is set in the user's environment.
33977     candidate_perl_names="$PERL"
33978     perl_specified=yes
33979   else
33980     candidate_perl_names='perl perl5'
33981     perl_specified=no
33982   fi
33983
33984   found=no
33985
33986   PERL="$am_missing_run perl"
33987   for perl in $candidate_perl_names; do
33988     # Run test in a subshell; some versions of sh will print an error if
33989     # an executable is not found, even if stderr is redirected.
33990     if ( $perl -e 'require 5.005; use File::Compare' ) > /dev/null 2>&1; then
33991       PERL=$perl
33992       found=yes
33993       break
33994     fi
33995   done
33996
33997   { $as_echo "$as_me:$LINENO: result: $found" >&5
33998 $as_echo "$found" >&6; }
33999   test $found = no && { $as_echo "$as_me:$LINENO: WARNING:
34000 WARNING: You don't seem to have perl5.005 or newer installed, or you lack
34001          a usable version of the Perl File::Compare module.  As a result,
34002          you may be unable to run a few tests or to regenerate certain
34003          files if you modify the sources from which they are derived.
34004  " >&5
34005 $as_echo "$as_me: WARNING:
34006 WARNING: You don't seem to have perl5.005 or newer installed, or you lack
34007          a usable version of the Perl File::Compare module.  As a result,
34008          you may be unable to run a few tests or to regenerate certain
34009          files if you modify the sources from which they are derived.
34010  " >&2;}
34011
34012
34013   gl_LIBOBJS="$gl_LIBOBJS physmem.$ac_objext"
34014
34015   # Prerequisites of lib/physmem.c.
34016
34017
34018
34019
34020
34021
34022
34023
34024 for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
34025     machine/hal_sysinfo.h sys/table.h sys/param.h sys/sysctl.h \
34026     sys/systemcfg.h
34027 do
34028 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34029 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34030 $as_echo_n "checking for $ac_header... " >&6; }
34031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34032   $as_echo_n "(cached) " >&6
34033 else
34034   cat >conftest.$ac_ext <<_ACEOF
34035 /* confdefs.h.  */
34036 _ACEOF
34037 cat confdefs.h >>conftest.$ac_ext
34038 cat >>conftest.$ac_ext <<_ACEOF
34039 /* end confdefs.h.  */
34040 $ac_includes_default
34041
34042 #include <$ac_header>
34043 _ACEOF
34044 rm -f conftest.$ac_objext
34045 if { (ac_try="$ac_compile"
34046 case "(($ac_try" in
34047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34048   *) ac_try_echo=$ac_try;;
34049 esac
34050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34051 $as_echo "$ac_try_echo") >&5
34052   (eval "$ac_compile") 2>conftest.er1
34053   ac_status=$?
34054   grep -v '^ *+' conftest.er1 >conftest.err
34055   rm -f conftest.er1
34056   cat conftest.err >&5
34057   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34058   (exit $ac_status); } && {
34059          test -z "$ac_c_werror_flag" ||
34060          test ! -s conftest.err
34061        } && test -s conftest.$ac_objext; then
34062   eval "$as_ac_Header=yes"
34063 else
34064   $as_echo "$as_me: failed program was:" >&5
34065 sed 's/^/| /' conftest.$ac_ext >&5
34066
34067         eval "$as_ac_Header=no"
34068 fi
34069
34070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34071 fi
34072 ac_res=`eval 'as_val=${'$as_ac_Header'}
34073                  $as_echo "$as_val"'`
34074                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34075 $as_echo "$ac_res" >&6; }
34076 if test `eval 'as_val=${'$as_ac_Header'}
34077                  $as_echo "$as_val"'` = yes; then
34078   cat >>confdefs.h <<_ACEOF
34079 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34080 _ACEOF
34081
34082 fi
34083
34084 done
34085
34086
34087
34088
34089
34090
34091
34092
34093 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
34094 do
34095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34096 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
34097 $as_echo_n "checking for $ac_func... " >&6; }
34098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34099   $as_echo_n "(cached) " >&6
34100 else
34101   cat >conftest.$ac_ext <<_ACEOF
34102 /* confdefs.h.  */
34103 _ACEOF
34104 cat confdefs.h >>conftest.$ac_ext
34105 cat >>conftest.$ac_ext <<_ACEOF
34106 /* end confdefs.h.  */
34107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34108    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34109 #define $ac_func innocuous_$ac_func
34110
34111 /* System header to define __stub macros and hopefully few prototypes,
34112     which can conflict with char $ac_func (); below.
34113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34114     <limits.h> exists even on freestanding compilers.  */
34115
34116 #ifdef __STDC__
34117 # include <limits.h>
34118 #else
34119 # include <assert.h>
34120 #endif
34121
34122 #undef $ac_func
34123
34124 /* Override any GCC internal prototype to avoid an error.
34125    Use char because int might match the return type of a GCC
34126    builtin and then its argument prototype would still apply.  */
34127 #ifdef __cplusplus
34128 extern "C"
34129 #endif
34130 char $ac_func ();
34131 /* The GNU C library defines this for functions which it implements
34132     to always fail with ENOSYS.  Some functions are actually named
34133     something starting with __ and the normal name is an alias.  */
34134 #if defined __stub_$ac_func || defined __stub___$ac_func
34135 choke me
34136 #endif
34137
34138 int
34139 main ()
34140 {
34141 return $ac_func ();
34142   ;
34143   return 0;
34144 }
34145 _ACEOF
34146 rm -f conftest.$ac_objext conftest$ac_exeext
34147 if { (ac_try="$ac_link"
34148 case "(($ac_try" in
34149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34150   *) ac_try_echo=$ac_try;;
34151 esac
34152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34153 $as_echo "$ac_try_echo") >&5
34154   (eval "$ac_link") 2>conftest.er1
34155   ac_status=$?
34156   grep -v '^ *+' conftest.er1 >conftest.err
34157   rm -f conftest.er1
34158   cat conftest.err >&5
34159   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34160   (exit $ac_status); } && {
34161          test -z "$ac_c_werror_flag" ||
34162          test ! -s conftest.err
34163        } && test -s conftest$ac_exeext &&
34164        $as_test_x conftest$ac_exeext; then
34165   eval "$as_ac_var=yes"
34166 else
34167   $as_echo "$as_me: failed program was:" >&5
34168 sed 's/^/| /' conftest.$ac_ext >&5
34169
34170         eval "$as_ac_var=no"
34171 fi
34172
34173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34174       conftest$ac_exeext conftest.$ac_ext
34175 fi
34176 ac_res=`eval 'as_val=${'$as_ac_var'}
34177                  $as_echo "$as_val"'`
34178                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34179 $as_echo "$ac_res" >&6; }
34180 if test `eval 'as_val=${'$as_ac_var'}
34181                  $as_echo "$as_val"'` = yes; then
34182   cat >>confdefs.h <<_ACEOF
34183 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34184 _ACEOF
34185
34186 fi
34187 done
34188
34189
34190
34191
34192   gl_LIBOBJS="$gl_LIBOBJS posixtm.$ac_objext"
34193
34194
34195
34196   gl_LIBOBJS="$gl_LIBOBJS posixver.$ac_objext"
34197
34198
34199
34200   { $as_echo "$as_me:$LINENO: checking for SVID conformant putenv" >&5
34201 $as_echo_n "checking for SVID conformant putenv... " >&6; }
34202 if test "${jm_cv_func_svid_putenv+set}" = set; then
34203   $as_echo_n "(cached) " >&6
34204 else
34205   if test "$cross_compiling" = yes; then
34206              jm_cv_func_svid_putenv=no
34207 else
34208   cat >conftest.$ac_ext <<_ACEOF
34209 /* confdefs.h.  */
34210 _ACEOF
34211 cat confdefs.h >>conftest.$ac_ext
34212 cat >>conftest.$ac_ext <<_ACEOF
34213 /* end confdefs.h.  */
34214 $ac_includes_default
34215 int
34216 main ()
34217 {
34218
34219     /* Put it in env.  */
34220     if (putenv ("CONFTEST_putenv=val"))
34221       return 1;
34222
34223     /* Try to remove it.  */
34224     if (putenv ("CONFTEST_putenv"))
34225       return 1;
34226
34227     /* Make sure it was deleted.  */
34228     if (getenv ("CONFTEST_putenv") != 0)
34229       return 1;
34230
34231     return 0;
34232
34233   ;
34234   return 0;
34235 }
34236 _ACEOF
34237 rm -f conftest$ac_exeext
34238 if { (ac_try="$ac_link"
34239 case "(($ac_try" in
34240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34241   *) ac_try_echo=$ac_try;;
34242 esac
34243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34244 $as_echo "$ac_try_echo") >&5
34245   (eval "$ac_link") 2>&5
34246   ac_status=$?
34247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34248   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34249   { (case "(($ac_try" in
34250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34251   *) ac_try_echo=$ac_try;;
34252 esac
34253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34254 $as_echo "$ac_try_echo") >&5
34255   (eval "$ac_try") 2>&5
34256   ac_status=$?
34257   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34258   (exit $ac_status); }; }; then
34259   jm_cv_func_svid_putenv=yes
34260 else
34261   $as_echo "$as_me: program exited with status $ac_status" >&5
34262 $as_echo "$as_me: failed program was:" >&5
34263 sed 's/^/| /' conftest.$ac_ext >&5
34264
34265 ( exit $ac_status )
34266 jm_cv_func_svid_putenv=no
34267 fi
34268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34269 fi
34270
34271
34272
34273 fi
34274 { $as_echo "$as_me:$LINENO: result: $jm_cv_func_svid_putenv" >&5
34275 $as_echo "$jm_cv_func_svid_putenv" >&6; }
34276   if test $jm_cv_func_svid_putenv = no; then
34277     gl_LIBOBJS="$gl_LIBOBJS putenv.$ac_objext"
34278
34279 cat >>confdefs.h <<\_ACEOF
34280 #define putenv rpl_putenv
34281 _ACEOF
34282
34283   fi
34284
34285
34286   gl_LIBOBJS="$gl_LIBOBJS quote.$ac_objext"
34287
34288
34289
34290   gl_LIBOBJS="$gl_LIBOBJS quotearg.$ac_objext"
34291
34292
34293
34294
34295
34296
34297
34298   { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
34299 $as_echo_n "checking for mbstate_t... " >&6; }
34300 if test "${ac_cv_type_mbstate_t+set}" = set; then
34301   $as_echo_n "(cached) " >&6
34302 else
34303   cat >conftest.$ac_ext <<_ACEOF
34304 /* confdefs.h.  */
34305 _ACEOF
34306 cat confdefs.h >>conftest.$ac_ext
34307 cat >>conftest.$ac_ext <<_ACEOF
34308 /* end confdefs.h.  */
34309 $ac_includes_default
34310 #           include <wchar.h>
34311 int
34312 main ()
34313 {
34314 mbstate_t x; return sizeof x;
34315   ;
34316   return 0;
34317 }
34318 _ACEOF
34319 rm -f conftest.$ac_objext
34320 if { (ac_try="$ac_compile"
34321 case "(($ac_try" in
34322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34323   *) ac_try_echo=$ac_try;;
34324 esac
34325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34326 $as_echo "$ac_try_echo") >&5
34327   (eval "$ac_compile") 2>conftest.er1
34328   ac_status=$?
34329   grep -v '^ *+' conftest.er1 >conftest.err
34330   rm -f conftest.er1
34331   cat conftest.err >&5
34332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34333   (exit $ac_status); } && {
34334          test -z "$ac_c_werror_flag" ||
34335          test ! -s conftest.err
34336        } && test -s conftest.$ac_objext; then
34337   ac_cv_type_mbstate_t=yes
34338 else
34339   $as_echo "$as_me: failed program was:" >&5
34340 sed 's/^/| /' conftest.$ac_ext >&5
34341
34342         ac_cv_type_mbstate_t=no
34343 fi
34344
34345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34346 fi
34347 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34348 $as_echo "$ac_cv_type_mbstate_t" >&6; }
34349    if test $ac_cv_type_mbstate_t = yes; then
34350
34351 cat >>confdefs.h <<\_ACEOF
34352 #define HAVE_MBSTATE_T 1
34353 _ACEOF
34354
34355    else
34356
34357 cat >>confdefs.h <<\_ACEOF
34358 #define mbstate_t int
34359 _ACEOF
34360
34361    fi
34362
34363     { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
34364 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
34365 if test "${gl_cv_func_mbrtowc+set}" = set; then
34366   $as_echo_n "(cached) " >&6
34367 else
34368   cat >conftest.$ac_ext <<_ACEOF
34369 /* confdefs.h.  */
34370 _ACEOF
34371 cat confdefs.h >>conftest.$ac_ext
34372 cat >>conftest.$ac_ext <<_ACEOF
34373 /* end confdefs.h.  */
34374 #include <wchar.h>
34375 int
34376 main ()
34377 {
34378 wchar_t wc;
34379               char const s[] = "";
34380               size_t n = 1;
34381               mbstate_t state;
34382               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
34383   ;
34384   return 0;
34385 }
34386 _ACEOF
34387 rm -f conftest.$ac_objext conftest$ac_exeext
34388 if { (ac_try="$ac_link"
34389 case "(($ac_try" in
34390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34391   *) ac_try_echo=$ac_try;;
34392 esac
34393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34394 $as_echo "$ac_try_echo") >&5
34395   (eval "$ac_link") 2>conftest.er1
34396   ac_status=$?
34397   grep -v '^ *+' conftest.er1 >conftest.err
34398   rm -f conftest.er1
34399   cat conftest.err >&5
34400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34401   (exit $ac_status); } && {
34402          test -z "$ac_c_werror_flag" ||
34403          test ! -s conftest.err
34404        } && test -s conftest$ac_exeext &&
34405        $as_test_x conftest$ac_exeext; then
34406   gl_cv_func_mbrtowc=yes
34407 else
34408   $as_echo "$as_me: failed program was:" >&5
34409 sed 's/^/| /' conftest.$ac_ext >&5
34410
34411         gl_cv_func_mbrtowc=no
34412 fi
34413
34414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34415       conftest$ac_exeext conftest.$ac_ext
34416 fi
34417 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
34418 $as_echo "$gl_cv_func_mbrtowc" >&6; }
34419   if test $gl_cv_func_mbrtowc = yes; then
34420
34421 cat >>confdefs.h <<\_ACEOF
34422 #define HAVE_MBRTOWC 1
34423 _ACEOF
34424
34425   fi
34426
34427
34428
34429 for ac_func in raise
34430 do
34431 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34432 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
34433 $as_echo_n "checking for $ac_func... " >&6; }
34434 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34435   $as_echo_n "(cached) " >&6
34436 else
34437   cat >conftest.$ac_ext <<_ACEOF
34438 /* confdefs.h.  */
34439 _ACEOF
34440 cat confdefs.h >>conftest.$ac_ext
34441 cat >>conftest.$ac_ext <<_ACEOF
34442 /* end confdefs.h.  */
34443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34444    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34445 #define $ac_func innocuous_$ac_func
34446
34447 /* System header to define __stub macros and hopefully few prototypes,
34448     which can conflict with char $ac_func (); below.
34449     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34450     <limits.h> exists even on freestanding compilers.  */
34451
34452 #ifdef __STDC__
34453 # include <limits.h>
34454 #else
34455 # include <assert.h>
34456 #endif
34457
34458 #undef $ac_func
34459
34460 /* Override any GCC internal prototype to avoid an error.
34461    Use char because int might match the return type of a GCC
34462    builtin and then its argument prototype would still apply.  */
34463 #ifdef __cplusplus
34464 extern "C"
34465 #endif
34466 char $ac_func ();
34467 /* The GNU C library defines this for functions which it implements
34468     to always fail with ENOSYS.  Some functions are actually named
34469     something starting with __ and the normal name is an alias.  */
34470 #if defined __stub_$ac_func || defined __stub___$ac_func
34471 choke me
34472 #endif
34473
34474 int
34475 main ()
34476 {
34477 return $ac_func ();
34478   ;
34479   return 0;
34480 }
34481 _ACEOF
34482 rm -f conftest.$ac_objext conftest$ac_exeext
34483 if { (ac_try="$ac_link"
34484 case "(($ac_try" in
34485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34486   *) ac_try_echo=$ac_try;;
34487 esac
34488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34489 $as_echo "$ac_try_echo") >&5
34490   (eval "$ac_link") 2>conftest.er1
34491   ac_status=$?
34492   grep -v '^ *+' conftest.er1 >conftest.err
34493   rm -f conftest.er1
34494   cat conftest.err >&5
34495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34496   (exit $ac_status); } && {
34497          test -z "$ac_c_werror_flag" ||
34498          test ! -s conftest.err
34499        } && test -s conftest$ac_exeext &&
34500        $as_test_x conftest$ac_exeext; then
34501   eval "$as_ac_var=yes"
34502 else
34503   $as_echo "$as_me: failed program was:" >&5
34504 sed 's/^/| /' conftest.$ac_ext >&5
34505
34506         eval "$as_ac_var=no"
34507 fi
34508
34509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34510       conftest$ac_exeext conftest.$ac_ext
34511 fi
34512 ac_res=`eval 'as_val=${'$as_ac_var'}
34513                  $as_echo "$as_val"'`
34514                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34515 $as_echo "$ac_res" >&6; }
34516 if test `eval 'as_val=${'$as_ac_var'}
34517                  $as_echo "$as_val"'` = yes; then
34518   cat >>confdefs.h <<_ACEOF
34519 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34520 _ACEOF
34521
34522 else
34523   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
34524 fi
34525 done
34526
34527
34528
34529
34530
34531
34532
34533
34534
34535   if test $ac_cv_func_readlink = no; then
34536     HAVE_READLINK=0
34537     gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
34538
34539   :
34540
34541   fi
34542
34543
34544
34545   GNULIB_READLINK=1
34546
34547
34548   gl_LIBOBJS="$gl_LIBOBJS readtokens.$ac_objext"
34549
34550     :
34551
34552
34553
34554
34555
34556
34557
34558
34559
34560
34561
34562
34563   if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
34564     gl_LIBOBJS="$gl_LIBOBJS readutmp.$ac_objext"
34565
34566
34567
34568
34569
34570
34571
34572
34573
34574
34575
34576     { $as_echo "$as_me:$LINENO: checking whether getutent is declared" >&5
34577 $as_echo_n "checking whether getutent is declared... " >&6; }
34578 if test "${ac_cv_have_decl_getutent+set}" = set; then
34579   $as_echo_n "(cached) " >&6
34580 else
34581   cat >conftest.$ac_ext <<_ACEOF
34582 /* confdefs.h.  */
34583 _ACEOF
34584 cat confdefs.h >>conftest.$ac_ext
34585 cat >>conftest.$ac_ext <<_ACEOF
34586 /* end confdefs.h.  */
34587
34588 #ifdef HAVE_UTMP_H
34589 # include <utmp.h>
34590 #endif
34591
34592
34593 int
34594 main ()
34595 {
34596 #ifndef getutent
34597   (void) getutent;
34598 #endif
34599
34600   ;
34601   return 0;
34602 }
34603 _ACEOF
34604 rm -f conftest.$ac_objext
34605 if { (ac_try="$ac_compile"
34606 case "(($ac_try" in
34607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34608   *) ac_try_echo=$ac_try;;
34609 esac
34610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34611 $as_echo "$ac_try_echo") >&5
34612   (eval "$ac_compile") 2>conftest.er1
34613   ac_status=$?
34614   grep -v '^ *+' conftest.er1 >conftest.err
34615   rm -f conftest.er1
34616   cat conftest.err >&5
34617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34618   (exit $ac_status); } && {
34619          test -z "$ac_c_werror_flag" ||
34620          test ! -s conftest.err
34621        } && test -s conftest.$ac_objext; then
34622   ac_cv_have_decl_getutent=yes
34623 else
34624   $as_echo "$as_me: failed program was:" >&5
34625 sed 's/^/| /' conftest.$ac_ext >&5
34626
34627         ac_cv_have_decl_getutent=no
34628 fi
34629
34630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34631 fi
34632 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
34633 $as_echo "$ac_cv_have_decl_getutent" >&6; }
34634 if test $ac_cv_have_decl_getutent = yes; then
34635
34636 cat >>confdefs.h <<_ACEOF
34637 #define HAVE_DECL_GETUTENT 1
34638 _ACEOF
34639
34640
34641 else
34642   cat >>confdefs.h <<_ACEOF
34643 #define HAVE_DECL_GETUTENT 0
34644 _ACEOF
34645
34646
34647 fi
34648
34649
34650     utmp_includes="\
34651 $ac_includes_default
34652 #ifdef HAVE_UTMPX_H
34653 # include <utmpx.h>
34654 #endif
34655 #ifdef HAVE_UTMP_H
34656 # if defined _THREAD_SAFE && defined UTMP_DATA_INIT
34657    /* When including both utmp.h and utmpx.h on AIX 4.3, with _THREAD_SAFE
34658       defined, work around the duplicate struct utmp_data declaration.  */
34659 #  define utmp_data gl_aix_4_3_workaround_utmp_data
34660 # endif
34661 # include <utmp.h>
34662 #endif
34663 "
34664     { $as_echo "$as_me:$LINENO: checking for struct utmpx.ut_user" >&5
34665 $as_echo_n "checking for struct utmpx.ut_user... " >&6; }
34666 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
34667   $as_echo_n "(cached) " >&6
34668 else
34669   cat >conftest.$ac_ext <<_ACEOF
34670 /* confdefs.h.  */
34671 _ACEOF
34672 cat confdefs.h >>conftest.$ac_ext
34673 cat >>conftest.$ac_ext <<_ACEOF
34674 /* end confdefs.h.  */
34675 $utmp_includes
34676
34677 int
34678 main ()
34679 {
34680 static struct utmpx ac_aggr;
34681 if (ac_aggr.ut_user)
34682 return 0;
34683   ;
34684   return 0;
34685 }
34686 _ACEOF
34687 rm -f conftest.$ac_objext
34688 if { (ac_try="$ac_compile"
34689 case "(($ac_try" in
34690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34691   *) ac_try_echo=$ac_try;;
34692 esac
34693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34694 $as_echo "$ac_try_echo") >&5
34695   (eval "$ac_compile") 2>conftest.er1
34696   ac_status=$?
34697   grep -v '^ *+' conftest.er1 >conftest.err
34698   rm -f conftest.er1
34699   cat conftest.err >&5
34700   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34701   (exit $ac_status); } && {
34702          test -z "$ac_c_werror_flag" ||
34703          test ! -s conftest.err
34704        } && test -s conftest.$ac_objext; then
34705   ac_cv_member_struct_utmpx_ut_user=yes
34706 else
34707   $as_echo "$as_me: failed program was:" >&5
34708 sed 's/^/| /' conftest.$ac_ext >&5
34709
34710         cat >conftest.$ac_ext <<_ACEOF
34711 /* confdefs.h.  */
34712 _ACEOF
34713 cat confdefs.h >>conftest.$ac_ext
34714 cat >>conftest.$ac_ext <<_ACEOF
34715 /* end confdefs.h.  */
34716 $utmp_includes
34717
34718 int
34719 main ()
34720 {
34721 static struct utmpx ac_aggr;
34722 if (sizeof ac_aggr.ut_user)
34723 return 0;
34724   ;
34725   return 0;
34726 }
34727 _ACEOF
34728 rm -f conftest.$ac_objext
34729 if { (ac_try="$ac_compile"
34730 case "(($ac_try" in
34731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34732   *) ac_try_echo=$ac_try;;
34733 esac
34734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34735 $as_echo "$ac_try_echo") >&5
34736   (eval "$ac_compile") 2>conftest.er1
34737   ac_status=$?
34738   grep -v '^ *+' conftest.er1 >conftest.err
34739   rm -f conftest.er1
34740   cat conftest.err >&5
34741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34742   (exit $ac_status); } && {
34743          test -z "$ac_c_werror_flag" ||
34744          test ! -s conftest.err
34745        } && test -s conftest.$ac_objext; then
34746   ac_cv_member_struct_utmpx_ut_user=yes
34747 else
34748   $as_echo "$as_me: failed program was:" >&5
34749 sed 's/^/| /' conftest.$ac_ext >&5
34750
34751         ac_cv_member_struct_utmpx_ut_user=no
34752 fi
34753
34754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34755 fi
34756
34757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34758 fi
34759 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_user" >&5
34760 $as_echo "$ac_cv_member_struct_utmpx_ut_user" >&6; }
34761 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
34762
34763 cat >>confdefs.h <<_ACEOF
34764 #define HAVE_STRUCT_UTMPX_UT_USER 1
34765 _ACEOF
34766
34767
34768 fi
34769
34770     { $as_echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
34771 $as_echo_n "checking for struct utmp.ut_user... " >&6; }
34772 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
34773   $as_echo_n "(cached) " >&6
34774 else
34775   cat >conftest.$ac_ext <<_ACEOF
34776 /* confdefs.h.  */
34777 _ACEOF
34778 cat confdefs.h >>conftest.$ac_ext
34779 cat >>conftest.$ac_ext <<_ACEOF
34780 /* end confdefs.h.  */
34781 $utmp_includes
34782
34783 int
34784 main ()
34785 {
34786 static struct utmp ac_aggr;
34787 if (ac_aggr.ut_user)
34788 return 0;
34789   ;
34790   return 0;
34791 }
34792 _ACEOF
34793 rm -f conftest.$ac_objext
34794 if { (ac_try="$ac_compile"
34795 case "(($ac_try" in
34796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34797   *) ac_try_echo=$ac_try;;
34798 esac
34799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34800 $as_echo "$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   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34807   (exit $ac_status); } && {
34808          test -z "$ac_c_werror_flag" ||
34809          test ! -s conftest.err
34810        } && test -s conftest.$ac_objext; then
34811   ac_cv_member_struct_utmp_ut_user=yes
34812 else
34813   $as_echo "$as_me: failed program was:" >&5
34814 sed 's/^/| /' conftest.$ac_ext >&5
34815
34816         cat >conftest.$ac_ext <<_ACEOF
34817 /* confdefs.h.  */
34818 _ACEOF
34819 cat confdefs.h >>conftest.$ac_ext
34820 cat >>conftest.$ac_ext <<_ACEOF
34821 /* end confdefs.h.  */
34822 $utmp_includes
34823
34824 int
34825 main ()
34826 {
34827 static struct utmp ac_aggr;
34828 if (sizeof ac_aggr.ut_user)
34829 return 0;
34830   ;
34831   return 0;
34832 }
34833 _ACEOF
34834 rm -f conftest.$ac_objext
34835 if { (ac_try="$ac_compile"
34836 case "(($ac_try" in
34837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34838   *) ac_try_echo=$ac_try;;
34839 esac
34840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34841 $as_echo "$ac_try_echo") >&5
34842   (eval "$ac_compile") 2>conftest.er1
34843   ac_status=$?
34844   grep -v '^ *+' conftest.er1 >conftest.err
34845   rm -f conftest.er1
34846   cat conftest.err >&5
34847   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34848   (exit $ac_status); } && {
34849          test -z "$ac_c_werror_flag" ||
34850          test ! -s conftest.err
34851        } && test -s conftest.$ac_objext; then
34852   ac_cv_member_struct_utmp_ut_user=yes
34853 else
34854   $as_echo "$as_me: failed program was:" >&5
34855 sed 's/^/| /' conftest.$ac_ext >&5
34856
34857         ac_cv_member_struct_utmp_ut_user=no
34858 fi
34859
34860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34861 fi
34862
34863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34864 fi
34865 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
34866 $as_echo "$ac_cv_member_struct_utmp_ut_user" >&6; }
34867 if test $ac_cv_member_struct_utmp_ut_user = yes; then
34868
34869 cat >>confdefs.h <<_ACEOF
34870 #define HAVE_STRUCT_UTMP_UT_USER 1
34871 _ACEOF
34872
34873
34874 fi
34875
34876     { $as_echo "$as_me:$LINENO: checking for struct utmpx.ut_name" >&5
34877 $as_echo_n "checking for struct utmpx.ut_name... " >&6; }
34878 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
34879   $as_echo_n "(cached) " >&6
34880 else
34881   cat >conftest.$ac_ext <<_ACEOF
34882 /* confdefs.h.  */
34883 _ACEOF
34884 cat confdefs.h >>conftest.$ac_ext
34885 cat >>conftest.$ac_ext <<_ACEOF
34886 /* end confdefs.h.  */
34887 $utmp_includes
34888
34889 int
34890 main ()
34891 {
34892 static struct utmpx ac_aggr;
34893 if (ac_aggr.ut_name)
34894 return 0;
34895   ;
34896   return 0;
34897 }
34898 _ACEOF
34899 rm -f conftest.$ac_objext
34900 if { (ac_try="$ac_compile"
34901 case "(($ac_try" in
34902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34903   *) ac_try_echo=$ac_try;;
34904 esac
34905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34906 $as_echo "$ac_try_echo") >&5
34907   (eval "$ac_compile") 2>conftest.er1
34908   ac_status=$?
34909   grep -v '^ *+' conftest.er1 >conftest.err
34910   rm -f conftest.er1
34911   cat conftest.err >&5
34912   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34913   (exit $ac_status); } && {
34914          test -z "$ac_c_werror_flag" ||
34915          test ! -s conftest.err
34916        } && test -s conftest.$ac_objext; then
34917   ac_cv_member_struct_utmpx_ut_name=yes
34918 else
34919   $as_echo "$as_me: failed program was:" >&5
34920 sed 's/^/| /' conftest.$ac_ext >&5
34921
34922         cat >conftest.$ac_ext <<_ACEOF
34923 /* confdefs.h.  */
34924 _ACEOF
34925 cat confdefs.h >>conftest.$ac_ext
34926 cat >>conftest.$ac_ext <<_ACEOF
34927 /* end confdefs.h.  */
34928 $utmp_includes
34929
34930 int
34931 main ()
34932 {
34933 static struct utmpx ac_aggr;
34934 if (sizeof ac_aggr.ut_name)
34935 return 0;
34936   ;
34937   return 0;
34938 }
34939 _ACEOF
34940 rm -f conftest.$ac_objext
34941 if { (ac_try="$ac_compile"
34942 case "(($ac_try" in
34943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34944   *) ac_try_echo=$ac_try;;
34945 esac
34946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34947 $as_echo "$ac_try_echo") >&5
34948   (eval "$ac_compile") 2>conftest.er1
34949   ac_status=$?
34950   grep -v '^ *+' conftest.er1 >conftest.err
34951   rm -f conftest.er1
34952   cat conftest.err >&5
34953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34954   (exit $ac_status); } && {
34955          test -z "$ac_c_werror_flag" ||
34956          test ! -s conftest.err
34957        } && test -s conftest.$ac_objext; then
34958   ac_cv_member_struct_utmpx_ut_name=yes
34959 else
34960   $as_echo "$as_me: failed program was:" >&5
34961 sed 's/^/| /' conftest.$ac_ext >&5
34962
34963         ac_cv_member_struct_utmpx_ut_name=no
34964 fi
34965
34966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34967 fi
34968
34969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34970 fi
34971 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_name" >&5
34972 $as_echo "$ac_cv_member_struct_utmpx_ut_name" >&6; }
34973 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
34974
34975 cat >>confdefs.h <<_ACEOF
34976 #define HAVE_STRUCT_UTMPX_UT_NAME 1
34977 _ACEOF
34978
34979
34980 fi
34981
34982     { $as_echo "$as_me:$LINENO: checking for struct utmp.ut_name" >&5
34983 $as_echo_n "checking for struct utmp.ut_name... " >&6; }
34984 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
34985   $as_echo_n "(cached) " >&6
34986 else
34987   cat >conftest.$ac_ext <<_ACEOF
34988 /* confdefs.h.  */
34989 _ACEOF
34990 cat confdefs.h >>conftest.$ac_ext
34991 cat >>conftest.$ac_ext <<_ACEOF
34992 /* end confdefs.h.  */
34993 $utmp_includes
34994
34995 int
34996 main ()
34997 {
34998 static struct utmp ac_aggr;
34999 if (ac_aggr.ut_name)
35000 return 0;
35001   ;
35002   return 0;
35003 }
35004 _ACEOF
35005 rm -f conftest.$ac_objext
35006 if { (ac_try="$ac_compile"
35007 case "(($ac_try" in
35008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35009   *) ac_try_echo=$ac_try;;
35010 esac
35011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35012 $as_echo "$ac_try_echo") >&5
35013   (eval "$ac_compile") 2>conftest.er1
35014   ac_status=$?
35015   grep -v '^ *+' conftest.er1 >conftest.err
35016   rm -f conftest.er1
35017   cat conftest.err >&5
35018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35019   (exit $ac_status); } && {
35020          test -z "$ac_c_werror_flag" ||
35021          test ! -s conftest.err
35022        } && test -s conftest.$ac_objext; then
35023   ac_cv_member_struct_utmp_ut_name=yes
35024 else
35025   $as_echo "$as_me: failed program was:" >&5
35026 sed 's/^/| /' conftest.$ac_ext >&5
35027
35028         cat >conftest.$ac_ext <<_ACEOF
35029 /* confdefs.h.  */
35030 _ACEOF
35031 cat confdefs.h >>conftest.$ac_ext
35032 cat >>conftest.$ac_ext <<_ACEOF
35033 /* end confdefs.h.  */
35034 $utmp_includes
35035
35036 int
35037 main ()
35038 {
35039 static struct utmp ac_aggr;
35040 if (sizeof ac_aggr.ut_name)
35041 return 0;
35042   ;
35043   return 0;
35044 }
35045 _ACEOF
35046 rm -f conftest.$ac_objext
35047 if { (ac_try="$ac_compile"
35048 case "(($ac_try" in
35049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35050   *) ac_try_echo=$ac_try;;
35051 esac
35052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35053 $as_echo "$ac_try_echo") >&5
35054   (eval "$ac_compile") 2>conftest.er1
35055   ac_status=$?
35056   grep -v '^ *+' conftest.er1 >conftest.err
35057   rm -f conftest.er1
35058   cat conftest.err >&5
35059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35060   (exit $ac_status); } && {
35061          test -z "$ac_c_werror_flag" ||
35062          test ! -s conftest.err
35063        } && test -s conftest.$ac_objext; then
35064   ac_cv_member_struct_utmp_ut_name=yes
35065 else
35066   $as_echo "$as_me: failed program was:" >&5
35067 sed 's/^/| /' conftest.$ac_ext >&5
35068
35069         ac_cv_member_struct_utmp_ut_name=no
35070 fi
35071
35072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35073 fi
35074
35075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35076 fi
35077 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_name" >&5
35078 $as_echo "$ac_cv_member_struct_utmp_ut_name" >&6; }
35079 if test $ac_cv_member_struct_utmp_ut_name = yes; then
35080
35081 cat >>confdefs.h <<_ACEOF
35082 #define HAVE_STRUCT_UTMP_UT_NAME 1
35083 _ACEOF
35084
35085
35086 fi
35087
35088     { $as_echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5
35089 $as_echo_n "checking for struct utmpx.ut_type... " >&6; }
35090 if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then
35091   $as_echo_n "(cached) " >&6
35092 else
35093   cat >conftest.$ac_ext <<_ACEOF
35094 /* confdefs.h.  */
35095 _ACEOF
35096 cat confdefs.h >>conftest.$ac_ext
35097 cat >>conftest.$ac_ext <<_ACEOF
35098 /* end confdefs.h.  */
35099 $utmp_includes
35100
35101 int
35102 main ()
35103 {
35104 static struct utmpx ac_aggr;
35105 if (ac_aggr.ut_type)
35106 return 0;
35107   ;
35108   return 0;
35109 }
35110 _ACEOF
35111 rm -f conftest.$ac_objext
35112 if { (ac_try="$ac_compile"
35113 case "(($ac_try" in
35114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35115   *) ac_try_echo=$ac_try;;
35116 esac
35117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35118 $as_echo "$ac_try_echo") >&5
35119   (eval "$ac_compile") 2>conftest.er1
35120   ac_status=$?
35121   grep -v '^ *+' conftest.er1 >conftest.err
35122   rm -f conftest.er1
35123   cat conftest.err >&5
35124   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35125   (exit $ac_status); } && {
35126          test -z "$ac_c_werror_flag" ||
35127          test ! -s conftest.err
35128        } && test -s conftest.$ac_objext; then
35129   ac_cv_member_struct_utmpx_ut_type=yes
35130 else
35131   $as_echo "$as_me: failed program was:" >&5
35132 sed 's/^/| /' conftest.$ac_ext >&5
35133
35134         cat >conftest.$ac_ext <<_ACEOF
35135 /* confdefs.h.  */
35136 _ACEOF
35137 cat confdefs.h >>conftest.$ac_ext
35138 cat >>conftest.$ac_ext <<_ACEOF
35139 /* end confdefs.h.  */
35140 $utmp_includes
35141
35142 int
35143 main ()
35144 {
35145 static struct utmpx ac_aggr;
35146 if (sizeof ac_aggr.ut_type)
35147 return 0;
35148   ;
35149   return 0;
35150 }
35151 _ACEOF
35152 rm -f conftest.$ac_objext
35153 if { (ac_try="$ac_compile"
35154 case "(($ac_try" in
35155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35156   *) ac_try_echo=$ac_try;;
35157 esac
35158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35159 $as_echo "$ac_try_echo") >&5
35160   (eval "$ac_compile") 2>conftest.er1
35161   ac_status=$?
35162   grep -v '^ *+' conftest.er1 >conftest.err
35163   rm -f conftest.er1
35164   cat conftest.err >&5
35165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35166   (exit $ac_status); } && {
35167          test -z "$ac_c_werror_flag" ||
35168          test ! -s conftest.err
35169        } && test -s conftest.$ac_objext; then
35170   ac_cv_member_struct_utmpx_ut_type=yes
35171 else
35172   $as_echo "$as_me: failed program was:" >&5
35173 sed 's/^/| /' conftest.$ac_ext >&5
35174
35175         ac_cv_member_struct_utmpx_ut_type=no
35176 fi
35177
35178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35179 fi
35180
35181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35182 fi
35183 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5
35184 $as_echo "$ac_cv_member_struct_utmpx_ut_type" >&6; }
35185 if test $ac_cv_member_struct_utmpx_ut_type = yes; then
35186
35187 cat >>confdefs.h <<_ACEOF
35188 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
35189 _ACEOF
35190
35191
35192 fi
35193
35194     { $as_echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5
35195 $as_echo_n "checking for struct utmp.ut_type... " >&6; }
35196 if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then
35197   $as_echo_n "(cached) " >&6
35198 else
35199   cat >conftest.$ac_ext <<_ACEOF
35200 /* confdefs.h.  */
35201 _ACEOF
35202 cat confdefs.h >>conftest.$ac_ext
35203 cat >>conftest.$ac_ext <<_ACEOF
35204 /* end confdefs.h.  */
35205 $utmp_includes
35206
35207 int
35208 main ()
35209 {
35210 static struct utmp ac_aggr;
35211 if (ac_aggr.ut_type)
35212 return 0;
35213   ;
35214   return 0;
35215 }
35216 _ACEOF
35217 rm -f conftest.$ac_objext
35218 if { (ac_try="$ac_compile"
35219 case "(($ac_try" in
35220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35221   *) ac_try_echo=$ac_try;;
35222 esac
35223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35224 $as_echo "$ac_try_echo") >&5
35225   (eval "$ac_compile") 2>conftest.er1
35226   ac_status=$?
35227   grep -v '^ *+' conftest.er1 >conftest.err
35228   rm -f conftest.er1
35229   cat conftest.err >&5
35230   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35231   (exit $ac_status); } && {
35232          test -z "$ac_c_werror_flag" ||
35233          test ! -s conftest.err
35234        } && test -s conftest.$ac_objext; then
35235   ac_cv_member_struct_utmp_ut_type=yes
35236 else
35237   $as_echo "$as_me: failed program was:" >&5
35238 sed 's/^/| /' conftest.$ac_ext >&5
35239
35240         cat >conftest.$ac_ext <<_ACEOF
35241 /* confdefs.h.  */
35242 _ACEOF
35243 cat confdefs.h >>conftest.$ac_ext
35244 cat >>conftest.$ac_ext <<_ACEOF
35245 /* end confdefs.h.  */
35246 $utmp_includes
35247
35248 int
35249 main ()
35250 {
35251 static struct utmp ac_aggr;
35252 if (sizeof ac_aggr.ut_type)
35253 return 0;
35254   ;
35255   return 0;
35256 }
35257 _ACEOF
35258 rm -f conftest.$ac_objext
35259 if { (ac_try="$ac_compile"
35260 case "(($ac_try" in
35261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35262   *) ac_try_echo=$ac_try;;
35263 esac
35264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35265 $as_echo "$ac_try_echo") >&5
35266   (eval "$ac_compile") 2>conftest.er1
35267   ac_status=$?
35268   grep -v '^ *+' conftest.er1 >conftest.err
35269   rm -f conftest.er1
35270   cat conftest.err >&5
35271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35272   (exit $ac_status); } && {
35273          test -z "$ac_c_werror_flag" ||
35274          test ! -s conftest.err
35275        } && test -s conftest.$ac_objext; then
35276   ac_cv_member_struct_utmp_ut_type=yes
35277 else
35278   $as_echo "$as_me: failed program was:" >&5
35279 sed 's/^/| /' conftest.$ac_ext >&5
35280
35281         ac_cv_member_struct_utmp_ut_type=no
35282 fi
35283
35284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35285 fi
35286
35287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35288 fi
35289 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5
35290 $as_echo "$ac_cv_member_struct_utmp_ut_type" >&6; }
35291 if test $ac_cv_member_struct_utmp_ut_type = yes; then
35292
35293 cat >>confdefs.h <<_ACEOF
35294 #define HAVE_STRUCT_UTMP_UT_TYPE 1
35295 _ACEOF
35296
35297
35298 fi
35299
35300     { $as_echo "$as_me:$LINENO: checking for struct utmpx.ut_pid" >&5
35301 $as_echo_n "checking for struct utmpx.ut_pid... " >&6; }
35302 if test "${ac_cv_member_struct_utmpx_ut_pid+set}" = set; then
35303   $as_echo_n "(cached) " >&6
35304 else
35305   cat >conftest.$ac_ext <<_ACEOF
35306 /* confdefs.h.  */
35307 _ACEOF
35308 cat confdefs.h >>conftest.$ac_ext
35309 cat >>conftest.$ac_ext <<_ACEOF
35310 /* end confdefs.h.  */
35311 $utmp_includes
35312
35313 int
35314 main ()
35315 {
35316 static struct utmpx ac_aggr;
35317 if (ac_aggr.ut_pid)
35318 return 0;
35319   ;
35320   return 0;
35321 }
35322 _ACEOF
35323 rm -f conftest.$ac_objext
35324 if { (ac_try="$ac_compile"
35325 case "(($ac_try" in
35326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35327   *) ac_try_echo=$ac_try;;
35328 esac
35329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35330 $as_echo "$ac_try_echo") >&5
35331   (eval "$ac_compile") 2>conftest.er1
35332   ac_status=$?
35333   grep -v '^ *+' conftest.er1 >conftest.err
35334   rm -f conftest.er1
35335   cat conftest.err >&5
35336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35337   (exit $ac_status); } && {
35338          test -z "$ac_c_werror_flag" ||
35339          test ! -s conftest.err
35340        } && test -s conftest.$ac_objext; then
35341   ac_cv_member_struct_utmpx_ut_pid=yes
35342 else
35343   $as_echo "$as_me: failed program was:" >&5
35344 sed 's/^/| /' conftest.$ac_ext >&5
35345
35346         cat >conftest.$ac_ext <<_ACEOF
35347 /* confdefs.h.  */
35348 _ACEOF
35349 cat confdefs.h >>conftest.$ac_ext
35350 cat >>conftest.$ac_ext <<_ACEOF
35351 /* end confdefs.h.  */
35352 $utmp_includes
35353
35354 int
35355 main ()
35356 {
35357 static struct utmpx ac_aggr;
35358 if (sizeof ac_aggr.ut_pid)
35359 return 0;
35360   ;
35361   return 0;
35362 }
35363 _ACEOF
35364 rm -f conftest.$ac_objext
35365 if { (ac_try="$ac_compile"
35366 case "(($ac_try" in
35367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35368   *) ac_try_echo=$ac_try;;
35369 esac
35370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35371 $as_echo "$ac_try_echo") >&5
35372   (eval "$ac_compile") 2>conftest.er1
35373   ac_status=$?
35374   grep -v '^ *+' conftest.er1 >conftest.err
35375   rm -f conftest.er1
35376   cat conftest.err >&5
35377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35378   (exit $ac_status); } && {
35379          test -z "$ac_c_werror_flag" ||
35380          test ! -s conftest.err
35381        } && test -s conftest.$ac_objext; then
35382   ac_cv_member_struct_utmpx_ut_pid=yes
35383 else
35384   $as_echo "$as_me: failed program was:" >&5
35385 sed 's/^/| /' conftest.$ac_ext >&5
35386
35387         ac_cv_member_struct_utmpx_ut_pid=no
35388 fi
35389
35390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35391 fi
35392
35393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35394 fi
35395 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_pid" >&5
35396 $as_echo "$ac_cv_member_struct_utmpx_ut_pid" >&6; }
35397 if test $ac_cv_member_struct_utmpx_ut_pid = yes; then
35398
35399 cat >>confdefs.h <<_ACEOF
35400 #define HAVE_STRUCT_UTMPX_UT_PID 1
35401 _ACEOF
35402
35403
35404 fi
35405
35406     { $as_echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5
35407 $as_echo_n "checking for struct utmp.ut_pid... " >&6; }
35408 if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then
35409   $as_echo_n "(cached) " >&6
35410 else
35411   cat >conftest.$ac_ext <<_ACEOF
35412 /* confdefs.h.  */
35413 _ACEOF
35414 cat confdefs.h >>conftest.$ac_ext
35415 cat >>conftest.$ac_ext <<_ACEOF
35416 /* end confdefs.h.  */
35417 $utmp_includes
35418
35419 int
35420 main ()
35421 {
35422 static struct utmp ac_aggr;
35423 if (ac_aggr.ut_pid)
35424 return 0;
35425   ;
35426   return 0;
35427 }
35428 _ACEOF
35429 rm -f conftest.$ac_objext
35430 if { (ac_try="$ac_compile"
35431 case "(($ac_try" in
35432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35433   *) ac_try_echo=$ac_try;;
35434 esac
35435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35436 $as_echo "$ac_try_echo") >&5
35437   (eval "$ac_compile") 2>conftest.er1
35438   ac_status=$?
35439   grep -v '^ *+' conftest.er1 >conftest.err
35440   rm -f conftest.er1
35441   cat conftest.err >&5
35442   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35443   (exit $ac_status); } && {
35444          test -z "$ac_c_werror_flag" ||
35445          test ! -s conftest.err
35446        } && test -s conftest.$ac_objext; then
35447   ac_cv_member_struct_utmp_ut_pid=yes
35448 else
35449   $as_echo "$as_me: failed program was:" >&5
35450 sed 's/^/| /' conftest.$ac_ext >&5
35451
35452         cat >conftest.$ac_ext <<_ACEOF
35453 /* confdefs.h.  */
35454 _ACEOF
35455 cat confdefs.h >>conftest.$ac_ext
35456 cat >>conftest.$ac_ext <<_ACEOF
35457 /* end confdefs.h.  */
35458 $utmp_includes
35459
35460 int
35461 main ()
35462 {
35463 static struct utmp ac_aggr;
35464 if (sizeof ac_aggr.ut_pid)
35465 return 0;
35466   ;
35467   return 0;
35468 }
35469 _ACEOF
35470 rm -f conftest.$ac_objext
35471 if { (ac_try="$ac_compile"
35472 case "(($ac_try" in
35473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35474   *) ac_try_echo=$ac_try;;
35475 esac
35476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35477 $as_echo "$ac_try_echo") >&5
35478   (eval "$ac_compile") 2>conftest.er1
35479   ac_status=$?
35480   grep -v '^ *+' conftest.er1 >conftest.err
35481   rm -f conftest.er1
35482   cat conftest.err >&5
35483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35484   (exit $ac_status); } && {
35485          test -z "$ac_c_werror_flag" ||
35486          test ! -s conftest.err
35487        } && test -s conftest.$ac_objext; then
35488   ac_cv_member_struct_utmp_ut_pid=yes
35489 else
35490   $as_echo "$as_me: failed program was:" >&5
35491 sed 's/^/| /' conftest.$ac_ext >&5
35492
35493         ac_cv_member_struct_utmp_ut_pid=no
35494 fi
35495
35496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35497 fi
35498
35499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35500 fi
35501 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5
35502 $as_echo "$ac_cv_member_struct_utmp_ut_pid" >&6; }
35503 if test $ac_cv_member_struct_utmp_ut_pid = yes; then
35504
35505 cat >>confdefs.h <<_ACEOF
35506 #define HAVE_STRUCT_UTMP_UT_PID 1
35507 _ACEOF
35508
35509
35510 fi
35511
35512     { $as_echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5
35513 $as_echo_n "checking for struct utmpx.ut_id... " >&6; }
35514 if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then
35515   $as_echo_n "(cached) " >&6
35516 else
35517   cat >conftest.$ac_ext <<_ACEOF
35518 /* confdefs.h.  */
35519 _ACEOF
35520 cat confdefs.h >>conftest.$ac_ext
35521 cat >>conftest.$ac_ext <<_ACEOF
35522 /* end confdefs.h.  */
35523 $utmp_includes
35524
35525 int
35526 main ()
35527 {
35528 static struct utmpx ac_aggr;
35529 if (ac_aggr.ut_id)
35530 return 0;
35531   ;
35532   return 0;
35533 }
35534 _ACEOF
35535 rm -f conftest.$ac_objext
35536 if { (ac_try="$ac_compile"
35537 case "(($ac_try" in
35538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35539   *) ac_try_echo=$ac_try;;
35540 esac
35541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35542 $as_echo "$ac_try_echo") >&5
35543   (eval "$ac_compile") 2>conftest.er1
35544   ac_status=$?
35545   grep -v '^ *+' conftest.er1 >conftest.err
35546   rm -f conftest.er1
35547   cat conftest.err >&5
35548   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35549   (exit $ac_status); } && {
35550          test -z "$ac_c_werror_flag" ||
35551          test ! -s conftest.err
35552        } && test -s conftest.$ac_objext; then
35553   ac_cv_member_struct_utmpx_ut_id=yes
35554 else
35555   $as_echo "$as_me: failed program was:" >&5
35556 sed 's/^/| /' conftest.$ac_ext >&5
35557
35558         cat >conftest.$ac_ext <<_ACEOF
35559 /* confdefs.h.  */
35560 _ACEOF
35561 cat confdefs.h >>conftest.$ac_ext
35562 cat >>conftest.$ac_ext <<_ACEOF
35563 /* end confdefs.h.  */
35564 $utmp_includes
35565
35566 int
35567 main ()
35568 {
35569 static struct utmpx ac_aggr;
35570 if (sizeof ac_aggr.ut_id)
35571 return 0;
35572   ;
35573   return 0;
35574 }
35575 _ACEOF
35576 rm -f conftest.$ac_objext
35577 if { (ac_try="$ac_compile"
35578 case "(($ac_try" in
35579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35580   *) ac_try_echo=$ac_try;;
35581 esac
35582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35583 $as_echo "$ac_try_echo") >&5
35584   (eval "$ac_compile") 2>conftest.er1
35585   ac_status=$?
35586   grep -v '^ *+' conftest.er1 >conftest.err
35587   rm -f conftest.er1
35588   cat conftest.err >&5
35589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35590   (exit $ac_status); } && {
35591          test -z "$ac_c_werror_flag" ||
35592          test ! -s conftest.err
35593        } && test -s conftest.$ac_objext; then
35594   ac_cv_member_struct_utmpx_ut_id=yes
35595 else
35596   $as_echo "$as_me: failed program was:" >&5
35597 sed 's/^/| /' conftest.$ac_ext >&5
35598
35599         ac_cv_member_struct_utmpx_ut_id=no
35600 fi
35601
35602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35603 fi
35604
35605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35606 fi
35607 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5
35608 $as_echo "$ac_cv_member_struct_utmpx_ut_id" >&6; }
35609 if test $ac_cv_member_struct_utmpx_ut_id = yes; then
35610
35611 cat >>confdefs.h <<_ACEOF
35612 #define HAVE_STRUCT_UTMPX_UT_ID 1
35613 _ACEOF
35614
35615
35616 fi
35617
35618     { $as_echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5
35619 $as_echo_n "checking for struct utmp.ut_id... " >&6; }
35620 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then
35621   $as_echo_n "(cached) " >&6
35622 else
35623   cat >conftest.$ac_ext <<_ACEOF
35624 /* confdefs.h.  */
35625 _ACEOF
35626 cat confdefs.h >>conftest.$ac_ext
35627 cat >>conftest.$ac_ext <<_ACEOF
35628 /* end confdefs.h.  */
35629 $utmp_includes
35630
35631 int
35632 main ()
35633 {
35634 static struct utmp ac_aggr;
35635 if (ac_aggr.ut_id)
35636 return 0;
35637   ;
35638   return 0;
35639 }
35640 _ACEOF
35641 rm -f conftest.$ac_objext
35642 if { (ac_try="$ac_compile"
35643 case "(($ac_try" in
35644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35645   *) ac_try_echo=$ac_try;;
35646 esac
35647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35648 $as_echo "$ac_try_echo") >&5
35649   (eval "$ac_compile") 2>conftest.er1
35650   ac_status=$?
35651   grep -v '^ *+' conftest.er1 >conftest.err
35652   rm -f conftest.er1
35653   cat conftest.err >&5
35654   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35655   (exit $ac_status); } && {
35656          test -z "$ac_c_werror_flag" ||
35657          test ! -s conftest.err
35658        } && test -s conftest.$ac_objext; then
35659   ac_cv_member_struct_utmp_ut_id=yes
35660 else
35661   $as_echo "$as_me: failed program was:" >&5
35662 sed 's/^/| /' conftest.$ac_ext >&5
35663
35664         cat >conftest.$ac_ext <<_ACEOF
35665 /* confdefs.h.  */
35666 _ACEOF
35667 cat confdefs.h >>conftest.$ac_ext
35668 cat >>conftest.$ac_ext <<_ACEOF
35669 /* end confdefs.h.  */
35670 $utmp_includes
35671
35672 int
35673 main ()
35674 {
35675 static struct utmp ac_aggr;
35676 if (sizeof ac_aggr.ut_id)
35677 return 0;
35678   ;
35679   return 0;
35680 }
35681 _ACEOF
35682 rm -f conftest.$ac_objext
35683 if { (ac_try="$ac_compile"
35684 case "(($ac_try" in
35685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35686   *) ac_try_echo=$ac_try;;
35687 esac
35688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35689 $as_echo "$ac_try_echo") >&5
35690   (eval "$ac_compile") 2>conftest.er1
35691   ac_status=$?
35692   grep -v '^ *+' conftest.er1 >conftest.err
35693   rm -f conftest.er1
35694   cat conftest.err >&5
35695   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35696   (exit $ac_status); } && {
35697          test -z "$ac_c_werror_flag" ||
35698          test ! -s conftest.err
35699        } && test -s conftest.$ac_objext; then
35700   ac_cv_member_struct_utmp_ut_id=yes
35701 else
35702   $as_echo "$as_me: failed program was:" >&5
35703 sed 's/^/| /' conftest.$ac_ext >&5
35704
35705         ac_cv_member_struct_utmp_ut_id=no
35706 fi
35707
35708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35709 fi
35710
35711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35712 fi
35713 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5
35714 $as_echo "$ac_cv_member_struct_utmp_ut_id" >&6; }
35715 if test $ac_cv_member_struct_utmp_ut_id = yes; then
35716
35717 cat >>confdefs.h <<_ACEOF
35718 #define HAVE_STRUCT_UTMP_UT_ID 1
35719 _ACEOF
35720
35721
35722 fi
35723
35724     { $as_echo "$as_me:$LINENO: checking for struct utmpx.ut_exit" >&5
35725 $as_echo_n "checking for struct utmpx.ut_exit... " >&6; }
35726 if test "${ac_cv_member_struct_utmpx_ut_exit+set}" = set; then
35727   $as_echo_n "(cached) " >&6
35728 else
35729   cat >conftest.$ac_ext <<_ACEOF
35730 /* confdefs.h.  */
35731 _ACEOF
35732 cat confdefs.h >>conftest.$ac_ext
35733 cat >>conftest.$ac_ext <<_ACEOF
35734 /* end confdefs.h.  */
35735 $utmp_includes
35736
35737 int
35738 main ()
35739 {
35740 static struct utmpx ac_aggr;
35741 if (ac_aggr.ut_exit)
35742 return 0;
35743   ;
35744   return 0;
35745 }
35746 _ACEOF
35747 rm -f conftest.$ac_objext
35748 if { (ac_try="$ac_compile"
35749 case "(($ac_try" in
35750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35751   *) ac_try_echo=$ac_try;;
35752 esac
35753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35754 $as_echo "$ac_try_echo") >&5
35755   (eval "$ac_compile") 2>conftest.er1
35756   ac_status=$?
35757   grep -v '^ *+' conftest.er1 >conftest.err
35758   rm -f conftest.er1
35759   cat conftest.err >&5
35760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35761   (exit $ac_status); } && {
35762          test -z "$ac_c_werror_flag" ||
35763          test ! -s conftest.err
35764        } && test -s conftest.$ac_objext; then
35765   ac_cv_member_struct_utmpx_ut_exit=yes
35766 else
35767   $as_echo "$as_me: failed program was:" >&5
35768 sed 's/^/| /' conftest.$ac_ext >&5
35769
35770         cat >conftest.$ac_ext <<_ACEOF
35771 /* confdefs.h.  */
35772 _ACEOF
35773 cat confdefs.h >>conftest.$ac_ext
35774 cat >>conftest.$ac_ext <<_ACEOF
35775 /* end confdefs.h.  */
35776 $utmp_includes
35777
35778 int
35779 main ()
35780 {
35781 static struct utmpx ac_aggr;
35782 if (sizeof ac_aggr.ut_exit)
35783 return 0;
35784   ;
35785   return 0;
35786 }
35787 _ACEOF
35788 rm -f conftest.$ac_objext
35789 if { (ac_try="$ac_compile"
35790 case "(($ac_try" in
35791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35792   *) ac_try_echo=$ac_try;;
35793 esac
35794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35795 $as_echo "$ac_try_echo") >&5
35796   (eval "$ac_compile") 2>conftest.er1
35797   ac_status=$?
35798   grep -v '^ *+' conftest.er1 >conftest.err
35799   rm -f conftest.er1
35800   cat conftest.err >&5
35801   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35802   (exit $ac_status); } && {
35803          test -z "$ac_c_werror_flag" ||
35804          test ! -s conftest.err
35805        } && test -s conftest.$ac_objext; then
35806   ac_cv_member_struct_utmpx_ut_exit=yes
35807 else
35808   $as_echo "$as_me: failed program was:" >&5
35809 sed 's/^/| /' conftest.$ac_ext >&5
35810
35811         ac_cv_member_struct_utmpx_ut_exit=no
35812 fi
35813
35814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35815 fi
35816
35817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35818 fi
35819 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit" >&5
35820 $as_echo "$ac_cv_member_struct_utmpx_ut_exit" >&6; }
35821 if test $ac_cv_member_struct_utmpx_ut_exit = yes; then
35822
35823 cat >>confdefs.h <<_ACEOF
35824 #define HAVE_STRUCT_UTMPX_UT_EXIT 1
35825 _ACEOF
35826
35827
35828 fi
35829
35830     { $as_echo "$as_me:$LINENO: checking for struct utmp.ut_exit" >&5
35831 $as_echo_n "checking for struct utmp.ut_exit... " >&6; }
35832 if test "${ac_cv_member_struct_utmp_ut_exit+set}" = set; then
35833   $as_echo_n "(cached) " >&6
35834 else
35835   cat >conftest.$ac_ext <<_ACEOF
35836 /* confdefs.h.  */
35837 _ACEOF
35838 cat confdefs.h >>conftest.$ac_ext
35839 cat >>conftest.$ac_ext <<_ACEOF
35840 /* end confdefs.h.  */
35841 $utmp_includes
35842
35843 int
35844 main ()
35845 {
35846 static struct utmp ac_aggr;
35847 if (ac_aggr.ut_exit)
35848 return 0;
35849   ;
35850   return 0;
35851 }
35852 _ACEOF
35853 rm -f conftest.$ac_objext
35854 if { (ac_try="$ac_compile"
35855 case "(($ac_try" in
35856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35857   *) ac_try_echo=$ac_try;;
35858 esac
35859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35860 $as_echo "$ac_try_echo") >&5
35861   (eval "$ac_compile") 2>conftest.er1
35862   ac_status=$?
35863   grep -v '^ *+' conftest.er1 >conftest.err
35864   rm -f conftest.er1
35865   cat conftest.err >&5
35866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35867   (exit $ac_status); } && {
35868          test -z "$ac_c_werror_flag" ||
35869          test ! -s conftest.err
35870        } && test -s conftest.$ac_objext; then
35871   ac_cv_member_struct_utmp_ut_exit=yes
35872 else
35873   $as_echo "$as_me: failed program was:" >&5
35874 sed 's/^/| /' conftest.$ac_ext >&5
35875
35876         cat >conftest.$ac_ext <<_ACEOF
35877 /* confdefs.h.  */
35878 _ACEOF
35879 cat confdefs.h >>conftest.$ac_ext
35880 cat >>conftest.$ac_ext <<_ACEOF
35881 /* end confdefs.h.  */
35882 $utmp_includes
35883
35884 int
35885 main ()
35886 {
35887 static struct utmp ac_aggr;
35888 if (sizeof ac_aggr.ut_exit)
35889 return 0;
35890   ;
35891   return 0;
35892 }
35893 _ACEOF
35894 rm -f conftest.$ac_objext
35895 if { (ac_try="$ac_compile"
35896 case "(($ac_try" in
35897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35898   *) ac_try_echo=$ac_try;;
35899 esac
35900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35901 $as_echo "$ac_try_echo") >&5
35902   (eval "$ac_compile") 2>conftest.er1
35903   ac_status=$?
35904   grep -v '^ *+' conftest.er1 >conftest.err
35905   rm -f conftest.er1
35906   cat conftest.err >&5
35907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35908   (exit $ac_status); } && {
35909          test -z "$ac_c_werror_flag" ||
35910          test ! -s conftest.err
35911        } && test -s conftest.$ac_objext; then
35912   ac_cv_member_struct_utmp_ut_exit=yes
35913 else
35914   $as_echo "$as_me: failed program was:" >&5
35915 sed 's/^/| /' conftest.$ac_ext >&5
35916
35917         ac_cv_member_struct_utmp_ut_exit=no
35918 fi
35919
35920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35921 fi
35922
35923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35924 fi
35925 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit" >&5
35926 $as_echo "$ac_cv_member_struct_utmp_ut_exit" >&6; }
35927 if test $ac_cv_member_struct_utmp_ut_exit = yes; then
35928
35929 cat >>confdefs.h <<_ACEOF
35930 #define HAVE_STRUCT_UTMP_UT_EXIT 1
35931 _ACEOF
35932
35933
35934 fi
35935
35936
35937     { $as_echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_exit" >&5
35938 $as_echo_n "checking for struct utmpx.ut_exit.ut_exit... " >&6; }
35939 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_exit+set}" = set; then
35940   $as_echo_n "(cached) " >&6
35941 else
35942   cat >conftest.$ac_ext <<_ACEOF
35943 /* confdefs.h.  */
35944 _ACEOF
35945 cat confdefs.h >>conftest.$ac_ext
35946 cat >>conftest.$ac_ext <<_ACEOF
35947 /* end confdefs.h.  */
35948 $utmp_includes
35949
35950 int
35951 main ()
35952 {
35953 static struct utmpx ac_aggr;
35954 if (ac_aggr.ut_exit.ut_exit)
35955 return 0;
35956   ;
35957   return 0;
35958 }
35959 _ACEOF
35960 rm -f conftest.$ac_objext
35961 if { (ac_try="$ac_compile"
35962 case "(($ac_try" in
35963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35964   *) ac_try_echo=$ac_try;;
35965 esac
35966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35967 $as_echo "$ac_try_echo") >&5
35968   (eval "$ac_compile") 2>conftest.er1
35969   ac_status=$?
35970   grep -v '^ *+' conftest.er1 >conftest.err
35971   rm -f conftest.er1
35972   cat conftest.err >&5
35973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35974   (exit $ac_status); } && {
35975          test -z "$ac_c_werror_flag" ||
35976          test ! -s conftest.err
35977        } && test -s conftest.$ac_objext; then
35978   ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
35979 else
35980   $as_echo "$as_me: failed program was:" >&5
35981 sed 's/^/| /' conftest.$ac_ext >&5
35982
35983         cat >conftest.$ac_ext <<_ACEOF
35984 /* confdefs.h.  */
35985 _ACEOF
35986 cat confdefs.h >>conftest.$ac_ext
35987 cat >>conftest.$ac_ext <<_ACEOF
35988 /* end confdefs.h.  */
35989 $utmp_includes
35990
35991 int
35992 main ()
35993 {
35994 static struct utmpx ac_aggr;
35995 if (sizeof ac_aggr.ut_exit.ut_exit)
35996 return 0;
35997   ;
35998   return 0;
35999 }
36000 _ACEOF
36001 rm -f conftest.$ac_objext
36002 if { (ac_try="$ac_compile"
36003 case "(($ac_try" in
36004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36005   *) ac_try_echo=$ac_try;;
36006 esac
36007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36008 $as_echo "$ac_try_echo") >&5
36009   (eval "$ac_compile") 2>conftest.er1
36010   ac_status=$?
36011   grep -v '^ *+' conftest.er1 >conftest.err
36012   rm -f conftest.er1
36013   cat conftest.err >&5
36014   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36015   (exit $ac_status); } && {
36016          test -z "$ac_c_werror_flag" ||
36017          test ! -s conftest.err
36018        } && test -s conftest.$ac_objext; then
36019   ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
36020 else
36021   $as_echo "$as_me: failed program was:" >&5
36022 sed 's/^/| /' conftest.$ac_ext >&5
36023
36024         ac_cv_member_struct_utmpx_ut_exit_ut_exit=no
36025 fi
36026
36027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36028 fi
36029
36030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36031 fi
36032 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&5
36033 $as_echo "$ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&6; }
36034 if test $ac_cv_member_struct_utmpx_ut_exit_ut_exit = yes; then
36035
36036 cat >>confdefs.h <<_ACEOF
36037 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_EXIT 1
36038 _ACEOF
36039
36040
36041 fi
36042
36043     { $as_echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_exit" >&5
36044 $as_echo_n "checking for struct utmp.ut_exit.ut_exit... " >&6; }
36045 if test "${ac_cv_member_struct_utmp_ut_exit_ut_exit+set}" = set; then
36046   $as_echo_n "(cached) " >&6
36047 else
36048   cat >conftest.$ac_ext <<_ACEOF
36049 /* confdefs.h.  */
36050 _ACEOF
36051 cat confdefs.h >>conftest.$ac_ext
36052 cat >>conftest.$ac_ext <<_ACEOF
36053 /* end confdefs.h.  */
36054 $utmp_includes
36055
36056 int
36057 main ()
36058 {
36059 static struct utmp ac_aggr;
36060 if (ac_aggr.ut_exit.ut_exit)
36061 return 0;
36062   ;
36063   return 0;
36064 }
36065 _ACEOF
36066 rm -f conftest.$ac_objext
36067 if { (ac_try="$ac_compile"
36068 case "(($ac_try" in
36069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36070   *) ac_try_echo=$ac_try;;
36071 esac
36072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36073 $as_echo "$ac_try_echo") >&5
36074   (eval "$ac_compile") 2>conftest.er1
36075   ac_status=$?
36076   grep -v '^ *+' conftest.er1 >conftest.err
36077   rm -f conftest.er1
36078   cat conftest.err >&5
36079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36080   (exit $ac_status); } && {
36081          test -z "$ac_c_werror_flag" ||
36082          test ! -s conftest.err
36083        } && test -s conftest.$ac_objext; then
36084   ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
36085 else
36086   $as_echo "$as_me: failed program was:" >&5
36087 sed 's/^/| /' conftest.$ac_ext >&5
36088
36089         cat >conftest.$ac_ext <<_ACEOF
36090 /* confdefs.h.  */
36091 _ACEOF
36092 cat confdefs.h >>conftest.$ac_ext
36093 cat >>conftest.$ac_ext <<_ACEOF
36094 /* end confdefs.h.  */
36095 $utmp_includes
36096
36097 int
36098 main ()
36099 {
36100 static struct utmp ac_aggr;
36101 if (sizeof ac_aggr.ut_exit.ut_exit)
36102 return 0;
36103   ;
36104   return 0;
36105 }
36106 _ACEOF
36107 rm -f conftest.$ac_objext
36108 if { (ac_try="$ac_compile"
36109 case "(($ac_try" in
36110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36111   *) ac_try_echo=$ac_try;;
36112 esac
36113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36114 $as_echo "$ac_try_echo") >&5
36115   (eval "$ac_compile") 2>conftest.er1
36116   ac_status=$?
36117   grep -v '^ *+' conftest.er1 >conftest.err
36118   rm -f conftest.er1
36119   cat conftest.err >&5
36120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36121   (exit $ac_status); } && {
36122          test -z "$ac_c_werror_flag" ||
36123          test ! -s conftest.err
36124        } && test -s conftest.$ac_objext; then
36125   ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
36126 else
36127   $as_echo "$as_me: failed program was:" >&5
36128 sed 's/^/| /' conftest.$ac_ext >&5
36129
36130         ac_cv_member_struct_utmp_ut_exit_ut_exit=no
36131 fi
36132
36133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36134 fi
36135
36136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36137 fi
36138 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_exit" >&5
36139 $as_echo "$ac_cv_member_struct_utmp_ut_exit_ut_exit" >&6; }
36140 if test $ac_cv_member_struct_utmp_ut_exit_ut_exit = yes; then
36141
36142 cat >>confdefs.h <<_ACEOF
36143 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_EXIT 1
36144 _ACEOF
36145
36146
36147 fi
36148
36149     { $as_echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_exit" >&5
36150 $as_echo_n "checking for struct utmpx.ut_exit.e_exit... " >&6; }
36151 if test "${ac_cv_member_struct_utmpx_ut_exit_e_exit+set}" = set; then
36152   $as_echo_n "(cached) " >&6
36153 else
36154   cat >conftest.$ac_ext <<_ACEOF
36155 /* confdefs.h.  */
36156 _ACEOF
36157 cat confdefs.h >>conftest.$ac_ext
36158 cat >>conftest.$ac_ext <<_ACEOF
36159 /* end confdefs.h.  */
36160 $utmp_includes
36161
36162 int
36163 main ()
36164 {
36165 static struct utmpx ac_aggr;
36166 if (ac_aggr.ut_exit.e_exit)
36167 return 0;
36168   ;
36169   return 0;
36170 }
36171 _ACEOF
36172 rm -f conftest.$ac_objext
36173 if { (ac_try="$ac_compile"
36174 case "(($ac_try" in
36175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36176   *) ac_try_echo=$ac_try;;
36177 esac
36178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36179 $as_echo "$ac_try_echo") >&5
36180   (eval "$ac_compile") 2>conftest.er1
36181   ac_status=$?
36182   grep -v '^ *+' conftest.er1 >conftest.err
36183   rm -f conftest.er1
36184   cat conftest.err >&5
36185   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36186   (exit $ac_status); } && {
36187          test -z "$ac_c_werror_flag" ||
36188          test ! -s conftest.err
36189        } && test -s conftest.$ac_objext; then
36190   ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
36191 else
36192   $as_echo "$as_me: failed program was:" >&5
36193 sed 's/^/| /' conftest.$ac_ext >&5
36194
36195         cat >conftest.$ac_ext <<_ACEOF
36196 /* confdefs.h.  */
36197 _ACEOF
36198 cat confdefs.h >>conftest.$ac_ext
36199 cat >>conftest.$ac_ext <<_ACEOF
36200 /* end confdefs.h.  */
36201 $utmp_includes
36202
36203 int
36204 main ()
36205 {
36206 static struct utmpx ac_aggr;
36207 if (sizeof ac_aggr.ut_exit.e_exit)
36208 return 0;
36209   ;
36210   return 0;
36211 }
36212 _ACEOF
36213 rm -f conftest.$ac_objext
36214 if { (ac_try="$ac_compile"
36215 case "(($ac_try" in
36216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36217   *) ac_try_echo=$ac_try;;
36218 esac
36219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36220 $as_echo "$ac_try_echo") >&5
36221   (eval "$ac_compile") 2>conftest.er1
36222   ac_status=$?
36223   grep -v '^ *+' conftest.er1 >conftest.err
36224   rm -f conftest.er1
36225   cat conftest.err >&5
36226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36227   (exit $ac_status); } && {
36228          test -z "$ac_c_werror_flag" ||
36229          test ! -s conftest.err
36230        } && test -s conftest.$ac_objext; then
36231   ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
36232 else
36233   $as_echo "$as_me: failed program was:" >&5
36234 sed 's/^/| /' conftest.$ac_ext >&5
36235
36236         ac_cv_member_struct_utmpx_ut_exit_e_exit=no
36237 fi
36238
36239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36240 fi
36241
36242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36243 fi
36244 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_exit" >&5
36245 $as_echo "$ac_cv_member_struct_utmpx_ut_exit_e_exit" >&6; }
36246 if test $ac_cv_member_struct_utmpx_ut_exit_e_exit = yes; then
36247
36248 cat >>confdefs.h <<_ACEOF
36249 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_EXIT 1
36250 _ACEOF
36251
36252
36253 fi
36254
36255     { $as_echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_exit" >&5
36256 $as_echo_n "checking for struct utmp.ut_exit.e_exit... " >&6; }
36257 if test "${ac_cv_member_struct_utmp_ut_exit_e_exit+set}" = set; then
36258   $as_echo_n "(cached) " >&6
36259 else
36260   cat >conftest.$ac_ext <<_ACEOF
36261 /* confdefs.h.  */
36262 _ACEOF
36263 cat confdefs.h >>conftest.$ac_ext
36264 cat >>conftest.$ac_ext <<_ACEOF
36265 /* end confdefs.h.  */
36266 $utmp_includes
36267
36268 int
36269 main ()
36270 {
36271 static struct utmp ac_aggr;
36272 if (ac_aggr.ut_exit.e_exit)
36273 return 0;
36274   ;
36275   return 0;
36276 }
36277 _ACEOF
36278 rm -f conftest.$ac_objext
36279 if { (ac_try="$ac_compile"
36280 case "(($ac_try" in
36281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36282   *) ac_try_echo=$ac_try;;
36283 esac
36284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36285 $as_echo "$ac_try_echo") >&5
36286   (eval "$ac_compile") 2>conftest.er1
36287   ac_status=$?
36288   grep -v '^ *+' conftest.er1 >conftest.err
36289   rm -f conftest.er1
36290   cat conftest.err >&5
36291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36292   (exit $ac_status); } && {
36293          test -z "$ac_c_werror_flag" ||
36294          test ! -s conftest.err
36295        } && test -s conftest.$ac_objext; then
36296   ac_cv_member_struct_utmp_ut_exit_e_exit=yes
36297 else
36298   $as_echo "$as_me: failed program was:" >&5
36299 sed 's/^/| /' conftest.$ac_ext >&5
36300
36301         cat >conftest.$ac_ext <<_ACEOF
36302 /* confdefs.h.  */
36303 _ACEOF
36304 cat confdefs.h >>conftest.$ac_ext
36305 cat >>conftest.$ac_ext <<_ACEOF
36306 /* end confdefs.h.  */
36307 $utmp_includes
36308
36309 int
36310 main ()
36311 {
36312 static struct utmp ac_aggr;
36313 if (sizeof ac_aggr.ut_exit.e_exit)
36314 return 0;
36315   ;
36316   return 0;
36317 }
36318 _ACEOF
36319 rm -f conftest.$ac_objext
36320 if { (ac_try="$ac_compile"
36321 case "(($ac_try" in
36322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36323   *) ac_try_echo=$ac_try;;
36324 esac
36325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36326 $as_echo "$ac_try_echo") >&5
36327   (eval "$ac_compile") 2>conftest.er1
36328   ac_status=$?
36329   grep -v '^ *+' conftest.er1 >conftest.err
36330   rm -f conftest.er1
36331   cat conftest.err >&5
36332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36333   (exit $ac_status); } && {
36334          test -z "$ac_c_werror_flag" ||
36335          test ! -s conftest.err
36336        } && test -s conftest.$ac_objext; then
36337   ac_cv_member_struct_utmp_ut_exit_e_exit=yes
36338 else
36339   $as_echo "$as_me: failed program was:" >&5
36340 sed 's/^/| /' conftest.$ac_ext >&5
36341
36342         ac_cv_member_struct_utmp_ut_exit_e_exit=no
36343 fi
36344
36345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36346 fi
36347
36348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36349 fi
36350 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_exit" >&5
36351 $as_echo "$ac_cv_member_struct_utmp_ut_exit_e_exit" >&6; }
36352 if test $ac_cv_member_struct_utmp_ut_exit_e_exit = yes; then
36353
36354 cat >>confdefs.h <<_ACEOF
36355 #define HAVE_STRUCT_UTMP_UT_EXIT_E_EXIT 1
36356 _ACEOF
36357
36358
36359 fi
36360
36361
36362     { $as_echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_termination" >&5
36363 $as_echo_n "checking for struct utmpx.ut_exit.ut_termination... " >&6; }
36364 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_termination+set}" = set; then
36365   $as_echo_n "(cached) " >&6
36366 else
36367   cat >conftest.$ac_ext <<_ACEOF
36368 /* confdefs.h.  */
36369 _ACEOF
36370 cat confdefs.h >>conftest.$ac_ext
36371 cat >>conftest.$ac_ext <<_ACEOF
36372 /* end confdefs.h.  */
36373 $utmp_includes
36374
36375 int
36376 main ()
36377 {
36378 static struct utmpx ac_aggr;
36379 if (ac_aggr.ut_exit.ut_termination)
36380 return 0;
36381   ;
36382   return 0;
36383 }
36384 _ACEOF
36385 rm -f conftest.$ac_objext
36386 if { (ac_try="$ac_compile"
36387 case "(($ac_try" in
36388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36389   *) ac_try_echo=$ac_try;;
36390 esac
36391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36392 $as_echo "$ac_try_echo") >&5
36393   (eval "$ac_compile") 2>conftest.er1
36394   ac_status=$?
36395   grep -v '^ *+' conftest.er1 >conftest.err
36396   rm -f conftest.er1
36397   cat conftest.err >&5
36398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36399   (exit $ac_status); } && {
36400          test -z "$ac_c_werror_flag" ||
36401          test ! -s conftest.err
36402        } && test -s conftest.$ac_objext; then
36403   ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
36404 else
36405   $as_echo "$as_me: failed program was:" >&5
36406 sed 's/^/| /' conftest.$ac_ext >&5
36407
36408         cat >conftest.$ac_ext <<_ACEOF
36409 /* confdefs.h.  */
36410 _ACEOF
36411 cat confdefs.h >>conftest.$ac_ext
36412 cat >>conftest.$ac_ext <<_ACEOF
36413 /* end confdefs.h.  */
36414 $utmp_includes
36415
36416 int
36417 main ()
36418 {
36419 static struct utmpx ac_aggr;
36420 if (sizeof ac_aggr.ut_exit.ut_termination)
36421 return 0;
36422   ;
36423   return 0;
36424 }
36425 _ACEOF
36426 rm -f conftest.$ac_objext
36427 if { (ac_try="$ac_compile"
36428 case "(($ac_try" in
36429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36430   *) ac_try_echo=$ac_try;;
36431 esac
36432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36433 $as_echo "$ac_try_echo") >&5
36434   (eval "$ac_compile") 2>conftest.er1
36435   ac_status=$?
36436   grep -v '^ *+' conftest.er1 >conftest.err
36437   rm -f conftest.er1
36438   cat conftest.err >&5
36439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36440   (exit $ac_status); } && {
36441          test -z "$ac_c_werror_flag" ||
36442          test ! -s conftest.err
36443        } && test -s conftest.$ac_objext; then
36444   ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
36445 else
36446   $as_echo "$as_me: failed program was:" >&5
36447 sed 's/^/| /' conftest.$ac_ext >&5
36448
36449         ac_cv_member_struct_utmpx_ut_exit_ut_termination=no
36450 fi
36451
36452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36453 fi
36454
36455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36456 fi
36457 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&5
36458 $as_echo "$ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&6; }
36459 if test $ac_cv_member_struct_utmpx_ut_exit_ut_termination = yes; then
36460
36461 cat >>confdefs.h <<_ACEOF
36462 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_TERMINATION 1
36463 _ACEOF
36464
36465
36466 fi
36467
36468     { $as_echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_termination" >&5
36469 $as_echo_n "checking for struct utmp.ut_exit.ut_termination... " >&6; }
36470 if test "${ac_cv_member_struct_utmp_ut_exit_ut_termination+set}" = set; then
36471   $as_echo_n "(cached) " >&6
36472 else
36473   cat >conftest.$ac_ext <<_ACEOF
36474 /* confdefs.h.  */
36475 _ACEOF
36476 cat confdefs.h >>conftest.$ac_ext
36477 cat >>conftest.$ac_ext <<_ACEOF
36478 /* end confdefs.h.  */
36479 $utmp_includes
36480
36481 int
36482 main ()
36483 {
36484 static struct utmp ac_aggr;
36485 if (ac_aggr.ut_exit.ut_termination)
36486 return 0;
36487   ;
36488   return 0;
36489 }
36490 _ACEOF
36491 rm -f conftest.$ac_objext
36492 if { (ac_try="$ac_compile"
36493 case "(($ac_try" in
36494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36495   *) ac_try_echo=$ac_try;;
36496 esac
36497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36498 $as_echo "$ac_try_echo") >&5
36499   (eval "$ac_compile") 2>conftest.er1
36500   ac_status=$?
36501   grep -v '^ *+' conftest.er1 >conftest.err
36502   rm -f conftest.er1
36503   cat conftest.err >&5
36504   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36505   (exit $ac_status); } && {
36506          test -z "$ac_c_werror_flag" ||
36507          test ! -s conftest.err
36508        } && test -s conftest.$ac_objext; then
36509   ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
36510 else
36511   $as_echo "$as_me: failed program was:" >&5
36512 sed 's/^/| /' conftest.$ac_ext >&5
36513
36514         cat >conftest.$ac_ext <<_ACEOF
36515 /* confdefs.h.  */
36516 _ACEOF
36517 cat confdefs.h >>conftest.$ac_ext
36518 cat >>conftest.$ac_ext <<_ACEOF
36519 /* end confdefs.h.  */
36520 $utmp_includes
36521
36522 int
36523 main ()
36524 {
36525 static struct utmp ac_aggr;
36526 if (sizeof ac_aggr.ut_exit.ut_termination)
36527 return 0;
36528   ;
36529   return 0;
36530 }
36531 _ACEOF
36532 rm -f conftest.$ac_objext
36533 if { (ac_try="$ac_compile"
36534 case "(($ac_try" in
36535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36536   *) ac_try_echo=$ac_try;;
36537 esac
36538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36539 $as_echo "$ac_try_echo") >&5
36540   (eval "$ac_compile") 2>conftest.er1
36541   ac_status=$?
36542   grep -v '^ *+' conftest.er1 >conftest.err
36543   rm -f conftest.er1
36544   cat conftest.err >&5
36545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36546   (exit $ac_status); } && {
36547          test -z "$ac_c_werror_flag" ||
36548          test ! -s conftest.err
36549        } && test -s conftest.$ac_objext; then
36550   ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
36551 else
36552   $as_echo "$as_me: failed program was:" >&5
36553 sed 's/^/| /' conftest.$ac_ext >&5
36554
36555         ac_cv_member_struct_utmp_ut_exit_ut_termination=no
36556 fi
36557
36558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36559 fi
36560
36561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36562 fi
36563 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_termination" >&5
36564 $as_echo "$ac_cv_member_struct_utmp_ut_exit_ut_termination" >&6; }
36565 if test $ac_cv_member_struct_utmp_ut_exit_ut_termination = yes; then
36566
36567 cat >>confdefs.h <<_ACEOF
36568 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_TERMINATION 1
36569 _ACEOF
36570
36571
36572 fi
36573
36574     { $as_echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_termination" >&5
36575 $as_echo_n "checking for struct utmpx.ut_exit.e_termination... " >&6; }
36576 if test "${ac_cv_member_struct_utmpx_ut_exit_e_termination+set}" = set; then
36577   $as_echo_n "(cached) " >&6
36578 else
36579   cat >conftest.$ac_ext <<_ACEOF
36580 /* confdefs.h.  */
36581 _ACEOF
36582 cat confdefs.h >>conftest.$ac_ext
36583 cat >>conftest.$ac_ext <<_ACEOF
36584 /* end confdefs.h.  */
36585 $utmp_includes
36586
36587 int
36588 main ()
36589 {
36590 static struct utmpx ac_aggr;
36591 if (ac_aggr.ut_exit.e_termination)
36592 return 0;
36593   ;
36594   return 0;
36595 }
36596 _ACEOF
36597 rm -f conftest.$ac_objext
36598 if { (ac_try="$ac_compile"
36599 case "(($ac_try" in
36600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36601   *) ac_try_echo=$ac_try;;
36602 esac
36603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36604 $as_echo "$ac_try_echo") >&5
36605   (eval "$ac_compile") 2>conftest.er1
36606   ac_status=$?
36607   grep -v '^ *+' conftest.er1 >conftest.err
36608   rm -f conftest.er1
36609   cat conftest.err >&5
36610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36611   (exit $ac_status); } && {
36612          test -z "$ac_c_werror_flag" ||
36613          test ! -s conftest.err
36614        } && test -s conftest.$ac_objext; then
36615   ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
36616 else
36617   $as_echo "$as_me: failed program was:" >&5
36618 sed 's/^/| /' conftest.$ac_ext >&5
36619
36620         cat >conftest.$ac_ext <<_ACEOF
36621 /* confdefs.h.  */
36622 _ACEOF
36623 cat confdefs.h >>conftest.$ac_ext
36624 cat >>conftest.$ac_ext <<_ACEOF
36625 /* end confdefs.h.  */
36626 $utmp_includes
36627
36628 int
36629 main ()
36630 {
36631 static struct utmpx ac_aggr;
36632 if (sizeof ac_aggr.ut_exit.e_termination)
36633 return 0;
36634   ;
36635   return 0;
36636 }
36637 _ACEOF
36638 rm -f conftest.$ac_objext
36639 if { (ac_try="$ac_compile"
36640 case "(($ac_try" in
36641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36642   *) ac_try_echo=$ac_try;;
36643 esac
36644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36645 $as_echo "$ac_try_echo") >&5
36646   (eval "$ac_compile") 2>conftest.er1
36647   ac_status=$?
36648   grep -v '^ *+' conftest.er1 >conftest.err
36649   rm -f conftest.er1
36650   cat conftest.err >&5
36651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36652   (exit $ac_status); } && {
36653          test -z "$ac_c_werror_flag" ||
36654          test ! -s conftest.err
36655        } && test -s conftest.$ac_objext; then
36656   ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
36657 else
36658   $as_echo "$as_me: failed program was:" >&5
36659 sed 's/^/| /' conftest.$ac_ext >&5
36660
36661         ac_cv_member_struct_utmpx_ut_exit_e_termination=no
36662 fi
36663
36664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36665 fi
36666
36667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36668 fi
36669 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_termination" >&5
36670 $as_echo "$ac_cv_member_struct_utmpx_ut_exit_e_termination" >&6; }
36671 if test $ac_cv_member_struct_utmpx_ut_exit_e_termination = yes; then
36672
36673 cat >>confdefs.h <<_ACEOF
36674 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
36675 _ACEOF
36676
36677
36678 fi
36679
36680     { $as_echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_termination" >&5
36681 $as_echo_n "checking for struct utmp.ut_exit.e_termination... " >&6; }
36682 if test "${ac_cv_member_struct_utmp_ut_exit_e_termination+set}" = set; then
36683   $as_echo_n "(cached) " >&6
36684 else
36685   cat >conftest.$ac_ext <<_ACEOF
36686 /* confdefs.h.  */
36687 _ACEOF
36688 cat confdefs.h >>conftest.$ac_ext
36689 cat >>conftest.$ac_ext <<_ACEOF
36690 /* end confdefs.h.  */
36691 $utmp_includes
36692
36693 int
36694 main ()
36695 {
36696 static struct utmp ac_aggr;
36697 if (ac_aggr.ut_exit.e_termination)
36698 return 0;
36699   ;
36700   return 0;
36701 }
36702 _ACEOF
36703 rm -f conftest.$ac_objext
36704 if { (ac_try="$ac_compile"
36705 case "(($ac_try" in
36706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36707   *) ac_try_echo=$ac_try;;
36708 esac
36709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36710 $as_echo "$ac_try_echo") >&5
36711   (eval "$ac_compile") 2>conftest.er1
36712   ac_status=$?
36713   grep -v '^ *+' conftest.er1 >conftest.err
36714   rm -f conftest.er1
36715   cat conftest.err >&5
36716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36717   (exit $ac_status); } && {
36718          test -z "$ac_c_werror_flag" ||
36719          test ! -s conftest.err
36720        } && test -s conftest.$ac_objext; then
36721   ac_cv_member_struct_utmp_ut_exit_e_termination=yes
36722 else
36723   $as_echo "$as_me: failed program was:" >&5
36724 sed 's/^/| /' conftest.$ac_ext >&5
36725
36726         cat >conftest.$ac_ext <<_ACEOF
36727 /* confdefs.h.  */
36728 _ACEOF
36729 cat confdefs.h >>conftest.$ac_ext
36730 cat >>conftest.$ac_ext <<_ACEOF
36731 /* end confdefs.h.  */
36732 $utmp_includes
36733
36734 int
36735 main ()
36736 {
36737 static struct utmp ac_aggr;
36738 if (sizeof ac_aggr.ut_exit.e_termination)
36739 return 0;
36740   ;
36741   return 0;
36742 }
36743 _ACEOF
36744 rm -f conftest.$ac_objext
36745 if { (ac_try="$ac_compile"
36746 case "(($ac_try" in
36747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36748   *) ac_try_echo=$ac_try;;
36749 esac
36750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36751 $as_echo "$ac_try_echo") >&5
36752   (eval "$ac_compile") 2>conftest.er1
36753   ac_status=$?
36754   grep -v '^ *+' conftest.er1 >conftest.err
36755   rm -f conftest.er1
36756   cat conftest.err >&5
36757   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36758   (exit $ac_status); } && {
36759          test -z "$ac_c_werror_flag" ||
36760          test ! -s conftest.err
36761        } && test -s conftest.$ac_objext; then
36762   ac_cv_member_struct_utmp_ut_exit_e_termination=yes
36763 else
36764   $as_echo "$as_me: failed program was:" >&5
36765 sed 's/^/| /' conftest.$ac_ext >&5
36766
36767         ac_cv_member_struct_utmp_ut_exit_e_termination=no
36768 fi
36769
36770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36771 fi
36772
36773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36774 fi
36775 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_termination" >&5
36776 $as_echo "$ac_cv_member_struct_utmp_ut_exit_e_termination" >&6; }
36777 if test $ac_cv_member_struct_utmp_ut_exit_e_termination = yes; then
36778
36779 cat >>confdefs.h <<_ACEOF
36780 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
36781 _ACEOF
36782
36783
36784 fi
36785
36786   fi
36787
36788
36789 for ac_header in stdlib.h
36790 do
36791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36793   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36794 $as_echo_n "checking for $ac_header... " >&6; }
36795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36796   $as_echo_n "(cached) " >&6
36797 fi
36798 ac_res=`eval 'as_val=${'$as_ac_Header'}
36799                  $as_echo "$as_val"'`
36800                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36801 $as_echo "$ac_res" >&6; }
36802 else
36803   # Is the header compilable?
36804 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
36805 $as_echo_n "checking $ac_header usability... " >&6; }
36806 cat >conftest.$ac_ext <<_ACEOF
36807 /* confdefs.h.  */
36808 _ACEOF
36809 cat confdefs.h >>conftest.$ac_ext
36810 cat >>conftest.$ac_ext <<_ACEOF
36811 /* end confdefs.h.  */
36812 $ac_includes_default
36813 #include <$ac_header>
36814 _ACEOF
36815 rm -f conftest.$ac_objext
36816 if { (ac_try="$ac_compile"
36817 case "(($ac_try" in
36818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36819   *) ac_try_echo=$ac_try;;
36820 esac
36821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36822 $as_echo "$ac_try_echo") >&5
36823   (eval "$ac_compile") 2>conftest.er1
36824   ac_status=$?
36825   grep -v '^ *+' conftest.er1 >conftest.err
36826   rm -f conftest.er1
36827   cat conftest.err >&5
36828   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36829   (exit $ac_status); } && {
36830          test -z "$ac_c_werror_flag" ||
36831          test ! -s conftest.err
36832        } && test -s conftest.$ac_objext; then
36833   ac_header_compiler=yes
36834 else
36835   $as_echo "$as_me: failed program was:" >&5
36836 sed 's/^/| /' conftest.$ac_ext >&5
36837
36838         ac_header_compiler=no
36839 fi
36840
36841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36842 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36843 $as_echo "$ac_header_compiler" >&6; }
36844
36845 # Is the header present?
36846 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
36847 $as_echo_n "checking $ac_header presence... " >&6; }
36848 cat >conftest.$ac_ext <<_ACEOF
36849 /* confdefs.h.  */
36850 _ACEOF
36851 cat confdefs.h >>conftest.$ac_ext
36852 cat >>conftest.$ac_ext <<_ACEOF
36853 /* end confdefs.h.  */
36854 #include <$ac_header>
36855 _ACEOF
36856 if { (ac_try="$ac_cpp conftest.$ac_ext"
36857 case "(($ac_try" in
36858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36859   *) ac_try_echo=$ac_try;;
36860 esac
36861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36862 $as_echo "$ac_try_echo") >&5
36863   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36864   ac_status=$?
36865   grep -v '^ *+' conftest.er1 >conftest.err
36866   rm -f conftest.er1
36867   cat conftest.err >&5
36868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36869   (exit $ac_status); } >/dev/null && {
36870          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36871          test ! -s conftest.err
36872        }; then
36873   ac_header_preproc=yes
36874 else
36875   $as_echo "$as_me: failed program was:" >&5
36876 sed 's/^/| /' conftest.$ac_ext >&5
36877
36878   ac_header_preproc=no
36879 fi
36880
36881 rm -f conftest.err conftest.$ac_ext
36882 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36883 $as_echo "$ac_header_preproc" >&6; }
36884
36885 # So?  What about this header?
36886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36887   yes:no: )
36888     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36889 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36890     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36891 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36892     ac_header_preproc=yes
36893     ;;
36894   no:yes:* )
36895     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36896 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36897     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36898 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36899     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36900 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36901     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36902 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36903     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36904 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36905     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36906 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36907     ( cat <<\_ASBOX
36908 ## ------------------------------------ ##
36909 ## Report this to bug-coreutils@gnu.org ##
36910 ## ------------------------------------ ##
36911 _ASBOX
36912      ) | sed "s/^/$as_me: WARNING:     /" >&2
36913     ;;
36914 esac
36915 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36916 $as_echo_n "checking for $ac_header... " >&6; }
36917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36918   $as_echo_n "(cached) " >&6
36919 else
36920   eval "$as_ac_Header=\$ac_header_preproc"
36921 fi
36922 ac_res=`eval 'as_val=${'$as_ac_Header'}
36923                  $as_echo "$as_val"'`
36924                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36925 $as_echo "$ac_res" >&6; }
36926
36927 fi
36928 if test `eval 'as_val=${'$as_ac_Header'}
36929                  $as_echo "$as_val"'` = yes; then
36930   cat >>confdefs.h <<_ACEOF
36931 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36932 _ACEOF
36933
36934 fi
36935
36936 done
36937
36938 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
36939 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
36940 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
36941   $as_echo_n "(cached) " >&6
36942 else
36943   if test "$cross_compiling" = yes; then
36944   ac_cv_func_realloc_0_nonnull=no
36945 else
36946   cat >conftest.$ac_ext <<_ACEOF
36947 /* confdefs.h.  */
36948 _ACEOF
36949 cat confdefs.h >>conftest.$ac_ext
36950 cat >>conftest.$ac_ext <<_ACEOF
36951 /* end confdefs.h.  */
36952 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
36953 # include <stdlib.h>
36954 #else
36955 char *realloc ();
36956 #endif
36957
36958 int
36959 main ()
36960 {
36961 return ! realloc (0, 0);
36962   ;
36963   return 0;
36964 }
36965 _ACEOF
36966 rm -f conftest$ac_exeext
36967 if { (ac_try="$ac_link"
36968 case "(($ac_try" in
36969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36970   *) ac_try_echo=$ac_try;;
36971 esac
36972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36973 $as_echo "$ac_try_echo") >&5
36974   (eval "$ac_link") 2>&5
36975   ac_status=$?
36976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36977   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36978   { (case "(($ac_try" in
36979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36980   *) ac_try_echo=$ac_try;;
36981 esac
36982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36983 $as_echo "$ac_try_echo") >&5
36984   (eval "$ac_try") 2>&5
36985   ac_status=$?
36986   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36987   (exit $ac_status); }; }; then
36988   ac_cv_func_realloc_0_nonnull=yes
36989 else
36990   $as_echo "$as_me: program exited with status $ac_status" >&5
36991 $as_echo "$as_me: failed program was:" >&5
36992 sed 's/^/| /' conftest.$ac_ext >&5
36993
36994 ( exit $ac_status )
36995 ac_cv_func_realloc_0_nonnull=no
36996 fi
36997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36998 fi
36999
37000
37001 fi
37002 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
37003 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
37004 if test $ac_cv_func_realloc_0_nonnull = yes; then
37005
37006 cat >>confdefs.h <<\_ACEOF
37007 #define HAVE_REALLOC 1
37008 _ACEOF
37009
37010 else
37011   cat >>confdefs.h <<\_ACEOF
37012 #define HAVE_REALLOC 0
37013 _ACEOF
37014
37015    gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
37016
37017 cat >>confdefs.h <<\_ACEOF
37018 #define realloc rpl_realloc
37019 _ACEOF
37020
37021 fi
37022
37023
37024
37025
37026
37027
37028
37029
37030
37031
37032
37033
37034 # Check whether --with-included-regex was given.
37035 if test "${with_included_regex+set}" = set; then
37036   withval=$with_included_regex;
37037 fi
37038
37039
37040   case $with_included_regex in #(
37041   yes|no) ac_use_included_regex=$with_included_regex
37042         ;;
37043   '')
37044     # If the system regex support is good enough that it passes the
37045     # following run test, then default to *not* using the included regex.c.
37046     # If cross compiling, assume the test would fail and use the included
37047     # regex.c.
37048     { $as_echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
37049 $as_echo_n "checking for working re_compile_pattern... " >&6; }
37050 if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
37051   $as_echo_n "(cached) " >&6
37052 else
37053   if test "$cross_compiling" = yes; then
37054          gl_cv_func_re_compile_pattern_working=no
37055 else
37056   cat >conftest.$ac_ext <<_ACEOF
37057 /* confdefs.h.  */
37058 _ACEOF
37059 cat confdefs.h >>conftest.$ac_ext
37060 cat >>conftest.$ac_ext <<_ACEOF
37061 /* end confdefs.h.  */
37062 $ac_includes_default
37063            #if HAVE_LOCALE_H
37064             #include <locale.h>
37065            #endif
37066            #include <limits.h>
37067            #include <regex.h>
37068
37069 int
37070 main ()
37071 {
37072 static struct re_pattern_buffer regex;
37073             unsigned char folded_chars[UCHAR_MAX + 1];
37074             int i;
37075             const char *s;
37076             struct re_registers regs;
37077
37078             #if HAVE_LOCALE_H
37079               /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
37080                  This test needs valgrind to catch the bug on Debian
37081                  GNU/Linux 3.1 x86, but it might catch the bug better
37082                  on other platforms and it shouldn't hurt to try the
37083                  test here.  */
37084               if (setlocale (LC_ALL, "en_US.UTF-8"))
37085                 {
37086                   static char const pat[] = "insert into";
37087                   static char const data[] =
37088                     "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
37089                   re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
37090                                  | RE_ICASE);
37091                   memset (&regex, 0, sizeof regex);
37092                   s = re_compile_pattern (pat, sizeof pat - 1, &regex);
37093                   if (s)
37094                     return 1;
37095                   if (re_search (&regex, data, sizeof data - 1,
37096                                  0, sizeof data - 1, &regs)
37097                       != -1)
37098                     return 1;
37099                   if (! setlocale (LC_ALL, "C"))
37100                     return 1;
37101                 }
37102             #endif
37103
37104             /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
37105             re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
37106             memset (&regex, 0, sizeof regex);
37107             s = re_compile_pattern ("a[^x]b", 6, &regex);
37108             if (s)
37109               return 1;
37110
37111             /* This should fail, but succeeds for glibc-2.5.  */
37112             if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
37113               return 1;
37114
37115             /* This regular expression is from Spencer ere test number 75
37116                in grep-2.3.  */
37117             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
37118             memset (&regex, 0, sizeof regex);
37119             for (i = 0; i <= UCHAR_MAX; i++)
37120               folded_chars[i] = i;
37121             regex.translate = folded_chars;
37122             s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
37123             /* This should fail with _Invalid character class name_ error.  */
37124             if (!s)
37125               return 1;
37126
37127             /* This should succeed, but does not for glibc-2.1.3.  */
37128             memset (&regex, 0, sizeof regex);
37129             s = re_compile_pattern ("{1", 2, &regex);
37130
37131             if (s)
37132               return 1;
37133
37134             /* The following example is derived from a problem report
37135                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
37136             memset (&regex, 0, sizeof regex);
37137             s = re_compile_pattern ("[an\371]*n", 7, &regex);
37138             if (s)
37139               return 1;
37140
37141             /* This should match, but does not for glibc-2.2.1.  */
37142             if (re_match (&regex, "an", 2, 0, &regs) != 2)
37143               return 1;
37144
37145             memset (&regex, 0, sizeof regex);
37146             s = re_compile_pattern ("x", 1, &regex);
37147             if (s)
37148               return 1;
37149
37150             /* glibc-2.2.93 does not work with a negative RANGE argument.  */
37151             if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
37152               return 1;
37153
37154             /* The version of regex.c in older versions of gnulib
37155                ignored RE_ICASE.  Detect that problem too.  */
37156             re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
37157             memset (&regex, 0, sizeof regex);
37158             s = re_compile_pattern ("x", 1, &regex);
37159             if (s)
37160               return 1;
37161
37162             if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
37163               return 1;
37164
37165             /* REG_STARTEND was added to glibc on 2004-01-15.
37166                Reject older versions.  */
37167             if (! REG_STARTEND)
37168               return 1;
37169
37170             /* Reject hosts whose regoff_t values are too narrow.
37171                These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
37172                and 32-bit int.  */
37173             if (sizeof (regoff_t) < sizeof (ptrdiff_t)
37174                 || sizeof (regoff_t) < sizeof (ssize_t))
37175               return 1;
37176
37177             return 0;
37178   ;
37179   return 0;
37180 }
37181 _ACEOF
37182 rm -f conftest$ac_exeext
37183 if { (ac_try="$ac_link"
37184 case "(($ac_try" in
37185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37186   *) ac_try_echo=$ac_try;;
37187 esac
37188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37189 $as_echo "$ac_try_echo") >&5
37190   (eval "$ac_link") 2>&5
37191   ac_status=$?
37192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37193   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37194   { (case "(($ac_try" in
37195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37196   *) ac_try_echo=$ac_try;;
37197 esac
37198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37199 $as_echo "$ac_try_echo") >&5
37200   (eval "$ac_try") 2>&5
37201   ac_status=$?
37202   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37203   (exit $ac_status); }; }; then
37204   gl_cv_func_re_compile_pattern_working=yes
37205 else
37206   $as_echo "$as_me: program exited with status $ac_status" >&5
37207 $as_echo "$as_me: failed program was:" >&5
37208 sed 's/^/| /' conftest.$ac_ext >&5
37209
37210 ( exit $ac_status )
37211 gl_cv_func_re_compile_pattern_working=no
37212 fi
37213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37214 fi
37215
37216
37217 fi
37218 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
37219 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
37220     case $gl_cv_func_re_compile_pattern_working in #(
37221     yes) ac_use_included_regex=no;; #(
37222     no) ac_use_included_regex=yes;;
37223     esac
37224     ;;
37225   *) { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
37226 $as_echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
37227    { (exit 1); exit 1; }; }
37228     ;;
37229   esac
37230
37231   if test $ac_use_included_regex = yes; then
37232
37233 cat >>confdefs.h <<\_ACEOF
37234 #define _REGEX_LARGE_OFFSETS 1
37235 _ACEOF
37236
37237
37238 cat >>confdefs.h <<\_ACEOF
37239 #define re_syntax_options rpl_re_syntax_options
37240 _ACEOF
37241
37242
37243 cat >>confdefs.h <<\_ACEOF
37244 #define re_set_syntax rpl_re_set_syntax
37245 _ACEOF
37246
37247
37248 cat >>confdefs.h <<\_ACEOF
37249 #define re_compile_pattern rpl_re_compile_pattern
37250 _ACEOF
37251
37252
37253 cat >>confdefs.h <<\_ACEOF
37254 #define re_compile_fastmap rpl_re_compile_fastmap
37255 _ACEOF
37256
37257
37258 cat >>confdefs.h <<\_ACEOF
37259 #define re_search rpl_re_search
37260 _ACEOF
37261
37262
37263 cat >>confdefs.h <<\_ACEOF
37264 #define re_search_2 rpl_re_search_2
37265 _ACEOF
37266
37267
37268 cat >>confdefs.h <<\_ACEOF
37269 #define re_match rpl_re_match
37270 _ACEOF
37271
37272
37273 cat >>confdefs.h <<\_ACEOF
37274 #define re_match_2 rpl_re_match_2
37275 _ACEOF
37276
37277
37278 cat >>confdefs.h <<\_ACEOF
37279 #define re_set_registers rpl_re_set_registers
37280 _ACEOF
37281
37282
37283 cat >>confdefs.h <<\_ACEOF
37284 #define re_comp rpl_re_comp
37285 _ACEOF
37286
37287
37288 cat >>confdefs.h <<\_ACEOF
37289 #define re_exec rpl_re_exec
37290 _ACEOF
37291
37292
37293 cat >>confdefs.h <<\_ACEOF
37294 #define regcomp rpl_regcomp
37295 _ACEOF
37296
37297
37298 cat >>confdefs.h <<\_ACEOF
37299 #define regexec rpl_regexec
37300 _ACEOF
37301
37302
37303 cat >>confdefs.h <<\_ACEOF
37304 #define regerror rpl_regerror
37305 _ACEOF
37306
37307
37308 cat >>confdefs.h <<\_ACEOF
37309 #define regfree rpl_regfree
37310 _ACEOF
37311
37312     gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
37313
37314
37315
37316
37317
37318
37319
37320
37321
37322
37323
37324
37325
37326
37327
37328   { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5
37329 $as_echo_n "checking whether isblank is declared... " >&6; }
37330 if test "${ac_cv_have_decl_isblank+set}" = set; then
37331   $as_echo_n "(cached) " >&6
37332 else
37333   cat >conftest.$ac_ext <<_ACEOF
37334 /* confdefs.h.  */
37335 _ACEOF
37336 cat confdefs.h >>conftest.$ac_ext
37337 cat >>conftest.$ac_ext <<_ACEOF
37338 /* end confdefs.h.  */
37339 #include <ctype.h>
37340
37341 int
37342 main ()
37343 {
37344 #ifndef isblank
37345   (void) isblank;
37346 #endif
37347
37348   ;
37349   return 0;
37350 }
37351 _ACEOF
37352 rm -f conftest.$ac_objext
37353 if { (ac_try="$ac_compile"
37354 case "(($ac_try" in
37355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37356   *) ac_try_echo=$ac_try;;
37357 esac
37358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37359 $as_echo "$ac_try_echo") >&5
37360   (eval "$ac_compile") 2>conftest.er1
37361   ac_status=$?
37362   grep -v '^ *+' conftest.er1 >conftest.err
37363   rm -f conftest.er1
37364   cat conftest.err >&5
37365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37366   (exit $ac_status); } && {
37367          test -z "$ac_c_werror_flag" ||
37368          test ! -s conftest.err
37369        } && test -s conftest.$ac_objext; then
37370   ac_cv_have_decl_isblank=yes
37371 else
37372   $as_echo "$as_me: failed program was:" >&5
37373 sed 's/^/| /' conftest.$ac_ext >&5
37374
37375         ac_cv_have_decl_isblank=no
37376 fi
37377
37378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37379 fi
37380 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
37381 $as_echo "$ac_cv_have_decl_isblank" >&6; }
37382 if test $ac_cv_have_decl_isblank = yes; then
37383
37384 cat >>confdefs.h <<_ACEOF
37385 #define HAVE_DECL_ISBLANK 1
37386 _ACEOF
37387
37388
37389 else
37390   cat >>confdefs.h <<_ACEOF
37391 #define HAVE_DECL_ISBLANK 0
37392 _ACEOF
37393
37394
37395 fi
37396
37397
37398
37399   fi
37400
37401
37402  { $as_echo "$as_me:$LINENO: checking whether rename is broken" >&5
37403 $as_echo_n "checking whether rename is broken... " >&6; }
37404 if test "${gl_cv_func_rename_trailing_slash_bug+set}" = set; then
37405   $as_echo_n "(cached) " >&6
37406 else
37407
37408     rm -rf conftest.d1 conftest.d2
37409     mkdir conftest.d1 ||
37410       { { $as_echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
37411 $as_echo "$as_me: error: cannot create temporary directory" >&2;}
37412    { (exit 1); exit 1; }; }
37413     if test "$cross_compiling" = yes; then
37414         gl_cv_func_rename_trailing_slash_bug=yes
37415 else
37416   cat >conftest.$ac_ext <<_ACEOF
37417 /* confdefs.h.  */
37418 _ACEOF
37419 cat confdefs.h >>conftest.$ac_ext
37420 cat >>conftest.$ac_ext <<_ACEOF
37421 /* end confdefs.h.  */
37422
37423 #       include <stdio.h>
37424 #       include <stdlib.h>
37425         int
37426         main ()
37427         {
37428           exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
37429         }
37430
37431 _ACEOF
37432 rm -f conftest$ac_exeext
37433 if { (ac_try="$ac_link"
37434 case "(($ac_try" in
37435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37436   *) ac_try_echo=$ac_try;;
37437 esac
37438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37439 $as_echo "$ac_try_echo") >&5
37440   (eval "$ac_link") 2>&5
37441   ac_status=$?
37442   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37443   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37444   { (case "(($ac_try" in
37445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37446   *) ac_try_echo=$ac_try;;
37447 esac
37448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37449 $as_echo "$ac_try_echo") >&5
37450   (eval "$ac_try") 2>&5
37451   ac_status=$?
37452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37453   (exit $ac_status); }; }; then
37454   gl_cv_func_rename_trailing_slash_bug=no
37455 else
37456   $as_echo "$as_me: program exited with status $ac_status" >&5
37457 $as_echo "$as_me: failed program was:" >&5
37458 sed 's/^/| /' conftest.$ac_ext >&5
37459
37460 ( exit $ac_status )
37461 gl_cv_func_rename_trailing_slash_bug=yes
37462 fi
37463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37464 fi
37465
37466
37467
37468       rm -rf conftest.d1 conftest.d2
37469
37470 fi
37471 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rename_trailing_slash_bug" >&5
37472 $as_echo "$gl_cv_func_rename_trailing_slash_bug" >&6; }
37473   if test $gl_cv_func_rename_trailing_slash_bug = yes; then
37474     gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
37475
37476 cat >>confdefs.h <<\_ACEOF
37477 #define rename rpl_rename
37478 _ACEOF
37479
37480
37481 cat >>confdefs.h <<\_ACEOF
37482 #define RENAME_TRAILING_SLASH_BUG 1
37483 _ACEOF
37484
37485     :
37486   fi
37487
37488
37489  { $as_echo "$as_me:$LINENO: checking whether rename is broken with respect to destination slashes" >&5
37490 $as_echo_n "checking whether rename is broken with respect to destination slashes... " >&6; }
37491 if test "${gl_cv_func_rename_trailing_dest_slash_bug+set}" = set; then
37492   $as_echo_n "(cached) " >&6
37493 else
37494
37495     rm -rf conftest.d1 conftest.d2
37496     mkdir conftest.d1 ||
37497       { { $as_echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
37498 $as_echo "$as_me: error: cannot create temporary directory" >&2;}
37499    { (exit 1); exit 1; }; }
37500     if test "$cross_compiling" = yes; then
37501         gl_cv_func_rename_trailing_dest_slash_bug=yes
37502 else
37503   cat >conftest.$ac_ext <<_ACEOF
37504 /* confdefs.h.  */
37505 _ACEOF
37506 cat confdefs.h >>conftest.$ac_ext
37507 cat >>conftest.$ac_ext <<_ACEOF
37508 /* end confdefs.h.  */
37509
37510 #       include <stdio.h>
37511         int
37512         main ()
37513         {
37514           return (rename ("conftest.d1", "conftest.d2/") ? 1 : 0);
37515         }
37516
37517 _ACEOF
37518 rm -f conftest$ac_exeext
37519 if { (ac_try="$ac_link"
37520 case "(($ac_try" in
37521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37522   *) ac_try_echo=$ac_try;;
37523 esac
37524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37525 $as_echo "$ac_try_echo") >&5
37526   (eval "$ac_link") 2>&5
37527   ac_status=$?
37528   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37529   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37530   { (case "(($ac_try" in
37531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37532   *) ac_try_echo=$ac_try;;
37533 esac
37534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37535 $as_echo "$ac_try_echo") >&5
37536   (eval "$ac_try") 2>&5
37537   ac_status=$?
37538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37539   (exit $ac_status); }; }; then
37540   gl_cv_func_rename_trailing_dest_slash_bug=no
37541 else
37542   $as_echo "$as_me: program exited with status $ac_status" >&5
37543 $as_echo "$as_me: failed program was:" >&5
37544 sed 's/^/| /' conftest.$ac_ext >&5
37545
37546 ( exit $ac_status )
37547 gl_cv_func_rename_trailing_dest_slash_bug=yes
37548 fi
37549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37550 fi
37551
37552
37553
37554       rm -rf conftest.d1 conftest.d2
37555
37556 fi
37557 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rename_trailing_dest_slash_bug" >&5
37558 $as_echo "$gl_cv_func_rename_trailing_dest_slash_bug" >&6; }
37559   if test $gl_cv_func_rename_trailing_dest_slash_bug = yes; then
37560     gl_LIBOBJS="$gl_LIBOBJS rename-dest-slash.$ac_objext"
37561
37562 cat >>confdefs.h <<\_ACEOF
37563 #define rename rpl_rename_dest_slash
37564 _ACEOF
37565
37566   fi
37567
37568
37569
37570 for ac_func in rmdir
37571 do
37572 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37573 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
37574 $as_echo_n "checking for $ac_func... " >&6; }
37575 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37576   $as_echo_n "(cached) " >&6
37577 else
37578   cat >conftest.$ac_ext <<_ACEOF
37579 /* confdefs.h.  */
37580 _ACEOF
37581 cat confdefs.h >>conftest.$ac_ext
37582 cat >>conftest.$ac_ext <<_ACEOF
37583 /* end confdefs.h.  */
37584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37585    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37586 #define $ac_func innocuous_$ac_func
37587
37588 /* System header to define __stub macros and hopefully few prototypes,
37589     which can conflict with char $ac_func (); below.
37590     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37591     <limits.h> exists even on freestanding compilers.  */
37592
37593 #ifdef __STDC__
37594 # include <limits.h>
37595 #else
37596 # include <assert.h>
37597 #endif
37598
37599 #undef $ac_func
37600
37601 /* Override any GCC internal prototype to avoid an error.
37602    Use char because int might match the return type of a GCC
37603    builtin and then its argument prototype would still apply.  */
37604 #ifdef __cplusplus
37605 extern "C"
37606 #endif
37607 char $ac_func ();
37608 /* The GNU C library defines this for functions which it implements
37609     to always fail with ENOSYS.  Some functions are actually named
37610     something starting with __ and the normal name is an alias.  */
37611 #if defined __stub_$ac_func || defined __stub___$ac_func
37612 choke me
37613 #endif
37614
37615 int
37616 main ()
37617 {
37618 return $ac_func ();
37619   ;
37620   return 0;
37621 }
37622 _ACEOF
37623 rm -f conftest.$ac_objext conftest$ac_exeext
37624 if { (ac_try="$ac_link"
37625 case "(($ac_try" in
37626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37627   *) ac_try_echo=$ac_try;;
37628 esac
37629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37630 $as_echo "$ac_try_echo") >&5
37631   (eval "$ac_link") 2>conftest.er1
37632   ac_status=$?
37633   grep -v '^ *+' conftest.er1 >conftest.err
37634   rm -f conftest.er1
37635   cat conftest.err >&5
37636   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37637   (exit $ac_status); } && {
37638          test -z "$ac_c_werror_flag" ||
37639          test ! -s conftest.err
37640        } && test -s conftest$ac_exeext &&
37641        $as_test_x conftest$ac_exeext; then
37642   eval "$as_ac_var=yes"
37643 else
37644   $as_echo "$as_me: failed program was:" >&5
37645 sed 's/^/| /' conftest.$ac_ext >&5
37646
37647         eval "$as_ac_var=no"
37648 fi
37649
37650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37651       conftest$ac_exeext conftest.$ac_ext
37652 fi
37653 ac_res=`eval 'as_val=${'$as_ac_var'}
37654                  $as_echo "$as_val"'`
37655                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37656 $as_echo "$ac_res" >&6; }
37657 if test `eval 'as_val=${'$as_ac_var'}
37658                  $as_echo "$as_val"'` = yes; then
37659   cat >>confdefs.h <<_ACEOF
37660 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37661 _ACEOF
37662
37663 else
37664   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
37665 fi
37666 done
37667
37668
37669
37670
37671
37672
37673
37674
37675   { $as_echo "$as_me:$LINENO: checking for rmdir-not-empty errno value" >&5
37676 $as_echo_n "checking for rmdir-not-empty errno value... " >&6; }
37677 if test "${gl_cv_func_rmdir_errno_not_empty+set}" = set; then
37678   $as_echo_n "(cached) " >&6
37679 else
37680
37681       # Arrange for deletion of the temporary directory this test creates.
37682       ac_clean_files="$ac_clean_files confdir2"
37683       mkdir confdir2; : > confdir2/file
37684       if test "$cross_compiling" = yes; then
37685   gl_cv_func_rmdir_errno_not_empty=ENOTEMPTY
37686
37687 else
37688   cat >conftest.$ac_ext <<_ACEOF
37689 /* confdefs.h.  */
37690 _ACEOF
37691 cat confdefs.h >>conftest.$ac_ext
37692 cat >>conftest.$ac_ext <<_ACEOF
37693 /* end confdefs.h.  */
37694
37695 #include <stdio.h>
37696 #include <errno.h>
37697 #ifdef HAVE_UNISTD_H
37698 # include <unistd.h>
37699 #endif
37700         int main ()
37701         {
37702           FILE *s;
37703           int val;
37704           rmdir ("confdir2");
37705           val = errno;
37706           s = fopen ("confdir2/errno", "w");
37707           fprintf (s, "%d\n", val);
37708           return 0;
37709         }
37710
37711 _ACEOF
37712 rm -f conftest$ac_exeext
37713 if { (ac_try="$ac_link"
37714 case "(($ac_try" in
37715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37716   *) ac_try_echo=$ac_try;;
37717 esac
37718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37719 $as_echo "$ac_try_echo") >&5
37720   (eval "$ac_link") 2>&5
37721   ac_status=$?
37722   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37723   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37724   { (case "(($ac_try" in
37725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37726   *) ac_try_echo=$ac_try;;
37727 esac
37728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37729 $as_echo "$ac_try_echo") >&5
37730   (eval "$ac_try") 2>&5
37731   ac_status=$?
37732   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37733   (exit $ac_status); }; }; then
37734   gl_cv_func_rmdir_errno_not_empty=`cat confdir2/errno`
37735 else
37736   $as_echo "$as_me: program exited with status $ac_status" >&5
37737 $as_echo "$as_me: failed program was:" >&5
37738 sed 's/^/| /' conftest.$ac_ext >&5
37739
37740 ( exit $ac_status )
37741 gl_cv_func_rmdir_errno_not_empty='configure error in rmdir-errno.m4'
37742 fi
37743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37744 fi
37745
37746
37747
37748
37749 fi
37750 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rmdir_errno_not_empty" >&5
37751 $as_echo "$gl_cv_func_rmdir_errno_not_empty" >&6; }
37752
37753
37754 cat >>confdefs.h <<_ACEOF
37755 #define RMDIR_ERRNO_NOT_EMPTY $gl_cv_func_rmdir_errno_not_empty
37756 _ACEOF
37757
37758
37759
37760   gl_LIBOBJS="$gl_LIBOBJS root-dev-ino.$ac_objext"
37761
37762
37763   :
37764
37765
37766
37767 for ac_func in rpmatch
37768 do
37769 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37770 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
37771 $as_echo_n "checking for $ac_func... " >&6; }
37772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37773   $as_echo_n "(cached) " >&6
37774 else
37775   cat >conftest.$ac_ext <<_ACEOF
37776 /* confdefs.h.  */
37777 _ACEOF
37778 cat confdefs.h >>conftest.$ac_ext
37779 cat >>conftest.$ac_ext <<_ACEOF
37780 /* end confdefs.h.  */
37781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37782    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37783 #define $ac_func innocuous_$ac_func
37784
37785 /* System header to define __stub macros and hopefully few prototypes,
37786     which can conflict with char $ac_func (); below.
37787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37788     <limits.h> exists even on freestanding compilers.  */
37789
37790 #ifdef __STDC__
37791 # include <limits.h>
37792 #else
37793 # include <assert.h>
37794 #endif
37795
37796 #undef $ac_func
37797
37798 /* Override any GCC internal prototype to avoid an error.
37799    Use char because int might match the return type of a GCC
37800    builtin and then its argument prototype would still apply.  */
37801 #ifdef __cplusplus
37802 extern "C"
37803 #endif
37804 char $ac_func ();
37805 /* The GNU C library defines this for functions which it implements
37806     to always fail with ENOSYS.  Some functions are actually named
37807     something starting with __ and the normal name is an alias.  */
37808 #if defined __stub_$ac_func || defined __stub___$ac_func
37809 choke me
37810 #endif
37811
37812 int
37813 main ()
37814 {
37815 return $ac_func ();
37816   ;
37817   return 0;
37818 }
37819 _ACEOF
37820 rm -f conftest.$ac_objext conftest$ac_exeext
37821 if { (ac_try="$ac_link"
37822 case "(($ac_try" in
37823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37824   *) ac_try_echo=$ac_try;;
37825 esac
37826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37827 $as_echo "$ac_try_echo") >&5
37828   (eval "$ac_link") 2>conftest.er1
37829   ac_status=$?
37830   grep -v '^ *+' conftest.er1 >conftest.err
37831   rm -f conftest.er1
37832   cat conftest.err >&5
37833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37834   (exit $ac_status); } && {
37835          test -z "$ac_c_werror_flag" ||
37836          test ! -s conftest.err
37837        } && test -s conftest$ac_exeext &&
37838        $as_test_x conftest$ac_exeext; then
37839   eval "$as_ac_var=yes"
37840 else
37841   $as_echo "$as_me: failed program was:" >&5
37842 sed 's/^/| /' conftest.$ac_ext >&5
37843
37844         eval "$as_ac_var=no"
37845 fi
37846
37847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37848       conftest$ac_exeext conftest.$ac_ext
37849 fi
37850 ac_res=`eval 'as_val=${'$as_ac_var'}
37851                  $as_echo "$as_val"'`
37852                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37853 $as_echo "$ac_res" >&6; }
37854 if test `eval 'as_val=${'$as_ac_var'}
37855                  $as_echo "$as_val"'` = yes; then
37856   cat >>confdefs.h <<_ACEOF
37857 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37858 _ACEOF
37859
37860 else
37861   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
37862 fi
37863 done
37864
37865   if test $ac_cv_func_rpmatch = no; then
37866     :
37867   fi
37868
37869
37870   gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
37871
37872
37873
37874
37875
37876
37877   gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
37878
37879
37880
37881
37882
37883
37884
37885
37886   gl_LIBOBJS="$gl_LIBOBJS same.$ac_objext"
37887
37888
37889
37890
37891
37892
37893
37894
37895
37896
37897   gl_LIBOBJS="$gl_LIBOBJS save-cwd.$ac_objext"
37898
37899
37900
37901
37902
37903
37904
37905
37906   gl_LIBOBJS="$gl_LIBOBJS savedir.$ac_objext"
37907
37908
37909
37910
37911
37912
37913
37914
37915
37916   if test $ac_cv_func_setenv = no; then
37917     gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
37918
37919
37920
37921
37922
37923
37924
37925
37926
37927 for ac_header in search.h
37928 do
37929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37931   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
37932 $as_echo_n "checking for $ac_header... " >&6; }
37933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37934   $as_echo_n "(cached) " >&6
37935 fi
37936 ac_res=`eval 'as_val=${'$as_ac_Header'}
37937                  $as_echo "$as_val"'`
37938                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37939 $as_echo "$ac_res" >&6; }
37940 else
37941   # Is the header compilable?
37942 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
37943 $as_echo_n "checking $ac_header usability... " >&6; }
37944 cat >conftest.$ac_ext <<_ACEOF
37945 /* confdefs.h.  */
37946 _ACEOF
37947 cat confdefs.h >>conftest.$ac_ext
37948 cat >>conftest.$ac_ext <<_ACEOF
37949 /* end confdefs.h.  */
37950 $ac_includes_default
37951 #include <$ac_header>
37952 _ACEOF
37953 rm -f conftest.$ac_objext
37954 if { (ac_try="$ac_compile"
37955 case "(($ac_try" in
37956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37957   *) ac_try_echo=$ac_try;;
37958 esac
37959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37960 $as_echo "$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   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37967   (exit $ac_status); } && {
37968          test -z "$ac_c_werror_flag" ||
37969          test ! -s conftest.err
37970        } && test -s conftest.$ac_objext; then
37971   ac_header_compiler=yes
37972 else
37973   $as_echo "$as_me: failed program was:" >&5
37974 sed 's/^/| /' conftest.$ac_ext >&5
37975
37976         ac_header_compiler=no
37977 fi
37978
37979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37980 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37981 $as_echo "$ac_header_compiler" >&6; }
37982
37983 # Is the header present?
37984 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
37985 $as_echo_n "checking $ac_header presence... " >&6; }
37986 cat >conftest.$ac_ext <<_ACEOF
37987 /* confdefs.h.  */
37988 _ACEOF
37989 cat confdefs.h >>conftest.$ac_ext
37990 cat >>conftest.$ac_ext <<_ACEOF
37991 /* end confdefs.h.  */
37992 #include <$ac_header>
37993 _ACEOF
37994 if { (ac_try="$ac_cpp conftest.$ac_ext"
37995 case "(($ac_try" in
37996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37997   *) ac_try_echo=$ac_try;;
37998 esac
37999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38000 $as_echo "$ac_try_echo") >&5
38001   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38002   ac_status=$?
38003   grep -v '^ *+' conftest.er1 >conftest.err
38004   rm -f conftest.er1
38005   cat conftest.err >&5
38006   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38007   (exit $ac_status); } >/dev/null && {
38008          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38009          test ! -s conftest.err
38010        }; then
38011   ac_header_preproc=yes
38012 else
38013   $as_echo "$as_me: failed program was:" >&5
38014 sed 's/^/| /' conftest.$ac_ext >&5
38015
38016   ac_header_preproc=no
38017 fi
38018
38019 rm -f conftest.err conftest.$ac_ext
38020 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38021 $as_echo "$ac_header_preproc" >&6; }
38022
38023 # So?  What about this header?
38024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38025   yes:no: )
38026     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38027 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38028     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38029 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38030     ac_header_preproc=yes
38031     ;;
38032   no:yes:* )
38033     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38034 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38035     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38036 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38037     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38038 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38039     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38040 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38041     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38042 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38043     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38044 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38045     ( cat <<\_ASBOX
38046 ## ------------------------------------ ##
38047 ## Report this to bug-coreutils@gnu.org ##
38048 ## ------------------------------------ ##
38049 _ASBOX
38050      ) | sed "s/^/$as_me: WARNING:     /" >&2
38051     ;;
38052 esac
38053 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
38054 $as_echo_n "checking for $ac_header... " >&6; }
38055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38056   $as_echo_n "(cached) " >&6
38057 else
38058   eval "$as_ac_Header=\$ac_header_preproc"
38059 fi
38060 ac_res=`eval 'as_val=${'$as_ac_Header'}
38061                  $as_echo "$as_val"'`
38062                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38063 $as_echo "$ac_res" >&6; }
38064
38065 fi
38066 if test `eval 'as_val=${'$as_ac_Header'}
38067                  $as_echo "$as_val"'` = yes; then
38068   cat >>confdefs.h <<_ACEOF
38069 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38070 _ACEOF
38071
38072 fi
38073
38074 done
38075
38076
38077 for ac_func in tsearch
38078 do
38079 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38080 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38081 $as_echo_n "checking for $ac_func... " >&6; }
38082 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38083   $as_echo_n "(cached) " >&6
38084 else
38085   cat >conftest.$ac_ext <<_ACEOF
38086 /* confdefs.h.  */
38087 _ACEOF
38088 cat confdefs.h >>conftest.$ac_ext
38089 cat >>conftest.$ac_ext <<_ACEOF
38090 /* end confdefs.h.  */
38091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38092    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38093 #define $ac_func innocuous_$ac_func
38094
38095 /* System header to define __stub macros and hopefully few prototypes,
38096     which can conflict with char $ac_func (); below.
38097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38098     <limits.h> exists even on freestanding compilers.  */
38099
38100 #ifdef __STDC__
38101 # include <limits.h>
38102 #else
38103 # include <assert.h>
38104 #endif
38105
38106 #undef $ac_func
38107
38108 /* Override any GCC internal prototype to avoid an error.
38109    Use char because int might match the return type of a GCC
38110    builtin and then its argument prototype would still apply.  */
38111 #ifdef __cplusplus
38112 extern "C"
38113 #endif
38114 char $ac_func ();
38115 /* The GNU C library defines this for functions which it implements
38116     to always fail with ENOSYS.  Some functions are actually named
38117     something starting with __ and the normal name is an alias.  */
38118 #if defined __stub_$ac_func || defined __stub___$ac_func
38119 choke me
38120 #endif
38121
38122 int
38123 main ()
38124 {
38125 return $ac_func ();
38126   ;
38127   return 0;
38128 }
38129 _ACEOF
38130 rm -f conftest.$ac_objext conftest$ac_exeext
38131 if { (ac_try="$ac_link"
38132 case "(($ac_try" in
38133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38134   *) ac_try_echo=$ac_try;;
38135 esac
38136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38137 $as_echo "$ac_try_echo") >&5
38138   (eval "$ac_link") 2>conftest.er1
38139   ac_status=$?
38140   grep -v '^ *+' conftest.er1 >conftest.err
38141   rm -f conftest.er1
38142   cat conftest.err >&5
38143   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38144   (exit $ac_status); } && {
38145          test -z "$ac_c_werror_flag" ||
38146          test ! -s conftest.err
38147        } && test -s conftest$ac_exeext &&
38148        $as_test_x conftest$ac_exeext; then
38149   eval "$as_ac_var=yes"
38150 else
38151   $as_echo "$as_me: failed program was:" >&5
38152 sed 's/^/| /' conftest.$ac_ext >&5
38153
38154         eval "$as_ac_var=no"
38155 fi
38156
38157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38158       conftest$ac_exeext conftest.$ac_ext
38159 fi
38160 ac_res=`eval 'as_val=${'$as_ac_var'}
38161                  $as_echo "$as_val"'`
38162                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38163 $as_echo "$ac_res" >&6; }
38164 if test `eval 'as_val=${'$as_ac_var'}
38165                  $as_echo "$as_val"'` = yes; then
38166   cat >>confdefs.h <<_ACEOF
38167 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38168 _ACEOF
38169
38170 fi
38171 done
38172
38173
38174
38175   { $as_echo "$as_me:$LINENO: checking if environ is properly declared" >&5
38176 $as_echo_n "checking if environ is properly declared... " >&6; }
38177   if test "${gt_cv_var_environ_declaration+set}" = set; then
38178   $as_echo_n "(cached) " >&6
38179 else
38180
38181     cat >conftest.$ac_ext <<_ACEOF
38182 /* confdefs.h.  */
38183 _ACEOF
38184 cat confdefs.h >>conftest.$ac_ext
38185 cat >>conftest.$ac_ext <<_ACEOF
38186 /* end confdefs.h.  */
38187 #include <unistd.h>
38188       extern struct { int foo; } environ;
38189 int
38190 main ()
38191 {
38192 environ.foo = 1;
38193   ;
38194   return 0;
38195 }
38196 _ACEOF
38197 rm -f conftest.$ac_objext
38198 if { (ac_try="$ac_compile"
38199 case "(($ac_try" in
38200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38201   *) ac_try_echo=$ac_try;;
38202 esac
38203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38204 $as_echo "$ac_try_echo") >&5
38205   (eval "$ac_compile") 2>conftest.er1
38206   ac_status=$?
38207   grep -v '^ *+' conftest.er1 >conftest.err
38208   rm -f conftest.er1
38209   cat conftest.err >&5
38210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38211   (exit $ac_status); } && {
38212          test -z "$ac_c_werror_flag" ||
38213          test ! -s conftest.err
38214        } && test -s conftest.$ac_objext; then
38215   gt_cv_var_environ_declaration=no
38216 else
38217   $as_echo "$as_me: failed program was:" >&5
38218 sed 's/^/| /' conftest.$ac_ext >&5
38219
38220         gt_cv_var_environ_declaration=yes
38221 fi
38222
38223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38224 fi
38225
38226   { $as_echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
38227 $as_echo "$gt_cv_var_environ_declaration" >&6; }
38228   if test $gt_cv_var_environ_declaration = yes; then
38229
38230 cat >>confdefs.h <<\_ACEOF
38231 #define HAVE_ENVIRON_DECL 1
38232 _ACEOF
38233
38234   fi
38235
38236
38237   fi
38238
38239
38240
38241 for ac_func in unsetenv
38242 do
38243 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38244 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38245 $as_echo_n "checking for $ac_func... " >&6; }
38246 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38247   $as_echo_n "(cached) " >&6
38248 else
38249   cat >conftest.$ac_ext <<_ACEOF
38250 /* confdefs.h.  */
38251 _ACEOF
38252 cat confdefs.h >>conftest.$ac_ext
38253 cat >>conftest.$ac_ext <<_ACEOF
38254 /* end confdefs.h.  */
38255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38256    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38257 #define $ac_func innocuous_$ac_func
38258
38259 /* System header to define __stub macros and hopefully few prototypes,
38260     which can conflict with char $ac_func (); below.
38261     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38262     <limits.h> exists even on freestanding compilers.  */
38263
38264 #ifdef __STDC__
38265 # include <limits.h>
38266 #else
38267 # include <assert.h>
38268 #endif
38269
38270 #undef $ac_func
38271
38272 /* Override any GCC internal prototype to avoid an error.
38273    Use char because int might match the return type of a GCC
38274    builtin and then its argument prototype would still apply.  */
38275 #ifdef __cplusplus
38276 extern "C"
38277 #endif
38278 char $ac_func ();
38279 /* The GNU C library defines this for functions which it implements
38280     to always fail with ENOSYS.  Some functions are actually named
38281     something starting with __ and the normal name is an alias.  */
38282 #if defined __stub_$ac_func || defined __stub___$ac_func
38283 choke me
38284 #endif
38285
38286 int
38287 main ()
38288 {
38289 return $ac_func ();
38290   ;
38291   return 0;
38292 }
38293 _ACEOF
38294 rm -f conftest.$ac_objext conftest$ac_exeext
38295 if { (ac_try="$ac_link"
38296 case "(($ac_try" in
38297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38298   *) ac_try_echo=$ac_try;;
38299 esac
38300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38301 $as_echo "$ac_try_echo") >&5
38302   (eval "$ac_link") 2>conftest.er1
38303   ac_status=$?
38304   grep -v '^ *+' conftest.er1 >conftest.err
38305   rm -f conftest.er1
38306   cat conftest.err >&5
38307   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38308   (exit $ac_status); } && {
38309          test -z "$ac_c_werror_flag" ||
38310          test ! -s conftest.err
38311        } && test -s conftest$ac_exeext &&
38312        $as_test_x conftest$ac_exeext; then
38313   eval "$as_ac_var=yes"
38314 else
38315   $as_echo "$as_me: failed program was:" >&5
38316 sed 's/^/| /' conftest.$ac_ext >&5
38317
38318         eval "$as_ac_var=no"
38319 fi
38320
38321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38322       conftest$ac_exeext conftest.$ac_ext
38323 fi
38324 ac_res=`eval 'as_val=${'$as_ac_var'}
38325                  $as_echo "$as_val"'`
38326                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38327 $as_echo "$ac_res" >&6; }
38328 if test `eval 'as_val=${'$as_ac_var'}
38329                  $as_echo "$as_val"'` = yes; then
38330   cat >>confdefs.h <<_ACEOF
38331 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38332 _ACEOF
38333
38334 fi
38335 done
38336
38337   if test $ac_cv_func_unsetenv = no; then
38338     gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
38339
38340
38341
38342
38343
38344
38345
38346
38347
38348   { $as_echo "$as_me:$LINENO: checking if environ is properly declared" >&5
38349 $as_echo_n "checking if environ is properly declared... " >&6; }
38350   if test "${gt_cv_var_environ_declaration+set}" = set; then
38351   $as_echo_n "(cached) " >&6
38352 else
38353
38354     cat >conftest.$ac_ext <<_ACEOF
38355 /* confdefs.h.  */
38356 _ACEOF
38357 cat confdefs.h >>conftest.$ac_ext
38358 cat >>conftest.$ac_ext <<_ACEOF
38359 /* end confdefs.h.  */
38360 #include <unistd.h>
38361       extern struct { int foo; } environ;
38362 int
38363 main ()
38364 {
38365 environ.foo = 1;
38366   ;
38367   return 0;
38368 }
38369 _ACEOF
38370 rm -f conftest.$ac_objext
38371 if { (ac_try="$ac_compile"
38372 case "(($ac_try" in
38373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38374   *) ac_try_echo=$ac_try;;
38375 esac
38376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38377 $as_echo "$ac_try_echo") >&5
38378   (eval "$ac_compile") 2>conftest.er1
38379   ac_status=$?
38380   grep -v '^ *+' conftest.er1 >conftest.err
38381   rm -f conftest.er1
38382   cat conftest.err >&5
38383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38384   (exit $ac_status); } && {
38385          test -z "$ac_c_werror_flag" ||
38386          test ! -s conftest.err
38387        } && test -s conftest.$ac_objext; then
38388   gt_cv_var_environ_declaration=no
38389 else
38390   $as_echo "$as_me: failed program was:" >&5
38391 sed 's/^/| /' conftest.$ac_ext >&5
38392
38393         gt_cv_var_environ_declaration=yes
38394 fi
38395
38396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38397 fi
38398
38399   { $as_echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
38400 $as_echo "$gt_cv_var_environ_declaration" >&6; }
38401   if test $gt_cv_var_environ_declaration = yes; then
38402
38403 cat >>confdefs.h <<\_ACEOF
38404 #define HAVE_ENVIRON_DECL 1
38405 _ACEOF
38406
38407   fi
38408
38409
38410   else
38411     { $as_echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
38412 $as_echo_n "checking for unsetenv() return type... " >&6; }
38413 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
38414   $as_echo_n "(cached) " >&6
38415 else
38416   cat >conftest.$ac_ext <<_ACEOF
38417 /* confdefs.h.  */
38418 _ACEOF
38419 cat confdefs.h >>conftest.$ac_ext
38420 cat >>conftest.$ac_ext <<_ACEOF
38421 /* end confdefs.h.  */
38422 #include <stdlib.h>
38423 extern
38424 #ifdef __cplusplus
38425 "C"
38426 #endif
38427 #if defined(__STDC__) || defined(__cplusplus)
38428 int unsetenv (const char *name);
38429 #else
38430 int unsetenv();
38431 #endif
38432
38433 int
38434 main ()
38435 {
38436
38437   ;
38438   return 0;
38439 }
38440 _ACEOF
38441 rm -f conftest.$ac_objext
38442 if { (ac_try="$ac_compile"
38443 case "(($ac_try" in
38444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38445   *) ac_try_echo=$ac_try;;
38446 esac
38447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38448 $as_echo "$ac_try_echo") >&5
38449   (eval "$ac_compile") 2>conftest.er1
38450   ac_status=$?
38451   grep -v '^ *+' conftest.er1 >conftest.err
38452   rm -f conftest.er1
38453   cat conftest.err >&5
38454   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38455   (exit $ac_status); } && {
38456          test -z "$ac_c_werror_flag" ||
38457          test ! -s conftest.err
38458        } && test -s conftest.$ac_objext; then
38459   gt_cv_func_unsetenv_ret='int'
38460 else
38461   $as_echo "$as_me: failed program was:" >&5
38462 sed 's/^/| /' conftest.$ac_ext >&5
38463
38464         gt_cv_func_unsetenv_ret='void'
38465 fi
38466
38467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38468 fi
38469 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
38470 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
38471     if test $gt_cv_func_unsetenv_ret = 'void'; then
38472
38473 cat >>confdefs.h <<\_ACEOF
38474 #define VOID_UNSETENV 1
38475 _ACEOF
38476
38477     fi
38478   fi
38479
38480
38481   gl_LIBOBJS="$gl_LIBOBJS settime.$ac_objext"
38482
38483
38484
38485
38486
38487
38488
38489
38490
38491
38492
38493
38494
38495   gl_LIBOBJS="$gl_LIBOBJS sha1.$ac_objext"
38496
38497
38498   :
38499
38500
38501
38502
38503 for ac_func in sig2str
38504 do
38505 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38506 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38507 $as_echo_n "checking for $ac_func... " >&6; }
38508 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38509   $as_echo_n "(cached) " >&6
38510 else
38511   cat >conftest.$ac_ext <<_ACEOF
38512 /* confdefs.h.  */
38513 _ACEOF
38514 cat confdefs.h >>conftest.$ac_ext
38515 cat >>conftest.$ac_ext <<_ACEOF
38516 /* end confdefs.h.  */
38517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38518    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38519 #define $ac_func innocuous_$ac_func
38520
38521 /* System header to define __stub macros and hopefully few prototypes,
38522     which can conflict with char $ac_func (); below.
38523     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38524     <limits.h> exists even on freestanding compilers.  */
38525
38526 #ifdef __STDC__
38527 # include <limits.h>
38528 #else
38529 # include <assert.h>
38530 #endif
38531
38532 #undef $ac_func
38533
38534 /* Override any GCC internal prototype to avoid an error.
38535    Use char because int might match the return type of a GCC
38536    builtin and then its argument prototype would still apply.  */
38537 #ifdef __cplusplus
38538 extern "C"
38539 #endif
38540 char $ac_func ();
38541 /* The GNU C library defines this for functions which it implements
38542     to always fail with ENOSYS.  Some functions are actually named
38543     something starting with __ and the normal name is an alias.  */
38544 #if defined __stub_$ac_func || defined __stub___$ac_func
38545 choke me
38546 #endif
38547
38548 int
38549 main ()
38550 {
38551 return $ac_func ();
38552   ;
38553   return 0;
38554 }
38555 _ACEOF
38556 rm -f conftest.$ac_objext conftest$ac_exeext
38557 if { (ac_try="$ac_link"
38558 case "(($ac_try" in
38559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38560   *) ac_try_echo=$ac_try;;
38561 esac
38562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38563 $as_echo "$ac_try_echo") >&5
38564   (eval "$ac_link") 2>conftest.er1
38565   ac_status=$?
38566   grep -v '^ *+' conftest.er1 >conftest.err
38567   rm -f conftest.er1
38568   cat conftest.err >&5
38569   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38570   (exit $ac_status); } && {
38571          test -z "$ac_c_werror_flag" ||
38572          test ! -s conftest.err
38573        } && test -s conftest$ac_exeext &&
38574        $as_test_x conftest$ac_exeext; then
38575   eval "$as_ac_var=yes"
38576 else
38577   $as_echo "$as_me: failed program was:" >&5
38578 sed 's/^/| /' conftest.$ac_ext >&5
38579
38580         eval "$as_ac_var=no"
38581 fi
38582
38583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38584       conftest$ac_exeext conftest.$ac_ext
38585 fi
38586 ac_res=`eval 'as_val=${'$as_ac_var'}
38587                  $as_echo "$as_val"'`
38588                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38589 $as_echo "$ac_res" >&6; }
38590 if test `eval 'as_val=${'$as_ac_var'}
38591                  $as_echo "$as_val"'` = yes; then
38592   cat >>confdefs.h <<_ACEOF
38593 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38594 _ACEOF
38595
38596 else
38597   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
38598 fi
38599 done
38600
38601   if test $ac_cv_func_sig2str = no; then
38602
38603   :
38604
38605   fi
38606
38607
38608
38609
38610 for ac_func in snprintf
38611 do
38612 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38613 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38614 $as_echo_n "checking for $ac_func... " >&6; }
38615 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38616   $as_echo_n "(cached) " >&6
38617 else
38618   cat >conftest.$ac_ext <<_ACEOF
38619 /* confdefs.h.  */
38620 _ACEOF
38621 cat confdefs.h >>conftest.$ac_ext
38622 cat >>conftest.$ac_ext <<_ACEOF
38623 /* end confdefs.h.  */
38624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38625    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38626 #define $ac_func innocuous_$ac_func
38627
38628 /* System header to define __stub macros and hopefully few prototypes,
38629     which can conflict with char $ac_func (); below.
38630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38631     <limits.h> exists even on freestanding compilers.  */
38632
38633 #ifdef __STDC__
38634 # include <limits.h>
38635 #else
38636 # include <assert.h>
38637 #endif
38638
38639 #undef $ac_func
38640
38641 /* Override any GCC internal prototype to avoid an error.
38642    Use char because int might match the return type of a GCC
38643    builtin and then its argument prototype would still apply.  */
38644 #ifdef __cplusplus
38645 extern "C"
38646 #endif
38647 char $ac_func ();
38648 /* The GNU C library defines this for functions which it implements
38649     to always fail with ENOSYS.  Some functions are actually named
38650     something starting with __ and the normal name is an alias.  */
38651 #if defined __stub_$ac_func || defined __stub___$ac_func
38652 choke me
38653 #endif
38654
38655 int
38656 main ()
38657 {
38658 return $ac_func ();
38659   ;
38660   return 0;
38661 }
38662 _ACEOF
38663 rm -f conftest.$ac_objext conftest$ac_exeext
38664 if { (ac_try="$ac_link"
38665 case "(($ac_try" in
38666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38667   *) ac_try_echo=$ac_try;;
38668 esac
38669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38670 $as_echo "$ac_try_echo") >&5
38671   (eval "$ac_link") 2>conftest.er1
38672   ac_status=$?
38673   grep -v '^ *+' conftest.er1 >conftest.err
38674   rm -f conftest.er1
38675   cat conftest.err >&5
38676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38677   (exit $ac_status); } && {
38678          test -z "$ac_c_werror_flag" ||
38679          test ! -s conftest.err
38680        } && test -s conftest$ac_exeext &&
38681        $as_test_x conftest$ac_exeext; then
38682   eval "$as_ac_var=yes"
38683 else
38684   $as_echo "$as_me: failed program was:" >&5
38685 sed 's/^/| /' conftest.$ac_ext >&5
38686
38687         eval "$as_ac_var=no"
38688 fi
38689
38690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38691       conftest$ac_exeext conftest.$ac_ext
38692 fi
38693 ac_res=`eval 'as_val=${'$as_ac_var'}
38694                  $as_echo "$as_val"'`
38695                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38696 $as_echo "$ac_res" >&6; }
38697 if test `eval 'as_val=${'$as_ac_var'}
38698                  $as_echo "$as_val"'` = yes; then
38699   cat >>confdefs.h <<_ACEOF
38700 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38701 _ACEOF
38702
38703 fi
38704 done
38705
38706   if test $ac_cv_func_snprintf = no; then
38707
38708
38709   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
38710   if test $ac_cv_func_snprintf = yes; then
38711     REPLACE_SNPRINTF=1
38712   fi
38713   :
38714
38715   fi
38716
38717
38718
38719
38720   if test $ac_cv_have_decl_snprintf = no; then
38721     HAVE_DECL_SNPRINTF=0
38722   fi
38723
38724
38725
38726   GNULIB_SNPRINTF=1
38727
38728      { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
38729 $as_echo_n "checking for socklen_t... " >&6; }
38730 if test "${ac_cv_type_socklen_t+set}" = set; then
38731   $as_echo_n "(cached) " >&6
38732 else
38733   cat >conftest.$ac_ext <<_ACEOF
38734 /* confdefs.h.  */
38735 _ACEOF
38736 cat confdefs.h >>conftest.$ac_ext
38737 cat >>conftest.$ac_ext <<_ACEOF
38738 /* end confdefs.h.  */
38739 #include <sys/types.h>
38740       #if HAVE_SYS_SOCKET_H
38741       # include <sys/socket.h>
38742       #elif HAVE_WS2TCPIP_H
38743       # include <ws2tcpip.h>
38744       #endif
38745
38746 typedef socklen_t ac__type_new_;
38747 int
38748 main ()
38749 {
38750 if ((ac__type_new_ *) 0)
38751   return 0;
38752 if (sizeof (ac__type_new_))
38753   return 0;
38754   ;
38755   return 0;
38756 }
38757 _ACEOF
38758 rm -f conftest.$ac_objext
38759 if { (ac_try="$ac_compile"
38760 case "(($ac_try" in
38761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38762   *) ac_try_echo=$ac_try;;
38763 esac
38764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38765 $as_echo "$ac_try_echo") >&5
38766   (eval "$ac_compile") 2>conftest.er1
38767   ac_status=$?
38768   grep -v '^ *+' conftest.er1 >conftest.err
38769   rm -f conftest.er1
38770   cat conftest.err >&5
38771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38772   (exit $ac_status); } && {
38773          test -z "$ac_c_werror_flag" ||
38774          test ! -s conftest.err
38775        } && test -s conftest.$ac_objext; then
38776   ac_cv_type_socklen_t=yes
38777 else
38778   $as_echo "$as_me: failed program was:" >&5
38779 sed 's/^/| /' conftest.$ac_ext >&5
38780
38781         ac_cv_type_socklen_t=no
38782 fi
38783
38784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38785 fi
38786 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
38787 $as_echo "$ac_cv_type_socklen_t" >&6; }
38788 if test $ac_cv_type_socklen_t = yes; then
38789   :
38790 else
38791   { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
38792 $as_echo_n "checking for socklen_t equivalent... " >&6; }
38793       if test "${gl_cv_socklen_t_equiv+set}" = set; then
38794   $as_echo_n "(cached) " >&6
38795 else
38796   # Systems have either "struct sockaddr *" or
38797          # "void *" as the second argument to getpeername
38798          gl_cv_socklen_t_equiv=
38799          for arg2 in "struct sockaddr" void; do
38800            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
38801              cat >conftest.$ac_ext <<_ACEOF
38802 /* confdefs.h.  */
38803 _ACEOF
38804 cat confdefs.h >>conftest.$ac_ext
38805 cat >>conftest.$ac_ext <<_ACEOF
38806 /* end confdefs.h.  */
38807 #include <sys/types.h>
38808                 #include <sys/socket.h>
38809
38810                 int getpeername (int, $arg2 *, $t *);
38811 int
38812 main ()
38813 {
38814 $t len;
38815                 getpeername (0, 0, &len);
38816   ;
38817   return 0;
38818 }
38819 _ACEOF
38820 rm -f conftest.$ac_objext
38821 if { (ac_try="$ac_compile"
38822 case "(($ac_try" in
38823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38824   *) ac_try_echo=$ac_try;;
38825 esac
38826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38827 $as_echo "$ac_try_echo") >&5
38828   (eval "$ac_compile") 2>conftest.er1
38829   ac_status=$?
38830   grep -v '^ *+' conftest.er1 >conftest.err
38831   rm -f conftest.er1
38832   cat conftest.err >&5
38833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38834   (exit $ac_status); } && {
38835          test -z "$ac_c_werror_flag" ||
38836          test ! -s conftest.err
38837        } && test -s conftest.$ac_objext; then
38838   gl_cv_socklen_t_equiv="$t"
38839 else
38840   $as_echo "$as_me: failed program was:" >&5
38841 sed 's/^/| /' conftest.$ac_ext >&5
38842
38843
38844 fi
38845
38846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38847              test "$gl_cv_socklen_t_equiv" != "" && break
38848            done
38849            test "$gl_cv_socklen_t_equiv" != "" && break
38850          done
38851
38852 fi
38853
38854       if test "$gl_cv_socklen_t_equiv" = ""; then
38855         { { $as_echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
38856 $as_echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
38857    { (exit 1); exit 1; }; }
38858       fi
38859       { $as_echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
38860 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
38861
38862 cat >>confdefs.h <<_ACEOF
38863 #define socklen_t $gl_cv_socklen_t_equiv
38864 _ACEOF
38865
38866 fi
38867
38868
38869   { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
38870 $as_echo_n "checking for ssize_t... " >&6; }
38871 if test "${gt_cv_ssize_t+set}" = set; then
38872   $as_echo_n "(cached) " >&6
38873 else
38874   cat >conftest.$ac_ext <<_ACEOF
38875 /* confdefs.h.  */
38876 _ACEOF
38877 cat confdefs.h >>conftest.$ac_ext
38878 cat >>conftest.$ac_ext <<_ACEOF
38879 /* end confdefs.h.  */
38880 #include <sys/types.h>
38881 int
38882 main ()
38883 {
38884 int x = sizeof (ssize_t *) + sizeof (ssize_t);
38885         return !x;
38886   ;
38887   return 0;
38888 }
38889 _ACEOF
38890 rm -f conftest.$ac_objext
38891 if { (ac_try="$ac_compile"
38892 case "(($ac_try" in
38893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38894   *) ac_try_echo=$ac_try;;
38895 esac
38896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38897 $as_echo "$ac_try_echo") >&5
38898   (eval "$ac_compile") 2>conftest.er1
38899   ac_status=$?
38900   grep -v '^ *+' conftest.er1 >conftest.err
38901   rm -f conftest.er1
38902   cat conftest.err >&5
38903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38904   (exit $ac_status); } && {
38905          test -z "$ac_c_werror_flag" ||
38906          test ! -s conftest.err
38907        } && test -s conftest.$ac_objext; then
38908   gt_cv_ssize_t=yes
38909 else
38910   $as_echo "$as_me: failed program was:" >&5
38911 sed 's/^/| /' conftest.$ac_ext >&5
38912
38913         gt_cv_ssize_t=no
38914 fi
38915
38916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38917 fi
38918 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
38919 $as_echo "$gt_cv_ssize_t" >&6; }
38920   if test $gt_cv_ssize_t = no; then
38921
38922 cat >>confdefs.h <<\_ACEOF
38923 #define ssize_t int
38924 _ACEOF
38925
38926   fi
38927
38928
38929
38930
38931
38932
38933
38934
38935
38936
38937
38938   { $as_echo "$as_me:$LINENO: checking for struct stat.st_atim.tv_nsec" >&5
38939 $as_echo_n "checking for struct stat.st_atim.tv_nsec... " >&6; }
38940 if test "${ac_cv_member_struct_stat_st_atim_tv_nsec+set}" = set; then
38941   $as_echo_n "(cached) " >&6
38942 else
38943   cat >conftest.$ac_ext <<_ACEOF
38944 /* confdefs.h.  */
38945 _ACEOF
38946 cat confdefs.h >>conftest.$ac_ext
38947 cat >>conftest.$ac_ext <<_ACEOF
38948 /* end confdefs.h.  */
38949 #include <sys/types.h>
38950      #include <sys/stat.h>
38951
38952 int
38953 main ()
38954 {
38955 static struct stat ac_aggr;
38956 if (ac_aggr.st_atim.tv_nsec)
38957 return 0;
38958   ;
38959   return 0;
38960 }
38961 _ACEOF
38962 rm -f conftest.$ac_objext
38963 if { (ac_try="$ac_compile"
38964 case "(($ac_try" in
38965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38966   *) ac_try_echo=$ac_try;;
38967 esac
38968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38969 $as_echo "$ac_try_echo") >&5
38970   (eval "$ac_compile") 2>conftest.er1
38971   ac_status=$?
38972   grep -v '^ *+' conftest.er1 >conftest.err
38973   rm -f conftest.er1
38974   cat conftest.err >&5
38975   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38976   (exit $ac_status); } && {
38977          test -z "$ac_c_werror_flag" ||
38978          test ! -s conftest.err
38979        } && test -s conftest.$ac_objext; then
38980   ac_cv_member_struct_stat_st_atim_tv_nsec=yes
38981 else
38982   $as_echo "$as_me: failed program was:" >&5
38983 sed 's/^/| /' conftest.$ac_ext >&5
38984
38985         cat >conftest.$ac_ext <<_ACEOF
38986 /* confdefs.h.  */
38987 _ACEOF
38988 cat confdefs.h >>conftest.$ac_ext
38989 cat >>conftest.$ac_ext <<_ACEOF
38990 /* end confdefs.h.  */
38991 #include <sys/types.h>
38992      #include <sys/stat.h>
38993
38994 int
38995 main ()
38996 {
38997 static struct stat ac_aggr;
38998 if (sizeof ac_aggr.st_atim.tv_nsec)
38999 return 0;
39000   ;
39001   return 0;
39002 }
39003 _ACEOF
39004 rm -f conftest.$ac_objext
39005 if { (ac_try="$ac_compile"
39006 case "(($ac_try" in
39007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39008   *) ac_try_echo=$ac_try;;
39009 esac
39010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39011 $as_echo "$ac_try_echo") >&5
39012   (eval "$ac_compile") 2>conftest.er1
39013   ac_status=$?
39014   grep -v '^ *+' conftest.er1 >conftest.err
39015   rm -f conftest.er1
39016   cat conftest.err >&5
39017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39018   (exit $ac_status); } && {
39019          test -z "$ac_c_werror_flag" ||
39020          test ! -s conftest.err
39021        } && test -s conftest.$ac_objext; then
39022   ac_cv_member_struct_stat_st_atim_tv_nsec=yes
39023 else
39024   $as_echo "$as_me: failed program was:" >&5
39025 sed 's/^/| /' conftest.$ac_ext >&5
39026
39027         ac_cv_member_struct_stat_st_atim_tv_nsec=no
39028 fi
39029
39030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39031 fi
39032
39033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39034 fi
39035 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_tv_nsec" >&5
39036 $as_echo "$ac_cv_member_struct_stat_st_atim_tv_nsec" >&6; }
39037 if test $ac_cv_member_struct_stat_st_atim_tv_nsec = yes; then
39038
39039 cat >>confdefs.h <<_ACEOF
39040 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
39041 _ACEOF
39042
39043 { $as_echo "$as_me:$LINENO: checking whether struct stat.st_atim is of type struct timespec" >&5
39044 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
39045 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then
39046   $as_echo_n "(cached) " >&6
39047 else
39048   cat >conftest.$ac_ext <<_ACEOF
39049 /* confdefs.h.  */
39050 _ACEOF
39051 cat confdefs.h >>conftest.$ac_ext
39052 cat >>conftest.$ac_ext <<_ACEOF
39053 /* end confdefs.h.  */
39054
39055             #include <sys/types.h>
39056             #include <sys/stat.h>
39057             #if HAVE_SYS_TIME_H
39058             # include <sys/time.h>
39059             #endif
39060             #include <time.h>
39061             struct timespec ts;
39062             struct stat st;
39063
39064 int
39065 main ()
39066 {
39067
39068             st.st_atim = ts;
39069
39070   ;
39071   return 0;
39072 }
39073 _ACEOF
39074 rm -f conftest.$ac_objext
39075 if { (ac_try="$ac_compile"
39076 case "(($ac_try" in
39077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39078   *) ac_try_echo=$ac_try;;
39079 esac
39080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39081 $as_echo "$ac_try_echo") >&5
39082   (eval "$ac_compile") 2>conftest.er1
39083   ac_status=$?
39084   grep -v '^ *+' conftest.er1 >conftest.err
39085   rm -f conftest.er1
39086   cat conftest.err >&5
39087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39088   (exit $ac_status); } && {
39089          test -z "$ac_c_werror_flag" ||
39090          test ! -s conftest.err
39091        } && test -s conftest.$ac_objext; then
39092   ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
39093 else
39094   $as_echo "$as_me: failed program was:" >&5
39095 sed 's/^/| /' conftest.$ac_ext >&5
39096
39097         ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
39098 fi
39099
39100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39101 fi
39102 { $as_echo "$as_me:$LINENO: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
39103 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
39104      if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
39105
39106 cat >>confdefs.h <<\_ACEOF
39107 #define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1
39108 _ACEOF
39109
39110      fi
39111 else
39112   { $as_echo "$as_me:$LINENO: checking for struct stat.st_atimespec.tv_nsec" >&5
39113 $as_echo_n "checking for struct stat.st_atimespec.tv_nsec... " >&6; }
39114 if test "${ac_cv_member_struct_stat_st_atimespec_tv_nsec+set}" = set; then
39115   $as_echo_n "(cached) " >&6
39116 else
39117   cat >conftest.$ac_ext <<_ACEOF
39118 /* confdefs.h.  */
39119 _ACEOF
39120 cat confdefs.h >>conftest.$ac_ext
39121 cat >>conftest.$ac_ext <<_ACEOF
39122 /* end confdefs.h.  */
39123 #include <sys/types.h>
39124         #include <sys/stat.h>
39125
39126 int
39127 main ()
39128 {
39129 static struct stat ac_aggr;
39130 if (ac_aggr.st_atimespec.tv_nsec)
39131 return 0;
39132   ;
39133   return 0;
39134 }
39135 _ACEOF
39136 rm -f conftest.$ac_objext
39137 if { (ac_try="$ac_compile"
39138 case "(($ac_try" in
39139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39140   *) ac_try_echo=$ac_try;;
39141 esac
39142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39143 $as_echo "$ac_try_echo") >&5
39144   (eval "$ac_compile") 2>conftest.er1
39145   ac_status=$?
39146   grep -v '^ *+' conftest.er1 >conftest.err
39147   rm -f conftest.er1
39148   cat conftest.err >&5
39149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39150   (exit $ac_status); } && {
39151          test -z "$ac_c_werror_flag" ||
39152          test ! -s conftest.err
39153        } && test -s conftest.$ac_objext; then
39154   ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
39155 else
39156   $as_echo "$as_me: failed program was:" >&5
39157 sed 's/^/| /' conftest.$ac_ext >&5
39158
39159         cat >conftest.$ac_ext <<_ACEOF
39160 /* confdefs.h.  */
39161 _ACEOF
39162 cat confdefs.h >>conftest.$ac_ext
39163 cat >>conftest.$ac_ext <<_ACEOF
39164 /* end confdefs.h.  */
39165 #include <sys/types.h>
39166         #include <sys/stat.h>
39167
39168 int
39169 main ()
39170 {
39171 static struct stat ac_aggr;
39172 if (sizeof ac_aggr.st_atimespec.tv_nsec)
39173 return 0;
39174   ;
39175   return 0;
39176 }
39177 _ACEOF
39178 rm -f conftest.$ac_objext
39179 if { (ac_try="$ac_compile"
39180 case "(($ac_try" in
39181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39182   *) ac_try_echo=$ac_try;;
39183 esac
39184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39185 $as_echo "$ac_try_echo") >&5
39186   (eval "$ac_compile") 2>conftest.er1
39187   ac_status=$?
39188   grep -v '^ *+' conftest.er1 >conftest.err
39189   rm -f conftest.er1
39190   cat conftest.err >&5
39191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39192   (exit $ac_status); } && {
39193          test -z "$ac_c_werror_flag" ||
39194          test ! -s conftest.err
39195        } && test -s conftest.$ac_objext; then
39196   ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
39197 else
39198   $as_echo "$as_me: failed program was:" >&5
39199 sed 's/^/| /' conftest.$ac_ext >&5
39200
39201         ac_cv_member_struct_stat_st_atimespec_tv_nsec=no
39202 fi
39203
39204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39205 fi
39206
39207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39208 fi
39209 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&5
39210 $as_echo "$ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&6; }
39211 if test $ac_cv_member_struct_stat_st_atimespec_tv_nsec = yes; then
39212
39213 cat >>confdefs.h <<_ACEOF
39214 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
39215 _ACEOF
39216
39217
39218 else
39219   { $as_echo "$as_me:$LINENO: checking for struct stat.st_atimensec" >&5
39220 $as_echo_n "checking for struct stat.st_atimensec... " >&6; }
39221 if test "${ac_cv_member_struct_stat_st_atimensec+set}" = set; then
39222   $as_echo_n "(cached) " >&6
39223 else
39224   cat >conftest.$ac_ext <<_ACEOF
39225 /* confdefs.h.  */
39226 _ACEOF
39227 cat confdefs.h >>conftest.$ac_ext
39228 cat >>conftest.$ac_ext <<_ACEOF
39229 /* end confdefs.h.  */
39230 #include <sys/types.h>
39231            #include <sys/stat.h>
39232
39233 int
39234 main ()
39235 {
39236 static struct stat ac_aggr;
39237 if (ac_aggr.st_atimensec)
39238 return 0;
39239   ;
39240   return 0;
39241 }
39242 _ACEOF
39243 rm -f conftest.$ac_objext
39244 if { (ac_try="$ac_compile"
39245 case "(($ac_try" in
39246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39247   *) ac_try_echo=$ac_try;;
39248 esac
39249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39250 $as_echo "$ac_try_echo") >&5
39251   (eval "$ac_compile") 2>conftest.er1
39252   ac_status=$?
39253   grep -v '^ *+' conftest.er1 >conftest.err
39254   rm -f conftest.er1
39255   cat conftest.err >&5
39256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39257   (exit $ac_status); } && {
39258          test -z "$ac_c_werror_flag" ||
39259          test ! -s conftest.err
39260        } && test -s conftest.$ac_objext; then
39261   ac_cv_member_struct_stat_st_atimensec=yes
39262 else
39263   $as_echo "$as_me: failed program was:" >&5
39264 sed 's/^/| /' conftest.$ac_ext >&5
39265
39266         cat >conftest.$ac_ext <<_ACEOF
39267 /* confdefs.h.  */
39268 _ACEOF
39269 cat confdefs.h >>conftest.$ac_ext
39270 cat >>conftest.$ac_ext <<_ACEOF
39271 /* end confdefs.h.  */
39272 #include <sys/types.h>
39273            #include <sys/stat.h>
39274
39275 int
39276 main ()
39277 {
39278 static struct stat ac_aggr;
39279 if (sizeof ac_aggr.st_atimensec)
39280 return 0;
39281   ;
39282   return 0;
39283 }
39284 _ACEOF
39285 rm -f conftest.$ac_objext
39286 if { (ac_try="$ac_compile"
39287 case "(($ac_try" in
39288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39289   *) ac_try_echo=$ac_try;;
39290 esac
39291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39292 $as_echo "$ac_try_echo") >&5
39293   (eval "$ac_compile") 2>conftest.er1
39294   ac_status=$?
39295   grep -v '^ *+' conftest.er1 >conftest.err
39296   rm -f conftest.er1
39297   cat conftest.err >&5
39298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39299   (exit $ac_status); } && {
39300          test -z "$ac_c_werror_flag" ||
39301          test ! -s conftest.err
39302        } && test -s conftest.$ac_objext; then
39303   ac_cv_member_struct_stat_st_atimensec=yes
39304 else
39305   $as_echo "$as_me: failed program was:" >&5
39306 sed 's/^/| /' conftest.$ac_ext >&5
39307
39308         ac_cv_member_struct_stat_st_atimensec=no
39309 fi
39310
39311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39312 fi
39313
39314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39315 fi
39316 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimensec" >&5
39317 $as_echo "$ac_cv_member_struct_stat_st_atimensec" >&6; }
39318 if test $ac_cv_member_struct_stat_st_atimensec = yes; then
39319
39320 cat >>confdefs.h <<_ACEOF
39321 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
39322 _ACEOF
39323
39324
39325 else
39326   { $as_echo "$as_me:$LINENO: checking for struct stat.st_atim.st__tim.tv_nsec" >&5
39327 $as_echo_n "checking for struct stat.st_atim.st__tim.tv_nsec... " >&6; }
39328 if test "${ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec+set}" = set; then
39329   $as_echo_n "(cached) " >&6
39330 else
39331   cat >conftest.$ac_ext <<_ACEOF
39332 /* confdefs.h.  */
39333 _ACEOF
39334 cat confdefs.h >>conftest.$ac_ext
39335 cat >>conftest.$ac_ext <<_ACEOF
39336 /* end confdefs.h.  */
39337 #include <sys/types.h>
39338               #include <sys/stat.h>
39339
39340 int
39341 main ()
39342 {
39343 static struct stat ac_aggr;
39344 if (ac_aggr.st_atim.st__tim.tv_nsec)
39345 return 0;
39346   ;
39347   return 0;
39348 }
39349 _ACEOF
39350 rm -f conftest.$ac_objext
39351 if { (ac_try="$ac_compile"
39352 case "(($ac_try" in
39353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39354   *) ac_try_echo=$ac_try;;
39355 esac
39356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39357 $as_echo "$ac_try_echo") >&5
39358   (eval "$ac_compile") 2>conftest.er1
39359   ac_status=$?
39360   grep -v '^ *+' conftest.er1 >conftest.err
39361   rm -f conftest.er1
39362   cat conftest.err >&5
39363   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39364   (exit $ac_status); } && {
39365          test -z "$ac_c_werror_flag" ||
39366          test ! -s conftest.err
39367        } && test -s conftest.$ac_objext; then
39368   ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
39369 else
39370   $as_echo "$as_me: failed program was:" >&5
39371 sed 's/^/| /' conftest.$ac_ext >&5
39372
39373         cat >conftest.$ac_ext <<_ACEOF
39374 /* confdefs.h.  */
39375 _ACEOF
39376 cat confdefs.h >>conftest.$ac_ext
39377 cat >>conftest.$ac_ext <<_ACEOF
39378 /* end confdefs.h.  */
39379 #include <sys/types.h>
39380               #include <sys/stat.h>
39381
39382 int
39383 main ()
39384 {
39385 static struct stat ac_aggr;
39386 if (sizeof ac_aggr.st_atim.st__tim.tv_nsec)
39387 return 0;
39388   ;
39389   return 0;
39390 }
39391 _ACEOF
39392 rm -f conftest.$ac_objext
39393 if { (ac_try="$ac_compile"
39394 case "(($ac_try" in
39395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39396   *) ac_try_echo=$ac_try;;
39397 esac
39398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39399 $as_echo "$ac_try_echo") >&5
39400   (eval "$ac_compile") 2>conftest.er1
39401   ac_status=$?
39402   grep -v '^ *+' conftest.er1 >conftest.err
39403   rm -f conftest.er1
39404   cat conftest.err >&5
39405   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39406   (exit $ac_status); } && {
39407          test -z "$ac_c_werror_flag" ||
39408          test ! -s conftest.err
39409        } && test -s conftest.$ac_objext; then
39410   ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
39411 else
39412   $as_echo "$as_me: failed program was:" >&5
39413 sed 's/^/| /' conftest.$ac_ext >&5
39414
39415         ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=no
39416 fi
39417
39418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39419 fi
39420
39421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39422 fi
39423 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&5
39424 $as_echo "$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&6; }
39425 if test $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec = yes; then
39426
39427 cat >>confdefs.h <<_ACEOF
39428 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
39429 _ACEOF
39430
39431
39432 else
39433   { $as_echo "$as_me:$LINENO: checking for struct stat.st_spare1" >&5
39434 $as_echo_n "checking for struct stat.st_spare1... " >&6; }
39435 if test "${ac_cv_member_struct_stat_st_spare1+set}" = set; then
39436   $as_echo_n "(cached) " >&6
39437 else
39438   cat >conftest.$ac_ext <<_ACEOF
39439 /* confdefs.h.  */
39440 _ACEOF
39441 cat confdefs.h >>conftest.$ac_ext
39442 cat >>conftest.$ac_ext <<_ACEOF
39443 /* end confdefs.h.  */
39444 #include <sys/types.h>
39445                  #include <sys/stat.h>
39446
39447 int
39448 main ()
39449 {
39450 static struct stat ac_aggr;
39451 if (ac_aggr.st_spare1)
39452 return 0;
39453   ;
39454   return 0;
39455 }
39456 _ACEOF
39457 rm -f conftest.$ac_objext
39458 if { (ac_try="$ac_compile"
39459 case "(($ac_try" in
39460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39461   *) ac_try_echo=$ac_try;;
39462 esac
39463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39464 $as_echo "$ac_try_echo") >&5
39465   (eval "$ac_compile") 2>conftest.er1
39466   ac_status=$?
39467   grep -v '^ *+' conftest.er1 >conftest.err
39468   rm -f conftest.er1
39469   cat conftest.err >&5
39470   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39471   (exit $ac_status); } && {
39472          test -z "$ac_c_werror_flag" ||
39473          test ! -s conftest.err
39474        } && test -s conftest.$ac_objext; then
39475   ac_cv_member_struct_stat_st_spare1=yes
39476 else
39477   $as_echo "$as_me: failed program was:" >&5
39478 sed 's/^/| /' conftest.$ac_ext >&5
39479
39480         cat >conftest.$ac_ext <<_ACEOF
39481 /* confdefs.h.  */
39482 _ACEOF
39483 cat confdefs.h >>conftest.$ac_ext
39484 cat >>conftest.$ac_ext <<_ACEOF
39485 /* end confdefs.h.  */
39486 #include <sys/types.h>
39487                  #include <sys/stat.h>
39488
39489 int
39490 main ()
39491 {
39492 static struct stat ac_aggr;
39493 if (sizeof ac_aggr.st_spare1)
39494 return 0;
39495   ;
39496   return 0;
39497 }
39498 _ACEOF
39499 rm -f conftest.$ac_objext
39500 if { (ac_try="$ac_compile"
39501 case "(($ac_try" in
39502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39503   *) ac_try_echo=$ac_try;;
39504 esac
39505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39506 $as_echo "$ac_try_echo") >&5
39507   (eval "$ac_compile") 2>conftest.er1
39508   ac_status=$?
39509   grep -v '^ *+' conftest.er1 >conftest.err
39510   rm -f conftest.er1
39511   cat conftest.err >&5
39512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39513   (exit $ac_status); } && {
39514          test -z "$ac_c_werror_flag" ||
39515          test ! -s conftest.err
39516        } && test -s conftest.$ac_objext; then
39517   ac_cv_member_struct_stat_st_spare1=yes
39518 else
39519   $as_echo "$as_me: failed program was:" >&5
39520 sed 's/^/| /' conftest.$ac_ext >&5
39521
39522         ac_cv_member_struct_stat_st_spare1=no
39523 fi
39524
39525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39526 fi
39527
39528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39529 fi
39530 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_spare1" >&5
39531 $as_echo "$ac_cv_member_struct_stat_st_spare1" >&6; }
39532 if test $ac_cv_member_struct_stat_st_spare1 = yes; then
39533
39534 cat >>confdefs.h <<_ACEOF
39535 #define HAVE_STRUCT_STAT_ST_SPARE1 1
39536 _ACEOF
39537
39538
39539 fi
39540
39541 fi
39542
39543 fi
39544
39545 fi
39546
39547 fi
39548
39549
39550
39551   { $as_echo "$as_me:$LINENO: checking for va_copy" >&5
39552 $as_echo_n "checking for va_copy... " >&6; }
39553   if test "${gl_cv_func_va_copy+set}" = set; then
39554   $as_echo_n "(cached) " >&6
39555 else
39556
39557     cat >conftest.$ac_ext <<_ACEOF
39558 /* confdefs.h.  */
39559 _ACEOF
39560 cat confdefs.h >>conftest.$ac_ext
39561 cat >>conftest.$ac_ext <<_ACEOF
39562 /* end confdefs.h.  */
39563 #include <stdarg.h>
39564 int
39565 main ()
39566 {
39567
39568 #ifndef va_copy
39569 void (*func) (va_list, va_list) = va_copy;
39570 #endif
39571
39572   ;
39573   return 0;
39574 }
39575 _ACEOF
39576 rm -f conftest.$ac_objext
39577 if { (ac_try="$ac_compile"
39578 case "(($ac_try" in
39579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39580   *) ac_try_echo=$ac_try;;
39581 esac
39582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39583 $as_echo "$ac_try_echo") >&5
39584   (eval "$ac_compile") 2>conftest.er1
39585   ac_status=$?
39586   grep -v '^ *+' conftest.er1 >conftest.err
39587   rm -f conftest.er1
39588   cat conftest.err >&5
39589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39590   (exit $ac_status); } && {
39591          test -z "$ac_c_werror_flag" ||
39592          test ! -s conftest.err
39593        } && test -s conftest.$ac_objext; then
39594   gl_cv_func_va_copy=yes
39595 else
39596   $as_echo "$as_me: failed program was:" >&5
39597 sed 's/^/| /' conftest.$ac_ext >&5
39598
39599         gl_cv_func_va_copy=no
39600 fi
39601
39602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39603 fi
39604
39605   { $as_echo "$as_me:$LINENO: result: $gl_cv_func_va_copy" >&5
39606 $as_echo "$gl_cv_func_va_copy" >&6; }
39607   if test $gl_cv_func_va_copy = no; then
39608     # Provide a substitute, either __va_copy or as a simple assignment.
39609     if test "${gl_cv_func___va_copy+set}" = set; then
39610   $as_echo_n "(cached) " >&6
39611 else
39612
39613       cat >conftest.$ac_ext <<_ACEOF
39614 /* confdefs.h.  */
39615 _ACEOF
39616 cat confdefs.h >>conftest.$ac_ext
39617 cat >>conftest.$ac_ext <<_ACEOF
39618 /* end confdefs.h.  */
39619 #include <stdarg.h>
39620 int
39621 main ()
39622 {
39623
39624 #ifndef __va_copy
39625 error, bail out
39626 #endif
39627
39628   ;
39629   return 0;
39630 }
39631 _ACEOF
39632 rm -f conftest.$ac_objext
39633 if { (ac_try="$ac_compile"
39634 case "(($ac_try" in
39635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39636   *) ac_try_echo=$ac_try;;
39637 esac
39638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39639 $as_echo "$ac_try_echo") >&5
39640   (eval "$ac_compile") 2>conftest.er1
39641   ac_status=$?
39642   grep -v '^ *+' conftest.er1 >conftest.err
39643   rm -f conftest.er1
39644   cat conftest.err >&5
39645   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39646   (exit $ac_status); } && {
39647          test -z "$ac_c_werror_flag" ||
39648          test ! -s conftest.err
39649        } && test -s conftest.$ac_objext; then
39650   gl_cv_func___va_copy=yes
39651 else
39652   $as_echo "$as_me: failed program was:" >&5
39653 sed 's/^/| /' conftest.$ac_ext >&5
39654
39655         gl_cv_func___va_copy=no
39656 fi
39657
39658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39659 fi
39660
39661     if test $gl_cv_func___va_copy = yes; then
39662
39663 cat >>confdefs.h <<\_ACEOF
39664 #define va_copy __va_copy
39665 _ACEOF
39666
39667     else
39668
39669
39670
39671 cat >>confdefs.h <<\_ACEOF
39672 #define va_copy gl_va_copy
39673 _ACEOF
39674
39675     fi
39676   fi
39677
39678
39679
39680
39681   # Define two additional variables used in the Makefile substitution.
39682
39683   if test "$ac_cv_header_stdbool_h" = yes; then
39684     STDBOOL_H=''
39685   else
39686     STDBOOL_H='stdbool.h'
39687   fi
39688
39689
39690   if test "$ac_cv_type__Bool" = yes; then
39691     HAVE__BOOL=1
39692   else
39693     HAVE__BOOL=0
39694   fi
39695
39696
39697
39698
39699
39700   if test $ac_cv_type_long_long_int = yes; then
39701     HAVE_LONG_LONG_INT=1
39702   else
39703     HAVE_LONG_LONG_INT=0
39704   fi
39705
39706
39707   if test $ac_cv_type_unsigned_long_long_int = yes; then
39708     HAVE_UNSIGNED_LONG_LONG_INT=1
39709   else
39710     HAVE_UNSIGNED_LONG_LONG_INT=0
39711   fi
39712
39713
39714       if test $ac_cv_header_inttypes_h = yes; then
39715     HAVE_INTTYPES_H=1
39716   else
39717     HAVE_INTTYPES_H=0
39718   fi
39719
39720
39721       if test $ac_cv_header_sys_types_h = yes; then
39722     HAVE_SYS_TYPES_H=1
39723   else
39724     HAVE_SYS_TYPES_H=0
39725   fi
39726
39727
39728     if test $ac_cv_header_stdint_h = yes; then
39729       { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
39730 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
39731 if test "${gl_cv_absolute_stdint_h+set}" = set; then
39732   $as_echo_n "(cached) " >&6
39733 else
39734
39735
39736
39737
39738
39739     if test $ac_cv_header_stdint_h = yes; then
39740       cat >conftest.$ac_ext <<_ACEOF
39741 /* confdefs.h.  */
39742 _ACEOF
39743 cat confdefs.h >>conftest.$ac_ext
39744 cat >>conftest.$ac_ext <<_ACEOF
39745 /* end confdefs.h.  */
39746 #include <stdint.h>
39747 _ACEOF
39748       gl_cv_absolute_stdint_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39749 sed -n '\#/stdint.h#{s#.*"\(.*/stdint.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
39750     fi
39751
39752 fi
39753 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_stdint_h" >&5
39754 $as_echo "$gl_cv_absolute_stdint_h" >&6; }
39755 cat >>confdefs.h <<_ACEOF
39756 #define ABSOLUTE_STDINT_H "$gl_cv_absolute_stdint_h"
39757 _ACEOF
39758
39759
39760     ABSOLUTE_STDINT_H=\"$gl_cv_absolute_stdint_h\"
39761     HAVE_STDINT_H=1
39762   else
39763     ABSOLUTE_STDINT_H=\"no/such/file/stdint.h\"
39764     HAVE_STDINT_H=0
39765   fi
39766
39767
39768
39769           if test $ac_cv_header_stdint_h = yes; then
39770     { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
39771 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
39772 if test "${gl_cv_header_working_stdint_h+set}" = set; then
39773   $as_echo_n "(cached) " >&6
39774 else
39775   gl_cv_header_working_stdint_h=no
39776        cat >conftest.$ac_ext <<_ACEOF
39777
39778          /* confdefs.h.  */
39779 _ACEOF
39780 cat confdefs.h >>conftest.$ac_ext
39781 cat >>conftest.$ac_ext <<_ACEOF
39782 /* end confdefs.h.  */
39783
39784 #include <stddef.h>
39785 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
39786 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
39787 #include ABSOLUTE_STDINT_H
39788 #ifdef INT8_MAX
39789 int8_t a1 = INT8_MAX;
39790 int8_t a1min = INT8_MIN;
39791 #endif
39792 #ifdef INT16_MAX
39793 int16_t a2 = INT16_MAX;
39794 int16_t a2min = INT16_MIN;
39795 #endif
39796 #ifdef INT32_MAX
39797 int32_t a3 = INT32_MAX;
39798 int32_t a3min = INT32_MIN;
39799 #endif
39800 #ifdef INT64_MAX
39801 int64_t a4 = INT64_MAX;
39802 int64_t a4min = INT64_MIN;
39803 #endif
39804 #ifdef UINT8_MAX
39805 uint8_t b1 = UINT8_MAX;
39806 #else
39807 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
39808 #endif
39809 #ifdef UINT16_MAX
39810 uint16_t b2 = UINT16_MAX;
39811 #endif
39812 #ifdef UINT32_MAX
39813 uint32_t b3 = UINT32_MAX;
39814 #endif
39815 #ifdef UINT64_MAX
39816 uint64_t b4 = UINT64_MAX;
39817 #endif
39818 int_least8_t c1 = INT8_C (0x7f);
39819 int_least8_t c1max = INT_LEAST8_MAX;
39820 int_least8_t c1min = INT_LEAST8_MIN;
39821 int_least16_t c2 = INT16_C (0x7fff);
39822 int_least16_t c2max = INT_LEAST16_MAX;
39823 int_least16_t c2min = INT_LEAST16_MIN;
39824 int_least32_t c3 = INT32_C (0x7fffffff);
39825 int_least32_t c3max = INT_LEAST32_MAX;
39826 int_least32_t c3min = INT_LEAST32_MIN;
39827 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
39828 int_least64_t c4max = INT_LEAST64_MAX;
39829 int_least64_t c4min = INT_LEAST64_MIN;
39830 uint_least8_t d1 = UINT8_C (0xff);
39831 uint_least8_t d1max = UINT_LEAST8_MAX;
39832 uint_least16_t d2 = UINT16_C (0xffff);
39833 uint_least16_t d2max = UINT_LEAST16_MAX;
39834 uint_least32_t d3 = UINT32_C (0xffffffff);
39835 uint_least32_t d3max = UINT_LEAST32_MAX;
39836 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
39837 uint_least64_t d4max = UINT_LEAST64_MAX;
39838 int_fast8_t e1 = INT_FAST8_MAX;
39839 int_fast8_t e1min = INT_FAST8_MIN;
39840 int_fast16_t e2 = INT_FAST16_MAX;
39841 int_fast16_t e2min = INT_FAST16_MIN;
39842 int_fast32_t e3 = INT_FAST32_MAX;
39843 int_fast32_t e3min = INT_FAST32_MIN;
39844 int_fast64_t e4 = INT_FAST64_MAX;
39845 int_fast64_t e4min = INT_FAST64_MIN;
39846 uint_fast8_t f1 = UINT_FAST8_MAX;
39847 uint_fast16_t f2 = UINT_FAST16_MAX;
39848 uint_fast32_t f3 = UINT_FAST32_MAX;
39849 uint_fast64_t f4 = UINT_FAST64_MAX;
39850 #ifdef INTPTR_MAX
39851 intptr_t g = INTPTR_MAX;
39852 intptr_t gmin = INTPTR_MIN;
39853 #endif
39854 #ifdef UINTPTR_MAX
39855 uintptr_t h = UINTPTR_MAX;
39856 #endif
39857 intmax_t i = INTMAX_MAX;
39858 uintmax_t j = UINTMAX_MAX;
39859 struct s {
39860   int check_PTRDIFF: PTRDIFF_MIN < 0 && 0 < PTRDIFF_MAX ? 1 : -1;
39861   int check_SIG_ATOMIC: SIG_ATOMIC_MIN <= 0 && 0 < SIG_ATOMIC_MAX ? 1 : -1;
39862   int check_SIZE: 0 < SIZE_MAX ? 1 : -1;
39863   int check_WCHAR: WCHAR_MIN <= 0 && 0 < WCHAR_MAX ? 1 : -1;
39864   int check_WINT: WINT_MIN <= 0 && 0 < WINT_MAX ? 1 : -1;
39865
39866   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
39867   int check_UINT8_C:
39868         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
39869   int check_UINT16_C:
39870         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
39871
39872   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
39873 #ifdef UINT8_MAX
39874   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
39875 #endif
39876 #ifdef UINT16_MAX
39877   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
39878 #endif
39879 #ifdef UINT32_MAX
39880   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
39881 #endif
39882 #ifdef UINT64_MAX
39883   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
39884 #endif
39885   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
39886   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
39887   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
39888   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
39889   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
39890   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
39891   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
39892   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
39893   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
39894   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
39895   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
39896 };
39897
39898 int
39899 main ()
39900 {
39901
39902   ;
39903   return 0;
39904 }
39905 _ACEOF
39906 rm -f conftest.$ac_objext
39907 if { (ac_try="$ac_compile"
39908 case "(($ac_try" in
39909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39910   *) ac_try_echo=$ac_try;;
39911 esac
39912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39913 $as_echo "$ac_try_echo") >&5
39914   (eval "$ac_compile") 2>conftest.er1
39915   ac_status=$?
39916   grep -v '^ *+' conftest.er1 >conftest.err
39917   rm -f conftest.er1
39918   cat conftest.err >&5
39919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39920   (exit $ac_status); } && {
39921          test -z "$ac_c_werror_flag" ||
39922          test ! -s conftest.err
39923        } && test -s conftest.$ac_objext; then
39924   gl_cv_header_working_stdint_h=yes
39925 else
39926   $as_echo "$as_me: failed program was:" >&5
39927 sed 's/^/| /' conftest.$ac_ext >&5
39928
39929
39930 fi
39931
39932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39933 fi
39934 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
39935 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
39936   fi
39937   if test "$gl_cv_header_working_stdint_h" = yes; then
39938     STDINT_H=
39939   else
39940
39941
39942 for ac_header in sys/inttypes.h sys/bitypes.h
39943 do
39944 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39946   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
39947 $as_echo_n "checking for $ac_header... " >&6; }
39948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39949   $as_echo_n "(cached) " >&6
39950 fi
39951 ac_res=`eval 'as_val=${'$as_ac_Header'}
39952                  $as_echo "$as_val"'`
39953                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39954 $as_echo "$ac_res" >&6; }
39955 else
39956   # Is the header compilable?
39957 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
39958 $as_echo_n "checking $ac_header usability... " >&6; }
39959 cat >conftest.$ac_ext <<_ACEOF
39960 /* confdefs.h.  */
39961 _ACEOF
39962 cat confdefs.h >>conftest.$ac_ext
39963 cat >>conftest.$ac_ext <<_ACEOF
39964 /* end confdefs.h.  */
39965 $ac_includes_default
39966 #include <$ac_header>
39967 _ACEOF
39968 rm -f conftest.$ac_objext
39969 if { (ac_try="$ac_compile"
39970 case "(($ac_try" in
39971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39972   *) ac_try_echo=$ac_try;;
39973 esac
39974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39975 $as_echo "$ac_try_echo") >&5
39976   (eval "$ac_compile") 2>conftest.er1
39977   ac_status=$?
39978   grep -v '^ *+' conftest.er1 >conftest.err
39979   rm -f conftest.er1
39980   cat conftest.err >&5
39981   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39982   (exit $ac_status); } && {
39983          test -z "$ac_c_werror_flag" ||
39984          test ! -s conftest.err
39985        } && test -s conftest.$ac_objext; then
39986   ac_header_compiler=yes
39987 else
39988   $as_echo "$as_me: failed program was:" >&5
39989 sed 's/^/| /' conftest.$ac_ext >&5
39990
39991         ac_header_compiler=no
39992 fi
39993
39994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39995 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39996 $as_echo "$ac_header_compiler" >&6; }
39997
39998 # Is the header present?
39999 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
40000 $as_echo_n "checking $ac_header presence... " >&6; }
40001 cat >conftest.$ac_ext <<_ACEOF
40002 /* confdefs.h.  */
40003 _ACEOF
40004 cat confdefs.h >>conftest.$ac_ext
40005 cat >>conftest.$ac_ext <<_ACEOF
40006 /* end confdefs.h.  */
40007 #include <$ac_header>
40008 _ACEOF
40009 if { (ac_try="$ac_cpp conftest.$ac_ext"
40010 case "(($ac_try" in
40011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40012   *) ac_try_echo=$ac_try;;
40013 esac
40014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40015 $as_echo "$ac_try_echo") >&5
40016   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40017   ac_status=$?
40018   grep -v '^ *+' conftest.er1 >conftest.err
40019   rm -f conftest.er1
40020   cat conftest.err >&5
40021   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40022   (exit $ac_status); } >/dev/null && {
40023          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40024          test ! -s conftest.err
40025        }; then
40026   ac_header_preproc=yes
40027 else
40028   $as_echo "$as_me: failed program was:" >&5
40029 sed 's/^/| /' conftest.$ac_ext >&5
40030
40031   ac_header_preproc=no
40032 fi
40033
40034 rm -f conftest.err conftest.$ac_ext
40035 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40036 $as_echo "$ac_header_preproc" >&6; }
40037
40038 # So?  What about this header?
40039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40040   yes:no: )
40041     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40042 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40043     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40044 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40045     ac_header_preproc=yes
40046     ;;
40047   no:yes:* )
40048     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40049 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40050     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40051 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40052     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40053 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40054     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40055 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40056     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40057 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40058     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40059 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40060     ( cat <<\_ASBOX
40061 ## ------------------------------------ ##
40062 ## Report this to bug-coreutils@gnu.org ##
40063 ## ------------------------------------ ##
40064 _ASBOX
40065      ) | sed "s/^/$as_me: WARNING:     /" >&2
40066     ;;
40067 esac
40068 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
40069 $as_echo_n "checking for $ac_header... " >&6; }
40070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40071   $as_echo_n "(cached) " >&6
40072 else
40073   eval "$as_ac_Header=\$ac_header_preproc"
40074 fi
40075 ac_res=`eval 'as_val=${'$as_ac_Header'}
40076                  $as_echo "$as_val"'`
40077                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40078 $as_echo "$ac_res" >&6; }
40079
40080 fi
40081 if test `eval 'as_val=${'$as_ac_Header'}
40082                  $as_echo "$as_val"'` = yes; then
40083   cat >>confdefs.h <<_ACEOF
40084 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40085 _ACEOF
40086
40087 fi
40088
40089 done
40090
40091     if test $ac_cv_header_sys_inttypes_h = yes; then
40092       HAVE_SYS_INTTYPES_H=1
40093     else
40094       HAVE_SYS_INTTYPES_H=0
40095     fi
40096
40097     if test $ac_cv_header_sys_bitypes_h = yes; then
40098       HAVE_SYS_BITYPES_H=1
40099     else
40100       HAVE_SYS_BITYPES_H=0
40101     fi
40102
40103
40104
40105
40106
40107
40108
40109
40110
40111
40112   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
40113     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
40114 $as_echo_n "checking for bit size of $gltype... " >&6; }
40115 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
40116   $as_echo_n "(cached) " >&6
40117 else
40118   if test "$cross_compiling" = yes; then
40119   # Depending upon the size, compute the lo and hi bounds.
40120 cat >conftest.$ac_ext <<_ACEOF
40121 /* confdefs.h.  */
40122 _ACEOF
40123 cat confdefs.h >>conftest.$ac_ext
40124 cat >>conftest.$ac_ext <<_ACEOF
40125 /* end confdefs.h.  */
40126
40127   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40128      included before <wchar.h>.  */
40129   #include <stddef.h>
40130   #include <signal.h>
40131   #include <stdio.h>
40132   #include <time.h>
40133   #include <wchar.h>
40134
40135 #include <limits.h>
40136 int
40137 main ()
40138 {
40139 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
40140 test_array [0] = 0
40141
40142   ;
40143   return 0;
40144 }
40145 _ACEOF
40146 rm -f conftest.$ac_objext
40147 if { (ac_try="$ac_compile"
40148 case "(($ac_try" in
40149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40150   *) ac_try_echo=$ac_try;;
40151 esac
40152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40153 $as_echo "$ac_try_echo") >&5
40154   (eval "$ac_compile") 2>conftest.er1
40155   ac_status=$?
40156   grep -v '^ *+' conftest.er1 >conftest.err
40157   rm -f conftest.er1
40158   cat conftest.err >&5
40159   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40160   (exit $ac_status); } && {
40161          test -z "$ac_c_werror_flag" ||
40162          test ! -s conftest.err
40163        } && test -s conftest.$ac_objext; then
40164   ac_lo=0 ac_mid=0
40165   while :; do
40166     cat >conftest.$ac_ext <<_ACEOF
40167 /* confdefs.h.  */
40168 _ACEOF
40169 cat confdefs.h >>conftest.$ac_ext
40170 cat >>conftest.$ac_ext <<_ACEOF
40171 /* end confdefs.h.  */
40172
40173   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40174      included before <wchar.h>.  */
40175   #include <stddef.h>
40176   #include <signal.h>
40177   #include <stdio.h>
40178   #include <time.h>
40179   #include <wchar.h>
40180
40181 #include <limits.h>
40182 int
40183 main ()
40184 {
40185 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
40186 test_array [0] = 0
40187
40188   ;
40189   return 0;
40190 }
40191 _ACEOF
40192 rm -f conftest.$ac_objext
40193 if { (ac_try="$ac_compile"
40194 case "(($ac_try" in
40195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40196   *) ac_try_echo=$ac_try;;
40197 esac
40198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40199 $as_echo "$ac_try_echo") >&5
40200   (eval "$ac_compile") 2>conftest.er1
40201   ac_status=$?
40202   grep -v '^ *+' conftest.er1 >conftest.err
40203   rm -f conftest.er1
40204   cat conftest.err >&5
40205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40206   (exit $ac_status); } && {
40207          test -z "$ac_c_werror_flag" ||
40208          test ! -s conftest.err
40209        } && test -s conftest.$ac_objext; then
40210   ac_hi=$ac_mid; break
40211 else
40212   $as_echo "$as_me: failed program was:" >&5
40213 sed 's/^/| /' conftest.$ac_ext >&5
40214
40215         ac_lo=`expr $ac_mid + 1`
40216                         if test $ac_lo -le $ac_mid; then
40217                           ac_lo= ac_hi=
40218                           break
40219                         fi
40220                         ac_mid=`expr 2 '*' $ac_mid + 1`
40221 fi
40222
40223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40224   done
40225 else
40226   $as_echo "$as_me: failed program was:" >&5
40227 sed 's/^/| /' conftest.$ac_ext >&5
40228
40229         cat >conftest.$ac_ext <<_ACEOF
40230 /* confdefs.h.  */
40231 _ACEOF
40232 cat confdefs.h >>conftest.$ac_ext
40233 cat >>conftest.$ac_ext <<_ACEOF
40234 /* end confdefs.h.  */
40235
40236   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40237      included before <wchar.h>.  */
40238   #include <stddef.h>
40239   #include <signal.h>
40240   #include <stdio.h>
40241   #include <time.h>
40242   #include <wchar.h>
40243
40244 #include <limits.h>
40245 int
40246 main ()
40247 {
40248 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
40249 test_array [0] = 0
40250
40251   ;
40252   return 0;
40253 }
40254 _ACEOF
40255 rm -f conftest.$ac_objext
40256 if { (ac_try="$ac_compile"
40257 case "(($ac_try" in
40258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40259   *) ac_try_echo=$ac_try;;
40260 esac
40261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40262 $as_echo "$ac_try_echo") >&5
40263   (eval "$ac_compile") 2>conftest.er1
40264   ac_status=$?
40265   grep -v '^ *+' conftest.er1 >conftest.err
40266   rm -f conftest.er1
40267   cat conftest.err >&5
40268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40269   (exit $ac_status); } && {
40270          test -z "$ac_c_werror_flag" ||
40271          test ! -s conftest.err
40272        } && test -s conftest.$ac_objext; then
40273   ac_hi=-1 ac_mid=-1
40274   while :; do
40275     cat >conftest.$ac_ext <<_ACEOF
40276 /* confdefs.h.  */
40277 _ACEOF
40278 cat confdefs.h >>conftest.$ac_ext
40279 cat >>conftest.$ac_ext <<_ACEOF
40280 /* end confdefs.h.  */
40281
40282   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40283      included before <wchar.h>.  */
40284   #include <stddef.h>
40285   #include <signal.h>
40286   #include <stdio.h>
40287   #include <time.h>
40288   #include <wchar.h>
40289
40290 #include <limits.h>
40291 int
40292 main ()
40293 {
40294 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
40295 test_array [0] = 0
40296
40297   ;
40298   return 0;
40299 }
40300 _ACEOF
40301 rm -f conftest.$ac_objext
40302 if { (ac_try="$ac_compile"
40303 case "(($ac_try" in
40304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40305   *) ac_try_echo=$ac_try;;
40306 esac
40307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40308 $as_echo "$ac_try_echo") >&5
40309   (eval "$ac_compile") 2>conftest.er1
40310   ac_status=$?
40311   grep -v '^ *+' conftest.er1 >conftest.err
40312   rm -f conftest.er1
40313   cat conftest.err >&5
40314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40315   (exit $ac_status); } && {
40316          test -z "$ac_c_werror_flag" ||
40317          test ! -s conftest.err
40318        } && test -s conftest.$ac_objext; then
40319   ac_lo=$ac_mid; break
40320 else
40321   $as_echo "$as_me: failed program was:" >&5
40322 sed 's/^/| /' conftest.$ac_ext >&5
40323
40324         ac_hi=`expr '(' $ac_mid ')' - 1`
40325                         if test $ac_mid -le $ac_hi; then
40326                           ac_lo= ac_hi=
40327                           break
40328                         fi
40329                         ac_mid=`expr 2 '*' $ac_mid`
40330 fi
40331
40332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40333   done
40334 else
40335   $as_echo "$as_me: failed program was:" >&5
40336 sed 's/^/| /' conftest.$ac_ext >&5
40337
40338         ac_lo= ac_hi=
40339 fi
40340
40341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40342 fi
40343
40344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40345 # Binary search between lo and hi bounds.
40346 while test "x$ac_lo" != "x$ac_hi"; do
40347   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40348   cat >conftest.$ac_ext <<_ACEOF
40349 /* confdefs.h.  */
40350 _ACEOF
40351 cat confdefs.h >>conftest.$ac_ext
40352 cat >>conftest.$ac_ext <<_ACEOF
40353 /* end confdefs.h.  */
40354
40355   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40356      included before <wchar.h>.  */
40357   #include <stddef.h>
40358   #include <signal.h>
40359   #include <stdio.h>
40360   #include <time.h>
40361   #include <wchar.h>
40362
40363 #include <limits.h>
40364 int
40365 main ()
40366 {
40367 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
40368 test_array [0] = 0
40369
40370   ;
40371   return 0;
40372 }
40373 _ACEOF
40374 rm -f conftest.$ac_objext
40375 if { (ac_try="$ac_compile"
40376 case "(($ac_try" in
40377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40378   *) ac_try_echo=$ac_try;;
40379 esac
40380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40381 $as_echo "$ac_try_echo") >&5
40382   (eval "$ac_compile") 2>conftest.er1
40383   ac_status=$?
40384   grep -v '^ *+' conftest.er1 >conftest.err
40385   rm -f conftest.er1
40386   cat conftest.err >&5
40387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40388   (exit $ac_status); } && {
40389          test -z "$ac_c_werror_flag" ||
40390          test ! -s conftest.err
40391        } && test -s conftest.$ac_objext; then
40392   ac_hi=$ac_mid
40393 else
40394   $as_echo "$as_me: failed program was:" >&5
40395 sed 's/^/| /' conftest.$ac_ext >&5
40396
40397         ac_lo=`expr '(' $ac_mid ')' + 1`
40398 fi
40399
40400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40401 done
40402 case $ac_lo in
40403 ?*) result=$ac_lo;;
40404 '') result=unknown ;;
40405 esac
40406 else
40407   cat >conftest.$ac_ext <<_ACEOF
40408 /* confdefs.h.  */
40409 _ACEOF
40410 cat confdefs.h >>conftest.$ac_ext
40411 cat >>conftest.$ac_ext <<_ACEOF
40412 /* end confdefs.h.  */
40413
40414   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40415      included before <wchar.h>.  */
40416   #include <stddef.h>
40417   #include <signal.h>
40418   #include <stdio.h>
40419   #include <time.h>
40420   #include <wchar.h>
40421
40422 #include <limits.h>
40423 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
40424 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
40425 #include <stdio.h>
40426 #include <stdlib.h>
40427 int
40428 main ()
40429 {
40430
40431   FILE *f = fopen ("conftest.val", "w");
40432   if (! f)
40433     return 1;
40434   if ((sizeof ($gltype) * CHAR_BIT) < 0)
40435     {
40436       long int i = longval ();
40437       if (i != (sizeof ($gltype) * CHAR_BIT))
40438         return 1;
40439       fprintf (f, "%ld", i);
40440     }
40441   else
40442     {
40443       unsigned long int i = ulongval ();
40444       if (i != (sizeof ($gltype) * CHAR_BIT))
40445         return 1;
40446       fprintf (f, "%lu", i);
40447     }
40448   /* Do not output a trailing newline, as this causes \r\n confusion
40449      on some platforms.  */
40450   return ferror (f) || fclose (f) != 0;
40451
40452   ;
40453   return 0;
40454 }
40455 _ACEOF
40456 rm -f conftest$ac_exeext
40457 if { (ac_try="$ac_link"
40458 case "(($ac_try" in
40459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40460   *) ac_try_echo=$ac_try;;
40461 esac
40462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40463 $as_echo "$ac_try_echo") >&5
40464   (eval "$ac_link") 2>&5
40465   ac_status=$?
40466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40467   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40468   { (case "(($ac_try" in
40469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40470   *) ac_try_echo=$ac_try;;
40471 esac
40472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40473 $as_echo "$ac_try_echo") >&5
40474   (eval "$ac_try") 2>&5
40475   ac_status=$?
40476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40477   (exit $ac_status); }; }; then
40478   result=`cat conftest.val`
40479 else
40480   $as_echo "$as_me: program exited with status $ac_status" >&5
40481 $as_echo "$as_me: failed program was:" >&5
40482 sed 's/^/| /' conftest.$ac_ext >&5
40483
40484 ( exit $ac_status )
40485 result=unknown
40486 fi
40487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40488 fi
40489 rm -f conftest.val
40490        eval gl_cv_bitsizeof_${gltype}=\$result
40491
40492 fi
40493 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
40494                  $as_echo "$as_val"'`
40495                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40496 $as_echo "$ac_res" >&6; }
40497     eval result=\$gl_cv_bitsizeof_${gltype}
40498     if test $result = unknown; then
40499                                                 result=0
40500     fi
40501     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
40502     cat >>confdefs.h <<_ACEOF
40503 #define BITSIZEOF_${GLTYPE} $result
40504 _ACEOF
40505
40506     eval BITSIZEOF_${GLTYPE}=\$result
40507   done
40508
40509
40510
40511
40512
40513
40514
40515   for gltype in sig_atomic_t wchar_t wint_t ; do
40516     { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
40517 $as_echo_n "checking whether $gltype is signed... " >&6; }
40518 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
40519   $as_echo_n "(cached) " >&6
40520 else
40521   cat >conftest.$ac_ext <<_ACEOF
40522 /* confdefs.h.  */
40523 _ACEOF
40524 cat confdefs.h >>conftest.$ac_ext
40525 cat >>conftest.$ac_ext <<_ACEOF
40526 /* end confdefs.h.  */
40527
40528   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40529      included before <wchar.h>.  */
40530   #include <stddef.h>
40531   #include <signal.h>
40532   #include <stdio.h>
40533   #include <time.h>
40534   #include <wchar.h>
40535
40536             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
40537 int
40538 main ()
40539 {
40540
40541   ;
40542   return 0;
40543 }
40544 _ACEOF
40545 rm -f conftest.$ac_objext
40546 if { (ac_try="$ac_compile"
40547 case "(($ac_try" in
40548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40549   *) ac_try_echo=$ac_try;;
40550 esac
40551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40552 $as_echo "$ac_try_echo") >&5
40553   (eval "$ac_compile") 2>conftest.er1
40554   ac_status=$?
40555   grep -v '^ *+' conftest.er1 >conftest.err
40556   rm -f conftest.er1
40557   cat conftest.err >&5
40558   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40559   (exit $ac_status); } && {
40560          test -z "$ac_c_werror_flag" ||
40561          test ! -s conftest.err
40562        } && test -s conftest.$ac_objext; then
40563   result=yes
40564 else
40565   $as_echo "$as_me: failed program was:" >&5
40566 sed 's/^/| /' conftest.$ac_ext >&5
40567
40568         result=no
40569 fi
40570
40571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40572        eval gl_cv_type_${gltype}_signed=\$result
40573
40574 fi
40575 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
40576                  $as_echo "$as_val"'`
40577                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40578 $as_echo "$ac_res" >&6; }
40579     eval result=\$gl_cv_type_${gltype}_signed
40580     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
40581     if test "$result" = yes; then
40582       cat >>confdefs.h <<_ACEOF
40583 #define HAVE_SIGNED_${GLTYPE} 1
40584 _ACEOF
40585
40586       eval HAVE_SIGNED_${GLTYPE}=1
40587     else
40588       eval HAVE_SIGNED_${GLTYPE}=0
40589     fi
40590   done
40591
40592
40593   gl_cv_type_ptrdiff_t_signed=yes
40594   gl_cv_type_size_t_signed=no
40595
40596
40597
40598
40599
40600
40601
40602   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
40603     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
40604 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
40605 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
40606   $as_echo_n "(cached) " >&6
40607 else
40608   eval gl_cv_type_${gltype}_suffix=no
40609        eval result=\$gl_cv_type_${gltype}_signed
40610        if test "$result" = yes; then
40611          glsufu=
40612        else
40613          glsufu=u
40614        fi
40615        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
40616          case $glsuf in
40617            '')  gltype1='int';;
40618            l)   gltype1='long int';;
40619            ll)  gltype1='long long int';;
40620            i64) gltype1='__int64';;
40621            u)   gltype1='unsigned int';;
40622            ul)  gltype1='unsigned long int';;
40623            ull) gltype1='unsigned long long int';;
40624            ui64)gltype1='unsigned __int64';;
40625          esac
40626          cat >conftest.$ac_ext <<_ACEOF
40627 /* confdefs.h.  */
40628 _ACEOF
40629 cat confdefs.h >>conftest.$ac_ext
40630 cat >>conftest.$ac_ext <<_ACEOF
40631 /* end confdefs.h.  */
40632
40633   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40634      included before <wchar.h>.  */
40635   #include <stddef.h>
40636   #include <signal.h>
40637   #include <stdio.h>
40638   #include <time.h>
40639   #include <wchar.h>
40640
40641               extern $gltype foo;
40642               extern $gltype1 foo;
40643 int
40644 main ()
40645 {
40646
40647   ;
40648   return 0;
40649 }
40650 _ACEOF
40651 rm -f conftest.$ac_objext
40652 if { (ac_try="$ac_compile"
40653 case "(($ac_try" in
40654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40655   *) ac_try_echo=$ac_try;;
40656 esac
40657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40658 $as_echo "$ac_try_echo") >&5
40659   (eval "$ac_compile") 2>conftest.er1
40660   ac_status=$?
40661   grep -v '^ *+' conftest.er1 >conftest.err
40662   rm -f conftest.er1
40663   cat conftest.err >&5
40664   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40665   (exit $ac_status); } && {
40666          test -z "$ac_c_werror_flag" ||
40667          test ! -s conftest.err
40668        } && test -s conftest.$ac_objext; then
40669   eval gl_cv_type_${gltype}_suffix=\$glsuf
40670 else
40671   $as_echo "$as_me: failed program was:" >&5
40672 sed 's/^/| /' conftest.$ac_ext >&5
40673
40674
40675 fi
40676
40677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40678          eval result=\$gl_cv_type_${gltype}_suffix
40679          test "$result" != no && break
40680        done
40681 fi
40682 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
40683                  $as_echo "$as_val"'`
40684                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40685 $as_echo "$ac_res" >&6; }
40686     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
40687     eval result=\$gl_cv_type_${gltype}_suffix
40688     test "$result" = no && result=
40689     eval ${GLTYPE}_SUFFIX=\$result
40690     cat >>confdefs.h <<_ACEOF
40691 #define ${GLTYPE}_SUFFIX $result
40692 _ACEOF
40693
40694   done
40695
40696
40697
40698     STDINT_H=stdint.h
40699   fi
40700
40701
40702
40703
40704     { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
40705 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
40706 if test "${gl_cv_absolute_stdio_h+set}" = set; then
40707   $as_echo_n "(cached) " >&6
40708 else
40709
40710
40711
40712
40713
40714     if test $ac_cv_header_stdio_h = yes; then
40715       cat >conftest.$ac_ext <<_ACEOF
40716 /* confdefs.h.  */
40717 _ACEOF
40718 cat confdefs.h >>conftest.$ac_ext
40719 cat >>conftest.$ac_ext <<_ACEOF
40720 /* end confdefs.h.  */
40721 #include <stdio.h>
40722 _ACEOF
40723       gl_cv_absolute_stdio_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40724 sed -n '\#/stdio.h#{s#.*"\(.*/stdio.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
40725     fi
40726
40727 fi
40728 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_stdio_h" >&5
40729 $as_echo "$gl_cv_absolute_stdio_h" >&6; }
40730 cat >>confdefs.h <<_ACEOF
40731 #define ABSOLUTE_STDIO_H "$gl_cv_absolute_stdio_h"
40732 _ACEOF
40733
40734
40735   ABSOLUTE_STDIO_H=\"$gl_cv_absolute_stdio_h\"
40736
40737
40738
40739
40740     { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
40741 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
40742 if test "${gl_cv_absolute_stdlib_h+set}" = set; then
40743   $as_echo_n "(cached) " >&6
40744 else
40745
40746
40747
40748
40749
40750     if test $ac_cv_header_stdlib_h = yes; then
40751       cat >conftest.$ac_ext <<_ACEOF
40752 /* confdefs.h.  */
40753 _ACEOF
40754 cat confdefs.h >>conftest.$ac_ext
40755 cat >>conftest.$ac_ext <<_ACEOF
40756 /* end confdefs.h.  */
40757 #include <stdlib.h>
40758 _ACEOF
40759       gl_cv_absolute_stdlib_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40760 sed -n '\#/stdlib.h#{s#.*"\(.*/stdlib.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
40761     fi
40762
40763 fi
40764 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_stdlib_h" >&5
40765 $as_echo "$gl_cv_absolute_stdlib_h" >&6; }
40766 cat >>confdefs.h <<_ACEOF
40767 #define ABSOLUTE_STDLIB_H "$gl_cv_absolute_stdlib_h"
40768 _ACEOF
40769
40770
40771   ABSOLUTE_STDLIB_H=\"$gl_cv_absolute_stdlib_h\"
40772
40773
40774
40775   gl_LIBOBJS="$gl_LIBOBJS mkstemp-safer.$ac_objext"
40776
40777
40778
40779
40780
40781
40782 for ac_func in stpcpy
40783 do
40784 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40785 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40786 $as_echo_n "checking for $ac_func... " >&6; }
40787 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40788   $as_echo_n "(cached) " >&6
40789 else
40790   cat >conftest.$ac_ext <<_ACEOF
40791 /* confdefs.h.  */
40792 _ACEOF
40793 cat confdefs.h >>conftest.$ac_ext
40794 cat >>conftest.$ac_ext <<_ACEOF
40795 /* end confdefs.h.  */
40796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40797    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40798 #define $ac_func innocuous_$ac_func
40799
40800 /* System header to define __stub macros and hopefully few prototypes,
40801     which can conflict with char $ac_func (); below.
40802     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40803     <limits.h> exists even on freestanding compilers.  */
40804
40805 #ifdef __STDC__
40806 # include <limits.h>
40807 #else
40808 # include <assert.h>
40809 #endif
40810
40811 #undef $ac_func
40812
40813 /* Override any GCC internal prototype to avoid an error.
40814    Use char because int might match the return type of a GCC
40815    builtin and then its argument prototype would still apply.  */
40816 #ifdef __cplusplus
40817 extern "C"
40818 #endif
40819 char $ac_func ();
40820 /* The GNU C library defines this for functions which it implements
40821     to always fail with ENOSYS.  Some functions are actually named
40822     something starting with __ and the normal name is an alias.  */
40823 #if defined __stub_$ac_func || defined __stub___$ac_func
40824 choke me
40825 #endif
40826
40827 int
40828 main ()
40829 {
40830 return $ac_func ();
40831   ;
40832   return 0;
40833 }
40834 _ACEOF
40835 rm -f conftest.$ac_objext conftest$ac_exeext
40836 if { (ac_try="$ac_link"
40837 case "(($ac_try" in
40838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40839   *) ac_try_echo=$ac_try;;
40840 esac
40841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40842 $as_echo "$ac_try_echo") >&5
40843   (eval "$ac_link") 2>conftest.er1
40844   ac_status=$?
40845   grep -v '^ *+' conftest.er1 >conftest.err
40846   rm -f conftest.er1
40847   cat conftest.err >&5
40848   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40849   (exit $ac_status); } && {
40850          test -z "$ac_c_werror_flag" ||
40851          test ! -s conftest.err
40852        } && test -s conftest$ac_exeext &&
40853        $as_test_x conftest$ac_exeext; then
40854   eval "$as_ac_var=yes"
40855 else
40856   $as_echo "$as_me: failed program was:" >&5
40857 sed 's/^/| /' conftest.$ac_ext >&5
40858
40859         eval "$as_ac_var=no"
40860 fi
40861
40862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40863       conftest$ac_exeext conftest.$ac_ext
40864 fi
40865 ac_res=`eval 'as_val=${'$as_ac_var'}
40866                  $as_echo "$as_val"'`
40867                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40868 $as_echo "$ac_res" >&6; }
40869 if test `eval 'as_val=${'$as_ac_var'}
40870                  $as_echo "$as_val"'` = yes; then
40871   cat >>confdefs.h <<_ACEOF
40872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40873 _ACEOF
40874
40875 else
40876   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
40877 fi
40878 done
40879
40880   if test $ac_cv_func_stpcpy = no; then
40881     HAVE_STPCPY=0
40882
40883   :
40884
40885   fi
40886
40887
40888
40889   GNULIB_STPCPY=1
40890
40891
40892
40893 for ac_func in strcspn
40894 do
40895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40896 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40897 $as_echo_n "checking for $ac_func... " >&6; }
40898 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40899   $as_echo_n "(cached) " >&6
40900 else
40901   cat >conftest.$ac_ext <<_ACEOF
40902 /* confdefs.h.  */
40903 _ACEOF
40904 cat confdefs.h >>conftest.$ac_ext
40905 cat >>conftest.$ac_ext <<_ACEOF
40906 /* end confdefs.h.  */
40907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40908    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40909 #define $ac_func innocuous_$ac_func
40910
40911 /* System header to define __stub macros and hopefully few prototypes,
40912     which can conflict with char $ac_func (); below.
40913     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40914     <limits.h> exists even on freestanding compilers.  */
40915
40916 #ifdef __STDC__
40917 # include <limits.h>
40918 #else
40919 # include <assert.h>
40920 #endif
40921
40922 #undef $ac_func
40923
40924 /* Override any GCC internal prototype to avoid an error.
40925    Use char because int might match the return type of a GCC
40926    builtin and then its argument prototype would still apply.  */
40927 #ifdef __cplusplus
40928 extern "C"
40929 #endif
40930 char $ac_func ();
40931 /* The GNU C library defines this for functions which it implements
40932     to always fail with ENOSYS.  Some functions are actually named
40933     something starting with __ and the normal name is an alias.  */
40934 #if defined __stub_$ac_func || defined __stub___$ac_func
40935 choke me
40936 #endif
40937
40938 int
40939 main ()
40940 {
40941 return $ac_func ();
40942   ;
40943   return 0;
40944 }
40945 _ACEOF
40946 rm -f conftest.$ac_objext conftest$ac_exeext
40947 if { (ac_try="$ac_link"
40948 case "(($ac_try" in
40949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40950   *) ac_try_echo=$ac_try;;
40951 esac
40952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40953 $as_echo "$ac_try_echo") >&5
40954   (eval "$ac_link") 2>conftest.er1
40955   ac_status=$?
40956   grep -v '^ *+' conftest.er1 >conftest.err
40957   rm -f conftest.er1
40958   cat conftest.err >&5
40959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40960   (exit $ac_status); } && {
40961          test -z "$ac_c_werror_flag" ||
40962          test ! -s conftest.err
40963        } && test -s conftest$ac_exeext &&
40964        $as_test_x conftest$ac_exeext; then
40965   eval "$as_ac_var=yes"
40966 else
40967   $as_echo "$as_me: failed program was:" >&5
40968 sed 's/^/| /' conftest.$ac_ext >&5
40969
40970         eval "$as_ac_var=no"
40971 fi
40972
40973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40974       conftest$ac_exeext conftest.$ac_ext
40975 fi
40976 ac_res=`eval 'as_val=${'$as_ac_var'}
40977                  $as_echo "$as_val"'`
40978                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40979 $as_echo "$ac_res" >&6; }
40980 if test `eval 'as_val=${'$as_ac_var'}
40981                  $as_echo "$as_val"'` = yes; then
40982   cat >>confdefs.h <<_ACEOF
40983 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40984 _ACEOF
40985
40986 else
40987   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
40988 fi
40989 done
40990
40991   if test $ac_cv_func_strcspn = no; then
40992     :
40993   fi
40994
40995
40996
40997
40998 for ac_func in strdup
40999 do
41000 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41001 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41002 $as_echo_n "checking for $ac_func... " >&6; }
41003 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41004   $as_echo_n "(cached) " >&6
41005 else
41006   cat >conftest.$ac_ext <<_ACEOF
41007 /* confdefs.h.  */
41008 _ACEOF
41009 cat confdefs.h >>conftest.$ac_ext
41010 cat >>conftest.$ac_ext <<_ACEOF
41011 /* end confdefs.h.  */
41012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41013    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41014 #define $ac_func innocuous_$ac_func
41015
41016 /* System header to define __stub macros and hopefully few prototypes,
41017     which can conflict with char $ac_func (); below.
41018     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41019     <limits.h> exists even on freestanding compilers.  */
41020
41021 #ifdef __STDC__
41022 # include <limits.h>
41023 #else
41024 # include <assert.h>
41025 #endif
41026
41027 #undef $ac_func
41028
41029 /* Override any GCC internal prototype to avoid an error.
41030    Use char because int might match the return type of a GCC
41031    builtin and then its argument prototype would still apply.  */
41032 #ifdef __cplusplus
41033 extern "C"
41034 #endif
41035 char $ac_func ();
41036 /* The GNU C library defines this for functions which it implements
41037     to always fail with ENOSYS.  Some functions are actually named
41038     something starting with __ and the normal name is an alias.  */
41039 #if defined __stub_$ac_func || defined __stub___$ac_func
41040 choke me
41041 #endif
41042
41043 int
41044 main ()
41045 {
41046 return $ac_func ();
41047   ;
41048   return 0;
41049 }
41050 _ACEOF
41051 rm -f conftest.$ac_objext conftest$ac_exeext
41052 if { (ac_try="$ac_link"
41053 case "(($ac_try" in
41054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41055   *) ac_try_echo=$ac_try;;
41056 esac
41057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41058 $as_echo "$ac_try_echo") >&5
41059   (eval "$ac_link") 2>conftest.er1
41060   ac_status=$?
41061   grep -v '^ *+' conftest.er1 >conftest.err
41062   rm -f conftest.er1
41063   cat conftest.err >&5
41064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41065   (exit $ac_status); } && {
41066          test -z "$ac_c_werror_flag" ||
41067          test ! -s conftest.err
41068        } && test -s conftest$ac_exeext &&
41069        $as_test_x conftest$ac_exeext; then
41070   eval "$as_ac_var=yes"
41071 else
41072   $as_echo "$as_me: failed program was:" >&5
41073 sed 's/^/| /' conftest.$ac_ext >&5
41074
41075         eval "$as_ac_var=no"
41076 fi
41077
41078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41079       conftest$ac_exeext conftest.$ac_ext
41080 fi
41081 ac_res=`eval 'as_val=${'$as_ac_var'}
41082                  $as_echo "$as_val"'`
41083                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41084 $as_echo "$ac_res" >&6; }
41085 if test `eval 'as_val=${'$as_ac_var'}
41086                  $as_echo "$as_val"'` = yes; then
41087   cat >>confdefs.h <<_ACEOF
41088 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41089 _ACEOF
41090
41091 else
41092   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
41093 fi
41094 done
41095
41096
41097
41098
41099
41100   if test $ac_cv_have_decl_strdup = no; then
41101     HAVE_DECL_STRDUP=0
41102   fi
41103   :
41104
41105
41106
41107   GNULIB_STRDUP=1
41108
41109
41110
41111  gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
41112
41113  # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
41114
41115
41116
41117
41118
41119
41120
41121
41122
41123
41124
41125
41126
41127
41128
41129
41130
41131
41132
41133
41134
41135
41136
41137
41138
41139 cat >>confdefs.h <<\_ACEOF
41140 #define my_strftime nstrftime
41141 _ACEOF
41142
41143
41144
41145
41146
41147
41148
41149
41150
41151
41152
41153
41154
41155
41156   if test $ac_cv_have_decl_strndup = no; then
41157     HAVE_DECL_STRNDUP=0
41158   fi
41159
41160   # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
41161   { $as_echo "$as_me:$LINENO: checking for working strndup" >&5
41162 $as_echo_n "checking for working strndup... " >&6; }
41163 if test "${gl_cv_func_strndup+set}" = set; then
41164   $as_echo_n "(cached) " >&6
41165 else
41166   if test "$cross_compiling" = yes; then
41167   { $as_echo "$as_me:$LINENO: checking for strndup" >&5
41168 $as_echo_n "checking for strndup... " >&6; }
41169 if test "${ac_cv_func_strndup+set}" = set; then
41170   $as_echo_n "(cached) " >&6
41171 else
41172   cat >conftest.$ac_ext <<_ACEOF
41173 /* confdefs.h.  */
41174 _ACEOF
41175 cat confdefs.h >>conftest.$ac_ext
41176 cat >>conftest.$ac_ext <<_ACEOF
41177 /* end confdefs.h.  */
41178 /* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
41179    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41180 #define strndup innocuous_strndup
41181
41182 /* System header to define __stub macros and hopefully few prototypes,
41183     which can conflict with char strndup (); below.
41184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41185     <limits.h> exists even on freestanding compilers.  */
41186
41187 #ifdef __STDC__
41188 # include <limits.h>
41189 #else
41190 # include <assert.h>
41191 #endif
41192
41193 #undef strndup
41194
41195 /* Override any GCC internal prototype to avoid an error.
41196    Use char because int might match the return type of a GCC
41197    builtin and then its argument prototype would still apply.  */
41198 #ifdef __cplusplus
41199 extern "C"
41200 #endif
41201 char strndup ();
41202 /* The GNU C library defines this for functions which it implements
41203     to always fail with ENOSYS.  Some functions are actually named
41204     something starting with __ and the normal name is an alias.  */
41205 #if defined __stub_strndup || defined __stub___strndup
41206 choke me
41207 #endif
41208
41209 int
41210 main ()
41211 {
41212 return strndup ();
41213   ;
41214   return 0;
41215 }
41216 _ACEOF
41217 rm -f conftest.$ac_objext conftest$ac_exeext
41218 if { (ac_try="$ac_link"
41219 case "(($ac_try" in
41220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41221   *) ac_try_echo=$ac_try;;
41222 esac
41223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41224 $as_echo "$ac_try_echo") >&5
41225   (eval "$ac_link") 2>conftest.er1
41226   ac_status=$?
41227   grep -v '^ *+' conftest.er1 >conftest.err
41228   rm -f conftest.er1
41229   cat conftest.err >&5
41230   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41231   (exit $ac_status); } && {
41232          test -z "$ac_c_werror_flag" ||
41233          test ! -s conftest.err
41234        } && test -s conftest$ac_exeext &&
41235        $as_test_x conftest$ac_exeext; then
41236   ac_cv_func_strndup=yes
41237 else
41238   $as_echo "$as_me: failed program was:" >&5
41239 sed 's/^/| /' conftest.$ac_ext >&5
41240
41241         ac_cv_func_strndup=no
41242 fi
41243
41244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41245       conftest$ac_exeext conftest.$ac_ext
41246 fi
41247 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
41248 $as_echo "$ac_cv_func_strndup" >&6; }
41249 if test $ac_cv_func_strndup = yes; then
41250   cat >conftest.$ac_ext <<_ACEOF
41251 /* confdefs.h.  */
41252 _ACEOF
41253 cat confdefs.h >>conftest.$ac_ext
41254 cat >>conftest.$ac_ext <<_ACEOF
41255 /* end confdefs.h.  */
41256
41257 #ifdef _AIX
41258                too risky
41259 #endif
41260
41261 _ACEOF
41262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41263   $EGREP "too risky" >/dev/null 2>&1; then
41264   gl_cv_func_strndup=no
41265 else
41266   gl_cv_func_strndup=yes
41267 fi
41268 rm -f conftest*
41269
41270 else
41271   gl_cv_func_strndup=no
41272 fi
41273
41274 else
41275   cat >conftest.$ac_ext <<_ACEOF
41276
41277        /* confdefs.h.  */
41278 _ACEOF
41279 cat confdefs.h >>conftest.$ac_ext
41280 cat >>conftest.$ac_ext <<_ACEOF
41281 /* end confdefs.h.  */
41282 #include <string.h>
41283                         #include <stdlib.h>
41284 int
41285 main ()
41286 {
41287
41288 #ifndef HAVE_DECL_STRNDUP
41289   extern char *strndup (const char *, size_t);
41290 #endif
41291   char *s;
41292   s = strndup ("some longer string", 15);
41293   free (s);
41294   s = strndup ("shorter string", 13);
41295   return s[13] != '\0';
41296   ;
41297   return 0;
41298 }
41299 _ACEOF
41300 rm -f conftest$ac_exeext
41301 if { (ac_try="$ac_link"
41302 case "(($ac_try" in
41303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41304   *) ac_try_echo=$ac_try;;
41305 esac
41306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41307 $as_echo "$ac_try_echo") >&5
41308   (eval "$ac_link") 2>&5
41309   ac_status=$?
41310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41311   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41312   { (case "(($ac_try" in
41313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41314   *) ac_try_echo=$ac_try;;
41315 esac
41316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41317 $as_echo "$ac_try_echo") >&5
41318   (eval "$ac_try") 2>&5
41319   ac_status=$?
41320   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41321   (exit $ac_status); }; }; then
41322   gl_cv_func_strndup=yes
41323 else
41324   $as_echo "$as_me: program exited with status $ac_status" >&5
41325 $as_echo "$as_me: failed program was:" >&5
41326 sed 's/^/| /' conftest.$ac_ext >&5
41327
41328 ( exit $ac_status )
41329 gl_cv_func_strndup=no
41330 fi
41331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41332 fi
41333
41334
41335 fi
41336 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_strndup" >&5
41337 $as_echo "$gl_cv_func_strndup" >&6; }
41338   if test $gl_cv_func_strndup = yes; then
41339
41340 cat >>confdefs.h <<\_ACEOF
41341 #define HAVE_STRNDUP 1
41342 _ACEOF
41343
41344   else
41345     HAVE_STRNDUP=0
41346     gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
41347     :
41348   fi
41349
41350
41351
41352   GNULIB_STRNDUP=1
41353
41354
41355
41356
41357
41358
41359
41360
41361
41362   if test $ac_cv_have_decl_strnlen = no; then
41363     HAVE_DECL_STRNLEN=0
41364   fi
41365
41366   { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
41367 $as_echo_n "checking for working strnlen... " >&6; }
41368 if test "${ac_cv_func_strnlen_working+set}" = set; then
41369   $as_echo_n "(cached) " >&6
41370 else
41371   if test "$cross_compiling" = yes; then
41372   ac_cv_func_strnlen_working=no
41373 else
41374   cat >conftest.$ac_ext <<_ACEOF
41375 /* confdefs.h.  */
41376 _ACEOF
41377 cat confdefs.h >>conftest.$ac_ext
41378 cat >>conftest.$ac_ext <<_ACEOF
41379 /* end confdefs.h.  */
41380 $ac_includes_default
41381 int
41382 main ()
41383 {
41384
41385 #define S "foobar"
41386 #define S_LEN (sizeof S - 1)
41387
41388   /* At least one implementation is buggy: that of AIX 4.3 would
41389      give strnlen (S, 1) == 3.  */
41390
41391   int i;
41392   for (i = 0; i < S_LEN + 1; ++i)
41393     {
41394       int expected = i <= S_LEN ? i : S_LEN;
41395       if (strnlen (S, i) != expected)
41396         return 1;
41397     }
41398   return 0;
41399
41400   ;
41401   return 0;
41402 }
41403 _ACEOF
41404 rm -f conftest$ac_exeext
41405 if { (ac_try="$ac_link"
41406 case "(($ac_try" in
41407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41408   *) ac_try_echo=$ac_try;;
41409 esac
41410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41411 $as_echo "$ac_try_echo") >&5
41412   (eval "$ac_link") 2>&5
41413   ac_status=$?
41414   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41415   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41416   { (case "(($ac_try" in
41417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41418   *) ac_try_echo=$ac_try;;
41419 esac
41420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41421 $as_echo "$ac_try_echo") >&5
41422   (eval "$ac_try") 2>&5
41423   ac_status=$?
41424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41425   (exit $ac_status); }; }; then
41426   ac_cv_func_strnlen_working=yes
41427 else
41428   $as_echo "$as_me: program exited with status $ac_status" >&5
41429 $as_echo "$as_me: failed program was:" >&5
41430 sed 's/^/| /' conftest.$ac_ext >&5
41431
41432 ( exit $ac_status )
41433 ac_cv_func_strnlen_working=no
41434 fi
41435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41436 fi
41437
41438
41439 fi
41440 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
41441 $as_echo "$ac_cv_func_strnlen_working" >&6; }
41442 test $ac_cv_func_strnlen_working = no && gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
41443
41444   if test $ac_cv_func_strnlen_working = no; then
41445     # This is necessary because automake-1.6.1 doens't understand
41446     # that the above use of AC_FUNC_STRNLEN means we may have to use
41447     # lib/strnlen.c.
41448     #AC_LIBOBJ(strnlen)
41449
41450 cat >>confdefs.h <<\_ACEOF
41451 #define strnlen rpl_strnlen
41452 _ACEOF
41453
41454     :
41455   fi
41456
41457
41458
41459   GNULIB_STRNLEN=1
41460
41461
41462
41463
41464 for ac_func in strpbrk
41465 do
41466 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41467 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41468 $as_echo_n "checking for $ac_func... " >&6; }
41469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41470   $as_echo_n "(cached) " >&6
41471 else
41472   cat >conftest.$ac_ext <<_ACEOF
41473 /* confdefs.h.  */
41474 _ACEOF
41475 cat confdefs.h >>conftest.$ac_ext
41476 cat >>conftest.$ac_ext <<_ACEOF
41477 /* end confdefs.h.  */
41478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41480 #define $ac_func innocuous_$ac_func
41481
41482 /* System header to define __stub macros and hopefully few prototypes,
41483     which can conflict with char $ac_func (); below.
41484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41485     <limits.h> exists even on freestanding compilers.  */
41486
41487 #ifdef __STDC__
41488 # include <limits.h>
41489 #else
41490 # include <assert.h>
41491 #endif
41492
41493 #undef $ac_func
41494
41495 /* Override any GCC internal prototype to avoid an error.
41496    Use char because int might match the return type of a GCC
41497    builtin and then its argument prototype would still apply.  */
41498 #ifdef __cplusplus
41499 extern "C"
41500 #endif
41501 char $ac_func ();
41502 /* The GNU C library defines this for functions which it implements
41503     to always fail with ENOSYS.  Some functions are actually named
41504     something starting with __ and the normal name is an alias.  */
41505 #if defined __stub_$ac_func || defined __stub___$ac_func
41506 choke me
41507 #endif
41508
41509 int
41510 main ()
41511 {
41512 return $ac_func ();
41513   ;
41514   return 0;
41515 }
41516 _ACEOF
41517 rm -f conftest.$ac_objext conftest$ac_exeext
41518 if { (ac_try="$ac_link"
41519 case "(($ac_try" in
41520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41521   *) ac_try_echo=$ac_try;;
41522 esac
41523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41524 $as_echo "$ac_try_echo") >&5
41525   (eval "$ac_link") 2>conftest.er1
41526   ac_status=$?
41527   grep -v '^ *+' conftest.er1 >conftest.err
41528   rm -f conftest.er1
41529   cat conftest.err >&5
41530   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41531   (exit $ac_status); } && {
41532          test -z "$ac_c_werror_flag" ||
41533          test ! -s conftest.err
41534        } && test -s conftest$ac_exeext &&
41535        $as_test_x conftest$ac_exeext; then
41536   eval "$as_ac_var=yes"
41537 else
41538   $as_echo "$as_me: failed program was:" >&5
41539 sed 's/^/| /' conftest.$ac_ext >&5
41540
41541         eval "$as_ac_var=no"
41542 fi
41543
41544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41545       conftest$ac_exeext conftest.$ac_ext
41546 fi
41547 ac_res=`eval 'as_val=${'$as_ac_var'}
41548                  $as_echo "$as_val"'`
41549                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41550 $as_echo "$ac_res" >&6; }
41551 if test `eval 'as_val=${'$as_ac_var'}
41552                  $as_echo "$as_val"'` = yes; then
41553   cat >>confdefs.h <<_ACEOF
41554 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41555 _ACEOF
41556
41557 else
41558   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
41559 fi
41560 done
41561
41562   if test $ac_cv_func_strpbrk = no; then
41563     HAVE_STRPBRK=0
41564     :
41565   fi
41566
41567
41568
41569   GNULIB_STRPBRK=1
41570
41571
41572   { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
41573 $as_echo_n "checking for working strtod... " >&6; }
41574 if test "${ac_cv_func_strtod+set}" = set; then
41575   $as_echo_n "(cached) " >&6
41576 else
41577   if test "$cross_compiling" = yes; then
41578   ac_cv_func_strtod=no
41579 else
41580   cat >conftest.$ac_ext <<_ACEOF
41581 /* confdefs.h.  */
41582 _ACEOF
41583 cat confdefs.h >>conftest.$ac_ext
41584 cat >>conftest.$ac_ext <<_ACEOF
41585 /* end confdefs.h.  */
41586
41587 $ac_includes_default
41588 #ifndef strtod
41589 double strtod ();
41590 #endif
41591 int
41592 main()
41593 {
41594   {
41595     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
41596     char *string = " +69";
41597     char *term;
41598     double value;
41599     value = strtod (string, &term);
41600     if (value != 69 || term != (string + 4))
41601       return 1;
41602   }
41603
41604   {
41605     /* Under Solaris 2.4, strtod returns the wrong value for the
41606        terminating character under some conditions.  */
41607     char *string = "NaN";
41608     char *term;
41609     strtod (string, &term);
41610     if (term != string && *(term - 1) == 0)
41611       return 1;
41612   }
41613   return 0;
41614 }
41615
41616 _ACEOF
41617 rm -f conftest$ac_exeext
41618 if { (ac_try="$ac_link"
41619 case "(($ac_try" in
41620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41621   *) ac_try_echo=$ac_try;;
41622 esac
41623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41624 $as_echo "$ac_try_echo") >&5
41625   (eval "$ac_link") 2>&5
41626   ac_status=$?
41627   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41628   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41629   { (case "(($ac_try" in
41630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41631   *) ac_try_echo=$ac_try;;
41632 esac
41633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41634 $as_echo "$ac_try_echo") >&5
41635   (eval "$ac_try") 2>&5
41636   ac_status=$?
41637   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41638   (exit $ac_status); }; }; then
41639   ac_cv_func_strtod=yes
41640 else
41641   $as_echo "$as_me: program exited with status $ac_status" >&5
41642 $as_echo "$as_me: failed program was:" >&5
41643 sed 's/^/| /' conftest.$ac_ext >&5
41644
41645 ( exit $ac_status )
41646 ac_cv_func_strtod=no
41647 fi
41648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41649 fi
41650
41651
41652 fi
41653 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
41654 $as_echo "$ac_cv_func_strtod" >&6; }
41655 if test $ac_cv_func_strtod = no; then
41656   gl_LIBOBJS="$gl_LIBOBJS strtod.$ac_objext"
41657 { $as_echo "$as_me:$LINENO: checking for pow" >&5
41658 $as_echo_n "checking for pow... " >&6; }
41659 if test "${ac_cv_func_pow+set}" = set; then
41660   $as_echo_n "(cached) " >&6
41661 else
41662   cat >conftest.$ac_ext <<_ACEOF
41663 /* confdefs.h.  */
41664 _ACEOF
41665 cat confdefs.h >>conftest.$ac_ext
41666 cat >>conftest.$ac_ext <<_ACEOF
41667 /* end confdefs.h.  */
41668 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
41669    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41670 #define pow innocuous_pow
41671
41672 /* System header to define __stub macros and hopefully few prototypes,
41673     which can conflict with char pow (); below.
41674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41675     <limits.h> exists even on freestanding compilers.  */
41676
41677 #ifdef __STDC__
41678 # include <limits.h>
41679 #else
41680 # include <assert.h>
41681 #endif
41682
41683 #undef pow
41684
41685 /* Override any GCC internal prototype to avoid an error.
41686    Use char because int might match the return type of a GCC
41687    builtin and then its argument prototype would still apply.  */
41688 #ifdef __cplusplus
41689 extern "C"
41690 #endif
41691 char pow ();
41692 /* The GNU C library defines this for functions which it implements
41693     to always fail with ENOSYS.  Some functions are actually named
41694     something starting with __ and the normal name is an alias.  */
41695 #if defined __stub_pow || defined __stub___pow
41696 choke me
41697 #endif
41698
41699 int
41700 main ()
41701 {
41702 return pow ();
41703   ;
41704   return 0;
41705 }
41706 _ACEOF
41707 rm -f conftest.$ac_objext conftest$ac_exeext
41708 if { (ac_try="$ac_link"
41709 case "(($ac_try" in
41710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41711   *) ac_try_echo=$ac_try;;
41712 esac
41713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41714 $as_echo "$ac_try_echo") >&5
41715   (eval "$ac_link") 2>conftest.er1
41716   ac_status=$?
41717   grep -v '^ *+' conftest.er1 >conftest.err
41718   rm -f conftest.er1
41719   cat conftest.err >&5
41720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41721   (exit $ac_status); } && {
41722          test -z "$ac_c_werror_flag" ||
41723          test ! -s conftest.err
41724        } && test -s conftest$ac_exeext &&
41725        $as_test_x conftest$ac_exeext; then
41726   ac_cv_func_pow=yes
41727 else
41728   $as_echo "$as_me: failed program was:" >&5
41729 sed 's/^/| /' conftest.$ac_ext >&5
41730
41731         ac_cv_func_pow=no
41732 fi
41733
41734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41735       conftest$ac_exeext conftest.$ac_ext
41736 fi
41737 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
41738 $as_echo "$ac_cv_func_pow" >&6; }
41739
41740 if test $ac_cv_func_pow = no; then
41741   { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
41742 $as_echo_n "checking for pow in -lm... " >&6; }
41743 if test "${ac_cv_lib_m_pow+set}" = set; then
41744   $as_echo_n "(cached) " >&6
41745 else
41746   ac_check_lib_save_LIBS=$LIBS
41747 LIBS="-lm  $LIBS"
41748 cat >conftest.$ac_ext <<_ACEOF
41749 /* confdefs.h.  */
41750 _ACEOF
41751 cat confdefs.h >>conftest.$ac_ext
41752 cat >>conftest.$ac_ext <<_ACEOF
41753 /* end confdefs.h.  */
41754
41755 /* Override any GCC internal prototype to avoid an error.
41756    Use char because int might match the return type of a GCC
41757    builtin and then its argument prototype would still apply.  */
41758 #ifdef __cplusplus
41759 extern "C"
41760 #endif
41761 char pow ();
41762 int
41763 main ()
41764 {
41765 return pow ();
41766   ;
41767   return 0;
41768 }
41769 _ACEOF
41770 rm -f conftest.$ac_objext conftest$ac_exeext
41771 if { (ac_try="$ac_link"
41772 case "(($ac_try" in
41773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41774   *) ac_try_echo=$ac_try;;
41775 esac
41776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41777 $as_echo "$ac_try_echo") >&5
41778   (eval "$ac_link") 2>conftest.er1
41779   ac_status=$?
41780   grep -v '^ *+' conftest.er1 >conftest.err
41781   rm -f conftest.er1
41782   cat conftest.err >&5
41783   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41784   (exit $ac_status); } && {
41785          test -z "$ac_c_werror_flag" ||
41786          test ! -s conftest.err
41787        } && test -s conftest$ac_exeext &&
41788        $as_test_x conftest$ac_exeext; then
41789   ac_cv_lib_m_pow=yes
41790 else
41791   $as_echo "$as_me: failed program was:" >&5
41792 sed 's/^/| /' conftest.$ac_ext >&5
41793
41794         ac_cv_lib_m_pow=no
41795 fi
41796
41797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41798       conftest$ac_exeext conftest.$ac_ext
41799 LIBS=$ac_check_lib_save_LIBS
41800 fi
41801 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
41802 $as_echo "$ac_cv_lib_m_pow" >&6; }
41803 if test $ac_cv_lib_m_pow = yes; then
41804   POW_LIB=-lm
41805 else
41806   { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
41807 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
41808 fi
41809
41810 fi
41811
41812 fi
41813
41814     if test $ac_cv_func_strtod = no; then
41815
41816 cat >>confdefs.h <<\_ACEOF
41817 #define strtod rpl_strtod
41818 _ACEOF
41819
41820     :
41821   fi
41822
41823
41824
41825
41826
41827   { $as_echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
41828 $as_echo_n "checking whether <inttypes.h> defines strtoimax as a macro... " >&6; }
41829 if test "${jm_cv_func_strtoimax_macro+set}" = set; then
41830   $as_echo_n "(cached) " >&6
41831 else
41832   cat >conftest.$ac_ext <<_ACEOF
41833 /* confdefs.h.  */
41834 _ACEOF
41835 cat confdefs.h >>conftest.$ac_ext
41836 cat >>conftest.$ac_ext <<_ACEOF
41837 /* end confdefs.h.  */
41838 #include <inttypes.h>
41839 #ifdef strtoimax
41840  inttypes_h_defines_strtoimax
41841 #endif
41842 _ACEOF
41843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41844   $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
41845   jm_cv_func_strtoimax_macro=yes
41846 else
41847   jm_cv_func_strtoimax_macro=no
41848 fi
41849 rm -f conftest*
41850
41851 fi
41852 { $as_echo "$as_me:$LINENO: result: $jm_cv_func_strtoimax_macro" >&5
41853 $as_echo "$jm_cv_func_strtoimax_macro" >&6; }
41854
41855   if test "$jm_cv_func_strtoimax_macro" != yes; then
41856
41857 for ac_func in strtoimax
41858 do
41859 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41860 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41861 $as_echo_n "checking for $ac_func... " >&6; }
41862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41863   $as_echo_n "(cached) " >&6
41864 else
41865   cat >conftest.$ac_ext <<_ACEOF
41866 /* confdefs.h.  */
41867 _ACEOF
41868 cat confdefs.h >>conftest.$ac_ext
41869 cat >>conftest.$ac_ext <<_ACEOF
41870 /* end confdefs.h.  */
41871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41872    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41873 #define $ac_func innocuous_$ac_func
41874
41875 /* System header to define __stub macros and hopefully few prototypes,
41876     which can conflict with char $ac_func (); below.
41877     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41878     <limits.h> exists even on freestanding compilers.  */
41879
41880 #ifdef __STDC__
41881 # include <limits.h>
41882 #else
41883 # include <assert.h>
41884 #endif
41885
41886 #undef $ac_func
41887
41888 /* Override any GCC internal prototype to avoid an error.
41889    Use char because int might match the return type of a GCC
41890    builtin and then its argument prototype would still apply.  */
41891 #ifdef __cplusplus
41892 extern "C"
41893 #endif
41894 char $ac_func ();
41895 /* The GNU C library defines this for functions which it implements
41896     to always fail with ENOSYS.  Some functions are actually named
41897     something starting with __ and the normal name is an alias.  */
41898 #if defined __stub_$ac_func || defined __stub___$ac_func
41899 choke me
41900 #endif
41901
41902 int
41903 main ()
41904 {
41905 return $ac_func ();
41906   ;
41907   return 0;
41908 }
41909 _ACEOF
41910 rm -f conftest.$ac_objext conftest$ac_exeext
41911 if { (ac_try="$ac_link"
41912 case "(($ac_try" in
41913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41914   *) ac_try_echo=$ac_try;;
41915 esac
41916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41917 $as_echo "$ac_try_echo") >&5
41918   (eval "$ac_link") 2>conftest.er1
41919   ac_status=$?
41920   grep -v '^ *+' conftest.er1 >conftest.err
41921   rm -f conftest.er1
41922   cat conftest.err >&5
41923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41924   (exit $ac_status); } && {
41925          test -z "$ac_c_werror_flag" ||
41926          test ! -s conftest.err
41927        } && test -s conftest$ac_exeext &&
41928        $as_test_x conftest$ac_exeext; then
41929   eval "$as_ac_var=yes"
41930 else
41931   $as_echo "$as_me: failed program was:" >&5
41932 sed 's/^/| /' conftest.$ac_ext >&5
41933
41934         eval "$as_ac_var=no"
41935 fi
41936
41937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41938       conftest$ac_exeext conftest.$ac_ext
41939 fi
41940 ac_res=`eval 'as_val=${'$as_ac_var'}
41941                  $as_echo "$as_val"'`
41942                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41943 $as_echo "$ac_res" >&6; }
41944 if test `eval 'as_val=${'$as_ac_var'}
41945                  $as_echo "$as_val"'` = yes; then
41946   cat >>confdefs.h <<_ACEOF
41947 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41948 _ACEOF
41949
41950 else
41951   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
41952 fi
41953 done
41954
41955     if test $ac_cv_func_strtoimax = no; then
41956
41957   { $as_echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
41958 $as_echo_n "checking whether strtoll is declared... " >&6; }
41959 if test "${ac_cv_have_decl_strtoll+set}" = set; then
41960   $as_echo_n "(cached) " >&6
41961 else
41962   cat >conftest.$ac_ext <<_ACEOF
41963 /* confdefs.h.  */
41964 _ACEOF
41965 cat confdefs.h >>conftest.$ac_ext
41966 cat >>conftest.$ac_ext <<_ACEOF
41967 /* end confdefs.h.  */
41968 $ac_includes_default
41969 int
41970 main ()
41971 {
41972 #ifndef strtoll
41973   (void) strtoll;
41974 #endif
41975
41976   ;
41977   return 0;
41978 }
41979 _ACEOF
41980 rm -f conftest.$ac_objext
41981 if { (ac_try="$ac_compile"
41982 case "(($ac_try" in
41983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41984   *) ac_try_echo=$ac_try;;
41985 esac
41986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41987 $as_echo "$ac_try_echo") >&5
41988   (eval "$ac_compile") 2>conftest.er1
41989   ac_status=$?
41990   grep -v '^ *+' conftest.er1 >conftest.err
41991   rm -f conftest.er1
41992   cat conftest.err >&5
41993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41994   (exit $ac_status); } && {
41995          test -z "$ac_c_werror_flag" ||
41996          test ! -s conftest.err
41997        } && test -s conftest.$ac_objext; then
41998   ac_cv_have_decl_strtoll=yes
41999 else
42000   $as_echo "$as_me: failed program was:" >&5
42001 sed 's/^/| /' conftest.$ac_ext >&5
42002
42003         ac_cv_have_decl_strtoll=no
42004 fi
42005
42006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42007 fi
42008 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
42009 $as_echo "$ac_cv_have_decl_strtoll" >&6; }
42010 if test $ac_cv_have_decl_strtoll = yes; then
42011
42012 cat >>confdefs.h <<_ACEOF
42013 #define HAVE_DECL_STRTOLL 1
42014 _ACEOF
42015
42016
42017 else
42018   cat >>confdefs.h <<_ACEOF
42019 #define HAVE_DECL_STRTOLL 0
42020 _ACEOF
42021
42022
42023 fi
42024
42025
42026
42027
42028     fi
42029   fi
42030
42031
42032
42033   GNULIB_STRTOIMAX=1
42034
42035
42036
42037 for ac_func in strtol
42038 do
42039 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42040 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42041 $as_echo_n "checking for $ac_func... " >&6; }
42042 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42043   $as_echo_n "(cached) " >&6
42044 else
42045   cat >conftest.$ac_ext <<_ACEOF
42046 /* confdefs.h.  */
42047 _ACEOF
42048 cat confdefs.h >>conftest.$ac_ext
42049 cat >>conftest.$ac_ext <<_ACEOF
42050 /* end confdefs.h.  */
42051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42052    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42053 #define $ac_func innocuous_$ac_func
42054
42055 /* System header to define __stub macros and hopefully few prototypes,
42056     which can conflict with char $ac_func (); below.
42057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42058     <limits.h> exists even on freestanding compilers.  */
42059
42060 #ifdef __STDC__
42061 # include <limits.h>
42062 #else
42063 # include <assert.h>
42064 #endif
42065
42066 #undef $ac_func
42067
42068 /* Override any GCC internal prototype to avoid an error.
42069    Use char because int might match the return type of a GCC
42070    builtin and then its argument prototype would still apply.  */
42071 #ifdef __cplusplus
42072 extern "C"
42073 #endif
42074 char $ac_func ();
42075 /* The GNU C library defines this for functions which it implements
42076     to always fail with ENOSYS.  Some functions are actually named
42077     something starting with __ and the normal name is an alias.  */
42078 #if defined __stub_$ac_func || defined __stub___$ac_func
42079 choke me
42080 #endif
42081
42082 int
42083 main ()
42084 {
42085 return $ac_func ();
42086   ;
42087   return 0;
42088 }
42089 _ACEOF
42090 rm -f conftest.$ac_objext conftest$ac_exeext
42091 if { (ac_try="$ac_link"
42092 case "(($ac_try" in
42093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42094   *) ac_try_echo=$ac_try;;
42095 esac
42096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42097 $as_echo "$ac_try_echo") >&5
42098   (eval "$ac_link") 2>conftest.er1
42099   ac_status=$?
42100   grep -v '^ *+' conftest.er1 >conftest.err
42101   rm -f conftest.er1
42102   cat conftest.err >&5
42103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42104   (exit $ac_status); } && {
42105          test -z "$ac_c_werror_flag" ||
42106          test ! -s conftest.err
42107        } && test -s conftest$ac_exeext &&
42108        $as_test_x conftest$ac_exeext; then
42109   eval "$as_ac_var=yes"
42110 else
42111   $as_echo "$as_me: failed program was:" >&5
42112 sed 's/^/| /' conftest.$ac_ext >&5
42113
42114         eval "$as_ac_var=no"
42115 fi
42116
42117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42118       conftest$ac_exeext conftest.$ac_ext
42119 fi
42120 ac_res=`eval 'as_val=${'$as_ac_var'}
42121                  $as_echo "$as_val"'`
42122                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42123 $as_echo "$ac_res" >&6; }
42124 if test `eval 'as_val=${'$as_ac_var'}
42125                  $as_echo "$as_val"'` = yes; then
42126   cat >>confdefs.h <<_ACEOF
42127 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42128 _ACEOF
42129
42130 else
42131   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
42132 fi
42133 done
42134
42135
42136
42137
42138   if test "$ac_cv_type_long_long_int" = yes; then
42139
42140 for ac_func in strtoll
42141 do
42142 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42143 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42144 $as_echo_n "checking for $ac_func... " >&6; }
42145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42146   $as_echo_n "(cached) " >&6
42147 else
42148   cat >conftest.$ac_ext <<_ACEOF
42149 /* confdefs.h.  */
42150 _ACEOF
42151 cat confdefs.h >>conftest.$ac_ext
42152 cat >>conftest.$ac_ext <<_ACEOF
42153 /* end confdefs.h.  */
42154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42155    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42156 #define $ac_func innocuous_$ac_func
42157
42158 /* System header to define __stub macros and hopefully few prototypes,
42159     which can conflict with char $ac_func (); below.
42160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42161     <limits.h> exists even on freestanding compilers.  */
42162
42163 #ifdef __STDC__
42164 # include <limits.h>
42165 #else
42166 # include <assert.h>
42167 #endif
42168
42169 #undef $ac_func
42170
42171 /* Override any GCC internal prototype to avoid an error.
42172    Use char because int might match the return type of a GCC
42173    builtin and then its argument prototype would still apply.  */
42174 #ifdef __cplusplus
42175 extern "C"
42176 #endif
42177 char $ac_func ();
42178 /* The GNU C library defines this for functions which it implements
42179     to always fail with ENOSYS.  Some functions are actually named
42180     something starting with __ and the normal name is an alias.  */
42181 #if defined __stub_$ac_func || defined __stub___$ac_func
42182 choke me
42183 #endif
42184
42185 int
42186 main ()
42187 {
42188 return $ac_func ();
42189   ;
42190   return 0;
42191 }
42192 _ACEOF
42193 rm -f conftest.$ac_objext conftest$ac_exeext
42194 if { (ac_try="$ac_link"
42195 case "(($ac_try" in
42196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42197   *) ac_try_echo=$ac_try;;
42198 esac
42199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42200 $as_echo "$ac_try_echo") >&5
42201   (eval "$ac_link") 2>conftest.er1
42202   ac_status=$?
42203   grep -v '^ *+' conftest.er1 >conftest.err
42204   rm -f conftest.er1
42205   cat conftest.err >&5
42206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42207   (exit $ac_status); } && {
42208          test -z "$ac_c_werror_flag" ||
42209          test ! -s conftest.err
42210        } && test -s conftest$ac_exeext &&
42211        $as_test_x conftest$ac_exeext; then
42212   eval "$as_ac_var=yes"
42213 else
42214   $as_echo "$as_me: failed program was:" >&5
42215 sed 's/^/| /' conftest.$ac_ext >&5
42216
42217         eval "$as_ac_var=no"
42218 fi
42219
42220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42221       conftest$ac_exeext conftest.$ac_ext
42222 fi
42223 ac_res=`eval 'as_val=${'$as_ac_var'}
42224                  $as_echo "$as_val"'`
42225                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42226 $as_echo "$ac_res" >&6; }
42227 if test `eval 'as_val=${'$as_ac_var'}
42228                  $as_echo "$as_val"'` = yes; then
42229   cat >>confdefs.h <<_ACEOF
42230 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42231 _ACEOF
42232
42233 else
42234   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
42235 fi
42236 done
42237
42238     if test $ac_cv_func_strtoll = no; then
42239
42240   :
42241
42242     fi
42243   fi
42244
42245
42246
42247 for ac_func in strtoul
42248 do
42249 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42250 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42251 $as_echo_n "checking for $ac_func... " >&6; }
42252 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42253   $as_echo_n "(cached) " >&6
42254 else
42255   cat >conftest.$ac_ext <<_ACEOF
42256 /* confdefs.h.  */
42257 _ACEOF
42258 cat confdefs.h >>conftest.$ac_ext
42259 cat >>conftest.$ac_ext <<_ACEOF
42260 /* end confdefs.h.  */
42261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42262    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42263 #define $ac_func innocuous_$ac_func
42264
42265 /* System header to define __stub macros and hopefully few prototypes,
42266     which can conflict with char $ac_func (); below.
42267     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42268     <limits.h> exists even on freestanding compilers.  */
42269
42270 #ifdef __STDC__
42271 # include <limits.h>
42272 #else
42273 # include <assert.h>
42274 #endif
42275
42276 #undef $ac_func
42277
42278 /* Override any GCC internal prototype to avoid an error.
42279    Use char because int might match the return type of a GCC
42280    builtin and then its argument prototype would still apply.  */
42281 #ifdef __cplusplus
42282 extern "C"
42283 #endif
42284 char $ac_func ();
42285 /* The GNU C library defines this for functions which it implements
42286     to always fail with ENOSYS.  Some functions are actually named
42287     something starting with __ and the normal name is an alias.  */
42288 #if defined __stub_$ac_func || defined __stub___$ac_func
42289 choke me
42290 #endif
42291
42292 int
42293 main ()
42294 {
42295 return $ac_func ();
42296   ;
42297   return 0;
42298 }
42299 _ACEOF
42300 rm -f conftest.$ac_objext conftest$ac_exeext
42301 if { (ac_try="$ac_link"
42302 case "(($ac_try" in
42303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42304   *) ac_try_echo=$ac_try;;
42305 esac
42306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42307 $as_echo "$ac_try_echo") >&5
42308   (eval "$ac_link") 2>conftest.er1
42309   ac_status=$?
42310   grep -v '^ *+' conftest.er1 >conftest.err
42311   rm -f conftest.er1
42312   cat conftest.err >&5
42313   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42314   (exit $ac_status); } && {
42315          test -z "$ac_c_werror_flag" ||
42316          test ! -s conftest.err
42317        } && test -s conftest$ac_exeext &&
42318        $as_test_x conftest$ac_exeext; then
42319   eval "$as_ac_var=yes"
42320 else
42321   $as_echo "$as_me: failed program was:" >&5
42322 sed 's/^/| /' conftest.$ac_ext >&5
42323
42324         eval "$as_ac_var=no"
42325 fi
42326
42327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42328       conftest$ac_exeext conftest.$ac_ext
42329 fi
42330 ac_res=`eval 'as_val=${'$as_ac_var'}
42331                  $as_echo "$as_val"'`
42332                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42333 $as_echo "$ac_res" >&6; }
42334 if test `eval 'as_val=${'$as_ac_var'}
42335                  $as_echo "$as_val"'` = yes; then
42336   cat >>confdefs.h <<_ACEOF
42337 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42338 _ACEOF
42339
42340 else
42341   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
42342 fi
42343 done
42344
42345
42346
42347
42348   if test "$ac_cv_type_unsigned_long_long_int" = yes; then
42349
42350 for ac_func in strtoull
42351 do
42352 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42353 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42354 $as_echo_n "checking for $ac_func... " >&6; }
42355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42356   $as_echo_n "(cached) " >&6
42357 else
42358   cat >conftest.$ac_ext <<_ACEOF
42359 /* confdefs.h.  */
42360 _ACEOF
42361 cat confdefs.h >>conftest.$ac_ext
42362 cat >>conftest.$ac_ext <<_ACEOF
42363 /* end confdefs.h.  */
42364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42366 #define $ac_func innocuous_$ac_func
42367
42368 /* System header to define __stub macros and hopefully few prototypes,
42369     which can conflict with char $ac_func (); below.
42370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42371     <limits.h> exists even on freestanding compilers.  */
42372
42373 #ifdef __STDC__
42374 # include <limits.h>
42375 #else
42376 # include <assert.h>
42377 #endif
42378
42379 #undef $ac_func
42380
42381 /* Override any GCC internal prototype to avoid an error.
42382    Use char because int might match the return type of a GCC
42383    builtin and then its argument prototype would still apply.  */
42384 #ifdef __cplusplus
42385 extern "C"
42386 #endif
42387 char $ac_func ();
42388 /* The GNU C library defines this for functions which it implements
42389     to always fail with ENOSYS.  Some functions are actually named
42390     something starting with __ and the normal name is an alias.  */
42391 #if defined __stub_$ac_func || defined __stub___$ac_func
42392 choke me
42393 #endif
42394
42395 int
42396 main ()
42397 {
42398 return $ac_func ();
42399   ;
42400   return 0;
42401 }
42402 _ACEOF
42403 rm -f conftest.$ac_objext conftest$ac_exeext
42404 if { (ac_try="$ac_link"
42405 case "(($ac_try" in
42406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42407   *) ac_try_echo=$ac_try;;
42408 esac
42409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42410 $as_echo "$ac_try_echo") >&5
42411   (eval "$ac_link") 2>conftest.er1
42412   ac_status=$?
42413   grep -v '^ *+' conftest.er1 >conftest.err
42414   rm -f conftest.er1
42415   cat conftest.err >&5
42416   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42417   (exit $ac_status); } && {
42418          test -z "$ac_c_werror_flag" ||
42419          test ! -s conftest.err
42420        } && test -s conftest$ac_exeext &&
42421        $as_test_x conftest$ac_exeext; then
42422   eval "$as_ac_var=yes"
42423 else
42424   $as_echo "$as_me: failed program was:" >&5
42425 sed 's/^/| /' conftest.$ac_ext >&5
42426
42427         eval "$as_ac_var=no"
42428 fi
42429
42430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42431       conftest$ac_exeext conftest.$ac_ext
42432 fi
42433 ac_res=`eval 'as_val=${'$as_ac_var'}
42434                  $as_echo "$as_val"'`
42435                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42436 $as_echo "$ac_res" >&6; }
42437 if test `eval 'as_val=${'$as_ac_var'}
42438                  $as_echo "$as_val"'` = yes; then
42439   cat >>confdefs.h <<_ACEOF
42440 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42441 _ACEOF
42442
42443 else
42444   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
42445 fi
42446 done
42447
42448     if test $ac_cv_func_strtoull = no; then
42449
42450   :
42451
42452     fi
42453   fi
42454
42455
42456
42457
42458
42459   { $as_echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
42460 $as_echo_n "checking whether <inttypes.h> defines strtoumax as a macro... " >&6; }
42461 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
42462   $as_echo_n "(cached) " >&6
42463 else
42464   cat >conftest.$ac_ext <<_ACEOF
42465 /* confdefs.h.  */
42466 _ACEOF
42467 cat confdefs.h >>conftest.$ac_ext
42468 cat >>conftest.$ac_ext <<_ACEOF
42469 /* end confdefs.h.  */
42470 #include <inttypes.h>
42471 #ifdef strtoumax
42472  inttypes_h_defines_strtoumax
42473 #endif
42474 _ACEOF
42475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42476   $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
42477   jm_cv_func_strtoumax_macro=yes
42478 else
42479   jm_cv_func_strtoumax_macro=no
42480 fi
42481 rm -f conftest*
42482
42483 fi
42484 { $as_echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
42485 $as_echo "$jm_cv_func_strtoumax_macro" >&6; }
42486
42487   if test "$jm_cv_func_strtoumax_macro" != yes; then
42488
42489 for ac_func in strtoumax
42490 do
42491 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42492 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42493 $as_echo_n "checking for $ac_func... " >&6; }
42494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42495   $as_echo_n "(cached) " >&6
42496 else
42497   cat >conftest.$ac_ext <<_ACEOF
42498 /* confdefs.h.  */
42499 _ACEOF
42500 cat confdefs.h >>conftest.$ac_ext
42501 cat >>conftest.$ac_ext <<_ACEOF
42502 /* end confdefs.h.  */
42503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42505 #define $ac_func innocuous_$ac_func
42506
42507 /* System header to define __stub macros and hopefully few prototypes,
42508     which can conflict with char $ac_func (); below.
42509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42510     <limits.h> exists even on freestanding compilers.  */
42511
42512 #ifdef __STDC__
42513 # include <limits.h>
42514 #else
42515 # include <assert.h>
42516 #endif
42517
42518 #undef $ac_func
42519
42520 /* Override any GCC internal prototype to avoid an error.
42521    Use char because int might match the return type of a GCC
42522    builtin and then its argument prototype would still apply.  */
42523 #ifdef __cplusplus
42524 extern "C"
42525 #endif
42526 char $ac_func ();
42527 /* The GNU C library defines this for functions which it implements
42528     to always fail with ENOSYS.  Some functions are actually named
42529     something starting with __ and the normal name is an alias.  */
42530 #if defined __stub_$ac_func || defined __stub___$ac_func
42531 choke me
42532 #endif
42533
42534 int
42535 main ()
42536 {
42537 return $ac_func ();
42538   ;
42539   return 0;
42540 }
42541 _ACEOF
42542 rm -f conftest.$ac_objext conftest$ac_exeext
42543 if { (ac_try="$ac_link"
42544 case "(($ac_try" in
42545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42546   *) ac_try_echo=$ac_try;;
42547 esac
42548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42549 $as_echo "$ac_try_echo") >&5
42550   (eval "$ac_link") 2>conftest.er1
42551   ac_status=$?
42552   grep -v '^ *+' conftest.er1 >conftest.err
42553   rm -f conftest.er1
42554   cat conftest.err >&5
42555   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42556   (exit $ac_status); } && {
42557          test -z "$ac_c_werror_flag" ||
42558          test ! -s conftest.err
42559        } && test -s conftest$ac_exeext &&
42560        $as_test_x conftest$ac_exeext; then
42561   eval "$as_ac_var=yes"
42562 else
42563   $as_echo "$as_me: failed program was:" >&5
42564 sed 's/^/| /' conftest.$ac_ext >&5
42565
42566         eval "$as_ac_var=no"
42567 fi
42568
42569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42570       conftest$ac_exeext conftest.$ac_ext
42571 fi
42572 ac_res=`eval 'as_val=${'$as_ac_var'}
42573                  $as_echo "$as_val"'`
42574                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42575 $as_echo "$ac_res" >&6; }
42576 if test `eval 'as_val=${'$as_ac_var'}
42577                  $as_echo "$as_val"'` = yes; then
42578   cat >>confdefs.h <<_ACEOF
42579 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42580 _ACEOF
42581
42582 else
42583   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
42584 fi
42585 done
42586
42587     if test $ac_cv_func_strtoumax = no; then
42588
42589   { $as_echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
42590 $as_echo_n "checking whether strtoull is declared... " >&6; }
42591 if test "${ac_cv_have_decl_strtoull+set}" = set; then
42592   $as_echo_n "(cached) " >&6
42593 else
42594   cat >conftest.$ac_ext <<_ACEOF
42595 /* confdefs.h.  */
42596 _ACEOF
42597 cat confdefs.h >>conftest.$ac_ext
42598 cat >>conftest.$ac_ext <<_ACEOF
42599 /* end confdefs.h.  */
42600 $ac_includes_default
42601 int
42602 main ()
42603 {
42604 #ifndef strtoull
42605   (void) strtoull;
42606 #endif
42607
42608   ;
42609   return 0;
42610 }
42611 _ACEOF
42612 rm -f conftest.$ac_objext
42613 if { (ac_try="$ac_compile"
42614 case "(($ac_try" in
42615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42616   *) ac_try_echo=$ac_try;;
42617 esac
42618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42619 $as_echo "$ac_try_echo") >&5
42620   (eval "$ac_compile") 2>conftest.er1
42621   ac_status=$?
42622   grep -v '^ *+' conftest.er1 >conftest.err
42623   rm -f conftest.er1
42624   cat conftest.err >&5
42625   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42626   (exit $ac_status); } && {
42627          test -z "$ac_c_werror_flag" ||
42628          test ! -s conftest.err
42629        } && test -s conftest.$ac_objext; then
42630   ac_cv_have_decl_strtoull=yes
42631 else
42632   $as_echo "$as_me: failed program was:" >&5
42633 sed 's/^/| /' conftest.$ac_ext >&5
42634
42635         ac_cv_have_decl_strtoull=no
42636 fi
42637
42638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42639 fi
42640 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
42641 $as_echo "$ac_cv_have_decl_strtoull" >&6; }
42642 if test $ac_cv_have_decl_strtoull = yes; then
42643
42644 cat >>confdefs.h <<_ACEOF
42645 #define HAVE_DECL_STRTOULL 1
42646 _ACEOF
42647
42648
42649 else
42650   cat >>confdefs.h <<_ACEOF
42651 #define HAVE_DECL_STRTOULL 0
42652 _ACEOF
42653
42654
42655 fi
42656
42657
42658
42659
42660     fi
42661   fi
42662
42663
42664
42665   GNULIB_STRTOUMAX=1
42666
42667
42668
42669
42670
42671 for ac_func in strverscmp
42672 do
42673 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42674 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42675 $as_echo_n "checking for $ac_func... " >&6; }
42676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42677   $as_echo_n "(cached) " >&6
42678 else
42679   cat >conftest.$ac_ext <<_ACEOF
42680 /* confdefs.h.  */
42681 _ACEOF
42682 cat confdefs.h >>conftest.$ac_ext
42683 cat >>conftest.$ac_ext <<_ACEOF
42684 /* end confdefs.h.  */
42685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42686    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42687 #define $ac_func innocuous_$ac_func
42688
42689 /* System header to define __stub macros and hopefully few prototypes,
42690     which can conflict with char $ac_func (); below.
42691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42692     <limits.h> exists even on freestanding compilers.  */
42693
42694 #ifdef __STDC__
42695 # include <limits.h>
42696 #else
42697 # include <assert.h>
42698 #endif
42699
42700 #undef $ac_func
42701
42702 /* Override any GCC internal prototype to avoid an error.
42703    Use char because int might match the return type of a GCC
42704    builtin and then its argument prototype would still apply.  */
42705 #ifdef __cplusplus
42706 extern "C"
42707 #endif
42708 char $ac_func ();
42709 /* The GNU C library defines this for functions which it implements
42710     to always fail with ENOSYS.  Some functions are actually named
42711     something starting with __ and the normal name is an alias.  */
42712 #if defined __stub_$ac_func || defined __stub___$ac_func
42713 choke me
42714 #endif
42715
42716 int
42717 main ()
42718 {
42719 return $ac_func ();
42720   ;
42721   return 0;
42722 }
42723 _ACEOF
42724 rm -f conftest.$ac_objext conftest$ac_exeext
42725 if { (ac_try="$ac_link"
42726 case "(($ac_try" in
42727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42728   *) ac_try_echo=$ac_try;;
42729 esac
42730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42731 $as_echo "$ac_try_echo") >&5
42732   (eval "$ac_link") 2>conftest.er1
42733   ac_status=$?
42734   grep -v '^ *+' conftest.er1 >conftest.err
42735   rm -f conftest.er1
42736   cat conftest.err >&5
42737   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42738   (exit $ac_status); } && {
42739          test -z "$ac_c_werror_flag" ||
42740          test ! -s conftest.err
42741        } && test -s conftest$ac_exeext &&
42742        $as_test_x conftest$ac_exeext; then
42743   eval "$as_ac_var=yes"
42744 else
42745   $as_echo "$as_me: failed program was:" >&5
42746 sed 's/^/| /' conftest.$ac_ext >&5
42747
42748         eval "$as_ac_var=no"
42749 fi
42750
42751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42752       conftest$ac_exeext conftest.$ac_ext
42753 fi
42754 ac_res=`eval 'as_val=${'$as_ac_var'}
42755                  $as_echo "$as_val"'`
42756                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42757 $as_echo "$ac_res" >&6; }
42758 if test `eval 'as_val=${'$as_ac_var'}
42759                  $as_echo "$as_val"'` = yes; then
42760   cat >>confdefs.h <<_ACEOF
42761 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42762 _ACEOF
42763
42764 else
42765   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
42766 fi
42767 done
42768
42769   if test $ac_cv_func_strverscmp = no; then
42770
42771   :
42772
42773   fi
42774
42775
42776   { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
42777 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
42778 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
42779   $as_echo_n "(cached) " >&6
42780 else
42781
42782       cat >conftest.$ac_ext <<_ACEOF
42783 /* confdefs.h.  */
42784 _ACEOF
42785 cat confdefs.h >>conftest.$ac_ext
42786 cat >>conftest.$ac_ext <<_ACEOF
42787 /* end confdefs.h.  */
42788 #include <sys/socket.h>
42789 int
42790 main ()
42791 {
42792
42793   ;
42794   return 0;
42795 }
42796 _ACEOF
42797 rm -f conftest.$ac_objext
42798 if { (ac_try="$ac_compile"
42799 case "(($ac_try" in
42800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42801   *) ac_try_echo=$ac_try;;
42802 esac
42803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42804 $as_echo "$ac_try_echo") >&5
42805   (eval "$ac_compile") 2>conftest.er1
42806   ac_status=$?
42807   grep -v '^ *+' conftest.er1 >conftest.err
42808   rm -f conftest.er1
42809   cat conftest.err >&5
42810   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42811   (exit $ac_status); } && {
42812          test -z "$ac_c_werror_flag" ||
42813          test ! -s conftest.err
42814        } && test -s conftest.$ac_objext; then
42815   gl_cv_header_sys_socket_h_selfcontained=yes
42816 else
42817   $as_echo "$as_me: failed program was:" >&5
42818 sed 's/^/| /' conftest.$ac_ext >&5
42819
42820         gl_cv_header_sys_socket_h_selfcontained=no
42821 fi
42822
42823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42824
42825 fi
42826 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
42827 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
42828   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
42829     SYS_SOCKET_H=''
42830   else
42831     SYS_SOCKET_H='sys/socket.h'
42832
42833
42834 for ac_header in sys/socket.h
42835 do
42836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42838   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42839 $as_echo_n "checking for $ac_header... " >&6; }
42840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42841   $as_echo_n "(cached) " >&6
42842 fi
42843 ac_res=`eval 'as_val=${'$as_ac_Header'}
42844                  $as_echo "$as_val"'`
42845                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42846 $as_echo "$ac_res" >&6; }
42847 else
42848   # Is the header compilable?
42849 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
42850 $as_echo_n "checking $ac_header usability... " >&6; }
42851 cat >conftest.$ac_ext <<_ACEOF
42852 /* confdefs.h.  */
42853 _ACEOF
42854 cat confdefs.h >>conftest.$ac_ext
42855 cat >>conftest.$ac_ext <<_ACEOF
42856 /* end confdefs.h.  */
42857 $ac_includes_default
42858 #include <$ac_header>
42859 _ACEOF
42860 rm -f conftest.$ac_objext
42861 if { (ac_try="$ac_compile"
42862 case "(($ac_try" in
42863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42864   *) ac_try_echo=$ac_try;;
42865 esac
42866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42867 $as_echo "$ac_try_echo") >&5
42868   (eval "$ac_compile") 2>conftest.er1
42869   ac_status=$?
42870   grep -v '^ *+' conftest.er1 >conftest.err
42871   rm -f conftest.er1
42872   cat conftest.err >&5
42873   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42874   (exit $ac_status); } && {
42875          test -z "$ac_c_werror_flag" ||
42876          test ! -s conftest.err
42877        } && test -s conftest.$ac_objext; then
42878   ac_header_compiler=yes
42879 else
42880   $as_echo "$as_me: failed program was:" >&5
42881 sed 's/^/| /' conftest.$ac_ext >&5
42882
42883         ac_header_compiler=no
42884 fi
42885
42886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42887 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42888 $as_echo "$ac_header_compiler" >&6; }
42889
42890 # Is the header present?
42891 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
42892 $as_echo_n "checking $ac_header presence... " >&6; }
42893 cat >conftest.$ac_ext <<_ACEOF
42894 /* confdefs.h.  */
42895 _ACEOF
42896 cat confdefs.h >>conftest.$ac_ext
42897 cat >>conftest.$ac_ext <<_ACEOF
42898 /* end confdefs.h.  */
42899 #include <$ac_header>
42900 _ACEOF
42901 if { (ac_try="$ac_cpp conftest.$ac_ext"
42902 case "(($ac_try" in
42903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42904   *) ac_try_echo=$ac_try;;
42905 esac
42906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42907 $as_echo "$ac_try_echo") >&5
42908   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42909   ac_status=$?
42910   grep -v '^ *+' conftest.er1 >conftest.err
42911   rm -f conftest.er1
42912   cat conftest.err >&5
42913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42914   (exit $ac_status); } >/dev/null && {
42915          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42916          test ! -s conftest.err
42917        }; then
42918   ac_header_preproc=yes
42919 else
42920   $as_echo "$as_me: failed program was:" >&5
42921 sed 's/^/| /' conftest.$ac_ext >&5
42922
42923   ac_header_preproc=no
42924 fi
42925
42926 rm -f conftest.err conftest.$ac_ext
42927 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42928 $as_echo "$ac_header_preproc" >&6; }
42929
42930 # So?  What about this header?
42931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42932   yes:no: )
42933     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42934 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42935     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42936 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42937     ac_header_preproc=yes
42938     ;;
42939   no:yes:* )
42940     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42941 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42942     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
42943 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
42944     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42945 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42946     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
42947 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
42948     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42949 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42950     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42951 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42952     ( cat <<\_ASBOX
42953 ## ------------------------------------ ##
42954 ## Report this to bug-coreutils@gnu.org ##
42955 ## ------------------------------------ ##
42956 _ASBOX
42957      ) | sed "s/^/$as_me: WARNING:     /" >&2
42958     ;;
42959 esac
42960 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42961 $as_echo_n "checking for $ac_header... " >&6; }
42962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42963   $as_echo_n "(cached) " >&6
42964 else
42965   eval "$as_ac_Header=\$ac_header_preproc"
42966 fi
42967 ac_res=`eval 'as_val=${'$as_ac_Header'}
42968                  $as_echo "$as_val"'`
42969                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42970 $as_echo "$ac_res" >&6; }
42971
42972 fi
42973 if test `eval 'as_val=${'$as_ac_Header'}
42974                  $as_echo "$as_val"'` = yes; then
42975   cat >>confdefs.h <<_ACEOF
42976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42977 _ACEOF
42978
42979 fi
42980
42981 done
42982
42983       { $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
42984 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
42985 if test "${gl_cv_absolute_sys_socket_h+set}" = set; then
42986   $as_echo_n "(cached) " >&6
42987 else
42988
42989
42990
42991
42992
42993     if test $ac_cv_header_sys_socket_h = yes; then
42994       cat >conftest.$ac_ext <<_ACEOF
42995 /* confdefs.h.  */
42996 _ACEOF
42997 cat confdefs.h >>conftest.$ac_ext
42998 cat >>conftest.$ac_ext <<_ACEOF
42999 /* end confdefs.h.  */
43000 #include <sys/socket.h>
43001 _ACEOF
43002       gl_cv_absolute_sys_socket_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43003 sed -n '\#/sys/socket.h#{s#.*"\(.*/sys/socket.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
43004     fi
43005
43006 fi
43007 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_sys_socket_h" >&5
43008 $as_echo "$gl_cv_absolute_sys_socket_h" >&6; }
43009 cat >>confdefs.h <<_ACEOF
43010 #define ABSOLUTE_SYS_SOCKET_H "$gl_cv_absolute_sys_socket_h"
43011 _ACEOF
43012
43013
43014     ABSOLUTE_SYS_SOCKET_H=\"$gl_cv_absolute_sys_socket_h\"
43015
43016     if test $ac_cv_header_sys_socket_h = yes; then
43017       HAVE_SYS_SOCKET_H=1
43018       HAVE_WINSOCK2_H=0
43019       HAVE_WS2TCPIP_H=0
43020     else
43021       HAVE_SYS_SOCKET_H=0
43022
43023
43024 for ac_header in winsock2.h ws2tcpip.h
43025 do
43026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43028   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43029 $as_echo_n "checking for $ac_header... " >&6; }
43030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43031   $as_echo_n "(cached) " >&6
43032 fi
43033 ac_res=`eval 'as_val=${'$as_ac_Header'}
43034                  $as_echo "$as_val"'`
43035                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43036 $as_echo "$ac_res" >&6; }
43037 else
43038   # Is the header compilable?
43039 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
43040 $as_echo_n "checking $ac_header usability... " >&6; }
43041 cat >conftest.$ac_ext <<_ACEOF
43042 /* confdefs.h.  */
43043 _ACEOF
43044 cat confdefs.h >>conftest.$ac_ext
43045 cat >>conftest.$ac_ext <<_ACEOF
43046 /* end confdefs.h.  */
43047 $ac_includes_default
43048 #include <$ac_header>
43049 _ACEOF
43050 rm -f conftest.$ac_objext
43051 if { (ac_try="$ac_compile"
43052 case "(($ac_try" in
43053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43054   *) ac_try_echo=$ac_try;;
43055 esac
43056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43057 $as_echo "$ac_try_echo") >&5
43058   (eval "$ac_compile") 2>conftest.er1
43059   ac_status=$?
43060   grep -v '^ *+' conftest.er1 >conftest.err
43061   rm -f conftest.er1
43062   cat conftest.err >&5
43063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43064   (exit $ac_status); } && {
43065          test -z "$ac_c_werror_flag" ||
43066          test ! -s conftest.err
43067        } && test -s conftest.$ac_objext; then
43068   ac_header_compiler=yes
43069 else
43070   $as_echo "$as_me: failed program was:" >&5
43071 sed 's/^/| /' conftest.$ac_ext >&5
43072
43073         ac_header_compiler=no
43074 fi
43075
43076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43077 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43078 $as_echo "$ac_header_compiler" >&6; }
43079
43080 # Is the header present?
43081 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
43082 $as_echo_n "checking $ac_header presence... " >&6; }
43083 cat >conftest.$ac_ext <<_ACEOF
43084 /* confdefs.h.  */
43085 _ACEOF
43086 cat confdefs.h >>conftest.$ac_ext
43087 cat >>conftest.$ac_ext <<_ACEOF
43088 /* end confdefs.h.  */
43089 #include <$ac_header>
43090 _ACEOF
43091 if { (ac_try="$ac_cpp conftest.$ac_ext"
43092 case "(($ac_try" in
43093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43094   *) ac_try_echo=$ac_try;;
43095 esac
43096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43097 $as_echo "$ac_try_echo") >&5
43098   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43099   ac_status=$?
43100   grep -v '^ *+' conftest.er1 >conftest.err
43101   rm -f conftest.er1
43102   cat conftest.err >&5
43103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43104   (exit $ac_status); } >/dev/null && {
43105          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43106          test ! -s conftest.err
43107        }; then
43108   ac_header_preproc=yes
43109 else
43110   $as_echo "$as_me: failed program was:" >&5
43111 sed 's/^/| /' conftest.$ac_ext >&5
43112
43113   ac_header_preproc=no
43114 fi
43115
43116 rm -f conftest.err conftest.$ac_ext
43117 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43118 $as_echo "$ac_header_preproc" >&6; }
43119
43120 # So?  What about this header?
43121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43122   yes:no: )
43123     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43124 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43125     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43126 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43127     ac_header_preproc=yes
43128     ;;
43129   no:yes:* )
43130     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43131 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43132     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43133 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43134     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43135 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43136     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43137 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43138     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43139 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43140     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43141 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43142     ( cat <<\_ASBOX
43143 ## ------------------------------------ ##
43144 ## Report this to bug-coreutils@gnu.org ##
43145 ## ------------------------------------ ##
43146 _ASBOX
43147      ) | sed "s/^/$as_me: WARNING:     /" >&2
43148     ;;
43149 esac
43150 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43151 $as_echo_n "checking for $ac_header... " >&6; }
43152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43153   $as_echo_n "(cached) " >&6
43154 else
43155   eval "$as_ac_Header=\$ac_header_preproc"
43156 fi
43157 ac_res=`eval 'as_val=${'$as_ac_Header'}
43158                  $as_echo "$as_val"'`
43159                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43160 $as_echo "$ac_res" >&6; }
43161
43162 fi
43163 if test `eval 'as_val=${'$as_ac_Header'}
43164                  $as_echo "$as_val"'` = yes; then
43165   cat >>confdefs.h <<_ACEOF
43166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43167 _ACEOF
43168
43169 fi
43170
43171 done
43172
43173       if test $ac_cv_header_winsock2_h = yes; then
43174         HAVE_WINSOCK2_H=1
43175       else
43176         HAVE_WINSOCK2_H=0
43177       fi
43178       if test $ac_cv_header_ws2tcpip_h = yes; then
43179         HAVE_WS2TCPIP_H=1
43180       else
43181         HAVE_WS2TCPIP_H=0
43182       fi
43183     fi
43184
43185
43186
43187   fi
43188
43189
43190   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
43191 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
43192 if test -z "$MKDIR_P"; then
43193   if test "${ac_cv_path_mkdir+set}" = set; then
43194   $as_echo_n "(cached) " >&6
43195 else
43196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43197 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
43198 do
43199   IFS=$as_save_IFS
43200   test -z "$as_dir" && as_dir=.
43201   for ac_prog in mkdir gmkdir; do
43202          for ac_exec_ext in '' $ac_executable_extensions; do
43203            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
43204            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
43205              'mkdir (GNU coreutils) '* | \
43206              'mkdir (coreutils) '* | \
43207              'mkdir (fileutils) '4.1*)
43208                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
43209                break 3;;
43210            esac
43211          done
43212        done
43213 done
43214 IFS=$as_save_IFS
43215
43216 fi
43217
43218   if test "${ac_cv_path_mkdir+set}" = set; then
43219     MKDIR_P="$ac_cv_path_mkdir -p"
43220   else
43221     # As a last resort, use the slow shell script.  Don't cache a
43222     # value for MKDIR_P within a source directory, because that will
43223     # break other packages using the cache if that directory is
43224     # removed, or if the value is a relative name.
43225     test -d ./--version && rmdir ./--version
43226     MKDIR_P="$ac_install_sh -d"
43227   fi
43228 fi
43229 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
43230 $as_echo "$MKDIR_P" >&6; }
43231
43232
43233
43234
43235
43236
43237
43238
43239
43240       { $as_echo "$as_me:$LINENO: checking whether mkdir is declared" >&5
43241 $as_echo_n "checking whether mkdir is declared... " >&6; }
43242 if test "${ac_cv_have_decl_mkdir+set}" = set; then
43243   $as_echo_n "(cached) " >&6
43244 else
43245   cat >conftest.$ac_ext <<_ACEOF
43246 /* confdefs.h.  */
43247 _ACEOF
43248 cat confdefs.h >>conftest.$ac_ext
43249 cat >>conftest.$ac_ext <<_ACEOF
43250 /* end confdefs.h.  */
43251 #include <sys/stat.h>
43252
43253 int
43254 main ()
43255 {
43256 #ifndef mkdir
43257   (void) mkdir;
43258 #endif
43259
43260   ;
43261   return 0;
43262 }
43263 _ACEOF
43264 rm -f conftest.$ac_objext
43265 if { (ac_try="$ac_compile"
43266 case "(($ac_try" in
43267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43268   *) ac_try_echo=$ac_try;;
43269 esac
43270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43271 $as_echo "$ac_try_echo") >&5
43272   (eval "$ac_compile") 2>conftest.er1
43273   ac_status=$?
43274   grep -v '^ *+' conftest.er1 >conftest.err
43275   rm -f conftest.er1
43276   cat conftest.err >&5
43277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43278   (exit $ac_status); } && {
43279          test -z "$ac_c_werror_flag" ||
43280          test ! -s conftest.err
43281        } && test -s conftest.$ac_objext; then
43282   ac_cv_have_decl_mkdir=yes
43283 else
43284   $as_echo "$as_me: failed program was:" >&5
43285 sed 's/^/| /' conftest.$ac_ext >&5
43286
43287         ac_cv_have_decl_mkdir=no
43288 fi
43289
43290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43291 fi
43292 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_mkdir" >&5
43293 $as_echo "$ac_cv_have_decl_mkdir" >&6; }
43294 if test $ac_cv_have_decl_mkdir = yes; then
43295
43296 cat >>confdefs.h <<_ACEOF
43297 #define HAVE_DECL_MKDIR 1
43298 _ACEOF
43299
43300
43301 else
43302   cat >>confdefs.h <<_ACEOF
43303 #define HAVE_DECL_MKDIR 0
43304 _ACEOF
43305
43306
43307 for ac_header in io.h
43308 do
43309 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43311   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43312 $as_echo_n "checking for $ac_header... " >&6; }
43313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43314   $as_echo_n "(cached) " >&6
43315 fi
43316 ac_res=`eval 'as_val=${'$as_ac_Header'}
43317                  $as_echo "$as_val"'`
43318                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43319 $as_echo "$ac_res" >&6; }
43320 else
43321   # Is the header compilable?
43322 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
43323 $as_echo_n "checking $ac_header usability... " >&6; }
43324 cat >conftest.$ac_ext <<_ACEOF
43325 /* confdefs.h.  */
43326 _ACEOF
43327 cat confdefs.h >>conftest.$ac_ext
43328 cat >>conftest.$ac_ext <<_ACEOF
43329 /* end confdefs.h.  */
43330 $ac_includes_default
43331 #include <$ac_header>
43332 _ACEOF
43333 rm -f conftest.$ac_objext
43334 if { (ac_try="$ac_compile"
43335 case "(($ac_try" in
43336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43337   *) ac_try_echo=$ac_try;;
43338 esac
43339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43340 $as_echo "$ac_try_echo") >&5
43341   (eval "$ac_compile") 2>conftest.er1
43342   ac_status=$?
43343   grep -v '^ *+' conftest.er1 >conftest.err
43344   rm -f conftest.er1
43345   cat conftest.err >&5
43346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43347   (exit $ac_status); } && {
43348          test -z "$ac_c_werror_flag" ||
43349          test ! -s conftest.err
43350        } && test -s conftest.$ac_objext; then
43351   ac_header_compiler=yes
43352 else
43353   $as_echo "$as_me: failed program was:" >&5
43354 sed 's/^/| /' conftest.$ac_ext >&5
43355
43356         ac_header_compiler=no
43357 fi
43358
43359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43360 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43361 $as_echo "$ac_header_compiler" >&6; }
43362
43363 # Is the header present?
43364 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
43365 $as_echo_n "checking $ac_header presence... " >&6; }
43366 cat >conftest.$ac_ext <<_ACEOF
43367 /* confdefs.h.  */
43368 _ACEOF
43369 cat confdefs.h >>conftest.$ac_ext
43370 cat >>conftest.$ac_ext <<_ACEOF
43371 /* end confdefs.h.  */
43372 #include <$ac_header>
43373 _ACEOF
43374 if { (ac_try="$ac_cpp conftest.$ac_ext"
43375 case "(($ac_try" in
43376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43377   *) ac_try_echo=$ac_try;;
43378 esac
43379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43380 $as_echo "$ac_try_echo") >&5
43381   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43382   ac_status=$?
43383   grep -v '^ *+' conftest.er1 >conftest.err
43384   rm -f conftest.er1
43385   cat conftest.err >&5
43386   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43387   (exit $ac_status); } >/dev/null && {
43388          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43389          test ! -s conftest.err
43390        }; then
43391   ac_header_preproc=yes
43392 else
43393   $as_echo "$as_me: failed program was:" >&5
43394 sed 's/^/| /' conftest.$ac_ext >&5
43395
43396   ac_header_preproc=no
43397 fi
43398
43399 rm -f conftest.err conftest.$ac_ext
43400 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43401 $as_echo "$ac_header_preproc" >&6; }
43402
43403 # So?  What about this header?
43404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43405   yes:no: )
43406     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43407 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43408     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43409 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43410     ac_header_preproc=yes
43411     ;;
43412   no:yes:* )
43413     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43414 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43415     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43416 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43417     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43418 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43419     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43420 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43421     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43422 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43423     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43424 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43425     ( cat <<\_ASBOX
43426 ## ------------------------------------ ##
43427 ## Report this to bug-coreutils@gnu.org ##
43428 ## ------------------------------------ ##
43429 _ASBOX
43430      ) | sed "s/^/$as_me: WARNING:     /" >&2
43431     ;;
43432 esac
43433 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43434 $as_echo_n "checking for $ac_header... " >&6; }
43435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43436   $as_echo_n "(cached) " >&6
43437 else
43438   eval "$as_ac_Header=\$ac_header_preproc"
43439 fi
43440 ac_res=`eval 'as_val=${'$as_ac_Header'}
43441                  $as_echo "$as_val"'`
43442                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43443 $as_echo "$ac_res" >&6; }
43444
43445 fi
43446 if test `eval 'as_val=${'$as_ac_Header'}
43447                  $as_echo "$as_val"'` = yes; then
43448   cat >>confdefs.h <<_ACEOF
43449 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43450 _ACEOF
43451
43452 fi
43453
43454 done
43455
43456 fi
43457
43458
43459
43460
43461
43462
43463     { $as_echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
43464 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
43465 if test "${gl_cv_absolute_sys_stat_h+set}" = set; then
43466   $as_echo_n "(cached) " >&6
43467 else
43468
43469
43470
43471
43472
43473     if test $ac_cv_header_sys_stat_h = yes; then
43474       cat >conftest.$ac_ext <<_ACEOF
43475 /* confdefs.h.  */
43476 _ACEOF
43477 cat confdefs.h >>conftest.$ac_ext
43478 cat >>conftest.$ac_ext <<_ACEOF
43479 /* end confdefs.h.  */
43480 #include <sys/stat.h>
43481 _ACEOF
43482       gl_cv_absolute_sys_stat_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43483 sed -n '\#/sys/stat.h#{s#.*"\(.*/sys/stat.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
43484     fi
43485
43486 fi
43487 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_sys_stat_h" >&5
43488 $as_echo "$gl_cv_absolute_sys_stat_h" >&6; }
43489 cat >>confdefs.h <<_ACEOF
43490 #define ABSOLUTE_SYS_STAT_H "$gl_cv_absolute_sys_stat_h"
43491 _ACEOF
43492
43493
43494   ABSOLUTE_SYS_STAT_H=\"$gl_cv_absolute_sys_stat_h\"
43495
43496   SYS_STAT_H='sys/stat.h'
43497
43498
43499   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
43500 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
43501 if test -z "$MKDIR_P"; then
43502   if test "${ac_cv_path_mkdir+set}" = set; then
43503   $as_echo_n "(cached) " >&6
43504 else
43505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43506 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
43507 do
43508   IFS=$as_save_IFS
43509   test -z "$as_dir" && as_dir=.
43510   for ac_prog in mkdir gmkdir; do
43511          for ac_exec_ext in '' $ac_executable_extensions; do
43512            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
43513            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
43514              'mkdir (GNU coreutils) '* | \
43515              'mkdir (coreutils) '* | \
43516              'mkdir (fileutils) '4.1*)
43517                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
43518                break 3;;
43519            esac
43520          done
43521        done
43522 done
43523 IFS=$as_save_IFS
43524
43525 fi
43526
43527   if test "${ac_cv_path_mkdir+set}" = set; then
43528     MKDIR_P="$ac_cv_path_mkdir -p"
43529   else
43530     # As a last resort, use the slow shell script.  Don't cache a
43531     # value for MKDIR_P within a source directory, because that will
43532     # break other packages using the cache if that directory is
43533     # removed, or if the value is a relative name.
43534     test -d ./--version && rmdir ./--version
43535     MKDIR_P="$ac_install_sh -d"
43536   fi
43537 fi
43538 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
43539 $as_echo "$MKDIR_P" >&6; }
43540
43541
43542
43543
43544   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
43545 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
43546 if test -z "$MKDIR_P"; then
43547   if test "${ac_cv_path_mkdir+set}" = set; then
43548   $as_echo_n "(cached) " >&6
43549 else
43550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43551 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
43552 do
43553   IFS=$as_save_IFS
43554   test -z "$as_dir" && as_dir=.
43555   for ac_prog in mkdir gmkdir; do
43556          for ac_exec_ext in '' $ac_executable_extensions; do
43557            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
43558            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
43559              'mkdir (GNU coreutils) '* | \
43560              'mkdir (coreutils) '* | \
43561              'mkdir (fileutils) '4.1*)
43562                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
43563                break 3;;
43564            esac
43565          done
43566        done
43567 done
43568 IFS=$as_save_IFS
43569
43570 fi
43571
43572   if test "${ac_cv_path_mkdir+set}" = set; then
43573     MKDIR_P="$ac_cv_path_mkdir -p"
43574   else
43575     # As a last resort, use the slow shell script.  Don't cache a
43576     # value for MKDIR_P within a source directory, because that will
43577     # break other packages using the cache if that directory is
43578     # removed, or if the value is a relative name.
43579     test -d ./--version && rmdir ./--version
43580     MKDIR_P="$ac_install_sh -d"
43581   fi
43582 fi
43583 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
43584 $as_echo "$MKDIR_P" >&6; }
43585
43586
43587
43588
43589   gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
43590
43591   :
43592
43593
43594
43595
43596
43597
43598
43599
43600
43601
43602
43603   { $as_echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
43604 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
43605 if test "${gl_cv_time_r_posix+set}" = set; then
43606   $as_echo_n "(cached) " >&6
43607 else
43608   cat >conftest.$ac_ext <<_ACEOF
43609 /* confdefs.h.  */
43610 _ACEOF
43611 cat confdefs.h >>conftest.$ac_ext
43612 cat >>conftest.$ac_ext <<_ACEOF
43613 /* end confdefs.h.  */
43614 #include <time.h>
43615 int
43616 main ()
43617 {
43618 /* We don't need to append 'restrict's to the argument types,
43619            even though the POSIX signature has the 'restrict's,
43620            since C99 says they can't affect type compatibility.  */
43621         struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
43622         if (ptr) return 0;
43623   ;
43624   return 0;
43625 }
43626 _ACEOF
43627 rm -f conftest.$ac_objext
43628 if { (ac_try="$ac_compile"
43629 case "(($ac_try" in
43630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43631   *) ac_try_echo=$ac_try;;
43632 esac
43633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43634 $as_echo "$ac_try_echo") >&5
43635   (eval "$ac_compile") 2>conftest.er1
43636   ac_status=$?
43637   grep -v '^ *+' conftest.er1 >conftest.err
43638   rm -f conftest.er1
43639   cat conftest.err >&5
43640   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43641   (exit $ac_status); } && {
43642          test -z "$ac_c_werror_flag" ||
43643          test ! -s conftest.err
43644        } && test -s conftest.$ac_objext; then
43645   gl_cv_time_r_posix=yes
43646 else
43647   $as_echo "$as_me: failed program was:" >&5
43648 sed 's/^/| /' conftest.$ac_ext >&5
43649
43650         gl_cv_time_r_posix=no
43651 fi
43652
43653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43654 fi
43655 { $as_echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
43656 $as_echo "$gl_cv_time_r_posix" >&6; }
43657   if test $gl_cv_time_r_posix = yes; then
43658     REPLACE_LOCALTIME_R=0
43659   else
43660     REPLACE_LOCALTIME_R=1
43661     gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
43662
43663   :
43664
43665   fi
43666
43667
43668
43669
43670
43671
43672   { $as_echo "$as_me:$LINENO: checking whether tzset clobbers localtime buffer" >&5
43673 $as_echo_n "checking whether tzset clobbers localtime buffer... " >&6; }
43674 if test "${gl_cv_func_tzset_clobber+set}" = set; then
43675   $as_echo_n "(cached) " >&6
43676 else
43677
43678   if test "$cross_compiling" = yes; then
43679   gl_cv_func_tzset_clobber=yes
43680 else
43681   cat >conftest.$ac_ext <<_ACEOF
43682 /* confdefs.h.  */
43683 _ACEOF
43684 cat confdefs.h >>conftest.$ac_ext
43685 cat >>conftest.$ac_ext <<_ACEOF
43686 /* end confdefs.h.  */
43687
43688 #include <time.h>
43689 #include <stdlib.h>
43690
43691 int
43692 main ()
43693 {
43694   time_t t1 = 853958121;
43695   struct tm *p, s;
43696   putenv ("TZ=GMT0");
43697   p = localtime (&t1);
43698   s = *p;
43699   putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
43700   tzset ();
43701   return (p->tm_year != s.tm_year
43702           || p->tm_mon != s.tm_mon
43703           || p->tm_mday != s.tm_mday
43704           || p->tm_hour != s.tm_hour
43705           || p->tm_min != s.tm_min
43706           || p->tm_sec != s.tm_sec);
43707 }
43708
43709 _ACEOF
43710 rm -f conftest$ac_exeext
43711 if { (ac_try="$ac_link"
43712 case "(($ac_try" in
43713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43714   *) ac_try_echo=$ac_try;;
43715 esac
43716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43717 $as_echo "$ac_try_echo") >&5
43718   (eval "$ac_link") 2>&5
43719   ac_status=$?
43720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43721   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43722   { (case "(($ac_try" in
43723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43724   *) ac_try_echo=$ac_try;;
43725 esac
43726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43727 $as_echo "$ac_try_echo") >&5
43728   (eval "$ac_try") 2>&5
43729   ac_status=$?
43730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43731   (exit $ac_status); }; }; then
43732   gl_cv_func_tzset_clobber=no
43733 else
43734   $as_echo "$as_me: program exited with status $ac_status" >&5
43735 $as_echo "$as_me: failed program was:" >&5
43736 sed 's/^/| /' conftest.$ac_ext >&5
43737
43738 ( exit $ac_status )
43739 gl_cv_func_tzset_clobber=yes
43740 fi
43741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43742 fi
43743
43744
43745 fi
43746 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_tzset_clobber" >&5
43747 $as_echo "$gl_cv_func_tzset_clobber" >&6; }
43748
43749
43750 cat >>confdefs.h <<\_ACEOF
43751 #define HAVE_RUN_TZSET_TEST 1
43752 _ACEOF
43753
43754
43755   if test $gl_cv_func_tzset_clobber = yes; then
43756
43757   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
43758
43759
43760 for ac_header in sys/timeb.h
43761 do
43762 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43764   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43765 $as_echo_n "checking for $ac_header... " >&6; }
43766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43767   $as_echo_n "(cached) " >&6
43768 fi
43769 ac_res=`eval 'as_val=${'$as_ac_Header'}
43770                  $as_echo "$as_val"'`
43771                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43772 $as_echo "$ac_res" >&6; }
43773 else
43774   # Is the header compilable?
43775 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
43776 $as_echo_n "checking $ac_header usability... " >&6; }
43777 cat >conftest.$ac_ext <<_ACEOF
43778 /* confdefs.h.  */
43779 _ACEOF
43780 cat confdefs.h >>conftest.$ac_ext
43781 cat >>conftest.$ac_ext <<_ACEOF
43782 /* end confdefs.h.  */
43783 $ac_includes_default
43784 #include <$ac_header>
43785 _ACEOF
43786 rm -f conftest.$ac_objext
43787 if { (ac_try="$ac_compile"
43788 case "(($ac_try" in
43789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43790   *) ac_try_echo=$ac_try;;
43791 esac
43792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43793 $as_echo "$ac_try_echo") >&5
43794   (eval "$ac_compile") 2>conftest.er1
43795   ac_status=$?
43796   grep -v '^ *+' conftest.er1 >conftest.err
43797   rm -f conftest.er1
43798   cat conftest.err >&5
43799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43800   (exit $ac_status); } && {
43801          test -z "$ac_c_werror_flag" ||
43802          test ! -s conftest.err
43803        } && test -s conftest.$ac_objext; then
43804   ac_header_compiler=yes
43805 else
43806   $as_echo "$as_me: failed program was:" >&5
43807 sed 's/^/| /' conftest.$ac_ext >&5
43808
43809         ac_header_compiler=no
43810 fi
43811
43812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43813 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43814 $as_echo "$ac_header_compiler" >&6; }
43815
43816 # Is the header present?
43817 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
43818 $as_echo_n "checking $ac_header presence... " >&6; }
43819 cat >conftest.$ac_ext <<_ACEOF
43820 /* confdefs.h.  */
43821 _ACEOF
43822 cat confdefs.h >>conftest.$ac_ext
43823 cat >>conftest.$ac_ext <<_ACEOF
43824 /* end confdefs.h.  */
43825 #include <$ac_header>
43826 _ACEOF
43827 if { (ac_try="$ac_cpp conftest.$ac_ext"
43828 case "(($ac_try" in
43829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43830   *) ac_try_echo=$ac_try;;
43831 esac
43832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43833 $as_echo "$ac_try_echo") >&5
43834   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43835   ac_status=$?
43836   grep -v '^ *+' conftest.er1 >conftest.err
43837   rm -f conftest.er1
43838   cat conftest.err >&5
43839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43840   (exit $ac_status); } >/dev/null && {
43841          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43842          test ! -s conftest.err
43843        }; then
43844   ac_header_preproc=yes
43845 else
43846   $as_echo "$as_me: failed program was:" >&5
43847 sed 's/^/| /' conftest.$ac_ext >&5
43848
43849   ac_header_preproc=no
43850 fi
43851
43852 rm -f conftest.err conftest.$ac_ext
43853 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43854 $as_echo "$ac_header_preproc" >&6; }
43855
43856 # So?  What about this header?
43857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43858   yes:no: )
43859     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43860 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43861     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43862 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43863     ac_header_preproc=yes
43864     ;;
43865   no:yes:* )
43866     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43867 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43868     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43869 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43870     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43871 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43872     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43873 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43874     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43875 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43876     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43877 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43878     ( cat <<\_ASBOX
43879 ## ------------------------------------ ##
43880 ## Report this to bug-coreutils@gnu.org ##
43881 ## ------------------------------------ ##
43882 _ASBOX
43883      ) | sed "s/^/$as_me: WARNING:     /" >&2
43884     ;;
43885 esac
43886 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43887 $as_echo_n "checking for $ac_header... " >&6; }
43888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43889   $as_echo_n "(cached) " >&6
43890 else
43891   eval "$as_ac_Header=\$ac_header_preproc"
43892 fi
43893 ac_res=`eval 'as_val=${'$as_ac_Header'}
43894                  $as_echo "$as_val"'`
43895                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43896 $as_echo "$ac_res" >&6; }
43897
43898 fi
43899 if test `eval 'as_val=${'$as_ac_Header'}
43900                  $as_echo "$as_val"'` = yes; then
43901   cat >>confdefs.h <<_ACEOF
43902 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43903 _ACEOF
43904
43905 fi
43906
43907 done
43908
43909
43910 for ac_func in _ftime
43911 do
43912 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43913 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43914 $as_echo_n "checking for $ac_func... " >&6; }
43915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43916   $as_echo_n "(cached) " >&6
43917 else
43918   cat >conftest.$ac_ext <<_ACEOF
43919 /* confdefs.h.  */
43920 _ACEOF
43921 cat confdefs.h >>conftest.$ac_ext
43922 cat >>conftest.$ac_ext <<_ACEOF
43923 /* end confdefs.h.  */
43924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43925    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43926 #define $ac_func innocuous_$ac_func
43927
43928 /* System header to define __stub macros and hopefully few prototypes,
43929     which can conflict with char $ac_func (); below.
43930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43931     <limits.h> exists even on freestanding compilers.  */
43932
43933 #ifdef __STDC__
43934 # include <limits.h>
43935 #else
43936 # include <assert.h>
43937 #endif
43938
43939 #undef $ac_func
43940
43941 /* Override any GCC internal prototype to avoid an error.
43942    Use char because int might match the return type of a GCC
43943    builtin and then its argument prototype would still apply.  */
43944 #ifdef __cplusplus
43945 extern "C"
43946 #endif
43947 char $ac_func ();
43948 /* The GNU C library defines this for functions which it implements
43949     to always fail with ENOSYS.  Some functions are actually named
43950     something starting with __ and the normal name is an alias.  */
43951 #if defined __stub_$ac_func || defined __stub___$ac_func
43952 choke me
43953 #endif
43954
43955 int
43956 main ()
43957 {
43958 return $ac_func ();
43959   ;
43960   return 0;
43961 }
43962 _ACEOF
43963 rm -f conftest.$ac_objext conftest$ac_exeext
43964 if { (ac_try="$ac_link"
43965 case "(($ac_try" in
43966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43967   *) ac_try_echo=$ac_try;;
43968 esac
43969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43970 $as_echo "$ac_try_echo") >&5
43971   (eval "$ac_link") 2>conftest.er1
43972   ac_status=$?
43973   grep -v '^ *+' conftest.er1 >conftest.err
43974   rm -f conftest.er1
43975   cat conftest.err >&5
43976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43977   (exit $ac_status); } && {
43978          test -z "$ac_c_werror_flag" ||
43979          test ! -s conftest.err
43980        } && test -s conftest$ac_exeext &&
43981        $as_test_x conftest$ac_exeext; then
43982   eval "$as_ac_var=yes"
43983 else
43984   $as_echo "$as_me: failed program was:" >&5
43985 sed 's/^/| /' conftest.$ac_ext >&5
43986
43987         eval "$as_ac_var=no"
43988 fi
43989
43990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43991       conftest$ac_exeext conftest.$ac_ext
43992 fi
43993 ac_res=`eval 'as_val=${'$as_ac_var'}
43994                  $as_echo "$as_val"'`
43995                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43996 $as_echo "$ac_res" >&6; }
43997 if test `eval 'as_val=${'$as_ac_var'}
43998                  $as_echo "$as_val"'` = yes; then
43999   cat >>confdefs.h <<_ACEOF
44000 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44001 _ACEOF
44002
44003 fi
44004 done
44005
44006
44007
44008 cat >>confdefs.h <<\_ACEOF
44009 #define gmtime rpl_gmtime
44010 _ACEOF
44011
44012
44013 cat >>confdefs.h <<\_ACEOF
44014 #define localtime rpl_localtime
44015 _ACEOF
44016
44017
44018
44019
44020 cat >>confdefs.h <<\_ACEOF
44021 #define tzset rpl_tzset
44022 _ACEOF
44023
44024
44025 cat >>confdefs.h <<\_ACEOF
44026 #define TZSET_CLOBBERS_LOCALTIME 1
44027 _ACEOF
44028
44029   fi
44030
44031
44032     :
44033
44034
44035
44036
44037
44038
44039
44040
44041
44042
44043   if test $ac_cv_header_unistd_h = yes; then
44044     HAVE_UNISTD_H=1
44045       { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
44046 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
44047 if test "${gl_cv_absolute_unistd_h+set}" = set; then
44048   $as_echo_n "(cached) " >&6
44049 else
44050
44051
44052
44053
44054
44055     if test $ac_cv_header_unistd_h = yes; then
44056       cat >conftest.$ac_ext <<_ACEOF
44057 /* confdefs.h.  */
44058 _ACEOF
44059 cat confdefs.h >>conftest.$ac_ext
44060 cat >>conftest.$ac_ext <<_ACEOF
44061 /* end confdefs.h.  */
44062 #include <unistd.h>
44063 _ACEOF
44064       gl_cv_absolute_unistd_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44065 sed -n '\#/unistd.h#{s#.*"\(.*/unistd.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
44066     fi
44067
44068 fi
44069 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_unistd_h" >&5
44070 $as_echo "$gl_cv_absolute_unistd_h" >&6; }
44071 cat >>confdefs.h <<_ACEOF
44072 #define ABSOLUTE_UNISTD_H "$gl_cv_absolute_unistd_h"
44073 _ACEOF
44074
44075
44076     ABSOLUTE_UNISTD_H=\"$gl_cv_absolute_unistd_h\"
44077   else
44078     HAVE_UNISTD_H=0
44079   fi
44080
44081
44082
44083
44084
44085
44086
44087
44088
44089
44090   gl_LIBOBJS="$gl_LIBOBJS dup-safer.$ac_objext"
44091   gl_LIBOBJS="$gl_LIBOBJS fd-safer.$ac_objext"
44092   gl_LIBOBJS="$gl_LIBOBJS pipe-safer.$ac_objext"
44093
44094     { $as_echo "$as_me:$LINENO: checking whether a running program can be unlinked" >&5
44095 $as_echo_n "checking whether a running program can be unlinked... " >&6; }
44096 if test "${jm_cv_func_unlink_busy_text+set}" = set; then
44097   $as_echo_n "(cached) " >&6
44098 else
44099
44100       if test "$cross_compiling" = yes; then
44101   jm_cv_func_unlink_busy_text=no
44102
44103 else
44104   cat >conftest.$ac_ext <<_ACEOF
44105 /* confdefs.h.  */
44106 _ACEOF
44107 cat confdefs.h >>conftest.$ac_ext
44108 cat >>conftest.$ac_ext <<_ACEOF
44109 /* end confdefs.h.  */
44110 $ac_includes_default
44111             int
44112             main (int argc, char **argv)
44113             {
44114               return !argc || unlink (argv[0]) != 0;
44115             }
44116 _ACEOF
44117 rm -f conftest$ac_exeext
44118 if { (ac_try="$ac_link"
44119 case "(($ac_try" in
44120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44121   *) ac_try_echo=$ac_try;;
44122 esac
44123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44124 $as_echo "$ac_try_echo") >&5
44125   (eval "$ac_link") 2>&5
44126   ac_status=$?
44127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44128   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44129   { (case "(($ac_try" in
44130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44131   *) ac_try_echo=$ac_try;;
44132 esac
44133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44134 $as_echo "$ac_try_echo") >&5
44135   (eval "$ac_try") 2>&5
44136   ac_status=$?
44137   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44138   (exit $ac_status); }; }; then
44139   jm_cv_func_unlink_busy_text=yes
44140 else
44141   $as_echo "$as_me: program exited with status $ac_status" >&5
44142 $as_echo "$as_me: failed program was:" >&5
44143 sed 's/^/| /' conftest.$ac_ext >&5
44144
44145 ( exit $ac_status )
44146 jm_cv_func_unlink_busy_text=no
44147 fi
44148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44149 fi
44150
44151
44152
44153
44154 fi
44155 { $as_echo "$as_me:$LINENO: result: $jm_cv_func_unlink_busy_text" >&5
44156 $as_echo "$jm_cv_func_unlink_busy_text" >&6; }
44157
44158   if test $jm_cv_func_unlink_busy_text = no; then
44159     INSTALL=$ac_install_sh
44160   fi
44161
44162
44163
44164
44165
44166
44167
44168
44169
44170
44171   gl_LIBOBJS="$gl_LIBOBJS unlinkdir.$ac_objext"
44172
44173   # The Hurd, the Linux kernel, the FreeBSD kernel version 2.2 and later,
44174   # and Cygwin never let anyone (even root) unlink directories.
44175   # If anyone knows of another system for which unlink can never
44176   # remove a directory, please report it to <bug-coreutils@gnu.org>.
44177   # Unfortunately this is difficult to test for, since it requires root access
44178   # and might create garbage in the file system,
44179   # so the code below simply relies on the kernel name and version number.
44180   case $host in
44181   *-*-gnu[0-9]* | \
44182   *-*-linux-* | *-*-linux | \
44183   *-*-freebsd2.2* | *-*-freebsd[3-9]* | *-*-freebsd[1-9][0-9]* | \
44184   *-cygwin)
44185
44186 cat >>confdefs.h <<\_ACEOF
44187 #define UNLINK_CANNOT_UNLINK_DIR 1
44188 _ACEOF
44189 ;;
44190   esac
44191
44192
44193
44194 cat >>confdefs.h <<\_ACEOF
44195 #define USE_UNLOCKED_IO 1
44196 _ACEOF
44197
44198
44199
44200
44201
44202
44203
44204
44205
44206
44207
44208
44209
44210
44211
44212
44213
44214
44215
44216
44217
44218
44219
44220
44221
44222
44223
44224
44225
44226
44227
44228
44229
44230
44231
44232
44233
44234
44235
44236
44237
44238
44239
44240
44241
44242
44243
44244
44245
44246
44247
44248
44249
44250
44251
44252
44253
44254
44255   { $as_echo "$as_me:$LINENO: checking for /proc/uptime" >&5
44256 $as_echo_n "checking for /proc/uptime... " >&6; }
44257 if test "${jm_cv_have_proc_uptime+set}" = set; then
44258   $as_echo_n "(cached) " >&6
44259 else
44260   jm_cv_have_proc_uptime=no
44261     test -f /proc/uptime \
44262       && test "$cross_compiling" = no \
44263       && cat < /proc/uptime >/dev/null 2>/dev/null \
44264       && jm_cv_have_proc_uptime=yes
44265 fi
44266 { $as_echo "$as_me:$LINENO: result: $jm_cv_have_proc_uptime" >&5
44267 $as_echo "$jm_cv_have_proc_uptime" >&6; }
44268   if test $jm_cv_have_proc_uptime = yes; then
44269
44270 cat >>confdefs.h <<\_ACEOF
44271 #define HAVE_PROC_UPTIME 1
44272 _ACEOF
44273
44274   fi
44275
44276
44277   gl_LIBOBJS="$gl_LIBOBJS userspec.$ac_objext"
44278
44279
44280
44281
44282
44283
44284
44285
44286
44287
44288   if test $ac_cv_func_utime_null = no; then
44289     gl_LIBOBJS="$gl_LIBOBJS utime.$ac_objext"
44290
44291 cat >>confdefs.h <<\_ACEOF
44292 #define utime rpl_utime
44293 _ACEOF
44294
44295
44296
44297
44298
44299
44300
44301
44302
44303   { $as_echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
44304 $as_echo_n "checking whether utimes accepts a null argument... " >&6; }
44305 if test "${ac_cv_func_utimes_null+set}" = set; then
44306   $as_echo_n "(cached) " >&6
44307 else
44308   rm -f conftest.data; > conftest.data
44309 if test "$cross_compiling" = yes; then
44310   ac_cv_func_utimes_null=no
44311 else
44312   cat >conftest.$ac_ext <<_ACEOF
44313 /* confdefs.h.  */
44314 _ACEOF
44315 cat confdefs.h >>conftest.$ac_ext
44316 cat >>conftest.$ac_ext <<_ACEOF
44317 /* end confdefs.h.  */
44318
44319 /* In case stat has been defined to rpl_stat, undef it here.  */
44320 #undef stat
44321 #include <sys/types.h>
44322 #include <sys/stat.h>
44323 #include <sys/time.h>
44324 int
44325 main () {
44326 struct stat s, t;
44327 return ! (stat ("conftest.data", &s) == 0
44328           && utimes ("conftest.data", 0) == 0
44329           && stat ("conftest.data", &t) == 0
44330           && t.st_mtime >= s.st_mtime
44331           && t.st_mtime - s.st_mtime < 120));
44332 }
44333 _ACEOF
44334 rm -f conftest$ac_exeext
44335 if { (ac_try="$ac_link"
44336 case "(($ac_try" in
44337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44338   *) ac_try_echo=$ac_try;;
44339 esac
44340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44341 $as_echo "$ac_try_echo") >&5
44342   (eval "$ac_link") 2>&5
44343   ac_status=$?
44344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44345   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44346   { (case "(($ac_try" in
44347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44348   *) ac_try_echo=$ac_try;;
44349 esac
44350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44351 $as_echo "$ac_try_echo") >&5
44352   (eval "$ac_try") 2>&5
44353   ac_status=$?
44354   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44355   (exit $ac_status); }; }; then
44356   ac_cv_func_utimes_null=yes
44357 else
44358   $as_echo "$as_me: program exited with status $ac_status" >&5
44359 $as_echo "$as_me: failed program was:" >&5
44360 sed 's/^/| /' conftest.$ac_ext >&5
44361
44362 ( exit $ac_status )
44363 ac_cv_func_utimes_null=no
44364 fi
44365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44366 fi
44367
44368
44369 rm -f core core.* *.core
44370 fi
44371 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
44372 $as_echo "$ac_cv_func_utimes_null" >&6; }
44373
44374     if test $ac_cv_func_utimes_null = yes; then
44375
44376 cat >>confdefs.h <<\_ACEOF
44377 #define HAVE_UTIMES_NULL 1
44378 _ACEOF
44379
44380     fi
44381
44382
44383
44384   fi
44385
44386
44387   gl_LIBOBJS="$gl_LIBOBJS utimecmp.$ac_objext"
44388
44389
44390   :
44391
44392
44393   gl_LIBOBJS="$gl_LIBOBJS utimens.$ac_objext"
44394
44395
44396
44397
44398
44399
44400
44401
44402
44403
44404
44405
44406
44407
44408
44409
44410
44411
44412
44413
44414
44415   if test $ac_cv_func_vasnprintf = no; then
44416
44417
44418
44419
44420
44421
44422
44423   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
44424   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
44425   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
44426   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
44427   if test $ac_cv_func_vasnprintf = yes; then
44428
44429 cat >>confdefs.h <<\_ACEOF
44430 #define REPLACE_VASNPRINTF 1
44431 _ACEOF
44432
44433   fi
44434
44435
44436
44437
44438
44439
44440
44441
44442
44443
44444
44445
44446   { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
44447 $as_echo_n "checking for ptrdiff_t... " >&6; }
44448 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
44449   $as_echo_n "(cached) " >&6
44450 else
44451   cat >conftest.$ac_ext <<_ACEOF
44452 /* confdefs.h.  */
44453 _ACEOF
44454 cat confdefs.h >>conftest.$ac_ext
44455 cat >>conftest.$ac_ext <<_ACEOF
44456 /* end confdefs.h.  */
44457 $ac_includes_default
44458 typedef ptrdiff_t ac__type_new_;
44459 int
44460 main ()
44461 {
44462 if ((ac__type_new_ *) 0)
44463   return 0;
44464 if (sizeof (ac__type_new_))
44465   return 0;
44466   ;
44467   return 0;
44468 }
44469 _ACEOF
44470 rm -f conftest.$ac_objext
44471 if { (ac_try="$ac_compile"
44472 case "(($ac_try" in
44473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44474   *) ac_try_echo=$ac_try;;
44475 esac
44476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44477 $as_echo "$ac_try_echo") >&5
44478   (eval "$ac_compile") 2>conftest.er1
44479   ac_status=$?
44480   grep -v '^ *+' conftest.er1 >conftest.err
44481   rm -f conftest.er1
44482   cat conftest.err >&5
44483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44484   (exit $ac_status); } && {
44485          test -z "$ac_c_werror_flag" ||
44486          test ! -s conftest.err
44487        } && test -s conftest.$ac_objext; then
44488   ac_cv_type_ptrdiff_t=yes
44489 else
44490   $as_echo "$as_me: failed program was:" >&5
44491 sed 's/^/| /' conftest.$ac_ext >&5
44492
44493         ac_cv_type_ptrdiff_t=no
44494 fi
44495
44496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44497 fi
44498 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
44499 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
44500 if test $ac_cv_type_ptrdiff_t = yes; then
44501
44502 cat >>confdefs.h <<_ACEOF
44503 #define HAVE_PTRDIFF_T 1
44504 _ACEOF
44505
44506
44507 fi
44508
44509
44510
44511
44512
44513
44514
44515
44516
44517
44518
44519 for ac_func in snprintf wcslen
44520 do
44521 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44522 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44523 $as_echo_n "checking for $ac_func... " >&6; }
44524 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44525   $as_echo_n "(cached) " >&6
44526 else
44527   cat >conftest.$ac_ext <<_ACEOF
44528 /* confdefs.h.  */
44529 _ACEOF
44530 cat confdefs.h >>conftest.$ac_ext
44531 cat >>conftest.$ac_ext <<_ACEOF
44532 /* end confdefs.h.  */
44533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44534    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44535 #define $ac_func innocuous_$ac_func
44536
44537 /* System header to define __stub macros and hopefully few prototypes,
44538     which can conflict with char $ac_func (); below.
44539     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44540     <limits.h> exists even on freestanding compilers.  */
44541
44542 #ifdef __STDC__
44543 # include <limits.h>
44544 #else
44545 # include <assert.h>
44546 #endif
44547
44548 #undef $ac_func
44549
44550 /* Override any GCC internal prototype to avoid an error.
44551    Use char because int might match the return type of a GCC
44552    builtin and then its argument prototype would still apply.  */
44553 #ifdef __cplusplus
44554 extern "C"
44555 #endif
44556 char $ac_func ();
44557 /* The GNU C library defines this for functions which it implements
44558     to always fail with ENOSYS.  Some functions are actually named
44559     something starting with __ and the normal name is an alias.  */
44560 #if defined __stub_$ac_func || defined __stub___$ac_func
44561 choke me
44562 #endif
44563
44564 int
44565 main ()
44566 {
44567 return $ac_func ();
44568   ;
44569   return 0;
44570 }
44571 _ACEOF
44572 rm -f conftest.$ac_objext conftest$ac_exeext
44573 if { (ac_try="$ac_link"
44574 case "(($ac_try" in
44575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44576   *) ac_try_echo=$ac_try;;
44577 esac
44578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44579 $as_echo "$ac_try_echo") >&5
44580   (eval "$ac_link") 2>conftest.er1
44581   ac_status=$?
44582   grep -v '^ *+' conftest.er1 >conftest.err
44583   rm -f conftest.er1
44584   cat conftest.err >&5
44585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44586   (exit $ac_status); } && {
44587          test -z "$ac_c_werror_flag" ||
44588          test ! -s conftest.err
44589        } && test -s conftest$ac_exeext &&
44590        $as_test_x conftest$ac_exeext; then
44591   eval "$as_ac_var=yes"
44592 else
44593   $as_echo "$as_me: failed program was:" >&5
44594 sed 's/^/| /' conftest.$ac_ext >&5
44595
44596         eval "$as_ac_var=no"
44597 fi
44598
44599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44600       conftest$ac_exeext conftest.$ac_ext
44601 fi
44602 ac_res=`eval 'as_val=${'$as_ac_var'}
44603                  $as_echo "$as_val"'`
44604                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44605 $as_echo "$ac_res" >&6; }
44606 if test `eval 'as_val=${'$as_ac_var'}
44607                  $as_echo "$as_val"'` = yes; then
44608   cat >>confdefs.h <<_ACEOF
44609 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44610 _ACEOF
44611
44612 fi
44613 done
44614
44615
44616
44617
44618
44619   fi
44620
44621
44622
44623 for ac_func in vasprintf
44624 do
44625 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44626 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44627 $as_echo_n "checking for $ac_func... " >&6; }
44628 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44629   $as_echo_n "(cached) " >&6
44630 else
44631   cat >conftest.$ac_ext <<_ACEOF
44632 /* confdefs.h.  */
44633 _ACEOF
44634 cat confdefs.h >>conftest.$ac_ext
44635 cat >>conftest.$ac_ext <<_ACEOF
44636 /* end confdefs.h.  */
44637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44638    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44639 #define $ac_func innocuous_$ac_func
44640
44641 /* System header to define __stub macros and hopefully few prototypes,
44642     which can conflict with char $ac_func (); below.
44643     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44644     <limits.h> exists even on freestanding compilers.  */
44645
44646 #ifdef __STDC__
44647 # include <limits.h>
44648 #else
44649 # include <assert.h>
44650 #endif
44651
44652 #undef $ac_func
44653
44654 /* Override any GCC internal prototype to avoid an error.
44655    Use char because int might match the return type of a GCC
44656    builtin and then its argument prototype would still apply.  */
44657 #ifdef __cplusplus
44658 extern "C"
44659 #endif
44660 char $ac_func ();
44661 /* The GNU C library defines this for functions which it implements
44662     to always fail with ENOSYS.  Some functions are actually named
44663     something starting with __ and the normal name is an alias.  */
44664 #if defined __stub_$ac_func || defined __stub___$ac_func
44665 choke me
44666 #endif
44667
44668 int
44669 main ()
44670 {
44671 return $ac_func ();
44672   ;
44673   return 0;
44674 }
44675 _ACEOF
44676 rm -f conftest.$ac_objext conftest$ac_exeext
44677 if { (ac_try="$ac_link"
44678 case "(($ac_try" in
44679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44680   *) ac_try_echo=$ac_try;;
44681 esac
44682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44683 $as_echo "$ac_try_echo") >&5
44684   (eval "$ac_link") 2>conftest.er1
44685   ac_status=$?
44686   grep -v '^ *+' conftest.er1 >conftest.err
44687   rm -f conftest.er1
44688   cat conftest.err >&5
44689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44690   (exit $ac_status); } && {
44691          test -z "$ac_c_werror_flag" ||
44692          test ! -s conftest.err
44693        } && test -s conftest$ac_exeext &&
44694        $as_test_x conftest$ac_exeext; then
44695   eval "$as_ac_var=yes"
44696 else
44697   $as_echo "$as_me: failed program was:" >&5
44698 sed 's/^/| /' conftest.$ac_ext >&5
44699
44700         eval "$as_ac_var=no"
44701 fi
44702
44703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44704       conftest$ac_exeext conftest.$ac_ext
44705 fi
44706 ac_res=`eval 'as_val=${'$as_ac_var'}
44707                  $as_echo "$as_val"'`
44708                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44709 $as_echo "$ac_res" >&6; }
44710 if test `eval 'as_val=${'$as_ac_var'}
44711                  $as_echo "$as_val"'` = yes; then
44712   cat >>confdefs.h <<_ACEOF
44713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44714 _ACEOF
44715
44716 fi
44717 done
44718
44719   if test $ac_cv_func_vasprintf = no; then
44720
44721   gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
44722   gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
44723   if test $ac_cv_func_vasprintf = yes; then
44724
44725 cat >>confdefs.h <<\_ACEOF
44726 #define REPLACE_VASPRINTF 1
44727 _ACEOF
44728
44729   fi
44730
44731
44732
44733
44734
44735
44736
44737
44738   fi
44739
44740
44741   { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
44742 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
44743 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
44744   $as_echo_n "(cached) " >&6
44745 else
44746   cat >conftest.$ac_ext <<_ACEOF
44747 #include <wchar.h>
44748 wchar_t w;
44749 _ACEOF
44750 rm -f conftest.$ac_objext
44751 if { (ac_try="$ac_compile"
44752 case "(($ac_try" in
44753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44754   *) ac_try_echo=$ac_try;;
44755 esac
44756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44757 $as_echo "$ac_try_echo") >&5
44758   (eval "$ac_compile") 2>conftest.er1
44759   ac_status=$?
44760   grep -v '^ *+' conftest.er1 >conftest.err
44761   rm -f conftest.er1
44762   cat conftest.err >&5
44763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44764   (exit $ac_status); } && {
44765          test -z "$ac_c_werror_flag" ||
44766          test ! -s conftest.err
44767        } && test -s conftest.$ac_objext; then
44768   gl_cv_header_wchar_h_standalone=yes
44769 else
44770   $as_echo "$as_me: failed program was:" >&5
44771 sed 's/^/| /' conftest.$ac_ext >&5
44772
44773         gl_cv_header_wchar_h_standalone=no
44774 fi
44775
44776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44777 fi
44778 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
44779 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
44780   if test $gl_cv_header_wchar_h_standalone = yes; then
44781     WCHAR_H=
44782   else
44783       { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
44784 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
44785 if test "${gl_cv_absolute_wchar_h+set}" = set; then
44786   $as_echo_n "(cached) " >&6
44787 else
44788
44789
44790
44791
44792
44793     if test $ac_cv_header_wchar_h = yes; then
44794       cat >conftest.$ac_ext <<_ACEOF
44795 /* confdefs.h.  */
44796 _ACEOF
44797 cat confdefs.h >>conftest.$ac_ext
44798 cat >>conftest.$ac_ext <<_ACEOF
44799 /* end confdefs.h.  */
44800 #include <wchar.h>
44801 _ACEOF
44802       gl_cv_absolute_wchar_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44803 sed -n '\#/wchar.h#{s#.*"\(.*/wchar.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
44804     fi
44805
44806 fi
44807 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_wchar_h" >&5
44808 $as_echo "$gl_cv_absolute_wchar_h" >&6; }
44809 cat >>confdefs.h <<_ACEOF
44810 #define ABSOLUTE_WCHAR_H "$gl_cv_absolute_wchar_h"
44811 _ACEOF
44812
44813
44814     ABSOLUTE_WCHAR_H=\"$gl_cv_absolute_wchar_h\"
44815     WCHAR_H=wchar.h
44816   fi
44817
44818
44819
44820
44821
44822
44823
44824
44825
44826
44827
44828
44829
44830
44831
44832
44833
44834
44835
44836   if test $gt_cv_c_wint_t = yes; then
44837     HAVE_WINT_T=1
44838   else
44839     HAVE_WINT_T=0
44840   fi
44841
44842
44843   WCTYPE_H=wctype.h
44844   if test $ac_cv_header_wctype_h = yes; then
44845     if test "$ac_cv_func_iswcntrl" = yes; then
44846       WCTYPE_H=
44847     fi
44848               { $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
44849 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
44850 if test "${gl_cv_absolute_wctype_h+set}" = set; then
44851   $as_echo_n "(cached) " >&6
44852 else
44853
44854
44855
44856
44857
44858     if test $ac_cv_header_wctype_h = yes; then
44859       cat >conftest.$ac_ext <<_ACEOF
44860 /* confdefs.h.  */
44861 _ACEOF
44862 cat confdefs.h >>conftest.$ac_ext
44863 cat >>conftest.$ac_ext <<_ACEOF
44864 /* end confdefs.h.  */
44865 #include <wctype.h>
44866 _ACEOF
44867       gl_cv_absolute_wctype_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44868 sed -n '\#/wctype.h#{s#.*"\(.*/wctype.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
44869     fi
44870
44871 fi
44872 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_wctype_h" >&5
44873 $as_echo "$gl_cv_absolute_wctype_h" >&6; }
44874 cat >>confdefs.h <<_ACEOF
44875 #define ABSOLUTE_WCTYPE_H "$gl_cv_absolute_wctype_h"
44876 _ACEOF
44877
44878
44879     ABSOLUTE_WCTYPE_H=\"$gl_cv_absolute_wctype_h\"
44880     HAVE_WCTYPE_H=1
44881   else
44882     ABSOLUTE_WCTYPE_H=\"no/such/file/wctype.h\"
44883     HAVE_WCTYPE_H=0
44884   fi
44885
44886
44887
44888
44889
44890
44891
44892
44893
44894
44895
44896
44897
44898
44899
44900
44901
44902
44903
44904
44905
44906
44907
44908
44909   { $as_echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
44910 $as_echo_n "checking whether wcwidth is declared... " >&6; }
44911 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
44912   $as_echo_n "(cached) " >&6
44913 else
44914   cat >conftest.$ac_ext <<_ACEOF
44915 /* confdefs.h.  */
44916 _ACEOF
44917 cat confdefs.h >>conftest.$ac_ext
44918 cat >>conftest.$ac_ext <<_ACEOF
44919 /* end confdefs.h.  */
44920
44921 /* AIX 3.2.5 declares wcwidth in <string.h>. */
44922 #include <string.h>
44923 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
44924    <wchar.h>.
44925    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
44926    before <wchar.h>.  */
44927 #include <stddef.h>
44928 #include <stdio.h>
44929 #include <time.h>
44930 #include <wchar.h>
44931
44932
44933 int
44934 main ()
44935 {
44936 #ifndef wcwidth
44937   (void) wcwidth;
44938 #endif
44939
44940   ;
44941   return 0;
44942 }
44943 _ACEOF
44944 rm -f conftest.$ac_objext
44945 if { (ac_try="$ac_compile"
44946 case "(($ac_try" in
44947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44948   *) ac_try_echo=$ac_try;;
44949 esac
44950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44951 $as_echo "$ac_try_echo") >&5
44952   (eval "$ac_compile") 2>conftest.er1
44953   ac_status=$?
44954   grep -v '^ *+' conftest.er1 >conftest.err
44955   rm -f conftest.er1
44956   cat conftest.err >&5
44957   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44958   (exit $ac_status); } && {
44959          test -z "$ac_c_werror_flag" ||
44960          test ! -s conftest.err
44961        } && test -s conftest.$ac_objext; then
44962   ac_cv_have_decl_wcwidth=yes
44963 else
44964   $as_echo "$as_me: failed program was:" >&5
44965 sed 's/^/| /' conftest.$ac_ext >&5
44966
44967         ac_cv_have_decl_wcwidth=no
44968 fi
44969
44970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44971 fi
44972 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
44973 $as_echo "$ac_cv_have_decl_wcwidth" >&6; }
44974 if test $ac_cv_have_decl_wcwidth = yes; then
44975
44976 cat >>confdefs.h <<_ACEOF
44977 #define HAVE_DECL_WCWIDTH 1
44978 _ACEOF
44979
44980
44981 else
44982   cat >>confdefs.h <<_ACEOF
44983 #define HAVE_DECL_WCWIDTH 0
44984 _ACEOF
44985
44986
44987 fi
44988
44989
44990
44991  { $as_echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
44992 $as_echo_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h... " >&6; }
44993 if test "${jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then
44994   $as_echo_n "(cached) " >&6
44995 else
44996   jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
44997
44998   if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no; then
44999     cat >conftest.$ac_ext <<_ACEOF
45000 /* confdefs.h.  */
45001 _ACEOF
45002 cat confdefs.h >>conftest.$ac_ext
45003 cat >>conftest.$ac_ext <<_ACEOF
45004 /* end confdefs.h.  */
45005 #include <sys/types.h>
45006 #     include <sys/ioctl.h>
45007 #     ifdef TIOCGWINSZ
45008         yes
45009 #     endif
45010
45011 _ACEOF
45012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45013   $EGREP "yes" >/dev/null 2>&1; then
45014   jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
45015 fi
45016 rm -f conftest*
45017
45018   fi
45019
45020 fi
45021 { $as_echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&5
45022 $as_echo "$jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&6; }
45023   if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
45024
45025 cat >>confdefs.h <<\_ACEOF
45026 #define GWINSZ_IN_SYS_IOCTL 1
45027 _ACEOF
45028
45029   fi
45030
45031
45032  { $as_echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
45033 $as_echo_n "checking whether use of TIOCGWINSZ requires termios.h... " >&6; }
45034 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
45035   $as_echo_n "(cached) " >&6
45036 else
45037   jm_cv_sys_tiocgwinsz_needs_termios_h=no
45038
45039    if test $ac_cv_sys_posix_termios = yes; then
45040      cat >conftest.$ac_ext <<_ACEOF
45041 /* confdefs.h.  */
45042 _ACEOF
45043 cat confdefs.h >>conftest.$ac_ext
45044 cat >>conftest.$ac_ext <<_ACEOF
45045 /* end confdefs.h.  */
45046 #include <sys/types.h>
45047 #      include <termios.h>
45048 #      ifdef TIOCGWINSZ
45049          yes
45050 #      endif
45051
45052 _ACEOF
45053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45054   $EGREP "yes" >/dev/null 2>&1; then
45055   jm_cv_sys_tiocgwinsz_needs_termios_h=yes
45056 fi
45057 rm -f conftest*
45058
45059    fi
45060
45061 fi
45062 { $as_echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
45063 $as_echo "$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6; }
45064
45065
45066    { $as_echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
45067 $as_echo_n "checking whether use of struct winsize requires sys/ptem.h... " >&6; }
45068 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
45069   $as_echo_n "(cached) " >&6
45070 else
45071   jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
45072       if test $ac_cv_sys_posix_termios = yes; then
45073         cat >conftest.$ac_ext <<_ACEOF
45074 /* confdefs.h.  */
45075 _ACEOF
45076 cat confdefs.h >>conftest.$ac_ext
45077 cat >>conftest.$ac_ext <<_ACEOF
45078 /* end confdefs.h.  */
45079 #include <termios.h>
45080 int
45081 main ()
45082 {
45083 struct winsize x;
45084            if (sizeof x > 0) return 0;
45085   ;
45086   return 0;
45087 }
45088 _ACEOF
45089 rm -f conftest.$ac_objext
45090 if { (ac_try="$ac_compile"
45091 case "(($ac_try" in
45092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45093   *) ac_try_echo=$ac_try;;
45094 esac
45095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45096 $as_echo "$ac_try_echo") >&5
45097   (eval "$ac_compile") 2>conftest.er1
45098   ac_status=$?
45099   grep -v '^ *+' conftest.er1 >conftest.err
45100   rm -f conftest.er1
45101   cat conftest.err >&5
45102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45103   (exit $ac_status); } && {
45104          test -z "$ac_c_werror_flag" ||
45105          test ! -s conftest.err
45106        } && test -s conftest.$ac_objext; then
45107   jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
45108 else
45109   $as_echo "$as_me: failed program was:" >&5
45110 sed 's/^/| /' conftest.$ac_ext >&5
45111
45112
45113 fi
45114
45115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45116       fi
45117       if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
45118         cat >conftest.$ac_ext <<_ACEOF
45119 /* confdefs.h.  */
45120 _ACEOF
45121 cat confdefs.h >>conftest.$ac_ext
45122 cat >>conftest.$ac_ext <<_ACEOF
45123 /* end confdefs.h.  */
45124 #include <sys/ptem.h>
45125 int
45126 main ()
45127 {
45128 struct winsize x;
45129            if (sizeof x > 0) return 0;
45130   ;
45131   return 0;
45132 }
45133 _ACEOF
45134 rm -f conftest.$ac_objext
45135 if { (ac_try="$ac_compile"
45136 case "(($ac_try" in
45137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45138   *) ac_try_echo=$ac_try;;
45139 esac
45140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45141 $as_echo "$ac_try_echo") >&5
45142   (eval "$ac_compile") 2>conftest.er1
45143   ac_status=$?
45144   grep -v '^ *+' conftest.er1 >conftest.err
45145   rm -f conftest.er1
45146   cat conftest.err >&5
45147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45148   (exit $ac_status); } && {
45149          test -z "$ac_c_werror_flag" ||
45150          test ! -s conftest.err
45151        } && test -s conftest.$ac_objext; then
45152   :
45153 else
45154   $as_echo "$as_me: failed program was:" >&5
45155 sed 's/^/| /' conftest.$ac_ext >&5
45156
45157         jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
45158 fi
45159
45160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45161       fi
45162 fi
45163 { $as_echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
45164 $as_echo "$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6; }
45165    if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
45166
45167 cat >>confdefs.h <<\_ACEOF
45168 #define WINSIZE_IN_PTEM 1
45169 _ACEOF
45170
45171    fi
45172
45173   gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
45174
45175
45176
45177   :
45178
45179
45180   :
45181
45182
45183
45184   gl_LIBOBJS="$gl_LIBOBJS xgetcwd.$ac_objext"
45185
45186
45187
45188
45189   gl_LIBOBJS="$gl_LIBOBJS xnanosleep.$ac_objext"
45190
45191
45192
45193   :
45194
45195
45196
45197   gl_LIBOBJS="$gl_LIBOBJS xstrtod.$ac_objext"
45198
45199
45200   gl_LIBOBJS="$gl_LIBOBJS xstrtol.$ac_objext"
45201   gl_LIBOBJS="$gl_LIBOBJS xstrtoul.$ac_objext"
45202
45203
45204   gl_LIBOBJS="$gl_LIBOBJS xstrtold.$ac_objext"
45205
45206
45207   gl_LIBOBJS="$gl_LIBOBJS yesno.$ac_objext"
45208
45209     :
45210
45211   LIBCOREUTILS_LIBDEPS="$gl_libdeps"
45212
45213   LIBCOREUTILS_LTLIBDEPS="$gl_ltlibdeps"
45214
45215
45216
45217
45218
45219
45220 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
45221 $as_echo_n "checking for library containing strerror... " >&6; }
45222 if test "${ac_cv_search_strerror+set}" = set; then
45223   $as_echo_n "(cached) " >&6
45224 else
45225   ac_func_search_save_LIBS=$LIBS
45226 cat >conftest.$ac_ext <<_ACEOF
45227 /* confdefs.h.  */
45228 _ACEOF
45229 cat confdefs.h >>conftest.$ac_ext
45230 cat >>conftest.$ac_ext <<_ACEOF
45231 /* end confdefs.h.  */
45232
45233 /* Override any GCC internal prototype to avoid an error.
45234    Use char because int might match the return type of a GCC
45235    builtin and then its argument prototype would still apply.  */
45236 #ifdef __cplusplus
45237 extern "C"
45238 #endif
45239 char strerror ();
45240 int
45241 main ()
45242 {
45243 return strerror ();
45244   ;
45245   return 0;
45246 }
45247 _ACEOF
45248 for ac_lib in '' cposix; do
45249   if test -z "$ac_lib"; then
45250     ac_res="none required"
45251   else
45252     ac_res=-l$ac_lib
45253     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
45254   fi
45255   rm -f conftest.$ac_objext conftest$ac_exeext
45256 if { (ac_try="$ac_link"
45257 case "(($ac_try" in
45258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45259   *) ac_try_echo=$ac_try;;
45260 esac
45261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45262 $as_echo "$ac_try_echo") >&5
45263   (eval "$ac_link") 2>conftest.er1
45264   ac_status=$?
45265   grep -v '^ *+' conftest.er1 >conftest.err
45266   rm -f conftest.er1
45267   cat conftest.err >&5
45268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45269   (exit $ac_status); } && {
45270          test -z "$ac_c_werror_flag" ||
45271          test ! -s conftest.err
45272        } && test -s conftest$ac_exeext &&
45273        $as_test_x conftest$ac_exeext; then
45274   ac_cv_search_strerror=$ac_res
45275 else
45276   $as_echo "$as_me: failed program was:" >&5
45277 sed 's/^/| /' conftest.$ac_ext >&5
45278
45279
45280 fi
45281
45282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45283       conftest$ac_exeext
45284   if test "${ac_cv_search_strerror+set}" = set; then
45285   break
45286 fi
45287 done
45288 if test "${ac_cv_search_strerror+set}" = set; then
45289   :
45290 else
45291   ac_cv_search_strerror=no
45292 fi
45293 rm conftest.$ac_ext
45294 LIBS=$ac_func_search_save_LIBS
45295 fi
45296 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
45297 $as_echo "$ac_cv_search_strerror" >&6; }
45298 ac_res=$ac_cv_search_strerror
45299 if test "$ac_res" != no; then
45300   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
45301
45302 fi
45303
45304 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
45305 $as_echo_n "checking for function prototypes... " >&6; }
45306 if test "$ac_cv_prog_cc_c89" != no; then
45307   { $as_echo "$as_me:$LINENO: result: yes" >&5
45308 $as_echo "yes" >&6; }
45309
45310 cat >>confdefs.h <<\_ACEOF
45311 #define PROTOTYPES 1
45312 _ACEOF
45313
45314
45315 cat >>confdefs.h <<\_ACEOF
45316 #define __PROTOTYPES 1
45317 _ACEOF
45318
45319 else
45320   { $as_echo "$as_me:$LINENO: result: no" >&5
45321 $as_echo "no" >&6; }
45322 fi
45323
45324
45325 if test "$ac_cv_prog_cc_stdc" != no; then
45326   U= ANSI2KNR=
45327 else
45328   U=_ ANSI2KNR=./ansi2knr
45329 fi
45330 # Ensure some checks needed by ansi2knr itself.
45331
45332
45333 for ac_header in string.h
45334 do
45335 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
45336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45337   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
45338 $as_echo_n "checking for $ac_header... " >&6; }
45339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45340   $as_echo_n "(cached) " >&6
45341 fi
45342 ac_res=`eval 'as_val=${'$as_ac_Header'}
45343                  $as_echo "$as_val"'`
45344                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45345 $as_echo "$ac_res" >&6; }
45346 else
45347   # Is the header compilable?
45348 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
45349 $as_echo_n "checking $ac_header usability... " >&6; }
45350 cat >conftest.$ac_ext <<_ACEOF
45351 /* confdefs.h.  */
45352 _ACEOF
45353 cat confdefs.h >>conftest.$ac_ext
45354 cat >>conftest.$ac_ext <<_ACEOF
45355 /* end confdefs.h.  */
45356 $ac_includes_default
45357 #include <$ac_header>
45358 _ACEOF
45359 rm -f conftest.$ac_objext
45360 if { (ac_try="$ac_compile"
45361 case "(($ac_try" in
45362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45363   *) ac_try_echo=$ac_try;;
45364 esac
45365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45366 $as_echo "$ac_try_echo") >&5
45367   (eval "$ac_compile") 2>conftest.er1
45368   ac_status=$?
45369   grep -v '^ *+' conftest.er1 >conftest.err
45370   rm -f conftest.er1
45371   cat conftest.err >&5
45372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45373   (exit $ac_status); } && {
45374          test -z "$ac_c_werror_flag" ||
45375          test ! -s conftest.err
45376        } && test -s conftest.$ac_objext; then
45377   ac_header_compiler=yes
45378 else
45379   $as_echo "$as_me: failed program was:" >&5
45380 sed 's/^/| /' conftest.$ac_ext >&5
45381
45382         ac_header_compiler=no
45383 fi
45384
45385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45386 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45387 $as_echo "$ac_header_compiler" >&6; }
45388
45389 # Is the header present?
45390 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
45391 $as_echo_n "checking $ac_header presence... " >&6; }
45392 cat >conftest.$ac_ext <<_ACEOF
45393 /* confdefs.h.  */
45394 _ACEOF
45395 cat confdefs.h >>conftest.$ac_ext
45396 cat >>conftest.$ac_ext <<_ACEOF
45397 /* end confdefs.h.  */
45398 #include <$ac_header>
45399 _ACEOF
45400 if { (ac_try="$ac_cpp conftest.$ac_ext"
45401 case "(($ac_try" in
45402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45403   *) ac_try_echo=$ac_try;;
45404 esac
45405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45406 $as_echo "$ac_try_echo") >&5
45407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45408   ac_status=$?
45409   grep -v '^ *+' conftest.er1 >conftest.err
45410   rm -f conftest.er1
45411   cat conftest.err >&5
45412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45413   (exit $ac_status); } >/dev/null && {
45414          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45415          test ! -s conftest.err
45416        }; then
45417   ac_header_preproc=yes
45418 else
45419   $as_echo "$as_me: failed program was:" >&5
45420 sed 's/^/| /' conftest.$ac_ext >&5
45421
45422   ac_header_preproc=no
45423 fi
45424
45425 rm -f conftest.err conftest.$ac_ext
45426 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45427 $as_echo "$ac_header_preproc" >&6; }
45428
45429 # So?  What about this header?
45430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45431   yes:no: )
45432     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45433 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45434     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45435 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45436     ac_header_preproc=yes
45437     ;;
45438   no:yes:* )
45439     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45440 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45441     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45442 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45443     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45444 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45445     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45446 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45447     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45448 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45449     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45450 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45451     ( cat <<\_ASBOX
45452 ## ------------------------------------ ##
45453 ## Report this to bug-coreutils@gnu.org ##
45454 ## ------------------------------------ ##
45455 _ASBOX
45456      ) | sed "s/^/$as_me: WARNING:     /" >&2
45457     ;;
45458 esac
45459 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
45460 $as_echo_n "checking for $ac_header... " >&6; }
45461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45462   $as_echo_n "(cached) " >&6
45463 else
45464   eval "$as_ac_Header=\$ac_header_preproc"
45465 fi
45466 ac_res=`eval 'as_val=${'$as_ac_Header'}
45467                  $as_echo "$as_val"'`
45468                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45469 $as_echo "$ac_res" >&6; }
45470
45471 fi
45472 if test `eval 'as_val=${'$as_ac_Header'}
45473                  $as_echo "$as_val"'` = yes; then
45474   cat >>confdefs.h <<_ACEOF
45475 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
45476 _ACEOF
45477
45478 fi
45479
45480 done
45481
45482
45483 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
45484 $as_echo_n "checking for working volatile... " >&6; }
45485 if test "${ac_cv_c_volatile+set}" = set; then
45486   $as_echo_n "(cached) " >&6
45487 else
45488   cat >conftest.$ac_ext <<_ACEOF
45489 /* confdefs.h.  */
45490 _ACEOF
45491 cat confdefs.h >>conftest.$ac_ext
45492 cat >>conftest.$ac_ext <<_ACEOF
45493 /* end confdefs.h.  */
45494
45495 int
45496 main ()
45497 {
45498
45499 volatile int x;
45500 int * volatile y = (int *) 0;
45501 return !x && !y;
45502   ;
45503   return 0;
45504 }
45505 _ACEOF
45506 rm -f conftest.$ac_objext
45507 if { (ac_try="$ac_compile"
45508 case "(($ac_try" in
45509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45510   *) ac_try_echo=$ac_try;;
45511 esac
45512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45513 $as_echo "$ac_try_echo") >&5
45514   (eval "$ac_compile") 2>conftest.er1
45515   ac_status=$?
45516   grep -v '^ *+' conftest.er1 >conftest.err
45517   rm -f conftest.er1
45518   cat conftest.err >&5
45519   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45520   (exit $ac_status); } && {
45521          test -z "$ac_c_werror_flag" ||
45522          test ! -s conftest.err
45523        } && test -s conftest.$ac_objext; then
45524   ac_cv_c_volatile=yes
45525 else
45526   $as_echo "$as_me: failed program was:" >&5
45527 sed 's/^/| /' conftest.$ac_ext >&5
45528
45529         ac_cv_c_volatile=no
45530 fi
45531
45532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45533 fi
45534 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
45535 $as_echo "$ac_cv_c_volatile" >&6; }
45536 if test $ac_cv_c_volatile = no; then
45537
45538 cat >>confdefs.h <<\_ACEOF
45539 #define volatile
45540 _ACEOF
45541
45542 fi
45543
45544
45545
45546   { $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
45547 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
45548 if test "${ac_cv_type_long_double_wider+set}" = set; then
45549   $as_echo_n "(cached) " >&6
45550 else
45551   cat >conftest.$ac_ext <<_ACEOF
45552 /* confdefs.h.  */
45553 _ACEOF
45554 cat confdefs.h >>conftest.$ac_ext
45555 cat >>conftest.$ac_ext <<_ACEOF
45556 /* end confdefs.h.  */
45557 #include <float.h>
45558             long double const a[] =
45559               {
45560                  0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
45561                  LDBL_MIN, LDBL_MAX, LDBL_EPSILON
45562               };
45563             long double
45564             f (long double x)
45565             {
45566                return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
45567                         + (x ? f (x) : 'c'));
45568             }
45569
45570 int
45571 main ()
45572 {
45573 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
45574                    + (DBL_MANT_DIG < LDBL_MANT_DIG)
45575                    - (LDBL_MAX_EXP < DBL_MAX_EXP)
45576                    - (LDBL_MANT_DIG < DBL_MANT_DIG)))
45577             && (int) LDBL_EPSILON == 0
45578           )];
45579 test_array [0] = 0
45580
45581   ;
45582   return 0;
45583 }
45584 _ACEOF
45585 rm -f conftest.$ac_objext
45586 if { (ac_try="$ac_compile"
45587 case "(($ac_try" in
45588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45589   *) ac_try_echo=$ac_try;;
45590 esac
45591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45592 $as_echo "$ac_try_echo") >&5
45593   (eval "$ac_compile") 2>conftest.er1
45594   ac_status=$?
45595   grep -v '^ *+' conftest.er1 >conftest.err
45596   rm -f conftest.er1
45597   cat conftest.err >&5
45598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45599   (exit $ac_status); } && {
45600          test -z "$ac_c_werror_flag" ||
45601          test ! -s conftest.err
45602        } && test -s conftest.$ac_objext; then
45603   ac_cv_type_long_double_wider=yes
45604 else
45605   $as_echo "$as_me: failed program was:" >&5
45606 sed 's/^/| /' conftest.$ac_ext >&5
45607
45608         ac_cv_type_long_double_wider=no
45609 fi
45610
45611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45612 fi
45613 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
45614 $as_echo "$ac_cv_type_long_double_wider" >&6; }
45615   if test $ac_cv_type_long_double_wider = yes; then
45616
45617 cat >>confdefs.h <<\_ACEOF
45618 #define HAVE_LONG_DOUBLE_WIDER 1
45619 _ACEOF
45620
45621   fi
45622
45623     ac_cv_c_long_double=$ac_cv_type_long_double_wider
45624     if test $ac_cv_c_long_double = yes; then
45625
45626 cat >>confdefs.h <<\_ACEOF
45627 #define HAVE_LONG_DOUBLE 1
45628 _ACEOF
45629
45630     fi
45631
45632
45633
45634
45635
45636
45637
45638
45639
45640
45641
45642
45643
45644
45645
45646
45647
45648
45649
45650
45651
45652
45653
45654
45655
45656
45657
45658
45659
45660
45661
45662
45663
45664
45665
45666
45667
45668
45669
45670
45671
45672
45673
45674
45675
45676
45677
45678 for ac_header in sys/sysctl.h
45679 do
45680 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
45681 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
45682 $as_echo_n "checking for $ac_header... " >&6; }
45683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45684   $as_echo_n "(cached) " >&6
45685 else
45686   cat >conftest.$ac_ext <<_ACEOF
45687 /* confdefs.h.  */
45688 _ACEOF
45689 cat confdefs.h >>conftest.$ac_ext
45690 cat >>conftest.$ac_ext <<_ACEOF
45691 /* end confdefs.h.  */
45692 $ac_includes_default
45693      #if HAVE_SYS_PARAM_H
45694        #include <sys/param.h>
45695       #endif
45696
45697 #include <$ac_header>
45698 _ACEOF
45699 rm -f conftest.$ac_objext
45700 if { (ac_try="$ac_compile"
45701 case "(($ac_try" in
45702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45703   *) ac_try_echo=$ac_try;;
45704 esac
45705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45706 $as_echo "$ac_try_echo") >&5
45707   (eval "$ac_compile") 2>conftest.er1
45708   ac_status=$?
45709   grep -v '^ *+' conftest.er1 >conftest.err
45710   rm -f conftest.er1
45711   cat conftest.err >&5
45712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45713   (exit $ac_status); } && {
45714          test -z "$ac_c_werror_flag" ||
45715          test ! -s conftest.err
45716        } && test -s conftest.$ac_objext; then
45717   eval "$as_ac_Header=yes"
45718 else
45719   $as_echo "$as_me: failed program was:" >&5
45720 sed 's/^/| /' conftest.$ac_ext >&5
45721
45722         eval "$as_ac_Header=no"
45723 fi
45724
45725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45726 fi
45727 ac_res=`eval 'as_val=${'$as_ac_Header'}
45728                  $as_echo "$as_val"'`
45729                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45730 $as_echo "$ac_res" >&6; }
45731 if test `eval 'as_val=${'$as_ac_Header'}
45732                  $as_echo "$as_val"'` = yes; then
45733   cat >>confdefs.h <<_ACEOF
45734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
45735 _ACEOF
45736
45737 fi
45738
45739 done
45740
45741
45742 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
45743 $as_echo_n "checking for mode_t... " >&6; }
45744 if test "${ac_cv_type_mode_t+set}" = set; then
45745   $as_echo_n "(cached) " >&6
45746 else
45747   cat >conftest.$ac_ext <<_ACEOF
45748 /* confdefs.h.  */
45749 _ACEOF
45750 cat confdefs.h >>conftest.$ac_ext
45751 cat >>conftest.$ac_ext <<_ACEOF
45752 /* end confdefs.h.  */
45753 $ac_includes_default
45754 typedef mode_t ac__type_new_;
45755 int
45756 main ()
45757 {
45758 if ((ac__type_new_ *) 0)
45759   return 0;
45760 if (sizeof (ac__type_new_))
45761   return 0;
45762   ;
45763   return 0;
45764 }
45765 _ACEOF
45766 rm -f conftest.$ac_objext
45767 if { (ac_try="$ac_compile"
45768 case "(($ac_try" in
45769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45770   *) ac_try_echo=$ac_try;;
45771 esac
45772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45773 $as_echo "$ac_try_echo") >&5
45774   (eval "$ac_compile") 2>conftest.er1
45775   ac_status=$?
45776   grep -v '^ *+' conftest.er1 >conftest.err
45777   rm -f conftest.er1
45778   cat conftest.err >&5
45779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45780   (exit $ac_status); } && {
45781          test -z "$ac_c_werror_flag" ||
45782          test ! -s conftest.err
45783        } && test -s conftest.$ac_objext; then
45784   ac_cv_type_mode_t=yes
45785 else
45786   $as_echo "$as_me: failed program was:" >&5
45787 sed 's/^/| /' conftest.$ac_ext >&5
45788
45789         ac_cv_type_mode_t=no
45790 fi
45791
45792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45793 fi
45794 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
45795 $as_echo "$ac_cv_type_mode_t" >&6; }
45796 if test $ac_cv_type_mode_t = yes; then
45797   :
45798 else
45799
45800 cat >>confdefs.h <<_ACEOF
45801 #define mode_t int
45802 _ACEOF
45803
45804 fi
45805
45806 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
45807 $as_echo_n "checking for pid_t... " >&6; }
45808 if test "${ac_cv_type_pid_t+set}" = set; then
45809   $as_echo_n "(cached) " >&6
45810 else
45811   cat >conftest.$ac_ext <<_ACEOF
45812 /* confdefs.h.  */
45813 _ACEOF
45814 cat confdefs.h >>conftest.$ac_ext
45815 cat >>conftest.$ac_ext <<_ACEOF
45816 /* end confdefs.h.  */
45817 $ac_includes_default
45818 typedef pid_t ac__type_new_;
45819 int
45820 main ()
45821 {
45822 if ((ac__type_new_ *) 0)
45823   return 0;
45824 if (sizeof (ac__type_new_))
45825   return 0;
45826   ;
45827   return 0;
45828 }
45829 _ACEOF
45830 rm -f conftest.$ac_objext
45831 if { (ac_try="$ac_compile"
45832 case "(($ac_try" in
45833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45834   *) ac_try_echo=$ac_try;;
45835 esac
45836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45837 $as_echo "$ac_try_echo") >&5
45838   (eval "$ac_compile") 2>conftest.er1
45839   ac_status=$?
45840   grep -v '^ *+' conftest.er1 >conftest.err
45841   rm -f conftest.er1
45842   cat conftest.err >&5
45843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45844   (exit $ac_status); } && {
45845          test -z "$ac_c_werror_flag" ||
45846          test ! -s conftest.err
45847        } && test -s conftest.$ac_objext; then
45848   ac_cv_type_pid_t=yes
45849 else
45850   $as_echo "$as_me: failed program was:" >&5
45851 sed 's/^/| /' conftest.$ac_ext >&5
45852
45853         ac_cv_type_pid_t=no
45854 fi
45855
45856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45857 fi
45858 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
45859 $as_echo "$ac_cv_type_pid_t" >&6; }
45860 if test $ac_cv_type_pid_t = yes; then
45861   :
45862 else
45863
45864 cat >>confdefs.h <<_ACEOF
45865 #define pid_t int
45866 _ACEOF
45867
45868 fi
45869
45870 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
45871 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
45872 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
45873   $as_echo_n "(cached) " >&6
45874 else
45875   cat >conftest.$ac_ext <<_ACEOF
45876 /* confdefs.h.  */
45877 _ACEOF
45878 cat confdefs.h >>conftest.$ac_ext
45879 cat >>conftest.$ac_ext <<_ACEOF
45880 /* end confdefs.h.  */
45881 #include <sys/types.h>
45882 int
45883 main ()
45884 {
45885 return makedev(0, 0);
45886   ;
45887   return 0;
45888 }
45889 _ACEOF
45890 rm -f conftest.$ac_objext conftest$ac_exeext
45891 if { (ac_try="$ac_link"
45892 case "(($ac_try" in
45893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45894   *) ac_try_echo=$ac_try;;
45895 esac
45896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45897 $as_echo "$ac_try_echo") >&5
45898   (eval "$ac_link") 2>conftest.er1
45899   ac_status=$?
45900   grep -v '^ *+' conftest.er1 >conftest.err
45901   rm -f conftest.er1
45902   cat conftest.err >&5
45903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45904   (exit $ac_status); } && {
45905          test -z "$ac_c_werror_flag" ||
45906          test ! -s conftest.err
45907        } && test -s conftest$ac_exeext &&
45908        $as_test_x conftest$ac_exeext; then
45909   ac_cv_header_sys_types_h_makedev=yes
45910 else
45911   $as_echo "$as_me: failed program was:" >&5
45912 sed 's/^/| /' conftest.$ac_ext >&5
45913
45914         ac_cv_header_sys_types_h_makedev=no
45915 fi
45916
45917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45918       conftest$ac_exeext conftest.$ac_ext
45919
45920 fi
45921 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
45922 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
45923
45924 if test $ac_cv_header_sys_types_h_makedev = no; then
45925 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
45926   { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
45927 $as_echo_n "checking for sys/mkdev.h... " >&6; }
45928 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
45929   $as_echo_n "(cached) " >&6
45930 fi
45931 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
45932 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
45933 else
45934   # Is the header compilable?
45935 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
45936 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
45937 cat >conftest.$ac_ext <<_ACEOF
45938 /* confdefs.h.  */
45939 _ACEOF
45940 cat confdefs.h >>conftest.$ac_ext
45941 cat >>conftest.$ac_ext <<_ACEOF
45942 /* end confdefs.h.  */
45943 $ac_includes_default
45944 #include <sys/mkdev.h>
45945 _ACEOF
45946 rm -f conftest.$ac_objext
45947 if { (ac_try="$ac_compile"
45948 case "(($ac_try" in
45949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45950   *) ac_try_echo=$ac_try;;
45951 esac
45952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45953 $as_echo "$ac_try_echo") >&5
45954   (eval "$ac_compile") 2>conftest.er1
45955   ac_status=$?
45956   grep -v '^ *+' conftest.er1 >conftest.err
45957   rm -f conftest.er1
45958   cat conftest.err >&5
45959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45960   (exit $ac_status); } && {
45961          test -z "$ac_c_werror_flag" ||
45962          test ! -s conftest.err
45963        } && test -s conftest.$ac_objext; then
45964   ac_header_compiler=yes
45965 else
45966   $as_echo "$as_me: failed program was:" >&5
45967 sed 's/^/| /' conftest.$ac_ext >&5
45968
45969         ac_header_compiler=no
45970 fi
45971
45972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45973 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45974 $as_echo "$ac_header_compiler" >&6; }
45975
45976 # Is the header present?
45977 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
45978 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
45979 cat >conftest.$ac_ext <<_ACEOF
45980 /* confdefs.h.  */
45981 _ACEOF
45982 cat confdefs.h >>conftest.$ac_ext
45983 cat >>conftest.$ac_ext <<_ACEOF
45984 /* end confdefs.h.  */
45985 #include <sys/mkdev.h>
45986 _ACEOF
45987 if { (ac_try="$ac_cpp conftest.$ac_ext"
45988 case "(($ac_try" in
45989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45990   *) ac_try_echo=$ac_try;;
45991 esac
45992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45993 $as_echo "$ac_try_echo") >&5
45994   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45995   ac_status=$?
45996   grep -v '^ *+' conftest.er1 >conftest.err
45997   rm -f conftest.er1
45998   cat conftest.err >&5
45999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46000   (exit $ac_status); } >/dev/null && {
46001          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46002          test ! -s conftest.err
46003        }; then
46004   ac_header_preproc=yes
46005 else
46006   $as_echo "$as_me: failed program was:" >&5
46007 sed 's/^/| /' conftest.$ac_ext >&5
46008
46009   ac_header_preproc=no
46010 fi
46011
46012 rm -f conftest.err conftest.$ac_ext
46013 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46014 $as_echo "$ac_header_preproc" >&6; }
46015
46016 # So?  What about this header?
46017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46018   yes:no: )
46019     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
46020 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46021     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
46022 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
46023     ac_header_preproc=yes
46024     ;;
46025   no:yes:* )
46026     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
46027 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
46028     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
46029 $as_echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
46030     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
46031 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
46032     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
46033 $as_echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
46034     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
46035 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
46036     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
46037 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
46038     ( cat <<\_ASBOX
46039 ## ------------------------------------ ##
46040 ## Report this to bug-coreutils@gnu.org ##
46041 ## ------------------------------------ ##
46042 _ASBOX
46043      ) | sed "s/^/$as_me: WARNING:     /" >&2
46044     ;;
46045 esac
46046 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
46047 $as_echo_n "checking for sys/mkdev.h... " >&6; }
46048 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
46049   $as_echo_n "(cached) " >&6
46050 else
46051   ac_cv_header_sys_mkdev_h=$ac_header_preproc
46052 fi
46053 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
46054 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
46055
46056 fi
46057 if test $ac_cv_header_sys_mkdev_h = yes; then
46058
46059 cat >>confdefs.h <<\_ACEOF
46060 #define MAJOR_IN_MKDEV 1
46061 _ACEOF
46062
46063 fi
46064
46065
46066
46067   if test $ac_cv_header_sys_mkdev_h = no; then
46068     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
46069   { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
46070 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
46071 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
46072   $as_echo_n "(cached) " >&6
46073 fi
46074 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
46075 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
46076 else
46077   # Is the header compilable?
46078 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
46079 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
46080 cat >conftest.$ac_ext <<_ACEOF
46081 /* confdefs.h.  */
46082 _ACEOF
46083 cat confdefs.h >>conftest.$ac_ext
46084 cat >>conftest.$ac_ext <<_ACEOF
46085 /* end confdefs.h.  */
46086 $ac_includes_default
46087 #include <sys/sysmacros.h>
46088 _ACEOF
46089 rm -f conftest.$ac_objext
46090 if { (ac_try="$ac_compile"
46091 case "(($ac_try" in
46092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46093   *) ac_try_echo=$ac_try;;
46094 esac
46095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46096 $as_echo "$ac_try_echo") >&5
46097   (eval "$ac_compile") 2>conftest.er1
46098   ac_status=$?
46099   grep -v '^ *+' conftest.er1 >conftest.err
46100   rm -f conftest.er1
46101   cat conftest.err >&5
46102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46103   (exit $ac_status); } && {
46104          test -z "$ac_c_werror_flag" ||
46105          test ! -s conftest.err
46106        } && test -s conftest.$ac_objext; then
46107   ac_header_compiler=yes
46108 else
46109   $as_echo "$as_me: failed program was:" >&5
46110 sed 's/^/| /' conftest.$ac_ext >&5
46111
46112         ac_header_compiler=no
46113 fi
46114
46115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46116 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46117 $as_echo "$ac_header_compiler" >&6; }
46118
46119 # Is the header present?
46120 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
46121 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
46122 cat >conftest.$ac_ext <<_ACEOF
46123 /* confdefs.h.  */
46124 _ACEOF
46125 cat confdefs.h >>conftest.$ac_ext
46126 cat >>conftest.$ac_ext <<_ACEOF
46127 /* end confdefs.h.  */
46128 #include <sys/sysmacros.h>
46129 _ACEOF
46130 if { (ac_try="$ac_cpp conftest.$ac_ext"
46131 case "(($ac_try" in
46132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46133   *) ac_try_echo=$ac_try;;
46134 esac
46135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46136 $as_echo "$ac_try_echo") >&5
46137   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46138   ac_status=$?
46139   grep -v '^ *+' conftest.er1 >conftest.err
46140   rm -f conftest.er1
46141   cat conftest.err >&5
46142   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46143   (exit $ac_status); } >/dev/null && {
46144          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46145          test ! -s conftest.err
46146        }; then
46147   ac_header_preproc=yes
46148 else
46149   $as_echo "$as_me: failed program was:" >&5
46150 sed 's/^/| /' conftest.$ac_ext >&5
46151
46152   ac_header_preproc=no
46153 fi
46154
46155 rm -f conftest.err conftest.$ac_ext
46156 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46157 $as_echo "$ac_header_preproc" >&6; }
46158
46159 # So?  What about this header?
46160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46161   yes:no: )
46162     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
46163 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46164     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
46165 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
46166     ac_header_preproc=yes
46167     ;;
46168   no:yes:* )
46169     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
46170 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
46171     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
46172 $as_echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
46173     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
46174 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
46175     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
46176 $as_echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
46177     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
46178 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
46179     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
46180 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
46181     ( cat <<\_ASBOX
46182 ## ------------------------------------ ##
46183 ## Report this to bug-coreutils@gnu.org ##
46184 ## ------------------------------------ ##
46185 _ASBOX
46186      ) | sed "s/^/$as_me: WARNING:     /" >&2
46187     ;;
46188 esac
46189 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
46190 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
46191 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
46192   $as_echo_n "(cached) " >&6
46193 else
46194   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
46195 fi
46196 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
46197 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
46198
46199 fi
46200 if test $ac_cv_header_sys_sysmacros_h = yes; then
46201
46202 cat >>confdefs.h <<\_ACEOF
46203 #define MAJOR_IN_SYSMACROS 1
46204 _ACEOF
46205
46206 fi
46207
46208
46209   fi
46210 fi
46211
46212 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
46213 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
46214 if test "${ac_cv_header_time+set}" = set; then
46215   $as_echo_n "(cached) " >&6
46216 else
46217   cat >conftest.$ac_ext <<_ACEOF
46218 /* confdefs.h.  */
46219 _ACEOF
46220 cat confdefs.h >>conftest.$ac_ext
46221 cat >>conftest.$ac_ext <<_ACEOF
46222 /* end confdefs.h.  */
46223 #include <sys/types.h>
46224 #include <sys/time.h>
46225 #include <time.h>
46226
46227 int
46228 main ()
46229 {
46230 if ((struct tm *) 0)
46231 return 0;
46232   ;
46233   return 0;
46234 }
46235 _ACEOF
46236 rm -f conftest.$ac_objext
46237 if { (ac_try="$ac_compile"
46238 case "(($ac_try" in
46239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46240   *) ac_try_echo=$ac_try;;
46241 esac
46242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46243 $as_echo "$ac_try_echo") >&5
46244   (eval "$ac_compile") 2>conftest.er1
46245   ac_status=$?
46246   grep -v '^ *+' conftest.er1 >conftest.err
46247   rm -f conftest.er1
46248   cat conftest.err >&5
46249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46250   (exit $ac_status); } && {
46251          test -z "$ac_c_werror_flag" ||
46252          test ! -s conftest.err
46253        } && test -s conftest.$ac_objext; then
46254   ac_cv_header_time=yes
46255 else
46256   $as_echo "$as_me: failed program was:" >&5
46257 sed 's/^/| /' conftest.$ac_ext >&5
46258
46259         ac_cv_header_time=no
46260 fi
46261
46262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46263 fi
46264 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
46265 $as_echo "$ac_cv_header_time" >&6; }
46266 if test $ac_cv_header_time = yes; then
46267
46268 cat >>confdefs.h <<\_ACEOF
46269 #define TIME_WITH_SYS_TIME 1
46270 _ACEOF
46271
46272 fi
46273
46274
46275
46276
46277
46278 { $as_echo "$as_me:$LINENO: checking whether free is declared" >&5
46279 $as_echo_n "checking whether free is declared... " >&6; }
46280 if test "${ac_cv_have_decl_free+set}" = set; then
46281   $as_echo_n "(cached) " >&6
46282 else
46283   cat >conftest.$ac_ext <<_ACEOF
46284 /* confdefs.h.  */
46285 _ACEOF
46286 cat confdefs.h >>conftest.$ac_ext
46287 cat >>conftest.$ac_ext <<_ACEOF
46288 /* end confdefs.h.  */
46289 $ac_includes_default
46290 int
46291 main ()
46292 {
46293 #ifndef free
46294   (void) free;
46295 #endif
46296
46297   ;
46298   return 0;
46299 }
46300 _ACEOF
46301 rm -f conftest.$ac_objext
46302 if { (ac_try="$ac_compile"
46303 case "(($ac_try" in
46304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46305   *) ac_try_echo=$ac_try;;
46306 esac
46307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46308 $as_echo "$ac_try_echo") >&5
46309   (eval "$ac_compile") 2>conftest.er1
46310   ac_status=$?
46311   grep -v '^ *+' conftest.er1 >conftest.err
46312   rm -f conftest.er1
46313   cat conftest.err >&5
46314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46315   (exit $ac_status); } && {
46316          test -z "$ac_c_werror_flag" ||
46317          test ! -s conftest.err
46318        } && test -s conftest.$ac_objext; then
46319   ac_cv_have_decl_free=yes
46320 else
46321   $as_echo "$as_me: failed program was:" >&5
46322 sed 's/^/| /' conftest.$ac_ext >&5
46323
46324         ac_cv_have_decl_free=no
46325 fi
46326
46327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46328 fi
46329 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
46330 $as_echo "$ac_cv_have_decl_free" >&6; }
46331 if test $ac_cv_have_decl_free = yes; then
46332
46333 cat >>confdefs.h <<_ACEOF
46334 #define HAVE_DECL_FREE 1
46335 _ACEOF
46336
46337
46338 else
46339   cat >>confdefs.h <<_ACEOF
46340 #define HAVE_DECL_FREE 0
46341 _ACEOF
46342
46343
46344 fi
46345
46346
46347 { $as_echo "$as_me:$LINENO: checking whether geteuid is declared" >&5
46348 $as_echo_n "checking whether geteuid is declared... " >&6; }
46349 if test "${ac_cv_have_decl_geteuid+set}" = set; then
46350   $as_echo_n "(cached) " >&6
46351 else
46352   cat >conftest.$ac_ext <<_ACEOF
46353 /* confdefs.h.  */
46354 _ACEOF
46355 cat confdefs.h >>conftest.$ac_ext
46356 cat >>conftest.$ac_ext <<_ACEOF
46357 /* end confdefs.h.  */
46358 $ac_includes_default
46359 int
46360 main ()
46361 {
46362 #ifndef geteuid
46363   (void) geteuid;
46364 #endif
46365
46366   ;
46367   return 0;
46368 }
46369 _ACEOF
46370 rm -f conftest.$ac_objext
46371 if { (ac_try="$ac_compile"
46372 case "(($ac_try" in
46373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46374   *) ac_try_echo=$ac_try;;
46375 esac
46376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46377 $as_echo "$ac_try_echo") >&5
46378   (eval "$ac_compile") 2>conftest.er1
46379   ac_status=$?
46380   grep -v '^ *+' conftest.er1 >conftest.err
46381   rm -f conftest.er1
46382   cat conftest.err >&5
46383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46384   (exit $ac_status); } && {
46385          test -z "$ac_c_werror_flag" ||
46386          test ! -s conftest.err
46387        } && test -s conftest.$ac_objext; then
46388   ac_cv_have_decl_geteuid=yes
46389 else
46390   $as_echo "$as_me: failed program was:" >&5
46391 sed 's/^/| /' conftest.$ac_ext >&5
46392
46393         ac_cv_have_decl_geteuid=no
46394 fi
46395
46396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46397 fi
46398 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_geteuid" >&5
46399 $as_echo "$ac_cv_have_decl_geteuid" >&6; }
46400 if test $ac_cv_have_decl_geteuid = yes; then
46401
46402 cat >>confdefs.h <<_ACEOF
46403 #define HAVE_DECL_GETEUID 1
46404 _ACEOF
46405
46406
46407 else
46408   cat >>confdefs.h <<_ACEOF
46409 #define HAVE_DECL_GETEUID 0
46410 _ACEOF
46411
46412
46413 fi
46414
46415
46416 { $as_echo "$as_me:$LINENO: checking whether getlogin is declared" >&5
46417 $as_echo_n "checking whether getlogin is declared... " >&6; }
46418 if test "${ac_cv_have_decl_getlogin+set}" = set; then
46419   $as_echo_n "(cached) " >&6
46420 else
46421   cat >conftest.$ac_ext <<_ACEOF
46422 /* confdefs.h.  */
46423 _ACEOF
46424 cat confdefs.h >>conftest.$ac_ext
46425 cat >>conftest.$ac_ext <<_ACEOF
46426 /* end confdefs.h.  */
46427 $ac_includes_default
46428 int
46429 main ()
46430 {
46431 #ifndef getlogin
46432   (void) getlogin;
46433 #endif
46434
46435   ;
46436   return 0;
46437 }
46438 _ACEOF
46439 rm -f conftest.$ac_objext
46440 if { (ac_try="$ac_compile"
46441 case "(($ac_try" in
46442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46443   *) ac_try_echo=$ac_try;;
46444 esac
46445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46446 $as_echo "$ac_try_echo") >&5
46447   (eval "$ac_compile") 2>conftest.er1
46448   ac_status=$?
46449   grep -v '^ *+' conftest.er1 >conftest.err
46450   rm -f conftest.er1
46451   cat conftest.err >&5
46452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46453   (exit $ac_status); } && {
46454          test -z "$ac_c_werror_flag" ||
46455          test ! -s conftest.err
46456        } && test -s conftest.$ac_objext; then
46457   ac_cv_have_decl_getlogin=yes
46458 else
46459   $as_echo "$as_me: failed program was:" >&5
46460 sed 's/^/| /' conftest.$ac_ext >&5
46461
46462         ac_cv_have_decl_getlogin=no
46463 fi
46464
46465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46466 fi
46467 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getlogin" >&5
46468 $as_echo "$ac_cv_have_decl_getlogin" >&6; }
46469 if test $ac_cv_have_decl_getlogin = yes; then
46470
46471 cat >>confdefs.h <<_ACEOF
46472 #define HAVE_DECL_GETLOGIN 1
46473 _ACEOF
46474
46475
46476 else
46477   cat >>confdefs.h <<_ACEOF
46478 #define HAVE_DECL_GETLOGIN 0
46479 _ACEOF
46480
46481
46482 fi
46483
46484
46485 { $as_echo "$as_me:$LINENO: checking whether getuid is declared" >&5
46486 $as_echo_n "checking whether getuid is declared... " >&6; }
46487 if test "${ac_cv_have_decl_getuid+set}" = set; then
46488   $as_echo_n "(cached) " >&6
46489 else
46490   cat >conftest.$ac_ext <<_ACEOF
46491 /* confdefs.h.  */
46492 _ACEOF
46493 cat confdefs.h >>conftest.$ac_ext
46494 cat >>conftest.$ac_ext <<_ACEOF
46495 /* end confdefs.h.  */
46496 $ac_includes_default
46497 int
46498 main ()
46499 {
46500 #ifndef getuid
46501   (void) getuid;
46502 #endif
46503
46504   ;
46505   return 0;
46506 }
46507 _ACEOF
46508 rm -f conftest.$ac_objext
46509 if { (ac_try="$ac_compile"
46510 case "(($ac_try" in
46511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46512   *) ac_try_echo=$ac_try;;
46513 esac
46514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46515 $as_echo "$ac_try_echo") >&5
46516   (eval "$ac_compile") 2>conftest.er1
46517   ac_status=$?
46518   grep -v '^ *+' conftest.er1 >conftest.err
46519   rm -f conftest.er1
46520   cat conftest.err >&5
46521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46522   (exit $ac_status); } && {
46523          test -z "$ac_c_werror_flag" ||
46524          test ! -s conftest.err
46525        } && test -s conftest.$ac_objext; then
46526   ac_cv_have_decl_getuid=yes
46527 else
46528   $as_echo "$as_me: failed program was:" >&5
46529 sed 's/^/| /' conftest.$ac_ext >&5
46530
46531         ac_cv_have_decl_getuid=no
46532 fi
46533
46534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46535 fi
46536 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getuid" >&5
46537 $as_echo "$ac_cv_have_decl_getuid" >&6; }
46538 if test $ac_cv_have_decl_getuid = yes; then
46539
46540 cat >>confdefs.h <<_ACEOF
46541 #define HAVE_DECL_GETUID 1
46542 _ACEOF
46543
46544
46545 else
46546   cat >>confdefs.h <<_ACEOF
46547 #define HAVE_DECL_GETUID 0
46548 _ACEOF
46549
46550
46551 fi
46552
46553
46554 { $as_echo "$as_me:$LINENO: checking whether lseek is declared" >&5
46555 $as_echo_n "checking whether lseek is declared... " >&6; }
46556 if test "${ac_cv_have_decl_lseek+set}" = set; then
46557   $as_echo_n "(cached) " >&6
46558 else
46559   cat >conftest.$ac_ext <<_ACEOF
46560 /* confdefs.h.  */
46561 _ACEOF
46562 cat confdefs.h >>conftest.$ac_ext
46563 cat >>conftest.$ac_ext <<_ACEOF
46564 /* end confdefs.h.  */
46565 $ac_includes_default
46566 int
46567 main ()
46568 {
46569 #ifndef lseek
46570   (void) lseek;
46571 #endif
46572
46573   ;
46574   return 0;
46575 }
46576 _ACEOF
46577 rm -f conftest.$ac_objext
46578 if { (ac_try="$ac_compile"
46579 case "(($ac_try" in
46580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46581   *) ac_try_echo=$ac_try;;
46582 esac
46583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46584 $as_echo "$ac_try_echo") >&5
46585   (eval "$ac_compile") 2>conftest.er1
46586   ac_status=$?
46587   grep -v '^ *+' conftest.er1 >conftest.err
46588   rm -f conftest.er1
46589   cat conftest.err >&5
46590   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46591   (exit $ac_status); } && {
46592          test -z "$ac_c_werror_flag" ||
46593          test ! -s conftest.err
46594        } && test -s conftest.$ac_objext; then
46595   ac_cv_have_decl_lseek=yes
46596 else
46597   $as_echo "$as_me: failed program was:" >&5
46598 sed 's/^/| /' conftest.$ac_ext >&5
46599
46600         ac_cv_have_decl_lseek=no
46601 fi
46602
46603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46604 fi
46605 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek" >&5
46606 $as_echo "$ac_cv_have_decl_lseek" >&6; }
46607 if test $ac_cv_have_decl_lseek = yes; then
46608
46609 cat >>confdefs.h <<_ACEOF
46610 #define HAVE_DECL_LSEEK 1
46611 _ACEOF
46612
46613
46614 else
46615   cat >>confdefs.h <<_ACEOF
46616 #define HAVE_DECL_LSEEK 0
46617 _ACEOF
46618
46619
46620 fi
46621
46622
46623 { $as_echo "$as_me:$LINENO: checking whether malloc is declared" >&5
46624 $as_echo_n "checking whether malloc is declared... " >&6; }
46625 if test "${ac_cv_have_decl_malloc+set}" = set; then
46626   $as_echo_n "(cached) " >&6
46627 else
46628   cat >conftest.$ac_ext <<_ACEOF
46629 /* confdefs.h.  */
46630 _ACEOF
46631 cat confdefs.h >>conftest.$ac_ext
46632 cat >>conftest.$ac_ext <<_ACEOF
46633 /* end confdefs.h.  */
46634 $ac_includes_default
46635 int
46636 main ()
46637 {
46638 #ifndef malloc
46639   (void) malloc;
46640 #endif
46641
46642   ;
46643   return 0;
46644 }
46645 _ACEOF
46646 rm -f conftest.$ac_objext
46647 if { (ac_try="$ac_compile"
46648 case "(($ac_try" in
46649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46650   *) ac_try_echo=$ac_try;;
46651 esac
46652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46653 $as_echo "$ac_try_echo") >&5
46654   (eval "$ac_compile") 2>conftest.er1
46655   ac_status=$?
46656   grep -v '^ *+' conftest.er1 >conftest.err
46657   rm -f conftest.er1
46658   cat conftest.err >&5
46659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46660   (exit $ac_status); } && {
46661          test -z "$ac_c_werror_flag" ||
46662          test ! -s conftest.err
46663        } && test -s conftest.$ac_objext; then
46664   ac_cv_have_decl_malloc=yes
46665 else
46666   $as_echo "$as_me: failed program was:" >&5
46667 sed 's/^/| /' conftest.$ac_ext >&5
46668
46669         ac_cv_have_decl_malloc=no
46670 fi
46671
46672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46673 fi
46674 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
46675 $as_echo "$ac_cv_have_decl_malloc" >&6; }
46676 if test $ac_cv_have_decl_malloc = yes; then
46677
46678 cat >>confdefs.h <<_ACEOF
46679 #define HAVE_DECL_MALLOC 1
46680 _ACEOF
46681
46682
46683 else
46684   cat >>confdefs.h <<_ACEOF
46685 #define HAVE_DECL_MALLOC 0
46686 _ACEOF
46687
46688
46689 fi
46690
46691
46692 { $as_echo "$as_me:$LINENO: checking whether memchr is declared" >&5
46693 $as_echo_n "checking whether memchr is declared... " >&6; }
46694 if test "${ac_cv_have_decl_memchr+set}" = set; then
46695   $as_echo_n "(cached) " >&6
46696 else
46697   cat >conftest.$ac_ext <<_ACEOF
46698 /* confdefs.h.  */
46699 _ACEOF
46700 cat confdefs.h >>conftest.$ac_ext
46701 cat >>conftest.$ac_ext <<_ACEOF
46702 /* end confdefs.h.  */
46703 $ac_includes_default
46704 int
46705 main ()
46706 {
46707 #ifndef memchr
46708   (void) memchr;
46709 #endif
46710
46711   ;
46712   return 0;
46713 }
46714 _ACEOF
46715 rm -f conftest.$ac_objext
46716 if { (ac_try="$ac_compile"
46717 case "(($ac_try" in
46718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46719   *) ac_try_echo=$ac_try;;
46720 esac
46721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46722 $as_echo "$ac_try_echo") >&5
46723   (eval "$ac_compile") 2>conftest.er1
46724   ac_status=$?
46725   grep -v '^ *+' conftest.er1 >conftest.err
46726   rm -f conftest.er1
46727   cat conftest.err >&5
46728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46729   (exit $ac_status); } && {
46730          test -z "$ac_c_werror_flag" ||
46731          test ! -s conftest.err
46732        } && test -s conftest.$ac_objext; then
46733   ac_cv_have_decl_memchr=yes
46734 else
46735   $as_echo "$as_me: failed program was:" >&5
46736 sed 's/^/| /' conftest.$ac_ext >&5
46737
46738         ac_cv_have_decl_memchr=no
46739 fi
46740
46741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46742 fi
46743 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
46744 $as_echo "$ac_cv_have_decl_memchr" >&6; }
46745 if test $ac_cv_have_decl_memchr = yes; then
46746
46747 cat >>confdefs.h <<_ACEOF
46748 #define HAVE_DECL_MEMCHR 1
46749 _ACEOF
46750
46751
46752 else
46753   cat >>confdefs.h <<_ACEOF
46754 #define HAVE_DECL_MEMCHR 0
46755 _ACEOF
46756
46757
46758 fi
46759
46760
46761 { $as_echo "$as_me:$LINENO: checking whether realloc is declared" >&5
46762 $as_echo_n "checking whether realloc is declared... " >&6; }
46763 if test "${ac_cv_have_decl_realloc+set}" = set; then
46764   $as_echo_n "(cached) " >&6
46765 else
46766   cat >conftest.$ac_ext <<_ACEOF
46767 /* confdefs.h.  */
46768 _ACEOF
46769 cat confdefs.h >>conftest.$ac_ext
46770 cat >>conftest.$ac_ext <<_ACEOF
46771 /* end confdefs.h.  */
46772 $ac_includes_default
46773 int
46774 main ()
46775 {
46776 #ifndef realloc
46777   (void) realloc;
46778 #endif
46779
46780   ;
46781   return 0;
46782 }
46783 _ACEOF
46784 rm -f conftest.$ac_objext
46785 if { (ac_try="$ac_compile"
46786 case "(($ac_try" in
46787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46788   *) ac_try_echo=$ac_try;;
46789 esac
46790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46791 $as_echo "$ac_try_echo") >&5
46792   (eval "$ac_compile") 2>conftest.er1
46793   ac_status=$?
46794   grep -v '^ *+' conftest.er1 >conftest.err
46795   rm -f conftest.er1
46796   cat conftest.err >&5
46797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46798   (exit $ac_status); } && {
46799          test -z "$ac_c_werror_flag" ||
46800          test ! -s conftest.err
46801        } && test -s conftest.$ac_objext; then
46802   ac_cv_have_decl_realloc=yes
46803 else
46804   $as_echo "$as_me: failed program was:" >&5
46805 sed 's/^/| /' conftest.$ac_ext >&5
46806
46807         ac_cv_have_decl_realloc=no
46808 fi
46809
46810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46811 fi
46812 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
46813 $as_echo "$ac_cv_have_decl_realloc" >&6; }
46814 if test $ac_cv_have_decl_realloc = yes; then
46815
46816 cat >>confdefs.h <<_ACEOF
46817 #define HAVE_DECL_REALLOC 1
46818 _ACEOF
46819
46820
46821 else
46822   cat >>confdefs.h <<_ACEOF
46823 #define HAVE_DECL_REALLOC 0
46824 _ACEOF
46825
46826
46827 fi
46828
46829
46830
46831
46832
46833
46834
46835
46836
46837
46838
46839
46840
46841   headers='
46842 #include <sys/types.h>
46843
46844 #include <unistd.h>
46845
46846 #if HAVE_GRP_H
46847 # include <grp.h>
46848 #endif
46849
46850 #if HAVE_PWD_H
46851 # include <pwd.h>
46852 #endif
46853 '
46854   { $as_echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
46855 $as_echo_n "checking whether getgrgid is declared... " >&6; }
46856 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
46857   $as_echo_n "(cached) " >&6
46858 else
46859   cat >conftest.$ac_ext <<_ACEOF
46860 /* confdefs.h.  */
46861 _ACEOF
46862 cat confdefs.h >>conftest.$ac_ext
46863 cat >>conftest.$ac_ext <<_ACEOF
46864 /* end confdefs.h.  */
46865 $headers
46866
46867 int
46868 main ()
46869 {
46870 #ifndef getgrgid
46871   (void) getgrgid;
46872 #endif
46873
46874   ;
46875   return 0;
46876 }
46877 _ACEOF
46878 rm -f conftest.$ac_objext
46879 if { (ac_try="$ac_compile"
46880 case "(($ac_try" in
46881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46882   *) ac_try_echo=$ac_try;;
46883 esac
46884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46885 $as_echo "$ac_try_echo") >&5
46886   (eval "$ac_compile") 2>conftest.er1
46887   ac_status=$?
46888   grep -v '^ *+' conftest.er1 >conftest.err
46889   rm -f conftest.er1
46890   cat conftest.err >&5
46891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46892   (exit $ac_status); } && {
46893          test -z "$ac_c_werror_flag" ||
46894          test ! -s conftest.err
46895        } && test -s conftest.$ac_objext; then
46896   ac_cv_have_decl_getgrgid=yes
46897 else
46898   $as_echo "$as_me: failed program was:" >&5
46899 sed 's/^/| /' conftest.$ac_ext >&5
46900
46901         ac_cv_have_decl_getgrgid=no
46902 fi
46903
46904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46905 fi
46906 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
46907 $as_echo "$ac_cv_have_decl_getgrgid" >&6; }
46908 if test $ac_cv_have_decl_getgrgid = yes; then
46909
46910 cat >>confdefs.h <<_ACEOF
46911 #define HAVE_DECL_GETGRGID 1
46912 _ACEOF
46913
46914
46915 else
46916   cat >>confdefs.h <<_ACEOF
46917 #define HAVE_DECL_GETGRGID 0
46918 _ACEOF
46919
46920
46921 fi
46922 { $as_echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
46923 $as_echo_n "checking whether getpwuid is declared... " >&6; }
46924 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
46925   $as_echo_n "(cached) " >&6
46926 else
46927   cat >conftest.$ac_ext <<_ACEOF
46928 /* confdefs.h.  */
46929 _ACEOF
46930 cat confdefs.h >>conftest.$ac_ext
46931 cat >>conftest.$ac_ext <<_ACEOF
46932 /* end confdefs.h.  */
46933 $headers
46934
46935 int
46936 main ()
46937 {
46938 #ifndef getpwuid
46939   (void) getpwuid;
46940 #endif
46941
46942   ;
46943   return 0;
46944 }
46945 _ACEOF
46946 rm -f conftest.$ac_objext
46947 if { (ac_try="$ac_compile"
46948 case "(($ac_try" in
46949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46950   *) ac_try_echo=$ac_try;;
46951 esac
46952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46953 $as_echo "$ac_try_echo") >&5
46954   (eval "$ac_compile") 2>conftest.er1
46955   ac_status=$?
46956   grep -v '^ *+' conftest.er1 >conftest.err
46957   rm -f conftest.er1
46958   cat conftest.err >&5
46959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46960   (exit $ac_status); } && {
46961          test -z "$ac_c_werror_flag" ||
46962          test ! -s conftest.err
46963        } && test -s conftest.$ac_objext; then
46964   ac_cv_have_decl_getpwuid=yes
46965 else
46966   $as_echo "$as_me: failed program was:" >&5
46967 sed 's/^/| /' conftest.$ac_ext >&5
46968
46969         ac_cv_have_decl_getpwuid=no
46970 fi
46971
46972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46973 fi
46974 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
46975 $as_echo "$ac_cv_have_decl_getpwuid" >&6; }
46976 if test $ac_cv_have_decl_getpwuid = yes; then
46977
46978 cat >>confdefs.h <<_ACEOF
46979 #define HAVE_DECL_GETPWUID 1
46980 _ACEOF
46981
46982
46983 else
46984   cat >>confdefs.h <<_ACEOF
46985 #define HAVE_DECL_GETPWUID 0
46986 _ACEOF
46987
46988
46989 fi
46990 { $as_echo "$as_me:$LINENO: checking whether ttyname is declared" >&5
46991 $as_echo_n "checking whether ttyname is declared... " >&6; }
46992 if test "${ac_cv_have_decl_ttyname+set}" = set; then
46993   $as_echo_n "(cached) " >&6
46994 else
46995   cat >conftest.$ac_ext <<_ACEOF
46996 /* confdefs.h.  */
46997 _ACEOF
46998 cat confdefs.h >>conftest.$ac_ext
46999 cat >>conftest.$ac_ext <<_ACEOF
47000 /* end confdefs.h.  */
47001 $headers
47002
47003 int
47004 main ()
47005 {
47006 #ifndef ttyname
47007   (void) ttyname;
47008 #endif
47009
47010   ;
47011   return 0;
47012 }
47013 _ACEOF
47014 rm -f conftest.$ac_objext
47015 if { (ac_try="$ac_compile"
47016 case "(($ac_try" in
47017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47018   *) ac_try_echo=$ac_try;;
47019 esac
47020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47021 $as_echo "$ac_try_echo") >&5
47022   (eval "$ac_compile") 2>conftest.er1
47023   ac_status=$?
47024   grep -v '^ *+' conftest.er1 >conftest.err
47025   rm -f conftest.er1
47026   cat conftest.err >&5
47027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47028   (exit $ac_status); } && {
47029          test -z "$ac_c_werror_flag" ||
47030          test ! -s conftest.err
47031        } && test -s conftest.$ac_objext; then
47032   ac_cv_have_decl_ttyname=yes
47033 else
47034   $as_echo "$as_me: failed program was:" >&5
47035 sed 's/^/| /' conftest.$ac_ext >&5
47036
47037         ac_cv_have_decl_ttyname=no
47038 fi
47039
47040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47041 fi
47042 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ttyname" >&5
47043 $as_echo "$ac_cv_have_decl_ttyname" >&6; }
47044 if test $ac_cv_have_decl_ttyname = yes; then
47045
47046 cat >>confdefs.h <<_ACEOF
47047 #define HAVE_DECL_TTYNAME 1
47048 _ACEOF
47049
47050
47051 else
47052   cat >>confdefs.h <<_ACEOF
47053 #define HAVE_DECL_TTYNAME 0
47054 _ACEOF
47055
47056
47057 fi
47058
47059
47060
47061   { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5
47062 $as_echo_n "checking whether isblank is declared... " >&6; }
47063 if test "${ac_cv_have_decl_isblank+set}" = set; then
47064   $as_echo_n "(cached) " >&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 #include <ctype.h>
47073
47074 int
47075 main ()
47076 {
47077 #ifndef isblank
47078   (void) isblank;
47079 #endif
47080
47081   ;
47082   return 0;
47083 }
47084 _ACEOF
47085 rm -f conftest.$ac_objext
47086 if { (ac_try="$ac_compile"
47087 case "(($ac_try" in
47088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47089   *) ac_try_echo=$ac_try;;
47090 esac
47091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47092 $as_echo "$ac_try_echo") >&5
47093   (eval "$ac_compile") 2>conftest.er1
47094   ac_status=$?
47095   grep -v '^ *+' conftest.er1 >conftest.err
47096   rm -f conftest.er1
47097   cat conftest.err >&5
47098   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47099   (exit $ac_status); } && {
47100          test -z "$ac_c_werror_flag" ||
47101          test ! -s conftest.err
47102        } && test -s conftest.$ac_objext; then
47103   ac_cv_have_decl_isblank=yes
47104 else
47105   $as_echo "$as_me: failed program was:" >&5
47106 sed 's/^/| /' conftest.$ac_ext >&5
47107
47108         ac_cv_have_decl_isblank=no
47109 fi
47110
47111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47112 fi
47113 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
47114 $as_echo "$ac_cv_have_decl_isblank" >&6; }
47115 if test $ac_cv_have_decl_isblank = yes; then
47116
47117 cat >>confdefs.h <<_ACEOF
47118 #define HAVE_DECL_ISBLANK 1
47119 _ACEOF
47120
47121
47122 else
47123   cat >>confdefs.h <<_ACEOF
47124 #define HAVE_DECL_ISBLANK 0
47125 _ACEOF
47126
47127
47128 fi
47129
47130
47131
47132
47133
47134
47135
47136
47137
47138
47139
47140
47141
47142
47143
47144
47145
47146
47147
47148
47149
47150
47151
47152
47153
47154
47155
47156
47157
47158
47159
47160
47161
47162
47163
47164
47165
47166
47167
47168
47169
47170
47171
47172 cat >>confdefs.h <<\_ACEOF
47173 #define PREFER_NONREENTRANT_EUIDACCESS 1
47174 _ACEOF
47175
47176
47177
47178
47179   case " $LIBOBJS " in
47180   *" euidaccess-stat.$ac_objext "* ) ;;
47181   *) LIBOBJS="$LIBOBJS euidaccess-stat.$ac_objext"
47182  ;;
47183 esac
47184
47185
47186
47187
47188   case " $LIBOBJS " in
47189   *" fd-reopen.$ac_objext "* ) ;;
47190   *) LIBOBJS="$LIBOBJS fd-reopen.$ac_objext"
47191  ;;
47192 esac
47193
47194
47195
47196
47197   case " $LIBOBJS " in
47198   *" xfts.$ac_objext "* ) ;;
47199   *) LIBOBJS="$LIBOBJS xfts.$ac_objext"
47200  ;;
47201 esac
47202
47203
47204     :
47205
47206
47207
47208
47209
47210   case " $LIBOBJS " in
47211   *" memxfrm.$ac_objext "* ) ;;
47212   *) LIBOBJS="$LIBOBJS memxfrm.$ac_objext"
47213  ;;
47214 esac
47215
47216
47217
47218
47219
47220
47221
47222
47223
47224
47225
47226
47227
47228   case " $LIBOBJS " in
47229   *" randint.$ac_objext "* ) ;;
47230   *) LIBOBJS="$LIBOBJS randint.$ac_objext"
47231  ;;
47232 esac
47233
47234
47235
47236
47237
47238
47239   case " $LIBOBJS " in
47240   *" randperm.$ac_objext "* ) ;;
47241   *) LIBOBJS="$LIBOBJS randperm.$ac_objext"
47242  ;;
47243 esac
47244
47245
47246
47247
47248   case " $LIBOBJS " in
47249   *" randread.$ac_objext "* ) ;;
47250   *) LIBOBJS="$LIBOBJS randread.$ac_objext"
47251  ;;
47252 esac
47253
47254   case " $LIBOBJS " in
47255   *" rand-isaac.$ac_objext "* ) ;;
47256   *) LIBOBJS="$LIBOBJS rand-isaac.$ac_objext"
47257  ;;
47258 esac
47259
47260
47261
47262
47263   case " $LIBOBJS " in
47264   *" sha256.$ac_objext "* ) ;;
47265   *) LIBOBJS="$LIBOBJS sha256.$ac_objext"
47266  ;;
47267 esac
47268
47269
47270
47271   :
47272
47273
47274
47275   case " $LIBOBJS " in
47276   *" sha512.$ac_objext "* ) ;;
47277   *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
47278  ;;
47279 esac
47280
47281
47282
47283   :
47284
47285 { $as_echo "$as_me:$LINENO: checking for inline" >&5
47286 $as_echo_n "checking for inline... " >&6; }
47287 if test "${ac_cv_c_inline+set}" = set; then
47288   $as_echo_n "(cached) " >&6
47289 else
47290   ac_cv_c_inline=no
47291 for ac_kw in inline __inline__ __inline; do
47292   cat >conftest.$ac_ext <<_ACEOF
47293 /* confdefs.h.  */
47294 _ACEOF
47295 cat confdefs.h >>conftest.$ac_ext
47296 cat >>conftest.$ac_ext <<_ACEOF
47297 /* end confdefs.h.  */
47298 #ifndef __cplusplus
47299 typedef int foo_t;
47300 static $ac_kw foo_t static_foo () {return 0; }
47301 $ac_kw foo_t foo () {return 0; }
47302 #endif
47303
47304 _ACEOF
47305 rm -f conftest.$ac_objext
47306 if { (ac_try="$ac_compile"
47307 case "(($ac_try" in
47308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47309   *) ac_try_echo=$ac_try;;
47310 esac
47311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47312 $as_echo "$ac_try_echo") >&5
47313   (eval "$ac_compile") 2>conftest.er1
47314   ac_status=$?
47315   grep -v '^ *+' conftest.er1 >conftest.err
47316   rm -f conftest.er1
47317   cat conftest.err >&5
47318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47319   (exit $ac_status); } && {
47320          test -z "$ac_c_werror_flag" ||
47321          test ! -s conftest.err
47322        } && test -s conftest.$ac_objext; then
47323   ac_cv_c_inline=$ac_kw
47324 else
47325   $as_echo "$as_me: failed program was:" >&5
47326 sed 's/^/| /' conftest.$ac_ext >&5
47327
47328
47329 fi
47330
47331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47332   test "$ac_cv_c_inline" != no && break
47333 done
47334
47335 fi
47336 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
47337 $as_echo "$ac_cv_c_inline" >&6; }
47338
47339
47340 case $ac_cv_c_inline in
47341   inline | yes) ;;
47342   *)
47343     case $ac_cv_c_inline in
47344       no) ac_val=;;
47345       *) ac_val=$ac_cv_c_inline;;
47346     esac
47347     cat >>confdefs.h <<_ACEOF
47348 #ifndef __cplusplus
47349 #define inline $ac_val
47350 #endif
47351 _ACEOF
47352     ;;
47353 esac
47354
47355
47356
47357   case " $LIBOBJS " in
47358   *" strintcmp.$ac_objext "* ) ;;
47359   *) LIBOBJS="$LIBOBJS strintcmp.$ac_objext"
47360  ;;
47361 esac
47362
47363
47364
47365
47366
47367
47368   case " $LIBOBJS " in
47369   *" strnumcmp.$ac_objext "* ) ;;
47370   *) LIBOBJS="$LIBOBJS strnumcmp.$ac_objext"
47371  ;;
47372 esac
47373
47374
47375
47376
47377
47378   # gnulib settings.
47379
47380
47381   # We don't use c-stack.c.
47382   # AC_REQUIRE([gl_C_STACK])
47383
47384   # Invoke macros of modules that may migrate into gnulib.
47385   # There's no need to list gnulib modules here, since gnulib-tool
47386   # handles that; see ../bootstrap.conf.
47387
47388
47389
47390
47391
47392
47393
47394
47395
47396
47397
47398
47399
47400 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
47401 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
47402 if test "${ac_cv_sys_largefile_source+set}" = set; then
47403   $as_echo_n "(cached) " >&6
47404 else
47405   while :; do
47406   cat >conftest.$ac_ext <<_ACEOF
47407 /* confdefs.h.  */
47408 _ACEOF
47409 cat confdefs.h >>conftest.$ac_ext
47410 cat >>conftest.$ac_ext <<_ACEOF
47411 /* end confdefs.h.  */
47412 #include <sys/types.h> /* for off_t */
47413      #include <stdio.h>
47414 int
47415 main ()
47416 {
47417 int (*fp) (FILE *, off_t, int) = fseeko;
47418      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
47419   ;
47420   return 0;
47421 }
47422 _ACEOF
47423 rm -f conftest.$ac_objext conftest$ac_exeext
47424 if { (ac_try="$ac_link"
47425 case "(($ac_try" in
47426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47427   *) ac_try_echo=$ac_try;;
47428 esac
47429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47430 $as_echo "$ac_try_echo") >&5
47431   (eval "$ac_link") 2>conftest.er1
47432   ac_status=$?
47433   grep -v '^ *+' conftest.er1 >conftest.err
47434   rm -f conftest.er1
47435   cat conftest.err >&5
47436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47437   (exit $ac_status); } && {
47438          test -z "$ac_c_werror_flag" ||
47439          test ! -s conftest.err
47440        } && test -s conftest$ac_exeext &&
47441        $as_test_x conftest$ac_exeext; then
47442   ac_cv_sys_largefile_source=no; break
47443 else
47444   $as_echo "$as_me: failed program was:" >&5
47445 sed 's/^/| /' conftest.$ac_ext >&5
47446
47447
47448 fi
47449
47450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47451       conftest$ac_exeext conftest.$ac_ext
47452   cat >conftest.$ac_ext <<_ACEOF
47453 /* confdefs.h.  */
47454 _ACEOF
47455 cat confdefs.h >>conftest.$ac_ext
47456 cat >>conftest.$ac_ext <<_ACEOF
47457 /* end confdefs.h.  */
47458 #define _LARGEFILE_SOURCE 1
47459 #include <sys/types.h> /* for off_t */
47460      #include <stdio.h>
47461 int
47462 main ()
47463 {
47464 int (*fp) (FILE *, off_t, int) = fseeko;
47465      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
47466   ;
47467   return 0;
47468 }
47469 _ACEOF
47470 rm -f conftest.$ac_objext conftest$ac_exeext
47471 if { (ac_try="$ac_link"
47472 case "(($ac_try" in
47473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47474   *) ac_try_echo=$ac_try;;
47475 esac
47476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47477 $as_echo "$ac_try_echo") >&5
47478   (eval "$ac_link") 2>conftest.er1
47479   ac_status=$?
47480   grep -v '^ *+' conftest.er1 >conftest.err
47481   rm -f conftest.er1
47482   cat conftest.err >&5
47483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47484   (exit $ac_status); } && {
47485          test -z "$ac_c_werror_flag" ||
47486          test ! -s conftest.err
47487        } && test -s conftest$ac_exeext &&
47488        $as_test_x conftest$ac_exeext; then
47489   ac_cv_sys_largefile_source=1; break
47490 else
47491   $as_echo "$as_me: failed program was:" >&5
47492 sed 's/^/| /' conftest.$ac_ext >&5
47493
47494
47495 fi
47496
47497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47498       conftest$ac_exeext conftest.$ac_ext
47499   ac_cv_sys_largefile_source=unknown
47500   break
47501 done
47502 fi
47503 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
47504 $as_echo "$ac_cv_sys_largefile_source" >&6; }
47505 case $ac_cv_sys_largefile_source in #(
47506   no | unknown) ;;
47507   *)
47508 cat >>confdefs.h <<_ACEOF
47509 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
47510 _ACEOF
47511 ;;
47512 esac
47513 rm -f conftest*
47514
47515 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
47516 # in glibc 2.1.3, but that breaks too many other things.
47517 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
47518 if test $ac_cv_sys_largefile_source != unknown; then
47519
47520 cat >>confdefs.h <<\_ACEOF
47521 #define HAVE_FSEEKO 1
47522 _ACEOF
47523
47524 fi
47525
47526
47527
47528
47529
47530
47531
47532
47533
47534
47535
47536
47537
47538
47539
47540
47541
47542
47543
47544
47545
47546
47547
47548
47549
47550
47551
47552
47553   GNU_PACKAGE="GNU $PACKAGE"
47554
47555 cat >>confdefs.h <<_ACEOF
47556 #define GNU_PACKAGE "$GNU_PACKAGE"
47557 _ACEOF
47558
47559
47560
47561
47562 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
47563
47564
47565
47566
47567
47568
47569
47570
47571
47572
47573
47574
47575
47576
47577
47578
47579
47580
47581   { $as_echo "$as_me:$LINENO: checking for struct stat.st_author" >&5
47582 $as_echo_n "checking for struct stat.st_author... " >&6; }
47583 if test "${ac_cv_member_struct_stat_st_author+set}" = set; then
47584   $as_echo_n "(cached) " >&6
47585 else
47586   cat >conftest.$ac_ext <<_ACEOF
47587 /* confdefs.h.  */
47588 _ACEOF
47589 cat confdefs.h >>conftest.$ac_ext
47590 cat >>conftest.$ac_ext <<_ACEOF
47591 /* end confdefs.h.  */
47592 $ac_includes_default
47593 #include <sys/stat.h>
47594
47595
47596 int
47597 main ()
47598 {
47599 static struct stat ac_aggr;
47600 if (ac_aggr.st_author)
47601 return 0;
47602   ;
47603   return 0;
47604 }
47605 _ACEOF
47606 rm -f conftest.$ac_objext
47607 if { (ac_try="$ac_compile"
47608 case "(($ac_try" in
47609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47610   *) ac_try_echo=$ac_try;;
47611 esac
47612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47613 $as_echo "$ac_try_echo") >&5
47614   (eval "$ac_compile") 2>conftest.er1
47615   ac_status=$?
47616   grep -v '^ *+' conftest.er1 >conftest.err
47617   rm -f conftest.er1
47618   cat conftest.err >&5
47619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47620   (exit $ac_status); } && {
47621          test -z "$ac_c_werror_flag" ||
47622          test ! -s conftest.err
47623        } && test -s conftest.$ac_objext; then
47624   ac_cv_member_struct_stat_st_author=yes
47625 else
47626   $as_echo "$as_me: failed program was:" >&5
47627 sed 's/^/| /' conftest.$ac_ext >&5
47628
47629         cat >conftest.$ac_ext <<_ACEOF
47630 /* confdefs.h.  */
47631 _ACEOF
47632 cat confdefs.h >>conftest.$ac_ext
47633 cat >>conftest.$ac_ext <<_ACEOF
47634 /* end confdefs.h.  */
47635 $ac_includes_default
47636 #include <sys/stat.h>
47637
47638
47639 int
47640 main ()
47641 {
47642 static struct stat ac_aggr;
47643 if (sizeof ac_aggr.st_author)
47644 return 0;
47645   ;
47646   return 0;
47647 }
47648 _ACEOF
47649 rm -f conftest.$ac_objext
47650 if { (ac_try="$ac_compile"
47651 case "(($ac_try" in
47652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47653   *) ac_try_echo=$ac_try;;
47654 esac
47655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47656 $as_echo "$ac_try_echo") >&5
47657   (eval "$ac_compile") 2>conftest.er1
47658   ac_status=$?
47659   grep -v '^ *+' conftest.er1 >conftest.err
47660   rm -f conftest.er1
47661   cat conftest.err >&5
47662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47663   (exit $ac_status); } && {
47664          test -z "$ac_c_werror_flag" ||
47665          test ! -s conftest.err
47666        } && test -s conftest.$ac_objext; then
47667   ac_cv_member_struct_stat_st_author=yes
47668 else
47669   $as_echo "$as_me: failed program was:" >&5
47670 sed 's/^/| /' conftest.$ac_ext >&5
47671
47672         ac_cv_member_struct_stat_st_author=no
47673 fi
47674
47675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47676 fi
47677
47678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47679 fi
47680 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_author" >&5
47681 $as_echo "$ac_cv_member_struct_stat_st_author" >&6; }
47682 if test $ac_cv_member_struct_stat_st_author = yes; then
47683
47684 cat >>confdefs.h <<_ACEOF
47685 #define HAVE_STRUCT_STAT_ST_AUTHOR 1
47686 _ACEOF
47687
47688
47689 fi
47690
47691
47692
47693
47694
47695
47696
47697
47698
47699
47700   { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
47701 $as_echo_n "checking for ino_t... " >&6; }
47702 if test "${ac_cv_type_ino_t+set}" = set; then
47703   $as_echo_n "(cached) " >&6
47704 else
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 $ac_includes_default
47712 typedef ino_t ac__type_new_;
47713 int
47714 main ()
47715 {
47716 if ((ac__type_new_ *) 0)
47717   return 0;
47718 if (sizeof (ac__type_new_))
47719   return 0;
47720   ;
47721   return 0;
47722 }
47723 _ACEOF
47724 rm -f conftest.$ac_objext
47725 if { (ac_try="$ac_compile"
47726 case "(($ac_try" in
47727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47728   *) ac_try_echo=$ac_try;;
47729 esac
47730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47731 $as_echo "$ac_try_echo") >&5
47732   (eval "$ac_compile") 2>conftest.er1
47733   ac_status=$?
47734   grep -v '^ *+' conftest.er1 >conftest.err
47735   rm -f conftest.er1
47736   cat conftest.err >&5
47737   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47738   (exit $ac_status); } && {
47739          test -z "$ac_c_werror_flag" ||
47740          test ! -s conftest.err
47741        } && test -s conftest.$ac_objext; then
47742   ac_cv_type_ino_t=yes
47743 else
47744   $as_echo "$as_me: failed program was:" >&5
47745 sed 's/^/| /' conftest.$ac_ext >&5
47746
47747         ac_cv_type_ino_t=no
47748 fi
47749
47750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47751 fi
47752 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
47753 $as_echo "$ac_cv_type_ino_t" >&6; }
47754 if test $ac_cv_type_ino_t = yes; then
47755   :
47756 else
47757
47758 cat >>confdefs.h <<_ACEOF
47759 #define ino_t unsigned long int
47760 _ACEOF
47761
47762 fi
47763
47764
47765       { $as_echo "$as_me:$LINENO: checking for major_t" >&5
47766 $as_echo_n "checking for major_t... " >&6; }
47767 if test "${ac_cv_type_major_t+set}" = set; then
47768   $as_echo_n "(cached) " >&6
47769 else
47770   cat >conftest.$ac_ext <<_ACEOF
47771 /* confdefs.h.  */
47772 _ACEOF
47773 cat confdefs.h >>conftest.$ac_ext
47774 cat >>conftest.$ac_ext <<_ACEOF
47775 /* end confdefs.h.  */
47776 $ac_includes_default
47777 typedef major_t ac__type_new_;
47778 int
47779 main ()
47780 {
47781 if ((ac__type_new_ *) 0)
47782   return 0;
47783 if (sizeof (ac__type_new_))
47784   return 0;
47785   ;
47786   return 0;
47787 }
47788 _ACEOF
47789 rm -f conftest.$ac_objext
47790 if { (ac_try="$ac_compile"
47791 case "(($ac_try" in
47792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47793   *) ac_try_echo=$ac_try;;
47794 esac
47795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47796 $as_echo "$ac_try_echo") >&5
47797   (eval "$ac_compile") 2>conftest.er1
47798   ac_status=$?
47799   grep -v '^ *+' conftest.er1 >conftest.err
47800   rm -f conftest.er1
47801   cat conftest.err >&5
47802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47803   (exit $ac_status); } && {
47804          test -z "$ac_c_werror_flag" ||
47805          test ! -s conftest.err
47806        } && test -s conftest.$ac_objext; then
47807   ac_cv_type_major_t=yes
47808 else
47809   $as_echo "$as_me: failed program was:" >&5
47810 sed 's/^/| /' conftest.$ac_ext >&5
47811
47812         ac_cv_type_major_t=no
47813 fi
47814
47815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47816 fi
47817 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
47818 $as_echo "$ac_cv_type_major_t" >&6; }
47819 if test $ac_cv_type_major_t = yes; then
47820   :
47821 else
47822
47823 cat >>confdefs.h <<_ACEOF
47824 #define major_t unsigned int
47825 _ACEOF
47826
47827 fi
47828
47829   { $as_echo "$as_me:$LINENO: checking for minor_t" >&5
47830 $as_echo_n "checking for minor_t... " >&6; }
47831 if test "${ac_cv_type_minor_t+set}" = set; then
47832   $as_echo_n "(cached) " >&6
47833 else
47834   cat >conftest.$ac_ext <<_ACEOF
47835 /* confdefs.h.  */
47836 _ACEOF
47837 cat confdefs.h >>conftest.$ac_ext
47838 cat >>conftest.$ac_ext <<_ACEOF
47839 /* end confdefs.h.  */
47840 $ac_includes_default
47841 typedef minor_t ac__type_new_;
47842 int
47843 main ()
47844 {
47845 if ((ac__type_new_ *) 0)
47846   return 0;
47847 if (sizeof (ac__type_new_))
47848   return 0;
47849   ;
47850   return 0;
47851 }
47852 _ACEOF
47853 rm -f conftest.$ac_objext
47854 if { (ac_try="$ac_compile"
47855 case "(($ac_try" in
47856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47857   *) ac_try_echo=$ac_try;;
47858 esac
47859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47860 $as_echo "$ac_try_echo") >&5
47861   (eval "$ac_compile") 2>conftest.er1
47862   ac_status=$?
47863   grep -v '^ *+' conftest.er1 >conftest.err
47864   rm -f conftest.er1
47865   cat conftest.err >&5
47866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47867   (exit $ac_status); } && {
47868          test -z "$ac_c_werror_flag" ||
47869          test ! -s conftest.err
47870        } && test -s conftest.$ac_objext; then
47871   ac_cv_type_minor_t=yes
47872 else
47873   $as_echo "$as_me: failed program was:" >&5
47874 sed 's/^/| /' conftest.$ac_ext >&5
47875
47876         ac_cv_type_minor_t=no
47877 fi
47878
47879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47880 fi
47881 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
47882 $as_echo "$ac_cv_type_minor_t" >&6; }
47883 if test $ac_cv_type_minor_t = yes; then
47884   :
47885 else
47886
47887 cat >>confdefs.h <<_ACEOF
47888 #define minor_t unsigned int
47889 _ACEOF
47890
47891 fi
47892
47893
47894
47895
47896
47897
47898
47899
47900
47901
47902
47903   # By default, argmatch should fail calling usage (1).
47904
47905 cat >>confdefs.h <<\_ACEOF
47906 #define ARGMATCH_DIE usage (1)
47907 _ACEOF
47908
47909
47910 cat >>confdefs.h <<\_ACEOF
47911 #define ARGMATCH_DIE_DECL extern void usage ()
47912 _ACEOF
47913
47914
47915   # used by ls
47916
47917   # used by shred
47918
47919
47920
47921
47922
47923
47924
47925
47926
47927
47928
47929
47930
47931
47932
47933
47934
47935
47936
47937
47938
47939
47940
47941
47942
47943
47944
47945
47946
47947
47948
47949
47950
47951
47952
47953
47954
47955
47956
47957
47958
47959
47960
47961
47962
47963
47964
47965
47966
47967
47968
47969
47970
47971
47972
47973
47974
47975
47976       test $ac_cv_header_sys_param_h = yes &&
47977   test $ac_cv_header_sys_mount_h = yes &&
47978
47979 for ac_header in nfs/vfs.h
47980 do
47981 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
47982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47983   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
47984 $as_echo_n "checking for $ac_header... " >&6; }
47985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47986   $as_echo_n "(cached) " >&6
47987 fi
47988 ac_res=`eval 'as_val=${'$as_ac_Header'}
47989                  $as_echo "$as_val"'`
47990                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47991 $as_echo "$ac_res" >&6; }
47992 else
47993   # Is the header compilable?
47994 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
47995 $as_echo_n "checking $ac_header usability... " >&6; }
47996 cat >conftest.$ac_ext <<_ACEOF
47997 /* confdefs.h.  */
47998 _ACEOF
47999 cat confdefs.h >>conftest.$ac_ext
48000 cat >>conftest.$ac_ext <<_ACEOF
48001 /* end confdefs.h.  */
48002 $ac_includes_default
48003 #include <$ac_header>
48004 _ACEOF
48005 rm -f conftest.$ac_objext
48006 if { (ac_try="$ac_compile"
48007 case "(($ac_try" in
48008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48009   *) ac_try_echo=$ac_try;;
48010 esac
48011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48012 $as_echo "$ac_try_echo") >&5
48013   (eval "$ac_compile") 2>conftest.er1
48014   ac_status=$?
48015   grep -v '^ *+' conftest.er1 >conftest.err
48016   rm -f conftest.er1
48017   cat conftest.err >&5
48018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48019   (exit $ac_status); } && {
48020          test -z "$ac_c_werror_flag" ||
48021          test ! -s conftest.err
48022        } && test -s conftest.$ac_objext; then
48023   ac_header_compiler=yes
48024 else
48025   $as_echo "$as_me: failed program was:" >&5
48026 sed 's/^/| /' conftest.$ac_ext >&5
48027
48028         ac_header_compiler=no
48029 fi
48030
48031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48032 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48033 $as_echo "$ac_header_compiler" >&6; }
48034
48035 # Is the header present?
48036 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
48037 $as_echo_n "checking $ac_header presence... " >&6; }
48038 cat >conftest.$ac_ext <<_ACEOF
48039 /* confdefs.h.  */
48040 _ACEOF
48041 cat confdefs.h >>conftest.$ac_ext
48042 cat >>conftest.$ac_ext <<_ACEOF
48043 /* end confdefs.h.  */
48044 #include <$ac_header>
48045 _ACEOF
48046 if { (ac_try="$ac_cpp conftest.$ac_ext"
48047 case "(($ac_try" in
48048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48049   *) ac_try_echo=$ac_try;;
48050 esac
48051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48052 $as_echo "$ac_try_echo") >&5
48053   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48054   ac_status=$?
48055   grep -v '^ *+' conftest.er1 >conftest.err
48056   rm -f conftest.er1
48057   cat conftest.err >&5
48058   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48059   (exit $ac_status); } >/dev/null && {
48060          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48061          test ! -s conftest.err
48062        }; then
48063   ac_header_preproc=yes
48064 else
48065   $as_echo "$as_me: failed program was:" >&5
48066 sed 's/^/| /' conftest.$ac_ext >&5
48067
48068   ac_header_preproc=no
48069 fi
48070
48071 rm -f conftest.err conftest.$ac_ext
48072 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48073 $as_echo "$ac_header_preproc" >&6; }
48074
48075 # So?  What about this header?
48076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48077   yes:no: )
48078     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48079 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48080     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
48081 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
48082     ac_header_preproc=yes
48083     ;;
48084   no:yes:* )
48085     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48086 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48087     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
48088 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
48089     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
48090 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
48091     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
48092 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
48093     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48094 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48095     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
48096 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
48097     ( cat <<\_ASBOX
48098 ## ------------------------------------ ##
48099 ## Report this to bug-coreutils@gnu.org ##
48100 ## ------------------------------------ ##
48101 _ASBOX
48102      ) | sed "s/^/$as_me: WARNING:     /" >&2
48103     ;;
48104 esac
48105 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
48106 $as_echo_n "checking for $ac_header... " >&6; }
48107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48108   $as_echo_n "(cached) " >&6
48109 else
48110   eval "$as_ac_Header=\$ac_header_preproc"
48111 fi
48112 ac_res=`eval 'as_val=${'$as_ac_Header'}
48113                  $as_echo "$as_val"'`
48114                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48115 $as_echo "$ac_res" >&6; }
48116
48117 fi
48118 if test `eval 'as_val=${'$as_ac_Header'}
48119                  $as_echo "$as_val"'` = yes; then
48120   cat >>confdefs.h <<_ACEOF
48121 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
48122 _ACEOF
48123
48124 for ac_header in nfs/nfs_client.h
48125 do
48126 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
48127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48128   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
48129 $as_echo_n "checking for $ac_header... " >&6; }
48130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48131   $as_echo_n "(cached) " >&6
48132 fi
48133 ac_res=`eval 'as_val=${'$as_ac_Header'}
48134                  $as_echo "$as_val"'`
48135                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48136 $as_echo "$ac_res" >&6; }
48137 else
48138   # Is the header compilable?
48139 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
48140 $as_echo_n "checking $ac_header usability... " >&6; }
48141 cat >conftest.$ac_ext <<_ACEOF
48142 /* confdefs.h.  */
48143 _ACEOF
48144 cat confdefs.h >>conftest.$ac_ext
48145 cat >>conftest.$ac_ext <<_ACEOF
48146 /* end confdefs.h.  */
48147 $ac_includes_default
48148 #include <$ac_header>
48149 _ACEOF
48150 rm -f conftest.$ac_objext
48151 if { (ac_try="$ac_compile"
48152 case "(($ac_try" in
48153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48154   *) ac_try_echo=$ac_try;;
48155 esac
48156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48157 $as_echo "$ac_try_echo") >&5
48158   (eval "$ac_compile") 2>conftest.er1
48159   ac_status=$?
48160   grep -v '^ *+' conftest.er1 >conftest.err
48161   rm -f conftest.er1
48162   cat conftest.err >&5
48163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48164   (exit $ac_status); } && {
48165          test -z "$ac_c_werror_flag" ||
48166          test ! -s conftest.err
48167        } && test -s conftest.$ac_objext; then
48168   ac_header_compiler=yes
48169 else
48170   $as_echo "$as_me: failed program was:" >&5
48171 sed 's/^/| /' conftest.$ac_ext >&5
48172
48173         ac_header_compiler=no
48174 fi
48175
48176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48177 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48178 $as_echo "$ac_header_compiler" >&6; }
48179
48180 # Is the header present?
48181 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
48182 $as_echo_n "checking $ac_header presence... " >&6; }
48183 cat >conftest.$ac_ext <<_ACEOF
48184 /* confdefs.h.  */
48185 _ACEOF
48186 cat confdefs.h >>conftest.$ac_ext
48187 cat >>conftest.$ac_ext <<_ACEOF
48188 /* end confdefs.h.  */
48189 #include <$ac_header>
48190 _ACEOF
48191 if { (ac_try="$ac_cpp conftest.$ac_ext"
48192 case "(($ac_try" in
48193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48194   *) ac_try_echo=$ac_try;;
48195 esac
48196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48197 $as_echo "$ac_try_echo") >&5
48198   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48199   ac_status=$?
48200   grep -v '^ *+' conftest.er1 >conftest.err
48201   rm -f conftest.er1
48202   cat conftest.err >&5
48203   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48204   (exit $ac_status); } >/dev/null && {
48205          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48206          test ! -s conftest.err
48207        }; then
48208   ac_header_preproc=yes
48209 else
48210   $as_echo "$as_me: failed program was:" >&5
48211 sed 's/^/| /' conftest.$ac_ext >&5
48212
48213   ac_header_preproc=no
48214 fi
48215
48216 rm -f conftest.err conftest.$ac_ext
48217 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48218 $as_echo "$ac_header_preproc" >&6; }
48219
48220 # So?  What about this header?
48221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48222   yes:no: )
48223     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48224 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48225     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
48226 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
48227     ac_header_preproc=yes
48228     ;;
48229   no:yes:* )
48230     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48231 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48232     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
48233 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
48234     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
48235 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
48236     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
48237 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
48238     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48239 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48240     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
48241 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
48242     ( cat <<\_ASBOX
48243 ## ------------------------------------ ##
48244 ## Report this to bug-coreutils@gnu.org ##
48245 ## ------------------------------------ ##
48246 _ASBOX
48247      ) | sed "s/^/$as_me: WARNING:     /" >&2
48248     ;;
48249 esac
48250 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
48251 $as_echo_n "checking for $ac_header... " >&6; }
48252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48253   $as_echo_n "(cached) " >&6
48254 else
48255   eval "$as_ac_Header=\$ac_header_preproc"
48256 fi
48257 ac_res=`eval 'as_val=${'$as_ac_Header'}
48258                  $as_echo "$as_val"'`
48259                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48260 $as_echo "$ac_res" >&6; }
48261
48262 fi
48263 if test `eval 'as_val=${'$as_ac_Header'}
48264                  $as_echo "$as_val"'` = yes; then
48265   cat >>confdefs.h <<_ACEOF
48266 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
48267 _ACEOF
48268
48269 fi
48270
48271 done
48272
48273 fi
48274
48275 done
48276
48277
48278   statvfs_includes="\
48279 $ac_includes_default
48280 #include <sys/statvfs.h>
48281 "
48282   statfs_includes="\
48283 $ac_includes_default
48284 #if HAVE_SYS_VFS_H
48285 # include <sys/vfs.h>
48286 #elif HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H
48287 # include <sys/param.h>
48288 # include <sys/mount.h>
48289 # if HAVE_NETINET_IN_H && HAVE_NFS_NFS_CLNT_H && HAVE_NFS_VFS_H
48290 #  include <netinet/in.h>
48291 #  include <nfs/nfs_clnt.h>
48292 #  include <nfs/vfs.h>
48293 # endif
48294 #elif HAVE_OS_H
48295 # include <fs_info.h>
48296 #endif
48297 "
48298       if test "$fu_cv_sys_stat_statvfs" = yes &&
48299      { { $as_echo "$as_me:$LINENO: checking for struct statvfs.f_basetype" >&5
48300 $as_echo_n "checking for struct statvfs.f_basetype... " >&6; }
48301 if test "${ac_cv_member_struct_statvfs_f_basetype+set}" = set; then
48302   $as_echo_n "(cached) " >&6
48303 else
48304   cat >conftest.$ac_ext <<_ACEOF
48305 /* confdefs.h.  */
48306 _ACEOF
48307 cat confdefs.h >>conftest.$ac_ext
48308 cat >>conftest.$ac_ext <<_ACEOF
48309 /* end confdefs.h.  */
48310 $statvfs_includes
48311
48312 int
48313 main ()
48314 {
48315 static struct statvfs ac_aggr;
48316 if (ac_aggr.f_basetype)
48317 return 0;
48318   ;
48319   return 0;
48320 }
48321 _ACEOF
48322 rm -f conftest.$ac_objext
48323 if { (ac_try="$ac_compile"
48324 case "(($ac_try" in
48325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48326   *) ac_try_echo=$ac_try;;
48327 esac
48328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48329 $as_echo "$ac_try_echo") >&5
48330   (eval "$ac_compile") 2>conftest.er1
48331   ac_status=$?
48332   grep -v '^ *+' conftest.er1 >conftest.err
48333   rm -f conftest.er1
48334   cat conftest.err >&5
48335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48336   (exit $ac_status); } && {
48337          test -z "$ac_c_werror_flag" ||
48338          test ! -s conftest.err
48339        } && test -s conftest.$ac_objext; then
48340   ac_cv_member_struct_statvfs_f_basetype=yes
48341 else
48342   $as_echo "$as_me: failed program was:" >&5
48343 sed 's/^/| /' conftest.$ac_ext >&5
48344
48345         cat >conftest.$ac_ext <<_ACEOF
48346 /* confdefs.h.  */
48347 _ACEOF
48348 cat confdefs.h >>conftest.$ac_ext
48349 cat >>conftest.$ac_ext <<_ACEOF
48350 /* end confdefs.h.  */
48351 $statvfs_includes
48352
48353 int
48354 main ()
48355 {
48356 static struct statvfs ac_aggr;
48357 if (sizeof ac_aggr.f_basetype)
48358 return 0;
48359   ;
48360   return 0;
48361 }
48362 _ACEOF
48363 rm -f conftest.$ac_objext
48364 if { (ac_try="$ac_compile"
48365 case "(($ac_try" in
48366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48367   *) ac_try_echo=$ac_try;;
48368 esac
48369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48370 $as_echo "$ac_try_echo") >&5
48371   (eval "$ac_compile") 2>conftest.er1
48372   ac_status=$?
48373   grep -v '^ *+' conftest.er1 >conftest.err
48374   rm -f conftest.er1
48375   cat conftest.err >&5
48376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48377   (exit $ac_status); } && {
48378          test -z "$ac_c_werror_flag" ||
48379          test ! -s conftest.err
48380        } && test -s conftest.$ac_objext; then
48381   ac_cv_member_struct_statvfs_f_basetype=yes
48382 else
48383   $as_echo "$as_me: failed program was:" >&5
48384 sed 's/^/| /' conftest.$ac_ext >&5
48385
48386         ac_cv_member_struct_statvfs_f_basetype=no
48387 fi
48388
48389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48390 fi
48391
48392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48393 fi
48394 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_basetype" >&5
48395 $as_echo "$ac_cv_member_struct_statvfs_f_basetype" >&6; }
48396 if test $ac_cv_member_struct_statvfs_f_basetype = yes; then
48397
48398 cat >>confdefs.h <<_ACEOF
48399 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
48400 _ACEOF
48401
48402
48403 fi
48404
48405        test $ac_cv_member_struct_statvfs_f_basetype = yes ||
48406        { { $as_echo "$as_me:$LINENO: checking for struct statvfs.f_fstypename" >&5
48407 $as_echo_n "checking for struct statvfs.f_fstypename... " >&6; }
48408 if test "${ac_cv_member_struct_statvfs_f_fstypename+set}" = set; then
48409   $as_echo_n "(cached) " >&6
48410 else
48411   cat >conftest.$ac_ext <<_ACEOF
48412 /* confdefs.h.  */
48413 _ACEOF
48414 cat confdefs.h >>conftest.$ac_ext
48415 cat >>conftest.$ac_ext <<_ACEOF
48416 /* end confdefs.h.  */
48417 $statvfs_includes
48418
48419 int
48420 main ()
48421 {
48422 static struct statvfs ac_aggr;
48423 if (ac_aggr.f_fstypename)
48424 return 0;
48425   ;
48426   return 0;
48427 }
48428 _ACEOF
48429 rm -f conftest.$ac_objext
48430 if { (ac_try="$ac_compile"
48431 case "(($ac_try" in
48432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48433   *) ac_try_echo=$ac_try;;
48434 esac
48435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48436 $as_echo "$ac_try_echo") >&5
48437   (eval "$ac_compile") 2>conftest.er1
48438   ac_status=$?
48439   grep -v '^ *+' conftest.er1 >conftest.err
48440   rm -f conftest.er1
48441   cat conftest.err >&5
48442   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48443   (exit $ac_status); } && {
48444          test -z "$ac_c_werror_flag" ||
48445          test ! -s conftest.err
48446        } && test -s conftest.$ac_objext; then
48447   ac_cv_member_struct_statvfs_f_fstypename=yes
48448 else
48449   $as_echo "$as_me: failed program was:" >&5
48450 sed 's/^/| /' conftest.$ac_ext >&5
48451
48452         cat >conftest.$ac_ext <<_ACEOF
48453 /* confdefs.h.  */
48454 _ACEOF
48455 cat confdefs.h >>conftest.$ac_ext
48456 cat >>conftest.$ac_ext <<_ACEOF
48457 /* end confdefs.h.  */
48458 $statvfs_includes
48459
48460 int
48461 main ()
48462 {
48463 static struct statvfs ac_aggr;
48464 if (sizeof ac_aggr.f_fstypename)
48465 return 0;
48466   ;
48467   return 0;
48468 }
48469 _ACEOF
48470 rm -f conftest.$ac_objext
48471 if { (ac_try="$ac_compile"
48472 case "(($ac_try" in
48473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48474   *) ac_try_echo=$ac_try;;
48475 esac
48476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48477 $as_echo "$ac_try_echo") >&5
48478   (eval "$ac_compile") 2>conftest.er1
48479   ac_status=$?
48480   grep -v '^ *+' conftest.er1 >conftest.err
48481   rm -f conftest.er1
48482   cat conftest.err >&5
48483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48484   (exit $ac_status); } && {
48485          test -z "$ac_c_werror_flag" ||
48486          test ! -s conftest.err
48487        } && test -s conftest.$ac_objext; then
48488   ac_cv_member_struct_statvfs_f_fstypename=yes
48489 else
48490   $as_echo "$as_me: failed program was:" >&5
48491 sed 's/^/| /' conftest.$ac_ext >&5
48492
48493         ac_cv_member_struct_statvfs_f_fstypename=no
48494 fi
48495
48496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48497 fi
48498
48499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48500 fi
48501 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_fstypename" >&5
48502 $as_echo "$ac_cv_member_struct_statvfs_f_fstypename" >&6; }
48503 if test $ac_cv_member_struct_statvfs_f_fstypename = yes; then
48504
48505 cat >>confdefs.h <<_ACEOF
48506 #define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1
48507 _ACEOF
48508
48509
48510 fi
48511
48512          test $ac_cv_member_struct_statvfs_f_fstypename = yes ||
48513          { test $ac_cv_member_struct_statfs_f_fstypename != yes &&
48514            { { $as_echo "$as_me:$LINENO: checking for struct statvfs.f_type" >&5
48515 $as_echo_n "checking for struct statvfs.f_type... " >&6; }
48516 if test "${ac_cv_member_struct_statvfs_f_type+set}" = set; then
48517   $as_echo_n "(cached) " >&6
48518 else
48519   cat >conftest.$ac_ext <<_ACEOF
48520 /* confdefs.h.  */
48521 _ACEOF
48522 cat confdefs.h >>conftest.$ac_ext
48523 cat >>conftest.$ac_ext <<_ACEOF
48524 /* end confdefs.h.  */
48525 $statvfs_includes
48526
48527 int
48528 main ()
48529 {
48530 static struct statvfs ac_aggr;
48531 if (ac_aggr.f_type)
48532 return 0;
48533   ;
48534   return 0;
48535 }
48536 _ACEOF
48537 rm -f conftest.$ac_objext
48538 if { (ac_try="$ac_compile"
48539 case "(($ac_try" in
48540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48541   *) ac_try_echo=$ac_try;;
48542 esac
48543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48544 $as_echo "$ac_try_echo") >&5
48545   (eval "$ac_compile") 2>conftest.er1
48546   ac_status=$?
48547   grep -v '^ *+' conftest.er1 >conftest.err
48548   rm -f conftest.er1
48549   cat conftest.err >&5
48550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48551   (exit $ac_status); } && {
48552          test -z "$ac_c_werror_flag" ||
48553          test ! -s conftest.err
48554        } && test -s conftest.$ac_objext; then
48555   ac_cv_member_struct_statvfs_f_type=yes
48556 else
48557   $as_echo "$as_me: failed program was:" >&5
48558 sed 's/^/| /' conftest.$ac_ext >&5
48559
48560         cat >conftest.$ac_ext <<_ACEOF
48561 /* confdefs.h.  */
48562 _ACEOF
48563 cat confdefs.h >>conftest.$ac_ext
48564 cat >>conftest.$ac_ext <<_ACEOF
48565 /* end confdefs.h.  */
48566 $statvfs_includes
48567
48568 int
48569 main ()
48570 {
48571 static struct statvfs ac_aggr;
48572 if (sizeof ac_aggr.f_type)
48573 return 0;
48574   ;
48575   return 0;
48576 }
48577 _ACEOF
48578 rm -f conftest.$ac_objext
48579 if { (ac_try="$ac_compile"
48580 case "(($ac_try" in
48581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48582   *) ac_try_echo=$ac_try;;
48583 esac
48584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48585 $as_echo "$ac_try_echo") >&5
48586   (eval "$ac_compile") 2>conftest.er1
48587   ac_status=$?
48588   grep -v '^ *+' conftest.er1 >conftest.err
48589   rm -f conftest.er1
48590   cat conftest.err >&5
48591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48592   (exit $ac_status); } && {
48593          test -z "$ac_c_werror_flag" ||
48594          test ! -s conftest.err
48595        } && test -s conftest.$ac_objext; then
48596   ac_cv_member_struct_statvfs_f_type=yes
48597 else
48598   $as_echo "$as_me: failed program was:" >&5
48599 sed 's/^/| /' conftest.$ac_ext >&5
48600
48601         ac_cv_member_struct_statvfs_f_type=no
48602 fi
48603
48604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48605 fi
48606
48607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48608 fi
48609 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_type" >&5
48610 $as_echo "$ac_cv_member_struct_statvfs_f_type" >&6; }
48611 if test $ac_cv_member_struct_statvfs_f_type = yes; then
48612
48613 cat >>confdefs.h <<_ACEOF
48614 #define HAVE_STRUCT_STATVFS_F_TYPE 1
48615 _ACEOF
48616
48617
48618 fi
48619
48620              test $ac_cv_member_struct_statvfs_f_type = yes; }; }; }; }
48621   then
48622     { $as_echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
48623 $as_echo_n "checking for struct statvfs.f_namemax... " >&6; }
48624 if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
48625   $as_echo_n "(cached) " >&6
48626 else
48627   cat >conftest.$ac_ext <<_ACEOF
48628 /* confdefs.h.  */
48629 _ACEOF
48630 cat confdefs.h >>conftest.$ac_ext
48631 cat >>conftest.$ac_ext <<_ACEOF
48632 /* end confdefs.h.  */
48633 $statvfs_includes
48634
48635 int
48636 main ()
48637 {
48638 static struct statvfs ac_aggr;
48639 if (ac_aggr.f_namemax)
48640 return 0;
48641   ;
48642   return 0;
48643 }
48644 _ACEOF
48645 rm -f conftest.$ac_objext
48646 if { (ac_try="$ac_compile"
48647 case "(($ac_try" in
48648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48649   *) ac_try_echo=$ac_try;;
48650 esac
48651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48652 $as_echo "$ac_try_echo") >&5
48653   (eval "$ac_compile") 2>conftest.er1
48654   ac_status=$?
48655   grep -v '^ *+' conftest.er1 >conftest.err
48656   rm -f conftest.er1
48657   cat conftest.err >&5
48658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48659   (exit $ac_status); } && {
48660          test -z "$ac_c_werror_flag" ||
48661          test ! -s conftest.err
48662        } && test -s conftest.$ac_objext; then
48663   ac_cv_member_struct_statvfs_f_namemax=yes
48664 else
48665   $as_echo "$as_me: failed program was:" >&5
48666 sed 's/^/| /' conftest.$ac_ext >&5
48667
48668         cat >conftest.$ac_ext <<_ACEOF
48669 /* confdefs.h.  */
48670 _ACEOF
48671 cat confdefs.h >>conftest.$ac_ext
48672 cat >>conftest.$ac_ext <<_ACEOF
48673 /* end confdefs.h.  */
48674 $statvfs_includes
48675
48676 int
48677 main ()
48678 {
48679 static struct statvfs ac_aggr;
48680 if (sizeof ac_aggr.f_namemax)
48681 return 0;
48682   ;
48683   return 0;
48684 }
48685 _ACEOF
48686 rm -f conftest.$ac_objext
48687 if { (ac_try="$ac_compile"
48688 case "(($ac_try" in
48689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48690   *) ac_try_echo=$ac_try;;
48691 esac
48692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48693 $as_echo "$ac_try_echo") >&5
48694   (eval "$ac_compile") 2>conftest.er1
48695   ac_status=$?
48696   grep -v '^ *+' conftest.er1 >conftest.err
48697   rm -f conftest.er1
48698   cat conftest.err >&5
48699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48700   (exit $ac_status); } && {
48701          test -z "$ac_c_werror_flag" ||
48702          test ! -s conftest.err
48703        } && test -s conftest.$ac_objext; then
48704   ac_cv_member_struct_statvfs_f_namemax=yes
48705 else
48706   $as_echo "$as_me: failed program was:" >&5
48707 sed 's/^/| /' conftest.$ac_ext >&5
48708
48709         ac_cv_member_struct_statvfs_f_namemax=no
48710 fi
48711
48712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48713 fi
48714
48715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48716 fi
48717 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
48718 $as_echo "$ac_cv_member_struct_statvfs_f_namemax" >&6; }
48719 if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
48720
48721 cat >>confdefs.h <<_ACEOF
48722 #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
48723 _ACEOF
48724
48725
48726 fi
48727
48728     cat >conftest.$ac_ext <<_ACEOF
48729 /* confdefs.h.  */
48730 _ACEOF
48731 cat confdefs.h >>conftest.$ac_ext
48732 cat >>conftest.$ac_ext <<_ACEOF
48733 /* end confdefs.h.  */
48734 $statvfs_includes
48735 int
48736 main ()
48737 {
48738 static statvfs s;
48739           return (s.s_fsid ^ 0) == 0;
48740   ;
48741   return 0;
48742 }
48743 _ACEOF
48744 rm -f conftest.$ac_objext
48745 if { (ac_try="$ac_compile"
48746 case "(($ac_try" in
48747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48748   *) ac_try_echo=$ac_try;;
48749 esac
48750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48751 $as_echo "$ac_try_echo") >&5
48752   (eval "$ac_compile") 2>conftest.er1
48753   ac_status=$?
48754   grep -v '^ *+' conftest.er1 >conftest.err
48755   rm -f conftest.er1
48756   cat conftest.err >&5
48757   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48758   (exit $ac_status); } && {
48759          test -z "$ac_c_werror_flag" ||
48760          test ! -s conftest.err
48761        } && test -s conftest.$ac_objext; then
48762
48763 cat >>confdefs.h <<\_ACEOF
48764 #define STRUCT_STATVFS_F_FSID_IS_INTEGER 1
48765 _ACEOF
48766
48767 else
48768   $as_echo "$as_me: failed program was:" >&5
48769 sed 's/^/| /' conftest.$ac_ext >&5
48770
48771
48772 fi
48773
48774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48775   else
48776     { $as_echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
48777 $as_echo_n "checking for struct statfs.f_namelen... " >&6; }
48778 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
48779   $as_echo_n "(cached) " >&6
48780 else
48781   cat >conftest.$ac_ext <<_ACEOF
48782 /* confdefs.h.  */
48783 _ACEOF
48784 cat confdefs.h >>conftest.$ac_ext
48785 cat >>conftest.$ac_ext <<_ACEOF
48786 /* end confdefs.h.  */
48787 $statfs_includes
48788
48789 int
48790 main ()
48791 {
48792 static struct statfs ac_aggr;
48793 if (ac_aggr.f_namelen)
48794 return 0;
48795   ;
48796   return 0;
48797 }
48798 _ACEOF
48799 rm -f conftest.$ac_objext
48800 if { (ac_try="$ac_compile"
48801 case "(($ac_try" in
48802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48803   *) ac_try_echo=$ac_try;;
48804 esac
48805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48806 $as_echo "$ac_try_echo") >&5
48807   (eval "$ac_compile") 2>conftest.er1
48808   ac_status=$?
48809   grep -v '^ *+' conftest.er1 >conftest.err
48810   rm -f conftest.er1
48811   cat conftest.err >&5
48812   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48813   (exit $ac_status); } && {
48814          test -z "$ac_c_werror_flag" ||
48815          test ! -s conftest.err
48816        } && test -s conftest.$ac_objext; then
48817   ac_cv_member_struct_statfs_f_namelen=yes
48818 else
48819   $as_echo "$as_me: failed program was:" >&5
48820 sed 's/^/| /' conftest.$ac_ext >&5
48821
48822         cat >conftest.$ac_ext <<_ACEOF
48823 /* confdefs.h.  */
48824 _ACEOF
48825 cat confdefs.h >>conftest.$ac_ext
48826 cat >>conftest.$ac_ext <<_ACEOF
48827 /* end confdefs.h.  */
48828 $statfs_includes
48829
48830 int
48831 main ()
48832 {
48833 static struct statfs ac_aggr;
48834 if (sizeof ac_aggr.f_namelen)
48835 return 0;
48836   ;
48837   return 0;
48838 }
48839 _ACEOF
48840 rm -f conftest.$ac_objext
48841 if { (ac_try="$ac_compile"
48842 case "(($ac_try" in
48843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48844   *) ac_try_echo=$ac_try;;
48845 esac
48846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48847 $as_echo "$ac_try_echo") >&5
48848   (eval "$ac_compile") 2>conftest.er1
48849   ac_status=$?
48850   grep -v '^ *+' conftest.er1 >conftest.err
48851   rm -f conftest.er1
48852   cat conftest.err >&5
48853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48854   (exit $ac_status); } && {
48855          test -z "$ac_c_werror_flag" ||
48856          test ! -s conftest.err
48857        } && test -s conftest.$ac_objext; then
48858   ac_cv_member_struct_statfs_f_namelen=yes
48859 else
48860   $as_echo "$as_me: failed program was:" >&5
48861 sed 's/^/| /' conftest.$ac_ext >&5
48862
48863         ac_cv_member_struct_statfs_f_namelen=no
48864 fi
48865
48866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48867 fi
48868
48869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48870 fi
48871 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
48872 $as_echo "$ac_cv_member_struct_statfs_f_namelen" >&6; }
48873 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
48874
48875 cat >>confdefs.h <<_ACEOF
48876 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
48877 _ACEOF
48878
48879
48880 fi
48881 { $as_echo "$as_me:$LINENO: checking for struct statfs.f_type" >&5
48882 $as_echo_n "checking for struct statfs.f_type... " >&6; }
48883 if test "${ac_cv_member_struct_statfs_f_type+set}" = set; then
48884   $as_echo_n "(cached) " >&6
48885 else
48886   cat >conftest.$ac_ext <<_ACEOF
48887 /* confdefs.h.  */
48888 _ACEOF
48889 cat confdefs.h >>conftest.$ac_ext
48890 cat >>conftest.$ac_ext <<_ACEOF
48891 /* end confdefs.h.  */
48892 $statfs_includes
48893
48894 int
48895 main ()
48896 {
48897 static struct statfs ac_aggr;
48898 if (ac_aggr.f_type)
48899 return 0;
48900   ;
48901   return 0;
48902 }
48903 _ACEOF
48904 rm -f conftest.$ac_objext
48905 if { (ac_try="$ac_compile"
48906 case "(($ac_try" in
48907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48908   *) ac_try_echo=$ac_try;;
48909 esac
48910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48911 $as_echo "$ac_try_echo") >&5
48912   (eval "$ac_compile") 2>conftest.er1
48913   ac_status=$?
48914   grep -v '^ *+' conftest.er1 >conftest.err
48915   rm -f conftest.er1
48916   cat conftest.err >&5
48917   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48918   (exit $ac_status); } && {
48919          test -z "$ac_c_werror_flag" ||
48920          test ! -s conftest.err
48921        } && test -s conftest.$ac_objext; then
48922   ac_cv_member_struct_statfs_f_type=yes
48923 else
48924   $as_echo "$as_me: failed program was:" >&5
48925 sed 's/^/| /' conftest.$ac_ext >&5
48926
48927         cat >conftest.$ac_ext <<_ACEOF
48928 /* confdefs.h.  */
48929 _ACEOF
48930 cat confdefs.h >>conftest.$ac_ext
48931 cat >>conftest.$ac_ext <<_ACEOF
48932 /* end confdefs.h.  */
48933 $statfs_includes
48934
48935 int
48936 main ()
48937 {
48938 static struct statfs ac_aggr;
48939 if (sizeof ac_aggr.f_type)
48940 return 0;
48941   ;
48942   return 0;
48943 }
48944 _ACEOF
48945 rm -f conftest.$ac_objext
48946 if { (ac_try="$ac_compile"
48947 case "(($ac_try" in
48948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48949   *) ac_try_echo=$ac_try;;
48950 esac
48951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48952 $as_echo "$ac_try_echo") >&5
48953   (eval "$ac_compile") 2>conftest.er1
48954   ac_status=$?
48955   grep -v '^ *+' conftest.er1 >conftest.err
48956   rm -f conftest.er1
48957   cat conftest.err >&5
48958   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48959   (exit $ac_status); } && {
48960          test -z "$ac_c_werror_flag" ||
48961          test ! -s conftest.err
48962        } && test -s conftest.$ac_objext; then
48963   ac_cv_member_struct_statfs_f_type=yes
48964 else
48965   $as_echo "$as_me: failed program was:" >&5
48966 sed 's/^/| /' conftest.$ac_ext >&5
48967
48968         ac_cv_member_struct_statfs_f_type=no
48969 fi
48970
48971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48972 fi
48973
48974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48975 fi
48976 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_type" >&5
48977 $as_echo "$ac_cv_member_struct_statfs_f_type" >&6; }
48978 if test $ac_cv_member_struct_statfs_f_type = yes; then
48979
48980 cat >>confdefs.h <<_ACEOF
48981 #define HAVE_STRUCT_STATFS_F_TYPE 1
48982 _ACEOF
48983
48984
48985 fi
48986
48987     if test $ac_cv_header_OS_h != yes; then
48988       cat >conftest.$ac_ext <<_ACEOF
48989 /* confdefs.h.  */
48990 _ACEOF
48991 cat confdefs.h >>conftest.$ac_ext
48992 cat >>conftest.$ac_ext <<_ACEOF
48993 /* end confdefs.h.  */
48994 $statfs_includes
48995 int
48996 main ()
48997 {
48998 static statfs s;
48999             return (s.s_fsid ^ 0) == 0;
49000   ;
49001   return 0;
49002 }
49003 _ACEOF
49004 rm -f conftest.$ac_objext
49005 if { (ac_try="$ac_compile"
49006 case "(($ac_try" in
49007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49008   *) ac_try_echo=$ac_try;;
49009 esac
49010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49011 $as_echo "$ac_try_echo") >&5
49012   (eval "$ac_compile") 2>conftest.er1
49013   ac_status=$?
49014   grep -v '^ *+' conftest.er1 >conftest.err
49015   rm -f conftest.er1
49016   cat conftest.err >&5
49017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49018   (exit $ac_status); } && {
49019          test -z "$ac_c_werror_flag" ||
49020          test ! -s conftest.err
49021        } && test -s conftest.$ac_objext; then
49022
49023 cat >>confdefs.h <<\_ACEOF
49024 #define STRUCT_STATFS_F_FSID_IS_INTEGER 1
49025 _ACEOF
49026
49027 else
49028   $as_echo "$as_me: failed program was:" >&5
49029 sed 's/^/| /' conftest.$ac_ext >&5
49030
49031
49032 fi
49033
49034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49035     fi
49036   fi
49037
49038
49039   # for dd.c and shred.c
49040   coreutils_saved_libs=$LIBS
49041     { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
49042 $as_echo_n "checking for library containing fdatasync... " >&6; }
49043 if test "${ac_cv_search_fdatasync+set}" = set; then
49044   $as_echo_n "(cached) " >&6
49045 else
49046   ac_func_search_save_LIBS=$LIBS
49047 cat >conftest.$ac_ext <<_ACEOF
49048 /* confdefs.h.  */
49049 _ACEOF
49050 cat confdefs.h >>conftest.$ac_ext
49051 cat >>conftest.$ac_ext <<_ACEOF
49052 /* end confdefs.h.  */
49053
49054 /* Override any GCC internal prototype to avoid an error.
49055    Use char because int might match the return type of a GCC
49056    builtin and then its argument prototype would still apply.  */
49057 #ifdef __cplusplus
49058 extern "C"
49059 #endif
49060 char fdatasync ();
49061 int
49062 main ()
49063 {
49064 return fdatasync ();
49065   ;
49066   return 0;
49067 }
49068 _ACEOF
49069 for ac_lib in '' rt posix4; do
49070   if test -z "$ac_lib"; then
49071     ac_res="none required"
49072   else
49073     ac_res=-l$ac_lib
49074     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
49075   fi
49076   rm -f conftest.$ac_objext conftest$ac_exeext
49077 if { (ac_try="$ac_link"
49078 case "(($ac_try" in
49079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49080   *) ac_try_echo=$ac_try;;
49081 esac
49082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49083 $as_echo "$ac_try_echo") >&5
49084   (eval "$ac_link") 2>conftest.er1
49085   ac_status=$?
49086   grep -v '^ *+' conftest.er1 >conftest.err
49087   rm -f conftest.er1
49088   cat conftest.err >&5
49089   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49090   (exit $ac_status); } && {
49091          test -z "$ac_c_werror_flag" ||
49092          test ! -s conftest.err
49093        } && test -s conftest$ac_exeext &&
49094        $as_test_x conftest$ac_exeext; then
49095   ac_cv_search_fdatasync=$ac_res
49096 else
49097   $as_echo "$as_me: failed program was:" >&5
49098 sed 's/^/| /' conftest.$ac_ext >&5
49099
49100
49101 fi
49102
49103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49104       conftest$ac_exeext
49105   if test "${ac_cv_search_fdatasync+set}" = set; then
49106   break
49107 fi
49108 done
49109 if test "${ac_cv_search_fdatasync+set}" = set; then
49110   :
49111 else
49112   ac_cv_search_fdatasync=no
49113 fi
49114 rm conftest.$ac_ext
49115 LIBS=$ac_func_search_save_LIBS
49116 fi
49117 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
49118 $as_echo "$ac_cv_search_fdatasync" >&6; }
49119 ac_res=$ac_cv_search_fdatasync
49120 if test "$ac_res" != no; then
49121   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
49122   test "$ac_cv_search_fdatasync" = "none required" ||
49123                     LIB_FDATASYNC=$ac_cv_search_fdatasync
49124 fi
49125
49126
49127
49128 for ac_func in fdatasync
49129 do
49130 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
49131 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
49132 $as_echo_n "checking for $ac_func... " >&6; }
49133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49134   $as_echo_n "(cached) " >&6
49135 else
49136   cat >conftest.$ac_ext <<_ACEOF
49137 /* confdefs.h.  */
49138 _ACEOF
49139 cat confdefs.h >>conftest.$ac_ext
49140 cat >>conftest.$ac_ext <<_ACEOF
49141 /* end confdefs.h.  */
49142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49143    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49144 #define $ac_func innocuous_$ac_func
49145
49146 /* System header to define __stub macros and hopefully few prototypes,
49147     which can conflict with char $ac_func (); below.
49148     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49149     <limits.h> exists even on freestanding compilers.  */
49150
49151 #ifdef __STDC__
49152 # include <limits.h>
49153 #else
49154 # include <assert.h>
49155 #endif
49156
49157 #undef $ac_func
49158
49159 /* Override any GCC internal prototype to avoid an error.
49160    Use char because int might match the return type of a GCC
49161    builtin and then its argument prototype would still apply.  */
49162 #ifdef __cplusplus
49163 extern "C"
49164 #endif
49165 char $ac_func ();
49166 /* The GNU C library defines this for functions which it implements
49167     to always fail with ENOSYS.  Some functions are actually named
49168     something starting with __ and the normal name is an alias.  */
49169 #if defined __stub_$ac_func || defined __stub___$ac_func
49170 choke me
49171 #endif
49172
49173 int
49174 main ()
49175 {
49176 return $ac_func ();
49177   ;
49178   return 0;
49179 }
49180 _ACEOF
49181 rm -f conftest.$ac_objext conftest$ac_exeext
49182 if { (ac_try="$ac_link"
49183 case "(($ac_try" in
49184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49185   *) ac_try_echo=$ac_try;;
49186 esac
49187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49188 $as_echo "$ac_try_echo") >&5
49189   (eval "$ac_link") 2>conftest.er1
49190   ac_status=$?
49191   grep -v '^ *+' conftest.er1 >conftest.err
49192   rm -f conftest.er1
49193   cat conftest.err >&5
49194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49195   (exit $ac_status); } && {
49196          test -z "$ac_c_werror_flag" ||
49197          test ! -s conftest.err
49198        } && test -s conftest$ac_exeext &&
49199        $as_test_x conftest$ac_exeext; then
49200   eval "$as_ac_var=yes"
49201 else
49202   $as_echo "$as_me: failed program was:" >&5
49203 sed 's/^/| /' conftest.$ac_ext >&5
49204
49205         eval "$as_ac_var=no"
49206 fi
49207
49208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49209       conftest$ac_exeext conftest.$ac_ext
49210 fi
49211 ac_res=`eval 'as_val=${'$as_ac_var'}
49212                  $as_echo "$as_val"'`
49213                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49214 $as_echo "$ac_res" >&6; }
49215 if test `eval 'as_val=${'$as_ac_var'}
49216                  $as_echo "$as_val"'` = yes; then
49217   cat >>confdefs.h <<_ACEOF
49218 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
49219 _ACEOF
49220
49221 fi
49222 done
49223
49224   LIBS=$coreutils_saved_libs
49225
49226   # See if linking `seq' requires -lm.
49227   # It does on nearly every system.  The single exception (so far) is
49228   # BeOS which has all the math functions in the normal runtime library
49229   # and doesn't have a separate math library.
49230
49231
49232   ac_seq_body='
49233      static double x, y;
49234      x = floor (x);
49235      x = rint (x);
49236      x = modf (x, &y);'
49237   cat >conftest.$ac_ext <<_ACEOF
49238 /* confdefs.h.  */
49239 _ACEOF
49240 cat confdefs.h >>conftest.$ac_ext
49241 cat >>conftest.$ac_ext <<_ACEOF
49242 /* end confdefs.h.  */
49243 #include <math.h>
49244 int
49245 main ()
49246 {
49247 $ac_seq_body
49248   ;
49249   return 0;
49250 }
49251 _ACEOF
49252 rm -f conftest.$ac_objext conftest$ac_exeext
49253 if { (ac_try="$ac_link"
49254 case "(($ac_try" in
49255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49256   *) ac_try_echo=$ac_try;;
49257 esac
49258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49259 $as_echo "$ac_try_echo") >&5
49260   (eval "$ac_link") 2>conftest.er1
49261   ac_status=$?
49262   grep -v '^ *+' conftest.er1 >conftest.err
49263   rm -f conftest.er1
49264   cat conftest.err >&5
49265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49266   (exit $ac_status); } && {
49267          test -z "$ac_c_werror_flag" ||
49268          test ! -s conftest.err
49269        } && test -s conftest$ac_exeext &&
49270        $as_test_x conftest$ac_exeext; then
49271   :
49272 else
49273   $as_echo "$as_me: failed program was:" >&5
49274 sed 's/^/| /' conftest.$ac_ext >&5
49275
49276         ac_seq_save_LIBS="$LIBS"
49277      LIBS="$LIBS -lm"
49278      cat >conftest.$ac_ext <<_ACEOF
49279 /* confdefs.h.  */
49280 _ACEOF
49281 cat confdefs.h >>conftest.$ac_ext
49282 cat >>conftest.$ac_ext <<_ACEOF
49283 /* end confdefs.h.  */
49284 #include <math.h>
49285 int
49286 main ()
49287 {
49288 $ac_seq_body
49289   ;
49290   return 0;
49291 }
49292 _ACEOF
49293 rm -f conftest.$ac_objext conftest$ac_exeext
49294 if { (ac_try="$ac_link"
49295 case "(($ac_try" in
49296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49297   *) ac_try_echo=$ac_try;;
49298 esac
49299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49300 $as_echo "$ac_try_echo") >&5
49301   (eval "$ac_link") 2>conftest.er1
49302   ac_status=$?
49303   grep -v '^ *+' conftest.er1 >conftest.err
49304   rm -f conftest.er1
49305   cat conftest.err >&5
49306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49307   (exit $ac_status); } && {
49308          test -z "$ac_c_werror_flag" ||
49309          test ! -s conftest.err
49310        } && test -s conftest$ac_exeext &&
49311        $as_test_x conftest$ac_exeext; then
49312   SEQ_LIBM=-lm
49313 else
49314   $as_echo "$as_me: failed program was:" >&5
49315 sed 's/^/| /' conftest.$ac_ext >&5
49316
49317
49318 fi
49319
49320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49321       conftest$ac_exeext conftest.$ac_ext
49322      LIBS="$ac_seq_save_LIBS"
49323
49324 fi
49325
49326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49327       conftest$ac_exeext conftest.$ac_ext
49328
49329
49330
49331   # Build df only if there's a point to it.
49332   if test $gl_cv_list_mounted_fs = yes && test $gl_cv_fs_space = yes; then
49333     DF_PROG='df$(EXEEXT)'
49334   fi
49335
49336
49337
49338 for ac_header in vfork.h
49339 do
49340 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
49341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49342   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
49343 $as_echo_n "checking for $ac_header... " >&6; }
49344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49345   $as_echo_n "(cached) " >&6
49346 fi
49347 ac_res=`eval 'as_val=${'$as_ac_Header'}
49348                  $as_echo "$as_val"'`
49349                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49350 $as_echo "$ac_res" >&6; }
49351 else
49352   # Is the header compilable?
49353 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
49354 $as_echo_n "checking $ac_header usability... " >&6; }
49355 cat >conftest.$ac_ext <<_ACEOF
49356 /* confdefs.h.  */
49357 _ACEOF
49358 cat confdefs.h >>conftest.$ac_ext
49359 cat >>conftest.$ac_ext <<_ACEOF
49360 /* end confdefs.h.  */
49361 $ac_includes_default
49362 #include <$ac_header>
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49371 $as_echo "$ac_try_echo") >&5
49372   (eval "$ac_compile") 2>conftest.er1
49373   ac_status=$?
49374   grep -v '^ *+' conftest.er1 >conftest.err
49375   rm -f conftest.er1
49376   cat conftest.err >&5
49377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49378   (exit $ac_status); } && {
49379          test -z "$ac_c_werror_flag" ||
49380          test ! -s conftest.err
49381        } && test -s conftest.$ac_objext; then
49382   ac_header_compiler=yes
49383 else
49384   $as_echo "$as_me: failed program was:" >&5
49385 sed 's/^/| /' conftest.$ac_ext >&5
49386
49387         ac_header_compiler=no
49388 fi
49389
49390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49391 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49392 $as_echo "$ac_header_compiler" >&6; }
49393
49394 # Is the header present?
49395 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
49396 $as_echo_n "checking $ac_header presence... " >&6; }
49397 cat >conftest.$ac_ext <<_ACEOF
49398 /* confdefs.h.  */
49399 _ACEOF
49400 cat confdefs.h >>conftest.$ac_ext
49401 cat >>conftest.$ac_ext <<_ACEOF
49402 /* end confdefs.h.  */
49403 #include <$ac_header>
49404 _ACEOF
49405 if { (ac_try="$ac_cpp conftest.$ac_ext"
49406 case "(($ac_try" in
49407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49408   *) ac_try_echo=$ac_try;;
49409 esac
49410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49411 $as_echo "$ac_try_echo") >&5
49412   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
49413   ac_status=$?
49414   grep -v '^ *+' conftest.er1 >conftest.err
49415   rm -f conftest.er1
49416   cat conftest.err >&5
49417   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49418   (exit $ac_status); } >/dev/null && {
49419          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
49420          test ! -s conftest.err
49421        }; then
49422   ac_header_preproc=yes
49423 else
49424   $as_echo "$as_me: failed program was:" >&5
49425 sed 's/^/| /' conftest.$ac_ext >&5
49426
49427   ac_header_preproc=no
49428 fi
49429
49430 rm -f conftest.err conftest.$ac_ext
49431 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49432 $as_echo "$ac_header_preproc" >&6; }
49433
49434 # So?  What about this header?
49435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49436   yes:no: )
49437     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49438 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49439     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
49440 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
49441     ac_header_preproc=yes
49442     ;;
49443   no:yes:* )
49444     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49445 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49446     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
49447 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
49448     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
49449 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
49450     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
49451 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
49452     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49453 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49454     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
49455 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
49456     ( cat <<\_ASBOX
49457 ## ------------------------------------ ##
49458 ## Report this to bug-coreutils@gnu.org ##
49459 ## ------------------------------------ ##
49460 _ASBOX
49461      ) | sed "s/^/$as_me: WARNING:     /" >&2
49462     ;;
49463 esac
49464 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
49465 $as_echo_n "checking for $ac_header... " >&6; }
49466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49467   $as_echo_n "(cached) " >&6
49468 else
49469   eval "$as_ac_Header=\$ac_header_preproc"
49470 fi
49471 ac_res=`eval 'as_val=${'$as_ac_Header'}
49472                  $as_echo "$as_val"'`
49473                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49474 $as_echo "$ac_res" >&6; }
49475
49476 fi
49477 if test `eval 'as_val=${'$as_ac_Header'}
49478                  $as_echo "$as_val"'` = yes; then
49479   cat >>confdefs.h <<_ACEOF
49480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
49481 _ACEOF
49482
49483 fi
49484
49485 done
49486
49487
49488
49489 for ac_func in fork vfork
49490 do
49491 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
49492 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
49493 $as_echo_n "checking for $ac_func... " >&6; }
49494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49495   $as_echo_n "(cached) " >&6
49496 else
49497   cat >conftest.$ac_ext <<_ACEOF
49498 /* confdefs.h.  */
49499 _ACEOF
49500 cat confdefs.h >>conftest.$ac_ext
49501 cat >>conftest.$ac_ext <<_ACEOF
49502 /* end confdefs.h.  */
49503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49505 #define $ac_func innocuous_$ac_func
49506
49507 /* System header to define __stub macros and hopefully few prototypes,
49508     which can conflict with char $ac_func (); below.
49509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49510     <limits.h> exists even on freestanding compilers.  */
49511
49512 #ifdef __STDC__
49513 # include <limits.h>
49514 #else
49515 # include <assert.h>
49516 #endif
49517
49518 #undef $ac_func
49519
49520 /* Override any GCC internal prototype to avoid an error.
49521    Use char because int might match the return type of a GCC
49522    builtin and then its argument prototype would still apply.  */
49523 #ifdef __cplusplus
49524 extern "C"
49525 #endif
49526 char $ac_func ();
49527 /* The GNU C library defines this for functions which it implements
49528     to always fail with ENOSYS.  Some functions are actually named
49529     something starting with __ and the normal name is an alias.  */
49530 #if defined __stub_$ac_func || defined __stub___$ac_func
49531 choke me
49532 #endif
49533
49534 int
49535 main ()
49536 {
49537 return $ac_func ();
49538   ;
49539   return 0;
49540 }
49541 _ACEOF
49542 rm -f conftest.$ac_objext conftest$ac_exeext
49543 if { (ac_try="$ac_link"
49544 case "(($ac_try" in
49545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49546   *) ac_try_echo=$ac_try;;
49547 esac
49548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49549 $as_echo "$ac_try_echo") >&5
49550   (eval "$ac_link") 2>conftest.er1
49551   ac_status=$?
49552   grep -v '^ *+' conftest.er1 >conftest.err
49553   rm -f conftest.er1
49554   cat conftest.err >&5
49555   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49556   (exit $ac_status); } && {
49557          test -z "$ac_c_werror_flag" ||
49558          test ! -s conftest.err
49559        } && test -s conftest$ac_exeext &&
49560        $as_test_x conftest$ac_exeext; then
49561   eval "$as_ac_var=yes"
49562 else
49563   $as_echo "$as_me: failed program was:" >&5
49564 sed 's/^/| /' conftest.$ac_ext >&5
49565
49566         eval "$as_ac_var=no"
49567 fi
49568
49569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49570       conftest$ac_exeext conftest.$ac_ext
49571 fi
49572 ac_res=`eval 'as_val=${'$as_ac_var'}
49573                  $as_echo "$as_val"'`
49574                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49575 $as_echo "$ac_res" >&6; }
49576 if test `eval 'as_val=${'$as_ac_var'}
49577                  $as_echo "$as_val"'` = yes; then
49578   cat >>confdefs.h <<_ACEOF
49579 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
49580 _ACEOF
49581
49582 fi
49583 done
49584
49585 if test "x$ac_cv_func_fork" = xyes; then
49586   { $as_echo "$as_me:$LINENO: checking for working fork" >&5
49587 $as_echo_n "checking for working fork... " >&6; }
49588 if test "${ac_cv_func_fork_works+set}" = set; then
49589   $as_echo_n "(cached) " >&6
49590 else
49591   if test "$cross_compiling" = yes; then
49592   ac_cv_func_fork_works=cross
49593 else
49594   cat >conftest.$ac_ext <<_ACEOF
49595 /* confdefs.h.  */
49596 _ACEOF
49597 cat confdefs.h >>conftest.$ac_ext
49598 cat >>conftest.$ac_ext <<_ACEOF
49599 /* end confdefs.h.  */
49600 $ac_includes_default
49601 int
49602 main ()
49603 {
49604
49605           /* By Ruediger Kuhlmann. */
49606           return fork () < 0;
49607
49608   ;
49609   return 0;
49610 }
49611 _ACEOF
49612 rm -f conftest$ac_exeext
49613 if { (ac_try="$ac_link"
49614 case "(($ac_try" in
49615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49616   *) ac_try_echo=$ac_try;;
49617 esac
49618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49619 $as_echo "$ac_try_echo") >&5
49620   (eval "$ac_link") 2>&5
49621   ac_status=$?
49622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49623   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49624   { (case "(($ac_try" in
49625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49626   *) ac_try_echo=$ac_try;;
49627 esac
49628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49629 $as_echo "$ac_try_echo") >&5
49630   (eval "$ac_try") 2>&5
49631   ac_status=$?
49632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49633   (exit $ac_status); }; }; then
49634   ac_cv_func_fork_works=yes
49635 else
49636   $as_echo "$as_me: program exited with status $ac_status" >&5
49637 $as_echo "$as_me: failed program was:" >&5
49638 sed 's/^/| /' conftest.$ac_ext >&5
49639
49640 ( exit $ac_status )
49641 ac_cv_func_fork_works=no
49642 fi
49643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49644 fi
49645
49646
49647 fi
49648 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
49649 $as_echo "$ac_cv_func_fork_works" >&6; }
49650
49651 else
49652   ac_cv_func_fork_works=$ac_cv_func_fork
49653 fi
49654 if test "x$ac_cv_func_fork_works" = xcross; then
49655   case $host in
49656     *-*-amigaos* | *-*-msdosdjgpp*)
49657       # Override, as these systems have only a dummy fork() stub
49658       ac_cv_func_fork_works=no
49659       ;;
49660     *)
49661       ac_cv_func_fork_works=yes
49662       ;;
49663   esac
49664   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
49665 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
49666 fi
49667 ac_cv_func_vfork_works=$ac_cv_func_vfork
49668 if test "x$ac_cv_func_vfork" = xyes; then
49669   { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
49670 $as_echo_n "checking for working vfork... " >&6; }
49671 if test "${ac_cv_func_vfork_works+set}" = set; then
49672   $as_echo_n "(cached) " >&6
49673 else
49674   if test "$cross_compiling" = yes; then
49675   ac_cv_func_vfork_works=cross
49676 else
49677   cat >conftest.$ac_ext <<_ACEOF
49678 /* confdefs.h.  */
49679 _ACEOF
49680 cat confdefs.h >>conftest.$ac_ext
49681 cat >>conftest.$ac_ext <<_ACEOF
49682 /* end confdefs.h.  */
49683 /* Thanks to Paul Eggert for this test.  */
49684 $ac_includes_default
49685 #include <sys/wait.h>
49686 #ifdef HAVE_VFORK_H
49687 # include <vfork.h>
49688 #endif
49689 /* On some sparc systems, changes by the child to local and incoming
49690    argument registers are propagated back to the parent.  The compiler
49691    is told about this with #include <vfork.h>, but some compilers
49692    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
49693    static variable whose address is put into a register that is
49694    clobbered by the vfork.  */
49695 static void
49696 #ifdef __cplusplus
49697 sparc_address_test (int arg)
49698 # else
49699 sparc_address_test (arg) int arg;
49700 #endif
49701 {
49702   static pid_t child;
49703   if (!child) {
49704     child = vfork ();
49705     if (child < 0) {
49706       perror ("vfork");
49707       _exit(2);
49708     }
49709     if (!child) {
49710       arg = getpid();
49711       write(-1, "", 0);
49712       _exit (arg);
49713     }
49714   }
49715 }
49716
49717 int
49718 main ()
49719 {
49720   pid_t parent = getpid ();
49721   pid_t child;
49722
49723   sparc_address_test (0);
49724
49725   child = vfork ();
49726
49727   if (child == 0) {
49728     /* Here is another test for sparc vfork register problems.  This
49729        test uses lots of local variables, at least as many local
49730        variables as main has allocated so far including compiler
49731        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
49732        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
49733        reuse the register of parent for one of the local variables,
49734        since it will think that parent can't possibly be used any more
49735        in this routine.  Assigning to the local variable will thus
49736        munge parent in the parent process.  */
49737     pid_t
49738       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
49739       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
49740     /* Convince the compiler that p..p7 are live; otherwise, it might
49741        use the same hardware register for all 8 local variables.  */
49742     if (p != p1 || p != p2 || p != p3 || p != p4
49743         || p != p5 || p != p6 || p != p7)
49744       _exit(1);
49745
49746     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
49747        from child file descriptors.  If the child closes a descriptor
49748        before it execs or exits, this munges the parent's descriptor
49749        as well.  Test for this by closing stdout in the child.  */
49750     _exit(close(fileno(stdout)) != 0);
49751   } else {
49752     int status;
49753     struct stat st;
49754
49755     while (wait(&status) != child)
49756       ;
49757     return (
49758          /* Was there some problem with vforking?  */
49759          child < 0
49760
49761          /* Did the child fail?  (This shouldn't happen.)  */
49762          || status
49763
49764          /* Did the vfork/compiler bug occur?  */
49765          || parent != getpid()
49766
49767          /* Did the file descriptor bug occur?  */
49768          || fstat(fileno(stdout), &st) != 0
49769          );
49770   }
49771 }
49772 _ACEOF
49773 rm -f conftest$ac_exeext
49774 if { (ac_try="$ac_link"
49775 case "(($ac_try" in
49776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49777   *) ac_try_echo=$ac_try;;
49778 esac
49779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49780 $as_echo "$ac_try_echo") >&5
49781   (eval "$ac_link") 2>&5
49782   ac_status=$?
49783   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49784   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49785   { (case "(($ac_try" in
49786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49787   *) ac_try_echo=$ac_try;;
49788 esac
49789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49790 $as_echo "$ac_try_echo") >&5
49791   (eval "$ac_try") 2>&5
49792   ac_status=$?
49793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49794   (exit $ac_status); }; }; then
49795   ac_cv_func_vfork_works=yes
49796 else
49797   $as_echo "$as_me: program exited with status $ac_status" >&5
49798 $as_echo "$as_me: failed program was:" >&5
49799 sed 's/^/| /' conftest.$ac_ext >&5
49800
49801 ( exit $ac_status )
49802 ac_cv_func_vfork_works=no
49803 fi
49804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49805 fi
49806
49807
49808 fi
49809 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
49810 $as_echo "$ac_cv_func_vfork_works" >&6; }
49811
49812 fi;
49813 if test "x$ac_cv_func_fork_works" = xcross; then
49814   ac_cv_func_vfork_works=$ac_cv_func_vfork
49815   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
49816 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
49817 fi
49818
49819 if test "x$ac_cv_func_vfork_works" = xyes; then
49820
49821 cat >>confdefs.h <<\_ACEOF
49822 #define HAVE_WORKING_VFORK 1
49823 _ACEOF
49824
49825 else
49826
49827 cat >>confdefs.h <<\_ACEOF
49828 #define vfork fork
49829 _ACEOF
49830
49831 fi
49832 if test "x$ac_cv_func_fork_works" = xyes; then
49833
49834 cat >>confdefs.h <<\_ACEOF
49835 #define HAVE_WORKING_FORK 1
49836 _ACEOF
49837
49838 fi
49839
49840
49841
49842 for ac_func in uname
49843 do
49844 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
49845 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
49846 $as_echo_n "checking for $ac_func... " >&6; }
49847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49848   $as_echo_n "(cached) " >&6
49849 else
49850   cat >conftest.$ac_ext <<_ACEOF
49851 /* confdefs.h.  */
49852 _ACEOF
49853 cat confdefs.h >>conftest.$ac_ext
49854 cat >>conftest.$ac_ext <<_ACEOF
49855 /* end confdefs.h.  */
49856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49858 #define $ac_func innocuous_$ac_func
49859
49860 /* System header to define __stub macros and hopefully few prototypes,
49861     which can conflict with char $ac_func (); below.
49862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49863     <limits.h> exists even on freestanding compilers.  */
49864
49865 #ifdef __STDC__
49866 # include <limits.h>
49867 #else
49868 # include <assert.h>
49869 #endif
49870
49871 #undef $ac_func
49872
49873 /* Override any GCC internal prototype to avoid an error.
49874    Use char because int might match the return type of a GCC
49875    builtin and then its argument prototype would still apply.  */
49876 #ifdef __cplusplus
49877 extern "C"
49878 #endif
49879 char $ac_func ();
49880 /* The GNU C library defines this for functions which it implements
49881     to always fail with ENOSYS.  Some functions are actually named
49882     something starting with __ and the normal name is an alias.  */
49883 #if defined __stub_$ac_func || defined __stub___$ac_func
49884 choke me
49885 #endif
49886
49887 int
49888 main ()
49889 {
49890 return $ac_func ();
49891   ;
49892   return 0;
49893 }
49894 _ACEOF
49895 rm -f conftest.$ac_objext conftest$ac_exeext
49896 if { (ac_try="$ac_link"
49897 case "(($ac_try" in
49898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49899   *) ac_try_echo=$ac_try;;
49900 esac
49901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49902 $as_echo "$ac_try_echo") >&5
49903   (eval "$ac_link") 2>conftest.er1
49904   ac_status=$?
49905   grep -v '^ *+' conftest.er1 >conftest.err
49906   rm -f conftest.er1
49907   cat conftest.err >&5
49908   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49909   (exit $ac_status); } && {
49910          test -z "$ac_c_werror_flag" ||
49911          test ! -s conftest.err
49912        } && test -s conftest$ac_exeext &&
49913        $as_test_x conftest$ac_exeext; then
49914   eval "$as_ac_var=yes"
49915 else
49916   $as_echo "$as_me: failed program was:" >&5
49917 sed 's/^/| /' conftest.$ac_ext >&5
49918
49919         eval "$as_ac_var=no"
49920 fi
49921
49922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49923       conftest$ac_exeext conftest.$ac_ext
49924 fi
49925 ac_res=`eval 'as_val=${'$as_ac_var'}
49926                  $as_echo "$as_val"'`
49927                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49928 $as_echo "$ac_res" >&6; }
49929 if test `eval 'as_val=${'$as_ac_var'}
49930                  $as_echo "$as_val"'` = yes; then
49931   cat >>confdefs.h <<_ACEOF
49932 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
49933 _ACEOF
49934  OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uname\$(EXEEXT)"
49935         MAN="$MAN uname.1"
49936 fi
49937 done
49938
49939
49940 for ac_func in chroot
49941 do
49942 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
49943 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
49944 $as_echo_n "checking for $ac_func... " >&6; }
49945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49946   $as_echo_n "(cached) " >&6
49947 else
49948   cat >conftest.$ac_ext <<_ACEOF
49949 /* confdefs.h.  */
49950 _ACEOF
49951 cat confdefs.h >>conftest.$ac_ext
49952 cat >>conftest.$ac_ext <<_ACEOF
49953 /* end confdefs.h.  */
49954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49956 #define $ac_func innocuous_$ac_func
49957
49958 /* System header to define __stub macros and hopefully few prototypes,
49959     which can conflict with char $ac_func (); below.
49960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49961     <limits.h> exists even on freestanding compilers.  */
49962
49963 #ifdef __STDC__
49964 # include <limits.h>
49965 #else
49966 # include <assert.h>
49967 #endif
49968
49969 #undef $ac_func
49970
49971 /* Override any GCC internal prototype to avoid an error.
49972    Use char because int might match the return type of a GCC
49973    builtin and then its argument prototype would still apply.  */
49974 #ifdef __cplusplus
49975 extern "C"
49976 #endif
49977 char $ac_func ();
49978 /* The GNU C library defines this for functions which it implements
49979     to always fail with ENOSYS.  Some functions are actually named
49980     something starting with __ and the normal name is an alias.  */
49981 #if defined __stub_$ac_func || defined __stub___$ac_func
49982 choke me
49983 #endif
49984
49985 int
49986 main ()
49987 {
49988 return $ac_func ();
49989   ;
49990   return 0;
49991 }
49992 _ACEOF
49993 rm -f conftest.$ac_objext conftest$ac_exeext
49994 if { (ac_try="$ac_link"
49995 case "(($ac_try" in
49996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49997   *) ac_try_echo=$ac_try;;
49998 esac
49999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50000 $as_echo "$ac_try_echo") >&5
50001   (eval "$ac_link") 2>conftest.er1
50002   ac_status=$?
50003   grep -v '^ *+' conftest.er1 >conftest.err
50004   rm -f conftest.er1
50005   cat conftest.err >&5
50006   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50007   (exit $ac_status); } && {
50008          test -z "$ac_c_werror_flag" ||
50009          test ! -s conftest.err
50010        } && test -s conftest$ac_exeext &&
50011        $as_test_x conftest$ac_exeext; then
50012   eval "$as_ac_var=yes"
50013 else
50014   $as_echo "$as_me: failed program was:" >&5
50015 sed 's/^/| /' conftest.$ac_ext >&5
50016
50017         eval "$as_ac_var=no"
50018 fi
50019
50020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50021       conftest$ac_exeext conftest.$ac_ext
50022 fi
50023 ac_res=`eval 'as_val=${'$as_ac_var'}
50024                  $as_echo "$as_val"'`
50025                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50026 $as_echo "$ac_res" >&6; }
50027 if test `eval 'as_val=${'$as_ac_var'}
50028                  $as_echo "$as_val"'` = yes; then
50029   cat >>confdefs.h <<_ACEOF
50030 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
50031 _ACEOF
50032  OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS chroot\$(EXEEXT)"
50033         MAN="$MAN chroot.1"
50034 fi
50035 done
50036
50037
50038 for ac_func in gethostid
50039 do
50040 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
50041 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
50042 $as_echo_n "checking for $ac_func... " >&6; }
50043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50044   $as_echo_n "(cached) " >&6
50045 else
50046   cat >conftest.$ac_ext <<_ACEOF
50047 /* confdefs.h.  */
50048 _ACEOF
50049 cat confdefs.h >>conftest.$ac_ext
50050 cat >>conftest.$ac_ext <<_ACEOF
50051 /* end confdefs.h.  */
50052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50054 #define $ac_func innocuous_$ac_func
50055
50056 /* System header to define __stub macros and hopefully few prototypes,
50057     which can conflict with char $ac_func (); below.
50058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50059     <limits.h> exists even on freestanding compilers.  */
50060
50061 #ifdef __STDC__
50062 # include <limits.h>
50063 #else
50064 # include <assert.h>
50065 #endif
50066
50067 #undef $ac_func
50068
50069 /* Override any GCC internal prototype to avoid an error.
50070    Use char because int might match the return type of a GCC
50071    builtin and then its argument prototype would still apply.  */
50072 #ifdef __cplusplus
50073 extern "C"
50074 #endif
50075 char $ac_func ();
50076 /* The GNU C library defines this for functions which it implements
50077     to always fail with ENOSYS.  Some functions are actually named
50078     something starting with __ and the normal name is an alias.  */
50079 #if defined __stub_$ac_func || defined __stub___$ac_func
50080 choke me
50081 #endif
50082
50083 int
50084 main ()
50085 {
50086 return $ac_func ();
50087   ;
50088   return 0;
50089 }
50090 _ACEOF
50091 rm -f conftest.$ac_objext conftest$ac_exeext
50092 if { (ac_try="$ac_link"
50093 case "(($ac_try" in
50094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50095   *) ac_try_echo=$ac_try;;
50096 esac
50097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50098 $as_echo "$ac_try_echo") >&5
50099   (eval "$ac_link") 2>conftest.er1
50100   ac_status=$?
50101   grep -v '^ *+' conftest.er1 >conftest.err
50102   rm -f conftest.er1
50103   cat conftest.err >&5
50104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50105   (exit $ac_status); } && {
50106          test -z "$ac_c_werror_flag" ||
50107          test ! -s conftest.err
50108        } && test -s conftest$ac_exeext &&
50109        $as_test_x conftest$ac_exeext; then
50110   eval "$as_ac_var=yes"
50111 else
50112   $as_echo "$as_me: failed program was:" >&5
50113 sed 's/^/| /' conftest.$ac_ext >&5
50114
50115         eval "$as_ac_var=no"
50116 fi
50117
50118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50119       conftest$ac_exeext conftest.$ac_ext
50120 fi
50121 ac_res=`eval 'as_val=${'$as_ac_var'}
50122                  $as_echo "$as_val"'`
50123                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50124 $as_echo "$ac_res" >&6; }
50125 if test `eval 'as_val=${'$as_ac_var'}
50126                  $as_echo "$as_val"'` = yes; then
50127   cat >>confdefs.h <<_ACEOF
50128 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
50129 _ACEOF
50130  OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS hostid\$(EXEEXT)"
50131         MAN="$MAN hostid.1"
50132 fi
50133 done
50134
50135
50136
50137    { $as_echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
50138 $as_echo_n "checking whether use of struct winsize requires sys/ptem.h... " >&6; }
50139 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
50140   $as_echo_n "(cached) " >&6
50141 else
50142   jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
50143       if test $ac_cv_sys_posix_termios = yes; then
50144         cat >conftest.$ac_ext <<_ACEOF
50145 /* confdefs.h.  */
50146 _ACEOF
50147 cat confdefs.h >>conftest.$ac_ext
50148 cat >>conftest.$ac_ext <<_ACEOF
50149 /* end confdefs.h.  */
50150 #include <termios.h>
50151 int
50152 main ()
50153 {
50154 struct winsize x;
50155            if (sizeof x > 0) return 0;
50156   ;
50157   return 0;
50158 }
50159 _ACEOF
50160 rm -f conftest.$ac_objext
50161 if { (ac_try="$ac_compile"
50162 case "(($ac_try" in
50163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50164   *) ac_try_echo=$ac_try;;
50165 esac
50166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50167 $as_echo "$ac_try_echo") >&5
50168   (eval "$ac_compile") 2>conftest.er1
50169   ac_status=$?
50170   grep -v '^ *+' conftest.er1 >conftest.err
50171   rm -f conftest.er1
50172   cat conftest.err >&5
50173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50174   (exit $ac_status); } && {
50175          test -z "$ac_c_werror_flag" ||
50176          test ! -s conftest.err
50177        } && test -s conftest.$ac_objext; then
50178   jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
50179 else
50180   $as_echo "$as_me: failed program was:" >&5
50181 sed 's/^/| /' conftest.$ac_ext >&5
50182
50183
50184 fi
50185
50186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50187       fi
50188       if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
50189         cat >conftest.$ac_ext <<_ACEOF
50190 /* confdefs.h.  */
50191 _ACEOF
50192 cat confdefs.h >>conftest.$ac_ext
50193 cat >>conftest.$ac_ext <<_ACEOF
50194 /* end confdefs.h.  */
50195 #include <sys/ptem.h>
50196 int
50197 main ()
50198 {
50199 struct winsize x;
50200            if (sizeof x > 0) return 0;
50201   ;
50202   return 0;
50203 }
50204 _ACEOF
50205 rm -f conftest.$ac_objext
50206 if { (ac_try="$ac_compile"
50207 case "(($ac_try" in
50208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50209   *) ac_try_echo=$ac_try;;
50210 esac
50211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50212 $as_echo "$ac_try_echo") >&5
50213   (eval "$ac_compile") 2>conftest.er1
50214   ac_status=$?
50215   grep -v '^ *+' conftest.er1 >conftest.err
50216   rm -f conftest.er1
50217   cat conftest.err >&5
50218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50219   (exit $ac_status); } && {
50220          test -z "$ac_c_werror_flag" ||
50221          test ! -s conftest.err
50222        } && test -s conftest.$ac_objext; then
50223   :
50224 else
50225   $as_echo "$as_me: failed program was:" >&5
50226 sed 's/^/| /' conftest.$ac_ext >&5
50227
50228         jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
50229 fi
50230
50231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50232       fi
50233 fi
50234 { $as_echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
50235 $as_echo "$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6; }
50236    if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
50237
50238 cat >>confdefs.h <<\_ACEOF
50239 #define WINSIZE_IN_PTEM 1
50240 _ACEOF
50241
50242    fi
50243
50244 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
50245 $as_echo_n "checking whether localtime caches TZ... " >&6; }
50246 if test "${utils_cv_localtime_cache+set}" = set; then
50247   $as_echo_n "(cached) " >&6
50248 else
50249   if test x$ac_cv_func_tzset = xyes; then
50250 if test "$cross_compiling" = yes; then
50251   # If we have tzset, assume the worst when cross-compiling.
50252 utils_cv_localtime_cache=yes
50253 else
50254   cat >conftest.$ac_ext <<_ACEOF
50255 /* confdefs.h.  */
50256 _ACEOF
50257 cat confdefs.h >>conftest.$ac_ext
50258 cat >>conftest.$ac_ext <<_ACEOF
50259 /* end confdefs.h.  */
50260 #include <time.h>
50261 #if STDC_HEADERS
50262 # include <stdlib.h>
50263 #endif
50264 extern char **environ;
50265 void unset_TZ (void)
50266 {
50267   char **from, **to;
50268   for (to = from = environ; (*to = *from); from++)
50269     if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
50270       to++;
50271 }
50272 int main()
50273 {
50274   time_t now = time ((time_t *) 0);
50275   int hour_GMT0, hour_unset;
50276   if (putenv ("TZ=GMT0") != 0)
50277     exit (1);
50278   hour_GMT0 = localtime (&now)->tm_hour;
50279   unset_TZ ();
50280   hour_unset = localtime (&now)->tm_hour;
50281   if (putenv ("TZ=PST8") != 0)
50282     exit (1);
50283   if (localtime (&now)->tm_hour == hour_GMT0)
50284     exit (1);
50285   unset_TZ ();
50286   if (localtime (&now)->tm_hour != hour_unset)
50287     exit (1);
50288   exit (0);
50289 }
50290 _ACEOF
50291 rm -f conftest$ac_exeext
50292 if { (ac_try="$ac_link"
50293 case "(($ac_try" in
50294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50295   *) ac_try_echo=$ac_try;;
50296 esac
50297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50298 $as_echo "$ac_try_echo") >&5
50299   (eval "$ac_link") 2>&5
50300   ac_status=$?
50301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50302   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50303   { (case "(($ac_try" in
50304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50305   *) ac_try_echo=$ac_try;;
50306 esac
50307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50308 $as_echo "$ac_try_echo") >&5
50309   (eval "$ac_try") 2>&5
50310   ac_status=$?
50311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50312   (exit $ac_status); }; }; then
50313   utils_cv_localtime_cache=no
50314 else
50315   $as_echo "$as_me: program exited with status $ac_status" >&5
50316 $as_echo "$as_me: failed program was:" >&5
50317 sed 's/^/| /' conftest.$ac_ext >&5
50318
50319 ( exit $ac_status )
50320 utils_cv_localtime_cache=yes
50321 fi
50322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50323 fi
50324
50325
50326 else
50327         # If we lack tzset, report that localtime does not cache TZ,
50328         # since we can't invalidate the cache if we don't have tzset.
50329         utils_cv_localtime_cache=no
50330 fi
50331 fi
50332 { $as_echo "$as_me:$LINENO: result: $utils_cv_localtime_cache" >&5
50333 $as_echo "$utils_cv_localtime_cache" >&6; }
50334 if test $utils_cv_localtime_cache = yes; then
50335
50336 cat >>confdefs.h <<\_ACEOF
50337 #define LOCALTIME_CACHE 1
50338 _ACEOF
50339
50340 fi
50341
50342 # SCO-ODT-3.0 is reported to need -los to link programs using initgroups
50343
50344 for ac_func in initgroups
50345 do
50346 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
50347 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
50348 $as_echo_n "checking for $ac_func... " >&6; }
50349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50350   $as_echo_n "(cached) " >&6
50351 else
50352   cat >conftest.$ac_ext <<_ACEOF
50353 /* confdefs.h.  */
50354 _ACEOF
50355 cat confdefs.h >>conftest.$ac_ext
50356 cat >>conftest.$ac_ext <<_ACEOF
50357 /* end confdefs.h.  */
50358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50360 #define $ac_func innocuous_$ac_func
50361
50362 /* System header to define __stub macros and hopefully few prototypes,
50363     which can conflict with char $ac_func (); below.
50364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50365     <limits.h> exists even on freestanding compilers.  */
50366
50367 #ifdef __STDC__
50368 # include <limits.h>
50369 #else
50370 # include <assert.h>
50371 #endif
50372
50373 #undef $ac_func
50374
50375 /* Override any GCC internal prototype to avoid an error.
50376    Use char because int might match the return type of a GCC
50377    builtin and then its argument prototype would still apply.  */
50378 #ifdef __cplusplus
50379 extern "C"
50380 #endif
50381 char $ac_func ();
50382 /* The GNU C library defines this for functions which it implements
50383     to always fail with ENOSYS.  Some functions are actually named
50384     something starting with __ and the normal name is an alias.  */
50385 #if defined __stub_$ac_func || defined __stub___$ac_func
50386 choke me
50387 #endif
50388
50389 int
50390 main ()
50391 {
50392 return $ac_func ();
50393   ;
50394   return 0;
50395 }
50396 _ACEOF
50397 rm -f conftest.$ac_objext conftest$ac_exeext
50398 if { (ac_try="$ac_link"
50399 case "(($ac_try" in
50400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50401   *) ac_try_echo=$ac_try;;
50402 esac
50403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50404 $as_echo "$ac_try_echo") >&5
50405   (eval "$ac_link") 2>conftest.er1
50406   ac_status=$?
50407   grep -v '^ *+' conftest.er1 >conftest.err
50408   rm -f conftest.er1
50409   cat conftest.err >&5
50410   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50411   (exit $ac_status); } && {
50412          test -z "$ac_c_werror_flag" ||
50413          test ! -s conftest.err
50414        } && test -s conftest$ac_exeext &&
50415        $as_test_x conftest$ac_exeext; then
50416   eval "$as_ac_var=yes"
50417 else
50418   $as_echo "$as_me: failed program was:" >&5
50419 sed 's/^/| /' conftest.$ac_ext >&5
50420
50421         eval "$as_ac_var=no"
50422 fi
50423
50424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50425       conftest$ac_exeext conftest.$ac_ext
50426 fi
50427 ac_res=`eval 'as_val=${'$as_ac_var'}
50428                  $as_echo "$as_val"'`
50429                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50430 $as_echo "$ac_res" >&6; }
50431 if test `eval 'as_val=${'$as_ac_var'}
50432                  $as_echo "$as_val"'` = yes; then
50433   cat >>confdefs.h <<_ACEOF
50434 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
50435 _ACEOF
50436
50437 fi
50438 done
50439
50440 if test $ac_cv_func_initgroups = no; then
50441
50442 { $as_echo "$as_me:$LINENO: checking for initgroups in -los" >&5
50443 $as_echo_n "checking for initgroups in -los... " >&6; }
50444 if test "${ac_cv_lib_os_initgroups+set}" = set; then
50445   $as_echo_n "(cached) " >&6
50446 else
50447   ac_check_lib_save_LIBS=$LIBS
50448 LIBS="-los  $LIBS"
50449 cat >conftest.$ac_ext <<_ACEOF
50450 /* confdefs.h.  */
50451 _ACEOF
50452 cat confdefs.h >>conftest.$ac_ext
50453 cat >>conftest.$ac_ext <<_ACEOF
50454 /* end confdefs.h.  */
50455
50456 /* Override any GCC internal prototype to avoid an error.
50457    Use char because int might match the return type of a GCC
50458    builtin and then its argument prototype would still apply.  */
50459 #ifdef __cplusplus
50460 extern "C"
50461 #endif
50462 char initgroups ();
50463 int
50464 main ()
50465 {
50466 return initgroups ();
50467   ;
50468   return 0;
50469 }
50470 _ACEOF
50471 rm -f conftest.$ac_objext conftest$ac_exeext
50472 if { (ac_try="$ac_link"
50473 case "(($ac_try" in
50474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50475   *) ac_try_echo=$ac_try;;
50476 esac
50477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50478 $as_echo "$ac_try_echo") >&5
50479   (eval "$ac_link") 2>conftest.er1
50480   ac_status=$?
50481   grep -v '^ *+' conftest.er1 >conftest.err
50482   rm -f conftest.er1
50483   cat conftest.err >&5
50484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50485   (exit $ac_status); } && {
50486          test -z "$ac_c_werror_flag" ||
50487          test ! -s conftest.err
50488        } && test -s conftest$ac_exeext &&
50489        $as_test_x conftest$ac_exeext; then
50490   ac_cv_lib_os_initgroups=yes
50491 else
50492   $as_echo "$as_me: failed program was:" >&5
50493 sed 's/^/| /' conftest.$ac_ext >&5
50494
50495         ac_cv_lib_os_initgroups=no
50496 fi
50497
50498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50499       conftest$ac_exeext conftest.$ac_ext
50500 LIBS=$ac_check_lib_save_LIBS
50501 fi
50502 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_os_initgroups" >&5
50503 $as_echo "$ac_cv_lib_os_initgroups" >&6; }
50504 if test $ac_cv_lib_os_initgroups = yes; then
50505   cat >>confdefs.h <<_ACEOF
50506 #define HAVE_LIBOS 1
50507 _ACEOF
50508
50509   LIBS="-los $LIBS"
50510
50511 fi
50512
50513 fi
50514
50515
50516 for ac_func in syslog
50517 do
50518 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
50519 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
50520 $as_echo_n "checking for $ac_func... " >&6; }
50521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50522   $as_echo_n "(cached) " >&6
50523 else
50524   cat >conftest.$ac_ext <<_ACEOF
50525 /* confdefs.h.  */
50526 _ACEOF
50527 cat confdefs.h >>conftest.$ac_ext
50528 cat >>conftest.$ac_ext <<_ACEOF
50529 /* end confdefs.h.  */
50530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50532 #define $ac_func innocuous_$ac_func
50533
50534 /* System header to define __stub macros and hopefully few prototypes,
50535     which can conflict with char $ac_func (); below.
50536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50537     <limits.h> exists even on freestanding compilers.  */
50538
50539 #ifdef __STDC__
50540 # include <limits.h>
50541 #else
50542 # include <assert.h>
50543 #endif
50544
50545 #undef $ac_func
50546
50547 /* Override any GCC internal prototype to avoid an error.
50548    Use char because int might match the return type of a GCC
50549    builtin and then its argument prototype would still apply.  */
50550 #ifdef __cplusplus
50551 extern "C"
50552 #endif
50553 char $ac_func ();
50554 /* The GNU C library defines this for functions which it implements
50555     to always fail with ENOSYS.  Some functions are actually named
50556     something starting with __ and the normal name is an alias.  */
50557 #if defined __stub_$ac_func || defined __stub___$ac_func
50558 choke me
50559 #endif
50560
50561 int
50562 main ()
50563 {
50564 return $ac_func ();
50565   ;
50566   return 0;
50567 }
50568 _ACEOF
50569 rm -f conftest.$ac_objext conftest$ac_exeext
50570 if { (ac_try="$ac_link"
50571 case "(($ac_try" in
50572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50573   *) ac_try_echo=$ac_try;;
50574 esac
50575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50576 $as_echo "$ac_try_echo") >&5
50577   (eval "$ac_link") 2>conftest.er1
50578   ac_status=$?
50579   grep -v '^ *+' conftest.er1 >conftest.err
50580   rm -f conftest.er1
50581   cat conftest.err >&5
50582   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50583   (exit $ac_status); } && {
50584          test -z "$ac_c_werror_flag" ||
50585          test ! -s conftest.err
50586        } && test -s conftest$ac_exeext &&
50587        $as_test_x conftest$ac_exeext; then
50588   eval "$as_ac_var=yes"
50589 else
50590   $as_echo "$as_me: failed program was:" >&5
50591 sed 's/^/| /' conftest.$ac_ext >&5
50592
50593         eval "$as_ac_var=no"
50594 fi
50595
50596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50597       conftest$ac_exeext conftest.$ac_ext
50598 fi
50599 ac_res=`eval 'as_val=${'$as_ac_var'}
50600                  $as_echo "$as_val"'`
50601                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50602 $as_echo "$ac_res" >&6; }
50603 if test `eval 'as_val=${'$as_ac_var'}
50604                  $as_echo "$as_val"'` = yes; then
50605   cat >>confdefs.h <<_ACEOF
50606 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
50607 _ACEOF
50608
50609 fi
50610 done
50611
50612 if test $ac_cv_func_syslog = no; then
50613   # syslog is not in the default libraries.  See if it's in some other.
50614   for lib in bsd socket inet; do
50615     as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_syslog" | $as_tr_sh`
50616 { $as_echo "$as_me:$LINENO: checking for syslog in -l$lib" >&5
50617 $as_echo_n "checking for syslog in -l$lib... " >&6; }
50618 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
50619   $as_echo_n "(cached) " >&6
50620 else
50621   ac_check_lib_save_LIBS=$LIBS
50622 LIBS="-l$lib  $LIBS"
50623 cat >conftest.$ac_ext <<_ACEOF
50624 /* confdefs.h.  */
50625 _ACEOF
50626 cat confdefs.h >>conftest.$ac_ext
50627 cat >>conftest.$ac_ext <<_ACEOF
50628 /* end confdefs.h.  */
50629
50630 /* Override any GCC internal prototype to avoid an error.
50631    Use char because int might match the return type of a GCC
50632    builtin and then its argument prototype would still apply.  */
50633 #ifdef __cplusplus
50634 extern "C"
50635 #endif
50636 char syslog ();
50637 int
50638 main ()
50639 {
50640 return syslog ();
50641   ;
50642   return 0;
50643 }
50644 _ACEOF
50645 rm -f conftest.$ac_objext conftest$ac_exeext
50646 if { (ac_try="$ac_link"
50647 case "(($ac_try" in
50648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50649   *) ac_try_echo=$ac_try;;
50650 esac
50651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50652 $as_echo "$ac_try_echo") >&5
50653   (eval "$ac_link") 2>conftest.er1
50654   ac_status=$?
50655   grep -v '^ *+' conftest.er1 >conftest.err
50656   rm -f conftest.er1
50657   cat conftest.err >&5
50658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50659   (exit $ac_status); } && {
50660          test -z "$ac_c_werror_flag" ||
50661          test ! -s conftest.err
50662        } && test -s conftest$ac_exeext &&
50663        $as_test_x conftest$ac_exeext; then
50664   eval "$as_ac_Lib=yes"
50665 else
50666   $as_echo "$as_me: failed program was:" >&5
50667 sed 's/^/| /' conftest.$ac_ext >&5
50668
50669         eval "$as_ac_Lib=no"
50670 fi
50671
50672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50673       conftest$ac_exeext conftest.$ac_ext
50674 LIBS=$ac_check_lib_save_LIBS
50675 fi
50676 ac_res=`eval 'as_val=${'$as_ac_Lib'}
50677                  $as_echo "$as_val"'`
50678                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50679 $as_echo "$ac_res" >&6; }
50680 if test `eval 'as_val=${'$as_ac_Lib'}
50681                  $as_echo "$as_val"'` = yes; then
50682
50683 cat >>confdefs.h <<\_ACEOF
50684 #define HAVE_SYSLOG 1
50685 _ACEOF
50686
50687       LIBS="$LIBS -l$lib"; break
50688 fi
50689
50690   done
50691 fi
50692
50693 { $as_echo "$as_me:$LINENO: checking for 3-argument setpriority function" >&5
50694 $as_echo_n "checking for 3-argument setpriority function... " >&6; }
50695 if test "${utils_cv_func_setpriority+set}" = set; then
50696   $as_echo_n "(cached) " >&6
50697 else
50698   cat >conftest.$ac_ext <<_ACEOF
50699 /* confdefs.h.  */
50700 _ACEOF
50701 cat confdefs.h >>conftest.$ac_ext
50702 cat >>conftest.$ac_ext <<_ACEOF
50703 /* end confdefs.h.  */
50704 #include <sys/time.h>
50705          #include <sys/resource.h>
50706
50707 int
50708 main ()
50709 {
50710 setpriority (0, 0, 0);
50711   ;
50712   return 0;
50713 }
50714 _ACEOF
50715 rm -f conftest.$ac_objext conftest$ac_exeext
50716 if { (ac_try="$ac_link"
50717 case "(($ac_try" in
50718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50719   *) ac_try_echo=$ac_try;;
50720 esac
50721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50722 $as_echo "$ac_try_echo") >&5
50723   (eval "$ac_link") 2>conftest.er1
50724   ac_status=$?
50725   grep -v '^ *+' conftest.er1 >conftest.err
50726   rm -f conftest.er1
50727   cat conftest.err >&5
50728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50729   (exit $ac_status); } && {
50730          test -z "$ac_c_werror_flag" ||
50731          test ! -s conftest.err
50732        } && test -s conftest$ac_exeext &&
50733        $as_test_x conftest$ac_exeext; then
50734   utils_cv_func_setpriority=yes
50735 else
50736   $as_echo "$as_me: failed program was:" >&5
50737 sed 's/^/| /' conftest.$ac_ext >&5
50738
50739         utils_cv_func_setpriority=no
50740 fi
50741
50742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50743       conftest$ac_exeext conftest.$ac_ext
50744 fi
50745 { $as_echo "$as_me:$LINENO: result: $utils_cv_func_setpriority" >&5
50746 $as_echo "$utils_cv_func_setpriority" >&6; }
50747 if test $utils_cv_func_setpriority = no; then
50748
50749 for ac_func in nice
50750 do
50751 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
50752 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
50753 $as_echo_n "checking for $ac_func... " >&6; }
50754 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50755   $as_echo_n "(cached) " >&6
50756 else
50757   cat >conftest.$ac_ext <<_ACEOF
50758 /* confdefs.h.  */
50759 _ACEOF
50760 cat confdefs.h >>conftest.$ac_ext
50761 cat >>conftest.$ac_ext <<_ACEOF
50762 /* end confdefs.h.  */
50763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50765 #define $ac_func innocuous_$ac_func
50766
50767 /* System header to define __stub macros and hopefully few prototypes,
50768     which can conflict with char $ac_func (); below.
50769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50770     <limits.h> exists even on freestanding compilers.  */
50771
50772 #ifdef __STDC__
50773 # include <limits.h>
50774 #else
50775 # include <assert.h>
50776 #endif
50777
50778 #undef $ac_func
50779
50780 /* Override any GCC internal prototype to avoid an error.
50781    Use char because int might match the return type of a GCC
50782    builtin and then its argument prototype would still apply.  */
50783 #ifdef __cplusplus
50784 extern "C"
50785 #endif
50786 char $ac_func ();
50787 /* The GNU C library defines this for functions which it implements
50788     to always fail with ENOSYS.  Some functions are actually named
50789     something starting with __ and the normal name is an alias.  */
50790 #if defined __stub_$ac_func || defined __stub___$ac_func
50791 choke me
50792 #endif
50793
50794 int
50795 main ()
50796 {
50797 return $ac_func ();
50798   ;
50799   return 0;
50800 }
50801 _ACEOF
50802 rm -f conftest.$ac_objext conftest$ac_exeext
50803 if { (ac_try="$ac_link"
50804 case "(($ac_try" in
50805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50806   *) ac_try_echo=$ac_try;;
50807 esac
50808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50809 $as_echo "$ac_try_echo") >&5
50810   (eval "$ac_link") 2>conftest.er1
50811   ac_status=$?
50812   grep -v '^ *+' conftest.er1 >conftest.err
50813   rm -f conftest.er1
50814   cat conftest.err >&5
50815   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50816   (exit $ac_status); } && {
50817          test -z "$ac_c_werror_flag" ||
50818          test ! -s conftest.err
50819        } && test -s conftest$ac_exeext &&
50820        $as_test_x conftest$ac_exeext; then
50821   eval "$as_ac_var=yes"
50822 else
50823   $as_echo "$as_me: failed program was:" >&5
50824 sed 's/^/| /' conftest.$ac_ext >&5
50825
50826         eval "$as_ac_var=no"
50827 fi
50828
50829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50830       conftest$ac_exeext conftest.$ac_ext
50831 fi
50832 ac_res=`eval 'as_val=${'$as_ac_var'}
50833                  $as_echo "$as_val"'`
50834                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50835 $as_echo "$ac_res" >&6; }
50836 if test `eval 'as_val=${'$as_ac_var'}
50837                  $as_echo "$as_val"'` = yes; then
50838   cat >>confdefs.h <<_ACEOF
50839 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
50840 _ACEOF
50841
50842 fi
50843 done
50844
50845 fi
50846 case $utils_cv_func_setpriority,$ac_cv_func_nice in
50847 *yes*)
50848   OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice\$(EXEEXT)"
50849   MAN="$MAN nice.1";;
50850 esac
50851
50852
50853
50854
50855   if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
50856     OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS pinky\$(EXEEXT)"
50857     OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS users\$(EXEEXT)"
50858     OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS who\$(EXEEXT)"
50859     MAN="$MAN pinky.1 users.1 who.1"
50860   fi
50861
50862
50863 { $as_echo "$as_me:$LINENO: checking ut_host in struct utmp" >&5
50864 $as_echo_n "checking ut_host in struct utmp... " >&6; }
50865 if test "${su_cv_func_ut_host_in_utmp+set}" = set; then
50866   $as_echo_n "(cached) " >&6
50867 else
50868   cat >conftest.$ac_ext <<_ACEOF
50869 /* confdefs.h.  */
50870 _ACEOF
50871 cat confdefs.h >>conftest.$ac_ext
50872 cat >>conftest.$ac_ext <<_ACEOF
50873 /* end confdefs.h.  */
50874 #include <sys/types.h>
50875 #include <utmp.h>
50876 int
50877 main ()
50878 {
50879 struct utmp ut; return !sizeof ut.ut_host;
50880   ;
50881   return 0;
50882 }
50883 _ACEOF
50884 rm -f conftest.$ac_objext conftest$ac_exeext
50885 if { (ac_try="$ac_link"
50886 case "(($ac_try" in
50887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50888   *) ac_try_echo=$ac_try;;
50889 esac
50890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50891 $as_echo "$ac_try_echo") >&5
50892   (eval "$ac_link") 2>conftest.er1
50893   ac_status=$?
50894   grep -v '^ *+' conftest.er1 >conftest.err
50895   rm -f conftest.er1
50896   cat conftest.err >&5
50897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50898   (exit $ac_status); } && {
50899          test -z "$ac_c_werror_flag" ||
50900          test ! -s conftest.err
50901        } && test -s conftest$ac_exeext &&
50902        $as_test_x conftest$ac_exeext; then
50903   su_cv_func_ut_host_in_utmp=yes
50904 else
50905   $as_echo "$as_me: failed program was:" >&5
50906 sed 's/^/| /' conftest.$ac_ext >&5
50907
50908         su_cv_func_ut_host_in_utmp=no
50909 fi
50910
50911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50912       conftest$ac_exeext conftest.$ac_ext
50913 fi
50914
50915 { $as_echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmp" >&5
50916 $as_echo "$su_cv_func_ut_host_in_utmp" >&6; }
50917 if test $su_cv_func_ut_host_in_utmp = yes; then
50918   have_ut_host=1
50919
50920 cat >>confdefs.h <<\_ACEOF
50921 #define HAVE_UT_HOST 1
50922 _ACEOF
50923
50924 fi
50925
50926 if test -z "$have_ut_host"; then
50927   { $as_echo "$as_me:$LINENO: checking ut_host in struct utmpx" >&5
50928 $as_echo_n "checking ut_host in struct utmpx... " >&6; }
50929   if test "${su_cv_func_ut_host_in_utmpx+set}" = set; then
50930   $as_echo_n "(cached) " >&6
50931 else
50932   cat >conftest.$ac_ext <<_ACEOF
50933 /* confdefs.h.  */
50934 _ACEOF
50935 cat confdefs.h >>conftest.$ac_ext
50936 cat >>conftest.$ac_ext <<_ACEOF
50937 /* end confdefs.h.  */
50938 #include <sys/types.h>
50939 #include <utmpx.h>
50940 int
50941 main ()
50942 {
50943 struct utmpx ut; return !sizeof ut.ut_host;
50944   ;
50945   return 0;
50946 }
50947 _ACEOF
50948 rm -f conftest.$ac_objext conftest$ac_exeext
50949 if { (ac_try="$ac_link"
50950 case "(($ac_try" in
50951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50952   *) ac_try_echo=$ac_try;;
50953 esac
50954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50955 $as_echo "$ac_try_echo") >&5
50956   (eval "$ac_link") 2>conftest.er1
50957   ac_status=$?
50958   grep -v '^ *+' conftest.er1 >conftest.err
50959   rm -f conftest.er1
50960   cat conftest.err >&5
50961   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50962   (exit $ac_status); } && {
50963          test -z "$ac_c_werror_flag" ||
50964          test ! -s conftest.err
50965        } && test -s conftest$ac_exeext &&
50966        $as_test_x conftest$ac_exeext; then
50967   su_cv_func_ut_host_in_utmpx=yes
50968 else
50969   $as_echo "$as_me: failed program was:" >&5
50970 sed 's/^/| /' conftest.$ac_ext >&5
50971
50972         su_cv_func_ut_host_in_utmpx=no
50973 fi
50974
50975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50976       conftest$ac_exeext conftest.$ac_ext
50977 fi
50978
50979   { $as_echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmpx" >&5
50980 $as_echo "$su_cv_func_ut_host_in_utmpx" >&6; }
50981   if test $su_cv_func_ut_host_in_utmpx = yes; then
50982
50983 cat >>confdefs.h <<\_ACEOF
50984 #define HAVE_UTMPX_H 1
50985 _ACEOF
50986
50987
50988 cat >>confdefs.h <<\_ACEOF
50989 #define HAVE_UT_HOST 1
50990 _ACEOF
50991
50992   fi
50993 fi
50994
50995
50996
50997 for ac_func in sysctl
50998 do
50999 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
51000 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
51001 $as_echo_n "checking for $ac_func... " >&6; }
51002 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51003   $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51057 $as_echo "$ac_try_echo") >&5
51058   (eval "$ac_link") 2>conftest.er1
51059   ac_status=$?
51060   grep -v '^ *+' conftest.er1 >conftest.err
51061   rm -f conftest.er1
51062   cat conftest.err >&5
51063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51064   (exit $ac_status); } && {
51065          test -z "$ac_c_werror_flag" ||
51066          test ! -s conftest.err
51067        } && test -s conftest$ac_exeext &&
51068        $as_test_x conftest$ac_exeext; then
51069   eval "$as_ac_var=yes"
51070 else
51071   $as_echo "$as_me: failed program was:" >&5
51072 sed 's/^/| /' conftest.$ac_ext >&5
51073
51074         eval "$as_ac_var=no"
51075 fi
51076
51077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51078       conftest$ac_exeext conftest.$ac_ext
51079 fi
51080 ac_res=`eval 'as_val=${'$as_ac_var'}
51081                  $as_echo "$as_val"'`
51082                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51083 $as_echo "$ac_res" >&6; }
51084 if test `eval 'as_val=${'$as_ac_var'}
51085                  $as_echo "$as_val"'` = yes; then
51086   cat >>confdefs.h <<_ACEOF
51087 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
51088 _ACEOF
51089
51090 fi
51091 done
51092
51093
51094
51095
51096
51097
51098
51099
51100 for ac_header in sys/sysctl.h
51101 do
51102 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
51103 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
51104 $as_echo_n "checking for $ac_header... " >&6; }
51105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51106   $as_echo_n "(cached) " >&6
51107 else
51108   cat >conftest.$ac_ext <<_ACEOF
51109 /* confdefs.h.  */
51110 _ACEOF
51111 cat confdefs.h >>conftest.$ac_ext
51112 cat >>conftest.$ac_ext <<_ACEOF
51113 /* end confdefs.h.  */
51114 $ac_includes_default
51115      #if HAVE_SYS_PARAM_H
51116        #include <sys/param.h>
51117       #endif
51118
51119 #include <$ac_header>
51120 _ACEOF
51121 rm -f conftest.$ac_objext
51122 if { (ac_try="$ac_compile"
51123 case "(($ac_try" in
51124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51125   *) ac_try_echo=$ac_try;;
51126 esac
51127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51128 $as_echo "$ac_try_echo") >&5
51129   (eval "$ac_compile") 2>conftest.er1
51130   ac_status=$?
51131   grep -v '^ *+' conftest.er1 >conftest.err
51132   rm -f conftest.er1
51133   cat conftest.err >&5
51134   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51135   (exit $ac_status); } && {
51136          test -z "$ac_c_werror_flag" ||
51137          test ! -s conftest.err
51138        } && test -s conftest.$ac_objext; then
51139   eval "$as_ac_Header=yes"
51140 else
51141   $as_echo "$as_me: failed program was:" >&5
51142 sed 's/^/| /' conftest.$ac_ext >&5
51143
51144         eval "$as_ac_Header=no"
51145 fi
51146
51147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51148 fi
51149 ac_res=`eval 'as_val=${'$as_ac_Header'}
51150                  $as_echo "$as_val"'`
51151                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51152 $as_echo "$ac_res" >&6; }
51153 if test `eval 'as_val=${'$as_ac_Header'}
51154                  $as_echo "$as_val"'` = yes; then
51155   cat >>confdefs.h <<_ACEOF
51156 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
51157 _ACEOF
51158
51159 fi
51160
51161 done
51162
51163
51164
51165
51166
51167
51168
51169
51170
51171
51172
51173   { $as_echo "$as_me:$LINENO: checking whether we can get the system boot time" >&5
51174 $as_echo_n "checking whether we can get the system boot time... " >&6; }
51175 if test "${gnulib_cv_have_boot_time+set}" = set; then
51176   $as_echo_n "(cached) " >&6
51177 else
51178
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 $ac_includes_default
51186 #if HAVE_SYSCTL && HAVE_SYS_SYSCTL_H
51187 # if HAVE_SYS_PARAM_H
51188 #  include <sys/param.h> /* needed for OpenBSD 3.0 */
51189 # endif
51190 # include <sys/sysctl.h>
51191 #endif
51192 #if HAVE_UTMPX_H
51193 # include <utmpx.h>
51194 #elif HAVE_UTMP_H
51195 # include <utmp.h>
51196 #endif
51197 #if HAVE_OS_H
51198 # include <OS.h>
51199 #endif
51200
51201 int
51202 main ()
51203 {
51204
51205 #if defined BOOT_TIME || (defined CTL_KERN && defined KERN_BOOTTIME) || HAVE_OS_H
51206 /* your system *does* have the infrastructure to determine boot time */
51207 #else
51208 please_tell_us_how_to_determine_boot_time_on_your_system
51209 #endif
51210
51211   ;
51212   return 0;
51213 }
51214 _ACEOF
51215 rm -f conftest.$ac_objext
51216 if { (ac_try="$ac_compile"
51217 case "(($ac_try" in
51218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51219   *) ac_try_echo=$ac_try;;
51220 esac
51221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51222 $as_echo "$ac_try_echo") >&5
51223   (eval "$ac_compile") 2>conftest.er1
51224   ac_status=$?
51225   grep -v '^ *+' conftest.er1 >conftest.err
51226   rm -f conftest.er1
51227   cat conftest.err >&5
51228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51229   (exit $ac_status); } && {
51230          test -z "$ac_c_werror_flag" ||
51231          test ! -s conftest.err
51232        } && test -s conftest.$ac_objext; then
51233   gnulib_cv_have_boot_time=yes
51234 else
51235   $as_echo "$as_me: failed program was:" >&5
51236 sed 's/^/| /' conftest.$ac_ext >&5
51237
51238         gnulib_cv_have_boot_time=no
51239 fi
51240
51241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51242
51243 fi
51244 { $as_echo "$as_me:$LINENO: result: $gnulib_cv_have_boot_time" >&5
51245 $as_echo "$gnulib_cv_have_boot_time" >&6; }
51246   if test $gnulib_cv_have_boot_time = yes; then
51247   OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uptime\$(EXEEXT)"
51248   MAN="$MAN uptime.1"
51249 fi
51250
51251
51252
51253 { $as_echo "$as_me:$LINENO: checking POSIX termios" >&5
51254 $as_echo_n "checking POSIX termios... " >&6; }
51255 if test "${ac_cv_sys_posix_termios+set}" = set; then
51256   $as_echo_n "(cached) " >&6
51257 else
51258   cat >conftest.$ac_ext <<_ACEOF
51259 /* confdefs.h.  */
51260 _ACEOF
51261 cat confdefs.h >>conftest.$ac_ext
51262 cat >>conftest.$ac_ext <<_ACEOF
51263 /* end confdefs.h.  */
51264 #include <sys/types.h>
51265 #include <unistd.h>
51266 #include <termios.h>
51267
51268 int
51269 main ()
51270 {
51271 /* SunOS 4.0.3 has termios.h but not the library calls.  */
51272    tcgetattr(0, 0);
51273   ;
51274   return 0;
51275 }
51276 _ACEOF
51277 rm -f conftest.$ac_objext conftest$ac_exeext
51278 if { (ac_try="$ac_link"
51279 case "(($ac_try" in
51280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51281   *) ac_try_echo=$ac_try;;
51282 esac
51283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51284 $as_echo "$ac_try_echo") >&5
51285   (eval "$ac_link") 2>conftest.er1
51286   ac_status=$?
51287   grep -v '^ *+' conftest.er1 >conftest.err
51288   rm -f conftest.er1
51289   cat conftest.err >&5
51290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51291   (exit $ac_status); } && {
51292          test -z "$ac_c_werror_flag" ||
51293          test ! -s conftest.err
51294        } && test -s conftest$ac_exeext &&
51295        $as_test_x conftest$ac_exeext; then
51296   ac_cv_sys_posix_termios=yes
51297 else
51298   $as_echo "$as_me: failed program was:" >&5
51299 sed 's/^/| /' conftest.$ac_ext >&5
51300
51301         ac_cv_sys_posix_termios=no
51302 fi
51303
51304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51305       conftest$ac_exeext conftest.$ac_ext
51306 fi
51307 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
51308 $as_echo "$ac_cv_sys_posix_termios" >&6; }
51309
51310
51311  { $as_echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
51312 $as_echo_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h... " >&6; }
51313 if test "${jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then
51314   $as_echo_n "(cached) " >&6
51315 else
51316   jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
51317
51318   if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no; then
51319     cat >conftest.$ac_ext <<_ACEOF
51320 /* confdefs.h.  */
51321 _ACEOF
51322 cat confdefs.h >>conftest.$ac_ext
51323 cat >>conftest.$ac_ext <<_ACEOF
51324 /* end confdefs.h.  */
51325 #include <sys/types.h>
51326 #     include <sys/ioctl.h>
51327 #     ifdef TIOCGWINSZ
51328         yes
51329 #     endif
51330
51331 _ACEOF
51332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51333   $EGREP "yes" >/dev/null 2>&1; then
51334   jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
51335 fi
51336 rm -f conftest*
51337
51338   fi
51339
51340 fi
51341 { $as_echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&5
51342 $as_echo "$jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&6; }
51343   if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
51344
51345 cat >>confdefs.h <<\_ACEOF
51346 #define GWINSZ_IN_SYS_IOCTL 1
51347 _ACEOF
51348
51349   fi
51350
51351
51352 if test $ac_cv_sys_posix_termios = yes; then
51353   OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS stty\$(EXEEXT)" MAN="$MAN stty.1"
51354
51355   { $as_echo "$as_me:$LINENO: checking whether termios.h needs _XOPEN_SOURCE" >&5
51356 $as_echo_n "checking whether termios.h needs _XOPEN_SOURCE... " >&6; }
51357   if test "${su_cv_sys_termios_needs_xopen_source+set}" = set; then
51358   $as_echo_n "(cached) " >&6
51359 else
51360   cat >conftest.$ac_ext <<_ACEOF
51361 /* confdefs.h.  */
51362 _ACEOF
51363 cat confdefs.h >>conftest.$ac_ext
51364 cat >>conftest.$ac_ext <<_ACEOF
51365 /* end confdefs.h.  */
51366 #include <termios.h>
51367 #ifdef IUCLC
51368 yes
51369 #endif
51370 _ACEOF
51371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51372   $EGREP "yes" >/dev/null 2>&1; then
51373   su_cv_sys_termios_needs_xopen_source=no
51374 else
51375   cat >conftest.$ac_ext <<_ACEOF
51376 /* confdefs.h.  */
51377 _ACEOF
51378 cat confdefs.h >>conftest.$ac_ext
51379 cat >>conftest.$ac_ext <<_ACEOF
51380 /* end confdefs.h.  */
51381 #define _XOPEN_SOURCE
51382 #include <termios.h>
51383 #ifdef IUCLC
51384 yes
51385 #endif
51386 _ACEOF
51387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51388   $EGREP "yes" >/dev/null 2>&1; then
51389   su_cv_sys_termios_needs_xopen_source=yes
51390 else
51391   su_cv_sys_termios_needs_xopen_source=no
51392 fi
51393 rm -f conftest*
51394
51395 fi
51396 rm -f conftest*
51397
51398 fi
51399
51400   { $as_echo "$as_me:$LINENO: result: $su_cv_sys_termios_needs_xopen_source" >&5
51401 $as_echo "$su_cv_sys_termios_needs_xopen_source" >&6; }
51402   test $su_cv_sys_termios_needs_xopen_source = yes &&
51403
51404 cat >>confdefs.h <<\_ACEOF
51405 #define TERMIOS_NEEDS_XOPEN_SOURCE 1
51406 _ACEOF
51407
51408
51409   { $as_echo "$as_me:$LINENO: checking c_line in struct termios" >&5
51410 $as_echo_n "checking c_line in struct termios... " >&6; }
51411   if test "${su_cv_sys_c_line_in_termios+set}" = set; then
51412   $as_echo_n "(cached) " >&6
51413 else
51414   cat >conftest.$ac_ext <<_ACEOF
51415 /* confdefs.h.  */
51416 _ACEOF
51417 cat confdefs.h >>conftest.$ac_ext
51418 cat >>conftest.$ac_ext <<_ACEOF
51419 /* end confdefs.h.  */
51420 #if TERMIOS_NEEDS_XOPEN_SOURCE
51421 #define _XOPEN_SOURCE
51422 #endif
51423 #include <sys/types.h>
51424 #include <termios.h>
51425 int
51426 main ()
51427 {
51428 struct termios t; return !sizeof t.c_line;
51429   ;
51430   return 0;
51431 }
51432 _ACEOF
51433 rm -f conftest.$ac_objext conftest$ac_exeext
51434 if { (ac_try="$ac_link"
51435 case "(($ac_try" in
51436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51437   *) ac_try_echo=$ac_try;;
51438 esac
51439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51440 $as_echo "$ac_try_echo") >&5
51441   (eval "$ac_link") 2>conftest.er1
51442   ac_status=$?
51443   grep -v '^ *+' conftest.er1 >conftest.err
51444   rm -f conftest.er1
51445   cat conftest.err >&5
51446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51447   (exit $ac_status); } && {
51448          test -z "$ac_c_werror_flag" ||
51449          test ! -s conftest.err
51450        } && test -s conftest$ac_exeext &&
51451        $as_test_x conftest$ac_exeext; then
51452   su_cv_sys_c_line_in_termios=yes
51453 else
51454   $as_echo "$as_me: failed program was:" >&5
51455 sed 's/^/| /' conftest.$ac_ext >&5
51456
51457         su_cv_sys_c_line_in_termios=no
51458 fi
51459
51460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51461       conftest$ac_exeext conftest.$ac_ext
51462 fi
51463
51464   { $as_echo "$as_me:$LINENO: result: $su_cv_sys_c_line_in_termios" >&5
51465 $as_echo "$su_cv_sys_c_line_in_termios" >&6; }
51466   test $su_cv_sys_c_line_in_termios = yes \
51467     &&
51468 cat >>confdefs.h <<\_ACEOF
51469 #define HAVE_C_LINE 1
51470 _ACEOF
51471
51472 fi
51473
51474 # FIXME: note that this macro appears above, too.
51475 # I'm leaving it here for now.  This whole thing needs to be modernized...
51476
51477    { $as_echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
51478 $as_echo_n "checking whether use of struct winsize requires sys/ptem.h... " >&6; }
51479 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
51480   $as_echo_n "(cached) " >&6
51481 else
51482   jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
51483       if test $ac_cv_sys_posix_termios = yes; then
51484         cat >conftest.$ac_ext <<_ACEOF
51485 /* confdefs.h.  */
51486 _ACEOF
51487 cat confdefs.h >>conftest.$ac_ext
51488 cat >>conftest.$ac_ext <<_ACEOF
51489 /* end confdefs.h.  */
51490 #include <termios.h>
51491 int
51492 main ()
51493 {
51494 struct winsize x;
51495            if (sizeof x > 0) return 0;
51496   ;
51497   return 0;
51498 }
51499 _ACEOF
51500 rm -f conftest.$ac_objext
51501 if { (ac_try="$ac_compile"
51502 case "(($ac_try" in
51503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51504   *) ac_try_echo=$ac_try;;
51505 esac
51506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51507 $as_echo "$ac_try_echo") >&5
51508   (eval "$ac_compile") 2>conftest.er1
51509   ac_status=$?
51510   grep -v '^ *+' conftest.er1 >conftest.err
51511   rm -f conftest.er1
51512   cat conftest.err >&5
51513   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51514   (exit $ac_status); } && {
51515          test -z "$ac_c_werror_flag" ||
51516          test ! -s conftest.err
51517        } && test -s conftest.$ac_objext; then
51518   jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
51519 else
51520   $as_echo "$as_me: failed program was:" >&5
51521 sed 's/^/| /' conftest.$ac_ext >&5
51522
51523
51524 fi
51525
51526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51527       fi
51528       if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
51529         cat >conftest.$ac_ext <<_ACEOF
51530 /* confdefs.h.  */
51531 _ACEOF
51532 cat confdefs.h >>conftest.$ac_ext
51533 cat >>conftest.$ac_ext <<_ACEOF
51534 /* end confdefs.h.  */
51535 #include <sys/ptem.h>
51536 int
51537 main ()
51538 {
51539 struct winsize x;
51540            if (sizeof x > 0) return 0;
51541   ;
51542   return 0;
51543 }
51544 _ACEOF
51545 rm -f conftest.$ac_objext
51546 if { (ac_try="$ac_compile"
51547 case "(($ac_try" in
51548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51549   *) ac_try_echo=$ac_try;;
51550 esac
51551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51552 $as_echo "$ac_try_echo") >&5
51553   (eval "$ac_compile") 2>conftest.er1
51554   ac_status=$?
51555   grep -v '^ *+' conftest.er1 >conftest.err
51556   rm -f conftest.er1
51557   cat conftest.err >&5
51558   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51559   (exit $ac_status); } && {
51560          test -z "$ac_c_werror_flag" ||
51561          test ! -s conftest.err
51562        } && test -s conftest.$ac_objext; then
51563   :
51564 else
51565   $as_echo "$as_me: failed program was:" >&5
51566 sed 's/^/| /' conftest.$ac_ext >&5
51567
51568         jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
51569 fi
51570
51571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51572       fi
51573 fi
51574 { $as_echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
51575 $as_echo "$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6; }
51576    if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
51577
51578 cat >>confdefs.h <<\_ACEOF
51579 #define WINSIZE_IN_PTEM 1
51580 _ACEOF
51581
51582    fi
51583
51584
51585  { $as_echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
51586 $as_echo_n "checking whether use of TIOCGWINSZ requires termios.h... " >&6; }
51587 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
51588   $as_echo_n "(cached) " >&6
51589 else
51590   jm_cv_sys_tiocgwinsz_needs_termios_h=no
51591
51592    if test $ac_cv_sys_posix_termios = yes; then
51593      cat >conftest.$ac_ext <<_ACEOF
51594 /* confdefs.h.  */
51595 _ACEOF
51596 cat confdefs.h >>conftest.$ac_ext
51597 cat >>conftest.$ac_ext <<_ACEOF
51598 /* end confdefs.h.  */
51599 #include <sys/types.h>
51600 #      include <termios.h>
51601 #      ifdef TIOCGWINSZ
51602          yes
51603 #      endif
51604
51605 _ACEOF
51606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51607   $EGREP "yes" >/dev/null 2>&1; then
51608   jm_cv_sys_tiocgwinsz_needs_termios_h=yes
51609 fi
51610 rm -f conftest*
51611
51612    fi
51613
51614 fi
51615 { $as_echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
51616 $as_echo "$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6; }
51617
51618
51619 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no && \
51620    test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = no; then
51621   { $as_echo "$as_me:$LINENO: checking TIOCGWINSZ in sys/pty.h" >&5
51622 $as_echo_n "checking TIOCGWINSZ in sys/pty.h... " >&6; }
51623   if test "${su_cv_sys_tiocgwinsz_in_sys_pty_h+set}" = set; then
51624   $as_echo_n "(cached) " >&6
51625 else
51626   cat >conftest.$ac_ext <<_ACEOF
51627 /* confdefs.h.  */
51628 _ACEOF
51629 cat confdefs.h >>conftest.$ac_ext
51630 cat >>conftest.$ac_ext <<_ACEOF
51631 /* end confdefs.h.  */
51632 #include <sys/types.h>
51633 #ifdef WINSIZE_IN_PTEM
51634 # include <sys/stream.h>
51635 # include <sys/ptem.h>
51636 #endif
51637 #include <sys/ioctl.h>
51638 #include <sys/tty.h>
51639 #include <sys/pty.h>
51640 int
51641 main ()
51642 {
51643 int x = TIOCGWINSZ;
51644   ;
51645   return 0;
51646 }
51647 _ACEOF
51648 rm -f conftest.$ac_objext conftest$ac_exeext
51649 if { (ac_try="$ac_link"
51650 case "(($ac_try" in
51651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51652   *) ac_try_echo=$ac_try;;
51653 esac
51654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51655 $as_echo "$ac_try_echo") >&5
51656   (eval "$ac_link") 2>conftest.er1
51657   ac_status=$?
51658   grep -v '^ *+' conftest.er1 >conftest.err
51659   rm -f conftest.er1
51660   cat conftest.err >&5
51661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51662   (exit $ac_status); } && {
51663          test -z "$ac_c_werror_flag" ||
51664          test ! -s conftest.err
51665        } && test -s conftest$ac_exeext &&
51666        $as_test_x conftest$ac_exeext; then
51667   su_cv_sys_tiocgwinsz_in_sys_pty_h=yes
51668 else
51669   $as_echo "$as_me: failed program was:" >&5
51670 sed 's/^/| /' conftest.$ac_ext >&5
51671
51672         su_cv_sys_tiocgwinsz_in_sys_pty_h=no
51673 fi
51674
51675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51676       conftest$ac_exeext conftest.$ac_ext
51677 fi
51678
51679   { $as_echo "$as_me:$LINENO: result: $su_cv_sys_tiocgwinsz_in_sys_pty_h" >&5
51680 $as_echo "$su_cv_sys_tiocgwinsz_in_sys_pty_h" >&6; }
51681
51682   test $su_cv_sys_tiocgwinsz_in_sys_pty_h = yes \
51683       &&
51684 cat >>confdefs.h <<\_ACEOF
51685 #define GWINSZ_IN_SYS_PTY 1
51686 _ACEOF
51687
51688 fi
51689
51690 # For src/kill.c.
51691 { $as_echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
51692 $as_echo_n "checking whether strsignal is declared... " >&6; }
51693 if test "${ac_cv_have_decl_strsignal+set}" = set; then
51694   $as_echo_n "(cached) " >&6
51695 else
51696   cat >conftest.$ac_ext <<_ACEOF
51697 /* confdefs.h.  */
51698 _ACEOF
51699 cat confdefs.h >>conftest.$ac_ext
51700 cat >>conftest.$ac_ext <<_ACEOF
51701 /* end confdefs.h.  */
51702 $ac_includes_default
51703 #include <signal.h>
51704
51705 int
51706 main ()
51707 {
51708 #ifndef strsignal
51709   (void) strsignal;
51710 #endif
51711
51712   ;
51713   return 0;
51714 }
51715 _ACEOF
51716 rm -f conftest.$ac_objext
51717 if { (ac_try="$ac_compile"
51718 case "(($ac_try" in
51719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51720   *) ac_try_echo=$ac_try;;
51721 esac
51722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51723 $as_echo "$ac_try_echo") >&5
51724   (eval "$ac_compile") 2>conftest.er1
51725   ac_status=$?
51726   grep -v '^ *+' conftest.er1 >conftest.err
51727   rm -f conftest.er1
51728   cat conftest.err >&5
51729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51730   (exit $ac_status); } && {
51731          test -z "$ac_c_werror_flag" ||
51732          test ! -s conftest.err
51733        } && test -s conftest.$ac_objext; then
51734   ac_cv_have_decl_strsignal=yes
51735 else
51736   $as_echo "$as_me: failed program was:" >&5
51737 sed 's/^/| /' conftest.$ac_ext >&5
51738
51739         ac_cv_have_decl_strsignal=no
51740 fi
51741
51742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51743 fi
51744 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
51745 $as_echo "$ac_cv_have_decl_strsignal" >&6; }
51746 if test $ac_cv_have_decl_strsignal = yes; then
51747
51748 cat >>confdefs.h <<_ACEOF
51749 #define HAVE_DECL_STRSIGNAL 1
51750 _ACEOF
51751
51752
51753 else
51754   cat >>confdefs.h <<_ACEOF
51755 #define HAVE_DECL_STRSIGNAL 0
51756 _ACEOF
51757
51758
51759 fi
51760 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
51761 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
51762 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
51763   $as_echo_n "(cached) " >&6
51764 else
51765   cat >conftest.$ac_ext <<_ACEOF
51766 /* confdefs.h.  */
51767 _ACEOF
51768 cat confdefs.h >>conftest.$ac_ext
51769 cat >>conftest.$ac_ext <<_ACEOF
51770 /* end confdefs.h.  */
51771 $ac_includes_default
51772 #include <signal.h>
51773
51774 int
51775 main ()
51776 {
51777 #ifndef sys_siglist
51778   (void) sys_siglist;
51779 #endif
51780
51781   ;
51782   return 0;
51783 }
51784 _ACEOF
51785 rm -f conftest.$ac_objext
51786 if { (ac_try="$ac_compile"
51787 case "(($ac_try" in
51788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51789   *) ac_try_echo=$ac_try;;
51790 esac
51791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51792 $as_echo "$ac_try_echo") >&5
51793   (eval "$ac_compile") 2>conftest.er1
51794   ac_status=$?
51795   grep -v '^ *+' conftest.er1 >conftest.err
51796   rm -f conftest.er1
51797   cat conftest.err >&5
51798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51799   (exit $ac_status); } && {
51800          test -z "$ac_c_werror_flag" ||
51801          test ! -s conftest.err
51802        } && test -s conftest.$ac_objext; then
51803   ac_cv_have_decl_sys_siglist=yes
51804 else
51805   $as_echo "$as_me: failed program was:" >&5
51806 sed 's/^/| /' conftest.$ac_ext >&5
51807
51808         ac_cv_have_decl_sys_siglist=no
51809 fi
51810
51811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51812 fi
51813 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
51814 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
51815 if test $ac_cv_have_decl_sys_siglist = yes; then
51816
51817 cat >>confdefs.h <<_ACEOF
51818 #define HAVE_DECL_SYS_SIGLIST 1
51819 _ACEOF
51820
51821
51822 else
51823   cat >>confdefs.h <<_ACEOF
51824 #define HAVE_DECL_SYS_SIGLIST 0
51825 _ACEOF
51826
51827
51828 fi
51829 { $as_echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
51830 $as_echo_n "checking whether _sys_siglist is declared... " >&6; }
51831 if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
51832   $as_echo_n "(cached) " >&6
51833 else
51834   cat >conftest.$ac_ext <<_ACEOF
51835 /* confdefs.h.  */
51836 _ACEOF
51837 cat confdefs.h >>conftest.$ac_ext
51838 cat >>conftest.$ac_ext <<_ACEOF
51839 /* end confdefs.h.  */
51840 $ac_includes_default
51841 #include <signal.h>
51842
51843 int
51844 main ()
51845 {
51846 #ifndef _sys_siglist
51847   (void) _sys_siglist;
51848 #endif
51849
51850   ;
51851   return 0;
51852 }
51853 _ACEOF
51854 rm -f conftest.$ac_objext
51855 if { (ac_try="$ac_compile"
51856 case "(($ac_try" in
51857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51858   *) ac_try_echo=$ac_try;;
51859 esac
51860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51861 $as_echo "$ac_try_echo") >&5
51862   (eval "$ac_compile") 2>conftest.er1
51863   ac_status=$?
51864   grep -v '^ *+' conftest.er1 >conftest.err
51865   rm -f conftest.er1
51866   cat conftest.err >&5
51867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51868   (exit $ac_status); } && {
51869          test -z "$ac_c_werror_flag" ||
51870          test ! -s conftest.err
51871        } && test -s conftest.$ac_objext; then
51872   ac_cv_have_decl__sys_siglist=yes
51873 else
51874   $as_echo "$as_me: failed program was:" >&5
51875 sed 's/^/| /' conftest.$ac_ext >&5
51876
51877         ac_cv_have_decl__sys_siglist=no
51878 fi
51879
51880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51881 fi
51882 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
51883 $as_echo "$ac_cv_have_decl__sys_siglist" >&6; }
51884 if test $ac_cv_have_decl__sys_siglist = yes; then
51885
51886 cat >>confdefs.h <<_ACEOF
51887 #define HAVE_DECL__SYS_SIGLIST 1
51888 _ACEOF
51889
51890
51891 else
51892   cat >>confdefs.h <<_ACEOF
51893 #define HAVE_DECL__SYS_SIGLIST 0
51894 _ACEOF
51895
51896
51897 fi
51898 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
51899 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
51900 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
51901   $as_echo_n "(cached) " >&6
51902 else
51903   cat >conftest.$ac_ext <<_ACEOF
51904 /* confdefs.h.  */
51905 _ACEOF
51906 cat confdefs.h >>conftest.$ac_ext
51907 cat >>conftest.$ac_ext <<_ACEOF
51908 /* end confdefs.h.  */
51909 $ac_includes_default
51910 #include <signal.h>
51911
51912 int
51913 main ()
51914 {
51915 #ifndef __sys_siglist
51916   (void) __sys_siglist;
51917 #endif
51918
51919   ;
51920   return 0;
51921 }
51922 _ACEOF
51923 rm -f conftest.$ac_objext
51924 if { (ac_try="$ac_compile"
51925 case "(($ac_try" in
51926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51927   *) ac_try_echo=$ac_try;;
51928 esac
51929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51930 $as_echo "$ac_try_echo") >&5
51931   (eval "$ac_compile") 2>conftest.er1
51932   ac_status=$?
51933   grep -v '^ *+' conftest.er1 >conftest.err
51934   rm -f conftest.er1
51935   cat conftest.err >&5
51936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51937   (exit $ac_status); } && {
51938          test -z "$ac_c_werror_flag" ||
51939          test ! -s conftest.err
51940        } && test -s conftest.$ac_objext; then
51941   ac_cv_have_decl___sys_siglist=yes
51942 else
51943   $as_echo "$as_me: failed program was:" >&5
51944 sed 's/^/| /' conftest.$ac_ext >&5
51945
51946         ac_cv_have_decl___sys_siglist=no
51947 fi
51948
51949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51950 fi
51951 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
51952 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
51953 if test $ac_cv_have_decl___sys_siglist = yes; then
51954
51955 cat >>confdefs.h <<_ACEOF
51956 #define HAVE_DECL___SYS_SIGLIST 1
51957 _ACEOF
51958
51959
51960 else
51961   cat >>confdefs.h <<_ACEOF
51962 #define HAVE_DECL___SYS_SIGLIST 0
51963 _ACEOF
51964
51965
51966 fi
51967
51968
51969
51970 # For src/kill.c and src/printf.c.
51971 { $as_echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
51972 $as_echo_n "checking whether strtoimax is declared... " >&6; }
51973 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
51974   $as_echo_n "(cached) " >&6
51975 else
51976   cat >conftest.$ac_ext <<_ACEOF
51977 /* confdefs.h.  */
51978 _ACEOF
51979 cat confdefs.h >>conftest.$ac_ext
51980 cat >>conftest.$ac_ext <<_ACEOF
51981 /* end confdefs.h.  */
51982 $ac_includes_default
51983 int
51984 main ()
51985 {
51986 #ifndef strtoimax
51987   (void) strtoimax;
51988 #endif
51989
51990   ;
51991   return 0;
51992 }
51993 _ACEOF
51994 rm -f conftest.$ac_objext
51995 if { (ac_try="$ac_compile"
51996 case "(($ac_try" in
51997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51998   *) ac_try_echo=$ac_try;;
51999 esac
52000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52001 $as_echo "$ac_try_echo") >&5
52002   (eval "$ac_compile") 2>conftest.er1
52003   ac_status=$?
52004   grep -v '^ *+' conftest.er1 >conftest.err
52005   rm -f conftest.er1
52006   cat conftest.err >&5
52007   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52008   (exit $ac_status); } && {
52009          test -z "$ac_c_werror_flag" ||
52010          test ! -s conftest.err
52011        } && test -s conftest.$ac_objext; then
52012   ac_cv_have_decl_strtoimax=yes
52013 else
52014   $as_echo "$as_me: failed program was:" >&5
52015 sed 's/^/| /' conftest.$ac_ext >&5
52016
52017         ac_cv_have_decl_strtoimax=no
52018 fi
52019
52020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52021 fi
52022 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
52023 $as_echo "$ac_cv_have_decl_strtoimax" >&6; }
52024 if test $ac_cv_have_decl_strtoimax = yes; then
52025
52026 cat >>confdefs.h <<_ACEOF
52027 #define HAVE_DECL_STRTOIMAX 1
52028 _ACEOF
52029
52030
52031 else
52032   cat >>confdefs.h <<_ACEOF
52033 #define HAVE_DECL_STRTOIMAX 0
52034 _ACEOF
52035
52036
52037 fi
52038 { $as_echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
52039 $as_echo_n "checking whether strtoumax is declared... " >&6; }
52040 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
52041   $as_echo_n "(cached) " >&6
52042 else
52043   cat >conftest.$ac_ext <<_ACEOF
52044 /* confdefs.h.  */
52045 _ACEOF
52046 cat confdefs.h >>conftest.$ac_ext
52047 cat >>conftest.$ac_ext <<_ACEOF
52048 /* end confdefs.h.  */
52049 $ac_includes_default
52050 int
52051 main ()
52052 {
52053 #ifndef strtoumax
52054   (void) strtoumax;
52055 #endif
52056
52057   ;
52058   return 0;
52059 }
52060 _ACEOF
52061 rm -f conftest.$ac_objext
52062 if { (ac_try="$ac_compile"
52063 case "(($ac_try" in
52064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52065   *) ac_try_echo=$ac_try;;
52066 esac
52067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52068 $as_echo "$ac_try_echo") >&5
52069   (eval "$ac_compile") 2>conftest.er1
52070   ac_status=$?
52071   grep -v '^ *+' conftest.er1 >conftest.err
52072   rm -f conftest.er1
52073   cat conftest.err >&5
52074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52075   (exit $ac_status); } && {
52076          test -z "$ac_c_werror_flag" ||
52077          test ! -s conftest.err
52078        } && test -s conftest.$ac_objext; then
52079   ac_cv_have_decl_strtoumax=yes
52080 else
52081   $as_echo "$as_me: failed program was:" >&5
52082 sed 's/^/| /' conftest.$ac_ext >&5
52083
52084         ac_cv_have_decl_strtoumax=no
52085 fi
52086
52087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52088 fi
52089 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
52090 $as_echo "$ac_cv_have_decl_strtoumax" >&6; }
52091 if test $ac_cv_have_decl_strtoumax = yes; then
52092
52093 cat >>confdefs.h <<_ACEOF
52094 #define HAVE_DECL_STRTOUMAX 1
52095 _ACEOF
52096
52097
52098 else
52099   cat >>confdefs.h <<_ACEOF
52100 #define HAVE_DECL_STRTOUMAX 0
52101 _ACEOF
52102
52103
52104 fi
52105
52106
52107
52108
52109
52110   # Check for libypsec.a on Dolphin M88K machines.
52111
52112 { $as_echo "$as_me:$LINENO: checking for main in -lypsec" >&5
52113 $as_echo_n "checking for main in -lypsec... " >&6; }
52114 if test "${ac_cv_lib_ypsec_main+set}" = set; then
52115   $as_echo_n "(cached) " >&6
52116 else
52117   ac_check_lib_save_LIBS=$LIBS
52118 LIBS="-lypsec  $LIBS"
52119 cat >conftest.$ac_ext <<_ACEOF
52120 /* confdefs.h.  */
52121 _ACEOF
52122 cat confdefs.h >>conftest.$ac_ext
52123 cat >>conftest.$ac_ext <<_ACEOF
52124 /* end confdefs.h.  */
52125
52126
52127 int
52128 main ()
52129 {
52130 return main ();
52131   ;
52132   return 0;
52133 }
52134 _ACEOF
52135 rm -f conftest.$ac_objext conftest$ac_exeext
52136 if { (ac_try="$ac_link"
52137 case "(($ac_try" in
52138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52139   *) ac_try_echo=$ac_try;;
52140 esac
52141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52142 $as_echo "$ac_try_echo") >&5
52143   (eval "$ac_link") 2>conftest.er1
52144   ac_status=$?
52145   grep -v '^ *+' conftest.er1 >conftest.err
52146   rm -f conftest.er1
52147   cat conftest.err >&5
52148   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52149   (exit $ac_status); } && {
52150          test -z "$ac_c_werror_flag" ||
52151          test ! -s conftest.err
52152        } && test -s conftest$ac_exeext &&
52153        $as_test_x conftest$ac_exeext; then
52154   ac_cv_lib_ypsec_main=yes
52155 else
52156   $as_echo "$as_me: failed program was:" >&5
52157 sed 's/^/| /' conftest.$ac_ext >&5
52158
52159         ac_cv_lib_ypsec_main=no
52160 fi
52161
52162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52163       conftest$ac_exeext conftest.$ac_ext
52164 LIBS=$ac_check_lib_save_LIBS
52165 fi
52166 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ypsec_main" >&5
52167 $as_echo "$ac_cv_lib_ypsec_main" >&6; }
52168 if test $ac_cv_lib_ypsec_main = yes; then
52169   cat >>confdefs.h <<_ACEOF
52170 #define HAVE_LIBYPSEC 1
52171 _ACEOF
52172
52173   LIBS="-lypsec $LIBS"
52174
52175 fi
52176
52177
52178   # m88k running dgux 5.4 needs this
52179
52180 { $as_echo "$as_me:$LINENO: checking for main in -lldgc" >&5
52181 $as_echo_n "checking for main in -lldgc... " >&6; }
52182 if test "${ac_cv_lib_ldgc_main+set}" = set; then
52183   $as_echo_n "(cached) " >&6
52184 else
52185   ac_check_lib_save_LIBS=$LIBS
52186 LIBS="-lldgc  $LIBS"
52187 cat >conftest.$ac_ext <<_ACEOF
52188 /* confdefs.h.  */
52189 _ACEOF
52190 cat confdefs.h >>conftest.$ac_ext
52191 cat >>conftest.$ac_ext <<_ACEOF
52192 /* end confdefs.h.  */
52193
52194
52195 int
52196 main ()
52197 {
52198 return main ();
52199   ;
52200   return 0;
52201 }
52202 _ACEOF
52203 rm -f conftest.$ac_objext conftest$ac_exeext
52204 if { (ac_try="$ac_link"
52205 case "(($ac_try" in
52206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52207   *) ac_try_echo=$ac_try;;
52208 esac
52209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52210 $as_echo "$ac_try_echo") >&5
52211   (eval "$ac_link") 2>conftest.er1
52212   ac_status=$?
52213   grep -v '^ *+' conftest.er1 >conftest.err
52214   rm -f conftest.er1
52215   cat conftest.err >&5
52216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52217   (exit $ac_status); } && {
52218          test -z "$ac_c_werror_flag" ||
52219          test ! -s conftest.err
52220        } && test -s conftest$ac_exeext &&
52221        $as_test_x conftest$ac_exeext; then
52222   ac_cv_lib_ldgc_main=yes
52223 else
52224   $as_echo "$as_me: failed program was:" >&5
52225 sed 's/^/| /' conftest.$ac_ext >&5
52226
52227         ac_cv_lib_ldgc_main=no
52228 fi
52229
52230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52231       conftest$ac_exeext conftest.$ac_ext
52232 LIBS=$ac_check_lib_save_LIBS
52233 fi
52234 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldgc_main" >&5
52235 $as_echo "$ac_cv_lib_ldgc_main" >&6; }
52236 if test $ac_cv_lib_ldgc_main = yes; then
52237   cat >>confdefs.h <<_ACEOF
52238 #define HAVE_LIBLDGC 1
52239 _ACEOF
52240
52241   LIBS="-lldgc $LIBS"
52242
52243 fi
52244
52245
52246   # The -lsun library is required for YP support on Irix-4.0.5 systems.
52247   # m88k/svr3 DolphinOS systems using YP need -lypsec for id.
52248   { $as_echo "$as_me:$LINENO: checking for library containing yp_match" >&5
52249 $as_echo_n "checking for library containing yp_match... " >&6; }
52250 if test "${ac_cv_search_yp_match+set}" = set; then
52251   $as_echo_n "(cached) " >&6
52252 else
52253   ac_func_search_save_LIBS=$LIBS
52254 cat >conftest.$ac_ext <<_ACEOF
52255 /* confdefs.h.  */
52256 _ACEOF
52257 cat confdefs.h >>conftest.$ac_ext
52258 cat >>conftest.$ac_ext <<_ACEOF
52259 /* end confdefs.h.  */
52260
52261 /* Override any GCC internal prototype to avoid an error.
52262    Use char because int might match the return type of a GCC
52263    builtin and then its argument prototype would still apply.  */
52264 #ifdef __cplusplus
52265 extern "C"
52266 #endif
52267 char yp_match ();
52268 int
52269 main ()
52270 {
52271 return yp_match ();
52272   ;
52273   return 0;
52274 }
52275 _ACEOF
52276 for ac_lib in '' sun ypsec; do
52277   if test -z "$ac_lib"; then
52278     ac_res="none required"
52279   else
52280     ac_res=-l$ac_lib
52281     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
52282   fi
52283   rm -f conftest.$ac_objext conftest$ac_exeext
52284 if { (ac_try="$ac_link"
52285 case "(($ac_try" in
52286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52287   *) ac_try_echo=$ac_try;;
52288 esac
52289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52290 $as_echo "$ac_try_echo") >&5
52291   (eval "$ac_link") 2>conftest.er1
52292   ac_status=$?
52293   grep -v '^ *+' conftest.er1 >conftest.err
52294   rm -f conftest.er1
52295   cat conftest.err >&5
52296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52297   (exit $ac_status); } && {
52298          test -z "$ac_c_werror_flag" ||
52299          test ! -s conftest.err
52300        } && test -s conftest$ac_exeext &&
52301        $as_test_x conftest$ac_exeext; then
52302   ac_cv_search_yp_match=$ac_res
52303 else
52304   $as_echo "$as_me: failed program was:" >&5
52305 sed 's/^/| /' conftest.$ac_ext >&5
52306
52307
52308 fi
52309
52310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52311       conftest$ac_exeext
52312   if test "${ac_cv_search_yp_match+set}" = set; then
52313   break
52314 fi
52315 done
52316 if test "${ac_cv_search_yp_match+set}" = set; then
52317   :
52318 else
52319   ac_cv_search_yp_match=no
52320 fi
52321 rm conftest.$ac_ext
52322 LIBS=$ac_func_search_save_LIBS
52323 fi
52324 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_yp_match" >&5
52325 $as_echo "$ac_cv_search_yp_match" >&6; }
52326 ac_res=$ac_cv_search_yp_match
52327 if test "$ac_res" != no; then
52328   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
52329
52330 fi
52331
52332
52333   # SysV needs -lsec, older versions of Linux need -lshadow for
52334   # shadow passwords.  UnixWare 7 needs -lgen.
52335   { $as_echo "$as_me:$LINENO: checking for library containing getspnam" >&5
52336 $as_echo_n "checking for library containing getspnam... " >&6; }
52337 if test "${ac_cv_search_getspnam+set}" = set; then
52338   $as_echo_n "(cached) " >&6
52339 else
52340   ac_func_search_save_LIBS=$LIBS
52341 cat >conftest.$ac_ext <<_ACEOF
52342 /* confdefs.h.  */
52343 _ACEOF
52344 cat confdefs.h >>conftest.$ac_ext
52345 cat >>conftest.$ac_ext <<_ACEOF
52346 /* end confdefs.h.  */
52347
52348 /* Override any GCC internal prototype to avoid an error.
52349    Use char because int might match the return type of a GCC
52350    builtin and then its argument prototype would still apply.  */
52351 #ifdef __cplusplus
52352 extern "C"
52353 #endif
52354 char getspnam ();
52355 int
52356 main ()
52357 {
52358 return getspnam ();
52359   ;
52360   return 0;
52361 }
52362 _ACEOF
52363 for ac_lib in '' shadow sec gen; do
52364   if test -z "$ac_lib"; then
52365     ac_res="none required"
52366   else
52367     ac_res=-l$ac_lib
52368     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
52369   fi
52370   rm -f conftest.$ac_objext conftest$ac_exeext
52371 if { (ac_try="$ac_link"
52372 case "(($ac_try" in
52373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52374   *) ac_try_echo=$ac_try;;
52375 esac
52376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52377 $as_echo "$ac_try_echo") >&5
52378   (eval "$ac_link") 2>conftest.er1
52379   ac_status=$?
52380   grep -v '^ *+' conftest.er1 >conftest.err
52381   rm -f conftest.er1
52382   cat conftest.err >&5
52383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52384   (exit $ac_status); } && {
52385          test -z "$ac_c_werror_flag" ||
52386          test ! -s conftest.err
52387        } && test -s conftest$ac_exeext &&
52388        $as_test_x conftest$ac_exeext; then
52389   ac_cv_search_getspnam=$ac_res
52390 else
52391   $as_echo "$as_me: failed program was:" >&5
52392 sed 's/^/| /' conftest.$ac_ext >&5
52393
52394
52395 fi
52396
52397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52398       conftest$ac_exeext
52399   if test "${ac_cv_search_getspnam+set}" = set; then
52400   break
52401 fi
52402 done
52403 if test "${ac_cv_search_getspnam+set}" = set; then
52404   :
52405 else
52406   ac_cv_search_getspnam=no
52407 fi
52408 rm conftest.$ac_ext
52409 LIBS=$ac_func_search_save_LIBS
52410 fi
52411 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
52412 $as_echo "$ac_cv_search_getspnam" >&6; }
52413 ac_res=$ac_cv_search_getspnam
52414 if test "$ac_res" != no; then
52415   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
52416
52417 fi
52418
52419
52420
52421 for ac_header in shadow.h
52422 do
52423 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
52424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52425   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
52426 $as_echo_n "checking for $ac_header... " >&6; }
52427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52428   $as_echo_n "(cached) " >&6
52429 fi
52430 ac_res=`eval 'as_val=${'$as_ac_Header'}
52431                  $as_echo "$as_val"'`
52432                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
52433 $as_echo "$ac_res" >&6; }
52434 else
52435   # Is the header compilable?
52436 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
52437 $as_echo_n "checking $ac_header usability... " >&6; }
52438 cat >conftest.$ac_ext <<_ACEOF
52439 /* confdefs.h.  */
52440 _ACEOF
52441 cat confdefs.h >>conftest.$ac_ext
52442 cat >>conftest.$ac_ext <<_ACEOF
52443 /* end confdefs.h.  */
52444 $ac_includes_default
52445 #include <$ac_header>
52446 _ACEOF
52447 rm -f conftest.$ac_objext
52448 if { (ac_try="$ac_compile"
52449 case "(($ac_try" in
52450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52451   *) ac_try_echo=$ac_try;;
52452 esac
52453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52454 $as_echo "$ac_try_echo") >&5
52455   (eval "$ac_compile") 2>conftest.er1
52456   ac_status=$?
52457   grep -v '^ *+' conftest.er1 >conftest.err
52458   rm -f conftest.er1
52459   cat conftest.err >&5
52460   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52461   (exit $ac_status); } && {
52462          test -z "$ac_c_werror_flag" ||
52463          test ! -s conftest.err
52464        } && test -s conftest.$ac_objext; then
52465   ac_header_compiler=yes
52466 else
52467   $as_echo "$as_me: failed program was:" >&5
52468 sed 's/^/| /' conftest.$ac_ext >&5
52469
52470         ac_header_compiler=no
52471 fi
52472
52473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52474 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52475 $as_echo "$ac_header_compiler" >&6; }
52476
52477 # Is the header present?
52478 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
52479 $as_echo_n "checking $ac_header presence... " >&6; }
52480 cat >conftest.$ac_ext <<_ACEOF
52481 /* confdefs.h.  */
52482 _ACEOF
52483 cat confdefs.h >>conftest.$ac_ext
52484 cat >>conftest.$ac_ext <<_ACEOF
52485 /* end confdefs.h.  */
52486 #include <$ac_header>
52487 _ACEOF
52488 if { (ac_try="$ac_cpp conftest.$ac_ext"
52489 case "(($ac_try" in
52490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52491   *) ac_try_echo=$ac_try;;
52492 esac
52493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52494 $as_echo "$ac_try_echo") >&5
52495   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
52496   ac_status=$?
52497   grep -v '^ *+' conftest.er1 >conftest.err
52498   rm -f conftest.er1
52499   cat conftest.err >&5
52500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52501   (exit $ac_status); } >/dev/null && {
52502          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
52503          test ! -s conftest.err
52504        }; then
52505   ac_header_preproc=yes
52506 else
52507   $as_echo "$as_me: failed program was:" >&5
52508 sed 's/^/| /' conftest.$ac_ext >&5
52509
52510   ac_header_preproc=no
52511 fi
52512
52513 rm -f conftest.err conftest.$ac_ext
52514 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52515 $as_echo "$ac_header_preproc" >&6; }
52516
52517 # So?  What about this header?
52518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52519   yes:no: )
52520     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52521 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52522     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52523 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52524     ac_header_preproc=yes
52525     ;;
52526   no:yes:* )
52527     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52528 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52529     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
52530 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
52531     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52532 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52533     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
52534 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
52535     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52536 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52537     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52538 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52539     ( cat <<\_ASBOX
52540 ## ------------------------------------ ##
52541 ## Report this to bug-coreutils@gnu.org ##
52542 ## ------------------------------------ ##
52543 _ASBOX
52544      ) | sed "s/^/$as_me: WARNING:     /" >&2
52545     ;;
52546 esac
52547 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
52548 $as_echo_n "checking for $ac_header... " >&6; }
52549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52550   $as_echo_n "(cached) " >&6
52551 else
52552   eval "$as_ac_Header=\$ac_header_preproc"
52553 fi
52554 ac_res=`eval 'as_val=${'$as_ac_Header'}
52555                  $as_echo "$as_val"'`
52556                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
52557 $as_echo "$ac_res" >&6; }
52558
52559 fi
52560 if test `eval 'as_val=${'$as_ac_Header'}
52561                  $as_echo "$as_val"'` = yes; then
52562   cat >>confdefs.h <<_ACEOF
52563 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
52564 _ACEOF
52565
52566 fi
52567
52568 done
52569
52570
52571   # Requirements for su.c.
52572   shadow_includes="\
52573 $ac_includes_default
52574 #if HAVE_SHADOW_H
52575 # include <shadow.h>
52576 #endif
52577 "
52578   { $as_echo "$as_me:$LINENO: checking for struct spwd.sp_pwdp" >&5
52579 $as_echo_n "checking for struct spwd.sp_pwdp... " >&6; }
52580 if test "${ac_cv_member_struct_spwd_sp_pwdp+set}" = set; then
52581   $as_echo_n "(cached) " >&6
52582 else
52583   cat >conftest.$ac_ext <<_ACEOF
52584 /* confdefs.h.  */
52585 _ACEOF
52586 cat confdefs.h >>conftest.$ac_ext
52587 cat >>conftest.$ac_ext <<_ACEOF
52588 /* end confdefs.h.  */
52589 $shadow_includes
52590
52591 int
52592 main ()
52593 {
52594 static struct spwd ac_aggr;
52595 if (ac_aggr.sp_pwdp)
52596 return 0;
52597   ;
52598   return 0;
52599 }
52600 _ACEOF
52601 rm -f conftest.$ac_objext
52602 if { (ac_try="$ac_compile"
52603 case "(($ac_try" in
52604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52605   *) ac_try_echo=$ac_try;;
52606 esac
52607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52608 $as_echo "$ac_try_echo") >&5
52609   (eval "$ac_compile") 2>conftest.er1
52610   ac_status=$?
52611   grep -v '^ *+' conftest.er1 >conftest.err
52612   rm -f conftest.er1
52613   cat conftest.err >&5
52614   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52615   (exit $ac_status); } && {
52616          test -z "$ac_c_werror_flag" ||
52617          test ! -s conftest.err
52618        } && test -s conftest.$ac_objext; then
52619   ac_cv_member_struct_spwd_sp_pwdp=yes
52620 else
52621   $as_echo "$as_me: failed program was:" >&5
52622 sed 's/^/| /' conftest.$ac_ext >&5
52623
52624         cat >conftest.$ac_ext <<_ACEOF
52625 /* confdefs.h.  */
52626 _ACEOF
52627 cat confdefs.h >>conftest.$ac_ext
52628 cat >>conftest.$ac_ext <<_ACEOF
52629 /* end confdefs.h.  */
52630 $shadow_includes
52631
52632 int
52633 main ()
52634 {
52635 static struct spwd ac_aggr;
52636 if (sizeof ac_aggr.sp_pwdp)
52637 return 0;
52638   ;
52639   return 0;
52640 }
52641 _ACEOF
52642 rm -f conftest.$ac_objext
52643 if { (ac_try="$ac_compile"
52644 case "(($ac_try" in
52645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52646   *) ac_try_echo=$ac_try;;
52647 esac
52648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52649 $as_echo "$ac_try_echo") >&5
52650   (eval "$ac_compile") 2>conftest.er1
52651   ac_status=$?
52652   grep -v '^ *+' conftest.er1 >conftest.err
52653   rm -f conftest.er1
52654   cat conftest.err >&5
52655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52656   (exit $ac_status); } && {
52657          test -z "$ac_c_werror_flag" ||
52658          test ! -s conftest.err
52659        } && test -s conftest.$ac_objext; then
52660   ac_cv_member_struct_spwd_sp_pwdp=yes
52661 else
52662   $as_echo "$as_me: failed program was:" >&5
52663 sed 's/^/| /' conftest.$ac_ext >&5
52664
52665         ac_cv_member_struct_spwd_sp_pwdp=no
52666 fi
52667
52668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52669 fi
52670
52671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52672 fi
52673 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_spwd_sp_pwdp" >&5
52674 $as_echo "$ac_cv_member_struct_spwd_sp_pwdp" >&6; }
52675 if test $ac_cv_member_struct_spwd_sp_pwdp = yes; then
52676
52677 cat >>confdefs.h <<_ACEOF
52678 #define HAVE_STRUCT_SPWD_SP_PWDP 1
52679 _ACEOF
52680
52681
52682 fi
52683
52684
52685 for ac_func in getspnam
52686 do
52687 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
52688 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
52689 $as_echo_n "checking for $ac_func... " >&6; }
52690 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
52691   $as_echo_n "(cached) " >&6
52692 else
52693   cat >conftest.$ac_ext <<_ACEOF
52694 /* confdefs.h.  */
52695 _ACEOF
52696 cat confdefs.h >>conftest.$ac_ext
52697 cat >>conftest.$ac_ext <<_ACEOF
52698 /* end confdefs.h.  */
52699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52701 #define $ac_func innocuous_$ac_func
52702
52703 /* System header to define __stub macros and hopefully few prototypes,
52704     which can conflict with char $ac_func (); below.
52705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52706     <limits.h> exists even on freestanding compilers.  */
52707
52708 #ifdef __STDC__
52709 # include <limits.h>
52710 #else
52711 # include <assert.h>
52712 #endif
52713
52714 #undef $ac_func
52715
52716 /* Override any GCC internal prototype to avoid an error.
52717    Use char because int might match the return type of a GCC
52718    builtin and then its argument prototype would still apply.  */
52719 #ifdef __cplusplus
52720 extern "C"
52721 #endif
52722 char $ac_func ();
52723 /* The GNU C library defines this for functions which it implements
52724     to always fail with ENOSYS.  Some functions are actually named
52725     something starting with __ and the normal name is an alias.  */
52726 #if defined __stub_$ac_func || defined __stub___$ac_func
52727 choke me
52728 #endif
52729
52730 int
52731 main ()
52732 {
52733 return $ac_func ();
52734   ;
52735   return 0;
52736 }
52737 _ACEOF
52738 rm -f conftest.$ac_objext conftest$ac_exeext
52739 if { (ac_try="$ac_link"
52740 case "(($ac_try" in
52741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52742   *) ac_try_echo=$ac_try;;
52743 esac
52744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52745 $as_echo "$ac_try_echo") >&5
52746   (eval "$ac_link") 2>conftest.er1
52747   ac_status=$?
52748   grep -v '^ *+' conftest.er1 >conftest.err
52749   rm -f conftest.er1
52750   cat conftest.err >&5
52751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52752   (exit $ac_status); } && {
52753          test -z "$ac_c_werror_flag" ||
52754          test ! -s conftest.err
52755        } && test -s conftest$ac_exeext &&
52756        $as_test_x conftest$ac_exeext; then
52757   eval "$as_ac_var=yes"
52758 else
52759   $as_echo "$as_me: failed program was:" >&5
52760 sed 's/^/| /' conftest.$ac_ext >&5
52761
52762         eval "$as_ac_var=no"
52763 fi
52764
52765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52766       conftest$ac_exeext conftest.$ac_ext
52767 fi
52768 ac_res=`eval 'as_val=${'$as_ac_var'}
52769                  $as_echo "$as_val"'`
52770                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
52771 $as_echo "$ac_res" >&6; }
52772 if test `eval 'as_val=${'$as_ac_var'}
52773                  $as_echo "$as_val"'` = yes; then
52774   cat >>confdefs.h <<_ACEOF
52775 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
52776 _ACEOF
52777
52778 fi
52779 done
52780
52781
52782   # SCO-ODT-3.0 is reported to need -lufc for crypt.
52783   # NetBSD needs -lcrypt for crypt.
52784   cu_saved_libs="$LIBS"
52785   { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
52786 $as_echo_n "checking for library containing crypt... " >&6; }
52787 if test "${ac_cv_search_crypt+set}" = set; then
52788   $as_echo_n "(cached) " >&6
52789 else
52790   ac_func_search_save_LIBS=$LIBS
52791 cat >conftest.$ac_ext <<_ACEOF
52792 /* confdefs.h.  */
52793 _ACEOF
52794 cat confdefs.h >>conftest.$ac_ext
52795 cat >>conftest.$ac_ext <<_ACEOF
52796 /* end confdefs.h.  */
52797
52798 /* Override any GCC internal prototype to avoid an error.
52799    Use char because int might match the return type of a GCC
52800    builtin and then its argument prototype would still apply.  */
52801 #ifdef __cplusplus
52802 extern "C"
52803 #endif
52804 char crypt ();
52805 int
52806 main ()
52807 {
52808 return crypt ();
52809   ;
52810   return 0;
52811 }
52812 _ACEOF
52813 for ac_lib in '' ufc crypt; do
52814   if test -z "$ac_lib"; then
52815     ac_res="none required"
52816   else
52817     ac_res=-l$ac_lib
52818     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
52819   fi
52820   rm -f conftest.$ac_objext conftest$ac_exeext
52821 if { (ac_try="$ac_link"
52822 case "(($ac_try" in
52823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52824   *) ac_try_echo=$ac_try;;
52825 esac
52826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52827 $as_echo "$ac_try_echo") >&5
52828   (eval "$ac_link") 2>conftest.er1
52829   ac_status=$?
52830   grep -v '^ *+' conftest.er1 >conftest.err
52831   rm -f conftest.er1
52832   cat conftest.err >&5
52833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52834   (exit $ac_status); } && {
52835          test -z "$ac_c_werror_flag" ||
52836          test ! -s conftest.err
52837        } && test -s conftest$ac_exeext &&
52838        $as_test_x conftest$ac_exeext; then
52839   ac_cv_search_crypt=$ac_res
52840 else
52841   $as_echo "$as_me: failed program was:" >&5
52842 sed 's/^/| /' conftest.$ac_ext >&5
52843
52844
52845 fi
52846
52847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52848       conftest$ac_exeext
52849   if test "${ac_cv_search_crypt+set}" = set; then
52850   break
52851 fi
52852 done
52853 if test "${ac_cv_search_crypt+set}" = set; then
52854   :
52855 else
52856   ac_cv_search_crypt=no
52857 fi
52858 rm conftest.$ac_ext
52859 LIBS=$ac_func_search_save_LIBS
52860 fi
52861 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
52862 $as_echo "$ac_cv_search_crypt" >&6; }
52863 ac_res=$ac_cv_search_crypt
52864 if test "$ac_res" != no; then
52865   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
52866   test "$ac_cv_search_crypt" = "none required" ||
52867                   LIB_CRYPT="$ac_cv_search_crypt"
52868 fi
52869
52870   LIBS="$cu_saved_libs"
52871
52872
52873
52874
52875   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
52876 $as_echo_n "checking whether NLS is requested... " >&6; }
52877     # Check whether --enable-nls was given.
52878 if test "${enable_nls+set}" = set; then
52879   enableval=$enable_nls; USE_NLS=$enableval
52880 else
52881   USE_NLS=yes
52882 fi
52883
52884   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
52885 $as_echo "$USE_NLS" >&6; }
52886
52887
52888
52889
52890
52891
52892 # Prepare PATH_SEPARATOR.
52893 # The user is always right.
52894 if test "${PATH_SEPARATOR+set}" != set; then
52895   echo "#! /bin/sh" >conf$$.sh
52896   echo  "exit 0"   >>conf$$.sh
52897   chmod +x conf$$.sh
52898   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
52899     PATH_SEPARATOR=';'
52900   else
52901     PATH_SEPARATOR=:
52902   fi
52903   rm -f conf$$.sh
52904 fi
52905
52906 # Find out how to test for executable files. Don't use a zero-byte file,
52907 # as systems may use methods other than mode bits to determine executability.
52908 cat >conf$$.file <<_ASEOF
52909 #! /bin/sh
52910 exit 0
52911 _ASEOF
52912 chmod +x conf$$.file
52913 if test -x conf$$.file >/dev/null 2>&1; then
52914   ac_executable_p="test -x"
52915 else
52916   ac_executable_p="test -f"
52917 fi
52918 rm -f conf$$.file
52919
52920 # Extract the first word of "msgfmt", so it can be a program name with args.
52921 set dummy msgfmt; ac_word=$2
52922 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
52923 $as_echo_n "checking for $ac_word... " >&6; }
52924 if test "${ac_cv_path_MSGFMT+set}" = set; then
52925   $as_echo_n "(cached) " >&6
52926 else
52927   case "$MSGFMT" in
52928   [\\/]* | ?:[\\/]*)
52929     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
52930     ;;
52931   *)
52932     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
52933     for ac_dir in $PATH; do
52934       IFS="$ac_save_IFS"
52935       test -z "$ac_dir" && ac_dir=.
52936       for ac_exec_ext in '' $ac_executable_extensions; do
52937         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
52938           echo "$as_me: trying $ac_dir/$ac_word..." >&5
52939           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
52940      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
52941             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
52942             break 2
52943           fi
52944         fi
52945       done
52946     done
52947     IFS="$ac_save_IFS"
52948   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
52949     ;;
52950 esac
52951 fi
52952 MSGFMT="$ac_cv_path_MSGFMT"
52953 if test "$MSGFMT" != ":"; then
52954   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
52955 $as_echo "$MSGFMT" >&6; }
52956 else
52957   { $as_echo "$as_me:$LINENO: result: no" >&5
52958 $as_echo "no" >&6; }
52959 fi
52960
52961   # Extract the first word of "gmsgfmt", so it can be a program name with args.
52962 set dummy gmsgfmt; ac_word=$2
52963 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
52964 $as_echo_n "checking for $ac_word... " >&6; }
52965 if test "${ac_cv_path_GMSGFMT+set}" = set; then
52966   $as_echo_n "(cached) " >&6
52967 else
52968   case $GMSGFMT in
52969   [\\/]* | ?:[\\/]*)
52970   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
52971   ;;
52972   *)
52973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52974 for as_dir in $PATH
52975 do
52976   IFS=$as_save_IFS
52977   test -z "$as_dir" && as_dir=.
52978   for ac_exec_ext in '' $ac_executable_extensions; do
52979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52980     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
52981     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52982     break 2
52983   fi
52984 done
52985 done
52986 IFS=$as_save_IFS
52987
52988   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
52989   ;;
52990 esac
52991 fi
52992 GMSGFMT=$ac_cv_path_GMSGFMT
52993 if test -n "$GMSGFMT"; then
52994   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
52995 $as_echo "$GMSGFMT" >&6; }
52996 else
52997   { $as_echo "$as_me:$LINENO: result: no" >&5
52998 $as_echo "no" >&6; }
52999 fi
53000
53001
53002
53003     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
53004     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
53005     *) MSGFMT_015=$MSGFMT ;;
53006   esac
53007
53008   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
53009     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
53010     *) GMSGFMT_015=$GMSGFMT ;;
53011   esac
53012
53013
53014
53015 # Prepare PATH_SEPARATOR.
53016 # The user is always right.
53017 if test "${PATH_SEPARATOR+set}" != set; then
53018   echo "#! /bin/sh" >conf$$.sh
53019   echo  "exit 0"   >>conf$$.sh
53020   chmod +x conf$$.sh
53021   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53022     PATH_SEPARATOR=';'
53023   else
53024     PATH_SEPARATOR=:
53025   fi
53026   rm -f conf$$.sh
53027 fi
53028
53029 # Find out how to test for executable files. Don't use a zero-byte file,
53030 # as systems may use methods other than mode bits to determine executability.
53031 cat >conf$$.file <<_ASEOF
53032 #! /bin/sh
53033 exit 0
53034 _ASEOF
53035 chmod +x conf$$.file
53036 if test -x conf$$.file >/dev/null 2>&1; then
53037   ac_executable_p="test -x"
53038 else
53039   ac_executable_p="test -f"
53040 fi
53041 rm -f conf$$.file
53042
53043 # Extract the first word of "xgettext", so it can be a program name with args.
53044 set dummy xgettext; ac_word=$2
53045 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
53046 $as_echo_n "checking for $ac_word... " >&6; }
53047 if test "${ac_cv_path_XGETTEXT+set}" = set; then
53048   $as_echo_n "(cached) " >&6
53049 else
53050   case "$XGETTEXT" in
53051   [\\/]* | ?:[\\/]*)
53052     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
53053     ;;
53054   *)
53055     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
53056     for ac_dir in $PATH; do
53057       IFS="$ac_save_IFS"
53058       test -z "$ac_dir" && ac_dir=.
53059       for ac_exec_ext in '' $ac_executable_extensions; do
53060         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
53061           echo "$as_me: trying $ac_dir/$ac_word..." >&5
53062           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
53063      (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
53064             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
53065             break 2
53066           fi
53067         fi
53068       done
53069     done
53070     IFS="$ac_save_IFS"
53071   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
53072     ;;
53073 esac
53074 fi
53075 XGETTEXT="$ac_cv_path_XGETTEXT"
53076 if test "$XGETTEXT" != ":"; then
53077   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
53078 $as_echo "$XGETTEXT" >&6; }
53079 else
53080   { $as_echo "$as_me:$LINENO: result: no" >&5
53081 $as_echo "no" >&6; }
53082 fi
53083
53084     rm -f messages.po
53085
53086     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
53087     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
53088     *) XGETTEXT_015=$XGETTEXT ;;
53089   esac
53090
53091
53092
53093 # Prepare PATH_SEPARATOR.
53094 # The user is always right.
53095 if test "${PATH_SEPARATOR+set}" != set; then
53096   echo "#! /bin/sh" >conf$$.sh
53097   echo  "exit 0"   >>conf$$.sh
53098   chmod +x conf$$.sh
53099   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53100     PATH_SEPARATOR=';'
53101   else
53102     PATH_SEPARATOR=:
53103   fi
53104   rm -f conf$$.sh
53105 fi
53106
53107 # Find out how to test for executable files. Don't use a zero-byte file,
53108 # as systems may use methods other than mode bits to determine executability.
53109 cat >conf$$.file <<_ASEOF
53110 #! /bin/sh
53111 exit 0
53112 _ASEOF
53113 chmod +x conf$$.file
53114 if test -x conf$$.file >/dev/null 2>&1; then
53115   ac_executable_p="test -x"
53116 else
53117   ac_executable_p="test -f"
53118 fi
53119 rm -f conf$$.file
53120
53121 # Extract the first word of "msgmerge", so it can be a program name with args.
53122 set dummy msgmerge; ac_word=$2
53123 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
53124 $as_echo_n "checking for $ac_word... " >&6; }
53125 if test "${ac_cv_path_MSGMERGE+set}" = set; then
53126   $as_echo_n "(cached) " >&6
53127 else
53128   case "$MSGMERGE" in
53129   [\\/]* | ?:[\\/]*)
53130     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
53131     ;;
53132   *)
53133     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
53134     for ac_dir in $PATH; do
53135       IFS="$ac_save_IFS"
53136       test -z "$ac_dir" && ac_dir=.
53137       for ac_exec_ext in '' $ac_executable_extensions; do
53138         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
53139           echo "$as_me: trying $ac_dir/$ac_word..." >&5
53140           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
53141             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
53142             break 2
53143           fi
53144         fi
53145       done
53146     done
53147     IFS="$ac_save_IFS"
53148   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
53149     ;;
53150 esac
53151 fi
53152 MSGMERGE="$ac_cv_path_MSGMERGE"
53153 if test "$MSGMERGE" != ":"; then
53154   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
53155 $as_echo "$MSGMERGE" >&6; }
53156 else
53157   { $as_echo "$as_me:$LINENO: result: no" >&5
53158 $as_echo "no" >&6; }
53159 fi
53160
53161
53162         test -n "$localedir" || localedir='${datadir}/locale'
53163
53164
53165   ac_config_commands="$ac_config_commands po-directories"
53166
53167
53168
53169
53170
53171
53172
53173
53174
53175
53176
53177
53178
53179
53180
53181
53182
53183
53184
53185
53186
53187
53188
53189
53190
53191     { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
53192 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
53193 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
53194   $as_echo_n "(cached) " >&6
53195 else
53196   gt_save_LIBS="$LIBS"
53197      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
53198      cat >conftest.$ac_ext <<_ACEOF
53199 /* confdefs.h.  */
53200 _ACEOF
53201 cat confdefs.h >>conftest.$ac_ext
53202 cat >>conftest.$ac_ext <<_ACEOF
53203 /* end confdefs.h.  */
53204 #include <CoreFoundation/CFPreferences.h>
53205 int
53206 main ()
53207 {
53208 CFPreferencesCopyAppValue(NULL, NULL)
53209   ;
53210   return 0;
53211 }
53212 _ACEOF
53213 rm -f conftest.$ac_objext conftest$ac_exeext
53214 if { (ac_try="$ac_link"
53215 case "(($ac_try" in
53216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53217   *) ac_try_echo=$ac_try;;
53218 esac
53219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53220 $as_echo "$ac_try_echo") >&5
53221   (eval "$ac_link") 2>conftest.er1
53222   ac_status=$?
53223   grep -v '^ *+' conftest.er1 >conftest.err
53224   rm -f conftest.er1
53225   cat conftest.err >&5
53226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53227   (exit $ac_status); } && {
53228          test -z "$ac_c_werror_flag" ||
53229          test ! -s conftest.err
53230        } && test -s conftest$ac_exeext &&
53231        $as_test_x conftest$ac_exeext; then
53232   gt_cv_func_CFPreferencesCopyAppValue=yes
53233 else
53234   $as_echo "$as_me: failed program was:" >&5
53235 sed 's/^/| /' conftest.$ac_ext >&5
53236
53237         gt_cv_func_CFPreferencesCopyAppValue=no
53238 fi
53239
53240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53241       conftest$ac_exeext conftest.$ac_ext
53242      LIBS="$gt_save_LIBS"
53243 fi
53244 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
53245 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
53246   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
53247
53248 cat >>confdefs.h <<\_ACEOF
53249 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
53250 _ACEOF
53251
53252   fi
53253     { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
53254 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
53255 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
53256   $as_echo_n "(cached) " >&6
53257 else
53258   gt_save_LIBS="$LIBS"
53259      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
53260      cat >conftest.$ac_ext <<_ACEOF
53261 /* confdefs.h.  */
53262 _ACEOF
53263 cat confdefs.h >>conftest.$ac_ext
53264 cat >>conftest.$ac_ext <<_ACEOF
53265 /* end confdefs.h.  */
53266 #include <CoreFoundation/CFLocale.h>
53267 int
53268 main ()
53269 {
53270 CFLocaleCopyCurrent();
53271   ;
53272   return 0;
53273 }
53274 _ACEOF
53275 rm -f conftest.$ac_objext conftest$ac_exeext
53276 if { (ac_try="$ac_link"
53277 case "(($ac_try" in
53278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53279   *) ac_try_echo=$ac_try;;
53280 esac
53281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53282 $as_echo "$ac_try_echo") >&5
53283   (eval "$ac_link") 2>conftest.er1
53284   ac_status=$?
53285   grep -v '^ *+' conftest.er1 >conftest.err
53286   rm -f conftest.er1
53287   cat conftest.err >&5
53288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53289   (exit $ac_status); } && {
53290          test -z "$ac_c_werror_flag" ||
53291          test ! -s conftest.err
53292        } && test -s conftest$ac_exeext &&
53293        $as_test_x conftest$ac_exeext; then
53294   gt_cv_func_CFLocaleCopyCurrent=yes
53295 else
53296   $as_echo "$as_me: failed program was:" >&5
53297 sed 's/^/| /' conftest.$ac_ext >&5
53298
53299         gt_cv_func_CFLocaleCopyCurrent=no
53300 fi
53301
53302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53303       conftest$ac_exeext conftest.$ac_ext
53304      LIBS="$gt_save_LIBS"
53305 fi
53306 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
53307 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
53308   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
53309
53310 cat >>confdefs.h <<\_ACEOF
53311 #define HAVE_CFLOCALECOPYCURRENT 1
53312 _ACEOF
53313
53314   fi
53315   INTL_MACOSX_LIBS=
53316   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
53317     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
53318   fi
53319
53320
53321
53322
53323
53324
53325   LIBINTL=
53326   LTLIBINTL=
53327   POSUB=
53328
53329     case " $gt_needs " in
53330     *" need-formatstring-macros "*) gt_api_version=3 ;;
53331     *" need-ngettext "*) gt_api_version=2 ;;
53332     *) gt_api_version=1 ;;
53333   esac
53334   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
53335   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
53336
53337     if test "$USE_NLS" = "yes"; then
53338     gt_use_preinstalled_gnugettext=no
53339
53340
53341         if test $gt_api_version -ge 3; then
53342           gt_revision_test_code='
53343 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
53344 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
53345 #endif
53346 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
53347 '
53348         else
53349           gt_revision_test_code=
53350         fi
53351         if test $gt_api_version -ge 2; then
53352           gt_expression_test_code=' + * ngettext ("", "", 0)'
53353         else
53354           gt_expression_test_code=
53355         fi
53356
53357         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
53358 $as_echo_n "checking for GNU gettext in libc... " >&6; }
53359 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
53360   $as_echo_n "(cached) " >&6
53361 else
53362   cat >conftest.$ac_ext <<_ACEOF
53363 /* confdefs.h.  */
53364 _ACEOF
53365 cat confdefs.h >>conftest.$ac_ext
53366 cat >>conftest.$ac_ext <<_ACEOF
53367 /* end confdefs.h.  */
53368 #include <libintl.h>
53369 $gt_revision_test_code
53370 extern int _nl_msg_cat_cntr;
53371 extern int *_nl_domain_bindings;
53372 int
53373 main ()
53374 {
53375 bindtextdomain ("", "");
53376 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
53377   ;
53378   return 0;
53379 }
53380 _ACEOF
53381 rm -f conftest.$ac_objext conftest$ac_exeext
53382 if { (ac_try="$ac_link"
53383 case "(($ac_try" in
53384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53385   *) ac_try_echo=$ac_try;;
53386 esac
53387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53388 $as_echo "$ac_try_echo") >&5
53389   (eval "$ac_link") 2>conftest.er1
53390   ac_status=$?
53391   grep -v '^ *+' conftest.er1 >conftest.err
53392   rm -f conftest.er1
53393   cat conftest.err >&5
53394   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53395   (exit $ac_status); } && {
53396          test -z "$ac_c_werror_flag" ||
53397          test ! -s conftest.err
53398        } && test -s conftest$ac_exeext &&
53399        $as_test_x conftest$ac_exeext; then
53400   eval "$gt_func_gnugettext_libc=yes"
53401 else
53402   $as_echo "$as_me: failed program was:" >&5
53403 sed 's/^/| /' conftest.$ac_ext >&5
53404
53405         eval "$gt_func_gnugettext_libc=no"
53406 fi
53407
53408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53409       conftest$ac_exeext conftest.$ac_ext
53410 fi
53411 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
53412                  $as_echo "$as_val"'`
53413                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
53414 $as_echo "$ac_res" >&6; }
53415
53416         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
53417
53418
53419
53420
53421
53422           am_save_CPPFLAGS="$CPPFLAGS"
53423
53424   for element in $INCICONV; do
53425     haveit=
53426     for x in $CPPFLAGS; do
53427
53428   acl_save_prefix="$prefix"
53429   prefix="$acl_final_prefix"
53430   acl_save_exec_prefix="$exec_prefix"
53431   exec_prefix="$acl_final_exec_prefix"
53432   eval x=\"$x\"
53433   exec_prefix="$acl_save_exec_prefix"
53434   prefix="$acl_save_prefix"
53435
53436       if test "X$x" = "X$element"; then
53437         haveit=yes
53438         break
53439       fi
53440     done
53441     if test -z "$haveit"; then
53442       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
53443     fi
53444   done
53445
53446
53447   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
53448 $as_echo_n "checking for iconv... " >&6; }
53449 if test "${am_cv_func_iconv+set}" = set; then
53450   $as_echo_n "(cached) " >&6
53451 else
53452
53453     am_cv_func_iconv="no, consider installing GNU libiconv"
53454     am_cv_lib_iconv=no
53455     cat >conftest.$ac_ext <<_ACEOF
53456 /* confdefs.h.  */
53457 _ACEOF
53458 cat confdefs.h >>conftest.$ac_ext
53459 cat >>conftest.$ac_ext <<_ACEOF
53460 /* end confdefs.h.  */
53461 #include <stdlib.h>
53462 #include <iconv.h>
53463 int
53464 main ()
53465 {
53466 iconv_t cd = iconv_open("","");
53467        iconv(cd,NULL,NULL,NULL,NULL);
53468        iconv_close(cd);
53469   ;
53470   return 0;
53471 }
53472 _ACEOF
53473 rm -f conftest.$ac_objext conftest$ac_exeext
53474 if { (ac_try="$ac_link"
53475 case "(($ac_try" in
53476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53477   *) ac_try_echo=$ac_try;;
53478 esac
53479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53480 $as_echo "$ac_try_echo") >&5
53481   (eval "$ac_link") 2>conftest.er1
53482   ac_status=$?
53483   grep -v '^ *+' conftest.er1 >conftest.err
53484   rm -f conftest.er1
53485   cat conftest.err >&5
53486   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53487   (exit $ac_status); } && {
53488          test -z "$ac_c_werror_flag" ||
53489          test ! -s conftest.err
53490        } && test -s conftest$ac_exeext &&
53491        $as_test_x conftest$ac_exeext; then
53492   am_cv_func_iconv=yes
53493 else
53494   $as_echo "$as_me: failed program was:" >&5
53495 sed 's/^/| /' conftest.$ac_ext >&5
53496
53497
53498 fi
53499
53500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53501       conftest$ac_exeext conftest.$ac_ext
53502     if test "$am_cv_func_iconv" != yes; then
53503       am_save_LIBS="$LIBS"
53504       LIBS="$LIBS $LIBICONV"
53505       cat >conftest.$ac_ext <<_ACEOF
53506 /* confdefs.h.  */
53507 _ACEOF
53508 cat confdefs.h >>conftest.$ac_ext
53509 cat >>conftest.$ac_ext <<_ACEOF
53510 /* end confdefs.h.  */
53511 #include <stdlib.h>
53512 #include <iconv.h>
53513 int
53514 main ()
53515 {
53516 iconv_t cd = iconv_open("","");
53517          iconv(cd,NULL,NULL,NULL,NULL);
53518          iconv_close(cd);
53519   ;
53520   return 0;
53521 }
53522 _ACEOF
53523 rm -f conftest.$ac_objext conftest$ac_exeext
53524 if { (ac_try="$ac_link"
53525 case "(($ac_try" in
53526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53527   *) ac_try_echo=$ac_try;;
53528 esac
53529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53530 $as_echo "$ac_try_echo") >&5
53531   (eval "$ac_link") 2>conftest.er1
53532   ac_status=$?
53533   grep -v '^ *+' conftest.er1 >conftest.err
53534   rm -f conftest.er1
53535   cat conftest.err >&5
53536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53537   (exit $ac_status); } && {
53538          test -z "$ac_c_werror_flag" ||
53539          test ! -s conftest.err
53540        } && test -s conftest$ac_exeext &&
53541        $as_test_x conftest$ac_exeext; then
53542   am_cv_lib_iconv=yes
53543         am_cv_func_iconv=yes
53544 else
53545   $as_echo "$as_me: failed program was:" >&5
53546 sed 's/^/| /' conftest.$ac_ext >&5
53547
53548
53549 fi
53550
53551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53552       conftest$ac_exeext conftest.$ac_ext
53553       LIBS="$am_save_LIBS"
53554     fi
53555
53556 fi
53557 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
53558 $as_echo "$am_cv_func_iconv" >&6; }
53559   if test "$am_cv_func_iconv" = yes; then
53560
53561 cat >>confdefs.h <<\_ACEOF
53562 #define HAVE_ICONV 1
53563 _ACEOF
53564
53565   fi
53566   if test "$am_cv_lib_iconv" = yes; then
53567     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
53568 $as_echo_n "checking how to link with libiconv... " >&6; }
53569     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
53570 $as_echo "$LIBICONV" >&6; }
53571   else
53572             CPPFLAGS="$am_save_CPPFLAGS"
53573     LIBICONV=
53574     LTLIBICONV=
53575   fi
53576
53577
53578
53579
53580
53581
53582
53583
53584     use_additional=yes
53585
53586   acl_save_prefix="$prefix"
53587   prefix="$acl_final_prefix"
53588   acl_save_exec_prefix="$exec_prefix"
53589   exec_prefix="$acl_final_exec_prefix"
53590
53591     eval additional_includedir=\"$includedir\"
53592     eval additional_libdir=\"$libdir\"
53593
53594   exec_prefix="$acl_save_exec_prefix"
53595   prefix="$acl_save_prefix"
53596
53597
53598 # Check whether --with-libintl-prefix was given.
53599 if test "${with_libintl_prefix+set}" = set; then
53600   withval=$with_libintl_prefix;
53601     if test "X$withval" = "Xno"; then
53602       use_additional=no
53603     else
53604       if test "X$withval" = "X"; then
53605
53606   acl_save_prefix="$prefix"
53607   prefix="$acl_final_prefix"
53608   acl_save_exec_prefix="$exec_prefix"
53609   exec_prefix="$acl_final_exec_prefix"
53610
53611           eval additional_includedir=\"$includedir\"
53612           eval additional_libdir=\"$libdir\"
53613
53614   exec_prefix="$acl_save_exec_prefix"
53615   prefix="$acl_save_prefix"
53616
53617       else
53618         additional_includedir="$withval/include"
53619         additional_libdir="$withval/$acl_libdirstem"
53620       fi
53621     fi
53622
53623 fi
53624
53625       LIBINTL=
53626   LTLIBINTL=
53627   INCINTL=
53628   LIBINTL_PREFIX=
53629   rpathdirs=
53630   ltrpathdirs=
53631   names_already_handled=
53632   names_next_round='intl '
53633   while test -n "$names_next_round"; do
53634     names_this_round="$names_next_round"
53635     names_next_round=
53636     for name in $names_this_round; do
53637       already_handled=
53638       for n in $names_already_handled; do
53639         if test "$n" = "$name"; then
53640           already_handled=yes
53641           break
53642         fi
53643       done
53644       if test -z "$already_handled"; then
53645         names_already_handled="$names_already_handled $name"
53646                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
53647         eval value=\"\$HAVE_LIB$uppername\"
53648         if test -n "$value"; then
53649           if test "$value" = yes; then
53650             eval value=\"\$LIB$uppername\"
53651             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
53652             eval value=\"\$LTLIB$uppername\"
53653             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
53654           else
53655                                     :
53656           fi
53657         else
53658                               found_dir=
53659           found_la=
53660           found_so=
53661           found_a=
53662           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
53663           if test -n "$acl_shlibext"; then
53664             shrext=".$acl_shlibext"             # typically: shrext=.so
53665           else
53666             shrext=
53667           fi
53668           if test $use_additional = yes; then
53669             dir="$additional_libdir"
53670                                     if test -n "$acl_shlibext"; then
53671               if test -f "$dir/$libname$shrext"; then
53672                 found_dir="$dir"
53673                 found_so="$dir/$libname$shrext"
53674               else
53675                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
53676                   ver=`(cd "$dir" && \
53677                         for f in "$libname$shrext".*; do echo "$f"; done \
53678                         | sed -e "s,^$libname$shrext\\\\.,," \
53679                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
53680                         | sed 1q ) 2>/dev/null`
53681                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
53682                     found_dir="$dir"
53683                     found_so="$dir/$libname$shrext.$ver"
53684                   fi
53685                 else
53686                   eval library_names=\"$acl_library_names_spec\"
53687                   for f in $library_names; do
53688                     if test -f "$dir/$f"; then
53689                       found_dir="$dir"
53690                       found_so="$dir/$f"
53691                       break
53692                     fi
53693                   done
53694                 fi
53695               fi
53696             fi
53697                         if test "X$found_dir" = "X"; then
53698               if test -f "$dir/$libname.$acl_libext"; then
53699                 found_dir="$dir"
53700                 found_a="$dir/$libname.$acl_libext"
53701               fi
53702             fi
53703             if test "X$found_dir" != "X"; then
53704               if test -f "$dir/$libname.la"; then
53705                 found_la="$dir/$libname.la"
53706               fi
53707             fi
53708           fi
53709           if test "X$found_dir" = "X"; then
53710             for x in $LDFLAGS $LTLIBINTL; do
53711
53712   acl_save_prefix="$prefix"
53713   prefix="$acl_final_prefix"
53714   acl_save_exec_prefix="$exec_prefix"
53715   exec_prefix="$acl_final_exec_prefix"
53716   eval x=\"$x\"
53717   exec_prefix="$acl_save_exec_prefix"
53718   prefix="$acl_save_prefix"
53719
53720               case "$x" in
53721                 -L*)
53722                   dir=`echo "X$x" | sed -e 's/^X-L//'`
53723                                     if test -n "$acl_shlibext"; then
53724                     if test -f "$dir/$libname$shrext"; then
53725                       found_dir="$dir"
53726                       found_so="$dir/$libname$shrext"
53727                     else
53728                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
53729                         ver=`(cd "$dir" && \
53730                               for f in "$libname$shrext".*; do echo "$f"; done \
53731                               | sed -e "s,^$libname$shrext\\\\.,," \
53732                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
53733                               | sed 1q ) 2>/dev/null`
53734                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
53735                           found_dir="$dir"
53736                           found_so="$dir/$libname$shrext.$ver"
53737                         fi
53738                       else
53739                         eval library_names=\"$acl_library_names_spec\"
53740                         for f in $library_names; do
53741                           if test -f "$dir/$f"; then
53742                             found_dir="$dir"
53743                             found_so="$dir/$f"
53744                             break
53745                           fi
53746                         done
53747                       fi
53748                     fi
53749                   fi
53750                                     if test "X$found_dir" = "X"; then
53751                     if test -f "$dir/$libname.$acl_libext"; then
53752                       found_dir="$dir"
53753                       found_a="$dir/$libname.$acl_libext"
53754                     fi
53755                   fi
53756                   if test "X$found_dir" != "X"; then
53757                     if test -f "$dir/$libname.la"; then
53758                       found_la="$dir/$libname.la"
53759                     fi
53760                   fi
53761                   ;;
53762               esac
53763               if test "X$found_dir" != "X"; then
53764                 break
53765               fi
53766             done
53767           fi
53768           if test "X$found_dir" != "X"; then
53769                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
53770             if test "X$found_so" != "X"; then
53771                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
53772                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
53773               else
53774                                                                                 haveit=
53775                 for x in $ltrpathdirs; do
53776                   if test "X$x" = "X$found_dir"; then
53777                     haveit=yes
53778                     break
53779                   fi
53780                 done
53781                 if test -z "$haveit"; then
53782                   ltrpathdirs="$ltrpathdirs $found_dir"
53783                 fi
53784                                 if test "$acl_hardcode_direct" = yes; then
53785                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
53786                 else
53787                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
53788                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
53789                                                             haveit=
53790                     for x in $rpathdirs; do
53791                       if test "X$x" = "X$found_dir"; then
53792                         haveit=yes
53793                         break
53794                       fi
53795                     done
53796                     if test -z "$haveit"; then
53797                       rpathdirs="$rpathdirs $found_dir"
53798                     fi
53799                   else
53800                                                                                 haveit=
53801                     for x in $LDFLAGS $LIBINTL; do
53802
53803   acl_save_prefix="$prefix"
53804   prefix="$acl_final_prefix"
53805   acl_save_exec_prefix="$exec_prefix"
53806   exec_prefix="$acl_final_exec_prefix"
53807   eval x=\"$x\"
53808   exec_prefix="$acl_save_exec_prefix"
53809   prefix="$acl_save_prefix"
53810
53811                       if test "X$x" = "X-L$found_dir"; then
53812                         haveit=yes
53813                         break
53814                       fi
53815                     done
53816                     if test -z "$haveit"; then
53817                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
53818                     fi
53819                     if test "$acl_hardcode_minus_L" != no; then
53820                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
53821                     else
53822                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
53823                     fi
53824                   fi
53825                 fi
53826               fi
53827             else
53828               if test "X$found_a" != "X"; then
53829                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
53830               else
53831                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
53832               fi
53833             fi
53834                         additional_includedir=
53835             case "$found_dir" in
53836               */$acl_libdirstem | */$acl_libdirstem/)
53837                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
53838                 LIBINTL_PREFIX="$basedir"
53839                 additional_includedir="$basedir/include"
53840                 ;;
53841             esac
53842             if test "X$additional_includedir" != "X"; then
53843                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
53844                 haveit=
53845                 if test "X$additional_includedir" = "X/usr/local/include"; then
53846                   if test -n "$GCC"; then
53847                     case $host_os in
53848                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
53849                     esac
53850                   fi
53851                 fi
53852                 if test -z "$haveit"; then
53853                   for x in $CPPFLAGS $INCINTL; do
53854
53855   acl_save_prefix="$prefix"
53856   prefix="$acl_final_prefix"
53857   acl_save_exec_prefix="$exec_prefix"
53858   exec_prefix="$acl_final_exec_prefix"
53859   eval x=\"$x\"
53860   exec_prefix="$acl_save_exec_prefix"
53861   prefix="$acl_save_prefix"
53862
53863                     if test "X$x" = "X-I$additional_includedir"; then
53864                       haveit=yes
53865                       break
53866                     fi
53867                   done
53868                   if test -z "$haveit"; then
53869                     if test -d "$additional_includedir"; then
53870                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
53871                     fi
53872                   fi
53873                 fi
53874               fi
53875             fi
53876                         if test -n "$found_la"; then
53877                                                         save_libdir="$libdir"
53878               case "$found_la" in
53879                 */* | *\\*) . "$found_la" ;;
53880                 *) . "./$found_la" ;;
53881               esac
53882               libdir="$save_libdir"
53883                             for dep in $dependency_libs; do
53884                 case "$dep" in
53885                   -L*)
53886                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
53887                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
53888                       haveit=
53889                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
53890                         if test -n "$GCC"; then
53891                           case $host_os in
53892                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
53893                           esac
53894                         fi
53895                       fi
53896                       if test -z "$haveit"; then
53897                         haveit=
53898                         for x in $LDFLAGS $LIBINTL; do
53899
53900   acl_save_prefix="$prefix"
53901   prefix="$acl_final_prefix"
53902   acl_save_exec_prefix="$exec_prefix"
53903   exec_prefix="$acl_final_exec_prefix"
53904   eval x=\"$x\"
53905   exec_prefix="$acl_save_exec_prefix"
53906   prefix="$acl_save_prefix"
53907
53908                           if test "X$x" = "X-L$additional_libdir"; then
53909                             haveit=yes
53910                             break
53911                           fi
53912                         done
53913                         if test -z "$haveit"; then
53914                           if test -d "$additional_libdir"; then
53915                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
53916                           fi
53917                         fi
53918                         haveit=
53919                         for x in $LDFLAGS $LTLIBINTL; do
53920
53921   acl_save_prefix="$prefix"
53922   prefix="$acl_final_prefix"
53923   acl_save_exec_prefix="$exec_prefix"
53924   exec_prefix="$acl_final_exec_prefix"
53925   eval x=\"$x\"
53926   exec_prefix="$acl_save_exec_prefix"
53927   prefix="$acl_save_prefix"
53928
53929                           if test "X$x" = "X-L$additional_libdir"; then
53930                             haveit=yes
53931                             break
53932                           fi
53933                         done
53934                         if test -z "$haveit"; then
53935                           if test -d "$additional_libdir"; then
53936                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
53937                           fi
53938                         fi
53939                       fi
53940                     fi
53941                     ;;
53942                   -R*)
53943                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
53944                     if test "$enable_rpath" != no; then
53945                                                                   haveit=
53946                       for x in $rpathdirs; do
53947                         if test "X$x" = "X$dir"; then
53948                           haveit=yes
53949                           break
53950                         fi
53951                       done
53952                       if test -z "$haveit"; then
53953                         rpathdirs="$rpathdirs $dir"
53954                       fi
53955                                                                   haveit=
53956                       for x in $ltrpathdirs; do
53957                         if test "X$x" = "X$dir"; then
53958                           haveit=yes
53959                           break
53960                         fi
53961                       done
53962                       if test -z "$haveit"; then
53963                         ltrpathdirs="$ltrpathdirs $dir"
53964                       fi
53965                     fi
53966                     ;;
53967                   -l*)
53968                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
53969                     ;;
53970                   *.la)
53971                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
53972                     ;;
53973                   *)
53974                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
53975                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
53976                     ;;
53977                 esac
53978               done
53979             fi
53980           else
53981                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
53982             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
53983           fi
53984         fi
53985       fi
53986     done
53987   done
53988   if test "X$rpathdirs" != "X"; then
53989     if test -n "$acl_hardcode_libdir_separator"; then
53990                         alldirs=
53991       for found_dir in $rpathdirs; do
53992         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
53993       done
53994             acl_save_libdir="$libdir"
53995       libdir="$alldirs"
53996       eval flag=\"$acl_hardcode_libdir_flag_spec\"
53997       libdir="$acl_save_libdir"
53998       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
53999     else
54000             for found_dir in $rpathdirs; do
54001         acl_save_libdir="$libdir"
54002         libdir="$found_dir"
54003         eval flag=\"$acl_hardcode_libdir_flag_spec\"
54004         libdir="$acl_save_libdir"
54005         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
54006       done
54007     fi
54008   fi
54009   if test "X$ltrpathdirs" != "X"; then
54010             for found_dir in $ltrpathdirs; do
54011       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
54012     done
54013   fi
54014
54015           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
54016 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
54017 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
54018   $as_echo_n "(cached) " >&6
54019 else
54020   gt_save_CPPFLAGS="$CPPFLAGS"
54021             CPPFLAGS="$CPPFLAGS $INCINTL"
54022             gt_save_LIBS="$LIBS"
54023             LIBS="$LIBS $LIBINTL"
54024                         cat >conftest.$ac_ext <<_ACEOF
54025 /* confdefs.h.  */
54026 _ACEOF
54027 cat confdefs.h >>conftest.$ac_ext
54028 cat >>conftest.$ac_ext <<_ACEOF
54029 /* end confdefs.h.  */
54030 #include <libintl.h>
54031 $gt_revision_test_code
54032 extern int _nl_msg_cat_cntr;
54033 extern
54034 #ifdef __cplusplus
54035 "C"
54036 #endif
54037 const char *_nl_expand_alias (const char *);
54038 int
54039 main ()
54040 {
54041 bindtextdomain ("", "");
54042 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
54043   ;
54044   return 0;
54045 }
54046 _ACEOF
54047 rm -f conftest.$ac_objext conftest$ac_exeext
54048 if { (ac_try="$ac_link"
54049 case "(($ac_try" in
54050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54051   *) ac_try_echo=$ac_try;;
54052 esac
54053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54054 $as_echo "$ac_try_echo") >&5
54055   (eval "$ac_link") 2>conftest.er1
54056   ac_status=$?
54057   grep -v '^ *+' conftest.er1 >conftest.err
54058   rm -f conftest.er1
54059   cat conftest.err >&5
54060   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54061   (exit $ac_status); } && {
54062          test -z "$ac_c_werror_flag" ||
54063          test ! -s conftest.err
54064        } && test -s conftest$ac_exeext &&
54065        $as_test_x conftest$ac_exeext; then
54066   eval "$gt_func_gnugettext_libintl=yes"
54067 else
54068   $as_echo "$as_me: failed program was:" >&5
54069 sed 's/^/| /' conftest.$ac_ext >&5
54070
54071         eval "$gt_func_gnugettext_libintl=no"
54072 fi
54073
54074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54075       conftest$ac_exeext conftest.$ac_ext
54076                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
54077               LIBS="$LIBS $LIBICONV"
54078               cat >conftest.$ac_ext <<_ACEOF
54079 /* confdefs.h.  */
54080 _ACEOF
54081 cat confdefs.h >>conftest.$ac_ext
54082 cat >>conftest.$ac_ext <<_ACEOF
54083 /* end confdefs.h.  */
54084 #include <libintl.h>
54085 $gt_revision_test_code
54086 extern int _nl_msg_cat_cntr;
54087 extern
54088 #ifdef __cplusplus
54089 "C"
54090 #endif
54091 const char *_nl_expand_alias (const char *);
54092 int
54093 main ()
54094 {
54095 bindtextdomain ("", "");
54096 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
54097   ;
54098   return 0;
54099 }
54100 _ACEOF
54101 rm -f conftest.$ac_objext conftest$ac_exeext
54102 if { (ac_try="$ac_link"
54103 case "(($ac_try" in
54104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54105   *) ac_try_echo=$ac_try;;
54106 esac
54107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54108 $as_echo "$ac_try_echo") >&5
54109   (eval "$ac_link") 2>conftest.er1
54110   ac_status=$?
54111   grep -v '^ *+' conftest.er1 >conftest.err
54112   rm -f conftest.er1
54113   cat conftest.err >&5
54114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54115   (exit $ac_status); } && {
54116          test -z "$ac_c_werror_flag" ||
54117          test ! -s conftest.err
54118        } && test -s conftest$ac_exeext &&
54119        $as_test_x conftest$ac_exeext; then
54120   LIBINTL="$LIBINTL $LIBICONV"
54121                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
54122                 eval "$gt_func_gnugettext_libintl=yes"
54123
54124 else
54125   $as_echo "$as_me: failed program was:" >&5
54126 sed 's/^/| /' conftest.$ac_ext >&5
54127
54128
54129 fi
54130
54131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54132       conftest$ac_exeext conftest.$ac_ext
54133             fi
54134             CPPFLAGS="$gt_save_CPPFLAGS"
54135             LIBS="$gt_save_LIBS"
54136 fi
54137 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
54138                  $as_echo "$as_val"'`
54139                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
54140 $as_echo "$ac_res" >&6; }
54141         fi
54142
54143                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
54144            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
54145                 && test "$PACKAGE" != gettext-runtime \
54146                 && test "$PACKAGE" != gettext-tools; }; then
54147           gt_use_preinstalled_gnugettext=yes
54148         else
54149                     LIBINTL=
54150           LTLIBINTL=
54151           INCINTL=
54152         fi
54153
54154
54155
54156     if test -n "$INTL_MACOSX_LIBS"; then
54157       if test "$gt_use_preinstalled_gnugettext" = "yes" \
54158          || test "$nls_cv_use_gnu_gettext" = "yes"; then
54159                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
54160         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
54161       fi
54162     fi
54163
54164     if test "$gt_use_preinstalled_gnugettext" = "yes" \
54165        || test "$nls_cv_use_gnu_gettext" = "yes"; then
54166
54167 cat >>confdefs.h <<\_ACEOF
54168 #define ENABLE_NLS 1
54169 _ACEOF
54170
54171     else
54172       USE_NLS=no
54173     fi
54174   fi
54175
54176   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
54177 $as_echo_n "checking whether to use NLS... " >&6; }
54178   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
54179 $as_echo "$USE_NLS" >&6; }
54180   if test "$USE_NLS" = "yes"; then
54181     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
54182 $as_echo_n "checking where the gettext function comes from... " >&6; }
54183     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
54184       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
54185         gt_source="external libintl"
54186       else
54187         gt_source="libc"
54188       fi
54189     else
54190       gt_source="included intl directory"
54191     fi
54192     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
54193 $as_echo "$gt_source" >&6; }
54194   fi
54195
54196   if test "$USE_NLS" = "yes"; then
54197
54198     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
54199       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
54200         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
54201 $as_echo_n "checking how to link with libintl... " >&6; }
54202         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
54203 $as_echo "$LIBINTL" >&6; }
54204
54205   for element in $INCINTL; do
54206     haveit=
54207     for x in $CPPFLAGS; do
54208
54209   acl_save_prefix="$prefix"
54210   prefix="$acl_final_prefix"
54211   acl_save_exec_prefix="$exec_prefix"
54212   exec_prefix="$acl_final_exec_prefix"
54213   eval x=\"$x\"
54214   exec_prefix="$acl_save_exec_prefix"
54215   prefix="$acl_save_prefix"
54216
54217       if test "X$x" = "X$element"; then
54218         haveit=yes
54219         break
54220       fi
54221     done
54222     if test -z "$haveit"; then
54223       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
54224     fi
54225   done
54226
54227       fi
54228
54229
54230 cat >>confdefs.h <<\_ACEOF
54231 #define HAVE_GETTEXT 1
54232 _ACEOF
54233
54234
54235 cat >>confdefs.h <<\_ACEOF
54236 #define HAVE_DCGETTEXT 1
54237 _ACEOF
54238
54239     fi
54240
54241         POSUB=po
54242   fi
54243
54244
54245
54246     INTLLIBS="$LIBINTL"
54247
54248
54249
54250
54251
54252
54253
54254
54255 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"
54256
54257 cat >confcache <<\_ACEOF
54258 # This file is a shell script that caches the results of configure
54259 # tests run on this system so they can be shared between configure
54260 # scripts and configure runs, see configure's option --config-cache.
54261 # It is not useful on other systems.  If it contains results you don't
54262 # want to keep, you may remove or edit it.
54263 #
54264 # config.status only pays attention to the cache file if you give it
54265 # the --recheck option to rerun configure.
54266 #
54267 # `ac_cv_env_foo' variables (set or unset) will be overridden when
54268 # loading this file, other *unset* `ac_cv_foo' will be assigned the
54269 # following values.
54270
54271 _ACEOF
54272
54273 # The following way of writing the cache mishandles newlines in values,
54274 # but we know of no workaround that is simple, portable, and efficient.
54275 # So, we kill variables containing newlines.
54276 # Ultrix sh set writes to stderr and can't be redirected directly,
54277 # and sets the high bit in the cache file unless we assign to the vars.
54278 (
54279   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
54280     eval ac_val=\$$ac_var
54281     case $ac_val in #(
54282     *${as_nl}*)
54283       case $ac_var in #(
54284       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
54285 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
54286       esac
54287       case $ac_var in #(
54288       _ | IFS | as_nl) ;; #(
54289       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
54290       *) $as_unset $ac_var ;;
54291       esac ;;
54292     esac
54293   done
54294
54295   (set) 2>&1 |
54296     case $as_nl`(ac_space=' '; set) 2>&1` in #(
54297     *${as_nl}ac_space=\ *)
54298       # `set' does not quote correctly, so add quotes (double-quote
54299       # substitution turns \\\\ into \\, and sed turns \\ into \).
54300       sed -n \
54301         "s/'/'\\\\''/g;
54302           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
54303       ;; #(
54304     *)
54305       # `set' quotes correctly as required by POSIX, so do not add quotes.
54306       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
54307       ;;
54308     esac |
54309     sort
54310 ) |
54311   sed '
54312      /^ac_cv_env_/b end
54313      t clear
54314      :clear
54315      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
54316      t end
54317      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
54318      :end' >>confcache
54319 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
54320   if test -w "$cache_file"; then
54321     test "x$cache_file" != "x/dev/null" &&
54322       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
54323 $as_echo "$as_me: updating cache $cache_file" >&6;}
54324     cat confcache >$cache_file
54325   else
54326     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
54327 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
54328   fi
54329 fi
54330 rm -f confcache
54331
54332 test "x$prefix" = xNONE && prefix=$ac_default_prefix
54333 # Let make expand exec_prefix.
54334 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
54335
54336 DEFS=-DHAVE_CONFIG_H
54337
54338 ac_libobjs=
54339 ac_ltlibobjs=
54340 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
54341   # 1. Remove the extension, and $U if already installed.
54342   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
54343   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
54344   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
54345   #    will be set to the directory where LIBOBJS objects are built.
54346   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
54347   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
54348 done
54349 LIBOBJS=$ac_libobjs
54350
54351 LTLIBOBJS=$ac_ltlibobjs
54352
54353
54354 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
54355   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
54356 Usually this means the macro was only invoked conditionally." >&5
54357 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
54358 Usually this means the macro was only invoked conditionally." >&2;}
54359    { (exit 1); exit 1; }; }
54360 fi
54361 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
54362   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
54363 Usually this means the macro was only invoked conditionally." >&5
54364 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
54365 Usually this means the macro was only invoked conditionally." >&2;}
54366    { (exit 1); exit 1; }; }
54367 fi
54368 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
54369   { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
54370 Usually this means the macro was only invoked conditionally." >&5
54371 $as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
54372 Usually this means the macro was only invoked conditionally." >&2;}
54373    { (exit 1); exit 1; }; }
54374 fi
54375 test "X$DEFS" = X-DHAVE_CONFIG_H && DEFS=
54376
54377     gl_libobjs=
54378     gl_ltlibobjs=
54379     if test -n "$gl_LIBOBJS"; then
54380       # Remove the extension.
54381       sed_drop_objext='s/\.o$//;s/\.obj$//'
54382       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
54383         gl_libobjs="$gl_libobjs $i.$ac_objext"
54384         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
54385       done
54386     fi
54387     gl_LIBOBJS=$gl_libobjs
54388
54389     gl_LTLIBOBJS=$gl_ltlibobjs
54390
54391
54392
54393 : ${CONFIG_STATUS=./config.status}
54394 ac_clean_files_save=$ac_clean_files
54395 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
54396 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
54397 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
54398 cat >$CONFIG_STATUS <<_ACEOF
54399 #! $SHELL
54400 # Generated by $as_me.
54401 # Run this file to recreate the current configuration.
54402 # Compiler output produced by configure, useful for debugging
54403 # configure, is in config.log if it exists.
54404
54405 debug=false
54406 ac_cs_recheck=false
54407 ac_cs_silent=false
54408 SHELL=\${CONFIG_SHELL-$SHELL}
54409 _ACEOF
54410
54411 cat >>$CONFIG_STATUS <<\_ACEOF
54412 ## --------------------- ##
54413 ## M4sh Initialization.  ##
54414 ## --------------------- ##
54415
54416 # Be more Bourne compatible
54417 DUALCASE=1; export DUALCASE # for MKS sh
54418 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
54419   emulate sh
54420   NULLCMD=:
54421   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
54422   # is contrary to our usage.  Disable this feature.
54423   alias -g '${1+"$@"}'='"$@"'
54424   setopt NO_GLOB_SUBST
54425 else
54426   case `(set -o) 2>/dev/null` in
54427   *posix*) set -o posix ;;
54428 esac
54429
54430 fi
54431
54432
54433
54434
54435 # PATH needs CR
54436 # Avoid depending upon Character Ranges.
54437 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
54438 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
54439 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
54440 as_cr_digits='0123456789'
54441 as_cr_alnum=$as_cr_Letters$as_cr_digits
54442
54443 as_nl='
54444 '
54445 export as_nl
54446 # Printing a long string crashes Solaris 7 /usr/bin/printf.
54447 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
54448 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
54449 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
54450 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54451   as_echo='printf %s\n'
54452   as_echo_n='printf %s'
54453 else
54454   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54455     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54456     as_echo_n='/usr/ucb/echo -n'
54457   else
54458     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
54459     as_echo_n_body='eval
54460       arg=$1;
54461       case $arg in
54462       *"$as_nl"*)
54463         expr "X$arg" : "X\\(.*\\)$as_nl";
54464         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
54465       esac;
54466       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
54467     '
54468     export as_echo_n_body
54469     as_echo_n='sh -c $as_echo_n_body as_echo'
54470   fi
54471   export as_echo_body
54472   as_echo='sh -c $as_echo_body as_echo'
54473 fi
54474
54475 # The user is always right.
54476 if test "${PATH_SEPARATOR+set}" != set; then
54477   echo "#! /bin/sh" >conf$$.sh
54478   echo  "exit 0"   >>conf$$.sh
54479   chmod +x conf$$.sh
54480   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
54481     PATH_SEPARATOR=';'
54482   else
54483     PATH_SEPARATOR=:
54484   fi
54485   rm -f conf$$.sh
54486 fi
54487
54488 # Support unset when possible.
54489 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54490   as_unset=unset
54491 else
54492   as_unset=false
54493 fi
54494
54495
54496 # IFS
54497 # We need space, tab and new line, in precisely that order.  Quoting is
54498 # there to prevent editors from complaining about space-tab.
54499 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
54500 # splitting by setting IFS to empty value.)
54501 IFS=" ""        $as_nl"
54502
54503 # Find who we are.  Look in the path if we contain no directory separator.
54504 case $0 in
54505   *[\\/]* ) as_myself=$0 ;;
54506   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54507 for as_dir in $PATH
54508 do
54509   IFS=$as_save_IFS
54510   test -z "$as_dir" && as_dir=.
54511   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
54512 done
54513 IFS=$as_save_IFS
54514
54515      ;;
54516 esac
54517 # We did not find ourselves, most probably we were run as `sh COMMAND'
54518 # in which case we are not to be found in the path.
54519 if test "x$as_myself" = x; then
54520   as_myself=$0
54521 fi
54522 if test ! -f "$as_myself"; then
54523   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
54524   { (exit 1); exit 1; }
54525 fi
54526
54527 # Work around bugs in pre-3.0 UWIN ksh.
54528 for as_var in ENV MAIL MAILPATH
54529 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
54530 done
54531 PS1='$ '
54532 PS2='> '
54533 PS4='+ '
54534
54535 # NLS nuisances.
54536 for as_var in \
54537   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
54538   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
54539   LC_TELEPHONE LC_TIME
54540 do
54541   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54542     eval $as_var=C; export $as_var
54543   else
54544     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
54545   fi
54546 done
54547
54548 # Required to use basename.
54549 if expr a : '\(a\)' >/dev/null 2>&1 &&
54550    test "X`expr 00001 : '.*\(...\)'`" = X001; then
54551   as_expr=expr
54552 else
54553   as_expr=false
54554 fi
54555
54556 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
54557   as_basename=basename
54558 else
54559   as_basename=false
54560 fi
54561
54562
54563 # Name of the executable.
54564 as_me=`$as_basename -- "$0" ||
54565 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
54566          X"$0" : 'X\(//\)$' \| \
54567          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
54568 $as_echo X/"$0" |
54569     sed '/^.*\/\([^/][^/]*\)\/*$/{
54570             s//\1/
54571             q
54572           }
54573           /^X\/\(\/\/\)$/{
54574             s//\1/
54575             q
54576           }
54577           /^X\/\(\/\).*/{
54578             s//\1/
54579             q
54580           }
54581           s/.*/./; q'`
54582
54583 # CDPATH.
54584 $as_unset CDPATH
54585
54586
54587
54588   as_lineno_1=$LINENO
54589   as_lineno_2=$LINENO
54590   test "x$as_lineno_1" != "x$as_lineno_2" &&
54591   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
54592
54593   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
54594   # uniformly replaced by the line number.  The first 'sed' inserts a
54595   # line-number line after each line using $LINENO; the second 'sed'
54596   # does the real work.  The second script uses 'N' to pair each
54597   # line-number line with the line containing $LINENO, and appends
54598   # trailing '-' during substitution so that $LINENO is not a special
54599   # case at line end.
54600   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
54601   # scripts with optimization help from Paolo Bonzini.  Blame Lee
54602   # E. McMahon (1931-1989) for sed's syntax.  :-)
54603   sed -n '
54604     p
54605     /[$]LINENO/=
54606   ' <$as_myself |
54607     sed '
54608       s/[$]LINENO.*/&-/
54609       t lineno
54610       b
54611       :lineno
54612       N
54613       :loop
54614       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
54615       t loop
54616       s/-\n.*//
54617     ' >$as_me.lineno &&
54618   chmod +x "$as_me.lineno" ||
54619     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
54620    { (exit 1); exit 1; }; }
54621
54622   # Don't try to exec as it changes $[0], causing all sort of problems
54623   # (the dirname of $[0] is not the place where we might find the
54624   # original and so on.  Autoconf is especially sensitive to this).
54625   . "./$as_me.lineno"
54626   # Exit status is that of the last command.
54627   exit
54628 }
54629
54630
54631 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
54632   as_dirname=dirname
54633 else
54634   as_dirname=false
54635 fi
54636
54637 ECHO_C= ECHO_N= ECHO_T=
54638 case `echo -n x` in
54639 -n*)
54640   case `echo 'x\c'` in
54641   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
54642   *)   ECHO_C='\c';;
54643   esac;;
54644 *)
54645   ECHO_N='-n';;
54646 esac
54647 if expr a : '\(a\)' >/dev/null 2>&1 &&
54648    test "X`expr 00001 : '.*\(...\)'`" = X001; then
54649   as_expr=expr
54650 else
54651   as_expr=false
54652 fi
54653
54654 rm -f conf$$ conf$$.exe conf$$.file
54655 if test -d conf$$.dir; then
54656   rm -f conf$$.dir/conf$$.file
54657 else
54658   rm -f conf$$.dir
54659   mkdir conf$$.dir
54660 fi
54661 echo >conf$$.file
54662 if ln -s conf$$.file conf$$ 2>/dev/null; then
54663   as_ln_s='ln -s'
54664   # ... but there are two gotchas:
54665   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
54666   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
54667   # In both cases, we have to default to `cp -p'.
54668   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
54669     as_ln_s='cp -p'
54670 elif ln conf$$.file conf$$ 2>/dev/null; then
54671   as_ln_s=ln
54672 else
54673   as_ln_s='cp -p'
54674 fi
54675 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
54676 rmdir conf$$.dir 2>/dev/null
54677
54678 if mkdir -p . 2>/dev/null; then
54679   as_mkdir_p=:
54680 else
54681   test -d ./-p && rmdir ./-p
54682   as_mkdir_p=false
54683 fi
54684
54685 if test -x / >/dev/null 2>&1; then
54686   as_test_x='test -x'
54687 else
54688   if ls -dL / >/dev/null 2>&1; then
54689     as_ls_L_option=L
54690   else
54691     as_ls_L_option=
54692   fi
54693   as_test_x='
54694     eval sh -c '\''
54695       if test -d "$1"; then
54696         test -d "$1/.";
54697       else
54698         case $1 in
54699         -*)set "./$1";;
54700         esac;
54701         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
54702         ???[sx]*):;;*)false;;esac;fi
54703     '\'' sh
54704   '
54705 fi
54706 as_executable_p=$as_test_x
54707
54708 # Sed expression to map a string onto a valid CPP name.
54709 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
54710
54711 # Sed expression to map a string onto a valid variable name.
54712 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
54713
54714
54715 exec 6>&1
54716
54717 # Save the log message, to keep $[0] and so on meaningful, and to
54718 # report actual input values of CONFIG_FILES etc. instead of their
54719 # values after options handling.
54720 ac_log="
54721 This file was extended by GNU coreutils $as_me 6.9, which was
54722 generated by GNU Autoconf 2.61a.  Invocation command line was
54723
54724   CONFIG_FILES    = $CONFIG_FILES
54725   CONFIG_HEADERS  = $CONFIG_HEADERS
54726   CONFIG_LINKS    = $CONFIG_LINKS
54727   CONFIG_COMMANDS = $CONFIG_COMMANDS
54728   $ $0 $@
54729
54730 on `(hostname || uname -n) 2>/dev/null | sed 1q`
54731 "
54732
54733 _ACEOF
54734
54735 cat >>$CONFIG_STATUS <<_ACEOF
54736 # Files that config.status was made for.
54737 config_files="$ac_config_files"
54738 config_headers="$ac_config_headers"
54739 config_commands="$ac_config_commands"
54740
54741 _ACEOF
54742
54743 cat >>$CONFIG_STATUS <<\_ACEOF
54744 ac_cs_usage="\
54745 \`$as_me' instantiates files from templates according to the
54746 current configuration.
54747
54748 Usage: $0 [OPTIONS] [FILE]...
54749
54750   -h, --help       print this help, then exit
54751   -V, --version    print version number and configuration settings, then exit
54752   -q, --quiet      do not print progress messages
54753   -d, --debug      don't remove temporary files
54754       --recheck    update $as_me by reconfiguring in the same conditions
54755   --file=FILE[:TEMPLATE]
54756                    instantiate the configuration file FILE
54757   --header=FILE[:TEMPLATE]
54758                    instantiate the configuration header FILE
54759
54760 Configuration files:
54761 $config_files
54762
54763 Configuration headers:
54764 $config_headers
54765
54766 Configuration commands:
54767 $config_commands
54768
54769 Report bugs to <bug-autoconf@gnu.org>."
54770
54771 _ACEOF
54772 cat >>$CONFIG_STATUS <<_ACEOF
54773 ac_cs_version="\\
54774 GNU coreutils config.status 6.9
54775 configured by $0, generated by GNU Autoconf 2.61a,
54776   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
54777
54778 Copyright (C) 2006 Free Software Foundation, Inc.
54779 This config.status script is free software; the Free Software Foundation
54780 gives unlimited permission to copy, distribute and modify it."
54781
54782 ac_pwd='$ac_pwd'
54783 srcdir='$srcdir'
54784 INSTALL='$INSTALL'
54785 MKDIR_P='$MKDIR_P'
54786 AWK='$AWK'
54787 test -n "\$AWK" || AWK=awk
54788 _ACEOF
54789
54790 cat >>$CONFIG_STATUS <<\_ACEOF
54791 # If no file are specified by the user, then we need to provide default
54792 # value.  By we need to know if files were specified by the user.
54793 ac_need_defaults=:
54794 while test $# != 0
54795 do
54796   case $1 in
54797   --*=*)
54798     ac_option=`expr "X$1" : 'X\([^=]*\)='`
54799     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
54800     ac_shift=:
54801     ;;
54802   *)
54803     ac_option=$1
54804     ac_optarg=$2
54805     ac_shift=shift
54806     ;;
54807   esac
54808
54809   case $ac_option in
54810   # Handling of the options.
54811   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
54812     ac_cs_recheck=: ;;
54813   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
54814     $as_echo "$ac_cs_version"; exit ;;
54815   --debug | --debu | --deb | --de | --d | -d )
54816     debug=: ;;
54817   --file | --fil | --fi | --f )
54818     $ac_shift
54819     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
54820     ac_need_defaults=false;;
54821   --header | --heade | --head | --hea )
54822     $ac_shift
54823     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
54824     ac_need_defaults=false;;
54825   --he | --h)
54826     # Conflict between --help and --header
54827     { $as_echo "$as_me: error: ambiguous option: $1
54828 Try \`$0 --help' for more information." >&2
54829    { (exit 1); exit 1; }; };;
54830   --help | --hel | -h )
54831     $as_echo "$ac_cs_usage"; exit ;;
54832   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
54833   | -silent | --silent | --silen | --sile | --sil | --si | --s)
54834     ac_cs_silent=: ;;
54835
54836   # This is an error.
54837   -*) { $as_echo "$as_me: error: unrecognized option: $1
54838 Try \`$0 --help' for more information." >&2
54839    { (exit 1); exit 1; }; } ;;
54840
54841   *) ac_config_targets="$ac_config_targets $1"
54842      ac_need_defaults=false ;;
54843
54844   esac
54845   shift
54846 done
54847
54848 ac_configure_extra_args=
54849
54850 if $ac_cs_silent; then
54851   exec 6>/dev/null
54852   ac_configure_extra_args="$ac_configure_extra_args --silent"
54853 fi
54854
54855 _ACEOF
54856 cat >>$CONFIG_STATUS <<_ACEOF
54857 if \$ac_cs_recheck; then
54858   set X '$SHELL' '$0'$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
54859   shift
54860   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
54861   CONFIG_SHELL='$SHELL'
54862   export CONFIG_SHELL
54863   exec "\$@"
54864 fi
54865
54866 _ACEOF
54867 cat >>$CONFIG_STATUS <<\_ACEOF
54868 exec 5>>config.log
54869 {
54870   echo
54871   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
54872 ## Running $as_me. ##
54873 _ASBOX
54874   $as_echo "$ac_log"
54875 } >&5
54876
54877 _ACEOF
54878 cat >>$CONFIG_STATUS <<_ACEOF
54879 #
54880 # INIT-COMMANDS
54881 #
54882 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
54883 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
54884     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
54885     # from automake < 1.5.
54886     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
54887     # Capture the value of LINGUAS because we need it to compute CATALOGS.
54888     LINGUAS="${LINGUAS-%UNSET%}"
54889
54890
54891 _ACEOF
54892
54893 cat >>$CONFIG_STATUS <<\_ACEOF
54894
54895 # Handling of arguments.
54896 for ac_config_target in $ac_config_targets
54897 do
54898   case $ac_config_target in
54899     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h:lib/config.hin" ;;
54900     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
54901     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
54902     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
54903     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
54904     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
54905     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
54906     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
54907     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
54908     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
54909     "tests/chgrp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/chgrp/Makefile" ;;
54910     "tests/chmod/Makefile") CONFIG_FILES="$CONFIG_FILES tests/chmod/Makefile" ;;
54911     "tests/chown/Makefile") CONFIG_FILES="$CONFIG_FILES tests/chown/Makefile" ;;
54912     "tests/cp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cp/Makefile" ;;
54913     "tests/cut/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cut/Makefile" ;;
54914     "tests/dd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dd/Makefile" ;;
54915     "tests/dircolors/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dircolors/Makefile" ;;
54916     "tests/du/Makefile") CONFIG_FILES="$CONFIG_FILES tests/du/Makefile" ;;
54917     "tests/expr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/expr/Makefile" ;;
54918     "tests/factor/Makefile") CONFIG_FILES="$CONFIG_FILES tests/factor/Makefile" ;;
54919     "tests/fmt/Makefile") CONFIG_FILES="$CONFIG_FILES tests/fmt/Makefile" ;;
54920     "tests/head/Makefile") CONFIG_FILES="$CONFIG_FILES tests/head/Makefile" ;;
54921     "tests/install/Makefile") CONFIG_FILES="$CONFIG_FILES tests/install/Makefile" ;;
54922     "tests/join/Makefile") CONFIG_FILES="$CONFIG_FILES tests/join/Makefile" ;;
54923     "tests/ln/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ln/Makefile" ;;
54924     "tests/ls-2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ls-2/Makefile" ;;
54925     "tests/ls/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ls/Makefile" ;;
54926     "tests/md5sum/Makefile") CONFIG_FILES="$CONFIG_FILES tests/md5sum/Makefile" ;;
54927     "tests/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
54928     "tests/mkdir/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mkdir/Makefile" ;;
54929     "tests/mv/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mv/Makefile" ;;
54930     "tests/od/Makefile") CONFIG_FILES="$CONFIG_FILES tests/od/Makefile" ;;
54931     "tests/pr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pr/Makefile" ;;
54932     "tests/readlink/Makefile") CONFIG_FILES="$CONFIG_FILES tests/readlink/Makefile" ;;
54933     "tests/rm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rm/Makefile" ;;
54934     "tests/rmdir/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rmdir/Makefile" ;;
54935     "tests/seq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/seq/Makefile" ;;
54936     "tests/sha1sum/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sha1sum/Makefile" ;;
54937     "tests/shred/Makefile") CONFIG_FILES="$CONFIG_FILES tests/shred/Makefile" ;;
54938     "tests/sort/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sort/Makefile" ;;
54939     "tests/stty/Makefile") CONFIG_FILES="$CONFIG_FILES tests/stty/Makefile" ;;
54940     "tests/sum/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sum/Makefile" ;;
54941     "tests/tac/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tac/Makefile" ;;
54942     "tests/tail-2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tail-2/Makefile" ;;
54943     "tests/tail/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tail/Makefile" ;;
54944     "tests/tee/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tee/Makefile" ;;
54945     "tests/test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test/Makefile" ;;
54946     "tests/touch/Makefile") CONFIG_FILES="$CONFIG_FILES tests/touch/Makefile" ;;
54947     "tests/tr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tr/Makefile" ;;
54948     "tests/tsort/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tsort/Makefile" ;;
54949     "tests/unexpand/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unexpand/Makefile" ;;
54950     "tests/uniq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/uniq/Makefile" ;;
54951     "tests/wc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/wc/Makefile" ;;
54952
54953   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
54954 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
54955    { (exit 1); exit 1; }; };;
54956   esac
54957 done
54958
54959
54960 # If the user did not use the arguments to specify the items to instantiate,
54961 # then the envvar interface is used.  Set only those that are not.
54962 # We use the long form for the default assignment because of an extremely
54963 # bizarre bug on SunOS 4.1.3.
54964 if $ac_need_defaults; then
54965   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
54966   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
54967   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
54968 fi
54969
54970 # Have a temporary directory for convenience.  Make it in the build tree
54971 # simply because there is no reason against having it here, and in addition,
54972 # creating and moving files from /tmp can sometimes cause problems.
54973 # Hook for its removal unless debugging.
54974 # Note that there is a small window in which the directory will not be cleaned:
54975 # after its creation but before its name has been assigned to `$tmp'.
54976 $debug ||
54977 {
54978   tmp=
54979   trap 'exit_status=$?
54980   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
54981 ' 0
54982   trap '{ (exit 1); exit 1; }' 1 2 13 15
54983 }
54984 # Create a (secure) tmp directory for tmp files.
54985
54986 {
54987   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
54988   test -n "$tmp" && test -d "$tmp"
54989 }  ||
54990 {
54991   tmp=./conf$$-$RANDOM
54992   (umask 077 && mkdir "$tmp")
54993 } ||
54994 {
54995    $as_echo "$me: cannot create a temporary directory in ." >&2
54996    { (exit 1); exit 1; }
54997 }
54998
54999 # Set up the scripts for CONFIG_FILES section.
55000 # No need to generate them if there are no CONFIG_FILES.
55001 # This happens for instance with `./config.status config.h'.
55002 if test -n "$CONFIG_FILES"; then
55003
55004
55005 echo 'BEGIN {' >"$tmp/subs.awk"
55006 _ACEOF
55007
55008
55009 {
55010   echo "cat >conf$$subs.awk <<_ACEOF"
55011   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/'
55012   echo "_ACEOF"
55013 } >conf$$subs.sh
55014 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
55015 ac_delim='%!_!# '
55016 for ac_last_try in false false false false false :; do
55017   . ./conf$$subs.sh
55018
55019   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
55020     break
55021   elif $ac_last_try; then
55022     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
55023 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
55024    { (exit 1); exit 1; }; }
55025   else
55026     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
55027   fi
55028 done
55029 rm -f conf$$subs.sh
55030
55031 cat >>$CONFIG_STATUS <<_ACEOF
55032 cat >>"\$tmp/subs.awk" <<\CEOF
55033 _ACEOF
55034 sed -n '
55035 h
55036 s/^/S["/; s/!.*/"]=/
55037 p
55038 g
55039 s/^[^!]*!//
55040 :repl
55041 t repl
55042 s/'"$ac_delim"'$//
55043 t delim
55044 :nl
55045 h
55046 s/\(.\{148\}\).*/\1/
55047 t more1
55048 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
55049 p
55050 n
55051 b repl
55052 :more1
55053 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
55054 p
55055 g
55056 s/.\{148\}//
55057 t nl
55058 :delim
55059 h
55060 s/\(.\{148\}\).*/\1/
55061 t more2
55062 s/["\\]/\\&/g; s/^/"/; s/$/"/
55063 p
55064 b
55065 :more2
55066 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
55067 p
55068 g
55069 s/.\{148\}//
55070 t delim
55071 ' <conf$$subs.awk | sed '
55072 /^[^"]/{
55073   N
55074   s/\n//
55075 }
55076 ' >>$CONFIG_STATUS
55077 rm -f conf$$subs.awk
55078 cat >>$CONFIG_STATUS <<_ACEOF
55079 CEOF
55080 cat >>"\$tmp/subs.awk" <<CEOF
55081   for (key in S) S_is_set[key] = 1
55082   FS = "\a"
55083
55084 }
55085 {
55086   line = $ 0
55087   nfields = split(line, field, "@")
55088   substed = 0
55089   len = length(field[1])
55090   for (i = 2; i < nfields; i++) {
55091     key = field[i]
55092     keylen = length(key)
55093     if (S_is_set[key]) {
55094       value = S[key]
55095       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
55096       len += length(value) + length(field[++i])
55097       substed = 1
55098     } else
55099       len += 1 + keylen
55100   }
55101
55102   print line
55103 }
55104
55105 CEOF
55106 _ACEOF
55107
55108 # VPATH may cause trouble with some makes, so we remove $(srcdir),
55109 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
55110 # trailing colons and then remove the whole line if VPATH becomes empty
55111 # (actually we leave an empty line to preserve line numbers).
55112 if test "x$srcdir" = x.; then
55113   ac_vpsub='/^[  ]*VPATH[        ]*=/{
55114 s/:*\$(srcdir):*/:/
55115 s/:*\${srcdir}:*/:/
55116 s/:*@srcdir@:*/:/
55117 s/^\([^=]*=[     ]*\):*/\1/
55118 s/:*$//
55119 s/^[^=]*=[       ]*$//
55120 }'
55121 fi
55122
55123 cat >>$CONFIG_STATUS <<\_ACEOF
55124 fi # test -n "$CONFIG_FILES"
55125
55126
55127 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
55128 do
55129   case $ac_tag in
55130   :[FHLC]) ac_mode=$ac_tag; continue;;
55131   esac
55132   case $ac_mode$ac_tag in
55133   :[FHL]*:*);;
55134   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
55135 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
55136    { (exit 1); exit 1; }; };;
55137   :[FH]-) ac_tag=-:-;;
55138   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
55139   esac
55140   ac_save_IFS=$IFS
55141   IFS=:
55142   set x $ac_tag
55143   IFS=$ac_save_IFS
55144   shift
55145   ac_file=$1
55146   shift
55147
55148   case $ac_mode in
55149   :L) ac_source=$1;;
55150   :[FH])
55151     ac_file_inputs=
55152     for ac_f
55153     do
55154       case $ac_f in
55155       -) ac_f="$tmp/stdin";;
55156       *) # Look for the file first in the build tree, then in the source tree
55157          # (if the path is not absolute).  The absolute path cannot be DOS-style,
55158          # because $ac_f cannot contain `:'.
55159          test -f "$ac_f" ||
55160            case $ac_f in
55161            [\\/$]*) false;;
55162            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
55163            esac ||
55164            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
55165 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
55166    { (exit 1); exit 1; }; };;
55167       esac
55168       ac_file_inputs="$ac_file_inputs $ac_f"
55169     done
55170
55171     # Let's still pretend it is `configure' which instantiates (i.e., don't
55172     # use $as_me), people would be surprised to read:
55173     #    /* config.h.  Generated by config.status.  */
55174     configure_input='Generated from '`
55175           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
55176         `' by configure.'
55177     if test x"$ac_file" != x-; then
55178       configure_input="$ac_file.  $configure_input"
55179       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
55180 $as_echo "$as_me: creating $ac_file" >&6;}
55181     fi
55182
55183     case $ac_tag in
55184     *:-:* | *:-) cat >"$tmp/stdin";;
55185     esac
55186     ;;
55187   esac
55188
55189   ac_dir=`$as_dirname -- "$ac_file" ||
55190 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55191          X"$ac_file" : 'X\(//\)[^/]' \| \
55192          X"$ac_file" : 'X\(//\)$' \| \
55193          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
55194 $as_echo X"$ac_file" |
55195     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55196             s//\1/
55197             q
55198           }
55199           /^X\(\/\/\)[^/].*/{
55200             s//\1/
55201             q
55202           }
55203           /^X\(\/\/\)$/{
55204             s//\1/
55205             q
55206           }
55207           /^X\(\/\).*/{
55208             s//\1/
55209             q
55210           }
55211           s/.*/./; q'`
55212   { as_dir="$ac_dir"
55213   case $as_dir in #(
55214   -*) as_dir=./$as_dir;;
55215   esac
55216   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
55217     as_dirs=
55218     while :; do
55219       case $as_dir in #(
55220       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
55221       *) as_qdir=$as_dir;;
55222       esac
55223       as_dirs="'$as_qdir' $as_dirs"
55224       as_dir=`$as_dirname -- "$as_dir" ||
55225 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55226          X"$as_dir" : 'X\(//\)[^/]' \| \
55227          X"$as_dir" : 'X\(//\)$' \| \
55228          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
55229 $as_echo X"$as_dir" |
55230     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55231             s//\1/
55232             q
55233           }
55234           /^X\(\/\/\)[^/].*/{
55235             s//\1/
55236             q
55237           }
55238           /^X\(\/\/\)$/{
55239             s//\1/
55240             q
55241           }
55242           /^X\(\/\).*/{
55243             s//\1/
55244             q
55245           }
55246           s/.*/./; q'`
55247       test -d "$as_dir" && break
55248     done
55249     test -z "$as_dirs" || eval "mkdir $as_dirs"
55250   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
55251 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
55252    { (exit 1); exit 1; }; }; }
55253   ac_builddir=.
55254
55255 case "$ac_dir" in
55256 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
55257 *)
55258   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's,^\.[\\/],,'`
55259   # A ".." for each directory in $ac_dir_suffix.
55260   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
55261   case $ac_top_builddir_sub in
55262   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
55263   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
55264   esac ;;
55265 esac
55266 ac_abs_top_builddir=$ac_pwd
55267 ac_abs_builddir=$ac_pwd$ac_dir_suffix
55268 # for backward compatibility:
55269 ac_top_builddir=$ac_top_build_prefix
55270
55271 case $srcdir in
55272   .)  # We are building in place.
55273     ac_srcdir=.
55274     ac_top_srcdir=$ac_top_builddir_sub
55275     ac_abs_top_srcdir=$ac_pwd ;;
55276   [\\/]* | ?:[\\/]* )  # Absolute name.
55277     ac_srcdir=$srcdir$ac_dir_suffix;
55278     ac_top_srcdir=$srcdir
55279     ac_abs_top_srcdir=$srcdir ;;
55280   *) # Relative name.
55281     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
55282     ac_top_srcdir=$ac_top_build_prefix$srcdir
55283     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
55284 esac
55285 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
55286
55287
55288   case $ac_mode in
55289   :F)
55290   #
55291   # CONFIG_FILE
55292   #
55293
55294   case $INSTALL in
55295   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
55296   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
55297   esac
55298   ac_MKDIR_P=$MKDIR_P
55299   case $MKDIR_P in
55300   [\\/$]* | ?:[\\/]* ) ;;
55301   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
55302   esac
55303 _ACEOF
55304
55305 cat >>$CONFIG_STATUS <<\_ACEOF
55306 # If the template does not know about datarootdir, expand it.
55307 # FIXME: This hack should be removed a few years after 2.60.
55308 ac_datarootdir_hack=; ac_datarootdir_seen=
55309
55310 case `sed -n '/datarootdir/ {
55311   p
55312   q
55313 }
55314 /@datadir@/p
55315 /@docdir@/p
55316 /@infodir@/p
55317 /@localedir@/p
55318 /@mandir@/p
55319 ' $ac_file_inputs` in
55320 *datarootdir*) ac_datarootdir_seen=yes;;
55321 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
55322   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
55323 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
55324 _ACEOF
55325 cat >>$CONFIG_STATUS <<_ACEOF
55326   ac_datarootdir_hack='
55327   s&@datadir@&$datadir&g
55328   s&@docdir@&$docdir&g
55329   s&@infodir@&$infodir&g
55330   s&@localedir@&$localedir&g
55331   s&@mandir@&$mandir&g
55332     s&\\\${datarootdir}&$datarootdir&g' ;;
55333 esac
55334 _ACEOF
55335
55336 # Neutralize VPATH when `$srcdir' = `.'.
55337 # Shell code in configure.ac might set extrasub.
55338 # FIXME: do we really want to maintain this feature?
55339 cat >>$CONFIG_STATUS <<_ACEOF
55340   sed "$ac_vpsub
55341 $extrasub
55342 _ACEOF
55343 cat >>$CONFIG_STATUS <<\_ACEOF
55344 :t
55345 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
55346 s&@configure_input@&$configure_input&;t t
55347 s&@top_builddir@&$ac_top_builddir_sub&;t t
55348 s&@srcdir@&$ac_srcdir&;t t
55349 s&@abs_srcdir@&$ac_abs_srcdir&;t t
55350 s&@top_srcdir@&$ac_top_srcdir&;t t
55351 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
55352 s&@builddir@&$ac_builddir&;t t
55353 s&@abs_builddir@&$ac_abs_builddir&;t t
55354 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
55355 s&@INSTALL@&$ac_INSTALL&;t t
55356 s&@MKDIR_P@&$ac_MKDIR_P&;t t
55357 $ac_datarootdir_hack
55358 " $ac_file_inputs | $AWK -f "$tmp/subs.awk" >$tmp/out
55359
55360 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
55361   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
55362   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
55363   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
55364 which seems to be undefined.  Please make sure it is defined." >&5
55365 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
55366 which seems to be undefined.  Please make sure it is defined." >&2;}
55367
55368   rm -f "$tmp/stdin"
55369   case $ac_file in
55370   -) cat "$tmp/out"; rm -f "$tmp/out";;
55371   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
55372   esac
55373  ;;
55374   :H)
55375   #
55376   # CONFIG_HEADER
55377   #
55378 _ACEOF
55379
55380 # Transform confdefs.h into a sed script `conftest.defines', that
55381 # substitutes the proper values into config.h.in to produce config.h.
55382 rm -f conftest.defines conftest.tail
55383 # First, append a space to every undef/define line, to ease matching.
55384 echo 's/$/ /' >conftest.defines
55385 # Then, protect against being on the right side of a sed subst, or in
55386 # an unquoted here document, in config.status.  If some macros were
55387 # called several times there might be several #defines for the same
55388 # symbol, which is useless.  But do not sort them, since the last
55389 # AC_DEFINE must be honored.
55390 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
55391 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
55392 # NAME is the cpp macro being defined, VALUE is the value it is being given.
55393 # PARAMS is the parameter list in the macro definition--in most cases, it's
55394 # just an empty string.
55395 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
55396 ac_dB='\\)[      (].*,\\1define\\2'
55397 ac_dC=' '
55398 ac_dD=' ,'
55399
55400 uniq confdefs.h |
55401   sed -n '
55402         t rset
55403         :rset
55404         s/^[     ]*#[    ]*define[       ][      ]*//
55405         t ok
55406         d
55407         :ok
55408         s/[\\&,]/\\&/g
55409         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
55410         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
55411   ' >>conftest.defines
55412
55413 # Remove the space that was appended to ease matching.
55414 # Then replace #undef with comments.  This is necessary, for
55415 # example, in the case of _POSIX_SOURCE, which is predefined and required
55416 # on some systems where configure will not decide to define it.
55417 # (The regexp can be short, since the line contains either #define or #undef.)
55418 echo 's/ $//
55419 s,^[     #]*u.*,/* & */,' >>conftest.defines
55420
55421 # Break up conftest.defines:
55422 ac_max_sed_lines=50
55423
55424 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
55425 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
55426 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
55427 # et cetera.
55428 ac_in='$ac_file_inputs'
55429 ac_out='"$tmp/out1"'
55430 ac_nxt='"$tmp/out2"'
55431
55432 while :
55433 do
55434   # Write a here document:
55435     cat >>$CONFIG_STATUS <<_ACEOF
55436     # First, check the format of the line:
55437     cat >"\$tmp/defines.sed" <<\\CEOF
55438 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
55439 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
55440 b
55441 :def
55442 _ACEOF
55443   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
55444   echo 'CEOF
55445     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
55446   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
55447   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
55448   grep . conftest.tail >/dev/null || break
55449   rm -f conftest.defines
55450   mv conftest.tail conftest.defines
55451 done
55452 rm -f conftest.defines conftest.tail
55453
55454 echo "ac_result=$ac_in" >>$CONFIG_STATUS
55455 cat >>$CONFIG_STATUS <<\_ACEOF
55456   if test x"$ac_file" != x-; then
55457     $as_echo "/* $configure_input  */" >"$tmp/config.h"
55458     cat "$ac_result" >>"$tmp/config.h"
55459     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
55460       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
55461 $as_echo "$as_me: $ac_file is unchanged" >&6;}
55462     else
55463       rm -f $ac_file
55464       mv "$tmp/config.h" $ac_file
55465     fi
55466   else
55467     $as_echo "/* $configure_input  */"
55468     cat "$ac_result"
55469   fi
55470   rm -f "$tmp/out12"
55471 # Compute $ac_file's index in $config_headers.
55472 _am_stamp_count=1
55473 for _am_header in $config_headers :; do
55474   case $_am_header in
55475     $ac_file | $ac_file:* )
55476       break ;;
55477     * )
55478       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
55479   esac
55480 done
55481 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
55482 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55483          X$ac_file : 'X\(//\)[^/]' \| \
55484          X$ac_file : 'X\(//\)$' \| \
55485          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
55486 $as_echo X$ac_file |
55487     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55488             s//\1/
55489             q
55490           }
55491           /^X\(\/\/\)[^/].*/{
55492             s//\1/
55493             q
55494           }
55495           /^X\(\/\/\)$/{
55496             s//\1/
55497             q
55498           }
55499           /^X\(\/\).*/{
55500             s//\1/
55501             q
55502           }
55503           s/.*/./; q'`/stamp-h$_am_stamp_count
55504  ;;
55505
55506   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
55507 $as_echo "$as_me: executing $ac_file commands" >&6;}
55508  ;;
55509   esac
55510
55511
55512   case $ac_file$ac_mode in
55513     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
55514   # Strip MF so we end up with the name of the file.
55515   mf=`echo "$mf" | sed -e 's/:.*$//'`
55516   # Check whether this is an Automake generated Makefile or not.
55517   # We used to match only the files named `Makefile.in', but
55518   # some people rename them; so instead we look at the file content.
55519   # Grep'ing the first line is not enough: some people post-process
55520   # each Makefile.in and add a new line on top of each file to say so.
55521   # Grep'ing the whole file is not good either: AIX grep has a line
55522   # limit of 2048, but all sed's we know have understand at least 4000.
55523   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
55524     dirpart=`$as_dirname -- "$mf" ||
55525 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55526          X"$mf" : 'X\(//\)[^/]' \| \
55527          X"$mf" : 'X\(//\)$' \| \
55528          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
55529 $as_echo X"$mf" |
55530     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55531             s//\1/
55532             q
55533           }
55534           /^X\(\/\/\)[^/].*/{
55535             s//\1/
55536             q
55537           }
55538           /^X\(\/\/\)$/{
55539             s//\1/
55540             q
55541           }
55542           /^X\(\/\).*/{
55543             s//\1/
55544             q
55545           }
55546           s/.*/./; q'`
55547   else
55548     continue
55549   fi
55550   # Extract the definition of DEPDIR, am__include, and am__quote
55551   # from the Makefile without running `make'.
55552   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
55553   test -z "$DEPDIR" && continue
55554   am__include=`sed -n 's/^am__include = //p' < "$mf"`
55555   test -z "am__include" && continue
55556   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
55557   # When using ansi2knr, U may be empty or an underscore; expand it
55558   U=`sed -n 's/^U = //p' < "$mf"`
55559   # Find all dependency output files, they are included files with
55560   # $(DEPDIR) in their names.  We invoke sed twice because it is the
55561   # simplest approach to changing $(DEPDIR) to its actual value in the
55562   # expansion.
55563   for file in `sed -n "
55564     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
55565        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
55566     # Make sure the directory exists.
55567     test -f "$dirpart/$file" && continue
55568     fdir=`$as_dirname -- "$file" ||
55569 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55570          X"$file" : 'X\(//\)[^/]' \| \
55571          X"$file" : 'X\(//\)$' \| \
55572          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
55573 $as_echo X"$file" |
55574     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55575             s//\1/
55576             q
55577           }
55578           /^X\(\/\/\)[^/].*/{
55579             s//\1/
55580             q
55581           }
55582           /^X\(\/\/\)$/{
55583             s//\1/
55584             q
55585           }
55586           /^X\(\/\).*/{
55587             s//\1/
55588             q
55589           }
55590           s/.*/./; q'`
55591     { as_dir=$dirpart/$fdir
55592   case $as_dir in #(
55593   -*) as_dir=./$as_dir;;
55594   esac
55595   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
55596     as_dirs=
55597     while :; do
55598       case $as_dir in #(
55599       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
55600       *) as_qdir=$as_dir;;
55601       esac
55602       as_dirs="'$as_qdir' $as_dirs"
55603       as_dir=`$as_dirname -- "$as_dir" ||
55604 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55605          X"$as_dir" : 'X\(//\)[^/]' \| \
55606          X"$as_dir" : 'X\(//\)$' \| \
55607          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
55608 $as_echo X"$as_dir" |
55609     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55610             s//\1/
55611             q
55612           }
55613           /^X\(\/\/\)[^/].*/{
55614             s//\1/
55615             q
55616           }
55617           /^X\(\/\/\)$/{
55618             s//\1/
55619             q
55620           }
55621           /^X\(\/\).*/{
55622             s//\1/
55623             q
55624           }
55625           s/.*/./; q'`
55626       test -d "$as_dir" && break
55627     done
55628     test -z "$as_dirs" || eval "mkdir $as_dirs"
55629   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
55630 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
55631    { (exit 1); exit 1; }; }; }
55632     # echo "creating $dirpart/$file"
55633     echo '# dummy' > "$dirpart/$file"
55634   done
55635 done
55636  ;;
55637     "po-directories":C)
55638     for ac_file in $CONFIG_FILES; do
55639       # Support "outfile[:infile[:infile...]]"
55640       case "$ac_file" in
55641         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
55642       esac
55643       # PO directories have a Makefile.in generated from Makefile.in.in.
55644       case "$ac_file" in */Makefile.in)
55645         # Adjust a relative srcdir.
55646         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
55647         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
55648         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
55649         # In autoconf-2.13 it is called $ac_given_srcdir.
55650         # In autoconf-2.50 it is called $srcdir.
55651         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
55652         case "$ac_given_srcdir" in
55653           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
55654           /*) top_srcdir="$ac_given_srcdir" ;;
55655           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
55656         esac
55657         # Treat a directory as a PO directory if and only if it has a
55658         # POTFILES.in file. This allows packages to have multiple PO
55659         # directories under different names or in different locations.
55660         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
55661           rm -f "$ac_dir/POTFILES"
55662           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
55663           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
55664           POMAKEFILEDEPS="POTFILES.in"
55665           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
55666           # on $ac_dir but don't depend on user-specified configuration
55667           # parameters.
55668           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
55669             # The LINGUAS file contains the set of available languages.
55670             if test -n "$OBSOLETE_ALL_LINGUAS"; then
55671               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
55672             fi
55673             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
55674             # Hide the ALL_LINGUAS assigment from automake < 1.5.
55675             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
55676             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
55677           else
55678             # The set of available languages was given in configure.in.
55679             # Hide the ALL_LINGUAS assigment from automake < 1.5.
55680             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
55681           fi
55682           # Compute POFILES
55683           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
55684           # Compute UPDATEPOFILES
55685           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
55686           # Compute DUMMYPOFILES
55687           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
55688           # Compute GMOFILES
55689           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
55690           case "$ac_given_srcdir" in
55691             .) srcdirpre= ;;
55692             *) srcdirpre='$(srcdir)/' ;;
55693           esac
55694           POFILES=
55695           UPDATEPOFILES=
55696           DUMMYPOFILES=
55697           GMOFILES=
55698           for lang in $ALL_LINGUAS; do
55699             POFILES="$POFILES $srcdirpre$lang.po"
55700             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
55701             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
55702             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
55703           done
55704           # CATALOGS depends on both $ac_dir and the user's LINGUAS
55705           # environment variable.
55706           INST_LINGUAS=
55707           if test -n "$ALL_LINGUAS"; then
55708             for presentlang in $ALL_LINGUAS; do
55709               useit=no
55710               if test "%UNSET%" != "$LINGUAS"; then
55711                 desiredlanguages="$LINGUAS"
55712               else
55713                 desiredlanguages="$ALL_LINGUAS"
55714               fi
55715               for desiredlang in $desiredlanguages; do
55716                 # Use the presentlang catalog if desiredlang is
55717                 #   a. equal to presentlang, or
55718                 #   b. a variant of presentlang (because in this case,
55719                 #      presentlang can be used as a fallback for messages
55720                 #      which are not translated in the desiredlang catalog).
55721                 case "$desiredlang" in
55722                   "$presentlang"*) useit=yes;;
55723                 esac
55724               done
55725               if test $useit = yes; then
55726                 INST_LINGUAS="$INST_LINGUAS $presentlang"
55727               fi
55728             done
55729           fi
55730           CATALOGS=
55731           if test -n "$INST_LINGUAS"; then
55732             for lang in $INST_LINGUAS; do
55733               CATALOGS="$CATALOGS $lang.gmo"
55734             done
55735           fi
55736           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
55737           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"
55738           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
55739             if test -f "$f"; then
55740               case "$f" in
55741                 *.orig | *.bak | *~) ;;
55742                 *) cat "$f" >> "$ac_dir/Makefile" ;;
55743               esac
55744             fi
55745           done
55746         fi
55747         ;;
55748       esac
55749     done ;;
55750
55751   esac
55752 done # for ac_tag
55753
55754
55755 { (exit 0); exit 0; }
55756 _ACEOF
55757 chmod +x $CONFIG_STATUS
55758 ac_clean_files=$ac_clean_files_save
55759
55760
55761 # configure is writing to config.log, and then calls config.status.
55762 # config.status does its own redirection, appending to config.log.
55763 # Unfortunately, on DOS this fails, as config.log is still kept open
55764 # by configure, so config.status won't be able to write to it; its
55765 # output is simply discarded.  So we exec the FD to /dev/null,
55766 # effectively closing config.log, so it can be properly (re)opened and
55767 # appended to by config.status.  When coming back to configure, we
55768 # need to make the FD available again.
55769 if test "$no_create" != yes; then
55770   ac_cs_success=:
55771   ac_config_status_args=
55772   test "$silent" = yes &&
55773     ac_config_status_args="$ac_config_status_args --quiet"
55774   exec 5>/dev/null
55775   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
55776   exec 5>>config.log
55777   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
55778   # would make configure fail if this is the last instruction.
55779   $ac_cs_success || { (exit 1); exit 1; }
55780 fi
55781