]> git.cworth.org Git - tar/blob - configure
change the way config.{sub,guess} are updated to work better with git
[tar] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for GNU tar 1.20.
4 #
5 # Report bugs to <bug-tar@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 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='GNU tar'
576 PACKAGE_TARNAME='tar'
577 PACKAGE_VERSION='1.20'
578 PACKAGE_STRING='GNU tar 1.20'
579 PACKAGE_BUGREPORT='bug-tar@gnu.org'
580
581 ac_unique_file="src/tar.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 #  include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 #  include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_header_list=
619 ac_func_list=
620 gt_needs=
621 ac_subst_vars='SHELL
622 PATH_SEPARATOR
623 PACKAGE_NAME
624 PACKAGE_TARNAME
625 PACKAGE_VERSION
626 PACKAGE_STRING
627 PACKAGE_BUGREPORT
628 exec_prefix
629 prefix
630 program_transform_name
631 bindir
632 sbindir
633 libexecdir
634 datarootdir
635 datadir
636 sysconfdir
637 sharedstatedir
638 localstatedir
639 includedir
640 oldincludedir
641 docdir
642 infodir
643 htmldir
644 dvidir
645 pdfdir
646 psdir
647 libdir
648 localedir
649 mandir
650 DEFS
651 ECHO_C
652 ECHO_N
653 ECHO_T
654 LIBS
655 build_alias
656 host_alias
657 target_alias
658 INSTALL_PROGRAM
659 INSTALL_SCRIPT
660 INSTALL_DATA
661 am__isrc
662 CYGPATH_W
663 PACKAGE
664 VERSION
665 ACLOCAL
666 AUTOCONF
667 AUTOMAKE
668 AUTOHEADER
669 MAKEINFO
670 install_sh
671 STRIP
672 INSTALL_STRIP_PROGRAM
673 mkdir_p
674 AWK
675 SET_MAKE
676 am__leading_dot
677 AMTAR
678 am__tar
679 am__untar
680 CC
681 CFLAGS
682 LDFLAGS
683 CPPFLAGS
684 ac_ct_CC
685 EXEEXT
686 OBJEXT
687 DEPDIR
688 am__include
689 am__quote
690 AMDEP_TRUE
691 AMDEP_FALSE
692 AMDEPBACKSLASH
693 CCDEPMODE
694 am__fastdepCC_TRUE
695 am__fastdepCC_FALSE
696 RANLIB
697 YACC
698 YFLAGS
699 CPP
700 GREP
701 EGREP
702 STDBOOL_H
703 HAVE__BOOL
704 GL_COND_LIBTOOL_TRUE
705 GL_COND_LIBTOOL_FALSE
706 EOVERFLOW
707 ALLOCA
708 ALLOCA_H
709 GETOPT_H
710 GNULIB_CHOWN
711 GNULIB_DUP2
712 GNULIB_ENVIRON
713 GNULIB_FCHDIR
714 GNULIB_FTRUNCATE
715 GNULIB_GETCWD
716 GNULIB_GETLOGIN_R
717 GNULIB_GETPAGESIZE
718 GNULIB_LCHOWN
719 GNULIB_LSEEK
720 GNULIB_READLINK
721 GNULIB_SLEEP
722 HAVE_DUP2
723 HAVE_FTRUNCATE
724 HAVE_GETPAGESIZE
725 HAVE_READLINK
726 HAVE_SLEEP
727 HAVE_DECL_ENVIRON
728 HAVE_DECL_GETLOGIN_R
729 HAVE_OS_H
730 HAVE_SYS_PARAM_H
731 REPLACE_CHOWN
732 REPLACE_FCHDIR
733 REPLACE_GETCWD
734 REPLACE_GETPAGESIZE
735 REPLACE_LCHOWN
736 REPLACE_LSEEK
737 LIB_CLOCK_GETTIME
738 build
739 build_cpu
740 build_vendor
741 build_os
742 host
743 host_cpu
744 host_vendor
745 host_os
746 INCLUDE_NEXT
747 NEXT_DIRENT_H
748 DIRENT_H
749 GNULIB_OPEN
750 REPLACE_OPEN
751 NEXT_FCNTL_H
752 FCNTL_H
753 NEXT_FLOAT_H
754 FLOAT_H
755 FNMATCH_H
756 GNULIB_FPRINTF_POSIX
757 GNULIB_PRINTF_POSIX
758 GNULIB_SNPRINTF
759 GNULIB_SPRINTF_POSIX
760 GNULIB_VFPRINTF_POSIX
761 GNULIB_VPRINTF_POSIX
762 GNULIB_VSNPRINTF
763 GNULIB_VSPRINTF_POSIX
764 GNULIB_VASPRINTF
765 GNULIB_FOPEN
766 GNULIB_FREOPEN
767 GNULIB_FSEEK
768 GNULIB_FSEEKO
769 GNULIB_FTELL
770 GNULIB_FTELLO
771 GNULIB_FFLUSH
772 GNULIB_GETDELIM
773 GNULIB_GETLINE
774 REPLACE_FPRINTF
775 REPLACE_VFPRINTF
776 REPLACE_PRINTF
777 REPLACE_VPRINTF
778 REPLACE_SNPRINTF
779 HAVE_DECL_SNPRINTF
780 REPLACE_VSNPRINTF
781 HAVE_DECL_VSNPRINTF
782 REPLACE_SPRINTF
783 REPLACE_VSPRINTF
784 HAVE_VASPRINTF
785 REPLACE_VASPRINTF
786 REPLACE_FOPEN
787 REPLACE_FREOPEN
788 HAVE_FSEEKO
789 REPLACE_FSEEKO
790 REPLACE_FSEEK
791 HAVE_FTELLO
792 REPLACE_FTELLO
793 REPLACE_FTELL
794 REPLACE_FFLUSH
795 HAVE_DECL_GETDELIM
796 HAVE_DECL_GETLINE
797 REPLACE_GETLINE
798 LIBINTL
799 LTLIBINTL
800 NEXT_SYS_TIME_H
801 HAVE_SYS_TIME_H
802 HAVE_STRUCT_TIMEVAL
803 REPLACE_GETTIMEOFDAY
804 SYS_TIME_H
805 HAVE_LONG_LONG_INT
806 HAVE_UNSIGNED_LONG_LONG_INT
807 HAVE_INTTYPES_H
808 HAVE_SYS_TYPES_H
809 NEXT_STDINT_H
810 HAVE_STDINT_H
811 HAVE_SYS_INTTYPES_H
812 HAVE_SYS_BITYPES_H
813 BITSIZEOF_PTRDIFF_T
814 BITSIZEOF_SIG_ATOMIC_T
815 BITSIZEOF_SIZE_T
816 BITSIZEOF_WCHAR_T
817 BITSIZEOF_WINT_T
818 HAVE_SIGNED_SIG_ATOMIC_T
819 HAVE_SIGNED_WCHAR_T
820 HAVE_SIGNED_WINT_T
821 PTRDIFF_T_SUFFIX
822 SIG_ATOMIC_T_SUFFIX
823 SIZE_T_SUFFIX
824 WCHAR_T_SUFFIX
825 WINT_T_SUFFIX
826 STDINT_H
827 PRI_MACROS_BROKEN
828 GNULIB_IMAXABS
829 GNULIB_IMAXDIV
830 GNULIB_STRTOIMAX
831 GNULIB_STRTOUMAX
832 HAVE_DECL_IMAXABS
833 HAVE_DECL_IMAXDIV
834 HAVE_DECL_STRTOIMAX
835 HAVE_DECL_STRTOUMAX
836 NEXT_INTTYPES_H
837 PRIPTR_PREFIX
838 INT32_MAX_LT_INTMAX_MAX
839 INT64_MAX_EQ_LONG_MAX
840 UINT32_MAX_LT_UINTMAX_MAX
841 UINT64_MAX_EQ_ULONG_MAX
842 INTTYPES_H
843 GLIBC21
844 LOCALCHARSET_TESTS_ENVIRONMENT
845 HAVE_MALLOC_POSIX
846 GNULIB_MALLOC_POSIX
847 GNULIB_REALLOC_POSIX
848 GNULIB_CALLOC_POSIX
849 GNULIB_GETSUBOPT
850 GNULIB_MKDTEMP
851 GNULIB_MKSTEMP
852 GNULIB_PUTENV
853 GNULIB_SETENV
854 GNULIB_STRTOD
855 GNULIB_UNSETENV
856 HAVE_CALLOC_POSIX
857 HAVE_GETSUBOPT
858 HAVE_MKDTEMP
859 HAVE_REALLOC_POSIX
860 HAVE_SETENV
861 HAVE_STRTOD
862 HAVE_UNSETENV
863 REPLACE_MKSTEMP
864 REPLACE_PUTENV
865 REPLACE_STRTOD
866 VOID_UNSETENV
867 GNULIB_MEMMEM
868 GNULIB_MEMPCPY
869 GNULIB_MEMRCHR
870 GNULIB_STPCPY
871 GNULIB_STPNCPY
872 GNULIB_STRCHRNUL
873 GNULIB_STRDUP
874 GNULIB_STRNDUP
875 GNULIB_STRNLEN
876 GNULIB_STRPBRK
877 GNULIB_STRSEP
878 GNULIB_STRSTR
879 GNULIB_STRCASESTR
880 GNULIB_STRTOK_R
881 GNULIB_MBSLEN
882 GNULIB_MBSNLEN
883 GNULIB_MBSCHR
884 GNULIB_MBSRCHR
885 GNULIB_MBSSTR
886 GNULIB_MBSCASECMP
887 GNULIB_MBSNCASECMP
888 GNULIB_MBSPCASECMP
889 GNULIB_MBSCASESTR
890 GNULIB_MBSCSPN
891 GNULIB_MBSPBRK
892 GNULIB_MBSSPN
893 GNULIB_MBSSEP
894 GNULIB_MBSTOK_R
895 GNULIB_STRERROR
896 GNULIB_STRSIGNAL
897 HAVE_DECL_MEMMEM
898 HAVE_MEMPCPY
899 HAVE_DECL_MEMRCHR
900 HAVE_STPCPY
901 HAVE_STPNCPY
902 HAVE_STRCHRNUL
903 HAVE_DECL_STRDUP
904 HAVE_STRNDUP
905 HAVE_DECL_STRNDUP
906 HAVE_DECL_STRNLEN
907 HAVE_STRPBRK
908 HAVE_STRSEP
909 HAVE_STRCASESTR
910 HAVE_DECL_STRTOK_R
911 HAVE_DECL_STRERROR
912 HAVE_DECL_STRSIGNAL
913 REPLACE_STRERROR
914 REPLACE_STRSIGNAL
915 REPLACE_MEMMEM
916 REPLACE_STRCASESTR
917 REPLACE_STRSTR
918 STDARG_H
919 NEXT_STDARG_H
920 NEXT_STDIO_H
921 NEXT_STDLIB_H
922 HAVE_STRCASECMP
923 HAVE_DECL_STRNCASECMP
924 NEXT_STRING_H
925 NEXT_STRINGS_H
926 HAVE_LSTAT
927 HAVE_DECL_MKDIR
928 HAVE_IO_H
929 NEXT_SYS_STAT_H
930 SYS_STAT_H
931 NEXT_SYSEXITS_H
932 HAVE_SYSEXITS_H
933 SYSEXITS_H
934 REPLACE_LOCALTIME_R
935 REPLACE_NANOSLEEP
936 REPLACE_STRPTIME
937 REPLACE_TIMEGM
938 NEXT_TIME_H
939 TIME_H_DEFINES_STRUCT_TIMESPEC
940 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
941 NEXT_UNISTD_H
942 HAVE_UNISTD_H
943 GNULIB_WCWIDTH
944 HAVE_DECL_WCWIDTH
945 REPLACE_WCWIDTH
946 WCHAR_H
947 HAVE_WCHAR_H
948 NEXT_WCHAR_H
949 HAVE_ISWCNTRL
950 HAVE_WINT_T
951 NEXT_WCTYPE_H
952 HAVE_WCTYPE_H
953 WCTYPE_H
954 LIBTAR_LIBDEPS
955 LIBTAR_LTLIBDEPS
956 LIB_SETSOCKOPT
957 PU_RMT_PROG
958 DEFAULT_RMT_DIR
959 DEFAULT_RMT_COMMAND
960 LIBOBJS
961 DEFAULT_ARCHIVE_FORMAT
962 DEFAULT_ARCHIVE
963 DEFAULT_BLOCKING
964 DEFAULT_QUOTING_STYLE
965 LIBICONV
966 LTLIBICONV
967 USE_NLS
968 GETTEXT_MACRO_VERSION
969 MSGFMT
970 GMSGFMT
971 MSGFMT_015
972 GMSGFMT_015
973 XGETTEXT
974 XGETTEXT_015
975 MSGMERGE
976 XGETTEXT_EXTRA_OPTIONS
977 INTL_MACOSX_LIBS
978 INTLLIBS
979 POSUB
980 AUTOM4TE
981 BACKUP_LIBEXEC_SCRIPTS
982 BACKUP_SBIN_SCRIPTS
983 BACKUP_SED_COND
984 LTLIBOBJS
985 gl_LIBOBJS
986 gl_LTLIBOBJS
987 gltests_LIBOBJS
988 gltests_LTLIBOBJS'
989 ac_subst_files=''
990       ac_precious_vars='build_alias
991 host_alias
992 target_alias
993 CC
994 CFLAGS
995 LDFLAGS
996 LIBS
997 CPPFLAGS
998 YACC
999 YFLAGS
1000 CPP
1001 DEFAULT_RMT_DIR
1002 DEFAULT_ARCHIVE_FORMAT
1003 DEFAULT_ARCHIVE
1004 DEFAULT_BLOCKING
1005 DEFAULT_QUOTING_STYLE'
1006
1007
1008 # Initialize some variables set by options.
1009 ac_init_help=
1010 ac_init_version=false
1011 # The variables have the same names as the options, with
1012 # dashes changed to underlines.
1013 cache_file=/dev/null
1014 exec_prefix=NONE
1015 no_create=
1016 no_recursion=
1017 prefix=NONE
1018 program_prefix=NONE
1019 program_suffix=NONE
1020 program_transform_name=s,x,x,
1021 silent=
1022 site=
1023 srcdir=
1024 verbose=
1025 x_includes=NONE
1026 x_libraries=NONE
1027
1028 # Installation directory options.
1029 # These are left unexpanded so users can "make install exec_prefix=/foo"
1030 # and all the variables that are supposed to be based on exec_prefix
1031 # by default will actually change.
1032 # Use braces instead of parens because sh, perl, etc. also accept them.
1033 # (The list follows the same order as the GNU Coding Standards.)
1034 bindir='${exec_prefix}/bin'
1035 sbindir='${exec_prefix}/sbin'
1036 libexecdir='${exec_prefix}/libexec'
1037 datarootdir='${prefix}/share'
1038 datadir='${datarootdir}'
1039 sysconfdir='${prefix}/etc'
1040 sharedstatedir='${prefix}/com'
1041 localstatedir='${prefix}/var'
1042 includedir='${prefix}/include'
1043 oldincludedir='/usr/include'
1044 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1045 infodir='${datarootdir}/info'
1046 htmldir='${docdir}'
1047 dvidir='${docdir}'
1048 pdfdir='${docdir}'
1049 psdir='${docdir}'
1050 libdir='${exec_prefix}/lib'
1051 localedir='${datarootdir}/locale'
1052 mandir='${datarootdir}/man'
1053
1054 ac_prev=
1055 ac_dashdash=
1056 for ac_option
1057 do
1058   # If the previous option needs an argument, assign it.
1059   if test -n "$ac_prev"; then
1060     eval $ac_prev=\$ac_option
1061     ac_prev=
1062     continue
1063   fi
1064
1065   case $ac_option in
1066   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1067   *)    ac_optarg=yes ;;
1068   esac
1069
1070   # Accept the important Cygnus configure options, so we can diagnose typos.
1071
1072   case $ac_dashdash$ac_option in
1073   --)
1074     ac_dashdash=yes ;;
1075
1076   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1077     ac_prev=bindir ;;
1078   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1079     bindir=$ac_optarg ;;
1080
1081   -build | --build | --buil | --bui | --bu)
1082     ac_prev=build_alias ;;
1083   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1084     build_alias=$ac_optarg ;;
1085
1086   -cache-file | --cache-file | --cache-fil | --cache-fi \
1087   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1088     ac_prev=cache_file ;;
1089   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1090   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1091     cache_file=$ac_optarg ;;
1092
1093   --config-cache | -C)
1094     cache_file=config.cache ;;
1095
1096   -datadir | --datadir | --datadi | --datad)
1097     ac_prev=datadir ;;
1098   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1099     datadir=$ac_optarg ;;
1100
1101   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1102   | --dataroo | --dataro | --datar)
1103     ac_prev=datarootdir ;;
1104   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1105   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1106     datarootdir=$ac_optarg ;;
1107
1108   -disable-* | --disable-*)
1109     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1110     # Reject names that are not valid shell variable names.
1111     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1112       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1113    { (exit 1); exit 1; }; }
1114     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1115     eval enable_$ac_feature=no ;;
1116
1117   -docdir | --docdir | --docdi | --doc | --do)
1118     ac_prev=docdir ;;
1119   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1120     docdir=$ac_optarg ;;
1121
1122   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1123     ac_prev=dvidir ;;
1124   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1125     dvidir=$ac_optarg ;;
1126
1127   -enable-* | --enable-*)
1128     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1129     # Reject names that are not valid shell variable names.
1130     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1131       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1132    { (exit 1); exit 1; }; }
1133     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1134     eval enable_$ac_feature=\$ac_optarg ;;
1135
1136   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1137   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1138   | --exec | --exe | --ex)
1139     ac_prev=exec_prefix ;;
1140   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1141   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1142   | --exec=* | --exe=* | --ex=*)
1143     exec_prefix=$ac_optarg ;;
1144
1145   -gas | --gas | --ga | --g)
1146     # Obsolete; use --with-gas.
1147     with_gas=yes ;;
1148
1149   -help | --help | --hel | --he | -h)
1150     ac_init_help=long ;;
1151   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1152     ac_init_help=recursive ;;
1153   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1154     ac_init_help=short ;;
1155
1156   -host | --host | --hos | --ho)
1157     ac_prev=host_alias ;;
1158   -host=* | --host=* | --hos=* | --ho=*)
1159     host_alias=$ac_optarg ;;
1160
1161   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1162     ac_prev=htmldir ;;
1163   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1164   | --ht=*)
1165     htmldir=$ac_optarg ;;
1166
1167   -includedir | --includedir | --includedi | --included | --include \
1168   | --includ | --inclu | --incl | --inc)
1169     ac_prev=includedir ;;
1170   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1171   | --includ=* | --inclu=* | --incl=* | --inc=*)
1172     includedir=$ac_optarg ;;
1173
1174   -infodir | --infodir | --infodi | --infod | --info | --inf)
1175     ac_prev=infodir ;;
1176   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1177     infodir=$ac_optarg ;;
1178
1179   -libdir | --libdir | --libdi | --libd)
1180     ac_prev=libdir ;;
1181   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1182     libdir=$ac_optarg ;;
1183
1184   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1185   | --libexe | --libex | --libe)
1186     ac_prev=libexecdir ;;
1187   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1188   | --libexe=* | --libex=* | --libe=*)
1189     libexecdir=$ac_optarg ;;
1190
1191   -localedir | --localedir | --localedi | --localed | --locale)
1192     ac_prev=localedir ;;
1193   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1194     localedir=$ac_optarg ;;
1195
1196   -localstatedir | --localstatedir | --localstatedi | --localstated \
1197   | --localstate | --localstat | --localsta | --localst | --locals)
1198     ac_prev=localstatedir ;;
1199   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1200   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1201     localstatedir=$ac_optarg ;;
1202
1203   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1204     ac_prev=mandir ;;
1205   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1206     mandir=$ac_optarg ;;
1207
1208   -nfp | --nfp | --nf)
1209     # Obsolete; use --without-fp.
1210     with_fp=no ;;
1211
1212   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1213   | --no-cr | --no-c | -n)
1214     no_create=yes ;;
1215
1216   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1217   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1218     no_recursion=yes ;;
1219
1220   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1221   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1222   | --oldin | --oldi | --old | --ol | --o)
1223     ac_prev=oldincludedir ;;
1224   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1225   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1226   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1227     oldincludedir=$ac_optarg ;;
1228
1229   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1230     ac_prev=prefix ;;
1231   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1232     prefix=$ac_optarg ;;
1233
1234   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1235   | --program-pre | --program-pr | --program-p)
1236     ac_prev=program_prefix ;;
1237   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1238   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1239     program_prefix=$ac_optarg ;;
1240
1241   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1242   | --program-suf | --program-su | --program-s)
1243     ac_prev=program_suffix ;;
1244   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1245   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1246     program_suffix=$ac_optarg ;;
1247
1248   -program-transform-name | --program-transform-name \
1249   | --program-transform-nam | --program-transform-na \
1250   | --program-transform-n | --program-transform- \
1251   | --program-transform | --program-transfor \
1252   | --program-transfo | --program-transf \
1253   | --program-trans | --program-tran \
1254   | --progr-tra | --program-tr | --program-t)
1255     ac_prev=program_transform_name ;;
1256   -program-transform-name=* | --program-transform-name=* \
1257   | --program-transform-nam=* | --program-transform-na=* \
1258   | --program-transform-n=* | --program-transform-=* \
1259   | --program-transform=* | --program-transfor=* \
1260   | --program-transfo=* | --program-transf=* \
1261   | --program-trans=* | --program-tran=* \
1262   | --progr-tra=* | --program-tr=* | --program-t=*)
1263     program_transform_name=$ac_optarg ;;
1264
1265   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1266     ac_prev=pdfdir ;;
1267   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1268     pdfdir=$ac_optarg ;;
1269
1270   -psdir | --psdir | --psdi | --psd | --ps)
1271     ac_prev=psdir ;;
1272   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1273     psdir=$ac_optarg ;;
1274
1275   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1276   | -silent | --silent | --silen | --sile | --sil)
1277     silent=yes ;;
1278
1279   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1280     ac_prev=sbindir ;;
1281   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1282   | --sbi=* | --sb=*)
1283     sbindir=$ac_optarg ;;
1284
1285   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1286   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1287   | --sharedst | --shareds | --shared | --share | --shar \
1288   | --sha | --sh)
1289     ac_prev=sharedstatedir ;;
1290   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1291   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1292   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1293   | --sha=* | --sh=*)
1294     sharedstatedir=$ac_optarg ;;
1295
1296   -site | --site | --sit)
1297     ac_prev=site ;;
1298   -site=* | --site=* | --sit=*)
1299     site=$ac_optarg ;;
1300
1301   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1302     ac_prev=srcdir ;;
1303   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1304     srcdir=$ac_optarg ;;
1305
1306   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1307   | --syscon | --sysco | --sysc | --sys | --sy)
1308     ac_prev=sysconfdir ;;
1309   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1310   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1311     sysconfdir=$ac_optarg ;;
1312
1313   -target | --target | --targe | --targ | --tar | --ta | --t)
1314     ac_prev=target_alias ;;
1315   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1316     target_alias=$ac_optarg ;;
1317
1318   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1319     verbose=yes ;;
1320
1321   -version | --version | --versio | --versi | --vers | -V)
1322     ac_init_version=: ;;
1323
1324   -with-* | --with-*)
1325     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1326     # Reject names that are not valid shell variable names.
1327     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1328       { echo "$as_me: error: invalid package name: $ac_package" >&2
1329    { (exit 1); exit 1; }; }
1330     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1331     eval with_$ac_package=\$ac_optarg ;;
1332
1333   -without-* | --without-*)
1334     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1335     # Reject names that are not valid shell variable names.
1336     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337       { echo "$as_me: error: invalid package name: $ac_package" >&2
1338    { (exit 1); exit 1; }; }
1339     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1340     eval with_$ac_package=no ;;
1341
1342   --x)
1343     # Obsolete; use --with-x.
1344     with_x=yes ;;
1345
1346   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1347   | --x-incl | --x-inc | --x-in | --x-i)
1348     ac_prev=x_includes ;;
1349   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1350   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1351     x_includes=$ac_optarg ;;
1352
1353   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1354   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1355     ac_prev=x_libraries ;;
1356   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1357   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1358     x_libraries=$ac_optarg ;;
1359
1360   -*) { echo "$as_me: error: unrecognized option: $ac_option
1361 Try \`$0 --help' for more information." >&2
1362    { (exit 1); exit 1; }; }
1363     ;;
1364
1365   *=*)
1366     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1367     # Reject names that are not valid shell variable names.
1368     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1369       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1370    { (exit 1); exit 1; }; }
1371     eval $ac_envvar=\$ac_optarg
1372     export $ac_envvar ;;
1373
1374   *)
1375     # FIXME: should be removed in autoconf 3.0.
1376     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1377     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1378       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1379     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1380     ;;
1381
1382   esac
1383 done
1384
1385 if test -n "$ac_prev"; then
1386   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1387   { echo "$as_me: error: missing argument to $ac_option" >&2
1388    { (exit 1); exit 1; }; }
1389 fi
1390
1391 # Be sure to have absolute directory names.
1392 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1393                 datadir sysconfdir sharedstatedir localstatedir includedir \
1394                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1395                 libdir localedir mandir
1396 do
1397   eval ac_val=\$$ac_var
1398   case $ac_val in
1399     [\\/$]* | ?:[\\/]* )  continue;;
1400     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1401   esac
1402   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1403    { (exit 1); exit 1; }; }
1404 done
1405
1406 # There might be people who depend on the old broken behavior: `$host'
1407 # used to hold the argument of --host etc.
1408 # FIXME: To remove some day.
1409 build=$build_alias
1410 host=$host_alias
1411 target=$target_alias
1412
1413 # FIXME: To remove some day.
1414 if test "x$host_alias" != x; then
1415   if test "x$build_alias" = x; then
1416     cross_compiling=maybe
1417     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1418     If a cross compiler is detected then cross compile mode will be used." >&2
1419   elif test "x$build_alias" != "x$host_alias"; then
1420     cross_compiling=yes
1421   fi
1422 fi
1423
1424 ac_tool_prefix=
1425 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1426
1427 test "$silent" = yes && exec 6>/dev/null
1428
1429
1430 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1431 ac_ls_di=`ls -di .` &&
1432 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1433   { echo "$as_me: error: Working directory cannot be determined" >&2
1434    { (exit 1); exit 1; }; }
1435 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1436   { echo "$as_me: error: pwd does not report name of working directory" >&2
1437    { (exit 1); exit 1; }; }
1438
1439
1440 # Find the source files, if location was not specified.
1441 if test -z "$srcdir"; then
1442   ac_srcdir_defaulted=yes
1443   # Try the directory containing this script, then the parent directory.
1444   ac_confdir=`$as_dirname -- "$0" ||
1445 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1446          X"$0" : 'X\(//\)[^/]' \| \
1447          X"$0" : 'X\(//\)$' \| \
1448          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1449 echo X"$0" |
1450     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1451             s//\1/
1452             q
1453           }
1454           /^X\(\/\/\)[^/].*/{
1455             s//\1/
1456             q
1457           }
1458           /^X\(\/\/\)$/{
1459             s//\1/
1460             q
1461           }
1462           /^X\(\/\).*/{
1463             s//\1/
1464             q
1465           }
1466           s/.*/./; q'`
1467   srcdir=$ac_confdir
1468   if test ! -r "$srcdir/$ac_unique_file"; then
1469     srcdir=..
1470   fi
1471 else
1472   ac_srcdir_defaulted=no
1473 fi
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1475   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1476   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1477    { (exit 1); exit 1; }; }
1478 fi
1479 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1480 ac_abs_confdir=`(
1481         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1482    { (exit 1); exit 1; }; }
1483         pwd)`
1484 # When building in place, set srcdir=.
1485 if test "$ac_abs_confdir" = "$ac_pwd"; then
1486   srcdir=.
1487 fi
1488 # Remove unnecessary trailing slashes from srcdir.
1489 # Double slashes in file names in object file debugging info
1490 # mess up M-x gdb in Emacs.
1491 case $srcdir in
1492 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1493 esac
1494 for ac_var in $ac_precious_vars; do
1495   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1496   eval ac_env_${ac_var}_value=\$${ac_var}
1497   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1498   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1499 done
1500
1501 #
1502 # Report the --help message.
1503 #
1504 if test "$ac_init_help" = "long"; then
1505   # Omit some internal or obsolete options to make the list less imposing.
1506   # This message is too long to be a string in the A/UX 3.1 sh.
1507   cat <<_ACEOF
1508 \`configure' configures GNU tar 1.20 to adapt to many kinds of systems.
1509
1510 Usage: $0 [OPTION]... [VAR=VALUE]...
1511
1512 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1513 VAR=VALUE.  See below for descriptions of some of the useful variables.
1514
1515 Defaults for the options are specified in brackets.
1516
1517 Configuration:
1518   -h, --help              display this help and exit
1519       --help=short        display options specific to this package
1520       --help=recursive    display the short help of all the included packages
1521   -V, --version           display version information and exit
1522   -q, --quiet, --silent   do not print \`checking...' messages
1523       --cache-file=FILE   cache test results in FILE [disabled]
1524   -C, --config-cache      alias for \`--cache-file=config.cache'
1525   -n, --no-create         do not create output files
1526       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1527
1528 Installation directories:
1529   --prefix=PREFIX         install architecture-independent files in PREFIX
1530                           [$ac_default_prefix]
1531   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1532                           [PREFIX]
1533
1534 By default, \`make install' will install all the files in
1535 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1536 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1537 for instance \`--prefix=\$HOME'.
1538
1539 For better control, use the options below.
1540
1541 Fine tuning of the installation directories:
1542   --bindir=DIR           user executables [EPREFIX/bin]
1543   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1544   --libexecdir=DIR       program executables [EPREFIX/libexec]
1545   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1546   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1547   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1548   --libdir=DIR           object code libraries [EPREFIX/lib]
1549   --includedir=DIR       C header files [PREFIX/include]
1550   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1551   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1552   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1553   --infodir=DIR          info documentation [DATAROOTDIR/info]
1554   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1555   --mandir=DIR           man documentation [DATAROOTDIR/man]
1556   --docdir=DIR           documentation root [DATAROOTDIR/doc/tar]
1557   --htmldir=DIR          html documentation [DOCDIR]
1558   --dvidir=DIR           dvi documentation [DOCDIR]
1559   --pdfdir=DIR           pdf documentation [DOCDIR]
1560   --psdir=DIR            ps documentation [DOCDIR]
1561 _ACEOF
1562
1563   cat <<\_ACEOF
1564
1565 Program names:
1566   --program-prefix=PREFIX            prepend PREFIX to installed program names
1567   --program-suffix=SUFFIX            append SUFFIX to installed program names
1568   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1569
1570 System types:
1571   --build=BUILD     configure for building on BUILD [guessed]
1572   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1573 _ACEOF
1574 fi
1575
1576 if test -n "$ac_init_help"; then
1577   case $ac_init_help in
1578      short | recursive ) echo "Configuration of GNU tar 1.20:";;
1579    esac
1580   cat <<\_ACEOF
1581
1582 Optional Features:
1583   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1584   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1585   --disable-dependency-tracking  speeds up one-time build
1586   --enable-dependency-tracking   do not reject slow dependency extractors
1587   --disable-largefile     omit support for large files
1588   --disable-rpath         do not hardcode runtime library paths
1589   --disable-nls           do not use Native Language Support
1590   --enable-backup-scripts Create and install backup and restore scripts
1591
1592 Optional Packages:
1593   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1594   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1595   --without-included-regex
1596                           don't compile regex; this is the default on 32-bit
1597                           systems with recent-enough versions of the GNU C
1598                           Library (use with caution on other systems). On
1599                           systems with 64-bit ptrdiff_t and 32-bit int,
1600                           --with-included-regex is the default, in case regex
1601                           functions operate on very long strings (>2GB)
1602   --with-rmt=FILE         Use FILE as the default `rmt' program. Do not build
1603                           included copy of `rmt'.
1604   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1605   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1606   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1607   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1608   --without-libintl-prefix     don't search for libintl in includedir and libdir
1609
1610 Some influential environment variables:
1611   CC          C compiler command
1612   CFLAGS      C compiler flags
1613   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1614               nonstandard directory <lib dir>
1615   LIBS        libraries to pass to the linker, e.g. -l<library>
1616   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1617               you have headers in a nonstandard directory <include dir>
1618   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1619               the first program found out of: `bison -y', `byacc', `yacc'.
1620   YFLAGS      The list of arguments that will be passed by default to $YACC.
1621               This script will default YFLAGS to the empty string to avoid a
1622               default value of `-d' given by some make applications.
1623   CPP         C preprocessor
1624   DEFAULT_RMT_DIR
1625               Define full file name of the directory where to install `rmt'.
1626               (default: $(libexecdir))
1627   DEFAULT_ARCHIVE_FORMAT
1628               Set the default archive format. Allowed values are: V7, OLDGNU,
1629               USTAR, POSIX, GNU. Default is GNU
1630   DEFAULT_ARCHIVE
1631               Set the name of the default archive (default: -)
1632   DEFAULT_BLOCKING
1633               Define default blocking factor (default: 20)
1634   DEFAULT_QUOTING_STYLE
1635               Set the default quoting style. Allowed values are: literal,
1636               shell, shell-always, c, escape, locale, clocale . Default is
1637               "escape".
1638
1639 Use these variables to override the choices made by `configure' or to help
1640 it to find libraries and programs with nonstandard names/locations.
1641
1642 Report bugs to <bug-tar@gnu.org>.
1643 _ACEOF
1644 ac_status=$?
1645 fi
1646
1647 if test "$ac_init_help" = "recursive"; then
1648   # If there are subdirs, report their specific --help.
1649   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1650     test -d "$ac_dir" || continue
1651     ac_builddir=.
1652
1653 case "$ac_dir" in
1654 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 *)
1656   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1657   # A ".." for each directory in $ac_dir_suffix.
1658   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1659   case $ac_top_builddir_sub in
1660   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1662   esac ;;
1663 esac
1664 ac_abs_top_builddir=$ac_pwd
1665 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1666 # for backward compatibility:
1667 ac_top_builddir=$ac_top_build_prefix
1668
1669 case $srcdir in
1670   .)  # We are building in place.
1671     ac_srcdir=.
1672     ac_top_srcdir=$ac_top_builddir_sub
1673     ac_abs_top_srcdir=$ac_pwd ;;
1674   [\\/]* | ?:[\\/]* )  # Absolute name.
1675     ac_srcdir=$srcdir$ac_dir_suffix;
1676     ac_top_srcdir=$srcdir
1677     ac_abs_top_srcdir=$srcdir ;;
1678   *) # Relative name.
1679     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1680     ac_top_srcdir=$ac_top_build_prefix$srcdir
1681     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1682 esac
1683 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1684
1685     cd "$ac_dir" || { ac_status=$?; continue; }
1686     # Check for guested configure.
1687     if test -f "$ac_srcdir/configure.gnu"; then
1688       echo &&
1689       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1690     elif test -f "$ac_srcdir/configure"; then
1691       echo &&
1692       $SHELL "$ac_srcdir/configure" --help=recursive
1693     else
1694       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1695     fi || ac_status=$?
1696     cd "$ac_pwd" || { ac_status=$?; break; }
1697   done
1698 fi
1699
1700 test -n "$ac_init_help" && exit $ac_status
1701 if $ac_init_version; then
1702   cat <<\_ACEOF
1703 GNU tar configure 1.20
1704 generated by GNU Autoconf 2.61
1705
1706 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1707 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1708 This configure script is free software; the Free Software Foundation
1709 gives unlimited permission to copy, distribute and modify it.
1710 _ACEOF
1711   exit
1712 fi
1713 cat >config.log <<_ACEOF
1714 This file contains any messages produced by compilers while
1715 running configure, to aid debugging if configure makes a mistake.
1716
1717 It was created by GNU tar $as_me 1.20, which was
1718 generated by GNU Autoconf 2.61.  Invocation command line was
1719
1720   $ $0 $@
1721
1722 _ACEOF
1723 exec 5>>config.log
1724 {
1725 cat <<_ASUNAME
1726 ## --------- ##
1727 ## Platform. ##
1728 ## --------- ##
1729
1730 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1731 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1732 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1733 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1734 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1735
1736 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1737 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1738
1739 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1740 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1741 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1742 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1743 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1744 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1745 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1746
1747 _ASUNAME
1748
1749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1750 for as_dir in $PATH
1751 do
1752   IFS=$as_save_IFS
1753   test -z "$as_dir" && as_dir=.
1754   echo "PATH: $as_dir"
1755 done
1756 IFS=$as_save_IFS
1757
1758 } >&5
1759
1760 cat >&5 <<_ACEOF
1761
1762
1763 ## ----------- ##
1764 ## Core tests. ##
1765 ## ----------- ##
1766
1767 _ACEOF
1768
1769
1770 # Keep a trace of the command line.
1771 # Strip out --no-create and --no-recursion so they do not pile up.
1772 # Strip out --silent because we don't want to record it for future runs.
1773 # Also quote any args containing shell meta-characters.
1774 # Make two passes to allow for proper duplicate-argument suppression.
1775 ac_configure_args=
1776 ac_configure_args0=
1777 ac_configure_args1=
1778 ac_must_keep_next=false
1779 for ac_pass in 1 2
1780 do
1781   for ac_arg
1782   do
1783     case $ac_arg in
1784     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1785     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1786     | -silent | --silent | --silen | --sile | --sil)
1787       continue ;;
1788     *\'*)
1789       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1790     esac
1791     case $ac_pass in
1792     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1793     2)
1794       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1795       if test $ac_must_keep_next = true; then
1796         ac_must_keep_next=false # Got value, back to normal.
1797       else
1798         case $ac_arg in
1799           *=* | --config-cache | -C | -disable-* | --disable-* \
1800           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1801           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1802           | -with-* | --with-* | -without-* | --without-* | --x)
1803             case "$ac_configure_args0 " in
1804               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1805             esac
1806             ;;
1807           -* ) ac_must_keep_next=true ;;
1808         esac
1809       fi
1810       ac_configure_args="$ac_configure_args '$ac_arg'"
1811       ;;
1812     esac
1813   done
1814 done
1815 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1816 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1817
1818 # When interrupted or exit'd, cleanup temporary files, and complete
1819 # config.log.  We remove comments because anyway the quotes in there
1820 # would cause problems or look ugly.
1821 # WARNING: Use '\'' to represent an apostrophe within the trap.
1822 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1823 trap 'exit_status=$?
1824   # Save into config.log some information that might help in debugging.
1825   {
1826     echo
1827
1828     cat <<\_ASBOX
1829 ## ---------------- ##
1830 ## Cache variables. ##
1831 ## ---------------- ##
1832 _ASBOX
1833     echo
1834     # The following way of writing the cache mishandles newlines in values,
1835 (
1836   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1837     eval ac_val=\$$ac_var
1838     case $ac_val in #(
1839     *${as_nl}*)
1840       case $ac_var in #(
1841       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1842 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1843       esac
1844       case $ac_var in #(
1845       _ | IFS | as_nl) ;; #(
1846       *) $as_unset $ac_var ;;
1847       esac ;;
1848     esac
1849   done
1850   (set) 2>&1 |
1851     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1852     *${as_nl}ac_space=\ *)
1853       sed -n \
1854         "s/'\''/'\''\\\\'\'''\''/g;
1855           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1856       ;; #(
1857     *)
1858       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1859       ;;
1860     esac |
1861     sort
1862 )
1863     echo
1864
1865     cat <<\_ASBOX
1866 ## ----------------- ##
1867 ## Output variables. ##
1868 ## ----------------- ##
1869 _ASBOX
1870     echo
1871     for ac_var in $ac_subst_vars
1872     do
1873       eval ac_val=\$$ac_var
1874       case $ac_val in
1875       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876       esac
1877       echo "$ac_var='\''$ac_val'\''"
1878     done | sort
1879     echo
1880
1881     if test -n "$ac_subst_files"; then
1882       cat <<\_ASBOX
1883 ## ------------------- ##
1884 ## File substitutions. ##
1885 ## ------------------- ##
1886 _ASBOX
1887       echo
1888       for ac_var in $ac_subst_files
1889       do
1890         eval ac_val=\$$ac_var
1891         case $ac_val in
1892         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1893         esac
1894         echo "$ac_var='\''$ac_val'\''"
1895       done | sort
1896       echo
1897     fi
1898
1899     if test -s confdefs.h; then
1900       cat <<\_ASBOX
1901 ## ----------- ##
1902 ## confdefs.h. ##
1903 ## ----------- ##
1904 _ASBOX
1905       echo
1906       cat confdefs.h
1907       echo
1908     fi
1909     test "$ac_signal" != 0 &&
1910       echo "$as_me: caught signal $ac_signal"
1911     echo "$as_me: exit $exit_status"
1912   } >&5
1913   rm -f core *.core core.conftest.* &&
1914     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1915     exit $exit_status
1916 ' 0
1917 for ac_signal in 1 2 13 15; do
1918   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1919 done
1920 ac_signal=0
1921
1922 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1923 rm -f -r conftest* confdefs.h
1924
1925 # Predefined preprocessor variables.
1926
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_NAME "$PACKAGE_NAME"
1929 _ACEOF
1930
1931
1932 cat >>confdefs.h <<_ACEOF
1933 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1934 _ACEOF
1935
1936
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1939 _ACEOF
1940
1941
1942 cat >>confdefs.h <<_ACEOF
1943 #define PACKAGE_STRING "$PACKAGE_STRING"
1944 _ACEOF
1945
1946
1947 cat >>confdefs.h <<_ACEOF
1948 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1949 _ACEOF
1950
1951
1952 # Let the site file select an alternate cache file if it wants to.
1953 # Prefer explicitly selected file to automatically selected ones.
1954 if test -n "$CONFIG_SITE"; then
1955   set x "$CONFIG_SITE"
1956 elif test "x$prefix" != xNONE; then
1957   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1958 else
1959   set x "$ac_default_prefix/share/config.site" \
1960         "$ac_default_prefix/etc/config.site"
1961 fi
1962 shift
1963 for ac_site_file
1964 do
1965   if test -r "$ac_site_file"; then
1966     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1967 echo "$as_me: loading site script $ac_site_file" >&6;}
1968     sed 's/^/| /' "$ac_site_file" >&5
1969     . "$ac_site_file"
1970   fi
1971 done
1972
1973 if test -r "$cache_file"; then
1974   # Some versions of bash will fail to source /dev/null (special
1975   # files actually), so we avoid doing that.
1976   if test -f "$cache_file"; then
1977     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1978 echo "$as_me: loading cache $cache_file" >&6;}
1979     case $cache_file in
1980       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1981       *)                      . "./$cache_file";;
1982     esac
1983   fi
1984 else
1985   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1986 echo "$as_me: creating cache $cache_file" >&6;}
1987   >$cache_file
1988 fi
1989
1990 ac_header_list="$ac_header_list fcntl.h"
1991 ac_header_list="$ac_header_list linux/fd.h"
1992 ac_header_list="$ac_header_list memory.h"
1993 ac_header_list="$ac_header_list net/errno.h"
1994 ac_header_list="$ac_header_list sgtty.h"
1995 ac_header_list="$ac_header_list string.h"
1996 ac_header_list="$ac_header_list stropts.h"
1997 ac_header_list="$ac_header_list sys/param.h"
1998 ac_header_list="$ac_header_list sys/device.h"
1999 ac_header_list="$ac_header_list sys/filio.h"
2000 ac_header_list="$ac_header_list sys/gentape.h"
2001 ac_header_list="$ac_header_list sys/inet.h"
2002 ac_header_list="$ac_header_list sys/io/trioctl.h"
2003 ac_header_list="$ac_header_list sys/mtio.h"
2004 ac_header_list="$ac_header_list sys/time.h"
2005 ac_header_list="$ac_header_list sys/tprintf.h"
2006 ac_header_list="$ac_header_list sys/tape.h"
2007 ac_header_list="$ac_header_list unistd.h"
2008 ac_header_list="$ac_header_list locale.h"
2009 ac_func_list="$ac_func_list flockfile"
2010 ac_func_list="$ac_func_list funlockfile"
2011 ac_header_list="$ac_header_list features.h"
2012 ac_header_list="$ac_header_list linewrap.h"
2013 ac_func_list="$ac_func_list pathconf"
2014 ac_func_list="$ac_func_list canonicalize_file_name"
2015 ac_func_list="$ac_func_list getcwd"
2016 ac_func_list="$ac_func_list readlink"
2017 ac_func_list="$ac_func_list dup2"
2018 ac_func_list="$ac_func_list fchdir"
2019 ac_header_list="$ac_header_list dirent.h"
2020 ac_header_list="$ac_header_list float.h"
2021 ac_func_list="$ac_func_list btowc"
2022 ac_func_list="$ac_func_list isblank"
2023 ac_func_list="$ac_func_list iswctype"
2024 ac_func_list="$ac_func_list mbsrtowcs"
2025 ac_func_list="$ac_func_list mempcpy"
2026 ac_func_list="$ac_func_list wmemchr"
2027 ac_func_list="$ac_func_list wmemcpy"
2028 ac_func_list="$ac_func_list wmempcpy"
2029 ac_header_list="$ac_header_list wctype.h"
2030 ac_header_list="$ac_header_list stdio_ext.h"
2031 ac_func_list="$ac_func_list __fpending"
2032 ac_func_list="$ac_func_list ftruncate"
2033 ac_func_list="$ac_func_list gettimeofday"
2034 ac_func_list="$ac_func_list nanotime"
2035 ac_header_list="$ac_header_list stdint.h"
2036 ac_header_list="$ac_header_list wchar.h"
2037 ac_header_list="$ac_header_list inttypes.h"
2038 ac_func_list="$ac_func_list alarm"
2039 ac_func_list="$ac_func_list lchmod"
2040 ac_func_list="$ac_func_list fdopendir"
2041 ac_func_list="$ac_func_list mbsinit"
2042 ac_func_list="$ac_func_list mbrtowc"
2043 ac_func_list="$ac_func_list wcrtomb"
2044 ac_func_list="$ac_func_list wcscoll"
2045 ac_func_list="$ac_func_list setenv"
2046 ac_func_list="$ac_func_list sleep"
2047 ac_header_list="$ac_header_list stdarg.h"
2048 ac_header_list="$ac_header_list stdio.h"
2049 ac_header_list="$ac_header_list stdlib.h"
2050 ac_header_list="$ac_header_list strings.h"
2051 ac_func_list="$ac_func_list lstat"
2052 ac_header_list="$ac_header_list sys/stat.h"
2053 ac_header_list="$ac_header_list sysexits.h"
2054 ac_header_list="$ac_header_list time.h"
2055 ac_func_list="$ac_func_list pipe"
2056 ac_header_list="$ac_header_list priv.h"
2057 ac_header_list="$ac_header_list utime.h"
2058 ac_func_list="$ac_func_list futimes"
2059 ac_func_list="$ac_func_list futimesat"
2060 ac_func_list="$ac_func_list vasnprintf"
2061 ac_func_list="$ac_func_list iswcntrl"
2062 ac_func_list="$ac_func_list wcwidth"
2063 ac_header_list="$ac_header_list netdb.h"
2064 ac_header_list="$ac_header_list sys/wait.h"
2065 ac_header_list="$ac_header_list pwd.h"
2066 ac_header_list="$ac_header_list grp.h"
2067 ac_func_list="$ac_func_list mkfifo"
2068 ac_func_list="$ac_func_list setlocale"
2069 gt_needs="$gt_needs need-formatstring-macros"
2070 # Check that the precious variables saved in the cache have kept the same
2071 # value.
2072 ac_cache_corrupted=false
2073 for ac_var in $ac_precious_vars; do
2074   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2075   eval ac_new_set=\$ac_env_${ac_var}_set
2076   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2077   eval ac_new_val=\$ac_env_${ac_var}_value
2078   case $ac_old_set,$ac_new_set in
2079     set,)
2080       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2081 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2082       ac_cache_corrupted=: ;;
2083     ,set)
2084       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2085 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2086       ac_cache_corrupted=: ;;
2087     ,);;
2088     *)
2089       if test "x$ac_old_val" != "x$ac_new_val"; then
2090         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2091 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2092         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2093 echo "$as_me:   former value:  $ac_old_val" >&2;}
2094         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2095 echo "$as_me:   current value: $ac_new_val" >&2;}
2096         ac_cache_corrupted=:
2097       fi;;
2098   esac
2099   # Pass precious variables to config.status.
2100   if test "$ac_new_set" = set; then
2101     case $ac_new_val in
2102     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2103     *) ac_arg=$ac_var=$ac_new_val ;;
2104     esac
2105     case " $ac_configure_args " in
2106       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2107       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2108     esac
2109   fi
2110 done
2111 if $ac_cache_corrupted; then
2112   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2113 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2114   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2115 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2116    { (exit 1); exit 1; }; }
2117 fi
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143 ac_ext=c
2144 ac_cpp='$CPP $CPPFLAGS'
2145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2148
2149
2150
2151 ac_aux_dir=
2152 for ac_dir in build-aux "$srcdir"/build-aux; do
2153   if test -f "$ac_dir/install-sh"; then
2154     ac_aux_dir=$ac_dir
2155     ac_install_sh="$ac_aux_dir/install-sh -c"
2156     break
2157   elif test -f "$ac_dir/install.sh"; then
2158     ac_aux_dir=$ac_dir
2159     ac_install_sh="$ac_aux_dir/install.sh -c"
2160     break
2161   elif test -f "$ac_dir/shtool"; then
2162     ac_aux_dir=$ac_dir
2163     ac_install_sh="$ac_aux_dir/shtool install -c"
2164     break
2165   fi
2166 done
2167 if test -z "$ac_aux_dir"; then
2168   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2169 echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2170    { (exit 1); exit 1; }; }
2171 fi
2172
2173 # These three variables are undocumented and unsupported,
2174 # and are intended to be withdrawn in a future Autoconf release.
2175 # They can cause serious problems if a builder's source tree is in a directory
2176 # whose full name contains unusual characters.
2177 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2178 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2179 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2180
2181
2182 ac_config_headers="$ac_config_headers config.h:config.hin"
2183
2184
2185 am__api_version='1.10'
2186
2187 # Find a good install program.  We prefer a C program (faster),
2188 # so one script is as good as another.  But avoid the broken or
2189 # incompatible versions:
2190 # SysV /etc/install, /usr/sbin/install
2191 # SunOS /usr/etc/install
2192 # IRIX /sbin/install
2193 # AIX /bin/install
2194 # AmigaOS /C/install, which installs bootblocks on floppy discs
2195 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2196 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2197 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2198 # OS/2's system install, which has a completely different semantic
2199 # ./install, which can be erroneously created by make from ./install.sh.
2200 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2201 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2202 if test -z "$INSTALL"; then
2203 if test "${ac_cv_path_install+set}" = set; then
2204   echo $ECHO_N "(cached) $ECHO_C" >&6
2205 else
2206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207 for as_dir in $PATH
2208 do
2209   IFS=$as_save_IFS
2210   test -z "$as_dir" && as_dir=.
2211   # Account for people who put trailing slashes in PATH elements.
2212 case $as_dir/ in
2213   ./ | .// | /cC/* | \
2214   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2215   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2216   /usr/ucb/* ) ;;
2217   *)
2218     # OSF1 and SCO ODT 3.0 have their own names for install.
2219     # Don't use installbsd from OSF since it installs stuff as root
2220     # by default.
2221     for ac_prog in ginstall scoinst install; do
2222       for ac_exec_ext in '' $ac_executable_extensions; do
2223         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2224           if test $ac_prog = install &&
2225             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2226             # AIX install.  It has an incompatible calling convention.
2227             :
2228           elif test $ac_prog = install &&
2229             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2230             # program-specific install script used by HP pwplus--don't use.
2231             :
2232           else
2233             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2234             break 3
2235           fi
2236         fi
2237       done
2238     done
2239     ;;
2240 esac
2241 done
2242 IFS=$as_save_IFS
2243
2244
2245 fi
2246   if test "${ac_cv_path_install+set}" = set; then
2247     INSTALL=$ac_cv_path_install
2248   else
2249     # As a last resort, use the slow shell script.  Don't cache a
2250     # value for INSTALL within a source directory, because that will
2251     # break other packages using the cache if that directory is
2252     # removed, or if the value is a relative name.
2253     INSTALL=$ac_install_sh
2254   fi
2255 fi
2256 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2257 echo "${ECHO_T}$INSTALL" >&6; }
2258
2259 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2260 # It thinks the first close brace ends the variable substitution.
2261 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2262
2263 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2264
2265 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2266
2267 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2268 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2269 # Just in case
2270 sleep 1
2271 echo timestamp > conftest.file
2272 # Do `set' in a subshell so we don't clobber the current shell's
2273 # arguments.  Must try -L first in case configure is actually a
2274 # symlink; some systems play weird games with the mod time of symlinks
2275 # (eg FreeBSD returns the mod time of the symlink's containing
2276 # directory).
2277 if (
2278    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2279    if test "$*" = "X"; then
2280       # -L didn't work.
2281       set X `ls -t $srcdir/configure conftest.file`
2282    fi
2283    rm -f conftest.file
2284    if test "$*" != "X $srcdir/configure conftest.file" \
2285       && test "$*" != "X conftest.file $srcdir/configure"; then
2286
2287       # If neither matched, then we have a broken ls.  This can happen
2288       # if, for instance, CONFIG_SHELL is bash and it inherits a
2289       # broken ls alias from the environment.  This has actually
2290       # happened.  Such a system could not be considered "sane".
2291       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2292 alias in your environment" >&5
2293 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2294 alias in your environment" >&2;}
2295    { (exit 1); exit 1; }; }
2296    fi
2297
2298    test "$2" = conftest.file
2299    )
2300 then
2301    # Ok.
2302    :
2303 else
2304    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2305 Check your system clock" >&5
2306 echo "$as_me: error: newly created file is older than distributed files!
2307 Check your system clock" >&2;}
2308    { (exit 1); exit 1; }; }
2309 fi
2310 { echo "$as_me:$LINENO: result: yes" >&5
2311 echo "${ECHO_T}yes" >&6; }
2312 test "$program_prefix" != NONE &&
2313   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2314 # Use a double $ so make ignores it.
2315 test "$program_suffix" != NONE &&
2316   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2317 # Double any \ or $.  echo might interpret backslashes.
2318 # By default was `s,x,x', remove it if useless.
2319 cat <<\_ACEOF >conftest.sed
2320 s/[\\$]/&&/g;s/;s,x,x,$//
2321 _ACEOF
2322 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2323 rm -f conftest.sed
2324
2325 # expand $ac_aux_dir to an absolute path
2326 am_aux_dir=`cd $ac_aux_dir && pwd`
2327
2328 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2329 # Use eval to expand $SHELL
2330 if eval "$MISSING --run true"; then
2331   am_missing_run="$MISSING --run "
2332 else
2333   am_missing_run=
2334   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2335 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2336 fi
2337
2338 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2339 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2340 if test -z "$MKDIR_P"; then
2341   if test "${ac_cv_path_mkdir+set}" = set; then
2342   echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2346 do
2347   IFS=$as_save_IFS
2348   test -z "$as_dir" && as_dir=.
2349   for ac_prog in mkdir gmkdir; do
2350          for ac_exec_ext in '' $ac_executable_extensions; do
2351            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2352            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2353              'mkdir (GNU coreutils) '* | \
2354              'mkdir (coreutils) '* | \
2355              'mkdir (fileutils) '4.1*)
2356                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2357                break 3;;
2358            esac
2359          done
2360        done
2361 done
2362 IFS=$as_save_IFS
2363
2364 fi
2365
2366   if test "${ac_cv_path_mkdir+set}" = set; then
2367     MKDIR_P="$ac_cv_path_mkdir -p"
2368   else
2369     # As a last resort, use the slow shell script.  Don't cache a
2370     # value for MKDIR_P within a source directory, because that will
2371     # break other packages using the cache if that directory is
2372     # removed, or if the value is a relative name.
2373     test -d ./--version && rmdir ./--version
2374     MKDIR_P="$ac_install_sh -d"
2375   fi
2376 fi
2377 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2378 echo "${ECHO_T}$MKDIR_P" >&6; }
2379
2380 mkdir_p="$MKDIR_P"
2381 case $mkdir_p in
2382   [\\/$]* | ?:[\\/]*) ;;
2383   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2384 esac
2385
2386 for ac_prog in gawk mawk nawk awk
2387 do
2388   # Extract the first word of "$ac_prog", so it can be a program name with args.
2389 set dummy $ac_prog; ac_word=$2
2390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2392 if test "${ac_cv_prog_AWK+set}" = set; then
2393   echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395   if test -n "$AWK"; then
2396   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2397 else
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 for as_dir in $PATH
2400 do
2401   IFS=$as_save_IFS
2402   test -z "$as_dir" && as_dir=.
2403   for ac_exec_ext in '' $ac_executable_extensions; do
2404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2405     ac_cv_prog_AWK="$ac_prog"
2406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407     break 2
2408   fi
2409 done
2410 done
2411 IFS=$as_save_IFS
2412
2413 fi
2414 fi
2415 AWK=$ac_cv_prog_AWK
2416 if test -n "$AWK"; then
2417   { echo "$as_me:$LINENO: result: $AWK" >&5
2418 echo "${ECHO_T}$AWK" >&6; }
2419 else
2420   { echo "$as_me:$LINENO: result: no" >&5
2421 echo "${ECHO_T}no" >&6; }
2422 fi
2423
2424
2425   test -n "$AWK" && break
2426 done
2427
2428 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2429 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2430 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2431 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2432   echo $ECHO_N "(cached) $ECHO_C" >&6
2433 else
2434   cat >conftest.make <<\_ACEOF
2435 SHELL = /bin/sh
2436 all:
2437         @echo '@@@%%%=$(MAKE)=@@@%%%'
2438 _ACEOF
2439 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2440 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2441   *@@@%%%=?*=@@@%%%*)
2442     eval ac_cv_prog_make_${ac_make}_set=yes;;
2443   *)
2444     eval ac_cv_prog_make_${ac_make}_set=no;;
2445 esac
2446 rm -f conftest.make
2447 fi
2448 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2449   { echo "$as_me:$LINENO: result: yes" >&5
2450 echo "${ECHO_T}yes" >&6; }
2451   SET_MAKE=
2452 else
2453   { echo "$as_me:$LINENO: result: no" >&5
2454 echo "${ECHO_T}no" >&6; }
2455   SET_MAKE="MAKE=${MAKE-make}"
2456 fi
2457
2458 rm -rf .tst 2>/dev/null
2459 mkdir .tst 2>/dev/null
2460 if test -d .tst; then
2461   am__leading_dot=.
2462 else
2463   am__leading_dot=_
2464 fi
2465 rmdir .tst 2>/dev/null
2466
2467 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2468   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2469   # is not polluted with repeated "-I."
2470   am__isrc=' -I$(srcdir)'
2471   # test to see if srcdir already configured
2472   if test -f $srcdir/config.status; then
2473     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2474 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2475    { (exit 1); exit 1; }; }
2476   fi
2477 fi
2478
2479 # test whether we have cygpath
2480 if test -z "$CYGPATH_W"; then
2481   if (cygpath --version) >/dev/null 2>/dev/null; then
2482     CYGPATH_W='cygpath -w'
2483   else
2484     CYGPATH_W=echo
2485   fi
2486 fi
2487
2488
2489 # Define the identity of the package.
2490  PACKAGE='tar'
2491  VERSION='1.20'
2492
2493
2494 cat >>confdefs.h <<_ACEOF
2495 #define PACKAGE "$PACKAGE"
2496 _ACEOF
2497
2498
2499 cat >>confdefs.h <<_ACEOF
2500 #define VERSION "$VERSION"
2501 _ACEOF
2502
2503 # Some tools Automake needs.
2504
2505 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2506
2507
2508 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2509
2510
2511 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2512
2513
2514 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2515
2516
2517 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2518
2519 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2520
2521 # Installed binaries are usually stripped using `strip' when the user
2522 # run `make install-strip'.  However `strip' might not be the right
2523 # tool to use in cross-compilation environments, therefore Automake
2524 # will honor the `STRIP' environment variable to overrule this program.
2525 if test "$cross_compiling" != no; then
2526   if test -n "$ac_tool_prefix"; then
2527   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2528 set dummy ${ac_tool_prefix}strip; ac_word=$2
2529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2531 if test "${ac_cv_prog_STRIP+set}" = set; then
2532   echo $ECHO_N "(cached) $ECHO_C" >&6
2533 else
2534   if test -n "$STRIP"; then
2535   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2536 else
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 for as_dir in $PATH
2539 do
2540   IFS=$as_save_IFS
2541   test -z "$as_dir" && as_dir=.
2542   for ac_exec_ext in '' $ac_executable_extensions; do
2543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546     break 2
2547   fi
2548 done
2549 done
2550 IFS=$as_save_IFS
2551
2552 fi
2553 fi
2554 STRIP=$ac_cv_prog_STRIP
2555 if test -n "$STRIP"; then
2556   { echo "$as_me:$LINENO: result: $STRIP" >&5
2557 echo "${ECHO_T}$STRIP" >&6; }
2558 else
2559   { echo "$as_me:$LINENO: result: no" >&5
2560 echo "${ECHO_T}no" >&6; }
2561 fi
2562
2563
2564 fi
2565 if test -z "$ac_cv_prog_STRIP"; then
2566   ac_ct_STRIP=$STRIP
2567   # Extract the first word of "strip", so it can be a program name with args.
2568 set dummy strip; ac_word=$2
2569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2571 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2572   echo $ECHO_N "(cached) $ECHO_C" >&6
2573 else
2574   if test -n "$ac_ct_STRIP"; then
2575   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2576 else
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH
2579 do
2580   IFS=$as_save_IFS
2581   test -z "$as_dir" && as_dir=.
2582   for ac_exec_ext in '' $ac_executable_extensions; do
2583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2584     ac_cv_prog_ac_ct_STRIP="strip"
2585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2586     break 2
2587   fi
2588 done
2589 done
2590 IFS=$as_save_IFS
2591
2592 fi
2593 fi
2594 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2595 if test -n "$ac_ct_STRIP"; then
2596   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2597 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2598 else
2599   { echo "$as_me:$LINENO: result: no" >&5
2600 echo "${ECHO_T}no" >&6; }
2601 fi
2602
2603   if test "x$ac_ct_STRIP" = x; then
2604     STRIP=":"
2605   else
2606     case $cross_compiling:$ac_tool_warned in
2607 yes:)
2608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2609 whose name does not start with the host triplet.  If you think this
2610 configuration is useful to you, please write to autoconf@gnu.org." >&5
2611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2612 whose name does not start with the host triplet.  If you think this
2613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2614 ac_tool_warned=yes ;;
2615 esac
2616     STRIP=$ac_ct_STRIP
2617   fi
2618 else
2619   STRIP="$ac_cv_prog_STRIP"
2620 fi
2621
2622 fi
2623 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2624
2625 # We need awk for the "check" target.  The system "awk" is bad on
2626 # some platforms.
2627 # Always define AMTAR for backward compatibility.
2628
2629 AMTAR=${AMTAR-"${am_missing_run}tar"}
2630
2631
2632 { echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2633 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6; }
2634 # Loop over all known methods to create a tar archive until one works.
2635 _am_tools='gnutar plaintar pax cpio none'
2636 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2637 # Do not fold the above two line into one, because Tru64 sh and
2638 # Solaris sh will not grok spaces in the rhs of `-'.
2639 for _am_tool in $_am_tools
2640 do
2641   case $_am_tool in
2642   gnutar)
2643     for _am_tar in tar gnutar gtar;
2644     do
2645       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2646    ($_am_tar --version) >&5 2>&5
2647    ac_status=$?
2648    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649    (exit $ac_status); } && break
2650     done
2651     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2652     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2653     am__untar="$_am_tar -xf -"
2654     ;;
2655   plaintar)
2656     # Must skip GNU tar: if it does not support --format= it doesn't create
2657     # ustar tarball either.
2658     (tar --version) >/dev/null 2>&1 && continue
2659     am__tar='tar chf - "$$tardir"'
2660     am__tar_='tar chf - "$tardir"'
2661     am__untar='tar xf -'
2662     ;;
2663   pax)
2664     am__tar='pax -L -x ustar -w "$$tardir"'
2665     am__tar_='pax -L -x ustar -w "$tardir"'
2666     am__untar='pax -r'
2667     ;;
2668   cpio)
2669     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2670     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2671     am__untar='cpio -i -H ustar -d'
2672     ;;
2673   none)
2674     am__tar=false
2675     am__tar_=false
2676     am__untar=false
2677     ;;
2678   esac
2679
2680   # If the value was cached, stop now.  We just wanted to have am__tar
2681   # and am__untar set.
2682   test -n "${am_cv_prog_tar_ustar}" && break
2683
2684   # tar/untar a dummy directory, and stop if the command works
2685   rm -rf conftest.dir
2686   mkdir conftest.dir
2687   echo GrepMe > conftest.dir/file
2688   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2689    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2690    ac_status=$?
2691    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692    (exit $ac_status); }
2693   rm -rf conftest.dir
2694   if test -s conftest.tar; then
2695     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2696    ($am__untar <conftest.tar) >&5 2>&5
2697    ac_status=$?
2698    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699    (exit $ac_status); }
2700     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2701   fi
2702 done
2703 rm -rf conftest.dir
2704
2705 if test "${am_cv_prog_tar_ustar+set}" = set; then
2706   echo $ECHO_N "(cached) $ECHO_C" >&6
2707 else
2708   am_cv_prog_tar_ustar=$_am_tool
2709 fi
2710
2711 { echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2712 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6; }
2713
2714
2715
2716
2717
2718
2719 ac_ext=c
2720 ac_cpp='$CPP $CPPFLAGS'
2721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724 if test -n "$ac_tool_prefix"; then
2725   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2726 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2729 if test "${ac_cv_prog_CC+set}" = set; then
2730   echo $ECHO_N "(cached) $ECHO_C" >&6
2731 else
2732   if test -n "$CC"; then
2733   ac_cv_prog_CC="$CC" # Let the user override the test.
2734 else
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2737 do
2738   IFS=$as_save_IFS
2739   test -z "$as_dir" && as_dir=.
2740   for ac_exec_ext in '' $ac_executable_extensions; do
2741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2742     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744     break 2
2745   fi
2746 done
2747 done
2748 IFS=$as_save_IFS
2749
2750 fi
2751 fi
2752 CC=$ac_cv_prog_CC
2753 if test -n "$CC"; then
2754   { echo "$as_me:$LINENO: result: $CC" >&5
2755 echo "${ECHO_T}$CC" >&6; }
2756 else
2757   { echo "$as_me:$LINENO: result: no" >&5
2758 echo "${ECHO_T}no" >&6; }
2759 fi
2760
2761
2762 fi
2763 if test -z "$ac_cv_prog_CC"; then
2764   ac_ct_CC=$CC
2765   # Extract the first word of "gcc", so it can be a program name with args.
2766 set dummy gcc; ac_word=$2
2767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2769 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2770   echo $ECHO_N "(cached) $ECHO_C" >&6
2771 else
2772   if test -n "$ac_ct_CC"; then
2773   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2774 else
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH
2777 do
2778   IFS=$as_save_IFS
2779   test -z "$as_dir" && as_dir=.
2780   for ac_exec_ext in '' $ac_executable_extensions; do
2781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782     ac_cv_prog_ac_ct_CC="gcc"
2783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784     break 2
2785   fi
2786 done
2787 done
2788 IFS=$as_save_IFS
2789
2790 fi
2791 fi
2792 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2793 if test -n "$ac_ct_CC"; then
2794   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2795 echo "${ECHO_T}$ac_ct_CC" >&6; }
2796 else
2797   { echo "$as_me:$LINENO: result: no" >&5
2798 echo "${ECHO_T}no" >&6; }
2799 fi
2800
2801   if test "x$ac_ct_CC" = x; then
2802     CC=""
2803   else
2804     case $cross_compiling:$ac_tool_warned in
2805 yes:)
2806 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2807 whose name does not start with the host triplet.  If you think this
2808 configuration is useful to you, please write to autoconf@gnu.org." >&5
2809 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2810 whose name does not start with the host triplet.  If you think this
2811 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2812 ac_tool_warned=yes ;;
2813 esac
2814     CC=$ac_ct_CC
2815   fi
2816 else
2817   CC="$ac_cv_prog_CC"
2818 fi
2819
2820 if test -z "$CC"; then
2821           if test -n "$ac_tool_prefix"; then
2822     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2823 set dummy ${ac_tool_prefix}cc; ac_word=$2
2824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2826 if test "${ac_cv_prog_CC+set}" = set; then
2827   echo $ECHO_N "(cached) $ECHO_C" >&6
2828 else
2829   if test -n "$CC"; then
2830   ac_cv_prog_CC="$CC" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2834 do
2835   IFS=$as_save_IFS
2836   test -z "$as_dir" && as_dir=.
2837   for ac_exec_ext in '' $ac_executable_extensions; do
2838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839     ac_cv_prog_CC="${ac_tool_prefix}cc"
2840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841     break 2
2842   fi
2843 done
2844 done
2845 IFS=$as_save_IFS
2846
2847 fi
2848 fi
2849 CC=$ac_cv_prog_CC
2850 if test -n "$CC"; then
2851   { echo "$as_me:$LINENO: result: $CC" >&5
2852 echo "${ECHO_T}$CC" >&6; }
2853 else
2854   { echo "$as_me:$LINENO: result: no" >&5
2855 echo "${ECHO_T}no" >&6; }
2856 fi
2857
2858
2859   fi
2860 fi
2861 if test -z "$CC"; then
2862   # Extract the first word of "cc", so it can be a program name with args.
2863 set dummy cc; ac_word=$2
2864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2866 if test "${ac_cv_prog_CC+set}" = set; then
2867   echo $ECHO_N "(cached) $ECHO_C" >&6
2868 else
2869   if test -n "$CC"; then
2870   ac_cv_prog_CC="$CC" # Let the user override the test.
2871 else
2872   ac_prog_rejected=no
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2875 do
2876   IFS=$as_save_IFS
2877   test -z "$as_dir" && as_dir=.
2878   for ac_exec_ext in '' $ac_executable_extensions; do
2879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2881        ac_prog_rejected=yes
2882        continue
2883      fi
2884     ac_cv_prog_CC="cc"
2885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2886     break 2
2887   fi
2888 done
2889 done
2890 IFS=$as_save_IFS
2891
2892 if test $ac_prog_rejected = yes; then
2893   # We found a bogon in the path, so make sure we never use it.
2894   set dummy $ac_cv_prog_CC
2895   shift
2896   if test $# != 0; then
2897     # We chose a different compiler from the bogus one.
2898     # However, it has the same basename, so the bogon will be chosen
2899     # first if we set CC to just the basename; use the full file name.
2900     shift
2901     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2902   fi
2903 fi
2904 fi
2905 fi
2906 CC=$ac_cv_prog_CC
2907 if test -n "$CC"; then
2908   { echo "$as_me:$LINENO: result: $CC" >&5
2909 echo "${ECHO_T}$CC" >&6; }
2910 else
2911   { echo "$as_me:$LINENO: result: no" >&5
2912 echo "${ECHO_T}no" >&6; }
2913 fi
2914
2915
2916 fi
2917 if test -z "$CC"; then
2918   if test -n "$ac_tool_prefix"; then
2919   for ac_prog in cl.exe
2920   do
2921     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2922 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2925 if test "${ac_cv_prog_CC+set}" = set; then
2926   echo $ECHO_N "(cached) $ECHO_C" >&6
2927 else
2928   if test -n "$CC"; then
2929   ac_cv_prog_CC="$CC" # Let the user override the test.
2930 else
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2933 do
2934   IFS=$as_save_IFS
2935   test -z "$as_dir" && as_dir=.
2936   for ac_exec_ext in '' $ac_executable_extensions; do
2937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2938     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2940     break 2
2941   fi
2942 done
2943 done
2944 IFS=$as_save_IFS
2945
2946 fi
2947 fi
2948 CC=$ac_cv_prog_CC
2949 if test -n "$CC"; then
2950   { echo "$as_me:$LINENO: result: $CC" >&5
2951 echo "${ECHO_T}$CC" >&6; }
2952 else
2953   { echo "$as_me:$LINENO: result: no" >&5
2954 echo "${ECHO_T}no" >&6; }
2955 fi
2956
2957
2958     test -n "$CC" && break
2959   done
2960 fi
2961 if test -z "$CC"; then
2962   ac_ct_CC=$CC
2963   for ac_prog in cl.exe
2964 do
2965   # Extract the first word of "$ac_prog", so it can be a program name with args.
2966 set dummy $ac_prog; ac_word=$2
2967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2969 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2970   echo $ECHO_N "(cached) $ECHO_C" >&6
2971 else
2972   if test -n "$ac_ct_CC"; then
2973   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2974 else
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2977 do
2978   IFS=$as_save_IFS
2979   test -z "$as_dir" && as_dir=.
2980   for ac_exec_ext in '' $ac_executable_extensions; do
2981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2982     ac_cv_prog_ac_ct_CC="$ac_prog"
2983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2984     break 2
2985   fi
2986 done
2987 done
2988 IFS=$as_save_IFS
2989
2990 fi
2991 fi
2992 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2993 if test -n "$ac_ct_CC"; then
2994   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2995 echo "${ECHO_T}$ac_ct_CC" >&6; }
2996 else
2997   { echo "$as_me:$LINENO: result: no" >&5
2998 echo "${ECHO_T}no" >&6; }
2999 fi
3000
3001
3002   test -n "$ac_ct_CC" && break
3003 done
3004
3005   if test "x$ac_ct_CC" = x; then
3006     CC=""
3007   else
3008     case $cross_compiling:$ac_tool_warned in
3009 yes:)
3010 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3011 whose name does not start with the host triplet.  If you think this
3012 configuration is useful to you, please write to autoconf@gnu.org." >&5
3013 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3014 whose name does not start with the host triplet.  If you think this
3015 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3016 ac_tool_warned=yes ;;
3017 esac
3018     CC=$ac_ct_CC
3019   fi
3020 fi
3021
3022 fi
3023
3024
3025 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3026 See \`config.log' for more details." >&5
3027 echo "$as_me: error: no acceptable C compiler found in \$PATH
3028 See \`config.log' for more details." >&2;}
3029    { (exit 1); exit 1; }; }
3030
3031 # Provide some information about the compiler.
3032 echo "$as_me:$LINENO: checking for C compiler version" >&5
3033 ac_compiler=`set X $ac_compile; echo $2`
3034 { (ac_try="$ac_compiler --version >&5"
3035 case "(($ac_try" in
3036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037   *) ac_try_echo=$ac_try;;
3038 esac
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040   (eval "$ac_compiler --version >&5") 2>&5
3041   ac_status=$?
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); }
3044 { (ac_try="$ac_compiler -v >&5"
3045 case "(($ac_try" in
3046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047   *) ac_try_echo=$ac_try;;
3048 esac
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050   (eval "$ac_compiler -v >&5") 2>&5
3051   ac_status=$?
3052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053   (exit $ac_status); }
3054 { (ac_try="$ac_compiler -V >&5"
3055 case "(($ac_try" in
3056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057   *) ac_try_echo=$ac_try;;
3058 esac
3059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060   (eval "$ac_compiler -V >&5") 2>&5
3061   ac_status=$?
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); }
3064
3065 cat >conftest.$ac_ext <<_ACEOF
3066 /* confdefs.h.  */
3067 _ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h.  */
3071
3072 int
3073 main ()
3074 {
3075
3076   ;
3077   return 0;
3078 }
3079 _ACEOF
3080 ac_clean_files_save=$ac_clean_files
3081 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3082 # Try to create an executable without -o first, disregard a.out.
3083 # It will help us diagnose broken compilers, and finding out an intuition
3084 # of exeext.
3085 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3086 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3087 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3088 #
3089 # List of possible output files, starting from the most likely.
3090 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3091 # only as a last resort.  b.out is created by i960 compilers.
3092 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3093 #
3094 # The IRIX 6 linker writes into existing files which may not be
3095 # executable, retaining their permissions.  Remove them first so a
3096 # subsequent execution test works.
3097 ac_rmfiles=
3098 for ac_file in $ac_files
3099 do
3100   case $ac_file in
3101     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3102     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3103   esac
3104 done
3105 rm -f $ac_rmfiles
3106
3107 if { (ac_try="$ac_link_default"
3108 case "(($ac_try" in
3109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110   *) ac_try_echo=$ac_try;;
3111 esac
3112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113   (eval "$ac_link_default") 2>&5
3114   ac_status=$?
3115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116   (exit $ac_status); }; then
3117   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3118 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3119 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3120 # so that the user can short-circuit this test for compilers unknown to
3121 # Autoconf.
3122 for ac_file in $ac_files ''
3123 do
3124   test -f "$ac_file" || continue
3125   case $ac_file in
3126     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3127         ;;
3128     [ab].out )
3129         # We found the default executable, but exeext='' is most
3130         # certainly right.
3131         break;;
3132     *.* )
3133         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3134         then :; else
3135            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3136         fi
3137         # We set ac_cv_exeext here because the later test for it is not
3138         # safe: cross compilers may not add the suffix if given an `-o'
3139         # argument, so we may need to know it at that point already.
3140         # Even if this section looks crufty: it has the advantage of
3141         # actually working.
3142         break;;
3143     * )
3144         break;;
3145   esac
3146 done
3147 test "$ac_cv_exeext" = no && ac_cv_exeext=
3148
3149 else
3150   ac_file=''
3151 fi
3152
3153 { echo "$as_me:$LINENO: result: $ac_file" >&5
3154 echo "${ECHO_T}$ac_file" >&6; }
3155 if test -z "$ac_file"; then
3156   echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3158
3159 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3160 See \`config.log' for more details." >&5
3161 echo "$as_me: error: C compiler cannot create executables
3162 See \`config.log' for more details." >&2;}
3163    { (exit 77); exit 77; }; }
3164 fi
3165
3166 ac_exeext=$ac_cv_exeext
3167
3168 # Check that the compiler produces executables we can run.  If not, either
3169 # the compiler is broken, or we cross compile.
3170 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3171 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3172 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3173 # If not cross compiling, check that we can run a simple program.
3174 if test "$cross_compiling" != yes; then
3175   if { ac_try='./$ac_file'
3176   { (case "(($ac_try" in
3177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178   *) ac_try_echo=$ac_try;;
3179 esac
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181   (eval "$ac_try") 2>&5
3182   ac_status=$?
3183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184   (exit $ac_status); }; }; then
3185     cross_compiling=no
3186   else
3187     if test "$cross_compiling" = maybe; then
3188         cross_compiling=yes
3189     else
3190         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3191 If you meant to cross compile, use \`--host'.
3192 See \`config.log' for more details." >&5
3193 echo "$as_me: error: cannot run C compiled programs.
3194 If you meant to cross compile, use \`--host'.
3195 See \`config.log' for more details." >&2;}
3196    { (exit 1); exit 1; }; }
3197     fi
3198   fi
3199 fi
3200 { echo "$as_me:$LINENO: result: yes" >&5
3201 echo "${ECHO_T}yes" >&6; }
3202
3203 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3204 ac_clean_files=$ac_clean_files_save
3205 # Check that the compiler produces executables we can run.  If not, either
3206 # the compiler is broken, or we cross compile.
3207 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3208 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3209 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3210 echo "${ECHO_T}$cross_compiling" >&6; }
3211
3212 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3213 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3214 if { (ac_try="$ac_link"
3215 case "(($ac_try" in
3216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217   *) ac_try_echo=$ac_try;;
3218 esac
3219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220   (eval "$ac_link") 2>&5
3221   ac_status=$?
3222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); }; then
3224   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3225 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3226 # work properly (i.e., refer to `conftest.exe'), while it won't with
3227 # `rm'.
3228 for ac_file in conftest.exe conftest conftest.*; do
3229   test -f "$ac_file" || continue
3230   case $ac_file in
3231     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3232     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3233           break;;
3234     * ) break;;
3235   esac
3236 done
3237 else
3238   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3239 See \`config.log' for more details." >&5
3240 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3241 See \`config.log' for more details." >&2;}
3242    { (exit 1); exit 1; }; }
3243 fi
3244
3245 rm -f conftest$ac_cv_exeext
3246 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3247 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3248
3249 rm -f conftest.$ac_ext
3250 EXEEXT=$ac_cv_exeext
3251 ac_exeext=$EXEEXT
3252 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3253 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3254 if test "${ac_cv_objext+set}" = set; then
3255   echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257   cat >conftest.$ac_ext <<_ACEOF
3258 /* confdefs.h.  */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h.  */
3263
3264 int
3265 main ()
3266 {
3267
3268   ;
3269   return 0;
3270 }
3271 _ACEOF
3272 rm -f conftest.o conftest.obj
3273 if { (ac_try="$ac_compile"
3274 case "(($ac_try" in
3275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276   *) ac_try_echo=$ac_try;;
3277 esac
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279   (eval "$ac_compile") 2>&5
3280   ac_status=$?
3281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282   (exit $ac_status); }; then
3283   for ac_file in conftest.o conftest.obj 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 ) ;;
3287     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3288        break;;
3289   esac
3290 done
3291 else
3292   echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3294
3295 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3296 See \`config.log' for more details." >&5
3297 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3298 See \`config.log' for more details." >&2;}
3299    { (exit 1); exit 1; }; }
3300 fi
3301
3302 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3303 fi
3304 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3305 echo "${ECHO_T}$ac_cv_objext" >&6; }
3306 OBJEXT=$ac_cv_objext
3307 ac_objext=$OBJEXT
3308 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3309 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3310 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3311   echo $ECHO_N "(cached) $ECHO_C" >&6
3312 else
3313   cat >conftest.$ac_ext <<_ACEOF
3314 /* confdefs.h.  */
3315 _ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h.  */
3319
3320 int
3321 main ()
3322 {
3323 #ifndef __GNUC__
3324        choke me
3325 #endif
3326
3327   ;
3328   return 0;
3329 }
3330 _ACEOF
3331 rm -f conftest.$ac_objext
3332 if { (ac_try="$ac_compile"
3333 case "(($ac_try" in
3334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335   *) ac_try_echo=$ac_try;;
3336 esac
3337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3338   (eval "$ac_compile") 2>conftest.er1
3339   ac_status=$?
3340   grep -v '^ *+' conftest.er1 >conftest.err
3341   rm -f conftest.er1
3342   cat conftest.err >&5
3343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344   (exit $ac_status); } && {
3345          test -z "$ac_c_werror_flag" ||
3346          test ! -s conftest.err
3347        } && test -s conftest.$ac_objext; then
3348   ac_compiler_gnu=yes
3349 else
3350   echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3352
3353         ac_compiler_gnu=no
3354 fi
3355
3356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3358
3359 fi
3360 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3361 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3362 GCC=`test $ac_compiler_gnu = yes && echo yes`
3363 ac_test_CFLAGS=${CFLAGS+set}
3364 ac_save_CFLAGS=$CFLAGS
3365 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3366 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3367 if test "${ac_cv_prog_cc_g+set}" = set; then
3368   echo $ECHO_N "(cached) $ECHO_C" >&6
3369 else
3370   ac_save_c_werror_flag=$ac_c_werror_flag
3371    ac_c_werror_flag=yes
3372    ac_cv_prog_cc_g=no
3373    CFLAGS="-g"
3374    cat >conftest.$ac_ext <<_ACEOF
3375 /* confdefs.h.  */
3376 _ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h.  */
3380
3381 int
3382 main ()
3383 {
3384
3385   ;
3386   return 0;
3387 }
3388 _ACEOF
3389 rm -f conftest.$ac_objext
3390 if { (ac_try="$ac_compile"
3391 case "(($ac_try" in
3392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393   *) ac_try_echo=$ac_try;;
3394 esac
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396   (eval "$ac_compile") 2>conftest.er1
3397   ac_status=$?
3398   grep -v '^ *+' conftest.er1 >conftest.err
3399   rm -f conftest.er1
3400   cat conftest.err >&5
3401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402   (exit $ac_status); } && {
3403          test -z "$ac_c_werror_flag" ||
3404          test ! -s conftest.err
3405        } && test -s conftest.$ac_objext; then
3406   ac_cv_prog_cc_g=yes
3407 else
3408   echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3410
3411         CFLAGS=""
3412       cat >conftest.$ac_ext <<_ACEOF
3413 /* confdefs.h.  */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h.  */
3418
3419 int
3420 main ()
3421 {
3422
3423   ;
3424   return 0;
3425 }
3426 _ACEOF
3427 rm -f conftest.$ac_objext
3428 if { (ac_try="$ac_compile"
3429 case "(($ac_try" in
3430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431   *) ac_try_echo=$ac_try;;
3432 esac
3433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434   (eval "$ac_compile") 2>conftest.er1
3435   ac_status=$?
3436   grep -v '^ *+' conftest.er1 >conftest.err
3437   rm -f conftest.er1
3438   cat conftest.err >&5
3439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440   (exit $ac_status); } && {
3441          test -z "$ac_c_werror_flag" ||
3442          test ! -s conftest.err
3443        } && test -s conftest.$ac_objext; then
3444   :
3445 else
3446   echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3448
3449         ac_c_werror_flag=$ac_save_c_werror_flag
3450          CFLAGS="-g"
3451          cat >conftest.$ac_ext <<_ACEOF
3452 /* confdefs.h.  */
3453 _ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h.  */
3457
3458 int
3459 main ()
3460 {
3461
3462   ;
3463   return 0;
3464 }
3465 _ACEOF
3466 rm -f conftest.$ac_objext
3467 if { (ac_try="$ac_compile"
3468 case "(($ac_try" in
3469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470   *) ac_try_echo=$ac_try;;
3471 esac
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473   (eval "$ac_compile") 2>conftest.er1
3474   ac_status=$?
3475   grep -v '^ *+' conftest.er1 >conftest.err
3476   rm -f conftest.er1
3477   cat conftest.err >&5
3478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479   (exit $ac_status); } && {
3480          test -z "$ac_c_werror_flag" ||
3481          test ! -s conftest.err
3482        } && test -s conftest.$ac_objext; then
3483   ac_cv_prog_cc_g=yes
3484 else
3485   echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3487
3488
3489 fi
3490
3491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3492 fi
3493
3494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495 fi
3496
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498    ac_c_werror_flag=$ac_save_c_werror_flag
3499 fi
3500 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3501 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3502 if test "$ac_test_CFLAGS" = set; then
3503   CFLAGS=$ac_save_CFLAGS
3504 elif test $ac_cv_prog_cc_g = yes; then
3505   if test "$GCC" = yes; then
3506     CFLAGS="-g -O2"
3507   else
3508     CFLAGS="-g"
3509   fi
3510 else
3511   if test "$GCC" = yes; then
3512     CFLAGS="-O2"
3513   else
3514     CFLAGS=
3515   fi
3516 fi
3517 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3518 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3519 if test "${ac_cv_prog_cc_c89+set}" = set; then
3520   echo $ECHO_N "(cached) $ECHO_C" >&6
3521 else
3522   ac_cv_prog_cc_c89=no
3523 ac_save_CC=$CC
3524 cat >conftest.$ac_ext <<_ACEOF
3525 /* confdefs.h.  */
3526 _ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h.  */
3530 #include <stdarg.h>
3531 #include <stdio.h>
3532 #include <sys/types.h>
3533 #include <sys/stat.h>
3534 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3535 struct buf { int x; };
3536 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3537 static char *e (p, i)
3538      char **p;
3539      int i;
3540 {
3541   return p[i];
3542 }
3543 static char *f (char * (*g) (char **, int), char **p, ...)
3544 {
3545   char *s;
3546   va_list v;
3547   va_start (v,p);
3548   s = g (p, va_arg (v,int));
3549   va_end (v);
3550   return s;
3551 }
3552
3553 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3554    function prototypes and stuff, but not '\xHH' hex character constants.
3555    These don't provoke an error unfortunately, instead are silently treated
3556    as 'x'.  The following induces an error, until -std is added to get
3557    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3558    array size at least.  It's necessary to write '\x00'==0 to get something
3559    that's true only with -std.  */
3560 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3561
3562 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3563    inside strings and character constants.  */
3564 #define FOO(x) 'x'
3565 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3566
3567 int test (int i, double x);
3568 struct s1 {int (*f) (int a);};
3569 struct s2 {int (*f) (double a);};
3570 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3571 int argc;
3572 char **argv;
3573 int
3574 main ()
3575 {
3576 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3577   ;
3578   return 0;
3579 }
3580 _ACEOF
3581 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3582         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3583 do
3584   CC="$ac_save_CC $ac_arg"
3585   rm -f conftest.$ac_objext
3586 if { (ac_try="$ac_compile"
3587 case "(($ac_try" in
3588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589   *) ac_try_echo=$ac_try;;
3590 esac
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592   (eval "$ac_compile") 2>conftest.er1
3593   ac_status=$?
3594   grep -v '^ *+' conftest.er1 >conftest.err
3595   rm -f conftest.er1
3596   cat conftest.err >&5
3597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598   (exit $ac_status); } && {
3599          test -z "$ac_c_werror_flag" ||
3600          test ! -s conftest.err
3601        } && test -s conftest.$ac_objext; then
3602   ac_cv_prog_cc_c89=$ac_arg
3603 else
3604   echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3606
3607
3608 fi
3609
3610 rm -f core conftest.err conftest.$ac_objext
3611   test "x$ac_cv_prog_cc_c89" != "xno" && break
3612 done
3613 rm -f conftest.$ac_ext
3614 CC=$ac_save_CC
3615
3616 fi
3617 # AC_CACHE_VAL
3618 case "x$ac_cv_prog_cc_c89" in
3619   x)
3620     { echo "$as_me:$LINENO: result: none needed" >&5
3621 echo "${ECHO_T}none needed" >&6; } ;;
3622   xno)
3623     { echo "$as_me:$LINENO: result: unsupported" >&5
3624 echo "${ECHO_T}unsupported" >&6; } ;;
3625   *)
3626     CC="$CC $ac_cv_prog_cc_c89"
3627     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3628 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3629 esac
3630
3631
3632 ac_ext=c
3633 ac_cpp='$CPP $CPPFLAGS'
3634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637 DEPDIR="${am__leading_dot}deps"
3638
3639 ac_config_commands="$ac_config_commands depfiles"
3640
3641
3642 am_make=${MAKE-make}
3643 cat > confinc << 'END'
3644 am__doit:
3645         @echo done
3646 .PHONY: am__doit
3647 END
3648 # If we don't find an include directive, just comment out the code.
3649 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3650 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3651 am__include="#"
3652 am__quote=
3653 _am_result=none
3654 # First try GNU make style include.
3655 echo "include confinc" > confmf
3656 # We grep out `Entering directory' and `Leaving directory'
3657 # messages which can occur if `w' ends up in MAKEFLAGS.
3658 # In particular we don't look at `^make:' because GNU make might
3659 # be invoked under some other name (usually "gmake"), in which
3660 # case it prints its new name instead of `make'.
3661 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3662    am__include=include
3663    am__quote=
3664    _am_result=GNU
3665 fi
3666 # Now try BSD make style include.
3667 if test "$am__include" = "#"; then
3668    echo '.include "confinc"' > confmf
3669    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3670       am__include=.include
3671       am__quote="\""
3672       _am_result=BSD
3673    fi
3674 fi
3675
3676
3677 { echo "$as_me:$LINENO: result: $_am_result" >&5
3678 echo "${ECHO_T}$_am_result" >&6; }
3679 rm -f confinc confmf
3680
3681 # Check whether --enable-dependency-tracking was given.
3682 if test "${enable_dependency_tracking+set}" = set; then
3683   enableval=$enable_dependency_tracking;
3684 fi
3685
3686 if test "x$enable_dependency_tracking" != xno; then
3687   am_depcomp="$ac_aux_dir/depcomp"
3688   AMDEPBACKSLASH='\'
3689 fi
3690  if test "x$enable_dependency_tracking" != xno; then
3691   AMDEP_TRUE=
3692   AMDEP_FALSE='#'
3693 else
3694   AMDEP_TRUE='#'
3695   AMDEP_FALSE=
3696 fi
3697
3698
3699
3700 depcc="$CC"   am_compiler_list=
3701
3702 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3703 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3704 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3705   echo $ECHO_N "(cached) $ECHO_C" >&6
3706 else
3707   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3708   # We make a subdir and do the tests there.  Otherwise we can end up
3709   # making bogus files that we don't know about and never remove.  For
3710   # instance it was reported that on HP-UX the gcc test will end up
3711   # making a dummy file named `D' -- because `-MD' means `put the output
3712   # in D'.
3713   mkdir conftest.dir
3714   # Copy depcomp to subdir because otherwise we won't find it if we're
3715   # using a relative directory.
3716   cp "$am_depcomp" conftest.dir
3717   cd conftest.dir
3718   # We will build objects and dependencies in a subdirectory because
3719   # it helps to detect inapplicable dependency modes.  For instance
3720   # both Tru64's cc and ICC support -MD to output dependencies as a
3721   # side effect of compilation, but ICC will put the dependencies in
3722   # the current directory while Tru64 will put them in the object
3723   # directory.
3724   mkdir sub
3725
3726   am_cv_CC_dependencies_compiler_type=none
3727   if test "$am_compiler_list" = ""; then
3728      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3729   fi
3730   for depmode in $am_compiler_list; do
3731     # Setup a source with many dependencies, because some compilers
3732     # like to wrap large dependency lists on column 80 (with \), and
3733     # we should not choose a depcomp mode which is confused by this.
3734     #
3735     # We need to recreate these files for each test, as the compiler may
3736     # overwrite some of them when testing with obscure command lines.
3737     # This happens at least with the AIX C compiler.
3738     : > sub/conftest.c
3739     for i in 1 2 3 4 5 6; do
3740       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3741       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3742       # Solaris 8's {/usr,}/bin/sh.
3743       touch sub/conftst$i.h
3744     done
3745     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3746
3747     case $depmode in
3748     nosideeffect)
3749       # after this tag, mechanisms are not by side-effect, so they'll
3750       # only be used when explicitly requested
3751       if test "x$enable_dependency_tracking" = xyes; then
3752         continue
3753       else
3754         break
3755       fi
3756       ;;
3757     none) break ;;
3758     esac
3759     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3760     # mode.  It turns out that the SunPro C++ compiler does not properly
3761     # handle `-M -o', and we need to detect this.
3762     if depmode=$depmode \
3763        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3764        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3765        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3766          >/dev/null 2>conftest.err &&
3767        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3768        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3769        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3770        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3771       # icc doesn't choke on unknown options, it will just issue warnings
3772       # or remarks (even with -Werror).  So we grep stderr for any message
3773       # that says an option was ignored or not supported.
3774       # When given -MP, icc 7.0 and 7.1 complain thusly:
3775       #   icc: Command line warning: ignoring option '-M'; no argument required
3776       # The diagnosis changed in icc 8.0:
3777       #   icc: Command line remark: option '-MP' not supported
3778       if (grep 'ignoring option' conftest.err ||
3779           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3780         am_cv_CC_dependencies_compiler_type=$depmode
3781         break
3782       fi
3783     fi
3784   done
3785
3786   cd ..
3787   rm -rf conftest.dir
3788 else
3789   am_cv_CC_dependencies_compiler_type=none
3790 fi
3791
3792 fi
3793 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3794 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3795 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3796
3797  if
3798   test "x$enable_dependency_tracking" != xno \
3799   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3800   am__fastdepCC_TRUE=
3801   am__fastdepCC_FALSE='#'
3802 else
3803   am__fastdepCC_TRUE='#'
3804   am__fastdepCC_FALSE=
3805 fi
3806
3807
3808
3809 if test -n "$ac_tool_prefix"; then
3810   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3811 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3814 if test "${ac_cv_prog_RANLIB+set}" = set; then
3815   echo $ECHO_N "(cached) $ECHO_C" >&6
3816 else
3817   if test -n "$RANLIB"; then
3818   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3822 do
3823   IFS=$as_save_IFS
3824   test -z "$as_dir" && as_dir=.
3825   for ac_exec_ext in '' $ac_executable_extensions; do
3826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3827     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3829     break 2
3830   fi
3831 done
3832 done
3833 IFS=$as_save_IFS
3834
3835 fi
3836 fi
3837 RANLIB=$ac_cv_prog_RANLIB
3838 if test -n "$RANLIB"; then
3839   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3840 echo "${ECHO_T}$RANLIB" >&6; }
3841 else
3842   { echo "$as_me:$LINENO: result: no" >&5
3843 echo "${ECHO_T}no" >&6; }
3844 fi
3845
3846
3847 fi
3848 if test -z "$ac_cv_prog_RANLIB"; then
3849   ac_ct_RANLIB=$RANLIB
3850   # Extract the first word of "ranlib", so it can be a program name with args.
3851 set dummy ranlib; ac_word=$2
3852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3854 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3855   echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857   if test -n "$ac_ct_RANLIB"; then
3858   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3859 else
3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 for as_dir in $PATH
3862 do
3863   IFS=$as_save_IFS
3864   test -z "$as_dir" && as_dir=.
3865   for ac_exec_ext in '' $ac_executable_extensions; do
3866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3867     ac_cv_prog_ac_ct_RANLIB="ranlib"
3868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3869     break 2
3870   fi
3871 done
3872 done
3873 IFS=$as_save_IFS
3874
3875 fi
3876 fi
3877 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3878 if test -n "$ac_ct_RANLIB"; then
3879   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3880 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3881 else
3882   { echo "$as_me:$LINENO: result: no" >&5
3883 echo "${ECHO_T}no" >&6; }
3884 fi
3885
3886   if test "x$ac_ct_RANLIB" = x; then
3887     RANLIB=":"
3888   else
3889     case $cross_compiling:$ac_tool_warned in
3890 yes:)
3891 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3892 whose name does not start with the host triplet.  If you think this
3893 configuration is useful to you, please write to autoconf@gnu.org." >&5
3894 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3895 whose name does not start with the host triplet.  If you think this
3896 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3897 ac_tool_warned=yes ;;
3898 esac
3899     RANLIB=$ac_ct_RANLIB
3900   fi
3901 else
3902   RANLIB="$ac_cv_prog_RANLIB"
3903 fi
3904
3905 for ac_prog in 'bison -y' byacc
3906 do
3907   # Extract the first word of "$ac_prog", so it can be a program name with args.
3908 set dummy $ac_prog; ac_word=$2
3909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3911 if test "${ac_cv_prog_YACC+set}" = set; then
3912   echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914   if test -n "$YACC"; then
3915   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3916 else
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH
3919 do
3920   IFS=$as_save_IFS
3921   test -z "$as_dir" && as_dir=.
3922   for ac_exec_ext in '' $ac_executable_extensions; do
3923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3924     ac_cv_prog_YACC="$ac_prog"
3925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3926     break 2
3927   fi
3928 done
3929 done
3930 IFS=$as_save_IFS
3931
3932 fi
3933 fi
3934 YACC=$ac_cv_prog_YACC
3935 if test -n "$YACC"; then
3936   { echo "$as_me:$LINENO: result: $YACC" >&5
3937 echo "${ECHO_T}$YACC" >&6; }
3938 else
3939   { echo "$as_me:$LINENO: result: no" >&5
3940 echo "${ECHO_T}no" >&6; }
3941 fi
3942
3943
3944   test -n "$YACC" && break
3945 done
3946 test -n "$YACC" || YACC="yacc"
3947
3948 if test "x$CC" != xcc; then
3949   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3950 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3951 else
3952   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3953 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3954 fi
3955 set dummy $CC; ac_cc=`echo $2 |
3956                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3957 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3958   echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960   cat >conftest.$ac_ext <<_ACEOF
3961 /* confdefs.h.  */
3962 _ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h.  */
3966
3967 int
3968 main ()
3969 {
3970
3971   ;
3972   return 0;
3973 }
3974 _ACEOF
3975 # Make sure it works both with $CC and with simple cc.
3976 # We do the test twice because some compilers refuse to overwrite an
3977 # existing .o file with -o, though they will create one.
3978 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3979 rm -f conftest2.*
3980 if { (case "(($ac_try" in
3981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982   *) ac_try_echo=$ac_try;;
3983 esac
3984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3985   (eval "$ac_try") 2>&5
3986   ac_status=$?
3987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988   (exit $ac_status); } &&
3989    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991   *) ac_try_echo=$ac_try;;
3992 esac
3993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3994   (eval "$ac_try") 2>&5
3995   ac_status=$?
3996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997   (exit $ac_status); };
3998 then
3999   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4000   if test "x$CC" != xcc; then
4001     # Test first that cc exists at all.
4002     if { ac_try='cc -c conftest.$ac_ext >&5'
4003   { (case "(($ac_try" in
4004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005   *) ac_try_echo=$ac_try;;
4006 esac
4007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4008   (eval "$ac_try") 2>&5
4009   ac_status=$?
4010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011   (exit $ac_status); }; }; then
4012       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4013       rm -f conftest2.*
4014       if { (case "(($ac_try" in
4015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016   *) ac_try_echo=$ac_try;;
4017 esac
4018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019   (eval "$ac_try") 2>&5
4020   ac_status=$?
4021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022   (exit $ac_status); } &&
4023          test -f conftest2.$ac_objext && { (case "(($ac_try" in
4024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025   *) ac_try_echo=$ac_try;;
4026 esac
4027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4028   (eval "$ac_try") 2>&5
4029   ac_status=$?
4030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031   (exit $ac_status); };
4032       then
4033         # cc works too.
4034         :
4035       else
4036         # cc exists but doesn't like -o.
4037         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4038       fi
4039     fi
4040   fi
4041 else
4042   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4043 fi
4044 rm -f core conftest*
4045
4046 fi
4047 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4048   { echo "$as_me:$LINENO: result: yes" >&5
4049 echo "${ECHO_T}yes" >&6; }
4050 else
4051   { echo "$as_me:$LINENO: result: no" >&5
4052 echo "${ECHO_T}no" >&6; }
4053
4054 cat >>confdefs.h <<\_ACEOF
4055 #define NO_MINUS_C_MINUS_O 1
4056 _ACEOF
4057
4058 fi
4059
4060 # FIXME: we rely on the cache variable name because
4061 # there is no other way.
4062 set dummy $CC
4063 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4064 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4065    # Losing compiler, so override with the script.
4066    # FIXME: It is wrong to rewrite CC.
4067    # But if we don't then we get into trouble of one sort or another.
4068    # A longer-term fix would be to have automake use am__CC in this case,
4069    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4070    CC="$am_aux_dir/compile $CC"
4071 fi
4072
4073
4074
4075 cat >>confdefs.h <<\_ACEOF
4076 #define _GNU_SOURCE 1
4077 _ACEOF
4078
4079
4080
4081 ac_ext=c
4082 ac_cpp='$CPP $CPPFLAGS'
4083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4087 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4088 # On Suns, sometimes $CPP names a directory.
4089 if test -n "$CPP" && test -d "$CPP"; then
4090   CPP=
4091 fi
4092 if test -z "$CPP"; then
4093   if test "${ac_cv_prog_CPP+set}" = set; then
4094   echo $ECHO_N "(cached) $ECHO_C" >&6
4095 else
4096       # Double quotes because CPP needs to be expanded
4097     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4098     do
4099       ac_preproc_ok=false
4100 for ac_c_preproc_warn_flag in '' yes
4101 do
4102   # Use a header file that comes with gcc, so configuring glibc
4103   # with a fresh cross-compiler works.
4104   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4105   # <limits.h> exists even on freestanding compilers.
4106   # On the NeXT, cc -E runs the code through the compiler's parser,
4107   # not just through cpp. "Syntax error" is here to catch this case.
4108   cat >conftest.$ac_ext <<_ACEOF
4109 /* confdefs.h.  */
4110 _ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h.  */
4114 #ifdef __STDC__
4115 # include <limits.h>
4116 #else
4117 # include <assert.h>
4118 #endif
4119                      Syntax error
4120 _ACEOF
4121 if { (ac_try="$ac_cpp conftest.$ac_ext"
4122 case "(($ac_try" in
4123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124   *) ac_try_echo=$ac_try;;
4125 esac
4126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4127   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4128   ac_status=$?
4129   grep -v '^ *+' conftest.er1 >conftest.err
4130   rm -f conftest.er1
4131   cat conftest.err >&5
4132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133   (exit $ac_status); } >/dev/null && {
4134          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4135          test ! -s conftest.err
4136        }; then
4137   :
4138 else
4139   echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.$ac_ext >&5
4141
4142   # Broken: fails on valid input.
4143 continue
4144 fi
4145
4146 rm -f conftest.err conftest.$ac_ext
4147
4148   # OK, works on sane cases.  Now check whether nonexistent headers
4149   # can be detected and how.
4150   cat >conftest.$ac_ext <<_ACEOF
4151 /* confdefs.h.  */
4152 _ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h.  */
4156 #include <ac_nonexistent.h>
4157 _ACEOF
4158 if { (ac_try="$ac_cpp conftest.$ac_ext"
4159 case "(($ac_try" in
4160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161   *) ac_try_echo=$ac_try;;
4162 esac
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4165   ac_status=$?
4166   grep -v '^ *+' conftest.er1 >conftest.err
4167   rm -f conftest.er1
4168   cat conftest.err >&5
4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170   (exit $ac_status); } >/dev/null && {
4171          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4172          test ! -s conftest.err
4173        }; then
4174   # Broken: success on invalid input.
4175 continue
4176 else
4177   echo "$as_me: failed program was:" >&5
4178 sed 's/^/| /' conftest.$ac_ext >&5
4179
4180   # Passes both tests.
4181 ac_preproc_ok=:
4182 break
4183 fi
4184
4185 rm -f conftest.err conftest.$ac_ext
4186
4187 done
4188 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4189 rm -f conftest.err conftest.$ac_ext
4190 if $ac_preproc_ok; then
4191   break
4192 fi
4193
4194     done
4195     ac_cv_prog_CPP=$CPP
4196
4197 fi
4198   CPP=$ac_cv_prog_CPP
4199 else
4200   ac_cv_prog_CPP=$CPP
4201 fi
4202 { echo "$as_me:$LINENO: result: $CPP" >&5
4203 echo "${ECHO_T}$CPP" >&6; }
4204 ac_preproc_ok=false
4205 for ac_c_preproc_warn_flag in '' yes
4206 do
4207   # Use a header file that comes with gcc, so configuring glibc
4208   # with a fresh cross-compiler works.
4209   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4210   # <limits.h> exists even on freestanding compilers.
4211   # On the NeXT, cc -E runs the code through the compiler's parser,
4212   # not just through cpp. "Syntax error" is here to catch this case.
4213   cat >conftest.$ac_ext <<_ACEOF
4214 /* confdefs.h.  */
4215 _ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h.  */
4219 #ifdef __STDC__
4220 # include <limits.h>
4221 #else
4222 # include <assert.h>
4223 #endif
4224                      Syntax error
4225 _ACEOF
4226 if { (ac_try="$ac_cpp conftest.$ac_ext"
4227 case "(($ac_try" in
4228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229   *) ac_try_echo=$ac_try;;
4230 esac
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4233   ac_status=$?
4234   grep -v '^ *+' conftest.er1 >conftest.err
4235   rm -f conftest.er1
4236   cat conftest.err >&5
4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238   (exit $ac_status); } >/dev/null && {
4239          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4240          test ! -s conftest.err
4241        }; then
4242   :
4243 else
4244   echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4246
4247   # Broken: fails on valid input.
4248 continue
4249 fi
4250
4251 rm -f conftest.err conftest.$ac_ext
4252
4253   # OK, works on sane cases.  Now check whether nonexistent headers
4254   # can be detected and how.
4255   cat >conftest.$ac_ext <<_ACEOF
4256 /* confdefs.h.  */
4257 _ACEOF
4258 cat confdefs.h >>conftest.$ac_ext
4259 cat >>conftest.$ac_ext <<_ACEOF
4260 /* end confdefs.h.  */
4261 #include <ac_nonexistent.h>
4262 _ACEOF
4263 if { (ac_try="$ac_cpp conftest.$ac_ext"
4264 case "(($ac_try" in
4265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266   *) ac_try_echo=$ac_try;;
4267 esac
4268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4270   ac_status=$?
4271   grep -v '^ *+' conftest.er1 >conftest.err
4272   rm -f conftest.er1
4273   cat conftest.err >&5
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); } >/dev/null && {
4276          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4277          test ! -s conftest.err
4278        }; then
4279   # Broken: success on invalid input.
4280 continue
4281 else
4282   echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4284
4285   # Passes both tests.
4286 ac_preproc_ok=:
4287 break
4288 fi
4289
4290 rm -f conftest.err conftest.$ac_ext
4291
4292 done
4293 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4294 rm -f conftest.err conftest.$ac_ext
4295 if $ac_preproc_ok; then
4296   :
4297 else
4298   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4299 See \`config.log' for more details." >&5
4300 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4301 See \`config.log' for more details." >&2;}
4302    { (exit 1); exit 1; }; }
4303 fi
4304
4305 ac_ext=c
4306 ac_cpp='$CPP $CPPFLAGS'
4307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4310
4311
4312 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4313 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4314 if test "${ac_cv_path_GREP+set}" = set; then
4315   echo $ECHO_N "(cached) $ECHO_C" >&6
4316 else
4317   # Extract the first word of "grep ggrep" to use in msg output
4318 if test -z "$GREP"; then
4319 set dummy grep ggrep; ac_prog_name=$2
4320 if test "${ac_cv_path_GREP+set}" = set; then
4321   echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323   ac_path_GREP_found=false
4324 # Loop through the user's path and test for each of PROGNAME-LIST
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4327 do
4328   IFS=$as_save_IFS
4329   test -z "$as_dir" && as_dir=.
4330   for ac_prog in grep ggrep; do
4331   for ac_exec_ext in '' $ac_executable_extensions; do
4332     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4333     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4334     # Check for GNU ac_path_GREP and select it if it is found.
4335   # Check for GNU $ac_path_GREP
4336 case `"$ac_path_GREP" --version 2>&1` in
4337 *GNU*)
4338   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4339 *)
4340   ac_count=0
4341   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4342   while :
4343   do
4344     cat "conftest.in" "conftest.in" >"conftest.tmp"
4345     mv "conftest.tmp" "conftest.in"
4346     cp "conftest.in" "conftest.nl"
4347     echo 'GREP' >> "conftest.nl"
4348     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4349     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4350     ac_count=`expr $ac_count + 1`
4351     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4352       # Best one so far, save it but keep looking for a better one
4353       ac_cv_path_GREP="$ac_path_GREP"
4354       ac_path_GREP_max=$ac_count
4355     fi
4356     # 10*(2^10) chars as input seems more than enough
4357     test $ac_count -gt 10 && break
4358   done
4359   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4360 esac
4361
4362
4363     $ac_path_GREP_found && break 3
4364   done
4365 done
4366
4367 done
4368 IFS=$as_save_IFS
4369
4370
4371 fi
4372
4373 GREP="$ac_cv_path_GREP"
4374 if test -z "$GREP"; then
4375   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4376 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4377    { (exit 1); exit 1; }; }
4378 fi
4379
4380 else
4381   ac_cv_path_GREP=$GREP
4382 fi
4383
4384
4385 fi
4386 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4387 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4388  GREP="$ac_cv_path_GREP"
4389
4390
4391 { echo "$as_me:$LINENO: checking for egrep" >&5
4392 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4393 if test "${ac_cv_path_EGREP+set}" = set; then
4394   echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4397    then ac_cv_path_EGREP="$GREP -E"
4398    else
4399      # Extract the first word of "egrep" to use in msg output
4400 if test -z "$EGREP"; then
4401 set dummy egrep; ac_prog_name=$2
4402 if test "${ac_cv_path_EGREP+set}" = set; then
4403   echo $ECHO_N "(cached) $ECHO_C" >&6
4404 else
4405   ac_path_EGREP_found=false
4406 # Loop through the user's path and test for each of PROGNAME-LIST
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4409 do
4410   IFS=$as_save_IFS
4411   test -z "$as_dir" && as_dir=.
4412   for ac_prog in egrep; do
4413   for ac_exec_ext in '' $ac_executable_extensions; do
4414     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4415     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4416     # Check for GNU ac_path_EGREP and select it if it is found.
4417   # Check for GNU $ac_path_EGREP
4418 case `"$ac_path_EGREP" --version 2>&1` in
4419 *GNU*)
4420   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4421 *)
4422   ac_count=0
4423   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4424   while :
4425   do
4426     cat "conftest.in" "conftest.in" >"conftest.tmp"
4427     mv "conftest.tmp" "conftest.in"
4428     cp "conftest.in" "conftest.nl"
4429     echo 'EGREP' >> "conftest.nl"
4430     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4431     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4432     ac_count=`expr $ac_count + 1`
4433     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4434       # Best one so far, save it but keep looking for a better one
4435       ac_cv_path_EGREP="$ac_path_EGREP"
4436       ac_path_EGREP_max=$ac_count
4437     fi
4438     # 10*(2^10) chars as input seems more than enough
4439     test $ac_count -gt 10 && break
4440   done
4441   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4442 esac
4443
4444
4445     $ac_path_EGREP_found && break 3
4446   done
4447 done
4448
4449 done
4450 IFS=$as_save_IFS
4451
4452
4453 fi
4454
4455 EGREP="$ac_cv_path_EGREP"
4456 if test -z "$EGREP"; then
4457   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4458 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4459    { (exit 1); exit 1; }; }
4460 fi
4461
4462 else
4463   ac_cv_path_EGREP=$EGREP
4464 fi
4465
4466
4467    fi
4468 fi
4469 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4470 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4471  EGREP="$ac_cv_path_EGREP"
4472
4473
4474 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4475 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4476 if test "${ac_cv_header_stdc+set}" = set; then
4477   echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479   cat >conftest.$ac_ext <<_ACEOF
4480 /* confdefs.h.  */
4481 _ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h.  */
4485 #include <stdlib.h>
4486 #include <stdarg.h>
4487 #include <string.h>
4488 #include <float.h>
4489
4490 int
4491 main ()
4492 {
4493
4494   ;
4495   return 0;
4496 }
4497 _ACEOF
4498 rm -f conftest.$ac_objext
4499 if { (ac_try="$ac_compile"
4500 case "(($ac_try" in
4501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502   *) ac_try_echo=$ac_try;;
4503 esac
4504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4505   (eval "$ac_compile") 2>conftest.er1
4506   ac_status=$?
4507   grep -v '^ *+' conftest.er1 >conftest.err
4508   rm -f conftest.er1
4509   cat conftest.err >&5
4510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); } && {
4512          test -z "$ac_c_werror_flag" ||
4513          test ! -s conftest.err
4514        } && test -s conftest.$ac_objext; then
4515   ac_cv_header_stdc=yes
4516 else
4517   echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.$ac_ext >&5
4519
4520         ac_cv_header_stdc=no
4521 fi
4522
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524
4525 if test $ac_cv_header_stdc = yes; then
4526   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4527   cat >conftest.$ac_ext <<_ACEOF
4528 /* confdefs.h.  */
4529 _ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h.  */
4533 #include <string.h>
4534
4535 _ACEOF
4536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4537   $EGREP "memchr" >/dev/null 2>&1; then
4538   :
4539 else
4540   ac_cv_header_stdc=no
4541 fi
4542 rm -f conftest*
4543
4544 fi
4545
4546 if test $ac_cv_header_stdc = yes; then
4547   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4548   cat >conftest.$ac_ext <<_ACEOF
4549 /* confdefs.h.  */
4550 _ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h.  */
4554 #include <stdlib.h>
4555
4556 _ACEOF
4557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4558   $EGREP "free" >/dev/null 2>&1; then
4559   :
4560 else
4561   ac_cv_header_stdc=no
4562 fi
4563 rm -f conftest*
4564
4565 fi
4566
4567 if test $ac_cv_header_stdc = yes; then
4568   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4569   if test "$cross_compiling" = yes; then
4570   :
4571 else
4572   cat >conftest.$ac_ext <<_ACEOF
4573 /* confdefs.h.  */
4574 _ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h.  */
4578 #include <ctype.h>
4579 #include <stdlib.h>
4580 #if ((' ' & 0x0FF) == 0x020)
4581 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4582 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4583 #else
4584 # define ISLOWER(c) \
4585                    (('a' <= (c) && (c) <= 'i') \
4586                      || ('j' <= (c) && (c) <= 'r') \
4587                      || ('s' <= (c) && (c) <= 'z'))
4588 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4589 #endif
4590
4591 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4592 int
4593 main ()
4594 {
4595   int i;
4596   for (i = 0; i < 256; i++)
4597     if (XOR (islower (i), ISLOWER (i))
4598         || toupper (i) != TOUPPER (i))
4599       return 2;
4600   return 0;
4601 }
4602 _ACEOF
4603 rm -f conftest$ac_exeext
4604 if { (ac_try="$ac_link"
4605 case "(($ac_try" in
4606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607   *) ac_try_echo=$ac_try;;
4608 esac
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610   (eval "$ac_link") 2>&5
4611   ac_status=$?
4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4614   { (case "(($ac_try" in
4615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616   *) ac_try_echo=$ac_try;;
4617 esac
4618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4619   (eval "$ac_try") 2>&5
4620   ac_status=$?
4621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622   (exit $ac_status); }; }; then
4623   :
4624 else
4625   echo "$as_me: program exited with status $ac_status" >&5
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4628
4629 ( exit $ac_status )
4630 ac_cv_header_stdc=no
4631 fi
4632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4633 fi
4634
4635
4636 fi
4637 fi
4638 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4639 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4640 if test $ac_cv_header_stdc = yes; then
4641
4642 cat >>confdefs.h <<\_ACEOF
4643 #define STDC_HEADERS 1
4644 _ACEOF
4645
4646 fi
4647
4648 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4659                   inttypes.h stdint.h unistd.h
4660 do
4661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4665   echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667   cat >conftest.$ac_ext <<_ACEOF
4668 /* confdefs.h.  */
4669 _ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h.  */
4673 $ac_includes_default
4674
4675 #include <$ac_header>
4676 _ACEOF
4677 rm -f conftest.$ac_objext
4678 if { (ac_try="$ac_compile"
4679 case "(($ac_try" in
4680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681   *) ac_try_echo=$ac_try;;
4682 esac
4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684   (eval "$ac_compile") 2>conftest.er1
4685   ac_status=$?
4686   grep -v '^ *+' conftest.er1 >conftest.err
4687   rm -f conftest.er1
4688   cat conftest.err >&5
4689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690   (exit $ac_status); } && {
4691          test -z "$ac_c_werror_flag" ||
4692          test ! -s conftest.err
4693        } && test -s conftest.$ac_objext; then
4694   eval "$as_ac_Header=yes"
4695 else
4696   echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4698
4699         eval "$as_ac_Header=no"
4700 fi
4701
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703 fi
4704 ac_res=`eval echo '${'$as_ac_Header'}'`
4705                { echo "$as_me:$LINENO: result: $ac_res" >&5
4706 echo "${ECHO_T}$ac_res" >&6; }
4707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4708   cat >>confdefs.h <<_ACEOF
4709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4710 _ACEOF
4711
4712 fi
4713
4714 done
4715
4716
4717
4718   if test "${ac_cv_header_minix_config_h+set}" = set; then
4719   { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4720 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4721 if test "${ac_cv_header_minix_config_h+set}" = set; then
4722   echo $ECHO_N "(cached) $ECHO_C" >&6
4723 fi
4724 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4725 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4726 else
4727   # Is the header compilable?
4728 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4729 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4730 cat >conftest.$ac_ext <<_ACEOF
4731 /* confdefs.h.  */
4732 _ACEOF
4733 cat confdefs.h >>conftest.$ac_ext
4734 cat >>conftest.$ac_ext <<_ACEOF
4735 /* end confdefs.h.  */
4736 $ac_includes_default
4737 #include <minix/config.h>
4738 _ACEOF
4739 rm -f conftest.$ac_objext
4740 if { (ac_try="$ac_compile"
4741 case "(($ac_try" in
4742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743   *) ac_try_echo=$ac_try;;
4744 esac
4745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4746   (eval "$ac_compile") 2>conftest.er1
4747   ac_status=$?
4748   grep -v '^ *+' conftest.er1 >conftest.err
4749   rm -f conftest.er1
4750   cat conftest.err >&5
4751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752   (exit $ac_status); } && {
4753          test -z "$ac_c_werror_flag" ||
4754          test ! -s conftest.err
4755        } && test -s conftest.$ac_objext; then
4756   ac_header_compiler=yes
4757 else
4758   echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4760
4761         ac_header_compiler=no
4762 fi
4763
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4766 echo "${ECHO_T}$ac_header_compiler" >&6; }
4767
4768 # Is the header present?
4769 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4770 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4771 cat >conftest.$ac_ext <<_ACEOF
4772 /* confdefs.h.  */
4773 _ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h.  */
4777 #include <minix/config.h>
4778 _ACEOF
4779 if { (ac_try="$ac_cpp conftest.$ac_ext"
4780 case "(($ac_try" in
4781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4782   *) ac_try_echo=$ac_try;;
4783 esac
4784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4785   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4786   ac_status=$?
4787   grep -v '^ *+' conftest.er1 >conftest.err
4788   rm -f conftest.er1
4789   cat conftest.err >&5
4790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791   (exit $ac_status); } >/dev/null && {
4792          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4793          test ! -s conftest.err
4794        }; then
4795   ac_header_preproc=yes
4796 else
4797   echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4799
4800   ac_header_preproc=no
4801 fi
4802
4803 rm -f conftest.err conftest.$ac_ext
4804 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4805 echo "${ECHO_T}$ac_header_preproc" >&6; }
4806
4807 # So?  What about this header?
4808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4809   yes:no: )
4810     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4811 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4812     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4813 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4814     ac_header_preproc=yes
4815     ;;
4816   no:yes:* )
4817     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4818 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4819     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4820 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4821     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4822 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4823     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4824 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4825     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4826 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4827     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4828 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4829     ( cat <<\_ASBOX
4830 ## ------------------------------ ##
4831 ## Report this to bug-tar@gnu.org ##
4832 ## ------------------------------ ##
4833 _ASBOX
4834      ) | sed "s/^/$as_me: WARNING:     /" >&2
4835     ;;
4836 esac
4837 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4838 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4839 if test "${ac_cv_header_minix_config_h+set}" = set; then
4840   echo $ECHO_N "(cached) $ECHO_C" >&6
4841 else
4842   ac_cv_header_minix_config_h=$ac_header_preproc
4843 fi
4844 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4845 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4846
4847 fi
4848 if test $ac_cv_header_minix_config_h = yes; then
4849   MINIX=yes
4850 else
4851   MINIX=
4852 fi
4853
4854
4855   if test "$MINIX" = yes; then
4856
4857 cat >>confdefs.h <<\_ACEOF
4858 #define _POSIX_SOURCE 1
4859 _ACEOF
4860
4861
4862 cat >>confdefs.h <<\_ACEOF
4863 #define _POSIX_1_SOURCE 2
4864 _ACEOF
4865
4866
4867 cat >>confdefs.h <<\_ACEOF
4868 #define _MINIX 1
4869 _ACEOF
4870
4871   fi
4872
4873
4874
4875   { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4876 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4877 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4878   echo $ECHO_N "(cached) $ECHO_C" >&6
4879 else
4880   cat >conftest.$ac_ext <<_ACEOF
4881 /* confdefs.h.  */
4882 _ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h.  */
4886
4887 #         define __EXTENSIONS__ 1
4888           $ac_includes_default
4889 int
4890 main ()
4891 {
4892
4893   ;
4894   return 0;
4895 }
4896 _ACEOF
4897 rm -f conftest.$ac_objext
4898 if { (ac_try="$ac_compile"
4899 case "(($ac_try" in
4900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901   *) ac_try_echo=$ac_try;;
4902 esac
4903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4904   (eval "$ac_compile") 2>conftest.er1
4905   ac_status=$?
4906   grep -v '^ *+' conftest.er1 >conftest.err
4907   rm -f conftest.er1
4908   cat conftest.err >&5
4909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910   (exit $ac_status); } && {
4911          test -z "$ac_c_werror_flag" ||
4912          test ! -s conftest.err
4913        } && test -s conftest.$ac_objext; then
4914   ac_cv_safe_to_define___extensions__=yes
4915 else
4916   echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4918
4919         ac_cv_safe_to_define___extensions__=no
4920 fi
4921
4922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923 fi
4924 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4925 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4926   test $ac_cv_safe_to_define___extensions__ = yes &&
4927     cat >>confdefs.h <<\_ACEOF
4928 #define __EXTENSIONS__ 1
4929 _ACEOF
4930
4931   cat >>confdefs.h <<\_ACEOF
4932 #define _ALL_SOURCE 1
4933 _ACEOF
4934
4935   cat >>confdefs.h <<\_ACEOF
4936 #define _GNU_SOURCE 1
4937 _ACEOF
4938
4939   cat >>confdefs.h <<\_ACEOF
4940 #define _POSIX_PTHREAD_SEMANTICS 1
4941 _ACEOF
4942
4943   cat >>confdefs.h <<\_ACEOF
4944 #define _TANDEM_SOURCE 1
4945 _ACEOF
4946
4947
4948
4949 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4950 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
4951 if test "${ac_cv_sys_largefile_source+set}" = set; then
4952   echo $ECHO_N "(cached) $ECHO_C" >&6
4953 else
4954   while :; do
4955   cat >conftest.$ac_ext <<_ACEOF
4956 /* confdefs.h.  */
4957 _ACEOF
4958 cat confdefs.h >>conftest.$ac_ext
4959 cat >>conftest.$ac_ext <<_ACEOF
4960 /* end confdefs.h.  */
4961 #include <stdio.h>
4962 int
4963 main ()
4964 {
4965 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
4966   ;
4967   return 0;
4968 }
4969 _ACEOF
4970 rm -f conftest.$ac_objext conftest$ac_exeext
4971 if { (ac_try="$ac_link"
4972 case "(($ac_try" in
4973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974   *) ac_try_echo=$ac_try;;
4975 esac
4976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4977   (eval "$ac_link") 2>conftest.er1
4978   ac_status=$?
4979   grep -v '^ *+' conftest.er1 >conftest.err
4980   rm -f conftest.er1
4981   cat conftest.err >&5
4982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983   (exit $ac_status); } && {
4984          test -z "$ac_c_werror_flag" ||
4985          test ! -s conftest.err
4986        } && test -s conftest$ac_exeext &&
4987        $as_test_x conftest$ac_exeext; then
4988   ac_cv_sys_largefile_source=no; break
4989 else
4990   echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4992
4993
4994 fi
4995
4996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4997       conftest$ac_exeext conftest.$ac_ext
4998   cat >conftest.$ac_ext <<_ACEOF
4999 /* confdefs.h.  */
5000 _ACEOF
5001 cat confdefs.h >>conftest.$ac_ext
5002 cat >>conftest.$ac_ext <<_ACEOF
5003 /* end confdefs.h.  */
5004 #define _LARGEFILE_SOURCE 1
5005 #include <stdio.h>
5006 int
5007 main ()
5008 {
5009 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5010   ;
5011   return 0;
5012 }
5013 _ACEOF
5014 rm -f conftest.$ac_objext conftest$ac_exeext
5015 if { (ac_try="$ac_link"
5016 case "(($ac_try" in
5017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5018   *) ac_try_echo=$ac_try;;
5019 esac
5020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5021   (eval "$ac_link") 2>conftest.er1
5022   ac_status=$?
5023   grep -v '^ *+' conftest.er1 >conftest.err
5024   rm -f conftest.er1
5025   cat conftest.err >&5
5026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027   (exit $ac_status); } && {
5028          test -z "$ac_c_werror_flag" ||
5029          test ! -s conftest.err
5030        } && test -s conftest$ac_exeext &&
5031        $as_test_x conftest$ac_exeext; then
5032   ac_cv_sys_largefile_source=1; break
5033 else
5034   echo "$as_me: failed program was:" >&5
5035 sed 's/^/| /' conftest.$ac_ext >&5
5036
5037
5038 fi
5039
5040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5041       conftest$ac_exeext conftest.$ac_ext
5042   ac_cv_sys_largefile_source=unknown
5043   break
5044 done
5045 fi
5046 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5047 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
5048 case $ac_cv_sys_largefile_source in #(
5049   no | unknown) ;;
5050   *)
5051 cat >>confdefs.h <<_ACEOF
5052 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5053 _ACEOF
5054 ;;
5055 esac
5056 rm -f conftest*
5057
5058 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5059 # in glibc 2.1.3, but that breaks too many other things.
5060 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5061 if test $ac_cv_sys_largefile_source != unknown; then
5062
5063 cat >>confdefs.h <<\_ACEOF
5064 #define HAVE_FSEEKO 1
5065 _ACEOF
5066
5067 fi
5068
5069    case $ac_cv_prog_cc_stdc in
5070   no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
5071   *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
5072 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
5073 if test "${ac_cv_prog_cc_c99+set}" = set; then
5074   echo $ECHO_N "(cached) $ECHO_C" >&6
5075 else
5076   ac_cv_prog_cc_c99=no
5077 ac_save_CC=$CC
5078 cat >conftest.$ac_ext <<_ACEOF
5079 /* confdefs.h.  */
5080 _ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h.  */
5084 #include <stdarg.h>
5085 #include <stdbool.h>
5086 #include <stdlib.h>
5087 #include <wchar.h>
5088 #include <stdio.h>
5089
5090 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
5091 #define debug(...) fprintf (stderr, __VA_ARGS__)
5092 #define showlist(...) puts (#__VA_ARGS__)
5093 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5094 static void
5095 test_varargs_macros (void)
5096 {
5097   int x = 1234;
5098   int y = 5678;
5099   debug ("Flag");
5100   debug ("X = %d\n", x);
5101   showlist (The first, second, and third items.);
5102   report (x>y, "x is %d but y is %d", x, y);
5103 }
5104
5105 // Check long long types.
5106 #define BIG64 18446744073709551615ull
5107 #define BIG32 4294967295ul
5108 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5109 #if !BIG_OK
5110   your preprocessor is broken;
5111 #endif
5112 #if BIG_OK
5113 #else
5114   your preprocessor is broken;
5115 #endif
5116 static long long int bignum = -9223372036854775807LL;
5117 static unsigned long long int ubignum = BIG64;
5118
5119 struct incomplete_array
5120 {
5121   int datasize;
5122   double data[];
5123 };
5124
5125 struct named_init {
5126   int number;
5127   const wchar_t *name;
5128   double average;
5129 };
5130
5131 typedef const char *ccp;
5132
5133 static inline int
5134 test_restrict (ccp restrict text)
5135 {
5136   // See if C++-style comments work.
5137   // Iterate through items via the restricted pointer.
5138   // Also check for declarations in for loops.
5139   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5140     continue;
5141   return 0;
5142 }
5143
5144 // Check varargs and va_copy.
5145 static void
5146 test_varargs (const char *format, ...)
5147 {
5148   va_list args;
5149   va_start (args, format);
5150   va_list args_copy;
5151   va_copy (args_copy, args);
5152
5153   const char *str;
5154   int number;
5155   float fnumber;
5156
5157   while (*format)
5158     {
5159       switch (*format++)
5160         {
5161         case 's': // string
5162           str = va_arg (args_copy, const char *);
5163           break;
5164         case 'd': // int
5165           number = va_arg (args_copy, int);
5166           break;
5167         case 'f': // float
5168           fnumber = va_arg (args_copy, double);
5169           break;
5170         default:
5171           break;
5172         }
5173     }
5174   va_end (args_copy);
5175   va_end (args);
5176 }
5177
5178 int
5179 main ()
5180 {
5181
5182   // Check bool.
5183   _Bool success = false;
5184
5185   // Check restrict.
5186   if (test_restrict ("String literal") == 0)
5187     success = true;
5188   char *restrict newvar = "Another string";
5189
5190   // Check varargs.
5191   test_varargs ("s, d' f .", "string", 65, 34.234);
5192   test_varargs_macros ();
5193
5194   // Check flexible array members.
5195   struct incomplete_array *ia =
5196     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5197   ia->datasize = 10;
5198   for (int i = 0; i < ia->datasize; ++i)
5199     ia->data[i] = i * 1.234;
5200
5201   // Check named initializers.
5202   struct named_init ni = {
5203     .number = 34,
5204     .name = L"Test wide string",
5205     .average = 543.34343,
5206   };
5207
5208   ni.number = 58;
5209
5210   int dynamic_array[ni.number];
5211   dynamic_array[ni.number - 1] = 543;
5212
5213   // work around unused variable warnings
5214   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5215           || dynamic_array[ni.number - 1] != 543);
5216
5217   ;
5218   return 0;
5219 }
5220 _ACEOF
5221 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
5222 do
5223   CC="$ac_save_CC $ac_arg"
5224   rm -f conftest.$ac_objext
5225 if { (ac_try="$ac_compile"
5226 case "(($ac_try" in
5227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228   *) ac_try_echo=$ac_try;;
5229 esac
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231   (eval "$ac_compile") 2>conftest.er1
5232   ac_status=$?
5233   grep -v '^ *+' conftest.er1 >conftest.err
5234   rm -f conftest.er1
5235   cat conftest.err >&5
5236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237   (exit $ac_status); } && {
5238          test -z "$ac_c_werror_flag" ||
5239          test ! -s conftest.err
5240        } && test -s conftest.$ac_objext; then
5241   ac_cv_prog_cc_c99=$ac_arg
5242 else
5243   echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5245
5246
5247 fi
5248
5249 rm -f core conftest.err conftest.$ac_objext
5250   test "x$ac_cv_prog_cc_c99" != "xno" && break
5251 done
5252 rm -f conftest.$ac_ext
5253 CC=$ac_save_CC
5254
5255 fi
5256 # AC_CACHE_VAL
5257 case "x$ac_cv_prog_cc_c99" in
5258   x)
5259     { echo "$as_me:$LINENO: result: none needed" >&5
5260 echo "${ECHO_T}none needed" >&6; } ;;
5261   xno)
5262     { echo "$as_me:$LINENO: result: unsupported" >&5
5263 echo "${ECHO_T}unsupported" >&6; } ;;
5264   *)
5265     CC="$CC $ac_cv_prog_cc_c99"
5266     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
5267 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
5268 esac
5269 if test "x$ac_cv_prog_cc_c99" != xno; then
5270   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5271 else
5272   { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5273 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5274 if test "${ac_cv_prog_cc_c89+set}" = set; then
5275   echo $ECHO_N "(cached) $ECHO_C" >&6
5276 else
5277   ac_cv_prog_cc_c89=no
5278 ac_save_CC=$CC
5279 cat >conftest.$ac_ext <<_ACEOF
5280 /* confdefs.h.  */
5281 _ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h.  */
5285 #include <stdarg.h>
5286 #include <stdio.h>
5287 #include <sys/types.h>
5288 #include <sys/stat.h>
5289 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5290 struct buf { int x; };
5291 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5292 static char *e (p, i)
5293      char **p;
5294      int i;
5295 {
5296   return p[i];
5297 }
5298 static char *f (char * (*g) (char **, int), char **p, ...)
5299 {
5300   char *s;
5301   va_list v;
5302   va_start (v,p);
5303   s = g (p, va_arg (v,int));
5304   va_end (v);
5305   return s;
5306 }
5307
5308 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5309    function prototypes and stuff, but not '\xHH' hex character constants.
5310    These don't provoke an error unfortunately, instead are silently treated
5311    as 'x'.  The following induces an error, until -std is added to get
5312    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5313    array size at least.  It's necessary to write '\x00'==0 to get something
5314    that's true only with -std.  */
5315 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5316
5317 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5318    inside strings and character constants.  */
5319 #define FOO(x) 'x'
5320 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5321
5322 int test (int i, double x);
5323 struct s1 {int (*f) (int a);};
5324 struct s2 {int (*f) (double a);};
5325 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5326 int argc;
5327 char **argv;
5328 int
5329 main ()
5330 {
5331 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5332   ;
5333   return 0;
5334 }
5335 _ACEOF
5336 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5337         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5338 do
5339   CC="$ac_save_CC $ac_arg"
5340   rm -f conftest.$ac_objext
5341 if { (ac_try="$ac_compile"
5342 case "(($ac_try" in
5343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5344   *) ac_try_echo=$ac_try;;
5345 esac
5346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5347   (eval "$ac_compile") 2>conftest.er1
5348   ac_status=$?
5349   grep -v '^ *+' conftest.er1 >conftest.err
5350   rm -f conftest.er1
5351   cat conftest.err >&5
5352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353   (exit $ac_status); } && {
5354          test -z "$ac_c_werror_flag" ||
5355          test ! -s conftest.err
5356        } && test -s conftest.$ac_objext; then
5357   ac_cv_prog_cc_c89=$ac_arg
5358 else
5359   echo "$as_me: failed program was:" >&5
5360 sed 's/^/| /' conftest.$ac_ext >&5
5361
5362
5363 fi
5364
5365 rm -f core conftest.err conftest.$ac_objext
5366   test "x$ac_cv_prog_cc_c89" != "xno" && break
5367 done
5368 rm -f conftest.$ac_ext
5369 CC=$ac_save_CC
5370
5371 fi
5372 # AC_CACHE_VAL
5373 case "x$ac_cv_prog_cc_c89" in
5374   x)
5375     { echo "$as_me:$LINENO: result: none needed" >&5
5376 echo "${ECHO_T}none needed" >&6; } ;;
5377   xno)
5378     { echo "$as_me:$LINENO: result: unsupported" >&5
5379 echo "${ECHO_T}unsupported" >&6; } ;;
5380   *)
5381     CC="$CC $ac_cv_prog_cc_c89"
5382     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5383 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5384 esac
5385 if test "x$ac_cv_prog_cc_c89" != xno; then
5386   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5387 else
5388   ac_cv_prog_cc_stdc=no
5389 fi
5390
5391
5392 fi
5393
5394  ;;
5395 esac
5396   { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
5397 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
5398   if test "${ac_cv_prog_cc_stdc+set}" = set; then
5399   echo $ECHO_N "(cached) $ECHO_C" >&6
5400 fi
5401
5402   case $ac_cv_prog_cc_stdc in
5403   no) { echo "$as_me:$LINENO: result: unsupported" >&5
5404 echo "${ECHO_T}unsupported" >&6; } ;;
5405   '') { echo "$as_me:$LINENO: result: none needed" >&5
5406 echo "${ECHO_T}none needed" >&6; } ;;
5407   *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5408 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
5409 esac
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421 # Check whether --enable-largefile was given.
5422 if test "${enable_largefile+set}" = set; then
5423   enableval=$enable_largefile;
5424 fi
5425
5426 if test "$enable_largefile" != no; then
5427
5428   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5429 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5430 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5431   echo $ECHO_N "(cached) $ECHO_C" >&6
5432 else
5433   ac_cv_sys_largefile_CC=no
5434      if test "$GCC" != yes; then
5435        ac_save_CC=$CC
5436        while :; do
5437          # IRIX 6.2 and later do not support large files by default,
5438          # so use the C compiler's -n32 option if that helps.
5439          cat >conftest.$ac_ext <<_ACEOF
5440 /* confdefs.h.  */
5441 _ACEOF
5442 cat confdefs.h >>conftest.$ac_ext
5443 cat >>conftest.$ac_ext <<_ACEOF
5444 /* end confdefs.h.  */
5445 #include <sys/types.h>
5446  /* Check that off_t can represent 2**63 - 1 correctly.
5447     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5448     since some C++ compilers masquerading as C compilers
5449     incorrectly reject 9223372036854775807.  */
5450 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5451   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5452                        && LARGE_OFF_T % 2147483647 == 1)
5453                       ? 1 : -1];
5454 int
5455 main ()
5456 {
5457
5458   ;
5459   return 0;
5460 }
5461 _ACEOF
5462          rm -f conftest.$ac_objext
5463 if { (ac_try="$ac_compile"
5464 case "(($ac_try" in
5465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466   *) ac_try_echo=$ac_try;;
5467 esac
5468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5469   (eval "$ac_compile") 2>conftest.er1
5470   ac_status=$?
5471   grep -v '^ *+' conftest.er1 >conftest.err
5472   rm -f conftest.er1
5473   cat conftest.err >&5
5474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475   (exit $ac_status); } && {
5476          test -z "$ac_c_werror_flag" ||
5477          test ! -s conftest.err
5478        } && test -s conftest.$ac_objext; then
5479   break
5480 else
5481   echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5483
5484
5485 fi
5486
5487 rm -f core conftest.err conftest.$ac_objext
5488          CC="$CC -n32"
5489          rm -f conftest.$ac_objext
5490 if { (ac_try="$ac_compile"
5491 case "(($ac_try" in
5492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493   *) ac_try_echo=$ac_try;;
5494 esac
5495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496   (eval "$ac_compile") 2>conftest.er1
5497   ac_status=$?
5498   grep -v '^ *+' conftest.er1 >conftest.err
5499   rm -f conftest.er1
5500   cat conftest.err >&5
5501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502   (exit $ac_status); } && {
5503          test -z "$ac_c_werror_flag" ||
5504          test ! -s conftest.err
5505        } && test -s conftest.$ac_objext; then
5506   ac_cv_sys_largefile_CC=' -n32'; break
5507 else
5508   echo "$as_me: failed program was:" >&5
5509 sed 's/^/| /' conftest.$ac_ext >&5
5510
5511
5512 fi
5513
5514 rm -f core conftest.err conftest.$ac_objext
5515          break
5516        done
5517        CC=$ac_save_CC
5518        rm -f conftest.$ac_ext
5519     fi
5520 fi
5521 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5522 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5523   if test "$ac_cv_sys_largefile_CC" != no; then
5524     CC=$CC$ac_cv_sys_largefile_CC
5525   fi
5526
5527   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5528 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5529 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5530   echo $ECHO_N "(cached) $ECHO_C" >&6
5531 else
5532   while :; do
5533   cat >conftest.$ac_ext <<_ACEOF
5534 /* confdefs.h.  */
5535 _ACEOF
5536 cat confdefs.h >>conftest.$ac_ext
5537 cat >>conftest.$ac_ext <<_ACEOF
5538 /* end confdefs.h.  */
5539 #include <sys/types.h>
5540  /* Check that off_t can represent 2**63 - 1 correctly.
5541     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5542     since some C++ compilers masquerading as C compilers
5543     incorrectly reject 9223372036854775807.  */
5544 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5545   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5546                        && LARGE_OFF_T % 2147483647 == 1)
5547                       ? 1 : -1];
5548 int
5549 main ()
5550 {
5551
5552   ;
5553   return 0;
5554 }
5555 _ACEOF
5556 rm -f conftest.$ac_objext
5557 if { (ac_try="$ac_compile"
5558 case "(($ac_try" in
5559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560   *) ac_try_echo=$ac_try;;
5561 esac
5562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5563   (eval "$ac_compile") 2>conftest.er1
5564   ac_status=$?
5565   grep -v '^ *+' conftest.er1 >conftest.err
5566   rm -f conftest.er1
5567   cat conftest.err >&5
5568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569   (exit $ac_status); } && {
5570          test -z "$ac_c_werror_flag" ||
5571          test ! -s conftest.err
5572        } && test -s conftest.$ac_objext; then
5573   ac_cv_sys_file_offset_bits=no; break
5574 else
5575   echo "$as_me: failed program was:" >&5
5576 sed 's/^/| /' conftest.$ac_ext >&5
5577
5578
5579 fi
5580
5581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582   cat >conftest.$ac_ext <<_ACEOF
5583 /* confdefs.h.  */
5584 _ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h.  */
5588 #define _FILE_OFFSET_BITS 64
5589 #include <sys/types.h>
5590  /* Check that off_t can represent 2**63 - 1 correctly.
5591     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5592     since some C++ compilers masquerading as C compilers
5593     incorrectly reject 9223372036854775807.  */
5594 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5595   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5596                        && LARGE_OFF_T % 2147483647 == 1)
5597                       ? 1 : -1];
5598 int
5599 main ()
5600 {
5601
5602   ;
5603   return 0;
5604 }
5605 _ACEOF
5606 rm -f conftest.$ac_objext
5607 if { (ac_try="$ac_compile"
5608 case "(($ac_try" in
5609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5610   *) ac_try_echo=$ac_try;;
5611 esac
5612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5613   (eval "$ac_compile") 2>conftest.er1
5614   ac_status=$?
5615   grep -v '^ *+' conftest.er1 >conftest.err
5616   rm -f conftest.er1
5617   cat conftest.err >&5
5618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619   (exit $ac_status); } && {
5620          test -z "$ac_c_werror_flag" ||
5621          test ! -s conftest.err
5622        } && test -s conftest.$ac_objext; then
5623   ac_cv_sys_file_offset_bits=64; break
5624 else
5625   echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5627
5628
5629 fi
5630
5631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632   ac_cv_sys_file_offset_bits=unknown
5633   break
5634 done
5635 fi
5636 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5637 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5638 case $ac_cv_sys_file_offset_bits in #(
5639   no | unknown) ;;
5640   *)
5641 cat >>confdefs.h <<_ACEOF
5642 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5643 _ACEOF
5644 ;;
5645 esac
5646 rm -f conftest*
5647   if test $ac_cv_sys_file_offset_bits = unknown; then
5648     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5649 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5650 if test "${ac_cv_sys_large_files+set}" = set; then
5651   echo $ECHO_N "(cached) $ECHO_C" >&6
5652 else
5653   while :; do
5654   cat >conftest.$ac_ext <<_ACEOF
5655 /* confdefs.h.  */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h.  */
5660 #include <sys/types.h>
5661  /* Check that off_t can represent 2**63 - 1 correctly.
5662     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5663     since some C++ compilers masquerading as C compilers
5664     incorrectly reject 9223372036854775807.  */
5665 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5666   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5667                        && LARGE_OFF_T % 2147483647 == 1)
5668                       ? 1 : -1];
5669 int
5670 main ()
5671 {
5672
5673   ;
5674   return 0;
5675 }
5676 _ACEOF
5677 rm -f conftest.$ac_objext
5678 if { (ac_try="$ac_compile"
5679 case "(($ac_try" in
5680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5681   *) ac_try_echo=$ac_try;;
5682 esac
5683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684   (eval "$ac_compile") 2>conftest.er1
5685   ac_status=$?
5686   grep -v '^ *+' conftest.er1 >conftest.err
5687   rm -f conftest.er1
5688   cat conftest.err >&5
5689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690   (exit $ac_status); } && {
5691          test -z "$ac_c_werror_flag" ||
5692          test ! -s conftest.err
5693        } && test -s conftest.$ac_objext; then
5694   ac_cv_sys_large_files=no; break
5695 else
5696   echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5698
5699
5700 fi
5701
5702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703   cat >conftest.$ac_ext <<_ACEOF
5704 /* confdefs.h.  */
5705 _ACEOF
5706 cat confdefs.h >>conftest.$ac_ext
5707 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h.  */
5709 #define _LARGE_FILES 1
5710 #include <sys/types.h>
5711  /* Check that off_t can represent 2**63 - 1 correctly.
5712     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5713     since some C++ compilers masquerading as C compilers
5714     incorrectly reject 9223372036854775807.  */
5715 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5716   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5717                        && LARGE_OFF_T % 2147483647 == 1)
5718                       ? 1 : -1];
5719 int
5720 main ()
5721 {
5722
5723   ;
5724   return 0;
5725 }
5726 _ACEOF
5727 rm -f conftest.$ac_objext
5728 if { (ac_try="$ac_compile"
5729 case "(($ac_try" in
5730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731   *) ac_try_echo=$ac_try;;
5732 esac
5733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734   (eval "$ac_compile") 2>conftest.er1
5735   ac_status=$?
5736   grep -v '^ *+' conftest.er1 >conftest.err
5737   rm -f conftest.er1
5738   cat conftest.err >&5
5739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740   (exit $ac_status); } && {
5741          test -z "$ac_c_werror_flag" ||
5742          test ! -s conftest.err
5743        } && test -s conftest.$ac_objext; then
5744   ac_cv_sys_large_files=1; break
5745 else
5746   echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5748
5749
5750 fi
5751
5752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5753   ac_cv_sys_large_files=unknown
5754   break
5755 done
5756 fi
5757 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5758 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5759 case $ac_cv_sys_large_files in #(
5760   no | unknown) ;;
5761   *)
5762 cat >>confdefs.h <<_ACEOF
5763 #define _LARGE_FILES $ac_cv_sys_large_files
5764 _ACEOF
5765 ;;
5766 esac
5767 rm -f conftest*
5768   fi
5769 fi
5770
5771
5772         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5773 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
5774 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5775   echo $ECHO_N "(cached) $ECHO_C" >&6
5776 else
5777   ac_check_lib_save_LIBS=$LIBS
5778 LIBS="-lcposix  $LIBS"
5779 cat >conftest.$ac_ext <<_ACEOF
5780 /* confdefs.h.  */
5781 _ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h.  */
5785
5786 /* Override any GCC internal prototype to avoid an error.
5787    Use char because int might match the return type of a GCC
5788    builtin and then its argument prototype would still apply.  */
5789 #ifdef __cplusplus
5790 extern "C"
5791 #endif
5792 char strerror ();
5793 int
5794 main ()
5795 {
5796 return strerror ();
5797   ;
5798   return 0;
5799 }
5800 _ACEOF
5801 rm -f conftest.$ac_objext conftest$ac_exeext
5802 if { (ac_try="$ac_link"
5803 case "(($ac_try" in
5804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805   *) ac_try_echo=$ac_try;;
5806 esac
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808   (eval "$ac_link") 2>conftest.er1
5809   ac_status=$?
5810   grep -v '^ *+' conftest.er1 >conftest.err
5811   rm -f conftest.er1
5812   cat conftest.err >&5
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); } && {
5815          test -z "$ac_c_werror_flag" ||
5816          test ! -s conftest.err
5817        } && test -s conftest$ac_exeext &&
5818        $as_test_x conftest$ac_exeext; then
5819   ac_cv_lib_cposix_strerror=yes
5820 else
5821   echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5823
5824         ac_cv_lib_cposix_strerror=no
5825 fi
5826
5827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5828       conftest$ac_exeext conftest.$ac_ext
5829 LIBS=$ac_check_lib_save_LIBS
5830 fi
5831 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5832 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
5833 if test $ac_cv_lib_cposix_strerror = yes; then
5834   LIBS="$LIBS -lcposix"
5835 fi
5836
5837
5838
5839 { echo "$as_me:$LINENO: checking for inline" >&5
5840 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5841 if test "${ac_cv_c_inline+set}" = set; then
5842   echo $ECHO_N "(cached) $ECHO_C" >&6
5843 else
5844   ac_cv_c_inline=no
5845 for ac_kw in inline __inline__ __inline; do
5846   cat >conftest.$ac_ext <<_ACEOF
5847 /* confdefs.h.  */
5848 _ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h.  */
5852 #ifndef __cplusplus
5853 typedef int foo_t;
5854 static $ac_kw foo_t static_foo () {return 0; }
5855 $ac_kw foo_t foo () {return 0; }
5856 #endif
5857
5858 _ACEOF
5859 rm -f conftest.$ac_objext
5860 if { (ac_try="$ac_compile"
5861 case "(($ac_try" in
5862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863   *) ac_try_echo=$ac_try;;
5864 esac
5865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866   (eval "$ac_compile") 2>conftest.er1
5867   ac_status=$?
5868   grep -v '^ *+' conftest.er1 >conftest.err
5869   rm -f conftest.er1
5870   cat conftest.err >&5
5871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); } && {
5873          test -z "$ac_c_werror_flag" ||
5874          test ! -s conftest.err
5875        } && test -s conftest.$ac_objext; then
5876   ac_cv_c_inline=$ac_kw
5877 else
5878   echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5880
5881
5882 fi
5883
5884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5885   test "$ac_cv_c_inline" != no && break
5886 done
5887
5888 fi
5889 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5890 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5891
5892
5893 case $ac_cv_c_inline in
5894   inline | yes) ;;
5895   *)
5896     case $ac_cv_c_inline in
5897       no) ac_val=;;
5898       *) ac_val=$ac_cv_c_inline;;
5899     esac
5900     cat >>confdefs.h <<_ACEOF
5901 #ifndef __cplusplus
5902 #define inline $ac_val
5903 #endif
5904 _ACEOF
5905     ;;
5906 esac
5907
5908
5909
5910
5911
5912
5913 for ac_header in $ac_header_list
5914 do
5915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5917   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5920   echo $ECHO_N "(cached) $ECHO_C" >&6
5921 fi
5922 ac_res=`eval echo '${'$as_ac_Header'}'`
5923                { echo "$as_me:$LINENO: result: $ac_res" >&5
5924 echo "${ECHO_T}$ac_res" >&6; }
5925 else
5926   # Is the header compilable?
5927 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5929 cat >conftest.$ac_ext <<_ACEOF
5930 /* confdefs.h.  */
5931 _ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h.  */
5935 $ac_includes_default
5936 #include <$ac_header>
5937 _ACEOF
5938 rm -f conftest.$ac_objext
5939 if { (ac_try="$ac_compile"
5940 case "(($ac_try" in
5941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942   *) ac_try_echo=$ac_try;;
5943 esac
5944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5945   (eval "$ac_compile") 2>conftest.er1
5946   ac_status=$?
5947   grep -v '^ *+' conftest.er1 >conftest.err
5948   rm -f conftest.er1
5949   cat conftest.err >&5
5950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951   (exit $ac_status); } && {
5952          test -z "$ac_c_werror_flag" ||
5953          test ! -s conftest.err
5954        } && test -s conftest.$ac_objext; then
5955   ac_header_compiler=yes
5956 else
5957   echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5959
5960         ac_header_compiler=no
5961 fi
5962
5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5965 echo "${ECHO_T}$ac_header_compiler" >&6; }
5966
5967 # Is the header present?
5968 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5970 cat >conftest.$ac_ext <<_ACEOF
5971 /* confdefs.h.  */
5972 _ACEOF
5973 cat confdefs.h >>conftest.$ac_ext
5974 cat >>conftest.$ac_ext <<_ACEOF
5975 /* end confdefs.h.  */
5976 #include <$ac_header>
5977 _ACEOF
5978 if { (ac_try="$ac_cpp conftest.$ac_ext"
5979 case "(($ac_try" in
5980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981   *) ac_try_echo=$ac_try;;
5982 esac
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5985   ac_status=$?
5986   grep -v '^ *+' conftest.er1 >conftest.err
5987   rm -f conftest.er1
5988   cat conftest.err >&5
5989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990   (exit $ac_status); } >/dev/null && {
5991          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5992          test ! -s conftest.err
5993        }; then
5994   ac_header_preproc=yes
5995 else
5996   echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5998
5999   ac_header_preproc=no
6000 fi
6001
6002 rm -f conftest.err conftest.$ac_ext
6003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6004 echo "${ECHO_T}$ac_header_preproc" >&6; }
6005
6006 # So?  What about this header?
6007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6008   yes:no: )
6009     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6011     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6013     ac_header_preproc=yes
6014     ;;
6015   no:yes:* )
6016     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6018     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6019 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6020     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6022     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6023 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6024     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6026     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6028     ( cat <<\_ASBOX
6029 ## ------------------------------ ##
6030 ## Report this to bug-tar@gnu.org ##
6031 ## ------------------------------ ##
6032 _ASBOX
6033      ) | sed "s/^/$as_me: WARNING:     /" >&2
6034     ;;
6035 esac
6036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6039   echo $ECHO_N "(cached) $ECHO_C" >&6
6040 else
6041   eval "$as_ac_Header=\$ac_header_preproc"
6042 fi
6043 ac_res=`eval echo '${'$as_ac_Header'}'`
6044                { echo "$as_me:$LINENO: result: $ac_res" >&5
6045 echo "${ECHO_T}$ac_res" >&6; }
6046
6047 fi
6048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6049   cat >>confdefs.h <<_ACEOF
6050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6051 _ACEOF
6052
6053 fi
6054
6055 done
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139 for ac_header in sys/buf.h
6140 do
6141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6145   echo $ECHO_N "(cached) $ECHO_C" >&6
6146 else
6147   cat >conftest.$ac_ext <<_ACEOF
6148 /* confdefs.h.  */
6149 _ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h.  */
6153 #if HAVE_SYS_PARAM_H
6154 #include <sys/param.h>
6155 #endif
6156
6157 #include <$ac_header>
6158 _ACEOF
6159 rm -f conftest.$ac_objext
6160 if { (ac_try="$ac_compile"
6161 case "(($ac_try" in
6162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163   *) ac_try_echo=$ac_try;;
6164 esac
6165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166   (eval "$ac_compile") 2>conftest.er1
6167   ac_status=$?
6168   grep -v '^ *+' conftest.er1 >conftest.err
6169   rm -f conftest.er1
6170   cat conftest.err >&5
6171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172   (exit $ac_status); } && {
6173          test -z "$ac_c_werror_flag" ||
6174          test ! -s conftest.err
6175        } && test -s conftest.$ac_objext; then
6176   eval "$as_ac_Header=yes"
6177 else
6178   echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6180
6181         eval "$as_ac_Header=no"
6182 fi
6183
6184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6185 fi
6186 ac_res=`eval echo '${'$as_ac_Header'}'`
6187                { echo "$as_me:$LINENO: result: $ac_res" >&5
6188 echo "${ECHO_T}$ac_res" >&6; }
6189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6190   cat >>confdefs.h <<_ACEOF
6191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6192 _ACEOF
6193
6194 fi
6195
6196 done
6197
6198
6199 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6200 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6201 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6202   echo $ECHO_N "(cached) $ECHO_C" >&6
6203 else
6204   cat >conftest.$ac_ext <<_ACEOF
6205 /* confdefs.h.  */
6206 _ACEOF
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h.  */
6210 #include <sys/types.h>
6211 #include <sys/wait.h>
6212 #ifndef WEXITSTATUS
6213 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6214 #endif
6215 #ifndef WIFEXITED
6216 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6217 #endif
6218
6219 int
6220 main ()
6221 {
6222   int s;
6223   wait (&s);
6224   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6225   ;
6226   return 0;
6227 }
6228 _ACEOF
6229 rm -f conftest.$ac_objext
6230 if { (ac_try="$ac_compile"
6231 case "(($ac_try" in
6232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6233   *) ac_try_echo=$ac_try;;
6234 esac
6235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6236   (eval "$ac_compile") 2>conftest.er1
6237   ac_status=$?
6238   grep -v '^ *+' conftest.er1 >conftest.err
6239   rm -f conftest.er1
6240   cat conftest.err >&5
6241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242   (exit $ac_status); } && {
6243          test -z "$ac_c_werror_flag" ||
6244          test ! -s conftest.err
6245        } && test -s conftest.$ac_objext; then
6246   ac_cv_header_sys_wait_h=yes
6247 else
6248   echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6250
6251         ac_cv_header_sys_wait_h=no
6252 fi
6253
6254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6255 fi
6256 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6257 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6258 if test $ac_cv_header_sys_wait_h = yes; then
6259
6260 cat >>confdefs.h <<\_ACEOF
6261 #define HAVE_SYS_WAIT_H 1
6262 _ACEOF
6263
6264 fi
6265
6266 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
6267 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
6268 if test "${ac_cv_header_stdbool_h+set}" = set; then
6269   echo $ECHO_N "(cached) $ECHO_C" >&6
6270 else
6271   cat >conftest.$ac_ext <<_ACEOF
6272 /* confdefs.h.  */
6273 _ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h.  */
6277
6278           #include <stdbool.h>
6279           #ifndef bool
6280            "error: bool is not defined"
6281           #endif
6282           #ifndef false
6283            "error: false is not defined"
6284           #endif
6285           #if false
6286            "error: false is not 0"
6287           #endif
6288           #ifndef true
6289            "error: true is not defined"
6290           #endif
6291           #if true != 1
6292            "error: true is not 1"
6293           #endif
6294           #ifndef __bool_true_false_are_defined
6295            "error: __bool_true_false_are_defined is not defined"
6296           #endif
6297
6298           struct s { _Bool s: 1; _Bool t; } s;
6299
6300           char a[true == 1 ? 1 : -1];
6301           char b[false == 0 ? 1 : -1];
6302           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6303           char d[(bool) 0.5 == true ? 1 : -1];
6304           bool e = &s;
6305           char f[(_Bool) 0.0 == false ? 1 : -1];
6306           char g[true];
6307           char h[sizeof (_Bool)];
6308           char i[sizeof s.t];
6309           enum { j = false, k = true, l = false * true, m = true * 256 };
6310           _Bool n[m];
6311           char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6312           char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
6313           #if defined __xlc__ || defined __GNUC__
6314            /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
6315               reported by James Lemley on 2005-10-05; see
6316               http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
6317               This test is not quite right, since xlc is allowed to
6318               reject this program, as the initializer for xlcbug is
6319               not one of the forms that C requires support for.
6320               However, doing the test right would require a run-time
6321               test, and that would make cross-compilation harder.
6322               Let us hope that IBM fixes the xlc bug, and also adds
6323               support for this kind of constant expression.  In the
6324               meantime, this test will reject xlc, which is OK, since
6325               our stdbool.h substitute should suffice.  We also test
6326               this with GCC, where it should work, to detect more
6327               quickly whether someone messes up the test in the
6328               future.  */
6329            char digs[] = "0123456789";
6330            int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
6331           #endif
6332           /* Catch a bug in an HP-UX C compiler.  See
6333              http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6334              http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6335            */
6336           _Bool q = true;
6337           _Bool *pq = &q;
6338
6339 int
6340 main ()
6341 {
6342
6343           *pq |= q;
6344           *pq |= ! q;
6345           /* Refer to every declared value, to avoid compiler optimizations.  */
6346           return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
6347                   + !m + !n + !o + !p + !q + !pq);
6348
6349   ;
6350   return 0;
6351 }
6352 _ACEOF
6353 rm -f conftest.$ac_objext
6354 if { (ac_try="$ac_compile"
6355 case "(($ac_try" in
6356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6357   *) ac_try_echo=$ac_try;;
6358 esac
6359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360   (eval "$ac_compile") 2>conftest.er1
6361   ac_status=$?
6362   grep -v '^ *+' conftest.er1 >conftest.err
6363   rm -f conftest.er1
6364   cat conftest.err >&5
6365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366   (exit $ac_status); } && {
6367          test -z "$ac_c_werror_flag" ||
6368          test ! -s conftest.err
6369        } && test -s conftest.$ac_objext; then
6370   ac_cv_header_stdbool_h=yes
6371 else
6372   echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6374
6375         ac_cv_header_stdbool_h=no
6376 fi
6377
6378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6379 fi
6380 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
6381 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
6382    { echo "$as_me:$LINENO: checking for _Bool" >&5
6383 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
6384 if test "${ac_cv_type__Bool+set}" = set; then
6385   echo $ECHO_N "(cached) $ECHO_C" >&6
6386 else
6387   cat >conftest.$ac_ext <<_ACEOF
6388 /* confdefs.h.  */
6389 _ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h.  */
6393 $ac_includes_default
6394 typedef _Bool ac__type_new_;
6395 int
6396 main ()
6397 {
6398 if ((ac__type_new_ *) 0)
6399   return 0;
6400 if (sizeof (ac__type_new_))
6401   return 0;
6402   ;
6403   return 0;
6404 }
6405 _ACEOF
6406 rm -f conftest.$ac_objext
6407 if { (ac_try="$ac_compile"
6408 case "(($ac_try" in
6409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6410   *) ac_try_echo=$ac_try;;
6411 esac
6412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6413   (eval "$ac_compile") 2>conftest.er1
6414   ac_status=$?
6415   grep -v '^ *+' conftest.er1 >conftest.err
6416   rm -f conftest.er1
6417   cat conftest.err >&5
6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); } && {
6420          test -z "$ac_c_werror_flag" ||
6421          test ! -s conftest.err
6422        } && test -s conftest.$ac_objext; then
6423   ac_cv_type__Bool=yes
6424 else
6425   echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6427
6428         ac_cv_type__Bool=no
6429 fi
6430
6431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6432 fi
6433 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
6434 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
6435 if test $ac_cv_type__Bool = yes; then
6436
6437 cat >>confdefs.h <<_ACEOF
6438 #define HAVE__BOOL 1
6439 _ACEOF
6440
6441
6442 fi
6443
6444    if test $ac_cv_header_stdbool_h = yes; then
6445
6446 cat >>confdefs.h <<\_ACEOF
6447 #define HAVE_STDBOOL_H 1
6448 _ACEOF
6449
6450    fi
6451
6452
6453
6454   # Define two additional variables used in the Makefile substitution.
6455
6456   if test "$ac_cv_header_stdbool_h" = yes; then
6457     STDBOOL_H=''
6458   else
6459     STDBOOL_H='stdbool.h'
6460   fi
6461
6462
6463   if test "$ac_cv_type__Bool" = yes; then
6464     HAVE__BOOL=1
6465   else
6466     HAVE__BOOL=0
6467   fi
6468
6469
6470
6471
6472
6473
6474
6475
6476 ac_header_dirent=no
6477 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6478   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6479 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6480 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
6481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6482   echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484   cat >conftest.$ac_ext <<_ACEOF
6485 /* confdefs.h.  */
6486 _ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h.  */
6490 #include <sys/types.h>
6491 #include <$ac_hdr>
6492
6493 int
6494 main ()
6495 {
6496 if ((DIR *) 0)
6497 return 0;
6498   ;
6499   return 0;
6500 }
6501 _ACEOF
6502 rm -f conftest.$ac_objext
6503 if { (ac_try="$ac_compile"
6504 case "(($ac_try" in
6505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6506   *) ac_try_echo=$ac_try;;
6507 esac
6508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6509   (eval "$ac_compile") 2>conftest.er1
6510   ac_status=$?
6511   grep -v '^ *+' conftest.er1 >conftest.err
6512   rm -f conftest.er1
6513   cat conftest.err >&5
6514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515   (exit $ac_status); } && {
6516          test -z "$ac_c_werror_flag" ||
6517          test ! -s conftest.err
6518        } && test -s conftest.$ac_objext; then
6519   eval "$as_ac_Header=yes"
6520 else
6521   echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.$ac_ext >&5
6523
6524         eval "$as_ac_Header=no"
6525 fi
6526
6527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528 fi
6529 ac_res=`eval echo '${'$as_ac_Header'}'`
6530                { echo "$as_me:$LINENO: result: $ac_res" >&5
6531 echo "${ECHO_T}$ac_res" >&6; }
6532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6533   cat >>confdefs.h <<_ACEOF
6534 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6535 _ACEOF
6536
6537 ac_header_dirent=$ac_hdr; break
6538 fi
6539
6540 done
6541 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6542 if test $ac_header_dirent = dirent.h; then
6543   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6544 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6545 if test "${ac_cv_search_opendir+set}" = set; then
6546   echo $ECHO_N "(cached) $ECHO_C" >&6
6547 else
6548   ac_func_search_save_LIBS=$LIBS
6549 cat >conftest.$ac_ext <<_ACEOF
6550 /* confdefs.h.  */
6551 _ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h.  */
6555
6556 /* Override any GCC internal prototype to avoid an error.
6557    Use char because int might match the return type of a GCC
6558    builtin and then its argument prototype would still apply.  */
6559 #ifdef __cplusplus
6560 extern "C"
6561 #endif
6562 char opendir ();
6563 int
6564 main ()
6565 {
6566 return opendir ();
6567   ;
6568   return 0;
6569 }
6570 _ACEOF
6571 for ac_lib in '' dir; do
6572   if test -z "$ac_lib"; then
6573     ac_res="none required"
6574   else
6575     ac_res=-l$ac_lib
6576     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6577   fi
6578   rm -f conftest.$ac_objext conftest$ac_exeext
6579 if { (ac_try="$ac_link"
6580 case "(($ac_try" in
6581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582   *) ac_try_echo=$ac_try;;
6583 esac
6584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585   (eval "$ac_link") 2>conftest.er1
6586   ac_status=$?
6587   grep -v '^ *+' conftest.er1 >conftest.err
6588   rm -f conftest.er1
6589   cat conftest.err >&5
6590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591   (exit $ac_status); } && {
6592          test -z "$ac_c_werror_flag" ||
6593          test ! -s conftest.err
6594        } && test -s conftest$ac_exeext &&
6595        $as_test_x conftest$ac_exeext; then
6596   ac_cv_search_opendir=$ac_res
6597 else
6598   echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6600
6601
6602 fi
6603
6604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6605       conftest$ac_exeext
6606   if test "${ac_cv_search_opendir+set}" = set; then
6607   break
6608 fi
6609 done
6610 if test "${ac_cv_search_opendir+set}" = set; then
6611   :
6612 else
6613   ac_cv_search_opendir=no
6614 fi
6615 rm conftest.$ac_ext
6616 LIBS=$ac_func_search_save_LIBS
6617 fi
6618 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6619 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6620 ac_res=$ac_cv_search_opendir
6621 if test "$ac_res" != no; then
6622   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6623
6624 fi
6625
6626 else
6627   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6628 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6629 if test "${ac_cv_search_opendir+set}" = set; then
6630   echo $ECHO_N "(cached) $ECHO_C" >&6
6631 else
6632   ac_func_search_save_LIBS=$LIBS
6633 cat >conftest.$ac_ext <<_ACEOF
6634 /* confdefs.h.  */
6635 _ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h.  */
6639
6640 /* Override any GCC internal prototype to avoid an error.
6641    Use char because int might match the return type of a GCC
6642    builtin and then its argument prototype would still apply.  */
6643 #ifdef __cplusplus
6644 extern "C"
6645 #endif
6646 char opendir ();
6647 int
6648 main ()
6649 {
6650 return opendir ();
6651   ;
6652   return 0;
6653 }
6654 _ACEOF
6655 for ac_lib in '' x; do
6656   if test -z "$ac_lib"; then
6657     ac_res="none required"
6658   else
6659     ac_res=-l$ac_lib
6660     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6661   fi
6662   rm -f conftest.$ac_objext conftest$ac_exeext
6663 if { (ac_try="$ac_link"
6664 case "(($ac_try" in
6665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6666   *) ac_try_echo=$ac_try;;
6667 esac
6668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6669   (eval "$ac_link") 2>conftest.er1
6670   ac_status=$?
6671   grep -v '^ *+' conftest.er1 >conftest.err
6672   rm -f conftest.er1
6673   cat conftest.err >&5
6674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675   (exit $ac_status); } && {
6676          test -z "$ac_c_werror_flag" ||
6677          test ! -s conftest.err
6678        } && test -s conftest$ac_exeext &&
6679        $as_test_x conftest$ac_exeext; then
6680   ac_cv_search_opendir=$ac_res
6681 else
6682   echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6684
6685
6686 fi
6687
6688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6689       conftest$ac_exeext
6690   if test "${ac_cv_search_opendir+set}" = set; then
6691   break
6692 fi
6693 done
6694 if test "${ac_cv_search_opendir+set}" = set; then
6695   :
6696 else
6697   ac_cv_search_opendir=no
6698 fi
6699 rm conftest.$ac_ext
6700 LIBS=$ac_func_search_save_LIBS
6701 fi
6702 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6703 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6704 ac_res=$ac_cv_search_opendir
6705 if test "$ac_res" != no; then
6706   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6707
6708 fi
6709
6710 fi
6711
6712 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6713 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6714 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6715   echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717   cat >conftest.$ac_ext <<_ACEOF
6718 /* confdefs.h.  */
6719 _ACEOF
6720 cat confdefs.h >>conftest.$ac_ext
6721 cat >>conftest.$ac_ext <<_ACEOF
6722 /* end confdefs.h.  */
6723 #include <sys/types.h>
6724 int
6725 main ()
6726 {
6727 return makedev(0, 0);
6728   ;
6729   return 0;
6730 }
6731 _ACEOF
6732 rm -f conftest.$ac_objext conftest$ac_exeext
6733 if { (ac_try="$ac_link"
6734 case "(($ac_try" in
6735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736   *) ac_try_echo=$ac_try;;
6737 esac
6738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6739   (eval "$ac_link") 2>conftest.er1
6740   ac_status=$?
6741   grep -v '^ *+' conftest.er1 >conftest.err
6742   rm -f conftest.er1
6743   cat conftest.err >&5
6744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745   (exit $ac_status); } && {
6746          test -z "$ac_c_werror_flag" ||
6747          test ! -s conftest.err
6748        } && test -s conftest$ac_exeext &&
6749        $as_test_x conftest$ac_exeext; then
6750   ac_cv_header_sys_types_h_makedev=yes
6751 else
6752   echo "$as_me: failed program was:" >&5
6753 sed 's/^/| /' conftest.$ac_ext >&5
6754
6755         ac_cv_header_sys_types_h_makedev=no
6756 fi
6757
6758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6759       conftest$ac_exeext conftest.$ac_ext
6760
6761 fi
6762 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6763 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6764
6765 if test $ac_cv_header_sys_types_h_makedev = no; then
6766 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6767   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6768 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6769 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6770   echo $ECHO_N "(cached) $ECHO_C" >&6
6771 fi
6772 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6773 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6774 else
6775   # Is the header compilable?
6776 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6777 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6778 cat >conftest.$ac_ext <<_ACEOF
6779 /* confdefs.h.  */
6780 _ACEOF
6781 cat confdefs.h >>conftest.$ac_ext
6782 cat >>conftest.$ac_ext <<_ACEOF
6783 /* end confdefs.h.  */
6784 $ac_includes_default
6785 #include <sys/mkdev.h>
6786 _ACEOF
6787 rm -f conftest.$ac_objext
6788 if { (ac_try="$ac_compile"
6789 case "(($ac_try" in
6790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6791   *) ac_try_echo=$ac_try;;
6792 esac
6793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6794   (eval "$ac_compile") 2>conftest.er1
6795   ac_status=$?
6796   grep -v '^ *+' conftest.er1 >conftest.err
6797   rm -f conftest.er1
6798   cat conftest.err >&5
6799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800   (exit $ac_status); } && {
6801          test -z "$ac_c_werror_flag" ||
6802          test ! -s conftest.err
6803        } && test -s conftest.$ac_objext; then
6804   ac_header_compiler=yes
6805 else
6806   echo "$as_me: failed program was:" >&5
6807 sed 's/^/| /' conftest.$ac_ext >&5
6808
6809         ac_header_compiler=no
6810 fi
6811
6812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6814 echo "${ECHO_T}$ac_header_compiler" >&6; }
6815
6816 # Is the header present?
6817 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6818 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6819 cat >conftest.$ac_ext <<_ACEOF
6820 /* confdefs.h.  */
6821 _ACEOF
6822 cat confdefs.h >>conftest.$ac_ext
6823 cat >>conftest.$ac_ext <<_ACEOF
6824 /* end confdefs.h.  */
6825 #include <sys/mkdev.h>
6826 _ACEOF
6827 if { (ac_try="$ac_cpp conftest.$ac_ext"
6828 case "(($ac_try" in
6829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6830   *) ac_try_echo=$ac_try;;
6831 esac
6832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6833   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6834   ac_status=$?
6835   grep -v '^ *+' conftest.er1 >conftest.err
6836   rm -f conftest.er1
6837   cat conftest.err >&5
6838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839   (exit $ac_status); } >/dev/null && {
6840          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6841          test ! -s conftest.err
6842        }; then
6843   ac_header_preproc=yes
6844 else
6845   echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.$ac_ext >&5
6847
6848   ac_header_preproc=no
6849 fi
6850
6851 rm -f conftest.err conftest.$ac_ext
6852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6853 echo "${ECHO_T}$ac_header_preproc" >&6; }
6854
6855 # So?  What about this header?
6856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6857   yes:no: )
6858     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6859 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6860     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6861 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6862     ac_header_preproc=yes
6863     ;;
6864   no:yes:* )
6865     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6866 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6867     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
6868 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
6869     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6870 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6871     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
6872 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6873     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6874 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6875     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6876 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6877     ( cat <<\_ASBOX
6878 ## ------------------------------ ##
6879 ## Report this to bug-tar@gnu.org ##
6880 ## ------------------------------ ##
6881 _ASBOX
6882      ) | sed "s/^/$as_me: WARNING:     /" >&2
6883     ;;
6884 esac
6885 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6886 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6887 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6888   echo $ECHO_N "(cached) $ECHO_C" >&6
6889 else
6890   ac_cv_header_sys_mkdev_h=$ac_header_preproc
6891 fi
6892 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6893 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6894
6895 fi
6896 if test $ac_cv_header_sys_mkdev_h = yes; then
6897
6898 cat >>confdefs.h <<\_ACEOF
6899 #define MAJOR_IN_MKDEV 1
6900 _ACEOF
6901
6902 fi
6903
6904
6905
6906   if test $ac_cv_header_sys_mkdev_h = no; then
6907     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6908   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6909 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6910 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6911   echo $ECHO_N "(cached) $ECHO_C" >&6
6912 fi
6913 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6914 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6915 else
6916   # Is the header compilable?
6917 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6918 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6919 cat >conftest.$ac_ext <<_ACEOF
6920 /* confdefs.h.  */
6921 _ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h.  */
6925 $ac_includes_default
6926 #include <sys/sysmacros.h>
6927 _ACEOF
6928 rm -f conftest.$ac_objext
6929 if { (ac_try="$ac_compile"
6930 case "(($ac_try" in
6931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6932   *) ac_try_echo=$ac_try;;
6933 esac
6934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6935   (eval "$ac_compile") 2>conftest.er1
6936   ac_status=$?
6937   grep -v '^ *+' conftest.er1 >conftest.err
6938   rm -f conftest.er1
6939   cat conftest.err >&5
6940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941   (exit $ac_status); } && {
6942          test -z "$ac_c_werror_flag" ||
6943          test ! -s conftest.err
6944        } && test -s conftest.$ac_objext; then
6945   ac_header_compiler=yes
6946 else
6947   echo "$as_me: failed program was:" >&5
6948 sed 's/^/| /' conftest.$ac_ext >&5
6949
6950         ac_header_compiler=no
6951 fi
6952
6953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6954 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6955 echo "${ECHO_T}$ac_header_compiler" >&6; }
6956
6957 # Is the header present?
6958 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6959 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6960 cat >conftest.$ac_ext <<_ACEOF
6961 /* confdefs.h.  */
6962 _ACEOF
6963 cat confdefs.h >>conftest.$ac_ext
6964 cat >>conftest.$ac_ext <<_ACEOF
6965 /* end confdefs.h.  */
6966 #include <sys/sysmacros.h>
6967 _ACEOF
6968 if { (ac_try="$ac_cpp conftest.$ac_ext"
6969 case "(($ac_try" in
6970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6971   *) ac_try_echo=$ac_try;;
6972 esac
6973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6974   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6975   ac_status=$?
6976   grep -v '^ *+' conftest.er1 >conftest.err
6977   rm -f conftest.er1
6978   cat conftest.err >&5
6979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980   (exit $ac_status); } >/dev/null && {
6981          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6982          test ! -s conftest.err
6983        }; then
6984   ac_header_preproc=yes
6985 else
6986   echo "$as_me: failed program was:" >&5
6987 sed 's/^/| /' conftest.$ac_ext >&5
6988
6989   ac_header_preproc=no
6990 fi
6991
6992 rm -f conftest.err conftest.$ac_ext
6993 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6994 echo "${ECHO_T}$ac_header_preproc" >&6; }
6995
6996 # So?  What about this header?
6997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6998   yes:no: )
6999     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
7000 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7001     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
7002 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
7003     ac_header_preproc=yes
7004     ;;
7005   no:yes:* )
7006     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7007 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7008     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
7009 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
7010     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
7011 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
7012     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
7013 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7014     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7015 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7016     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
7017 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
7018     ( cat <<\_ASBOX
7019 ## ------------------------------ ##
7020 ## Report this to bug-tar@gnu.org ##
7021 ## ------------------------------ ##
7022 _ASBOX
7023      ) | sed "s/^/$as_me: WARNING:     /" >&2
7024     ;;
7025 esac
7026 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7027 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
7028 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7029   echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
7032 fi
7033 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7034 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
7035
7036 fi
7037 if test $ac_cv_header_sys_sysmacros_h = yes; then
7038
7039 cat >>confdefs.h <<\_ACEOF
7040 #define MAJOR_IN_SYSMACROS 1
7041 _ACEOF
7042
7043 fi
7044
7045
7046   fi
7047 fi
7048
7049 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7050 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
7051 if test "${ac_cv_header_stat_broken+set}" = set; then
7052   echo $ECHO_N "(cached) $ECHO_C" >&6
7053 else
7054   cat >conftest.$ac_ext <<_ACEOF
7055 /* confdefs.h.  */
7056 _ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h.  */
7060 #include <sys/types.h>
7061 #include <sys/stat.h>
7062
7063 #if defined S_ISBLK && defined S_IFDIR
7064 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7065 #endif
7066
7067 #if defined S_ISBLK && defined S_IFCHR
7068 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7069 #endif
7070
7071 #if defined S_ISLNK && defined S_IFREG
7072 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7073 #endif
7074
7075 #if defined S_ISSOCK && defined S_IFREG
7076 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7077 #endif
7078
7079 _ACEOF
7080 rm -f conftest.$ac_objext
7081 if { (ac_try="$ac_compile"
7082 case "(($ac_try" in
7083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7084   *) ac_try_echo=$ac_try;;
7085 esac
7086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7087   (eval "$ac_compile") 2>conftest.er1
7088   ac_status=$?
7089   grep -v '^ *+' conftest.er1 >conftest.err
7090   rm -f conftest.er1
7091   cat conftest.err >&5
7092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093   (exit $ac_status); } && {
7094          test -z "$ac_c_werror_flag" ||
7095          test ! -s conftest.err
7096        } && test -s conftest.$ac_objext; then
7097   ac_cv_header_stat_broken=no
7098 else
7099   echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.$ac_ext >&5
7101
7102         ac_cv_header_stat_broken=yes
7103 fi
7104
7105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7106 fi
7107 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7108 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
7109 if test $ac_cv_header_stat_broken = yes; then
7110
7111 cat >>confdefs.h <<\_ACEOF
7112 #define STAT_MACROS_BROKEN 1
7113 _ACEOF
7114
7115 fi
7116
7117 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7118 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7119 if test "${ac_cv_header_stdc+set}" = set; then
7120   echo $ECHO_N "(cached) $ECHO_C" >&6
7121 else
7122   cat >conftest.$ac_ext <<_ACEOF
7123 /* confdefs.h.  */
7124 _ACEOF
7125 cat confdefs.h >>conftest.$ac_ext
7126 cat >>conftest.$ac_ext <<_ACEOF
7127 /* end confdefs.h.  */
7128 #include <stdlib.h>
7129 #include <stdarg.h>
7130 #include <string.h>
7131 #include <float.h>
7132
7133 int
7134 main ()
7135 {
7136
7137   ;
7138   return 0;
7139 }
7140 _ACEOF
7141 rm -f conftest.$ac_objext
7142 if { (ac_try="$ac_compile"
7143 case "(($ac_try" in
7144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7145   *) ac_try_echo=$ac_try;;
7146 esac
7147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7148   (eval "$ac_compile") 2>conftest.er1
7149   ac_status=$?
7150   grep -v '^ *+' conftest.er1 >conftest.err
7151   rm -f conftest.er1
7152   cat conftest.err >&5
7153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154   (exit $ac_status); } && {
7155          test -z "$ac_c_werror_flag" ||
7156          test ! -s conftest.err
7157        } && test -s conftest.$ac_objext; then
7158   ac_cv_header_stdc=yes
7159 else
7160   echo "$as_me: failed program was:" >&5
7161 sed 's/^/| /' conftest.$ac_ext >&5
7162
7163         ac_cv_header_stdc=no
7164 fi
7165
7166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7167
7168 if test $ac_cv_header_stdc = yes; then
7169   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7170   cat >conftest.$ac_ext <<_ACEOF
7171 /* confdefs.h.  */
7172 _ACEOF
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h.  */
7176 #include <string.h>
7177
7178 _ACEOF
7179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7180   $EGREP "memchr" >/dev/null 2>&1; then
7181   :
7182 else
7183   ac_cv_header_stdc=no
7184 fi
7185 rm -f conftest*
7186
7187 fi
7188
7189 if test $ac_cv_header_stdc = yes; then
7190   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7191   cat >conftest.$ac_ext <<_ACEOF
7192 /* confdefs.h.  */
7193 _ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h.  */
7197 #include <stdlib.h>
7198
7199 _ACEOF
7200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7201   $EGREP "free" >/dev/null 2>&1; then
7202   :
7203 else
7204   ac_cv_header_stdc=no
7205 fi
7206 rm -f conftest*
7207
7208 fi
7209
7210 if test $ac_cv_header_stdc = yes; then
7211   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7212   if test "$cross_compiling" = yes; then
7213   :
7214 else
7215   cat >conftest.$ac_ext <<_ACEOF
7216 /* confdefs.h.  */
7217 _ACEOF
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h.  */
7221 #include <ctype.h>
7222 #include <stdlib.h>
7223 #if ((' ' & 0x0FF) == 0x020)
7224 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7225 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7226 #else
7227 # define ISLOWER(c) \
7228                    (('a' <= (c) && (c) <= 'i') \
7229                      || ('j' <= (c) && (c) <= 'r') \
7230                      || ('s' <= (c) && (c) <= 'z'))
7231 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7232 #endif
7233
7234 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7235 int
7236 main ()
7237 {
7238   int i;
7239   for (i = 0; i < 256; i++)
7240     if (XOR (islower (i), ISLOWER (i))
7241         || toupper (i) != TOUPPER (i))
7242       return 2;
7243   return 0;
7244 }
7245 _ACEOF
7246 rm -f conftest$ac_exeext
7247 if { (ac_try="$ac_link"
7248 case "(($ac_try" in
7249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7250   *) ac_try_echo=$ac_try;;
7251 esac
7252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7253   (eval "$ac_link") 2>&5
7254   ac_status=$?
7255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7257   { (case "(($ac_try" in
7258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7259   *) ac_try_echo=$ac_try;;
7260 esac
7261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7262   (eval "$ac_try") 2>&5
7263   ac_status=$?
7264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265   (exit $ac_status); }; }; then
7266   :
7267 else
7268   echo "$as_me: program exited with status $ac_status" >&5
7269 echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.$ac_ext >&5
7271
7272 ( exit $ac_status )
7273 ac_cv_header_stdc=no
7274 fi
7275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7276 fi
7277
7278
7279 fi
7280 fi
7281 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7282 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7283 if test $ac_cv_header_stdc = yes; then
7284
7285 cat >>confdefs.h <<\_ACEOF
7286 #define STDC_HEADERS 1
7287 _ACEOF
7288
7289 fi
7290
7291
7292 { echo "$as_me:$LINENO: checking for st_fstype string in struct stat" >&5
7293 echo $ECHO_N "checking for st_fstype string in struct stat... $ECHO_C" >&6; }
7294 if test "${diff_cv_st_fstype_string+set}" = set; then
7295   echo $ECHO_N "(cached) $ECHO_C" >&6
7296 else
7297   cat >conftest.$ac_ext <<_ACEOF
7298 /* confdefs.h.  */
7299 _ACEOF
7300 cat confdefs.h >>conftest.$ac_ext
7301 cat >>conftest.$ac_ext <<_ACEOF
7302 /* end confdefs.h.  */
7303 #include <sys/types.h>
7304 #include <sys/stat.h>
7305 int
7306 main ()
7307 {
7308 struct stat s; s.st_fstype[0] = 'x';
7309   ;
7310   return 0;
7311 }
7312 _ACEOF
7313 rm -f conftest.$ac_objext
7314 if { (ac_try="$ac_compile"
7315 case "(($ac_try" in
7316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7317   *) ac_try_echo=$ac_try;;
7318 esac
7319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7320   (eval "$ac_compile") 2>conftest.er1
7321   ac_status=$?
7322   grep -v '^ *+' conftest.er1 >conftest.err
7323   rm -f conftest.er1
7324   cat conftest.err >&5
7325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326   (exit $ac_status); } && {
7327          test -z "$ac_c_werror_flag" ||
7328          test ! -s conftest.err
7329        } && test -s conftest.$ac_objext; then
7330   diff_cv_st_fstype_string=yes
7331 else
7332   echo "$as_me: failed program was:" >&5
7333 sed 's/^/| /' conftest.$ac_ext >&5
7334
7335         diff_cv_st_fstype_string=no
7336 fi
7337
7338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7339 fi
7340
7341 { echo "$as_me:$LINENO: result: $diff_cv_st_fstype_string" >&5
7342 echo "${ECHO_T}$diff_cv_st_fstype_string" >&6; }
7343 if test $diff_cv_st_fstype_string = yes; then
7344
7345 cat >>confdefs.h <<\_ACEOF
7346 #define HAVE_ST_FSTYPE_STRING 1
7347 _ACEOF
7348
7349 fi
7350
7351 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7352 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7353 if test "${ac_cv_type_signal+set}" = set; then
7354   echo $ECHO_N "(cached) $ECHO_C" >&6
7355 else
7356   cat >conftest.$ac_ext <<_ACEOF
7357 /* confdefs.h.  */
7358 _ACEOF
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h.  */
7362 #include <sys/types.h>
7363 #include <signal.h>
7364
7365 int
7366 main ()
7367 {
7368 return *(signal (0, 0)) (0) == 1;
7369   ;
7370   return 0;
7371 }
7372 _ACEOF
7373 rm -f conftest.$ac_objext
7374 if { (ac_try="$ac_compile"
7375 case "(($ac_try" in
7376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7377   *) ac_try_echo=$ac_try;;
7378 esac
7379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7380   (eval "$ac_compile") 2>conftest.er1
7381   ac_status=$?
7382   grep -v '^ *+' conftest.er1 >conftest.err
7383   rm -f conftest.er1
7384   cat conftest.err >&5
7385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386   (exit $ac_status); } && {
7387          test -z "$ac_c_werror_flag" ||
7388          test ! -s conftest.err
7389        } && test -s conftest.$ac_objext; then
7390   ac_cv_type_signal=int
7391 else
7392   echo "$as_me: failed program was:" >&5
7393 sed 's/^/| /' conftest.$ac_ext >&5
7394
7395         ac_cv_type_signal=void
7396 fi
7397
7398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7399 fi
7400 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7401 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7402
7403 cat >>confdefs.h <<_ACEOF
7404 #define RETSIGTYPE $ac_cv_type_signal
7405 _ACEOF
7406
7407
7408 { echo "$as_me:$LINENO: checking for mode_t" >&5
7409 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
7410 if test "${ac_cv_type_mode_t+set}" = set; then
7411   echo $ECHO_N "(cached) $ECHO_C" >&6
7412 else
7413   cat >conftest.$ac_ext <<_ACEOF
7414 /* confdefs.h.  */
7415 _ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h.  */
7419 $ac_includes_default
7420 typedef mode_t ac__type_new_;
7421 int
7422 main ()
7423 {
7424 if ((ac__type_new_ *) 0)
7425   return 0;
7426 if (sizeof (ac__type_new_))
7427   return 0;
7428   ;
7429   return 0;
7430 }
7431 _ACEOF
7432 rm -f conftest.$ac_objext
7433 if { (ac_try="$ac_compile"
7434 case "(($ac_try" in
7435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7436   *) ac_try_echo=$ac_try;;
7437 esac
7438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7439   (eval "$ac_compile") 2>conftest.er1
7440   ac_status=$?
7441   grep -v '^ *+' conftest.er1 >conftest.err
7442   rm -f conftest.er1
7443   cat conftest.err >&5
7444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445   (exit $ac_status); } && {
7446          test -z "$ac_c_werror_flag" ||
7447          test ! -s conftest.err
7448        } && test -s conftest.$ac_objext; then
7449   ac_cv_type_mode_t=yes
7450 else
7451   echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.$ac_ext >&5
7453
7454         ac_cv_type_mode_t=no
7455 fi
7456
7457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7458 fi
7459 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7460 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
7461 if test $ac_cv_type_mode_t = yes; then
7462   :
7463 else
7464
7465 cat >>confdefs.h <<_ACEOF
7466 #define mode_t int
7467 _ACEOF
7468
7469 fi
7470
7471 { echo "$as_me:$LINENO: checking for pid_t" >&5
7472 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7473 if test "${ac_cv_type_pid_t+set}" = set; then
7474   echo $ECHO_N "(cached) $ECHO_C" >&6
7475 else
7476   cat >conftest.$ac_ext <<_ACEOF
7477 /* confdefs.h.  */
7478 _ACEOF
7479 cat confdefs.h >>conftest.$ac_ext
7480 cat >>conftest.$ac_ext <<_ACEOF
7481 /* end confdefs.h.  */
7482 $ac_includes_default
7483 typedef pid_t ac__type_new_;
7484 int
7485 main ()
7486 {
7487 if ((ac__type_new_ *) 0)
7488   return 0;
7489 if (sizeof (ac__type_new_))
7490   return 0;
7491   ;
7492   return 0;
7493 }
7494 _ACEOF
7495 rm -f conftest.$ac_objext
7496 if { (ac_try="$ac_compile"
7497 case "(($ac_try" in
7498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7499   *) ac_try_echo=$ac_try;;
7500 esac
7501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7502   (eval "$ac_compile") 2>conftest.er1
7503   ac_status=$?
7504   grep -v '^ *+' conftest.er1 >conftest.err
7505   rm -f conftest.er1
7506   cat conftest.err >&5
7507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508   (exit $ac_status); } && {
7509          test -z "$ac_c_werror_flag" ||
7510          test ! -s conftest.err
7511        } && test -s conftest.$ac_objext; then
7512   ac_cv_type_pid_t=yes
7513 else
7514   echo "$as_me: failed program was:" >&5
7515 sed 's/^/| /' conftest.$ac_ext >&5
7516
7517         ac_cv_type_pid_t=no
7518 fi
7519
7520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7521 fi
7522 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7523 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7524 if test $ac_cv_type_pid_t = yes; then
7525   :
7526 else
7527
7528 cat >>confdefs.h <<_ACEOF
7529 #define pid_t int
7530 _ACEOF
7531
7532 fi
7533
7534 { echo "$as_me:$LINENO: checking for off_t" >&5
7535 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7536 if test "${ac_cv_type_off_t+set}" = set; then
7537   echo $ECHO_N "(cached) $ECHO_C" >&6
7538 else
7539   cat >conftest.$ac_ext <<_ACEOF
7540 /* confdefs.h.  */
7541 _ACEOF
7542 cat confdefs.h >>conftest.$ac_ext
7543 cat >>conftest.$ac_ext <<_ACEOF
7544 /* end confdefs.h.  */
7545 $ac_includes_default
7546 typedef off_t ac__type_new_;
7547 int
7548 main ()
7549 {
7550 if ((ac__type_new_ *) 0)
7551   return 0;
7552 if (sizeof (ac__type_new_))
7553   return 0;
7554   ;
7555   return 0;
7556 }
7557 _ACEOF
7558 rm -f conftest.$ac_objext
7559 if { (ac_try="$ac_compile"
7560 case "(($ac_try" in
7561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7562   *) ac_try_echo=$ac_try;;
7563 esac
7564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7565   (eval "$ac_compile") 2>conftest.er1
7566   ac_status=$?
7567   grep -v '^ *+' conftest.er1 >conftest.err
7568   rm -f conftest.er1
7569   cat conftest.err >&5
7570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571   (exit $ac_status); } && {
7572          test -z "$ac_c_werror_flag" ||
7573          test ! -s conftest.err
7574        } && test -s conftest.$ac_objext; then
7575   ac_cv_type_off_t=yes
7576 else
7577   echo "$as_me: failed program was:" >&5
7578 sed 's/^/| /' conftest.$ac_ext >&5
7579
7580         ac_cv_type_off_t=no
7581 fi
7582
7583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7584 fi
7585 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7586 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7587 if test $ac_cv_type_off_t = yes; then
7588   :
7589 else
7590
7591 cat >>confdefs.h <<_ACEOF
7592 #define off_t long int
7593 _ACEOF
7594
7595 fi
7596
7597 { echo "$as_me:$LINENO: checking for size_t" >&5
7598 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7599 if test "${ac_cv_type_size_t+set}" = set; then
7600   echo $ECHO_N "(cached) $ECHO_C" >&6
7601 else
7602   cat >conftest.$ac_ext <<_ACEOF
7603 /* confdefs.h.  */
7604 _ACEOF
7605 cat confdefs.h >>conftest.$ac_ext
7606 cat >>conftest.$ac_ext <<_ACEOF
7607 /* end confdefs.h.  */
7608 $ac_includes_default
7609 typedef size_t ac__type_new_;
7610 int
7611 main ()
7612 {
7613 if ((ac__type_new_ *) 0)
7614   return 0;
7615 if (sizeof (ac__type_new_))
7616   return 0;
7617   ;
7618   return 0;
7619 }
7620 _ACEOF
7621 rm -f conftest.$ac_objext
7622 if { (ac_try="$ac_compile"
7623 case "(($ac_try" in
7624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7625   *) ac_try_echo=$ac_try;;
7626 esac
7627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7628   (eval "$ac_compile") 2>conftest.er1
7629   ac_status=$?
7630   grep -v '^ *+' conftest.er1 >conftest.err
7631   rm -f conftest.er1
7632   cat conftest.err >&5
7633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634   (exit $ac_status); } && {
7635          test -z "$ac_c_werror_flag" ||
7636          test ! -s conftest.err
7637        } && test -s conftest.$ac_objext; then
7638   ac_cv_type_size_t=yes
7639 else
7640   echo "$as_me: failed program was:" >&5
7641 sed 's/^/| /' conftest.$ac_ext >&5
7642
7643         ac_cv_type_size_t=no
7644 fi
7645
7646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7647 fi
7648 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7649 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7650 if test $ac_cv_type_size_t = yes; then
7651   :
7652 else
7653
7654 cat >>confdefs.h <<_ACEOF
7655 #define size_t unsigned int
7656 _ACEOF
7657
7658 fi
7659
7660 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7661 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7662 if test "${ac_cv_type_uid_t+set}" = set; then
7663   echo $ECHO_N "(cached) $ECHO_C" >&6
7664 else
7665   cat >conftest.$ac_ext <<_ACEOF
7666 /* confdefs.h.  */
7667 _ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h.  */
7671 #include <sys/types.h>
7672
7673 _ACEOF
7674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7675   $EGREP "uid_t" >/dev/null 2>&1; then
7676   ac_cv_type_uid_t=yes
7677 else
7678   ac_cv_type_uid_t=no
7679 fi
7680 rm -f conftest*
7681
7682 fi
7683 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7684 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7685 if test $ac_cv_type_uid_t = no; then
7686
7687 cat >>confdefs.h <<\_ACEOF
7688 #define uid_t int
7689 _ACEOF
7690
7691
7692 cat >>confdefs.h <<\_ACEOF
7693 #define gid_t int
7694 _ACEOF
7695
7696 fi
7697
7698 { echo "$as_me:$LINENO: checking for major_t" >&5
7699 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
7700 if test "${ac_cv_type_major_t+set}" = set; then
7701   echo $ECHO_N "(cached) $ECHO_C" >&6
7702 else
7703   cat >conftest.$ac_ext <<_ACEOF
7704 /* confdefs.h.  */
7705 _ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h.  */
7709 $ac_includes_default
7710 typedef major_t ac__type_new_;
7711 int
7712 main ()
7713 {
7714 if ((ac__type_new_ *) 0)
7715   return 0;
7716 if (sizeof (ac__type_new_))
7717   return 0;
7718   ;
7719   return 0;
7720 }
7721 _ACEOF
7722 rm -f conftest.$ac_objext
7723 if { (ac_try="$ac_compile"
7724 case "(($ac_try" in
7725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7726   *) ac_try_echo=$ac_try;;
7727 esac
7728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7729   (eval "$ac_compile") 2>conftest.er1
7730   ac_status=$?
7731   grep -v '^ *+' conftest.er1 >conftest.err
7732   rm -f conftest.er1
7733   cat conftest.err >&5
7734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735   (exit $ac_status); } && {
7736          test -z "$ac_c_werror_flag" ||
7737          test ! -s conftest.err
7738        } && test -s conftest.$ac_objext; then
7739   ac_cv_type_major_t=yes
7740 else
7741   echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.$ac_ext >&5
7743
7744         ac_cv_type_major_t=no
7745 fi
7746
7747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7748 fi
7749 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
7750 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
7751 if test $ac_cv_type_major_t = yes; then
7752   :
7753 else
7754
7755 cat >>confdefs.h <<\_ACEOF
7756 #define major_t int
7757 _ACEOF
7758
7759 fi
7760
7761 { echo "$as_me:$LINENO: checking for minor_t" >&5
7762 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
7763 if test "${ac_cv_type_minor_t+set}" = set; then
7764   echo $ECHO_N "(cached) $ECHO_C" >&6
7765 else
7766   cat >conftest.$ac_ext <<_ACEOF
7767 /* confdefs.h.  */
7768 _ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h.  */
7772 $ac_includes_default
7773 typedef minor_t ac__type_new_;
7774 int
7775 main ()
7776 {
7777 if ((ac__type_new_ *) 0)
7778   return 0;
7779 if (sizeof (ac__type_new_))
7780   return 0;
7781   ;
7782   return 0;
7783 }
7784 _ACEOF
7785 rm -f conftest.$ac_objext
7786 if { (ac_try="$ac_compile"
7787 case "(($ac_try" in
7788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7789   *) ac_try_echo=$ac_try;;
7790 esac
7791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7792   (eval "$ac_compile") 2>conftest.er1
7793   ac_status=$?
7794   grep -v '^ *+' conftest.er1 >conftest.err
7795   rm -f conftest.er1
7796   cat conftest.err >&5
7797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798   (exit $ac_status); } && {
7799          test -z "$ac_c_werror_flag" ||
7800          test ! -s conftest.err
7801        } && test -s conftest.$ac_objext; then
7802   ac_cv_type_minor_t=yes
7803 else
7804   echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.$ac_ext >&5
7806
7807         ac_cv_type_minor_t=no
7808 fi
7809
7810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7811 fi
7812 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
7813 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
7814 if test $ac_cv_type_minor_t = yes; then
7815   :
7816 else
7817
7818 cat >>confdefs.h <<\_ACEOF
7819 #define minor_t int
7820 _ACEOF
7821
7822 fi
7823
7824 { echo "$as_me:$LINENO: checking for dev_t" >&5
7825 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
7826 if test "${ac_cv_type_dev_t+set}" = set; then
7827   echo $ECHO_N "(cached) $ECHO_C" >&6
7828 else
7829   cat >conftest.$ac_ext <<_ACEOF
7830 /* confdefs.h.  */
7831 _ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h.  */
7835 $ac_includes_default
7836 typedef dev_t ac__type_new_;
7837 int
7838 main ()
7839 {
7840 if ((ac__type_new_ *) 0)
7841   return 0;
7842 if (sizeof (ac__type_new_))
7843   return 0;
7844   ;
7845   return 0;
7846 }
7847 _ACEOF
7848 rm -f conftest.$ac_objext
7849 if { (ac_try="$ac_compile"
7850 case "(($ac_try" in
7851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7852   *) ac_try_echo=$ac_try;;
7853 esac
7854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7855   (eval "$ac_compile") 2>conftest.er1
7856   ac_status=$?
7857   grep -v '^ *+' conftest.er1 >conftest.err
7858   rm -f conftest.er1
7859   cat conftest.err >&5
7860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861   (exit $ac_status); } && {
7862          test -z "$ac_c_werror_flag" ||
7863          test ! -s conftest.err
7864        } && test -s conftest.$ac_objext; then
7865   ac_cv_type_dev_t=yes
7866 else
7867   echo "$as_me: failed program was:" >&5
7868 sed 's/^/| /' conftest.$ac_ext >&5
7869
7870         ac_cv_type_dev_t=no
7871 fi
7872
7873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7874 fi
7875 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
7876 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
7877 if test $ac_cv_type_dev_t = yes; then
7878   :
7879 else
7880
7881 cat >>confdefs.h <<_ACEOF
7882 #define dev_t unsigned
7883 _ACEOF
7884
7885 fi
7886
7887 { echo "$as_me:$LINENO: checking for ino_t" >&5
7888 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
7889 if test "${ac_cv_type_ino_t+set}" = set; then
7890   echo $ECHO_N "(cached) $ECHO_C" >&6
7891 else
7892   cat >conftest.$ac_ext <<_ACEOF
7893 /* confdefs.h.  */
7894 _ACEOF
7895 cat confdefs.h >>conftest.$ac_ext
7896 cat >>conftest.$ac_ext <<_ACEOF
7897 /* end confdefs.h.  */
7898 $ac_includes_default
7899 typedef ino_t ac__type_new_;
7900 int
7901 main ()
7902 {
7903 if ((ac__type_new_ *) 0)
7904   return 0;
7905 if (sizeof (ac__type_new_))
7906   return 0;
7907   ;
7908   return 0;
7909 }
7910 _ACEOF
7911 rm -f conftest.$ac_objext
7912 if { (ac_try="$ac_compile"
7913 case "(($ac_try" in
7914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7915   *) ac_try_echo=$ac_try;;
7916 esac
7917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7918   (eval "$ac_compile") 2>conftest.er1
7919   ac_status=$?
7920   grep -v '^ *+' conftest.er1 >conftest.err
7921   rm -f conftest.er1
7922   cat conftest.err >&5
7923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924   (exit $ac_status); } && {
7925          test -z "$ac_c_werror_flag" ||
7926          test ! -s conftest.err
7927        } && test -s conftest.$ac_objext; then
7928   ac_cv_type_ino_t=yes
7929 else
7930   echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7932
7933         ac_cv_type_ino_t=no
7934 fi
7935
7936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7937 fi
7938 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
7939 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
7940 if test $ac_cv_type_ino_t = yes; then
7941   :
7942 else
7943
7944 cat >>confdefs.h <<_ACEOF
7945 #define ino_t unsigned
7946 _ACEOF
7947
7948 fi
7949
7950
7951
7952   { echo "$as_me:$LINENO: checking for ssize_t" >&5
7953 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7954 if test "${gt_cv_ssize_t+set}" = set; then
7955   echo $ECHO_N "(cached) $ECHO_C" >&6
7956 else
7957   cat >conftest.$ac_ext <<_ACEOF
7958 /* confdefs.h.  */
7959 _ACEOF
7960 cat confdefs.h >>conftest.$ac_ext
7961 cat >>conftest.$ac_ext <<_ACEOF
7962 /* end confdefs.h.  */
7963 #include <sys/types.h>
7964 int
7965 main ()
7966 {
7967 int x = sizeof (ssize_t *) + sizeof (ssize_t);
7968         return !x;
7969   ;
7970   return 0;
7971 }
7972 _ACEOF
7973 rm -f conftest.$ac_objext
7974 if { (ac_try="$ac_compile"
7975 case "(($ac_try" in
7976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977   *) ac_try_echo=$ac_try;;
7978 esac
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980   (eval "$ac_compile") 2>conftest.er1
7981   ac_status=$?
7982   grep -v '^ *+' conftest.er1 >conftest.err
7983   rm -f conftest.er1
7984   cat conftest.err >&5
7985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986   (exit $ac_status); } && {
7987          test -z "$ac_c_werror_flag" ||
7988          test ! -s conftest.err
7989        } && test -s conftest.$ac_objext; then
7990   gt_cv_ssize_t=yes
7991 else
7992   echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7994
7995         gt_cv_ssize_t=no
7996 fi
7997
7998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7999 fi
8000 { echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
8001 echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
8002   if test $gt_cv_ssize_t = no; then
8003
8004 cat >>confdefs.h <<\_ACEOF
8005 #define ssize_t int
8006 _ACEOF
8007
8008   fi
8009
8010
8011 # gnulib modules
8012 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8013 # for constant arguments.  Useless!
8014 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8015 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8016 if test "${ac_cv_working_alloca_h+set}" = set; then
8017   echo $ECHO_N "(cached) $ECHO_C" >&6
8018 else
8019   cat >conftest.$ac_ext <<_ACEOF
8020 /* confdefs.h.  */
8021 _ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h.  */
8025 #include <alloca.h>
8026 int
8027 main ()
8028 {
8029 char *p = (char *) alloca (2 * sizeof (int));
8030                           if (p) return 0;
8031   ;
8032   return 0;
8033 }
8034 _ACEOF
8035 rm -f conftest.$ac_objext conftest$ac_exeext
8036 if { (ac_try="$ac_link"
8037 case "(($ac_try" in
8038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039   *) ac_try_echo=$ac_try;;
8040 esac
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042   (eval "$ac_link") 2>conftest.er1
8043   ac_status=$?
8044   grep -v '^ *+' conftest.er1 >conftest.err
8045   rm -f conftest.er1
8046   cat conftest.err >&5
8047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048   (exit $ac_status); } && {
8049          test -z "$ac_c_werror_flag" ||
8050          test ! -s conftest.err
8051        } && test -s conftest$ac_exeext &&
8052        $as_test_x conftest$ac_exeext; then
8053   ac_cv_working_alloca_h=yes
8054 else
8055   echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8057
8058         ac_cv_working_alloca_h=no
8059 fi
8060
8061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8062       conftest$ac_exeext conftest.$ac_ext
8063 fi
8064 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8065 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8066 if test $ac_cv_working_alloca_h = yes; then
8067
8068 cat >>confdefs.h <<\_ACEOF
8069 #define HAVE_ALLOCA_H 1
8070 _ACEOF
8071
8072 fi
8073
8074 { echo "$as_me:$LINENO: checking for alloca" >&5
8075 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8076 if test "${ac_cv_func_alloca_works+set}" = set; then
8077   echo $ECHO_N "(cached) $ECHO_C" >&6
8078 else
8079   cat >conftest.$ac_ext <<_ACEOF
8080 /* confdefs.h.  */
8081 _ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h.  */
8085 #ifdef __GNUC__
8086 # define alloca __builtin_alloca
8087 #else
8088 # ifdef _MSC_VER
8089 #  include <malloc.h>
8090 #  define alloca _alloca
8091 # else
8092 #  ifdef HAVE_ALLOCA_H
8093 #   include <alloca.h>
8094 #  else
8095 #   ifdef _AIX
8096  #pragma alloca
8097 #   else
8098 #    ifndef alloca /* predefined by HP cc +Olibcalls */
8099 char *alloca ();
8100 #    endif
8101 #   endif
8102 #  endif
8103 # endif
8104 #endif
8105
8106 int
8107 main ()
8108 {
8109 char *p = (char *) alloca (1);
8110                                     if (p) return 0;
8111   ;
8112   return 0;
8113 }
8114 _ACEOF
8115 rm -f conftest.$ac_objext conftest$ac_exeext
8116 if { (ac_try="$ac_link"
8117 case "(($ac_try" in
8118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119   *) ac_try_echo=$ac_try;;
8120 esac
8121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122   (eval "$ac_link") 2>conftest.er1
8123   ac_status=$?
8124   grep -v '^ *+' conftest.er1 >conftest.err
8125   rm -f conftest.er1
8126   cat conftest.err >&5
8127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128   (exit $ac_status); } && {
8129          test -z "$ac_c_werror_flag" ||
8130          test ! -s conftest.err
8131        } && test -s conftest$ac_exeext &&
8132        $as_test_x conftest$ac_exeext; then
8133   ac_cv_func_alloca_works=yes
8134 else
8135   echo "$as_me: failed program was:" >&5
8136 sed 's/^/| /' conftest.$ac_ext >&5
8137
8138         ac_cv_func_alloca_works=no
8139 fi
8140
8141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8142       conftest$ac_exeext conftest.$ac_ext
8143 fi
8144 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8145 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8146
8147 if test $ac_cv_func_alloca_works = yes; then
8148
8149 cat >>confdefs.h <<\_ACEOF
8150 #define HAVE_ALLOCA 1
8151 _ACEOF
8152
8153 else
8154   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8155 # that cause trouble.  Some versions do not even contain alloca or
8156 # contain a buggy version.  If you still want to use their alloca,
8157 # use ar to extract alloca.o from them instead of compiling alloca.c.
8158
8159
8160
8161
8162
8163 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8164
8165 cat >>confdefs.h <<\_ACEOF
8166 #define C_ALLOCA 1
8167 _ACEOF
8168
8169
8170 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8171 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8172 if test "${ac_cv_os_cray+set}" = set; then
8173   echo $ECHO_N "(cached) $ECHO_C" >&6
8174 else
8175   cat >conftest.$ac_ext <<_ACEOF
8176 /* confdefs.h.  */
8177 _ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h.  */
8181 #if defined CRAY && ! defined CRAY2
8182 webecray
8183 #else
8184 wenotbecray
8185 #endif
8186
8187 _ACEOF
8188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8189   $EGREP "webecray" >/dev/null 2>&1; then
8190   ac_cv_os_cray=yes
8191 else
8192   ac_cv_os_cray=no
8193 fi
8194 rm -f conftest*
8195
8196 fi
8197 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8198 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8199 if test $ac_cv_os_cray = yes; then
8200   for ac_func in _getb67 GETB67 getb67; do
8201     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8202 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8204 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8205   echo $ECHO_N "(cached) $ECHO_C" >&6
8206 else
8207   cat >conftest.$ac_ext <<_ACEOF
8208 /* confdefs.h.  */
8209 _ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h.  */
8213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8214    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8215 #define $ac_func innocuous_$ac_func
8216
8217 /* System header to define __stub macros and hopefully few prototypes,
8218     which can conflict with char $ac_func (); below.
8219     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8220     <limits.h> exists even on freestanding compilers.  */
8221
8222 #ifdef __STDC__
8223 # include <limits.h>
8224 #else
8225 # include <assert.h>
8226 #endif
8227
8228 #undef $ac_func
8229
8230 /* Override any GCC internal prototype to avoid an error.
8231    Use char because int might match the return type of a GCC
8232    builtin and then its argument prototype would still apply.  */
8233 #ifdef __cplusplus
8234 extern "C"
8235 #endif
8236 char $ac_func ();
8237 /* The GNU C library defines this for functions which it implements
8238     to always fail with ENOSYS.  Some functions are actually named
8239     something starting with __ and the normal name is an alias.  */
8240 #if defined __stub_$ac_func || defined __stub___$ac_func
8241 choke me
8242 #endif
8243
8244 int
8245 main ()
8246 {
8247 return $ac_func ();
8248   ;
8249   return 0;
8250 }
8251 _ACEOF
8252 rm -f conftest.$ac_objext conftest$ac_exeext
8253 if { (ac_try="$ac_link"
8254 case "(($ac_try" in
8255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256   *) ac_try_echo=$ac_try;;
8257 esac
8258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259   (eval "$ac_link") 2>conftest.er1
8260   ac_status=$?
8261   grep -v '^ *+' conftest.er1 >conftest.err
8262   rm -f conftest.er1
8263   cat conftest.err >&5
8264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265   (exit $ac_status); } && {
8266          test -z "$ac_c_werror_flag" ||
8267          test ! -s conftest.err
8268        } && test -s conftest$ac_exeext &&
8269        $as_test_x conftest$ac_exeext; then
8270   eval "$as_ac_var=yes"
8271 else
8272   echo "$as_me: failed program was:" >&5
8273 sed 's/^/| /' conftest.$ac_ext >&5
8274
8275         eval "$as_ac_var=no"
8276 fi
8277
8278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8279       conftest$ac_exeext conftest.$ac_ext
8280 fi
8281 ac_res=`eval echo '${'$as_ac_var'}'`
8282                { echo "$as_me:$LINENO: result: $ac_res" >&5
8283 echo "${ECHO_T}$ac_res" >&6; }
8284 if test `eval echo '${'$as_ac_var'}'` = yes; then
8285
8286 cat >>confdefs.h <<_ACEOF
8287 #define CRAY_STACKSEG_END $ac_func
8288 _ACEOF
8289
8290     break
8291 fi
8292
8293   done
8294 fi
8295
8296 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8297 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
8298 if test "${ac_cv_c_stack_direction+set}" = set; then
8299   echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301   if test "$cross_compiling" = yes; then
8302   ac_cv_c_stack_direction=0
8303 else
8304   cat >conftest.$ac_ext <<_ACEOF
8305 /* confdefs.h.  */
8306 _ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h.  */
8310 $ac_includes_default
8311 int
8312 find_stack_direction ()
8313 {
8314   static char *addr = 0;
8315   auto char dummy;
8316   if (addr == 0)
8317     {
8318       addr = &dummy;
8319       return find_stack_direction ();
8320     }
8321   else
8322     return (&dummy > addr) ? 1 : -1;
8323 }
8324
8325 int
8326 main ()
8327 {
8328   return find_stack_direction () < 0;
8329 }
8330 _ACEOF
8331 rm -f conftest$ac_exeext
8332 if { (ac_try="$ac_link"
8333 case "(($ac_try" in
8334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8335   *) ac_try_echo=$ac_try;;
8336 esac
8337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8338   (eval "$ac_link") 2>&5
8339   ac_status=$?
8340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8342   { (case "(($ac_try" in
8343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8344   *) ac_try_echo=$ac_try;;
8345 esac
8346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8347   (eval "$ac_try") 2>&5
8348   ac_status=$?
8349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350   (exit $ac_status); }; }; then
8351   ac_cv_c_stack_direction=1
8352 else
8353   echo "$as_me: program exited with status $ac_status" >&5
8354 echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.$ac_ext >&5
8356
8357 ( exit $ac_status )
8358 ac_cv_c_stack_direction=-1
8359 fi
8360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8361 fi
8362
8363
8364 fi
8365 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8366 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8367
8368 cat >>confdefs.h <<_ACEOF
8369 #define STACK_DIRECTION $ac_cv_c_stack_direction
8370 _ACEOF
8371
8372
8373 fi
8374
8375 { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
8376 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
8377 if test "${ac_cv_c_restrict+set}" = set; then
8378   echo $ECHO_N "(cached) $ECHO_C" >&6
8379 else
8380   ac_cv_c_restrict=no
8381    # The order here caters to the fact that C++ does not require restrict.
8382    for ac_kw in __restrict __restrict__ _Restrict restrict; do
8383      cat >conftest.$ac_ext <<_ACEOF
8384 /* confdefs.h.  */
8385 _ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h.  */
8389 typedef int * int_ptr;
8390         int foo (int_ptr $ac_kw ip) {
8391         return ip[0];
8392        }
8393 int
8394 main ()
8395 {
8396 int s[1];
8397         int * $ac_kw t = s;
8398         t[0] = 0;
8399         return foo(t)
8400   ;
8401   return 0;
8402 }
8403 _ACEOF
8404 rm -f conftest.$ac_objext
8405 if { (ac_try="$ac_compile"
8406 case "(($ac_try" in
8407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408   *) ac_try_echo=$ac_try;;
8409 esac
8410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411   (eval "$ac_compile") 2>conftest.er1
8412   ac_status=$?
8413   grep -v '^ *+' conftest.er1 >conftest.err
8414   rm -f conftest.er1
8415   cat conftest.err >&5
8416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417   (exit $ac_status); } && {
8418          test -z "$ac_c_werror_flag" ||
8419          test ! -s conftest.err
8420        } && test -s conftest.$ac_objext; then
8421   ac_cv_c_restrict=$ac_kw
8422 else
8423   echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.$ac_ext >&5
8425
8426
8427 fi
8428
8429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8430      test "$ac_cv_c_restrict" != no && break
8431    done
8432
8433 fi
8434 { echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
8435 echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
8436
8437
8438  case $ac_cv_c_restrict in
8439    restrict) ;;
8440    no) cat >>confdefs.h <<\_ACEOF
8441 #define restrict
8442 _ACEOF
8443  ;;
8444    *)  cat >>confdefs.h <<_ACEOF
8445 #define restrict $ac_cv_c_restrict
8446 _ACEOF
8447  ;;
8448  esac
8449
8450 { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8451 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
8452 if test "${ac_cv_have_decl_getenv+set}" = set; then
8453   echo $ECHO_N "(cached) $ECHO_C" >&6
8454 else
8455   cat >conftest.$ac_ext <<_ACEOF
8456 /* confdefs.h.  */
8457 _ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h.  */
8461 $ac_includes_default
8462 int
8463 main ()
8464 {
8465 #ifndef getenv
8466   (void) getenv;
8467 #endif
8468
8469   ;
8470   return 0;
8471 }
8472 _ACEOF
8473 rm -f conftest.$ac_objext
8474 if { (ac_try="$ac_compile"
8475 case "(($ac_try" in
8476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477   *) ac_try_echo=$ac_try;;
8478 esac
8479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8480   (eval "$ac_compile") 2>conftest.er1
8481   ac_status=$?
8482   grep -v '^ *+' conftest.er1 >conftest.err
8483   rm -f conftest.er1
8484   cat conftest.err >&5
8485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486   (exit $ac_status); } && {
8487          test -z "$ac_c_werror_flag" ||
8488          test ! -s conftest.err
8489        } && test -s conftest.$ac_objext; then
8490   ac_cv_have_decl_getenv=yes
8491 else
8492   echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8494
8495         ac_cv_have_decl_getenv=no
8496 fi
8497
8498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8499 fi
8500 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8501 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
8502 if test $ac_cv_have_decl_getenv = yes; then
8503
8504 cat >>confdefs.h <<_ACEOF
8505 #define HAVE_DECL_GETENV 1
8506 _ACEOF
8507
8508
8509 else
8510   cat >>confdefs.h <<_ACEOF
8511 #define HAVE_DECL_GETENV 0
8512 _ACEOF
8513
8514
8515 fi
8516
8517
8518 { echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
8519 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6; }
8520 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
8521   echo $ECHO_N "(cached) $ECHO_C" >&6
8522 else
8523   cat >conftest.$ac_ext <<_ACEOF
8524 /* confdefs.h.  */
8525 _ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h.  */
8529 $ac_includes_default
8530 int
8531 main ()
8532 {
8533 #ifndef clearerr_unlocked
8534   (void) clearerr_unlocked;
8535 #endif
8536
8537   ;
8538   return 0;
8539 }
8540 _ACEOF
8541 rm -f conftest.$ac_objext
8542 if { (ac_try="$ac_compile"
8543 case "(($ac_try" in
8544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545   *) ac_try_echo=$ac_try;;
8546 esac
8547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8548   (eval "$ac_compile") 2>conftest.er1
8549   ac_status=$?
8550   grep -v '^ *+' conftest.er1 >conftest.err
8551   rm -f conftest.er1
8552   cat conftest.err >&5
8553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554   (exit $ac_status); } && {
8555          test -z "$ac_c_werror_flag" ||
8556          test ! -s conftest.err
8557        } && test -s conftest.$ac_objext; then
8558   ac_cv_have_decl_clearerr_unlocked=yes
8559 else
8560   echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.$ac_ext >&5
8562
8563         ac_cv_have_decl_clearerr_unlocked=no
8564 fi
8565
8566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8567 fi
8568 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
8569 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6; }
8570 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
8571
8572 cat >>confdefs.h <<_ACEOF
8573 #define HAVE_DECL_CLEARERR_UNLOCKED 1
8574 _ACEOF
8575
8576
8577 else
8578   cat >>confdefs.h <<_ACEOF
8579 #define HAVE_DECL_CLEARERR_UNLOCKED 0
8580 _ACEOF
8581
8582
8583 fi
8584
8585
8586 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8587 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
8588 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8589   echo $ECHO_N "(cached) $ECHO_C" >&6
8590 else
8591   cat >conftest.$ac_ext <<_ACEOF
8592 /* confdefs.h.  */
8593 _ACEOF
8594 cat confdefs.h >>conftest.$ac_ext
8595 cat >>conftest.$ac_ext <<_ACEOF
8596 /* end confdefs.h.  */
8597 $ac_includes_default
8598 int
8599 main ()
8600 {
8601 #ifndef feof_unlocked
8602   (void) feof_unlocked;
8603 #endif
8604
8605   ;
8606   return 0;
8607 }
8608 _ACEOF
8609 rm -f conftest.$ac_objext
8610 if { (ac_try="$ac_compile"
8611 case "(($ac_try" in
8612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8613   *) ac_try_echo=$ac_try;;
8614 esac
8615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8616   (eval "$ac_compile") 2>conftest.er1
8617   ac_status=$?
8618   grep -v '^ *+' conftest.er1 >conftest.err
8619   rm -f conftest.er1
8620   cat conftest.err >&5
8621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622   (exit $ac_status); } && {
8623          test -z "$ac_c_werror_flag" ||
8624          test ! -s conftest.err
8625        } && test -s conftest.$ac_objext; then
8626   ac_cv_have_decl_feof_unlocked=yes
8627 else
8628   echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8630
8631         ac_cv_have_decl_feof_unlocked=no
8632 fi
8633
8634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8635 fi
8636 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8637 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
8638 if test $ac_cv_have_decl_feof_unlocked = yes; then
8639
8640 cat >>confdefs.h <<_ACEOF
8641 #define HAVE_DECL_FEOF_UNLOCKED 1
8642 _ACEOF
8643
8644
8645 else
8646   cat >>confdefs.h <<_ACEOF
8647 #define HAVE_DECL_FEOF_UNLOCKED 0
8648 _ACEOF
8649
8650
8651 fi
8652
8653
8654 { echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
8655 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6; }
8656 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
8657   echo $ECHO_N "(cached) $ECHO_C" >&6
8658 else
8659   cat >conftest.$ac_ext <<_ACEOF
8660 /* confdefs.h.  */
8661 _ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h.  */
8665 $ac_includes_default
8666 int
8667 main ()
8668 {
8669 #ifndef ferror_unlocked
8670   (void) ferror_unlocked;
8671 #endif
8672
8673   ;
8674   return 0;
8675 }
8676 _ACEOF
8677 rm -f conftest.$ac_objext
8678 if { (ac_try="$ac_compile"
8679 case "(($ac_try" in
8680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681   *) ac_try_echo=$ac_try;;
8682 esac
8683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684   (eval "$ac_compile") 2>conftest.er1
8685   ac_status=$?
8686   grep -v '^ *+' conftest.er1 >conftest.err
8687   rm -f conftest.er1
8688   cat conftest.err >&5
8689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690   (exit $ac_status); } && {
8691          test -z "$ac_c_werror_flag" ||
8692          test ! -s conftest.err
8693        } && test -s conftest.$ac_objext; then
8694   ac_cv_have_decl_ferror_unlocked=yes
8695 else
8696   echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8698
8699         ac_cv_have_decl_ferror_unlocked=no
8700 fi
8701
8702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8703 fi
8704 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
8705 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6; }
8706 if test $ac_cv_have_decl_ferror_unlocked = yes; then
8707
8708 cat >>confdefs.h <<_ACEOF
8709 #define HAVE_DECL_FERROR_UNLOCKED 1
8710 _ACEOF
8711
8712
8713 else
8714   cat >>confdefs.h <<_ACEOF
8715 #define HAVE_DECL_FERROR_UNLOCKED 0
8716 _ACEOF
8717
8718
8719 fi
8720
8721
8722 { echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
8723 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6; }
8724 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
8725   echo $ECHO_N "(cached) $ECHO_C" >&6
8726 else
8727   cat >conftest.$ac_ext <<_ACEOF
8728 /* confdefs.h.  */
8729 _ACEOF
8730 cat confdefs.h >>conftest.$ac_ext
8731 cat >>conftest.$ac_ext <<_ACEOF
8732 /* end confdefs.h.  */
8733 $ac_includes_default
8734 int
8735 main ()
8736 {
8737 #ifndef fflush_unlocked
8738   (void) fflush_unlocked;
8739 #endif
8740
8741   ;
8742   return 0;
8743 }
8744 _ACEOF
8745 rm -f conftest.$ac_objext
8746 if { (ac_try="$ac_compile"
8747 case "(($ac_try" in
8748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8749   *) ac_try_echo=$ac_try;;
8750 esac
8751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8752   (eval "$ac_compile") 2>conftest.er1
8753   ac_status=$?
8754   grep -v '^ *+' conftest.er1 >conftest.err
8755   rm -f conftest.er1
8756   cat conftest.err >&5
8757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758   (exit $ac_status); } && {
8759          test -z "$ac_c_werror_flag" ||
8760          test ! -s conftest.err
8761        } && test -s conftest.$ac_objext; then
8762   ac_cv_have_decl_fflush_unlocked=yes
8763 else
8764   echo "$as_me: failed program was:" >&5
8765 sed 's/^/| /' conftest.$ac_ext >&5
8766
8767         ac_cv_have_decl_fflush_unlocked=no
8768 fi
8769
8770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8771 fi
8772 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
8773 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6; }
8774 if test $ac_cv_have_decl_fflush_unlocked = yes; then
8775
8776 cat >>confdefs.h <<_ACEOF
8777 #define HAVE_DECL_FFLUSH_UNLOCKED 1
8778 _ACEOF
8779
8780
8781 else
8782   cat >>confdefs.h <<_ACEOF
8783 #define HAVE_DECL_FFLUSH_UNLOCKED 0
8784 _ACEOF
8785
8786
8787 fi
8788
8789
8790 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8791 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
8792 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8793   echo $ECHO_N "(cached) $ECHO_C" >&6
8794 else
8795   cat >conftest.$ac_ext <<_ACEOF
8796 /* confdefs.h.  */
8797 _ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h.  */
8801 $ac_includes_default
8802 int
8803 main ()
8804 {
8805 #ifndef fgets_unlocked
8806   (void) fgets_unlocked;
8807 #endif
8808
8809   ;
8810   return 0;
8811 }
8812 _ACEOF
8813 rm -f conftest.$ac_objext
8814 if { (ac_try="$ac_compile"
8815 case "(($ac_try" in
8816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8817   *) ac_try_echo=$ac_try;;
8818 esac
8819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8820   (eval "$ac_compile") 2>conftest.er1
8821   ac_status=$?
8822   grep -v '^ *+' conftest.er1 >conftest.err
8823   rm -f conftest.er1
8824   cat conftest.err >&5
8825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826   (exit $ac_status); } && {
8827          test -z "$ac_c_werror_flag" ||
8828          test ! -s conftest.err
8829        } && test -s conftest.$ac_objext; then
8830   ac_cv_have_decl_fgets_unlocked=yes
8831 else
8832   echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.$ac_ext >&5
8834
8835         ac_cv_have_decl_fgets_unlocked=no
8836 fi
8837
8838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8839 fi
8840 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8841 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
8842 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8843
8844 cat >>confdefs.h <<_ACEOF
8845 #define HAVE_DECL_FGETS_UNLOCKED 1
8846 _ACEOF
8847
8848
8849 else
8850   cat >>confdefs.h <<_ACEOF
8851 #define HAVE_DECL_FGETS_UNLOCKED 0
8852 _ACEOF
8853
8854
8855 fi
8856
8857
8858 { echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
8859 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6; }
8860 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
8861   echo $ECHO_N "(cached) $ECHO_C" >&6
8862 else
8863   cat >conftest.$ac_ext <<_ACEOF
8864 /* confdefs.h.  */
8865 _ACEOF
8866 cat confdefs.h >>conftest.$ac_ext
8867 cat >>conftest.$ac_ext <<_ACEOF
8868 /* end confdefs.h.  */
8869 $ac_includes_default
8870 int
8871 main ()
8872 {
8873 #ifndef fputc_unlocked
8874   (void) fputc_unlocked;
8875 #endif
8876
8877   ;
8878   return 0;
8879 }
8880 _ACEOF
8881 rm -f conftest.$ac_objext
8882 if { (ac_try="$ac_compile"
8883 case "(($ac_try" in
8884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8885   *) ac_try_echo=$ac_try;;
8886 esac
8887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8888   (eval "$ac_compile") 2>conftest.er1
8889   ac_status=$?
8890   grep -v '^ *+' conftest.er1 >conftest.err
8891   rm -f conftest.er1
8892   cat conftest.err >&5
8893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894   (exit $ac_status); } && {
8895          test -z "$ac_c_werror_flag" ||
8896          test ! -s conftest.err
8897        } && test -s conftest.$ac_objext; then
8898   ac_cv_have_decl_fputc_unlocked=yes
8899 else
8900   echo "$as_me: failed program was:" >&5
8901 sed 's/^/| /' conftest.$ac_ext >&5
8902
8903         ac_cv_have_decl_fputc_unlocked=no
8904 fi
8905
8906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8907 fi
8908 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
8909 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6; }
8910 if test $ac_cv_have_decl_fputc_unlocked = yes; then
8911
8912 cat >>confdefs.h <<_ACEOF
8913 #define HAVE_DECL_FPUTC_UNLOCKED 1
8914 _ACEOF
8915
8916
8917 else
8918   cat >>confdefs.h <<_ACEOF
8919 #define HAVE_DECL_FPUTC_UNLOCKED 0
8920 _ACEOF
8921
8922
8923 fi
8924
8925
8926 { echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
8927 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6; }
8928 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
8929   echo $ECHO_N "(cached) $ECHO_C" >&6
8930 else
8931   cat >conftest.$ac_ext <<_ACEOF
8932 /* confdefs.h.  */
8933 _ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h.  */
8937 $ac_includes_default
8938 int
8939 main ()
8940 {
8941 #ifndef fputs_unlocked
8942   (void) fputs_unlocked;
8943 #endif
8944
8945   ;
8946   return 0;
8947 }
8948 _ACEOF
8949 rm -f conftest.$ac_objext
8950 if { (ac_try="$ac_compile"
8951 case "(($ac_try" in
8952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953   *) ac_try_echo=$ac_try;;
8954 esac
8955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956   (eval "$ac_compile") 2>conftest.er1
8957   ac_status=$?
8958   grep -v '^ *+' conftest.er1 >conftest.err
8959   rm -f conftest.er1
8960   cat conftest.err >&5
8961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962   (exit $ac_status); } && {
8963          test -z "$ac_c_werror_flag" ||
8964          test ! -s conftest.err
8965        } && test -s conftest.$ac_objext; then
8966   ac_cv_have_decl_fputs_unlocked=yes
8967 else
8968   echo "$as_me: failed program was:" >&5
8969 sed 's/^/| /' conftest.$ac_ext >&5
8970
8971         ac_cv_have_decl_fputs_unlocked=no
8972 fi
8973
8974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8975 fi
8976 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
8977 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6; }
8978 if test $ac_cv_have_decl_fputs_unlocked = yes; then
8979
8980 cat >>confdefs.h <<_ACEOF
8981 #define HAVE_DECL_FPUTS_UNLOCKED 1
8982 _ACEOF
8983
8984
8985 else
8986   cat >>confdefs.h <<_ACEOF
8987 #define HAVE_DECL_FPUTS_UNLOCKED 0
8988 _ACEOF
8989
8990
8991 fi
8992
8993
8994 { echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
8995 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6; }
8996 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
8997   echo $ECHO_N "(cached) $ECHO_C" >&6
8998 else
8999   cat >conftest.$ac_ext <<_ACEOF
9000 /* confdefs.h.  */
9001 _ACEOF
9002 cat confdefs.h >>conftest.$ac_ext
9003 cat >>conftest.$ac_ext <<_ACEOF
9004 /* end confdefs.h.  */
9005 $ac_includes_default
9006 int
9007 main ()
9008 {
9009 #ifndef fread_unlocked
9010   (void) fread_unlocked;
9011 #endif
9012
9013   ;
9014   return 0;
9015 }
9016 _ACEOF
9017 rm -f conftest.$ac_objext
9018 if { (ac_try="$ac_compile"
9019 case "(($ac_try" in
9020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9021   *) ac_try_echo=$ac_try;;
9022 esac
9023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9024   (eval "$ac_compile") 2>conftest.er1
9025   ac_status=$?
9026   grep -v '^ *+' conftest.er1 >conftest.err
9027   rm -f conftest.er1
9028   cat conftest.err >&5
9029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030   (exit $ac_status); } && {
9031          test -z "$ac_c_werror_flag" ||
9032          test ! -s conftest.err
9033        } && test -s conftest.$ac_objext; then
9034   ac_cv_have_decl_fread_unlocked=yes
9035 else
9036   echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.$ac_ext >&5
9038
9039         ac_cv_have_decl_fread_unlocked=no
9040 fi
9041
9042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9043 fi
9044 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
9045 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6; }
9046 if test $ac_cv_have_decl_fread_unlocked = yes; then
9047
9048 cat >>confdefs.h <<_ACEOF
9049 #define HAVE_DECL_FREAD_UNLOCKED 1
9050 _ACEOF
9051
9052
9053 else
9054   cat >>confdefs.h <<_ACEOF
9055 #define HAVE_DECL_FREAD_UNLOCKED 0
9056 _ACEOF
9057
9058
9059 fi
9060
9061
9062 { echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
9063 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6; }
9064 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
9065   echo $ECHO_N "(cached) $ECHO_C" >&6
9066 else
9067   cat >conftest.$ac_ext <<_ACEOF
9068 /* confdefs.h.  */
9069 _ACEOF
9070 cat confdefs.h >>conftest.$ac_ext
9071 cat >>conftest.$ac_ext <<_ACEOF
9072 /* end confdefs.h.  */
9073 $ac_includes_default
9074 int
9075 main ()
9076 {
9077 #ifndef fwrite_unlocked
9078   (void) fwrite_unlocked;
9079 #endif
9080
9081   ;
9082   return 0;
9083 }
9084 _ACEOF
9085 rm -f conftest.$ac_objext
9086 if { (ac_try="$ac_compile"
9087 case "(($ac_try" in
9088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089   *) ac_try_echo=$ac_try;;
9090 esac
9091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9092   (eval "$ac_compile") 2>conftest.er1
9093   ac_status=$?
9094   grep -v '^ *+' conftest.er1 >conftest.err
9095   rm -f conftest.er1
9096   cat conftest.err >&5
9097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098   (exit $ac_status); } && {
9099          test -z "$ac_c_werror_flag" ||
9100          test ! -s conftest.err
9101        } && test -s conftest.$ac_objext; then
9102   ac_cv_have_decl_fwrite_unlocked=yes
9103 else
9104   echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9106
9107         ac_cv_have_decl_fwrite_unlocked=no
9108 fi
9109
9110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9111 fi
9112 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
9113 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6; }
9114 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
9115
9116 cat >>confdefs.h <<_ACEOF
9117 #define HAVE_DECL_FWRITE_UNLOCKED 1
9118 _ACEOF
9119
9120
9121 else
9122   cat >>confdefs.h <<_ACEOF
9123 #define HAVE_DECL_FWRITE_UNLOCKED 0
9124 _ACEOF
9125
9126
9127 fi
9128
9129
9130 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9131 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9132 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9133   echo $ECHO_N "(cached) $ECHO_C" >&6
9134 else
9135   cat >conftest.$ac_ext <<_ACEOF
9136 /* confdefs.h.  */
9137 _ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h.  */
9141 $ac_includes_default
9142 int
9143 main ()
9144 {
9145 #ifndef getc_unlocked
9146   (void) getc_unlocked;
9147 #endif
9148
9149   ;
9150   return 0;
9151 }
9152 _ACEOF
9153 rm -f conftest.$ac_objext
9154 if { (ac_try="$ac_compile"
9155 case "(($ac_try" in
9156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9157   *) ac_try_echo=$ac_try;;
9158 esac
9159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9160   (eval "$ac_compile") 2>conftest.er1
9161   ac_status=$?
9162   grep -v '^ *+' conftest.er1 >conftest.err
9163   rm -f conftest.er1
9164   cat conftest.err >&5
9165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166   (exit $ac_status); } && {
9167          test -z "$ac_c_werror_flag" ||
9168          test ! -s conftest.err
9169        } && test -s conftest.$ac_objext; then
9170   ac_cv_have_decl_getc_unlocked=yes
9171 else
9172   echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.$ac_ext >&5
9174
9175         ac_cv_have_decl_getc_unlocked=no
9176 fi
9177
9178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9179 fi
9180 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9181 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9182 if test $ac_cv_have_decl_getc_unlocked = yes; then
9183
9184 cat >>confdefs.h <<_ACEOF
9185 #define HAVE_DECL_GETC_UNLOCKED 1
9186 _ACEOF
9187
9188
9189 else
9190   cat >>confdefs.h <<_ACEOF
9191 #define HAVE_DECL_GETC_UNLOCKED 0
9192 _ACEOF
9193
9194
9195 fi
9196
9197
9198 { echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
9199 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6; }
9200 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
9201   echo $ECHO_N "(cached) $ECHO_C" >&6
9202 else
9203   cat >conftest.$ac_ext <<_ACEOF
9204 /* confdefs.h.  */
9205 _ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h.  */
9209 $ac_includes_default
9210 int
9211 main ()
9212 {
9213 #ifndef getchar_unlocked
9214   (void) getchar_unlocked;
9215 #endif
9216
9217   ;
9218   return 0;
9219 }
9220 _ACEOF
9221 rm -f conftest.$ac_objext
9222 if { (ac_try="$ac_compile"
9223 case "(($ac_try" in
9224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9225   *) ac_try_echo=$ac_try;;
9226 esac
9227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9228   (eval "$ac_compile") 2>conftest.er1
9229   ac_status=$?
9230   grep -v '^ *+' conftest.er1 >conftest.err
9231   rm -f conftest.er1
9232   cat conftest.err >&5
9233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234   (exit $ac_status); } && {
9235          test -z "$ac_c_werror_flag" ||
9236          test ! -s conftest.err
9237        } && test -s conftest.$ac_objext; then
9238   ac_cv_have_decl_getchar_unlocked=yes
9239 else
9240   echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.$ac_ext >&5
9242
9243         ac_cv_have_decl_getchar_unlocked=no
9244 fi
9245
9246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9247 fi
9248 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
9249 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6; }
9250 if test $ac_cv_have_decl_getchar_unlocked = yes; then
9251
9252 cat >>confdefs.h <<_ACEOF
9253 #define HAVE_DECL_GETCHAR_UNLOCKED 1
9254 _ACEOF
9255
9256
9257 else
9258   cat >>confdefs.h <<_ACEOF
9259 #define HAVE_DECL_GETCHAR_UNLOCKED 0
9260 _ACEOF
9261
9262
9263 fi
9264
9265
9266 { echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
9267 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6; }
9268 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
9269   echo $ECHO_N "(cached) $ECHO_C" >&6
9270 else
9271   cat >conftest.$ac_ext <<_ACEOF
9272 /* confdefs.h.  */
9273 _ACEOF
9274 cat confdefs.h >>conftest.$ac_ext
9275 cat >>conftest.$ac_ext <<_ACEOF
9276 /* end confdefs.h.  */
9277 $ac_includes_default
9278 int
9279 main ()
9280 {
9281 #ifndef putc_unlocked
9282   (void) putc_unlocked;
9283 #endif
9284
9285   ;
9286   return 0;
9287 }
9288 _ACEOF
9289 rm -f conftest.$ac_objext
9290 if { (ac_try="$ac_compile"
9291 case "(($ac_try" in
9292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9293   *) ac_try_echo=$ac_try;;
9294 esac
9295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9296   (eval "$ac_compile") 2>conftest.er1
9297   ac_status=$?
9298   grep -v '^ *+' conftest.er1 >conftest.err
9299   rm -f conftest.er1
9300   cat conftest.err >&5
9301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302   (exit $ac_status); } && {
9303          test -z "$ac_c_werror_flag" ||
9304          test ! -s conftest.err
9305        } && test -s conftest.$ac_objext; then
9306   ac_cv_have_decl_putc_unlocked=yes
9307 else
9308   echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9310
9311         ac_cv_have_decl_putc_unlocked=no
9312 fi
9313
9314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9315 fi
9316 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
9317 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6; }
9318 if test $ac_cv_have_decl_putc_unlocked = yes; then
9319
9320 cat >>confdefs.h <<_ACEOF
9321 #define HAVE_DECL_PUTC_UNLOCKED 1
9322 _ACEOF
9323
9324
9325 else
9326   cat >>confdefs.h <<_ACEOF
9327 #define HAVE_DECL_PUTC_UNLOCKED 0
9328 _ACEOF
9329
9330
9331 fi
9332
9333
9334 { echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
9335 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6; }
9336 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
9337   echo $ECHO_N "(cached) $ECHO_C" >&6
9338 else
9339   cat >conftest.$ac_ext <<_ACEOF
9340 /* confdefs.h.  */
9341 _ACEOF
9342 cat confdefs.h >>conftest.$ac_ext
9343 cat >>conftest.$ac_ext <<_ACEOF
9344 /* end confdefs.h.  */
9345 $ac_includes_default
9346 int
9347 main ()
9348 {
9349 #ifndef putchar_unlocked
9350   (void) putchar_unlocked;
9351 #endif
9352
9353   ;
9354   return 0;
9355 }
9356 _ACEOF
9357 rm -f conftest.$ac_objext
9358 if { (ac_try="$ac_compile"
9359 case "(($ac_try" in
9360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9361   *) ac_try_echo=$ac_try;;
9362 esac
9363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9364   (eval "$ac_compile") 2>conftest.er1
9365   ac_status=$?
9366   grep -v '^ *+' conftest.er1 >conftest.err
9367   rm -f conftest.er1
9368   cat conftest.err >&5
9369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370   (exit $ac_status); } && {
9371          test -z "$ac_c_werror_flag" ||
9372          test ! -s conftest.err
9373        } && test -s conftest.$ac_objext; then
9374   ac_cv_have_decl_putchar_unlocked=yes
9375 else
9376   echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9378
9379         ac_cv_have_decl_putchar_unlocked=no
9380 fi
9381
9382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9383 fi
9384 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
9385 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6; }
9386 if test $ac_cv_have_decl_putchar_unlocked = yes; then
9387
9388 cat >>confdefs.h <<_ACEOF
9389 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
9390 _ACEOF
9391
9392
9393 else
9394   cat >>confdefs.h <<_ACEOF
9395 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
9396 _ACEOF
9397
9398
9399 fi
9400
9401
9402
9403
9404
9405
9406 for ac_func in $ac_func_list
9407 do
9408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9409 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9411 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9412   echo $ECHO_N "(cached) $ECHO_C" >&6
9413 else
9414   cat >conftest.$ac_ext <<_ACEOF
9415 /* confdefs.h.  */
9416 _ACEOF
9417 cat confdefs.h >>conftest.$ac_ext
9418 cat >>conftest.$ac_ext <<_ACEOF
9419 /* end confdefs.h.  */
9420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9421    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9422 #define $ac_func innocuous_$ac_func
9423
9424 /* System header to define __stub macros and hopefully few prototypes,
9425     which can conflict with char $ac_func (); below.
9426     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9427     <limits.h> exists even on freestanding compilers.  */
9428
9429 #ifdef __STDC__
9430 # include <limits.h>
9431 #else
9432 # include <assert.h>
9433 #endif
9434
9435 #undef $ac_func
9436
9437 /* Override any GCC internal prototype to avoid an error.
9438    Use char because int might match the return type of a GCC
9439    builtin and then its argument prototype would still apply.  */
9440 #ifdef __cplusplus
9441 extern "C"
9442 #endif
9443 char $ac_func ();
9444 /* The GNU C library defines this for functions which it implements
9445     to always fail with ENOSYS.  Some functions are actually named
9446     something starting with __ and the normal name is an alias.  */
9447 #if defined __stub_$ac_func || defined __stub___$ac_func
9448 choke me
9449 #endif
9450
9451 int
9452 main ()
9453 {
9454 return $ac_func ();
9455   ;
9456   return 0;
9457 }
9458 _ACEOF
9459 rm -f conftest.$ac_objext conftest$ac_exeext
9460 if { (ac_try="$ac_link"
9461 case "(($ac_try" in
9462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9463   *) ac_try_echo=$ac_try;;
9464 esac
9465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9466   (eval "$ac_link") 2>conftest.er1
9467   ac_status=$?
9468   grep -v '^ *+' conftest.er1 >conftest.err
9469   rm -f conftest.er1
9470   cat conftest.err >&5
9471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472   (exit $ac_status); } && {
9473          test -z "$ac_c_werror_flag" ||
9474          test ! -s conftest.err
9475        } && test -s conftest$ac_exeext &&
9476        $as_test_x conftest$ac_exeext; then
9477   eval "$as_ac_var=yes"
9478 else
9479   echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9481
9482         eval "$as_ac_var=no"
9483 fi
9484
9485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9486       conftest$ac_exeext conftest.$ac_ext
9487 fi
9488 ac_res=`eval echo '${'$as_ac_var'}'`
9489                { echo "$as_me:$LINENO: result: $ac_res" >&5
9490 echo "${ECHO_T}$ac_res" >&6; }
9491 if test `eval echo '${'$as_ac_var'}'` = yes; then
9492   cat >>confdefs.h <<_ACEOF
9493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9494 _ACEOF
9495
9496 fi
9497 done
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508   XGETTEXT_EXTRA_OPTIONS=
9509
9510 { echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
9511 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6; }
9512 if test "${gl_cv_struct_dirent_d_ino+set}" = set; then
9513   echo $ECHO_N "(cached) $ECHO_C" >&6
9514 else
9515   if test "$cross_compiling" = yes; then
9516   gl_cv_struct_dirent_d_ino=no
9517 else
9518   cat >conftest.$ac_ext <<_ACEOF
9519 /* confdefs.h.  */
9520 _ACEOF
9521 cat confdefs.h >>conftest.$ac_ext
9522 cat >>conftest.$ac_ext <<_ACEOF
9523 /* end confdefs.h.  */
9524 #include <sys/types.h>
9525              #include <sys/stat.h>
9526              #include <dirent.h>
9527
9528 int
9529 main ()
9530 {
9531 DIR *dp = opendir (".");
9532              struct dirent *e;
9533              struct stat st;
9534              if (! dp)
9535                return 1;
9536              e = readdir (dp);
9537              return ! (e
9538                        && stat (e->d_name, &st) == 0
9539                        && e->d_ino == st.st_ino);
9540   ;
9541   return 0;
9542 }
9543 _ACEOF
9544 rm -f conftest$ac_exeext
9545 if { (ac_try="$ac_link"
9546 case "(($ac_try" in
9547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9548   *) ac_try_echo=$ac_try;;
9549 esac
9550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9551   (eval "$ac_link") 2>&5
9552   ac_status=$?
9553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9555   { (case "(($ac_try" in
9556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9557   *) ac_try_echo=$ac_try;;
9558 esac
9559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9560   (eval "$ac_try") 2>&5
9561   ac_status=$?
9562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563   (exit $ac_status); }; }; then
9564   gl_cv_struct_dirent_d_ino=yes
9565 else
9566   echo "$as_me: program exited with status $ac_status" >&5
9567 echo "$as_me: failed program was:" >&5
9568 sed 's/^/| /' conftest.$ac_ext >&5
9569
9570 ( exit $ac_status )
9571 gl_cv_struct_dirent_d_ino=no
9572 fi
9573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9574 fi
9575
9576
9577 fi
9578 { echo "$as_me:$LINENO: result: $gl_cv_struct_dirent_d_ino" >&5
9579 echo "${ECHO_T}$gl_cv_struct_dirent_d_ino" >&6; }
9580    if test $gl_cv_struct_dirent_d_ino = yes; then
9581
9582 cat >>confdefs.h <<\_ACEOF
9583 #define D_INO_IN_DIRENT 1
9584 _ACEOF
9585
9586    fi
9587
9588
9589
9590     { echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
9591 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6; }
9592 if test "${ac_cv_win_or_dos+set}" = set; then
9593   echo $ECHO_N "(cached) $ECHO_C" >&6
9594 else
9595
9596         cat >conftest.$ac_ext <<_ACEOF
9597 /* confdefs.h.  */
9598 _ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h.  */
9602
9603 int
9604 main ()
9605 {
9606 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
9607 neither MSDOS nor Windows
9608 #endif
9609   ;
9610   return 0;
9611 }
9612 _ACEOF
9613 rm -f conftest.$ac_objext
9614 if { (ac_try="$ac_compile"
9615 case "(($ac_try" in
9616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617   *) ac_try_echo=$ac_try;;
9618 esac
9619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620   (eval "$ac_compile") 2>conftest.er1
9621   ac_status=$?
9622   grep -v '^ *+' conftest.er1 >conftest.err
9623   rm -f conftest.er1
9624   cat conftest.err >&5
9625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626   (exit $ac_status); } && {
9627          test -z "$ac_c_werror_flag" ||
9628          test ! -s conftest.err
9629        } && test -s conftest.$ac_objext; then
9630   ac_cv_win_or_dos=yes
9631 else
9632   echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.$ac_ext >&5
9634
9635         ac_cv_win_or_dos=no
9636 fi
9637
9638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9639
9640 fi
9641 { echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
9642 echo "${ECHO_T}$ac_cv_win_or_dos" >&6; }
9643
9644     if test x"$ac_cv_win_or_dos" = xyes; then
9645       ac_fs_accepts_drive_letter_prefix=1
9646       ac_fs_backslash_is_file_name_separator=1
9647       { echo "$as_me:$LINENO: checking whether drive letter can start relative path" >&5
9648 echo $ECHO_N "checking whether drive letter can start relative path... $ECHO_C" >&6; }
9649 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then
9650   echo $ECHO_N "(cached) $ECHO_C" >&6
9651 else
9652
9653           cat >conftest.$ac_ext <<_ACEOF
9654 /* confdefs.h.  */
9655 _ACEOF
9656 cat confdefs.h >>conftest.$ac_ext
9657 cat >>conftest.$ac_ext <<_ACEOF
9658 /* end confdefs.h.  */
9659
9660 int
9661 main ()
9662 {
9663 #if defined __CYGWIN__
9664 drive letters are always absolute
9665 #endif
9666   ;
9667   return 0;
9668 }
9669 _ACEOF
9670 rm -f conftest.$ac_objext
9671 if { (ac_try="$ac_compile"
9672 case "(($ac_try" in
9673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674   *) ac_try_echo=$ac_try;;
9675 esac
9676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9677   (eval "$ac_compile") 2>conftest.er1
9678   ac_status=$?
9679   grep -v '^ *+' conftest.er1 >conftest.err
9680   rm -f conftest.er1
9681   cat conftest.err >&5
9682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683   (exit $ac_status); } && {
9684          test -z "$ac_c_werror_flag" ||
9685          test ! -s conftest.err
9686        } && test -s conftest.$ac_objext; then
9687   ac_cv_drive_letter_can_be_relative=yes
9688 else
9689   echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9691
9692         ac_cv_drive_letter_can_be_relative=no
9693 fi
9694
9695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9696
9697 fi
9698 { echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5
9699 echo "${ECHO_T}$ac_cv_drive_letter_can_be_relative" >&6; }
9700       if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
9701         ac_fs_drive_letter_can_be_relative=1
9702       else
9703         ac_fs_drive_letter_can_be_relative=0
9704       fi
9705     else
9706       ac_fs_accepts_drive_letter_prefix=0
9707       ac_fs_backslash_is_file_name_separator=0
9708       ac_fs_drive_letter_can_be_relative=0
9709     fi
9710
9711
9712 cat >>confdefs.h <<_ACEOF
9713 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
9714 _ACEOF
9715
9716
9717
9718
9719
9720
9721 cat >>confdefs.h <<_ACEOF
9722 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
9723 _ACEOF
9724
9725
9726
9727 cat >>confdefs.h <<_ACEOF
9728 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
9729 _ACEOF
9730
9731
9732 { echo "$as_me:$LINENO: checking for long file names" >&5
9733 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9734 if test "${ac_cv_sys_long_file_names+set}" = set; then
9735   echo $ECHO_N "(cached) $ECHO_C" >&6
9736 else
9737   ac_cv_sys_long_file_names=yes
9738 # Test for long file names in all the places we know might matter:
9739 #      .                the current directory, where building will happen
9740 #      $prefix/lib      where we will be installing things
9741 #      $exec_prefix/lib likewise
9742 #      $TMPDIR          if set, where it might want to write temporary files
9743 #      /tmp             where it might want to write temporary files
9744 #      /var/tmp         likewise
9745 #      /usr/tmp         likewise
9746 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9747   # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9748   # in the usual case where exec_prefix is '${prefix}'.
9749   case $ac_dir in #(
9750     . | /* | ?:[\\/]*) ;; #(
9751     *) continue;;
9752   esac
9753   test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9754   ac_xdir=$ac_dir/cf$$
9755   (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9756   ac_tf1=$ac_xdir/conftest9012345
9757   ac_tf2=$ac_xdir/conftest9012346
9758   touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9759     ac_cv_sys_long_file_names=no
9760   rm -f -r "$ac_xdir" 2>/dev/null
9761   test $ac_cv_sys_long_file_names = no && break
9762 done
9763 fi
9764 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9765 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9766 if test $ac_cv_sys_long_file_names = yes; then
9767
9768 cat >>confdefs.h <<\_ACEOF
9769 #define HAVE_LONG_FILE_NAMES 1
9770 _ACEOF
9771
9772 fi
9773
9774
9775
9776 { echo "$as_me:$LINENO: checking whether canonicalize_file_name is declared" >&5
9777 echo $ECHO_N "checking whether canonicalize_file_name is declared... $ECHO_C" >&6; }
9778 if test "${ac_cv_have_decl_canonicalize_file_name+set}" = set; then
9779   echo $ECHO_N "(cached) $ECHO_C" >&6
9780 else
9781   cat >conftest.$ac_ext <<_ACEOF
9782 /* confdefs.h.  */
9783 _ACEOF
9784 cat confdefs.h >>conftest.$ac_ext
9785 cat >>conftest.$ac_ext <<_ACEOF
9786 /* end confdefs.h.  */
9787 $ac_includes_default
9788 int
9789 main ()
9790 {
9791 #ifndef canonicalize_file_name
9792   (void) canonicalize_file_name;
9793 #endif
9794
9795   ;
9796   return 0;
9797 }
9798 _ACEOF
9799 rm -f conftest.$ac_objext
9800 if { (ac_try="$ac_compile"
9801 case "(($ac_try" in
9802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9803   *) ac_try_echo=$ac_try;;
9804 esac
9805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806   (eval "$ac_compile") 2>conftest.er1
9807   ac_status=$?
9808   grep -v '^ *+' conftest.er1 >conftest.err
9809   rm -f conftest.er1
9810   cat conftest.err >&5
9811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812   (exit $ac_status); } && {
9813          test -z "$ac_c_werror_flag" ||
9814          test ! -s conftest.err
9815        } && test -s conftest.$ac_objext; then
9816   ac_cv_have_decl_canonicalize_file_name=yes
9817 else
9818   echo "$as_me: failed program was:" >&5
9819 sed 's/^/| /' conftest.$ac_ext >&5
9820
9821         ac_cv_have_decl_canonicalize_file_name=no
9822 fi
9823
9824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9825 fi
9826 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_canonicalize_file_name" >&5
9827 echo "${ECHO_T}$ac_cv_have_decl_canonicalize_file_name" >&6; }
9828 if test $ac_cv_have_decl_canonicalize_file_name = yes; then
9829
9830 cat >>confdefs.h <<_ACEOF
9831 #define HAVE_DECL_CANONICALIZE_FILE_NAME 1
9832 _ACEOF
9833
9834
9835 else
9836   cat >>confdefs.h <<_ACEOF
9837 #define HAVE_DECL_CANONICALIZE_FILE_NAME 0
9838 _ACEOF
9839
9840
9841 fi
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851   GNULIB_CHOWN=0;
9852   GNULIB_DUP2=0;
9853   GNULIB_ENVIRON=0;
9854   GNULIB_FCHDIR=0;
9855   GNULIB_FTRUNCATE=0;
9856   GNULIB_GETCWD=0;
9857   GNULIB_GETLOGIN_R=0;
9858   GNULIB_GETPAGESIZE=0;
9859   GNULIB_LCHOWN=0;
9860   GNULIB_LSEEK=0;
9861   GNULIB_READLINK=0;
9862   GNULIB_SLEEP=0;
9863     HAVE_DUP2=1;
9864   HAVE_FTRUNCATE=1;
9865   HAVE_GETPAGESIZE=1;
9866   HAVE_READLINK=1;
9867   HAVE_SLEEP=1;
9868   HAVE_DECL_ENVIRON=1;
9869   HAVE_DECL_GETLOGIN_R=1;
9870   HAVE_OS_H=0;
9871   HAVE_SYS_PARAM_H=0;
9872   REPLACE_CHOWN=0;
9873   REPLACE_FCHDIR=0;
9874   REPLACE_GETCWD=0;
9875   REPLACE_GETPAGESIZE=0;
9876   REPLACE_LCHOWN=0;
9877   REPLACE_LSEEK=0;
9878
9879
9880 for ac_header in unistd.h
9881 do
9882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9884   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9887   echo $ECHO_N "(cached) $ECHO_C" >&6
9888 fi
9889 ac_res=`eval echo '${'$as_ac_Header'}'`
9890                { echo "$as_me:$LINENO: result: $ac_res" >&5
9891 echo "${ECHO_T}$ac_res" >&6; }
9892 else
9893   # Is the header compilable?
9894 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9896 cat >conftest.$ac_ext <<_ACEOF
9897 /* confdefs.h.  */
9898 _ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h.  */
9902 $ac_includes_default
9903 #include <$ac_header>
9904 _ACEOF
9905 rm -f conftest.$ac_objext
9906 if { (ac_try="$ac_compile"
9907 case "(($ac_try" in
9908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909   *) ac_try_echo=$ac_try;;
9910 esac
9911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912   (eval "$ac_compile") 2>conftest.er1
9913   ac_status=$?
9914   grep -v '^ *+' conftest.er1 >conftest.err
9915   rm -f conftest.er1
9916   cat conftest.err >&5
9917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918   (exit $ac_status); } && {
9919          test -z "$ac_c_werror_flag" ||
9920          test ! -s conftest.err
9921        } && test -s conftest.$ac_objext; then
9922   ac_header_compiler=yes
9923 else
9924   echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.$ac_ext >&5
9926
9927         ac_header_compiler=no
9928 fi
9929
9930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9931 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9932 echo "${ECHO_T}$ac_header_compiler" >&6; }
9933
9934 # Is the header present?
9935 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9937 cat >conftest.$ac_ext <<_ACEOF
9938 /* confdefs.h.  */
9939 _ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h.  */
9943 #include <$ac_header>
9944 _ACEOF
9945 if { (ac_try="$ac_cpp conftest.$ac_ext"
9946 case "(($ac_try" in
9947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948   *) ac_try_echo=$ac_try;;
9949 esac
9950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9952   ac_status=$?
9953   grep -v '^ *+' conftest.er1 >conftest.err
9954   rm -f conftest.er1
9955   cat conftest.err >&5
9956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957   (exit $ac_status); } >/dev/null && {
9958          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9959          test ! -s conftest.err
9960        }; then
9961   ac_header_preproc=yes
9962 else
9963   echo "$as_me: failed program was:" >&5
9964 sed 's/^/| /' conftest.$ac_ext >&5
9965
9966   ac_header_preproc=no
9967 fi
9968
9969 rm -f conftest.err conftest.$ac_ext
9970 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9971 echo "${ECHO_T}$ac_header_preproc" >&6; }
9972
9973 # So?  What about this header?
9974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9975   yes:no: )
9976     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9978     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9980     ac_header_preproc=yes
9981     ;;
9982   no:yes:* )
9983     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9985     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9986 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9987     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9989     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9990 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9991     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9993     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9995     ( cat <<\_ASBOX
9996 ## ------------------------------ ##
9997 ## Report this to bug-tar@gnu.org ##
9998 ## ------------------------------ ##
9999 _ASBOX
10000      ) | sed "s/^/$as_me: WARNING:     /" >&2
10001     ;;
10002 esac
10003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10006   echo $ECHO_N "(cached) $ECHO_C" >&6
10007 else
10008   eval "$as_ac_Header=\$ac_header_preproc"
10009 fi
10010 ac_res=`eval echo '${'$as_ac_Header'}'`
10011                { echo "$as_me:$LINENO: result: $ac_res" >&5
10012 echo "${ECHO_T}$ac_res" >&6; }
10013
10014 fi
10015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10016   cat >>confdefs.h <<_ACEOF
10017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10018 _ACEOF
10019
10020 fi
10021
10022 done
10023
10024 { echo "$as_me:$LINENO: checking for working chown" >&5
10025 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
10026 if test "${ac_cv_func_chown_works+set}" = set; then
10027   echo $ECHO_N "(cached) $ECHO_C" >&6
10028 else
10029   if test "$cross_compiling" = yes; then
10030   ac_cv_func_chown_works=no
10031 else
10032   cat >conftest.$ac_ext <<_ACEOF
10033 /* confdefs.h.  */
10034 _ACEOF
10035 cat confdefs.h >>conftest.$ac_ext
10036 cat >>conftest.$ac_ext <<_ACEOF
10037 /* end confdefs.h.  */
10038 $ac_includes_default
10039 #include <fcntl.h>
10040
10041 int
10042 main ()
10043 {
10044   char *f = "conftest.chown";
10045   struct stat before, after;
10046
10047   if (creat (f, 0600) < 0)
10048     return 1;
10049   if (stat (f, &before) < 0)
10050     return 1;
10051   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
10052     return 1;
10053   if (stat (f, &after) < 0)
10054     return 1;
10055   return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
10056
10057   ;
10058   return 0;
10059 }
10060 _ACEOF
10061 rm -f conftest$ac_exeext
10062 if { (ac_try="$ac_link"
10063 case "(($ac_try" in
10064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065   *) ac_try_echo=$ac_try;;
10066 esac
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068   (eval "$ac_link") 2>&5
10069   ac_status=$?
10070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10072   { (case "(($ac_try" in
10073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074   *) ac_try_echo=$ac_try;;
10075 esac
10076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077   (eval "$ac_try") 2>&5
10078   ac_status=$?
10079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080   (exit $ac_status); }; }; then
10081   ac_cv_func_chown_works=yes
10082 else
10083   echo "$as_me: program exited with status $ac_status" >&5
10084 echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10086
10087 ( exit $ac_status )
10088 ac_cv_func_chown_works=no
10089 fi
10090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10091 fi
10092
10093
10094 rm -f conftest.chown
10095
10096 fi
10097 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
10098 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
10099 if test $ac_cv_func_chown_works = yes; then
10100
10101 cat >>confdefs.h <<\_ACEOF
10102 #define HAVE_CHOWN 1
10103 _ACEOF
10104
10105 fi
10106
10107
10108   { echo "$as_me:$LINENO: checking whether chown(2) dereferences symlinks" >&5
10109 echo $ECHO_N "checking whether chown(2) dereferences symlinks... $ECHO_C" >&6; }
10110 if test "${gl_cv_func_chown_follows_symlink+set}" = set; then
10111   echo $ECHO_N "(cached) $ECHO_C" >&6
10112 else
10113
10114       if test "$cross_compiling" = yes; then
10115   gl_cv_func_chown_follows_symlink=yes
10116
10117 else
10118   cat >conftest.$ac_ext <<_ACEOF
10119 /* confdefs.h.  */
10120 _ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h.  */
10124
10125 #include <unistd.h>
10126 #include <stdlib.h>
10127 #include <errno.h>
10128
10129         int
10130         main ()
10131         {
10132           char const *dangling_symlink = "conftest.dangle";
10133
10134           unlink (dangling_symlink);
10135           if (symlink ("conftest.no-such", dangling_symlink))
10136             abort ();
10137
10138           /* Exit successfully on a conforming system,
10139              i.e., where chown must fail with ENOENT.  */
10140           exit ( ! (chown (dangling_symlink, getuid (), getgid ()) != 0
10141                     && errno == ENOENT));
10142         }
10143
10144 _ACEOF
10145 rm -f conftest$ac_exeext
10146 if { (ac_try="$ac_link"
10147 case "(($ac_try" in
10148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149   *) ac_try_echo=$ac_try;;
10150 esac
10151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10152   (eval "$ac_link") 2>&5
10153   ac_status=$?
10154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10156   { (case "(($ac_try" in
10157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158   *) ac_try_echo=$ac_try;;
10159 esac
10160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161   (eval "$ac_try") 2>&5
10162   ac_status=$?
10163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164   (exit $ac_status); }; }; then
10165   gl_cv_func_chown_follows_symlink=yes
10166 else
10167   echo "$as_me: program exited with status $ac_status" >&5
10168 echo "$as_me: failed program was:" >&5
10169 sed 's/^/| /' conftest.$ac_ext >&5
10170
10171 ( exit $ac_status )
10172 gl_cv_func_chown_follows_symlink=no
10173 fi
10174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10175 fi
10176
10177
10178
10179
10180 fi
10181 { echo "$as_me:$LINENO: result: $gl_cv_func_chown_follows_symlink" >&5
10182 echo "${ECHO_T}$gl_cv_func_chown_follows_symlink" >&6; }
10183
10184   if test $gl_cv_func_chown_follows_symlink = no; then
10185
10186 cat >>confdefs.h <<\_ACEOF
10187 #define CHOWN_MODIFIES_SYMLINK 1
10188 _ACEOF
10189
10190   fi
10191
10192 # Make sure we can run config.sub.
10193 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
10194   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
10195 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
10196    { (exit 1); exit 1; }; }
10197
10198 { echo "$as_me:$LINENO: checking build system type" >&5
10199 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
10200 if test "${ac_cv_build+set}" = set; then
10201   echo $ECHO_N "(cached) $ECHO_C" >&6
10202 else
10203   ac_build_alias=$build_alias
10204 test "x$ac_build_alias" = x &&
10205   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
10206 test "x$ac_build_alias" = x &&
10207   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
10208 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
10209    { (exit 1); exit 1; }; }
10210 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
10211   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
10212 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
10213    { (exit 1); exit 1; }; }
10214
10215 fi
10216 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
10217 echo "${ECHO_T}$ac_cv_build" >&6; }
10218 case $ac_cv_build in
10219 *-*-*) ;;
10220 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
10221 echo "$as_me: error: invalid value of canonical build" >&2;}
10222    { (exit 1); exit 1; }; };;
10223 esac
10224 build=$ac_cv_build
10225 ac_save_IFS=$IFS; IFS='-'
10226 set x $ac_cv_build
10227 shift
10228 build_cpu=$1
10229 build_vendor=$2
10230 shift; shift
10231 # Remember, the first character of IFS is used to create $*,
10232 # except with old shells:
10233 build_os=$*
10234 IFS=$ac_save_IFS
10235 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
10236
10237
10238 { echo "$as_me:$LINENO: checking host system type" >&5
10239 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
10240 if test "${ac_cv_host+set}" = set; then
10241   echo $ECHO_N "(cached) $ECHO_C" >&6
10242 else
10243   if test "x$host_alias" = x; then
10244   ac_cv_host=$ac_cv_build
10245 else
10246   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
10247     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
10248 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
10249    { (exit 1); exit 1; }; }
10250 fi
10251
10252 fi
10253 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
10254 echo "${ECHO_T}$ac_cv_host" >&6; }
10255 case $ac_cv_host in
10256 *-*-*) ;;
10257 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
10258 echo "$as_me: error: invalid value of canonical host" >&2;}
10259    { (exit 1); exit 1; }; };;
10260 esac
10261 host=$ac_cv_host
10262 ac_save_IFS=$IFS; IFS='-'
10263 set x $ac_cv_host
10264 shift
10265 host_cpu=$1
10266 host_vendor=$2
10267 shift; shift
10268 # Remember, the first character of IFS is used to create $*,
10269 # except with old shells:
10270 host_os=$*
10271 IFS=$ac_save_IFS
10272 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
10273
10274
10275
10276
10277   { echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
10278 echo $ECHO_N "checking whether // is distinct from /... $ECHO_C" >&6; }
10279 if test "${gl_cv_double_slash_root+set}" = set; then
10280   echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282    if test x"$cross_compiling" = xyes ; then
10283         # When cross-compiling, there is no way to tell whether // is special
10284         # short of a list of hosts.  However, the only known hosts to date
10285         # that have a distinct // are Apollo DomainOS (too old to port to),
10286         # Cygwin, and z/OS.  If anyone knows of another system for which // has
10287         # special semantics and is distinct from /, please report it to
10288         # <bug-gnulib@gnu.org>.
10289         case $host in
10290           *-cygwin | i370-ibm-openedition)
10291             gl_cv_double_slash_root=yes ;;
10292           *)
10293             # Be optimistic and assume that / and // are the same when we
10294             # don't know.
10295             gl_cv_double_slash_root='unknown, assuming no' ;;
10296         esac
10297       else
10298         set x `ls -di / // 2>/dev/null`
10299         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
10300           gl_cv_double_slash_root=no
10301         else
10302           gl_cv_double_slash_root=yes
10303         fi
10304       fi
10305 fi
10306 { echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
10307 echo "${ECHO_T}$gl_cv_double_slash_root" >&6; }
10308   if test "$gl_cv_double_slash_root" = yes; then
10309
10310 cat >>confdefs.h <<\_ACEOF
10311 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
10312 _ACEOF
10313
10314   fi
10315
10316
10317
10318 { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
10319 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
10320 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
10321   echo $ECHO_N "(cached) $ECHO_C" >&6
10322 else
10323   cat >conftest.$ac_ext <<_ACEOF
10324 /* confdefs.h.  */
10325 _ACEOF
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h.  */
10329 $ac_includes_default
10330 int
10331 main ()
10332 {
10333 #ifndef strerror_r
10334   (void) strerror_r;
10335 #endif
10336
10337   ;
10338   return 0;
10339 }
10340 _ACEOF
10341 rm -f conftest.$ac_objext
10342 if { (ac_try="$ac_compile"
10343 case "(($ac_try" in
10344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10345   *) ac_try_echo=$ac_try;;
10346 esac
10347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10348   (eval "$ac_compile") 2>conftest.er1
10349   ac_status=$?
10350   grep -v '^ *+' conftest.er1 >conftest.err
10351   rm -f conftest.er1
10352   cat conftest.err >&5
10353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354   (exit $ac_status); } && {
10355          test -z "$ac_c_werror_flag" ||
10356          test ! -s conftest.err
10357        } && test -s conftest.$ac_objext; then
10358   ac_cv_have_decl_strerror_r=yes
10359 else
10360   echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10362
10363         ac_cv_have_decl_strerror_r=no
10364 fi
10365
10366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10367 fi
10368 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
10369 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
10370 if test $ac_cv_have_decl_strerror_r = yes; then
10371
10372 cat >>confdefs.h <<_ACEOF
10373 #define HAVE_DECL_STRERROR_R 1
10374 _ACEOF
10375
10376
10377 else
10378   cat >>confdefs.h <<_ACEOF
10379 #define HAVE_DECL_STRERROR_R 0
10380 _ACEOF
10381
10382
10383 fi
10384
10385
10386
10387 for ac_func in strerror_r
10388 do
10389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10390 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10393   echo $ECHO_N "(cached) $ECHO_C" >&6
10394 else
10395   cat >conftest.$ac_ext <<_ACEOF
10396 /* confdefs.h.  */
10397 _ACEOF
10398 cat confdefs.h >>conftest.$ac_ext
10399 cat >>conftest.$ac_ext <<_ACEOF
10400 /* end confdefs.h.  */
10401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10403 #define $ac_func innocuous_$ac_func
10404
10405 /* System header to define __stub macros and hopefully few prototypes,
10406     which can conflict with char $ac_func (); below.
10407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10408     <limits.h> exists even on freestanding compilers.  */
10409
10410 #ifdef __STDC__
10411 # include <limits.h>
10412 #else
10413 # include <assert.h>
10414 #endif
10415
10416 #undef $ac_func
10417
10418 /* Override any GCC internal prototype to avoid an error.
10419    Use char because int might match the return type of a GCC
10420    builtin and then its argument prototype would still apply.  */
10421 #ifdef __cplusplus
10422 extern "C"
10423 #endif
10424 char $ac_func ();
10425 /* The GNU C library defines this for functions which it implements
10426     to always fail with ENOSYS.  Some functions are actually named
10427     something starting with __ and the normal name is an alias.  */
10428 #if defined __stub_$ac_func || defined __stub___$ac_func
10429 choke me
10430 #endif
10431
10432 int
10433 main ()
10434 {
10435 return $ac_func ();
10436   ;
10437   return 0;
10438 }
10439 _ACEOF
10440 rm -f conftest.$ac_objext conftest$ac_exeext
10441 if { (ac_try="$ac_link"
10442 case "(($ac_try" in
10443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444   *) ac_try_echo=$ac_try;;
10445 esac
10446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10447   (eval "$ac_link") 2>conftest.er1
10448   ac_status=$?
10449   grep -v '^ *+' conftest.er1 >conftest.err
10450   rm -f conftest.er1
10451   cat conftest.err >&5
10452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453   (exit $ac_status); } && {
10454          test -z "$ac_c_werror_flag" ||
10455          test ! -s conftest.err
10456        } && test -s conftest$ac_exeext &&
10457        $as_test_x conftest$ac_exeext; then
10458   eval "$as_ac_var=yes"
10459 else
10460   echo "$as_me: failed program was:" >&5
10461 sed 's/^/| /' conftest.$ac_ext >&5
10462
10463         eval "$as_ac_var=no"
10464 fi
10465
10466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10467       conftest$ac_exeext conftest.$ac_ext
10468 fi
10469 ac_res=`eval echo '${'$as_ac_var'}'`
10470                { echo "$as_me:$LINENO: result: $ac_res" >&5
10471 echo "${ECHO_T}$ac_res" >&6; }
10472 if test `eval echo '${'$as_ac_var'}'` = yes; then
10473   cat >>confdefs.h <<_ACEOF
10474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10475 _ACEOF
10476
10477 fi
10478 done
10479
10480 { echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
10481 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
10482 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
10483   echo $ECHO_N "(cached) $ECHO_C" >&6
10484 else
10485
10486     ac_cv_func_strerror_r_char_p=no
10487     if test $ac_cv_have_decl_strerror_r = yes; then
10488       cat >conftest.$ac_ext <<_ACEOF
10489 /* confdefs.h.  */
10490 _ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h.  */
10494 $ac_includes_default
10495 int
10496 main ()
10497 {
10498
10499           char buf[100];
10500           char x = *strerror_r (0, buf, sizeof buf);
10501           char *p = strerror_r (0, buf, sizeof buf);
10502           return !p || x;
10503
10504   ;
10505   return 0;
10506 }
10507 _ACEOF
10508 rm -f conftest.$ac_objext
10509 if { (ac_try="$ac_compile"
10510 case "(($ac_try" in
10511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10512   *) ac_try_echo=$ac_try;;
10513 esac
10514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10515   (eval "$ac_compile") 2>conftest.er1
10516   ac_status=$?
10517   grep -v '^ *+' conftest.er1 >conftest.err
10518   rm -f conftest.er1
10519   cat conftest.err >&5
10520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521   (exit $ac_status); } && {
10522          test -z "$ac_c_werror_flag" ||
10523          test ! -s conftest.err
10524        } && test -s conftest.$ac_objext; then
10525   ac_cv_func_strerror_r_char_p=yes
10526 else
10527   echo "$as_me: failed program was:" >&5
10528 sed 's/^/| /' conftest.$ac_ext >&5
10529
10530
10531 fi
10532
10533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10534     else
10535       # strerror_r is not declared.  Choose between
10536       # systems that have relatively inaccessible declarations for the
10537       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
10538       # former has a strerror_r that returns char*, while the latter
10539       # has a strerror_r that returns `int'.
10540       # This test should segfault on the DEC system.
10541       if test "$cross_compiling" = yes; then
10542   :
10543 else
10544   cat >conftest.$ac_ext <<_ACEOF
10545 /* confdefs.h.  */
10546 _ACEOF
10547 cat confdefs.h >>conftest.$ac_ext
10548 cat >>conftest.$ac_ext <<_ACEOF
10549 /* end confdefs.h.  */
10550 $ac_includes_default
10551         extern char *strerror_r ();
10552 int
10553 main ()
10554 {
10555 char buf[100];
10556           char x = *strerror_r (0, buf, sizeof buf);
10557           return ! isalpha (x);
10558   ;
10559   return 0;
10560 }
10561 _ACEOF
10562 rm -f conftest$ac_exeext
10563 if { (ac_try="$ac_link"
10564 case "(($ac_try" in
10565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10566   *) ac_try_echo=$ac_try;;
10567 esac
10568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10569   (eval "$ac_link") 2>&5
10570   ac_status=$?
10571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10573   { (case "(($ac_try" in
10574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10575   *) ac_try_echo=$ac_try;;
10576 esac
10577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10578   (eval "$ac_try") 2>&5
10579   ac_status=$?
10580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581   (exit $ac_status); }; }; then
10582   ac_cv_func_strerror_r_char_p=yes
10583 else
10584   echo "$as_me: program exited with status $ac_status" >&5
10585 echo "$as_me: failed program was:" >&5
10586 sed 's/^/| /' conftest.$ac_ext >&5
10587
10588 fi
10589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10590 fi
10591
10592
10593     fi
10594
10595 fi
10596 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
10597 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
10598 if test $ac_cv_func_strerror_r_char_p = yes; then
10599
10600 cat >>confdefs.h <<\_ACEOF
10601 #define STRERROR_R_CHAR_P 1
10602 _ACEOF
10603
10604 fi
10605
10606
10607
10608
10609
10610   { echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
10611 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6; }
10612 if test "${gl_cv_have_include_next+set}" = set; then
10613   echo $ECHO_N "(cached) $ECHO_C" >&6
10614 else
10615   rm -rf conftestd1 conftestd2
10616      mkdir conftestd1 conftestd2
10617      cat <<EOF > conftestd1/conftest.h
10618 #define DEFINED_IN_CONFTESTD1
10619 #include_next <conftest.h>
10620 #ifdef DEFINED_IN_CONFTESTD2
10621 int foo;
10622 #else
10623 #error "include_next doesn't work"
10624 #endif
10625 EOF
10626      cat <<EOF > conftestd2/conftest.h
10627 #ifndef DEFINED_IN_CONFTESTD1
10628 #error "include_next test doesn't work"
10629 #endif
10630 #define DEFINED_IN_CONFTESTD2
10631 EOF
10632      save_CPPFLAGS="$CPPFLAGS"
10633      CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
10634      cat >conftest.$ac_ext <<_ACEOF
10635 #include <conftest.h>
10636 _ACEOF
10637 rm -f conftest.$ac_objext
10638 if { (ac_try="$ac_compile"
10639 case "(($ac_try" in
10640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641   *) ac_try_echo=$ac_try;;
10642 esac
10643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644   (eval "$ac_compile") 2>conftest.er1
10645   ac_status=$?
10646   grep -v '^ *+' conftest.er1 >conftest.err
10647   rm -f conftest.er1
10648   cat conftest.err >&5
10649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650   (exit $ac_status); } && {
10651          test -z "$ac_c_werror_flag" ||
10652          test ! -s conftest.err
10653        } && test -s conftest.$ac_objext; then
10654   gl_cv_have_include_next=yes
10655 else
10656   echo "$as_me: failed program was:" >&5
10657 sed 's/^/| /' conftest.$ac_ext >&5
10658
10659         gl_cv_have_include_next=no
10660 fi
10661
10662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10663      CPPFLAGS="$save_CPPFLAGS"
10664      rm -rf conftestd1 conftestd2
10665
10666 fi
10667 { echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
10668 echo "${ECHO_T}$gl_cv_have_include_next" >&6; }
10669   if test $gl_cv_have_include_next = yes; then
10670
10671
10672 cat >>confdefs.h <<\_ACEOF
10673 #define HAVE_INCLUDE_NEXT 1
10674 _ACEOF
10675
10676
10677     INCLUDE_NEXT=include_next
10678   else
10679     INCLUDE_NEXT=include
10680   fi
10681
10682
10683
10684
10685
10686   GNULIB_OPEN=0;
10687     REPLACE_OPEN=0;
10688
10689
10690
10691 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
10692 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
10693 if test "${ac_cv_type_mbstate_t+set}" = set; then
10694   echo $ECHO_N "(cached) $ECHO_C" >&6
10695 else
10696   cat >conftest.$ac_ext <<_ACEOF
10697 /* confdefs.h.  */
10698 _ACEOF
10699 cat confdefs.h >>conftest.$ac_ext
10700 cat >>conftest.$ac_ext <<_ACEOF
10701 /* end confdefs.h.  */
10702 $ac_includes_default
10703 #           include <wchar.h>
10704 int
10705 main ()
10706 {
10707 mbstate_t x; return sizeof x;
10708   ;
10709   return 0;
10710 }
10711 _ACEOF
10712 rm -f conftest.$ac_objext
10713 if { (ac_try="$ac_compile"
10714 case "(($ac_try" in
10715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716   *) ac_try_echo=$ac_try;;
10717 esac
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719   (eval "$ac_compile") 2>conftest.er1
10720   ac_status=$?
10721   grep -v '^ *+' conftest.er1 >conftest.err
10722   rm -f conftest.er1
10723   cat conftest.err >&5
10724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725   (exit $ac_status); } && {
10726          test -z "$ac_c_werror_flag" ||
10727          test ! -s conftest.err
10728        } && test -s conftest.$ac_objext; then
10729   ac_cv_type_mbstate_t=yes
10730 else
10731   echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.$ac_ext >&5
10733
10734         ac_cv_type_mbstate_t=no
10735 fi
10736
10737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10738 fi
10739 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
10740 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
10741    if test $ac_cv_type_mbstate_t = yes; then
10742
10743 cat >>confdefs.h <<\_ACEOF
10744 #define HAVE_MBSTATE_T 1
10745 _ACEOF
10746
10747    else
10748
10749 cat >>confdefs.h <<\_ACEOF
10750 #define mbstate_t int
10751 _ACEOF
10752
10753    fi
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777   GNULIB_FPRINTF_POSIX=0;
10778   GNULIB_PRINTF_POSIX=0;
10779   GNULIB_SNPRINTF=0;
10780   GNULIB_SPRINTF_POSIX=0;
10781   GNULIB_VFPRINTF_POSIX=0;
10782   GNULIB_VPRINTF_POSIX=0;
10783   GNULIB_VSNPRINTF=0;
10784   GNULIB_VSPRINTF_POSIX=0;
10785   GNULIB_VASPRINTF=0;
10786   GNULIB_FOPEN=0;
10787   GNULIB_FREOPEN=0;
10788   GNULIB_FSEEK=0;
10789   GNULIB_FSEEKO=0;
10790   GNULIB_FTELL=0;
10791   GNULIB_FTELLO=0;
10792   GNULIB_FFLUSH=0;
10793   GNULIB_GETDELIM=0;
10794   GNULIB_GETLINE=0;
10795     REPLACE_FPRINTF=0;
10796   REPLACE_VFPRINTF=0;
10797   REPLACE_PRINTF=0;
10798   REPLACE_VPRINTF=0;
10799   REPLACE_SNPRINTF=0;
10800   HAVE_DECL_SNPRINTF=1;
10801   REPLACE_VSNPRINTF=0;
10802   HAVE_DECL_VSNPRINTF=1;
10803   REPLACE_SPRINTF=0;
10804   REPLACE_VSPRINTF=0;
10805   HAVE_VASPRINTF=1;
10806   REPLACE_VASPRINTF=0;
10807   REPLACE_FOPEN=0;
10808   REPLACE_FREOPEN=0;
10809   HAVE_FSEEKO=1;
10810   REPLACE_FSEEKO=0;
10811   REPLACE_FSEEK=0;
10812   HAVE_FTELLO=1;
10813   REPLACE_FTELLO=0;
10814   REPLACE_FTELL=0;
10815   REPLACE_FFLUSH=0;
10816   HAVE_DECL_GETDELIM=1;
10817   HAVE_DECL_GETLINE=1;
10818   REPLACE_GETLINE=0;
10819
10820
10821     { echo "$as_me:$LINENO: checking whether stdin defaults to large file offsets" >&5
10822 echo $ECHO_N "checking whether stdin defaults to large file offsets... $ECHO_C" >&6; }
10823 if test "${gl_cv_var_stdin_large_offset+set}" = set; then
10824   echo $ECHO_N "(cached) $ECHO_C" >&6
10825 else
10826   cat >conftest.$ac_ext <<_ACEOF
10827 /* confdefs.h.  */
10828 _ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h.  */
10832 #include <stdio.h>
10833 int
10834 main ()
10835 {
10836 #if defined __SL64 && defined __SCLE /* cygwin */
10837   /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
10838      fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
10839      it is easier to do a version check than building a runtime test.  */
10840 # include <cygwin/version.h>
10841 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
10842   choke me
10843 # endif
10844 #endif
10845   ;
10846   return 0;
10847 }
10848 _ACEOF
10849 rm -f conftest.$ac_objext conftest$ac_exeext
10850 if { (ac_try="$ac_link"
10851 case "(($ac_try" in
10852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853   *) ac_try_echo=$ac_try;;
10854 esac
10855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856   (eval "$ac_link") 2>conftest.er1
10857   ac_status=$?
10858   grep -v '^ *+' conftest.er1 >conftest.err
10859   rm -f conftest.er1
10860   cat conftest.err >&5
10861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862   (exit $ac_status); } && {
10863          test -z "$ac_c_werror_flag" ||
10864          test ! -s conftest.err
10865        } && test -s conftest$ac_exeext &&
10866        $as_test_x conftest$ac_exeext; then
10867   gl_cv_var_stdin_large_offset=yes
10868 else
10869   echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.$ac_ext >&5
10871
10872         gl_cv_var_stdin_large_offset=no
10873 fi
10874
10875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10876       conftest$ac_exeext conftest.$ac_ext
10877 fi
10878 { echo "$as_me:$LINENO: result: $gl_cv_var_stdin_large_offset" >&5
10879 echo "${ECHO_T}$gl_cv_var_stdin_large_offset" >&6; }
10880
10881
10882
10883
10884    { echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
10885 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6; }
10886 if test "${gl_cv_func_getcwd_null+set}" = set; then
10887   echo $ECHO_N "(cached) $ECHO_C" >&6
10888 else
10889   if test "$cross_compiling" = yes; then
10890   gl_cv_func_getcwd_null=no
10891 else
10892   cat >conftest.$ac_ext <<_ACEOF
10893 /* confdefs.h.  */
10894 _ACEOF
10895 cat confdefs.h >>conftest.$ac_ext
10896 cat >>conftest.$ac_ext <<_ACEOF
10897 /* end confdefs.h.  */
10898
10899 #        include <stdlib.h>
10900 #        include <unistd.h>
10901 #        ifndef getcwd
10902          char *getcwd ();
10903 #        endif
10904          int
10905          main ()
10906          {
10907            if (chdir ("/") != 0)
10908              exit (1);
10909            else
10910              {
10911                char *f = getcwd (NULL, 0);
10912                exit (! (f && f[0] == '/' && !f[1]));
10913              }
10914          }
10915 _ACEOF
10916 rm -f conftest$ac_exeext
10917 if { (ac_try="$ac_link"
10918 case "(($ac_try" in
10919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920   *) ac_try_echo=$ac_try;;
10921 esac
10922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923   (eval "$ac_link") 2>&5
10924   ac_status=$?
10925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10927   { (case "(($ac_try" in
10928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929   *) ac_try_echo=$ac_try;;
10930 esac
10931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932   (eval "$ac_try") 2>&5
10933   ac_status=$?
10934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935   (exit $ac_status); }; }; then
10936   gl_cv_func_getcwd_null=yes
10937 else
10938   echo "$as_me: program exited with status $ac_status" >&5
10939 echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10941
10942 ( exit $ac_status )
10943 gl_cv_func_getcwd_null=no
10944 fi
10945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10946 fi
10947
10948
10949 fi
10950 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_null" >&5
10951 echo "${ECHO_T}$gl_cv_func_getcwd_null" >&6; }
10952
10953 { echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
10954 echo $ECHO_N "checking whether getcwd is declared... $ECHO_C" >&6; }
10955 if test "${ac_cv_have_decl_getcwd+set}" = set; then
10956   echo $ECHO_N "(cached) $ECHO_C" >&6
10957 else
10958   cat >conftest.$ac_ext <<_ACEOF
10959 /* confdefs.h.  */
10960 _ACEOF
10961 cat confdefs.h >>conftest.$ac_ext
10962 cat >>conftest.$ac_ext <<_ACEOF
10963 /* end confdefs.h.  */
10964 $ac_includes_default
10965 int
10966 main ()
10967 {
10968 #ifndef getcwd
10969   (void) getcwd;
10970 #endif
10971
10972   ;
10973   return 0;
10974 }
10975 _ACEOF
10976 rm -f conftest.$ac_objext
10977 if { (ac_try="$ac_compile"
10978 case "(($ac_try" in
10979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980   *) ac_try_echo=$ac_try;;
10981 esac
10982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10983   (eval "$ac_compile") 2>conftest.er1
10984   ac_status=$?
10985   grep -v '^ *+' conftest.er1 >conftest.err
10986   rm -f conftest.er1
10987   cat conftest.err >&5
10988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989   (exit $ac_status); } && {
10990          test -z "$ac_c_werror_flag" ||
10991          test ! -s conftest.err
10992        } && test -s conftest.$ac_objext; then
10993   ac_cv_have_decl_getcwd=yes
10994 else
10995   echo "$as_me: failed program was:" >&5
10996 sed 's/^/| /' conftest.$ac_ext >&5
10997
10998         ac_cv_have_decl_getcwd=no
10999 fi
11000
11001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11002 fi
11003 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
11004 echo "${ECHO_T}$ac_cv_have_decl_getcwd" >&6; }
11005 if test $ac_cv_have_decl_getcwd = yes; then
11006
11007 cat >>confdefs.h <<_ACEOF
11008 #define HAVE_DECL_GETCWD 1
11009 _ACEOF
11010
11011
11012 else
11013   cat >>confdefs.h <<_ACEOF
11014 #define HAVE_DECL_GETCWD 0
11015 _ACEOF
11016
11017
11018 fi
11019
11020
11021
11022
11023
11024
11025   # getdate.y works with bison only.
11026   : ${YACC='bison -y'}
11027
11028
11029   { echo "$as_me:$LINENO: checking for compound literals" >&5
11030 echo $ECHO_N "checking for compound literals... $ECHO_C" >&6; }
11031 if test "${gl_cv_compound_literals+set}" = set; then
11032   echo $ECHO_N "(cached) $ECHO_C" >&6
11033 else
11034   cat >conftest.$ac_ext <<_ACEOF
11035 /* confdefs.h.  */
11036 _ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h.  */
11040 struct s { int i, j; }; struct s s = (struct s) { 1, 2 };
11041 int
11042 main ()
11043 {
11044 struct s t = (struct s) { 3, 4 };
11045      if (t.i != 0) return 0;
11046   ;
11047   return 0;
11048 }
11049 _ACEOF
11050 rm -f conftest.$ac_objext
11051 if { (ac_try="$ac_compile"
11052 case "(($ac_try" in
11053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054   *) ac_try_echo=$ac_try;;
11055 esac
11056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057   (eval "$ac_compile") 2>conftest.er1
11058   ac_status=$?
11059   grep -v '^ *+' conftest.er1 >conftest.err
11060   rm -f conftest.er1
11061   cat conftest.err >&5
11062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063   (exit $ac_status); } && {
11064          test -z "$ac_c_werror_flag" ||
11065          test ! -s conftest.err
11066        } && test -s conftest.$ac_objext; then
11067   gl_cv_compound_literals=yes
11068 else
11069   echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11071
11072         gl_cv_compound_literals=no
11073 fi
11074
11075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11076 fi
11077 { echo "$as_me:$LINENO: result: $gl_cv_compound_literals" >&5
11078 echo "${ECHO_T}$gl_cv_compound_literals" >&6; }
11079   if test $gl_cv_compound_literals = yes; then
11080
11081 cat >>confdefs.h <<\_ACEOF
11082 #define HAVE_COMPOUND_LITERALS 1
11083 _ACEOF
11084
11085   fi
11086
11087 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11088 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
11089 if test "${ac_cv_struct_tm+set}" = set; then
11090   echo $ECHO_N "(cached) $ECHO_C" >&6
11091 else
11092   cat >conftest.$ac_ext <<_ACEOF
11093 /* confdefs.h.  */
11094 _ACEOF
11095 cat confdefs.h >>conftest.$ac_ext
11096 cat >>conftest.$ac_ext <<_ACEOF
11097 /* end confdefs.h.  */
11098 #include <sys/types.h>
11099 #include <time.h>
11100
11101 int
11102 main ()
11103 {
11104 struct tm tm;
11105                                      int *p = &tm.tm_sec;
11106                                      return !p;
11107   ;
11108   return 0;
11109 }
11110 _ACEOF
11111 rm -f conftest.$ac_objext
11112 if { (ac_try="$ac_compile"
11113 case "(($ac_try" in
11114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11115   *) ac_try_echo=$ac_try;;
11116 esac
11117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11118   (eval "$ac_compile") 2>conftest.er1
11119   ac_status=$?
11120   grep -v '^ *+' conftest.er1 >conftest.err
11121   rm -f conftest.er1
11122   cat conftest.err >&5
11123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124   (exit $ac_status); } && {
11125          test -z "$ac_c_werror_flag" ||
11126          test ! -s conftest.err
11127        } && test -s conftest.$ac_objext; then
11128   ac_cv_struct_tm=time.h
11129 else
11130   echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.$ac_ext >&5
11132
11133         ac_cv_struct_tm=sys/time.h
11134 fi
11135
11136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11137 fi
11138 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11139 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
11140 if test $ac_cv_struct_tm = sys/time.h; then
11141
11142 cat >>confdefs.h <<\_ACEOF
11143 #define TM_IN_SYS_TIME 1
11144 _ACEOF
11145
11146 fi
11147
11148
11149  { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
11150 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
11151 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
11152   echo $ECHO_N "(cached) $ECHO_C" >&6
11153 else
11154   cat >conftest.$ac_ext <<_ACEOF
11155 /* confdefs.h.  */
11156 _ACEOF
11157 cat confdefs.h >>conftest.$ac_ext
11158 cat >>conftest.$ac_ext <<_ACEOF
11159 /* end confdefs.h.  */
11160 #include <time.h>
11161
11162 int
11163 main ()
11164 {
11165 static struct tm ac_aggr;
11166 if (ac_aggr.tm_gmtoff)
11167 return 0;
11168   ;
11169   return 0;
11170 }
11171 _ACEOF
11172 rm -f conftest.$ac_objext
11173 if { (ac_try="$ac_compile"
11174 case "(($ac_try" in
11175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176   *) ac_try_echo=$ac_try;;
11177 esac
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179   (eval "$ac_compile") 2>conftest.er1
11180   ac_status=$?
11181   grep -v '^ *+' conftest.er1 >conftest.err
11182   rm -f conftest.er1
11183   cat conftest.err >&5
11184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185   (exit $ac_status); } && {
11186          test -z "$ac_c_werror_flag" ||
11187          test ! -s conftest.err
11188        } && test -s conftest.$ac_objext; then
11189   ac_cv_member_struct_tm_tm_gmtoff=yes
11190 else
11191   echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.$ac_ext >&5
11193
11194         cat >conftest.$ac_ext <<_ACEOF
11195 /* confdefs.h.  */
11196 _ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h.  */
11200 #include <time.h>
11201
11202 int
11203 main ()
11204 {
11205 static struct tm ac_aggr;
11206 if (sizeof ac_aggr.tm_gmtoff)
11207 return 0;
11208   ;
11209   return 0;
11210 }
11211 _ACEOF
11212 rm -f conftest.$ac_objext
11213 if { (ac_try="$ac_compile"
11214 case "(($ac_try" in
11215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216   *) ac_try_echo=$ac_try;;
11217 esac
11218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11219   (eval "$ac_compile") 2>conftest.er1
11220   ac_status=$?
11221   grep -v '^ *+' conftest.er1 >conftest.err
11222   rm -f conftest.er1
11223   cat conftest.err >&5
11224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225   (exit $ac_status); } && {
11226          test -z "$ac_c_werror_flag" ||
11227          test ! -s conftest.err
11228        } && test -s conftest.$ac_objext; then
11229   ac_cv_member_struct_tm_tm_gmtoff=yes
11230 else
11231   echo "$as_me: failed program was:" >&5
11232 sed 's/^/| /' conftest.$ac_ext >&5
11233
11234         ac_cv_member_struct_tm_tm_gmtoff=no
11235 fi
11236
11237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11238 fi
11239
11240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11241 fi
11242 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
11243 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
11244 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
11245
11246 cat >>confdefs.h <<\_ACEOF
11247 #define HAVE_TM_GMTOFF 1
11248 _ACEOF
11249
11250 fi
11251
11252
11253 { echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
11254 echo $ECHO_N "checking whether getdelim is declared... $ECHO_C" >&6; }
11255 if test "${ac_cv_have_decl_getdelim+set}" = set; then
11256   echo $ECHO_N "(cached) $ECHO_C" >&6
11257 else
11258   cat >conftest.$ac_ext <<_ACEOF
11259 /* confdefs.h.  */
11260 _ACEOF
11261 cat confdefs.h >>conftest.$ac_ext
11262 cat >>conftest.$ac_ext <<_ACEOF
11263 /* end confdefs.h.  */
11264 $ac_includes_default
11265 int
11266 main ()
11267 {
11268 #ifndef getdelim
11269   (void) getdelim;
11270 #endif
11271
11272   ;
11273   return 0;
11274 }
11275 _ACEOF
11276 rm -f conftest.$ac_objext
11277 if { (ac_try="$ac_compile"
11278 case "(($ac_try" in
11279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280   *) ac_try_echo=$ac_try;;
11281 esac
11282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283   (eval "$ac_compile") 2>conftest.er1
11284   ac_status=$?
11285   grep -v '^ *+' conftest.er1 >conftest.err
11286   rm -f conftest.er1
11287   cat conftest.err >&5
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); } && {
11290          test -z "$ac_c_werror_flag" ||
11291          test ! -s conftest.err
11292        } && test -s conftest.$ac_objext; then
11293   ac_cv_have_decl_getdelim=yes
11294 else
11295   echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11297
11298         ac_cv_have_decl_getdelim=no
11299 fi
11300
11301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11302 fi
11303 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
11304 echo "${ECHO_T}$ac_cv_have_decl_getdelim" >&6; }
11305 if test $ac_cv_have_decl_getdelim = yes; then
11306
11307 cat >>confdefs.h <<_ACEOF
11308 #define HAVE_DECL_GETDELIM 1
11309 _ACEOF
11310
11311
11312 else
11313   cat >>confdefs.h <<_ACEOF
11314 #define HAVE_DECL_GETDELIM 0
11315 _ACEOF
11316
11317
11318 fi
11319
11320
11321 { echo "$as_me:$LINENO: checking whether getline is declared" >&5
11322 echo $ECHO_N "checking whether getline is declared... $ECHO_C" >&6; }
11323 if test "${ac_cv_have_decl_getline+set}" = set; then
11324   echo $ECHO_N "(cached) $ECHO_C" >&6
11325 else
11326   cat >conftest.$ac_ext <<_ACEOF
11327 /* confdefs.h.  */
11328 _ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h.  */
11332 $ac_includes_default
11333 int
11334 main ()
11335 {
11336 #ifndef getline
11337   (void) getline;
11338 #endif
11339
11340   ;
11341   return 0;
11342 }
11343 _ACEOF
11344 rm -f conftest.$ac_objext
11345 if { (ac_try="$ac_compile"
11346 case "(($ac_try" in
11347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348   *) ac_try_echo=$ac_try;;
11349 esac
11350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351   (eval "$ac_compile") 2>conftest.er1
11352   ac_status=$?
11353   grep -v '^ *+' conftest.er1 >conftest.err
11354   rm -f conftest.er1
11355   cat conftest.err >&5
11356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357   (exit $ac_status); } && {
11358          test -z "$ac_c_werror_flag" ||
11359          test ! -s conftest.err
11360        } && test -s conftest.$ac_objext; then
11361   ac_cv_have_decl_getline=yes
11362 else
11363   echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11365
11366         ac_cv_have_decl_getline=no
11367 fi
11368
11369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11370 fi
11371 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
11372 echo "${ECHO_T}$ac_cv_have_decl_getline" >&6; }
11373 if test $ac_cv_have_decl_getline = yes; then
11374
11375 cat >>confdefs.h <<_ACEOF
11376 #define HAVE_DECL_GETLINE 1
11377 _ACEOF
11378
11379
11380 else
11381   cat >>confdefs.h <<_ACEOF
11382 #define HAVE_DECL_GETLINE 0
11383 _ACEOF
11384
11385
11386 fi
11387
11388
11389
11390   if test -z "$GETOPT_H"; then
11391
11392 for ac_header in getopt.h
11393 do
11394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11396   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11399   echo $ECHO_N "(cached) $ECHO_C" >&6
11400 fi
11401 ac_res=`eval echo '${'$as_ac_Header'}'`
11402                { echo "$as_me:$LINENO: result: $ac_res" >&5
11403 echo "${ECHO_T}$ac_res" >&6; }
11404 else
11405   # Is the header compilable?
11406 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11408 cat >conftest.$ac_ext <<_ACEOF
11409 /* confdefs.h.  */
11410 _ACEOF
11411 cat confdefs.h >>conftest.$ac_ext
11412 cat >>conftest.$ac_ext <<_ACEOF
11413 /* end confdefs.h.  */
11414 $ac_includes_default
11415 #include <$ac_header>
11416 _ACEOF
11417 rm -f conftest.$ac_objext
11418 if { (ac_try="$ac_compile"
11419 case "(($ac_try" in
11420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421   *) ac_try_echo=$ac_try;;
11422 esac
11423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11424   (eval "$ac_compile") 2>conftest.er1
11425   ac_status=$?
11426   grep -v '^ *+' conftest.er1 >conftest.err
11427   rm -f conftest.er1
11428   cat conftest.err >&5
11429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430   (exit $ac_status); } && {
11431          test -z "$ac_c_werror_flag" ||
11432          test ! -s conftest.err
11433        } && test -s conftest.$ac_objext; then
11434   ac_header_compiler=yes
11435 else
11436   echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11438
11439         ac_header_compiler=no
11440 fi
11441
11442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11444 echo "${ECHO_T}$ac_header_compiler" >&6; }
11445
11446 # Is the header present?
11447 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11449 cat >conftest.$ac_ext <<_ACEOF
11450 /* confdefs.h.  */
11451 _ACEOF
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h.  */
11455 #include <$ac_header>
11456 _ACEOF
11457 if { (ac_try="$ac_cpp conftest.$ac_ext"
11458 case "(($ac_try" in
11459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460   *) ac_try_echo=$ac_try;;
11461 esac
11462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11464   ac_status=$?
11465   grep -v '^ *+' conftest.er1 >conftest.err
11466   rm -f conftest.er1
11467   cat conftest.err >&5
11468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469   (exit $ac_status); } >/dev/null && {
11470          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11471          test ! -s conftest.err
11472        }; then
11473   ac_header_preproc=yes
11474 else
11475   echo "$as_me: failed program was:" >&5
11476 sed 's/^/| /' conftest.$ac_ext >&5
11477
11478   ac_header_preproc=no
11479 fi
11480
11481 rm -f conftest.err conftest.$ac_ext
11482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11483 echo "${ECHO_T}$ac_header_preproc" >&6; }
11484
11485 # So?  What about this header?
11486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11487   yes:no: )
11488     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11490     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11492     ac_header_preproc=yes
11493     ;;
11494   no:yes:* )
11495     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11497     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11498 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11499     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11501     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11502 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11503     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11505     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11507     ( cat <<\_ASBOX
11508 ## ------------------------------ ##
11509 ## Report this to bug-tar@gnu.org ##
11510 ## ------------------------------ ##
11511 _ASBOX
11512      ) | sed "s/^/$as_me: WARNING:     /" >&2
11513     ;;
11514 esac
11515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11518   echo $ECHO_N "(cached) $ECHO_C" >&6
11519 else
11520   eval "$as_ac_Header=\$ac_header_preproc"
11521 fi
11522 ac_res=`eval echo '${'$as_ac_Header'}'`
11523                { echo "$as_me:$LINENO: result: $ac_res" >&5
11524 echo "${ECHO_T}$ac_res" >&6; }
11525
11526 fi
11527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11528   cat >>confdefs.h <<_ACEOF
11529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11530 _ACEOF
11531
11532 else
11533   GETOPT_H=getopt.h
11534 fi
11535
11536 done
11537
11538   fi
11539
11540   if test -z "$GETOPT_H"; then
11541
11542 for ac_func in getopt_long_only
11543 do
11544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11545 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11547 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11548   echo $ECHO_N "(cached) $ECHO_C" >&6
11549 else
11550   cat >conftest.$ac_ext <<_ACEOF
11551 /* confdefs.h.  */
11552 _ACEOF
11553 cat confdefs.h >>conftest.$ac_ext
11554 cat >>conftest.$ac_ext <<_ACEOF
11555 /* end confdefs.h.  */
11556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11557    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11558 #define $ac_func innocuous_$ac_func
11559
11560 /* System header to define __stub macros and hopefully few prototypes,
11561     which can conflict with char $ac_func (); below.
11562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11563     <limits.h> exists even on freestanding compilers.  */
11564
11565 #ifdef __STDC__
11566 # include <limits.h>
11567 #else
11568 # include <assert.h>
11569 #endif
11570
11571 #undef $ac_func
11572
11573 /* Override any GCC internal prototype to avoid an error.
11574    Use char because int might match the return type of a GCC
11575    builtin and then its argument prototype would still apply.  */
11576 #ifdef __cplusplus
11577 extern "C"
11578 #endif
11579 char $ac_func ();
11580 /* The GNU C library defines this for functions which it implements
11581     to always fail with ENOSYS.  Some functions are actually named
11582     something starting with __ and the normal name is an alias.  */
11583 #if defined __stub_$ac_func || defined __stub___$ac_func
11584 choke me
11585 #endif
11586
11587 int
11588 main ()
11589 {
11590 return $ac_func ();
11591   ;
11592   return 0;
11593 }
11594 _ACEOF
11595 rm -f conftest.$ac_objext conftest$ac_exeext
11596 if { (ac_try="$ac_link"
11597 case "(($ac_try" in
11598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11599   *) ac_try_echo=$ac_try;;
11600 esac
11601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11602   (eval "$ac_link") 2>conftest.er1
11603   ac_status=$?
11604   grep -v '^ *+' conftest.er1 >conftest.err
11605   rm -f conftest.er1
11606   cat conftest.err >&5
11607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608   (exit $ac_status); } && {
11609          test -z "$ac_c_werror_flag" ||
11610          test ! -s conftest.err
11611        } && test -s conftest$ac_exeext &&
11612        $as_test_x conftest$ac_exeext; then
11613   eval "$as_ac_var=yes"
11614 else
11615   echo "$as_me: failed program was:" >&5
11616 sed 's/^/| /' conftest.$ac_ext >&5
11617
11618         eval "$as_ac_var=no"
11619 fi
11620
11621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11622       conftest$ac_exeext conftest.$ac_ext
11623 fi
11624 ac_res=`eval echo '${'$as_ac_var'}'`
11625                { echo "$as_me:$LINENO: result: $ac_res" >&5
11626 echo "${ECHO_T}$ac_res" >&6; }
11627 if test `eval echo '${'$as_ac_var'}'` = yes; then
11628   cat >>confdefs.h <<_ACEOF
11629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11630 _ACEOF
11631
11632 else
11633   GETOPT_H=getopt.h
11634 fi
11635 done
11636
11637   fi
11638
11639       if test -z "$GETOPT_H"; then
11640     { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
11641 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
11642 if test "${ac_cv_have_decl_optreset+set}" = set; then
11643   echo $ECHO_N "(cached) $ECHO_C" >&6
11644 else
11645   cat >conftest.$ac_ext <<_ACEOF
11646 /* confdefs.h.  */
11647 _ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h.  */
11651 #include <getopt.h>
11652
11653 int
11654 main ()
11655 {
11656 #ifndef optreset
11657   (void) optreset;
11658 #endif
11659
11660   ;
11661   return 0;
11662 }
11663 _ACEOF
11664 rm -f conftest.$ac_objext
11665 if { (ac_try="$ac_compile"
11666 case "(($ac_try" in
11667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668   *) ac_try_echo=$ac_try;;
11669 esac
11670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671   (eval "$ac_compile") 2>conftest.er1
11672   ac_status=$?
11673   grep -v '^ *+' conftest.er1 >conftest.err
11674   rm -f conftest.er1
11675   cat conftest.err >&5
11676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677   (exit $ac_status); } && {
11678          test -z "$ac_c_werror_flag" ||
11679          test ! -s conftest.err
11680        } && test -s conftest.$ac_objext; then
11681   ac_cv_have_decl_optreset=yes
11682 else
11683   echo "$as_me: failed program was:" >&5
11684 sed 's/^/| /' conftest.$ac_ext >&5
11685
11686         ac_cv_have_decl_optreset=no
11687 fi
11688
11689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11690 fi
11691 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
11692 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
11693 if test $ac_cv_have_decl_optreset = yes; then
11694   GETOPT_H=getopt.h
11695 fi
11696
11697   fi
11698
11699       if test -z "$GETOPT_H"; then
11700     { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
11701 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
11702 if test "${gl_cv_func_gnu_getopt+set}" = set; then
11703   echo $ECHO_N "(cached) $ECHO_C" >&6
11704 else
11705   if test "$cross_compiling" = yes; then
11706                          { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
11707 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
11708 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
11709   echo $ECHO_N "(cached) $ECHO_C" >&6
11710 else
11711   cat >conftest.$ac_ext <<_ACEOF
11712 /* confdefs.h.  */
11713 _ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h.  */
11717 #include <getopt.h>
11718
11719 int
11720 main ()
11721 {
11722 #ifndef getopt_clip
11723   (void) getopt_clip;
11724 #endif
11725
11726   ;
11727   return 0;
11728 }
11729 _ACEOF
11730 rm -f conftest.$ac_objext
11731 if { (ac_try="$ac_compile"
11732 case "(($ac_try" in
11733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11734   *) ac_try_echo=$ac_try;;
11735 esac
11736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11737   (eval "$ac_compile") 2>conftest.er1
11738   ac_status=$?
11739   grep -v '^ *+' conftest.er1 >conftest.err
11740   rm -f conftest.er1
11741   cat conftest.err >&5
11742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743   (exit $ac_status); } && {
11744          test -z "$ac_c_werror_flag" ||
11745          test ! -s conftest.err
11746        } && test -s conftest.$ac_objext; then
11747   ac_cv_have_decl_getopt_clip=yes
11748 else
11749   echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.$ac_ext >&5
11751
11752         ac_cv_have_decl_getopt_clip=no
11753 fi
11754
11755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11756 fi
11757 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
11758 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
11759 if test $ac_cv_have_decl_getopt_clip = yes; then
11760   gl_cv_func_gnu_getopt=no
11761 else
11762   gl_cv_func_gnu_getopt=yes
11763 fi
11764
11765 else
11766   cat >conftest.$ac_ext <<_ACEOF
11767 /* confdefs.h.  */
11768 _ACEOF
11769 cat confdefs.h >>conftest.$ac_ext
11770 cat >>conftest.$ac_ext <<_ACEOF
11771 /* end confdefs.h.  */
11772 #include <getopt.h>
11773 int
11774 main ()
11775 {
11776
11777              char *myargv[3];
11778              myargv[0] = "conftest";
11779              myargv[1] = "-+";
11780              myargv[2] = 0;
11781              return getopt (2, myargv, "+a") != '?';
11782
11783   ;
11784   return 0;
11785 }
11786 _ACEOF
11787 rm -f conftest$ac_exeext
11788 if { (ac_try="$ac_link"
11789 case "(($ac_try" in
11790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11791   *) ac_try_echo=$ac_try;;
11792 esac
11793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11794   (eval "$ac_link") 2>&5
11795   ac_status=$?
11796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11798   { (case "(($ac_try" in
11799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11800   *) ac_try_echo=$ac_try;;
11801 esac
11802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11803   (eval "$ac_try") 2>&5
11804   ac_status=$?
11805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806   (exit $ac_status); }; }; then
11807   gl_cv_func_gnu_getopt=yes
11808 else
11809   echo "$as_me: program exited with status $ac_status" >&5
11810 echo "$as_me: failed program was:" >&5
11811 sed 's/^/| /' conftest.$ac_ext >&5
11812
11813 ( exit $ac_status )
11814 gl_cv_func_gnu_getopt=no
11815 fi
11816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11817 fi
11818
11819
11820 fi
11821 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
11822 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
11823     if test "$gl_cv_func_gnu_getopt" = "no"; then
11824       GETOPT_H=getopt.h
11825     fi
11826   fi
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844      if test $gl_cv_have_include_next = yes; then
11845        gl_cv_next_sys_time_h='<'sys/time.h'>'
11846      else
11847        { echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
11848 echo $ECHO_N "checking absolute name of <sys/time.h>... $ECHO_C" >&6; }
11849 if test "${gl_cv_next_sys_time_h+set}" = set; then
11850   echo $ECHO_N "(cached) $ECHO_C" >&6
11851 else
11852
11853           if test $ac_cv_header_sys_time_h = yes; then
11854             cat >conftest.$ac_ext <<_ACEOF
11855 /* confdefs.h.  */
11856 _ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h.  */
11860 #include <sys/time.h>
11861
11862 _ACEOF
11863                                     gl_cv_next_sys_time_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11864                sed -n '\#/sys/time.h#{
11865                  s#.*"\(.*/sys/time.h\)".*#\1#
11866                  s#^/[^/]#//&#
11867                  p
11868                  q
11869                }'`'"'
11870           else
11871             gl_cv_next_sys_time_h='<'sys/time.h'>'
11872           fi
11873
11874 fi
11875 { echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
11876 echo "${ECHO_T}$gl_cv_next_sys_time_h" >&6; }
11877      fi
11878      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
11879
11880
11881
11882
11883   if test $ac_cv_header_sys_time_h = yes; then
11884     HAVE_SYS_TIME_H=1
11885   else
11886     HAVE_SYS_TIME_H=0
11887   fi
11888
11889
11890   { echo "$as_me:$LINENO: checking for struct timeval" >&5
11891 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
11892 if test "${gl_cv_sys_struct_timeval+set}" = set; then
11893   echo $ECHO_N "(cached) $ECHO_C" >&6
11894 else
11895   cat >conftest.$ac_ext <<_ACEOF
11896 /* confdefs.h.  */
11897 _ACEOF
11898 cat confdefs.h >>conftest.$ac_ext
11899 cat >>conftest.$ac_ext <<_ACEOF
11900 /* end confdefs.h.  */
11901 #if HAVE_SYS_TIME_H
11902              #include <sys/time.h>
11903             #endif
11904             #include <time.h>
11905
11906 int
11907 main ()
11908 {
11909 static struct timeval x; x.tv_sec = x.tv_usec;
11910   ;
11911   return 0;
11912 }
11913 _ACEOF
11914 rm -f conftest.$ac_objext
11915 if { (ac_try="$ac_compile"
11916 case "(($ac_try" in
11917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918   *) ac_try_echo=$ac_try;;
11919 esac
11920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921   (eval "$ac_compile") 2>conftest.er1
11922   ac_status=$?
11923   grep -v '^ *+' conftest.er1 >conftest.err
11924   rm -f conftest.er1
11925   cat conftest.err >&5
11926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927   (exit $ac_status); } && {
11928          test -z "$ac_c_werror_flag" ||
11929          test ! -s conftest.err
11930        } && test -s conftest.$ac_objext; then
11931   gl_cv_sys_struct_timeval=yes
11932 else
11933   echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11935
11936         gl_cv_sys_struct_timeval=no
11937 fi
11938
11939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11940 fi
11941 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
11942 echo "${ECHO_T}$gl_cv_sys_struct_timeval" >&6; }
11943   if test $gl_cv_sys_struct_timeval = yes; then
11944     HAVE_STRUCT_TIMEVAL=1
11945   else
11946     HAVE_STRUCT_TIMEVAL=0
11947   fi
11948
11949
11950     REPLACE_GETTIMEOFDAY=0
11951
11952   if test $HAVE_SYS_TIME_H = 0 || test $HAVE_STRUCT_TIMEVAL = 0; then
11953     SYS_TIME_H=sys/time.h
11954   else
11955     SYS_TIME_H=
11956   fi
11957
11958
11959
11960
11961
11962
11963   { echo "$as_me:$LINENO: checking for long long int" >&5
11964 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
11965 if test "${ac_cv_type_long_long_int+set}" = set; then
11966   echo $ECHO_N "(cached) $ECHO_C" >&6
11967 else
11968   cat >conftest.$ac_ext <<_ACEOF
11969
11970   /* confdefs.h.  */
11971 _ACEOF
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h.  */
11975 /* For now, do not test the preprocessor; as of 2007 there are too many
11976          implementations with broken preprocessors.  Perhaps this can
11977          be revisited in 2012.  In the meantime, code should not expect
11978          #if to work with literals wider than 32 bits.  */
11979       /* Test literals.  */
11980       long long int ll = 9223372036854775807ll;
11981       long long int nll = -9223372036854775807LL;
11982       unsigned long long int ull = 18446744073709551615ULL;
11983       /* Test constant expressions.   */
11984       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11985                      ? 1 : -1)];
11986       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
11987                      ? 1 : -1)];
11988       int i = 63;
11989 int
11990 main ()
11991 {
11992 /* Test availability of runtime routines for shift and division.  */
11993       long long int llmax = 9223372036854775807ll;
11994       unsigned long long int ullmax = 18446744073709551615ull;
11995       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
11996               | (llmax / ll) | (llmax % ll)
11997               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
11998               | (ullmax / ull) | (ullmax % ull));
11999   ;
12000   return 0;
12001 }
12002
12003 _ACEOF
12004 rm -f conftest.$ac_objext conftest$ac_exeext
12005 if { (ac_try="$ac_link"
12006 case "(($ac_try" in
12007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008   *) ac_try_echo=$ac_try;;
12009 esac
12010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12011   (eval "$ac_link") 2>conftest.er1
12012   ac_status=$?
12013   grep -v '^ *+' conftest.er1 >conftest.err
12014   rm -f conftest.er1
12015   cat conftest.err >&5
12016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017   (exit $ac_status); } && {
12018          test -z "$ac_c_werror_flag" ||
12019          test ! -s conftest.err
12020        } && test -s conftest$ac_exeext &&
12021        $as_test_x conftest$ac_exeext; then
12022                         if test "$cross_compiling" = yes; then
12023   ac_cv_type_long_long_int=yes
12024 else
12025   cat >conftest.$ac_ext <<_ACEOF
12026 /* confdefs.h.  */
12027 _ACEOF
12028 cat confdefs.h >>conftest.$ac_ext
12029 cat >>conftest.$ac_ext <<_ACEOF
12030 /* end confdefs.h.  */
12031 #include <limits.h>
12032                #ifndef LLONG_MAX
12033                # define HALF \
12034                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
12035                # define LLONG_MAX (HALF - 1 + HALF)
12036                #endif
12037 int
12038 main ()
12039 {
12040 long long int n = 1;
12041                int i;
12042                for (i = 0; ; i++)
12043                  {
12044                    long long int m = n << i;
12045                    if (m >> i != n)
12046                      return 1;
12047                    if (LLONG_MAX / 2 < m)
12048                      break;
12049                  }
12050                return 0;
12051   ;
12052   return 0;
12053 }
12054 _ACEOF
12055 rm -f conftest$ac_exeext
12056 if { (ac_try="$ac_link"
12057 case "(($ac_try" in
12058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059   *) ac_try_echo=$ac_try;;
12060 esac
12061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12062   (eval "$ac_link") 2>&5
12063   ac_status=$?
12064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12066   { (case "(($ac_try" in
12067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12068   *) ac_try_echo=$ac_try;;
12069 esac
12070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12071   (eval "$ac_try") 2>&5
12072   ac_status=$?
12073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074   (exit $ac_status); }; }; then
12075   ac_cv_type_long_long_int=yes
12076 else
12077   echo "$as_me: program exited with status $ac_status" >&5
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12080
12081 ( exit $ac_status )
12082 ac_cv_type_long_long_int=no
12083 fi
12084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12085 fi
12086
12087
12088 else
12089   echo "$as_me: failed program was:" >&5
12090 sed 's/^/| /' conftest.$ac_ext >&5
12091
12092         ac_cv_type_long_long_int=no
12093 fi
12094
12095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12096       conftest$ac_exeext conftest.$ac_ext
12097 fi
12098 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
12099 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
12100   if test $ac_cv_type_long_long_int = yes; then
12101
12102 cat >>confdefs.h <<\_ACEOF
12103 #define HAVE_LONG_LONG_INT 1
12104 _ACEOF
12105
12106   fi
12107
12108
12109   { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
12110 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
12111 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
12112   echo $ECHO_N "(cached) $ECHO_C" >&6
12113 else
12114   cat >conftest.$ac_ext <<_ACEOF
12115
12116   /* confdefs.h.  */
12117 _ACEOF
12118 cat confdefs.h >>conftest.$ac_ext
12119 cat >>conftest.$ac_ext <<_ACEOF
12120 /* end confdefs.h.  */
12121 /* For now, do not test the preprocessor; as of 2007 there are too many
12122          implementations with broken preprocessors.  Perhaps this can
12123          be revisited in 2012.  In the meantime, code should not expect
12124          #if to work with literals wider than 32 bits.  */
12125       /* Test literals.  */
12126       long long int ll = 9223372036854775807ll;
12127       long long int nll = -9223372036854775807LL;
12128       unsigned long long int ull = 18446744073709551615ULL;
12129       /* Test constant expressions.   */
12130       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
12131                      ? 1 : -1)];
12132       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
12133                      ? 1 : -1)];
12134       int i = 63;
12135 int
12136 main ()
12137 {
12138 /* Test availability of runtime routines for shift and division.  */
12139       long long int llmax = 9223372036854775807ll;
12140       unsigned long long int ullmax = 18446744073709551615ull;
12141       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
12142               | (llmax / ll) | (llmax % ll)
12143               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
12144               | (ullmax / ull) | (ullmax % ull));
12145   ;
12146   return 0;
12147 }
12148
12149 _ACEOF
12150 rm -f conftest.$ac_objext conftest$ac_exeext
12151 if { (ac_try="$ac_link"
12152 case "(($ac_try" in
12153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12154   *) ac_try_echo=$ac_try;;
12155 esac
12156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12157   (eval "$ac_link") 2>conftest.er1
12158   ac_status=$?
12159   grep -v '^ *+' conftest.er1 >conftest.err
12160   rm -f conftest.er1
12161   cat conftest.err >&5
12162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163   (exit $ac_status); } && {
12164          test -z "$ac_c_werror_flag" ||
12165          test ! -s conftest.err
12166        } && test -s conftest$ac_exeext &&
12167        $as_test_x conftest$ac_exeext; then
12168   ac_cv_type_unsigned_long_long_int=yes
12169 else
12170   echo "$as_me: failed program was:" >&5
12171 sed 's/^/| /' conftest.$ac_ext >&5
12172
12173         ac_cv_type_unsigned_long_long_int=no
12174 fi
12175
12176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12177       conftest$ac_exeext conftest.$ac_ext
12178 fi
12179 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
12180 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
12181   if test $ac_cv_type_unsigned_long_long_int = yes; then
12182
12183 cat >>confdefs.h <<\_ACEOF
12184 #define HAVE_UNSIGNED_LONG_LONG_INT 1
12185 _ACEOF
12186
12187   fi
12188
12189
12190
12191
12192
12193
12194
12195
12196   if test $ac_cv_type_long_long_int = yes; then
12197     HAVE_LONG_LONG_INT=1
12198   else
12199     HAVE_LONG_LONG_INT=0
12200   fi
12201
12202
12203   if test $ac_cv_type_unsigned_long_long_int = yes; then
12204     HAVE_UNSIGNED_LONG_LONG_INT=1
12205   else
12206     HAVE_UNSIGNED_LONG_LONG_INT=0
12207   fi
12208
12209
12210       if test $ac_cv_header_inttypes_h = yes; then
12211     HAVE_INTTYPES_H=1
12212   else
12213     HAVE_INTTYPES_H=0
12214   fi
12215
12216
12217       if test $ac_cv_header_sys_types_h = yes; then
12218     HAVE_SYS_TYPES_H=1
12219   else
12220     HAVE_SYS_TYPES_H=0
12221   fi
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234      if test $gl_cv_have_include_next = yes; then
12235        gl_cv_next_stdint_h='<'stdint.h'>'
12236      else
12237        { echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
12238 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6; }
12239 if test "${gl_cv_next_stdint_h+set}" = set; then
12240   echo $ECHO_N "(cached) $ECHO_C" >&6
12241 else
12242
12243           if test $ac_cv_header_stdint_h = yes; then
12244             cat >conftest.$ac_ext <<_ACEOF
12245 /* confdefs.h.  */
12246 _ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h.  */
12250 #include <stdint.h>
12251
12252 _ACEOF
12253                                     gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12254                sed -n '\#/stdint.h#{
12255                  s#.*"\(.*/stdint.h\)".*#\1#
12256                  s#^/[^/]#//&#
12257                  p
12258                  q
12259                }'`'"'
12260           else
12261             gl_cv_next_stdint_h='<'stdint.h'>'
12262           fi
12263
12264 fi
12265 { echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
12266 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6; }
12267      fi
12268      NEXT_STDINT_H=$gl_cv_next_stdint_h
12269
12270
12271
12272   if test $ac_cv_header_stdint_h = yes; then
12273     HAVE_STDINT_H=1
12274   else
12275     HAVE_STDINT_H=0
12276   fi
12277
12278
12279     if test $ac_cv_header_stdint_h = yes; then
12280     { echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
12281 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6; }
12282 if test "${gl_cv_header_working_stdint_h+set}" = set; then
12283   echo $ECHO_N "(cached) $ECHO_C" >&6
12284 else
12285   gl_cv_header_working_stdint_h=no
12286        cat >conftest.$ac_ext <<_ACEOF
12287
12288          /* confdefs.h.  */
12289 _ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h.  */
12293
12294 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
12295 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
12296 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12297 #include <stdint.h>
12298 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
12299 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
12300 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
12301 #endif
12302
12303
12304   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12305      included before <wchar.h>.  */
12306   #include <stddef.h>
12307   #include <signal.h>
12308   #if HAVE_WCHAR_H
12309   # include <stdio.h>
12310   # include <time.h>
12311   # include <wchar.h>
12312   #endif
12313
12314
12315 #ifdef INT8_MAX
12316 int8_t a1 = INT8_MAX;
12317 int8_t a1min = INT8_MIN;
12318 #endif
12319 #ifdef INT16_MAX
12320 int16_t a2 = INT16_MAX;
12321 int16_t a2min = INT16_MIN;
12322 #endif
12323 #ifdef INT32_MAX
12324 int32_t a3 = INT32_MAX;
12325 int32_t a3min = INT32_MIN;
12326 #endif
12327 #ifdef INT64_MAX
12328 int64_t a4 = INT64_MAX;
12329 int64_t a4min = INT64_MIN;
12330 #endif
12331 #ifdef UINT8_MAX
12332 uint8_t b1 = UINT8_MAX;
12333 #else
12334 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
12335 #endif
12336 #ifdef UINT16_MAX
12337 uint16_t b2 = UINT16_MAX;
12338 #endif
12339 #ifdef UINT32_MAX
12340 uint32_t b3 = UINT32_MAX;
12341 #endif
12342 #ifdef UINT64_MAX
12343 uint64_t b4 = UINT64_MAX;
12344 #endif
12345 int_least8_t c1 = INT8_C (0x7f);
12346 int_least8_t c1max = INT_LEAST8_MAX;
12347 int_least8_t c1min = INT_LEAST8_MIN;
12348 int_least16_t c2 = INT16_C (0x7fff);
12349 int_least16_t c2max = INT_LEAST16_MAX;
12350 int_least16_t c2min = INT_LEAST16_MIN;
12351 int_least32_t c3 = INT32_C (0x7fffffff);
12352 int_least32_t c3max = INT_LEAST32_MAX;
12353 int_least32_t c3min = INT_LEAST32_MIN;
12354 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
12355 int_least64_t c4max = INT_LEAST64_MAX;
12356 int_least64_t c4min = INT_LEAST64_MIN;
12357 uint_least8_t d1 = UINT8_C (0xff);
12358 uint_least8_t d1max = UINT_LEAST8_MAX;
12359 uint_least16_t d2 = UINT16_C (0xffff);
12360 uint_least16_t d2max = UINT_LEAST16_MAX;
12361 uint_least32_t d3 = UINT32_C (0xffffffff);
12362 uint_least32_t d3max = UINT_LEAST32_MAX;
12363 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
12364 uint_least64_t d4max = UINT_LEAST64_MAX;
12365 int_fast8_t e1 = INT_FAST8_MAX;
12366 int_fast8_t e1min = INT_FAST8_MIN;
12367 int_fast16_t e2 = INT_FAST16_MAX;
12368 int_fast16_t e2min = INT_FAST16_MIN;
12369 int_fast32_t e3 = INT_FAST32_MAX;
12370 int_fast32_t e3min = INT_FAST32_MIN;
12371 int_fast64_t e4 = INT_FAST64_MAX;
12372 int_fast64_t e4min = INT_FAST64_MIN;
12373 uint_fast8_t f1 = UINT_FAST8_MAX;
12374 uint_fast16_t f2 = UINT_FAST16_MAX;
12375 uint_fast32_t f3 = UINT_FAST32_MAX;
12376 uint_fast64_t f4 = UINT_FAST64_MAX;
12377 #ifdef INTPTR_MAX
12378 intptr_t g = INTPTR_MAX;
12379 intptr_t gmin = INTPTR_MIN;
12380 #endif
12381 #ifdef UINTPTR_MAX
12382 uintptr_t h = UINTPTR_MAX;
12383 #endif
12384 intmax_t i = INTMAX_MAX;
12385 uintmax_t j = UINTMAX_MAX;
12386
12387 #include <limits.h> /* for CHAR_BIT */
12388 #define TYPE_MINIMUM(t) \
12389   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
12390 #define TYPE_MAXIMUM(t) \
12391   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
12392 struct s {
12393   int check_PTRDIFF:
12394       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
12395       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
12396       ? 1 : -1;
12397   /* Detect bug in FreeBSD 6.0 / ia64.  */
12398   int check_SIG_ATOMIC:
12399       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
12400       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
12401       ? 1 : -1;
12402   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
12403   int check_WCHAR:
12404       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
12405       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
12406       ? 1 : -1;
12407   /* Detect bug in mingw.  */
12408   int check_WINT:
12409       WINT_MIN == TYPE_MINIMUM (wint_t)
12410       && WINT_MAX == TYPE_MAXIMUM (wint_t)
12411       ? 1 : -1;
12412
12413   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
12414   int check_UINT8_C:
12415         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
12416   int check_UINT16_C:
12417         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
12418
12419   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
12420 #ifdef UINT8_MAX
12421   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
12422 #endif
12423 #ifdef UINT16_MAX
12424   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
12425 #endif
12426 #ifdef UINT32_MAX
12427   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
12428 #endif
12429 #ifdef UINT64_MAX
12430   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
12431 #endif
12432   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
12433   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
12434   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
12435   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
12436   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
12437   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
12438   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
12439   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
12440   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
12441   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
12442   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
12443 };
12444
12445 int
12446 main ()
12447 {
12448
12449   ;
12450   return 0;
12451 }
12452 _ACEOF
12453 rm -f conftest.$ac_objext
12454 if { (ac_try="$ac_compile"
12455 case "(($ac_try" in
12456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12457   *) ac_try_echo=$ac_try;;
12458 esac
12459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12460   (eval "$ac_compile") 2>conftest.er1
12461   ac_status=$?
12462   grep -v '^ *+' conftest.er1 >conftest.err
12463   rm -f conftest.er1
12464   cat conftest.err >&5
12465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466   (exit $ac_status); } && {
12467          test -z "$ac_c_werror_flag" ||
12468          test ! -s conftest.err
12469        } && test -s conftest.$ac_objext; then
12470   gl_cv_header_working_stdint_h=yes
12471 else
12472   echo "$as_me: failed program was:" >&5
12473 sed 's/^/| /' conftest.$ac_ext >&5
12474
12475
12476 fi
12477
12478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12479 fi
12480 { echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
12481 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6; }
12482   fi
12483   if test "$gl_cv_header_working_stdint_h" = yes; then
12484     STDINT_H=
12485   else
12486
12487
12488 for ac_header in sys/inttypes.h sys/bitypes.h
12489 do
12490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12492   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12495   echo $ECHO_N "(cached) $ECHO_C" >&6
12496 fi
12497 ac_res=`eval echo '${'$as_ac_Header'}'`
12498                { echo "$as_me:$LINENO: result: $ac_res" >&5
12499 echo "${ECHO_T}$ac_res" >&6; }
12500 else
12501   # Is the header compilable?
12502 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12504 cat >conftest.$ac_ext <<_ACEOF
12505 /* confdefs.h.  */
12506 _ACEOF
12507 cat confdefs.h >>conftest.$ac_ext
12508 cat >>conftest.$ac_ext <<_ACEOF
12509 /* end confdefs.h.  */
12510 $ac_includes_default
12511 #include <$ac_header>
12512 _ACEOF
12513 rm -f conftest.$ac_objext
12514 if { (ac_try="$ac_compile"
12515 case "(($ac_try" in
12516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517   *) ac_try_echo=$ac_try;;
12518 esac
12519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12520   (eval "$ac_compile") 2>conftest.er1
12521   ac_status=$?
12522   grep -v '^ *+' conftest.er1 >conftest.err
12523   rm -f conftest.er1
12524   cat conftest.err >&5
12525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); } && {
12527          test -z "$ac_c_werror_flag" ||
12528          test ! -s conftest.err
12529        } && test -s conftest.$ac_objext; then
12530   ac_header_compiler=yes
12531 else
12532   echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.$ac_ext >&5
12534
12535         ac_header_compiler=no
12536 fi
12537
12538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12540 echo "${ECHO_T}$ac_header_compiler" >&6; }
12541
12542 # Is the header present?
12543 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12545 cat >conftest.$ac_ext <<_ACEOF
12546 /* confdefs.h.  */
12547 _ACEOF
12548 cat confdefs.h >>conftest.$ac_ext
12549 cat >>conftest.$ac_ext <<_ACEOF
12550 /* end confdefs.h.  */
12551 #include <$ac_header>
12552 _ACEOF
12553 if { (ac_try="$ac_cpp conftest.$ac_ext"
12554 case "(($ac_try" in
12555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12556   *) ac_try_echo=$ac_try;;
12557 esac
12558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12559   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12560   ac_status=$?
12561   grep -v '^ *+' conftest.er1 >conftest.err
12562   rm -f conftest.er1
12563   cat conftest.err >&5
12564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565   (exit $ac_status); } >/dev/null && {
12566          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12567          test ! -s conftest.err
12568        }; then
12569   ac_header_preproc=yes
12570 else
12571   echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.$ac_ext >&5
12573
12574   ac_header_preproc=no
12575 fi
12576
12577 rm -f conftest.err conftest.$ac_ext
12578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12579 echo "${ECHO_T}$ac_header_preproc" >&6; }
12580
12581 # So?  What about this header?
12582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12583   yes:no: )
12584     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12586     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12588     ac_header_preproc=yes
12589     ;;
12590   no:yes:* )
12591     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12593     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12594 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12595     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12597     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12598 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12599     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12601     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12603     ( cat <<\_ASBOX
12604 ## ------------------------------ ##
12605 ## Report this to bug-tar@gnu.org ##
12606 ## ------------------------------ ##
12607 _ASBOX
12608      ) | sed "s/^/$as_me: WARNING:     /" >&2
12609     ;;
12610 esac
12611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12614   echo $ECHO_N "(cached) $ECHO_C" >&6
12615 else
12616   eval "$as_ac_Header=\$ac_header_preproc"
12617 fi
12618 ac_res=`eval echo '${'$as_ac_Header'}'`
12619                { echo "$as_me:$LINENO: result: $ac_res" >&5
12620 echo "${ECHO_T}$ac_res" >&6; }
12621
12622 fi
12623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12624   cat >>confdefs.h <<_ACEOF
12625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12626 _ACEOF
12627
12628 fi
12629
12630 done
12631
12632     if test $ac_cv_header_sys_inttypes_h = yes; then
12633       HAVE_SYS_INTTYPES_H=1
12634     else
12635       HAVE_SYS_INTTYPES_H=0
12636     fi
12637
12638     if test $ac_cv_header_sys_bitypes_h = yes; then
12639       HAVE_SYS_BITYPES_H=1
12640     else
12641       HAVE_SYS_BITYPES_H=0
12642     fi
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
12661     { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
12662 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
12663 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
12664   echo $ECHO_N "(cached) $ECHO_C" >&6
12665 else
12666   if test "$cross_compiling" = yes; then
12667   # Depending upon the size, compute the lo and hi bounds.
12668 cat >conftest.$ac_ext <<_ACEOF
12669 /* confdefs.h.  */
12670 _ACEOF
12671 cat confdefs.h >>conftest.$ac_ext
12672 cat >>conftest.$ac_ext <<_ACEOF
12673 /* end confdefs.h.  */
12674
12675   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12676      included before <wchar.h>.  */
12677   #include <stddef.h>
12678   #include <signal.h>
12679   #if HAVE_WCHAR_H
12680   # include <stdio.h>
12681   # include <time.h>
12682   # include <wchar.h>
12683   #endif
12684
12685 #include <limits.h>
12686 int
12687 main ()
12688 {
12689 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
12690 test_array [0] = 0
12691
12692   ;
12693   return 0;
12694 }
12695 _ACEOF
12696 rm -f conftest.$ac_objext
12697 if { (ac_try="$ac_compile"
12698 case "(($ac_try" in
12699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12700   *) ac_try_echo=$ac_try;;
12701 esac
12702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12703   (eval "$ac_compile") 2>conftest.er1
12704   ac_status=$?
12705   grep -v '^ *+' conftest.er1 >conftest.err
12706   rm -f conftest.er1
12707   cat conftest.err >&5
12708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709   (exit $ac_status); } && {
12710          test -z "$ac_c_werror_flag" ||
12711          test ! -s conftest.err
12712        } && test -s conftest.$ac_objext; then
12713   ac_lo=0 ac_mid=0
12714   while :; do
12715     cat >conftest.$ac_ext <<_ACEOF
12716 /* confdefs.h.  */
12717 _ACEOF
12718 cat confdefs.h >>conftest.$ac_ext
12719 cat >>conftest.$ac_ext <<_ACEOF
12720 /* end confdefs.h.  */
12721
12722   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12723      included before <wchar.h>.  */
12724   #include <stddef.h>
12725   #include <signal.h>
12726   #if HAVE_WCHAR_H
12727   # include <stdio.h>
12728   # include <time.h>
12729   # include <wchar.h>
12730   #endif
12731
12732 #include <limits.h>
12733 int
12734 main ()
12735 {
12736 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
12737 test_array [0] = 0
12738
12739   ;
12740   return 0;
12741 }
12742 _ACEOF
12743 rm -f conftest.$ac_objext
12744 if { (ac_try="$ac_compile"
12745 case "(($ac_try" in
12746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12747   *) ac_try_echo=$ac_try;;
12748 esac
12749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12750   (eval "$ac_compile") 2>conftest.er1
12751   ac_status=$?
12752   grep -v '^ *+' conftest.er1 >conftest.err
12753   rm -f conftest.er1
12754   cat conftest.err >&5
12755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756   (exit $ac_status); } && {
12757          test -z "$ac_c_werror_flag" ||
12758          test ! -s conftest.err
12759        } && test -s conftest.$ac_objext; then
12760   ac_hi=$ac_mid; break
12761 else
12762   echo "$as_me: failed program was:" >&5
12763 sed 's/^/| /' conftest.$ac_ext >&5
12764
12765         ac_lo=`expr $ac_mid + 1`
12766                         if test $ac_lo -le $ac_mid; then
12767                           ac_lo= ac_hi=
12768                           break
12769                         fi
12770                         ac_mid=`expr 2 '*' $ac_mid + 1`
12771 fi
12772
12773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12774   done
12775 else
12776   echo "$as_me: failed program was:" >&5
12777 sed 's/^/| /' conftest.$ac_ext >&5
12778
12779         cat >conftest.$ac_ext <<_ACEOF
12780 /* confdefs.h.  */
12781 _ACEOF
12782 cat confdefs.h >>conftest.$ac_ext
12783 cat >>conftest.$ac_ext <<_ACEOF
12784 /* end confdefs.h.  */
12785
12786   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12787      included before <wchar.h>.  */
12788   #include <stddef.h>
12789   #include <signal.h>
12790   #if HAVE_WCHAR_H
12791   # include <stdio.h>
12792   # include <time.h>
12793   # include <wchar.h>
12794   #endif
12795
12796 #include <limits.h>
12797 int
12798 main ()
12799 {
12800 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
12801 test_array [0] = 0
12802
12803   ;
12804   return 0;
12805 }
12806 _ACEOF
12807 rm -f conftest.$ac_objext
12808 if { (ac_try="$ac_compile"
12809 case "(($ac_try" in
12810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811   *) ac_try_echo=$ac_try;;
12812 esac
12813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12814   (eval "$ac_compile") 2>conftest.er1
12815   ac_status=$?
12816   grep -v '^ *+' conftest.er1 >conftest.err
12817   rm -f conftest.er1
12818   cat conftest.err >&5
12819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820   (exit $ac_status); } && {
12821          test -z "$ac_c_werror_flag" ||
12822          test ! -s conftest.err
12823        } && test -s conftest.$ac_objext; then
12824   ac_hi=-1 ac_mid=-1
12825   while :; do
12826     cat >conftest.$ac_ext <<_ACEOF
12827 /* confdefs.h.  */
12828 _ACEOF
12829 cat confdefs.h >>conftest.$ac_ext
12830 cat >>conftest.$ac_ext <<_ACEOF
12831 /* end confdefs.h.  */
12832
12833   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12834      included before <wchar.h>.  */
12835   #include <stddef.h>
12836   #include <signal.h>
12837   #if HAVE_WCHAR_H
12838   # include <stdio.h>
12839   # include <time.h>
12840   # include <wchar.h>
12841   #endif
12842
12843 #include <limits.h>
12844 int
12845 main ()
12846 {
12847 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
12848 test_array [0] = 0
12849
12850   ;
12851   return 0;
12852 }
12853 _ACEOF
12854 rm -f conftest.$ac_objext
12855 if { (ac_try="$ac_compile"
12856 case "(($ac_try" in
12857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858   *) ac_try_echo=$ac_try;;
12859 esac
12860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12861   (eval "$ac_compile") 2>conftest.er1
12862   ac_status=$?
12863   grep -v '^ *+' conftest.er1 >conftest.err
12864   rm -f conftest.er1
12865   cat conftest.err >&5
12866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867   (exit $ac_status); } && {
12868          test -z "$ac_c_werror_flag" ||
12869          test ! -s conftest.err
12870        } && test -s conftest.$ac_objext; then
12871   ac_lo=$ac_mid; break
12872 else
12873   echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12875
12876         ac_hi=`expr '(' $ac_mid ')' - 1`
12877                         if test $ac_mid -le $ac_hi; then
12878                           ac_lo= ac_hi=
12879                           break
12880                         fi
12881                         ac_mid=`expr 2 '*' $ac_mid`
12882 fi
12883
12884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12885   done
12886 else
12887   echo "$as_me: failed program was:" >&5
12888 sed 's/^/| /' conftest.$ac_ext >&5
12889
12890         ac_lo= ac_hi=
12891 fi
12892
12893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12894 fi
12895
12896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12897 # Binary search between lo and hi bounds.
12898 while test "x$ac_lo" != "x$ac_hi"; do
12899   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12900   cat >conftest.$ac_ext <<_ACEOF
12901 /* confdefs.h.  */
12902 _ACEOF
12903 cat confdefs.h >>conftest.$ac_ext
12904 cat >>conftest.$ac_ext <<_ACEOF
12905 /* end confdefs.h.  */
12906
12907   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12908      included before <wchar.h>.  */
12909   #include <stddef.h>
12910   #include <signal.h>
12911   #if HAVE_WCHAR_H
12912   # include <stdio.h>
12913   # include <time.h>
12914   # include <wchar.h>
12915   #endif
12916
12917 #include <limits.h>
12918 int
12919 main ()
12920 {
12921 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
12922 test_array [0] = 0
12923
12924   ;
12925   return 0;
12926 }
12927 _ACEOF
12928 rm -f conftest.$ac_objext
12929 if { (ac_try="$ac_compile"
12930 case "(($ac_try" in
12931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12932   *) ac_try_echo=$ac_try;;
12933 esac
12934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12935   (eval "$ac_compile") 2>conftest.er1
12936   ac_status=$?
12937   grep -v '^ *+' conftest.er1 >conftest.err
12938   rm -f conftest.er1
12939   cat conftest.err >&5
12940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941   (exit $ac_status); } && {
12942          test -z "$ac_c_werror_flag" ||
12943          test ! -s conftest.err
12944        } && test -s conftest.$ac_objext; then
12945   ac_hi=$ac_mid
12946 else
12947   echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12949
12950         ac_lo=`expr '(' $ac_mid ')' + 1`
12951 fi
12952
12953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12954 done
12955 case $ac_lo in
12956 ?*) result=$ac_lo;;
12957 '') result=unknown ;;
12958 esac
12959 else
12960   cat >conftest.$ac_ext <<_ACEOF
12961 /* confdefs.h.  */
12962 _ACEOF
12963 cat confdefs.h >>conftest.$ac_ext
12964 cat >>conftest.$ac_ext <<_ACEOF
12965 /* end confdefs.h.  */
12966
12967   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12968      included before <wchar.h>.  */
12969   #include <stddef.h>
12970   #include <signal.h>
12971   #if HAVE_WCHAR_H
12972   # include <stdio.h>
12973   # include <time.h>
12974   # include <wchar.h>
12975   #endif
12976
12977 #include <limits.h>
12978 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
12979 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
12980 #include <stdio.h>
12981 #include <stdlib.h>
12982 int
12983 main ()
12984 {
12985
12986   FILE *f = fopen ("conftest.val", "w");
12987   if (! f)
12988     return 1;
12989   if ((sizeof ($gltype) * CHAR_BIT) < 0)
12990     {
12991       long int i = longval ();
12992       if (i != (sizeof ($gltype) * CHAR_BIT))
12993         return 1;
12994       fprintf (f, "%ld\n", i);
12995     }
12996   else
12997     {
12998       unsigned long int i = ulongval ();
12999       if (i != (sizeof ($gltype) * CHAR_BIT))
13000         return 1;
13001       fprintf (f, "%lu\n", i);
13002     }
13003   return ferror (f) || fclose (f) != 0;
13004
13005   ;
13006   return 0;
13007 }
13008 _ACEOF
13009 rm -f conftest$ac_exeext
13010 if { (ac_try="$ac_link"
13011 case "(($ac_try" in
13012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13013   *) ac_try_echo=$ac_try;;
13014 esac
13015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13016   (eval "$ac_link") 2>&5
13017   ac_status=$?
13018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13020   { (case "(($ac_try" in
13021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022   *) ac_try_echo=$ac_try;;
13023 esac
13024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025   (eval "$ac_try") 2>&5
13026   ac_status=$?
13027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028   (exit $ac_status); }; }; then
13029   result=`cat conftest.val`
13030 else
13031   echo "$as_me: program exited with status $ac_status" >&5
13032 echo "$as_me: failed program was:" >&5
13033 sed 's/^/| /' conftest.$ac_ext >&5
13034
13035 ( exit $ac_status )
13036 result=unknown
13037 fi
13038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13039 fi
13040 rm -f conftest.val
13041        eval gl_cv_bitsizeof_${gltype}=\$result
13042
13043 fi
13044 ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
13045                { echo "$as_me:$LINENO: result: $ac_res" >&5
13046 echo "${ECHO_T}$ac_res" >&6; }
13047     eval result=\$gl_cv_bitsizeof_${gltype}
13048     if test $result = unknown; then
13049                                                 result=0
13050     fi
13051     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13052     cat >>confdefs.h <<_ACEOF
13053 #define BITSIZEOF_${GLTYPE} $result
13054 _ACEOF
13055
13056     eval BITSIZEOF_${GLTYPE}=\$result
13057   done
13058
13059
13060
13061
13062
13063
13064
13065   for gltype in sig_atomic_t wchar_t wint_t ; do
13066     { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
13067 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
13068 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
13069   echo $ECHO_N "(cached) $ECHO_C" >&6
13070 else
13071   cat >conftest.$ac_ext <<_ACEOF
13072 /* confdefs.h.  */
13073 _ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h.  */
13077
13078   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13079      included before <wchar.h>.  */
13080   #include <stddef.h>
13081   #include <signal.h>
13082   #if HAVE_WCHAR_H
13083   # include <stdio.h>
13084   # include <time.h>
13085   # include <wchar.h>
13086   #endif
13087
13088             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
13089 int
13090 main ()
13091 {
13092
13093   ;
13094   return 0;
13095 }
13096 _ACEOF
13097 rm -f conftest.$ac_objext
13098 if { (ac_try="$ac_compile"
13099 case "(($ac_try" in
13100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13101   *) ac_try_echo=$ac_try;;
13102 esac
13103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13104   (eval "$ac_compile") 2>conftest.er1
13105   ac_status=$?
13106   grep -v '^ *+' conftest.er1 >conftest.err
13107   rm -f conftest.er1
13108   cat conftest.err >&5
13109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110   (exit $ac_status); } && {
13111          test -z "$ac_c_werror_flag" ||
13112          test ! -s conftest.err
13113        } && test -s conftest.$ac_objext; then
13114   result=yes
13115 else
13116   echo "$as_me: failed program was:" >&5
13117 sed 's/^/| /' conftest.$ac_ext >&5
13118
13119         result=no
13120 fi
13121
13122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13123        eval gl_cv_type_${gltype}_signed=\$result
13124
13125 fi
13126 ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
13127                { echo "$as_me:$LINENO: result: $ac_res" >&5
13128 echo "${ECHO_T}$ac_res" >&6; }
13129     eval result=\$gl_cv_type_${gltype}_signed
13130     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13131     if test "$result" = yes; then
13132       cat >>confdefs.h <<_ACEOF
13133 #define HAVE_SIGNED_${GLTYPE} 1
13134 _ACEOF
13135
13136       eval HAVE_SIGNED_${GLTYPE}=1
13137     else
13138       eval HAVE_SIGNED_${GLTYPE}=0
13139     fi
13140   done
13141
13142
13143   gl_cv_type_ptrdiff_t_signed=yes
13144   gl_cv_type_size_t_signed=no
13145
13146
13147
13148
13149
13150
13151
13152   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
13153     { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
13154 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; }
13155 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
13156   echo $ECHO_N "(cached) $ECHO_C" >&6
13157 else
13158   eval gl_cv_type_${gltype}_suffix=no
13159        eval result=\$gl_cv_type_${gltype}_signed
13160        if test "$result" = yes; then
13161          glsufu=
13162        else
13163          glsufu=u
13164        fi
13165        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
13166          case $glsuf in
13167            '')  gltype1='int';;
13168            l)   gltype1='long int';;
13169            ll)  gltype1='long long int';;
13170            i64) gltype1='__int64';;
13171            u)   gltype1='unsigned int';;
13172            ul)  gltype1='unsigned long int';;
13173            ull) gltype1='unsigned long long int';;
13174            ui64)gltype1='unsigned __int64';;
13175          esac
13176          cat >conftest.$ac_ext <<_ACEOF
13177 /* confdefs.h.  */
13178 _ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h.  */
13182
13183   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13184      included before <wchar.h>.  */
13185   #include <stddef.h>
13186   #include <signal.h>
13187   #if HAVE_WCHAR_H
13188   # include <stdio.h>
13189   # include <time.h>
13190   # include <wchar.h>
13191   #endif
13192
13193               extern $gltype foo;
13194               extern $gltype1 foo;
13195 int
13196 main ()
13197 {
13198
13199   ;
13200   return 0;
13201 }
13202 _ACEOF
13203 rm -f conftest.$ac_objext
13204 if { (ac_try="$ac_compile"
13205 case "(($ac_try" in
13206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13207   *) ac_try_echo=$ac_try;;
13208 esac
13209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13210   (eval "$ac_compile") 2>conftest.er1
13211   ac_status=$?
13212   grep -v '^ *+' conftest.er1 >conftest.err
13213   rm -f conftest.er1
13214   cat conftest.err >&5
13215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216   (exit $ac_status); } && {
13217          test -z "$ac_c_werror_flag" ||
13218          test ! -s conftest.err
13219        } && test -s conftest.$ac_objext; then
13220   eval gl_cv_type_${gltype}_suffix=\$glsuf
13221 else
13222   echo "$as_me: failed program was:" >&5
13223 sed 's/^/| /' conftest.$ac_ext >&5
13224
13225
13226 fi
13227
13228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13229          eval result=\$gl_cv_type_${gltype}_suffix
13230          test "$result" != no && break
13231        done
13232 fi
13233 ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'`
13234                { echo "$as_me:$LINENO: result: $ac_res" >&5
13235 echo "${ECHO_T}$ac_res" >&6; }
13236     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13237     eval result=\$gl_cv_type_${gltype}_suffix
13238     test "$result" = no && result=
13239     eval ${GLTYPE}_SUFFIX=\$result
13240     cat >>confdefs.h <<_ACEOF
13241 #define ${GLTYPE}_SUFFIX $result
13242 _ACEOF
13243
13244   done
13245
13246
13247
13248     STDINT_H=stdint.h
13249   fi
13250
13251
13252
13253
13254 for ac_header in inttypes.h
13255 do
13256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13258   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13261   echo $ECHO_N "(cached) $ECHO_C" >&6
13262 fi
13263 ac_res=`eval echo '${'$as_ac_Header'}'`
13264                { echo "$as_me:$LINENO: result: $ac_res" >&5
13265 echo "${ECHO_T}$ac_res" >&6; }
13266 else
13267   # Is the header compilable?
13268 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13270 cat >conftest.$ac_ext <<_ACEOF
13271 /* confdefs.h.  */
13272 _ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h.  */
13276 $ac_includes_default
13277 #include <$ac_header>
13278 _ACEOF
13279 rm -f conftest.$ac_objext
13280 if { (ac_try="$ac_compile"
13281 case "(($ac_try" in
13282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13283   *) ac_try_echo=$ac_try;;
13284 esac
13285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13286   (eval "$ac_compile") 2>conftest.er1
13287   ac_status=$?
13288   grep -v '^ *+' conftest.er1 >conftest.err
13289   rm -f conftest.er1
13290   cat conftest.err >&5
13291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292   (exit $ac_status); } && {
13293          test -z "$ac_c_werror_flag" ||
13294          test ! -s conftest.err
13295        } && test -s conftest.$ac_objext; then
13296   ac_header_compiler=yes
13297 else
13298   echo "$as_me: failed program was:" >&5
13299 sed 's/^/| /' conftest.$ac_ext >&5
13300
13301         ac_header_compiler=no
13302 fi
13303
13304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13305 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13306 echo "${ECHO_T}$ac_header_compiler" >&6; }
13307
13308 # Is the header present?
13309 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13311 cat >conftest.$ac_ext <<_ACEOF
13312 /* confdefs.h.  */
13313 _ACEOF
13314 cat confdefs.h >>conftest.$ac_ext
13315 cat >>conftest.$ac_ext <<_ACEOF
13316 /* end confdefs.h.  */
13317 #include <$ac_header>
13318 _ACEOF
13319 if { (ac_try="$ac_cpp conftest.$ac_ext"
13320 case "(($ac_try" in
13321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13322   *) ac_try_echo=$ac_try;;
13323 esac
13324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13326   ac_status=$?
13327   grep -v '^ *+' conftest.er1 >conftest.err
13328   rm -f conftest.er1
13329   cat conftest.err >&5
13330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331   (exit $ac_status); } >/dev/null && {
13332          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13333          test ! -s conftest.err
13334        }; then
13335   ac_header_preproc=yes
13336 else
13337   echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13339
13340   ac_header_preproc=no
13341 fi
13342
13343 rm -f conftest.err conftest.$ac_ext
13344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13345 echo "${ECHO_T}$ac_header_preproc" >&6; }
13346
13347 # So?  What about this header?
13348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13349   yes:no: )
13350     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13354     ac_header_preproc=yes
13355     ;;
13356   no:yes:* )
13357     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13359     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13360 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13361     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13363     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13364 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13365     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13367     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13369     ( cat <<\_ASBOX
13370 ## ------------------------------ ##
13371 ## Report this to bug-tar@gnu.org ##
13372 ## ------------------------------ ##
13373 _ASBOX
13374      ) | sed "s/^/$as_me: WARNING:     /" >&2
13375     ;;
13376 esac
13377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13380   echo $ECHO_N "(cached) $ECHO_C" >&6
13381 else
13382   eval "$as_ac_Header=\$ac_header_preproc"
13383 fi
13384 ac_res=`eval echo '${'$as_ac_Header'}'`
13385                { echo "$as_me:$LINENO: result: $ac_res" >&5
13386 echo "${ECHO_T}$ac_res" >&6; }
13387
13388 fi
13389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13390   cat >>confdefs.h <<_ACEOF
13391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13392 _ACEOF
13393
13394 fi
13395
13396 done
13397
13398   if test $ac_cv_header_inttypes_h = yes; then
13399     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
13400 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
13401 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
13402   echo $ECHO_N "(cached) $ECHO_C" >&6
13403 else
13404
13405         cat >conftest.$ac_ext <<_ACEOF
13406 /* confdefs.h.  */
13407 _ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h.  */
13411 #include <inttypes.h>
13412 #ifdef PRId32
13413 char *p = PRId32;
13414 #endif
13415
13416 int
13417 main ()
13418 {
13419
13420   ;
13421   return 0;
13422 }
13423 _ACEOF
13424 rm -f conftest.$ac_objext
13425 if { (ac_try="$ac_compile"
13426 case "(($ac_try" in
13427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428   *) ac_try_echo=$ac_try;;
13429 esac
13430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431   (eval "$ac_compile") 2>conftest.er1
13432   ac_status=$?
13433   grep -v '^ *+' conftest.er1 >conftest.err
13434   rm -f conftest.er1
13435   cat conftest.err >&5
13436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437   (exit $ac_status); } && {
13438          test -z "$ac_c_werror_flag" ||
13439          test ! -s conftest.err
13440        } && test -s conftest.$ac_objext; then
13441   gt_cv_inttypes_pri_broken=no
13442 else
13443   echo "$as_me: failed program was:" >&5
13444 sed 's/^/| /' conftest.$ac_ext >&5
13445
13446         gt_cv_inttypes_pri_broken=yes
13447 fi
13448
13449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13450
13451 fi
13452 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
13453 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
13454   fi
13455   if test "$gt_cv_inttypes_pri_broken" = yes; then
13456
13457 cat >>confdefs.h <<_ACEOF
13458 #define PRI_MACROS_BROKEN 1
13459 _ACEOF
13460
13461     PRI_MACROS_BROKEN=1
13462   else
13463     PRI_MACROS_BROKEN=0
13464   fi
13465
13466
13467 { echo "$as_me:$LINENO: checking whether imaxabs is declared" >&5
13468 echo $ECHO_N "checking whether imaxabs is declared... $ECHO_C" >&6; }
13469 if test "${ac_cv_have_decl_imaxabs+set}" = set; then
13470   echo $ECHO_N "(cached) $ECHO_C" >&6
13471 else
13472   cat >conftest.$ac_ext <<_ACEOF
13473 /* confdefs.h.  */
13474 _ACEOF
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h.  */
13478 $ac_includes_default
13479 int
13480 main ()
13481 {
13482 #ifndef imaxabs
13483   (void) imaxabs;
13484 #endif
13485
13486   ;
13487   return 0;
13488 }
13489 _ACEOF
13490 rm -f conftest.$ac_objext
13491 if { (ac_try="$ac_compile"
13492 case "(($ac_try" in
13493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494   *) ac_try_echo=$ac_try;;
13495 esac
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497   (eval "$ac_compile") 2>conftest.er1
13498   ac_status=$?
13499   grep -v '^ *+' conftest.er1 >conftest.err
13500   rm -f conftest.er1
13501   cat conftest.err >&5
13502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503   (exit $ac_status); } && {
13504          test -z "$ac_c_werror_flag" ||
13505          test ! -s conftest.err
13506        } && test -s conftest.$ac_objext; then
13507   ac_cv_have_decl_imaxabs=yes
13508 else
13509   echo "$as_me: failed program was:" >&5
13510 sed 's/^/| /' conftest.$ac_ext >&5
13511
13512         ac_cv_have_decl_imaxabs=no
13513 fi
13514
13515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13516 fi
13517 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxabs" >&5
13518 echo "${ECHO_T}$ac_cv_have_decl_imaxabs" >&6; }
13519 if test $ac_cv_have_decl_imaxabs = yes; then
13520
13521 cat >>confdefs.h <<_ACEOF
13522 #define HAVE_DECL_IMAXABS 1
13523 _ACEOF
13524
13525
13526 else
13527   cat >>confdefs.h <<_ACEOF
13528 #define HAVE_DECL_IMAXABS 0
13529 _ACEOF
13530
13531
13532 fi
13533
13534
13535 { echo "$as_me:$LINENO: checking whether imaxdiv is declared" >&5
13536 echo $ECHO_N "checking whether imaxdiv is declared... $ECHO_C" >&6; }
13537 if test "${ac_cv_have_decl_imaxdiv+set}" = set; then
13538   echo $ECHO_N "(cached) $ECHO_C" >&6
13539 else
13540   cat >conftest.$ac_ext <<_ACEOF
13541 /* confdefs.h.  */
13542 _ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h.  */
13546 $ac_includes_default
13547 int
13548 main ()
13549 {
13550 #ifndef imaxdiv
13551   (void) imaxdiv;
13552 #endif
13553
13554   ;
13555   return 0;
13556 }
13557 _ACEOF
13558 rm -f conftest.$ac_objext
13559 if { (ac_try="$ac_compile"
13560 case "(($ac_try" in
13561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562   *) ac_try_echo=$ac_try;;
13563 esac
13564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565   (eval "$ac_compile") 2>conftest.er1
13566   ac_status=$?
13567   grep -v '^ *+' conftest.er1 >conftest.err
13568   rm -f conftest.er1
13569   cat conftest.err >&5
13570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571   (exit $ac_status); } && {
13572          test -z "$ac_c_werror_flag" ||
13573          test ! -s conftest.err
13574        } && test -s conftest.$ac_objext; then
13575   ac_cv_have_decl_imaxdiv=yes
13576 else
13577   echo "$as_me: failed program was:" >&5
13578 sed 's/^/| /' conftest.$ac_ext >&5
13579
13580         ac_cv_have_decl_imaxdiv=no
13581 fi
13582
13583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13584 fi
13585 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxdiv" >&5
13586 echo "${ECHO_T}$ac_cv_have_decl_imaxdiv" >&6; }
13587 if test $ac_cv_have_decl_imaxdiv = yes; then
13588
13589 cat >>confdefs.h <<_ACEOF
13590 #define HAVE_DECL_IMAXDIV 1
13591 _ACEOF
13592
13593
13594 else
13595   cat >>confdefs.h <<_ACEOF
13596 #define HAVE_DECL_IMAXDIV 0
13597 _ACEOF
13598
13599
13600 fi
13601
13602
13603 { echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
13604 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6; }
13605 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
13606   echo $ECHO_N "(cached) $ECHO_C" >&6
13607 else
13608   cat >conftest.$ac_ext <<_ACEOF
13609 /* confdefs.h.  */
13610 _ACEOF
13611 cat confdefs.h >>conftest.$ac_ext
13612 cat >>conftest.$ac_ext <<_ACEOF
13613 /* end confdefs.h.  */
13614 $ac_includes_default
13615 int
13616 main ()
13617 {
13618 #ifndef strtoimax
13619   (void) strtoimax;
13620 #endif
13621
13622   ;
13623   return 0;
13624 }
13625 _ACEOF
13626 rm -f conftest.$ac_objext
13627 if { (ac_try="$ac_compile"
13628 case "(($ac_try" in
13629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13630   *) ac_try_echo=$ac_try;;
13631 esac
13632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13633   (eval "$ac_compile") 2>conftest.er1
13634   ac_status=$?
13635   grep -v '^ *+' conftest.er1 >conftest.err
13636   rm -f conftest.er1
13637   cat conftest.err >&5
13638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639   (exit $ac_status); } && {
13640          test -z "$ac_c_werror_flag" ||
13641          test ! -s conftest.err
13642        } && test -s conftest.$ac_objext; then
13643   ac_cv_have_decl_strtoimax=yes
13644 else
13645   echo "$as_me: failed program was:" >&5
13646 sed 's/^/| /' conftest.$ac_ext >&5
13647
13648         ac_cv_have_decl_strtoimax=no
13649 fi
13650
13651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13652 fi
13653 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
13654 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6; }
13655 if test $ac_cv_have_decl_strtoimax = yes; then
13656
13657 cat >>confdefs.h <<_ACEOF
13658 #define HAVE_DECL_STRTOIMAX 1
13659 _ACEOF
13660
13661
13662 else
13663   cat >>confdefs.h <<_ACEOF
13664 #define HAVE_DECL_STRTOIMAX 0
13665 _ACEOF
13666
13667
13668 fi
13669
13670
13671 { echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
13672 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6; }
13673 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
13674   echo $ECHO_N "(cached) $ECHO_C" >&6
13675 else
13676   cat >conftest.$ac_ext <<_ACEOF
13677 /* confdefs.h.  */
13678 _ACEOF
13679 cat confdefs.h >>conftest.$ac_ext
13680 cat >>conftest.$ac_ext <<_ACEOF
13681 /* end confdefs.h.  */
13682 $ac_includes_default
13683 int
13684 main ()
13685 {
13686 #ifndef strtoumax
13687   (void) strtoumax;
13688 #endif
13689
13690   ;
13691   return 0;
13692 }
13693 _ACEOF
13694 rm -f conftest.$ac_objext
13695 if { (ac_try="$ac_compile"
13696 case "(($ac_try" in
13697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13698   *) ac_try_echo=$ac_try;;
13699 esac
13700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13701   (eval "$ac_compile") 2>conftest.er1
13702   ac_status=$?
13703   grep -v '^ *+' conftest.er1 >conftest.err
13704   rm -f conftest.er1
13705   cat conftest.err >&5
13706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707   (exit $ac_status); } && {
13708          test -z "$ac_c_werror_flag" ||
13709          test ! -s conftest.err
13710        } && test -s conftest.$ac_objext; then
13711   ac_cv_have_decl_strtoumax=yes
13712 else
13713   echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13715
13716         ac_cv_have_decl_strtoumax=no
13717 fi
13718
13719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13720 fi
13721 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
13722 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6; }
13723 if test $ac_cv_have_decl_strtoumax = yes; then
13724
13725 cat >>confdefs.h <<_ACEOF
13726 #define HAVE_DECL_STRTOUMAX 1
13727 _ACEOF
13728
13729
13730 else
13731   cat >>confdefs.h <<_ACEOF
13732 #define HAVE_DECL_STRTOUMAX 0
13733 _ACEOF
13734
13735
13736 fi
13737
13738
13739
13740   GNULIB_IMAXABS=0;
13741   GNULIB_IMAXDIV=0;
13742   GNULIB_STRTOIMAX=0;
13743   GNULIB_STRTOUMAX=0;
13744     HAVE_DECL_IMAXABS=1;
13745   HAVE_DECL_IMAXDIV=1;
13746   HAVE_DECL_STRTOIMAX=1;
13747   HAVE_DECL_STRTOUMAX=1;
13748
13749
13750
13751
13752   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13753 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
13754 if test "${am_cv_langinfo_codeset+set}" = set; then
13755   echo $ECHO_N "(cached) $ECHO_C" >&6
13756 else
13757   cat >conftest.$ac_ext <<_ACEOF
13758 /* confdefs.h.  */
13759 _ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h.  */
13763 #include <langinfo.h>
13764 int
13765 main ()
13766 {
13767 char* cs = nl_langinfo(CODESET); return !cs;
13768   ;
13769   return 0;
13770 }
13771 _ACEOF
13772 rm -f conftest.$ac_objext conftest$ac_exeext
13773 if { (ac_try="$ac_link"
13774 case "(($ac_try" in
13775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13776   *) ac_try_echo=$ac_try;;
13777 esac
13778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13779   (eval "$ac_link") 2>conftest.er1
13780   ac_status=$?
13781   grep -v '^ *+' conftest.er1 >conftest.err
13782   rm -f conftest.er1
13783   cat conftest.err >&5
13784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785   (exit $ac_status); } && {
13786          test -z "$ac_c_werror_flag" ||
13787          test ! -s conftest.err
13788        } && test -s conftest$ac_exeext &&
13789        $as_test_x conftest$ac_exeext; then
13790   am_cv_langinfo_codeset=yes
13791 else
13792   echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13794
13795         am_cv_langinfo_codeset=no
13796 fi
13797
13798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13799       conftest$ac_exeext conftest.$ac_ext
13800
13801 fi
13802 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13803 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
13804   if test $am_cv_langinfo_codeset = yes; then
13805
13806 cat >>confdefs.h <<\_ACEOF
13807 #define HAVE_LANGINFO_CODESET 1
13808 _ACEOF
13809
13810   fi
13811
13812
13813     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
13814 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
13815 if test "${ac_cv_gnu_library_2_1+set}" = set; then
13816   echo $ECHO_N "(cached) $ECHO_C" >&6
13817 else
13818   cat >conftest.$ac_ext <<_ACEOF
13819 /* confdefs.h.  */
13820 _ACEOF
13821 cat confdefs.h >>conftest.$ac_ext
13822 cat >>conftest.$ac_ext <<_ACEOF
13823 /* end confdefs.h.  */
13824
13825 #include <features.h>
13826 #ifdef __GNU_LIBRARY__
13827  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13828   Lucky GNU user
13829  #endif
13830 #endif
13831
13832 _ACEOF
13833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13834   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
13835   ac_cv_gnu_library_2_1=yes
13836 else
13837   ac_cv_gnu_library_2_1=no
13838 fi
13839 rm -f conftest*
13840
13841
13842
13843 fi
13844 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
13845 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
13846
13847     GLIBC21="$ac_cv_gnu_library_2_1"
13848
13849
13850
13851   { echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
13852 echo $ECHO_N "checking whether malloc, realloc, calloc are POSIX compliant... $ECHO_C" >&6; }
13853 if test "${gl_cv_func_malloc_posix+set}" = set; then
13854   echo $ECHO_N "(cached) $ECHO_C" >&6
13855 else
13856
13857                         cat >conftest.$ac_ext <<_ACEOF
13858 /* confdefs.h.  */
13859 _ACEOF
13860 cat confdefs.h >>conftest.$ac_ext
13861 cat >>conftest.$ac_ext <<_ACEOF
13862 /* end confdefs.h.  */
13863
13864 int
13865 main ()
13866 {
13867 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
13868          choke me
13869          #endif
13870
13871   ;
13872   return 0;
13873 }
13874 _ACEOF
13875 rm -f conftest.$ac_objext
13876 if { (ac_try="$ac_compile"
13877 case "(($ac_try" in
13878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13879   *) ac_try_echo=$ac_try;;
13880 esac
13881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882   (eval "$ac_compile") 2>conftest.er1
13883   ac_status=$?
13884   grep -v '^ *+' conftest.er1 >conftest.err
13885   rm -f conftest.er1
13886   cat conftest.err >&5
13887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888   (exit $ac_status); } && {
13889          test -z "$ac_c_werror_flag" ||
13890          test ! -s conftest.err
13891        } && test -s conftest.$ac_objext; then
13892   gl_cv_func_malloc_posix=yes
13893 else
13894   echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13896
13897         gl_cv_func_malloc_posix=no
13898 fi
13899
13900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13901
13902 fi
13903 { echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
13904 echo "${ECHO_T}$gl_cv_func_malloc_posix" >&6; }
13905
13906
13907   GNULIB_MALLOC_POSIX=0;
13908   GNULIB_REALLOC_POSIX=0;
13909   GNULIB_CALLOC_POSIX=0;
13910   GNULIB_GETSUBOPT=0;
13911   GNULIB_MKDTEMP=0;
13912   GNULIB_MKSTEMP=0;
13913   GNULIB_PUTENV=0;
13914   GNULIB_SETENV=0;
13915   GNULIB_STRTOD=0;
13916   GNULIB_UNSETENV=0;
13917     HAVE_CALLOC_POSIX=1;
13918   HAVE_GETSUBOPT=1;
13919   HAVE_MALLOC_POSIX=1;
13920   HAVE_MKDTEMP=1;
13921   HAVE_REALLOC_POSIX=1;
13922   HAVE_SETENV=1;
13923   HAVE_STRTOD=1;
13924   HAVE_UNSETENV=1;
13925   REPLACE_MKSTEMP=0;
13926   REPLACE_PUTENV=0;
13927   REPLACE_STRTOD=0;
13928   VOID_UNSETENV=0;
13929
13930
13931
13932 for ac_header in stdlib.h
13933 do
13934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13936   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13939   echo $ECHO_N "(cached) $ECHO_C" >&6
13940 fi
13941 ac_res=`eval echo '${'$as_ac_Header'}'`
13942                { echo "$as_me:$LINENO: result: $ac_res" >&5
13943 echo "${ECHO_T}$ac_res" >&6; }
13944 else
13945   # Is the header compilable?
13946 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13948 cat >conftest.$ac_ext <<_ACEOF
13949 /* confdefs.h.  */
13950 _ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h.  */
13954 $ac_includes_default
13955 #include <$ac_header>
13956 _ACEOF
13957 rm -f conftest.$ac_objext
13958 if { (ac_try="$ac_compile"
13959 case "(($ac_try" in
13960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961   *) ac_try_echo=$ac_try;;
13962 esac
13963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964   (eval "$ac_compile") 2>conftest.er1
13965   ac_status=$?
13966   grep -v '^ *+' conftest.er1 >conftest.err
13967   rm -f conftest.er1
13968   cat conftest.err >&5
13969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970   (exit $ac_status); } && {
13971          test -z "$ac_c_werror_flag" ||
13972          test ! -s conftest.err
13973        } && test -s conftest.$ac_objext; then
13974   ac_header_compiler=yes
13975 else
13976   echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13978
13979         ac_header_compiler=no
13980 fi
13981
13982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13983 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13984 echo "${ECHO_T}$ac_header_compiler" >&6; }
13985
13986 # Is the header present?
13987 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13989 cat >conftest.$ac_ext <<_ACEOF
13990 /* confdefs.h.  */
13991 _ACEOF
13992 cat confdefs.h >>conftest.$ac_ext
13993 cat >>conftest.$ac_ext <<_ACEOF
13994 /* end confdefs.h.  */
13995 #include <$ac_header>
13996 _ACEOF
13997 if { (ac_try="$ac_cpp conftest.$ac_ext"
13998 case "(($ac_try" in
13999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14000   *) ac_try_echo=$ac_try;;
14001 esac
14002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14003   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14004   ac_status=$?
14005   grep -v '^ *+' conftest.er1 >conftest.err
14006   rm -f conftest.er1
14007   cat conftest.err >&5
14008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009   (exit $ac_status); } >/dev/null && {
14010          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14011          test ! -s conftest.err
14012        }; then
14013   ac_header_preproc=yes
14014 else
14015   echo "$as_me: failed program was:" >&5
14016 sed 's/^/| /' conftest.$ac_ext >&5
14017
14018   ac_header_preproc=no
14019 fi
14020
14021 rm -f conftest.err conftest.$ac_ext
14022 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14023 echo "${ECHO_T}$ac_header_preproc" >&6; }
14024
14025 # So?  What about this header?
14026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14027   yes:no: )
14028     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14030     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14032     ac_header_preproc=yes
14033     ;;
14034   no:yes:* )
14035     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14037     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14038 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14039     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14040 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14041     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14042 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14043     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14045     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14046 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14047     ( cat <<\_ASBOX
14048 ## ------------------------------ ##
14049 ## Report this to bug-tar@gnu.org ##
14050 ## ------------------------------ ##
14051 _ASBOX
14052      ) | sed "s/^/$as_me: WARNING:     /" >&2
14053     ;;
14054 esac
14055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14058   echo $ECHO_N "(cached) $ECHO_C" >&6
14059 else
14060   eval "$as_ac_Header=\$ac_header_preproc"
14061 fi
14062 ac_res=`eval echo '${'$as_ac_Header'}'`
14063                { echo "$as_me:$LINENO: result: $ac_res" >&5
14064 echo "${ECHO_T}$ac_res" >&6; }
14065
14066 fi
14067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14068   cat >>confdefs.h <<_ACEOF
14069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14070 _ACEOF
14071
14072 fi
14073
14074 done
14075
14076 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
14077 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
14078 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
14079   echo $ECHO_N "(cached) $ECHO_C" >&6
14080 else
14081   if test "$cross_compiling" = yes; then
14082   ac_cv_func_malloc_0_nonnull=no
14083 else
14084   cat >conftest.$ac_ext <<_ACEOF
14085 /* confdefs.h.  */
14086 _ACEOF
14087 cat confdefs.h >>conftest.$ac_ext
14088 cat >>conftest.$ac_ext <<_ACEOF
14089 /* end confdefs.h.  */
14090 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
14091 # include <stdlib.h>
14092 #else
14093 char *malloc ();
14094 #endif
14095
14096 int
14097 main ()
14098 {
14099 return ! malloc (0);
14100   ;
14101   return 0;
14102 }
14103 _ACEOF
14104 rm -f conftest$ac_exeext
14105 if { (ac_try="$ac_link"
14106 case "(($ac_try" in
14107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14108   *) ac_try_echo=$ac_try;;
14109 esac
14110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14111   (eval "$ac_link") 2>&5
14112   ac_status=$?
14113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14115   { (case "(($ac_try" in
14116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117   *) ac_try_echo=$ac_try;;
14118 esac
14119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14120   (eval "$ac_try") 2>&5
14121   ac_status=$?
14122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123   (exit $ac_status); }; }; then
14124   ac_cv_func_malloc_0_nonnull=yes
14125 else
14126   echo "$as_me: program exited with status $ac_status" >&5
14127 echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.$ac_ext >&5
14129
14130 ( exit $ac_status )
14131 ac_cv_func_malloc_0_nonnull=no
14132 fi
14133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14134 fi
14135
14136
14137 fi
14138 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
14139 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
14140 if test $ac_cv_func_malloc_0_nonnull = yes; then
14141   gl_cv_func_malloc_0_nonnull=1
14142 else
14143   gl_cv_func_malloc_0_nonnull=0
14144 fi
14145
14146
14147
14148 cat >>confdefs.h <<_ACEOF
14149 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
14150 _ACEOF
14151
14152
14153
14154     { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
14155 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
14156 if test "${gl_cv_func_mbrtowc+set}" = set; then
14157   echo $ECHO_N "(cached) $ECHO_C" >&6
14158 else
14159   cat >conftest.$ac_ext <<_ACEOF
14160 /* confdefs.h.  */
14161 _ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h.  */
14165 #include <wchar.h>
14166 int
14167 main ()
14168 {
14169 wchar_t wc;
14170               char const s[] = "";
14171               size_t n = 1;
14172               mbstate_t state;
14173               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
14174   ;
14175   return 0;
14176 }
14177 _ACEOF
14178 rm -f conftest.$ac_objext conftest$ac_exeext
14179 if { (ac_try="$ac_link"
14180 case "(($ac_try" in
14181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182   *) ac_try_echo=$ac_try;;
14183 esac
14184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14185   (eval "$ac_link") 2>conftest.er1
14186   ac_status=$?
14187   grep -v '^ *+' conftest.er1 >conftest.err
14188   rm -f conftest.er1
14189   cat conftest.err >&5
14190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191   (exit $ac_status); } && {
14192          test -z "$ac_c_werror_flag" ||
14193          test ! -s conftest.err
14194        } && test -s conftest$ac_exeext &&
14195        $as_test_x conftest$ac_exeext; then
14196   gl_cv_func_mbrtowc=yes
14197 else
14198   echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14200
14201         gl_cv_func_mbrtowc=no
14202 fi
14203
14204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14205       conftest$ac_exeext conftest.$ac_ext
14206 fi
14207 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
14208 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; }
14209   if test $gl_cv_func_mbrtowc = yes; then
14210
14211 cat >>confdefs.h <<\_ACEOF
14212 #define HAVE_MBRTOWC 1
14213 _ACEOF
14214
14215   fi
14216
14217
14218   GNULIB_MEMMEM=0;
14219   GNULIB_MEMPCPY=0;
14220   GNULIB_MEMRCHR=0;
14221   GNULIB_STPCPY=0;
14222   GNULIB_STPNCPY=0;
14223   GNULIB_STRCHRNUL=0;
14224   GNULIB_STRDUP=0;
14225   GNULIB_STRNDUP=0;
14226   GNULIB_STRNLEN=0;
14227   GNULIB_STRPBRK=0;
14228   GNULIB_STRSEP=0;
14229   GNULIB_STRSTR=0;
14230   GNULIB_STRCASESTR=0;
14231   GNULIB_STRTOK_R=0;
14232   GNULIB_MBSLEN=0;
14233   GNULIB_MBSNLEN=0;
14234   GNULIB_MBSCHR=0;
14235   GNULIB_MBSRCHR=0;
14236   GNULIB_MBSSTR=0;
14237   GNULIB_MBSCASECMP=0;
14238   GNULIB_MBSNCASECMP=0;
14239   GNULIB_MBSPCASECMP=0;
14240   GNULIB_MBSCASESTR=0;
14241   GNULIB_MBSCSPN=0;
14242   GNULIB_MBSPBRK=0;
14243   GNULIB_MBSSPN=0;
14244   GNULIB_MBSSEP=0;
14245   GNULIB_MBSTOK_R=0;
14246   GNULIB_STRERROR=0;
14247   GNULIB_STRSIGNAL=0;
14248     HAVE_DECL_MEMMEM=1;
14249   HAVE_MEMPCPY=1;
14250   HAVE_DECL_MEMRCHR=1;
14251   HAVE_STPCPY=1;
14252   HAVE_STPNCPY=1;
14253   HAVE_STRCHRNUL=1;
14254   HAVE_DECL_STRDUP=1;
14255   HAVE_STRNDUP=1;
14256   HAVE_DECL_STRNDUP=1;
14257   HAVE_DECL_STRNLEN=1;
14258   HAVE_STRPBRK=1;
14259   HAVE_STRSEP=1;
14260   HAVE_STRCASESTR=1;
14261   HAVE_DECL_STRTOK_R=1;
14262   HAVE_DECL_STRERROR=1;
14263   HAVE_DECL_STRSIGNAL=1;
14264   REPLACE_STRERROR=0;
14265   REPLACE_STRSIGNAL=0;
14266   REPLACE_MEMMEM=0;
14267   REPLACE_STRCASESTR=0;
14268   REPLACE_STRSTR=0;
14269
14270 { echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
14271 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6; }
14272 if test "${ac_cv_have_decl_memrchr+set}" = set; then
14273   echo $ECHO_N "(cached) $ECHO_C" >&6
14274 else
14275   cat >conftest.$ac_ext <<_ACEOF
14276 /* confdefs.h.  */
14277 _ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h.  */
14281 $ac_includes_default
14282 int
14283 main ()
14284 {
14285 #ifndef memrchr
14286   (void) memrchr;
14287 #endif
14288
14289   ;
14290   return 0;
14291 }
14292 _ACEOF
14293 rm -f conftest.$ac_objext
14294 if { (ac_try="$ac_compile"
14295 case "(($ac_try" in
14296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297   *) ac_try_echo=$ac_try;;
14298 esac
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300   (eval "$ac_compile") 2>conftest.er1
14301   ac_status=$?
14302   grep -v '^ *+' conftest.er1 >conftest.err
14303   rm -f conftest.er1
14304   cat conftest.err >&5
14305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306   (exit $ac_status); } && {
14307          test -z "$ac_c_werror_flag" ||
14308          test ! -s conftest.err
14309        } && test -s conftest.$ac_objext; then
14310   ac_cv_have_decl_memrchr=yes
14311 else
14312   echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.$ac_ext >&5
14314
14315         ac_cv_have_decl_memrchr=no
14316 fi
14317
14318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14319 fi
14320 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
14321 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6; }
14322 if test $ac_cv_have_decl_memrchr = yes; then
14323
14324 cat >>confdefs.h <<_ACEOF
14325 #define HAVE_DECL_MEMRCHR 1
14326 _ACEOF
14327
14328
14329 else
14330   cat >>confdefs.h <<_ACEOF
14331 #define HAVE_DECL_MEMRCHR 0
14332 _ACEOF
14333
14334
14335 fi
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14357 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
14358 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14359   echo $ECHO_N "(cached) $ECHO_C" >&6
14360 else
14361   cat >conftest.$ac_ext <<_ACEOF
14362 /* confdefs.h.  */
14363 _ACEOF
14364 cat confdefs.h >>conftest.$ac_ext
14365 cat >>conftest.$ac_ext <<_ACEOF
14366 /* end confdefs.h.  */
14367 $ac_includes_default
14368 int
14369 main ()
14370 {
14371 #ifndef snprintf
14372   (void) snprintf;
14373 #endif
14374
14375   ;
14376   return 0;
14377 }
14378 _ACEOF
14379 rm -f conftest.$ac_objext
14380 if { (ac_try="$ac_compile"
14381 case "(($ac_try" in
14382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383   *) ac_try_echo=$ac_try;;
14384 esac
14385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14386   (eval "$ac_compile") 2>conftest.er1
14387   ac_status=$?
14388   grep -v '^ *+' conftest.er1 >conftest.err
14389   rm -f conftest.er1
14390   cat conftest.err >&5
14391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392   (exit $ac_status); } && {
14393          test -z "$ac_c_werror_flag" ||
14394          test ! -s conftest.err
14395        } && test -s conftest.$ac_objext; then
14396   ac_cv_have_decl_snprintf=yes
14397 else
14398   echo "$as_me: failed program was:" >&5
14399 sed 's/^/| /' conftest.$ac_ext >&5
14400
14401         ac_cv_have_decl_snprintf=no
14402 fi
14403
14404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14405 fi
14406 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14407 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
14408 if test $ac_cv_have_decl_snprintf = yes; then
14409
14410 cat >>confdefs.h <<_ACEOF
14411 #define HAVE_DECL_SNPRINTF 1
14412 _ACEOF
14413
14414
14415 else
14416   cat >>confdefs.h <<_ACEOF
14417 #define HAVE_DECL_SNPRINTF 0
14418 _ACEOF
14419
14420
14421 fi
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431     HAVE_STRCASECMP=1;
14432   HAVE_DECL_STRNCASECMP=1;
14433
14434 { echo "$as_me:$LINENO: checking whether strdup is declared" >&5
14435 echo $ECHO_N "checking whether strdup is declared... $ECHO_C" >&6; }
14436 if test "${ac_cv_have_decl_strdup+set}" = set; then
14437   echo $ECHO_N "(cached) $ECHO_C" >&6
14438 else
14439   cat >conftest.$ac_ext <<_ACEOF
14440 /* confdefs.h.  */
14441 _ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h.  */
14445 $ac_includes_default
14446 int
14447 main ()
14448 {
14449 #ifndef strdup
14450   (void) strdup;
14451 #endif
14452
14453   ;
14454   return 0;
14455 }
14456 _ACEOF
14457 rm -f conftest.$ac_objext
14458 if { (ac_try="$ac_compile"
14459 case "(($ac_try" in
14460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14461   *) ac_try_echo=$ac_try;;
14462 esac
14463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14464   (eval "$ac_compile") 2>conftest.er1
14465   ac_status=$?
14466   grep -v '^ *+' conftest.er1 >conftest.err
14467   rm -f conftest.er1
14468   cat conftest.err >&5
14469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470   (exit $ac_status); } && {
14471          test -z "$ac_c_werror_flag" ||
14472          test ! -s conftest.err
14473        } && test -s conftest.$ac_objext; then
14474   ac_cv_have_decl_strdup=yes
14475 else
14476   echo "$as_me: failed program was:" >&5
14477 sed 's/^/| /' conftest.$ac_ext >&5
14478
14479         ac_cv_have_decl_strdup=no
14480 fi
14481
14482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14483 fi
14484 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
14485 echo "${ECHO_T}$ac_cv_have_decl_strdup" >&6; }
14486 if test $ac_cv_have_decl_strdup = yes; then
14487
14488 cat >>confdefs.h <<_ACEOF
14489 #define HAVE_DECL_STRDUP 1
14490 _ACEOF
14491
14492
14493 else
14494   cat >>confdefs.h <<_ACEOF
14495 #define HAVE_DECL_STRDUP 0
14496 _ACEOF
14497
14498
14499 fi
14500
14501
14502
14503
14504   { echo "$as_me:$LINENO: checking for working strerror function" >&5
14505 echo $ECHO_N "checking for working strerror function... $ECHO_C" >&6; }
14506 if test "${gl_cv_func_working_strerror+set}" = set; then
14507   echo $ECHO_N "(cached) $ECHO_C" >&6
14508 else
14509   if test "$cross_compiling" = yes; then
14510          cat >conftest.$ac_ext <<_ACEOF
14511 /* confdefs.h.  */
14512 _ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h.  */
14516 #include <string.h>
14517
14518 int
14519 main ()
14520 {
14521 return !*strerror (-2);
14522   ;
14523   return 0;
14524 }
14525 _ACEOF
14526 rm -f conftest.$ac_objext
14527 if { (ac_try="$ac_compile"
14528 case "(($ac_try" in
14529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14530   *) ac_try_echo=$ac_try;;
14531 esac
14532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14533   (eval "$ac_compile") 2>conftest.er1
14534   ac_status=$?
14535   grep -v '^ *+' conftest.er1 >conftest.err
14536   rm -f conftest.er1
14537   cat conftest.err >&5
14538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539   (exit $ac_status); } && {
14540          test -z "$ac_c_werror_flag" ||
14541          test ! -s conftest.err
14542        } && test -s conftest.$ac_objext; then
14543   gl_cv_func_working_strerror=yes
14544 else
14545   echo "$as_me: failed program was:" >&5
14546 sed 's/^/| /' conftest.$ac_ext >&5
14547
14548         gl_cv_func_working_strerror=no
14549 fi
14550
14551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14552 else
14553   cat >conftest.$ac_ext <<_ACEOF
14554 /* confdefs.h.  */
14555 _ACEOF
14556 cat confdefs.h >>conftest.$ac_ext
14557 cat >>conftest.$ac_ext <<_ACEOF
14558 /* end confdefs.h.  */
14559 #include <string.h>
14560
14561 int
14562 main ()
14563 {
14564 return !*strerror (-2);
14565   ;
14566   return 0;
14567 }
14568 _ACEOF
14569 rm -f conftest$ac_exeext
14570 if { (ac_try="$ac_link"
14571 case "(($ac_try" in
14572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573   *) ac_try_echo=$ac_try;;
14574 esac
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576   (eval "$ac_link") 2>&5
14577   ac_status=$?
14578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14580   { (case "(($ac_try" in
14581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582   *) ac_try_echo=$ac_try;;
14583 esac
14584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585   (eval "$ac_try") 2>&5
14586   ac_status=$?
14587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588   (exit $ac_status); }; }; then
14589   gl_cv_func_working_strerror=yes
14590 else
14591   echo "$as_me: program exited with status $ac_status" >&5
14592 echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14594
14595 ( exit $ac_status )
14596 gl_cv_func_working_strerror=no
14597 fi
14598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14599 fi
14600
14601
14602 fi
14603 { echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5
14604 echo "${ECHO_T}$gl_cv_func_working_strerror" >&6; }
14605   if test $gl_cv_func_working_strerror = no ; then
14606     REPLACE_STRERROR=1
14607
14608   { echo "$as_me:$LINENO: checking whether strerror is declared" >&5
14609 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6; }
14610 if test "${ac_cv_have_decl_strerror+set}" = set; then
14611   echo $ECHO_N "(cached) $ECHO_C" >&6
14612 else
14613   cat >conftest.$ac_ext <<_ACEOF
14614 /* confdefs.h.  */
14615 _ACEOF
14616 cat confdefs.h >>conftest.$ac_ext
14617 cat >>conftest.$ac_ext <<_ACEOF
14618 /* end confdefs.h.  */
14619 $ac_includes_default
14620 int
14621 main ()
14622 {
14623 #ifndef strerror
14624   (void) strerror;
14625 #endif
14626
14627   ;
14628   return 0;
14629 }
14630 _ACEOF
14631 rm -f conftest.$ac_objext
14632 if { (ac_try="$ac_compile"
14633 case "(($ac_try" in
14634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635   *) ac_try_echo=$ac_try;;
14636 esac
14637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638   (eval "$ac_compile") 2>conftest.er1
14639   ac_status=$?
14640   grep -v '^ *+' conftest.er1 >conftest.err
14641   rm -f conftest.er1
14642   cat conftest.err >&5
14643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644   (exit $ac_status); } && {
14645          test -z "$ac_c_werror_flag" ||
14646          test ! -s conftest.err
14647        } && test -s conftest.$ac_objext; then
14648   ac_cv_have_decl_strerror=yes
14649 else
14650   echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.$ac_ext >&5
14652
14653         ac_cv_have_decl_strerror=no
14654 fi
14655
14656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14657 fi
14658 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
14659 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6; }
14660 if test $ac_cv_have_decl_strerror = yes; then
14661
14662 cat >>confdefs.h <<_ACEOF
14663 #define HAVE_DECL_STRERROR 1
14664 _ACEOF
14665
14666
14667 else
14668   cat >>confdefs.h <<_ACEOF
14669 #define HAVE_DECL_STRERROR 0
14670 _ACEOF
14671
14672
14673 fi
14674
14675
14676
14677   fi
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692      if test $gl_cv_have_include_next = yes; then
14693        gl_cv_next_string_h='<'string.h'>'
14694      else
14695        { echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
14696 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6; }
14697 if test "${gl_cv_next_string_h+set}" = set; then
14698   echo $ECHO_N "(cached) $ECHO_C" >&6
14699 else
14700
14701           if test $ac_cv_header_string_h = yes; then
14702             cat >conftest.$ac_ext <<_ACEOF
14703 /* confdefs.h.  */
14704 _ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h.  */
14708 #include <string.h>
14709
14710 _ACEOF
14711                                     gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14712                sed -n '\#/string.h#{
14713                  s#.*"\(.*/string.h\)".*#\1#
14714                  s#^/[^/]#//&#
14715                  p
14716                  q
14717                }'`'"'
14718           else
14719             gl_cv_next_string_h='<'string.h'>'
14720           fi
14721
14722 fi
14723 { echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
14724 echo "${ECHO_T}$gl_cv_next_string_h" >&6; }
14725      fi
14726      NEXT_STRING_H=$gl_cv_next_string_h
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745      if test $gl_cv_have_include_next = yes; then
14746        gl_cv_next_strings_h='<'strings.h'>'
14747      else
14748        { echo "$as_me:$LINENO: checking absolute name of <strings.h>" >&5
14749 echo $ECHO_N "checking absolute name of <strings.h>... $ECHO_C" >&6; }
14750 if test "${gl_cv_next_strings_h+set}" = set; then
14751   echo $ECHO_N "(cached) $ECHO_C" >&6
14752 else
14753
14754           if test $ac_cv_header_strings_h = yes; then
14755             cat >conftest.$ac_ext <<_ACEOF
14756 /* confdefs.h.  */
14757 _ACEOF
14758 cat confdefs.h >>conftest.$ac_ext
14759 cat >>conftest.$ac_ext <<_ACEOF
14760 /* end confdefs.h.  */
14761 #include <strings.h>
14762
14763 _ACEOF
14764                                     gl_cv_next_strings_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14765                sed -n '\#/strings.h#{
14766                  s#.*"\(.*/strings.h\)".*#\1#
14767                  s#^/[^/]#//&#
14768                  p
14769                  q
14770                }'`'"'
14771           else
14772             gl_cv_next_strings_h='<'strings.h'>'
14773           fi
14774
14775 fi
14776 { echo "$as_me:$LINENO: result: $gl_cv_next_strings_h" >&5
14777 echo "${ECHO_T}$gl_cv_next_strings_h" >&6; }
14778      fi
14779      NEXT_STRINGS_H=$gl_cv_next_strings_h
14780
14781
14782
14783
14784 { echo "$as_me:$LINENO: checking whether strndup is declared" >&5
14785 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6; }
14786 if test "${ac_cv_have_decl_strndup+set}" = set; then
14787   echo $ECHO_N "(cached) $ECHO_C" >&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 $ac_includes_default
14796 int
14797 main ()
14798 {
14799 #ifndef strndup
14800   (void) strndup;
14801 #endif
14802
14803   ;
14804   return 0;
14805 }
14806 _ACEOF
14807 rm -f conftest.$ac_objext
14808 if { (ac_try="$ac_compile"
14809 case "(($ac_try" in
14810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14811   *) ac_try_echo=$ac_try;;
14812 esac
14813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14814   (eval "$ac_compile") 2>conftest.er1
14815   ac_status=$?
14816   grep -v '^ *+' conftest.er1 >conftest.err
14817   rm -f conftest.er1
14818   cat conftest.err >&5
14819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820   (exit $ac_status); } && {
14821          test -z "$ac_c_werror_flag" ||
14822          test ! -s conftest.err
14823        } && test -s conftest.$ac_objext; then
14824   ac_cv_have_decl_strndup=yes
14825 else
14826   echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14828
14829         ac_cv_have_decl_strndup=no
14830 fi
14831
14832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14833 fi
14834 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
14835 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6; }
14836 if test $ac_cv_have_decl_strndup = yes; then
14837
14838 cat >>confdefs.h <<_ACEOF
14839 #define HAVE_DECL_STRNDUP 1
14840 _ACEOF
14841
14842
14843 else
14844   cat >>confdefs.h <<_ACEOF
14845 #define HAVE_DECL_STRNDUP 0
14846 _ACEOF
14847
14848
14849 fi
14850
14851
14852 { echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
14853 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6; }
14854 if test "${ac_cv_have_decl_strnlen+set}" = set; then
14855   echo $ECHO_N "(cached) $ECHO_C" >&6
14856 else
14857   cat >conftest.$ac_ext <<_ACEOF
14858 /* confdefs.h.  */
14859 _ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h.  */
14863 $ac_includes_default
14864 int
14865 main ()
14866 {
14867 #ifndef strnlen
14868   (void) strnlen;
14869 #endif
14870
14871   ;
14872   return 0;
14873 }
14874 _ACEOF
14875 rm -f conftest.$ac_objext
14876 if { (ac_try="$ac_compile"
14877 case "(($ac_try" in
14878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14879   *) ac_try_echo=$ac_try;;
14880 esac
14881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14882   (eval "$ac_compile") 2>conftest.er1
14883   ac_status=$?
14884   grep -v '^ *+' conftest.er1 >conftest.err
14885   rm -f conftest.er1
14886   cat conftest.err >&5
14887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888   (exit $ac_status); } && {
14889          test -z "$ac_c_werror_flag" ||
14890          test ! -s conftest.err
14891        } && test -s conftest.$ac_objext; then
14892   ac_cv_have_decl_strnlen=yes
14893 else
14894   echo "$as_me: failed program was:" >&5
14895 sed 's/^/| /' conftest.$ac_ext >&5
14896
14897         ac_cv_have_decl_strnlen=no
14898 fi
14899
14900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14901 fi
14902 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
14903 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6; }
14904 if test $ac_cv_have_decl_strnlen = yes; then
14905
14906 cat >>confdefs.h <<_ACEOF
14907 #define HAVE_DECL_STRNLEN 1
14908 _ACEOF
14909
14910
14911 else
14912   cat >>confdefs.h <<_ACEOF
14913 #define HAVE_DECL_STRNLEN 0
14914 _ACEOF
14915
14916
14917 fi
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14928   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14929   REPLACE_STRPTIME=GNULIB_PORTCHECK;
14930   REPLACE_TIMEGM=GNULIB_PORTCHECK;
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941   { echo "$as_me:$LINENO: checking for struct timespec in <time.h>" >&5
14942 echo $ECHO_N "checking for struct timespec in <time.h>... $ECHO_C" >&6; }
14943 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then
14944   echo $ECHO_N "(cached) $ECHO_C" >&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 #include <time.h>
14953
14954 int
14955 main ()
14956 {
14957 static struct timespec x; x.tv_sec = x.tv_nsec;
14958   ;
14959   return 0;
14960 }
14961 _ACEOF
14962 rm -f conftest.$ac_objext
14963 if { (ac_try="$ac_compile"
14964 case "(($ac_try" in
14965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14966   *) ac_try_echo=$ac_try;;
14967 esac
14968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14969   (eval "$ac_compile") 2>conftest.er1
14970   ac_status=$?
14971   grep -v '^ *+' conftest.er1 >conftest.err
14972   rm -f conftest.er1
14973   cat conftest.err >&5
14974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975   (exit $ac_status); } && {
14976          test -z "$ac_c_werror_flag" ||
14977          test ! -s conftest.err
14978        } && test -s conftest.$ac_objext; then
14979   gl_cv_sys_struct_timespec_in_time_h=yes
14980 else
14981   echo "$as_me: failed program was:" >&5
14982 sed 's/^/| /' conftest.$ac_ext >&5
14983
14984         gl_cv_sys_struct_timespec_in_time_h=no
14985 fi
14986
14987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14988 fi
14989 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14990 echo "${ECHO_T}$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14991
14992   TIME_H_DEFINES_STRUCT_TIMESPEC=0
14993   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14994   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14995     TIME_H_DEFINES_STRUCT_TIMESPEC=1
14996   else
14997     { echo "$as_me:$LINENO: checking for struct timespec in <sys/time.h>" >&5
14998 echo $ECHO_N "checking for struct timespec in <sys/time.h>... $ECHO_C" >&6; }
14999 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then
15000   echo $ECHO_N "(cached) $ECHO_C" >&6
15001 else
15002   cat >conftest.$ac_ext <<_ACEOF
15003 /* confdefs.h.  */
15004 _ACEOF
15005 cat confdefs.h >>conftest.$ac_ext
15006 cat >>conftest.$ac_ext <<_ACEOF
15007 /* end confdefs.h.  */
15008 #include <sys/time.h>
15009
15010 int
15011 main ()
15012 {
15013 static struct timespec x; x.tv_sec = x.tv_nsec;
15014   ;
15015   return 0;
15016 }
15017 _ACEOF
15018 rm -f conftest.$ac_objext
15019 if { (ac_try="$ac_compile"
15020 case "(($ac_try" in
15021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15022   *) ac_try_echo=$ac_try;;
15023 esac
15024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15025   (eval "$ac_compile") 2>conftest.er1
15026   ac_status=$?
15027   grep -v '^ *+' conftest.er1 >conftest.err
15028   rm -f conftest.er1
15029   cat conftest.err >&5
15030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031   (exit $ac_status); } && {
15032          test -z "$ac_c_werror_flag" ||
15033          test ! -s conftest.err
15034        } && test -s conftest.$ac_objext; then
15035   gl_cv_sys_struct_timespec_in_sys_time_h=yes
15036 else
15037   echo "$as_me: failed program was:" >&5
15038 sed 's/^/| /' conftest.$ac_ext >&5
15039
15040         gl_cv_sys_struct_timespec_in_sys_time_h=no
15041 fi
15042
15043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15044 fi
15045 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15046 echo "${ECHO_T}$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15047     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15048       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
15049     fi
15050   fi
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067      if test $gl_cv_have_include_next = yes; then
15068        gl_cv_next_time_h='<'time.h'>'
15069      else
15070        { echo "$as_me:$LINENO: checking absolute name of <time.h>" >&5
15071 echo $ECHO_N "checking absolute name of <time.h>... $ECHO_C" >&6; }
15072 if test "${gl_cv_next_time_h+set}" = set; then
15073   echo $ECHO_N "(cached) $ECHO_C" >&6
15074 else
15075
15076           if test $ac_cv_header_time_h = yes; then
15077             cat >conftest.$ac_ext <<_ACEOF
15078 /* confdefs.h.  */
15079 _ACEOF
15080 cat confdefs.h >>conftest.$ac_ext
15081 cat >>conftest.$ac_ext <<_ACEOF
15082 /* end confdefs.h.  */
15083 #include <time.h>
15084
15085 _ACEOF
15086                                     gl_cv_next_time_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15087                sed -n '\#/time.h#{
15088                  s#.*"\(.*/time.h\)".*#\1#
15089                  s#^/[^/]#//&#
15090                  p
15091                  q
15092                }'`'"'
15093           else
15094             gl_cv_next_time_h='<'time.h'>'
15095           fi
15096
15097 fi
15098 { echo "$as_me:$LINENO: result: $gl_cv_next_time_h" >&5
15099 echo "${ECHO_T}$gl_cv_next_time_h" >&6; }
15100      fi
15101      NEXT_TIME_H=$gl_cv_next_time_h
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
15120 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
15121 if test "${ac_cv_func_utime_null+set}" = set; then
15122   echo $ECHO_N "(cached) $ECHO_C" >&6
15123 else
15124   rm -f conftest.data; >conftest.data
15125 # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
15126 if test "$cross_compiling" = yes; then
15127   ac_cv_func_utime_null=no
15128 else
15129   cat >conftest.$ac_ext <<_ACEOF
15130 /* confdefs.h.  */
15131 _ACEOF
15132 cat confdefs.h >>conftest.$ac_ext
15133 cat >>conftest.$ac_ext <<_ACEOF
15134 /* end confdefs.h.  */
15135 $ac_includes_default
15136                #ifdef HAVE_UTIME_H
15137                # include <utime.h>
15138                #endif
15139 int
15140 main ()
15141 {
15142 struct stat s, t;
15143   return ! (stat ("conftest.data", &s) == 0
15144             && utime ("conftest.data", 0) == 0
15145             && stat ("conftest.data", &t) == 0
15146             && t.st_mtime >= s.st_mtime
15147             && t.st_mtime - s.st_mtime < 120);
15148   ;
15149   return 0;
15150 }
15151 _ACEOF
15152 rm -f conftest$ac_exeext
15153 if { (ac_try="$ac_link"
15154 case "(($ac_try" in
15155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15156   *) ac_try_echo=$ac_try;;
15157 esac
15158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15159   (eval "$ac_link") 2>&5
15160   ac_status=$?
15161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15163   { (case "(($ac_try" in
15164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15165   *) ac_try_echo=$ac_try;;
15166 esac
15167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15168   (eval "$ac_try") 2>&5
15169   ac_status=$?
15170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171   (exit $ac_status); }; }; then
15172   ac_cv_func_utime_null=yes
15173 else
15174   echo "$as_me: program exited with status $ac_status" >&5
15175 echo "$as_me: failed program was:" >&5
15176 sed 's/^/| /' conftest.$ac_ext >&5
15177
15178 ( exit $ac_status )
15179 ac_cv_func_utime_null=no
15180 fi
15181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15182 fi
15183
15184
15185 fi
15186 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
15187 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
15188 if test $ac_cv_func_utime_null = yes; then
15189
15190 cat >>confdefs.h <<\_ACEOF
15191 #define HAVE_UTIME_NULL 1
15192 _ACEOF
15193
15194 fi
15195 rm -f conftest.data
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206   { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
15207 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
15208 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then
15209   echo $ECHO_N "(cached) $ECHO_C" >&6
15210 else
15211   cat >conftest.$ac_ext <<_ACEOF
15212 /* confdefs.h.  */
15213 _ACEOF
15214 cat confdefs.h >>conftest.$ac_ext
15215 cat >>conftest.$ac_ext <<_ACEOF
15216 /* end confdefs.h.  */
15217 #if HAVE_SYS_TIME_H
15218              #include <sys/time.h>
15219             #endif
15220             #include <time.h>
15221             #ifdef HAVE_UTIME_H
15222              #include <utime.h>
15223             #endif
15224
15225 int
15226 main ()
15227 {
15228 static struct utimbuf x; x.actime = x.modtime;
15229   ;
15230   return 0;
15231 }
15232 _ACEOF
15233 rm -f conftest.$ac_objext
15234 if { (ac_try="$ac_compile"
15235 case "(($ac_try" in
15236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237   *) ac_try_echo=$ac_try;;
15238 esac
15239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15240   (eval "$ac_compile") 2>conftest.er1
15241   ac_status=$?
15242   grep -v '^ *+' conftest.er1 >conftest.err
15243   rm -f conftest.er1
15244   cat conftest.err >&5
15245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246   (exit $ac_status); } && {
15247          test -z "$ac_c_werror_flag" ||
15248          test ! -s conftest.err
15249        } && test -s conftest.$ac_objext; then
15250   gl_cv_sys_struct_utimbuf=yes
15251 else
15252   echo "$as_me: failed program was:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15254
15255         gl_cv_sys_struct_utimbuf=no
15256 fi
15257
15258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15259 fi
15260 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_utimbuf" >&5
15261 echo "${ECHO_T}$gl_cv_sys_struct_utimbuf" >&6; }
15262
15263   if test $gl_cv_sys_struct_utimbuf = yes; then
15264
15265 cat >>confdefs.h <<\_ACEOF
15266 #define HAVE_STRUCT_UTIMBUF 1
15267 _ACEOF
15268
15269   fi
15270
15271
15272   { echo "$as_me:$LINENO: checking determine whether the utimes function works" >&5
15273 echo $ECHO_N "checking determine whether the utimes function works... $ECHO_C" >&6; }
15274 if test "${gl_cv_func_working_utimes+set}" = set; then
15275   echo $ECHO_N "(cached) $ECHO_C" >&6
15276 else
15277
15278   if test "$cross_compiling" = yes; then
15279   gl_cv_func_working_utimes=no
15280 else
15281   cat >conftest.$ac_ext <<_ACEOF
15282 /* confdefs.h.  */
15283 _ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h.  */
15287
15288 #include <sys/types.h>
15289 #include <sys/stat.h>
15290 #include <fcntl.h>
15291 #include <sys/time.h>
15292 #include <time.h>
15293 #include <unistd.h>
15294 #include <stdlib.h>
15295 #include <stdio.h>
15296 #include <utime.h>
15297
15298 int
15299 main ()
15300 {
15301   static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
15302   struct stat sbuf;
15303   char const *file = "conftest.utimes";
15304   FILE *f;
15305   time_t now;
15306   int fd;
15307
15308   int ok = ((f = fopen (file, "w"))
15309             && fclose (f) == 0
15310             && utimes (file, timeval) == 0
15311             && lstat (file, &sbuf) == 0
15312             && sbuf.st_atime == timeval[0].tv_sec
15313             && sbuf.st_mtime == timeval[1].tv_sec);
15314   unlink (file);
15315   if (!ok)
15316     exit (1);
15317
15318   ok =
15319     ((f = fopen (file, "w"))
15320      && fclose (f) == 0
15321      && time (&now) != (time_t)-1
15322      && utimes (file, NULL) == 0
15323      && lstat (file, &sbuf) == 0
15324      && now - sbuf.st_atime <= 2
15325      && now - sbuf.st_mtime <= 2);
15326   unlink (file);
15327   if (!ok)
15328     exit (1);
15329
15330   ok = (0 <= (fd = open (file, O_WRONLY|O_CREAT, 0444))
15331               && close (fd) == 0
15332               && utimes (file, NULL) == 0);
15333   unlink (file);
15334
15335   exit (!ok);
15336 }
15337
15338 _ACEOF
15339 rm -f conftest$ac_exeext
15340 if { (ac_try="$ac_link"
15341 case "(($ac_try" in
15342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15343   *) ac_try_echo=$ac_try;;
15344 esac
15345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15346   (eval "$ac_link") 2>&5
15347   ac_status=$?
15348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15350   { (case "(($ac_try" in
15351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352   *) ac_try_echo=$ac_try;;
15353 esac
15354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355   (eval "$ac_try") 2>&5
15356   ac_status=$?
15357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358   (exit $ac_status); }; }; then
15359   gl_cv_func_working_utimes=yes
15360 else
15361   echo "$as_me: program exited with status $ac_status" >&5
15362 echo "$as_me: failed program was:" >&5
15363 sed 's/^/| /' conftest.$ac_ext >&5
15364
15365 ( exit $ac_status )
15366 gl_cv_func_working_utimes=no
15367 fi
15368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15369 fi
15370
15371
15372 fi
15373 { echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
15374 echo "${ECHO_T}$gl_cv_func_working_utimes" >&6; }
15375
15376   if test $gl_cv_func_working_utimes = yes; then
15377
15378 cat >>confdefs.h <<\_ACEOF
15379 #define HAVE_WORKING_UTIMES 1
15380 _ACEOF
15381
15382   fi
15383
15384
15385
15386
15387
15388
15389
15390
15391   { echo "$as_me:$LINENO: checking for wchar_t" >&5
15392 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
15393 if test "${gt_cv_c_wchar_t+set}" = set; then
15394   echo $ECHO_N "(cached) $ECHO_C" >&6
15395 else
15396   cat >conftest.$ac_ext <<_ACEOF
15397 /* confdefs.h.  */
15398 _ACEOF
15399 cat confdefs.h >>conftest.$ac_ext
15400 cat >>conftest.$ac_ext <<_ACEOF
15401 /* end confdefs.h.  */
15402 #include <stddef.h>
15403        wchar_t foo = (wchar_t)'\0';
15404 int
15405 main ()
15406 {
15407
15408   ;
15409   return 0;
15410 }
15411 _ACEOF
15412 rm -f conftest.$ac_objext
15413 if { (ac_try="$ac_compile"
15414 case "(($ac_try" in
15415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416   *) ac_try_echo=$ac_try;;
15417 esac
15418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419   (eval "$ac_compile") 2>conftest.er1
15420   ac_status=$?
15421   grep -v '^ *+' conftest.er1 >conftest.err
15422   rm -f conftest.er1
15423   cat conftest.err >&5
15424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425   (exit $ac_status); } && {
15426          test -z "$ac_c_werror_flag" ||
15427          test ! -s conftest.err
15428        } && test -s conftest.$ac_objext; then
15429   gt_cv_c_wchar_t=yes
15430 else
15431   echo "$as_me: failed program was:" >&5
15432 sed 's/^/| /' conftest.$ac_ext >&5
15433
15434         gt_cv_c_wchar_t=no
15435 fi
15436
15437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15438 fi
15439 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
15440 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
15441   if test $gt_cv_c_wchar_t = yes; then
15442
15443 cat >>confdefs.h <<\_ACEOF
15444 #define HAVE_WCHAR_T 1
15445 _ACEOF
15446
15447   fi
15448
15449
15450   { echo "$as_me:$LINENO: checking for wint_t" >&5
15451 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
15452 if test "${gt_cv_c_wint_t+set}" = set; then
15453   echo $ECHO_N "(cached) $ECHO_C" >&6
15454 else
15455   cat >conftest.$ac_ext <<_ACEOF
15456 /* confdefs.h.  */
15457 _ACEOF
15458 cat confdefs.h >>conftest.$ac_ext
15459 cat >>conftest.$ac_ext <<_ACEOF
15460 /* end confdefs.h.  */
15461
15462 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15463    <wchar.h>.
15464    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
15465    before <wchar.h>.  */
15466 #include <stddef.h>
15467 #include <stdio.h>
15468 #include <time.h>
15469 #include <wchar.h>
15470        wint_t foo = (wchar_t)'\0';
15471 int
15472 main ()
15473 {
15474
15475   ;
15476   return 0;
15477 }
15478 _ACEOF
15479 rm -f conftest.$ac_objext
15480 if { (ac_try="$ac_compile"
15481 case "(($ac_try" in
15482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15483   *) ac_try_echo=$ac_try;;
15484 esac
15485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15486   (eval "$ac_compile") 2>conftest.er1
15487   ac_status=$?
15488   grep -v '^ *+' conftest.er1 >conftest.err
15489   rm -f conftest.er1
15490   cat conftest.err >&5
15491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492   (exit $ac_status); } && {
15493          test -z "$ac_c_werror_flag" ||
15494          test ! -s conftest.err
15495        } && test -s conftest.$ac_objext; then
15496   gt_cv_c_wint_t=yes
15497 else
15498   echo "$as_me: failed program was:" >&5
15499 sed 's/^/| /' conftest.$ac_ext >&5
15500
15501         gt_cv_c_wint_t=no
15502 fi
15503
15504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15505 fi
15506 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
15507 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
15508   if test $gt_cv_c_wint_t = yes; then
15509
15510 cat >>confdefs.h <<\_ACEOF
15511 #define HAVE_WINT_T 1
15512 _ACEOF
15513
15514   fi
15515
15516
15517   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
15518 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
15519 if test "${gl_cv_header_inttypes_h+set}" = set; then
15520   echo $ECHO_N "(cached) $ECHO_C" >&6
15521 else
15522   cat >conftest.$ac_ext <<_ACEOF
15523 /* confdefs.h.  */
15524 _ACEOF
15525 cat confdefs.h >>conftest.$ac_ext
15526 cat >>conftest.$ac_ext <<_ACEOF
15527 /* end confdefs.h.  */
15528 #include <sys/types.h>
15529 #include <inttypes.h>
15530 int
15531 main ()
15532 {
15533 uintmax_t i = (uintmax_t) -1; return !i;
15534   ;
15535   return 0;
15536 }
15537 _ACEOF
15538 rm -f conftest.$ac_objext
15539 if { (ac_try="$ac_compile"
15540 case "(($ac_try" in
15541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15542   *) ac_try_echo=$ac_try;;
15543 esac
15544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15545   (eval "$ac_compile") 2>conftest.er1
15546   ac_status=$?
15547   grep -v '^ *+' conftest.er1 >conftest.err
15548   rm -f conftest.er1
15549   cat conftest.err >&5
15550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551   (exit $ac_status); } && {
15552          test -z "$ac_c_werror_flag" ||
15553          test ! -s conftest.err
15554        } && test -s conftest.$ac_objext; then
15555   gl_cv_header_inttypes_h=yes
15556 else
15557   echo "$as_me: failed program was:" >&5
15558 sed 's/^/| /' conftest.$ac_ext >&5
15559
15560         gl_cv_header_inttypes_h=no
15561 fi
15562
15563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15564 fi
15565 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
15566 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
15567   if test $gl_cv_header_inttypes_h = yes; then
15568
15569 cat >>confdefs.h <<_ACEOF
15570 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15571 _ACEOF
15572
15573   fi
15574
15575
15576   { echo "$as_me:$LINENO: checking for stdint.h" >&5
15577 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
15578 if test "${gl_cv_header_stdint_h+set}" = set; then
15579   echo $ECHO_N "(cached) $ECHO_C" >&6
15580 else
15581   cat >conftest.$ac_ext <<_ACEOF
15582 /* confdefs.h.  */
15583 _ACEOF
15584 cat confdefs.h >>conftest.$ac_ext
15585 cat >>conftest.$ac_ext <<_ACEOF
15586 /* end confdefs.h.  */
15587 #include <sys/types.h>
15588 #include <stdint.h>
15589 int
15590 main ()
15591 {
15592 uintmax_t i = (uintmax_t) -1; return !i;
15593   ;
15594   return 0;
15595 }
15596 _ACEOF
15597 rm -f conftest.$ac_objext
15598 if { (ac_try="$ac_compile"
15599 case "(($ac_try" in
15600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601   *) ac_try_echo=$ac_try;;
15602 esac
15603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15604   (eval "$ac_compile") 2>conftest.er1
15605   ac_status=$?
15606   grep -v '^ *+' conftest.er1 >conftest.err
15607   rm -f conftest.er1
15608   cat conftest.err >&5
15609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610   (exit $ac_status); } && {
15611          test -z "$ac_c_werror_flag" ||
15612          test ! -s conftest.err
15613        } && test -s conftest.$ac_objext; then
15614   gl_cv_header_stdint_h=yes
15615 else
15616   echo "$as_me: failed program was:" >&5
15617 sed 's/^/| /' conftest.$ac_ext >&5
15618
15619         gl_cv_header_stdint_h=no
15620 fi
15621
15622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15623 fi
15624 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
15625 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
15626   if test $gl_cv_header_stdint_h = yes; then
15627
15628 cat >>confdefs.h <<_ACEOF
15629 #define HAVE_STDINT_H_WITH_UINTMAX 1
15630 _ACEOF
15631
15632   fi
15633
15634
15635
15636
15637   { echo "$as_me:$LINENO: checking for intmax_t" >&5
15638 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
15639 if test "${gt_cv_c_intmax_t+set}" = set; then
15640   echo $ECHO_N "(cached) $ECHO_C" >&6
15641 else
15642   cat >conftest.$ac_ext <<_ACEOF
15643 /* confdefs.h.  */
15644 _ACEOF
15645 cat confdefs.h >>conftest.$ac_ext
15646 cat >>conftest.$ac_ext <<_ACEOF
15647 /* end confdefs.h.  */
15648
15649 #include <stddef.h>
15650 #include <stdlib.h>
15651 #if HAVE_STDINT_H_WITH_UINTMAX
15652 #include <stdint.h>
15653 #endif
15654 #if HAVE_INTTYPES_H_WITH_UINTMAX
15655 #include <inttypes.h>
15656 #endif
15657
15658 int
15659 main ()
15660 {
15661 intmax_t x = -1; return !x;
15662   ;
15663   return 0;
15664 }
15665 _ACEOF
15666 rm -f conftest.$ac_objext
15667 if { (ac_try="$ac_compile"
15668 case "(($ac_try" in
15669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670   *) ac_try_echo=$ac_try;;
15671 esac
15672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15673   (eval "$ac_compile") 2>conftest.er1
15674   ac_status=$?
15675   grep -v '^ *+' conftest.er1 >conftest.err
15676   rm -f conftest.er1
15677   cat conftest.err >&5
15678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679   (exit $ac_status); } && {
15680          test -z "$ac_c_werror_flag" ||
15681          test ! -s conftest.err
15682        } && test -s conftest.$ac_objext; then
15683   gt_cv_c_intmax_t=yes
15684 else
15685   echo "$as_me: failed program was:" >&5
15686 sed 's/^/| /' conftest.$ac_ext >&5
15687
15688         gt_cv_c_intmax_t=no
15689 fi
15690
15691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15692 fi
15693 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
15694 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
15695   if test $gt_cv_c_intmax_t = yes; then
15696
15697 cat >>confdefs.h <<\_ACEOF
15698 #define HAVE_INTMAX_T 1
15699 _ACEOF
15700
15701   else
15702
15703     test $ac_cv_type_long_long_int = yes \
15704       && ac_type='long long' \
15705       || ac_type='long'
15706
15707 cat >>confdefs.h <<_ACEOF
15708 #define intmax_t $ac_type
15709 _ACEOF
15710
15711   fi
15712
15713 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
15714 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
15715 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
15716   echo $ECHO_N "(cached) $ECHO_C" >&6
15717 else
15718   cat >conftest.$ac_ext <<_ACEOF
15719 /* confdefs.h.  */
15720 _ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h.  */
15724 $ac_includes_default
15725 int
15726 main ()
15727 {
15728 #ifndef vsnprintf
15729   (void) vsnprintf;
15730 #endif
15731
15732   ;
15733   return 0;
15734 }
15735 _ACEOF
15736 rm -f conftest.$ac_objext
15737 if { (ac_try="$ac_compile"
15738 case "(($ac_try" in
15739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15740   *) ac_try_echo=$ac_try;;
15741 esac
15742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15743   (eval "$ac_compile") 2>conftest.er1
15744   ac_status=$?
15745   grep -v '^ *+' conftest.er1 >conftest.err
15746   rm -f conftest.er1
15747   cat conftest.err >&5
15748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749   (exit $ac_status); } && {
15750          test -z "$ac_c_werror_flag" ||
15751          test ! -s conftest.err
15752        } && test -s conftest.$ac_objext; then
15753   ac_cv_have_decl_vsnprintf=yes
15754 else
15755   echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15757
15758         ac_cv_have_decl_vsnprintf=no
15759 fi
15760
15761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15762 fi
15763 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
15764 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
15765 if test $ac_cv_have_decl_vsnprintf = yes; then
15766
15767 cat >>confdefs.h <<_ACEOF
15768 #define HAVE_DECL_VSNPRINTF 1
15769 _ACEOF
15770
15771
15772 else
15773   cat >>confdefs.h <<_ACEOF
15774 #define HAVE_DECL_VSNPRINTF 0
15775 _ACEOF
15776
15777
15778 fi
15779
15780
15781
15782   GNULIB_WCWIDTH=0;
15783     HAVE_DECL_WCWIDTH=1;
15784   REPLACE_WCWIDTH=0;
15785   WCHAR_H=
15786
15787
15788
15789
15790
15791
15792
15793
15794 for ac_header in stdint.h
15795 do
15796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15798   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15801   echo $ECHO_N "(cached) $ECHO_C" >&6
15802 fi
15803 ac_res=`eval echo '${'$as_ac_Header'}'`
15804                { echo "$as_me:$LINENO: result: $ac_res" >&5
15805 echo "${ECHO_T}$ac_res" >&6; }
15806 else
15807   # Is the header compilable?
15808 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15810 cat >conftest.$ac_ext <<_ACEOF
15811 /* confdefs.h.  */
15812 _ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h.  */
15816 $ac_includes_default
15817 #include <$ac_header>
15818 _ACEOF
15819 rm -f conftest.$ac_objext
15820 if { (ac_try="$ac_compile"
15821 case "(($ac_try" in
15822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15823   *) ac_try_echo=$ac_try;;
15824 esac
15825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15826   (eval "$ac_compile") 2>conftest.er1
15827   ac_status=$?
15828   grep -v '^ *+' conftest.er1 >conftest.err
15829   rm -f conftest.er1
15830   cat conftest.err >&5
15831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832   (exit $ac_status); } && {
15833          test -z "$ac_c_werror_flag" ||
15834          test ! -s conftest.err
15835        } && test -s conftest.$ac_objext; then
15836   ac_header_compiler=yes
15837 else
15838   echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15840
15841         ac_header_compiler=no
15842 fi
15843
15844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15845 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15846 echo "${ECHO_T}$ac_header_compiler" >&6; }
15847
15848 # Is the header present?
15849 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15851 cat >conftest.$ac_ext <<_ACEOF
15852 /* confdefs.h.  */
15853 _ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h.  */
15857 #include <$ac_header>
15858 _ACEOF
15859 if { (ac_try="$ac_cpp conftest.$ac_ext"
15860 case "(($ac_try" in
15861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862   *) ac_try_echo=$ac_try;;
15863 esac
15864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15865   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15866   ac_status=$?
15867   grep -v '^ *+' conftest.er1 >conftest.err
15868   rm -f conftest.er1
15869   cat conftest.err >&5
15870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871   (exit $ac_status); } >/dev/null && {
15872          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15873          test ! -s conftest.err
15874        }; then
15875   ac_header_preproc=yes
15876 else
15877   echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15879
15880   ac_header_preproc=no
15881 fi
15882
15883 rm -f conftest.err conftest.$ac_ext
15884 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15885 echo "${ECHO_T}$ac_header_preproc" >&6; }
15886
15887 # So?  What about this header?
15888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15889   yes:no: )
15890     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15892     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15894     ac_header_preproc=yes
15895     ;;
15896   no:yes:* )
15897     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15899     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15900 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15901     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15903     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15904 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15905     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15907     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15909     ( cat <<\_ASBOX
15910 ## ------------------------------ ##
15911 ## Report this to bug-tar@gnu.org ##
15912 ## ------------------------------ ##
15913 _ASBOX
15914      ) | sed "s/^/$as_me: WARNING:     /" >&2
15915     ;;
15916 esac
15917 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15920   echo $ECHO_N "(cached) $ECHO_C" >&6
15921 else
15922   eval "$as_ac_Header=\$ac_header_preproc"
15923 fi
15924 ac_res=`eval echo '${'$as_ac_Header'}'`
15925                { echo "$as_me:$LINENO: result: $ac_res" >&5
15926 echo "${ECHO_T}$ac_res" >&6; }
15927
15928 fi
15929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15930   cat >>confdefs.h <<_ACEOF
15931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15932 _ACEOF
15933
15934 fi
15935
15936 done
15937
15938     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
15939 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
15940   if test "${gl_cv_size_max+set}" = set; then
15941   echo $ECHO_N "(cached) $ECHO_C" >&6
15942 else
15943
15944     gl_cv_size_max=
15945     cat >conftest.$ac_ext <<_ACEOF
15946 /* confdefs.h.  */
15947 _ACEOF
15948 cat confdefs.h >>conftest.$ac_ext
15949 cat >>conftest.$ac_ext <<_ACEOF
15950 /* end confdefs.h.  */
15951
15952 #include <limits.h>
15953 #if HAVE_STDINT_H
15954 #include <stdint.h>
15955 #endif
15956 #ifdef SIZE_MAX
15957 Found it
15958 #endif
15959
15960 _ACEOF
15961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15962   $EGREP "Found it" >/dev/null 2>&1; then
15963   gl_cv_size_max=yes
15964 fi
15965 rm -f conftest*
15966
15967     if test -z "$gl_cv_size_max"; then
15968                         if test "$cross_compiling" = yes; then
15969   # Depending upon the size, compute the lo and hi bounds.
15970 cat >conftest.$ac_ext <<_ACEOF
15971 /* confdefs.h.  */
15972 _ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h.  */
15976 #include <stddef.h>
15977 #include <limits.h>
15978 int
15979 main ()
15980 {
15981 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
15982 test_array [0] = 0
15983
15984   ;
15985   return 0;
15986 }
15987 _ACEOF
15988 rm -f conftest.$ac_objext
15989 if { (ac_try="$ac_compile"
15990 case "(($ac_try" in
15991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15992   *) ac_try_echo=$ac_try;;
15993 esac
15994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15995   (eval "$ac_compile") 2>conftest.er1
15996   ac_status=$?
15997   grep -v '^ *+' conftest.er1 >conftest.err
15998   rm -f conftest.er1
15999   cat conftest.err >&5
16000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001   (exit $ac_status); } && {
16002          test -z "$ac_c_werror_flag" ||
16003          test ! -s conftest.err
16004        } && test -s conftest.$ac_objext; then
16005   ac_lo=0 ac_mid=0
16006   while :; do
16007     cat >conftest.$ac_ext <<_ACEOF
16008 /* confdefs.h.  */
16009 _ACEOF
16010 cat confdefs.h >>conftest.$ac_ext
16011 cat >>conftest.$ac_ext <<_ACEOF
16012 /* end confdefs.h.  */
16013 #include <stddef.h>
16014 #include <limits.h>
16015 int
16016 main ()
16017 {
16018 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
16019 test_array [0] = 0
16020
16021   ;
16022   return 0;
16023 }
16024 _ACEOF
16025 rm -f conftest.$ac_objext
16026 if { (ac_try="$ac_compile"
16027 case "(($ac_try" in
16028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16029   *) ac_try_echo=$ac_try;;
16030 esac
16031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16032   (eval "$ac_compile") 2>conftest.er1
16033   ac_status=$?
16034   grep -v '^ *+' conftest.er1 >conftest.err
16035   rm -f conftest.er1
16036   cat conftest.err >&5
16037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038   (exit $ac_status); } && {
16039          test -z "$ac_c_werror_flag" ||
16040          test ! -s conftest.err
16041        } && test -s conftest.$ac_objext; then
16042   ac_hi=$ac_mid; break
16043 else
16044   echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16046
16047         ac_lo=`expr $ac_mid + 1`
16048                         if test $ac_lo -le $ac_mid; then
16049                           ac_lo= ac_hi=
16050                           break
16051                         fi
16052                         ac_mid=`expr 2 '*' $ac_mid + 1`
16053 fi
16054
16055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16056   done
16057 else
16058   echo "$as_me: failed program was:" >&5
16059 sed 's/^/| /' conftest.$ac_ext >&5
16060
16061         cat >conftest.$ac_ext <<_ACEOF
16062 /* confdefs.h.  */
16063 _ACEOF
16064 cat confdefs.h >>conftest.$ac_ext
16065 cat >>conftest.$ac_ext <<_ACEOF
16066 /* end confdefs.h.  */
16067 #include <stddef.h>
16068 #include <limits.h>
16069 int
16070 main ()
16071 {
16072 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
16073 test_array [0] = 0
16074
16075   ;
16076   return 0;
16077 }
16078 _ACEOF
16079 rm -f conftest.$ac_objext
16080 if { (ac_try="$ac_compile"
16081 case "(($ac_try" in
16082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083   *) ac_try_echo=$ac_try;;
16084 esac
16085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086   (eval "$ac_compile") 2>conftest.er1
16087   ac_status=$?
16088   grep -v '^ *+' conftest.er1 >conftest.err
16089   rm -f conftest.er1
16090   cat conftest.err >&5
16091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092   (exit $ac_status); } && {
16093          test -z "$ac_c_werror_flag" ||
16094          test ! -s conftest.err
16095        } && test -s conftest.$ac_objext; then
16096   ac_hi=-1 ac_mid=-1
16097   while :; do
16098     cat >conftest.$ac_ext <<_ACEOF
16099 /* confdefs.h.  */
16100 _ACEOF
16101 cat confdefs.h >>conftest.$ac_ext
16102 cat >>conftest.$ac_ext <<_ACEOF
16103 /* end confdefs.h.  */
16104 #include <stddef.h>
16105 #include <limits.h>
16106 int
16107 main ()
16108 {
16109 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
16110 test_array [0] = 0
16111
16112   ;
16113   return 0;
16114 }
16115 _ACEOF
16116 rm -f conftest.$ac_objext
16117 if { (ac_try="$ac_compile"
16118 case "(($ac_try" in
16119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16120   *) ac_try_echo=$ac_try;;
16121 esac
16122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16123   (eval "$ac_compile") 2>conftest.er1
16124   ac_status=$?
16125   grep -v '^ *+' conftest.er1 >conftest.err
16126   rm -f conftest.er1
16127   cat conftest.err >&5
16128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129   (exit $ac_status); } && {
16130          test -z "$ac_c_werror_flag" ||
16131          test ! -s conftest.err
16132        } && test -s conftest.$ac_objext; then
16133   ac_lo=$ac_mid; break
16134 else
16135   echo "$as_me: failed program was:" >&5
16136 sed 's/^/| /' conftest.$ac_ext >&5
16137
16138         ac_hi=`expr '(' $ac_mid ')' - 1`
16139                         if test $ac_mid -le $ac_hi; then
16140                           ac_lo= ac_hi=
16141                           break
16142                         fi
16143                         ac_mid=`expr 2 '*' $ac_mid`
16144 fi
16145
16146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16147   done
16148 else
16149   echo "$as_me: failed program was:" >&5
16150 sed 's/^/| /' conftest.$ac_ext >&5
16151
16152         ac_lo= ac_hi=
16153 fi
16154
16155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16156 fi
16157
16158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16159 # Binary search between lo and hi bounds.
16160 while test "x$ac_lo" != "x$ac_hi"; do
16161   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16162   cat >conftest.$ac_ext <<_ACEOF
16163 /* confdefs.h.  */
16164 _ACEOF
16165 cat confdefs.h >>conftest.$ac_ext
16166 cat >>conftest.$ac_ext <<_ACEOF
16167 /* end confdefs.h.  */
16168 #include <stddef.h>
16169 #include <limits.h>
16170 int
16171 main ()
16172 {
16173 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
16174 test_array [0] = 0
16175
16176   ;
16177   return 0;
16178 }
16179 _ACEOF
16180 rm -f conftest.$ac_objext
16181 if { (ac_try="$ac_compile"
16182 case "(($ac_try" in
16183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184   *) ac_try_echo=$ac_try;;
16185 esac
16186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187   (eval "$ac_compile") 2>conftest.er1
16188   ac_status=$?
16189   grep -v '^ *+' conftest.er1 >conftest.err
16190   rm -f conftest.er1
16191   cat conftest.err >&5
16192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193   (exit $ac_status); } && {
16194          test -z "$ac_c_werror_flag" ||
16195          test ! -s conftest.err
16196        } && test -s conftest.$ac_objext; then
16197   ac_hi=$ac_mid
16198 else
16199   echo "$as_me: failed program was:" >&5
16200 sed 's/^/| /' conftest.$ac_ext >&5
16201
16202         ac_lo=`expr '(' $ac_mid ')' + 1`
16203 fi
16204
16205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16206 done
16207 case $ac_lo in
16208 ?*) size_t_bits_minus_1=$ac_lo;;
16209 '') size_t_bits_minus_1= ;;
16210 esac
16211 else
16212   cat >conftest.$ac_ext <<_ACEOF
16213 /* confdefs.h.  */
16214 _ACEOF
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h.  */
16218 #include <stddef.h>
16219 #include <limits.h>
16220 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
16221 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
16222 #include <stdio.h>
16223 #include <stdlib.h>
16224 int
16225 main ()
16226 {
16227
16228   FILE *f = fopen ("conftest.val", "w");
16229   if (! f)
16230     return 1;
16231   if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
16232     {
16233       long int i = longval ();
16234       if (i != (sizeof (size_t) * CHAR_BIT - 1))
16235         return 1;
16236       fprintf (f, "%ld\n", i);
16237     }
16238   else
16239     {
16240       unsigned long int i = ulongval ();
16241       if (i != (sizeof (size_t) * CHAR_BIT - 1))
16242         return 1;
16243       fprintf (f, "%lu\n", i);
16244     }
16245   return ferror (f) || fclose (f) != 0;
16246
16247   ;
16248   return 0;
16249 }
16250 _ACEOF
16251 rm -f conftest$ac_exeext
16252 if { (ac_try="$ac_link"
16253 case "(($ac_try" in
16254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16255   *) ac_try_echo=$ac_try;;
16256 esac
16257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16258   (eval "$ac_link") 2>&5
16259   ac_status=$?
16260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16262   { (case "(($ac_try" in
16263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264   *) ac_try_echo=$ac_try;;
16265 esac
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267   (eval "$ac_try") 2>&5
16268   ac_status=$?
16269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270   (exit $ac_status); }; }; then
16271   size_t_bits_minus_1=`cat conftest.val`
16272 else
16273   echo "$as_me: program exited with status $ac_status" >&5
16274 echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16276
16277 ( exit $ac_status )
16278 size_t_bits_minus_1=
16279 fi
16280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16281 fi
16282 rm -f conftest.val
16283       if test "$cross_compiling" = yes; then
16284   # Depending upon the size, compute the lo and hi bounds.
16285 cat >conftest.$ac_ext <<_ACEOF
16286 /* confdefs.h.  */
16287 _ACEOF
16288 cat confdefs.h >>conftest.$ac_ext
16289 cat >>conftest.$ac_ext <<_ACEOF
16290 /* end confdefs.h.  */
16291 #include <stddef.h>
16292 int
16293 main ()
16294 {
16295 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
16296 test_array [0] = 0
16297
16298   ;
16299   return 0;
16300 }
16301 _ACEOF
16302 rm -f conftest.$ac_objext
16303 if { (ac_try="$ac_compile"
16304 case "(($ac_try" in
16305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16306   *) ac_try_echo=$ac_try;;
16307 esac
16308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16309   (eval "$ac_compile") 2>conftest.er1
16310   ac_status=$?
16311   grep -v '^ *+' conftest.er1 >conftest.err
16312   rm -f conftest.er1
16313   cat conftest.err >&5
16314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315   (exit $ac_status); } && {
16316          test -z "$ac_c_werror_flag" ||
16317          test ! -s conftest.err
16318        } && test -s conftest.$ac_objext; then
16319   ac_lo=0 ac_mid=0
16320   while :; do
16321     cat >conftest.$ac_ext <<_ACEOF
16322 /* confdefs.h.  */
16323 _ACEOF
16324 cat confdefs.h >>conftest.$ac_ext
16325 cat >>conftest.$ac_ext <<_ACEOF
16326 /* end confdefs.h.  */
16327 #include <stddef.h>
16328 int
16329 main ()
16330 {
16331 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
16332 test_array [0] = 0
16333
16334   ;
16335   return 0;
16336 }
16337 _ACEOF
16338 rm -f conftest.$ac_objext
16339 if { (ac_try="$ac_compile"
16340 case "(($ac_try" in
16341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16342   *) ac_try_echo=$ac_try;;
16343 esac
16344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16345   (eval "$ac_compile") 2>conftest.er1
16346   ac_status=$?
16347   grep -v '^ *+' conftest.er1 >conftest.err
16348   rm -f conftest.er1
16349   cat conftest.err >&5
16350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351   (exit $ac_status); } && {
16352          test -z "$ac_c_werror_flag" ||
16353          test ! -s conftest.err
16354        } && test -s conftest.$ac_objext; then
16355   ac_hi=$ac_mid; break
16356 else
16357   echo "$as_me: failed program was:" >&5
16358 sed 's/^/| /' conftest.$ac_ext >&5
16359
16360         ac_lo=`expr $ac_mid + 1`
16361                         if test $ac_lo -le $ac_mid; then
16362                           ac_lo= ac_hi=
16363                           break
16364                         fi
16365                         ac_mid=`expr 2 '*' $ac_mid + 1`
16366 fi
16367
16368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16369   done
16370 else
16371   echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16373
16374         cat >conftest.$ac_ext <<_ACEOF
16375 /* confdefs.h.  */
16376 _ACEOF
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h.  */
16380 #include <stddef.h>
16381 int
16382 main ()
16383 {
16384 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
16385 test_array [0] = 0
16386
16387   ;
16388   return 0;
16389 }
16390 _ACEOF
16391 rm -f conftest.$ac_objext
16392 if { (ac_try="$ac_compile"
16393 case "(($ac_try" in
16394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395   *) ac_try_echo=$ac_try;;
16396 esac
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398   (eval "$ac_compile") 2>conftest.er1
16399   ac_status=$?
16400   grep -v '^ *+' conftest.er1 >conftest.err
16401   rm -f conftest.er1
16402   cat conftest.err >&5
16403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404   (exit $ac_status); } && {
16405          test -z "$ac_c_werror_flag" ||
16406          test ! -s conftest.err
16407        } && test -s conftest.$ac_objext; then
16408   ac_hi=-1 ac_mid=-1
16409   while :; do
16410     cat >conftest.$ac_ext <<_ACEOF
16411 /* confdefs.h.  */
16412 _ACEOF
16413 cat confdefs.h >>conftest.$ac_ext
16414 cat >>conftest.$ac_ext <<_ACEOF
16415 /* end confdefs.h.  */
16416 #include <stddef.h>
16417 int
16418 main ()
16419 {
16420 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
16421 test_array [0] = 0
16422
16423   ;
16424   return 0;
16425 }
16426 _ACEOF
16427 rm -f conftest.$ac_objext
16428 if { (ac_try="$ac_compile"
16429 case "(($ac_try" in
16430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431   *) ac_try_echo=$ac_try;;
16432 esac
16433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434   (eval "$ac_compile") 2>conftest.er1
16435   ac_status=$?
16436   grep -v '^ *+' conftest.er1 >conftest.err
16437   rm -f conftest.er1
16438   cat conftest.err >&5
16439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440   (exit $ac_status); } && {
16441          test -z "$ac_c_werror_flag" ||
16442          test ! -s conftest.err
16443        } && test -s conftest.$ac_objext; then
16444   ac_lo=$ac_mid; break
16445 else
16446   echo "$as_me: failed program was:" >&5
16447 sed 's/^/| /' conftest.$ac_ext >&5
16448
16449         ac_hi=`expr '(' $ac_mid ')' - 1`
16450                         if test $ac_mid -le $ac_hi; then
16451                           ac_lo= ac_hi=
16452                           break
16453                         fi
16454                         ac_mid=`expr 2 '*' $ac_mid`
16455 fi
16456
16457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16458   done
16459 else
16460   echo "$as_me: failed program was:" >&5
16461 sed 's/^/| /' conftest.$ac_ext >&5
16462
16463         ac_lo= ac_hi=
16464 fi
16465
16466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16467 fi
16468
16469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16470 # Binary search between lo and hi bounds.
16471 while test "x$ac_lo" != "x$ac_hi"; do
16472   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16473   cat >conftest.$ac_ext <<_ACEOF
16474 /* confdefs.h.  */
16475 _ACEOF
16476 cat confdefs.h >>conftest.$ac_ext
16477 cat >>conftest.$ac_ext <<_ACEOF
16478 /* end confdefs.h.  */
16479 #include <stddef.h>
16480 int
16481 main ()
16482 {
16483 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
16484 test_array [0] = 0
16485
16486   ;
16487   return 0;
16488 }
16489 _ACEOF
16490 rm -f conftest.$ac_objext
16491 if { (ac_try="$ac_compile"
16492 case "(($ac_try" in
16493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16494   *) ac_try_echo=$ac_try;;
16495 esac
16496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16497   (eval "$ac_compile") 2>conftest.er1
16498   ac_status=$?
16499   grep -v '^ *+' conftest.er1 >conftest.err
16500   rm -f conftest.er1
16501   cat conftest.err >&5
16502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503   (exit $ac_status); } && {
16504          test -z "$ac_c_werror_flag" ||
16505          test ! -s conftest.err
16506        } && test -s conftest.$ac_objext; then
16507   ac_hi=$ac_mid
16508 else
16509   echo "$as_me: failed program was:" >&5
16510 sed 's/^/| /' conftest.$ac_ext >&5
16511
16512         ac_lo=`expr '(' $ac_mid ')' + 1`
16513 fi
16514
16515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16516 done
16517 case $ac_lo in
16518 ?*) fits_in_uint=$ac_lo;;
16519 '') fits_in_uint= ;;
16520 esac
16521 else
16522   cat >conftest.$ac_ext <<_ACEOF
16523 /* confdefs.h.  */
16524 _ACEOF
16525 cat confdefs.h >>conftest.$ac_ext
16526 cat >>conftest.$ac_ext <<_ACEOF
16527 /* end confdefs.h.  */
16528 #include <stddef.h>
16529 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
16530 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
16531 #include <stdio.h>
16532 #include <stdlib.h>
16533 int
16534 main ()
16535 {
16536
16537   FILE *f = fopen ("conftest.val", "w");
16538   if (! f)
16539     return 1;
16540   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
16541     {
16542       long int i = longval ();
16543       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
16544         return 1;
16545       fprintf (f, "%ld\n", i);
16546     }
16547   else
16548     {
16549       unsigned long int i = ulongval ();
16550       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
16551         return 1;
16552       fprintf (f, "%lu\n", i);
16553     }
16554   return ferror (f) || fclose (f) != 0;
16555
16556   ;
16557   return 0;
16558 }
16559 _ACEOF
16560 rm -f conftest$ac_exeext
16561 if { (ac_try="$ac_link"
16562 case "(($ac_try" in
16563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564   *) ac_try_echo=$ac_try;;
16565 esac
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567   (eval "$ac_link") 2>&5
16568   ac_status=$?
16569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16571   { (case "(($ac_try" in
16572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573   *) ac_try_echo=$ac_try;;
16574 esac
16575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576   (eval "$ac_try") 2>&5
16577   ac_status=$?
16578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579   (exit $ac_status); }; }; then
16580   fits_in_uint=`cat conftest.val`
16581 else
16582   echo "$as_me: program exited with status $ac_status" >&5
16583 echo "$as_me: failed program was:" >&5
16584 sed 's/^/| /' conftest.$ac_ext >&5
16585
16586 ( exit $ac_status )
16587 fits_in_uint=
16588 fi
16589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16590 fi
16591 rm -f conftest.val
16592       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
16593         if test $fits_in_uint = 1; then
16594                               cat >conftest.$ac_ext <<_ACEOF
16595 /* confdefs.h.  */
16596 _ACEOF
16597 cat confdefs.h >>conftest.$ac_ext
16598 cat >>conftest.$ac_ext <<_ACEOF
16599 /* end confdefs.h.  */
16600 #include <stddef.h>
16601             extern size_t foo;
16602             extern unsigned long foo;
16603
16604 int
16605 main ()
16606 {
16607
16608   ;
16609   return 0;
16610 }
16611 _ACEOF
16612 rm -f conftest.$ac_objext
16613 if { (ac_try="$ac_compile"
16614 case "(($ac_try" in
16615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16616   *) ac_try_echo=$ac_try;;
16617 esac
16618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16619   (eval "$ac_compile") 2>conftest.er1
16620   ac_status=$?
16621   grep -v '^ *+' conftest.er1 >conftest.err
16622   rm -f conftest.er1
16623   cat conftest.err >&5
16624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625   (exit $ac_status); } && {
16626          test -z "$ac_c_werror_flag" ||
16627          test ! -s conftest.err
16628        } && test -s conftest.$ac_objext; then
16629   fits_in_uint=0
16630 else
16631   echo "$as_me: failed program was:" >&5
16632 sed 's/^/| /' conftest.$ac_ext >&5
16633
16634
16635 fi
16636
16637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16638         fi
16639                                 if test $fits_in_uint = 1; then
16640           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
16641         else
16642           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
16643         fi
16644       else
16645                 gl_cv_size_max='((size_t)~(size_t)0)'
16646       fi
16647     fi
16648
16649 fi
16650
16651   { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
16652 echo "${ECHO_T}$gl_cv_size_max" >&6; }
16653   if test "$gl_cv_size_max" != yes; then
16654
16655 cat >>confdefs.h <<_ACEOF
16656 #define SIZE_MAX $gl_cv_size_max
16657 _ACEOF
16658
16659   fi
16660
16661
16662    if false; then
16663   GL_COND_LIBTOOL_TRUE=
16664   GL_COND_LIBTOOL_FALSE='#'
16665 else
16666   GL_COND_LIBTOOL_TRUE='#'
16667   GL_COND_LIBTOOL_FALSE=
16668 fi
16669
16670   gl_cond_libtool=false
16671   gl_libdeps=
16672   gl_ltlibdeps=
16673
16674
16675
16676   gl_source_base='.#bootmp/lib'
16677
16678
16679   { echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
16680 echo $ECHO_N "checking for EOVERFLOW... $ECHO_C" >&6; }
16681 if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
16682   echo $ECHO_N "(cached) $ECHO_C" >&6
16683 else
16684
16685     cat >conftest.$ac_ext <<_ACEOF
16686 /* confdefs.h.  */
16687 _ACEOF
16688 cat confdefs.h >>conftest.$ac_ext
16689 cat >>conftest.$ac_ext <<_ACEOF
16690 /* end confdefs.h.  */
16691
16692 #include <errno.h>
16693 #ifdef EOVERFLOW
16694 yes
16695 #endif
16696
16697 _ACEOF
16698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16699   $EGREP "yes" >/dev/null 2>&1; then
16700   have_eoverflow=1
16701 fi
16702 rm -f conftest*
16703
16704     if test -n "$have_eoverflow"; then
16705             ac_cv_decl_EOVERFLOW=yes
16706     else
16707       cat >conftest.$ac_ext <<_ACEOF
16708 /* confdefs.h.  */
16709 _ACEOF
16710 cat confdefs.h >>conftest.$ac_ext
16711 cat >>conftest.$ac_ext <<_ACEOF
16712 /* end confdefs.h.  */
16713
16714 #define _XOPEN_SOURCE_EXTENDED 1
16715 #include <errno.h>
16716 #ifdef EOVERFLOW
16717 yes
16718 #endif
16719
16720 _ACEOF
16721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16722   $EGREP "yes" >/dev/null 2>&1; then
16723   have_eoverflow=1
16724 fi
16725 rm -f conftest*
16726
16727       if test -n "$have_eoverflow"; then
16728                         if test "$cross_compiling" = yes; then
16729   # Depending upon the size, compute the lo and hi bounds.
16730 cat >conftest.$ac_ext <<_ACEOF
16731 /* confdefs.h.  */
16732 _ACEOF
16733 cat confdefs.h >>conftest.$ac_ext
16734 cat >>conftest.$ac_ext <<_ACEOF
16735 /* end confdefs.h.  */
16736
16737 #define _XOPEN_SOURCE_EXTENDED 1
16738 #include <errno.h>
16739 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16740 #include <stdio.h>
16741 #include <stdlib.h>
16742
16743 int
16744 main ()
16745 {
16746 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
16747 test_array [0] = 0
16748
16749   ;
16750   return 0;
16751 }
16752 _ACEOF
16753 rm -f conftest.$ac_objext
16754 if { (ac_try="$ac_compile"
16755 case "(($ac_try" in
16756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757   *) ac_try_echo=$ac_try;;
16758 esac
16759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760   (eval "$ac_compile") 2>conftest.er1
16761   ac_status=$?
16762   grep -v '^ *+' conftest.er1 >conftest.err
16763   rm -f conftest.er1
16764   cat conftest.err >&5
16765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766   (exit $ac_status); } && {
16767          test -z "$ac_c_werror_flag" ||
16768          test ! -s conftest.err
16769        } && test -s conftest.$ac_objext; then
16770   ac_lo=0 ac_mid=0
16771   while :; do
16772     cat >conftest.$ac_ext <<_ACEOF
16773 /* confdefs.h.  */
16774 _ACEOF
16775 cat confdefs.h >>conftest.$ac_ext
16776 cat >>conftest.$ac_ext <<_ACEOF
16777 /* end confdefs.h.  */
16778
16779 #define _XOPEN_SOURCE_EXTENDED 1
16780 #include <errno.h>
16781 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16782 #include <stdio.h>
16783 #include <stdlib.h>
16784
16785 int
16786 main ()
16787 {
16788 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
16789 test_array [0] = 0
16790
16791   ;
16792   return 0;
16793 }
16794 _ACEOF
16795 rm -f conftest.$ac_objext
16796 if { (ac_try="$ac_compile"
16797 case "(($ac_try" in
16798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799   *) ac_try_echo=$ac_try;;
16800 esac
16801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802   (eval "$ac_compile") 2>conftest.er1
16803   ac_status=$?
16804   grep -v '^ *+' conftest.er1 >conftest.err
16805   rm -f conftest.er1
16806   cat conftest.err >&5
16807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808   (exit $ac_status); } && {
16809          test -z "$ac_c_werror_flag" ||
16810          test ! -s conftest.err
16811        } && test -s conftest.$ac_objext; then
16812   ac_hi=$ac_mid; break
16813 else
16814   echo "$as_me: failed program was:" >&5
16815 sed 's/^/| /' conftest.$ac_ext >&5
16816
16817         ac_lo=`expr $ac_mid + 1`
16818                         if test $ac_lo -le $ac_mid; then
16819                           ac_lo= ac_hi=
16820                           break
16821                         fi
16822                         ac_mid=`expr 2 '*' $ac_mid + 1`
16823 fi
16824
16825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16826   done
16827 else
16828   echo "$as_me: failed program was:" >&5
16829 sed 's/^/| /' conftest.$ac_ext >&5
16830
16831         cat >conftest.$ac_ext <<_ACEOF
16832 /* confdefs.h.  */
16833 _ACEOF
16834 cat confdefs.h >>conftest.$ac_ext
16835 cat >>conftest.$ac_ext <<_ACEOF
16836 /* end confdefs.h.  */
16837
16838 #define _XOPEN_SOURCE_EXTENDED 1
16839 #include <errno.h>
16840 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16841 #include <stdio.h>
16842 #include <stdlib.h>
16843
16844 int
16845 main ()
16846 {
16847 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
16848 test_array [0] = 0
16849
16850   ;
16851   return 0;
16852 }
16853 _ACEOF
16854 rm -f conftest.$ac_objext
16855 if { (ac_try="$ac_compile"
16856 case "(($ac_try" in
16857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858   *) ac_try_echo=$ac_try;;
16859 esac
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861   (eval "$ac_compile") 2>conftest.er1
16862   ac_status=$?
16863   grep -v '^ *+' conftest.er1 >conftest.err
16864   rm -f conftest.er1
16865   cat conftest.err >&5
16866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867   (exit $ac_status); } && {
16868          test -z "$ac_c_werror_flag" ||
16869          test ! -s conftest.err
16870        } && test -s conftest.$ac_objext; then
16871   ac_hi=-1 ac_mid=-1
16872   while :; do
16873     cat >conftest.$ac_ext <<_ACEOF
16874 /* confdefs.h.  */
16875 _ACEOF
16876 cat confdefs.h >>conftest.$ac_ext
16877 cat >>conftest.$ac_ext <<_ACEOF
16878 /* end confdefs.h.  */
16879
16880 #define _XOPEN_SOURCE_EXTENDED 1
16881 #include <errno.h>
16882 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16883 #include <stdio.h>
16884 #include <stdlib.h>
16885
16886 int
16887 main ()
16888 {
16889 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
16890 test_array [0] = 0
16891
16892   ;
16893   return 0;
16894 }
16895 _ACEOF
16896 rm -f conftest.$ac_objext
16897 if { (ac_try="$ac_compile"
16898 case "(($ac_try" in
16899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900   *) ac_try_echo=$ac_try;;
16901 esac
16902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903   (eval "$ac_compile") 2>conftest.er1
16904   ac_status=$?
16905   grep -v '^ *+' conftest.er1 >conftest.err
16906   rm -f conftest.er1
16907   cat conftest.err >&5
16908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909   (exit $ac_status); } && {
16910          test -z "$ac_c_werror_flag" ||
16911          test ! -s conftest.err
16912        } && test -s conftest.$ac_objext; then
16913   ac_lo=$ac_mid; break
16914 else
16915   echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16917
16918         ac_hi=`expr '(' $ac_mid ')' - 1`
16919                         if test $ac_mid -le $ac_hi; then
16920                           ac_lo= ac_hi=
16921                           break
16922                         fi
16923                         ac_mid=`expr 2 '*' $ac_mid`
16924 fi
16925
16926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16927   done
16928 else
16929   echo "$as_me: failed program was:" >&5
16930 sed 's/^/| /' conftest.$ac_ext >&5
16931
16932         ac_lo= ac_hi=
16933 fi
16934
16935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16936 fi
16937
16938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16939 # Binary search between lo and hi bounds.
16940 while test "x$ac_lo" != "x$ac_hi"; do
16941   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16942   cat >conftest.$ac_ext <<_ACEOF
16943 /* confdefs.h.  */
16944 _ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h.  */
16948
16949 #define _XOPEN_SOURCE_EXTENDED 1
16950 #include <errno.h>
16951 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16952 #include <stdio.h>
16953 #include <stdlib.h>
16954
16955 int
16956 main ()
16957 {
16958 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
16959 test_array [0] = 0
16960
16961   ;
16962   return 0;
16963 }
16964 _ACEOF
16965 rm -f conftest.$ac_objext
16966 if { (ac_try="$ac_compile"
16967 case "(($ac_try" in
16968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969   *) ac_try_echo=$ac_try;;
16970 esac
16971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972   (eval "$ac_compile") 2>conftest.er1
16973   ac_status=$?
16974   grep -v '^ *+' conftest.er1 >conftest.err
16975   rm -f conftest.er1
16976   cat conftest.err >&5
16977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978   (exit $ac_status); } && {
16979          test -z "$ac_c_werror_flag" ||
16980          test ! -s conftest.err
16981        } && test -s conftest.$ac_objext; then
16982   ac_hi=$ac_mid
16983 else
16984   echo "$as_me: failed program was:" >&5
16985 sed 's/^/| /' conftest.$ac_ext >&5
16986
16987         ac_lo=`expr '(' $ac_mid ')' + 1`
16988 fi
16989
16990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16991 done
16992 case $ac_lo in
16993 ?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
16994 '')  ;;
16995 esac
16996 else
16997   cat >conftest.$ac_ext <<_ACEOF
16998 /* confdefs.h.  */
16999 _ACEOF
17000 cat confdefs.h >>conftest.$ac_ext
17001 cat >>conftest.$ac_ext <<_ACEOF
17002 /* end confdefs.h.  */
17003
17004 #define _XOPEN_SOURCE_EXTENDED 1
17005 #include <errno.h>
17006 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
17007 #include <stdio.h>
17008 #include <stdlib.h>
17009
17010 static long int longval () { return EOVERFLOW; }
17011 static unsigned long int ulongval () { return EOVERFLOW; }
17012 #include <stdio.h>
17013 #include <stdlib.h>
17014 int
17015 main ()
17016 {
17017
17018   FILE *f = fopen ("conftest.val", "w");
17019   if (! f)
17020     return 1;
17021   if ((EOVERFLOW) < 0)
17022     {
17023       long int i = longval ();
17024       if (i != (EOVERFLOW))
17025         return 1;
17026       fprintf (f, "%ld\n", i);
17027     }
17028   else
17029     {
17030       unsigned long int i = ulongval ();
17031       if (i != (EOVERFLOW))
17032         return 1;
17033       fprintf (f, "%lu\n", i);
17034     }
17035   return ferror (f) || fclose (f) != 0;
17036
17037   ;
17038   return 0;
17039 }
17040 _ACEOF
17041 rm -f conftest$ac_exeext
17042 if { (ac_try="$ac_link"
17043 case "(($ac_try" in
17044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045   *) ac_try_echo=$ac_try;;
17046 esac
17047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048   (eval "$ac_link") 2>&5
17049   ac_status=$?
17050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17052   { (case "(($ac_try" in
17053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054   *) ac_try_echo=$ac_try;;
17055 esac
17056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17057   (eval "$ac_try") 2>&5
17058   ac_status=$?
17059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060   (exit $ac_status); }; }; then
17061   ac_cv_decl_EOVERFLOW=`cat conftest.val`
17062 else
17063   echo "$as_me: program exited with status $ac_status" >&5
17064 echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17066
17067 fi
17068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17069 fi
17070 rm -f conftest.val
17071       else
17072                                 ac_cv_decl_EOVERFLOW=E2BIG
17073       fi
17074     fi
17075
17076 fi
17077 { echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
17078 echo "${ECHO_T}$ac_cv_decl_EOVERFLOW" >&6; }
17079   if test "$ac_cv_decl_EOVERFLOW" != yes; then
17080
17081 cat >>confdefs.h <<_ACEOF
17082 #define EOVERFLOW $ac_cv_decl_EOVERFLOW
17083 _ACEOF
17084
17085     EOVERFLOW="$ac_cv_decl_EOVERFLOW"
17086
17087   fi
17088
17089
17090
17091
17092
17093
17094   if test $ac_cv_func_alloca_works = no; then
17095     :
17096   fi
17097
17098   # Define an additional variable used in the Makefile substitution.
17099   if test $ac_cv_working_alloca_h = yes; then
17100     { echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
17101 echo $ECHO_N "checking for alloca as a compiler built-in... $ECHO_C" >&6; }
17102 if test "${gl_cv_rpl_alloca+set}" = set; then
17103   echo $ECHO_N "(cached) $ECHO_C" >&6
17104 else
17105
17106       cat >conftest.$ac_ext <<_ACEOF
17107 /* confdefs.h.  */
17108 _ACEOF
17109 cat confdefs.h >>conftest.$ac_ext
17110 cat >>conftest.$ac_ext <<_ACEOF
17111 /* end confdefs.h.  */
17112
17113 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
17114         Need own alloca
17115 #endif
17116
17117 _ACEOF
17118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17119   $EGREP "Need own alloca" >/dev/null 2>&1; then
17120   gl_cv_rpl_alloca=yes
17121 else
17122   gl_cv_rpl_alloca=no
17123 fi
17124 rm -f conftest*
17125
17126
17127 fi
17128 { echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
17129 echo "${ECHO_T}$gl_cv_rpl_alloca" >&6; }
17130     if test $gl_cv_rpl_alloca = yes; then
17131
17132 cat >>confdefs.h <<\_ACEOF
17133 #define HAVE_ALLOCA 1
17134 _ACEOF
17135
17136       ALLOCA_H=alloca.h
17137     else
17138                   ALLOCA_H=
17139     fi
17140   else
17141     ALLOCA_H=alloca.h
17142   fi
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153   gl_LIBOBJS="$gl_LIBOBJS argmatch.$ac_objext"
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
17169
17170
17171
17172
17173
17174
17175
17176
17177   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
17178
17179
17180   GETOPT_H=getopt.h
17181
17182 cat >>confdefs.h <<\_ACEOF
17183 #define __GETOPT_PREFIX rpl_
17184 _ACEOF
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196   { echo "$as_me:$LINENO: checking whether program_invocation_name is declared" >&5
17197 echo $ECHO_N "checking whether program_invocation_name is declared... $ECHO_C" >&6; }
17198 if test "${ac_cv_have_decl_program_invocation_name+set}" = set; then
17199   echo $ECHO_N "(cached) $ECHO_C" >&6
17200 else
17201   cat >conftest.$ac_ext <<_ACEOF
17202 /* confdefs.h.  */
17203 _ACEOF
17204 cat confdefs.h >>conftest.$ac_ext
17205 cat >>conftest.$ac_ext <<_ACEOF
17206 /* end confdefs.h.  */
17207 #include <errno.h>
17208
17209 int
17210 main ()
17211 {
17212 #ifndef program_invocation_name
17213   (void) program_invocation_name;
17214 #endif
17215
17216   ;
17217   return 0;
17218 }
17219 _ACEOF
17220 rm -f conftest.$ac_objext
17221 if { (ac_try="$ac_compile"
17222 case "(($ac_try" in
17223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17224   *) ac_try_echo=$ac_try;;
17225 esac
17226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17227   (eval "$ac_compile") 2>conftest.er1
17228   ac_status=$?
17229   grep -v '^ *+' conftest.er1 >conftest.err
17230   rm -f conftest.er1
17231   cat conftest.err >&5
17232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233   (exit $ac_status); } && {
17234          test -z "$ac_c_werror_flag" ||
17235          test ! -s conftest.err
17236        } && test -s conftest.$ac_objext; then
17237   ac_cv_have_decl_program_invocation_name=yes
17238 else
17239   echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17241
17242         ac_cv_have_decl_program_invocation_name=no
17243 fi
17244
17245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17246 fi
17247 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_name" >&5
17248 echo "${ECHO_T}$ac_cv_have_decl_program_invocation_name" >&6; }
17249 if test $ac_cv_have_decl_program_invocation_name = yes; then
17250
17251 cat >>confdefs.h <<\_ACEOF
17252 #define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
17253 _ACEOF
17254
17255 else
17256
17257 cat >>confdefs.h <<\_ACEOF
17258 #define GNULIB_PROGRAM_INVOCATION_NAME 1
17259 _ACEOF
17260
17261 fi
17262
17263   { echo "$as_me:$LINENO: checking whether program_invocation_short_name is declared" >&5
17264 echo $ECHO_N "checking whether program_invocation_short_name is declared... $ECHO_C" >&6; }
17265 if test "${ac_cv_have_decl_program_invocation_short_name+set}" = set; then
17266   echo $ECHO_N "(cached) $ECHO_C" >&6
17267 else
17268   cat >conftest.$ac_ext <<_ACEOF
17269 /* confdefs.h.  */
17270 _ACEOF
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h.  */
17274 #include <errno.h>
17275
17276 int
17277 main ()
17278 {
17279 #ifndef program_invocation_short_name
17280   (void) program_invocation_short_name;
17281 #endif
17282
17283   ;
17284   return 0;
17285 }
17286 _ACEOF
17287 rm -f conftest.$ac_objext
17288 if { (ac_try="$ac_compile"
17289 case "(($ac_try" in
17290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17291   *) ac_try_echo=$ac_try;;
17292 esac
17293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17294   (eval "$ac_compile") 2>conftest.er1
17295   ac_status=$?
17296   grep -v '^ *+' conftest.er1 >conftest.err
17297   rm -f conftest.er1
17298   cat conftest.err >&5
17299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300   (exit $ac_status); } && {
17301          test -z "$ac_c_werror_flag" ||
17302          test ! -s conftest.err
17303        } && test -s conftest.$ac_objext; then
17304   ac_cv_have_decl_program_invocation_short_name=yes
17305 else
17306   echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.$ac_ext >&5
17308
17309         ac_cv_have_decl_program_invocation_short_name=no
17310 fi
17311
17312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17313 fi
17314 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_short_name" >&5
17315 echo "${ECHO_T}$ac_cv_have_decl_program_invocation_short_name" >&6; }
17316 if test $ac_cv_have_decl_program_invocation_short_name = yes; then
17317
17318 cat >>confdefs.h <<\_ACEOF
17319 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
17320 _ACEOF
17321
17322 else
17323
17324 cat >>confdefs.h <<\_ACEOF
17325 #define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1
17326 _ACEOF
17327
17328 fi
17329
17330
17331   # Check if program_invocation_name and program_invocation_short_name
17332   # are defined elsewhere. It is improbable that only one of them will
17333   # be defined and other not, I prefer to stay on the safe side and to
17334   # test each one separately.
17335   { echo "$as_me:$LINENO: checking whether program_invocation_name is defined" >&5
17336 echo $ECHO_N "checking whether program_invocation_name is defined... $ECHO_C" >&6; }
17337   cat >conftest.$ac_ext <<_ACEOF
17338 /* confdefs.h.  */
17339 _ACEOF
17340 cat confdefs.h >>conftest.$ac_ext
17341 cat >>conftest.$ac_ext <<_ACEOF
17342 /* end confdefs.h.  */
17343 #include <argp.h>
17344 int
17345 main ()
17346 {
17347  program_invocation_name = "test";
17348   ;
17349   return 0;
17350 }
17351 _ACEOF
17352 rm -f conftest.$ac_objext conftest$ac_exeext
17353 if { (ac_try="$ac_link"
17354 case "(($ac_try" in
17355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356   *) ac_try_echo=$ac_try;;
17357 esac
17358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359   (eval "$ac_link") 2>conftest.er1
17360   ac_status=$?
17361   grep -v '^ *+' conftest.er1 >conftest.err
17362   rm -f conftest.er1
17363   cat conftest.err >&5
17364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365   (exit $ac_status); } && {
17366          test -z "$ac_c_werror_flag" ||
17367          test ! -s conftest.err
17368        } && test -s conftest$ac_exeext &&
17369        $as_test_x conftest$ac_exeext; then
17370
17371 cat >>confdefs.h <<\_ACEOF
17372 #define HAVE_PROGRAM_INVOCATION_NAME 1
17373 _ACEOF
17374
17375                  { echo "$as_me:$LINENO: result: yes" >&5
17376 echo "${ECHO_T}yes" >&6; }
17377 else
17378   echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.$ac_ext >&5
17380
17381          { echo "$as_me:$LINENO: result: no" >&5
17382 echo "${ECHO_T}no" >&6; }
17383 fi
17384
17385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17386       conftest$ac_exeext conftest.$ac_ext
17387
17388   { echo "$as_me:$LINENO: checking whether program_invocation_short_name is defined" >&5
17389 echo $ECHO_N "checking whether program_invocation_short_name is defined... $ECHO_C" >&6; }
17390   cat >conftest.$ac_ext <<_ACEOF
17391 /* confdefs.h.  */
17392 _ACEOF
17393 cat confdefs.h >>conftest.$ac_ext
17394 cat >>conftest.$ac_ext <<_ACEOF
17395 /* end confdefs.h.  */
17396 #include <argp.h>
17397 int
17398 main ()
17399 {
17400  program_invocation_short_name = "test";
17401   ;
17402   return 0;
17403 }
17404 _ACEOF
17405 rm -f conftest.$ac_objext conftest$ac_exeext
17406 if { (ac_try="$ac_link"
17407 case "(($ac_try" in
17408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409   *) ac_try_echo=$ac_try;;
17410 esac
17411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17412   (eval "$ac_link") 2>conftest.er1
17413   ac_status=$?
17414   grep -v '^ *+' conftest.er1 >conftest.err
17415   rm -f conftest.er1
17416   cat conftest.err >&5
17417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418   (exit $ac_status); } && {
17419          test -z "$ac_c_werror_flag" ||
17420          test ! -s conftest.err
17421        } && test -s conftest$ac_exeext &&
17422        $as_test_x conftest$ac_exeext; then
17423
17424 cat >>confdefs.h <<\_ACEOF
17425 #define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1
17426 _ACEOF
17427
17428                  { echo "$as_me:$LINENO: result: yes" >&5
17429 echo "${ECHO_T}yes" >&6; }
17430 else
17431   echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.$ac_ext >&5
17433
17434          { echo "$as_me:$LINENO: result: no" >&5
17435 echo "${ECHO_T}no" >&6; }
17436 fi
17437
17438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17439       conftest$ac_exeext conftest.$ac_ext
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
17513
17514
17515
17516   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526   gl_LIBOBJS="$gl_LIBOBJS backupfile.$ac_objext"
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550   if test $ac_cv_func_canonicalize_file_name = no; then
17551
17552
17553
17554
17555
17556
17557
17558   gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
17559
17560
17561 cat >>confdefs.h <<\_ACEOF
17562 #define realpath rpl_realpath
17563 _ACEOF
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583   fi
17584
17585
17586   { echo "$as_me:$LINENO: checking whether this system has an arbitrary file name length limit" >&5
17587 echo $ECHO_N "checking whether this system has an arbitrary file name length limit... $ECHO_C" >&6; }
17588 if test "${gl_cv_have_arbitrary_file_name_length_limit+set}" = set; then
17589   echo $ECHO_N "(cached) $ECHO_C" >&6
17590 else
17591   cat >conftest.$ac_ext <<_ACEOF
17592 /* confdefs.h.  */
17593 _ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h.  */
17597 #include <unistd.h>
17598 #include <limits.h>
17599 #if defined PATH_MAX || defined MAXPATHLEN
17600 have_arbitrary_file_name_length_limit
17601 #endif
17602 _ACEOF
17603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17604   $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then
17605   gl_cv_have_arbitrary_file_name_length_limit=yes
17606 else
17607   gl_cv_have_arbitrary_file_name_length_limit=no
17608 fi
17609 rm -f conftest*
17610
17611 fi
17612 { echo "$as_me:$LINENO: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
17613 echo "${ECHO_T}$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
17614
17615   if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
17616
17617
17618
17619
17620
17621
17622
17623   gl_LIBOBJS="$gl_LIBOBJS chdir-long.$ac_objext"
17624
17625
17626   :
17627
17628   fi
17629
17630
17631
17632
17633
17634
17635
17636   if test $ac_cv_func_chown_works = no; then
17637
17638 cat >>confdefs.h <<\_ACEOF
17639 #define CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE 1
17640 _ACEOF
17641
17642   fi
17643
17644   # If chown has either of the above problems, then we need the wrapper.
17645   if test $ac_cv_func_chown_works$gl_cv_func_chown_follows_symlink = yesyes; then
17646     : # no wrapper needed
17647   else
17648     REPLACE_CHOWN=1
17649
17650
17651
17652
17653
17654
17655
17656   gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
17657
17658
17659   { echo "$as_me:$LINENO: checking for fchown" >&5
17660 echo $ECHO_N "checking for fchown... $ECHO_C" >&6; }
17661 if test "${ac_cv_func_fchown+set}" = set; then
17662   echo $ECHO_N "(cached) $ECHO_C" >&6
17663 else
17664   cat >conftest.$ac_ext <<_ACEOF
17665 /* confdefs.h.  */
17666 _ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h.  */
17670 /* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
17671    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17672 #define fchown innocuous_fchown
17673
17674 /* System header to define __stub macros and hopefully few prototypes,
17675     which can conflict with char fchown (); below.
17676     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17677     <limits.h> exists even on freestanding compilers.  */
17678
17679 #ifdef __STDC__
17680 # include <limits.h>
17681 #else
17682 # include <assert.h>
17683 #endif
17684
17685 #undef fchown
17686
17687 /* Override any GCC internal prototype to avoid an error.
17688    Use char because int might match the return type of a GCC
17689    builtin and then its argument prototype would still apply.  */
17690 #ifdef __cplusplus
17691 extern "C"
17692 #endif
17693 char fchown ();
17694 /* The GNU C library defines this for functions which it implements
17695     to always fail with ENOSYS.  Some functions are actually named
17696     something starting with __ and the normal name is an alias.  */
17697 #if defined __stub_fchown || defined __stub___fchown
17698 choke me
17699 #endif
17700
17701 int
17702 main ()
17703 {
17704 return fchown ();
17705   ;
17706   return 0;
17707 }
17708 _ACEOF
17709 rm -f conftest.$ac_objext conftest$ac_exeext
17710 if { (ac_try="$ac_link"
17711 case "(($ac_try" in
17712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17713   *) ac_try_echo=$ac_try;;
17714 esac
17715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17716   (eval "$ac_link") 2>conftest.er1
17717   ac_status=$?
17718   grep -v '^ *+' conftest.er1 >conftest.err
17719   rm -f conftest.er1
17720   cat conftest.err >&5
17721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722   (exit $ac_status); } && {
17723          test -z "$ac_c_werror_flag" ||
17724          test ! -s conftest.err
17725        } && test -s conftest$ac_exeext &&
17726        $as_test_x conftest$ac_exeext; then
17727   ac_cv_func_fchown=yes
17728 else
17729   echo "$as_me: failed program was:" >&5
17730 sed 's/^/| /' conftest.$ac_ext >&5
17731
17732         ac_cv_func_fchown=no
17733 fi
17734
17735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17736       conftest$ac_exeext conftest.$ac_ext
17737 fi
17738 { echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
17739 echo "${ECHO_T}$ac_cv_func_fchown" >&6; }
17740 if test $ac_cv_func_fchown = yes; then
17741   :
17742 else
17743
17744
17745
17746
17747
17748
17749
17750   gl_LIBOBJS="$gl_LIBOBJS fchown-stub.$ac_objext"
17751
17752 fi
17753
17754
17755   fi
17756
17757
17758
17759   GNULIB_CHOWN=1
17760
17761
17762
17763
17764   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
17765   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
17766
17767   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
17768   # programs in the package would end up linked with that potentially-shared
17769   # library, inducing unnecessary run-time overhead.
17770   gl_saved_libs=$LIBS
17771     { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
17772 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
17773 if test "${ac_cv_search_clock_gettime+set}" = set; then
17774   echo $ECHO_N "(cached) $ECHO_C" >&6
17775 else
17776   ac_func_search_save_LIBS=$LIBS
17777 cat >conftest.$ac_ext <<_ACEOF
17778 /* confdefs.h.  */
17779 _ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h.  */
17783
17784 /* Override any GCC internal prototype to avoid an error.
17785    Use char because int might match the return type of a GCC
17786    builtin and then its argument prototype would still apply.  */
17787 #ifdef __cplusplus
17788 extern "C"
17789 #endif
17790 char clock_gettime ();
17791 int
17792 main ()
17793 {
17794 return clock_gettime ();
17795   ;
17796   return 0;
17797 }
17798 _ACEOF
17799 for ac_lib in '' rt posix4; do
17800   if test -z "$ac_lib"; then
17801     ac_res="none required"
17802   else
17803     ac_res=-l$ac_lib
17804     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17805   fi
17806   rm -f conftest.$ac_objext conftest$ac_exeext
17807 if { (ac_try="$ac_link"
17808 case "(($ac_try" in
17809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17810   *) ac_try_echo=$ac_try;;
17811 esac
17812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17813   (eval "$ac_link") 2>conftest.er1
17814   ac_status=$?
17815   grep -v '^ *+' conftest.er1 >conftest.err
17816   rm -f conftest.er1
17817   cat conftest.err >&5
17818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819   (exit $ac_status); } && {
17820          test -z "$ac_c_werror_flag" ||
17821          test ! -s conftest.err
17822        } && test -s conftest$ac_exeext &&
17823        $as_test_x conftest$ac_exeext; then
17824   ac_cv_search_clock_gettime=$ac_res
17825 else
17826   echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.$ac_ext >&5
17828
17829
17830 fi
17831
17832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17833       conftest$ac_exeext
17834   if test "${ac_cv_search_clock_gettime+set}" = set; then
17835   break
17836 fi
17837 done
17838 if test "${ac_cv_search_clock_gettime+set}" = set; then
17839   :
17840 else
17841   ac_cv_search_clock_gettime=no
17842 fi
17843 rm conftest.$ac_ext
17844 LIBS=$ac_func_search_save_LIBS
17845 fi
17846 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
17847 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
17848 ac_res=$ac_cv_search_clock_gettime
17849 if test "$ac_res" != no; then
17850   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17851   test "$ac_cv_search_clock_gettime" = "none required" ||
17852                     LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
17853 fi
17854
17855
17856
17857
17858 for ac_func in clock_gettime clock_settime
17859 do
17860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17861 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17863 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17864   echo $ECHO_N "(cached) $ECHO_C" >&6
17865 else
17866   cat >conftest.$ac_ext <<_ACEOF
17867 /* confdefs.h.  */
17868 _ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h.  */
17872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17873    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17874 #define $ac_func innocuous_$ac_func
17875
17876 /* System header to define __stub macros and hopefully few prototypes,
17877     which can conflict with char $ac_func (); below.
17878     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17879     <limits.h> exists even on freestanding compilers.  */
17880
17881 #ifdef __STDC__
17882 # include <limits.h>
17883 #else
17884 # include <assert.h>
17885 #endif
17886
17887 #undef $ac_func
17888
17889 /* Override any GCC internal prototype to avoid an error.
17890    Use char because int might match the return type of a GCC
17891    builtin and then its argument prototype would still apply.  */
17892 #ifdef __cplusplus
17893 extern "C"
17894 #endif
17895 char $ac_func ();
17896 /* The GNU C library defines this for functions which it implements
17897     to always fail with ENOSYS.  Some functions are actually named
17898     something starting with __ and the normal name is an alias.  */
17899 #if defined __stub_$ac_func || defined __stub___$ac_func
17900 choke me
17901 #endif
17902
17903 int
17904 main ()
17905 {
17906 return $ac_func ();
17907   ;
17908   return 0;
17909 }
17910 _ACEOF
17911 rm -f conftest.$ac_objext conftest$ac_exeext
17912 if { (ac_try="$ac_link"
17913 case "(($ac_try" in
17914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17915   *) ac_try_echo=$ac_try;;
17916 esac
17917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17918   (eval "$ac_link") 2>conftest.er1
17919   ac_status=$?
17920   grep -v '^ *+' conftest.er1 >conftest.err
17921   rm -f conftest.er1
17922   cat conftest.err >&5
17923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924   (exit $ac_status); } && {
17925          test -z "$ac_c_werror_flag" ||
17926          test ! -s conftest.err
17927        } && test -s conftest$ac_exeext &&
17928        $as_test_x conftest$ac_exeext; then
17929   eval "$as_ac_var=yes"
17930 else
17931   echo "$as_me: failed program was:" >&5
17932 sed 's/^/| /' conftest.$ac_ext >&5
17933
17934         eval "$as_ac_var=no"
17935 fi
17936
17937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17938       conftest$ac_exeext conftest.$ac_ext
17939 fi
17940 ac_res=`eval echo '${'$as_ac_var'}'`
17941                { echo "$as_me:$LINENO: result: $ac_res" >&5
17942 echo "${ECHO_T}$ac_res" >&6; }
17943 if test `eval echo '${'$as_ac_var'}'` = yes; then
17944   cat >>confdefs.h <<_ACEOF
17945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17946 _ACEOF
17947
17948 fi
17949 done
17950
17951   LIBS=$gl_saved_libs
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961   gl_LIBOBJS="$gl_LIBOBJS close-stream.$ac_objext"
17962
17963
17964     :
17965
17966
17967
17968 cat >>confdefs.h <<\_ACEOF
17969 #define GNULIB_CLOSE_STREAM 1
17970 _ACEOF
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981   gl_LIBOBJS="$gl_LIBOBJS closeout.$ac_objext"
17982
17983
17984     :
17985
17986   { echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
17987 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6; }
17988 if test "${gl_cv_struct_dirent_d_ino+set}" = set; then
17989   echo $ECHO_N "(cached) $ECHO_C" >&6
17990 else
17991   if test "$cross_compiling" = yes; then
17992   gl_cv_struct_dirent_d_ino=no
17993 else
17994   cat >conftest.$ac_ext <<_ACEOF
17995 /* confdefs.h.  */
17996 _ACEOF
17997 cat confdefs.h >>conftest.$ac_ext
17998 cat >>conftest.$ac_ext <<_ACEOF
17999 /* end confdefs.h.  */
18000 #include <sys/types.h>
18001              #include <sys/stat.h>
18002              #include <dirent.h>
18003
18004 int
18005 main ()
18006 {
18007 DIR *dp = opendir (".");
18008              struct dirent *e;
18009              struct stat st;
18010              if (! dp)
18011                return 1;
18012              e = readdir (dp);
18013              return ! (e
18014                        && stat (e->d_name, &st) == 0
18015                        && e->d_ino == st.st_ino);
18016   ;
18017   return 0;
18018 }
18019 _ACEOF
18020 rm -f conftest$ac_exeext
18021 if { (ac_try="$ac_link"
18022 case "(($ac_try" in
18023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024   *) ac_try_echo=$ac_try;;
18025 esac
18026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18027   (eval "$ac_link") 2>&5
18028   ac_status=$?
18029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18031   { (case "(($ac_try" in
18032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033   *) ac_try_echo=$ac_try;;
18034 esac
18035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036   (eval "$ac_try") 2>&5
18037   ac_status=$?
18038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039   (exit $ac_status); }; }; then
18040   gl_cv_struct_dirent_d_ino=yes
18041 else
18042   echo "$as_me: program exited with status $ac_status" >&5
18043 echo "$as_me: failed program was:" >&5
18044 sed 's/^/| /' conftest.$ac_ext >&5
18045
18046 ( exit $ac_status )
18047 gl_cv_struct_dirent_d_ino=no
18048 fi
18049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18050 fi
18051
18052
18053 fi
18054 { echo "$as_me:$LINENO: result: $gl_cv_struct_dirent_d_ino" >&5
18055 echo "${ECHO_T}$gl_cv_struct_dirent_d_ino" >&6; }
18056    if test $gl_cv_struct_dirent_d_ino = yes; then
18057
18058 cat >>confdefs.h <<\_ACEOF
18059 #define D_INO_IN_DIRENT 1
18060 _ACEOF
18061
18062    fi
18063
18064
18065
18066
18067
18068
18069 for ac_func in dirfd
18070 do
18071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18075   echo $ECHO_N "(cached) $ECHO_C" >&6
18076 else
18077   cat >conftest.$ac_ext <<_ACEOF
18078 /* confdefs.h.  */
18079 _ACEOF
18080 cat confdefs.h >>conftest.$ac_ext
18081 cat >>conftest.$ac_ext <<_ACEOF
18082 /* end confdefs.h.  */
18083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18084    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18085 #define $ac_func innocuous_$ac_func
18086
18087 /* System header to define __stub macros and hopefully few prototypes,
18088     which can conflict with char $ac_func (); below.
18089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18090     <limits.h> exists even on freestanding compilers.  */
18091
18092 #ifdef __STDC__
18093 # include <limits.h>
18094 #else
18095 # include <assert.h>
18096 #endif
18097
18098 #undef $ac_func
18099
18100 /* Override any GCC internal prototype to avoid an error.
18101    Use char because int might match the return type of a GCC
18102    builtin and then its argument prototype would still apply.  */
18103 #ifdef __cplusplus
18104 extern "C"
18105 #endif
18106 char $ac_func ();
18107 /* The GNU C library defines this for functions which it implements
18108     to always fail with ENOSYS.  Some functions are actually named
18109     something starting with __ and the normal name is an alias.  */
18110 #if defined __stub_$ac_func || defined __stub___$ac_func
18111 choke me
18112 #endif
18113
18114 int
18115 main ()
18116 {
18117 return $ac_func ();
18118   ;
18119   return 0;
18120 }
18121 _ACEOF
18122 rm -f conftest.$ac_objext conftest$ac_exeext
18123 if { (ac_try="$ac_link"
18124 case "(($ac_try" in
18125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126   *) ac_try_echo=$ac_try;;
18127 esac
18128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129   (eval "$ac_link") 2>conftest.er1
18130   ac_status=$?
18131   grep -v '^ *+' conftest.er1 >conftest.err
18132   rm -f conftest.er1
18133   cat conftest.err >&5
18134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135   (exit $ac_status); } && {
18136          test -z "$ac_c_werror_flag" ||
18137          test ! -s conftest.err
18138        } && test -s conftest$ac_exeext &&
18139        $as_test_x conftest$ac_exeext; then
18140   eval "$as_ac_var=yes"
18141 else
18142   echo "$as_me: failed program was:" >&5
18143 sed 's/^/| /' conftest.$ac_ext >&5
18144
18145         eval "$as_ac_var=no"
18146 fi
18147
18148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18149       conftest$ac_exeext conftest.$ac_ext
18150 fi
18151 ac_res=`eval echo '${'$as_ac_var'}'`
18152                { echo "$as_me:$LINENO: result: $ac_res" >&5
18153 echo "${ECHO_T}$ac_res" >&6; }
18154 if test `eval echo '${'$as_ac_var'}'` = yes; then
18155   cat >>confdefs.h <<_ACEOF
18156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18157 _ACEOF
18158
18159 fi
18160 done
18161
18162   { echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
18163 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6; }
18164 if test "${ac_cv_have_decl_dirfd+set}" = set; then
18165   echo $ECHO_N "(cached) $ECHO_C" >&6
18166 else
18167   cat >conftest.$ac_ext <<_ACEOF
18168 /* confdefs.h.  */
18169 _ACEOF
18170 cat confdefs.h >>conftest.$ac_ext
18171 cat >>conftest.$ac_ext <<_ACEOF
18172 /* end confdefs.h.  */
18173 #include <sys/types.h>
18174      #include <dirent.h>
18175
18176 int
18177 main ()
18178 {
18179 #ifndef dirfd
18180   (void) dirfd;
18181 #endif
18182
18183   ;
18184   return 0;
18185 }
18186 _ACEOF
18187 rm -f conftest.$ac_objext
18188 if { (ac_try="$ac_compile"
18189 case "(($ac_try" in
18190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191   *) ac_try_echo=$ac_try;;
18192 esac
18193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194   (eval "$ac_compile") 2>conftest.er1
18195   ac_status=$?
18196   grep -v '^ *+' conftest.er1 >conftest.err
18197   rm -f conftest.er1
18198   cat conftest.err >&5
18199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200   (exit $ac_status); } && {
18201          test -z "$ac_c_werror_flag" ||
18202          test ! -s conftest.err
18203        } && test -s conftest.$ac_objext; then
18204   ac_cv_have_decl_dirfd=yes
18205 else
18206   echo "$as_me: failed program was:" >&5
18207 sed 's/^/| /' conftest.$ac_ext >&5
18208
18209         ac_cv_have_decl_dirfd=no
18210 fi
18211
18212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18213 fi
18214 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
18215 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6; }
18216 if test $ac_cv_have_decl_dirfd = yes; then
18217
18218 cat >>confdefs.h <<_ACEOF
18219 #define HAVE_DECL_DIRFD 1
18220 _ACEOF
18221
18222
18223 else
18224   cat >>confdefs.h <<_ACEOF
18225 #define HAVE_DECL_DIRFD 0
18226 _ACEOF
18227
18228
18229 fi
18230
18231
18232
18233   { echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
18234 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6; }
18235 if test "${gl_cv_func_dirfd_macro+set}" = set; then
18236   echo $ECHO_N "(cached) $ECHO_C" >&6
18237 else
18238   cat >conftest.$ac_ext <<_ACEOF
18239 /* confdefs.h.  */
18240 _ACEOF
18241 cat confdefs.h >>conftest.$ac_ext
18242 cat >>conftest.$ac_ext <<_ACEOF
18243 /* end confdefs.h.  */
18244
18245 #include <sys/types.h>
18246 #include <dirent.h>
18247 #ifdef dirfd
18248  dirent_header_defines_dirfd
18249 #endif
18250 _ACEOF
18251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18252   $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
18253   gl_cv_func_dirfd_macro=yes
18254 else
18255   gl_cv_func_dirfd_macro=no
18256 fi
18257 rm -f conftest*
18258
18259 fi
18260 { echo "$as_me:$LINENO: result: $gl_cv_func_dirfd_macro" >&5
18261 echo "${ECHO_T}$gl_cv_func_dirfd_macro" >&6; }
18262
18263   # Use the replacement only if we have no function, macro,
18264   # or declaration with that name.
18265   if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$gl_cv_func_dirfd_macro \
18266       = no,no,no; then
18267
18268
18269
18270
18271
18272
18273
18274
18275 for ac_func in dirfd
18276 do
18277 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18278 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18280 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18281   echo $ECHO_N "(cached) $ECHO_C" >&6
18282 else
18283   cat >conftest.$ac_ext <<_ACEOF
18284 /* confdefs.h.  */
18285 _ACEOF
18286 cat confdefs.h >>conftest.$ac_ext
18287 cat >>conftest.$ac_ext <<_ACEOF
18288 /* end confdefs.h.  */
18289 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18290    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18291 #define $ac_func innocuous_$ac_func
18292
18293 /* System header to define __stub macros and hopefully few prototypes,
18294     which can conflict with char $ac_func (); below.
18295     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18296     <limits.h> exists even on freestanding compilers.  */
18297
18298 #ifdef __STDC__
18299 # include <limits.h>
18300 #else
18301 # include <assert.h>
18302 #endif
18303
18304 #undef $ac_func
18305
18306 /* Override any GCC internal prototype to avoid an error.
18307    Use char because int might match the return type of a GCC
18308    builtin and then its argument prototype would still apply.  */
18309 #ifdef __cplusplus
18310 extern "C"
18311 #endif
18312 char $ac_func ();
18313 /* The GNU C library defines this for functions which it implements
18314     to always fail with ENOSYS.  Some functions are actually named
18315     something starting with __ and the normal name is an alias.  */
18316 #if defined __stub_$ac_func || defined __stub___$ac_func
18317 choke me
18318 #endif
18319
18320 int
18321 main ()
18322 {
18323 return $ac_func ();
18324   ;
18325   return 0;
18326 }
18327 _ACEOF
18328 rm -f conftest.$ac_objext conftest$ac_exeext
18329 if { (ac_try="$ac_link"
18330 case "(($ac_try" in
18331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332   *) ac_try_echo=$ac_try;;
18333 esac
18334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335   (eval "$ac_link") 2>conftest.er1
18336   ac_status=$?
18337   grep -v '^ *+' conftest.er1 >conftest.err
18338   rm -f conftest.er1
18339   cat conftest.err >&5
18340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341   (exit $ac_status); } && {
18342          test -z "$ac_c_werror_flag" ||
18343          test ! -s conftest.err
18344        } && test -s conftest$ac_exeext &&
18345        $as_test_x conftest$ac_exeext; then
18346   eval "$as_ac_var=yes"
18347 else
18348   echo "$as_me: failed program was:" >&5
18349 sed 's/^/| /' conftest.$ac_ext >&5
18350
18351         eval "$as_ac_var=no"
18352 fi
18353
18354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18355       conftest$ac_exeext conftest.$ac_ext
18356 fi
18357 ac_res=`eval echo '${'$as_ac_var'}'`
18358                { echo "$as_me:$LINENO: result: $ac_res" >&5
18359 echo "${ECHO_T}$ac_res" >&6; }
18360 if test `eval echo '${'$as_ac_var'}'` = yes; then
18361   cat >>confdefs.h <<_ACEOF
18362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18363 _ACEOF
18364
18365 else
18366
18367     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
18368
18369 fi
18370 done
18371
18372
18373     { echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
18374 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6; }
18375 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
18376   echo $ECHO_N "(cached) $ECHO_C" >&6
18377 else
18378
18379         dirfd_save_CFLAGS=$CFLAGS
18380         for ac_expr in d_fd dd_fd; do
18381
18382           CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
18383           cat >conftest.$ac_ext <<_ACEOF
18384 /* confdefs.h.  */
18385 _ACEOF
18386 cat confdefs.h >>conftest.$ac_ext
18387 cat >>conftest.$ac_ext <<_ACEOF
18388 /* end confdefs.h.  */
18389 #include <sys/types.h>
18390              #include <dirent.h>
18391 int
18392 main ()
18393 {
18394 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
18395   ;
18396   return 0;
18397 }
18398 _ACEOF
18399 rm -f conftest.$ac_objext
18400 if { (ac_try="$ac_compile"
18401 case "(($ac_try" in
18402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18403   *) ac_try_echo=$ac_try;;
18404 esac
18405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18406   (eval "$ac_compile") 2>conftest.er1
18407   ac_status=$?
18408   grep -v '^ *+' conftest.er1 >conftest.err
18409   rm -f conftest.er1
18410   cat conftest.err >&5
18411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412   (exit $ac_status); } && {
18413          test -z "$ac_c_werror_flag" ||
18414          test ! -s conftest.err
18415        } && test -s conftest.$ac_objext; then
18416   dir_fd_found=yes
18417
18418 else
18419   echo "$as_me: failed program was:" >&5
18420 sed 's/^/| /' conftest.$ac_ext >&5
18421
18422
18423 fi
18424
18425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18426           CFLAGS=$dirfd_save_CFLAGS
18427           test "$dir_fd_found" = yes && break
18428         done
18429         test "$dir_fd_found" = yes || ac_expr=no_such_member
18430
18431         gl_cv_sys_dir_fd_member_name=$ac_expr
18432
18433
18434 fi
18435 { echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
18436 echo "${ECHO_T}$gl_cv_sys_dir_fd_member_name" >&6; }
18437     if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
18438
18439 cat >>confdefs.h <<_ACEOF
18440 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
18441 _ACEOF
18442
18443     fi
18444
18445
18446   fi
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456   gl_LIBOBJS="$gl_LIBOBJS basename.$ac_objext"
18457
18458
18459
18460
18461
18462
18463
18464
18465   gl_LIBOBJS="$gl_LIBOBJS dirname.$ac_objext"
18466
18467
18468
18469
18470
18471
18472
18473
18474   gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
18475
18476
18477
18478
18479
18480
18481
18482
18483   { echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
18484 echo $ECHO_N "checking whether // is distinct from /... $ECHO_C" >&6; }
18485 if test "${gl_cv_double_slash_root+set}" = set; then
18486   echo $ECHO_N "(cached) $ECHO_C" >&6
18487 else
18488    if test x"$cross_compiling" = xyes ; then
18489         # When cross-compiling, there is no way to tell whether // is special
18490         # short of a list of hosts.  However, the only known hosts to date
18491         # that have a distinct // are Apollo DomainOS (too old to port to),
18492         # Cygwin, and z/OS.  If anyone knows of another system for which // has
18493         # special semantics and is distinct from /, please report it to
18494         # <bug-gnulib@gnu.org>.
18495         case $host in
18496           *-cygwin | i370-ibm-openedition)
18497             gl_cv_double_slash_root=yes ;;
18498           *)
18499             # Be optimistic and assume that / and // are the same when we
18500             # don't know.
18501             gl_cv_double_slash_root='unknown, assuming no' ;;
18502         esac
18503       else
18504         set x `ls -di / // 2>/dev/null`
18505         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
18506           gl_cv_double_slash_root=no
18507         else
18508           gl_cv_double_slash_root=yes
18509         fi
18510       fi
18511 fi
18512 { echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
18513 echo "${ECHO_T}$gl_cv_double_slash_root" >&6; }
18514   if test "$gl_cv_double_slash_root" = yes; then
18515
18516 cat >>confdefs.h <<\_ACEOF
18517 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
18518 _ACEOF
18519
18520   fi
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530   if test $ac_cv_func_dup2 = no; then
18531     HAVE_DUP2=0
18532
18533
18534
18535
18536
18537
18538
18539   gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
18540
18541   fi
18542
18543
18544
18545   GNULIB_DUP2=1
18546
18547
18548
18549
18550
18551
18552   { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
18553 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
18554   if test "${gt_cv_var_environ_declaration+set}" = set; then
18555   echo $ECHO_N "(cached) $ECHO_C" >&6
18556 else
18557
18558     cat >conftest.$ac_ext <<_ACEOF
18559 /* confdefs.h.  */
18560 _ACEOF
18561 cat confdefs.h >>conftest.$ac_ext
18562 cat >>conftest.$ac_ext <<_ACEOF
18563 /* end confdefs.h.  */
18564 #include <unistd.h>
18565       extern struct { int foo; } environ;
18566 int
18567 main ()
18568 {
18569 environ.foo = 1;
18570   ;
18571   return 0;
18572 }
18573 _ACEOF
18574 rm -f conftest.$ac_objext
18575 if { (ac_try="$ac_compile"
18576 case "(($ac_try" in
18577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18578   *) ac_try_echo=$ac_try;;
18579 esac
18580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18581   (eval "$ac_compile") 2>conftest.er1
18582   ac_status=$?
18583   grep -v '^ *+' conftest.er1 >conftest.err
18584   rm -f conftest.er1
18585   cat conftest.err >&5
18586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587   (exit $ac_status); } && {
18588          test -z "$ac_c_werror_flag" ||
18589          test ! -s conftest.err
18590        } && test -s conftest.$ac_objext; then
18591   gt_cv_var_environ_declaration=no
18592 else
18593   echo "$as_me: failed program was:" >&5
18594 sed 's/^/| /' conftest.$ac_ext >&5
18595
18596         gt_cv_var_environ_declaration=yes
18597 fi
18598
18599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18600 fi
18601
18602   { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
18603 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
18604   if test $gt_cv_var_environ_declaration = yes; then
18605
18606 cat >>confdefs.h <<\_ACEOF
18607 #define HAVE_ENVIRON_DECL 1
18608 _ACEOF
18609
18610   fi
18611
18612
18613   if test $gt_cv_var_environ_declaration != yes; then
18614     HAVE_DECL_ENVIRON=0
18615   fi
18616
18617
18618
18619   GNULIB_ENVIRON=1
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632 { echo "$as_me:$LINENO: checking for error_at_line" >&5
18633 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
18634 if test "${ac_cv_lib_error_at_line+set}" = set; then
18635   echo $ECHO_N "(cached) $ECHO_C" >&6
18636 else
18637   cat >conftest.$ac_ext <<_ACEOF
18638 /* confdefs.h.  */
18639 _ACEOF
18640 cat confdefs.h >>conftest.$ac_ext
18641 cat >>conftest.$ac_ext <<_ACEOF
18642 /* end confdefs.h.  */
18643 #include <error.h>
18644 int
18645 main ()
18646 {
18647 error_at_line (0, 0, "", 0, "an error occurred");
18648   ;
18649   return 0;
18650 }
18651 _ACEOF
18652 rm -f conftest.$ac_objext conftest$ac_exeext
18653 if { (ac_try="$ac_link"
18654 case "(($ac_try" in
18655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18656   *) ac_try_echo=$ac_try;;
18657 esac
18658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18659   (eval "$ac_link") 2>conftest.er1
18660   ac_status=$?
18661   grep -v '^ *+' conftest.er1 >conftest.err
18662   rm -f conftest.er1
18663   cat conftest.err >&5
18664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665   (exit $ac_status); } && {
18666          test -z "$ac_c_werror_flag" ||
18667          test ! -s conftest.err
18668        } && test -s conftest$ac_exeext &&
18669        $as_test_x conftest$ac_exeext; then
18670   ac_cv_lib_error_at_line=yes
18671 else
18672   echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.$ac_ext >&5
18674
18675         ac_cv_lib_error_at_line=no
18676 fi
18677
18678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18679       conftest$ac_exeext conftest.$ac_ext
18680 fi
18681 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
18682 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
18683 if test $ac_cv_lib_error_at_line = no; then
18684
18685
18686
18687
18688
18689
18690
18691   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
18692
18693 fi
18694
18695
18696
18697   :
18698
18699
18700
18701
18702   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
18703
18704
18705
18706   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716   gl_LIBOBJS="$gl_LIBOBJS exclude.$ac_objext"
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727   gl_LIBOBJS="$gl_LIBOBJS exitfail.$ac_objext"
18728
18729
18730     :
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740   if test $ac_cv_func_fchdir = no; then
18741     REPLACE_FCHDIR=1
18742
18743
18744
18745
18746
18747
18748
18749   gl_LIBOBJS="$gl_LIBOBJS fchdir.$ac_objext"
18750
18751     :
18752
18753 cat >>confdefs.h <<\_ACEOF
18754 #define FCHDIR_REPLACEMENT 1
18755 _ACEOF
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767      if test $gl_cv_have_include_next = yes; then
18768        gl_cv_next_dirent_h='<'dirent.h'>'
18769      else
18770        { echo "$as_me:$LINENO: checking absolute name of <dirent.h>" >&5
18771 echo $ECHO_N "checking absolute name of <dirent.h>... $ECHO_C" >&6; }
18772 if test "${gl_cv_next_dirent_h+set}" = set; then
18773   echo $ECHO_N "(cached) $ECHO_C" >&6
18774 else
18775
18776           if test $ac_cv_header_dirent_h = yes; then
18777             cat >conftest.$ac_ext <<_ACEOF
18778 /* confdefs.h.  */
18779 _ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h.  */
18783 #include <dirent.h>
18784
18785 _ACEOF
18786                                     gl_cv_next_dirent_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18787                sed -n '\#/dirent.h#{
18788                  s#.*"\(.*/dirent.h\)".*#\1#
18789                  s#^/[^/]#//&#
18790                  p
18791                  q
18792                }'`'"'
18793           else
18794             gl_cv_next_dirent_h='<'dirent.h'>'
18795           fi
18796
18797 fi
18798 { echo "$as_me:$LINENO: result: $gl_cv_next_dirent_h" >&5
18799 echo "${ECHO_T}$gl_cv_next_dirent_h" >&6; }
18800      fi
18801      NEXT_DIRENT_H=$gl_cv_next_dirent_h
18802
18803
18804
18805     DIRENT_H='dirent.h'
18806   else
18807     DIRENT_H=
18808   fi
18809
18810
18811
18812
18813   GNULIB_FCHDIR=1
18814
18815
18816
18817   { echo "$as_me:$LINENO: checking for working fcntl.h" >&5
18818 echo $ECHO_N "checking for working fcntl.h... $ECHO_C" >&6; }
18819 if test "${gl_cv_header_working_fcntl_h+set}" = set; then
18820   echo $ECHO_N "(cached) $ECHO_C" >&6
18821 else
18822   if test "$cross_compiling" = yes; then
18823   gl_cv_header_working_fcntl_h=cross-compiling
18824 else
18825   cat >conftest.$ac_ext <<_ACEOF
18826 /* confdefs.h.  */
18827 _ACEOF
18828 cat confdefs.h >>conftest.$ac_ext
18829 cat >>conftest.$ac_ext <<_ACEOF
18830 /* end confdefs.h.  */
18831 #include <sys/types.h>
18832            #include <sys/stat.h>
18833            #include <unistd.h>
18834            #include <fcntl.h>
18835            #ifndef O_NOATIME
18836             #define O_NOATIME 0
18837            #endif
18838            #ifndef O_NOFOLLOW
18839             #define O_NOFOLLOW 0
18840            #endif
18841            static int const constants[] =
18842             {
18843               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
18844               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
18845             };
18846
18847 int
18848 main ()
18849 {
18850
18851             int status = !constants;
18852             {
18853               static char const sym[] = "conftest.sym";
18854               if (symlink (".", sym) != 0
18855                   || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
18856                 status |= 32;
18857             }
18858             {
18859               static char const file[] = "confdefs.h";
18860               int fd = open (file, O_RDONLY | O_NOATIME);
18861               char c;
18862               struct stat st0, st1;
18863               if (fd < 0
18864                   || fstat (fd, &st0) != 0
18865                   || sleep (1) != 0
18866                   || read (fd, &c, 1) != 1
18867                   || close (fd) != 0
18868                   || stat (file, &st1) != 0
18869                   || st0.st_atime != st1.st_atime)
18870                 status |= 64;
18871             }
18872             return status;
18873   ;
18874   return 0;
18875 }
18876 _ACEOF
18877 rm -f conftest$ac_exeext
18878 if { (ac_try="$ac_link"
18879 case "(($ac_try" in
18880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881   *) ac_try_echo=$ac_try;;
18882 esac
18883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884   (eval "$ac_link") 2>&5
18885   ac_status=$?
18886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18888   { (case "(($ac_try" in
18889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890   *) ac_try_echo=$ac_try;;
18891 esac
18892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893   (eval "$ac_try") 2>&5
18894   ac_status=$?
18895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896   (exit $ac_status); }; }; then
18897   gl_cv_header_working_fcntl_h=yes
18898 else
18899   echo "$as_me: program exited with status $ac_status" >&5
18900 echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18902
18903 ( exit $ac_status )
18904 case $? in #(
18905         32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
18906         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
18907         96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
18908          *) gl_cv_header_working_fcntl_h='no';;
18909         esac
18910 fi
18911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18912 fi
18913
18914
18915 fi
18916 { echo "$as_me:$LINENO: result: $gl_cv_header_working_fcntl_h" >&5
18917 echo "${ECHO_T}$gl_cv_header_working_fcntl_h" >&6; }
18918
18919   case $gl_cv_header_working_fcntl_h in #(
18920   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
18921   *) ac_val=1;;
18922   esac
18923
18924 cat >>confdefs.h <<_ACEOF
18925 #define HAVE_WORKING_O_NOATIME $ac_val
18926 _ACEOF
18927
18928
18929   case $gl_cv_header_working_fcntl_h in #(
18930   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
18931   *) ac_val=1;;
18932   esac
18933
18934 cat >>confdefs.h <<_ACEOF
18935 #define HAVE_WORKING_O_NOFOLLOW $ac_val
18936 _ACEOF
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949      if test $gl_cv_have_include_next = yes; then
18950        gl_cv_next_fcntl_h='<'fcntl.h'>'
18951      else
18952        { echo "$as_me:$LINENO: checking absolute name of <fcntl.h>" >&5
18953 echo $ECHO_N "checking absolute name of <fcntl.h>... $ECHO_C" >&6; }
18954 if test "${gl_cv_next_fcntl_h+set}" = set; then
18955   echo $ECHO_N "(cached) $ECHO_C" >&6
18956 else
18957
18958           if test $ac_cv_header_fcntl_h = yes; then
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 <fcntl.h>
18966
18967 _ACEOF
18968                                     gl_cv_next_fcntl_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18969                sed -n '\#/fcntl.h#{
18970                  s#.*"\(.*/fcntl.h\)".*#\1#
18971                  s#^/[^/]#//&#
18972                  p
18973                  q
18974                }'`'"'
18975           else
18976             gl_cv_next_fcntl_h='<'fcntl.h'>'
18977           fi
18978
18979 fi
18980 { echo "$as_me:$LINENO: result: $gl_cv_next_fcntl_h" >&5
18981 echo "${ECHO_T}$gl_cv_next_fcntl_h" >&6; }
18982      fi
18983      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
18984
18985
18986
18987   FCNTL_H='fcntl.h'
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998   gl_LIBOBJS="$gl_LIBOBJS open-safer.$ac_objext"
18999
19000
19001
19002
19003
19004
19005
19006
19007   gl_LIBOBJS="$gl_LIBOBJS creat-safer.$ac_objext"
19008
19009
19010
19011
19012 cat >>confdefs.h <<\_ACEOF
19013 #define GNULIB_FCNTL_SAFER 1
19014 _ACEOF
19015
19016
19017
19018   { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19019 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19020 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19021   echo $ECHO_N "(cached) $ECHO_C" >&6
19022 else
19023   cat >conftest.$ac_ext <<_ACEOF
19024 /* confdefs.h.  */
19025 _ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h.  */
19029 $ac_includes_default
19030 int
19031 main ()
19032 {
19033 static struct stat ac_aggr;
19034 if (ac_aggr.st_blocks)
19035 return 0;
19036   ;
19037   return 0;
19038 }
19039 _ACEOF
19040 rm -f conftest.$ac_objext
19041 if { (ac_try="$ac_compile"
19042 case "(($ac_try" in
19043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19044   *) ac_try_echo=$ac_try;;
19045 esac
19046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19047   (eval "$ac_compile") 2>conftest.er1
19048   ac_status=$?
19049   grep -v '^ *+' conftest.er1 >conftest.err
19050   rm -f conftest.er1
19051   cat conftest.err >&5
19052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053   (exit $ac_status); } && {
19054          test -z "$ac_c_werror_flag" ||
19055          test ! -s conftest.err
19056        } && test -s conftest.$ac_objext; then
19057   ac_cv_member_struct_stat_st_blocks=yes
19058 else
19059   echo "$as_me: failed program was:" >&5
19060 sed 's/^/| /' conftest.$ac_ext >&5
19061
19062         cat >conftest.$ac_ext <<_ACEOF
19063 /* confdefs.h.  */
19064 _ACEOF
19065 cat confdefs.h >>conftest.$ac_ext
19066 cat >>conftest.$ac_ext <<_ACEOF
19067 /* end confdefs.h.  */
19068 $ac_includes_default
19069 int
19070 main ()
19071 {
19072 static struct stat ac_aggr;
19073 if (sizeof ac_aggr.st_blocks)
19074 return 0;
19075   ;
19076   return 0;
19077 }
19078 _ACEOF
19079 rm -f conftest.$ac_objext
19080 if { (ac_try="$ac_compile"
19081 case "(($ac_try" in
19082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19083   *) ac_try_echo=$ac_try;;
19084 esac
19085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19086   (eval "$ac_compile") 2>conftest.er1
19087   ac_status=$?
19088   grep -v '^ *+' conftest.er1 >conftest.err
19089   rm -f conftest.er1
19090   cat conftest.err >&5
19091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092   (exit $ac_status); } && {
19093          test -z "$ac_c_werror_flag" ||
19094          test ! -s conftest.err
19095        } && test -s conftest.$ac_objext; then
19096   ac_cv_member_struct_stat_st_blocks=yes
19097 else
19098   echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.$ac_ext >&5
19100
19101         ac_cv_member_struct_stat_st_blocks=no
19102 fi
19103
19104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19105 fi
19106
19107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19108 fi
19109 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19110 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
19111 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19112
19113 cat >>confdefs.h <<_ACEOF
19114 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19115 _ACEOF
19116
19117
19118 cat >>confdefs.h <<\_ACEOF
19119 #define HAVE_ST_BLOCKS 1
19120 _ACEOF
19121
19122 else
19123
19124
19125
19126
19127
19128
19129
19130   gl_LIBOBJS="$gl_LIBOBJS fileblocks.$ac_objext"
19131
19132 fi
19133
19134
19135     if test $ac_cv_member_struct_stat_st_blocks = no; then
19136
19137
19138
19139
19140
19141
19142
19143   :
19144
19145   fi
19146
19147
19148
19149
19150   FLOAT_H=
19151   case "$host_os" in
19152     beos* | openbsd*)
19153       FLOAT_H=float.h
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164      if test $gl_cv_have_include_next = yes; then
19165        gl_cv_next_float_h='<'float.h'>'
19166      else
19167        { echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
19168 echo $ECHO_N "checking absolute name of <float.h>... $ECHO_C" >&6; }
19169 if test "${gl_cv_next_float_h+set}" = set; then
19170   echo $ECHO_N "(cached) $ECHO_C" >&6
19171 else
19172
19173           if test $ac_cv_header_float_h = yes; then
19174             cat >conftest.$ac_ext <<_ACEOF
19175 /* confdefs.h.  */
19176 _ACEOF
19177 cat confdefs.h >>conftest.$ac_ext
19178 cat >>conftest.$ac_ext <<_ACEOF
19179 /* end confdefs.h.  */
19180 #include <float.h>
19181
19182 _ACEOF
19183                                     gl_cv_next_float_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19184                sed -n '\#/float.h#{
19185                  s#.*"\(.*/float.h\)".*#\1#
19186                  s#^/[^/]#//&#
19187                  p
19188                  q
19189                }'`'"'
19190           else
19191             gl_cv_next_float_h='<'float.h'>'
19192           fi
19193
19194 fi
19195 { echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
19196 echo "${ECHO_T}$gl_cv_next_float_h" >&6; }
19197      fi
19198      NEXT_FLOAT_H=$gl_cv_next_float_h
19199
19200
19201
19202       ;;
19203   esac
19204
19205
19206   # No macro. You should also use one of fnmatch-posix or fnmatch-gnu.
19207
19208
19209
19210   FNMATCH_H=
19211   { echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
19212 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6; }
19213 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
19214   echo $ECHO_N "(cached) $ECHO_C" >&6
19215 else
19216               if test "$cross_compiling" = yes; then
19217   ac_cv_func_fnmatch_gnu=cross
19218 else
19219   cat >conftest.$ac_ext <<_ACEOF
19220 /* confdefs.h.  */
19221 _ACEOF
19222 cat confdefs.h >>conftest.$ac_ext
19223 cat >>conftest.$ac_ext <<_ACEOF
19224 /* end confdefs.h.  */
19225 #include <fnmatch.h>
19226            static int
19227            y (char const *pattern, char const *string, int flags)
19228            {
19229              return fnmatch (pattern, string, flags) == 0;
19230            }
19231            static int
19232            n (char const *pattern, char const *string, int flags)
19233            {
19234              return fnmatch (pattern, string, flags) == FNM_NOMATCH;
19235            }
19236
19237 int
19238 main ()
19239 {
19240 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
19241            char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
19242            static char const A_1[] = { 'A' - 1, 0 };
19243            static char const A01[] = { 'A' + 1, 0 };
19244            static char const a_1[] = { 'a' - 1, 0 };
19245            static char const a01[] = { 'a' + 1, 0 };
19246            static char const bs_1[] = { '\\\\' - 1, 0 };
19247            static char const bs01[] = { '\\\\' + 1, 0 };
19248            return
19249             !(n ("a*", "", 0)
19250               && y ("a*", "abc", 0)
19251               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
19252               && y ("a\\\\bc", "abc", 0)
19253               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
19254               && y ("*x", ".x", 0)
19255               && n ("*x", ".x", FNM_PERIOD)
19256               && y (Apat, "\\\\", 0) && y (Apat, "A", 0)
19257               && y (apat, "\\\\", 0) && y (apat, "a", 0)
19258               && n (Apat, A_1, 0) == ('A' < '\\\\')
19259               && n (apat, a_1, 0) == ('a' < '\\\\')
19260               && y (Apat, A01, 0) == ('A' < '\\\\')
19261               && y (apat, a01, 0) == ('a' < '\\\\')
19262               && y (Apat, bs_1, 0) == ('A' < '\\\\')
19263               && y (apat, bs_1, 0) == ('a' < '\\\\')
19264               && n (Apat, bs01, 0) == ('A' < '\\\\')
19265               && n (apat, bs01, 0) == ('a' < '\\\\')
19266               && y ("xxXX", "xXxX", FNM_CASEFOLD)
19267                     && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
19268                     && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
19269                     && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
19270                     && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
19271                     && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR));
19272   ;
19273   return 0;
19274 }
19275 _ACEOF
19276 rm -f conftest$ac_exeext
19277 if { (ac_try="$ac_link"
19278 case "(($ac_try" in
19279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280   *) ac_try_echo=$ac_try;;
19281 esac
19282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283   (eval "$ac_link") 2>&5
19284   ac_status=$?
19285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19287   { (case "(($ac_try" in
19288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289   *) ac_try_echo=$ac_try;;
19290 esac
19291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19292   (eval "$ac_try") 2>&5
19293   ac_status=$?
19294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295   (exit $ac_status); }; }; then
19296   ac_cv_func_fnmatch_gnu=yes
19297 else
19298   echo "$as_me: program exited with status $ac_status" >&5
19299 echo "$as_me: failed program was:" >&5
19300 sed 's/^/| /' conftest.$ac_ext >&5
19301
19302 ( exit $ac_status )
19303 ac_cv_func_fnmatch_gnu=no
19304 fi
19305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19306 fi
19307
19308
19309 fi
19310 { echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
19311 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6; }
19312 if test $ac_cv_func_fnmatch_gnu = yes; then
19313   rm -f lib/fnmatch.h
19314 else
19315   { echo "$as_me:$LINENO: checking whether isblank is declared" >&5
19316 echo $ECHO_N "checking whether isblank is declared... $ECHO_C" >&6; }
19317 if test "${ac_cv_have_decl_isblank+set}" = set; then
19318   echo $ECHO_N "(cached) $ECHO_C" >&6
19319 else
19320   cat >conftest.$ac_ext <<_ACEOF
19321 /* confdefs.h.  */
19322 _ACEOF
19323 cat confdefs.h >>conftest.$ac_ext
19324 cat >>conftest.$ac_ext <<_ACEOF
19325 /* end confdefs.h.  */
19326 #include <ctype.h>
19327
19328 int
19329 main ()
19330 {
19331 #ifndef isblank
19332   (void) isblank;
19333 #endif
19334
19335   ;
19336   return 0;
19337 }
19338 _ACEOF
19339 rm -f conftest.$ac_objext
19340 if { (ac_try="$ac_compile"
19341 case "(($ac_try" in
19342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343   *) ac_try_echo=$ac_try;;
19344 esac
19345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19346   (eval "$ac_compile") 2>conftest.er1
19347   ac_status=$?
19348   grep -v '^ *+' conftest.er1 >conftest.err
19349   rm -f conftest.er1
19350   cat conftest.err >&5
19351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352   (exit $ac_status); } && {
19353          test -z "$ac_c_werror_flag" ||
19354          test ! -s conftest.err
19355        } && test -s conftest.$ac_objext; then
19356   ac_cv_have_decl_isblank=yes
19357 else
19358   echo "$as_me: failed program was:" >&5
19359 sed 's/^/| /' conftest.$ac_ext >&5
19360
19361         ac_cv_have_decl_isblank=no
19362 fi
19363
19364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19365 fi
19366 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
19367 echo "${ECHO_T}$ac_cv_have_decl_isblank" >&6; }
19368 if test $ac_cv_have_decl_isblank = yes; then
19369
19370 cat >>confdefs.h <<_ACEOF
19371 #define HAVE_DECL_ISBLANK 1
19372 _ACEOF
19373
19374
19375 else
19376   cat >>confdefs.h <<_ACEOF
19377 #define HAVE_DECL_ISBLANK 0
19378 _ACEOF
19379
19380
19381 fi
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417   gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
19418
19419 FNMATCH_H=fnmatch.h
19420
19421 fi
19422
19423
19424   if test $ac_cv_func_fnmatch_gnu != yes; then
19425
19426 cat >>confdefs.h <<\_ACEOF
19427 #define fnmatch gnu_fnmatch
19428 _ACEOF
19429
19430   fi
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446   fp_headers='
19447 #     include <stdio.h>
19448 #     if HAVE_STDIO_EXT_H
19449 #      include <stdio_ext.h>
19450 #     endif
19451 '
19452   { echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
19453 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6; }
19454 if test "${ac_cv_have_decl___fpending+set}" = set; then
19455   echo $ECHO_N "(cached) $ECHO_C" >&6
19456 else
19457   cat >conftest.$ac_ext <<_ACEOF
19458 /* confdefs.h.  */
19459 _ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h.  */
19463 $fp_headers
19464
19465 int
19466 main ()
19467 {
19468 #ifndef __fpending
19469   (void) __fpending;
19470 #endif
19471
19472   ;
19473   return 0;
19474 }
19475 _ACEOF
19476 rm -f conftest.$ac_objext
19477 if { (ac_try="$ac_compile"
19478 case "(($ac_try" in
19479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19480   *) ac_try_echo=$ac_try;;
19481 esac
19482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19483   (eval "$ac_compile") 2>conftest.er1
19484   ac_status=$?
19485   grep -v '^ *+' conftest.er1 >conftest.err
19486   rm -f conftest.er1
19487   cat conftest.err >&5
19488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489   (exit $ac_status); } && {
19490          test -z "$ac_c_werror_flag" ||
19491          test ! -s conftest.err
19492        } && test -s conftest.$ac_objext; then
19493   ac_cv_have_decl___fpending=yes
19494 else
19495   echo "$as_me: failed program was:" >&5
19496 sed 's/^/| /' conftest.$ac_ext >&5
19497
19498         ac_cv_have_decl___fpending=no
19499 fi
19500
19501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19502 fi
19503 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
19504 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6; }
19505 if test $ac_cv_have_decl___fpending = yes; then
19506
19507 cat >>confdefs.h <<_ACEOF
19508 #define HAVE_DECL___FPENDING 1
19509 _ACEOF
19510
19511
19512 else
19513   cat >>confdefs.h <<_ACEOF
19514 #define HAVE_DECL___FPENDING 0
19515 _ACEOF
19516
19517
19518 fi
19519
19520
19521   if test $ac_cv_func___fpending = no; then
19522     { echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
19523 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6; }
19524 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
19525   echo $ECHO_N "(cached) $ECHO_C" >&6
19526 else
19527
19528         for ac_expr in                                                    \
19529                                                                           \
19530             '# glibc2'                                                    \
19531             'fp->_IO_write_ptr - fp->_IO_write_base'                      \
19532                                                                           \
19533             '# traditional Unix'                                          \
19534             'fp->_ptr - fp->_base'                                        \
19535                                                                           \
19536             '# BSD'                                                       \
19537             'fp->_p - fp->_bf._base'                                      \
19538                                                                           \
19539             '# SCO, Unixware'                                             \
19540             '(fp->__ptr ? fp->__ptr - fp->__base : 0)'                    \
19541                                                                           \
19542             '# QNX'                                                       \
19543             '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
19544                                                                           \
19545             '# old glibc?'                                                \
19546             'fp->__bufp - fp->__buffer'                                   \
19547                                                                           \
19548             '# old glibc iostream?'                                       \
19549             'fp->_pptr - fp->_pbase'                                      \
19550                                                                           \
19551             '# VMS'                                                       \
19552             '(*fp)->_ptr - (*fp)->_base'                                  \
19553                                                                           \
19554             '# e.g., DGUX R4.11; the info is not available'               \
19555             1                                                             \
19556             ; do
19557
19558           # Skip each embedded comment.
19559           case "$ac_expr" in '#'*) continue;; esac
19560
19561           cat >conftest.$ac_ext <<_ACEOF
19562 /* confdefs.h.  */
19563 _ACEOF
19564 cat confdefs.h >>conftest.$ac_ext
19565 cat >>conftest.$ac_ext <<_ACEOF
19566 /* end confdefs.h.  */
19567 #include <stdio.h>
19568
19569 int
19570 main ()
19571 {
19572 FILE *fp = stdin; (void) ($ac_expr);
19573   ;
19574   return 0;
19575 }
19576 _ACEOF
19577 rm -f conftest.$ac_objext
19578 if { (ac_try="$ac_compile"
19579 case "(($ac_try" in
19580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19581   *) ac_try_echo=$ac_try;;
19582 esac
19583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19584   (eval "$ac_compile") 2>conftest.er1
19585   ac_status=$?
19586   grep -v '^ *+' conftest.er1 >conftest.err
19587   rm -f conftest.er1
19588   cat conftest.err >&5
19589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590   (exit $ac_status); } && {
19591          test -z "$ac_c_werror_flag" ||
19592          test ! -s conftest.err
19593        } && test -s conftest.$ac_objext; then
19594   fp_done=yes
19595
19596 else
19597   echo "$as_me: failed program was:" >&5
19598 sed 's/^/| /' conftest.$ac_ext >&5
19599
19600
19601 fi
19602
19603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19604           test "$fp_done" = yes && break
19605         done
19606
19607         ac_cv_sys_pending_output_n_bytes=$ac_expr
19608
19609
19610 fi
19611 { echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
19612 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6; }
19613
19614 cat >>confdefs.h <<_ACEOF
19615 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
19616 _ACEOF
19617
19618
19619
19620
19621
19622
19623
19624
19625   gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
19626
19627   fi
19628
19629
19630
19631
19632
19633
19634
19635
19636   { echo "$as_me:$LINENO: checking for fseeko" >&5
19637 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6; }
19638 if test "${gl_cv_func_fseeko+set}" = set; then
19639   echo $ECHO_N "(cached) $ECHO_C" >&6
19640 else
19641
19642       cat >conftest.$ac_ext <<_ACEOF
19643 /* confdefs.h.  */
19644 _ACEOF
19645 cat confdefs.h >>conftest.$ac_ext
19646 cat >>conftest.$ac_ext <<_ACEOF
19647 /* end confdefs.h.  */
19648 #include <stdio.h>
19649 int
19650 main ()
19651 {
19652 fseeko (stdin, 0, 0);
19653   ;
19654   return 0;
19655 }
19656 _ACEOF
19657 rm -f conftest.$ac_objext conftest$ac_exeext
19658 if { (ac_try="$ac_link"
19659 case "(($ac_try" in
19660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19661   *) ac_try_echo=$ac_try;;
19662 esac
19663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19664   (eval "$ac_link") 2>conftest.er1
19665   ac_status=$?
19666   grep -v '^ *+' conftest.er1 >conftest.err
19667   rm -f conftest.er1
19668   cat conftest.err >&5
19669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670   (exit $ac_status); } && {
19671          test -z "$ac_c_werror_flag" ||
19672          test ! -s conftest.err
19673        } && test -s conftest$ac_exeext &&
19674        $as_test_x conftest$ac_exeext; then
19675   gl_cv_func_fseeko=yes
19676 else
19677   echo "$as_me: failed program was:" >&5
19678 sed 's/^/| /' conftest.$ac_ext >&5
19679
19680         gl_cv_func_fseeko=no
19681 fi
19682
19683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19684       conftest$ac_exeext conftest.$ac_ext
19685
19686 fi
19687 { echo "$as_me:$LINENO: result: $gl_cv_func_fseeko" >&5
19688 echo "${ECHO_T}$gl_cv_func_fseeko" >&6; }
19689   if test $gl_cv_func_fseeko = no; then
19690     HAVE_FSEEKO=0
19691
19692
19693
19694
19695
19696
19697
19698
19699   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
19700
19701
19702   REPLACE_FSEEKO=1
19703
19704   elif test $gl_cv_var_stdin_large_offset = no; then
19705
19706
19707
19708
19709
19710
19711
19712
19713   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
19714
19715
19716   REPLACE_FSEEKO=1
19717
19718   fi
19719
19720
19721
19722   GNULIB_FSEEKO=1
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733   if test $ac_cv_func_ftruncate = no; then
19734     HAVE_FTRUNCATE=0
19735
19736
19737
19738
19739
19740
19741
19742   gl_LIBOBJS="$gl_LIBOBJS ftruncate.$ac_objext"
19743
19744
19745
19746 for ac_func in chsize
19747 do
19748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19752   echo $ECHO_N "(cached) $ECHO_C" >&6
19753 else
19754   cat >conftest.$ac_ext <<_ACEOF
19755 /* confdefs.h.  */
19756 _ACEOF
19757 cat confdefs.h >>conftest.$ac_ext
19758 cat >>conftest.$ac_ext <<_ACEOF
19759 /* end confdefs.h.  */
19760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19761    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19762 #define $ac_func innocuous_$ac_func
19763
19764 /* System header to define __stub macros and hopefully few prototypes,
19765     which can conflict with char $ac_func (); below.
19766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19767     <limits.h> exists even on freestanding compilers.  */
19768
19769 #ifdef __STDC__
19770 # include <limits.h>
19771 #else
19772 # include <assert.h>
19773 #endif
19774
19775 #undef $ac_func
19776
19777 /* Override any GCC internal prototype to avoid an error.
19778    Use char because int might match the return type of a GCC
19779    builtin and then its argument prototype would still apply.  */
19780 #ifdef __cplusplus
19781 extern "C"
19782 #endif
19783 char $ac_func ();
19784 /* The GNU C library defines this for functions which it implements
19785     to always fail with ENOSYS.  Some functions are actually named
19786     something starting with __ and the normal name is an alias.  */
19787 #if defined __stub_$ac_func || defined __stub___$ac_func
19788 choke me
19789 #endif
19790
19791 int
19792 main ()
19793 {
19794 return $ac_func ();
19795   ;
19796   return 0;
19797 }
19798 _ACEOF
19799 rm -f conftest.$ac_objext conftest$ac_exeext
19800 if { (ac_try="$ac_link"
19801 case "(($ac_try" in
19802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19803   *) ac_try_echo=$ac_try;;
19804 esac
19805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19806   (eval "$ac_link") 2>conftest.er1
19807   ac_status=$?
19808   grep -v '^ *+' conftest.er1 >conftest.err
19809   rm -f conftest.er1
19810   cat conftest.err >&5
19811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812   (exit $ac_status); } && {
19813          test -z "$ac_c_werror_flag" ||
19814          test ! -s conftest.err
19815        } && test -s conftest$ac_exeext &&
19816        $as_test_x conftest$ac_exeext; then
19817   eval "$as_ac_var=yes"
19818 else
19819   echo "$as_me: failed program was:" >&5
19820 sed 's/^/| /' conftest.$ac_ext >&5
19821
19822         eval "$as_ac_var=no"
19823 fi
19824
19825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19826       conftest$ac_exeext conftest.$ac_ext
19827 fi
19828 ac_res=`eval echo '${'$as_ac_var'}'`
19829                { echo "$as_me:$LINENO: result: $ac_res" >&5
19830 echo "${ECHO_T}$ac_res" >&6; }
19831 if test `eval echo '${'$as_ac_var'}'` = yes; then
19832   cat >>confdefs.h <<_ACEOF
19833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19834 _ACEOF
19835
19836 fi
19837 done
19838
19839
19840     case "$host_os" in
19841       mingw*)
19842         # Yes, we know mingw lacks ftruncate.
19843         ;;
19844       *)
19845         # If someone lacks ftruncate, make configure fail, and request
19846         # a bug report to inform us about it.
19847         if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
19848           { { echo "$as_me:$LINENO: error: Your system lacks the ftruncate function.
19849               Please report this, along with the output of \"uname -a\", to the
19850               bug-coreutils@gnu.org mailing list.  To continue past this point,
19851               rerun configure with SKIP_FTRUNCATE_CHECK=yes.
19852               E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
19853 See \`config.log' for more details." >&5
19854 echo "$as_me: error: Your system lacks the ftruncate function.
19855               Please report this, along with the output of \"uname -a\", to the
19856               bug-coreutils@gnu.org mailing list.  To continue past this point,
19857               rerun configure with SKIP_FTRUNCATE_CHECK=yes.
19858               E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
19859 See \`config.log' for more details." >&2;}
19860    { (exit 1); exit 1; }; }
19861         fi
19862     esac
19863   fi
19864
19865
19866
19867   GNULIB_FTRUNCATE=1
19868
19869
19870
19871
19872
19873   gl_abort_bug=no
19874   case $gl_cv_func_getcwd_null in
19875   yes)
19876
19877
19878
19879
19880
19881
19882   { echo "$as_me:$LINENO: checking whether getcwd handles long file names properly" >&5
19883 echo $ECHO_N "checking whether getcwd handles long file names properly... $ECHO_C" >&6; }
19884 if test "${gl_cv_func_getcwd_path_max+set}" = set; then
19885   echo $ECHO_N "(cached) $ECHO_C" >&6
19886 else
19887   # Arrange for deletion of the temporary directory this test creates.
19888      ac_clean_files="$ac_clean_files confdir3"
19889      if test "$cross_compiling" = yes; then
19890   gl_cv_func_getcwd_path_max=no
19891 else
19892   cat >conftest.$ac_ext <<_ACEOF
19893 /* confdefs.h.  */
19894 _ACEOF
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h.  */
19898
19899 #include <errno.h>
19900 #include <stdlib.h>
19901 #include <unistd.h>
19902 #include <string.h>
19903 #include <limits.h>
19904 #include <sys/stat.h>
19905 #include <sys/types.h>
19906 #include <fcntl.h>
19907
19908 #ifndef AT_FDCWD
19909 # define AT_FDCWD 0
19910 #endif
19911 #ifdef ENAMETOOLONG
19912 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
19913 #else
19914 # define is_ENAMETOOLONG(x) 0
19915 #endif
19916
19917 /* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
19918 #undef mkdir
19919
19920 #ifndef S_IRWXU
19921 # define S_IRWXU 0700
19922 #endif
19923
19924 /* The length of this name must be 8.  */
19925 #define DIR_NAME "confdir3"
19926 #define DIR_NAME_LEN 8
19927 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
19928
19929 /* The length of "../".  */
19930 #define DOTDOTSLASH_LEN 3
19931
19932 /* Leftover bytes in the buffer, to work around library or OS bugs.  */
19933 #define BUF_SLOP 20
19934
19935 int
19936 main ()
19937 {
19938 #ifndef PATH_MAX
19939   /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
19940      at least not on a local file system.  And if we were to start worrying
19941      about remote file systems, we'd have to enable the wrapper function
19942      all of the time, just to be safe.  That's not worth the cost.  */
19943   exit (0);
19944 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
19945         - DIR_NAME_SIZE - BUF_SLOP) \
19946        <= PATH_MAX)
19947   /* FIXME: Assuming there's a system for which this is true,
19948      this should be done in a compile test.  */
19949   exit (0);
19950 #else
19951   char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
19952            + DIR_NAME_SIZE + BUF_SLOP];
19953   char *cwd = getcwd (buf, PATH_MAX);
19954   size_t initial_cwd_len;
19955   size_t cwd_len;
19956   int fail = 0;
19957   size_t n_chdirs = 0;
19958
19959   if (cwd == NULL)
19960     exit (1);
19961
19962   cwd_len = initial_cwd_len = strlen (cwd);
19963
19964   while (1)
19965     {
19966       size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
19967       char *c = NULL;
19968
19969       cwd_len += DIR_NAME_SIZE;
19970       /* If mkdir or chdir fails, it could be that this system cannot create
19971          any file with an absolute name longer than PATH_MAX, such as cygwin.
19972          If so, leave fail as 0, because the current working directory can't
19973          be too long for getcwd if it can't even be created.  For other
19974          errors, be pessimistic and consider that as a failure, too.  */
19975       if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
19976         {
19977           if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
19978             fail = 2;
19979           break;
19980         }
19981
19982       if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
19983         {
19984           c = getcwd (buf, PATH_MAX);
19985           if (!c && errno == ENOENT)
19986             {
19987               fail = 1;
19988               break;
19989             }
19990           if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno)))
19991             {
19992               fail = 2;
19993               break;
19994             }
19995         }
19996
19997       if (dotdot_max <= cwd_len - initial_cwd_len)
19998         {
19999           if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
20000             break;
20001           c = getcwd (buf, cwd_len + 1);
20002           if (!c)
20003             {
20004               if (! (errno == ERANGE || errno == ENOENT
20005                      || is_ENAMETOOLONG (errno)))
20006                 {
20007                   fail = 2;
20008                   break;
20009                 }
20010               if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
20011                 {
20012                   fail = 1;
20013                   break;
20014                 }
20015             }
20016         }
20017
20018       if (c && strlen (c) != cwd_len)
20019         {
20020           fail = 2;
20021           break;
20022         }
20023       ++n_chdirs;
20024     }
20025
20026   /* Leaving behind such a deep directory is not polite.
20027      So clean up here, right away, even though the driving
20028      shell script would also clean up.  */
20029   {
20030     size_t i;
20031
20032     /* Try rmdir first, in case the chdir failed.  */
20033     rmdir (DIR_NAME);
20034     for (i = 0; i <= n_chdirs; i++)
20035       {
20036         if (chdir ("..") < 0)
20037           break;
20038         if (rmdir (DIR_NAME) != 0)
20039           break;
20040       }
20041   }
20042
20043   exit (fail);
20044 #endif
20045 }
20046
20047 _ACEOF
20048 rm -f conftest$ac_exeext
20049 if { (ac_try="$ac_link"
20050 case "(($ac_try" in
20051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052   *) ac_try_echo=$ac_try;;
20053 esac
20054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20055   (eval "$ac_link") 2>&5
20056   ac_status=$?
20057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20059   { (case "(($ac_try" in
20060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061   *) ac_try_echo=$ac_try;;
20062 esac
20063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20064   (eval "$ac_try") 2>&5
20065   ac_status=$?
20066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067   (exit $ac_status); }; }; then
20068   gl_cv_func_getcwd_path_max=yes
20069 else
20070   echo "$as_me: program exited with status $ac_status" >&5
20071 echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20073
20074 ( exit $ac_status )
20075 case $? in
20076      1) gl_cv_func_getcwd_path_max='no, but it is partly working';;
20077      *) gl_cv_func_getcwd_path_max=no;;
20078      esac
20079 fi
20080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20081 fi
20082
20083
20084
20085 fi
20086 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_path_max" >&5
20087 echo "${ECHO_T}$gl_cv_func_getcwd_path_max" >&6; }
20088   case $gl_cv_func_getcwd_path_max in
20089   no,*)
20090
20091 cat >>confdefs.h <<\_ACEOF
20092 #define HAVE_PARTLY_WORKING_GETCWD 1
20093 _ACEOF
20094 ;;
20095   esac
20096
20097
20098
20099
20100
20101
20102
20103 for ac_func in getpagesize
20104 do
20105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20106 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20108 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20109   echo $ECHO_N "(cached) $ECHO_C" >&6
20110 else
20111   cat >conftest.$ac_ext <<_ACEOF
20112 /* confdefs.h.  */
20113 _ACEOF
20114 cat confdefs.h >>conftest.$ac_ext
20115 cat >>conftest.$ac_ext <<_ACEOF
20116 /* end confdefs.h.  */
20117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20118    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20119 #define $ac_func innocuous_$ac_func
20120
20121 /* System header to define __stub macros and hopefully few prototypes,
20122     which can conflict with char $ac_func (); below.
20123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20124     <limits.h> exists even on freestanding compilers.  */
20125
20126 #ifdef __STDC__
20127 # include <limits.h>
20128 #else
20129 # include <assert.h>
20130 #endif
20131
20132 #undef $ac_func
20133
20134 /* Override any GCC internal prototype to avoid an error.
20135    Use char because int might match the return type of a GCC
20136    builtin and then its argument prototype would still apply.  */
20137 #ifdef __cplusplus
20138 extern "C"
20139 #endif
20140 char $ac_func ();
20141 /* The GNU C library defines this for functions which it implements
20142     to always fail with ENOSYS.  Some functions are actually named
20143     something starting with __ and the normal name is an alias.  */
20144 #if defined __stub_$ac_func || defined __stub___$ac_func
20145 choke me
20146 #endif
20147
20148 int
20149 main ()
20150 {
20151 return $ac_func ();
20152   ;
20153   return 0;
20154 }
20155 _ACEOF
20156 rm -f conftest.$ac_objext conftest$ac_exeext
20157 if { (ac_try="$ac_link"
20158 case "(($ac_try" in
20159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20160   *) ac_try_echo=$ac_try;;
20161 esac
20162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20163   (eval "$ac_link") 2>conftest.er1
20164   ac_status=$?
20165   grep -v '^ *+' conftest.er1 >conftest.err
20166   rm -f conftest.er1
20167   cat conftest.err >&5
20168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169   (exit $ac_status); } && {
20170          test -z "$ac_c_werror_flag" ||
20171          test ! -s conftest.err
20172        } && test -s conftest$ac_exeext &&
20173        $as_test_x conftest$ac_exeext; then
20174   eval "$as_ac_var=yes"
20175 else
20176   echo "$as_me: failed program was:" >&5
20177 sed 's/^/| /' conftest.$ac_ext >&5
20178
20179         eval "$as_ac_var=no"
20180 fi
20181
20182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20183       conftest$ac_exeext conftest.$ac_ext
20184 fi
20185 ac_res=`eval echo '${'$as_ac_var'}'`
20186                { echo "$as_me:$LINENO: result: $ac_res" >&5
20187 echo "${ECHO_T}$ac_res" >&6; }
20188 if test `eval echo '${'$as_ac_var'}'` = yes; then
20189   cat >>confdefs.h <<_ACEOF
20190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20191 _ACEOF
20192
20193 fi
20194 done
20195
20196   { echo "$as_me:$LINENO: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
20197 echo $ECHO_N "checking whether getcwd aborts when 4k < cwd_length < 16k... $ECHO_C" >&6; }
20198 if test "${gl_cv_func_getcwd_abort_bug+set}" = set; then
20199   echo $ECHO_N "(cached) $ECHO_C" >&6
20200 else
20201   # Remove any remnants of a previous test.
20202      rm -rf confdir-14B---
20203      # Arrange for deletion of the temporary directory this test creates.
20204      ac_clean_files="$ac_clean_files confdir-14B---"
20205      if test "$cross_compiling" = yes; then
20206   gl_cv_func_getcwd_abort_bug=yes
20207 else
20208   cat >conftest.$ac_ext <<_ACEOF
20209 /* confdefs.h.  */
20210 _ACEOF
20211 cat confdefs.h >>conftest.$ac_ext
20212 cat >>conftest.$ac_ext <<_ACEOF
20213 /* end confdefs.h.  */
20214
20215 #include <stdlib.h>
20216 #include <unistd.h>
20217 #include <limits.h>
20218 #include <string.h>
20219 #include <sys/stat.h>
20220
20221 /* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
20222 #undef mkdir
20223
20224 #ifndef S_IRWXU
20225 # define S_IRWXU 0700
20226 #endif
20227
20228 /* FIXME: skip the run-test altogether on systems without getpagesize.  */
20229 #if ! HAVE_GETPAGESIZE
20230 # define getpagesize() 0
20231 #endif
20232
20233 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
20234    the 16kB pagesize on ia64 linux.  Those conditions make the code below
20235    trigger a bug in glibc's getcwd implementation before 2.4.90-10.  */
20236 #define TARGET_LEN (5 * 1024)
20237
20238 int
20239 main ()
20240 {
20241   char const *dir_name = "confdir-14B---";
20242   char *cwd;
20243   size_t initial_cwd_len;
20244   int fail = 0;
20245   size_t desired_depth;
20246   size_t d;
20247
20248   /* The bug is triggered when PATH_MAX < getpagesize (), so skip
20249      this relative expensive and invasive test if that's not true.  */
20250   if (getpagesize () <= PATH_MAX)
20251     return 0;
20252
20253   cwd = getcwd (NULL, 0);
20254   if (cwd == NULL)
20255     return 0;
20256
20257   initial_cwd_len = strlen (cwd);
20258   free (cwd);
20259   desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
20260                    / (1 + strlen (dir_name)));
20261   for (d = 0; d < desired_depth; d++)
20262     {
20263       if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
20264         {
20265           fail = 3; /* Unable to construct deep hierarchy.  */
20266           break;
20267         }
20268     }
20269
20270   /* If libc has the bug in question, this invocation of getcwd
20271      results in a failed assertion.  */
20272   cwd = getcwd (NULL, 0);
20273   if (cwd == NULL)
20274     fail = 4; /* getcwd failed.  This is ok, and expected.  */
20275   free (cwd);
20276
20277   /* Call rmdir first, in case the above chdir failed.  */
20278   rmdir (dir_name);
20279   while (0 < d--)
20280     {
20281       if (chdir ("..") < 0)
20282         break;
20283       rmdir (dir_name);
20284     }
20285
20286   return 0;
20287 }
20288
20289 _ACEOF
20290 rm -f conftest$ac_exeext
20291 if { (ac_try="$ac_link"
20292 case "(($ac_try" in
20293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294   *) ac_try_echo=$ac_try;;
20295 esac
20296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20297   (eval "$ac_link") 2>&5
20298   ac_status=$?
20299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20301   { (case "(($ac_try" in
20302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20303   *) ac_try_echo=$ac_try;;
20304 esac
20305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20306   (eval "$ac_try") 2>&5
20307   ac_status=$?
20308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309   (exit $ac_status); }; }; then
20310   gl_cv_func_getcwd_abort_bug=no
20311 else
20312   echo "$as_me: program exited with status $ac_status" >&5
20313 echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20315
20316 ( exit $ac_status )
20317 gl_cv_func_getcwd_abort_bug=yes
20318 fi
20319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20320 fi
20321
20322
20323
20324 fi
20325 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_abort_bug" >&5
20326 echo "${ECHO_T}$gl_cv_func_getcwd_abort_bug" >&6; }
20327   if test $gl_cv_func_getcwd_abort_bug = yes; then
20328   gl_abort_bug=yes
20329 fi
20330
20331 ;;
20332   esac
20333
20334   case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max,$gl_abort_bug in
20335   yes,yes,no) ;;
20336   *)
20337     REPLACE_GETCWD=1
20338
20339
20340
20341
20342
20343
20344
20345   gl_LIBOBJS="$gl_LIBOBJS getcwd.$ac_objext"
20346
20347
20348
20349
20350   :
20351 ;;
20352   esac
20353
20354
20355
20356   GNULIB_GETCWD=1
20357
20358
20359
20360
20361
20362
20363
20364   { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20365 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
20366 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20367   echo $ECHO_N "(cached) $ECHO_C" >&6
20368 else
20369   cat >conftest.$ac_ext <<_ACEOF
20370 /* confdefs.h.  */
20371 _ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h.  */
20375 #include <sys/types.h>
20376 #include <$ac_cv_struct_tm>
20377
20378
20379 int
20380 main ()
20381 {
20382 static struct tm ac_aggr;
20383 if (ac_aggr.tm_zone)
20384 return 0;
20385   ;
20386   return 0;
20387 }
20388 _ACEOF
20389 rm -f conftest.$ac_objext
20390 if { (ac_try="$ac_compile"
20391 case "(($ac_try" in
20392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20393   *) ac_try_echo=$ac_try;;
20394 esac
20395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20396   (eval "$ac_compile") 2>conftest.er1
20397   ac_status=$?
20398   grep -v '^ *+' conftest.er1 >conftest.err
20399   rm -f conftest.er1
20400   cat conftest.err >&5
20401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402   (exit $ac_status); } && {
20403          test -z "$ac_c_werror_flag" ||
20404          test ! -s conftest.err
20405        } && test -s conftest.$ac_objext; then
20406   ac_cv_member_struct_tm_tm_zone=yes
20407 else
20408   echo "$as_me: failed program was:" >&5
20409 sed 's/^/| /' conftest.$ac_ext >&5
20410
20411         cat >conftest.$ac_ext <<_ACEOF
20412 /* confdefs.h.  */
20413 _ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h.  */
20417 #include <sys/types.h>
20418 #include <$ac_cv_struct_tm>
20419
20420
20421 int
20422 main ()
20423 {
20424 static struct tm ac_aggr;
20425 if (sizeof ac_aggr.tm_zone)
20426 return 0;
20427   ;
20428   return 0;
20429 }
20430 _ACEOF
20431 rm -f conftest.$ac_objext
20432 if { (ac_try="$ac_compile"
20433 case "(($ac_try" in
20434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20435   *) ac_try_echo=$ac_try;;
20436 esac
20437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20438   (eval "$ac_compile") 2>conftest.er1
20439   ac_status=$?
20440   grep -v '^ *+' conftest.er1 >conftest.err
20441   rm -f conftest.er1
20442   cat conftest.err >&5
20443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444   (exit $ac_status); } && {
20445          test -z "$ac_c_werror_flag" ||
20446          test ! -s conftest.err
20447        } && test -s conftest.$ac_objext; then
20448   ac_cv_member_struct_tm_tm_zone=yes
20449 else
20450   echo "$as_me: failed program was:" >&5
20451 sed 's/^/| /' conftest.$ac_ext >&5
20452
20453         ac_cv_member_struct_tm_tm_zone=no
20454 fi
20455
20456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20457 fi
20458
20459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20460 fi
20461 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20462 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
20463 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20464
20465 cat >>confdefs.h <<_ACEOF
20466 #define HAVE_STRUCT_TM_TM_ZONE 1
20467 _ACEOF
20468
20469
20470 fi
20471
20472 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20473
20474 cat >>confdefs.h <<\_ACEOF
20475 #define HAVE_TM_ZONE 1
20476 _ACEOF
20477
20478 else
20479   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
20480 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
20481 if test "${ac_cv_have_decl_tzname+set}" = set; then
20482   echo $ECHO_N "(cached) $ECHO_C" >&6
20483 else
20484   cat >conftest.$ac_ext <<_ACEOF
20485 /* confdefs.h.  */
20486 _ACEOF
20487 cat confdefs.h >>conftest.$ac_ext
20488 cat >>conftest.$ac_ext <<_ACEOF
20489 /* end confdefs.h.  */
20490 #include <time.h>
20491
20492 int
20493 main ()
20494 {
20495 #ifndef tzname
20496   (void) tzname;
20497 #endif
20498
20499   ;
20500   return 0;
20501 }
20502 _ACEOF
20503 rm -f conftest.$ac_objext
20504 if { (ac_try="$ac_compile"
20505 case "(($ac_try" in
20506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20507   *) ac_try_echo=$ac_try;;
20508 esac
20509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20510   (eval "$ac_compile") 2>conftest.er1
20511   ac_status=$?
20512   grep -v '^ *+' conftest.er1 >conftest.err
20513   rm -f conftest.er1
20514   cat conftest.err >&5
20515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516   (exit $ac_status); } && {
20517          test -z "$ac_c_werror_flag" ||
20518          test ! -s conftest.err
20519        } && test -s conftest.$ac_objext; then
20520   ac_cv_have_decl_tzname=yes
20521 else
20522   echo "$as_me: failed program was:" >&5
20523 sed 's/^/| /' conftest.$ac_ext >&5
20524
20525         ac_cv_have_decl_tzname=no
20526 fi
20527
20528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20529 fi
20530 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
20531 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
20532 if test $ac_cv_have_decl_tzname = yes; then
20533
20534 cat >>confdefs.h <<_ACEOF
20535 #define HAVE_DECL_TZNAME 1
20536 _ACEOF
20537
20538
20539 else
20540   cat >>confdefs.h <<_ACEOF
20541 #define HAVE_DECL_TZNAME 0
20542 _ACEOF
20543
20544
20545 fi
20546
20547
20548   { echo "$as_me:$LINENO: checking for tzname" >&5
20549 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
20550 if test "${ac_cv_var_tzname+set}" = set; then
20551   echo $ECHO_N "(cached) $ECHO_C" >&6
20552 else
20553   cat >conftest.$ac_ext <<_ACEOF
20554 /* confdefs.h.  */
20555 _ACEOF
20556 cat confdefs.h >>conftest.$ac_ext
20557 cat >>conftest.$ac_ext <<_ACEOF
20558 /* end confdefs.h.  */
20559 #include <time.h>
20560 #if !HAVE_DECL_TZNAME
20561 extern char *tzname[];
20562 #endif
20563
20564 int
20565 main ()
20566 {
20567 return tzname[0][0];
20568   ;
20569   return 0;
20570 }
20571 _ACEOF
20572 rm -f conftest.$ac_objext conftest$ac_exeext
20573 if { (ac_try="$ac_link"
20574 case "(($ac_try" in
20575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576   *) ac_try_echo=$ac_try;;
20577 esac
20578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20579   (eval "$ac_link") 2>conftest.er1
20580   ac_status=$?
20581   grep -v '^ *+' conftest.er1 >conftest.err
20582   rm -f conftest.er1
20583   cat conftest.err >&5
20584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585   (exit $ac_status); } && {
20586          test -z "$ac_c_werror_flag" ||
20587          test ! -s conftest.err
20588        } && test -s conftest$ac_exeext &&
20589        $as_test_x conftest$ac_exeext; then
20590   ac_cv_var_tzname=yes
20591 else
20592   echo "$as_me: failed program was:" >&5
20593 sed 's/^/| /' conftest.$ac_ext >&5
20594
20595         ac_cv_var_tzname=no
20596 fi
20597
20598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20599       conftest$ac_exeext conftest.$ac_ext
20600 fi
20601 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20602 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
20603   if test $ac_cv_var_tzname = yes; then
20604
20605 cat >>confdefs.h <<\_ACEOF
20606 #define HAVE_TZNAME 1
20607 _ACEOF
20608
20609   fi
20610 fi
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628 for ac_func in getdelim
20629 do
20630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20631 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20634   echo $ECHO_N "(cached) $ECHO_C" >&6
20635 else
20636   cat >conftest.$ac_ext <<_ACEOF
20637 /* confdefs.h.  */
20638 _ACEOF
20639 cat confdefs.h >>conftest.$ac_ext
20640 cat >>conftest.$ac_ext <<_ACEOF
20641 /* end confdefs.h.  */
20642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20643    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20644 #define $ac_func innocuous_$ac_func
20645
20646 /* System header to define __stub macros and hopefully few prototypes,
20647     which can conflict with char $ac_func (); below.
20648     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20649     <limits.h> exists even on freestanding compilers.  */
20650
20651 #ifdef __STDC__
20652 # include <limits.h>
20653 #else
20654 # include <assert.h>
20655 #endif
20656
20657 #undef $ac_func
20658
20659 /* Override any GCC internal prototype to avoid an error.
20660    Use char because int might match the return type of a GCC
20661    builtin and then its argument prototype would still apply.  */
20662 #ifdef __cplusplus
20663 extern "C"
20664 #endif
20665 char $ac_func ();
20666 /* The GNU C library defines this for functions which it implements
20667     to always fail with ENOSYS.  Some functions are actually named
20668     something starting with __ and the normal name is an alias.  */
20669 #if defined __stub_$ac_func || defined __stub___$ac_func
20670 choke me
20671 #endif
20672
20673 int
20674 main ()
20675 {
20676 return $ac_func ();
20677   ;
20678   return 0;
20679 }
20680 _ACEOF
20681 rm -f conftest.$ac_objext conftest$ac_exeext
20682 if { (ac_try="$ac_link"
20683 case "(($ac_try" in
20684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20685   *) ac_try_echo=$ac_try;;
20686 esac
20687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20688   (eval "$ac_link") 2>conftest.er1
20689   ac_status=$?
20690   grep -v '^ *+' conftest.er1 >conftest.err
20691   rm -f conftest.er1
20692   cat conftest.err >&5
20693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694   (exit $ac_status); } && {
20695          test -z "$ac_c_werror_flag" ||
20696          test ! -s conftest.err
20697        } && test -s conftest$ac_exeext &&
20698        $as_test_x conftest$ac_exeext; then
20699   eval "$as_ac_var=yes"
20700 else
20701   echo "$as_me: failed program was:" >&5
20702 sed 's/^/| /' conftest.$ac_ext >&5
20703
20704         eval "$as_ac_var=no"
20705 fi
20706
20707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20708       conftest$ac_exeext conftest.$ac_ext
20709 fi
20710 ac_res=`eval echo '${'$as_ac_var'}'`
20711                { echo "$as_me:$LINENO: result: $ac_res" >&5
20712 echo "${ECHO_T}$ac_res" >&6; }
20713 if test `eval echo '${'$as_ac_var'}'` = yes; then
20714   cat >>confdefs.h <<_ACEOF
20715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20716 _ACEOF
20717
20718 else
20719
20720     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
20721
20722 fi
20723 done
20724
20725
20726
20727
20728
20729
20730
20731   if test $ac_cv_func_getdelim = no; then
20732
20733
20734
20735 for ac_func in flockfile funlockfile
20736 do
20737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20741   echo $ECHO_N "(cached) $ECHO_C" >&6
20742 else
20743   cat >conftest.$ac_ext <<_ACEOF
20744 /* confdefs.h.  */
20745 _ACEOF
20746 cat confdefs.h >>conftest.$ac_ext
20747 cat >>conftest.$ac_ext <<_ACEOF
20748 /* end confdefs.h.  */
20749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20750    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20751 #define $ac_func innocuous_$ac_func
20752
20753 /* System header to define __stub macros and hopefully few prototypes,
20754     which can conflict with char $ac_func (); below.
20755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20756     <limits.h> exists even on freestanding compilers.  */
20757
20758 #ifdef __STDC__
20759 # include <limits.h>
20760 #else
20761 # include <assert.h>
20762 #endif
20763
20764 #undef $ac_func
20765
20766 /* Override any GCC internal prototype to avoid an error.
20767    Use char because int might match the return type of a GCC
20768    builtin and then its argument prototype would still apply.  */
20769 #ifdef __cplusplus
20770 extern "C"
20771 #endif
20772 char $ac_func ();
20773 /* The GNU C library defines this for functions which it implements
20774     to always fail with ENOSYS.  Some functions are actually named
20775     something starting with __ and the normal name is an alias.  */
20776 #if defined __stub_$ac_func || defined __stub___$ac_func
20777 choke me
20778 #endif
20779
20780 int
20781 main ()
20782 {
20783 return $ac_func ();
20784   ;
20785   return 0;
20786 }
20787 _ACEOF
20788 rm -f conftest.$ac_objext 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20795   (eval "$ac_link") 2>conftest.er1
20796   ac_status=$?
20797   grep -v '^ *+' conftest.er1 >conftest.err
20798   rm -f conftest.er1
20799   cat conftest.err >&5
20800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801   (exit $ac_status); } && {
20802          test -z "$ac_c_werror_flag" ||
20803          test ! -s conftest.err
20804        } && test -s conftest$ac_exeext &&
20805        $as_test_x conftest$ac_exeext; then
20806   eval "$as_ac_var=yes"
20807 else
20808   echo "$as_me: failed program was:" >&5
20809 sed 's/^/| /' conftest.$ac_ext >&5
20810
20811         eval "$as_ac_var=no"
20812 fi
20813
20814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20815       conftest$ac_exeext conftest.$ac_ext
20816 fi
20817 ac_res=`eval echo '${'$as_ac_var'}'`
20818                { echo "$as_me:$LINENO: result: $ac_res" >&5
20819 echo "${ECHO_T}$ac_res" >&6; }
20820 if test `eval echo '${'$as_ac_var'}'` = yes; then
20821   cat >>confdefs.h <<_ACEOF
20822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20823 _ACEOF
20824
20825 fi
20826 done
20827
20828
20829   fi
20830
20831   if test $ac_cv_have_decl_getdelim = no; then
20832     HAVE_DECL_GETDELIM=0
20833   fi
20834
20835
20836
20837   GNULIB_GETDELIM=1
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849   gl_getline_needs_run_time_check=no
20850   { echo "$as_me:$LINENO: checking for getline" >&5
20851 echo $ECHO_N "checking for getline... $ECHO_C" >&6; }
20852 if test "${ac_cv_func_getline+set}" = set; then
20853   echo $ECHO_N "(cached) $ECHO_C" >&6
20854 else
20855   cat >conftest.$ac_ext <<_ACEOF
20856 /* confdefs.h.  */
20857 _ACEOF
20858 cat confdefs.h >>conftest.$ac_ext
20859 cat >>conftest.$ac_ext <<_ACEOF
20860 /* end confdefs.h.  */
20861 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
20862    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20863 #define getline innocuous_getline
20864
20865 /* System header to define __stub macros and hopefully few prototypes,
20866     which can conflict with char getline (); below.
20867     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20868     <limits.h> exists even on freestanding compilers.  */
20869
20870 #ifdef __STDC__
20871 # include <limits.h>
20872 #else
20873 # include <assert.h>
20874 #endif
20875
20876 #undef getline
20877
20878 /* Override any GCC internal prototype to avoid an error.
20879    Use char because int might match the return type of a GCC
20880    builtin and then its argument prototype would still apply.  */
20881 #ifdef __cplusplus
20882 extern "C"
20883 #endif
20884 char getline ();
20885 /* The GNU C library defines this for functions which it implements
20886     to always fail with ENOSYS.  Some functions are actually named
20887     something starting with __ and the normal name is an alias.  */
20888 #if defined __stub_getline || defined __stub___getline
20889 choke me
20890 #endif
20891
20892 int
20893 main ()
20894 {
20895 return getline ();
20896   ;
20897   return 0;
20898 }
20899 _ACEOF
20900 rm -f conftest.$ac_objext conftest$ac_exeext
20901 if { (ac_try="$ac_link"
20902 case "(($ac_try" in
20903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20904   *) ac_try_echo=$ac_try;;
20905 esac
20906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20907   (eval "$ac_link") 2>conftest.er1
20908   ac_status=$?
20909   grep -v '^ *+' conftest.er1 >conftest.err
20910   rm -f conftest.er1
20911   cat conftest.err >&5
20912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913   (exit $ac_status); } && {
20914          test -z "$ac_c_werror_flag" ||
20915          test ! -s conftest.err
20916        } && test -s conftest$ac_exeext &&
20917        $as_test_x conftest$ac_exeext; then
20918   ac_cv_func_getline=yes
20919 else
20920   echo "$as_me: failed program was:" >&5
20921 sed 's/^/| /' conftest.$ac_ext >&5
20922
20923         ac_cv_func_getline=no
20924 fi
20925
20926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20927       conftest$ac_exeext conftest.$ac_ext
20928 fi
20929 { echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
20930 echo "${ECHO_T}$ac_cv_func_getline" >&6; }
20931 if test $ac_cv_func_getline = yes; then
20932                 gl_getline_needs_run_time_check=yes
20933 else
20934   am_cv_func_working_getline=no
20935 fi
20936
20937   if test $gl_getline_needs_run_time_check = yes; then
20938     { echo "$as_me:$LINENO: checking for working getline function" >&5
20939 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6; }
20940 if test "${am_cv_func_working_getline+set}" = set; then
20941   echo $ECHO_N "(cached) $ECHO_C" >&6
20942 else
20943   echo fooN |tr -d '\012'|tr N '\012' > conftest.data
20944     if test "$cross_compiling" = yes; then
20945         cat >conftest.$ac_ext <<_ACEOF
20946 /* confdefs.h.  */
20947 _ACEOF
20948 cat confdefs.h >>conftest.$ac_ext
20949 cat >>conftest.$ac_ext <<_ACEOF
20950 /* end confdefs.h.  */
20951
20952 #include <features.h>
20953 #ifdef __GNU_LIBRARY__
20954  #if (__GLIBC__ >= 2)
20955   Lucky GNU user
20956  #endif
20957 #endif
20958
20959 _ACEOF
20960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20961   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20962   am_cv_func_working_getline=yes
20963 else
20964   am_cv_func_working_getline=no
20965 fi
20966 rm -f conftest*
20967
20968
20969 else
20970   cat >conftest.$ac_ext <<_ACEOF
20971 /* confdefs.h.  */
20972 _ACEOF
20973 cat confdefs.h >>conftest.$ac_ext
20974 cat >>conftest.$ac_ext <<_ACEOF
20975 /* end confdefs.h.  */
20976
20977 #    include <stdio.h>
20978 #    include <stdlib.h>
20979 #    include <string.h>
20980     int main ()
20981     { /* Based on a test program from Karl Heuer.  */
20982       char *line = NULL;
20983       size_t siz = 0;
20984       int len;
20985       FILE *in = fopen ("./conftest.data", "r");
20986       if (!in)
20987         return 1;
20988       len = getline (&line, &siz, in);
20989       exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
20990     }
20991
20992 _ACEOF
20993 rm -f conftest$ac_exeext
20994 if { (ac_try="$ac_link"
20995 case "(($ac_try" in
20996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997   *) ac_try_echo=$ac_try;;
20998 esac
20999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21000   (eval "$ac_link") 2>&5
21001   ac_status=$?
21002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21004   { (case "(($ac_try" in
21005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21006   *) ac_try_echo=$ac_try;;
21007 esac
21008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21009   (eval "$ac_try") 2>&5
21010   ac_status=$?
21011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012   (exit $ac_status); }; }; then
21013   am_cv_func_working_getline=yes
21014 else
21015   echo "$as_me: program exited with status $ac_status" >&5
21016 echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21018
21019 ( exit $ac_status )
21020 am_cv_func_working_getline=no
21021 fi
21022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21023 fi
21024
21025
21026 fi
21027 { echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
21028 echo "${ECHO_T}$am_cv_func_working_getline" >&6; }
21029   fi
21030
21031   if test $ac_cv_have_decl_getline = no; then
21032     HAVE_DECL_GETLINE=0
21033   fi
21034
21035   if test $am_cv_func_working_getline = no; then
21036     REPLACE_GETLINE=1
21037
21038
21039
21040
21041
21042
21043
21044   gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061 for ac_func in getdelim
21062 do
21063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21064 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21066 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21067   echo $ECHO_N "(cached) $ECHO_C" >&6
21068 else
21069   cat >conftest.$ac_ext <<_ACEOF
21070 /* confdefs.h.  */
21071 _ACEOF
21072 cat confdefs.h >>conftest.$ac_ext
21073 cat >>conftest.$ac_ext <<_ACEOF
21074 /* end confdefs.h.  */
21075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21076    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21077 #define $ac_func innocuous_$ac_func
21078
21079 /* System header to define __stub macros and hopefully few prototypes,
21080     which can conflict with char $ac_func (); below.
21081     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21082     <limits.h> exists even on freestanding compilers.  */
21083
21084 #ifdef __STDC__
21085 # include <limits.h>
21086 #else
21087 # include <assert.h>
21088 #endif
21089
21090 #undef $ac_func
21091
21092 /* Override any GCC internal prototype to avoid an error.
21093    Use char because int might match the return type of a GCC
21094    builtin and then its argument prototype would still apply.  */
21095 #ifdef __cplusplus
21096 extern "C"
21097 #endif
21098 char $ac_func ();
21099 /* The GNU C library defines this for functions which it implements
21100     to always fail with ENOSYS.  Some functions are actually named
21101     something starting with __ and the normal name is an alias.  */
21102 #if defined __stub_$ac_func || defined __stub___$ac_func
21103 choke me
21104 #endif
21105
21106 int
21107 main ()
21108 {
21109 return $ac_func ();
21110   ;
21111   return 0;
21112 }
21113 _ACEOF
21114 rm -f conftest.$ac_objext conftest$ac_exeext
21115 if { (ac_try="$ac_link"
21116 case "(($ac_try" in
21117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118   *) ac_try_echo=$ac_try;;
21119 esac
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121   (eval "$ac_link") 2>conftest.er1
21122   ac_status=$?
21123   grep -v '^ *+' conftest.er1 >conftest.err
21124   rm -f conftest.er1
21125   cat conftest.err >&5
21126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127   (exit $ac_status); } && {
21128          test -z "$ac_c_werror_flag" ||
21129          test ! -s conftest.err
21130        } && test -s conftest$ac_exeext &&
21131        $as_test_x conftest$ac_exeext; then
21132   eval "$as_ac_var=yes"
21133 else
21134   echo "$as_me: failed program was:" >&5
21135 sed 's/^/| /' conftest.$ac_ext >&5
21136
21137         eval "$as_ac_var=no"
21138 fi
21139
21140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21141       conftest$ac_exeext conftest.$ac_ext
21142 fi
21143 ac_res=`eval echo '${'$as_ac_var'}'`
21144                { echo "$as_me:$LINENO: result: $ac_res" >&5
21145 echo "${ECHO_T}$ac_res" >&6; }
21146 if test `eval echo '${'$as_ac_var'}'` = yes; then
21147   cat >>confdefs.h <<_ACEOF
21148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21149 _ACEOF
21150
21151 else
21152
21153     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
21154
21155 fi
21156 done
21157
21158
21159
21160
21161
21162
21163
21164   if test $ac_cv_func_getdelim = no; then
21165
21166
21167
21168 for ac_func in flockfile funlockfile
21169 do
21170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21171 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21173 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21174   echo $ECHO_N "(cached) $ECHO_C" >&6
21175 else
21176   cat >conftest.$ac_ext <<_ACEOF
21177 /* confdefs.h.  */
21178 _ACEOF
21179 cat confdefs.h >>conftest.$ac_ext
21180 cat >>conftest.$ac_ext <<_ACEOF
21181 /* end confdefs.h.  */
21182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21183    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21184 #define $ac_func innocuous_$ac_func
21185
21186 /* System header to define __stub macros and hopefully few prototypes,
21187     which can conflict with char $ac_func (); below.
21188     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21189     <limits.h> exists even on freestanding compilers.  */
21190
21191 #ifdef __STDC__
21192 # include <limits.h>
21193 #else
21194 # include <assert.h>
21195 #endif
21196
21197 #undef $ac_func
21198
21199 /* Override any GCC internal prototype to avoid an error.
21200    Use char because int might match the return type of a GCC
21201    builtin and then its argument prototype would still apply.  */
21202 #ifdef __cplusplus
21203 extern "C"
21204 #endif
21205 char $ac_func ();
21206 /* The GNU C library defines this for functions which it implements
21207     to always fail with ENOSYS.  Some functions are actually named
21208     something starting with __ and the normal name is an alias.  */
21209 #if defined __stub_$ac_func || defined __stub___$ac_func
21210 choke me
21211 #endif
21212
21213 int
21214 main ()
21215 {
21216 return $ac_func ();
21217   ;
21218   return 0;
21219 }
21220 _ACEOF
21221 rm -f conftest.$ac_objext conftest$ac_exeext
21222 if { (ac_try="$ac_link"
21223 case "(($ac_try" in
21224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21225   *) ac_try_echo=$ac_try;;
21226 esac
21227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21228   (eval "$ac_link") 2>conftest.er1
21229   ac_status=$?
21230   grep -v '^ *+' conftest.er1 >conftest.err
21231   rm -f conftest.er1
21232   cat conftest.err >&5
21233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234   (exit $ac_status); } && {
21235          test -z "$ac_c_werror_flag" ||
21236          test ! -s conftest.err
21237        } && test -s conftest$ac_exeext &&
21238        $as_test_x conftest$ac_exeext; then
21239   eval "$as_ac_var=yes"
21240 else
21241   echo "$as_me: failed program was:" >&5
21242 sed 's/^/| /' conftest.$ac_ext >&5
21243
21244         eval "$as_ac_var=no"
21245 fi
21246
21247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21248       conftest$ac_exeext conftest.$ac_ext
21249 fi
21250 ac_res=`eval echo '${'$as_ac_var'}'`
21251                { echo "$as_me:$LINENO: result: $ac_res" >&5
21252 echo "${ECHO_T}$ac_res" >&6; }
21253 if test `eval echo '${'$as_ac_var'}'` = yes; then
21254   cat >>confdefs.h <<_ACEOF
21255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21256 _ACEOF
21257
21258 fi
21259 done
21260
21261
21262   fi
21263
21264   if test $ac_cv_have_decl_getdelim = no; then
21265     HAVE_DECL_GETDELIM=0
21266   fi
21267
21268
21269   fi
21270
21271
21272
21273   GNULIB_GETLINE=1
21274
21275
21276
21277   if test -n "$GETOPT_H"; then
21278
21279
21280
21281
21282
21283
21284
21285
21286   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21287
21288
21289
21290
21291
21292
21293
21294
21295   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21296
21297
21298   GETOPT_H=getopt.h
21299
21300 cat >>confdefs.h <<\_ACEOF
21301 #define __GETOPT_PREFIX rpl_
21302 _ACEOF
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313 fi
21314
21315
21316
21317
21318
21319
21320 for ac_func in getpagesize
21321 do
21322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21323 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21325 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21326   echo $ECHO_N "(cached) $ECHO_C" >&6
21327 else
21328   cat >conftest.$ac_ext <<_ACEOF
21329 /* confdefs.h.  */
21330 _ACEOF
21331 cat confdefs.h >>conftest.$ac_ext
21332 cat >>conftest.$ac_ext <<_ACEOF
21333 /* end confdefs.h.  */
21334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21336 #define $ac_func innocuous_$ac_func
21337
21338 /* System header to define __stub macros and hopefully few prototypes,
21339     which can conflict with char $ac_func (); below.
21340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21341     <limits.h> exists even on freestanding compilers.  */
21342
21343 #ifdef __STDC__
21344 # include <limits.h>
21345 #else
21346 # include <assert.h>
21347 #endif
21348
21349 #undef $ac_func
21350
21351 /* Override any GCC internal prototype to avoid an error.
21352    Use char because int might match the return type of a GCC
21353    builtin and then its argument prototype would still apply.  */
21354 #ifdef __cplusplus
21355 extern "C"
21356 #endif
21357 char $ac_func ();
21358 /* The GNU C library defines this for functions which it implements
21359     to always fail with ENOSYS.  Some functions are actually named
21360     something starting with __ and the normal name is an alias.  */
21361 #if defined __stub_$ac_func || defined __stub___$ac_func
21362 choke me
21363 #endif
21364
21365 int
21366 main ()
21367 {
21368 return $ac_func ();
21369   ;
21370   return 0;
21371 }
21372 _ACEOF
21373 rm -f conftest.$ac_objext conftest$ac_exeext
21374 if { (ac_try="$ac_link"
21375 case "(($ac_try" in
21376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21377   *) ac_try_echo=$ac_try;;
21378 esac
21379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21380   (eval "$ac_link") 2>conftest.er1
21381   ac_status=$?
21382   grep -v '^ *+' conftest.er1 >conftest.err
21383   rm -f conftest.er1
21384   cat conftest.err >&5
21385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386   (exit $ac_status); } && {
21387          test -z "$ac_c_werror_flag" ||
21388          test ! -s conftest.err
21389        } && test -s conftest$ac_exeext &&
21390        $as_test_x conftest$ac_exeext; then
21391   eval "$as_ac_var=yes"
21392 else
21393   echo "$as_me: failed program was:" >&5
21394 sed 's/^/| /' conftest.$ac_ext >&5
21395
21396         eval "$as_ac_var=no"
21397 fi
21398
21399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21400       conftest$ac_exeext conftest.$ac_ext
21401 fi
21402 ac_res=`eval echo '${'$as_ac_var'}'`
21403                { echo "$as_me:$LINENO: result: $ac_res" >&5
21404 echo "${ECHO_T}$ac_res" >&6; }
21405 if test `eval echo '${'$as_ac_var'}'` = yes; then
21406   cat >>confdefs.h <<_ACEOF
21407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21408 _ACEOF
21409
21410 fi
21411 done
21412
21413   if test $ac_cv_func_getpagesize = no; then
21414     HAVE_GETPAGESIZE=0
21415
21416 for ac_header in OS.h
21417 do
21418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21420   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21423   echo $ECHO_N "(cached) $ECHO_C" >&6
21424 fi
21425 ac_res=`eval echo '${'$as_ac_Header'}'`
21426                { echo "$as_me:$LINENO: result: $ac_res" >&5
21427 echo "${ECHO_T}$ac_res" >&6; }
21428 else
21429   # Is the header compilable?
21430 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21432 cat >conftest.$ac_ext <<_ACEOF
21433 /* confdefs.h.  */
21434 _ACEOF
21435 cat confdefs.h >>conftest.$ac_ext
21436 cat >>conftest.$ac_ext <<_ACEOF
21437 /* end confdefs.h.  */
21438 $ac_includes_default
21439 #include <$ac_header>
21440 _ACEOF
21441 rm -f conftest.$ac_objext
21442 if { (ac_try="$ac_compile"
21443 case "(($ac_try" in
21444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21445   *) ac_try_echo=$ac_try;;
21446 esac
21447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21448   (eval "$ac_compile") 2>conftest.er1
21449   ac_status=$?
21450   grep -v '^ *+' conftest.er1 >conftest.err
21451   rm -f conftest.er1
21452   cat conftest.err >&5
21453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454   (exit $ac_status); } && {
21455          test -z "$ac_c_werror_flag" ||
21456          test ! -s conftest.err
21457        } && test -s conftest.$ac_objext; then
21458   ac_header_compiler=yes
21459 else
21460   echo "$as_me: failed program was:" >&5
21461 sed 's/^/| /' conftest.$ac_ext >&5
21462
21463         ac_header_compiler=no
21464 fi
21465
21466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21468 echo "${ECHO_T}$ac_header_compiler" >&6; }
21469
21470 # Is the header present?
21471 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21473 cat >conftest.$ac_ext <<_ACEOF
21474 /* confdefs.h.  */
21475 _ACEOF
21476 cat confdefs.h >>conftest.$ac_ext
21477 cat >>conftest.$ac_ext <<_ACEOF
21478 /* end confdefs.h.  */
21479 #include <$ac_header>
21480 _ACEOF
21481 if { (ac_try="$ac_cpp conftest.$ac_ext"
21482 case "(($ac_try" in
21483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21484   *) ac_try_echo=$ac_try;;
21485 esac
21486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21487   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21488   ac_status=$?
21489   grep -v '^ *+' conftest.er1 >conftest.err
21490   rm -f conftest.er1
21491   cat conftest.err >&5
21492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493   (exit $ac_status); } >/dev/null && {
21494          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21495          test ! -s conftest.err
21496        }; then
21497   ac_header_preproc=yes
21498 else
21499   echo "$as_me: failed program was:" >&5
21500 sed 's/^/| /' conftest.$ac_ext >&5
21501
21502   ac_header_preproc=no
21503 fi
21504
21505 rm -f conftest.err conftest.$ac_ext
21506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21507 echo "${ECHO_T}$ac_header_preproc" >&6; }
21508
21509 # So?  What about this header?
21510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21511   yes:no: )
21512     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21514     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21516     ac_header_preproc=yes
21517     ;;
21518   no:yes:* )
21519     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21521     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21522 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21523     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21525     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21526 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21529     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21531     ( cat <<\_ASBOX
21532 ## ------------------------------ ##
21533 ## Report this to bug-tar@gnu.org ##
21534 ## ------------------------------ ##
21535 _ASBOX
21536      ) | sed "s/^/$as_me: WARNING:     /" >&2
21537     ;;
21538 esac
21539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21542   echo $ECHO_N "(cached) $ECHO_C" >&6
21543 else
21544   eval "$as_ac_Header=\$ac_header_preproc"
21545 fi
21546 ac_res=`eval echo '${'$as_ac_Header'}'`
21547                { echo "$as_me:$LINENO: result: $ac_res" >&5
21548 echo "${ECHO_T}$ac_res" >&6; }
21549
21550 fi
21551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21552   cat >>confdefs.h <<_ACEOF
21553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21554 _ACEOF
21555
21556 fi
21557
21558 done
21559
21560     if test $ac_cv_header_OS_h = yes; then
21561       HAVE_OS_H=1
21562     fi
21563
21564 for ac_header in sys/param.h
21565 do
21566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21568   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21571   echo $ECHO_N "(cached) $ECHO_C" >&6
21572 fi
21573 ac_res=`eval echo '${'$as_ac_Header'}'`
21574                { echo "$as_me:$LINENO: result: $ac_res" >&5
21575 echo "${ECHO_T}$ac_res" >&6; }
21576 else
21577   # Is the header compilable?
21578 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21579 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21580 cat >conftest.$ac_ext <<_ACEOF
21581 /* confdefs.h.  */
21582 _ACEOF
21583 cat confdefs.h >>conftest.$ac_ext
21584 cat >>conftest.$ac_ext <<_ACEOF
21585 /* end confdefs.h.  */
21586 $ac_includes_default
21587 #include <$ac_header>
21588 _ACEOF
21589 rm -f conftest.$ac_objext
21590 if { (ac_try="$ac_compile"
21591 case "(($ac_try" in
21592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21593   *) ac_try_echo=$ac_try;;
21594 esac
21595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21596   (eval "$ac_compile") 2>conftest.er1
21597   ac_status=$?
21598   grep -v '^ *+' conftest.er1 >conftest.err
21599   rm -f conftest.er1
21600   cat conftest.err >&5
21601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602   (exit $ac_status); } && {
21603          test -z "$ac_c_werror_flag" ||
21604          test ! -s conftest.err
21605        } && test -s conftest.$ac_objext; then
21606   ac_header_compiler=yes
21607 else
21608   echo "$as_me: failed program was:" >&5
21609 sed 's/^/| /' conftest.$ac_ext >&5
21610
21611         ac_header_compiler=no
21612 fi
21613
21614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21616 echo "${ECHO_T}$ac_header_compiler" >&6; }
21617
21618 # Is the header present?
21619 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21621 cat >conftest.$ac_ext <<_ACEOF
21622 /* confdefs.h.  */
21623 _ACEOF
21624 cat confdefs.h >>conftest.$ac_ext
21625 cat >>conftest.$ac_ext <<_ACEOF
21626 /* end confdefs.h.  */
21627 #include <$ac_header>
21628 _ACEOF
21629 if { (ac_try="$ac_cpp conftest.$ac_ext"
21630 case "(($ac_try" in
21631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21632   *) ac_try_echo=$ac_try;;
21633 esac
21634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21635   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21636   ac_status=$?
21637   grep -v '^ *+' conftest.er1 >conftest.err
21638   rm -f conftest.er1
21639   cat conftest.err >&5
21640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641   (exit $ac_status); } >/dev/null && {
21642          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21643          test ! -s conftest.err
21644        }; then
21645   ac_header_preproc=yes
21646 else
21647   echo "$as_me: failed program was:" >&5
21648 sed 's/^/| /' conftest.$ac_ext >&5
21649
21650   ac_header_preproc=no
21651 fi
21652
21653 rm -f conftest.err conftest.$ac_ext
21654 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21655 echo "${ECHO_T}$ac_header_preproc" >&6; }
21656
21657 # So?  What about this header?
21658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21659   yes:no: )
21660     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21662     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21663 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21664     ac_header_preproc=yes
21665     ;;
21666   no:yes:* )
21667     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21669     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21670 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21671     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21672 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21673     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21674 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21675     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21677     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21678 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21679     ( cat <<\_ASBOX
21680 ## ------------------------------ ##
21681 ## Report this to bug-tar@gnu.org ##
21682 ## ------------------------------ ##
21683 _ASBOX
21684      ) | sed "s/^/$as_me: WARNING:     /" >&2
21685     ;;
21686 esac
21687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21690   echo $ECHO_N "(cached) $ECHO_C" >&6
21691 else
21692   eval "$as_ac_Header=\$ac_header_preproc"
21693 fi
21694 ac_res=`eval echo '${'$as_ac_Header'}'`
21695                { echo "$as_me:$LINENO: result: $ac_res" >&5
21696 echo "${ECHO_T}$ac_res" >&6; }
21697
21698 fi
21699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21700   cat >>confdefs.h <<_ACEOF
21701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21702 _ACEOF
21703
21704 fi
21705
21706 done
21707
21708     if test $ac_cv_header_sys_param_h = yes; then
21709       HAVE_SYS_PARAM_H=1
21710     fi
21711   fi
21712   case "$host_os" in
21713     mingw*)
21714       REPLACE_GETPAGESIZE=1
21715
21716
21717
21718
21719
21720
21721
21722   gl_LIBOBJS="$gl_LIBOBJS getpagesize.$ac_objext"
21723
21724       ;;
21725   esac
21726
21727
21728
21729   GNULIB_GETPAGESIZE=1
21730
21731
21732
21733
21734
21735
21736
21737
21738
21739
21740
21741
21742   gl_LIBOBJS="$gl_LIBOBJS gettime.$ac_objext"
21743
21744
21745
21746
21747
21748
21749
21750
21751
21752
21753
21754
21755
21756
21757
21758
21759
21760
21761
21762
21763
21764
21765
21766   { echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
21767 echo $ECHO_N "checking for gettimeofday with POSIX signature... $ECHO_C" >&6; }
21768 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
21769   echo $ECHO_N "(cached) $ECHO_C" >&6
21770 else
21771   cat >conftest.$ac_ext <<_ACEOF
21772 /* confdefs.h.  */
21773 _ACEOF
21774 cat confdefs.h >>conftest.$ac_ext
21775 cat >>conftest.$ac_ext <<_ACEOF
21776 /* end confdefs.h.  */
21777 #include <sys/time.h>
21778             struct timeval c;
21779
21780 int
21781 main ()
21782 {
21783
21784             int (*f) (struct timeval *restrict, void *restrict) = gettimeofday;
21785             int x = f (&c, 0);
21786             return !(x | c.tv_sec | c.tv_usec);
21787
21788   ;
21789   return 0;
21790 }
21791 _ACEOF
21792 rm -f conftest.$ac_objext
21793 if { (ac_try="$ac_compile"
21794 case "(($ac_try" in
21795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21796   *) ac_try_echo=$ac_try;;
21797 esac
21798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21799   (eval "$ac_compile") 2>conftest.er1
21800   ac_status=$?
21801   grep -v '^ *+' conftest.er1 >conftest.err
21802   rm -f conftest.er1
21803   cat conftest.err >&5
21804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805   (exit $ac_status); } && {
21806          test -z "$ac_c_werror_flag" ||
21807          test ! -s conftest.err
21808        } && test -s conftest.$ac_objext; then
21809   gl_cv_func_gettimeofday_posix_signature=yes
21810 else
21811   echo "$as_me: failed program was:" >&5
21812 sed 's/^/| /' conftest.$ac_ext >&5
21813
21814         gl_cv_func_gettimeofday_posix_signature=no
21815 fi
21816
21817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21818 fi
21819 { echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21820 echo "${ECHO_T}$gl_cv_func_gettimeofday_posix_signature" >&6; }
21821
21822
21823
21824
21825  { echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
21826 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6; }
21827 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
21828   echo $ECHO_N "(cached) $ECHO_C" >&6
21829 else
21830   if test "$cross_compiling" = yes; then
21831        gl_cv_func_gettimeofday_clobber=yes
21832 else
21833   cat >conftest.$ac_ext <<_ACEOF
21834 /* confdefs.h.  */
21835 _ACEOF
21836 cat confdefs.h >>conftest.$ac_ext
21837 cat >>conftest.$ac_ext <<_ACEOF
21838 /* end confdefs.h.  */
21839 #include <string.h>
21840           #include <sys/time.h>
21841           #include <time.h>
21842           #include <stdlib.h>
21843
21844 int
21845 main ()
21846 {
21847
21848           time_t t = 0;
21849           struct tm *lt;
21850           struct tm saved_lt;
21851           struct timeval tv;
21852           lt = localtime (&t);
21853           saved_lt = *lt;
21854           gettimeofday (&tv, NULL);
21855           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21856
21857   ;
21858   return 0;
21859 }
21860 _ACEOF
21861 rm -f conftest$ac_exeext
21862 if { (ac_try="$ac_link"
21863 case "(($ac_try" in
21864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21865   *) ac_try_echo=$ac_try;;
21866 esac
21867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21868   (eval "$ac_link") 2>&5
21869   ac_status=$?
21870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21872   { (case "(($ac_try" in
21873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21874   *) ac_try_echo=$ac_try;;
21875 esac
21876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21877   (eval "$ac_try") 2>&5
21878   ac_status=$?
21879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880   (exit $ac_status); }; }; then
21881   gl_cv_func_gettimeofday_clobber=no
21882 else
21883   echo "$as_me: program exited with status $ac_status" >&5
21884 echo "$as_me: failed program was:" >&5
21885 sed 's/^/| /' conftest.$ac_ext >&5
21886
21887 ( exit $ac_status )
21888 gl_cv_func_gettimeofday_clobber=yes
21889 fi
21890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21891 fi
21892
21893
21894 fi
21895 { echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
21896 echo "${ECHO_T}$gl_cv_func_gettimeofday_clobber" >&6; }
21897
21898  if test $gl_cv_func_gettimeofday_clobber = yes; then
21899    REPLACE_GETTIMEOFDAY=1
21900    SYS_TIME_H=sys/time.h
21901
21902
21903
21904
21905
21906
21907
21908
21909   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21910
21911
21912
21913 for ac_header in sys/timeb.h
21914 do
21915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21917   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21920   echo $ECHO_N "(cached) $ECHO_C" >&6
21921 fi
21922 ac_res=`eval echo '${'$as_ac_Header'}'`
21923                { echo "$as_me:$LINENO: result: $ac_res" >&5
21924 echo "${ECHO_T}$ac_res" >&6; }
21925 else
21926   # Is the header compilable?
21927 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21929 cat >conftest.$ac_ext <<_ACEOF
21930 /* confdefs.h.  */
21931 _ACEOF
21932 cat confdefs.h >>conftest.$ac_ext
21933 cat >>conftest.$ac_ext <<_ACEOF
21934 /* end confdefs.h.  */
21935 $ac_includes_default
21936 #include <$ac_header>
21937 _ACEOF
21938 rm -f conftest.$ac_objext
21939 if { (ac_try="$ac_compile"
21940 case "(($ac_try" in
21941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21942   *) ac_try_echo=$ac_try;;
21943 esac
21944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21945   (eval "$ac_compile") 2>conftest.er1
21946   ac_status=$?
21947   grep -v '^ *+' conftest.er1 >conftest.err
21948   rm -f conftest.er1
21949   cat conftest.err >&5
21950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951   (exit $ac_status); } && {
21952          test -z "$ac_c_werror_flag" ||
21953          test ! -s conftest.err
21954        } && test -s conftest.$ac_objext; then
21955   ac_header_compiler=yes
21956 else
21957   echo "$as_me: failed program was:" >&5
21958 sed 's/^/| /' conftest.$ac_ext >&5
21959
21960         ac_header_compiler=no
21961 fi
21962
21963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21965 echo "${ECHO_T}$ac_header_compiler" >&6; }
21966
21967 # Is the header present?
21968 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21970 cat >conftest.$ac_ext <<_ACEOF
21971 /* confdefs.h.  */
21972 _ACEOF
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h.  */
21976 #include <$ac_header>
21977 _ACEOF
21978 if { (ac_try="$ac_cpp conftest.$ac_ext"
21979 case "(($ac_try" in
21980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21981   *) ac_try_echo=$ac_try;;
21982 esac
21983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21984   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21985   ac_status=$?
21986   grep -v '^ *+' conftest.er1 >conftest.err
21987   rm -f conftest.er1
21988   cat conftest.err >&5
21989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990   (exit $ac_status); } >/dev/null && {
21991          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21992          test ! -s conftest.err
21993        }; then
21994   ac_header_preproc=yes
21995 else
21996   echo "$as_me: failed program was:" >&5
21997 sed 's/^/| /' conftest.$ac_ext >&5
21998
21999   ac_header_preproc=no
22000 fi
22001
22002 rm -f conftest.err conftest.$ac_ext
22003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22004 echo "${ECHO_T}$ac_header_preproc" >&6; }
22005
22006 # So?  What about this header?
22007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22008   yes:no: )
22009     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22011     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22013     ac_header_preproc=yes
22014     ;;
22015   no:yes:* )
22016     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22018     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22019 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22020     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22022     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22023 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22024     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22026     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22028     ( cat <<\_ASBOX
22029 ## ------------------------------ ##
22030 ## Report this to bug-tar@gnu.org ##
22031 ## ------------------------------ ##
22032 _ASBOX
22033      ) | sed "s/^/$as_me: WARNING:     /" >&2
22034     ;;
22035 esac
22036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22039   echo $ECHO_N "(cached) $ECHO_C" >&6
22040 else
22041   eval "$as_ac_Header=\$ac_header_preproc"
22042 fi
22043 ac_res=`eval echo '${'$as_ac_Header'}'`
22044                { echo "$as_me:$LINENO: result: $ac_res" >&5
22045 echo "${ECHO_T}$ac_res" >&6; }
22046
22047 fi
22048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22049   cat >>confdefs.h <<_ACEOF
22050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22051 _ACEOF
22052
22053 fi
22054
22055 done
22056
22057
22058 for ac_func in _ftime
22059 do
22060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22061 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22063 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22064   echo $ECHO_N "(cached) $ECHO_C" >&6
22065 else
22066   cat >conftest.$ac_ext <<_ACEOF
22067 /* confdefs.h.  */
22068 _ACEOF
22069 cat confdefs.h >>conftest.$ac_ext
22070 cat >>conftest.$ac_ext <<_ACEOF
22071 /* end confdefs.h.  */
22072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22073    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22074 #define $ac_func innocuous_$ac_func
22075
22076 /* System header to define __stub macros and hopefully few prototypes,
22077     which can conflict with char $ac_func (); below.
22078     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22079     <limits.h> exists even on freestanding compilers.  */
22080
22081 #ifdef __STDC__
22082 # include <limits.h>
22083 #else
22084 # include <assert.h>
22085 #endif
22086
22087 #undef $ac_func
22088
22089 /* Override any GCC internal prototype to avoid an error.
22090    Use char because int might match the return type of a GCC
22091    builtin and then its argument prototype would still apply.  */
22092 #ifdef __cplusplus
22093 extern "C"
22094 #endif
22095 char $ac_func ();
22096 /* The GNU C library defines this for functions which it implements
22097     to always fail with ENOSYS.  Some functions are actually named
22098     something starting with __ and the normal name is an alias.  */
22099 #if defined __stub_$ac_func || defined __stub___$ac_func
22100 choke me
22101 #endif
22102
22103 int
22104 main ()
22105 {
22106 return $ac_func ();
22107   ;
22108   return 0;
22109 }
22110 _ACEOF
22111 rm -f conftest.$ac_objext conftest$ac_exeext
22112 if { (ac_try="$ac_link"
22113 case "(($ac_try" in
22114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22115   *) ac_try_echo=$ac_try;;
22116 esac
22117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22118   (eval "$ac_link") 2>conftest.er1
22119   ac_status=$?
22120   grep -v '^ *+' conftest.er1 >conftest.err
22121   rm -f conftest.er1
22122   cat conftest.err >&5
22123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124   (exit $ac_status); } && {
22125          test -z "$ac_c_werror_flag" ||
22126          test ! -s conftest.err
22127        } && test -s conftest$ac_exeext &&
22128        $as_test_x conftest$ac_exeext; then
22129   eval "$as_ac_var=yes"
22130 else
22131   echo "$as_me: failed program was:" >&5
22132 sed 's/^/| /' conftest.$ac_ext >&5
22133
22134         eval "$as_ac_var=no"
22135 fi
22136
22137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22138       conftest$ac_exeext conftest.$ac_ext
22139 fi
22140 ac_res=`eval echo '${'$as_ac_var'}'`
22141                { echo "$as_me:$LINENO: result: $ac_res" >&5
22142 echo "${ECHO_T}$ac_res" >&6; }
22143 if test `eval echo '${'$as_ac_var'}'` = yes; then
22144   cat >>confdefs.h <<_ACEOF
22145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22146 _ACEOF
22147
22148 fi
22149 done
22150
22151
22152
22153 cat >>confdefs.h <<\_ACEOF
22154 #define gmtime rpl_gmtime
22155 _ACEOF
22156
22157
22158 cat >>confdefs.h <<\_ACEOF
22159 #define localtime rpl_localtime
22160 _ACEOF
22161
22162
22163
22164 cat >>confdefs.h <<\_ACEOF
22165 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
22166 _ACEOF
22167
22168  fi
22169
22170
22171   if test $gl_cv_func_gettimeofday_posix_signature != yes; then
22172     REPLACE_GETTIMEOFDAY=1
22173     SYS_TIME_H=sys/time.h
22174     if test $gl_cv_func_gettimeofday_clobber != yes; then
22175
22176
22177
22178
22179
22180
22181
22182   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
22183
22184
22185
22186 for ac_header in sys/timeb.h
22187 do
22188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22190   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22193   echo $ECHO_N "(cached) $ECHO_C" >&6
22194 fi
22195 ac_res=`eval echo '${'$as_ac_Header'}'`
22196                { echo "$as_me:$LINENO: result: $ac_res" >&5
22197 echo "${ECHO_T}$ac_res" >&6; }
22198 else
22199   # Is the header compilable?
22200 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22202 cat >conftest.$ac_ext <<_ACEOF
22203 /* confdefs.h.  */
22204 _ACEOF
22205 cat confdefs.h >>conftest.$ac_ext
22206 cat >>conftest.$ac_ext <<_ACEOF
22207 /* end confdefs.h.  */
22208 $ac_includes_default
22209 #include <$ac_header>
22210 _ACEOF
22211 rm -f conftest.$ac_objext
22212 if { (ac_try="$ac_compile"
22213 case "(($ac_try" in
22214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22215   *) ac_try_echo=$ac_try;;
22216 esac
22217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22218   (eval "$ac_compile") 2>conftest.er1
22219   ac_status=$?
22220   grep -v '^ *+' conftest.er1 >conftest.err
22221   rm -f conftest.er1
22222   cat conftest.err >&5
22223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224   (exit $ac_status); } && {
22225          test -z "$ac_c_werror_flag" ||
22226          test ! -s conftest.err
22227        } && test -s conftest.$ac_objext; then
22228   ac_header_compiler=yes
22229 else
22230   echo "$as_me: failed program was:" >&5
22231 sed 's/^/| /' conftest.$ac_ext >&5
22232
22233         ac_header_compiler=no
22234 fi
22235
22236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22238 echo "${ECHO_T}$ac_header_compiler" >&6; }
22239
22240 # Is the header present?
22241 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22243 cat >conftest.$ac_ext <<_ACEOF
22244 /* confdefs.h.  */
22245 _ACEOF
22246 cat confdefs.h >>conftest.$ac_ext
22247 cat >>conftest.$ac_ext <<_ACEOF
22248 /* end confdefs.h.  */
22249 #include <$ac_header>
22250 _ACEOF
22251 if { (ac_try="$ac_cpp conftest.$ac_ext"
22252 case "(($ac_try" in
22253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22254   *) ac_try_echo=$ac_try;;
22255 esac
22256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22257   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22258   ac_status=$?
22259   grep -v '^ *+' conftest.er1 >conftest.err
22260   rm -f conftest.er1
22261   cat conftest.err >&5
22262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22263   (exit $ac_status); } >/dev/null && {
22264          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22265          test ! -s conftest.err
22266        }; then
22267   ac_header_preproc=yes
22268 else
22269   echo "$as_me: failed program was:" >&5
22270 sed 's/^/| /' conftest.$ac_ext >&5
22271
22272   ac_header_preproc=no
22273 fi
22274
22275 rm -f conftest.err conftest.$ac_ext
22276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22277 echo "${ECHO_T}$ac_header_preproc" >&6; }
22278
22279 # So?  What about this header?
22280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22281   yes:no: )
22282     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22284     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22286     ac_header_preproc=yes
22287     ;;
22288   no:yes:* )
22289     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22291     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22292 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22293     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22295     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22296 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22299     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22301     ( cat <<\_ASBOX
22302 ## ------------------------------ ##
22303 ## Report this to bug-tar@gnu.org ##
22304 ## ------------------------------ ##
22305 _ASBOX
22306      ) | sed "s/^/$as_me: WARNING:     /" >&2
22307     ;;
22308 esac
22309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22312   echo $ECHO_N "(cached) $ECHO_C" >&6
22313 else
22314   eval "$as_ac_Header=\$ac_header_preproc"
22315 fi
22316 ac_res=`eval echo '${'$as_ac_Header'}'`
22317                { echo "$as_me:$LINENO: result: $ac_res" >&5
22318 echo "${ECHO_T}$ac_res" >&6; }
22319
22320 fi
22321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22322   cat >>confdefs.h <<_ACEOF
22323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22324 _ACEOF
22325
22326 fi
22327
22328 done
22329
22330
22331 for ac_func in _ftime
22332 do
22333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22334 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22337   echo $ECHO_N "(cached) $ECHO_C" >&6
22338 else
22339   cat >conftest.$ac_ext <<_ACEOF
22340 /* confdefs.h.  */
22341 _ACEOF
22342 cat confdefs.h >>conftest.$ac_ext
22343 cat >>conftest.$ac_ext <<_ACEOF
22344 /* end confdefs.h.  */
22345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22346    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22347 #define $ac_func innocuous_$ac_func
22348
22349 /* System header to define __stub macros and hopefully few prototypes,
22350     which can conflict with char $ac_func (); below.
22351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22352     <limits.h> exists even on freestanding compilers.  */
22353
22354 #ifdef __STDC__
22355 # include <limits.h>
22356 #else
22357 # include <assert.h>
22358 #endif
22359
22360 #undef $ac_func
22361
22362 /* Override any GCC internal prototype to avoid an error.
22363    Use char because int might match the return type of a GCC
22364    builtin and then its argument prototype would still apply.  */
22365 #ifdef __cplusplus
22366 extern "C"
22367 #endif
22368 char $ac_func ();
22369 /* The GNU C library defines this for functions which it implements
22370     to always fail with ENOSYS.  Some functions are actually named
22371     something starting with __ and the normal name is an alias.  */
22372 #if defined __stub_$ac_func || defined __stub___$ac_func
22373 choke me
22374 #endif
22375
22376 int
22377 main ()
22378 {
22379 return $ac_func ();
22380   ;
22381   return 0;
22382 }
22383 _ACEOF
22384 rm -f conftest.$ac_objext conftest$ac_exeext
22385 if { (ac_try="$ac_link"
22386 case "(($ac_try" in
22387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22388   *) ac_try_echo=$ac_try;;
22389 esac
22390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22391   (eval "$ac_link") 2>conftest.er1
22392   ac_status=$?
22393   grep -v '^ *+' conftest.er1 >conftest.err
22394   rm -f conftest.er1
22395   cat conftest.err >&5
22396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397   (exit $ac_status); } && {
22398          test -z "$ac_c_werror_flag" ||
22399          test ! -s conftest.err
22400        } && test -s conftest$ac_exeext &&
22401        $as_test_x conftest$ac_exeext; then
22402   eval "$as_ac_var=yes"
22403 else
22404   echo "$as_me: failed program was:" >&5
22405 sed 's/^/| /' conftest.$ac_ext >&5
22406
22407         eval "$as_ac_var=no"
22408 fi
22409
22410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22411       conftest$ac_exeext conftest.$ac_ext
22412 fi
22413 ac_res=`eval echo '${'$as_ac_var'}'`
22414                { echo "$as_me:$LINENO: result: $ac_res" >&5
22415 echo "${ECHO_T}$ac_res" >&6; }
22416 if test `eval echo '${'$as_ac_var'}'` = yes; then
22417   cat >>confdefs.h <<_ACEOF
22418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22419 _ACEOF
22420
22421 fi
22422 done
22423
22424
22425     fi
22426   fi
22427
22428
22429
22430
22431
22432
22433
22434
22435
22436   gl_LIBOBJS="$gl_LIBOBJS hash.$ac_objext"
22437
22438
22439
22440
22441
22442
22443
22444
22445
22446
22447
22448
22449   gl_LIBOBJS="$gl_LIBOBJS human.$ac_objext"
22450
22451
22452     :
22453
22454
22455
22456   { echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5
22457 echo $ECHO_N "checking whether the compiler generally respects inline... $ECHO_C" >&6; }
22458 if test "${gl_cv_c_inline_effective+set}" = set; then
22459   echo $ECHO_N "(cached) $ECHO_C" >&6
22460 else
22461   if test $ac_cv_c_inline = no; then
22462        gl_cv_c_inline_effective=no
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 int
22472 main ()
22473 {
22474 #ifdef __NO_INLINE__
22475                #error "inline is not effective"
22476              #endif
22477   ;
22478   return 0;
22479 }
22480 _ACEOF
22481 rm -f conftest.$ac_objext
22482 if { (ac_try="$ac_compile"
22483 case "(($ac_try" in
22484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22485   *) ac_try_echo=$ac_try;;
22486 esac
22487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22488   (eval "$ac_compile") 2>conftest.er1
22489   ac_status=$?
22490   grep -v '^ *+' conftest.er1 >conftest.err
22491   rm -f conftest.er1
22492   cat conftest.err >&5
22493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494   (exit $ac_status); } && {
22495          test -z "$ac_c_werror_flag" ||
22496          test ! -s conftest.err
22497        } && test -s conftest.$ac_objext; then
22498   gl_cv_c_inline_effective=yes
22499 else
22500   echo "$as_me: failed program was:" >&5
22501 sed 's/^/| /' conftest.$ac_ext >&5
22502
22503         gl_cv_c_inline_effective=no
22504 fi
22505
22506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22507      fi
22508
22509 fi
22510 { echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
22511 echo "${ECHO_T}$gl_cv_c_inline_effective" >&6; }
22512   if test $gl_cv_c_inline_effective = yes; then
22513
22514 cat >>confdefs.h <<\_ACEOF
22515 #define HAVE_INLINE 1
22516 _ACEOF
22517
22518   fi
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528   gl_LIBOBJS="$gl_LIBOBJS imaxtostr.$ac_objext"
22529
22530
22531
22532
22533
22534
22535
22536
22537   gl_LIBOBJS="$gl_LIBOBJS offtostr.$ac_objext"
22538
22539
22540
22541
22542
22543
22544
22545
22546   gl_LIBOBJS="$gl_LIBOBJS umaxtostr.$ac_objext"
22547
22548
22549
22550
22551
22552
22553
22554
22555   gl_LIBOBJS="$gl_LIBOBJS uinttostr.$ac_objext"
22556
22557
22558
22559
22560   :
22561
22562   :
22563   :
22564   :
22565   :
22566
22567
22568
22569
22570
22571
22572
22573
22574
22575
22576
22577
22578
22579
22580
22581
22582
22583
22584
22585
22586
22587               { echo "$as_me:$LINENO: checking whether inttypes.h conforms to C99" >&5
22588 echo $ECHO_N "checking whether inttypes.h conforms to C99... $ECHO_C" >&6; }
22589 if test "${gl_cv_header_working_inttypes_h+set}" = set; then
22590   echo $ECHO_N "(cached) $ECHO_C" >&6
22591 else
22592   gl_cv_header_working_inttypes_h=no
22593      if test "$gl_cv_header_working_stdint_h" = yes \
22594         && test $ac_cv_header_inttypes_h = yes \
22595         && test "$ac_cv_have_decl_imaxabs" = yes \
22596         && test "$ac_cv_have_decl_imaxdiv" = yes \
22597         && test "$ac_cv_have_decl_strtoimax" = yes \
22598         && test "$ac_cv_have_decl_strtoumax" = yes; then
22599        cat >conftest.$ac_ext <<_ACEOF
22600
22601          /* confdefs.h.  */
22602 _ACEOF
22603 cat confdefs.h >>conftest.$ac_ext
22604 cat >>conftest.$ac_ext <<_ACEOF
22605 /* end confdefs.h.  */
22606
22607 #include <stddef.h>
22608 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
22609 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
22610 #define __STDC_FORMAT_MACROS 1 /* to make it work also in C++ mode */
22611 #define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H /* work if build isn't clean */
22612 #include <inttypes.h>
22613
22614 /* No need to duplicate the tests of stdint.m4; they are subsumed by
22615    $gl_cv_header_working_stdint_h = yes.  */
22616
22617 /* Tests for macros supposed to be defined in inttypes.h.  */
22618
22619 const char *k = /* implicit string concatenation */
22620 #ifdef INT8_MAX
22621   PRId8 PRIi8
22622 #endif
22623 #ifdef UINT8_MAX
22624   PRIo8 PRIu8 PRIx8 PRIX8
22625 #endif
22626 #ifdef INT16_MAX
22627   PRId16 PRIi16
22628 #endif
22629 #ifdef UINT16_MAX
22630   PRIo16 PRIu16 PRIx16 PRIX16
22631 #endif
22632 #ifdef INT32_MAX
22633   PRId32 PRIi32
22634 #endif
22635 #ifdef UINT32_MAX
22636   PRIo32 PRIu32 PRIx32 PRIX32
22637 #endif
22638 #ifdef INT64_MAX
22639   PRId64 PRIi64
22640 #endif
22641 #ifdef UINT64_MAX
22642   PRIo64 PRIu64 PRIx64 PRIX64
22643 #endif
22644   PRIdLEAST8 PRIiLEAST8 PRIoLEAST8 PRIuLEAST8 PRIxLEAST8 PRIXLEAST8
22645   PRIdLEAST16 PRIiLEAST16 PRIoLEAST16 PRIuLEAST16 PRIxLEAST16 PRIXLEAST16
22646   PRIdLEAST32 PRIiLEAST32 PRIoLEAST32 PRIuLEAST32 PRIxLEAST32 PRIXLEAST32
22647   PRIdLEAST64 PRIiLEAST64
22648   PRIoLEAST64 PRIuLEAST64 PRIxLEAST64 PRIXLEAST64
22649   PRIdFAST8 PRIiFAST8 PRIoFAST8 PRIuFAST8 PRIxFAST8 PRIXFAST8
22650   PRIdFAST16 PRIiFAST16 PRIoFAST16 PRIuFAST16 PRIxFAST16 PRIXFAST16
22651   PRIdFAST32 PRIiFAST32 PRIoFAST32 PRIuFAST32 PRIxFAST32 PRIXFAST32
22652   PRIdFAST64 PRIiFAST64
22653   PRIoFAST64 PRIuFAST64 PRIxFAST64 PRIXFAST64
22654   PRIdMAX PRIiMAX PRIoMAX PRIuMAX PRIxMAX PRIXMAX
22655 #ifdef INTPTR_MAX
22656   PRIdPTR PRIiPTR
22657 #endif
22658 #ifdef UINTPTR_MAX
22659   PRIoPTR PRIuPTR PRIxPTR PRIXPTR
22660 #endif
22661   ;
22662 const char *l = /* implicit string concatenation */
22663 #ifdef INT8_MAX
22664   SCNd8 SCNi8
22665 #endif
22666 #ifdef UINT8_MAX
22667   SCNo8 SCNu8 SCNx8
22668 #endif
22669 #ifdef INT16_MAX
22670   SCNd16 SCNi16
22671 #endif
22672 #ifdef UINT16_MAX
22673   SCNo16 SCNu16 SCNx16
22674 #endif
22675 #ifdef INT32_MAX
22676   SCNd32 SCNi32
22677 #endif
22678 #ifdef UINT32_MAX
22679   SCNo32 SCNu32 SCNx32
22680 #endif
22681 #ifdef INT64_MAX
22682   SCNd64 SCNi64
22683 #endif
22684 #ifdef UINT64_MAX
22685   SCNo64 SCNu64 SCNx64
22686 #endif
22687   SCNdLEAST8 SCNiLEAST8 SCNoLEAST8 SCNuLEAST8 SCNxLEAST8
22688   SCNdLEAST16 SCNiLEAST16 SCNoLEAST16 SCNuLEAST16 SCNxLEAST16
22689   SCNdLEAST32 SCNiLEAST32 SCNoLEAST32 SCNuLEAST32 SCNxLEAST32
22690   SCNdLEAST64 SCNiLEAST64
22691   SCNoLEAST64 SCNuLEAST64 SCNxLEAST64
22692   SCNdFAST8 SCNiFAST8 SCNoFAST8 SCNuFAST8 SCNxFAST8
22693   SCNdFAST16 SCNiFAST16 SCNoFAST16 SCNuFAST16 SCNxFAST16
22694   SCNdFAST32 SCNiFAST32 SCNoFAST32 SCNuFAST32 SCNxFAST32
22695   SCNdFAST64 SCNiFAST64
22696   SCNoFAST64 SCNuFAST64 SCNxFAST64
22697   SCNdMAX SCNiMAX SCNoMAX SCNuMAX SCNxMAX
22698 #ifdef INTPTR_MAX
22699   SCNdPTR SCNiPTR
22700 #endif
22701 #ifdef UINTPTR_MAX
22702   SCNoPTR SCNuPTR SCNxPTR
22703 #endif
22704   ;
22705
22706 int
22707 main ()
22708 {
22709
22710   ;
22711   return 0;
22712 }
22713 _ACEOF
22714 rm -f conftest.$ac_objext
22715 if { (ac_try="$ac_compile"
22716 case "(($ac_try" in
22717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22718   *) ac_try_echo=$ac_try;;
22719 esac
22720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22721   (eval "$ac_compile") 2>conftest.er1
22722   ac_status=$?
22723   grep -v '^ *+' conftest.er1 >conftest.err
22724   rm -f conftest.er1
22725   cat conftest.err >&5
22726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727   (exit $ac_status); } && {
22728          test -z "$ac_c_werror_flag" ||
22729          test ! -s conftest.err
22730        } && test -s conftest.$ac_objext; then
22731   gl_cv_header_working_inttypes_h=yes
22732 else
22733   echo "$as_me: failed program was:" >&5
22734 sed 's/^/| /' conftest.$ac_ext >&5
22735
22736
22737 fi
22738
22739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22740      fi
22741 fi
22742 { echo "$as_me:$LINENO: result: $gl_cv_header_working_inttypes_h" >&5
22743 echo "${ECHO_T}$gl_cv_header_working_inttypes_h" >&6; }
22744
22745     if false && test $gl_cv_header_working_inttypes_h = yes; then
22746         INTTYPES_H=''
22747   else
22748
22749
22750
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760      if test $gl_cv_have_include_next = yes; then
22761        gl_cv_next_inttypes_h='<'inttypes.h'>'
22762      else
22763        { echo "$as_me:$LINENO: checking absolute name of <inttypes.h>" >&5
22764 echo $ECHO_N "checking absolute name of <inttypes.h>... $ECHO_C" >&6; }
22765 if test "${gl_cv_next_inttypes_h+set}" = set; then
22766   echo $ECHO_N "(cached) $ECHO_C" >&6
22767 else
22768
22769           if test $ac_cv_header_inttypes_h = yes; then
22770             cat >conftest.$ac_ext <<_ACEOF
22771 /* confdefs.h.  */
22772 _ACEOF
22773 cat confdefs.h >>conftest.$ac_ext
22774 cat >>conftest.$ac_ext <<_ACEOF
22775 /* end confdefs.h.  */
22776 #include <inttypes.h>
22777
22778 _ACEOF
22779                                     gl_cv_next_inttypes_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22780                sed -n '\#/inttypes.h#{
22781                  s#.*"\(.*/inttypes.h\)".*#\1#
22782                  s#^/[^/]#//&#
22783                  p
22784                  q
22785                }'`'"'
22786           else
22787             gl_cv_next_inttypes_h='<'inttypes.h'>'
22788           fi
22789
22790 fi
22791 { echo "$as_me:$LINENO: result: $gl_cv_next_inttypes_h" >&5
22792 echo "${ECHO_T}$gl_cv_next_inttypes_h" >&6; }
22793      fi
22794      NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
22795
22796
22797
22798
22799
22800 cat >>confdefs.h <<\_ACEOF
22801 #define GL_TRIGGER_STDC_LIMIT_MACROS 1
22802 _ACEOF
22803
22804
22805
22806
22807     PRIPTR_PREFIX=
22808     if test -n "$STDINT_H"; then
22809             PRIPTR_PREFIX='"l"'
22810     else
22811             for glpfx in '' l ll I64; do
22812         case $glpfx in
22813           '')  gltype1='int';;
22814           l)   gltype1='long int';;
22815           ll)  gltype1='long long int';;
22816           I64) gltype1='__int64';;
22817         esac
22818         cat >conftest.$ac_ext <<_ACEOF
22819 /* confdefs.h.  */
22820 _ACEOF
22821 cat confdefs.h >>conftest.$ac_ext
22822 cat >>conftest.$ac_ext <<_ACEOF
22823 /* end confdefs.h.  */
22824 #include <stdint.h>
22825              extern intptr_t foo;
22826              extern $gltype1 foo;
22827 int
22828 main ()
22829 {
22830
22831   ;
22832   return 0;
22833 }
22834 _ACEOF
22835 rm -f conftest.$ac_objext
22836 if { (ac_try="$ac_compile"
22837 case "(($ac_try" in
22838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22839   *) ac_try_echo=$ac_try;;
22840 esac
22841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22842   (eval "$ac_compile") 2>conftest.er1
22843   ac_status=$?
22844   grep -v '^ *+' conftest.er1 >conftest.err
22845   rm -f conftest.er1
22846   cat conftest.err >&5
22847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848   (exit $ac_status); } && {
22849          test -z "$ac_c_werror_flag" ||
22850          test ! -s conftest.err
22851        } && test -s conftest.$ac_objext; then
22852   PRIPTR_PREFIX='"'$glpfx'"'
22853 else
22854   echo "$as_me: failed program was:" >&5
22855 sed 's/^/| /' conftest.$ac_ext >&5
22856
22857
22858 fi
22859
22860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22861         test -n "$PRIPTR_PREFIX" && break
22862       done
22863     fi
22864
22865
22866     if test "$ac_cv_have_decl_imaxabs" = yes; then
22867       HAVE_DECL_IMAXABS=1
22868     else
22869       HAVE_DECL_IMAXABS=0
22870     fi
22871
22872     if test "$ac_cv_have_decl_imaxdiv" = yes; then
22873       HAVE_DECL_IMAXDIV=1
22874     else
22875       HAVE_DECL_IMAXDIV=0
22876     fi
22877
22878     if test "$ac_cv_have_decl_strtoimax" = yes; then
22879       HAVE_DECL_STRTOIMAX=1
22880     else
22881       HAVE_DECL_STRTOIMAX=0
22882     fi
22883
22884     if test "$ac_cv_have_decl_strtoumax" = yes; then
22885       HAVE_DECL_STRTOUMAX=1
22886     else
22887       HAVE_DECL_STRTOUMAX=0
22888     fi
22889
22890
22891   { echo "$as_me:$LINENO: checking whether INT32_MAX < INTMAX_MAX" >&5
22892 echo $ECHO_N "checking whether INT32_MAX < INTMAX_MAX... $ECHO_C" >&6; }
22893 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then
22894   echo $ECHO_N "(cached) $ECHO_C" >&6
22895 else
22896   cat >conftest.$ac_ext <<_ACEOF
22897 /* confdefs.h.  */
22898 _ACEOF
22899 cat confdefs.h >>conftest.$ac_ext
22900 cat >>conftest.$ac_ext <<_ACEOF
22901 /* end confdefs.h.  */
22902 /* Work also in C++ mode.  */
22903             #define __STDC_LIMIT_MACROS 1
22904
22905             /* Work if build is not clean.  */
22906             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
22907
22908             #include <limits.h>
22909             #if HAVE_STDINT_H
22910              #include <stdint.h>
22911             #endif
22912
22913             #if defined INT32_MAX && defined INTMAX_MAX
22914              #define CONDITION (INT32_MAX < INTMAX_MAX)
22915             #elif HAVE_LONG_LONG_INT
22916              #define CONDITION (sizeof (int) < sizeof (long long int))
22917             #else
22918              #define CONDITION 0
22919             #endif
22920             int test[CONDITION ? 1 : -1];
22921 int
22922 main ()
22923 {
22924
22925   ;
22926   return 0;
22927 }
22928 _ACEOF
22929 rm -f conftest.$ac_objext
22930 if { (ac_try="$ac_compile"
22931 case "(($ac_try" in
22932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22933   *) ac_try_echo=$ac_try;;
22934 esac
22935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22936   (eval "$ac_compile") 2>conftest.er1
22937   ac_status=$?
22938   grep -v '^ *+' conftest.er1 >conftest.err
22939   rm -f conftest.er1
22940   cat conftest.err >&5
22941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942   (exit $ac_status); } && {
22943          test -z "$ac_c_werror_flag" ||
22944          test ! -s conftest.err
22945        } && test -s conftest.$ac_objext; then
22946   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
22947 else
22948   echo "$as_me: failed program was:" >&5
22949 sed 's/^/| /' conftest.$ac_ext >&5
22950
22951         gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
22952 fi
22953
22954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22955 fi
22956 { echo "$as_me:$LINENO: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
22957 echo "${ECHO_T}$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
22958   if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
22959     INT32_MAX_LT_INTMAX_MAX=1;
22960   else
22961     INT32_MAX_LT_INTMAX_MAX=0;
22962   fi
22963
22964
22965
22966   { echo "$as_me:$LINENO: checking whether INT64_MAX == LONG_MAX" >&5
22967 echo $ECHO_N "checking whether INT64_MAX == LONG_MAX... $ECHO_C" >&6; }
22968 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then
22969   echo $ECHO_N "(cached) $ECHO_C" >&6
22970 else
22971   cat >conftest.$ac_ext <<_ACEOF
22972 /* confdefs.h.  */
22973 _ACEOF
22974 cat confdefs.h >>conftest.$ac_ext
22975 cat >>conftest.$ac_ext <<_ACEOF
22976 /* end confdefs.h.  */
22977 /* Work also in C++ mode.  */
22978             #define __STDC_LIMIT_MACROS 1
22979
22980             /* Work if build is not clean.  */
22981             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
22982
22983             #include <limits.h>
22984             #if HAVE_STDINT_H
22985              #include <stdint.h>
22986             #endif
22987
22988             #if defined INT64_MAX
22989              #define CONDITION (INT64_MAX == LONG_MAX)
22990             #elif HAVE_LONG_LONG_INT
22991              #define CONDITION (sizeof (long long int) == sizeof (long int))
22992             #else
22993              #define CONDITION 0
22994             #endif
22995             int test[CONDITION ? 1 : -1];
22996 int
22997 main ()
22998 {
22999
23000   ;
23001   return 0;
23002 }
23003 _ACEOF
23004 rm -f conftest.$ac_objext
23005 if { (ac_try="$ac_compile"
23006 case "(($ac_try" in
23007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23008   *) ac_try_echo=$ac_try;;
23009 esac
23010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23011   (eval "$ac_compile") 2>conftest.er1
23012   ac_status=$?
23013   grep -v '^ *+' conftest.er1 >conftest.err
23014   rm -f conftest.er1
23015   cat conftest.err >&5
23016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017   (exit $ac_status); } && {
23018          test -z "$ac_c_werror_flag" ||
23019          test ! -s conftest.err
23020        } && test -s conftest.$ac_objext; then
23021   gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
23022 else
23023   echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23025
23026         gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
23027 fi
23028
23029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23030 fi
23031 { echo "$as_me:$LINENO: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
23032 echo "${ECHO_T}$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
23033   if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
23034     INT64_MAX_EQ_LONG_MAX=1;
23035   else
23036     INT64_MAX_EQ_LONG_MAX=0;
23037   fi
23038
23039
23040
23041   { echo "$as_me:$LINENO: checking whether UINT32_MAX < UINTMAX_MAX" >&5
23042 echo $ECHO_N "checking whether UINT32_MAX < UINTMAX_MAX... $ECHO_C" >&6; }
23043 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then
23044   echo $ECHO_N "(cached) $ECHO_C" >&6
23045 else
23046   cat >conftest.$ac_ext <<_ACEOF
23047 /* confdefs.h.  */
23048 _ACEOF
23049 cat confdefs.h >>conftest.$ac_ext
23050 cat >>conftest.$ac_ext <<_ACEOF
23051 /* end confdefs.h.  */
23052 /* Work also in C++ mode.  */
23053             #define __STDC_LIMIT_MACROS 1
23054
23055             /* Work if build is not clean.  */
23056             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
23057
23058             #include <limits.h>
23059             #if HAVE_STDINT_H
23060              #include <stdint.h>
23061             #endif
23062
23063             #if defined UINT32_MAX && defined UINTMAX_MAX
23064              #define CONDITION (UINT32_MAX < UINTMAX_MAX)
23065             #elif HAVE_LONG_LONG_INT
23066              #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
23067             #else
23068              #define CONDITION 0
23069             #endif
23070             int test[CONDITION ? 1 : -1];
23071 int
23072 main ()
23073 {
23074
23075   ;
23076   return 0;
23077 }
23078 _ACEOF
23079 rm -f conftest.$ac_objext
23080 if { (ac_try="$ac_compile"
23081 case "(($ac_try" in
23082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23083   *) ac_try_echo=$ac_try;;
23084 esac
23085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23086   (eval "$ac_compile") 2>conftest.er1
23087   ac_status=$?
23088   grep -v '^ *+' conftest.er1 >conftest.err
23089   rm -f conftest.er1
23090   cat conftest.err >&5
23091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092   (exit $ac_status); } && {
23093          test -z "$ac_c_werror_flag" ||
23094          test ! -s conftest.err
23095        } && test -s conftest.$ac_objext; then
23096   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
23097 else
23098   echo "$as_me: failed program was:" >&5
23099 sed 's/^/| /' conftest.$ac_ext >&5
23100
23101         gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
23102 fi
23103
23104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23105 fi
23106 { echo "$as_me:$LINENO: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
23107 echo "${ECHO_T}$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
23108   if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
23109     UINT32_MAX_LT_UINTMAX_MAX=1;
23110   else
23111     UINT32_MAX_LT_UINTMAX_MAX=0;
23112   fi
23113
23114
23115
23116   { echo "$as_me:$LINENO: checking whether UINT64_MAX == ULONG_MAX" >&5
23117 echo $ECHO_N "checking whether UINT64_MAX == ULONG_MAX... $ECHO_C" >&6; }
23118 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then
23119   echo $ECHO_N "(cached) $ECHO_C" >&6
23120 else
23121   cat >conftest.$ac_ext <<_ACEOF
23122 /* confdefs.h.  */
23123 _ACEOF
23124 cat confdefs.h >>conftest.$ac_ext
23125 cat >>conftest.$ac_ext <<_ACEOF
23126 /* end confdefs.h.  */
23127 /* Work also in C++ mode.  */
23128             #define __STDC_LIMIT_MACROS 1
23129
23130             /* Work if build is not clean.  */
23131             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
23132
23133             #include <limits.h>
23134             #if HAVE_STDINT_H
23135              #include <stdint.h>
23136             #endif
23137
23138             #if defined UINT64_MAX
23139              #define CONDITION (UINT64_MAX == ULONG_MAX)
23140             #elif HAVE_LONG_LONG_INT
23141              #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
23142             #else
23143              #define CONDITION 0
23144             #endif
23145             int test[CONDITION ? 1 : -1];
23146 int
23147 main ()
23148 {
23149
23150   ;
23151   return 0;
23152 }
23153 _ACEOF
23154 rm -f conftest.$ac_objext
23155 if { (ac_try="$ac_compile"
23156 case "(($ac_try" in
23157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23158   *) ac_try_echo=$ac_try;;
23159 esac
23160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23161   (eval "$ac_compile") 2>conftest.er1
23162   ac_status=$?
23163   grep -v '^ *+' conftest.er1 >conftest.err
23164   rm -f conftest.er1
23165   cat conftest.err >&5
23166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167   (exit $ac_status); } && {
23168          test -z "$ac_c_werror_flag" ||
23169          test ! -s conftest.err
23170        } && test -s conftest.$ac_objext; then
23171   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
23172 else
23173   echo "$as_me: failed program was:" >&5
23174 sed 's/^/| /' conftest.$ac_ext >&5
23175
23176         gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
23177 fi
23178
23179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23180 fi
23181 { echo "$as_me:$LINENO: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
23182 echo "${ECHO_T}$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
23183   if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
23184     UINT64_MAX_EQ_ULONG_MAX=1;
23185   else
23186     UINT64_MAX_EQ_ULONG_MAX=0;
23187   fi
23188
23189
23190
23191     INTTYPES_H='inttypes.h'
23192   fi
23193
23194
23195
23196
23197
23198
23199
23200
23201
23202
23203
23204
23205
23206 for ac_func in lchown
23207 do
23208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23209 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23211 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23212   echo $ECHO_N "(cached) $ECHO_C" >&6
23213 else
23214   cat >conftest.$ac_ext <<_ACEOF
23215 /* confdefs.h.  */
23216 _ACEOF
23217 cat confdefs.h >>conftest.$ac_ext
23218 cat >>conftest.$ac_ext <<_ACEOF
23219 /* end confdefs.h.  */
23220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23221    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23222 #define $ac_func innocuous_$ac_func
23223
23224 /* System header to define __stub macros and hopefully few prototypes,
23225     which can conflict with char $ac_func (); below.
23226     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23227     <limits.h> exists even on freestanding compilers.  */
23228
23229 #ifdef __STDC__
23230 # include <limits.h>
23231 #else
23232 # include <assert.h>
23233 #endif
23234
23235 #undef $ac_func
23236
23237 /* Override any GCC internal prototype to avoid an error.
23238    Use char because int might match the return type of a GCC
23239    builtin and then its argument prototype would still apply.  */
23240 #ifdef __cplusplus
23241 extern "C"
23242 #endif
23243 char $ac_func ();
23244 /* The GNU C library defines this for functions which it implements
23245     to always fail with ENOSYS.  Some functions are actually named
23246     something starting with __ and the normal name is an alias.  */
23247 #if defined __stub_$ac_func || defined __stub___$ac_func
23248 choke me
23249 #endif
23250
23251 int
23252 main ()
23253 {
23254 return $ac_func ();
23255   ;
23256   return 0;
23257 }
23258 _ACEOF
23259 rm -f conftest.$ac_objext conftest$ac_exeext
23260 if { (ac_try="$ac_link"
23261 case "(($ac_try" in
23262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23263   *) ac_try_echo=$ac_try;;
23264 esac
23265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23266   (eval "$ac_link") 2>conftest.er1
23267   ac_status=$?
23268   grep -v '^ *+' conftest.er1 >conftest.err
23269   rm -f conftest.er1
23270   cat conftest.err >&5
23271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272   (exit $ac_status); } && {
23273          test -z "$ac_c_werror_flag" ||
23274          test ! -s conftest.err
23275        } && test -s conftest$ac_exeext &&
23276        $as_test_x conftest$ac_exeext; then
23277   eval "$as_ac_var=yes"
23278 else
23279   echo "$as_me: failed program was:" >&5
23280 sed 's/^/| /' conftest.$ac_ext >&5
23281
23282         eval "$as_ac_var=no"
23283 fi
23284
23285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23286       conftest$ac_exeext conftest.$ac_ext
23287 fi
23288 ac_res=`eval echo '${'$as_ac_var'}'`
23289                { echo "$as_me:$LINENO: result: $ac_res" >&5
23290 echo "${ECHO_T}$ac_res" >&6; }
23291 if test `eval echo '${'$as_ac_var'}'` = yes; then
23292   cat >>confdefs.h <<_ACEOF
23293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23294 _ACEOF
23295
23296 else
23297
23298     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
23299
23300 fi
23301 done
23302
23303
23304   if test $ac_cv_func_lchown = no; then
23305     REPLACE_LCHOWN=1
23306   fi
23307
23308
23309
23310   GNULIB_LCHOWN=1
23311
23312
23313
23314
23315
23316
23317
23318
23319
23320
23321
23322   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
23323
23324
23325
23326
23327   { echo "$as_me:$LINENO: checking whether lseek detects pipes" >&5
23328 echo $ECHO_N "checking whether lseek detects pipes... $ECHO_C" >&6; }
23329 if test "${gl_cv_func_lseek_pipe+set}" = set; then
23330   echo $ECHO_N "(cached) $ECHO_C" >&6
23331 else
23332   if test $cross_compiling = no; then
23333        cat >conftest.$ac_ext <<_ACEOF
23334
23335 #include <sys/types.h> /* for off_t */
23336 #include <stdio.h> /* for SEEK_CUR */
23337 #include <unistd.h>
23338 int main ()
23339 {
23340   /* Exit with success only if stdin is seekable.  */
23341   return lseek (0, (off_t)0, SEEK_CUR) < 0;
23342 }
23343 _ACEOF
23344 rm -f conftest.$ac_objext conftest$ac_exeext
23345 if { (ac_try="$ac_link"
23346 case "(($ac_try" in
23347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23348   *) ac_try_echo=$ac_try;;
23349 esac
23350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23351   (eval "$ac_link") 2>conftest.er1
23352   ac_status=$?
23353   grep -v '^ *+' conftest.er1 >conftest.err
23354   rm -f conftest.er1
23355   cat conftest.err >&5
23356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357   (exit $ac_status); } && {
23358          test -z "$ac_c_werror_flag" ||
23359          test ! -s conftest.err
23360        } && test -s conftest$ac_exeext &&
23361        $as_test_x conftest$ac_exeext; then
23362   if test -s conftest$ac_exeext \
23363              && ./conftest$ac_exeext < conftest.$ac_ext \
23364              && { echo hi | ./conftest$ac_exeext; test $? = 1; }; then
23365             gl_cv_func_lseek_pipe=yes
23366           else
23367             gl_cv_func_lseek_pipe=no
23368           fi
23369 else
23370   echo "$as_me: failed program was:" >&5
23371 sed 's/^/| /' conftest.$ac_ext >&5
23372
23373         gl_cv_func_lseek_pipe=no
23374 fi
23375
23376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23377       conftest$ac_exeext conftest.$ac_ext
23378      else
23379        cat >conftest.$ac_ext <<_ACEOF
23380
23381 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
23382 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes.  */
23383   Choke me.
23384 #endif
23385 _ACEOF
23386 rm -f conftest.$ac_objext
23387 if { (ac_try="$ac_compile"
23388 case "(($ac_try" in
23389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23390   *) ac_try_echo=$ac_try;;
23391 esac
23392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23393   (eval "$ac_compile") 2>conftest.er1
23394   ac_status=$?
23395   grep -v '^ *+' conftest.er1 >conftest.err
23396   rm -f conftest.er1
23397   cat conftest.err >&5
23398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399   (exit $ac_status); } && {
23400          test -z "$ac_c_werror_flag" ||
23401          test ! -s conftest.err
23402        } && test -s conftest.$ac_objext; then
23403   gl_cv_func_lseek_pipe=yes
23404 else
23405   echo "$as_me: failed program was:" >&5
23406 sed 's/^/| /' conftest.$ac_ext >&5
23407
23408         gl_cv_func_lseek_pipe=no
23409 fi
23410
23411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23412      fi
23413 fi
23414 { echo "$as_me:$LINENO: result: $gl_cv_func_lseek_pipe" >&5
23415 echo "${ECHO_T}$gl_cv_func_lseek_pipe" >&6; }
23416   if test $gl_cv_func_lseek_pipe = no; then
23417
23418
23419
23420
23421
23422
23423
23424
23425   gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
23426
23427
23428   REPLACE_LSEEK=1
23429
23430 cat >>confdefs.h <<\_ACEOF
23431 #define LSEEK_PIPE_BROKEN 1
23432 _ACEOF
23433
23434
23435   fi
23436
23437
23438
23439   GNULIB_LSEEK=1
23440
23441
23442   { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
23443 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
23444 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
23445   echo $ECHO_N "(cached) $ECHO_C" >&6
23446 else
23447   rm -f conftest.sym conftest.file
23448 echo >conftest.file
23449 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
23450   if test "$cross_compiling" = yes; then
23451   ac_cv_func_lstat_dereferences_slashed_symlink=no
23452 else
23453   cat >conftest.$ac_ext <<_ACEOF
23454 /* confdefs.h.  */
23455 _ACEOF
23456 cat confdefs.h >>conftest.$ac_ext
23457 cat >>conftest.$ac_ext <<_ACEOF
23458 /* end confdefs.h.  */
23459 $ac_includes_default
23460 int
23461 main ()
23462 {
23463 struct stat sbuf;
23464      /* Linux will dereference the symlink and fail.
23465         That is better in the sense that it means we will not
23466         have to compile and use the lstat wrapper.  */
23467      return lstat ("conftest.sym/", &sbuf) == 0;
23468   ;
23469   return 0;
23470 }
23471 _ACEOF
23472 rm -f conftest$ac_exeext
23473 if { (ac_try="$ac_link"
23474 case "(($ac_try" in
23475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23476   *) ac_try_echo=$ac_try;;
23477 esac
23478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23479   (eval "$ac_link") 2>&5
23480   ac_status=$?
23481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23483   { (case "(($ac_try" in
23484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23485   *) ac_try_echo=$ac_try;;
23486 esac
23487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23488   (eval "$ac_try") 2>&5
23489   ac_status=$?
23490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491   (exit $ac_status); }; }; then
23492   ac_cv_func_lstat_dereferences_slashed_symlink=yes
23493 else
23494   echo "$as_me: program exited with status $ac_status" >&5
23495 echo "$as_me: failed program was:" >&5
23496 sed 's/^/| /' conftest.$ac_ext >&5
23497
23498 ( exit $ac_status )
23499 ac_cv_func_lstat_dereferences_slashed_symlink=no
23500 fi
23501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23502 fi
23503
23504
23505 else
23506   # If the `ln -s' command failed, then we probably don't even
23507   # have an lstat function.
23508   ac_cv_func_lstat_dereferences_slashed_symlink=no
23509 fi
23510 rm -f conftest.sym conftest.file
23511
23512 fi
23513 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
23514 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
23515
23516 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
23517
23518 cat >>confdefs.h <<_ACEOF
23519 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
23520 _ACEOF
23521
23522
23523 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
23524
23525
23526
23527
23528
23529
23530
23531   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
23532
23533 fi
23534
23535     :
23536
23537
23538 for ac_header in stdlib.h
23539 do
23540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23542   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23545   echo $ECHO_N "(cached) $ECHO_C" >&6
23546 fi
23547 ac_res=`eval echo '${'$as_ac_Header'}'`
23548                { echo "$as_me:$LINENO: result: $ac_res" >&5
23549 echo "${ECHO_T}$ac_res" >&6; }
23550 else
23551   # Is the header compilable?
23552 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23554 cat >conftest.$ac_ext <<_ACEOF
23555 /* confdefs.h.  */
23556 _ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h.  */
23560 $ac_includes_default
23561 #include <$ac_header>
23562 _ACEOF
23563 rm -f conftest.$ac_objext
23564 if { (ac_try="$ac_compile"
23565 case "(($ac_try" in
23566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23567   *) ac_try_echo=$ac_try;;
23568 esac
23569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23570   (eval "$ac_compile") 2>conftest.er1
23571   ac_status=$?
23572   grep -v '^ *+' conftest.er1 >conftest.err
23573   rm -f conftest.er1
23574   cat conftest.err >&5
23575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23576   (exit $ac_status); } && {
23577          test -z "$ac_c_werror_flag" ||
23578          test ! -s conftest.err
23579        } && test -s conftest.$ac_objext; then
23580   ac_header_compiler=yes
23581 else
23582   echo "$as_me: failed program was:" >&5
23583 sed 's/^/| /' conftest.$ac_ext >&5
23584
23585         ac_header_compiler=no
23586 fi
23587
23588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23589 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23590 echo "${ECHO_T}$ac_header_compiler" >&6; }
23591
23592 # Is the header present?
23593 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23594 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23595 cat >conftest.$ac_ext <<_ACEOF
23596 /* confdefs.h.  */
23597 _ACEOF
23598 cat confdefs.h >>conftest.$ac_ext
23599 cat >>conftest.$ac_ext <<_ACEOF
23600 /* end confdefs.h.  */
23601 #include <$ac_header>
23602 _ACEOF
23603 if { (ac_try="$ac_cpp conftest.$ac_ext"
23604 case "(($ac_try" in
23605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23606   *) ac_try_echo=$ac_try;;
23607 esac
23608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23609   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23610   ac_status=$?
23611   grep -v '^ *+' conftest.er1 >conftest.err
23612   rm -f conftest.er1
23613   cat conftest.err >&5
23614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615   (exit $ac_status); } >/dev/null && {
23616          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23617          test ! -s conftest.err
23618        }; then
23619   ac_header_preproc=yes
23620 else
23621   echo "$as_me: failed program was:" >&5
23622 sed 's/^/| /' conftest.$ac_ext >&5
23623
23624   ac_header_preproc=no
23625 fi
23626
23627 rm -f conftest.err conftest.$ac_ext
23628 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23629 echo "${ECHO_T}$ac_header_preproc" >&6; }
23630
23631 # So?  What about this header?
23632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23633   yes:no: )
23634     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23636     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23638     ac_header_preproc=yes
23639     ;;
23640   no:yes:* )
23641     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23643     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23644 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23645     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23647     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23648 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23649     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23651     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23653     ( cat <<\_ASBOX
23654 ## ------------------------------ ##
23655 ## Report this to bug-tar@gnu.org ##
23656 ## ------------------------------ ##
23657 _ASBOX
23658      ) | sed "s/^/$as_me: WARNING:     /" >&2
23659     ;;
23660 esac
23661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23664   echo $ECHO_N "(cached) $ECHO_C" >&6
23665 else
23666   eval "$as_ac_Header=\$ac_header_preproc"
23667 fi
23668 ac_res=`eval echo '${'$as_ac_Header'}'`
23669                { echo "$as_me:$LINENO: result: $ac_res" >&5
23670 echo "${ECHO_T}$ac_res" >&6; }
23671
23672 fi
23673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23674   cat >>confdefs.h <<_ACEOF
23675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23676 _ACEOF
23677
23678 fi
23679
23680 done
23681
23682 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
23683 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
23684 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
23685   echo $ECHO_N "(cached) $ECHO_C" >&6
23686 else
23687   if test "$cross_compiling" = yes; then
23688   ac_cv_func_malloc_0_nonnull=no
23689 else
23690   cat >conftest.$ac_ext <<_ACEOF
23691 /* confdefs.h.  */
23692 _ACEOF
23693 cat confdefs.h >>conftest.$ac_ext
23694 cat >>conftest.$ac_ext <<_ACEOF
23695 /* end confdefs.h.  */
23696 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
23697 # include <stdlib.h>
23698 #else
23699 char *malloc ();
23700 #endif
23701
23702 int
23703 main ()
23704 {
23705 return ! malloc (0);
23706   ;
23707   return 0;
23708 }
23709 _ACEOF
23710 rm -f conftest$ac_exeext
23711 if { (ac_try="$ac_link"
23712 case "(($ac_try" in
23713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23714   *) ac_try_echo=$ac_try;;
23715 esac
23716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23717   (eval "$ac_link") 2>&5
23718   ac_status=$?
23719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23720   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23721   { (case "(($ac_try" in
23722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23723   *) ac_try_echo=$ac_try;;
23724 esac
23725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23726   (eval "$ac_try") 2>&5
23727   ac_status=$?
23728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729   (exit $ac_status); }; }; then
23730   ac_cv_func_malloc_0_nonnull=yes
23731 else
23732   echo "$as_me: program exited with status $ac_status" >&5
23733 echo "$as_me: failed program was:" >&5
23734 sed 's/^/| /' conftest.$ac_ext >&5
23735
23736 ( exit $ac_status )
23737 ac_cv_func_malloc_0_nonnull=no
23738 fi
23739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23740 fi
23741
23742
23743 fi
23744 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
23745 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
23746 if test $ac_cv_func_malloc_0_nonnull = yes; then
23747
23748 cat >>confdefs.h <<\_ACEOF
23749 #define HAVE_MALLOC 1
23750 _ACEOF
23751
23752 else
23753   cat >>confdefs.h <<\_ACEOF
23754 #define HAVE_MALLOC 0
23755 _ACEOF
23756
23757
23758
23759
23760
23761
23762
23763
23764   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
23765
23766
23767 cat >>confdefs.h <<\_ACEOF
23768 #define malloc rpl_malloc
23769 _ACEOF
23770
23771 fi
23772
23773
23774
23775
23776 cat >>confdefs.h <<\_ACEOF
23777 #define GNULIB_MALLOC_GNU 1
23778 _ACEOF
23779
23780
23781
23782   if test $gl_cv_func_malloc_posix = yes; then
23783     HAVE_MALLOC_POSIX=1
23784
23785 cat >>confdefs.h <<\_ACEOF
23786 #define HAVE_MALLOC_POSIX 1
23787 _ACEOF
23788
23789   else
23790
23791
23792
23793
23794
23795
23796
23797   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
23798
23799     HAVE_MALLOC_POSIX=0
23800   fi
23801
23802
23803
23804
23805   GNULIB_MALLOC_POSIX=1
23806
23807
23808
23809
23810
23811
23812
23813
23814
23815
23816
23817   :
23818
23819
23820
23821
23822   GNULIB_MBSCASECMP=1
23823
23824
23825
23826
23827   :
23828
23829
23830
23831
23832
23833
23834
23835
23836
23837
23838 for ac_func in memchr
23839 do
23840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23841 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23843 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23844   echo $ECHO_N "(cached) $ECHO_C" >&6
23845 else
23846   cat >conftest.$ac_ext <<_ACEOF
23847 /* confdefs.h.  */
23848 _ACEOF
23849 cat confdefs.h >>conftest.$ac_ext
23850 cat >>conftest.$ac_ext <<_ACEOF
23851 /* end confdefs.h.  */
23852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23853    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23854 #define $ac_func innocuous_$ac_func
23855
23856 /* System header to define __stub macros and hopefully few prototypes,
23857     which can conflict with char $ac_func (); below.
23858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23859     <limits.h> exists even on freestanding compilers.  */
23860
23861 #ifdef __STDC__
23862 # include <limits.h>
23863 #else
23864 # include <assert.h>
23865 #endif
23866
23867 #undef $ac_func
23868
23869 /* Override any GCC internal prototype to avoid an error.
23870    Use char because int might match the return type of a GCC
23871    builtin and then its argument prototype would still apply.  */
23872 #ifdef __cplusplus
23873 extern "C"
23874 #endif
23875 char $ac_func ();
23876 /* The GNU C library defines this for functions which it implements
23877     to always fail with ENOSYS.  Some functions are actually named
23878     something starting with __ and the normal name is an alias.  */
23879 #if defined __stub_$ac_func || defined __stub___$ac_func
23880 choke me
23881 #endif
23882
23883 int
23884 main ()
23885 {
23886 return $ac_func ();
23887   ;
23888   return 0;
23889 }
23890 _ACEOF
23891 rm -f conftest.$ac_objext conftest$ac_exeext
23892 if { (ac_try="$ac_link"
23893 case "(($ac_try" in
23894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23895   *) ac_try_echo=$ac_try;;
23896 esac
23897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23898   (eval "$ac_link") 2>conftest.er1
23899   ac_status=$?
23900   grep -v '^ *+' conftest.er1 >conftest.err
23901   rm -f conftest.er1
23902   cat conftest.err >&5
23903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904   (exit $ac_status); } && {
23905          test -z "$ac_c_werror_flag" ||
23906          test ! -s conftest.err
23907        } && test -s conftest$ac_exeext &&
23908        $as_test_x conftest$ac_exeext; then
23909   eval "$as_ac_var=yes"
23910 else
23911   echo "$as_me: failed program was:" >&5
23912 sed 's/^/| /' conftest.$ac_ext >&5
23913
23914         eval "$as_ac_var=no"
23915 fi
23916
23917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23918       conftest$ac_exeext conftest.$ac_ext
23919 fi
23920 ac_res=`eval echo '${'$as_ac_var'}'`
23921                { echo "$as_me:$LINENO: result: $ac_res" >&5
23922 echo "${ECHO_T}$ac_res" >&6; }
23923 if test `eval echo '${'$as_ac_var'}'` = yes; then
23924   cat >>confdefs.h <<_ACEOF
23925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23926 _ACEOF
23927
23928 else
23929
23930     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
23931
23932 fi
23933 done
23934
23935
23936   if test $ac_cv_func_memchr = no; then
23937
23938
23939 for ac_header in bp-sym.h
23940 do
23941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23943   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23946   echo $ECHO_N "(cached) $ECHO_C" >&6
23947 fi
23948 ac_res=`eval echo '${'$as_ac_Header'}'`
23949                { echo "$as_me:$LINENO: result: $ac_res" >&5
23950 echo "${ECHO_T}$ac_res" >&6; }
23951 else
23952   # Is the header compilable?
23953 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23955 cat >conftest.$ac_ext <<_ACEOF
23956 /* confdefs.h.  */
23957 _ACEOF
23958 cat confdefs.h >>conftest.$ac_ext
23959 cat >>conftest.$ac_ext <<_ACEOF
23960 /* end confdefs.h.  */
23961 $ac_includes_default
23962 #include <$ac_header>
23963 _ACEOF
23964 rm -f conftest.$ac_objext
23965 if { (ac_try="$ac_compile"
23966 case "(($ac_try" in
23967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23968   *) ac_try_echo=$ac_try;;
23969 esac
23970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23971   (eval "$ac_compile") 2>conftest.er1
23972   ac_status=$?
23973   grep -v '^ *+' conftest.er1 >conftest.err
23974   rm -f conftest.er1
23975   cat conftest.err >&5
23976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977   (exit $ac_status); } && {
23978          test -z "$ac_c_werror_flag" ||
23979          test ! -s conftest.err
23980        } && test -s conftest.$ac_objext; then
23981   ac_header_compiler=yes
23982 else
23983   echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.$ac_ext >&5
23985
23986         ac_header_compiler=no
23987 fi
23988
23989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23991 echo "${ECHO_T}$ac_header_compiler" >&6; }
23992
23993 # Is the header present?
23994 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23996 cat >conftest.$ac_ext <<_ACEOF
23997 /* confdefs.h.  */
23998 _ACEOF
23999 cat confdefs.h >>conftest.$ac_ext
24000 cat >>conftest.$ac_ext <<_ACEOF
24001 /* end confdefs.h.  */
24002 #include <$ac_header>
24003 _ACEOF
24004 if { (ac_try="$ac_cpp conftest.$ac_ext"
24005 case "(($ac_try" in
24006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24007   *) ac_try_echo=$ac_try;;
24008 esac
24009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24010   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24011   ac_status=$?
24012   grep -v '^ *+' conftest.er1 >conftest.err
24013   rm -f conftest.er1
24014   cat conftest.err >&5
24015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016   (exit $ac_status); } >/dev/null && {
24017          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24018          test ! -s conftest.err
24019        }; then
24020   ac_header_preproc=yes
24021 else
24022   echo "$as_me: failed program was:" >&5
24023 sed 's/^/| /' conftest.$ac_ext >&5
24024
24025   ac_header_preproc=no
24026 fi
24027
24028 rm -f conftest.err conftest.$ac_ext
24029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24030 echo "${ECHO_T}$ac_header_preproc" >&6; }
24031
24032 # So?  What about this header?
24033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24034   yes:no: )
24035     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24039     ac_header_preproc=yes
24040     ;;
24041   no:yes:* )
24042     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24044     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24045 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24046     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24048     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24049 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24050     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24052     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24054     ( cat <<\_ASBOX
24055 ## ------------------------------ ##
24056 ## Report this to bug-tar@gnu.org ##
24057 ## ------------------------------ ##
24058 _ASBOX
24059      ) | sed "s/^/$as_me: WARNING:     /" >&2
24060     ;;
24061 esac
24062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24065   echo $ECHO_N "(cached) $ECHO_C" >&6
24066 else
24067   eval "$as_ac_Header=\$ac_header_preproc"
24068 fi
24069 ac_res=`eval echo '${'$as_ac_Header'}'`
24070                { echo "$as_me:$LINENO: result: $ac_res" >&5
24071 echo "${ECHO_T}$ac_res" >&6; }
24072
24073 fi
24074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24075   cat >>confdefs.h <<_ACEOF
24076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24077 _ACEOF
24078
24079 fi
24080
24081 done
24082
24083
24084   fi
24085
24086
24087
24088
24089
24090
24091
24092
24093
24094
24095
24096
24097
24098
24099
24100 for ac_func in mempcpy
24101 do
24102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24103 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24105 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24106   echo $ECHO_N "(cached) $ECHO_C" >&6
24107 else
24108   cat >conftest.$ac_ext <<_ACEOF
24109 /* confdefs.h.  */
24110 _ACEOF
24111 cat confdefs.h >>conftest.$ac_ext
24112 cat >>conftest.$ac_ext <<_ACEOF
24113 /* end confdefs.h.  */
24114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24115    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24116 #define $ac_func innocuous_$ac_func
24117
24118 /* System header to define __stub macros and hopefully few prototypes,
24119     which can conflict with char $ac_func (); below.
24120     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24121     <limits.h> exists even on freestanding compilers.  */
24122
24123 #ifdef __STDC__
24124 # include <limits.h>
24125 #else
24126 # include <assert.h>
24127 #endif
24128
24129 #undef $ac_func
24130
24131 /* Override any GCC internal prototype to avoid an error.
24132    Use char because int might match the return type of a GCC
24133    builtin and then its argument prototype would still apply.  */
24134 #ifdef __cplusplus
24135 extern "C"
24136 #endif
24137 char $ac_func ();
24138 /* The GNU C library defines this for functions which it implements
24139     to always fail with ENOSYS.  Some functions are actually named
24140     something starting with __ and the normal name is an alias.  */
24141 #if defined __stub_$ac_func || defined __stub___$ac_func
24142 choke me
24143 #endif
24144
24145 int
24146 main ()
24147 {
24148 return $ac_func ();
24149   ;
24150   return 0;
24151 }
24152 _ACEOF
24153 rm -f conftest.$ac_objext conftest$ac_exeext
24154 if { (ac_try="$ac_link"
24155 case "(($ac_try" in
24156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24157   *) ac_try_echo=$ac_try;;
24158 esac
24159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24160   (eval "$ac_link") 2>conftest.er1
24161   ac_status=$?
24162   grep -v '^ *+' conftest.er1 >conftest.err
24163   rm -f conftest.er1
24164   cat conftest.err >&5
24165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166   (exit $ac_status); } && {
24167          test -z "$ac_c_werror_flag" ||
24168          test ! -s conftest.err
24169        } && test -s conftest$ac_exeext &&
24170        $as_test_x conftest$ac_exeext; then
24171   eval "$as_ac_var=yes"
24172 else
24173   echo "$as_me: failed program was:" >&5
24174 sed 's/^/| /' conftest.$ac_ext >&5
24175
24176         eval "$as_ac_var=no"
24177 fi
24178
24179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24180       conftest$ac_exeext conftest.$ac_ext
24181 fi
24182 ac_res=`eval echo '${'$as_ac_var'}'`
24183                { echo "$as_me:$LINENO: result: $ac_res" >&5
24184 echo "${ECHO_T}$ac_res" >&6; }
24185 if test `eval echo '${'$as_ac_var'}'` = yes; then
24186   cat >>confdefs.h <<_ACEOF
24187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24188 _ACEOF
24189
24190 else
24191
24192     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
24193
24194 fi
24195 done
24196
24197
24198   if test $ac_cv_func_mempcpy = no; then
24199     HAVE_MEMPCPY=0
24200
24201   :
24202
24203   fi
24204
24205
24206
24207   GNULIB_MEMPCPY=1
24208
24209
24210
24211
24212
24213
24214
24215
24216
24217   if test $ac_cv_have_decl_memrchr = no; then
24218     HAVE_DECL_MEMRCHR=0
24219   fi
24220
24221
24222
24223
24224
24225
24226
24227
24228
24229 for ac_func in memrchr
24230 do
24231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24232 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24234 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24235   echo $ECHO_N "(cached) $ECHO_C" >&6
24236 else
24237   cat >conftest.$ac_ext <<_ACEOF
24238 /* confdefs.h.  */
24239 _ACEOF
24240 cat confdefs.h >>conftest.$ac_ext
24241 cat >>conftest.$ac_ext <<_ACEOF
24242 /* end confdefs.h.  */
24243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24244    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24245 #define $ac_func innocuous_$ac_func
24246
24247 /* System header to define __stub macros and hopefully few prototypes,
24248     which can conflict with char $ac_func (); below.
24249     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24250     <limits.h> exists even on freestanding compilers.  */
24251
24252 #ifdef __STDC__
24253 # include <limits.h>
24254 #else
24255 # include <assert.h>
24256 #endif
24257
24258 #undef $ac_func
24259
24260 /* Override any GCC internal prototype to avoid an error.
24261    Use char because int might match the return type of a GCC
24262    builtin and then its argument prototype would still apply.  */
24263 #ifdef __cplusplus
24264 extern "C"
24265 #endif
24266 char $ac_func ();
24267 /* The GNU C library defines this for functions which it implements
24268     to always fail with ENOSYS.  Some functions are actually named
24269     something starting with __ and the normal name is an alias.  */
24270 #if defined __stub_$ac_func || defined __stub___$ac_func
24271 choke me
24272 #endif
24273
24274 int
24275 main ()
24276 {
24277 return $ac_func ();
24278   ;
24279   return 0;
24280 }
24281 _ACEOF
24282 rm -f conftest.$ac_objext conftest$ac_exeext
24283 if { (ac_try="$ac_link"
24284 case "(($ac_try" in
24285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24286   *) ac_try_echo=$ac_try;;
24287 esac
24288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24289   (eval "$ac_link") 2>conftest.er1
24290   ac_status=$?
24291   grep -v '^ *+' conftest.er1 >conftest.err
24292   rm -f conftest.er1
24293   cat conftest.err >&5
24294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24295   (exit $ac_status); } && {
24296          test -z "$ac_c_werror_flag" ||
24297          test ! -s conftest.err
24298        } && test -s conftest$ac_exeext &&
24299        $as_test_x conftest$ac_exeext; then
24300   eval "$as_ac_var=yes"
24301 else
24302   echo "$as_me: failed program was:" >&5
24303 sed 's/^/| /' conftest.$ac_ext >&5
24304
24305         eval "$as_ac_var=no"
24306 fi
24307
24308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24309       conftest$ac_exeext conftest.$ac_ext
24310 fi
24311 ac_res=`eval echo '${'$as_ac_var'}'`
24312                { echo "$as_me:$LINENO: result: $ac_res" >&5
24313 echo "${ECHO_T}$ac_res" >&6; }
24314 if test `eval echo '${'$as_ac_var'}'` = yes; then
24315   cat >>confdefs.h <<_ACEOF
24316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24317 _ACEOF
24318
24319 else
24320
24321     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
24322
24323 fi
24324 done
24325
24326
24327   if test $ac_cv_func_memrchr = no; then
24328     :
24329   fi
24330
24331
24332
24333   GNULIB_MEMRCHR=1
24334
24335
24336
24337
24338
24339
24340
24341
24342
24343
24344 for ac_func in memset
24345 do
24346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24350   echo $ECHO_N "(cached) $ECHO_C" >&6
24351 else
24352   cat >conftest.$ac_ext <<_ACEOF
24353 /* confdefs.h.  */
24354 _ACEOF
24355 cat confdefs.h >>conftest.$ac_ext
24356 cat >>conftest.$ac_ext <<_ACEOF
24357 /* end confdefs.h.  */
24358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24360 #define $ac_func innocuous_$ac_func
24361
24362 /* System header to define __stub macros and hopefully few prototypes,
24363     which can conflict with char $ac_func (); below.
24364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24365     <limits.h> exists even on freestanding compilers.  */
24366
24367 #ifdef __STDC__
24368 # include <limits.h>
24369 #else
24370 # include <assert.h>
24371 #endif
24372
24373 #undef $ac_func
24374
24375 /* Override any GCC internal prototype to avoid an error.
24376    Use char because int might match the return type of a GCC
24377    builtin and then its argument prototype would still apply.  */
24378 #ifdef __cplusplus
24379 extern "C"
24380 #endif
24381 char $ac_func ();
24382 /* The GNU C library defines this for functions which it implements
24383     to always fail with ENOSYS.  Some functions are actually named
24384     something starting with __ and the normal name is an alias.  */
24385 #if defined __stub_$ac_func || defined __stub___$ac_func
24386 choke me
24387 #endif
24388
24389 int
24390 main ()
24391 {
24392 return $ac_func ();
24393   ;
24394   return 0;
24395 }
24396 _ACEOF
24397 rm -f conftest.$ac_objext conftest$ac_exeext
24398 if { (ac_try="$ac_link"
24399 case "(($ac_try" in
24400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24401   *) ac_try_echo=$ac_try;;
24402 esac
24403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24404   (eval "$ac_link") 2>conftest.er1
24405   ac_status=$?
24406   grep -v '^ *+' conftest.er1 >conftest.err
24407   rm -f conftest.er1
24408   cat conftest.err >&5
24409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410   (exit $ac_status); } && {
24411          test -z "$ac_c_werror_flag" ||
24412          test ! -s conftest.err
24413        } && test -s conftest$ac_exeext &&
24414        $as_test_x conftest$ac_exeext; then
24415   eval "$as_ac_var=yes"
24416 else
24417   echo "$as_me: failed program was:" >&5
24418 sed 's/^/| /' conftest.$ac_ext >&5
24419
24420         eval "$as_ac_var=no"
24421 fi
24422
24423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24424       conftest$ac_exeext conftest.$ac_ext
24425 fi
24426 ac_res=`eval echo '${'$as_ac_var'}'`
24427                { echo "$as_me:$LINENO: result: $ac_res" >&5
24428 echo "${ECHO_T}$ac_res" >&6; }
24429 if test `eval echo '${'$as_ac_var'}'` = yes; then
24430   cat >>confdefs.h <<_ACEOF
24431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24432 _ACEOF
24433
24434 else
24435
24436     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
24437
24438 fi
24439 done
24440
24441
24442   if test $ac_cv_func_memset = no; then
24443
24444   :
24445
24446   fi
24447
24448
24449
24450
24451
24452
24453
24454
24455
24456
24457
24458 for ac_func in mkdtemp
24459 do
24460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24461 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24464   echo $ECHO_N "(cached) $ECHO_C" >&6
24465 else
24466   cat >conftest.$ac_ext <<_ACEOF
24467 /* confdefs.h.  */
24468 _ACEOF
24469 cat confdefs.h >>conftest.$ac_ext
24470 cat >>conftest.$ac_ext <<_ACEOF
24471 /* end confdefs.h.  */
24472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24473    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24474 #define $ac_func innocuous_$ac_func
24475
24476 /* System header to define __stub macros and hopefully few prototypes,
24477     which can conflict with char $ac_func (); below.
24478     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24479     <limits.h> exists even on freestanding compilers.  */
24480
24481 #ifdef __STDC__
24482 # include <limits.h>
24483 #else
24484 # include <assert.h>
24485 #endif
24486
24487 #undef $ac_func
24488
24489 /* Override any GCC internal prototype to avoid an error.
24490    Use char because int might match the return type of a GCC
24491    builtin and then its argument prototype would still apply.  */
24492 #ifdef __cplusplus
24493 extern "C"
24494 #endif
24495 char $ac_func ();
24496 /* The GNU C library defines this for functions which it implements
24497     to always fail with ENOSYS.  Some functions are actually named
24498     something starting with __ and the normal name is an alias.  */
24499 #if defined __stub_$ac_func || defined __stub___$ac_func
24500 choke me
24501 #endif
24502
24503 int
24504 main ()
24505 {
24506 return $ac_func ();
24507   ;
24508   return 0;
24509 }
24510 _ACEOF
24511 rm -f conftest.$ac_objext conftest$ac_exeext
24512 if { (ac_try="$ac_link"
24513 case "(($ac_try" in
24514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24515   *) ac_try_echo=$ac_try;;
24516 esac
24517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24518   (eval "$ac_link") 2>conftest.er1
24519   ac_status=$?
24520   grep -v '^ *+' conftest.er1 >conftest.err
24521   rm -f conftest.er1
24522   cat conftest.err >&5
24523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24524   (exit $ac_status); } && {
24525          test -z "$ac_c_werror_flag" ||
24526          test ! -s conftest.err
24527        } && test -s conftest$ac_exeext &&
24528        $as_test_x conftest$ac_exeext; then
24529   eval "$as_ac_var=yes"
24530 else
24531   echo "$as_me: failed program was:" >&5
24532 sed 's/^/| /' conftest.$ac_ext >&5
24533
24534         eval "$as_ac_var=no"
24535 fi
24536
24537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24538       conftest$ac_exeext conftest.$ac_ext
24539 fi
24540 ac_res=`eval echo '${'$as_ac_var'}'`
24541                { echo "$as_me:$LINENO: result: $ac_res" >&5
24542 echo "${ECHO_T}$ac_res" >&6; }
24543 if test `eval echo '${'$as_ac_var'}'` = yes; then
24544   cat >>confdefs.h <<_ACEOF
24545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24546 _ACEOF
24547
24548 else
24549
24550     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
24551
24552 fi
24553 done
24554
24555
24556   if test $ac_cv_func_mkdtemp = no; then
24557     HAVE_MKDTEMP=0
24558     :
24559
24560   fi
24561
24562
24563
24564   GNULIB_MKDTEMP=1
24565
24566
24567
24568
24569
24570
24571
24572
24573
24574
24575
24576
24577
24578
24579 { echo "$as_me:$LINENO: checking for working mktime" >&5
24580 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
24581 if test "${ac_cv_func_working_mktime+set}" = set; then
24582   echo $ECHO_N "(cached) $ECHO_C" >&6
24583 else
24584   if test "$cross_compiling" = yes; then
24585   ac_cv_func_working_mktime=no
24586 else
24587   cat >conftest.$ac_ext <<_ACEOF
24588 /* confdefs.h.  */
24589 _ACEOF
24590 cat confdefs.h >>conftest.$ac_ext
24591 cat >>conftest.$ac_ext <<_ACEOF
24592 /* end confdefs.h.  */
24593 /* Test program from Paul Eggert and Tony Leneis.  */
24594 #include <limits.h>
24595 #include <stdlib.h>
24596 #include <time.h>
24597
24598 #ifdef HAVE_UNISTD_H
24599 # include <unistd.h>
24600 #endif
24601
24602 #ifndef HAVE_ALARM
24603 # define alarm(X) /* empty */
24604 #endif
24605
24606 /* Work around redefinition to rpl_putenv by other config tests.  */
24607 #undef putenv
24608
24609 static time_t time_t_max;
24610 static time_t time_t_min;
24611
24612 /* Values we'll use to set the TZ environment variable.  */
24613 static char *tz_strings[] = {
24614   (char *) 0, "TZ=GMT0", "TZ=JST-9",
24615   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
24616 };
24617 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
24618
24619 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
24620    Based on a problem report from Andreas Jaeger.  */
24621 static int
24622 spring_forward_gap ()
24623 {
24624   /* glibc (up to about 1998-10-07) failed this test. */
24625   struct tm tm;
24626
24627   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24628      instead of "TZ=America/Vancouver" in order to detect the bug even
24629      on systems that don't support the Olson extension, or don't have the
24630      full zoneinfo tables installed.  */
24631   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24632
24633   tm.tm_year = 98;
24634   tm.tm_mon = 3;
24635   tm.tm_mday = 5;
24636   tm.tm_hour = 2;
24637   tm.tm_min = 0;
24638   tm.tm_sec = 0;
24639   tm.tm_isdst = -1;
24640   return mktime (&tm) != (time_t) -1;
24641 }
24642
24643 static int
24644 mktime_test1 (now)
24645      time_t now;
24646 {
24647   struct tm *lt;
24648   return ! (lt = localtime (&now)) || mktime (lt) == now;
24649 }
24650
24651 static int
24652 mktime_test (now)
24653      time_t now;
24654 {
24655   return (mktime_test1 (now)
24656           && mktime_test1 ((time_t) (time_t_max - now))
24657           && mktime_test1 ((time_t) (time_t_min + now)));
24658 }
24659
24660 static int
24661 irix_6_4_bug ()
24662 {
24663   /* Based on code from Ariel Faigon.  */
24664   struct tm tm;
24665   tm.tm_year = 96;
24666   tm.tm_mon = 3;
24667   tm.tm_mday = 0;
24668   tm.tm_hour = 0;
24669   tm.tm_min = 0;
24670   tm.tm_sec = 0;
24671   tm.tm_isdst = -1;
24672   mktime (&tm);
24673   return tm.tm_mon == 2 && tm.tm_mday == 31;
24674 }
24675
24676 static int
24677 bigtime_test (j)
24678      int j;
24679 {
24680   struct tm tm;
24681   time_t now;
24682   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
24683   now = mktime (&tm);
24684   if (now != (time_t) -1)
24685     {
24686       struct tm *lt = localtime (&now);
24687       if (! (lt
24688              && lt->tm_year == tm.tm_year
24689              && lt->tm_mon == tm.tm_mon
24690              && lt->tm_mday == tm.tm_mday
24691              && lt->tm_hour == tm.tm_hour
24692              && lt->tm_min == tm.tm_min
24693              && lt->tm_sec == tm.tm_sec
24694              && lt->tm_yday == tm.tm_yday
24695              && lt->tm_wday == tm.tm_wday
24696              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
24697                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
24698         return 0;
24699     }
24700   return 1;
24701 }
24702
24703 static int
24704 year_2050_test ()
24705 {
24706   /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
24707      ignoring leap seconds.  */
24708   unsigned long int answer = 2527315200UL;
24709
24710   struct tm tm;
24711   time_t t;
24712   tm.tm_year = 2050 - 1900;
24713   tm.tm_mon = 2 - 1;
24714   tm.tm_mday = 1;
24715   tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
24716   tm.tm_isdst = -1;
24717
24718   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24719      instead of "TZ=America/Vancouver" in order to detect the bug even
24720      on systems that don't support the Olson extension, or don't have the
24721      full zoneinfo tables installed.  */
24722   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24723
24724   t = mktime (&tm);
24725
24726   /* Check that the result is either a failure, or close enough
24727      to the correct answer that we can assume the discrepancy is
24728      due to leap seconds.  */
24729   return (t == (time_t) -1
24730           || (0 < t && answer - 120 <= t && t <= answer + 120));
24731 }
24732
24733 int
24734 main ()
24735 {
24736   time_t t, delta;
24737   int i, j;
24738
24739   /* This test makes some buggy mktime implementations loop.
24740      Give up after 60 seconds; a mktime slower than that
24741      isn't worth using anyway.  */
24742   alarm (60);
24743
24744   for (;;)
24745     {
24746       t = (time_t_max << 1) + 1;
24747       if (t <= time_t_max)
24748         break;
24749       time_t_max = t;
24750     }
24751   time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
24752
24753   delta = time_t_max / 997; /* a suitable prime number */
24754   for (i = 0; i < N_STRINGS; i++)
24755     {
24756       if (tz_strings[i])
24757         putenv (tz_strings[i]);
24758
24759       for (t = 0; t <= time_t_max - delta; t += delta)
24760         if (! mktime_test (t))
24761           return 1;
24762       if (! (mktime_test ((time_t) 1)
24763              && mktime_test ((time_t) (60 * 60))
24764              && mktime_test ((time_t) (60 * 60 * 24))))
24765         return 1;
24766
24767       for (j = 1; ; j <<= 1)
24768         if (! bigtime_test (j))
24769           return 1;
24770         else if (INT_MAX / 2 < j)
24771           break;
24772       if (! bigtime_test (INT_MAX))
24773         return 1;
24774     }
24775   return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
24776 }
24777 _ACEOF
24778 rm -f conftest$ac_exeext
24779 if { (ac_try="$ac_link"
24780 case "(($ac_try" in
24781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24782   *) ac_try_echo=$ac_try;;
24783 esac
24784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24785   (eval "$ac_link") 2>&5
24786   ac_status=$?
24787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24789   { (case "(($ac_try" in
24790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24791   *) ac_try_echo=$ac_try;;
24792 esac
24793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24794   (eval "$ac_try") 2>&5
24795   ac_status=$?
24796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797   (exit $ac_status); }; }; then
24798   ac_cv_func_working_mktime=yes
24799 else
24800   echo "$as_me: program exited with status $ac_status" >&5
24801 echo "$as_me: failed program was:" >&5
24802 sed 's/^/| /' conftest.$ac_ext >&5
24803
24804 ( exit $ac_status )
24805 ac_cv_func_working_mktime=no
24806 fi
24807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24808 fi
24809
24810
24811 fi
24812 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
24813 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
24814 if test $ac_cv_func_working_mktime = no; then
24815
24816
24817
24818
24819
24820
24821
24822   gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
24823
24824 fi
24825
24826     if test $ac_cv_func_working_mktime = no; then
24827
24828 cat >>confdefs.h <<\_ACEOF
24829 #define mktime rpl_mktime
24830 _ACEOF
24831
24832
24833
24834
24835   fi
24836
24837
24838
24839
24840
24841
24842
24843
24844
24845   gl_LIBOBJS="$gl_LIBOBJS modechange.$ac_objext"
24846
24847
24848
24849
24850
24851
24852
24853
24854
24855
24856
24857
24858 { echo "$as_me:$LINENO: checking for obstacks" >&5
24859 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6; }
24860 if test "${ac_cv_func_obstack+set}" = set; then
24861   echo $ECHO_N "(cached) $ECHO_C" >&6
24862 else
24863   cat >conftest.$ac_ext <<_ACEOF
24864 /* confdefs.h.  */
24865 _ACEOF
24866 cat confdefs.h >>conftest.$ac_ext
24867 cat >>conftest.$ac_ext <<_ACEOF
24868 /* end confdefs.h.  */
24869 $ac_includes_default
24870                       #include "obstack.h"
24871 int
24872 main ()
24873 {
24874 struct obstack mem;
24875                        #define obstack_chunk_alloc malloc
24876                        #define obstack_chunk_free free
24877                        obstack_init (&mem);
24878                        obstack_free (&mem, 0);
24879   ;
24880   return 0;
24881 }
24882 _ACEOF
24883 rm -f conftest.$ac_objext conftest$ac_exeext
24884 if { (ac_try="$ac_link"
24885 case "(($ac_try" in
24886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24887   *) ac_try_echo=$ac_try;;
24888 esac
24889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24890   (eval "$ac_link") 2>conftest.er1
24891   ac_status=$?
24892   grep -v '^ *+' conftest.er1 >conftest.err
24893   rm -f conftest.er1
24894   cat conftest.err >&5
24895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896   (exit $ac_status); } && {
24897          test -z "$ac_c_werror_flag" ||
24898          test ! -s conftest.err
24899        } && test -s conftest$ac_exeext &&
24900        $as_test_x conftest$ac_exeext; then
24901   ac_cv_func_obstack=yes
24902 else
24903   echo "$as_me: failed program was:" >&5
24904 sed 's/^/| /' conftest.$ac_ext >&5
24905
24906         ac_cv_func_obstack=no
24907 fi
24908
24909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24910       conftest$ac_exeext conftest.$ac_ext
24911 fi
24912 { echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
24913 echo "${ECHO_T}$ac_cv_func_obstack" >&6; }
24914 if test $ac_cv_func_obstack = yes; then
24915
24916 cat >>confdefs.h <<\_ACEOF
24917 #define HAVE_OBSTACK 1
24918 _ACEOF
24919
24920 else
24921
24922
24923
24924
24925
24926
24927
24928   gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext"
24929
24930 fi
24931
24932
24933
24934
24935
24936
24937
24938
24939
24940   gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
24941
24942
24943
24944
24945
24946
24947
24948
24949
24950
24951
24952
24953
24954
24955
24956
24957
24958
24959
24960
24961
24962
24963
24964
24965
24966
24967
24968
24969
24970
24971
24972
24973
24974
24975
24976
24977 for ac_func in fchmodat mkdirat openat
24978 do
24979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24980 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24983   echo $ECHO_N "(cached) $ECHO_C" >&6
24984 else
24985   cat >conftest.$ac_ext <<_ACEOF
24986 /* confdefs.h.  */
24987 _ACEOF
24988 cat confdefs.h >>conftest.$ac_ext
24989 cat >>conftest.$ac_ext <<_ACEOF
24990 /* end confdefs.h.  */
24991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24992    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24993 #define $ac_func innocuous_$ac_func
24994
24995 /* System header to define __stub macros and hopefully few prototypes,
24996     which can conflict with char $ac_func (); below.
24997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24998     <limits.h> exists even on freestanding compilers.  */
24999
25000 #ifdef __STDC__
25001 # include <limits.h>
25002 #else
25003 # include <assert.h>
25004 #endif
25005
25006 #undef $ac_func
25007
25008 /* Override any GCC internal prototype to avoid an error.
25009    Use char because int might match the return type of a GCC
25010    builtin and then its argument prototype would still apply.  */
25011 #ifdef __cplusplus
25012 extern "C"
25013 #endif
25014 char $ac_func ();
25015 /* The GNU C library defines this for functions which it implements
25016     to always fail with ENOSYS.  Some functions are actually named
25017     something starting with __ and the normal name is an alias.  */
25018 #if defined __stub_$ac_func || defined __stub___$ac_func
25019 choke me
25020 #endif
25021
25022 int
25023 main ()
25024 {
25025 return $ac_func ();
25026   ;
25027   return 0;
25028 }
25029 _ACEOF
25030 rm -f conftest.$ac_objext conftest$ac_exeext
25031 if { (ac_try="$ac_link"
25032 case "(($ac_try" in
25033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25034   *) ac_try_echo=$ac_try;;
25035 esac
25036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25037   (eval "$ac_link") 2>conftest.er1
25038   ac_status=$?
25039   grep -v '^ *+' conftest.er1 >conftest.err
25040   rm -f conftest.er1
25041   cat conftest.err >&5
25042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043   (exit $ac_status); } && {
25044          test -z "$ac_c_werror_flag" ||
25045          test ! -s conftest.err
25046        } && test -s conftest$ac_exeext &&
25047        $as_test_x conftest$ac_exeext; then
25048   eval "$as_ac_var=yes"
25049 else
25050   echo "$as_me: failed program was:" >&5
25051 sed 's/^/| /' conftest.$ac_ext >&5
25052
25053         eval "$as_ac_var=no"
25054 fi
25055
25056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25057       conftest$ac_exeext conftest.$ac_ext
25058 fi
25059 ac_res=`eval echo '${'$as_ac_var'}'`
25060                { echo "$as_me:$LINENO: result: $ac_res" >&5
25061 echo "${ECHO_T}$ac_res" >&6; }
25062 if test `eval echo '${'$as_ac_var'}'` = yes; then
25063   cat >>confdefs.h <<_ACEOF
25064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25065 _ACEOF
25066
25067 else
25068
25069     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
25070
25071 fi
25072 done
25073
25074
25075   case $ac_cv_func_openat+$ac_cv_func_lstat_dereferences_slashed_symlink in
25076   yes+yes) ;;
25077   yes+*)
25078
25079
25080
25081
25082
25083
25084   gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
25085 ;;
25086   *)
25087
25088 cat >>confdefs.h <<\_ACEOF
25089 #define __OPENAT_PREFIX rpl_
25090 _ACEOF
25091
25092
25093   :
25094 ;;
25095   esac
25096
25097   # Assume we'll use the replacement function.
25098   # The only case in which we won't is when we have fchownat, and it works.
25099   use_replacement_fchownat=yes
25100
25101   { echo "$as_me:$LINENO: checking for fchownat" >&5
25102 echo $ECHO_N "checking for fchownat... $ECHO_C" >&6; }
25103 if test "${ac_cv_func_fchownat+set}" = set; then
25104   echo $ECHO_N "(cached) $ECHO_C" >&6
25105 else
25106   cat >conftest.$ac_ext <<_ACEOF
25107 /* confdefs.h.  */
25108 _ACEOF
25109 cat confdefs.h >>conftest.$ac_ext
25110 cat >>conftest.$ac_ext <<_ACEOF
25111 /* end confdefs.h.  */
25112 /* Define fchownat to an innocuous variant, in case <limits.h> declares fchownat.
25113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25114 #define fchownat innocuous_fchownat
25115
25116 /* System header to define __stub macros and hopefully few prototypes,
25117     which can conflict with char fchownat (); below.
25118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25119     <limits.h> exists even on freestanding compilers.  */
25120
25121 #ifdef __STDC__
25122 # include <limits.h>
25123 #else
25124 # include <assert.h>
25125 #endif
25126
25127 #undef fchownat
25128
25129 /* Override any GCC internal prototype to avoid an error.
25130    Use char because int might match the return type of a GCC
25131    builtin and then its argument prototype would still apply.  */
25132 #ifdef __cplusplus
25133 extern "C"
25134 #endif
25135 char fchownat ();
25136 /* The GNU C library defines this for functions which it implements
25137     to always fail with ENOSYS.  Some functions are actually named
25138     something starting with __ and the normal name is an alias.  */
25139 #if defined __stub_fchownat || defined __stub___fchownat
25140 choke me
25141 #endif
25142
25143 int
25144 main ()
25145 {
25146 return fchownat ();
25147   ;
25148   return 0;
25149 }
25150 _ACEOF
25151 rm -f conftest.$ac_objext conftest$ac_exeext
25152 if { (ac_try="$ac_link"
25153 case "(($ac_try" in
25154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25155   *) ac_try_echo=$ac_try;;
25156 esac
25157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25158   (eval "$ac_link") 2>conftest.er1
25159   ac_status=$?
25160   grep -v '^ *+' conftest.er1 >conftest.err
25161   rm -f conftest.er1
25162   cat conftest.err >&5
25163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164   (exit $ac_status); } && {
25165          test -z "$ac_c_werror_flag" ||
25166          test ! -s conftest.err
25167        } && test -s conftest$ac_exeext &&
25168        $as_test_x conftest$ac_exeext; then
25169   ac_cv_func_fchownat=yes
25170 else
25171   echo "$as_me: failed program was:" >&5
25172 sed 's/^/| /' conftest.$ac_ext >&5
25173
25174         ac_cv_func_fchownat=no
25175 fi
25176
25177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25178       conftest$ac_exeext conftest.$ac_ext
25179 fi
25180 { echo "$as_me:$LINENO: result: $ac_cv_func_fchownat" >&5
25181 echo "${ECHO_T}$ac_cv_func_fchownat" >&6; }
25182 if test $ac_cv_func_fchownat = yes; then
25183   have_fchownat=yes
25184 else
25185   have_fchownat=no
25186 fi
25187
25188   if test $have_fchownat = yes; then
25189
25190   { echo "$as_me:$LINENO: checking whether fchownat works with AT_SYMLINK_NOFOLLOW" >&5
25191 echo $ECHO_N "checking whether fchownat works with AT_SYMLINK_NOFOLLOW... $ECHO_C" >&6; }
25192 if test "${gl_cv_func_fchownat_nofollow_works+set}" = set; then
25193   echo $ECHO_N "(cached) $ECHO_C" >&6
25194 else
25195
25196      gl_dangle=conftest.dangle
25197      # Remove any remnants of a previous test.
25198      rm -f $gl_dangle
25199      # Arrange for deletion of the temporary file this test creates.
25200      ac_clean_files="$ac_clean_files $gl_dangle"
25201      ln -s conftest.no-such $gl_dangle
25202      if test "$cross_compiling" = yes; then
25203   gl_cv_func_fchownat_nofollow_works=no
25204 else
25205   cat >conftest.$ac_ext <<_ACEOF
25206 /* confdefs.h.  */
25207 _ACEOF
25208 cat confdefs.h >>conftest.$ac_ext
25209 cat >>conftest.$ac_ext <<_ACEOF
25210 /* end confdefs.h.  */
25211
25212 #include <fcntl.h>
25213 #include <unistd.h>
25214 #include <stdlib.h>
25215 #include <errno.h>
25216 #include <sys/types.h>
25217 int
25218 main ()
25219 {
25220   return (fchownat (AT_FDCWD, "$gl_dangle", -1, getgid (),
25221                     AT_SYMLINK_NOFOLLOW) != 0
25222           && errno == ENOENT);
25223 }
25224
25225 _ACEOF
25226 rm -f conftest$ac_exeext
25227 if { (ac_try="$ac_link"
25228 case "(($ac_try" in
25229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25230   *) ac_try_echo=$ac_try;;
25231 esac
25232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25233   (eval "$ac_link") 2>&5
25234   ac_status=$?
25235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25237   { (case "(($ac_try" in
25238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25239   *) ac_try_echo=$ac_try;;
25240 esac
25241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25242   (eval "$ac_try") 2>&5
25243   ac_status=$?
25244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245   (exit $ac_status); }; }; then
25246   gl_cv_func_fchownat_nofollow_works=yes
25247 else
25248   echo "$as_me: program exited with status $ac_status" >&5
25249 echo "$as_me: failed program was:" >&5
25250 sed 's/^/| /' conftest.$ac_ext >&5
25251
25252 ( exit $ac_status )
25253 gl_cv_func_fchownat_nofollow_works=no
25254 fi
25255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25256 fi
25257
25258
25259
25260 fi
25261 { echo "$as_me:$LINENO: result: $gl_cv_func_fchownat_nofollow_works" >&5
25262 echo "${ECHO_T}$gl_cv_func_fchownat_nofollow_works" >&6; }
25263   if test $gl_cv_func_fchownat_nofollow_works = no; then
25264   :
25265 else
25266   use_replacement_fchownat=no
25267 fi
25268
25269
25270   fi
25271
25272   if test $use_replacement_fchownat = yes; then
25273
25274
25275
25276
25277
25278
25279
25280   gl_LIBOBJS="$gl_LIBOBJS fchownat.$ac_objext"
25281
25282
25283 cat >>confdefs.h <<\_ACEOF
25284 #define fchownat rpl_fchownat
25285 _ACEOF
25286
25287   fi
25288
25289
25290
25291
25292
25293
25294
25295
25296
25297
25298
25299
25300
25301
25302
25303
25304
25305
25306   gl_LIBOBJS="$gl_LIBOBJS quote.$ac_objext"
25307
25308
25309
25310
25311
25312
25313
25314
25315
25316
25317
25318   gl_LIBOBJS="$gl_LIBOBJS quotearg.$ac_objext"
25319
25320
25321
25322
25323
25324
25325
25326
25327   { echo "$as_me:$LINENO: checking for mbstate_t" >&5
25328 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
25329 if test "${ac_cv_type_mbstate_t+set}" = set; then
25330   echo $ECHO_N "(cached) $ECHO_C" >&6
25331 else
25332   cat >conftest.$ac_ext <<_ACEOF
25333 /* confdefs.h.  */
25334 _ACEOF
25335 cat confdefs.h >>conftest.$ac_ext
25336 cat >>conftest.$ac_ext <<_ACEOF
25337 /* end confdefs.h.  */
25338 $ac_includes_default
25339 #           include <wchar.h>
25340 int
25341 main ()
25342 {
25343 mbstate_t x; return sizeof x;
25344   ;
25345   return 0;
25346 }
25347 _ACEOF
25348 rm -f conftest.$ac_objext
25349 if { (ac_try="$ac_compile"
25350 case "(($ac_try" in
25351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25352   *) ac_try_echo=$ac_try;;
25353 esac
25354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25355   (eval "$ac_compile") 2>conftest.er1
25356   ac_status=$?
25357   grep -v '^ *+' conftest.er1 >conftest.err
25358   rm -f conftest.er1
25359   cat conftest.err >&5
25360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361   (exit $ac_status); } && {
25362          test -z "$ac_c_werror_flag" ||
25363          test ! -s conftest.err
25364        } && test -s conftest.$ac_objext; then
25365   ac_cv_type_mbstate_t=yes
25366 else
25367   echo "$as_me: failed program was:" >&5
25368 sed 's/^/| /' conftest.$ac_ext >&5
25369
25370         ac_cv_type_mbstate_t=no
25371 fi
25372
25373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25374 fi
25375 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25376 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
25377    if test $ac_cv_type_mbstate_t = yes; then
25378
25379 cat >>confdefs.h <<\_ACEOF
25380 #define HAVE_MBSTATE_T 1
25381 _ACEOF
25382
25383    else
25384
25385 cat >>confdefs.h <<\_ACEOF
25386 #define mbstate_t int
25387 _ACEOF
25388
25389    fi
25390
25391     { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
25392 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
25393 if test "${gl_cv_func_mbrtowc+set}" = set; then
25394   echo $ECHO_N "(cached) $ECHO_C" >&6
25395 else
25396   cat >conftest.$ac_ext <<_ACEOF
25397 /* confdefs.h.  */
25398 _ACEOF
25399 cat confdefs.h >>conftest.$ac_ext
25400 cat >>conftest.$ac_ext <<_ACEOF
25401 /* end confdefs.h.  */
25402 #include <wchar.h>
25403 int
25404 main ()
25405 {
25406 wchar_t wc;
25407               char const s[] = "";
25408               size_t n = 1;
25409               mbstate_t state;
25410               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
25411   ;
25412   return 0;
25413 }
25414 _ACEOF
25415 rm -f conftest.$ac_objext conftest$ac_exeext
25416 if { (ac_try="$ac_link"
25417 case "(($ac_try" in
25418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25419   *) ac_try_echo=$ac_try;;
25420 esac
25421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25422   (eval "$ac_link") 2>conftest.er1
25423   ac_status=$?
25424   grep -v '^ *+' conftest.er1 >conftest.err
25425   rm -f conftest.er1
25426   cat conftest.err >&5
25427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25428   (exit $ac_status); } && {
25429          test -z "$ac_c_werror_flag" ||
25430          test ! -s conftest.err
25431        } && test -s conftest$ac_exeext &&
25432        $as_test_x conftest$ac_exeext; then
25433   gl_cv_func_mbrtowc=yes
25434 else
25435   echo "$as_me: failed program was:" >&5
25436 sed 's/^/| /' conftest.$ac_ext >&5
25437
25438         gl_cv_func_mbrtowc=no
25439 fi
25440
25441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25442       conftest$ac_exeext conftest.$ac_ext
25443 fi
25444 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
25445 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; }
25446   if test $gl_cv_func_mbrtowc = yes; then
25447
25448 cat >>confdefs.h <<\_ACEOF
25449 #define HAVE_MBRTOWC 1
25450 _ACEOF
25451
25452   fi
25453
25454
25455
25456
25457
25458
25459
25460
25461
25462
25463   if test $ac_cv_func_readlink = no; then
25464     HAVE_READLINK=0
25465
25466
25467
25468
25469
25470
25471
25472   gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
25473
25474
25475   :
25476
25477   fi
25478
25479
25480
25481   GNULIB_READLINK=1
25482
25483
25484
25485   if test $gl_cv_func_malloc_posix = yes; then
25486     HAVE_REALLOC_POSIX=1
25487
25488 cat >>confdefs.h <<\_ACEOF
25489 #define HAVE_REALLOC_POSIX 1
25490 _ACEOF
25491
25492   else
25493
25494
25495
25496
25497
25498
25499
25500   gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
25501
25502     HAVE_REALLOC_POSIX=0
25503   fi
25504
25505
25506
25507
25508   GNULIB_REALLOC_POSIX=1
25509
25510
25511
25512
25513
25514
25515
25516
25517
25518
25519 # Check whether --with-included-regex was given.
25520 if test "${with_included_regex+set}" = set; then
25521   withval=$with_included_regex;
25522 fi
25523
25524
25525   case $with_included_regex in #(
25526   yes|no) ac_use_included_regex=$with_included_regex
25527         ;;
25528   '')
25529     # If the system regex support is good enough that it passes the
25530     # following run test, then default to *not* using the included regex.c.
25531     # If cross compiling, assume the test would fail and use the included
25532     # regex.c.
25533     { echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
25534 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6; }
25535 if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
25536   echo $ECHO_N "(cached) $ECHO_C" >&6
25537 else
25538   if test "$cross_compiling" = yes; then
25539          gl_cv_func_re_compile_pattern_working=no
25540 else
25541   cat >conftest.$ac_ext <<_ACEOF
25542 /* confdefs.h.  */
25543 _ACEOF
25544 cat confdefs.h >>conftest.$ac_ext
25545 cat >>conftest.$ac_ext <<_ACEOF
25546 /* end confdefs.h.  */
25547 $ac_includes_default
25548            #if HAVE_LOCALE_H
25549             #include <locale.h>
25550            #endif
25551            #include <limits.h>
25552            #include <regex.h>
25553
25554 int
25555 main ()
25556 {
25557 static struct re_pattern_buffer regex;
25558             unsigned char folded_chars[UCHAR_MAX + 1];
25559             int i;
25560             const char *s;
25561             struct re_registers regs;
25562
25563             #if HAVE_LOCALE_H
25564               /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
25565                  This test needs valgrind to catch the bug on Debian
25566                  GNU/Linux 3.1 x86, but it might catch the bug better
25567                  on other platforms and it shouldn't hurt to try the
25568                  test here.  */
25569               if (setlocale (LC_ALL, "en_US.UTF-8"))
25570                 {
25571                   static char const pat[] = "insert into";
25572                   static char const data[] =
25573                     "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
25574                   re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
25575                                  | RE_ICASE);
25576                   memset (&regex, 0, sizeof regex);
25577                   s = re_compile_pattern (pat, sizeof pat - 1, &regex);
25578                   if (s)
25579                     return 1;
25580                   if (re_search (&regex, data, sizeof data - 1,
25581                                  0, sizeof data - 1, &regs)
25582                       != -1)
25583                     return 1;
25584                   if (! setlocale (LC_ALL, "C"))
25585                     return 1;
25586                 }
25587             #endif
25588
25589             /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
25590             re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
25591             memset (&regex, 0, sizeof regex);
25592             s = re_compile_pattern ("a[^x]b", 6, &regex);
25593             if (s)
25594               return 1;
25595
25596             /* This should fail, but succeeds for glibc-2.5.  */
25597             if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
25598               return 1;
25599
25600             /* This regular expression is from Spencer ere test number 75
25601                in grep-2.3.  */
25602             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
25603             memset (&regex, 0, sizeof regex);
25604             for (i = 0; i <= UCHAR_MAX; i++)
25605               folded_chars[i] = i;
25606             regex.translate = folded_chars;
25607             s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
25608             /* This should fail with _Invalid character class name_ error.  */
25609             if (!s)
25610               return 1;
25611
25612             /* This should succeed, but does not for glibc-2.1.3.  */
25613             memset (&regex, 0, sizeof regex);
25614             s = re_compile_pattern ("{1", 2, &regex);
25615
25616             if (s)
25617               return 1;
25618
25619             /* The following example is derived from a problem report
25620                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
25621             memset (&regex, 0, sizeof regex);
25622             s = re_compile_pattern ("[an\371]*n", 7, &regex);
25623             if (s)
25624               return 1;
25625
25626             /* This should match, but does not for glibc-2.2.1.  */
25627             if (re_match (&regex, "an", 2, 0, &regs) != 2)
25628               return 1;
25629
25630             memset (&regex, 0, sizeof regex);
25631             s = re_compile_pattern ("x", 1, &regex);
25632             if (s)
25633               return 1;
25634
25635             /* glibc-2.2.93 does not work with a negative RANGE argument.  */
25636             if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
25637               return 1;
25638
25639             /* The version of regex.c in older versions of gnulib
25640                ignored RE_ICASE.  Detect that problem too.  */
25641             re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
25642             memset (&regex, 0, sizeof regex);
25643             s = re_compile_pattern ("x", 1, &regex);
25644             if (s)
25645               return 1;
25646
25647             if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
25648               return 1;
25649
25650             /* Catch a bug reported by Vin Shelton in
25651                http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
25652                */
25653             re_set_syntax (RE_SYNTAX_POSIX_BASIC
25654                            & ~RE_CONTEXT_INVALID_DUP
25655                            & ~RE_NO_EMPTY_RANGES);
25656             memset (&regex, 0, sizeof regex);
25657             s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
25658             if (s)
25659               return 1;
25660
25661             /* REG_STARTEND was added to glibc on 2004-01-15.
25662                Reject older versions.  */
25663             if (! REG_STARTEND)
25664               return 1;
25665
25666             /* Reject hosts whose regoff_t values are too narrow.
25667                These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
25668                and 32-bit int.  */
25669             if (sizeof (regoff_t) < sizeof (ptrdiff_t)
25670                 || sizeof (regoff_t) < sizeof (ssize_t))
25671               return 1;
25672
25673             return 0;
25674   ;
25675   return 0;
25676 }
25677 _ACEOF
25678 rm -f conftest$ac_exeext
25679 if { (ac_try="$ac_link"
25680 case "(($ac_try" in
25681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25682   *) ac_try_echo=$ac_try;;
25683 esac
25684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25685   (eval "$ac_link") 2>&5
25686   ac_status=$?
25687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25689   { (case "(($ac_try" in
25690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25691   *) ac_try_echo=$ac_try;;
25692 esac
25693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25694   (eval "$ac_try") 2>&5
25695   ac_status=$?
25696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697   (exit $ac_status); }; }; then
25698   gl_cv_func_re_compile_pattern_working=yes
25699 else
25700   echo "$as_me: program exited with status $ac_status" >&5
25701 echo "$as_me: failed program was:" >&5
25702 sed 's/^/| /' conftest.$ac_ext >&5
25703
25704 ( exit $ac_status )
25705 gl_cv_func_re_compile_pattern_working=no
25706 fi
25707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25708 fi
25709
25710
25711 fi
25712 { echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
25713 echo "${ECHO_T}$gl_cv_func_re_compile_pattern_working" >&6; }
25714     case $gl_cv_func_re_compile_pattern_working in #(
25715     yes) ac_use_included_regex=no;; #(
25716     no) ac_use_included_regex=yes;;
25717     esac
25718     ;;
25719   *) { { echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
25720 echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
25721    { (exit 1); exit 1; }; }
25722     ;;
25723   esac
25724
25725   if test $ac_use_included_regex = yes; then
25726
25727 cat >>confdefs.h <<\_ACEOF
25728 #define _REGEX_LARGE_OFFSETS 1
25729 _ACEOF
25730
25731
25732 cat >>confdefs.h <<\_ACEOF
25733 #define re_syntax_options rpl_re_syntax_options
25734 _ACEOF
25735
25736
25737 cat >>confdefs.h <<\_ACEOF
25738 #define re_set_syntax rpl_re_set_syntax
25739 _ACEOF
25740
25741
25742 cat >>confdefs.h <<\_ACEOF
25743 #define re_compile_pattern rpl_re_compile_pattern
25744 _ACEOF
25745
25746
25747 cat >>confdefs.h <<\_ACEOF
25748 #define re_compile_fastmap rpl_re_compile_fastmap
25749 _ACEOF
25750
25751
25752 cat >>confdefs.h <<\_ACEOF
25753 #define re_search rpl_re_search
25754 _ACEOF
25755
25756
25757 cat >>confdefs.h <<\_ACEOF
25758 #define re_search_2 rpl_re_search_2
25759 _ACEOF
25760
25761
25762 cat >>confdefs.h <<\_ACEOF
25763 #define re_match rpl_re_match
25764 _ACEOF
25765
25766
25767 cat >>confdefs.h <<\_ACEOF
25768 #define re_match_2 rpl_re_match_2
25769 _ACEOF
25770
25771
25772 cat >>confdefs.h <<\_ACEOF
25773 #define re_set_registers rpl_re_set_registers
25774 _ACEOF
25775
25776
25777 cat >>confdefs.h <<\_ACEOF
25778 #define re_comp rpl_re_comp
25779 _ACEOF
25780
25781
25782 cat >>confdefs.h <<\_ACEOF
25783 #define re_exec rpl_re_exec
25784 _ACEOF
25785
25786
25787 cat >>confdefs.h <<\_ACEOF
25788 #define regcomp rpl_regcomp
25789 _ACEOF
25790
25791
25792 cat >>confdefs.h <<\_ACEOF
25793 #define regexec rpl_regexec
25794 _ACEOF
25795
25796
25797 cat >>confdefs.h <<\_ACEOF
25798 #define regerror rpl_regerror
25799 _ACEOF
25800
25801
25802 cat >>confdefs.h <<\_ACEOF
25803 #define regfree rpl_regfree
25804 _ACEOF
25805
25806
25807
25808
25809
25810
25811
25812
25813   gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
25814
25815
25816
25817
25818
25819
25820
25821
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833   { echo "$as_me:$LINENO: checking whether isblank is declared" >&5
25834 echo $ECHO_N "checking whether isblank is declared... $ECHO_C" >&6; }
25835 if test "${ac_cv_have_decl_isblank+set}" = set; then
25836   echo $ECHO_N "(cached) $ECHO_C" >&6
25837 else
25838   cat >conftest.$ac_ext <<_ACEOF
25839 /* confdefs.h.  */
25840 _ACEOF
25841 cat confdefs.h >>conftest.$ac_ext
25842 cat >>conftest.$ac_ext <<_ACEOF
25843 /* end confdefs.h.  */
25844 #include <ctype.h>
25845
25846 int
25847 main ()
25848 {
25849 #ifndef isblank
25850   (void) isblank;
25851 #endif
25852
25853   ;
25854   return 0;
25855 }
25856 _ACEOF
25857 rm -f conftest.$ac_objext
25858 if { (ac_try="$ac_compile"
25859 case "(($ac_try" in
25860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25861   *) ac_try_echo=$ac_try;;
25862 esac
25863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25864   (eval "$ac_compile") 2>conftest.er1
25865   ac_status=$?
25866   grep -v '^ *+' conftest.er1 >conftest.err
25867   rm -f conftest.er1
25868   cat conftest.err >&5
25869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25870   (exit $ac_status); } && {
25871          test -z "$ac_c_werror_flag" ||
25872          test ! -s conftest.err
25873        } && test -s conftest.$ac_objext; then
25874   ac_cv_have_decl_isblank=yes
25875 else
25876   echo "$as_me: failed program was:" >&5
25877 sed 's/^/| /' conftest.$ac_ext >&5
25878
25879         ac_cv_have_decl_isblank=no
25880 fi
25881
25882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25883 fi
25884 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
25885 echo "${ECHO_T}$ac_cv_have_decl_isblank" >&6; }
25886 if test $ac_cv_have_decl_isblank = yes; then
25887
25888 cat >>confdefs.h <<_ACEOF
25889 #define HAVE_DECL_ISBLANK 1
25890 _ACEOF
25891
25892
25893 else
25894   cat >>confdefs.h <<_ACEOF
25895 #define HAVE_DECL_ISBLANK 0
25896 _ACEOF
25897
25898
25899 fi
25900
25901
25902
25903   fi
25904
25905
25906
25907
25908
25909
25910
25911
25912
25913
25914 for ac_func in rmdir
25915 do
25916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25917 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25919 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25920   echo $ECHO_N "(cached) $ECHO_C" >&6
25921 else
25922   cat >conftest.$ac_ext <<_ACEOF
25923 /* confdefs.h.  */
25924 _ACEOF
25925 cat confdefs.h >>conftest.$ac_ext
25926 cat >>conftest.$ac_ext <<_ACEOF
25927 /* end confdefs.h.  */
25928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25929    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25930 #define $ac_func innocuous_$ac_func
25931
25932 /* System header to define __stub macros and hopefully few prototypes,
25933     which can conflict with char $ac_func (); below.
25934     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25935     <limits.h> exists even on freestanding compilers.  */
25936
25937 #ifdef __STDC__
25938 # include <limits.h>
25939 #else
25940 # include <assert.h>
25941 #endif
25942
25943 #undef $ac_func
25944
25945 /* Override any GCC internal prototype to avoid an error.
25946    Use char because int might match the return type of a GCC
25947    builtin and then its argument prototype would still apply.  */
25948 #ifdef __cplusplus
25949 extern "C"
25950 #endif
25951 char $ac_func ();
25952 /* The GNU C library defines this for functions which it implements
25953     to always fail with ENOSYS.  Some functions are actually named
25954     something starting with __ and the normal name is an alias.  */
25955 #if defined __stub_$ac_func || defined __stub___$ac_func
25956 choke me
25957 #endif
25958
25959 int
25960 main ()
25961 {
25962 return $ac_func ();
25963   ;
25964   return 0;
25965 }
25966 _ACEOF
25967 rm -f conftest.$ac_objext conftest$ac_exeext
25968 if { (ac_try="$ac_link"
25969 case "(($ac_try" in
25970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25971   *) ac_try_echo=$ac_try;;
25972 esac
25973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25974   (eval "$ac_link") 2>conftest.er1
25975   ac_status=$?
25976   grep -v '^ *+' conftest.er1 >conftest.err
25977   rm -f conftest.er1
25978   cat conftest.err >&5
25979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25980   (exit $ac_status); } && {
25981          test -z "$ac_c_werror_flag" ||
25982          test ! -s conftest.err
25983        } && test -s conftest$ac_exeext &&
25984        $as_test_x conftest$ac_exeext; then
25985   eval "$as_ac_var=yes"
25986 else
25987   echo "$as_me: failed program was:" >&5
25988 sed 's/^/| /' conftest.$ac_ext >&5
25989
25990         eval "$as_ac_var=no"
25991 fi
25992
25993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25994       conftest$ac_exeext conftest.$ac_ext
25995 fi
25996 ac_res=`eval echo '${'$as_ac_var'}'`
25997                { echo "$as_me:$LINENO: result: $ac_res" >&5
25998 echo "${ECHO_T}$ac_res" >&6; }
25999 if test `eval echo '${'$as_ac_var'}'` = yes; then
26000   cat >>confdefs.h <<_ACEOF
26001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26002 _ACEOF
26003
26004 else
26005
26006     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
26007
26008 fi
26009 done
26010
26011
26012
26013
26014
26015
26016
26017
26018
26019
26020
26021
26022 for ac_func in rpmatch
26023 do
26024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26025 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26027 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26028   echo $ECHO_N "(cached) $ECHO_C" >&6
26029 else
26030   cat >conftest.$ac_ext <<_ACEOF
26031 /* confdefs.h.  */
26032 _ACEOF
26033 cat confdefs.h >>conftest.$ac_ext
26034 cat >>conftest.$ac_ext <<_ACEOF
26035 /* end confdefs.h.  */
26036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26037    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26038 #define $ac_func innocuous_$ac_func
26039
26040 /* System header to define __stub macros and hopefully few prototypes,
26041     which can conflict with char $ac_func (); below.
26042     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26043     <limits.h> exists even on freestanding compilers.  */
26044
26045 #ifdef __STDC__
26046 # include <limits.h>
26047 #else
26048 # include <assert.h>
26049 #endif
26050
26051 #undef $ac_func
26052
26053 /* Override any GCC internal prototype to avoid an error.
26054    Use char because int might match the return type of a GCC
26055    builtin and then its argument prototype would still apply.  */
26056 #ifdef __cplusplus
26057 extern "C"
26058 #endif
26059 char $ac_func ();
26060 /* The GNU C library defines this for functions which it implements
26061     to always fail with ENOSYS.  Some functions are actually named
26062     something starting with __ and the normal name is an alias.  */
26063 #if defined __stub_$ac_func || defined __stub___$ac_func
26064 choke me
26065 #endif
26066
26067 int
26068 main ()
26069 {
26070 return $ac_func ();
26071   ;
26072   return 0;
26073 }
26074 _ACEOF
26075 rm -f conftest.$ac_objext conftest$ac_exeext
26076 if { (ac_try="$ac_link"
26077 case "(($ac_try" in
26078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26079   *) ac_try_echo=$ac_try;;
26080 esac
26081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26082   (eval "$ac_link") 2>conftest.er1
26083   ac_status=$?
26084   grep -v '^ *+' conftest.er1 >conftest.err
26085   rm -f conftest.er1
26086   cat conftest.err >&5
26087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26088   (exit $ac_status); } && {
26089          test -z "$ac_c_werror_flag" ||
26090          test ! -s conftest.err
26091        } && test -s conftest$ac_exeext &&
26092        $as_test_x conftest$ac_exeext; then
26093   eval "$as_ac_var=yes"
26094 else
26095   echo "$as_me: failed program was:" >&5
26096 sed 's/^/| /' conftest.$ac_ext >&5
26097
26098         eval "$as_ac_var=no"
26099 fi
26100
26101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26102       conftest$ac_exeext conftest.$ac_ext
26103 fi
26104 ac_res=`eval echo '${'$as_ac_var'}'`
26105                { echo "$as_me:$LINENO: result: $ac_res" >&5
26106 echo "${ECHO_T}$ac_res" >&6; }
26107 if test `eval echo '${'$as_ac_var'}'` = yes; then
26108   cat >>confdefs.h <<_ACEOF
26109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26110 _ACEOF
26111
26112 else
26113
26114     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
26115
26116 fi
26117 done
26118
26119
26120   if test $ac_cv_func_rpmatch = no; then
26121     :
26122   fi
26123
26124
26125
26126
26127
26128
26129
26130
26131
26132   gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
26133
26134
26135
26136
26137
26138
26139
26140
26141
26142
26143
26144
26145
26146
26147   gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
26148
26149
26150
26151
26152
26153
26154
26155
26156
26157
26158
26159
26160
26161
26162
26163
26164   gl_LIBOBJS="$gl_LIBOBJS save-cwd.$ac_objext"
26165
26166
26167
26168
26169
26170
26171
26172
26173
26174
26175
26176
26177
26178
26179
26180
26181   gl_LIBOBJS="$gl_LIBOBJS savedir.$ac_objext"
26182
26183
26184
26185
26186
26187
26188
26189
26190
26191
26192   if test $ac_cv_func_setenv = no; then
26193     HAVE_SETENV=0
26194
26195
26196
26197
26198
26199
26200
26201   gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
26202
26203
26204
26205
26206
26207
26208
26209
26210
26211
26212
26213 for ac_header in search.h
26214 do
26215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26217   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26220   echo $ECHO_N "(cached) $ECHO_C" >&6
26221 fi
26222 ac_res=`eval echo '${'$as_ac_Header'}'`
26223                { echo "$as_me:$LINENO: result: $ac_res" >&5
26224 echo "${ECHO_T}$ac_res" >&6; }
26225 else
26226   # Is the header compilable?
26227 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26228 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26229 cat >conftest.$ac_ext <<_ACEOF
26230 /* confdefs.h.  */
26231 _ACEOF
26232 cat confdefs.h >>conftest.$ac_ext
26233 cat >>conftest.$ac_ext <<_ACEOF
26234 /* end confdefs.h.  */
26235 $ac_includes_default
26236 #include <$ac_header>
26237 _ACEOF
26238 rm -f conftest.$ac_objext
26239 if { (ac_try="$ac_compile"
26240 case "(($ac_try" in
26241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26242   *) ac_try_echo=$ac_try;;
26243 esac
26244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26245   (eval "$ac_compile") 2>conftest.er1
26246   ac_status=$?
26247   grep -v '^ *+' conftest.er1 >conftest.err
26248   rm -f conftest.er1
26249   cat conftest.err >&5
26250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251   (exit $ac_status); } && {
26252          test -z "$ac_c_werror_flag" ||
26253          test ! -s conftest.err
26254        } && test -s conftest.$ac_objext; then
26255   ac_header_compiler=yes
26256 else
26257   echo "$as_me: failed program was:" >&5
26258 sed 's/^/| /' conftest.$ac_ext >&5
26259
26260         ac_header_compiler=no
26261 fi
26262
26263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26265 echo "${ECHO_T}$ac_header_compiler" >&6; }
26266
26267 # Is the header present?
26268 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26270 cat >conftest.$ac_ext <<_ACEOF
26271 /* confdefs.h.  */
26272 _ACEOF
26273 cat confdefs.h >>conftest.$ac_ext
26274 cat >>conftest.$ac_ext <<_ACEOF
26275 /* end confdefs.h.  */
26276 #include <$ac_header>
26277 _ACEOF
26278 if { (ac_try="$ac_cpp conftest.$ac_ext"
26279 case "(($ac_try" in
26280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26281   *) ac_try_echo=$ac_try;;
26282 esac
26283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26284   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26285   ac_status=$?
26286   grep -v '^ *+' conftest.er1 >conftest.err
26287   rm -f conftest.er1
26288   cat conftest.err >&5
26289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290   (exit $ac_status); } >/dev/null && {
26291          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26292          test ! -s conftest.err
26293        }; then
26294   ac_header_preproc=yes
26295 else
26296   echo "$as_me: failed program was:" >&5
26297 sed 's/^/| /' conftest.$ac_ext >&5
26298
26299   ac_header_preproc=no
26300 fi
26301
26302 rm -f conftest.err conftest.$ac_ext
26303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26304 echo "${ECHO_T}$ac_header_preproc" >&6; }
26305
26306 # So?  What about this header?
26307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26308   yes:no: )
26309     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26311     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26313     ac_header_preproc=yes
26314     ;;
26315   no:yes:* )
26316     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26318     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26319 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26320     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26322     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26323 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26324     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26326     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26328     ( cat <<\_ASBOX
26329 ## ------------------------------ ##
26330 ## Report this to bug-tar@gnu.org ##
26331 ## ------------------------------ ##
26332 _ASBOX
26333      ) | sed "s/^/$as_me: WARNING:     /" >&2
26334     ;;
26335 esac
26336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26339   echo $ECHO_N "(cached) $ECHO_C" >&6
26340 else
26341   eval "$as_ac_Header=\$ac_header_preproc"
26342 fi
26343 ac_res=`eval echo '${'$as_ac_Header'}'`
26344                { echo "$as_me:$LINENO: result: $ac_res" >&5
26345 echo "${ECHO_T}$ac_res" >&6; }
26346
26347 fi
26348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26349   cat >>confdefs.h <<_ACEOF
26350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26351 _ACEOF
26352
26353 fi
26354
26355 done
26356
26357
26358 for ac_func in tsearch
26359 do
26360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26364   echo $ECHO_N "(cached) $ECHO_C" >&6
26365 else
26366   cat >conftest.$ac_ext <<_ACEOF
26367 /* confdefs.h.  */
26368 _ACEOF
26369 cat confdefs.h >>conftest.$ac_ext
26370 cat >>conftest.$ac_ext <<_ACEOF
26371 /* end confdefs.h.  */
26372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26373    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26374 #define $ac_func innocuous_$ac_func
26375
26376 /* System header to define __stub macros and hopefully few prototypes,
26377     which can conflict with char $ac_func (); below.
26378     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26379     <limits.h> exists even on freestanding compilers.  */
26380
26381 #ifdef __STDC__
26382 # include <limits.h>
26383 #else
26384 # include <assert.h>
26385 #endif
26386
26387 #undef $ac_func
26388
26389 /* Override any GCC internal prototype to avoid an error.
26390    Use char because int might match the return type of a GCC
26391    builtin and then its argument prototype would still apply.  */
26392 #ifdef __cplusplus
26393 extern "C"
26394 #endif
26395 char $ac_func ();
26396 /* The GNU C library defines this for functions which it implements
26397     to always fail with ENOSYS.  Some functions are actually named
26398     something starting with __ and the normal name is an alias.  */
26399 #if defined __stub_$ac_func || defined __stub___$ac_func
26400 choke me
26401 #endif
26402
26403 int
26404 main ()
26405 {
26406 return $ac_func ();
26407   ;
26408   return 0;
26409 }
26410 _ACEOF
26411 rm -f conftest.$ac_objext conftest$ac_exeext
26412 if { (ac_try="$ac_link"
26413 case "(($ac_try" in
26414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26415   *) ac_try_echo=$ac_try;;
26416 esac
26417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26418   (eval "$ac_link") 2>conftest.er1
26419   ac_status=$?
26420   grep -v '^ *+' conftest.er1 >conftest.err
26421   rm -f conftest.er1
26422   cat conftest.err >&5
26423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26424   (exit $ac_status); } && {
26425          test -z "$ac_c_werror_flag" ||
26426          test ! -s conftest.err
26427        } && test -s conftest$ac_exeext &&
26428        $as_test_x conftest$ac_exeext; then
26429   eval "$as_ac_var=yes"
26430 else
26431   echo "$as_me: failed program was:" >&5
26432 sed 's/^/| /' conftest.$ac_ext >&5
26433
26434         eval "$as_ac_var=no"
26435 fi
26436
26437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26438       conftest$ac_exeext conftest.$ac_ext
26439 fi
26440 ac_res=`eval echo '${'$as_ac_var'}'`
26441                { echo "$as_me:$LINENO: result: $ac_res" >&5
26442 echo "${ECHO_T}$ac_res" >&6; }
26443 if test `eval echo '${'$as_ac_var'}'` = yes; then
26444   cat >>confdefs.h <<_ACEOF
26445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26446 _ACEOF
26447
26448 fi
26449 done
26450
26451
26452   fi
26453
26454
26455
26456   GNULIB_SETENV=1
26457
26458
26459
26460
26461
26462
26463
26464
26465
26466   if test $ac_cv_func_sleep = no; then
26467     HAVE_SLEEP=0
26468
26469
26470
26471
26472
26473
26474
26475   gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
26476
26477     :
26478   fi
26479
26480
26481
26482   GNULIB_SLEEP=1
26483
26484
26485
26486
26487 for ac_func in snprintf
26488 do
26489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26490 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26492 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26493   echo $ECHO_N "(cached) $ECHO_C" >&6
26494 else
26495   cat >conftest.$ac_ext <<_ACEOF
26496 /* confdefs.h.  */
26497 _ACEOF
26498 cat confdefs.h >>conftest.$ac_ext
26499 cat >>conftest.$ac_ext <<_ACEOF
26500 /* end confdefs.h.  */
26501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26502    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26503 #define $ac_func innocuous_$ac_func
26504
26505 /* System header to define __stub macros and hopefully few prototypes,
26506     which can conflict with char $ac_func (); below.
26507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26508     <limits.h> exists even on freestanding compilers.  */
26509
26510 #ifdef __STDC__
26511 # include <limits.h>
26512 #else
26513 # include <assert.h>
26514 #endif
26515
26516 #undef $ac_func
26517
26518 /* Override any GCC internal prototype to avoid an error.
26519    Use char because int might match the return type of a GCC
26520    builtin and then its argument prototype would still apply.  */
26521 #ifdef __cplusplus
26522 extern "C"
26523 #endif
26524 char $ac_func ();
26525 /* The GNU C library defines this for functions which it implements
26526     to always fail with ENOSYS.  Some functions are actually named
26527     something starting with __ and the normal name is an alias.  */
26528 #if defined __stub_$ac_func || defined __stub___$ac_func
26529 choke me
26530 #endif
26531
26532 int
26533 main ()
26534 {
26535 return $ac_func ();
26536   ;
26537   return 0;
26538 }
26539 _ACEOF
26540 rm -f conftest.$ac_objext conftest$ac_exeext
26541 if { (ac_try="$ac_link"
26542 case "(($ac_try" in
26543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26544   *) ac_try_echo=$ac_try;;
26545 esac
26546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26547   (eval "$ac_link") 2>conftest.er1
26548   ac_status=$?
26549   grep -v '^ *+' conftest.er1 >conftest.err
26550   rm -f conftest.er1
26551   cat conftest.err >&5
26552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26553   (exit $ac_status); } && {
26554          test -z "$ac_c_werror_flag" ||
26555          test ! -s conftest.err
26556        } && test -s conftest$ac_exeext &&
26557        $as_test_x conftest$ac_exeext; then
26558   eval "$as_ac_var=yes"
26559 else
26560   echo "$as_me: failed program was:" >&5
26561 sed 's/^/| /' conftest.$ac_ext >&5
26562
26563         eval "$as_ac_var=no"
26564 fi
26565
26566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26567       conftest$ac_exeext conftest.$ac_ext
26568 fi
26569 ac_res=`eval echo '${'$as_ac_var'}'`
26570                { echo "$as_me:$LINENO: result: $ac_res" >&5
26571 echo "${ECHO_T}$ac_res" >&6; }
26572 if test `eval echo '${'$as_ac_var'}'` = yes; then
26573   cat >>confdefs.h <<_ACEOF
26574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26575 _ACEOF
26576
26577 fi
26578 done
26579
26580   if test $ac_cv_func_snprintf = no; then
26581
26582
26583
26584
26585
26586
26587
26588
26589
26590   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
26591
26592   if test $ac_cv_func_snprintf = yes; then
26593     REPLACE_SNPRINTF=1
26594   fi
26595   :
26596
26597   fi
26598
26599
26600
26601
26602   if test $ac_cv_have_decl_snprintf = no; then
26603     HAVE_DECL_SNPRINTF=0
26604   fi
26605
26606
26607
26608   GNULIB_SNPRINTF=1
26609
26610
26611   { echo "$as_me:$LINENO: checking for ssize_t" >&5
26612 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
26613 if test "${gt_cv_ssize_t+set}" = set; then
26614   echo $ECHO_N "(cached) $ECHO_C" >&6
26615 else
26616   cat >conftest.$ac_ext <<_ACEOF
26617 /* confdefs.h.  */
26618 _ACEOF
26619 cat confdefs.h >>conftest.$ac_ext
26620 cat >>conftest.$ac_ext <<_ACEOF
26621 /* end confdefs.h.  */
26622 #include <sys/types.h>
26623 int
26624 main ()
26625 {
26626 int x = sizeof (ssize_t *) + sizeof (ssize_t);
26627         return !x;
26628   ;
26629   return 0;
26630 }
26631 _ACEOF
26632 rm -f conftest.$ac_objext
26633 if { (ac_try="$ac_compile"
26634 case "(($ac_try" in
26635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26636   *) ac_try_echo=$ac_try;;
26637 esac
26638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26639   (eval "$ac_compile") 2>conftest.er1
26640   ac_status=$?
26641   grep -v '^ *+' conftest.er1 >conftest.err
26642   rm -f conftest.er1
26643   cat conftest.err >&5
26644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26645   (exit $ac_status); } && {
26646          test -z "$ac_c_werror_flag" ||
26647          test ! -s conftest.err
26648        } && test -s conftest.$ac_objext; then
26649   gt_cv_ssize_t=yes
26650 else
26651   echo "$as_me: failed program was:" >&5
26652 sed 's/^/| /' conftest.$ac_ext >&5
26653
26654         gt_cv_ssize_t=no
26655 fi
26656
26657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26658 fi
26659 { echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
26660 echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
26661   if test $gt_cv_ssize_t = no; then
26662
26663 cat >>confdefs.h <<\_ACEOF
26664 #define ssize_t int
26665 _ACEOF
26666
26667   fi
26668
26669
26670
26671
26672
26673
26674
26675
26676
26677
26678
26679   { echo "$as_me:$LINENO: checking for struct stat.st_atim.tv_nsec" >&5
26680 echo $ECHO_N "checking for struct stat.st_atim.tv_nsec... $ECHO_C" >&6; }
26681 if test "${ac_cv_member_struct_stat_st_atim_tv_nsec+set}" = set; then
26682   echo $ECHO_N "(cached) $ECHO_C" >&6
26683 else
26684   cat >conftest.$ac_ext <<_ACEOF
26685 /* confdefs.h.  */
26686 _ACEOF
26687 cat confdefs.h >>conftest.$ac_ext
26688 cat >>conftest.$ac_ext <<_ACEOF
26689 /* end confdefs.h.  */
26690 #include <sys/types.h>
26691      #include <sys/stat.h>
26692
26693 int
26694 main ()
26695 {
26696 static struct stat ac_aggr;
26697 if (ac_aggr.st_atim.tv_nsec)
26698 return 0;
26699   ;
26700   return 0;
26701 }
26702 _ACEOF
26703 rm -f conftest.$ac_objext
26704 if { (ac_try="$ac_compile"
26705 case "(($ac_try" in
26706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26707   *) ac_try_echo=$ac_try;;
26708 esac
26709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26710   (eval "$ac_compile") 2>conftest.er1
26711   ac_status=$?
26712   grep -v '^ *+' conftest.er1 >conftest.err
26713   rm -f conftest.er1
26714   cat conftest.err >&5
26715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26716   (exit $ac_status); } && {
26717          test -z "$ac_c_werror_flag" ||
26718          test ! -s conftest.err
26719        } && test -s conftest.$ac_objext; then
26720   ac_cv_member_struct_stat_st_atim_tv_nsec=yes
26721 else
26722   echo "$as_me: failed program was:" >&5
26723 sed 's/^/| /' conftest.$ac_ext >&5
26724
26725         cat >conftest.$ac_ext <<_ACEOF
26726 /* confdefs.h.  */
26727 _ACEOF
26728 cat confdefs.h >>conftest.$ac_ext
26729 cat >>conftest.$ac_ext <<_ACEOF
26730 /* end confdefs.h.  */
26731 #include <sys/types.h>
26732      #include <sys/stat.h>
26733
26734 int
26735 main ()
26736 {
26737 static struct stat ac_aggr;
26738 if (sizeof ac_aggr.st_atim.tv_nsec)
26739 return 0;
26740   ;
26741   return 0;
26742 }
26743 _ACEOF
26744 rm -f conftest.$ac_objext
26745 if { (ac_try="$ac_compile"
26746 case "(($ac_try" in
26747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26748   *) ac_try_echo=$ac_try;;
26749 esac
26750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26751   (eval "$ac_compile") 2>conftest.er1
26752   ac_status=$?
26753   grep -v '^ *+' conftest.er1 >conftest.err
26754   rm -f conftest.er1
26755   cat conftest.err >&5
26756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26757   (exit $ac_status); } && {
26758          test -z "$ac_c_werror_flag" ||
26759          test ! -s conftest.err
26760        } && test -s conftest.$ac_objext; then
26761   ac_cv_member_struct_stat_st_atim_tv_nsec=yes
26762 else
26763   echo "$as_me: failed program was:" >&5
26764 sed 's/^/| /' conftest.$ac_ext >&5
26765
26766         ac_cv_member_struct_stat_st_atim_tv_nsec=no
26767 fi
26768
26769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26770 fi
26771
26772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26773 fi
26774 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_tv_nsec" >&5
26775 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_tv_nsec" >&6; }
26776 if test $ac_cv_member_struct_stat_st_atim_tv_nsec = yes; then
26777
26778 cat >>confdefs.h <<_ACEOF
26779 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
26780 _ACEOF
26781
26782 { echo "$as_me:$LINENO: checking whether struct stat.st_atim is of type struct timespec" >&5
26783 echo $ECHO_N "checking whether struct stat.st_atim is of type struct timespec... $ECHO_C" >&6; }
26784 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then
26785   echo $ECHO_N "(cached) $ECHO_C" >&6
26786 else
26787   cat >conftest.$ac_ext <<_ACEOF
26788 /* confdefs.h.  */
26789 _ACEOF
26790 cat confdefs.h >>conftest.$ac_ext
26791 cat >>conftest.$ac_ext <<_ACEOF
26792 /* end confdefs.h.  */
26793
26794             #include <sys/types.h>
26795             #include <sys/stat.h>
26796             #if HAVE_SYS_TIME_H
26797             # include <sys/time.h>
26798             #endif
26799             #include <time.h>
26800             struct timespec ts;
26801             struct stat st;
26802
26803 int
26804 main ()
26805 {
26806
26807             st.st_atim = ts;
26808
26809   ;
26810   return 0;
26811 }
26812 _ACEOF
26813 rm -f conftest.$ac_objext
26814 if { (ac_try="$ac_compile"
26815 case "(($ac_try" in
26816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26817   *) ac_try_echo=$ac_try;;
26818 esac
26819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26820   (eval "$ac_compile") 2>conftest.er1
26821   ac_status=$?
26822   grep -v '^ *+' conftest.er1 >conftest.err
26823   rm -f conftest.er1
26824   cat conftest.err >&5
26825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26826   (exit $ac_status); } && {
26827          test -z "$ac_c_werror_flag" ||
26828          test ! -s conftest.err
26829        } && test -s conftest.$ac_objext; then
26830   ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
26831 else
26832   echo "$as_me: failed program was:" >&5
26833 sed 's/^/| /' conftest.$ac_ext >&5
26834
26835         ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
26836 fi
26837
26838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26839 fi
26840 { echo "$as_me:$LINENO: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
26841 echo "${ECHO_T}$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
26842      if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
26843
26844 cat >>confdefs.h <<\_ACEOF
26845 #define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1
26846 _ACEOF
26847
26848      fi
26849 else
26850   { echo "$as_me:$LINENO: checking for struct stat.st_atimespec.tv_nsec" >&5
26851 echo $ECHO_N "checking for struct stat.st_atimespec.tv_nsec... $ECHO_C" >&6; }
26852 if test "${ac_cv_member_struct_stat_st_atimespec_tv_nsec+set}" = set; then
26853   echo $ECHO_N "(cached) $ECHO_C" >&6
26854 else
26855   cat >conftest.$ac_ext <<_ACEOF
26856 /* confdefs.h.  */
26857 _ACEOF
26858 cat confdefs.h >>conftest.$ac_ext
26859 cat >>conftest.$ac_ext <<_ACEOF
26860 /* end confdefs.h.  */
26861 #include <sys/types.h>
26862         #include <sys/stat.h>
26863
26864 int
26865 main ()
26866 {
26867 static struct stat ac_aggr;
26868 if (ac_aggr.st_atimespec.tv_nsec)
26869 return 0;
26870   ;
26871   return 0;
26872 }
26873 _ACEOF
26874 rm -f conftest.$ac_objext
26875 if { (ac_try="$ac_compile"
26876 case "(($ac_try" in
26877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26878   *) ac_try_echo=$ac_try;;
26879 esac
26880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26881   (eval "$ac_compile") 2>conftest.er1
26882   ac_status=$?
26883   grep -v '^ *+' conftest.er1 >conftest.err
26884   rm -f conftest.er1
26885   cat conftest.err >&5
26886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26887   (exit $ac_status); } && {
26888          test -z "$ac_c_werror_flag" ||
26889          test ! -s conftest.err
26890        } && test -s conftest.$ac_objext; then
26891   ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
26892 else
26893   echo "$as_me: failed program was:" >&5
26894 sed 's/^/| /' conftest.$ac_ext >&5
26895
26896         cat >conftest.$ac_ext <<_ACEOF
26897 /* confdefs.h.  */
26898 _ACEOF
26899 cat confdefs.h >>conftest.$ac_ext
26900 cat >>conftest.$ac_ext <<_ACEOF
26901 /* end confdefs.h.  */
26902 #include <sys/types.h>
26903         #include <sys/stat.h>
26904
26905 int
26906 main ()
26907 {
26908 static struct stat ac_aggr;
26909 if (sizeof ac_aggr.st_atimespec.tv_nsec)
26910 return 0;
26911   ;
26912   return 0;
26913 }
26914 _ACEOF
26915 rm -f conftest.$ac_objext
26916 if { (ac_try="$ac_compile"
26917 case "(($ac_try" in
26918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26919   *) ac_try_echo=$ac_try;;
26920 esac
26921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26922   (eval "$ac_compile") 2>conftest.er1
26923   ac_status=$?
26924   grep -v '^ *+' conftest.er1 >conftest.err
26925   rm -f conftest.er1
26926   cat conftest.err >&5
26927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928   (exit $ac_status); } && {
26929          test -z "$ac_c_werror_flag" ||
26930          test ! -s conftest.err
26931        } && test -s conftest.$ac_objext; then
26932   ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
26933 else
26934   echo "$as_me: failed program was:" >&5
26935 sed 's/^/| /' conftest.$ac_ext >&5
26936
26937         ac_cv_member_struct_stat_st_atimespec_tv_nsec=no
26938 fi
26939
26940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26941 fi
26942
26943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26944 fi
26945 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&5
26946 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&6; }
26947 if test $ac_cv_member_struct_stat_st_atimespec_tv_nsec = yes; then
26948
26949 cat >>confdefs.h <<_ACEOF
26950 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
26951 _ACEOF
26952
26953
26954 else
26955   { echo "$as_me:$LINENO: checking for struct stat.st_atimensec" >&5
26956 echo $ECHO_N "checking for struct stat.st_atimensec... $ECHO_C" >&6; }
26957 if test "${ac_cv_member_struct_stat_st_atimensec+set}" = set; then
26958   echo $ECHO_N "(cached) $ECHO_C" >&6
26959 else
26960   cat >conftest.$ac_ext <<_ACEOF
26961 /* confdefs.h.  */
26962 _ACEOF
26963 cat confdefs.h >>conftest.$ac_ext
26964 cat >>conftest.$ac_ext <<_ACEOF
26965 /* end confdefs.h.  */
26966 #include <sys/types.h>
26967            #include <sys/stat.h>
26968
26969 int
26970 main ()
26971 {
26972 static struct stat ac_aggr;
26973 if (ac_aggr.st_atimensec)
26974 return 0;
26975   ;
26976   return 0;
26977 }
26978 _ACEOF
26979 rm -f conftest.$ac_objext
26980 if { (ac_try="$ac_compile"
26981 case "(($ac_try" in
26982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26983   *) ac_try_echo=$ac_try;;
26984 esac
26985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26986   (eval "$ac_compile") 2>conftest.er1
26987   ac_status=$?
26988   grep -v '^ *+' conftest.er1 >conftest.err
26989   rm -f conftest.er1
26990   cat conftest.err >&5
26991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992   (exit $ac_status); } && {
26993          test -z "$ac_c_werror_flag" ||
26994          test ! -s conftest.err
26995        } && test -s conftest.$ac_objext; then
26996   ac_cv_member_struct_stat_st_atimensec=yes
26997 else
26998   echo "$as_me: failed program was:" >&5
26999 sed 's/^/| /' conftest.$ac_ext >&5
27000
27001         cat >conftest.$ac_ext <<_ACEOF
27002 /* confdefs.h.  */
27003 _ACEOF
27004 cat confdefs.h >>conftest.$ac_ext
27005 cat >>conftest.$ac_ext <<_ACEOF
27006 /* end confdefs.h.  */
27007 #include <sys/types.h>
27008            #include <sys/stat.h>
27009
27010 int
27011 main ()
27012 {
27013 static struct stat ac_aggr;
27014 if (sizeof ac_aggr.st_atimensec)
27015 return 0;
27016   ;
27017   return 0;
27018 }
27019 _ACEOF
27020 rm -f conftest.$ac_objext
27021 if { (ac_try="$ac_compile"
27022 case "(($ac_try" in
27023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024   *) ac_try_echo=$ac_try;;
27025 esac
27026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27027   (eval "$ac_compile") 2>conftest.er1
27028   ac_status=$?
27029   grep -v '^ *+' conftest.er1 >conftest.err
27030   rm -f conftest.er1
27031   cat conftest.err >&5
27032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033   (exit $ac_status); } && {
27034          test -z "$ac_c_werror_flag" ||
27035          test ! -s conftest.err
27036        } && test -s conftest.$ac_objext; then
27037   ac_cv_member_struct_stat_st_atimensec=yes
27038 else
27039   echo "$as_me: failed program was:" >&5
27040 sed 's/^/| /' conftest.$ac_ext >&5
27041
27042         ac_cv_member_struct_stat_st_atimensec=no
27043 fi
27044
27045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27046 fi
27047
27048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27049 fi
27050 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimensec" >&5
27051 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimensec" >&6; }
27052 if test $ac_cv_member_struct_stat_st_atimensec = yes; then
27053
27054 cat >>confdefs.h <<_ACEOF
27055 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
27056 _ACEOF
27057
27058
27059 else
27060   { echo "$as_me:$LINENO: checking for struct stat.st_atim.st__tim.tv_nsec" >&5
27061 echo $ECHO_N "checking for struct stat.st_atim.st__tim.tv_nsec... $ECHO_C" >&6; }
27062 if test "${ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec+set}" = set; then
27063   echo $ECHO_N "(cached) $ECHO_C" >&6
27064 else
27065   cat >conftest.$ac_ext <<_ACEOF
27066 /* confdefs.h.  */
27067 _ACEOF
27068 cat confdefs.h >>conftest.$ac_ext
27069 cat >>conftest.$ac_ext <<_ACEOF
27070 /* end confdefs.h.  */
27071 #include <sys/types.h>
27072               #include <sys/stat.h>
27073
27074 int
27075 main ()
27076 {
27077 static struct stat ac_aggr;
27078 if (ac_aggr.st_atim.st__tim.tv_nsec)
27079 return 0;
27080   ;
27081   return 0;
27082 }
27083 _ACEOF
27084 rm -f conftest.$ac_objext
27085 if { (ac_try="$ac_compile"
27086 case "(($ac_try" in
27087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27088   *) ac_try_echo=$ac_try;;
27089 esac
27090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27091   (eval "$ac_compile") 2>conftest.er1
27092   ac_status=$?
27093   grep -v '^ *+' conftest.er1 >conftest.err
27094   rm -f conftest.er1
27095   cat conftest.err >&5
27096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097   (exit $ac_status); } && {
27098          test -z "$ac_c_werror_flag" ||
27099          test ! -s conftest.err
27100        } && test -s conftest.$ac_objext; then
27101   ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
27102 else
27103   echo "$as_me: failed program was:" >&5
27104 sed 's/^/| /' conftest.$ac_ext >&5
27105
27106         cat >conftest.$ac_ext <<_ACEOF
27107 /* confdefs.h.  */
27108 _ACEOF
27109 cat confdefs.h >>conftest.$ac_ext
27110 cat >>conftest.$ac_ext <<_ACEOF
27111 /* end confdefs.h.  */
27112 #include <sys/types.h>
27113               #include <sys/stat.h>
27114
27115 int
27116 main ()
27117 {
27118 static struct stat ac_aggr;
27119 if (sizeof ac_aggr.st_atim.st__tim.tv_nsec)
27120 return 0;
27121   ;
27122   return 0;
27123 }
27124 _ACEOF
27125 rm -f conftest.$ac_objext
27126 if { (ac_try="$ac_compile"
27127 case "(($ac_try" in
27128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27129   *) ac_try_echo=$ac_try;;
27130 esac
27131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27132   (eval "$ac_compile") 2>conftest.er1
27133   ac_status=$?
27134   grep -v '^ *+' conftest.er1 >conftest.err
27135   rm -f conftest.er1
27136   cat conftest.err >&5
27137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138   (exit $ac_status); } && {
27139          test -z "$ac_c_werror_flag" ||
27140          test ! -s conftest.err
27141        } && test -s conftest.$ac_objext; then
27142   ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
27143 else
27144   echo "$as_me: failed program was:" >&5
27145 sed 's/^/| /' conftest.$ac_ext >&5
27146
27147         ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=no
27148 fi
27149
27150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27151 fi
27152
27153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27154 fi
27155 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&5
27156 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&6; }
27157 if test $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec = yes; then
27158
27159 cat >>confdefs.h <<_ACEOF
27160 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
27161 _ACEOF
27162
27163
27164 fi
27165
27166 fi
27167
27168 fi
27169
27170 fi
27171
27172
27173
27174
27175
27176
27177
27178
27179
27180
27181
27182   { echo "$as_me:$LINENO: checking for struct stat.st_birthtimespec.tv_nsec" >&5
27183 echo $ECHO_N "checking for struct stat.st_birthtimespec.tv_nsec... $ECHO_C" >&6; }
27184 if test "${ac_cv_member_struct_stat_st_birthtimespec_tv_nsec+set}" = set; then
27185   echo $ECHO_N "(cached) $ECHO_C" >&6
27186 else
27187   cat >conftest.$ac_ext <<_ACEOF
27188 /* confdefs.h.  */
27189 _ACEOF
27190 cat confdefs.h >>conftest.$ac_ext
27191 cat >>conftest.$ac_ext <<_ACEOF
27192 /* end confdefs.h.  */
27193 #include <sys/types.h>
27194      #include <sys/stat.h>
27195
27196 int
27197 main ()
27198 {
27199 static struct stat ac_aggr;
27200 if (ac_aggr.st_birthtimespec.tv_nsec)
27201 return 0;
27202   ;
27203   return 0;
27204 }
27205 _ACEOF
27206 rm -f conftest.$ac_objext
27207 if { (ac_try="$ac_compile"
27208 case "(($ac_try" in
27209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27210   *) ac_try_echo=$ac_try;;
27211 esac
27212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27213   (eval "$ac_compile") 2>conftest.er1
27214   ac_status=$?
27215   grep -v '^ *+' conftest.er1 >conftest.err
27216   rm -f conftest.er1
27217   cat conftest.err >&5
27218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219   (exit $ac_status); } && {
27220          test -z "$ac_c_werror_flag" ||
27221          test ! -s conftest.err
27222        } && test -s conftest.$ac_objext; then
27223   ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
27224 else
27225   echo "$as_me: failed program was:" >&5
27226 sed 's/^/| /' conftest.$ac_ext >&5
27227
27228         cat >conftest.$ac_ext <<_ACEOF
27229 /* confdefs.h.  */
27230 _ACEOF
27231 cat confdefs.h >>conftest.$ac_ext
27232 cat >>conftest.$ac_ext <<_ACEOF
27233 /* end confdefs.h.  */
27234 #include <sys/types.h>
27235      #include <sys/stat.h>
27236
27237 int
27238 main ()
27239 {
27240 static struct stat ac_aggr;
27241 if (sizeof ac_aggr.st_birthtimespec.tv_nsec)
27242 return 0;
27243   ;
27244   return 0;
27245 }
27246 _ACEOF
27247 rm -f conftest.$ac_objext
27248 if { (ac_try="$ac_compile"
27249 case "(($ac_try" in
27250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27251   *) ac_try_echo=$ac_try;;
27252 esac
27253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27254   (eval "$ac_compile") 2>conftest.er1
27255   ac_status=$?
27256   grep -v '^ *+' conftest.er1 >conftest.err
27257   rm -f conftest.er1
27258   cat conftest.err >&5
27259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260   (exit $ac_status); } && {
27261          test -z "$ac_c_werror_flag" ||
27262          test ! -s conftest.err
27263        } && test -s conftest.$ac_objext; then
27264   ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
27265 else
27266   echo "$as_me: failed program was:" >&5
27267 sed 's/^/| /' conftest.$ac_ext >&5
27268
27269         ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=no
27270 fi
27271
27272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27273 fi
27274
27275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27276 fi
27277 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&5
27278 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&6; }
27279 if test $ac_cv_member_struct_stat_st_birthtimespec_tv_nsec = yes; then
27280
27281 cat >>confdefs.h <<_ACEOF
27282 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
27283 _ACEOF
27284
27285
27286 else
27287   { echo "$as_me:$LINENO: checking for struct stat.st_birthtimensec" >&5
27288 echo $ECHO_N "checking for struct stat.st_birthtimensec... $ECHO_C" >&6; }
27289 if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then
27290   echo $ECHO_N "(cached) $ECHO_C" >&6
27291 else
27292   cat >conftest.$ac_ext <<_ACEOF
27293 /* confdefs.h.  */
27294 _ACEOF
27295 cat confdefs.h >>conftest.$ac_ext
27296 cat >>conftest.$ac_ext <<_ACEOF
27297 /* end confdefs.h.  */
27298 #include <sys/types.h>
27299         #include <sys/stat.h>
27300
27301 int
27302 main ()
27303 {
27304 static struct stat ac_aggr;
27305 if (ac_aggr.st_birthtimensec)
27306 return 0;
27307   ;
27308   return 0;
27309 }
27310 _ACEOF
27311 rm -f conftest.$ac_objext
27312 if { (ac_try="$ac_compile"
27313 case "(($ac_try" in
27314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27315   *) ac_try_echo=$ac_try;;
27316 esac
27317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27318   (eval "$ac_compile") 2>conftest.er1
27319   ac_status=$?
27320   grep -v '^ *+' conftest.er1 >conftest.err
27321   rm -f conftest.er1
27322   cat conftest.err >&5
27323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324   (exit $ac_status); } && {
27325          test -z "$ac_c_werror_flag" ||
27326          test ! -s conftest.err
27327        } && test -s conftest.$ac_objext; then
27328   ac_cv_member_struct_stat_st_birthtimensec=yes
27329 else
27330   echo "$as_me: failed program was:" >&5
27331 sed 's/^/| /' conftest.$ac_ext >&5
27332
27333         cat >conftest.$ac_ext <<_ACEOF
27334 /* confdefs.h.  */
27335 _ACEOF
27336 cat confdefs.h >>conftest.$ac_ext
27337 cat >>conftest.$ac_ext <<_ACEOF
27338 /* end confdefs.h.  */
27339 #include <sys/types.h>
27340         #include <sys/stat.h>
27341
27342 int
27343 main ()
27344 {
27345 static struct stat ac_aggr;
27346 if (sizeof ac_aggr.st_birthtimensec)
27347 return 0;
27348   ;
27349   return 0;
27350 }
27351 _ACEOF
27352 rm -f conftest.$ac_objext
27353 if { (ac_try="$ac_compile"
27354 case "(($ac_try" in
27355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27356   *) ac_try_echo=$ac_try;;
27357 esac
27358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27359   (eval "$ac_compile") 2>conftest.er1
27360   ac_status=$?
27361   grep -v '^ *+' conftest.er1 >conftest.err
27362   rm -f conftest.er1
27363   cat conftest.err >&5
27364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365   (exit $ac_status); } && {
27366          test -z "$ac_c_werror_flag" ||
27367          test ! -s conftest.err
27368        } && test -s conftest.$ac_objext; then
27369   ac_cv_member_struct_stat_st_birthtimensec=yes
27370 else
27371   echo "$as_me: failed program was:" >&5
27372 sed 's/^/| /' conftest.$ac_ext >&5
27373
27374         ac_cv_member_struct_stat_st_birthtimensec=no
27375 fi
27376
27377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27378 fi
27379
27380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27381 fi
27382 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5
27383 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimensec" >&6; }
27384 if test $ac_cv_member_struct_stat_st_birthtimensec = yes; then
27385
27386 cat >>confdefs.h <<_ACEOF
27387 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
27388 _ACEOF
27389
27390
27391 else
27392   { echo "$as_me:$LINENO: checking for struct stat.st_birthtim.tv_nsec" >&5
27393 echo $ECHO_N "checking for struct stat.st_birthtim.tv_nsec... $ECHO_C" >&6; }
27394 if test "${ac_cv_member_struct_stat_st_birthtim_tv_nsec+set}" = set; then
27395   echo $ECHO_N "(cached) $ECHO_C" >&6
27396 else
27397   cat >conftest.$ac_ext <<_ACEOF
27398 /* confdefs.h.  */
27399 _ACEOF
27400 cat confdefs.h >>conftest.$ac_ext
27401 cat >>conftest.$ac_ext <<_ACEOF
27402 /* end confdefs.h.  */
27403 #include <sys/types.h>
27404           #include <sys/stat.h>
27405
27406 int
27407 main ()
27408 {
27409 static struct stat ac_aggr;
27410 if (ac_aggr.st_birthtim.tv_nsec)
27411 return 0;
27412   ;
27413   return 0;
27414 }
27415 _ACEOF
27416 rm -f conftest.$ac_objext
27417 if { (ac_try="$ac_compile"
27418 case "(($ac_try" in
27419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27420   *) ac_try_echo=$ac_try;;
27421 esac
27422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27423   (eval "$ac_compile") 2>conftest.er1
27424   ac_status=$?
27425   grep -v '^ *+' conftest.er1 >conftest.err
27426   rm -f conftest.er1
27427   cat conftest.err >&5
27428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27429   (exit $ac_status); } && {
27430          test -z "$ac_c_werror_flag" ||
27431          test ! -s conftest.err
27432        } && test -s conftest.$ac_objext; then
27433   ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
27434 else
27435   echo "$as_me: failed program was:" >&5
27436 sed 's/^/| /' conftest.$ac_ext >&5
27437
27438         cat >conftest.$ac_ext <<_ACEOF
27439 /* confdefs.h.  */
27440 _ACEOF
27441 cat confdefs.h >>conftest.$ac_ext
27442 cat >>conftest.$ac_ext <<_ACEOF
27443 /* end confdefs.h.  */
27444 #include <sys/types.h>
27445           #include <sys/stat.h>
27446
27447 int
27448 main ()
27449 {
27450 static struct stat ac_aggr;
27451 if (sizeof ac_aggr.st_birthtim.tv_nsec)
27452 return 0;
27453   ;
27454   return 0;
27455 }
27456 _ACEOF
27457 rm -f conftest.$ac_objext
27458 if { (ac_try="$ac_compile"
27459 case "(($ac_try" in
27460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27461   *) ac_try_echo=$ac_try;;
27462 esac
27463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27464   (eval "$ac_compile") 2>conftest.er1
27465   ac_status=$?
27466   grep -v '^ *+' conftest.er1 >conftest.err
27467   rm -f conftest.er1
27468   cat conftest.err >&5
27469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470   (exit $ac_status); } && {
27471          test -z "$ac_c_werror_flag" ||
27472          test ! -s conftest.err
27473        } && test -s conftest.$ac_objext; then
27474   ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
27475 else
27476   echo "$as_me: failed program was:" >&5
27477 sed 's/^/| /' conftest.$ac_ext >&5
27478
27479         ac_cv_member_struct_stat_st_birthtim_tv_nsec=no
27480 fi
27481
27482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27483 fi
27484
27485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27486 fi
27487 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&5
27488 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&6; }
27489 if test $ac_cv_member_struct_stat_st_birthtim_tv_nsec = yes; then
27490
27491 cat >>confdefs.h <<_ACEOF
27492 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
27493 _ACEOF
27494
27495
27496 fi
27497
27498 fi
27499
27500 fi
27501
27502
27503
27504   STDARG_H='';
27505   NEXT_STDARG_H='<stdarg.h>';
27506   { echo "$as_me:$LINENO: checking for va_copy" >&5
27507 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27508   if test "${gl_cv_func_va_copy+set}" = set; then
27509   echo $ECHO_N "(cached) $ECHO_C" >&6
27510 else
27511
27512     cat >conftest.$ac_ext <<_ACEOF
27513 /* confdefs.h.  */
27514 _ACEOF
27515 cat confdefs.h >>conftest.$ac_ext
27516 cat >>conftest.$ac_ext <<_ACEOF
27517 /* end confdefs.h.  */
27518 #include <stdarg.h>
27519 int
27520 main ()
27521 {
27522
27523 #ifndef va_copy
27524 void (*func) (va_list, va_list) = va_copy;
27525 #endif
27526
27527   ;
27528   return 0;
27529 }
27530 _ACEOF
27531 rm -f conftest.$ac_objext
27532 if { (ac_try="$ac_compile"
27533 case "(($ac_try" in
27534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27535   *) ac_try_echo=$ac_try;;
27536 esac
27537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27538   (eval "$ac_compile") 2>conftest.er1
27539   ac_status=$?
27540   grep -v '^ *+' conftest.er1 >conftest.err
27541   rm -f conftest.er1
27542   cat conftest.err >&5
27543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544   (exit $ac_status); } && {
27545          test -z "$ac_c_werror_flag" ||
27546          test ! -s conftest.err
27547        } && test -s conftest.$ac_objext; then
27548   gl_cv_func_va_copy=yes
27549 else
27550   echo "$as_me: failed program was:" >&5
27551 sed 's/^/| /' conftest.$ac_ext >&5
27552
27553         gl_cv_func_va_copy=no
27554 fi
27555
27556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27557 fi
27558
27559   { echo "$as_me:$LINENO: result: $gl_cv_func_va_copy" >&5
27560 echo "${ECHO_T}$gl_cv_func_va_copy" >&6; }
27561   if test $gl_cv_func_va_copy = no; then
27562                                     cat >conftest.$ac_ext <<_ACEOF
27563 /* confdefs.h.  */
27564 _ACEOF
27565 cat confdefs.h >>conftest.$ac_ext
27566 cat >>conftest.$ac_ext <<_ACEOF
27567 /* end confdefs.h.  */
27568 #if defined _AIX && !defined __GNUC__
27569         AIX vaccine
27570        #endif
27571
27572 _ACEOF
27573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27574   $EGREP "vaccine" >/dev/null 2>&1; then
27575   gl_aixcc=yes
27576 else
27577   gl_aixcc=no
27578 fi
27579 rm -f conftest*
27580
27581     if test $gl_aixcc = yes; then
27582             STDARG_H=stdarg.h
27583
27584
27585
27586
27587
27588
27589
27590
27591
27592
27593      if test $gl_cv_have_include_next = yes; then
27594        gl_cv_next_stdarg_h='<'stdarg.h'>'
27595      else
27596        { echo "$as_me:$LINENO: checking absolute name of <stdarg.h>" >&5
27597 echo $ECHO_N "checking absolute name of <stdarg.h>... $ECHO_C" >&6; }
27598 if test "${gl_cv_next_stdarg_h+set}" = set; then
27599   echo $ECHO_N "(cached) $ECHO_C" >&6
27600 else
27601
27602           if test $ac_cv_header_stdarg_h = yes; then
27603             cat >conftest.$ac_ext <<_ACEOF
27604 /* confdefs.h.  */
27605 _ACEOF
27606 cat confdefs.h >>conftest.$ac_ext
27607 cat >>conftest.$ac_ext <<_ACEOF
27608 /* end confdefs.h.  */
27609 #include <stdarg.h>
27610
27611 _ACEOF
27612                                     gl_cv_next_stdarg_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27613                sed -n '\#/stdarg.h#{
27614                  s#.*"\(.*/stdarg.h\)".*#\1#
27615                  s#^/[^/]#//&#
27616                  p
27617                  q
27618                }'`'"'
27619           else
27620             gl_cv_next_stdarg_h='<'stdarg.h'>'
27621           fi
27622
27623 fi
27624 { echo "$as_me:$LINENO: result: $gl_cv_next_stdarg_h" >&5
27625 echo "${ECHO_T}$gl_cv_next_stdarg_h" >&6; }
27626      fi
27627      NEXT_STDARG_H=$gl_cv_next_stdarg_h
27628
27629
27630
27631             if test "$gl_cv_next_stdarg_h" = '""'; then
27632         gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
27633         NEXT_STDARG_H="$gl_cv_next_stdarg_h"
27634       fi
27635     else
27636                   if test "${gl_cv_func___va_copy+set}" = set; then
27637   echo $ECHO_N "(cached) $ECHO_C" >&6
27638 else
27639
27640         cat >conftest.$ac_ext <<_ACEOF
27641 /* confdefs.h.  */
27642 _ACEOF
27643 cat confdefs.h >>conftest.$ac_ext
27644 cat >>conftest.$ac_ext <<_ACEOF
27645 /* end confdefs.h.  */
27646 #include <stdarg.h>
27647 int
27648 main ()
27649 {
27650
27651 #ifndef __va_copy
27652 error, bail out
27653 #endif
27654
27655   ;
27656   return 0;
27657 }
27658 _ACEOF
27659 rm -f conftest.$ac_objext
27660 if { (ac_try="$ac_compile"
27661 case "(($ac_try" in
27662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27663   *) ac_try_echo=$ac_try;;
27664 esac
27665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27666   (eval "$ac_compile") 2>conftest.er1
27667   ac_status=$?
27668   grep -v '^ *+' conftest.er1 >conftest.err
27669   rm -f conftest.er1
27670   cat conftest.err >&5
27671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672   (exit $ac_status); } && {
27673          test -z "$ac_c_werror_flag" ||
27674          test ! -s conftest.err
27675        } && test -s conftest.$ac_objext; then
27676   gl_cv_func___va_copy=yes
27677 else
27678   echo "$as_me: failed program was:" >&5
27679 sed 's/^/| /' conftest.$ac_ext >&5
27680
27681         gl_cv_func___va_copy=no
27682 fi
27683
27684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27685 fi
27686
27687       if test $gl_cv_func___va_copy = yes; then
27688
27689 cat >>confdefs.h <<\_ACEOF
27690 #define va_copy __va_copy
27691 _ACEOF
27692
27693       else
27694
27695
27696
27697 cat >>confdefs.h <<\_ACEOF
27698 #define va_copy gl_va_copy
27699 _ACEOF
27700
27701       fi
27702     fi
27703   fi
27704
27705
27706
27707
27708   # Define two additional variables used in the Makefile substitution.
27709
27710   if test "$ac_cv_header_stdbool_h" = yes; then
27711     STDBOOL_H=''
27712   else
27713     STDBOOL_H='stdbool.h'
27714   fi
27715
27716
27717   if test "$ac_cv_type__Bool" = yes; then
27718     HAVE__BOOL=1
27719   else
27720     HAVE__BOOL=0
27721   fi
27722
27723
27724
27725
27726
27727   if test $ac_cv_type_long_long_int = yes; then
27728     HAVE_LONG_LONG_INT=1
27729   else
27730     HAVE_LONG_LONG_INT=0
27731   fi
27732
27733
27734   if test $ac_cv_type_unsigned_long_long_int = yes; then
27735     HAVE_UNSIGNED_LONG_LONG_INT=1
27736   else
27737     HAVE_UNSIGNED_LONG_LONG_INT=0
27738   fi
27739
27740
27741       if test $ac_cv_header_inttypes_h = yes; then
27742     HAVE_INTTYPES_H=1
27743   else
27744     HAVE_INTTYPES_H=0
27745   fi
27746
27747
27748       if test $ac_cv_header_sys_types_h = yes; then
27749     HAVE_SYS_TYPES_H=1
27750   else
27751     HAVE_SYS_TYPES_H=0
27752   fi
27753
27754
27755
27756
27757
27758
27759
27760
27761
27762
27763
27764
27765      if test $gl_cv_have_include_next = yes; then
27766        gl_cv_next_stdint_h='<'stdint.h'>'
27767      else
27768        { echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
27769 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6; }
27770 if test "${gl_cv_next_stdint_h+set}" = set; then
27771   echo $ECHO_N "(cached) $ECHO_C" >&6
27772 else
27773
27774           if test $ac_cv_header_stdint_h = yes; then
27775             cat >conftest.$ac_ext <<_ACEOF
27776 /* confdefs.h.  */
27777 _ACEOF
27778 cat confdefs.h >>conftest.$ac_ext
27779 cat >>conftest.$ac_ext <<_ACEOF
27780 /* end confdefs.h.  */
27781 #include <stdint.h>
27782
27783 _ACEOF
27784                                     gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27785                sed -n '\#/stdint.h#{
27786                  s#.*"\(.*/stdint.h\)".*#\1#
27787                  s#^/[^/]#//&#
27788                  p
27789                  q
27790                }'`'"'
27791           else
27792             gl_cv_next_stdint_h='<'stdint.h'>'
27793           fi
27794
27795 fi
27796 { echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
27797 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6; }
27798      fi
27799      NEXT_STDINT_H=$gl_cv_next_stdint_h
27800
27801
27802
27803   if test $ac_cv_header_stdint_h = yes; then
27804     HAVE_STDINT_H=1
27805   else
27806     HAVE_STDINT_H=0
27807   fi
27808
27809
27810     if test $ac_cv_header_stdint_h = yes; then
27811     { echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
27812 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6; }
27813 if test "${gl_cv_header_working_stdint_h+set}" = set; then
27814   echo $ECHO_N "(cached) $ECHO_C" >&6
27815 else
27816   gl_cv_header_working_stdint_h=no
27817        cat >conftest.$ac_ext <<_ACEOF
27818
27819          /* confdefs.h.  */
27820 _ACEOF
27821 cat confdefs.h >>conftest.$ac_ext
27822 cat >>conftest.$ac_ext <<_ACEOF
27823 /* end confdefs.h.  */
27824
27825 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
27826 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
27827 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
27828 #include <stdint.h>
27829 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
27830 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
27831 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
27832 #endif
27833
27834
27835   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27836      included before <wchar.h>.  */
27837   #include <stddef.h>
27838   #include <signal.h>
27839   #if HAVE_WCHAR_H
27840   # include <stdio.h>
27841   # include <time.h>
27842   # include <wchar.h>
27843   #endif
27844
27845
27846 #ifdef INT8_MAX
27847 int8_t a1 = INT8_MAX;
27848 int8_t a1min = INT8_MIN;
27849 #endif
27850 #ifdef INT16_MAX
27851 int16_t a2 = INT16_MAX;
27852 int16_t a2min = INT16_MIN;
27853 #endif
27854 #ifdef INT32_MAX
27855 int32_t a3 = INT32_MAX;
27856 int32_t a3min = INT32_MIN;
27857 #endif
27858 #ifdef INT64_MAX
27859 int64_t a4 = INT64_MAX;
27860 int64_t a4min = INT64_MIN;
27861 #endif
27862 #ifdef UINT8_MAX
27863 uint8_t b1 = UINT8_MAX;
27864 #else
27865 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
27866 #endif
27867 #ifdef UINT16_MAX
27868 uint16_t b2 = UINT16_MAX;
27869 #endif
27870 #ifdef UINT32_MAX
27871 uint32_t b3 = UINT32_MAX;
27872 #endif
27873 #ifdef UINT64_MAX
27874 uint64_t b4 = UINT64_MAX;
27875 #endif
27876 int_least8_t c1 = INT8_C (0x7f);
27877 int_least8_t c1max = INT_LEAST8_MAX;
27878 int_least8_t c1min = INT_LEAST8_MIN;
27879 int_least16_t c2 = INT16_C (0x7fff);
27880 int_least16_t c2max = INT_LEAST16_MAX;
27881 int_least16_t c2min = INT_LEAST16_MIN;
27882 int_least32_t c3 = INT32_C (0x7fffffff);
27883 int_least32_t c3max = INT_LEAST32_MAX;
27884 int_least32_t c3min = INT_LEAST32_MIN;
27885 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
27886 int_least64_t c4max = INT_LEAST64_MAX;
27887 int_least64_t c4min = INT_LEAST64_MIN;
27888 uint_least8_t d1 = UINT8_C (0xff);
27889 uint_least8_t d1max = UINT_LEAST8_MAX;
27890 uint_least16_t d2 = UINT16_C (0xffff);
27891 uint_least16_t d2max = UINT_LEAST16_MAX;
27892 uint_least32_t d3 = UINT32_C (0xffffffff);
27893 uint_least32_t d3max = UINT_LEAST32_MAX;
27894 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
27895 uint_least64_t d4max = UINT_LEAST64_MAX;
27896 int_fast8_t e1 = INT_FAST8_MAX;
27897 int_fast8_t e1min = INT_FAST8_MIN;
27898 int_fast16_t e2 = INT_FAST16_MAX;
27899 int_fast16_t e2min = INT_FAST16_MIN;
27900 int_fast32_t e3 = INT_FAST32_MAX;
27901 int_fast32_t e3min = INT_FAST32_MIN;
27902 int_fast64_t e4 = INT_FAST64_MAX;
27903 int_fast64_t e4min = INT_FAST64_MIN;
27904 uint_fast8_t f1 = UINT_FAST8_MAX;
27905 uint_fast16_t f2 = UINT_FAST16_MAX;
27906 uint_fast32_t f3 = UINT_FAST32_MAX;
27907 uint_fast64_t f4 = UINT_FAST64_MAX;
27908 #ifdef INTPTR_MAX
27909 intptr_t g = INTPTR_MAX;
27910 intptr_t gmin = INTPTR_MIN;
27911 #endif
27912 #ifdef UINTPTR_MAX
27913 uintptr_t h = UINTPTR_MAX;
27914 #endif
27915 intmax_t i = INTMAX_MAX;
27916 uintmax_t j = UINTMAX_MAX;
27917
27918 #include <limits.h> /* for CHAR_BIT */
27919 #define TYPE_MINIMUM(t) \
27920   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
27921 #define TYPE_MAXIMUM(t) \
27922   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
27923 struct s {
27924   int check_PTRDIFF:
27925       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
27926       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
27927       ? 1 : -1;
27928   /* Detect bug in FreeBSD 6.0 / ia64.  */
27929   int check_SIG_ATOMIC:
27930       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
27931       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
27932       ? 1 : -1;
27933   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
27934   int check_WCHAR:
27935       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
27936       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
27937       ? 1 : -1;
27938   /* Detect bug in mingw.  */
27939   int check_WINT:
27940       WINT_MIN == TYPE_MINIMUM (wint_t)
27941       && WINT_MAX == TYPE_MAXIMUM (wint_t)
27942       ? 1 : -1;
27943
27944   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
27945   int check_UINT8_C:
27946         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
27947   int check_UINT16_C:
27948         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
27949
27950   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
27951 #ifdef UINT8_MAX
27952   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
27953 #endif
27954 #ifdef UINT16_MAX
27955   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
27956 #endif
27957 #ifdef UINT32_MAX
27958   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
27959 #endif
27960 #ifdef UINT64_MAX
27961   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
27962 #endif
27963   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
27964   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
27965   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
27966   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
27967   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
27968   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
27969   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
27970   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
27971   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
27972   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
27973   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
27974 };
27975
27976 int
27977 main ()
27978 {
27979
27980   ;
27981   return 0;
27982 }
27983 _ACEOF
27984 rm -f conftest.$ac_objext
27985 if { (ac_try="$ac_compile"
27986 case "(($ac_try" in
27987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27988   *) ac_try_echo=$ac_try;;
27989 esac
27990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27991   (eval "$ac_compile") 2>conftest.er1
27992   ac_status=$?
27993   grep -v '^ *+' conftest.er1 >conftest.err
27994   rm -f conftest.er1
27995   cat conftest.err >&5
27996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997   (exit $ac_status); } && {
27998          test -z "$ac_c_werror_flag" ||
27999          test ! -s conftest.err
28000        } && test -s conftest.$ac_objext; then
28001   gl_cv_header_working_stdint_h=yes
28002 else
28003   echo "$as_me: failed program was:" >&5
28004 sed 's/^/| /' conftest.$ac_ext >&5
28005
28006
28007 fi
28008
28009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28010 fi
28011 { echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
28012 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6; }
28013   fi
28014   if test "$gl_cv_header_working_stdint_h" = yes; then
28015     STDINT_H=
28016   else
28017
28018
28019 for ac_header in sys/inttypes.h sys/bitypes.h
28020 do
28021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28023   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28026   echo $ECHO_N "(cached) $ECHO_C" >&6
28027 fi
28028 ac_res=`eval echo '${'$as_ac_Header'}'`
28029                { echo "$as_me:$LINENO: result: $ac_res" >&5
28030 echo "${ECHO_T}$ac_res" >&6; }
28031 else
28032   # Is the header compilable?
28033 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28035 cat >conftest.$ac_ext <<_ACEOF
28036 /* confdefs.h.  */
28037 _ACEOF
28038 cat confdefs.h >>conftest.$ac_ext
28039 cat >>conftest.$ac_ext <<_ACEOF
28040 /* end confdefs.h.  */
28041 $ac_includes_default
28042 #include <$ac_header>
28043 _ACEOF
28044 rm -f conftest.$ac_objext
28045 if { (ac_try="$ac_compile"
28046 case "(($ac_try" in
28047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28048   *) ac_try_echo=$ac_try;;
28049 esac
28050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28051   (eval "$ac_compile") 2>conftest.er1
28052   ac_status=$?
28053   grep -v '^ *+' conftest.er1 >conftest.err
28054   rm -f conftest.er1
28055   cat conftest.err >&5
28056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057   (exit $ac_status); } && {
28058          test -z "$ac_c_werror_flag" ||
28059          test ! -s conftest.err
28060        } && test -s conftest.$ac_objext; then
28061   ac_header_compiler=yes
28062 else
28063   echo "$as_me: failed program was:" >&5
28064 sed 's/^/| /' conftest.$ac_ext >&5
28065
28066         ac_header_compiler=no
28067 fi
28068
28069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28070 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28071 echo "${ECHO_T}$ac_header_compiler" >&6; }
28072
28073 # Is the header present?
28074 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28076 cat >conftest.$ac_ext <<_ACEOF
28077 /* confdefs.h.  */
28078 _ACEOF
28079 cat confdefs.h >>conftest.$ac_ext
28080 cat >>conftest.$ac_ext <<_ACEOF
28081 /* end confdefs.h.  */
28082 #include <$ac_header>
28083 _ACEOF
28084 if { (ac_try="$ac_cpp conftest.$ac_ext"
28085 case "(($ac_try" in
28086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28087   *) ac_try_echo=$ac_try;;
28088 esac
28089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28090   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28091   ac_status=$?
28092   grep -v '^ *+' conftest.er1 >conftest.err
28093   rm -f conftest.er1
28094   cat conftest.err >&5
28095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28096   (exit $ac_status); } >/dev/null && {
28097          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28098          test ! -s conftest.err
28099        }; then
28100   ac_header_preproc=yes
28101 else
28102   echo "$as_me: failed program was:" >&5
28103 sed 's/^/| /' conftest.$ac_ext >&5
28104
28105   ac_header_preproc=no
28106 fi
28107
28108 rm -f conftest.err conftest.$ac_ext
28109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28110 echo "${ECHO_T}$ac_header_preproc" >&6; }
28111
28112 # So?  What about this header?
28113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28114   yes:no: )
28115     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28117     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28118 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28119     ac_header_preproc=yes
28120     ;;
28121   no:yes:* )
28122     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28124     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28125 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28126     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28127 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28128     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28129 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28130     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28132     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28133 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28134     ( cat <<\_ASBOX
28135 ## ------------------------------ ##
28136 ## Report this to bug-tar@gnu.org ##
28137 ## ------------------------------ ##
28138 _ASBOX
28139      ) | sed "s/^/$as_me: WARNING:     /" >&2
28140     ;;
28141 esac
28142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28145   echo $ECHO_N "(cached) $ECHO_C" >&6
28146 else
28147   eval "$as_ac_Header=\$ac_header_preproc"
28148 fi
28149 ac_res=`eval echo '${'$as_ac_Header'}'`
28150                { echo "$as_me:$LINENO: result: $ac_res" >&5
28151 echo "${ECHO_T}$ac_res" >&6; }
28152
28153 fi
28154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28155   cat >>confdefs.h <<_ACEOF
28156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28157 _ACEOF
28158
28159 fi
28160
28161 done
28162
28163     if test $ac_cv_header_sys_inttypes_h = yes; then
28164       HAVE_SYS_INTTYPES_H=1
28165     else
28166       HAVE_SYS_INTTYPES_H=0
28167     fi
28168
28169     if test $ac_cv_header_sys_bitypes_h = yes; then
28170       HAVE_SYS_BITYPES_H=1
28171     else
28172       HAVE_SYS_BITYPES_H=0
28173     fi
28174
28175
28176
28177
28178
28179
28180
28181
28182
28183
28184
28185
28186
28187
28188
28189
28190
28191   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
28192     { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
28193 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
28194 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
28195   echo $ECHO_N "(cached) $ECHO_C" >&6
28196 else
28197   if test "$cross_compiling" = yes; then
28198   # Depending upon the size, compute the lo and hi bounds.
28199 cat >conftest.$ac_ext <<_ACEOF
28200 /* confdefs.h.  */
28201 _ACEOF
28202 cat confdefs.h >>conftest.$ac_ext
28203 cat >>conftest.$ac_ext <<_ACEOF
28204 /* end confdefs.h.  */
28205
28206   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28207      included before <wchar.h>.  */
28208   #include <stddef.h>
28209   #include <signal.h>
28210   #if HAVE_WCHAR_H
28211   # include <stdio.h>
28212   # include <time.h>
28213   # include <wchar.h>
28214   #endif
28215
28216 #include <limits.h>
28217 int
28218 main ()
28219 {
28220 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
28221 test_array [0] = 0
28222
28223   ;
28224   return 0;
28225 }
28226 _ACEOF
28227 rm -f conftest.$ac_objext
28228 if { (ac_try="$ac_compile"
28229 case "(($ac_try" in
28230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28231   *) ac_try_echo=$ac_try;;
28232 esac
28233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28234   (eval "$ac_compile") 2>conftest.er1
28235   ac_status=$?
28236   grep -v '^ *+' conftest.er1 >conftest.err
28237   rm -f conftest.er1
28238   cat conftest.err >&5
28239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240   (exit $ac_status); } && {
28241          test -z "$ac_c_werror_flag" ||
28242          test ! -s conftest.err
28243        } && test -s conftest.$ac_objext; then
28244   ac_lo=0 ac_mid=0
28245   while :; do
28246     cat >conftest.$ac_ext <<_ACEOF
28247 /* confdefs.h.  */
28248 _ACEOF
28249 cat confdefs.h >>conftest.$ac_ext
28250 cat >>conftest.$ac_ext <<_ACEOF
28251 /* end confdefs.h.  */
28252
28253   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28254      included before <wchar.h>.  */
28255   #include <stddef.h>
28256   #include <signal.h>
28257   #if HAVE_WCHAR_H
28258   # include <stdio.h>
28259   # include <time.h>
28260   # include <wchar.h>
28261   #endif
28262
28263 #include <limits.h>
28264 int
28265 main ()
28266 {
28267 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
28268 test_array [0] = 0
28269
28270   ;
28271   return 0;
28272 }
28273 _ACEOF
28274 rm -f conftest.$ac_objext
28275 if { (ac_try="$ac_compile"
28276 case "(($ac_try" in
28277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28278   *) ac_try_echo=$ac_try;;
28279 esac
28280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28281   (eval "$ac_compile") 2>conftest.er1
28282   ac_status=$?
28283   grep -v '^ *+' conftest.er1 >conftest.err
28284   rm -f conftest.er1
28285   cat conftest.err >&5
28286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287   (exit $ac_status); } && {
28288          test -z "$ac_c_werror_flag" ||
28289          test ! -s conftest.err
28290        } && test -s conftest.$ac_objext; then
28291   ac_hi=$ac_mid; break
28292 else
28293   echo "$as_me: failed program was:" >&5
28294 sed 's/^/| /' conftest.$ac_ext >&5
28295
28296         ac_lo=`expr $ac_mid + 1`
28297                         if test $ac_lo -le $ac_mid; then
28298                           ac_lo= ac_hi=
28299                           break
28300                         fi
28301                         ac_mid=`expr 2 '*' $ac_mid + 1`
28302 fi
28303
28304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28305   done
28306 else
28307   echo "$as_me: failed program was:" >&5
28308 sed 's/^/| /' conftest.$ac_ext >&5
28309
28310         cat >conftest.$ac_ext <<_ACEOF
28311 /* confdefs.h.  */
28312 _ACEOF
28313 cat confdefs.h >>conftest.$ac_ext
28314 cat >>conftest.$ac_ext <<_ACEOF
28315 /* end confdefs.h.  */
28316
28317   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28318      included before <wchar.h>.  */
28319   #include <stddef.h>
28320   #include <signal.h>
28321   #if HAVE_WCHAR_H
28322   # include <stdio.h>
28323   # include <time.h>
28324   # include <wchar.h>
28325   #endif
28326
28327 #include <limits.h>
28328 int
28329 main ()
28330 {
28331 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
28332 test_array [0] = 0
28333
28334   ;
28335   return 0;
28336 }
28337 _ACEOF
28338 rm -f conftest.$ac_objext
28339 if { (ac_try="$ac_compile"
28340 case "(($ac_try" in
28341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28342   *) ac_try_echo=$ac_try;;
28343 esac
28344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28345   (eval "$ac_compile") 2>conftest.er1
28346   ac_status=$?
28347   grep -v '^ *+' conftest.er1 >conftest.err
28348   rm -f conftest.er1
28349   cat conftest.err >&5
28350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351   (exit $ac_status); } && {
28352          test -z "$ac_c_werror_flag" ||
28353          test ! -s conftest.err
28354        } && test -s conftest.$ac_objext; then
28355   ac_hi=-1 ac_mid=-1
28356   while :; do
28357     cat >conftest.$ac_ext <<_ACEOF
28358 /* confdefs.h.  */
28359 _ACEOF
28360 cat confdefs.h >>conftest.$ac_ext
28361 cat >>conftest.$ac_ext <<_ACEOF
28362 /* end confdefs.h.  */
28363
28364   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28365      included before <wchar.h>.  */
28366   #include <stddef.h>
28367   #include <signal.h>
28368   #if HAVE_WCHAR_H
28369   # include <stdio.h>
28370   # include <time.h>
28371   # include <wchar.h>
28372   #endif
28373
28374 #include <limits.h>
28375 int
28376 main ()
28377 {
28378 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
28379 test_array [0] = 0
28380
28381   ;
28382   return 0;
28383 }
28384 _ACEOF
28385 rm -f conftest.$ac_objext
28386 if { (ac_try="$ac_compile"
28387 case "(($ac_try" in
28388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28389   *) ac_try_echo=$ac_try;;
28390 esac
28391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28392   (eval "$ac_compile") 2>conftest.er1
28393   ac_status=$?
28394   grep -v '^ *+' conftest.er1 >conftest.err
28395   rm -f conftest.er1
28396   cat conftest.err >&5
28397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398   (exit $ac_status); } && {
28399          test -z "$ac_c_werror_flag" ||
28400          test ! -s conftest.err
28401        } && test -s conftest.$ac_objext; then
28402   ac_lo=$ac_mid; break
28403 else
28404   echo "$as_me: failed program was:" >&5
28405 sed 's/^/| /' conftest.$ac_ext >&5
28406
28407         ac_hi=`expr '(' $ac_mid ')' - 1`
28408                         if test $ac_mid -le $ac_hi; then
28409                           ac_lo= ac_hi=
28410                           break
28411                         fi
28412                         ac_mid=`expr 2 '*' $ac_mid`
28413 fi
28414
28415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28416   done
28417 else
28418   echo "$as_me: failed program was:" >&5
28419 sed 's/^/| /' conftest.$ac_ext >&5
28420
28421         ac_lo= ac_hi=
28422 fi
28423
28424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28425 fi
28426
28427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28428 # Binary search between lo and hi bounds.
28429 while test "x$ac_lo" != "x$ac_hi"; do
28430   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28431   cat >conftest.$ac_ext <<_ACEOF
28432 /* confdefs.h.  */
28433 _ACEOF
28434 cat confdefs.h >>conftest.$ac_ext
28435 cat >>conftest.$ac_ext <<_ACEOF
28436 /* end confdefs.h.  */
28437
28438   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28439      included before <wchar.h>.  */
28440   #include <stddef.h>
28441   #include <signal.h>
28442   #if HAVE_WCHAR_H
28443   # include <stdio.h>
28444   # include <time.h>
28445   # include <wchar.h>
28446   #endif
28447
28448 #include <limits.h>
28449 int
28450 main ()
28451 {
28452 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
28453 test_array [0] = 0
28454
28455   ;
28456   return 0;
28457 }
28458 _ACEOF
28459 rm -f conftest.$ac_objext
28460 if { (ac_try="$ac_compile"
28461 case "(($ac_try" in
28462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28463   *) ac_try_echo=$ac_try;;
28464 esac
28465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28466   (eval "$ac_compile") 2>conftest.er1
28467   ac_status=$?
28468   grep -v '^ *+' conftest.er1 >conftest.err
28469   rm -f conftest.er1
28470   cat conftest.err >&5
28471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28472   (exit $ac_status); } && {
28473          test -z "$ac_c_werror_flag" ||
28474          test ! -s conftest.err
28475        } && test -s conftest.$ac_objext; then
28476   ac_hi=$ac_mid
28477 else
28478   echo "$as_me: failed program was:" >&5
28479 sed 's/^/| /' conftest.$ac_ext >&5
28480
28481         ac_lo=`expr '(' $ac_mid ')' + 1`
28482 fi
28483
28484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28485 done
28486 case $ac_lo in
28487 ?*) result=$ac_lo;;
28488 '') result=unknown ;;
28489 esac
28490 else
28491   cat >conftest.$ac_ext <<_ACEOF
28492 /* confdefs.h.  */
28493 _ACEOF
28494 cat confdefs.h >>conftest.$ac_ext
28495 cat >>conftest.$ac_ext <<_ACEOF
28496 /* end confdefs.h.  */
28497
28498   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28499      included before <wchar.h>.  */
28500   #include <stddef.h>
28501   #include <signal.h>
28502   #if HAVE_WCHAR_H
28503   # include <stdio.h>
28504   # include <time.h>
28505   # include <wchar.h>
28506   #endif
28507
28508 #include <limits.h>
28509 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
28510 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
28511 #include <stdio.h>
28512 #include <stdlib.h>
28513 int
28514 main ()
28515 {
28516
28517   FILE *f = fopen ("conftest.val", "w");
28518   if (! f)
28519     return 1;
28520   if ((sizeof ($gltype) * CHAR_BIT) < 0)
28521     {
28522       long int i = longval ();
28523       if (i != (sizeof ($gltype) * CHAR_BIT))
28524         return 1;
28525       fprintf (f, "%ld\n", i);
28526     }
28527   else
28528     {
28529       unsigned long int i = ulongval ();
28530       if (i != (sizeof ($gltype) * CHAR_BIT))
28531         return 1;
28532       fprintf (f, "%lu\n", i);
28533     }
28534   return ferror (f) || fclose (f) != 0;
28535
28536   ;
28537   return 0;
28538 }
28539 _ACEOF
28540 rm -f conftest$ac_exeext
28541 if { (ac_try="$ac_link"
28542 case "(($ac_try" in
28543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28544   *) ac_try_echo=$ac_try;;
28545 esac
28546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28547   (eval "$ac_link") 2>&5
28548   ac_status=$?
28549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28551   { (case "(($ac_try" in
28552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28553   *) ac_try_echo=$ac_try;;
28554 esac
28555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28556   (eval "$ac_try") 2>&5
28557   ac_status=$?
28558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559   (exit $ac_status); }; }; then
28560   result=`cat conftest.val`
28561 else
28562   echo "$as_me: program exited with status $ac_status" >&5
28563 echo "$as_me: failed program was:" >&5
28564 sed 's/^/| /' conftest.$ac_ext >&5
28565
28566 ( exit $ac_status )
28567 result=unknown
28568 fi
28569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28570 fi
28571 rm -f conftest.val
28572        eval gl_cv_bitsizeof_${gltype}=\$result
28573
28574 fi
28575 ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
28576                { echo "$as_me:$LINENO: result: $ac_res" >&5
28577 echo "${ECHO_T}$ac_res" >&6; }
28578     eval result=\$gl_cv_bitsizeof_${gltype}
28579     if test $result = unknown; then
28580                                                 result=0
28581     fi
28582     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
28583     cat >>confdefs.h <<_ACEOF
28584 #define BITSIZEOF_${GLTYPE} $result
28585 _ACEOF
28586
28587     eval BITSIZEOF_${GLTYPE}=\$result
28588   done
28589
28590
28591
28592
28593
28594
28595
28596   for gltype in sig_atomic_t wchar_t wint_t ; do
28597     { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
28598 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
28599 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
28600   echo $ECHO_N "(cached) $ECHO_C" >&6
28601 else
28602   cat >conftest.$ac_ext <<_ACEOF
28603 /* confdefs.h.  */
28604 _ACEOF
28605 cat confdefs.h >>conftest.$ac_ext
28606 cat >>conftest.$ac_ext <<_ACEOF
28607 /* end confdefs.h.  */
28608
28609   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28610      included before <wchar.h>.  */
28611   #include <stddef.h>
28612   #include <signal.h>
28613   #if HAVE_WCHAR_H
28614   # include <stdio.h>
28615   # include <time.h>
28616   # include <wchar.h>
28617   #endif
28618
28619             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
28620 int
28621 main ()
28622 {
28623
28624   ;
28625   return 0;
28626 }
28627 _ACEOF
28628 rm -f conftest.$ac_objext
28629 if { (ac_try="$ac_compile"
28630 case "(($ac_try" in
28631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28632   *) ac_try_echo=$ac_try;;
28633 esac
28634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28635   (eval "$ac_compile") 2>conftest.er1
28636   ac_status=$?
28637   grep -v '^ *+' conftest.er1 >conftest.err
28638   rm -f conftest.er1
28639   cat conftest.err >&5
28640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641   (exit $ac_status); } && {
28642          test -z "$ac_c_werror_flag" ||
28643          test ! -s conftest.err
28644        } && test -s conftest.$ac_objext; then
28645   result=yes
28646 else
28647   echo "$as_me: failed program was:" >&5
28648 sed 's/^/| /' conftest.$ac_ext >&5
28649
28650         result=no
28651 fi
28652
28653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28654        eval gl_cv_type_${gltype}_signed=\$result
28655
28656 fi
28657 ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
28658                { echo "$as_me:$LINENO: result: $ac_res" >&5
28659 echo "${ECHO_T}$ac_res" >&6; }
28660     eval result=\$gl_cv_type_${gltype}_signed
28661     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
28662     if test "$result" = yes; then
28663       cat >>confdefs.h <<_ACEOF
28664 #define HAVE_SIGNED_${GLTYPE} 1
28665 _ACEOF
28666
28667       eval HAVE_SIGNED_${GLTYPE}=1
28668     else
28669       eval HAVE_SIGNED_${GLTYPE}=0
28670     fi
28671   done
28672
28673
28674   gl_cv_type_ptrdiff_t_signed=yes
28675   gl_cv_type_size_t_signed=no
28676
28677
28678
28679
28680
28681
28682
28683   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
28684     { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
28685 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; }
28686 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
28687   echo $ECHO_N "(cached) $ECHO_C" >&6
28688 else
28689   eval gl_cv_type_${gltype}_suffix=no
28690        eval result=\$gl_cv_type_${gltype}_signed
28691        if test "$result" = yes; then
28692          glsufu=
28693        else
28694          glsufu=u
28695        fi
28696        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
28697          case $glsuf in
28698            '')  gltype1='int';;
28699            l)   gltype1='long int';;
28700            ll)  gltype1='long long int';;
28701            i64) gltype1='__int64';;
28702            u)   gltype1='unsigned int';;
28703            ul)  gltype1='unsigned long int';;
28704            ull) gltype1='unsigned long long int';;
28705            ui64)gltype1='unsigned __int64';;
28706          esac
28707          cat >conftest.$ac_ext <<_ACEOF
28708 /* confdefs.h.  */
28709 _ACEOF
28710 cat confdefs.h >>conftest.$ac_ext
28711 cat >>conftest.$ac_ext <<_ACEOF
28712 /* end confdefs.h.  */
28713
28714   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28715      included before <wchar.h>.  */
28716   #include <stddef.h>
28717   #include <signal.h>
28718   #if HAVE_WCHAR_H
28719   # include <stdio.h>
28720   # include <time.h>
28721   # include <wchar.h>
28722   #endif
28723
28724               extern $gltype foo;
28725               extern $gltype1 foo;
28726 int
28727 main ()
28728 {
28729
28730   ;
28731   return 0;
28732 }
28733 _ACEOF
28734 rm -f conftest.$ac_objext
28735 if { (ac_try="$ac_compile"
28736 case "(($ac_try" in
28737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28738   *) ac_try_echo=$ac_try;;
28739 esac
28740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28741   (eval "$ac_compile") 2>conftest.er1
28742   ac_status=$?
28743   grep -v '^ *+' conftest.er1 >conftest.err
28744   rm -f conftest.er1
28745   cat conftest.err >&5
28746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747   (exit $ac_status); } && {
28748          test -z "$ac_c_werror_flag" ||
28749          test ! -s conftest.err
28750        } && test -s conftest.$ac_objext; then
28751   eval gl_cv_type_${gltype}_suffix=\$glsuf
28752 else
28753   echo "$as_me: failed program was:" >&5
28754 sed 's/^/| /' conftest.$ac_ext >&5
28755
28756
28757 fi
28758
28759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28760          eval result=\$gl_cv_type_${gltype}_suffix
28761          test "$result" != no && break
28762        done
28763 fi
28764 ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'`
28765                { echo "$as_me:$LINENO: result: $ac_res" >&5
28766 echo "${ECHO_T}$ac_res" >&6; }
28767     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
28768     eval result=\$gl_cv_type_${gltype}_suffix
28769     test "$result" = no && result=
28770     eval ${GLTYPE}_SUFFIX=\$result
28771     cat >>confdefs.h <<_ACEOF
28772 #define ${GLTYPE}_SUFFIX $result
28773 _ACEOF
28774
28775   done
28776
28777
28778
28779     STDINT_H=stdint.h
28780   fi
28781
28782
28783
28784
28785
28786
28787
28788
28789
28790
28791
28792
28793
28794
28795      if test $gl_cv_have_include_next = yes; then
28796        gl_cv_next_stdio_h='<'stdio.h'>'
28797      else
28798        { echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
28799 echo $ECHO_N "checking absolute name of <stdio.h>... $ECHO_C" >&6; }
28800 if test "${gl_cv_next_stdio_h+set}" = set; then
28801   echo $ECHO_N "(cached) $ECHO_C" >&6
28802 else
28803
28804           if test $ac_cv_header_stdio_h = yes; then
28805             cat >conftest.$ac_ext <<_ACEOF
28806 /* confdefs.h.  */
28807 _ACEOF
28808 cat confdefs.h >>conftest.$ac_ext
28809 cat >>conftest.$ac_ext <<_ACEOF
28810 /* end confdefs.h.  */
28811 #include <stdio.h>
28812
28813 _ACEOF
28814                                     gl_cv_next_stdio_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28815                sed -n '\#/stdio.h#{
28816                  s#.*"\(.*/stdio.h\)".*#\1#
28817                  s#^/[^/]#//&#
28818                  p
28819                  q
28820                }'`'"'
28821           else
28822             gl_cv_next_stdio_h='<'stdio.h'>'
28823           fi
28824
28825 fi
28826 { echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
28827 echo "${ECHO_T}$gl_cv_next_stdio_h" >&6; }
28828      fi
28829      NEXT_STDIO_H=$gl_cv_next_stdio_h
28830
28831
28832
28833
28834
28835
28836
28837
28838
28839
28840
28841
28842
28843
28844
28845
28846      if test $gl_cv_have_include_next = yes; then
28847        gl_cv_next_stdlib_h='<'stdlib.h'>'
28848      else
28849        { echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
28850 echo $ECHO_N "checking absolute name of <stdlib.h>... $ECHO_C" >&6; }
28851 if test "${gl_cv_next_stdlib_h+set}" = set; then
28852   echo $ECHO_N "(cached) $ECHO_C" >&6
28853 else
28854
28855           if test $ac_cv_header_stdlib_h = yes; then
28856             cat >conftest.$ac_ext <<_ACEOF
28857 /* confdefs.h.  */
28858 _ACEOF
28859 cat confdefs.h >>conftest.$ac_ext
28860 cat >>conftest.$ac_ext <<_ACEOF
28861 /* end confdefs.h.  */
28862 #include <stdlib.h>
28863
28864 _ACEOF
28865                                     gl_cv_next_stdlib_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28866                sed -n '\#/stdlib.h#{
28867                  s#.*"\(.*/stdlib.h\)".*#\1#
28868                  s#^/[^/]#//&#
28869                  p
28870                  q
28871                }'`'"'
28872           else
28873             gl_cv_next_stdlib_h='<'stdlib.h'>'
28874           fi
28875
28876 fi
28877 { echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
28878 echo "${ECHO_T}$gl_cv_next_stdlib_h" >&6; }
28879      fi
28880      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
28881
28882
28883
28884
28885
28886
28887
28888
28889
28890
28891
28892
28893
28894
28895
28896
28897
28898
28899 for ac_func in stpcpy
28900 do
28901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28905   echo $ECHO_N "(cached) $ECHO_C" >&6
28906 else
28907   cat >conftest.$ac_ext <<_ACEOF
28908 /* confdefs.h.  */
28909 _ACEOF
28910 cat confdefs.h >>conftest.$ac_ext
28911 cat >>conftest.$ac_ext <<_ACEOF
28912 /* end confdefs.h.  */
28913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28914    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28915 #define $ac_func innocuous_$ac_func
28916
28917 /* System header to define __stub macros and hopefully few prototypes,
28918     which can conflict with char $ac_func (); below.
28919     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28920     <limits.h> exists even on freestanding compilers.  */
28921
28922 #ifdef __STDC__
28923 # include <limits.h>
28924 #else
28925 # include <assert.h>
28926 #endif
28927
28928 #undef $ac_func
28929
28930 /* Override any GCC internal prototype to avoid an error.
28931    Use char because int might match the return type of a GCC
28932    builtin and then its argument prototype would still apply.  */
28933 #ifdef __cplusplus
28934 extern "C"
28935 #endif
28936 char $ac_func ();
28937 /* The GNU C library defines this for functions which it implements
28938     to always fail with ENOSYS.  Some functions are actually named
28939     something starting with __ and the normal name is an alias.  */
28940 #if defined __stub_$ac_func || defined __stub___$ac_func
28941 choke me
28942 #endif
28943
28944 int
28945 main ()
28946 {
28947 return $ac_func ();
28948   ;
28949   return 0;
28950 }
28951 _ACEOF
28952 rm -f conftest.$ac_objext conftest$ac_exeext
28953 if { (ac_try="$ac_link"
28954 case "(($ac_try" in
28955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28956   *) ac_try_echo=$ac_try;;
28957 esac
28958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28959   (eval "$ac_link") 2>conftest.er1
28960   ac_status=$?
28961   grep -v '^ *+' conftest.er1 >conftest.err
28962   rm -f conftest.er1
28963   cat conftest.err >&5
28964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28965   (exit $ac_status); } && {
28966          test -z "$ac_c_werror_flag" ||
28967          test ! -s conftest.err
28968        } && test -s conftest$ac_exeext &&
28969        $as_test_x conftest$ac_exeext; then
28970   eval "$as_ac_var=yes"
28971 else
28972   echo "$as_me: failed program was:" >&5
28973 sed 's/^/| /' conftest.$ac_ext >&5
28974
28975         eval "$as_ac_var=no"
28976 fi
28977
28978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28979       conftest$ac_exeext conftest.$ac_ext
28980 fi
28981 ac_res=`eval echo '${'$as_ac_var'}'`
28982                { echo "$as_me:$LINENO: result: $ac_res" >&5
28983 echo "${ECHO_T}$ac_res" >&6; }
28984 if test `eval echo '${'$as_ac_var'}'` = yes; then
28985   cat >>confdefs.h <<_ACEOF
28986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28987 _ACEOF
28988
28989 else
28990
28991     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
28992
28993 fi
28994 done
28995
28996
28997   if test $ac_cv_func_stpcpy = no; then
28998     HAVE_STPCPY=0
28999
29000   :
29001
29002   fi
29003
29004
29005
29006   GNULIB_STPCPY=1
29007
29008
29009
29010
29011
29012
29013
29014
29015
29016
29017
29018
29019 for ac_func in strcasecmp
29020 do
29021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29022 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29025   echo $ECHO_N "(cached) $ECHO_C" >&6
29026 else
29027   cat >conftest.$ac_ext <<_ACEOF
29028 /* confdefs.h.  */
29029 _ACEOF
29030 cat confdefs.h >>conftest.$ac_ext
29031 cat >>conftest.$ac_ext <<_ACEOF
29032 /* end confdefs.h.  */
29033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29034    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29035 #define $ac_func innocuous_$ac_func
29036
29037 /* System header to define __stub macros and hopefully few prototypes,
29038     which can conflict with char $ac_func (); below.
29039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29040     <limits.h> exists even on freestanding compilers.  */
29041
29042 #ifdef __STDC__
29043 # include <limits.h>
29044 #else
29045 # include <assert.h>
29046 #endif
29047
29048 #undef $ac_func
29049
29050 /* Override any GCC internal prototype to avoid an error.
29051    Use char because int might match the return type of a GCC
29052    builtin and then its argument prototype would still apply.  */
29053 #ifdef __cplusplus
29054 extern "C"
29055 #endif
29056 char $ac_func ();
29057 /* The GNU C library defines this for functions which it implements
29058     to always fail with ENOSYS.  Some functions are actually named
29059     something starting with __ and the normal name is an alias.  */
29060 #if defined __stub_$ac_func || defined __stub___$ac_func
29061 choke me
29062 #endif
29063
29064 int
29065 main ()
29066 {
29067 return $ac_func ();
29068   ;
29069   return 0;
29070 }
29071 _ACEOF
29072 rm -f conftest.$ac_objext conftest$ac_exeext
29073 if { (ac_try="$ac_link"
29074 case "(($ac_try" in
29075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29076   *) ac_try_echo=$ac_try;;
29077 esac
29078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29079   (eval "$ac_link") 2>conftest.er1
29080   ac_status=$?
29081   grep -v '^ *+' conftest.er1 >conftest.err
29082   rm -f conftest.er1
29083   cat conftest.err >&5
29084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29085   (exit $ac_status); } && {
29086          test -z "$ac_c_werror_flag" ||
29087          test ! -s conftest.err
29088        } && test -s conftest$ac_exeext &&
29089        $as_test_x conftest$ac_exeext; then
29090   eval "$as_ac_var=yes"
29091 else
29092   echo "$as_me: failed program was:" >&5
29093 sed 's/^/| /' conftest.$ac_ext >&5
29094
29095         eval "$as_ac_var=no"
29096 fi
29097
29098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29099       conftest$ac_exeext conftest.$ac_ext
29100 fi
29101 ac_res=`eval echo '${'$as_ac_var'}'`
29102                { echo "$as_me:$LINENO: result: $ac_res" >&5
29103 echo "${ECHO_T}$ac_res" >&6; }
29104 if test `eval echo '${'$as_ac_var'}'` = yes; then
29105   cat >>confdefs.h <<_ACEOF
29106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29107 _ACEOF
29108
29109 else
29110
29111     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
29112
29113 fi
29114 done
29115
29116
29117   if test $ac_cv_func_strcasecmp = no; then
29118     HAVE_STRCASECMP=0
29119
29120   :
29121
29122   fi
29123
29124
29125
29126
29127
29128
29129
29130
29131
29132
29133
29134 for ac_func in strncasecmp
29135 do
29136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29140   echo $ECHO_N "(cached) $ECHO_C" >&6
29141 else
29142   cat >conftest.$ac_ext <<_ACEOF
29143 /* confdefs.h.  */
29144 _ACEOF
29145 cat confdefs.h >>conftest.$ac_ext
29146 cat >>conftest.$ac_ext <<_ACEOF
29147 /* end confdefs.h.  */
29148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29149    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29150 #define $ac_func innocuous_$ac_func
29151
29152 /* System header to define __stub macros and hopefully few prototypes,
29153     which can conflict with char $ac_func (); below.
29154     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29155     <limits.h> exists even on freestanding compilers.  */
29156
29157 #ifdef __STDC__
29158 # include <limits.h>
29159 #else
29160 # include <assert.h>
29161 #endif
29162
29163 #undef $ac_func
29164
29165 /* Override any GCC internal prototype to avoid an error.
29166    Use char because int might match the return type of a GCC
29167    builtin and then its argument prototype would still apply.  */
29168 #ifdef __cplusplus
29169 extern "C"
29170 #endif
29171 char $ac_func ();
29172 /* The GNU C library defines this for functions which it implements
29173     to always fail with ENOSYS.  Some functions are actually named
29174     something starting with __ and the normal name is an alias.  */
29175 #if defined __stub_$ac_func || defined __stub___$ac_func
29176 choke me
29177 #endif
29178
29179 int
29180 main ()
29181 {
29182 return $ac_func ();
29183   ;
29184   return 0;
29185 }
29186 _ACEOF
29187 rm -f conftest.$ac_objext conftest$ac_exeext
29188 if { (ac_try="$ac_link"
29189 case "(($ac_try" in
29190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29191   *) ac_try_echo=$ac_try;;
29192 esac
29193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29194   (eval "$ac_link") 2>conftest.er1
29195   ac_status=$?
29196   grep -v '^ *+' conftest.er1 >conftest.err
29197   rm -f conftest.er1
29198   cat conftest.err >&5
29199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29200   (exit $ac_status); } && {
29201          test -z "$ac_c_werror_flag" ||
29202          test ! -s conftest.err
29203        } && test -s conftest$ac_exeext &&
29204        $as_test_x conftest$ac_exeext; then
29205   eval "$as_ac_var=yes"
29206 else
29207   echo "$as_me: failed program was:" >&5
29208 sed 's/^/| /' conftest.$ac_ext >&5
29209
29210         eval "$as_ac_var=no"
29211 fi
29212
29213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29214       conftest$ac_exeext conftest.$ac_ext
29215 fi
29216 ac_res=`eval echo '${'$as_ac_var'}'`
29217                { echo "$as_me:$LINENO: result: $ac_res" >&5
29218 echo "${ECHO_T}$ac_res" >&6; }
29219 if test `eval echo '${'$as_ac_var'}'` = yes; then
29220   cat >>confdefs.h <<_ACEOF
29221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29222 _ACEOF
29223
29224 else
29225
29226     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
29227
29228 fi
29229 done
29230
29231
29232   if test $ac_cv_func_strncasecmp = no; then
29233
29234   :
29235
29236   fi
29237   { echo "$as_me:$LINENO: checking whether strncasecmp is declared" >&5
29238 echo $ECHO_N "checking whether strncasecmp is declared... $ECHO_C" >&6; }
29239 if test "${ac_cv_have_decl_strncasecmp+set}" = set; then
29240   echo $ECHO_N "(cached) $ECHO_C" >&6
29241 else
29242   cat >conftest.$ac_ext <<_ACEOF
29243 /* confdefs.h.  */
29244 _ACEOF
29245 cat confdefs.h >>conftest.$ac_ext
29246 cat >>conftest.$ac_ext <<_ACEOF
29247 /* end confdefs.h.  */
29248 $ac_includes_default
29249 int
29250 main ()
29251 {
29252 #ifndef strncasecmp
29253   (void) strncasecmp;
29254 #endif
29255
29256   ;
29257   return 0;
29258 }
29259 _ACEOF
29260 rm -f conftest.$ac_objext
29261 if { (ac_try="$ac_compile"
29262 case "(($ac_try" in
29263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29264   *) ac_try_echo=$ac_try;;
29265 esac
29266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29267   (eval "$ac_compile") 2>conftest.er1
29268   ac_status=$?
29269   grep -v '^ *+' conftest.er1 >conftest.err
29270   rm -f conftest.er1
29271   cat conftest.err >&5
29272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29273   (exit $ac_status); } && {
29274          test -z "$ac_c_werror_flag" ||
29275          test ! -s conftest.err
29276        } && test -s conftest.$ac_objext; then
29277   ac_cv_have_decl_strncasecmp=yes
29278 else
29279   echo "$as_me: failed program was:" >&5
29280 sed 's/^/| /' conftest.$ac_ext >&5
29281
29282         ac_cv_have_decl_strncasecmp=no
29283 fi
29284
29285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29286 fi
29287 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strncasecmp" >&5
29288 echo "${ECHO_T}$ac_cv_have_decl_strncasecmp" >&6; }
29289 if test $ac_cv_have_decl_strncasecmp = yes; then
29290
29291 cat >>confdefs.h <<_ACEOF
29292 #define HAVE_DECL_STRNCASECMP 1
29293 _ACEOF
29294
29295
29296 else
29297   cat >>confdefs.h <<_ACEOF
29298 #define HAVE_DECL_STRNCASECMP 0
29299 _ACEOF
29300
29301
29302 fi
29303
29304
29305   if test $ac_cv_have_decl_strncasecmp = no; then
29306     HAVE_DECL_STRNCASECMP=0
29307   fi
29308
29309
29310
29311
29312
29313
29314
29315
29316
29317
29318
29319
29320
29321
29322 for ac_func in strchrnul
29323 do
29324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29328   echo $ECHO_N "(cached) $ECHO_C" >&6
29329 else
29330   cat >conftest.$ac_ext <<_ACEOF
29331 /* confdefs.h.  */
29332 _ACEOF
29333 cat confdefs.h >>conftest.$ac_ext
29334 cat >>conftest.$ac_ext <<_ACEOF
29335 /* end confdefs.h.  */
29336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29338 #define $ac_func innocuous_$ac_func
29339
29340 /* System header to define __stub macros and hopefully few prototypes,
29341     which can conflict with char $ac_func (); below.
29342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29343     <limits.h> exists even on freestanding compilers.  */
29344
29345 #ifdef __STDC__
29346 # include <limits.h>
29347 #else
29348 # include <assert.h>
29349 #endif
29350
29351 #undef $ac_func
29352
29353 /* Override any GCC internal prototype to avoid an error.
29354    Use char because int might match the return type of a GCC
29355    builtin and then its argument prototype would still apply.  */
29356 #ifdef __cplusplus
29357 extern "C"
29358 #endif
29359 char $ac_func ();
29360 /* The GNU C library defines this for functions which it implements
29361     to always fail with ENOSYS.  Some functions are actually named
29362     something starting with __ and the normal name is an alias.  */
29363 #if defined __stub_$ac_func || defined __stub___$ac_func
29364 choke me
29365 #endif
29366
29367 int
29368 main ()
29369 {
29370 return $ac_func ();
29371   ;
29372   return 0;
29373 }
29374 _ACEOF
29375 rm -f conftest.$ac_objext conftest$ac_exeext
29376 if { (ac_try="$ac_link"
29377 case "(($ac_try" in
29378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29379   *) ac_try_echo=$ac_try;;
29380 esac
29381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29382   (eval "$ac_link") 2>conftest.er1
29383   ac_status=$?
29384   grep -v '^ *+' conftest.er1 >conftest.err
29385   rm -f conftest.er1
29386   cat conftest.err >&5
29387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29388   (exit $ac_status); } && {
29389          test -z "$ac_c_werror_flag" ||
29390          test ! -s conftest.err
29391        } && test -s conftest$ac_exeext &&
29392        $as_test_x conftest$ac_exeext; then
29393   eval "$as_ac_var=yes"
29394 else
29395   echo "$as_me: failed program was:" >&5
29396 sed 's/^/| /' conftest.$ac_ext >&5
29397
29398         eval "$as_ac_var=no"
29399 fi
29400
29401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29402       conftest$ac_exeext conftest.$ac_ext
29403 fi
29404 ac_res=`eval echo '${'$as_ac_var'}'`
29405                { echo "$as_me:$LINENO: result: $ac_res" >&5
29406 echo "${ECHO_T}$ac_res" >&6; }
29407 if test `eval echo '${'$as_ac_var'}'` = yes; then
29408   cat >>confdefs.h <<_ACEOF
29409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29410 _ACEOF
29411
29412 else
29413
29414     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
29415
29416 fi
29417 done
29418
29419
29420   if test $ac_cv_func_strchrnul = no; then
29421     HAVE_STRCHRNUL=0
29422     :
29423   fi
29424
29425
29426
29427   GNULIB_STRCHRNUL=1
29428
29429
29430
29431
29432
29433
29434
29435
29436
29437
29438
29439 for ac_func in strdup
29440 do
29441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29442 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29444 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29445   echo $ECHO_N "(cached) $ECHO_C" >&6
29446 else
29447   cat >conftest.$ac_ext <<_ACEOF
29448 /* confdefs.h.  */
29449 _ACEOF
29450 cat confdefs.h >>conftest.$ac_ext
29451 cat >>conftest.$ac_ext <<_ACEOF
29452 /* end confdefs.h.  */
29453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29454    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29455 #define $ac_func innocuous_$ac_func
29456
29457 /* System header to define __stub macros and hopefully few prototypes,
29458     which can conflict with char $ac_func (); below.
29459     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29460     <limits.h> exists even on freestanding compilers.  */
29461
29462 #ifdef __STDC__
29463 # include <limits.h>
29464 #else
29465 # include <assert.h>
29466 #endif
29467
29468 #undef $ac_func
29469
29470 /* Override any GCC internal prototype to avoid an error.
29471    Use char because int might match the return type of a GCC
29472    builtin and then its argument prototype would still apply.  */
29473 #ifdef __cplusplus
29474 extern "C"
29475 #endif
29476 char $ac_func ();
29477 /* The GNU C library defines this for functions which it implements
29478     to always fail with ENOSYS.  Some functions are actually named
29479     something starting with __ and the normal name is an alias.  */
29480 #if defined __stub_$ac_func || defined __stub___$ac_func
29481 choke me
29482 #endif
29483
29484 int
29485 main ()
29486 {
29487 return $ac_func ();
29488   ;
29489   return 0;
29490 }
29491 _ACEOF
29492 rm -f conftest.$ac_objext conftest$ac_exeext
29493 if { (ac_try="$ac_link"
29494 case "(($ac_try" in
29495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29496   *) ac_try_echo=$ac_try;;
29497 esac
29498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29499   (eval "$ac_link") 2>conftest.er1
29500   ac_status=$?
29501   grep -v '^ *+' conftest.er1 >conftest.err
29502   rm -f conftest.er1
29503   cat conftest.err >&5
29504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505   (exit $ac_status); } && {
29506          test -z "$ac_c_werror_flag" ||
29507          test ! -s conftest.err
29508        } && test -s conftest$ac_exeext &&
29509        $as_test_x conftest$ac_exeext; then
29510   eval "$as_ac_var=yes"
29511 else
29512   echo "$as_me: failed program was:" >&5
29513 sed 's/^/| /' conftest.$ac_ext >&5
29514
29515         eval "$as_ac_var=no"
29516 fi
29517
29518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29519       conftest$ac_exeext conftest.$ac_ext
29520 fi
29521 ac_res=`eval echo '${'$as_ac_var'}'`
29522                { echo "$as_me:$LINENO: result: $ac_res" >&5
29523 echo "${ECHO_T}$ac_res" >&6; }
29524 if test `eval echo '${'$as_ac_var'}'` = yes; then
29525   cat >>confdefs.h <<_ACEOF
29526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29527 _ACEOF
29528
29529 else
29530
29531     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
29532
29533 fi
29534 done
29535
29536
29537
29538
29539
29540
29541   if test $ac_cv_have_decl_strdup = no; then
29542     HAVE_DECL_STRDUP=0
29543   fi
29544   :
29545
29546
29547
29548   GNULIB_STRDUP=1
29549
29550
29551
29552   if test $gl_cv_func_working_strerror = no; then
29553
29554
29555
29556
29557
29558
29559
29560   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
29561
29562
29563 cat >>confdefs.h <<_ACEOF
29564 #define REPLACE_STRERROR $REPLACE_STRERROR
29565 _ACEOF
29566
29567   fi
29568
29569
29570
29571   GNULIB_STRERROR=1
29572
29573
29574
29575
29576
29577
29578
29579
29580
29581
29582
29583
29584
29585
29586
29587   if test $ac_cv_have_decl_strndup = no; then
29588     HAVE_DECL_STRNDUP=0
29589   fi
29590
29591   # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
29592   { echo "$as_me:$LINENO: checking for working strndup" >&5
29593 echo $ECHO_N "checking for working strndup... $ECHO_C" >&6; }
29594 if test "${gl_cv_func_strndup+set}" = set; then
29595   echo $ECHO_N "(cached) $ECHO_C" >&6
29596 else
29597   if test "$cross_compiling" = yes; then
29598   { echo "$as_me:$LINENO: checking for strndup" >&5
29599 echo $ECHO_N "checking for strndup... $ECHO_C" >&6; }
29600 if test "${ac_cv_func_strndup+set}" = set; then
29601   echo $ECHO_N "(cached) $ECHO_C" >&6
29602 else
29603   cat >conftest.$ac_ext <<_ACEOF
29604 /* confdefs.h.  */
29605 _ACEOF
29606 cat confdefs.h >>conftest.$ac_ext
29607 cat >>conftest.$ac_ext <<_ACEOF
29608 /* end confdefs.h.  */
29609 /* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
29610    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29611 #define strndup innocuous_strndup
29612
29613 /* System header to define __stub macros and hopefully few prototypes,
29614     which can conflict with char strndup (); below.
29615     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29616     <limits.h> exists even on freestanding compilers.  */
29617
29618 #ifdef __STDC__
29619 # include <limits.h>
29620 #else
29621 # include <assert.h>
29622 #endif
29623
29624 #undef strndup
29625
29626 /* Override any GCC internal prototype to avoid an error.
29627    Use char because int might match the return type of a GCC
29628    builtin and then its argument prototype would still apply.  */
29629 #ifdef __cplusplus
29630 extern "C"
29631 #endif
29632 char strndup ();
29633 /* The GNU C library defines this for functions which it implements
29634     to always fail with ENOSYS.  Some functions are actually named
29635     something starting with __ and the normal name is an alias.  */
29636 #if defined __stub_strndup || defined __stub___strndup
29637 choke me
29638 #endif
29639
29640 int
29641 main ()
29642 {
29643 return strndup ();
29644   ;
29645   return 0;
29646 }
29647 _ACEOF
29648 rm -f conftest.$ac_objext conftest$ac_exeext
29649 if { (ac_try="$ac_link"
29650 case "(($ac_try" in
29651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29652   *) ac_try_echo=$ac_try;;
29653 esac
29654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29655   (eval "$ac_link") 2>conftest.er1
29656   ac_status=$?
29657   grep -v '^ *+' conftest.er1 >conftest.err
29658   rm -f conftest.er1
29659   cat conftest.err >&5
29660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29661   (exit $ac_status); } && {
29662          test -z "$ac_c_werror_flag" ||
29663          test ! -s conftest.err
29664        } && test -s conftest$ac_exeext &&
29665        $as_test_x conftest$ac_exeext; then
29666   ac_cv_func_strndup=yes
29667 else
29668   echo "$as_me: failed program was:" >&5
29669 sed 's/^/| /' conftest.$ac_ext >&5
29670
29671         ac_cv_func_strndup=no
29672 fi
29673
29674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29675       conftest$ac_exeext conftest.$ac_ext
29676 fi
29677 { echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
29678 echo "${ECHO_T}$ac_cv_func_strndup" >&6; }
29679 if test $ac_cv_func_strndup = yes; then
29680   cat >conftest.$ac_ext <<_ACEOF
29681 /* confdefs.h.  */
29682 _ACEOF
29683 cat confdefs.h >>conftest.$ac_ext
29684 cat >>conftest.$ac_ext <<_ACEOF
29685 /* end confdefs.h.  */
29686
29687 #ifdef _AIX
29688                too risky
29689 #endif
29690
29691 _ACEOF
29692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29693   $EGREP "too risky" >/dev/null 2>&1; then
29694   gl_cv_func_strndup=no
29695 else
29696   gl_cv_func_strndup=yes
29697 fi
29698 rm -f conftest*
29699
29700 else
29701   gl_cv_func_strndup=no
29702 fi
29703
29704 else
29705   cat >conftest.$ac_ext <<_ACEOF
29706
29707        /* confdefs.h.  */
29708 _ACEOF
29709 cat confdefs.h >>conftest.$ac_ext
29710 cat >>conftest.$ac_ext <<_ACEOF
29711 /* end confdefs.h.  */
29712 #include <string.h>
29713                         #include <stdlib.h>
29714 int
29715 main ()
29716 {
29717
29718 #ifndef HAVE_DECL_STRNDUP
29719   extern char *strndup (const char *, size_t);
29720 #endif
29721   char *s;
29722   s = strndup ("some longer string", 15);
29723   free (s);
29724   s = strndup ("shorter string", 13);
29725   return s[13] != '\0';
29726   ;
29727   return 0;
29728 }
29729 _ACEOF
29730 rm -f conftest$ac_exeext
29731 if { (ac_try="$ac_link"
29732 case "(($ac_try" in
29733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29734   *) ac_try_echo=$ac_try;;
29735 esac
29736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29737   (eval "$ac_link") 2>&5
29738   ac_status=$?
29739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29741   { (case "(($ac_try" in
29742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29743   *) ac_try_echo=$ac_try;;
29744 esac
29745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29746   (eval "$ac_try") 2>&5
29747   ac_status=$?
29748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29749   (exit $ac_status); }; }; then
29750   gl_cv_func_strndup=yes
29751 else
29752   echo "$as_me: program exited with status $ac_status" >&5
29753 echo "$as_me: failed program was:" >&5
29754 sed 's/^/| /' conftest.$ac_ext >&5
29755
29756 ( exit $ac_status )
29757 gl_cv_func_strndup=no
29758 fi
29759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29760 fi
29761
29762
29763 fi
29764 { echo "$as_me:$LINENO: result: $gl_cv_func_strndup" >&5
29765 echo "${ECHO_T}$gl_cv_func_strndup" >&6; }
29766   if test $gl_cv_func_strndup = yes; then
29767
29768 cat >>confdefs.h <<\_ACEOF
29769 #define HAVE_STRNDUP 1
29770 _ACEOF
29771
29772   else
29773     HAVE_STRNDUP=0
29774
29775
29776
29777
29778
29779
29780
29781   gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
29782
29783     :
29784   fi
29785
29786
29787
29788   GNULIB_STRNDUP=1
29789
29790
29791
29792
29793
29794
29795
29796
29797
29798   if test $ac_cv_have_decl_strnlen = no; then
29799     HAVE_DECL_STRNLEN=0
29800   fi
29801
29802   { echo "$as_me:$LINENO: checking for working strnlen" >&5
29803 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
29804 if test "${ac_cv_func_strnlen_working+set}" = set; then
29805   echo $ECHO_N "(cached) $ECHO_C" >&6
29806 else
29807   if test "$cross_compiling" = yes; then
29808   ac_cv_func_strnlen_working=no
29809 else
29810   cat >conftest.$ac_ext <<_ACEOF
29811 /* confdefs.h.  */
29812 _ACEOF
29813 cat confdefs.h >>conftest.$ac_ext
29814 cat >>conftest.$ac_ext <<_ACEOF
29815 /* end confdefs.h.  */
29816 $ac_includes_default
29817 int
29818 main ()
29819 {
29820
29821 #define S "foobar"
29822 #define S_LEN (sizeof S - 1)
29823
29824   /* At least one implementation is buggy: that of AIX 4.3 would
29825      give strnlen (S, 1) == 3.  */
29826
29827   int i;
29828   for (i = 0; i < S_LEN + 1; ++i)
29829     {
29830       int expected = i <= S_LEN ? i : S_LEN;
29831       if (strnlen (S, i) != expected)
29832         return 1;
29833     }
29834   return 0;
29835
29836   ;
29837   return 0;
29838 }
29839 _ACEOF
29840 rm -f conftest$ac_exeext
29841 if { (ac_try="$ac_link"
29842 case "(($ac_try" in
29843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29844   *) ac_try_echo=$ac_try;;
29845 esac
29846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29847   (eval "$ac_link") 2>&5
29848   ac_status=$?
29849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29851   { (case "(($ac_try" in
29852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29853   *) ac_try_echo=$ac_try;;
29854 esac
29855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29856   (eval "$ac_try") 2>&5
29857   ac_status=$?
29858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859   (exit $ac_status); }; }; then
29860   ac_cv_func_strnlen_working=yes
29861 else
29862   echo "$as_me: program exited with status $ac_status" >&5
29863 echo "$as_me: failed program was:" >&5
29864 sed 's/^/| /' conftest.$ac_ext >&5
29865
29866 ( exit $ac_status )
29867 ac_cv_func_strnlen_working=no
29868 fi
29869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29870 fi
29871
29872
29873 fi
29874 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
29875 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
29876 test $ac_cv_func_strnlen_working = no &&
29877
29878
29879
29880
29881
29882
29883   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
29884
29885
29886   if test $ac_cv_func_strnlen_working = no; then
29887     # This is necessary because automake-1.6.1 doesn't understand
29888     # that the above use of AC_FUNC_STRNLEN means we may have to use
29889     # lib/strnlen.c.
29890     #AC_LIBOBJ(strnlen)
29891
29892 cat >>confdefs.h <<\_ACEOF
29893 #define strnlen rpl_strnlen
29894 _ACEOF
29895
29896     :
29897   fi
29898
29899
29900
29901   GNULIB_STRNLEN=1
29902
29903
29904
29905
29906
29907   { echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
29908 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6; }
29909 if test "${gl_cv_func_strtoimax_macro+set}" = set; then
29910   echo $ECHO_N "(cached) $ECHO_C" >&6
29911 else
29912   cat >conftest.$ac_ext <<_ACEOF
29913 /* confdefs.h.  */
29914 _ACEOF
29915 cat confdefs.h >>conftest.$ac_ext
29916 cat >>conftest.$ac_ext <<_ACEOF
29917 /* end confdefs.h.  */
29918 #include <inttypes.h>
29919 #ifdef strtoimax
29920  inttypes_h_defines_strtoimax
29921 #endif
29922 _ACEOF
29923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29924   $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
29925   gl_cv_func_strtoimax_macro=yes
29926 else
29927   gl_cv_func_strtoimax_macro=no
29928 fi
29929 rm -f conftest*
29930
29931 fi
29932 { echo "$as_me:$LINENO: result: $gl_cv_func_strtoimax_macro" >&5
29933 echo "${ECHO_T}$gl_cv_func_strtoimax_macro" >&6; }
29934
29935   if test "$gl_cv_func_strtoimax_macro" != yes; then
29936
29937
29938
29939
29940
29941
29942
29943
29944 for ac_func in strtoimax
29945 do
29946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29947 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29950   echo $ECHO_N "(cached) $ECHO_C" >&6
29951 else
29952   cat >conftest.$ac_ext <<_ACEOF
29953 /* confdefs.h.  */
29954 _ACEOF
29955 cat confdefs.h >>conftest.$ac_ext
29956 cat >>conftest.$ac_ext <<_ACEOF
29957 /* end confdefs.h.  */
29958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29960 #define $ac_func innocuous_$ac_func
29961
29962 /* System header to define __stub macros and hopefully few prototypes,
29963     which can conflict with char $ac_func (); below.
29964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29965     <limits.h> exists even on freestanding compilers.  */
29966
29967 #ifdef __STDC__
29968 # include <limits.h>
29969 #else
29970 # include <assert.h>
29971 #endif
29972
29973 #undef $ac_func
29974
29975 /* Override any GCC internal prototype to avoid an error.
29976    Use char because int might match the return type of a GCC
29977    builtin and then its argument prototype would still apply.  */
29978 #ifdef __cplusplus
29979 extern "C"
29980 #endif
29981 char $ac_func ();
29982 /* The GNU C library defines this for functions which it implements
29983     to always fail with ENOSYS.  Some functions are actually named
29984     something starting with __ and the normal name is an alias.  */
29985 #if defined __stub_$ac_func || defined __stub___$ac_func
29986 choke me
29987 #endif
29988
29989 int
29990 main ()
29991 {
29992 return $ac_func ();
29993   ;
29994   return 0;
29995 }
29996 _ACEOF
29997 rm -f conftest.$ac_objext conftest$ac_exeext
29998 if { (ac_try="$ac_link"
29999 case "(($ac_try" in
30000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30001   *) ac_try_echo=$ac_try;;
30002 esac
30003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30004   (eval "$ac_link") 2>conftest.er1
30005   ac_status=$?
30006   grep -v '^ *+' conftest.er1 >conftest.err
30007   rm -f conftest.er1
30008   cat conftest.err >&5
30009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30010   (exit $ac_status); } && {
30011          test -z "$ac_c_werror_flag" ||
30012          test ! -s conftest.err
30013        } && test -s conftest$ac_exeext &&
30014        $as_test_x conftest$ac_exeext; then
30015   eval "$as_ac_var=yes"
30016 else
30017   echo "$as_me: failed program was:" >&5
30018 sed 's/^/| /' conftest.$ac_ext >&5
30019
30020         eval "$as_ac_var=no"
30021 fi
30022
30023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30024       conftest$ac_exeext conftest.$ac_ext
30025 fi
30026 ac_res=`eval echo '${'$as_ac_var'}'`
30027                { echo "$as_me:$LINENO: result: $ac_res" >&5
30028 echo "${ECHO_T}$ac_res" >&6; }
30029 if test `eval echo '${'$as_ac_var'}'` = yes; then
30030   cat >>confdefs.h <<_ACEOF
30031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30032 _ACEOF
30033
30034 else
30035
30036     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30037
30038 fi
30039 done
30040
30041
30042     if test $ac_cv_func_strtoimax = no; then
30043
30044   { echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
30045 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6; }
30046 if test "${ac_cv_have_decl_strtoll+set}" = set; then
30047   echo $ECHO_N "(cached) $ECHO_C" >&6
30048 else
30049   cat >conftest.$ac_ext <<_ACEOF
30050 /* confdefs.h.  */
30051 _ACEOF
30052 cat confdefs.h >>conftest.$ac_ext
30053 cat >>conftest.$ac_ext <<_ACEOF
30054 /* end confdefs.h.  */
30055 $ac_includes_default
30056 int
30057 main ()
30058 {
30059 #ifndef strtoll
30060   (void) strtoll;
30061 #endif
30062
30063   ;
30064   return 0;
30065 }
30066 _ACEOF
30067 rm -f conftest.$ac_objext
30068 if { (ac_try="$ac_compile"
30069 case "(($ac_try" in
30070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30071   *) ac_try_echo=$ac_try;;
30072 esac
30073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30074   (eval "$ac_compile") 2>conftest.er1
30075   ac_status=$?
30076   grep -v '^ *+' conftest.er1 >conftest.err
30077   rm -f conftest.er1
30078   cat conftest.err >&5
30079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30080   (exit $ac_status); } && {
30081          test -z "$ac_c_werror_flag" ||
30082          test ! -s conftest.err
30083        } && test -s conftest.$ac_objext; then
30084   ac_cv_have_decl_strtoll=yes
30085 else
30086   echo "$as_me: failed program was:" >&5
30087 sed 's/^/| /' conftest.$ac_ext >&5
30088
30089         ac_cv_have_decl_strtoll=no
30090 fi
30091
30092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30093 fi
30094 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
30095 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6; }
30096 if test $ac_cv_have_decl_strtoll = yes; then
30097
30098 cat >>confdefs.h <<_ACEOF
30099 #define HAVE_DECL_STRTOLL 1
30100 _ACEOF
30101
30102
30103 else
30104   cat >>confdefs.h <<_ACEOF
30105 #define HAVE_DECL_STRTOLL 0
30106 _ACEOF
30107
30108
30109 fi
30110
30111
30112
30113
30114     fi
30115   fi
30116
30117
30118
30119   GNULIB_STRTOIMAX=1
30120
30121
30122
30123
30124
30125
30126
30127
30128
30129
30130 for ac_func in strtol
30131 do
30132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30133 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30136   echo $ECHO_N "(cached) $ECHO_C" >&6
30137 else
30138   cat >conftest.$ac_ext <<_ACEOF
30139 /* confdefs.h.  */
30140 _ACEOF
30141 cat confdefs.h >>conftest.$ac_ext
30142 cat >>conftest.$ac_ext <<_ACEOF
30143 /* end confdefs.h.  */
30144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30145    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30146 #define $ac_func innocuous_$ac_func
30147
30148 /* System header to define __stub macros and hopefully few prototypes,
30149     which can conflict with char $ac_func (); below.
30150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30151     <limits.h> exists even on freestanding compilers.  */
30152
30153 #ifdef __STDC__
30154 # include <limits.h>
30155 #else
30156 # include <assert.h>
30157 #endif
30158
30159 #undef $ac_func
30160
30161 /* Override any GCC internal prototype to avoid an error.
30162    Use char because int might match the return type of a GCC
30163    builtin and then its argument prototype would still apply.  */
30164 #ifdef __cplusplus
30165 extern "C"
30166 #endif
30167 char $ac_func ();
30168 /* The GNU C library defines this for functions which it implements
30169     to always fail with ENOSYS.  Some functions are actually named
30170     something starting with __ and the normal name is an alias.  */
30171 #if defined __stub_$ac_func || defined __stub___$ac_func
30172 choke me
30173 #endif
30174
30175 int
30176 main ()
30177 {
30178 return $ac_func ();
30179   ;
30180   return 0;
30181 }
30182 _ACEOF
30183 rm -f conftest.$ac_objext conftest$ac_exeext
30184 if { (ac_try="$ac_link"
30185 case "(($ac_try" in
30186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30187   *) ac_try_echo=$ac_try;;
30188 esac
30189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30190   (eval "$ac_link") 2>conftest.er1
30191   ac_status=$?
30192   grep -v '^ *+' conftest.er1 >conftest.err
30193   rm -f conftest.er1
30194   cat conftest.err >&5
30195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196   (exit $ac_status); } && {
30197          test -z "$ac_c_werror_flag" ||
30198          test ! -s conftest.err
30199        } && test -s conftest$ac_exeext &&
30200        $as_test_x conftest$ac_exeext; then
30201   eval "$as_ac_var=yes"
30202 else
30203   echo "$as_me: failed program was:" >&5
30204 sed 's/^/| /' conftest.$ac_ext >&5
30205
30206         eval "$as_ac_var=no"
30207 fi
30208
30209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30210       conftest$ac_exeext conftest.$ac_ext
30211 fi
30212 ac_res=`eval echo '${'$as_ac_var'}'`
30213                { echo "$as_me:$LINENO: result: $ac_res" >&5
30214 echo "${ECHO_T}$ac_res" >&6; }
30215 if test `eval echo '${'$as_ac_var'}'` = yes; then
30216   cat >>confdefs.h <<_ACEOF
30217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30218 _ACEOF
30219
30220 else
30221
30222     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30223
30224 fi
30225 done
30226
30227
30228
30229
30230
30231   if test "$ac_cv_type_long_long_int" = yes; then
30232
30233
30234
30235
30236
30237
30238
30239
30240 for ac_func in strtoll
30241 do
30242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30246   echo $ECHO_N "(cached) $ECHO_C" >&6
30247 else
30248   cat >conftest.$ac_ext <<_ACEOF
30249 /* confdefs.h.  */
30250 _ACEOF
30251 cat confdefs.h >>conftest.$ac_ext
30252 cat >>conftest.$ac_ext <<_ACEOF
30253 /* end confdefs.h.  */
30254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30255    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30256 #define $ac_func innocuous_$ac_func
30257
30258 /* System header to define __stub macros and hopefully few prototypes,
30259     which can conflict with char $ac_func (); below.
30260     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30261     <limits.h> exists even on freestanding compilers.  */
30262
30263 #ifdef __STDC__
30264 # include <limits.h>
30265 #else
30266 # include <assert.h>
30267 #endif
30268
30269 #undef $ac_func
30270
30271 /* Override any GCC internal prototype to avoid an error.
30272    Use char because int might match the return type of a GCC
30273    builtin and then its argument prototype would still apply.  */
30274 #ifdef __cplusplus
30275 extern "C"
30276 #endif
30277 char $ac_func ();
30278 /* The GNU C library defines this for functions which it implements
30279     to always fail with ENOSYS.  Some functions are actually named
30280     something starting with __ and the normal name is an alias.  */
30281 #if defined __stub_$ac_func || defined __stub___$ac_func
30282 choke me
30283 #endif
30284
30285 int
30286 main ()
30287 {
30288 return $ac_func ();
30289   ;
30290   return 0;
30291 }
30292 _ACEOF
30293 rm -f conftest.$ac_objext conftest$ac_exeext
30294 if { (ac_try="$ac_link"
30295 case "(($ac_try" in
30296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30297   *) ac_try_echo=$ac_try;;
30298 esac
30299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30300   (eval "$ac_link") 2>conftest.er1
30301   ac_status=$?
30302   grep -v '^ *+' conftest.er1 >conftest.err
30303   rm -f conftest.er1
30304   cat conftest.err >&5
30305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30306   (exit $ac_status); } && {
30307          test -z "$ac_c_werror_flag" ||
30308          test ! -s conftest.err
30309        } && test -s conftest$ac_exeext &&
30310        $as_test_x conftest$ac_exeext; then
30311   eval "$as_ac_var=yes"
30312 else
30313   echo "$as_me: failed program was:" >&5
30314 sed 's/^/| /' conftest.$ac_ext >&5
30315
30316         eval "$as_ac_var=no"
30317 fi
30318
30319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30320       conftest$ac_exeext conftest.$ac_ext
30321 fi
30322 ac_res=`eval echo '${'$as_ac_var'}'`
30323                { echo "$as_me:$LINENO: result: $ac_res" >&5
30324 echo "${ECHO_T}$ac_res" >&6; }
30325 if test `eval echo '${'$as_ac_var'}'` = yes; then
30326   cat >>confdefs.h <<_ACEOF
30327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30328 _ACEOF
30329
30330 else
30331
30332     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30333
30334 fi
30335 done
30336
30337
30338     if test $ac_cv_func_strtoll = no; then
30339
30340   :
30341
30342     fi
30343   fi
30344
30345
30346
30347
30348
30349
30350
30351
30352
30353
30354 for ac_func in strtoul
30355 do
30356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30357 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30359 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30360   echo $ECHO_N "(cached) $ECHO_C" >&6
30361 else
30362   cat >conftest.$ac_ext <<_ACEOF
30363 /* confdefs.h.  */
30364 _ACEOF
30365 cat confdefs.h >>conftest.$ac_ext
30366 cat >>conftest.$ac_ext <<_ACEOF
30367 /* end confdefs.h.  */
30368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30369    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30370 #define $ac_func innocuous_$ac_func
30371
30372 /* System header to define __stub macros and hopefully few prototypes,
30373     which can conflict with char $ac_func (); below.
30374     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30375     <limits.h> exists even on freestanding compilers.  */
30376
30377 #ifdef __STDC__
30378 # include <limits.h>
30379 #else
30380 # include <assert.h>
30381 #endif
30382
30383 #undef $ac_func
30384
30385 /* Override any GCC internal prototype to avoid an error.
30386    Use char because int might match the return type of a GCC
30387    builtin and then its argument prototype would still apply.  */
30388 #ifdef __cplusplus
30389 extern "C"
30390 #endif
30391 char $ac_func ();
30392 /* The GNU C library defines this for functions which it implements
30393     to always fail with ENOSYS.  Some functions are actually named
30394     something starting with __ and the normal name is an alias.  */
30395 #if defined __stub_$ac_func || defined __stub___$ac_func
30396 choke me
30397 #endif
30398
30399 int
30400 main ()
30401 {
30402 return $ac_func ();
30403   ;
30404   return 0;
30405 }
30406 _ACEOF
30407 rm -f conftest.$ac_objext conftest$ac_exeext
30408 if { (ac_try="$ac_link"
30409 case "(($ac_try" in
30410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30411   *) ac_try_echo=$ac_try;;
30412 esac
30413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30414   (eval "$ac_link") 2>conftest.er1
30415   ac_status=$?
30416   grep -v '^ *+' conftest.er1 >conftest.err
30417   rm -f conftest.er1
30418   cat conftest.err >&5
30419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30420   (exit $ac_status); } && {
30421          test -z "$ac_c_werror_flag" ||
30422          test ! -s conftest.err
30423        } && test -s conftest$ac_exeext &&
30424        $as_test_x conftest$ac_exeext; then
30425   eval "$as_ac_var=yes"
30426 else
30427   echo "$as_me: failed program was:" >&5
30428 sed 's/^/| /' conftest.$ac_ext >&5
30429
30430         eval "$as_ac_var=no"
30431 fi
30432
30433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30434       conftest$ac_exeext conftest.$ac_ext
30435 fi
30436 ac_res=`eval echo '${'$as_ac_var'}'`
30437                { echo "$as_me:$LINENO: result: $ac_res" >&5
30438 echo "${ECHO_T}$ac_res" >&6; }
30439 if test `eval echo '${'$as_ac_var'}'` = yes; then
30440   cat >>confdefs.h <<_ACEOF
30441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30442 _ACEOF
30443
30444 else
30445
30446     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30447
30448 fi
30449 done
30450
30451
30452
30453
30454
30455   if test "$ac_cv_type_unsigned_long_long_int" = yes; then
30456
30457
30458
30459
30460
30461
30462
30463
30464 for ac_func in strtoull
30465 do
30466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30467 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30470   echo $ECHO_N "(cached) $ECHO_C" >&6
30471 else
30472   cat >conftest.$ac_ext <<_ACEOF
30473 /* confdefs.h.  */
30474 _ACEOF
30475 cat confdefs.h >>conftest.$ac_ext
30476 cat >>conftest.$ac_ext <<_ACEOF
30477 /* end confdefs.h.  */
30478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30480 #define $ac_func innocuous_$ac_func
30481
30482 /* System header to define __stub macros and hopefully few prototypes,
30483     which can conflict with char $ac_func (); below.
30484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30485     <limits.h> exists even on freestanding compilers.  */
30486
30487 #ifdef __STDC__
30488 # include <limits.h>
30489 #else
30490 # include <assert.h>
30491 #endif
30492
30493 #undef $ac_func
30494
30495 /* Override any GCC internal prototype to avoid an error.
30496    Use char because int might match the return type of a GCC
30497    builtin and then its argument prototype would still apply.  */
30498 #ifdef __cplusplus
30499 extern "C"
30500 #endif
30501 char $ac_func ();
30502 /* The GNU C library defines this for functions which it implements
30503     to always fail with ENOSYS.  Some functions are actually named
30504     something starting with __ and the normal name is an alias.  */
30505 #if defined __stub_$ac_func || defined __stub___$ac_func
30506 choke me
30507 #endif
30508
30509 int
30510 main ()
30511 {
30512 return $ac_func ();
30513   ;
30514   return 0;
30515 }
30516 _ACEOF
30517 rm -f conftest.$ac_objext conftest$ac_exeext
30518 if { (ac_try="$ac_link"
30519 case "(($ac_try" in
30520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30521   *) ac_try_echo=$ac_try;;
30522 esac
30523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30524   (eval "$ac_link") 2>conftest.er1
30525   ac_status=$?
30526   grep -v '^ *+' conftest.er1 >conftest.err
30527   rm -f conftest.er1
30528   cat conftest.err >&5
30529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530   (exit $ac_status); } && {
30531          test -z "$ac_c_werror_flag" ||
30532          test ! -s conftest.err
30533        } && test -s conftest$ac_exeext &&
30534        $as_test_x conftest$ac_exeext; then
30535   eval "$as_ac_var=yes"
30536 else
30537   echo "$as_me: failed program was:" >&5
30538 sed 's/^/| /' conftest.$ac_ext >&5
30539
30540         eval "$as_ac_var=no"
30541 fi
30542
30543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30544       conftest$ac_exeext conftest.$ac_ext
30545 fi
30546 ac_res=`eval echo '${'$as_ac_var'}'`
30547                { echo "$as_me:$LINENO: result: $ac_res" >&5
30548 echo "${ECHO_T}$ac_res" >&6; }
30549 if test `eval echo '${'$as_ac_var'}'` = yes; then
30550   cat >>confdefs.h <<_ACEOF
30551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30552 _ACEOF
30553
30554 else
30555
30556     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30557
30558 fi
30559 done
30560
30561
30562     if test $ac_cv_func_strtoull = no; then
30563
30564   :
30565
30566     fi
30567   fi
30568
30569
30570
30571
30572
30573   { echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
30574 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6; }
30575 if test "${gl_cv_func_strtoumax_macro+set}" = set; then
30576   echo $ECHO_N "(cached) $ECHO_C" >&6
30577 else
30578   cat >conftest.$ac_ext <<_ACEOF
30579 /* confdefs.h.  */
30580 _ACEOF
30581 cat confdefs.h >>conftest.$ac_ext
30582 cat >>conftest.$ac_ext <<_ACEOF
30583 /* end confdefs.h.  */
30584 #include <inttypes.h>
30585 #ifdef strtoumax
30586  inttypes_h_defines_strtoumax
30587 #endif
30588 _ACEOF
30589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30590   $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
30591   gl_cv_func_strtoumax_macro=yes
30592 else
30593   gl_cv_func_strtoumax_macro=no
30594 fi
30595 rm -f conftest*
30596
30597 fi
30598 { echo "$as_me:$LINENO: result: $gl_cv_func_strtoumax_macro" >&5
30599 echo "${ECHO_T}$gl_cv_func_strtoumax_macro" >&6; }
30600
30601   if test "$gl_cv_func_strtoumax_macro" != yes; then
30602
30603
30604
30605
30606
30607
30608
30609
30610 for ac_func in strtoumax
30611 do
30612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30613 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30615 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30616   echo $ECHO_N "(cached) $ECHO_C" >&6
30617 else
30618   cat >conftest.$ac_ext <<_ACEOF
30619 /* confdefs.h.  */
30620 _ACEOF
30621 cat confdefs.h >>conftest.$ac_ext
30622 cat >>conftest.$ac_ext <<_ACEOF
30623 /* end confdefs.h.  */
30624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30625    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30626 #define $ac_func innocuous_$ac_func
30627
30628 /* System header to define __stub macros and hopefully few prototypes,
30629     which can conflict with char $ac_func (); below.
30630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30631     <limits.h> exists even on freestanding compilers.  */
30632
30633 #ifdef __STDC__
30634 # include <limits.h>
30635 #else
30636 # include <assert.h>
30637 #endif
30638
30639 #undef $ac_func
30640
30641 /* Override any GCC internal prototype to avoid an error.
30642    Use char because int might match the return type of a GCC
30643    builtin and then its argument prototype would still apply.  */
30644 #ifdef __cplusplus
30645 extern "C"
30646 #endif
30647 char $ac_func ();
30648 /* The GNU C library defines this for functions which it implements
30649     to always fail with ENOSYS.  Some functions are actually named
30650     something starting with __ and the normal name is an alias.  */
30651 #if defined __stub_$ac_func || defined __stub___$ac_func
30652 choke me
30653 #endif
30654
30655 int
30656 main ()
30657 {
30658 return $ac_func ();
30659   ;
30660   return 0;
30661 }
30662 _ACEOF
30663 rm -f conftest.$ac_objext conftest$ac_exeext
30664 if { (ac_try="$ac_link"
30665 case "(($ac_try" in
30666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30667   *) ac_try_echo=$ac_try;;
30668 esac
30669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30670   (eval "$ac_link") 2>conftest.er1
30671   ac_status=$?
30672   grep -v '^ *+' conftest.er1 >conftest.err
30673   rm -f conftest.er1
30674   cat conftest.err >&5
30675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30676   (exit $ac_status); } && {
30677          test -z "$ac_c_werror_flag" ||
30678          test ! -s conftest.err
30679        } && test -s conftest$ac_exeext &&
30680        $as_test_x conftest$ac_exeext; then
30681   eval "$as_ac_var=yes"
30682 else
30683   echo "$as_me: failed program was:" >&5
30684 sed 's/^/| /' conftest.$ac_ext >&5
30685
30686         eval "$as_ac_var=no"
30687 fi
30688
30689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30690       conftest$ac_exeext conftest.$ac_ext
30691 fi
30692 ac_res=`eval echo '${'$as_ac_var'}'`
30693                { echo "$as_me:$LINENO: result: $ac_res" >&5
30694 echo "${ECHO_T}$ac_res" >&6; }
30695 if test `eval echo '${'$as_ac_var'}'` = yes; then
30696   cat >>confdefs.h <<_ACEOF
30697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30698 _ACEOF
30699
30700 else
30701
30702     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30703
30704 fi
30705 done
30706
30707
30708     if test $ac_cv_func_strtoumax = no; then
30709
30710   { echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
30711 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6; }
30712 if test "${ac_cv_have_decl_strtoull+set}" = set; then
30713   echo $ECHO_N "(cached) $ECHO_C" >&6
30714 else
30715   cat >conftest.$ac_ext <<_ACEOF
30716 /* confdefs.h.  */
30717 _ACEOF
30718 cat confdefs.h >>conftest.$ac_ext
30719 cat >>conftest.$ac_ext <<_ACEOF
30720 /* end confdefs.h.  */
30721 $ac_includes_default
30722 int
30723 main ()
30724 {
30725 #ifndef strtoull
30726   (void) strtoull;
30727 #endif
30728
30729   ;
30730   return 0;
30731 }
30732 _ACEOF
30733 rm -f conftest.$ac_objext
30734 if { (ac_try="$ac_compile"
30735 case "(($ac_try" in
30736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30737   *) ac_try_echo=$ac_try;;
30738 esac
30739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30740   (eval "$ac_compile") 2>conftest.er1
30741   ac_status=$?
30742   grep -v '^ *+' conftest.er1 >conftest.err
30743   rm -f conftest.er1
30744   cat conftest.err >&5
30745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30746   (exit $ac_status); } && {
30747          test -z "$ac_c_werror_flag" ||
30748          test ! -s conftest.err
30749        } && test -s conftest.$ac_objext; then
30750   ac_cv_have_decl_strtoull=yes
30751 else
30752   echo "$as_me: failed program was:" >&5
30753 sed 's/^/| /' conftest.$ac_ext >&5
30754
30755         ac_cv_have_decl_strtoull=no
30756 fi
30757
30758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30759 fi
30760 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
30761 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6; }
30762 if test $ac_cv_have_decl_strtoull = yes; then
30763
30764 cat >>confdefs.h <<_ACEOF
30765 #define HAVE_DECL_STRTOULL 1
30766 _ACEOF
30767
30768
30769 else
30770   cat >>confdefs.h <<_ACEOF
30771 #define HAVE_DECL_STRTOULL 0
30772 _ACEOF
30773
30774
30775 fi
30776
30777
30778
30779
30780     fi
30781   fi
30782
30783
30784
30785   GNULIB_STRTOUMAX=1
30786
30787
30788
30789
30790
30791
30792
30793
30794   if test $ac_cv_func_lstat = yes; then
30795     HAVE_LSTAT=1
30796   else
30797     HAVE_LSTAT=0
30798   fi
30799
30800
30801       { echo "$as_me:$LINENO: checking whether mkdir is declared" >&5
30802 echo $ECHO_N "checking whether mkdir is declared... $ECHO_C" >&6; }
30803 if test "${ac_cv_have_decl_mkdir+set}" = set; then
30804   echo $ECHO_N "(cached) $ECHO_C" >&6
30805 else
30806   cat >conftest.$ac_ext <<_ACEOF
30807 /* confdefs.h.  */
30808 _ACEOF
30809 cat confdefs.h >>conftest.$ac_ext
30810 cat >>conftest.$ac_ext <<_ACEOF
30811 /* end confdefs.h.  */
30812 #include <sys/stat.h>
30813
30814 int
30815 main ()
30816 {
30817 #ifndef mkdir
30818   (void) mkdir;
30819 #endif
30820
30821   ;
30822   return 0;
30823 }
30824 _ACEOF
30825 rm -f conftest.$ac_objext
30826 if { (ac_try="$ac_compile"
30827 case "(($ac_try" in
30828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30829   *) ac_try_echo=$ac_try;;
30830 esac
30831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30832   (eval "$ac_compile") 2>conftest.er1
30833   ac_status=$?
30834   grep -v '^ *+' conftest.er1 >conftest.err
30835   rm -f conftest.er1
30836   cat conftest.err >&5
30837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838   (exit $ac_status); } && {
30839          test -z "$ac_c_werror_flag" ||
30840          test ! -s conftest.err
30841        } && test -s conftest.$ac_objext; then
30842   ac_cv_have_decl_mkdir=yes
30843 else
30844   echo "$as_me: failed program was:" >&5
30845 sed 's/^/| /' conftest.$ac_ext >&5
30846
30847         ac_cv_have_decl_mkdir=no
30848 fi
30849
30850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30851 fi
30852 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_mkdir" >&5
30853 echo "${ECHO_T}$ac_cv_have_decl_mkdir" >&6; }
30854 if test $ac_cv_have_decl_mkdir = yes; then
30855
30856 cat >>confdefs.h <<_ACEOF
30857 #define HAVE_DECL_MKDIR 1
30858 _ACEOF
30859
30860
30861 else
30862   cat >>confdefs.h <<_ACEOF
30863 #define HAVE_DECL_MKDIR 0
30864 _ACEOF
30865
30866
30867 for ac_header in io.h
30868 do
30869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30871   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30874   echo $ECHO_N "(cached) $ECHO_C" >&6
30875 fi
30876 ac_res=`eval echo '${'$as_ac_Header'}'`
30877                { echo "$as_me:$LINENO: result: $ac_res" >&5
30878 echo "${ECHO_T}$ac_res" >&6; }
30879 else
30880   # Is the header compilable?
30881 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30883 cat >conftest.$ac_ext <<_ACEOF
30884 /* confdefs.h.  */
30885 _ACEOF
30886 cat confdefs.h >>conftest.$ac_ext
30887 cat >>conftest.$ac_ext <<_ACEOF
30888 /* end confdefs.h.  */
30889 $ac_includes_default
30890 #include <$ac_header>
30891 _ACEOF
30892 rm -f conftest.$ac_objext
30893 if { (ac_try="$ac_compile"
30894 case "(($ac_try" in
30895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30896   *) ac_try_echo=$ac_try;;
30897 esac
30898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30899   (eval "$ac_compile") 2>conftest.er1
30900   ac_status=$?
30901   grep -v '^ *+' conftest.er1 >conftest.err
30902   rm -f conftest.er1
30903   cat conftest.err >&5
30904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30905   (exit $ac_status); } && {
30906          test -z "$ac_c_werror_flag" ||
30907          test ! -s conftest.err
30908        } && test -s conftest.$ac_objext; then
30909   ac_header_compiler=yes
30910 else
30911   echo "$as_me: failed program was:" >&5
30912 sed 's/^/| /' conftest.$ac_ext >&5
30913
30914         ac_header_compiler=no
30915 fi
30916
30917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30919 echo "${ECHO_T}$ac_header_compiler" >&6; }
30920
30921 # Is the header present?
30922 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30924 cat >conftest.$ac_ext <<_ACEOF
30925 /* confdefs.h.  */
30926 _ACEOF
30927 cat confdefs.h >>conftest.$ac_ext
30928 cat >>conftest.$ac_ext <<_ACEOF
30929 /* end confdefs.h.  */
30930 #include <$ac_header>
30931 _ACEOF
30932 if { (ac_try="$ac_cpp conftest.$ac_ext"
30933 case "(($ac_try" in
30934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30935   *) ac_try_echo=$ac_try;;
30936 esac
30937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30938   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30939   ac_status=$?
30940   grep -v '^ *+' conftest.er1 >conftest.err
30941   rm -f conftest.er1
30942   cat conftest.err >&5
30943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30944   (exit $ac_status); } >/dev/null && {
30945          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30946          test ! -s conftest.err
30947        }; then
30948   ac_header_preproc=yes
30949 else
30950   echo "$as_me: failed program was:" >&5
30951 sed 's/^/| /' conftest.$ac_ext >&5
30952
30953   ac_header_preproc=no
30954 fi
30955
30956 rm -f conftest.err conftest.$ac_ext
30957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30958 echo "${ECHO_T}$ac_header_preproc" >&6; }
30959
30960 # So?  What about this header?
30961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30962   yes:no: )
30963     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30964 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30965     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30966 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30967     ac_header_preproc=yes
30968     ;;
30969   no:yes:* )
30970     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30971 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30972     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30973 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30974     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30975 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30976     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30977 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30978     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30980     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30981 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30982     ( cat <<\_ASBOX
30983 ## ------------------------------ ##
30984 ## Report this to bug-tar@gnu.org ##
30985 ## ------------------------------ ##
30986 _ASBOX
30987      ) | sed "s/^/$as_me: WARNING:     /" >&2
30988     ;;
30989 esac
30990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30993   echo $ECHO_N "(cached) $ECHO_C" >&6
30994 else
30995   eval "$as_ac_Header=\$ac_header_preproc"
30996 fi
30997 ac_res=`eval echo '${'$as_ac_Header'}'`
30998                { echo "$as_me:$LINENO: result: $ac_res" >&5
30999 echo "${ECHO_T}$ac_res" >&6; }
31000
31001 fi
31002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31003   cat >>confdefs.h <<_ACEOF
31004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31005 _ACEOF
31006
31007 fi
31008
31009 done
31010
31011 fi
31012
31013
31014   if test $ac_cv_have_decl_mkdir = yes; then
31015     HAVE_DECL_MKDIR=1
31016   else
31017     HAVE_DECL_MKDIR=0
31018   fi
31019
31020   if test "$ac_cv_header_io_h" = yes; then
31021     HAVE_IO_H=1
31022   else
31023     HAVE_IO_H=0
31024   fi
31025
31026
31027
31028
31029
31030
31031
31032
31033
31034
31035
31036
31037
31038
31039
31040      if test $gl_cv_have_include_next = yes; then
31041        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
31042      else
31043        { echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
31044 echo $ECHO_N "checking absolute name of <sys/stat.h>... $ECHO_C" >&6; }
31045 if test "${gl_cv_next_sys_stat_h+set}" = set; then
31046   echo $ECHO_N "(cached) $ECHO_C" >&6
31047 else
31048
31049           if test $ac_cv_header_sys_stat_h = yes; then
31050             cat >conftest.$ac_ext <<_ACEOF
31051 /* confdefs.h.  */
31052 _ACEOF
31053 cat confdefs.h >>conftest.$ac_ext
31054 cat >>conftest.$ac_ext <<_ACEOF
31055 /* end confdefs.h.  */
31056 #include <sys/stat.h>
31057
31058 _ACEOF
31059                                     gl_cv_next_sys_stat_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31060                sed -n '\#/sys/stat.h#{
31061                  s#.*"\(.*/sys/stat.h\)".*#\1#
31062                  s#^/[^/]#//&#
31063                  p
31064                  q
31065                }'`'"'
31066           else
31067             gl_cv_next_sys_stat_h='<'sys/stat.h'>'
31068           fi
31069
31070 fi
31071 { echo "$as_me:$LINENO: result: $gl_cv_next_sys_stat_h" >&5
31072 echo "${ECHO_T}$gl_cv_next_sys_stat_h" >&6; }
31073      fi
31074      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
31075
31076
31077
31078   SYS_STAT_H='sys/stat.h'
31079
31080
31081   { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
31082 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
31083 if test -z "$MKDIR_P"; then
31084   if test "${ac_cv_path_mkdir+set}" = set; then
31085   echo $ECHO_N "(cached) $ECHO_C" >&6
31086 else
31087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31088 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
31089 do
31090   IFS=$as_save_IFS
31091   test -z "$as_dir" && as_dir=.
31092   for ac_prog in mkdir gmkdir; do
31093          for ac_exec_ext in '' $ac_executable_extensions; do
31094            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
31095            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
31096              'mkdir (GNU coreutils) '* | \
31097              'mkdir (coreutils) '* | \
31098              'mkdir (fileutils) '4.1*)
31099                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
31100                break 3;;
31101            esac
31102          done
31103        done
31104 done
31105 IFS=$as_save_IFS
31106
31107 fi
31108
31109   if test "${ac_cv_path_mkdir+set}" = set; then
31110     MKDIR_P="$ac_cv_path_mkdir -p"
31111   else
31112     # As a last resort, use the slow shell script.  Don't cache a
31113     # value for MKDIR_P within a source directory, because that will
31114     # break other packages using the cache if that directory is
31115     # removed, or if the value is a relative name.
31116     test -d ./--version && rmdir ./--version
31117     MKDIR_P="$ac_install_sh -d"
31118   fi
31119 fi
31120 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
31121 echo "${ECHO_T}$MKDIR_P" >&6; }
31122
31123
31124
31125
31126   { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
31127 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
31128 if test -z "$MKDIR_P"; then
31129   if test "${ac_cv_path_mkdir+set}" = set; then
31130   echo $ECHO_N "(cached) $ECHO_C" >&6
31131 else
31132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31133 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
31134 do
31135   IFS=$as_save_IFS
31136   test -z "$as_dir" && as_dir=.
31137   for ac_prog in mkdir gmkdir; do
31138          for ac_exec_ext in '' $ac_executable_extensions; do
31139            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
31140            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
31141              'mkdir (GNU coreutils) '* | \
31142              'mkdir (coreutils) '* | \
31143              'mkdir (fileutils) '4.1*)
31144                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
31145                break 3;;
31146            esac
31147          done
31148        done
31149 done
31150 IFS=$as_save_IFS
31151
31152 fi
31153
31154   if test "${ac_cv_path_mkdir+set}" = set; then
31155     MKDIR_P="$ac_cv_path_mkdir -p"
31156   else
31157     # As a last resort, use the slow shell script.  Don't cache a
31158     # value for MKDIR_P within a source directory, because that will
31159     # break other packages using the cache if that directory is
31160     # removed, or if the value is a relative name.
31161     test -d ./--version && rmdir ./--version
31162     MKDIR_P="$ac_install_sh -d"
31163   fi
31164 fi
31165 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
31166 echo "${ECHO_T}$MKDIR_P" >&6; }
31167
31168
31169
31170
31171
31172
31173
31174
31175   if test $ac_cv_header_sysexits_h = yes; then
31176     HAVE_SYSEXITS_H=1
31177
31178
31179
31180
31181
31182
31183
31184
31185
31186
31187      if test $gl_cv_have_include_next = yes; then
31188        gl_cv_next_sysexits_h='<'sysexits.h'>'
31189      else
31190        { echo "$as_me:$LINENO: checking absolute name of <sysexits.h>" >&5
31191 echo $ECHO_N "checking absolute name of <sysexits.h>... $ECHO_C" >&6; }
31192 if test "${gl_cv_next_sysexits_h+set}" = set; then
31193   echo $ECHO_N "(cached) $ECHO_C" >&6
31194 else
31195
31196           if test $ac_cv_header_sysexits_h = yes; then
31197             cat >conftest.$ac_ext <<_ACEOF
31198 /* confdefs.h.  */
31199 _ACEOF
31200 cat confdefs.h >>conftest.$ac_ext
31201 cat >>conftest.$ac_ext <<_ACEOF
31202 /* end confdefs.h.  */
31203 #include <sysexits.h>
31204
31205 _ACEOF
31206                                     gl_cv_next_sysexits_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31207                sed -n '\#/sysexits.h#{
31208                  s#.*"\(.*/sysexits.h\)".*#\1#
31209                  s#^/[^/]#//&#
31210                  p
31211                  q
31212                }'`'"'
31213           else
31214             gl_cv_next_sysexits_h='<'sysexits.h'>'
31215           fi
31216
31217 fi
31218 { echo "$as_me:$LINENO: result: $gl_cv_next_sysexits_h" >&5
31219 echo "${ECHO_T}$gl_cv_next_sysexits_h" >&6; }
31220      fi
31221      NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
31222
31223
31224
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 <sysexits.h>
31232 int
31233 main ()
31234 {
31235 switch (0)
31236        {
31237        case EX_OK:
31238        case EX_USAGE:
31239        case EX_DATAERR:
31240        case EX_NOINPUT:
31241        case EX_NOUSER:
31242        case EX_NOHOST:
31243        case EX_UNAVAILABLE:
31244        case EX_SOFTWARE:
31245        case EX_OSERR:
31246        case EX_OSFILE:
31247        case EX_CANTCREAT:
31248        case EX_IOERR:
31249        case EX_TEMPFAIL:
31250        case EX_PROTOCOL:
31251        case EX_NOPERM:
31252        case EX_CONFIG:
31253          break;
31254        }
31255
31256   ;
31257   return 0;
31258 }
31259 _ACEOF
31260 rm -f conftest.$ac_objext
31261 if { (ac_try="$ac_compile"
31262 case "(($ac_try" in
31263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31264   *) ac_try_echo=$ac_try;;
31265 esac
31266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31267   (eval "$ac_compile") 2>conftest.er1
31268   ac_status=$?
31269   grep -v '^ *+' conftest.er1 >conftest.err
31270   rm -f conftest.er1
31271   cat conftest.err >&5
31272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31273   (exit $ac_status); } && {
31274          test -z "$ac_c_werror_flag" ||
31275          test ! -s conftest.err
31276        } && test -s conftest.$ac_objext; then
31277   SYSEXITS_H=
31278 else
31279   echo "$as_me: failed program was:" >&5
31280 sed 's/^/| /' conftest.$ac_ext >&5
31281
31282         SYSEXITS_H=sysexits.h
31283 fi
31284
31285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31286   else
31287     HAVE_SYSEXITS_H=0
31288     SYSEXITS_H=sysexits.h
31289   fi
31290
31291
31292
31293
31294
31295
31296
31297
31298
31299
31300
31301
31302
31303   gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
31304
31305
31306   :
31307
31308
31309
31310
31311
31312
31313
31314
31315
31316
31317
31318   { echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
31319 echo $ECHO_N "checking whether localtime_r is compatible with its POSIX signature... $ECHO_C" >&6; }
31320 if test "${gl_cv_time_r_posix+set}" = set; then
31321   echo $ECHO_N "(cached) $ECHO_C" >&6
31322 else
31323   cat >conftest.$ac_ext <<_ACEOF
31324 /* confdefs.h.  */
31325 _ACEOF
31326 cat confdefs.h >>conftest.$ac_ext
31327 cat >>conftest.$ac_ext <<_ACEOF
31328 /* end confdefs.h.  */
31329 #include <time.h>
31330 int
31331 main ()
31332 {
31333 /* We don't need to append 'restrict's to the argument types,
31334            even though the POSIX signature has the 'restrict's,
31335            since C99 says they can't affect type compatibility.  */
31336         struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
31337         if (ptr) return 0;
31338         /* Check the return type is a pointer.  On HP-UX 10 it is 'int'.  */
31339         *localtime_r (0, 0);
31340   ;
31341   return 0;
31342 }
31343 _ACEOF
31344 rm -f conftest.$ac_objext
31345 if { (ac_try="$ac_compile"
31346 case "(($ac_try" in
31347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31348   *) ac_try_echo=$ac_try;;
31349 esac
31350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31351   (eval "$ac_compile") 2>conftest.er1
31352   ac_status=$?
31353   grep -v '^ *+' conftest.er1 >conftest.err
31354   rm -f conftest.er1
31355   cat conftest.err >&5
31356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357   (exit $ac_status); } && {
31358          test -z "$ac_c_werror_flag" ||
31359          test ! -s conftest.err
31360        } && test -s conftest.$ac_objext; then
31361   gl_cv_time_r_posix=yes
31362 else
31363   echo "$as_me: failed program was:" >&5
31364 sed 's/^/| /' conftest.$ac_ext >&5
31365
31366         gl_cv_time_r_posix=no
31367 fi
31368
31369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31370 fi
31371 { echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
31372 echo "${ECHO_T}$gl_cv_time_r_posix" >&6; }
31373   if test $gl_cv_time_r_posix = yes; then
31374     REPLACE_LOCALTIME_R=0
31375   else
31376     REPLACE_LOCALTIME_R=1
31377
31378
31379
31380
31381
31382
31383
31384   gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
31385
31386
31387   :
31388
31389   fi
31390
31391
31392
31393
31394
31395
31396
31397
31398
31399
31400
31401
31402
31403
31404
31405
31406
31407      if test $gl_cv_have_include_next = yes; then
31408        gl_cv_next_unistd_h='<'unistd.h'>'
31409      else
31410        { echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
31411 echo $ECHO_N "checking absolute name of <unistd.h>... $ECHO_C" >&6; }
31412 if test "${gl_cv_next_unistd_h+set}" = set; then
31413   echo $ECHO_N "(cached) $ECHO_C" >&6
31414 else
31415
31416           if test $ac_cv_header_unistd_h = yes; then
31417             cat >conftest.$ac_ext <<_ACEOF
31418 /* confdefs.h.  */
31419 _ACEOF
31420 cat confdefs.h >>conftest.$ac_ext
31421 cat >>conftest.$ac_ext <<_ACEOF
31422 /* end confdefs.h.  */
31423 #include <unistd.h>
31424
31425 _ACEOF
31426                                     gl_cv_next_unistd_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31427                sed -n '\#/unistd.h#{
31428                  s#.*"\(.*/unistd.h\)".*#\1#
31429                  s#^/[^/]#//&#
31430                  p
31431                  q
31432                }'`'"'
31433           else
31434             gl_cv_next_unistd_h='<'unistd.h'>'
31435           fi
31436
31437 fi
31438 { echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
31439 echo "${ECHO_T}$gl_cv_next_unistd_h" >&6; }
31440      fi
31441      NEXT_UNISTD_H=$gl_cv_next_unistd_h
31442
31443
31444
31445
31446
31447
31448
31449
31450
31451
31452   if test $ac_cv_header_unistd_h = yes; then
31453     HAVE_UNISTD_H=1
31454   else
31455     HAVE_UNISTD_H=0
31456   fi
31457
31458
31459
31460
31461
31462
31463
31464
31465
31466
31467
31468
31469
31470
31471
31472
31473   gl_LIBOBJS="$gl_LIBOBJS dup-safer.$ac_objext"
31474
31475
31476
31477
31478
31479
31480
31481
31482   gl_LIBOBJS="$gl_LIBOBJS fd-safer.$ac_objext"
31483
31484
31485
31486
31487
31488
31489
31490
31491   gl_LIBOBJS="$gl_LIBOBJS pipe-safer.$ac_objext"
31492
31493
31494
31495
31496
31497
31498
31499
31500
31501
31502
31503
31504
31505
31506
31507
31508
31509
31510   gl_LIBOBJS="$gl_LIBOBJS unlinkdir.$ac_objext"
31511
31512
31513   # The Hurd, the Linux kernel, the FreeBSD kernel version 2.2 and later,
31514   # and Cygwin never let anyone (even root) unlink directories.
31515   # If anyone knows of another system for which unlink can never
31516   # remove a directory, please report it to <bug-coreutils@gnu.org>.
31517   # Unfortunately this is difficult to test for, since it requires root access
31518   # and might create garbage in the file system,
31519   # so the code below simply relies on the kernel name and version number.
31520   case $host in
31521   *-*-gnu[0-9]* | \
31522   *-*-linux-* | *-*-linux | \
31523   *-*-freebsd2.2* | *-*-freebsd[3-9]* | *-*-freebsd[1-9][0-9]* | \
31524   *-cygwin)
31525
31526 cat >>confdefs.h <<\_ACEOF
31527 #define UNLINK_CANNOT_UNLINK_DIR 1
31528 _ACEOF
31529 ;;
31530   esac
31531
31532
31533
31534 cat >>confdefs.h <<\_ACEOF
31535 #define USE_UNLOCKED_IO 1
31536 _ACEOF
31537
31538
31539
31540
31541
31542
31543
31544
31545
31546
31547
31548
31549
31550
31551
31552
31553
31554
31555
31556
31557
31558
31559
31560
31561
31562
31563
31564
31565
31566
31567
31568
31569
31570
31571
31572
31573
31574
31575
31576
31577
31578
31579
31580
31581
31582
31583
31584
31585
31586
31587
31588
31589
31590
31591
31592
31593
31594
31595
31596
31597 for ac_func in unsetenv
31598 do
31599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31600 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31602 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31603   echo $ECHO_N "(cached) $ECHO_C" >&6
31604 else
31605   cat >conftest.$ac_ext <<_ACEOF
31606 /* confdefs.h.  */
31607 _ACEOF
31608 cat confdefs.h >>conftest.$ac_ext
31609 cat >>conftest.$ac_ext <<_ACEOF
31610 /* end confdefs.h.  */
31611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31613 #define $ac_func innocuous_$ac_func
31614
31615 /* System header to define __stub macros and hopefully few prototypes,
31616     which can conflict with char $ac_func (); below.
31617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31618     <limits.h> exists even on freestanding compilers.  */
31619
31620 #ifdef __STDC__
31621 # include <limits.h>
31622 #else
31623 # include <assert.h>
31624 #endif
31625
31626 #undef $ac_func
31627
31628 /* Override any GCC internal prototype to avoid an error.
31629    Use char because int might match the return type of a GCC
31630    builtin and then its argument prototype would still apply.  */
31631 #ifdef __cplusplus
31632 extern "C"
31633 #endif
31634 char $ac_func ();
31635 /* The GNU C library defines this for functions which it implements
31636     to always fail with ENOSYS.  Some functions are actually named
31637     something starting with __ and the normal name is an alias.  */
31638 #if defined __stub_$ac_func || defined __stub___$ac_func
31639 choke me
31640 #endif
31641
31642 int
31643 main ()
31644 {
31645 return $ac_func ();
31646   ;
31647   return 0;
31648 }
31649 _ACEOF
31650 rm -f conftest.$ac_objext conftest$ac_exeext
31651 if { (ac_try="$ac_link"
31652 case "(($ac_try" in
31653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31654   *) ac_try_echo=$ac_try;;
31655 esac
31656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31657   (eval "$ac_link") 2>conftest.er1
31658   ac_status=$?
31659   grep -v '^ *+' conftest.er1 >conftest.err
31660   rm -f conftest.er1
31661   cat conftest.err >&5
31662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31663   (exit $ac_status); } && {
31664          test -z "$ac_c_werror_flag" ||
31665          test ! -s conftest.err
31666        } && test -s conftest$ac_exeext &&
31667        $as_test_x conftest$ac_exeext; then
31668   eval "$as_ac_var=yes"
31669 else
31670   echo "$as_me: failed program was:" >&5
31671 sed 's/^/| /' conftest.$ac_ext >&5
31672
31673         eval "$as_ac_var=no"
31674 fi
31675
31676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31677       conftest$ac_exeext conftest.$ac_ext
31678 fi
31679 ac_res=`eval echo '${'$as_ac_var'}'`
31680                { echo "$as_me:$LINENO: result: $ac_res" >&5
31681 echo "${ECHO_T}$ac_res" >&6; }
31682 if test `eval echo '${'$as_ac_var'}'` = yes; then
31683   cat >>confdefs.h <<_ACEOF
31684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31685 _ACEOF
31686
31687 fi
31688 done
31689
31690   if test $ac_cv_func_unsetenv = no; then
31691     HAVE_UNSETENV=0
31692
31693
31694
31695
31696
31697
31698
31699   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
31700
31701
31702
31703
31704
31705
31706
31707
31708
31709
31710   else
31711     { echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
31712 echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6; }
31713 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
31714   echo $ECHO_N "(cached) $ECHO_C" >&6
31715 else
31716   cat >conftest.$ac_ext <<_ACEOF
31717 /* confdefs.h.  */
31718 _ACEOF
31719 cat confdefs.h >>conftest.$ac_ext
31720 cat >>conftest.$ac_ext <<_ACEOF
31721 /* end confdefs.h.  */
31722 #include <stdlib.h>
31723 extern
31724 #ifdef __cplusplus
31725 "C"
31726 #endif
31727 #if defined(__STDC__) || defined(__cplusplus)
31728 int unsetenv (const char *name);
31729 #else
31730 int unsetenv();
31731 #endif
31732
31733 int
31734 main ()
31735 {
31736
31737   ;
31738   return 0;
31739 }
31740 _ACEOF
31741 rm -f conftest.$ac_objext
31742 if { (ac_try="$ac_compile"
31743 case "(($ac_try" in
31744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31745   *) ac_try_echo=$ac_try;;
31746 esac
31747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31748   (eval "$ac_compile") 2>conftest.er1
31749   ac_status=$?
31750   grep -v '^ *+' conftest.er1 >conftest.err
31751   rm -f conftest.er1
31752   cat conftest.err >&5
31753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31754   (exit $ac_status); } && {
31755          test -z "$ac_c_werror_flag" ||
31756          test ! -s conftest.err
31757        } && test -s conftest.$ac_objext; then
31758   gt_cv_func_unsetenv_ret='int'
31759 else
31760   echo "$as_me: failed program was:" >&5
31761 sed 's/^/| /' conftest.$ac_ext >&5
31762
31763         gt_cv_func_unsetenv_ret='void'
31764 fi
31765
31766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31767 fi
31768 { echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
31769 echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6; }
31770     if test $gt_cv_func_unsetenv_ret = 'void'; then
31771       VOID_UNSETENV=1
31772     fi
31773   fi
31774
31775
31776
31777   GNULIB_UNSETENV=1
31778
31779
31780
31781   if test $ac_cv_func_utime_null = no; then
31782
31783
31784
31785
31786
31787
31788
31789   gl_LIBOBJS="$gl_LIBOBJS utime.$ac_objext"
31790
31791
31792 cat >>confdefs.h <<\_ACEOF
31793 #define utime rpl_utime
31794 _ACEOF
31795
31796
31797
31798
31799
31800
31801
31802
31803
31804   { echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
31805 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6; }
31806 if test "${ac_cv_func_utimes_null+set}" = set; then
31807   echo $ECHO_N "(cached) $ECHO_C" >&6
31808 else
31809   rm -f conftest.data; > conftest.data
31810 if test "$cross_compiling" = yes; then
31811   ac_cv_func_utimes_null=no
31812 else
31813   cat >conftest.$ac_ext <<_ACEOF
31814 /* confdefs.h.  */
31815 _ACEOF
31816 cat confdefs.h >>conftest.$ac_ext
31817 cat >>conftest.$ac_ext <<_ACEOF
31818 /* end confdefs.h.  */
31819
31820 /* In case stat has been defined to rpl_stat, undef it here.  */
31821 #undef stat
31822 #include <sys/types.h>
31823 #include <sys/stat.h>
31824 #include <sys/time.h>
31825 int
31826 main () {
31827 struct stat s, t;
31828 return ! (stat ("conftest.data", &s) == 0
31829           && utimes ("conftest.data", 0) == 0
31830           && stat ("conftest.data", &t) == 0
31831           && t.st_mtime >= s.st_mtime
31832           && t.st_mtime - s.st_mtime < 120));
31833 }
31834 _ACEOF
31835 rm -f conftest$ac_exeext
31836 if { (ac_try="$ac_link"
31837 case "(($ac_try" in
31838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31839   *) ac_try_echo=$ac_try;;
31840 esac
31841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31842   (eval "$ac_link") 2>&5
31843   ac_status=$?
31844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31845   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31846   { (case "(($ac_try" in
31847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31848   *) ac_try_echo=$ac_try;;
31849 esac
31850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31851   (eval "$ac_try") 2>&5
31852   ac_status=$?
31853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31854   (exit $ac_status); }; }; then
31855   ac_cv_func_utimes_null=yes
31856 else
31857   echo "$as_me: program exited with status $ac_status" >&5
31858 echo "$as_me: failed program was:" >&5
31859 sed 's/^/| /' conftest.$ac_ext >&5
31860
31861 ( exit $ac_status )
31862 ac_cv_func_utimes_null=no
31863 fi
31864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31865 fi
31866
31867
31868 rm -f core core.* *.core
31869 fi
31870 { echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
31871 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6; }
31872
31873     if test $ac_cv_func_utimes_null = yes; then
31874
31875 cat >>confdefs.h <<\_ACEOF
31876 #define HAVE_UTIMES_NULL 1
31877 _ACEOF
31878
31879     fi
31880
31881
31882
31883   fi
31884
31885
31886
31887
31888
31889
31890
31891
31892
31893   gl_LIBOBJS="$gl_LIBOBJS utimens.$ac_objext"
31894
31895
31896
31897
31898
31899
31900
31901
31902
31903
31904
31905
31906
31907
31908
31909
31910
31911
31912
31913
31914
31915   if test $ac_cv_func_vasnprintf = no; then
31916
31917
31918
31919
31920
31921
31922
31923
31924
31925
31926
31927
31928
31929
31930   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
31931
31932
31933
31934
31935
31936
31937
31938
31939   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
31940
31941
31942
31943
31944
31945
31946
31947
31948   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
31949
31950
31951
31952
31953
31954
31955
31956
31957   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
31958
31959   if test $ac_cv_func_vasnprintf = yes; then
31960
31961 cat >>confdefs.h <<\_ACEOF
31962 #define REPLACE_VASNPRINTF 1
31963 _ACEOF
31964
31965   fi
31966
31967
31968
31969
31970
31971
31972
31973
31974
31975
31976   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
31977 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
31978 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
31979   echo $ECHO_N "(cached) $ECHO_C" >&6
31980 else
31981   cat >conftest.$ac_ext <<_ACEOF
31982 /* confdefs.h.  */
31983 _ACEOF
31984 cat confdefs.h >>conftest.$ac_ext
31985 cat >>conftest.$ac_ext <<_ACEOF
31986 /* end confdefs.h.  */
31987 $ac_includes_default
31988 typedef ptrdiff_t ac__type_new_;
31989 int
31990 main ()
31991 {
31992 if ((ac__type_new_ *) 0)
31993   return 0;
31994 if (sizeof (ac__type_new_))
31995   return 0;
31996   ;
31997   return 0;
31998 }
31999 _ACEOF
32000 rm -f conftest.$ac_objext
32001 if { (ac_try="$ac_compile"
32002 case "(($ac_try" in
32003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32004   *) ac_try_echo=$ac_try;;
32005 esac
32006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32007   (eval "$ac_compile") 2>conftest.er1
32008   ac_status=$?
32009   grep -v '^ *+' conftest.er1 >conftest.err
32010   rm -f conftest.er1
32011   cat conftest.err >&5
32012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32013   (exit $ac_status); } && {
32014          test -z "$ac_c_werror_flag" ||
32015          test ! -s conftest.err
32016        } && test -s conftest.$ac_objext; then
32017   ac_cv_type_ptrdiff_t=yes
32018 else
32019   echo "$as_me: failed program was:" >&5
32020 sed 's/^/| /' conftest.$ac_ext >&5
32021
32022         ac_cv_type_ptrdiff_t=no
32023 fi
32024
32025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32026 fi
32027 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32028 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
32029 if test $ac_cv_type_ptrdiff_t = yes; then
32030   :
32031 else
32032
32033 cat >>confdefs.h <<\_ACEOF
32034 #define ptrdiff_t long
32035 _ACEOF
32036
32037
32038 fi
32039
32040
32041
32042
32043
32044
32045
32046
32047
32048
32049 for ac_func in snprintf wcslen
32050 do
32051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32055   echo $ECHO_N "(cached) $ECHO_C" >&6
32056 else
32057   cat >conftest.$ac_ext <<_ACEOF
32058 /* confdefs.h.  */
32059 _ACEOF
32060 cat confdefs.h >>conftest.$ac_ext
32061 cat >>conftest.$ac_ext <<_ACEOF
32062 /* end confdefs.h.  */
32063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32064    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32065 #define $ac_func innocuous_$ac_func
32066
32067 /* System header to define __stub macros and hopefully few prototypes,
32068     which can conflict with char $ac_func (); below.
32069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32070     <limits.h> exists even on freestanding compilers.  */
32071
32072 #ifdef __STDC__
32073 # include <limits.h>
32074 #else
32075 # include <assert.h>
32076 #endif
32077
32078 #undef $ac_func
32079
32080 /* Override any GCC internal prototype to avoid an error.
32081    Use char because int might match the return type of a GCC
32082    builtin and then its argument prototype would still apply.  */
32083 #ifdef __cplusplus
32084 extern "C"
32085 #endif
32086 char $ac_func ();
32087 /* The GNU C library defines this for functions which it implements
32088     to always fail with ENOSYS.  Some functions are actually named
32089     something starting with __ and the normal name is an alias.  */
32090 #if defined __stub_$ac_func || defined __stub___$ac_func
32091 choke me
32092 #endif
32093
32094 int
32095 main ()
32096 {
32097 return $ac_func ();
32098   ;
32099   return 0;
32100 }
32101 _ACEOF
32102 rm -f conftest.$ac_objext conftest$ac_exeext
32103 if { (ac_try="$ac_link"
32104 case "(($ac_try" in
32105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32106   *) ac_try_echo=$ac_try;;
32107 esac
32108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32109   (eval "$ac_link") 2>conftest.er1
32110   ac_status=$?
32111   grep -v '^ *+' conftest.er1 >conftest.err
32112   rm -f conftest.er1
32113   cat conftest.err >&5
32114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32115   (exit $ac_status); } && {
32116          test -z "$ac_c_werror_flag" ||
32117          test ! -s conftest.err
32118        } && test -s conftest$ac_exeext &&
32119        $as_test_x conftest$ac_exeext; then
32120   eval "$as_ac_var=yes"
32121 else
32122   echo "$as_me: failed program was:" >&5
32123 sed 's/^/| /' conftest.$ac_ext >&5
32124
32125         eval "$as_ac_var=no"
32126 fi
32127
32128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32129       conftest$ac_exeext conftest.$ac_ext
32130 fi
32131 ac_res=`eval echo '${'$as_ac_var'}'`
32132                { echo "$as_me:$LINENO: result: $ac_res" >&5
32133 echo "${ECHO_T}$ac_res" >&6; }
32134 if test `eval echo '${'$as_ac_var'}'` = yes; then
32135   cat >>confdefs.h <<_ACEOF
32136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32137 _ACEOF
32138
32139 fi
32140 done
32141
32142       { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
32143 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
32144 if test "${ac_cv_have_decl__snprintf+set}" = set; then
32145   echo $ECHO_N "(cached) $ECHO_C" >&6
32146 else
32147   cat >conftest.$ac_ext <<_ACEOF
32148 /* confdefs.h.  */
32149 _ACEOF
32150 cat confdefs.h >>conftest.$ac_ext
32151 cat >>conftest.$ac_ext <<_ACEOF
32152 /* end confdefs.h.  */
32153 #include <stdio.h>
32154
32155 int
32156 main ()
32157 {
32158 #ifndef _snprintf
32159   (void) _snprintf;
32160 #endif
32161
32162   ;
32163   return 0;
32164 }
32165 _ACEOF
32166 rm -f conftest.$ac_objext
32167 if { (ac_try="$ac_compile"
32168 case "(($ac_try" in
32169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32170   *) ac_try_echo=$ac_try;;
32171 esac
32172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32173   (eval "$ac_compile") 2>conftest.er1
32174   ac_status=$?
32175   grep -v '^ *+' conftest.er1 >conftest.err
32176   rm -f conftest.er1
32177   cat conftest.err >&5
32178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32179   (exit $ac_status); } && {
32180          test -z "$ac_c_werror_flag" ||
32181          test ! -s conftest.err
32182        } && test -s conftest.$ac_objext; then
32183   ac_cv_have_decl__snprintf=yes
32184 else
32185   echo "$as_me: failed program was:" >&5
32186 sed 's/^/| /' conftest.$ac_ext >&5
32187
32188         ac_cv_have_decl__snprintf=no
32189 fi
32190
32191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32192 fi
32193 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
32194 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
32195 if test $ac_cv_have_decl__snprintf = yes; then
32196
32197 cat >>confdefs.h <<_ACEOF
32198 #define HAVE_DECL__SNPRINTF 1
32199 _ACEOF
32200
32201
32202 else
32203   cat >>confdefs.h <<_ACEOF
32204 #define HAVE_DECL__SNPRINTF 0
32205 _ACEOF
32206
32207
32208 fi
32209
32210
32211
32212
32213
32214
32215   fi
32216
32217
32218
32219
32220 for ac_func in vsnprintf
32221 do
32222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32223 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32225 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32226   echo $ECHO_N "(cached) $ECHO_C" >&6
32227 else
32228   cat >conftest.$ac_ext <<_ACEOF
32229 /* confdefs.h.  */
32230 _ACEOF
32231 cat confdefs.h >>conftest.$ac_ext
32232 cat >>conftest.$ac_ext <<_ACEOF
32233 /* end confdefs.h.  */
32234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32236 #define $ac_func innocuous_$ac_func
32237
32238 /* System header to define __stub macros and hopefully few prototypes,
32239     which can conflict with char $ac_func (); below.
32240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32241     <limits.h> exists even on freestanding compilers.  */
32242
32243 #ifdef __STDC__
32244 # include <limits.h>
32245 #else
32246 # include <assert.h>
32247 #endif
32248
32249 #undef $ac_func
32250
32251 /* Override any GCC internal prototype to avoid an error.
32252    Use char because int might match the return type of a GCC
32253    builtin and then its argument prototype would still apply.  */
32254 #ifdef __cplusplus
32255 extern "C"
32256 #endif
32257 char $ac_func ();
32258 /* The GNU C library defines this for functions which it implements
32259     to always fail with ENOSYS.  Some functions are actually named
32260     something starting with __ and the normal name is an alias.  */
32261 #if defined __stub_$ac_func || defined __stub___$ac_func
32262 choke me
32263 #endif
32264
32265 int
32266 main ()
32267 {
32268 return $ac_func ();
32269   ;
32270   return 0;
32271 }
32272 _ACEOF
32273 rm -f conftest.$ac_objext conftest$ac_exeext
32274 if { (ac_try="$ac_link"
32275 case "(($ac_try" in
32276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32277   *) ac_try_echo=$ac_try;;
32278 esac
32279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32280   (eval "$ac_link") 2>conftest.er1
32281   ac_status=$?
32282   grep -v '^ *+' conftest.er1 >conftest.err
32283   rm -f conftest.er1
32284   cat conftest.err >&5
32285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286   (exit $ac_status); } && {
32287          test -z "$ac_c_werror_flag" ||
32288          test ! -s conftest.err
32289        } && test -s conftest$ac_exeext &&
32290        $as_test_x conftest$ac_exeext; then
32291   eval "$as_ac_var=yes"
32292 else
32293   echo "$as_me: failed program was:" >&5
32294 sed 's/^/| /' conftest.$ac_ext >&5
32295
32296         eval "$as_ac_var=no"
32297 fi
32298
32299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32300       conftest$ac_exeext conftest.$ac_ext
32301 fi
32302 ac_res=`eval echo '${'$as_ac_var'}'`
32303                { echo "$as_me:$LINENO: result: $ac_res" >&5
32304 echo "${ECHO_T}$ac_res" >&6; }
32305 if test `eval echo '${'$as_ac_var'}'` = yes; then
32306   cat >>confdefs.h <<_ACEOF
32307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32308 _ACEOF
32309
32310 fi
32311 done
32312
32313   if test $ac_cv_func_vsnprintf = no; then
32314
32315
32316
32317
32318
32319
32320
32321
32322
32323   gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
32324
32325   if test $ac_cv_func_vsnprintf = yes; then
32326     REPLACE_VSNPRINTF=1
32327   fi
32328   :
32329
32330   fi
32331
32332
32333
32334
32335   if test $ac_cv_have_decl_vsnprintf = no; then
32336     HAVE_DECL_VSNPRINTF=0
32337   fi
32338
32339
32340
32341   GNULIB_VSNPRINTF=1
32342
32343
32344
32345   { echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
32346 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6; }
32347 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
32348   echo $ECHO_N "(cached) $ECHO_C" >&6
32349 else
32350   cat >conftest.$ac_ext <<_ACEOF
32351 #include <wchar.h>
32352 wchar_t w;
32353 _ACEOF
32354 rm -f conftest.$ac_objext
32355 if { (ac_try="$ac_compile"
32356 case "(($ac_try" in
32357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32358   *) ac_try_echo=$ac_try;;
32359 esac
32360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32361   (eval "$ac_compile") 2>conftest.er1
32362   ac_status=$?
32363   grep -v '^ *+' conftest.er1 >conftest.err
32364   rm -f conftest.er1
32365   cat conftest.err >&5
32366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367   (exit $ac_status); } && {
32368          test -z "$ac_c_werror_flag" ||
32369          test ! -s conftest.err
32370        } && test -s conftest.$ac_objext; then
32371   gl_cv_header_wchar_h_standalone=yes
32372 else
32373   echo "$as_me: failed program was:" >&5
32374 sed 's/^/| /' conftest.$ac_ext >&5
32375
32376         gl_cv_header_wchar_h_standalone=no
32377 fi
32378
32379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32380 fi
32381 { echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
32382 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6; }
32383   if test $gl_cv_header_wchar_h_standalone != yes; then
32384     WCHAR_H=wchar.h
32385   fi
32386
32387
32388
32389
32390
32391
32392
32393   if test $ac_cv_header_wchar_h = yes; then
32394     HAVE_WCHAR_H=1
32395   else
32396     HAVE_WCHAR_H=0
32397   fi
32398
32399
32400
32401
32402
32403
32404
32405
32406
32407
32408
32409      if test $gl_cv_have_include_next = yes; then
32410        gl_cv_next_wchar_h='<'wchar.h'>'
32411      else
32412        { echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
32413 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6; }
32414 if test "${gl_cv_next_wchar_h+set}" = set; then
32415   echo $ECHO_N "(cached) $ECHO_C" >&6
32416 else
32417
32418           if test $ac_cv_header_wchar_h = yes; then
32419             cat >conftest.$ac_ext <<_ACEOF
32420 /* confdefs.h.  */
32421 _ACEOF
32422 cat confdefs.h >>conftest.$ac_ext
32423 cat >>conftest.$ac_ext <<_ACEOF
32424 /* end confdefs.h.  */
32425 #include <wchar.h>
32426
32427 _ACEOF
32428                                     gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32429                sed -n '\#/wchar.h#{
32430                  s#.*"\(.*/wchar.h\)".*#\1#
32431                  s#^/[^/]#//&#
32432                  p
32433                  q
32434                }'`'"'
32435           else
32436             gl_cv_next_wchar_h='<'wchar.h'>'
32437           fi
32438
32439 fi
32440 { echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
32441 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6; }
32442      fi
32443      NEXT_WCHAR_H=$gl_cv_next_wchar_h
32444
32445
32446
32447
32448
32449
32450
32451
32452
32453
32454
32455   if test $ac_cv_func_iswcntrl = yes; then
32456     HAVE_ISWCNTRL=1
32457   else
32458     HAVE_ISWCNTRL=0
32459   fi
32460
32461
32462
32463
32464
32465
32466
32467
32468
32469
32470   if test $gt_cv_c_wint_t = yes; then
32471     HAVE_WINT_T=1
32472   else
32473     HAVE_WINT_T=0
32474   fi
32475
32476
32477   WCTYPE_H=wctype.h
32478   if test $ac_cv_header_wctype_h = yes; then
32479     if test $ac_cv_func_iswcntrl = yes; then
32480       WCTYPE_H=
32481     fi
32482
32483
32484
32485
32486
32487
32488
32489
32490
32491
32492      if test $gl_cv_have_include_next = yes; then
32493        gl_cv_next_wctype_h='<'wctype.h'>'
32494      else
32495        { echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
32496 echo $ECHO_N "checking absolute name of <wctype.h>... $ECHO_C" >&6; }
32497 if test "${gl_cv_next_wctype_h+set}" = set; then
32498   echo $ECHO_N "(cached) $ECHO_C" >&6
32499 else
32500
32501           if test $ac_cv_header_wctype_h = yes; then
32502             cat >conftest.$ac_ext <<_ACEOF
32503 /* confdefs.h.  */
32504 _ACEOF
32505 cat confdefs.h >>conftest.$ac_ext
32506 cat >>conftest.$ac_ext <<_ACEOF
32507 /* end confdefs.h.  */
32508 #include <wctype.h>
32509
32510 _ACEOF
32511                                     gl_cv_next_wctype_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32512                sed -n '\#/wctype.h#{
32513                  s#.*"\(.*/wctype.h\)".*#\1#
32514                  s#^/[^/]#//&#
32515                  p
32516                  q
32517                }'`'"'
32518           else
32519             gl_cv_next_wctype_h='<'wctype.h'>'
32520           fi
32521
32522 fi
32523 { echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
32524 echo "${ECHO_T}$gl_cv_next_wctype_h" >&6; }
32525      fi
32526      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
32527
32528
32529
32530     HAVE_WCTYPE_H=1
32531   else
32532     HAVE_WCTYPE_H=0
32533   fi
32534
32535
32536
32537
32538
32539
32540
32541
32542
32543
32544
32545
32546
32547
32548
32549
32550
32551
32552
32553
32554
32555
32556
32557
32558   { echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
32559 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6; }
32560 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
32561   echo $ECHO_N "(cached) $ECHO_C" >&6
32562 else
32563   cat >conftest.$ac_ext <<_ACEOF
32564 /* confdefs.h.  */
32565 _ACEOF
32566 cat confdefs.h >>conftest.$ac_ext
32567 cat >>conftest.$ac_ext <<_ACEOF
32568 /* end confdefs.h.  */
32569
32570 /* AIX 3.2.5 declares wcwidth in <string.h>. */
32571 #include <string.h>
32572 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
32573    <wchar.h>.
32574    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
32575    before <wchar.h>.  */
32576 #include <stddef.h>
32577 #include <stdio.h>
32578 #include <time.h>
32579 #include <wchar.h>
32580
32581
32582 int
32583 main ()
32584 {
32585 #ifndef wcwidth
32586   (void) wcwidth;
32587 #endif
32588
32589   ;
32590   return 0;
32591 }
32592 _ACEOF
32593 rm -f conftest.$ac_objext
32594 if { (ac_try="$ac_compile"
32595 case "(($ac_try" in
32596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32597   *) ac_try_echo=$ac_try;;
32598 esac
32599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32600   (eval "$ac_compile") 2>conftest.er1
32601   ac_status=$?
32602   grep -v '^ *+' conftest.er1 >conftest.err
32603   rm -f conftest.er1
32604   cat conftest.err >&5
32605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606   (exit $ac_status); } && {
32607          test -z "$ac_c_werror_flag" ||
32608          test ! -s conftest.err
32609        } && test -s conftest.$ac_objext; then
32610   ac_cv_have_decl_wcwidth=yes
32611 else
32612   echo "$as_me: failed program was:" >&5
32613 sed 's/^/| /' conftest.$ac_ext >&5
32614
32615         ac_cv_have_decl_wcwidth=no
32616 fi
32617
32618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32619 fi
32620 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
32621 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6; }
32622 if test $ac_cv_have_decl_wcwidth = yes; then
32623
32624 cat >>confdefs.h <<_ACEOF
32625 #define HAVE_DECL_WCWIDTH 1
32626 _ACEOF
32627
32628
32629 else
32630   cat >>confdefs.h <<_ACEOF
32631 #define HAVE_DECL_WCWIDTH 0
32632 _ACEOF
32633
32634
32635 fi
32636
32637
32638   if test $ac_cv_have_decl_wcwidth != yes; then
32639     HAVE_DECL_WCWIDTH=0
32640   fi
32641
32642   if test $ac_cv_func_wcwidth = no; then
32643     REPLACE_WCWIDTH=1
32644   else
32645                 { echo "$as_me:$LINENO: checking whether wcwidth works reasonably in UTF-8 locales" >&5
32646 echo $ECHO_N "checking whether wcwidth works reasonably in UTF-8 locales... $ECHO_C" >&6; }
32647 if test "${gl_cv_func_wcwidth_works+set}" = set; then
32648   echo $ECHO_N "(cached) $ECHO_C" >&6
32649 else
32650
32651         if test "$cross_compiling" = yes; then
32652   gl_cv_func_wcwidth_works="guessing no"
32653 else
32654   cat >conftest.$ac_ext <<_ACEOF
32655 /* confdefs.h.  */
32656 _ACEOF
32657 cat confdefs.h >>conftest.$ac_ext
32658 cat >>conftest.$ac_ext <<_ACEOF
32659 /* end confdefs.h.  */
32660
32661 #include <locale.h>
32662 /* AIX 3.2.5 declares wcwidth in <string.h>. */
32663 #include <string.h>
32664 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
32665    <wchar.h>.
32666    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
32667    before <wchar.h>.  */
32668 #include <stddef.h>
32669 #include <stdio.h>
32670 #include <time.h>
32671 #include <wchar.h>
32672 #if !HAVE_DECL_WCWIDTH
32673 extern
32674 # ifdef __cplusplus
32675 "C"
32676 # endif
32677 int wcwidth (int);
32678 #endif
32679 int main ()
32680 {
32681   if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
32682     if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0)
32683       return 1;
32684   return 0;
32685 }
32686 _ACEOF
32687 rm -f conftest$ac_exeext
32688 if { (ac_try="$ac_link"
32689 case "(($ac_try" in
32690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32691   *) ac_try_echo=$ac_try;;
32692 esac
32693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32694   (eval "$ac_link") 2>&5
32695   ac_status=$?
32696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32697   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32698   { (case "(($ac_try" in
32699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32700   *) ac_try_echo=$ac_try;;
32701 esac
32702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32703   (eval "$ac_try") 2>&5
32704   ac_status=$?
32705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32706   (exit $ac_status); }; }; then
32707   gl_cv_func_wcwidth_works=yes
32708 else
32709   echo "$as_me: program exited with status $ac_status" >&5
32710 echo "$as_me: failed program was:" >&5
32711 sed 's/^/| /' conftest.$ac_ext >&5
32712
32713 ( exit $ac_status )
32714 gl_cv_func_wcwidth_works=no
32715 fi
32716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32717 fi
32718
32719
32720
32721 fi
32722 { echo "$as_me:$LINENO: result: $gl_cv_func_wcwidth_works" >&5
32723 echo "${ECHO_T}$gl_cv_func_wcwidth_works" >&6; }
32724     case "$gl_cv_func_wcwidth_works" in
32725       *yes) ;;
32726       *no) REPLACE_WCWIDTH=1 ;;
32727     esac
32728   fi
32729   if test $REPLACE_WCWIDTH = 1; then
32730
32731
32732
32733
32734
32735
32736
32737   gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
32738
32739   fi
32740
32741   if test $REPLACE_WCWIDTH = 1 || test $HAVE_DECL_WCWIDTH = 0; then
32742     WCHAR_H=wchar.h
32743   fi
32744
32745
32746
32747   GNULIB_WCWIDTH=1
32748
32749
32750
32751
32752
32753
32754
32755
32756
32757   gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
32758
32759
32760
32761
32762   :
32763
32764
32765   :
32766
32767
32768
32769
32770
32771
32772
32773
32774
32775
32776   gl_LIBOBJS="$gl_LIBOBJS xgetcwd.$ac_objext"
32777
32778
32779
32780
32781
32782
32783
32784
32785 for ac_header in stdint.h
32786 do
32787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32789   { echo "$as_me:$LINENO: checking for $ac_header" >&5
32790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32792   echo $ECHO_N "(cached) $ECHO_C" >&6
32793 fi
32794 ac_res=`eval echo '${'$as_ac_Header'}'`
32795                { echo "$as_me:$LINENO: result: $ac_res" >&5
32796 echo "${ECHO_T}$ac_res" >&6; }
32797 else
32798   # Is the header compilable?
32799 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32801 cat >conftest.$ac_ext <<_ACEOF
32802 /* confdefs.h.  */
32803 _ACEOF
32804 cat confdefs.h >>conftest.$ac_ext
32805 cat >>conftest.$ac_ext <<_ACEOF
32806 /* end confdefs.h.  */
32807 $ac_includes_default
32808 #include <$ac_header>
32809 _ACEOF
32810 rm -f conftest.$ac_objext
32811 if { (ac_try="$ac_compile"
32812 case "(($ac_try" in
32813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32814   *) ac_try_echo=$ac_try;;
32815 esac
32816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32817   (eval "$ac_compile") 2>conftest.er1
32818   ac_status=$?
32819   grep -v '^ *+' conftest.er1 >conftest.err
32820   rm -f conftest.er1
32821   cat conftest.err >&5
32822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823   (exit $ac_status); } && {
32824          test -z "$ac_c_werror_flag" ||
32825          test ! -s conftest.err
32826        } && test -s conftest.$ac_objext; then
32827   ac_header_compiler=yes
32828 else
32829   echo "$as_me: failed program was:" >&5
32830 sed 's/^/| /' conftest.$ac_ext >&5
32831
32832         ac_header_compiler=no
32833 fi
32834
32835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32836 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32837 echo "${ECHO_T}$ac_header_compiler" >&6; }
32838
32839 # Is the header present?
32840 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32842 cat >conftest.$ac_ext <<_ACEOF
32843 /* confdefs.h.  */
32844 _ACEOF
32845 cat confdefs.h >>conftest.$ac_ext
32846 cat >>conftest.$ac_ext <<_ACEOF
32847 /* end confdefs.h.  */
32848 #include <$ac_header>
32849 _ACEOF
32850 if { (ac_try="$ac_cpp conftest.$ac_ext"
32851 case "(($ac_try" in
32852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32853   *) ac_try_echo=$ac_try;;
32854 esac
32855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32856   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32857   ac_status=$?
32858   grep -v '^ *+' conftest.er1 >conftest.err
32859   rm -f conftest.er1
32860   cat conftest.err >&5
32861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32862   (exit $ac_status); } >/dev/null && {
32863          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32864          test ! -s conftest.err
32865        }; then
32866   ac_header_preproc=yes
32867 else
32868   echo "$as_me: failed program was:" >&5
32869 sed 's/^/| /' conftest.$ac_ext >&5
32870
32871   ac_header_preproc=no
32872 fi
32873
32874 rm -f conftest.err conftest.$ac_ext
32875 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32876 echo "${ECHO_T}$ac_header_preproc" >&6; }
32877
32878 # So?  What about this header?
32879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32880   yes:no: )
32881     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32883     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32885     ac_header_preproc=yes
32886     ;;
32887   no:yes:* )
32888     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32890     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32891 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32892     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32894     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32895 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32896     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32898     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32900     ( cat <<\_ASBOX
32901 ## ------------------------------ ##
32902 ## Report this to bug-tar@gnu.org ##
32903 ## ------------------------------ ##
32904 _ASBOX
32905      ) | sed "s/^/$as_me: WARNING:     /" >&2
32906     ;;
32907 esac
32908 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32911   echo $ECHO_N "(cached) $ECHO_C" >&6
32912 else
32913   eval "$as_ac_Header=\$ac_header_preproc"
32914 fi
32915 ac_res=`eval echo '${'$as_ac_Header'}'`
32916                { echo "$as_me:$LINENO: result: $ac_res" >&5
32917 echo "${ECHO_T}$ac_res" >&6; }
32918
32919 fi
32920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32921   cat >>confdefs.h <<_ACEOF
32922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32923 _ACEOF
32924
32925 fi
32926
32927 done
32928
32929
32930
32931
32932   :
32933
32934
32935
32936
32937
32938
32939
32940
32941
32942
32943   gl_LIBOBJS="$gl_LIBOBJS xstrtol.$ac_objext"
32944
32945
32946
32947
32948
32949
32950
32951
32952   gl_LIBOBJS="$gl_LIBOBJS xstrtoul.$ac_objext"
32953
32954
32955
32956
32957
32958
32959
32960
32961   gl_LIBOBJS="$gl_LIBOBJS xstrtol-error.$ac_objext"
32962
32963
32964
32965
32966
32967
32968   gltests_libdeps=
32969   gltests_ltlibdeps=
32970
32971
32972
32973   gl_source_base='.#bootmp/tests'
32974
32975
32976
32977
32978   LIBTAR_LIBDEPS="$gl_libdeps"
32979
32980   LIBTAR_LTLIBDEPS="$gl_ltlibdeps"
32981
32982
32983 # paxutils modules
32984
32985
32986
32987
32988
32989
32990
32991
32992 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32993 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32994 if test "${ac_cv_header_time+set}" = set; then
32995   echo $ECHO_N "(cached) $ECHO_C" >&6
32996 else
32997   cat >conftest.$ac_ext <<_ACEOF
32998 /* confdefs.h.  */
32999 _ACEOF
33000 cat confdefs.h >>conftest.$ac_ext
33001 cat >>conftest.$ac_ext <<_ACEOF
33002 /* end confdefs.h.  */
33003 #include <sys/types.h>
33004 #include <sys/time.h>
33005 #include <time.h>
33006
33007 int
33008 main ()
33009 {
33010 if ((struct tm *) 0)
33011 return 0;
33012   ;
33013   return 0;
33014 }
33015 _ACEOF
33016 rm -f conftest.$ac_objext
33017 if { (ac_try="$ac_compile"
33018 case "(($ac_try" in
33019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33020   *) ac_try_echo=$ac_try;;
33021 esac
33022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33023   (eval "$ac_compile") 2>conftest.er1
33024   ac_status=$?
33025   grep -v '^ *+' conftest.er1 >conftest.err
33026   rm -f conftest.er1
33027   cat conftest.err >&5
33028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33029   (exit $ac_status); } && {
33030          test -z "$ac_c_werror_flag" ||
33031          test ! -s conftest.err
33032        } && test -s conftest.$ac_objext; then
33033   ac_cv_header_time=yes
33034 else
33035   echo "$as_me: failed program was:" >&5
33036 sed 's/^/| /' conftest.$ac_ext >&5
33037
33038         ac_cv_header_time=no
33039 fi
33040
33041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33042 fi
33043 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
33044 echo "${ECHO_T}$ac_cv_header_time" >&6; }
33045 if test $ac_cv_header_time = yes; then
33046
33047 cat >>confdefs.h <<\_ACEOF
33048 #define TIME_WITH_SYS_TIME 1
33049 _ACEOF
33050
33051 fi
33052
33053 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
33054 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
33055 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
33056   echo $ECHO_N "(cached) $ECHO_C" >&6
33057 else
33058   cat >conftest.$ac_ext <<_ACEOF
33059 /* confdefs.h.  */
33060 _ACEOF
33061 cat confdefs.h >>conftest.$ac_ext
33062 cat >>conftest.$ac_ext <<_ACEOF
33063 /* end confdefs.h.  */
33064 $ac_includes_default
33065 int
33066 main ()
33067 {
33068 static struct stat ac_aggr;
33069 if (ac_aggr.st_blksize)
33070 return 0;
33071   ;
33072   return 0;
33073 }
33074 _ACEOF
33075 rm -f conftest.$ac_objext
33076 if { (ac_try="$ac_compile"
33077 case "(($ac_try" in
33078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33079   *) ac_try_echo=$ac_try;;
33080 esac
33081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33082   (eval "$ac_compile") 2>conftest.er1
33083   ac_status=$?
33084   grep -v '^ *+' conftest.er1 >conftest.err
33085   rm -f conftest.er1
33086   cat conftest.err >&5
33087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33088   (exit $ac_status); } && {
33089          test -z "$ac_c_werror_flag" ||
33090          test ! -s conftest.err
33091        } && test -s conftest.$ac_objext; then
33092   ac_cv_member_struct_stat_st_blksize=yes
33093 else
33094   echo "$as_me: failed program was:" >&5
33095 sed 's/^/| /' conftest.$ac_ext >&5
33096
33097         cat >conftest.$ac_ext <<_ACEOF
33098 /* confdefs.h.  */
33099 _ACEOF
33100 cat confdefs.h >>conftest.$ac_ext
33101 cat >>conftest.$ac_ext <<_ACEOF
33102 /* end confdefs.h.  */
33103 $ac_includes_default
33104 int
33105 main ()
33106 {
33107 static struct stat ac_aggr;
33108 if (sizeof ac_aggr.st_blksize)
33109 return 0;
33110   ;
33111   return 0;
33112 }
33113 _ACEOF
33114 rm -f conftest.$ac_objext
33115 if { (ac_try="$ac_compile"
33116 case "(($ac_try" in
33117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33118   *) ac_try_echo=$ac_try;;
33119 esac
33120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33121   (eval "$ac_compile") 2>conftest.er1
33122   ac_status=$?
33123   grep -v '^ *+' conftest.er1 >conftest.err
33124   rm -f conftest.er1
33125   cat conftest.err >&5
33126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33127   (exit $ac_status); } && {
33128          test -z "$ac_c_werror_flag" ||
33129          test ! -s conftest.err
33130        } && test -s conftest.$ac_objext; then
33131   ac_cv_member_struct_stat_st_blksize=yes
33132 else
33133   echo "$as_me: failed program was:" >&5
33134 sed 's/^/| /' conftest.$ac_ext >&5
33135
33136         ac_cv_member_struct_stat_st_blksize=no
33137 fi
33138
33139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33140 fi
33141
33142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33143 fi
33144 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
33145 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
33146 if test $ac_cv_member_struct_stat_st_blksize = yes; then
33147
33148 cat >>confdefs.h <<_ACEOF
33149 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
33150 _ACEOF
33151
33152
33153 cat >>confdefs.h <<\_ACEOF
33154 #define HAVE_ST_BLKSIZE 1
33155 _ACEOF
33156
33157 fi
33158
33159
33160
33161
33162
33163
33164
33165
33166   # Set LIB_SETSOCKOPT to -lnsl -lsocket if necessary.
33167   pu_save_LIBS=$LIBS
33168   LIB_SETSOCKOPT=
33169   { echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
33170 echo $ECHO_N "checking for library containing setsockopt... $ECHO_C" >&6; }
33171 if test "${ac_cv_search_setsockopt+set}" = set; then
33172   echo $ECHO_N "(cached) $ECHO_C" >&6
33173 else
33174   ac_func_search_save_LIBS=$LIBS
33175 cat >conftest.$ac_ext <<_ACEOF
33176 /* confdefs.h.  */
33177 _ACEOF
33178 cat confdefs.h >>conftest.$ac_ext
33179 cat >>conftest.$ac_ext <<_ACEOF
33180 /* end confdefs.h.  */
33181
33182 /* Override any GCC internal prototype to avoid an error.
33183    Use char because int might match the return type of a GCC
33184    builtin and then its argument prototype would still apply.  */
33185 #ifdef __cplusplus
33186 extern "C"
33187 #endif
33188 char setsockopt ();
33189 int
33190 main ()
33191 {
33192 return setsockopt ();
33193   ;
33194   return 0;
33195 }
33196 _ACEOF
33197 for ac_lib in '' socket; do
33198   if test -z "$ac_lib"; then
33199     ac_res="none required"
33200   else
33201     ac_res=-l$ac_lib
33202     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33203   fi
33204   rm -f conftest.$ac_objext conftest$ac_exeext
33205 if { (ac_try="$ac_link"
33206 case "(($ac_try" in
33207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33208   *) ac_try_echo=$ac_try;;
33209 esac
33210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33211   (eval "$ac_link") 2>conftest.er1
33212   ac_status=$?
33213   grep -v '^ *+' conftest.er1 >conftest.err
33214   rm -f conftest.er1
33215   cat conftest.err >&5
33216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33217   (exit $ac_status); } && {
33218          test -z "$ac_c_werror_flag" ||
33219          test ! -s conftest.err
33220        } && test -s conftest$ac_exeext &&
33221        $as_test_x conftest$ac_exeext; then
33222   ac_cv_search_setsockopt=$ac_res
33223 else
33224   echo "$as_me: failed program was:" >&5
33225 sed 's/^/| /' conftest.$ac_ext >&5
33226
33227
33228 fi
33229
33230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33231       conftest$ac_exeext
33232   if test "${ac_cv_search_setsockopt+set}" = set; then
33233   break
33234 fi
33235 done
33236 if test "${ac_cv_search_setsockopt+set}" = set; then
33237   :
33238 else
33239   ac_cv_search_setsockopt=no
33240 fi
33241 rm conftest.$ac_ext
33242 LIBS=$ac_func_search_save_LIBS
33243 fi
33244 { echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
33245 echo "${ECHO_T}$ac_cv_search_setsockopt" >&6; }
33246 ac_res=$ac_cv_search_setsockopt
33247 if test "$ac_res" != no; then
33248   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33249
33250 else
33251   { echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
33252 echo $ECHO_N "checking for library containing setsockopt... $ECHO_C" >&6; }
33253 if test "${ac_cv_search_setsockopt+set}" = set; then
33254   echo $ECHO_N "(cached) $ECHO_C" >&6
33255 else
33256   ac_func_search_save_LIBS=$LIBS
33257 cat >conftest.$ac_ext <<_ACEOF
33258 /* confdefs.h.  */
33259 _ACEOF
33260 cat confdefs.h >>conftest.$ac_ext
33261 cat >>conftest.$ac_ext <<_ACEOF
33262 /* end confdefs.h.  */
33263
33264 /* Override any GCC internal prototype to avoid an error.
33265    Use char because int might match the return type of a GCC
33266    builtin and then its argument prototype would still apply.  */
33267 #ifdef __cplusplus
33268 extern "C"
33269 #endif
33270 char setsockopt ();
33271 int
33272 main ()
33273 {
33274 return setsockopt ();
33275   ;
33276   return 0;
33277 }
33278 _ACEOF
33279 for ac_lib in '' socket; do
33280   if test -z "$ac_lib"; then
33281     ac_res="none required"
33282   else
33283     ac_res=-l$ac_lib
33284     LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
33285   fi
33286   rm -f conftest.$ac_objext conftest$ac_exeext
33287 if { (ac_try="$ac_link"
33288 case "(($ac_try" in
33289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33290   *) ac_try_echo=$ac_try;;
33291 esac
33292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33293   (eval "$ac_link") 2>conftest.er1
33294   ac_status=$?
33295   grep -v '^ *+' conftest.er1 >conftest.err
33296   rm -f conftest.er1
33297   cat conftest.err >&5
33298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299   (exit $ac_status); } && {
33300          test -z "$ac_c_werror_flag" ||
33301          test ! -s conftest.err
33302        } && test -s conftest$ac_exeext &&
33303        $as_test_x conftest$ac_exeext; then
33304   ac_cv_search_setsockopt=$ac_res
33305 else
33306   echo "$as_me: failed program was:" >&5
33307 sed 's/^/| /' conftest.$ac_ext >&5
33308
33309
33310 fi
33311
33312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33313       conftest$ac_exeext
33314   if test "${ac_cv_search_setsockopt+set}" = set; then
33315   break
33316 fi
33317 done
33318 if test "${ac_cv_search_setsockopt+set}" = set; then
33319   :
33320 else
33321   ac_cv_search_setsockopt=no
33322 fi
33323 rm conftest.$ac_ext
33324 LIBS=$ac_func_search_save_LIBS
33325 fi
33326 { echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
33327 echo "${ECHO_T}$ac_cv_search_setsockopt" >&6; }
33328 ac_res=$ac_cv_search_setsockopt
33329 if test "$ac_res" != no; then
33330   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33331
33332 fi
33333
33334 fi
33335
33336   { echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
33337 echo $ECHO_N "checking for library containing setsockopt... $ECHO_C" >&6; }
33338 if test "${ac_cv_search_setsockopt+set}" = set; then
33339   echo $ECHO_N "(cached) $ECHO_C" >&6
33340 else
33341   ac_func_search_save_LIBS=$LIBS
33342 cat >conftest.$ac_ext <<_ACEOF
33343 /* confdefs.h.  */
33344 _ACEOF
33345 cat confdefs.h >>conftest.$ac_ext
33346 cat >>conftest.$ac_ext <<_ACEOF
33347 /* end confdefs.h.  */
33348
33349 /* Override any GCC internal prototype to avoid an error.
33350    Use char because int might match the return type of a GCC
33351    builtin and then its argument prototype would still apply.  */
33352 #ifdef __cplusplus
33353 extern "C"
33354 #endif
33355 char setsockopt ();
33356 int
33357 main ()
33358 {
33359 return setsockopt ();
33360   ;
33361   return 0;
33362 }
33363 _ACEOF
33364 for ac_lib in '' nsl; do
33365   if test -z "$ac_lib"; then
33366     ac_res="none required"
33367   else
33368     ac_res=-l$ac_lib
33369     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33370   fi
33371   rm -f conftest.$ac_objext conftest$ac_exeext
33372 if { (ac_try="$ac_link"
33373 case "(($ac_try" in
33374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33375   *) ac_try_echo=$ac_try;;
33376 esac
33377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33378   (eval "$ac_link") 2>conftest.er1
33379   ac_status=$?
33380   grep -v '^ *+' conftest.er1 >conftest.err
33381   rm -f conftest.er1
33382   cat conftest.err >&5
33383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33384   (exit $ac_status); } && {
33385          test -z "$ac_c_werror_flag" ||
33386          test ! -s conftest.err
33387        } && test -s conftest$ac_exeext &&
33388        $as_test_x conftest$ac_exeext; then
33389   ac_cv_search_setsockopt=$ac_res
33390 else
33391   echo "$as_me: failed program was:" >&5
33392 sed 's/^/| /' conftest.$ac_ext >&5
33393
33394
33395 fi
33396
33397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33398       conftest$ac_exeext
33399   if test "${ac_cv_search_setsockopt+set}" = set; then
33400   break
33401 fi
33402 done
33403 if test "${ac_cv_search_setsockopt+set}" = set; then
33404   :
33405 else
33406   ac_cv_search_setsockopt=no
33407 fi
33408 rm conftest.$ac_ext
33409 LIBS=$ac_func_search_save_LIBS
33410 fi
33411 { echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
33412 echo "${ECHO_T}$ac_cv_search_setsockopt" >&6; }
33413 ac_res=$ac_cv_search_setsockopt
33414 if test "$ac_res" != no; then
33415   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33416
33417 fi
33418
33419
33420   case "$ac_cv_search_setsockopt" in
33421     -l*) LIB_SETSOCKOPT=$ac_cv_search_setsockopt
33422   esac
33423
33424   LIBS=$pu_save_LIBS
33425
33426   enable_rmt() {
33427     if test $ac_cv_header_sys_mtio_h = yes; then
33428       { echo "$as_me:$LINENO: checking for remote tape header files" >&5
33429 echo $ECHO_N "checking for remote tape header files... $ECHO_C" >&6; }
33430 if test "${pu_cv_header_rmt+set}" = set; then
33431   echo $ECHO_N "(cached) $ECHO_C" >&6
33432 else
33433   cat >conftest.$ac_ext <<_ACEOF
33434 /* confdefs.h.  */
33435 _ACEOF
33436 cat confdefs.h >>conftest.$ac_ext
33437 cat >>conftest.$ac_ext <<_ACEOF
33438 /* end confdefs.h.  */
33439
33440 #if HAVE_SGTTY_H
33441 # include <sgtty.h>
33442 #endif
33443 #include <sys/socket.h>
33444 _ACEOF
33445 if { (ac_try="$ac_cpp conftest.$ac_ext"
33446 case "(($ac_try" in
33447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33448   *) ac_try_echo=$ac_try;;
33449 esac
33450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33451   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33452   ac_status=$?
33453   grep -v '^ *+' conftest.er1 >conftest.err
33454   rm -f conftest.er1
33455   cat conftest.err >&5
33456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33457   (exit $ac_status); } >/dev/null && {
33458          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33459          test ! -s conftest.err
33460        }; then
33461   pu_cv_header_rmt=yes
33462 else
33463   echo "$as_me: failed program was:" >&5
33464 sed 's/^/| /' conftest.$ac_ext >&5
33465
33466   pu_cv_header_rmt=no
33467 fi
33468
33469 rm -f conftest.err conftest.$ac_ext
33470 fi
33471 { echo "$as_me:$LINENO: result: $pu_cv_header_rmt" >&5
33472 echo "${ECHO_T}$pu_cv_header_rmt" >&6; }
33473       test $pu_cv_header_rmt = yes && PU_RMT_PROG='rmt$(EXEEXT)'
33474
33475     fi
33476   }
33477
33478
33479 for ac_header in sys/mtio.h
33480 do
33481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33483   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33486   echo $ECHO_N "(cached) $ECHO_C" >&6
33487 fi
33488 ac_res=`eval echo '${'$as_ac_Header'}'`
33489                { echo "$as_me:$LINENO: result: $ac_res" >&5
33490 echo "${ECHO_T}$ac_res" >&6; }
33491 else
33492   # Is the header compilable?
33493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33495 cat >conftest.$ac_ext <<_ACEOF
33496 /* confdefs.h.  */
33497 _ACEOF
33498 cat confdefs.h >>conftest.$ac_ext
33499 cat >>conftest.$ac_ext <<_ACEOF
33500 /* end confdefs.h.  */
33501 $ac_includes_default
33502 #include <$ac_header>
33503 _ACEOF
33504 rm -f conftest.$ac_objext
33505 if { (ac_try="$ac_compile"
33506 case "(($ac_try" in
33507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33508   *) ac_try_echo=$ac_try;;
33509 esac
33510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33511   (eval "$ac_compile") 2>conftest.er1
33512   ac_status=$?
33513   grep -v '^ *+' conftest.er1 >conftest.err
33514   rm -f conftest.er1
33515   cat conftest.err >&5
33516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33517   (exit $ac_status); } && {
33518          test -z "$ac_c_werror_flag" ||
33519          test ! -s conftest.err
33520        } && test -s conftest.$ac_objext; then
33521   ac_header_compiler=yes
33522 else
33523   echo "$as_me: failed program was:" >&5
33524 sed 's/^/| /' conftest.$ac_ext >&5
33525
33526         ac_header_compiler=no
33527 fi
33528
33529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33531 echo "${ECHO_T}$ac_header_compiler" >&6; }
33532
33533 # Is the header present?
33534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33536 cat >conftest.$ac_ext <<_ACEOF
33537 /* confdefs.h.  */
33538 _ACEOF
33539 cat confdefs.h >>conftest.$ac_ext
33540 cat >>conftest.$ac_ext <<_ACEOF
33541 /* end confdefs.h.  */
33542 #include <$ac_header>
33543 _ACEOF
33544 if { (ac_try="$ac_cpp conftest.$ac_ext"
33545 case "(($ac_try" in
33546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33547   *) ac_try_echo=$ac_try;;
33548 esac
33549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33550   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33551   ac_status=$?
33552   grep -v '^ *+' conftest.er1 >conftest.err
33553   rm -f conftest.er1
33554   cat conftest.err >&5
33555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33556   (exit $ac_status); } >/dev/null && {
33557          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33558          test ! -s conftest.err
33559        }; then
33560   ac_header_preproc=yes
33561 else
33562   echo "$as_me: failed program was:" >&5
33563 sed 's/^/| /' conftest.$ac_ext >&5
33564
33565   ac_header_preproc=no
33566 fi
33567
33568 rm -f conftest.err conftest.$ac_ext
33569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33570 echo "${ECHO_T}$ac_header_preproc" >&6; }
33571
33572 # So?  What about this header?
33573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33574   yes:no: )
33575     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33577     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33579     ac_header_preproc=yes
33580     ;;
33581   no:yes:* )
33582     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33584     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33585 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33586     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33588     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33589 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33590     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33592     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33594     ( cat <<\_ASBOX
33595 ## ------------------------------ ##
33596 ## Report this to bug-tar@gnu.org ##
33597 ## ------------------------------ ##
33598 _ASBOX
33599      ) | sed "s/^/$as_me: WARNING:     /" >&2
33600     ;;
33601 esac
33602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33605   echo $ECHO_N "(cached) $ECHO_C" >&6
33606 else
33607   eval "$as_ac_Header=\$ac_header_preproc"
33608 fi
33609 ac_res=`eval echo '${'$as_ac_Header'}'`
33610                { echo "$as_me:$LINENO: result: $ac_res" >&5
33611 echo "${ECHO_T}$ac_res" >&6; }
33612
33613 fi
33614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33615   cat >>confdefs.h <<_ACEOF
33616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33617 _ACEOF
33618
33619 fi
33620
33621 done
33622
33623   { echo "$as_me:$LINENO: checking which ioctl field to test for reversed bytes" >&5
33624 echo $ECHO_N "checking which ioctl field to test for reversed bytes... $ECHO_C" >&6; }
33625 if test "${pu_cv_header_mtio_check_field+set}" = set; then
33626   echo $ECHO_N "(cached) $ECHO_C" >&6
33627 else
33628   cat >conftest.$ac_ext <<_ACEOF
33629 /* confdefs.h.  */
33630 _ACEOF
33631 cat confdefs.h >>conftest.$ac_ext
33632 cat >>conftest.$ac_ext <<_ACEOF
33633 /* end confdefs.h.  */
33634 #include <sys/mtio.h>
33635
33636 _ACEOF
33637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33638   $EGREP "mt_model" >/dev/null 2>&1; then
33639   pu_cv_header_mtio_check_field=mt_model
33640 else
33641   pu_cv_header_mtio_check_field=mt_type
33642 fi
33643 rm -f conftest*
33644
33645 fi
33646 { echo "$as_me:$LINENO: result: $pu_cv_header_mtio_check_field" >&5
33647 echo "${ECHO_T}$pu_cv_header_mtio_check_field" >&6; }
33648
33649 cat >>confdefs.h <<_ACEOF
33650 #define MTIO_CHECK_FIELD $pu_cv_header_mtio_check_field
33651 _ACEOF
33652
33653
33654
33655
33656   if test "x$DEFAULT_RMT_DIR" != x; then
33657         DEFAULT_RMT_COMMAND=$DEFAULT_RMT_DIR/rmt
33658   else
33659         DEFAULT_RMT_DIR='$(libexecdir)'
33660   fi
33661
33662   { echo "$as_me:$LINENO: checking whether to build rmt" >&5
33663 echo $ECHO_N "checking whether to build rmt... $ECHO_C" >&6; }
33664
33665 # Check whether --with-rmt was given.
33666 if test "${with_rmt+set}" = set; then
33667   withval=$with_rmt; case $withval in
33668                yes|no) { { echo "$as_me:$LINENO: error: Invalid argument to --with-rmt" >&5
33669 echo "$as_me: error: Invalid argument to --with-rmt" >&2;}
33670    { (exit 1); exit 1; }; };;
33671                /*)     DEFAULT_RMT_COMMAND=$withval
33672                        { echo "$as_me:$LINENO: result: no, use $withval instead" >&5
33673 echo "${ECHO_T}no, use $withval instead" >&6; };;
33674                *)      { { echo "$as_me:$LINENO: error: Argument to --with-rmt must be an absolute file name" >&5
33675 echo "$as_me: error: Argument to --with-rmt must be an absolute file name" >&2;}
33676    { (exit 1); exit 1; }; };;
33677                esac
33678 else
33679   { echo "$as_me:$LINENO: result: yes" >&5
33680 echo "${ECHO_T}yes" >&6; }
33681                 enable_rmt
33682                 if test "$PU_RMT_PROG" = ""; then
33683                   { echo "$as_me:$LINENO: WARNING: not building rmt, required header files are missing" >&5
33684 echo "$as_me: WARNING: not building rmt, required header files are missing" >&2;}
33685                 fi
33686 fi
33687
33688
33689
33690   if test "x$DEFAULT_RMT_COMMAND" != x; then
33691
33692 cat >>confdefs.h <<_ACEOF
33693 #define DEFAULT_RMT_COMMAND "$DEFAULT_RMT_COMMAND"
33694 _ACEOF
33695
33696   fi
33697
33698
33699
33700
33701
33702
33703
33704
33705
33706
33707
33708
33709
33710
33711
33712
33713
33714
33715
33716
33717
33718
33719
33720
33721
33722
33723
33724
33725
33726
33727
33728
33729
33730
33731
33732
33733
33734
33735
33736
33737
33738
33739
33740
33741
33742
33743
33744
33745
33746
33747
33748
33749 for ac_header in sys/buf.h
33750 do
33751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33752 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33755   echo $ECHO_N "(cached) $ECHO_C" >&6
33756 else
33757   cat >conftest.$ac_ext <<_ACEOF
33758 /* confdefs.h.  */
33759 _ACEOF
33760 cat confdefs.h >>conftest.$ac_ext
33761 cat >>conftest.$ac_ext <<_ACEOF
33762 /* end confdefs.h.  */
33763 #if HAVE_SYS_PARAM_H
33764 #include <sys/param.h>
33765 #endif
33766
33767 #include <$ac_header>
33768 _ACEOF
33769 rm -f conftest.$ac_objext
33770 if { (ac_try="$ac_compile"
33771 case "(($ac_try" in
33772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33773   *) ac_try_echo=$ac_try;;
33774 esac
33775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33776   (eval "$ac_compile") 2>conftest.er1
33777   ac_status=$?
33778   grep -v '^ *+' conftest.er1 >conftest.err
33779   rm -f conftest.er1
33780   cat conftest.err >&5
33781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33782   (exit $ac_status); } && {
33783          test -z "$ac_c_werror_flag" ||
33784          test ! -s conftest.err
33785        } && test -s conftest.$ac_objext; then
33786   eval "$as_ac_Header=yes"
33787 else
33788   echo "$as_me: failed program was:" >&5
33789 sed 's/^/| /' conftest.$ac_ext >&5
33790
33791         eval "$as_ac_Header=no"
33792 fi
33793
33794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33795 fi
33796 ac_res=`eval echo '${'$as_ac_Header'}'`
33797                { echo "$as_me:$LINENO: result: $ac_res" >&5
33798 echo "${ECHO_T}$ac_res" >&6; }
33799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33800   cat >>confdefs.h <<_ACEOF
33801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33802 _ACEOF
33803
33804 fi
33805
33806 done
33807
33808
33809
33810
33811   { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
33812 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
33813 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
33814   echo $ECHO_N "(cached) $ECHO_C" >&6
33815 else
33816   cat >conftest.$ac_ext <<_ACEOF
33817 /* confdefs.h.  */
33818 _ACEOF
33819 cat confdefs.h >>conftest.$ac_ext
33820 cat >>conftest.$ac_ext <<_ACEOF
33821 /* end confdefs.h.  */
33822 $ac_includes_default
33823 int
33824 main ()
33825 {
33826 static struct stat ac_aggr;
33827 if (ac_aggr.st_blksize)
33828 return 0;
33829   ;
33830   return 0;
33831 }
33832 _ACEOF
33833 rm -f conftest.$ac_objext
33834 if { (ac_try="$ac_compile"
33835 case "(($ac_try" in
33836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33837   *) ac_try_echo=$ac_try;;
33838 esac
33839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33840   (eval "$ac_compile") 2>conftest.er1
33841   ac_status=$?
33842   grep -v '^ *+' conftest.er1 >conftest.err
33843   rm -f conftest.er1
33844   cat conftest.err >&5
33845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33846   (exit $ac_status); } && {
33847          test -z "$ac_c_werror_flag" ||
33848          test ! -s conftest.err
33849        } && test -s conftest.$ac_objext; then
33850   ac_cv_member_struct_stat_st_blksize=yes
33851 else
33852   echo "$as_me: failed program was:" >&5
33853 sed 's/^/| /' conftest.$ac_ext >&5
33854
33855         cat >conftest.$ac_ext <<_ACEOF
33856 /* confdefs.h.  */
33857 _ACEOF
33858 cat confdefs.h >>conftest.$ac_ext
33859 cat >>conftest.$ac_ext <<_ACEOF
33860 /* end confdefs.h.  */
33861 $ac_includes_default
33862 int
33863 main ()
33864 {
33865 static struct stat ac_aggr;
33866 if (sizeof ac_aggr.st_blksize)
33867 return 0;
33868   ;
33869   return 0;
33870 }
33871 _ACEOF
33872 rm -f conftest.$ac_objext
33873 if { (ac_try="$ac_compile"
33874 case "(($ac_try" in
33875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33876   *) ac_try_echo=$ac_try;;
33877 esac
33878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33879   (eval "$ac_compile") 2>conftest.er1
33880   ac_status=$?
33881   grep -v '^ *+' conftest.er1 >conftest.err
33882   rm -f conftest.er1
33883   cat conftest.err >&5
33884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33885   (exit $ac_status); } && {
33886          test -z "$ac_c_werror_flag" ||
33887          test ! -s conftest.err
33888        } && test -s conftest.$ac_objext; then
33889   ac_cv_member_struct_stat_st_blksize=yes
33890 else
33891   echo "$as_me: failed program was:" >&5
33892 sed 's/^/| /' conftest.$ac_ext >&5
33893
33894         ac_cv_member_struct_stat_st_blksize=no
33895 fi
33896
33897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33898 fi
33899
33900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33901 fi
33902 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
33903 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
33904 if test $ac_cv_member_struct_stat_st_blksize = yes; then
33905
33906 cat >>confdefs.h <<_ACEOF
33907 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
33908 _ACEOF
33909
33910
33911 fi
33912
33913
33914
33915
33916
33917
33918
33919
33920
33921
33922
33923
33924
33925
33926
33927
33928
33929
33930
33931
33932
33933
33934
33935
33936
33937
33938 for ac_func in fsync getdtablesize lstat mkfifo readlink symlink setlocale utimes
33939 do
33940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33944   echo $ECHO_N "(cached) $ECHO_C" >&6
33945 else
33946   cat >conftest.$ac_ext <<_ACEOF
33947 /* confdefs.h.  */
33948 _ACEOF
33949 cat confdefs.h >>conftest.$ac_ext
33950 cat >>conftest.$ac_ext <<_ACEOF
33951 /* end confdefs.h.  */
33952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33954 #define $ac_func innocuous_$ac_func
33955
33956 /* System header to define __stub macros and hopefully few prototypes,
33957     which can conflict with char $ac_func (); below.
33958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33959     <limits.h> exists even on freestanding compilers.  */
33960
33961 #ifdef __STDC__
33962 # include <limits.h>
33963 #else
33964 # include <assert.h>
33965 #endif
33966
33967 #undef $ac_func
33968
33969 /* Override any GCC internal prototype to avoid an error.
33970    Use char because int might match the return type of a GCC
33971    builtin and then its argument prototype would still apply.  */
33972 #ifdef __cplusplus
33973 extern "C"
33974 #endif
33975 char $ac_func ();
33976 /* The GNU C library defines this for functions which it implements
33977     to always fail with ENOSYS.  Some functions are actually named
33978     something starting with __ and the normal name is an alias.  */
33979 #if defined __stub_$ac_func || defined __stub___$ac_func
33980 choke me
33981 #endif
33982
33983 int
33984 main ()
33985 {
33986 return $ac_func ();
33987   ;
33988   return 0;
33989 }
33990 _ACEOF
33991 rm -f conftest.$ac_objext conftest$ac_exeext
33992 if { (ac_try="$ac_link"
33993 case "(($ac_try" in
33994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33995   *) ac_try_echo=$ac_try;;
33996 esac
33997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33998   (eval "$ac_link") 2>conftest.er1
33999   ac_status=$?
34000   grep -v '^ *+' conftest.er1 >conftest.err
34001   rm -f conftest.er1
34002   cat conftest.err >&5
34003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34004   (exit $ac_status); } && {
34005          test -z "$ac_c_werror_flag" ||
34006          test ! -s conftest.err
34007        } && test -s conftest$ac_exeext &&
34008        $as_test_x conftest$ac_exeext; then
34009   eval "$as_ac_var=yes"
34010 else
34011   echo "$as_me: failed program was:" >&5
34012 sed 's/^/| /' conftest.$ac_ext >&5
34013
34014         eval "$as_ac_var=no"
34015 fi
34016
34017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34018       conftest$ac_exeext conftest.$ac_ext
34019 fi
34020 ac_res=`eval echo '${'$as_ac_var'}'`
34021                { echo "$as_me:$LINENO: result: $ac_res" >&5
34022 echo "${ECHO_T}$ac_res" >&6; }
34023 if test `eval echo '${'$as_ac_var'}'` = yes; then
34024   cat >>confdefs.h <<_ACEOF
34025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34026 _ACEOF
34027
34028 fi
34029 done
34030
34031 { echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
34032 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6; }
34033 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
34034   echo $ECHO_N "(cached) $ECHO_C" >&6
34035 else
34036   cat >conftest.$ac_ext <<_ACEOF
34037 /* confdefs.h.  */
34038 _ACEOF
34039 cat confdefs.h >>conftest.$ac_ext
34040 cat >>conftest.$ac_ext <<_ACEOF
34041 /* end confdefs.h.  */
34042 #include <grp.h>
34043
34044 int
34045 main ()
34046 {
34047 #ifndef getgrgid
34048   (void) getgrgid;
34049 #endif
34050
34051   ;
34052   return 0;
34053 }
34054 _ACEOF
34055 rm -f conftest.$ac_objext
34056 if { (ac_try="$ac_compile"
34057 case "(($ac_try" in
34058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34059   *) ac_try_echo=$ac_try;;
34060 esac
34061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34062   (eval "$ac_compile") 2>conftest.er1
34063   ac_status=$?
34064   grep -v '^ *+' conftest.er1 >conftest.err
34065   rm -f conftest.er1
34066   cat conftest.err >&5
34067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34068   (exit $ac_status); } && {
34069          test -z "$ac_c_werror_flag" ||
34070          test ! -s conftest.err
34071        } && test -s conftest.$ac_objext; then
34072   ac_cv_have_decl_getgrgid=yes
34073 else
34074   echo "$as_me: failed program was:" >&5
34075 sed 's/^/| /' conftest.$ac_ext >&5
34076
34077         ac_cv_have_decl_getgrgid=no
34078 fi
34079
34080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34081 fi
34082 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
34083 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6; }
34084 if test $ac_cv_have_decl_getgrgid = yes; then
34085
34086 cat >>confdefs.h <<_ACEOF
34087 #define HAVE_DECL_GETGRGID 1
34088 _ACEOF
34089
34090
34091 else
34092   cat >>confdefs.h <<_ACEOF
34093 #define HAVE_DECL_GETGRGID 0
34094 _ACEOF
34095
34096
34097 fi
34098
34099
34100 { echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
34101 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6; }
34102 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
34103   echo $ECHO_N "(cached) $ECHO_C" >&6
34104 else
34105   cat >conftest.$ac_ext <<_ACEOF
34106 /* confdefs.h.  */
34107 _ACEOF
34108 cat confdefs.h >>conftest.$ac_ext
34109 cat >>conftest.$ac_ext <<_ACEOF
34110 /* end confdefs.h.  */
34111 #include <pwd.h>
34112
34113 int
34114 main ()
34115 {
34116 #ifndef getpwuid
34117   (void) getpwuid;
34118 #endif
34119
34120   ;
34121   return 0;
34122 }
34123 _ACEOF
34124 rm -f conftest.$ac_objext
34125 if { (ac_try="$ac_compile"
34126 case "(($ac_try" in
34127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34128   *) ac_try_echo=$ac_try;;
34129 esac
34130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34131   (eval "$ac_compile") 2>conftest.er1
34132   ac_status=$?
34133   grep -v '^ *+' conftest.er1 >conftest.err
34134   rm -f conftest.er1
34135   cat conftest.err >&5
34136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34137   (exit $ac_status); } && {
34138          test -z "$ac_c_werror_flag" ||
34139          test ! -s conftest.err
34140        } && test -s conftest.$ac_objext; then
34141   ac_cv_have_decl_getpwuid=yes
34142 else
34143   echo "$as_me: failed program was:" >&5
34144 sed 's/^/| /' conftest.$ac_ext >&5
34145
34146         ac_cv_have_decl_getpwuid=no
34147 fi
34148
34149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34150 fi
34151 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
34152 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6; }
34153 if test $ac_cv_have_decl_getpwuid = yes; then
34154
34155 cat >>confdefs.h <<_ACEOF
34156 #define HAVE_DECL_GETPWUID 1
34157 _ACEOF
34158
34159
34160 else
34161   cat >>confdefs.h <<_ACEOF
34162 #define HAVE_DECL_GETPWUID 0
34163 _ACEOF
34164
34165
34166 fi
34167
34168
34169 { echo "$as_me:$LINENO: checking whether time is declared" >&5
34170 echo $ECHO_N "checking whether time is declared... $ECHO_C" >&6; }
34171 if test "${ac_cv_have_decl_time+set}" = set; then
34172   echo $ECHO_N "(cached) $ECHO_C" >&6
34173 else
34174   cat >conftest.$ac_ext <<_ACEOF
34175 /* confdefs.h.  */
34176 _ACEOF
34177 cat confdefs.h >>conftest.$ac_ext
34178 cat >>conftest.$ac_ext <<_ACEOF
34179 /* end confdefs.h.  */
34180 #include <time.h>
34181
34182 int
34183 main ()
34184 {
34185 #ifndef time
34186   (void) time;
34187 #endif
34188
34189   ;
34190   return 0;
34191 }
34192 _ACEOF
34193 rm -f conftest.$ac_objext
34194 if { (ac_try="$ac_compile"
34195 case "(($ac_try" in
34196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34197   *) ac_try_echo=$ac_try;;
34198 esac
34199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34200   (eval "$ac_compile") 2>conftest.er1
34201   ac_status=$?
34202   grep -v '^ *+' conftest.er1 >conftest.err
34203   rm -f conftest.er1
34204   cat conftest.err >&5
34205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34206   (exit $ac_status); } && {
34207          test -z "$ac_c_werror_flag" ||
34208          test ! -s conftest.err
34209        } && test -s conftest.$ac_objext; then
34210   ac_cv_have_decl_time=yes
34211 else
34212   echo "$as_me: failed program was:" >&5
34213 sed 's/^/| /' conftest.$ac_ext >&5
34214
34215         ac_cv_have_decl_time=no
34216 fi
34217
34218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34219 fi
34220 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_time" >&5
34221 echo "${ECHO_T}$ac_cv_have_decl_time" >&6; }
34222 if test $ac_cv_have_decl_time = yes; then
34223
34224 cat >>confdefs.h <<_ACEOF
34225 #define HAVE_DECL_TIME 1
34226 _ACEOF
34227
34228
34229 else
34230   cat >>confdefs.h <<_ACEOF
34231 #define HAVE_DECL_TIME 0
34232 _ACEOF
34233
34234
34235 fi
34236
34237
34238
34239
34240 for ac_func in waitpid
34241 do
34242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34246   echo $ECHO_N "(cached) $ECHO_C" >&6
34247 else
34248   cat >conftest.$ac_ext <<_ACEOF
34249 /* confdefs.h.  */
34250 _ACEOF
34251 cat confdefs.h >>conftest.$ac_ext
34252 cat >>conftest.$ac_ext <<_ACEOF
34253 /* end confdefs.h.  */
34254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34255    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34256 #define $ac_func innocuous_$ac_func
34257
34258 /* System header to define __stub macros and hopefully few prototypes,
34259     which can conflict with char $ac_func (); below.
34260     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34261     <limits.h> exists even on freestanding compilers.  */
34262
34263 #ifdef __STDC__
34264 # include <limits.h>
34265 #else
34266 # include <assert.h>
34267 #endif
34268
34269 #undef $ac_func
34270
34271 /* Override any GCC internal prototype to avoid an error.
34272    Use char because int might match the return type of a GCC
34273    builtin and then its argument prototype would still apply.  */
34274 #ifdef __cplusplus
34275 extern "C"
34276 #endif
34277 char $ac_func ();
34278 /* The GNU C library defines this for functions which it implements
34279     to always fail with ENOSYS.  Some functions are actually named
34280     something starting with __ and the normal name is an alias.  */
34281 #if defined __stub_$ac_func || defined __stub___$ac_func
34282 choke me
34283 #endif
34284
34285 int
34286 main ()
34287 {
34288 return $ac_func ();
34289   ;
34290   return 0;
34291 }
34292 _ACEOF
34293 rm -f conftest.$ac_objext conftest$ac_exeext
34294 if { (ac_try="$ac_link"
34295 case "(($ac_try" in
34296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34297   *) ac_try_echo=$ac_try;;
34298 esac
34299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34300   (eval "$ac_link") 2>conftest.er1
34301   ac_status=$?
34302   grep -v '^ *+' conftest.er1 >conftest.err
34303   rm -f conftest.er1
34304   cat conftest.err >&5
34305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34306   (exit $ac_status); } && {
34307          test -z "$ac_c_werror_flag" ||
34308          test ! -s conftest.err
34309        } && test -s conftest$ac_exeext &&
34310        $as_test_x conftest$ac_exeext; then
34311   eval "$as_ac_var=yes"
34312 else
34313   echo "$as_me: failed program was:" >&5
34314 sed 's/^/| /' conftest.$ac_ext >&5
34315
34316         eval "$as_ac_var=no"
34317 fi
34318
34319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34320       conftest$ac_exeext conftest.$ac_ext
34321 fi
34322 ac_res=`eval echo '${'$as_ac_var'}'`
34323                { echo "$as_me:$LINENO: result: $ac_res" >&5
34324 echo "${ECHO_T}$ac_res" >&6; }
34325 if test `eval echo '${'$as_ac_var'}'` = yes; then
34326   cat >>confdefs.h <<_ACEOF
34327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34328 _ACEOF
34329
34330 else
34331   case " $LIBOBJS " in
34332   *" $ac_func.$ac_objext "* ) ;;
34333   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
34334  ;;
34335 esac
34336
34337 fi
34338 done
34339
34340
34341
34342 { echo "$as_me:$LINENO: checking for remote shell" >&5
34343 echo $ECHO_N "checking for remote shell... $ECHO_C" >&6; }
34344 if test "${tar_cv_path_RSH+set}" = set; then
34345   echo $ECHO_N "(cached) $ECHO_C" >&6
34346 else
34347   if test -n "$RSH"; then
34348     tar_cv_path_RSH=$RSH
34349   else
34350     tar_cv_path_RSH=no
34351     for ac_file in /usr/ucb/rsh /usr/bin/remsh /usr/bin/rsh /usr/bsd/rsh \
34352         /usr/bin/nsh /usr/bin/rcmd
34353     do
34354       # Prefer a non-symlink rsh to a symlink one, so that binaries built
34355       # on AIX 4.1.4, where /usr/ucb/rsh is a symlink to /usr/bin/rsh
34356       # will run on AIX 4.3.0, which has only /usr/bin/rsh.
34357       if test -f $ac_file; then
34358         if (test -h $ac_file) 2>/dev/null; then
34359           test $tar_cv_path_RSH = no && tar_cv_path_RSH=$ac_file
34360         else
34361           tar_cv_path_RSH=$ac_file
34362           break
34363         fi
34364       fi
34365     done
34366   fi
34367 fi
34368 { echo "$as_me:$LINENO: result: $tar_cv_path_RSH" >&5
34369 echo "${ECHO_T}$tar_cv_path_RSH" >&6; }
34370 if test $tar_cv_path_RSH = no; then
34371
34372 for ac_header in netdb.h
34373 do
34374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34376   { echo "$as_me:$LINENO: checking for $ac_header" >&5
34377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34379   echo $ECHO_N "(cached) $ECHO_C" >&6
34380 fi
34381 ac_res=`eval echo '${'$as_ac_Header'}'`
34382                { echo "$as_me:$LINENO: result: $ac_res" >&5
34383 echo "${ECHO_T}$ac_res" >&6; }
34384 else
34385   # Is the header compilable?
34386 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34388 cat >conftest.$ac_ext <<_ACEOF
34389 /* confdefs.h.  */
34390 _ACEOF
34391 cat confdefs.h >>conftest.$ac_ext
34392 cat >>conftest.$ac_ext <<_ACEOF
34393 /* end confdefs.h.  */
34394 $ac_includes_default
34395 #include <$ac_header>
34396 _ACEOF
34397 rm -f conftest.$ac_objext
34398 if { (ac_try="$ac_compile"
34399 case "(($ac_try" in
34400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34401   *) ac_try_echo=$ac_try;;
34402 esac
34403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34404   (eval "$ac_compile") 2>conftest.er1
34405   ac_status=$?
34406   grep -v '^ *+' conftest.er1 >conftest.err
34407   rm -f conftest.er1
34408   cat conftest.err >&5
34409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34410   (exit $ac_status); } && {
34411          test -z "$ac_c_werror_flag" ||
34412          test ! -s conftest.err
34413        } && test -s conftest.$ac_objext; then
34414   ac_header_compiler=yes
34415 else
34416   echo "$as_me: failed program was:" >&5
34417 sed 's/^/| /' conftest.$ac_ext >&5
34418
34419         ac_header_compiler=no
34420 fi
34421
34422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34423 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34424 echo "${ECHO_T}$ac_header_compiler" >&6; }
34425
34426 # Is the header present?
34427 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34428 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34429 cat >conftest.$ac_ext <<_ACEOF
34430 /* confdefs.h.  */
34431 _ACEOF
34432 cat confdefs.h >>conftest.$ac_ext
34433 cat >>conftest.$ac_ext <<_ACEOF
34434 /* end confdefs.h.  */
34435 #include <$ac_header>
34436 _ACEOF
34437 if { (ac_try="$ac_cpp conftest.$ac_ext"
34438 case "(($ac_try" in
34439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34440   *) ac_try_echo=$ac_try;;
34441 esac
34442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34443   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34444   ac_status=$?
34445   grep -v '^ *+' conftest.er1 >conftest.err
34446   rm -f conftest.er1
34447   cat conftest.err >&5
34448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34449   (exit $ac_status); } >/dev/null && {
34450          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34451          test ! -s conftest.err
34452        }; then
34453   ac_header_preproc=yes
34454 else
34455   echo "$as_me: failed program was:" >&5
34456 sed 's/^/| /' conftest.$ac_ext >&5
34457
34458   ac_header_preproc=no
34459 fi
34460
34461 rm -f conftest.err conftest.$ac_ext
34462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34463 echo "${ECHO_T}$ac_header_preproc" >&6; }
34464
34465 # So?  What about this header?
34466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34467   yes:no: )
34468     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34470     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34472     ac_header_preproc=yes
34473     ;;
34474   no:yes:* )
34475     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34477     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34478 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34479     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34481     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34482 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34483     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34485     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34487     ( cat <<\_ASBOX
34488 ## ------------------------------ ##
34489 ## Report this to bug-tar@gnu.org ##
34490 ## ------------------------------ ##
34491 _ASBOX
34492      ) | sed "s/^/$as_me: WARNING:     /" >&2
34493     ;;
34494 esac
34495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34498   echo $ECHO_N "(cached) $ECHO_C" >&6
34499 else
34500   eval "$as_ac_Header=\$ac_header_preproc"
34501 fi
34502 ac_res=`eval echo '${'$as_ac_Header'}'`
34503                { echo "$as_me:$LINENO: result: $ac_res" >&5
34504 echo "${ECHO_T}$ac_res" >&6; }
34505
34506 fi
34507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34508   cat >>confdefs.h <<_ACEOF
34509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34510 _ACEOF
34511
34512 fi
34513
34514 done
34515
34516 else
34517
34518 cat >>confdefs.h <<_ACEOF
34519 #define REMOTE_SHELL "$tar_cv_path_RSH"
34520 _ACEOF
34521
34522 fi
34523
34524 { echo "$as_me:$LINENO: checking for default archive format" >&5
34525 echo $ECHO_N "checking for default archive format... $ECHO_C" >&6; }
34526
34527
34528
34529 if test -z "$DEFAULT_ARCHIVE_FORMAT"; then
34530   DEFAULT_ARCHIVE_FORMAT="GNU"
34531 fi
34532 case $DEFAULT_ARCHIVE_FORMAT in
34533   V7|OLDGNU|USTAR|POSIX|GNU) ;;
34534   *) { { echo "$as_me:$LINENO: error: Invalid format name" >&5
34535 echo "$as_me: error: Invalid format name" >&2;}
34536    { (exit 1); exit 1; }; };;
34537 esac
34538
34539 cat >>confdefs.h <<_ACEOF
34540 #define DEFAULT_ARCHIVE_FORMAT ${DEFAULT_ARCHIVE_FORMAT}_FORMAT
34541 _ACEOF
34542
34543 { echo "$as_me:$LINENO: result: $DEFAULT_ARCHIVE_FORMAT" >&5
34544 echo "${ECHO_T}$DEFAULT_ARCHIVE_FORMAT" >&6; }
34545
34546 { echo "$as_me:$LINENO: checking for default archive" >&5
34547 echo $ECHO_N "checking for default archive... $ECHO_C" >&6; }
34548
34549
34550 if test -z "$DEFAULT_ARCHIVE"; then
34551   DEFAULT_ARCHIVE=-
34552 else
34553   if test -z "`ls $DEFAULT_ARCHIVE 2>/dev/null`"; then
34554     { echo "$as_me:$LINENO: WARNING: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" >&5
34555 echo "$as_me: WARNING: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" >&2;}
34556   fi
34557   # FIXME: Look for DEFTAPE in <sys/mtio.h>.
34558   # FIXME: Let DEVICE_PREFIX be configured from the environment.
34559   # FIXME: Rearrange, here.
34560   case $DEFAULT_ARCHIVE in
34561     *[0-7][lmh])
34562
34563 cat >>confdefs.h <<\_ACEOF
34564 #define DENSITY_LETTER 1
34565 _ACEOF
34566
34567       device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7lmh$//'`
34568       ;;
34569     *[0-7])
34570       device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7$//'`
34571       ;;
34572     *)
34573       device_prefix=
34574       ;;
34575   esac
34576   case "$device_prefix" in
34577     ?*)
34578
34579 cat >>confdefs.h <<_ACEOF
34580 #define DEVICE_PREFIX "$device_prefix"
34581 _ACEOF
34582
34583       ;;
34584   esac
34585 fi
34586
34587 cat >>confdefs.h <<_ACEOF
34588 #define DEFAULT_ARCHIVE "$DEFAULT_ARCHIVE"
34589 _ACEOF
34590
34591 { echo "$as_me:$LINENO: result: $DEFAULT_ARCHIVE" >&5
34592 echo "${ECHO_T}$DEFAULT_ARCHIVE" >&6; }
34593
34594
34595 { echo "$as_me:$LINENO: checking for default blocking" >&5
34596 echo $ECHO_N "checking for default blocking... $ECHO_C" >&6; }
34597 DEFAULT_BLOCKING=${DEFAULT_BLOCKING-20}
34598
34599 cat >>confdefs.h <<_ACEOF
34600 #define DEFAULT_BLOCKING $DEFAULT_BLOCKING
34601 _ACEOF
34602
34603 { echo "$as_me:$LINENO: result: $DEFAULT_BLOCKING" >&5
34604 echo "${ECHO_T}$DEFAULT_BLOCKING" >&6; }
34605
34606 { echo "$as_me:$LINENO: checking for default quoting style" >&5
34607 echo $ECHO_N "checking for default quoting style... $ECHO_C" >&6; }
34608
34609
34610 DEFAULT_QUOTING_STYLE="escape"
34611
34612
34613 case $DEFAULT_QUOTING_STYLE in
34614           literal|shell|shell-always|c|escape|locale|clocale) ;;
34615 *)  { { echo "$as_me:$LINENO: error: Invalid quoting style" >&5
34616 echo "$as_me: error: Invalid quoting style" >&2;}
34617    { (exit 1); exit 1; }; };;
34618 esac
34619 { echo "$as_me:$LINENO: result: $DEFAULT_QUOTING_STYLE" >&5
34620 echo "${ECHO_T}$DEFAULT_QUOTING_STYLE" >&6; }
34621 DEFAULT_QUOTING_STYLE=`echo ${DEFAULT_QUOTING_STYLE}|sed 's/-/_/g'`_quoting_style
34622
34623 cat >>confdefs.h <<_ACEOF
34624 #define DEFAULT_QUOTING_STYLE $DEFAULT_QUOTING_STYLE
34625 _ACEOF
34626
34627
34628 # Iconv
34629
34630       if test "X$prefix" = "XNONE"; then
34631     acl_final_prefix="$ac_default_prefix"
34632   else
34633     acl_final_prefix="$prefix"
34634   fi
34635   if test "X$exec_prefix" = "XNONE"; then
34636     acl_final_exec_prefix='${prefix}'
34637   else
34638     acl_final_exec_prefix="$exec_prefix"
34639   fi
34640   acl_save_prefix="$prefix"
34641   prefix="$acl_final_prefix"
34642   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
34643   prefix="$acl_save_prefix"
34644
34645
34646 # Check whether --with-gnu-ld was given.
34647 if test "${with_gnu_ld+set}" = set; then
34648   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
34649 else
34650   with_gnu_ld=no
34651 fi
34652
34653 # Prepare PATH_SEPARATOR.
34654 # The user is always right.
34655 if test "${PATH_SEPARATOR+set}" != set; then
34656   echo "#! /bin/sh" >conf$$.sh
34657   echo  "exit 0"   >>conf$$.sh
34658   chmod +x conf$$.sh
34659   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34660     PATH_SEPARATOR=';'
34661   else
34662     PATH_SEPARATOR=:
34663   fi
34664   rm -f conf$$.sh
34665 fi
34666 ac_prog=ld
34667 if test "$GCC" = yes; then
34668   # Check if gcc -print-prog-name=ld gives a path.
34669   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
34670 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
34671   case $host in
34672   *-*-mingw*)
34673     # gcc leaves a trailing carriage return which upsets mingw
34674     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
34675   *)
34676     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
34677   esac
34678   case $ac_prog in
34679     # Accept absolute paths.
34680     [\\/]* | [A-Za-z]:[\\/]*)
34681       re_direlt='/[^/][^/]*/\.\./'
34682       # Canonicalize the path of ld
34683       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
34684       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
34685         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
34686       done
34687       test -z "$LD" && LD="$ac_prog"
34688       ;;
34689   "")
34690     # If it fails, then pretend we aren't using GCC.
34691     ac_prog=ld
34692     ;;
34693   *)
34694     # If it is relative, then search for the first ld in PATH.
34695     with_gnu_ld=unknown
34696     ;;
34697   esac
34698 elif test "$with_gnu_ld" = yes; then
34699   { echo "$as_me:$LINENO: checking for GNU ld" >&5
34700 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
34701 else
34702   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
34703 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
34704 fi
34705 if test "${acl_cv_path_LD+set}" = set; then
34706   echo $ECHO_N "(cached) $ECHO_C" >&6
34707 else
34708   if test -z "$LD"; then
34709   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
34710   for ac_dir in $PATH; do
34711     test -z "$ac_dir" && ac_dir=.
34712     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
34713       acl_cv_path_LD="$ac_dir/$ac_prog"
34714       # Check to see if the program is GNU ld.  I'd rather use --version,
34715       # but apparently some GNU ld's only accept -v.
34716       # Break only if it was the GNU/non-GNU ld that we prefer.
34717       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
34718       *GNU* | *'with BFD'*)
34719         test "$with_gnu_ld" != no && break ;;
34720       *)
34721         test "$with_gnu_ld" != yes && break ;;
34722       esac
34723     fi
34724   done
34725   IFS="$ac_save_ifs"
34726 else
34727   acl_cv_path_LD="$LD" # Let the user override the test with a path.
34728 fi
34729 fi
34730
34731 LD="$acl_cv_path_LD"
34732 if test -n "$LD"; then
34733   { echo "$as_me:$LINENO: result: $LD" >&5
34734 echo "${ECHO_T}$LD" >&6; }
34735 else
34736   { echo "$as_me:$LINENO: result: no" >&5
34737 echo "${ECHO_T}no" >&6; }
34738 fi
34739 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
34740 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
34741    { (exit 1); exit 1; }; }
34742 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
34743 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
34744 if test "${acl_cv_prog_gnu_ld+set}" = set; then
34745   echo $ECHO_N "(cached) $ECHO_C" >&6
34746 else
34747   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
34748 case `$LD -v 2>&1 </dev/null` in
34749 *GNU* | *'with BFD'*)
34750   acl_cv_prog_gnu_ld=yes ;;
34751 *)
34752   acl_cv_prog_gnu_ld=no ;;
34753 esac
34754 fi
34755 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
34756 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
34757 with_gnu_ld=$acl_cv_prog_gnu_ld
34758
34759
34760
34761
34762                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
34763 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
34764 if test "${acl_cv_rpath+set}" = set; then
34765   echo $ECHO_N "(cached) $ECHO_C" >&6
34766 else
34767
34768     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
34769     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
34770     . ./conftest.sh
34771     rm -f ./conftest.sh
34772     acl_cv_rpath=done
34773
34774 fi
34775 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
34776 echo "${ECHO_T}$acl_cv_rpath" >&6; }
34777   wl="$acl_cv_wl"
34778   acl_libext="$acl_cv_libext"
34779   acl_shlibext="$acl_cv_shlibext"
34780   acl_libname_spec="$acl_cv_libname_spec"
34781   acl_library_names_spec="$acl_cv_library_names_spec"
34782   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
34783   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
34784   acl_hardcode_direct="$acl_cv_hardcode_direct"
34785   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
34786     # Check whether --enable-rpath was given.
34787 if test "${enable_rpath+set}" = set; then
34788   enableval=$enable_rpath; :
34789 else
34790   enable_rpath=yes
34791 fi
34792
34793
34794
34795                   acl_libdirstem=lib
34796   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
34797   if test -n "$searchpath"; then
34798     acl_save_IFS="${IFS=        }"; IFS=":"
34799     for searchdir in $searchpath; do
34800       if test -d "$searchdir"; then
34801         case "$searchdir" in
34802           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
34803           *) searchdir=`cd "$searchdir" && pwd`
34804              case "$searchdir" in
34805                */lib64 ) acl_libdirstem=lib64 ;;
34806              esac ;;
34807         esac
34808       fi
34809     done
34810     IFS="$acl_save_IFS"
34811   fi
34812
34813
34814
34815
34816
34817
34818
34819
34820
34821
34822
34823
34824     use_additional=yes
34825
34826   acl_save_prefix="$prefix"
34827   prefix="$acl_final_prefix"
34828   acl_save_exec_prefix="$exec_prefix"
34829   exec_prefix="$acl_final_exec_prefix"
34830
34831     eval additional_includedir=\"$includedir\"
34832     eval additional_libdir=\"$libdir\"
34833
34834   exec_prefix="$acl_save_exec_prefix"
34835   prefix="$acl_save_prefix"
34836
34837
34838 # Check whether --with-libiconv-prefix was given.
34839 if test "${with_libiconv_prefix+set}" = set; then
34840   withval=$with_libiconv_prefix;
34841     if test "X$withval" = "Xno"; then
34842       use_additional=no
34843     else
34844       if test "X$withval" = "X"; then
34845
34846   acl_save_prefix="$prefix"
34847   prefix="$acl_final_prefix"
34848   acl_save_exec_prefix="$exec_prefix"
34849   exec_prefix="$acl_final_exec_prefix"
34850
34851           eval additional_includedir=\"$includedir\"
34852           eval additional_libdir=\"$libdir\"
34853
34854   exec_prefix="$acl_save_exec_prefix"
34855   prefix="$acl_save_prefix"
34856
34857       else
34858         additional_includedir="$withval/include"
34859         additional_libdir="$withval/$acl_libdirstem"
34860       fi
34861     fi
34862
34863 fi
34864
34865       LIBICONV=
34866   LTLIBICONV=
34867   INCICONV=
34868   LIBICONV_PREFIX=
34869   rpathdirs=
34870   ltrpathdirs=
34871   names_already_handled=
34872   names_next_round='iconv '
34873   while test -n "$names_next_round"; do
34874     names_this_round="$names_next_round"
34875     names_next_round=
34876     for name in $names_this_round; do
34877       already_handled=
34878       for n in $names_already_handled; do
34879         if test "$n" = "$name"; then
34880           already_handled=yes
34881           break
34882         fi
34883       done
34884       if test -z "$already_handled"; then
34885         names_already_handled="$names_already_handled $name"
34886                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
34887         eval value=\"\$HAVE_LIB$uppername\"
34888         if test -n "$value"; then
34889           if test "$value" = yes; then
34890             eval value=\"\$LIB$uppername\"
34891             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
34892             eval value=\"\$LTLIB$uppername\"
34893             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
34894           else
34895                                     :
34896           fi
34897         else
34898                               found_dir=
34899           found_la=
34900           found_so=
34901           found_a=
34902           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
34903           if test -n "$acl_shlibext"; then
34904             shrext=".$acl_shlibext"             # typically: shrext=.so
34905           else
34906             shrext=
34907           fi
34908           if test $use_additional = yes; then
34909             dir="$additional_libdir"
34910                                     if test -n "$acl_shlibext"; then
34911               if test -f "$dir/$libname$shrext"; then
34912                 found_dir="$dir"
34913                 found_so="$dir/$libname$shrext"
34914               else
34915                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
34916                   ver=`(cd "$dir" && \
34917                         for f in "$libname$shrext".*; do echo "$f"; done \
34918                         | sed -e "s,^$libname$shrext\\\\.,," \
34919                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
34920                         | sed 1q ) 2>/dev/null`
34921                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
34922                     found_dir="$dir"
34923                     found_so="$dir/$libname$shrext.$ver"
34924                   fi
34925                 else
34926                   eval library_names=\"$acl_library_names_spec\"
34927                   for f in $library_names; do
34928                     if test -f "$dir/$f"; then
34929                       found_dir="$dir"
34930                       found_so="$dir/$f"
34931                       break
34932                     fi
34933                   done
34934                 fi
34935               fi
34936             fi
34937                         if test "X$found_dir" = "X"; then
34938               if test -f "$dir/$libname.$acl_libext"; then
34939                 found_dir="$dir"
34940                 found_a="$dir/$libname.$acl_libext"
34941               fi
34942             fi
34943             if test "X$found_dir" != "X"; then
34944               if test -f "$dir/$libname.la"; then
34945                 found_la="$dir/$libname.la"
34946               fi
34947             fi
34948           fi
34949           if test "X$found_dir" = "X"; then
34950             for x in $LDFLAGS $LTLIBICONV; do
34951
34952   acl_save_prefix="$prefix"
34953   prefix="$acl_final_prefix"
34954   acl_save_exec_prefix="$exec_prefix"
34955   exec_prefix="$acl_final_exec_prefix"
34956   eval x=\"$x\"
34957   exec_prefix="$acl_save_exec_prefix"
34958   prefix="$acl_save_prefix"
34959
34960               case "$x" in
34961                 -L*)
34962                   dir=`echo "X$x" | sed -e 's/^X-L//'`
34963                                     if test -n "$acl_shlibext"; then
34964                     if test -f "$dir/$libname$shrext"; then
34965                       found_dir="$dir"
34966                       found_so="$dir/$libname$shrext"
34967                     else
34968                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
34969                         ver=`(cd "$dir" && \
34970                               for f in "$libname$shrext".*; do echo "$f"; done \
34971                               | sed -e "s,^$libname$shrext\\\\.,," \
34972                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
34973                               | sed 1q ) 2>/dev/null`
34974                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
34975                           found_dir="$dir"
34976                           found_so="$dir/$libname$shrext.$ver"
34977                         fi
34978                       else
34979                         eval library_names=\"$acl_library_names_spec\"
34980                         for f in $library_names; do
34981                           if test -f "$dir/$f"; then
34982                             found_dir="$dir"
34983                             found_so="$dir/$f"
34984                             break
34985                           fi
34986                         done
34987                       fi
34988                     fi
34989                   fi
34990                                     if test "X$found_dir" = "X"; then
34991                     if test -f "$dir/$libname.$acl_libext"; then
34992                       found_dir="$dir"
34993                       found_a="$dir/$libname.$acl_libext"
34994                     fi
34995                   fi
34996                   if test "X$found_dir" != "X"; then
34997                     if test -f "$dir/$libname.la"; then
34998                       found_la="$dir/$libname.la"
34999                     fi
35000                   fi
35001                   ;;
35002               esac
35003               if test "X$found_dir" != "X"; then
35004                 break
35005               fi
35006             done
35007           fi
35008           if test "X$found_dir" != "X"; then
35009                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
35010             if test "X$found_so" != "X"; then
35011                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
35012                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
35013               else
35014                                                                                 haveit=
35015                 for x in $ltrpathdirs; do
35016                   if test "X$x" = "X$found_dir"; then
35017                     haveit=yes
35018                     break
35019                   fi
35020                 done
35021                 if test -z "$haveit"; then
35022                   ltrpathdirs="$ltrpathdirs $found_dir"
35023                 fi
35024                                 if test "$acl_hardcode_direct" = yes; then
35025                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
35026                 else
35027                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
35028                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
35029                                                             haveit=
35030                     for x in $rpathdirs; do
35031                       if test "X$x" = "X$found_dir"; then
35032                         haveit=yes
35033                         break
35034                       fi
35035                     done
35036                     if test -z "$haveit"; then
35037                       rpathdirs="$rpathdirs $found_dir"
35038                     fi
35039                   else
35040                                                                                 haveit=
35041                     for x in $LDFLAGS $LIBICONV; do
35042
35043   acl_save_prefix="$prefix"
35044   prefix="$acl_final_prefix"
35045   acl_save_exec_prefix="$exec_prefix"
35046   exec_prefix="$acl_final_exec_prefix"
35047   eval x=\"$x\"
35048   exec_prefix="$acl_save_exec_prefix"
35049   prefix="$acl_save_prefix"
35050
35051                       if test "X$x" = "X-L$found_dir"; then
35052                         haveit=yes
35053                         break
35054                       fi
35055                     done
35056                     if test -z "$haveit"; then
35057                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
35058                     fi
35059                     if test "$acl_hardcode_minus_L" != no; then
35060                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
35061                     else
35062                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
35063                     fi
35064                   fi
35065                 fi
35066               fi
35067             else
35068               if test "X$found_a" != "X"; then
35069                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
35070               else
35071                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
35072               fi
35073             fi
35074                         additional_includedir=
35075             case "$found_dir" in
35076               */$acl_libdirstem | */$acl_libdirstem/)
35077                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
35078                 LIBICONV_PREFIX="$basedir"
35079                 additional_includedir="$basedir/include"
35080                 ;;
35081             esac
35082             if test "X$additional_includedir" != "X"; then
35083                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
35084                 haveit=
35085                 if test "X$additional_includedir" = "X/usr/local/include"; then
35086                   if test -n "$GCC"; then
35087                     case $host_os in
35088                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
35089                     esac
35090                   fi
35091                 fi
35092                 if test -z "$haveit"; then
35093                   for x in $CPPFLAGS $INCICONV; do
35094
35095   acl_save_prefix="$prefix"
35096   prefix="$acl_final_prefix"
35097   acl_save_exec_prefix="$exec_prefix"
35098   exec_prefix="$acl_final_exec_prefix"
35099   eval x=\"$x\"
35100   exec_prefix="$acl_save_exec_prefix"
35101   prefix="$acl_save_prefix"
35102
35103                     if test "X$x" = "X-I$additional_includedir"; then
35104                       haveit=yes
35105                       break
35106                     fi
35107                   done
35108                   if test -z "$haveit"; then
35109                     if test -d "$additional_includedir"; then
35110                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
35111                     fi
35112                   fi
35113                 fi
35114               fi
35115             fi
35116                         if test -n "$found_la"; then
35117                                                         save_libdir="$libdir"
35118               case "$found_la" in
35119                 */* | *\\*) . "$found_la" ;;
35120                 *) . "./$found_la" ;;
35121               esac
35122               libdir="$save_libdir"
35123                             for dep in $dependency_libs; do
35124                 case "$dep" in
35125                   -L*)
35126                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
35127                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
35128                       haveit=
35129                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
35130                         if test -n "$GCC"; then
35131                           case $host_os in
35132                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
35133                           esac
35134                         fi
35135                       fi
35136                       if test -z "$haveit"; then
35137                         haveit=
35138                         for x in $LDFLAGS $LIBICONV; do
35139
35140   acl_save_prefix="$prefix"
35141   prefix="$acl_final_prefix"
35142   acl_save_exec_prefix="$exec_prefix"
35143   exec_prefix="$acl_final_exec_prefix"
35144   eval x=\"$x\"
35145   exec_prefix="$acl_save_exec_prefix"
35146   prefix="$acl_save_prefix"
35147
35148                           if test "X$x" = "X-L$additional_libdir"; then
35149                             haveit=yes
35150                             break
35151                           fi
35152                         done
35153                         if test -z "$haveit"; then
35154                           if test -d "$additional_libdir"; then
35155                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
35156                           fi
35157                         fi
35158                         haveit=
35159                         for x in $LDFLAGS $LTLIBICONV; do
35160
35161   acl_save_prefix="$prefix"
35162   prefix="$acl_final_prefix"
35163   acl_save_exec_prefix="$exec_prefix"
35164   exec_prefix="$acl_final_exec_prefix"
35165   eval x=\"$x\"
35166   exec_prefix="$acl_save_exec_prefix"
35167   prefix="$acl_save_prefix"
35168
35169                           if test "X$x" = "X-L$additional_libdir"; then
35170                             haveit=yes
35171                             break
35172                           fi
35173                         done
35174                         if test -z "$haveit"; then
35175                           if test -d "$additional_libdir"; then
35176                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
35177                           fi
35178                         fi
35179                       fi
35180                     fi
35181                     ;;
35182                   -R*)
35183                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
35184                     if test "$enable_rpath" != no; then
35185                                                                   haveit=
35186                       for x in $rpathdirs; do
35187                         if test "X$x" = "X$dir"; then
35188                           haveit=yes
35189                           break
35190                         fi
35191                       done
35192                       if test -z "$haveit"; then
35193                         rpathdirs="$rpathdirs $dir"
35194                       fi
35195                                                                   haveit=
35196                       for x in $ltrpathdirs; do
35197                         if test "X$x" = "X$dir"; then
35198                           haveit=yes
35199                           break
35200                         fi
35201                       done
35202                       if test -z "$haveit"; then
35203                         ltrpathdirs="$ltrpathdirs $dir"
35204                       fi
35205                     fi
35206                     ;;
35207                   -l*)
35208                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
35209                     ;;
35210                   *.la)
35211                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
35212                     ;;
35213                   *)
35214                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
35215                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
35216                     ;;
35217                 esac
35218               done
35219             fi
35220           else
35221                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
35222             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
35223           fi
35224         fi
35225       fi
35226     done
35227   done
35228   if test "X$rpathdirs" != "X"; then
35229     if test -n "$acl_hardcode_libdir_separator"; then
35230                         alldirs=
35231       for found_dir in $rpathdirs; do
35232         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
35233       done
35234             acl_save_libdir="$libdir"
35235       libdir="$alldirs"
35236       eval flag=\"$acl_hardcode_libdir_flag_spec\"
35237       libdir="$acl_save_libdir"
35238       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
35239     else
35240             for found_dir in $rpathdirs; do
35241         acl_save_libdir="$libdir"
35242         libdir="$found_dir"
35243         eval flag=\"$acl_hardcode_libdir_flag_spec\"
35244         libdir="$acl_save_libdir"
35245         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
35246       done
35247     fi
35248   fi
35249   if test "X$ltrpathdirs" != "X"; then
35250             for found_dir in $ltrpathdirs; do
35251       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
35252     done
35253   fi
35254
35255
35256
35257
35258
35259
35260
35261
35262
35263
35264
35265
35266           am_save_CPPFLAGS="$CPPFLAGS"
35267
35268   for element in $INCICONV; do
35269     haveit=
35270     for x in $CPPFLAGS; do
35271
35272   acl_save_prefix="$prefix"
35273   prefix="$acl_final_prefix"
35274   acl_save_exec_prefix="$exec_prefix"
35275   exec_prefix="$acl_final_exec_prefix"
35276   eval x=\"$x\"
35277   exec_prefix="$acl_save_exec_prefix"
35278   prefix="$acl_save_prefix"
35279
35280       if test "X$x" = "X$element"; then
35281         haveit=yes
35282         break
35283       fi
35284     done
35285     if test -z "$haveit"; then
35286       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
35287     fi
35288   done
35289
35290
35291   { echo "$as_me:$LINENO: checking for iconv" >&5
35292 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
35293 if test "${am_cv_func_iconv+set}" = set; then
35294   echo $ECHO_N "(cached) $ECHO_C" >&6
35295 else
35296
35297     am_cv_func_iconv="no, consider installing GNU libiconv"
35298     am_cv_lib_iconv=no
35299     cat >conftest.$ac_ext <<_ACEOF
35300 /* confdefs.h.  */
35301 _ACEOF
35302 cat confdefs.h >>conftest.$ac_ext
35303 cat >>conftest.$ac_ext <<_ACEOF
35304 /* end confdefs.h.  */
35305 #include <stdlib.h>
35306 #include <iconv.h>
35307 int
35308 main ()
35309 {
35310 iconv_t cd = iconv_open("","");
35311        iconv(cd,NULL,NULL,NULL,NULL);
35312        iconv_close(cd);
35313   ;
35314   return 0;
35315 }
35316 _ACEOF
35317 rm -f conftest.$ac_objext conftest$ac_exeext
35318 if { (ac_try="$ac_link"
35319 case "(($ac_try" in
35320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35321   *) ac_try_echo=$ac_try;;
35322 esac
35323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35324   (eval "$ac_link") 2>conftest.er1
35325   ac_status=$?
35326   grep -v '^ *+' conftest.er1 >conftest.err
35327   rm -f conftest.er1
35328   cat conftest.err >&5
35329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35330   (exit $ac_status); } && {
35331          test -z "$ac_c_werror_flag" ||
35332          test ! -s conftest.err
35333        } && test -s conftest$ac_exeext &&
35334        $as_test_x conftest$ac_exeext; then
35335   am_cv_func_iconv=yes
35336 else
35337   echo "$as_me: failed program was:" >&5
35338 sed 's/^/| /' conftest.$ac_ext >&5
35339
35340
35341 fi
35342
35343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35344       conftest$ac_exeext conftest.$ac_ext
35345     if test "$am_cv_func_iconv" != yes; then
35346       am_save_LIBS="$LIBS"
35347       LIBS="$LIBS $LIBICONV"
35348       cat >conftest.$ac_ext <<_ACEOF
35349 /* confdefs.h.  */
35350 _ACEOF
35351 cat confdefs.h >>conftest.$ac_ext
35352 cat >>conftest.$ac_ext <<_ACEOF
35353 /* end confdefs.h.  */
35354 #include <stdlib.h>
35355 #include <iconv.h>
35356 int
35357 main ()
35358 {
35359 iconv_t cd = iconv_open("","");
35360          iconv(cd,NULL,NULL,NULL,NULL);
35361          iconv_close(cd);
35362   ;
35363   return 0;
35364 }
35365 _ACEOF
35366 rm -f conftest.$ac_objext conftest$ac_exeext
35367 if { (ac_try="$ac_link"
35368 case "(($ac_try" in
35369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35370   *) ac_try_echo=$ac_try;;
35371 esac
35372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35373   (eval "$ac_link") 2>conftest.er1
35374   ac_status=$?
35375   grep -v '^ *+' conftest.er1 >conftest.err
35376   rm -f conftest.er1
35377   cat conftest.err >&5
35378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35379   (exit $ac_status); } && {
35380          test -z "$ac_c_werror_flag" ||
35381          test ! -s conftest.err
35382        } && test -s conftest$ac_exeext &&
35383        $as_test_x conftest$ac_exeext; then
35384   am_cv_lib_iconv=yes
35385         am_cv_func_iconv=yes
35386 else
35387   echo "$as_me: failed program was:" >&5
35388 sed 's/^/| /' conftest.$ac_ext >&5
35389
35390
35391 fi
35392
35393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35394       conftest$ac_exeext conftest.$ac_ext
35395       LIBS="$am_save_LIBS"
35396     fi
35397
35398 fi
35399 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
35400 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
35401   if test "$am_cv_func_iconv" = yes; then
35402     { echo "$as_me:$LINENO: checking for working iconv" >&5
35403 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
35404 if test "${am_cv_func_iconv_works+set}" = set; then
35405   echo $ECHO_N "(cached) $ECHO_C" >&6
35406 else
35407
35408             am_save_LIBS="$LIBS"
35409       if test $am_cv_lib_iconv = yes; then
35410         LIBS="$LIBS $LIBICONV"
35411       fi
35412       if test "$cross_compiling" = yes; then
35413   case "$host_os" in
35414            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
35415            *)            am_cv_func_iconv_works="guessing yes" ;;
35416          esac
35417 else
35418   cat >conftest.$ac_ext <<_ACEOF
35419 /* confdefs.h.  */
35420 _ACEOF
35421 cat confdefs.h >>conftest.$ac_ext
35422 cat >>conftest.$ac_ext <<_ACEOF
35423 /* end confdefs.h.  */
35424
35425 #include <iconv.h>
35426 #include <string.h>
35427 int main ()
35428 {
35429   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
35430      returns.  */
35431   {
35432     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
35433     if (cd_utf8_to_88591 != (iconv_t)(-1))
35434       {
35435         static const char input[] = "\342\202\254"; /* EURO SIGN */
35436         char buf[10];
35437         const char *inptr = input;
35438         size_t inbytesleft = strlen (input);
35439         char *outptr = buf;
35440         size_t outbytesleft = sizeof (buf);
35441         size_t res = iconv (cd_utf8_to_88591,
35442                             (char **) &inptr, &inbytesleft,
35443                             &outptr, &outbytesleft);
35444         if (res == 0)
35445           return 1;
35446       }
35447   }
35448 #if 0 /* This bug could be worked around by the caller.  */
35449   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
35450   {
35451     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
35452     if (cd_88591_to_utf8 != (iconv_t)(-1))
35453       {
35454         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
35455         char buf[50];
35456         const char *inptr = input;
35457         size_t inbytesleft = strlen (input);
35458         char *outptr = buf;
35459         size_t outbytesleft = sizeof (buf);
35460         size_t res = iconv (cd_88591_to_utf8,
35461                             (char **) &inptr, &inbytesleft,
35462                             &outptr, &outbytesleft);
35463         if ((int)res > 0)
35464           return 1;
35465       }
35466   }
35467 #endif
35468   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
35469      provided.  */
35470   if (/* Try standardized names.  */
35471       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
35472       /* Try IRIX, OSF/1 names.  */
35473       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
35474       /* Try AIX names.  */
35475       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
35476       /* Try HP-UX names.  */
35477       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
35478     return 1;
35479   return 0;
35480 }
35481 _ACEOF
35482 rm -f conftest$ac_exeext
35483 if { (ac_try="$ac_link"
35484 case "(($ac_try" in
35485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35486   *) ac_try_echo=$ac_try;;
35487 esac
35488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35489   (eval "$ac_link") 2>&5
35490   ac_status=$?
35491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35492   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35493   { (case "(($ac_try" in
35494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35495   *) ac_try_echo=$ac_try;;
35496 esac
35497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35498   (eval "$ac_try") 2>&5
35499   ac_status=$?
35500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35501   (exit $ac_status); }; }; then
35502   am_cv_func_iconv_works=yes
35503 else
35504   echo "$as_me: program exited with status $ac_status" >&5
35505 echo "$as_me: failed program was:" >&5
35506 sed 's/^/| /' conftest.$ac_ext >&5
35507
35508 ( exit $ac_status )
35509 am_cv_func_iconv_works=no
35510 fi
35511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35512 fi
35513
35514
35515       LIBS="$am_save_LIBS"
35516
35517 fi
35518 { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
35519 echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
35520     case "$am_cv_func_iconv_works" in
35521       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
35522       *)   am_func_iconv=yes ;;
35523     esac
35524   else
35525     am_func_iconv=no am_cv_lib_iconv=no
35526   fi
35527   if test "$am_func_iconv" = yes; then
35528
35529 cat >>confdefs.h <<\_ACEOF
35530 #define HAVE_ICONV 1
35531 _ACEOF
35532
35533   fi
35534   if test "$am_cv_lib_iconv" = yes; then
35535     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
35536 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
35537     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
35538 echo "${ECHO_T}$LIBICONV" >&6; }
35539   else
35540             CPPFLAGS="$am_save_CPPFLAGS"
35541     LIBICONV=
35542     LTLIBICONV=
35543   fi
35544
35545
35546
35547   if test "$am_cv_func_iconv" = yes; then
35548     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
35549 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
35550     if test "${am_cv_proto_iconv+set}" = set; then
35551   echo $ECHO_N "(cached) $ECHO_C" >&6
35552 else
35553
35554       cat >conftest.$ac_ext <<_ACEOF
35555 /* confdefs.h.  */
35556 _ACEOF
35557 cat confdefs.h >>conftest.$ac_ext
35558 cat >>conftest.$ac_ext <<_ACEOF
35559 /* end confdefs.h.  */
35560
35561 #include <stdlib.h>
35562 #include <iconv.h>
35563 extern
35564 #ifdef __cplusplus
35565 "C"
35566 #endif
35567 #if defined(__STDC__) || defined(__cplusplus)
35568 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
35569 #else
35570 size_t iconv();
35571 #endif
35572
35573 int
35574 main ()
35575 {
35576
35577   ;
35578   return 0;
35579 }
35580 _ACEOF
35581 rm -f conftest.$ac_objext
35582 if { (ac_try="$ac_compile"
35583 case "(($ac_try" in
35584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35585   *) ac_try_echo=$ac_try;;
35586 esac
35587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35588   (eval "$ac_compile") 2>conftest.er1
35589   ac_status=$?
35590   grep -v '^ *+' conftest.er1 >conftest.err
35591   rm -f conftest.er1
35592   cat conftest.err >&5
35593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35594   (exit $ac_status); } && {
35595          test -z "$ac_c_werror_flag" ||
35596          test ! -s conftest.err
35597        } && test -s conftest.$ac_objext; then
35598   am_cv_proto_iconv_arg1=""
35599 else
35600   echo "$as_me: failed program was:" >&5
35601 sed 's/^/| /' conftest.$ac_ext >&5
35602
35603         am_cv_proto_iconv_arg1="const"
35604 fi
35605
35606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35607       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);"
35608 fi
35609
35610     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
35611     { echo "$as_me:$LINENO: result: ${ac_t:-
35612          }$am_cv_proto_iconv" >&5
35613 echo "${ECHO_T}${ac_t:-
35614          }$am_cv_proto_iconv" >&6; }
35615
35616 cat >>confdefs.h <<_ACEOF
35617 #define ICONV_CONST $am_cv_proto_iconv_arg1
35618 _ACEOF
35619
35620   fi
35621
35622
35623 for ac_header in iconv.h
35624 do
35625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35627   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35630   echo $ECHO_N "(cached) $ECHO_C" >&6
35631 fi
35632 ac_res=`eval echo '${'$as_ac_Header'}'`
35633                { echo "$as_me:$LINENO: result: $ac_res" >&5
35634 echo "${ECHO_T}$ac_res" >&6; }
35635 else
35636   # Is the header compilable?
35637 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35639 cat >conftest.$ac_ext <<_ACEOF
35640 /* confdefs.h.  */
35641 _ACEOF
35642 cat confdefs.h >>conftest.$ac_ext
35643 cat >>conftest.$ac_ext <<_ACEOF
35644 /* end confdefs.h.  */
35645 $ac_includes_default
35646 #include <$ac_header>
35647 _ACEOF
35648 rm -f conftest.$ac_objext
35649 if { (ac_try="$ac_compile"
35650 case "(($ac_try" in
35651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35652   *) ac_try_echo=$ac_try;;
35653 esac
35654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35655   (eval "$ac_compile") 2>conftest.er1
35656   ac_status=$?
35657   grep -v '^ *+' conftest.er1 >conftest.err
35658   rm -f conftest.er1
35659   cat conftest.err >&5
35660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35661   (exit $ac_status); } && {
35662          test -z "$ac_c_werror_flag" ||
35663          test ! -s conftest.err
35664        } && test -s conftest.$ac_objext; then
35665   ac_header_compiler=yes
35666 else
35667   echo "$as_me: failed program was:" >&5
35668 sed 's/^/| /' conftest.$ac_ext >&5
35669
35670         ac_header_compiler=no
35671 fi
35672
35673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35674 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35675 echo "${ECHO_T}$ac_header_compiler" >&6; }
35676
35677 # Is the header present?
35678 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35680 cat >conftest.$ac_ext <<_ACEOF
35681 /* confdefs.h.  */
35682 _ACEOF
35683 cat confdefs.h >>conftest.$ac_ext
35684 cat >>conftest.$ac_ext <<_ACEOF
35685 /* end confdefs.h.  */
35686 #include <$ac_header>
35687 _ACEOF
35688 if { (ac_try="$ac_cpp conftest.$ac_ext"
35689 case "(($ac_try" in
35690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35691   *) ac_try_echo=$ac_try;;
35692 esac
35693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35694   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35695   ac_status=$?
35696   grep -v '^ *+' conftest.er1 >conftest.err
35697   rm -f conftest.er1
35698   cat conftest.err >&5
35699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35700   (exit $ac_status); } >/dev/null && {
35701          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35702          test ! -s conftest.err
35703        }; then
35704   ac_header_preproc=yes
35705 else
35706   echo "$as_me: failed program was:" >&5
35707 sed 's/^/| /' conftest.$ac_ext >&5
35708
35709   ac_header_preproc=no
35710 fi
35711
35712 rm -f conftest.err conftest.$ac_ext
35713 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35714 echo "${ECHO_T}$ac_header_preproc" >&6; }
35715
35716 # So?  What about this header?
35717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35718   yes:no: )
35719     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35721     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35723     ac_header_preproc=yes
35724     ;;
35725   no:yes:* )
35726     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35728     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35729 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35730     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35732     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35733 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35734     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35736     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35738     ( cat <<\_ASBOX
35739 ## ------------------------------ ##
35740 ## Report this to bug-tar@gnu.org ##
35741 ## ------------------------------ ##
35742 _ASBOX
35743      ) | sed "s/^/$as_me: WARNING:     /" >&2
35744     ;;
35745 esac
35746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35749   echo $ECHO_N "(cached) $ECHO_C" >&6
35750 else
35751   eval "$as_ac_Header=\$ac_header_preproc"
35752 fi
35753 ac_res=`eval echo '${'$as_ac_Header'}'`
35754                { echo "$as_me:$LINENO: result: $ac_res" >&5
35755 echo "${ECHO_T}$ac_res" >&6; }
35756
35757 fi
35758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35759   cat >>confdefs.h <<_ACEOF
35760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35761 _ACEOF
35762
35763 fi
35764
35765 done
35766
35767 { echo "$as_me:$LINENO: checking for iconv_t" >&5
35768 echo $ECHO_N "checking for iconv_t... $ECHO_C" >&6; }
35769 if test "${ac_cv_type_iconv_t+set}" = set; then
35770   echo $ECHO_N "(cached) $ECHO_C" >&6
35771 else
35772   cat >conftest.$ac_ext <<_ACEOF
35773 /* confdefs.h.  */
35774 _ACEOF
35775 cat confdefs.h >>conftest.$ac_ext
35776 cat >>conftest.$ac_ext <<_ACEOF
35777 /* end confdefs.h.  */
35778
35779 #ifdef HAVE_ICONV_H
35780 # include <iconv.h>
35781 #endif
35782
35783
35784 typedef iconv_t ac__type_new_;
35785 int
35786 main ()
35787 {
35788 if ((ac__type_new_ *) 0)
35789   return 0;
35790 if (sizeof (ac__type_new_))
35791   return 0;
35792   ;
35793   return 0;
35794 }
35795 _ACEOF
35796 rm -f conftest.$ac_objext
35797 if { (ac_try="$ac_compile"
35798 case "(($ac_try" in
35799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35800   *) ac_try_echo=$ac_try;;
35801 esac
35802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35803   (eval "$ac_compile") 2>conftest.er1
35804   ac_status=$?
35805   grep -v '^ *+' conftest.er1 >conftest.err
35806   rm -f conftest.er1
35807   cat conftest.err >&5
35808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35809   (exit $ac_status); } && {
35810          test -z "$ac_c_werror_flag" ||
35811          test ! -s conftest.err
35812        } && test -s conftest.$ac_objext; then
35813   ac_cv_type_iconv_t=yes
35814 else
35815   echo "$as_me: failed program was:" >&5
35816 sed 's/^/| /' conftest.$ac_ext >&5
35817
35818         ac_cv_type_iconv_t=no
35819 fi
35820
35821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35822 fi
35823 { echo "$as_me:$LINENO: result: $ac_cv_type_iconv_t" >&5
35824 echo "${ECHO_T}$ac_cv_type_iconv_t" >&6; }
35825 if test $ac_cv_type_iconv_t = yes; then
35826   :
35827 else
35828
35829 cat >>confdefs.h <<\_ACEOF
35830 #define iconv_t int
35831 _ACEOF
35832
35833 fi
35834
35835
35836 # Gettext.
35837
35838   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
35839 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
35840     # Check whether --enable-nls was given.
35841 if test "${enable_nls+set}" = set; then
35842   enableval=$enable_nls; USE_NLS=$enableval
35843 else
35844   USE_NLS=yes
35845 fi
35846
35847   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
35848 echo "${ECHO_T}$USE_NLS" >&6; }
35849
35850
35851
35852
35853       GETTEXT_MACRO_VERSION=0.17
35854
35855
35856
35857
35858 # Prepare PATH_SEPARATOR.
35859 # The user is always right.
35860 if test "${PATH_SEPARATOR+set}" != set; then
35861   echo "#! /bin/sh" >conf$$.sh
35862   echo  "exit 0"   >>conf$$.sh
35863   chmod +x conf$$.sh
35864   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35865     PATH_SEPARATOR=';'
35866   else
35867     PATH_SEPARATOR=:
35868   fi
35869   rm -f conf$$.sh
35870 fi
35871
35872 # Find out how to test for executable files. Don't use a zero-byte file,
35873 # as systems may use methods other than mode bits to determine executability.
35874 cat >conf$$.file <<_ASEOF
35875 #! /bin/sh
35876 exit 0
35877 _ASEOF
35878 chmod +x conf$$.file
35879 if test -x conf$$.file >/dev/null 2>&1; then
35880   ac_executable_p="test -x"
35881 else
35882   ac_executable_p="test -f"
35883 fi
35884 rm -f conf$$.file
35885
35886 # Extract the first word of "msgfmt", so it can be a program name with args.
35887 set dummy msgfmt; ac_word=$2
35888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35890 if test "${ac_cv_path_MSGFMT+set}" = set; then
35891   echo $ECHO_N "(cached) $ECHO_C" >&6
35892 else
35893   case "$MSGFMT" in
35894   [\\/]* | ?:[\\/]*)
35895     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
35896     ;;
35897   *)
35898     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
35899     for ac_dir in $PATH; do
35900       IFS="$ac_save_IFS"
35901       test -z "$ac_dir" && ac_dir=.
35902       for ac_exec_ext in '' $ac_executable_extensions; do
35903         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
35904           echo "$as_me: trying $ac_dir/$ac_word..." >&5
35905           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
35906      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
35907             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
35908             break 2
35909           fi
35910         fi
35911       done
35912     done
35913     IFS="$ac_save_IFS"
35914   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
35915     ;;
35916 esac
35917 fi
35918 MSGFMT="$ac_cv_path_MSGFMT"
35919 if test "$MSGFMT" != ":"; then
35920   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
35921 echo "${ECHO_T}$MSGFMT" >&6; }
35922 else
35923   { echo "$as_me:$LINENO: result: no" >&5
35924 echo "${ECHO_T}no" >&6; }
35925 fi
35926
35927   # Extract the first word of "gmsgfmt", so it can be a program name with args.
35928 set dummy gmsgfmt; ac_word=$2
35929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35931 if test "${ac_cv_path_GMSGFMT+set}" = set; then
35932   echo $ECHO_N "(cached) $ECHO_C" >&6
35933 else
35934   case $GMSGFMT in
35935   [\\/]* | ?:[\\/]*)
35936   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
35937   ;;
35938   *)
35939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35940 for as_dir in $PATH
35941 do
35942   IFS=$as_save_IFS
35943   test -z "$as_dir" && as_dir=.
35944   for ac_exec_ext in '' $ac_executable_extensions; do
35945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35946     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
35947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35948     break 2
35949   fi
35950 done
35951 done
35952 IFS=$as_save_IFS
35953
35954   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
35955   ;;
35956 esac
35957 fi
35958 GMSGFMT=$ac_cv_path_GMSGFMT
35959 if test -n "$GMSGFMT"; then
35960   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
35961 echo "${ECHO_T}$GMSGFMT" >&6; }
35962 else
35963   { echo "$as_me:$LINENO: result: no" >&5
35964 echo "${ECHO_T}no" >&6; }
35965 fi
35966
35967
35968
35969     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
35970     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
35971     *) MSGFMT_015=$MSGFMT ;;
35972   esac
35973
35974   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
35975     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
35976     *) GMSGFMT_015=$GMSGFMT ;;
35977   esac
35978
35979
35980
35981 # Prepare PATH_SEPARATOR.
35982 # The user is always right.
35983 if test "${PATH_SEPARATOR+set}" != set; then
35984   echo "#! /bin/sh" >conf$$.sh
35985   echo  "exit 0"   >>conf$$.sh
35986   chmod +x conf$$.sh
35987   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35988     PATH_SEPARATOR=';'
35989   else
35990     PATH_SEPARATOR=:
35991   fi
35992   rm -f conf$$.sh
35993 fi
35994
35995 # Find out how to test for executable files. Don't use a zero-byte file,
35996 # as systems may use methods other than mode bits to determine executability.
35997 cat >conf$$.file <<_ASEOF
35998 #! /bin/sh
35999 exit 0
36000 _ASEOF
36001 chmod +x conf$$.file
36002 if test -x conf$$.file >/dev/null 2>&1; then
36003   ac_executable_p="test -x"
36004 else
36005   ac_executable_p="test -f"
36006 fi
36007 rm -f conf$$.file
36008
36009 # Extract the first word of "xgettext", so it can be a program name with args.
36010 set dummy xgettext; ac_word=$2
36011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36013 if test "${ac_cv_path_XGETTEXT+set}" = set; then
36014   echo $ECHO_N "(cached) $ECHO_C" >&6
36015 else
36016   case "$XGETTEXT" in
36017   [\\/]* | ?:[\\/]*)
36018     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
36019     ;;
36020   *)
36021     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
36022     for ac_dir in $PATH; do
36023       IFS="$ac_save_IFS"
36024       test -z "$ac_dir" && ac_dir=.
36025       for ac_exec_ext in '' $ac_executable_extensions; do
36026         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
36027           echo "$as_me: trying $ac_dir/$ac_word..." >&5
36028           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
36029      (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
36030             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
36031             break 2
36032           fi
36033         fi
36034       done
36035     done
36036     IFS="$ac_save_IFS"
36037   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
36038     ;;
36039 esac
36040 fi
36041 XGETTEXT="$ac_cv_path_XGETTEXT"
36042 if test "$XGETTEXT" != ":"; then
36043   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
36044 echo "${ECHO_T}$XGETTEXT" >&6; }
36045 else
36046   { echo "$as_me:$LINENO: result: no" >&5
36047 echo "${ECHO_T}no" >&6; }
36048 fi
36049
36050     rm -f messages.po
36051
36052     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
36053     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
36054     *) XGETTEXT_015=$XGETTEXT ;;
36055   esac
36056
36057
36058
36059 # Prepare PATH_SEPARATOR.
36060 # The user is always right.
36061 if test "${PATH_SEPARATOR+set}" != set; then
36062   echo "#! /bin/sh" >conf$$.sh
36063   echo  "exit 0"   >>conf$$.sh
36064   chmod +x conf$$.sh
36065   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
36066     PATH_SEPARATOR=';'
36067   else
36068     PATH_SEPARATOR=:
36069   fi
36070   rm -f conf$$.sh
36071 fi
36072
36073 # Find out how to test for executable files. Don't use a zero-byte file,
36074 # as systems may use methods other than mode bits to determine executability.
36075 cat >conf$$.file <<_ASEOF
36076 #! /bin/sh
36077 exit 0
36078 _ASEOF
36079 chmod +x conf$$.file
36080 if test -x conf$$.file >/dev/null 2>&1; then
36081   ac_executable_p="test -x"
36082 else
36083   ac_executable_p="test -f"
36084 fi
36085 rm -f conf$$.file
36086
36087 # Extract the first word of "msgmerge", so it can be a program name with args.
36088 set dummy msgmerge; ac_word=$2
36089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36091 if test "${ac_cv_path_MSGMERGE+set}" = set; then
36092   echo $ECHO_N "(cached) $ECHO_C" >&6
36093 else
36094   case "$MSGMERGE" in
36095   [\\/]* | ?:[\\/]*)
36096     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
36097     ;;
36098   *)
36099     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
36100     for ac_dir in $PATH; do
36101       IFS="$ac_save_IFS"
36102       test -z "$ac_dir" && ac_dir=.
36103       for ac_exec_ext in '' $ac_executable_extensions; do
36104         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
36105           echo "$as_me: trying $ac_dir/$ac_word..." >&5
36106           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
36107             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
36108             break 2
36109           fi
36110         fi
36111       done
36112     done
36113     IFS="$ac_save_IFS"
36114   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
36115     ;;
36116 esac
36117 fi
36118 MSGMERGE="$ac_cv_path_MSGMERGE"
36119 if test "$MSGMERGE" != ":"; then
36120   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
36121 echo "${ECHO_T}$MSGMERGE" >&6; }
36122 else
36123   { echo "$as_me:$LINENO: result: no" >&5
36124 echo "${ECHO_T}no" >&6; }
36125 fi
36126
36127
36128         test -n "$localedir" || localedir='${datadir}/locale'
36129
36130
36131     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
36132
36133
36134   ac_config_commands="$ac_config_commands po-directories"
36135
36136
36137
36138
36139
36140
36141
36142
36143
36144
36145
36146
36147
36148
36149
36150
36151
36152
36153
36154
36155
36156
36157
36158
36159
36160     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
36161 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
36162 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
36163   echo $ECHO_N "(cached) $ECHO_C" >&6
36164 else
36165   gt_save_LIBS="$LIBS"
36166      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
36167      cat >conftest.$ac_ext <<_ACEOF
36168 /* confdefs.h.  */
36169 _ACEOF
36170 cat confdefs.h >>conftest.$ac_ext
36171 cat >>conftest.$ac_ext <<_ACEOF
36172 /* end confdefs.h.  */
36173 #include <CoreFoundation/CFPreferences.h>
36174 int
36175 main ()
36176 {
36177 CFPreferencesCopyAppValue(NULL, NULL)
36178   ;
36179   return 0;
36180 }
36181 _ACEOF
36182 rm -f conftest.$ac_objext conftest$ac_exeext
36183 if { (ac_try="$ac_link"
36184 case "(($ac_try" in
36185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36186   *) ac_try_echo=$ac_try;;
36187 esac
36188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36189   (eval "$ac_link") 2>conftest.er1
36190   ac_status=$?
36191   grep -v '^ *+' conftest.er1 >conftest.err
36192   rm -f conftest.er1
36193   cat conftest.err >&5
36194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36195   (exit $ac_status); } && {
36196          test -z "$ac_c_werror_flag" ||
36197          test ! -s conftest.err
36198        } && test -s conftest$ac_exeext &&
36199        $as_test_x conftest$ac_exeext; then
36200   gt_cv_func_CFPreferencesCopyAppValue=yes
36201 else
36202   echo "$as_me: failed program was:" >&5
36203 sed 's/^/| /' conftest.$ac_ext >&5
36204
36205         gt_cv_func_CFPreferencesCopyAppValue=no
36206 fi
36207
36208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36209       conftest$ac_exeext conftest.$ac_ext
36210      LIBS="$gt_save_LIBS"
36211 fi
36212 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
36213 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
36214   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
36215
36216 cat >>confdefs.h <<\_ACEOF
36217 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
36218 _ACEOF
36219
36220   fi
36221     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
36222 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
36223 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
36224   echo $ECHO_N "(cached) $ECHO_C" >&6
36225 else
36226   gt_save_LIBS="$LIBS"
36227      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
36228      cat >conftest.$ac_ext <<_ACEOF
36229 /* confdefs.h.  */
36230 _ACEOF
36231 cat confdefs.h >>conftest.$ac_ext
36232 cat >>conftest.$ac_ext <<_ACEOF
36233 /* end confdefs.h.  */
36234 #include <CoreFoundation/CFLocale.h>
36235 int
36236 main ()
36237 {
36238 CFLocaleCopyCurrent();
36239   ;
36240   return 0;
36241 }
36242 _ACEOF
36243 rm -f conftest.$ac_objext conftest$ac_exeext
36244 if { (ac_try="$ac_link"
36245 case "(($ac_try" in
36246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36247   *) ac_try_echo=$ac_try;;
36248 esac
36249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36250   (eval "$ac_link") 2>conftest.er1
36251   ac_status=$?
36252   grep -v '^ *+' conftest.er1 >conftest.err
36253   rm -f conftest.er1
36254   cat conftest.err >&5
36255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36256   (exit $ac_status); } && {
36257          test -z "$ac_c_werror_flag" ||
36258          test ! -s conftest.err
36259        } && test -s conftest$ac_exeext &&
36260        $as_test_x conftest$ac_exeext; then
36261   gt_cv_func_CFLocaleCopyCurrent=yes
36262 else
36263   echo "$as_me: failed program was:" >&5
36264 sed 's/^/| /' conftest.$ac_ext >&5
36265
36266         gt_cv_func_CFLocaleCopyCurrent=no
36267 fi
36268
36269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36270       conftest$ac_exeext conftest.$ac_ext
36271      LIBS="$gt_save_LIBS"
36272 fi
36273 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
36274 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
36275   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
36276
36277 cat >>confdefs.h <<\_ACEOF
36278 #define HAVE_CFLOCALECOPYCURRENT 1
36279 _ACEOF
36280
36281   fi
36282   INTL_MACOSX_LIBS=
36283   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
36284     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
36285   fi
36286
36287
36288
36289
36290
36291
36292   LIBINTL=
36293   LTLIBINTL=
36294   POSUB=
36295
36296     case " $gt_needs " in
36297     *" need-formatstring-macros "*) gt_api_version=3 ;;
36298     *" need-ngettext "*) gt_api_version=2 ;;
36299     *) gt_api_version=1 ;;
36300   esac
36301   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
36302   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
36303
36304     if test "$USE_NLS" = "yes"; then
36305     gt_use_preinstalled_gnugettext=no
36306
36307
36308         if test $gt_api_version -ge 3; then
36309           gt_revision_test_code='
36310 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
36311 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
36312 #endif
36313 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
36314 '
36315         else
36316           gt_revision_test_code=
36317         fi
36318         if test $gt_api_version -ge 2; then
36319           gt_expression_test_code=' + * ngettext ("", "", 0)'
36320         else
36321           gt_expression_test_code=
36322         fi
36323
36324         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
36325 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
36326 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
36327   echo $ECHO_N "(cached) $ECHO_C" >&6
36328 else
36329   cat >conftest.$ac_ext <<_ACEOF
36330 /* confdefs.h.  */
36331 _ACEOF
36332 cat confdefs.h >>conftest.$ac_ext
36333 cat >>conftest.$ac_ext <<_ACEOF
36334 /* end confdefs.h.  */
36335 #include <libintl.h>
36336 $gt_revision_test_code
36337 extern int _nl_msg_cat_cntr;
36338 extern int *_nl_domain_bindings;
36339 int
36340 main ()
36341 {
36342 bindtextdomain ("", "");
36343 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
36344   ;
36345   return 0;
36346 }
36347 _ACEOF
36348 rm -f conftest.$ac_objext conftest$ac_exeext
36349 if { (ac_try="$ac_link"
36350 case "(($ac_try" in
36351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36352   *) ac_try_echo=$ac_try;;
36353 esac
36354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36355   (eval "$ac_link") 2>conftest.er1
36356   ac_status=$?
36357   grep -v '^ *+' conftest.er1 >conftest.err
36358   rm -f conftest.er1
36359   cat conftest.err >&5
36360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36361   (exit $ac_status); } && {
36362          test -z "$ac_c_werror_flag" ||
36363          test ! -s conftest.err
36364        } && test -s conftest$ac_exeext &&
36365        $as_test_x conftest$ac_exeext; then
36366   eval "$gt_func_gnugettext_libc=yes"
36367 else
36368   echo "$as_me: failed program was:" >&5
36369 sed 's/^/| /' conftest.$ac_ext >&5
36370
36371         eval "$gt_func_gnugettext_libc=no"
36372 fi
36373
36374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36375       conftest$ac_exeext conftest.$ac_ext
36376 fi
36377 ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
36378                { echo "$as_me:$LINENO: result: $ac_res" >&5
36379 echo "${ECHO_T}$ac_res" >&6; }
36380
36381         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
36382
36383
36384
36385
36386
36387           am_save_CPPFLAGS="$CPPFLAGS"
36388
36389   for element in $INCICONV; do
36390     haveit=
36391     for x in $CPPFLAGS; do
36392
36393   acl_save_prefix="$prefix"
36394   prefix="$acl_final_prefix"
36395   acl_save_exec_prefix="$exec_prefix"
36396   exec_prefix="$acl_final_exec_prefix"
36397   eval x=\"$x\"
36398   exec_prefix="$acl_save_exec_prefix"
36399   prefix="$acl_save_prefix"
36400
36401       if test "X$x" = "X$element"; then
36402         haveit=yes
36403         break
36404       fi
36405     done
36406     if test -z "$haveit"; then
36407       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
36408     fi
36409   done
36410
36411
36412   { echo "$as_me:$LINENO: checking for iconv" >&5
36413 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
36414 if test "${am_cv_func_iconv+set}" = set; then
36415   echo $ECHO_N "(cached) $ECHO_C" >&6
36416 else
36417
36418     am_cv_func_iconv="no, consider installing GNU libiconv"
36419     am_cv_lib_iconv=no
36420     cat >conftest.$ac_ext <<_ACEOF
36421 /* confdefs.h.  */
36422 _ACEOF
36423 cat confdefs.h >>conftest.$ac_ext
36424 cat >>conftest.$ac_ext <<_ACEOF
36425 /* end confdefs.h.  */
36426 #include <stdlib.h>
36427 #include <iconv.h>
36428 int
36429 main ()
36430 {
36431 iconv_t cd = iconv_open("","");
36432        iconv(cd,NULL,NULL,NULL,NULL);
36433        iconv_close(cd);
36434   ;
36435   return 0;
36436 }
36437 _ACEOF
36438 rm -f conftest.$ac_objext conftest$ac_exeext
36439 if { (ac_try="$ac_link"
36440 case "(($ac_try" in
36441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36442   *) ac_try_echo=$ac_try;;
36443 esac
36444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36445   (eval "$ac_link") 2>conftest.er1
36446   ac_status=$?
36447   grep -v '^ *+' conftest.er1 >conftest.err
36448   rm -f conftest.er1
36449   cat conftest.err >&5
36450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36451   (exit $ac_status); } && {
36452          test -z "$ac_c_werror_flag" ||
36453          test ! -s conftest.err
36454        } && test -s conftest$ac_exeext &&
36455        $as_test_x conftest$ac_exeext; then
36456   am_cv_func_iconv=yes
36457 else
36458   echo "$as_me: failed program was:" >&5
36459 sed 's/^/| /' conftest.$ac_ext >&5
36460
36461
36462 fi
36463
36464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36465       conftest$ac_exeext conftest.$ac_ext
36466     if test "$am_cv_func_iconv" != yes; then
36467       am_save_LIBS="$LIBS"
36468       LIBS="$LIBS $LIBICONV"
36469       cat >conftest.$ac_ext <<_ACEOF
36470 /* confdefs.h.  */
36471 _ACEOF
36472 cat confdefs.h >>conftest.$ac_ext
36473 cat >>conftest.$ac_ext <<_ACEOF
36474 /* end confdefs.h.  */
36475 #include <stdlib.h>
36476 #include <iconv.h>
36477 int
36478 main ()
36479 {
36480 iconv_t cd = iconv_open("","");
36481          iconv(cd,NULL,NULL,NULL,NULL);
36482          iconv_close(cd);
36483   ;
36484   return 0;
36485 }
36486 _ACEOF
36487 rm -f conftest.$ac_objext conftest$ac_exeext
36488 if { (ac_try="$ac_link"
36489 case "(($ac_try" in
36490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36491   *) ac_try_echo=$ac_try;;
36492 esac
36493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36494   (eval "$ac_link") 2>conftest.er1
36495   ac_status=$?
36496   grep -v '^ *+' conftest.er1 >conftest.err
36497   rm -f conftest.er1
36498   cat conftest.err >&5
36499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36500   (exit $ac_status); } && {
36501          test -z "$ac_c_werror_flag" ||
36502          test ! -s conftest.err
36503        } && test -s conftest$ac_exeext &&
36504        $as_test_x conftest$ac_exeext; then
36505   am_cv_lib_iconv=yes
36506         am_cv_func_iconv=yes
36507 else
36508   echo "$as_me: failed program was:" >&5
36509 sed 's/^/| /' conftest.$ac_ext >&5
36510
36511
36512 fi
36513
36514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36515       conftest$ac_exeext conftest.$ac_ext
36516       LIBS="$am_save_LIBS"
36517     fi
36518
36519 fi
36520 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36521 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
36522   if test "$am_cv_func_iconv" = yes; then
36523     { echo "$as_me:$LINENO: checking for working iconv" >&5
36524 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
36525 if test "${am_cv_func_iconv_works+set}" = set; then
36526   echo $ECHO_N "(cached) $ECHO_C" >&6
36527 else
36528
36529             am_save_LIBS="$LIBS"
36530       if test $am_cv_lib_iconv = yes; then
36531         LIBS="$LIBS $LIBICONV"
36532       fi
36533       if test "$cross_compiling" = yes; then
36534   case "$host_os" in
36535            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
36536            *)            am_cv_func_iconv_works="guessing yes" ;;
36537          esac
36538 else
36539   cat >conftest.$ac_ext <<_ACEOF
36540 /* confdefs.h.  */
36541 _ACEOF
36542 cat confdefs.h >>conftest.$ac_ext
36543 cat >>conftest.$ac_ext <<_ACEOF
36544 /* end confdefs.h.  */
36545
36546 #include <iconv.h>
36547 #include <string.h>
36548 int main ()
36549 {
36550   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
36551      returns.  */
36552   {
36553     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
36554     if (cd_utf8_to_88591 != (iconv_t)(-1))
36555       {
36556         static const char input[] = "\342\202\254"; /* EURO SIGN */
36557         char buf[10];
36558         const char *inptr = input;
36559         size_t inbytesleft = strlen (input);
36560         char *outptr = buf;
36561         size_t outbytesleft = sizeof (buf);
36562         size_t res = iconv (cd_utf8_to_88591,
36563                             (char **) &inptr, &inbytesleft,
36564                             &outptr, &outbytesleft);
36565         if (res == 0)
36566           return 1;
36567       }
36568   }
36569 #if 0 /* This bug could be worked around by the caller.  */
36570   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
36571   {
36572     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
36573     if (cd_88591_to_utf8 != (iconv_t)(-1))
36574       {
36575         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
36576         char buf[50];
36577         const char *inptr = input;
36578         size_t inbytesleft = strlen (input);
36579         char *outptr = buf;
36580         size_t outbytesleft = sizeof (buf);
36581         size_t res = iconv (cd_88591_to_utf8,
36582                             (char **) &inptr, &inbytesleft,
36583                             &outptr, &outbytesleft);
36584         if ((int)res > 0)
36585           return 1;
36586       }
36587   }
36588 #endif
36589   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
36590      provided.  */
36591   if (/* Try standardized names.  */
36592       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
36593       /* Try IRIX, OSF/1 names.  */
36594       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
36595       /* Try AIX names.  */
36596       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
36597       /* Try HP-UX names.  */
36598       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
36599     return 1;
36600   return 0;
36601 }
36602 _ACEOF
36603 rm -f conftest$ac_exeext
36604 if { (ac_try="$ac_link"
36605 case "(($ac_try" in
36606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36607   *) ac_try_echo=$ac_try;;
36608 esac
36609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36610   (eval "$ac_link") 2>&5
36611   ac_status=$?
36612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36613   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36614   { (case "(($ac_try" in
36615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36616   *) ac_try_echo=$ac_try;;
36617 esac
36618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36619   (eval "$ac_try") 2>&5
36620   ac_status=$?
36621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36622   (exit $ac_status); }; }; then
36623   am_cv_func_iconv_works=yes
36624 else
36625   echo "$as_me: program exited with status $ac_status" >&5
36626 echo "$as_me: failed program was:" >&5
36627 sed 's/^/| /' conftest.$ac_ext >&5
36628
36629 ( exit $ac_status )
36630 am_cv_func_iconv_works=no
36631 fi
36632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36633 fi
36634
36635
36636       LIBS="$am_save_LIBS"
36637
36638 fi
36639 { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
36640 echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
36641     case "$am_cv_func_iconv_works" in
36642       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
36643       *)   am_func_iconv=yes ;;
36644     esac
36645   else
36646     am_func_iconv=no am_cv_lib_iconv=no
36647   fi
36648   if test "$am_func_iconv" = yes; then
36649
36650 cat >>confdefs.h <<\_ACEOF
36651 #define HAVE_ICONV 1
36652 _ACEOF
36653
36654   fi
36655   if test "$am_cv_lib_iconv" = yes; then
36656     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
36657 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
36658     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
36659 echo "${ECHO_T}$LIBICONV" >&6; }
36660   else
36661             CPPFLAGS="$am_save_CPPFLAGS"
36662     LIBICONV=
36663     LTLIBICONV=
36664   fi
36665
36666
36667
36668
36669
36670
36671
36672
36673
36674
36675
36676     use_additional=yes
36677
36678   acl_save_prefix="$prefix"
36679   prefix="$acl_final_prefix"
36680   acl_save_exec_prefix="$exec_prefix"
36681   exec_prefix="$acl_final_exec_prefix"
36682
36683     eval additional_includedir=\"$includedir\"
36684     eval additional_libdir=\"$libdir\"
36685
36686   exec_prefix="$acl_save_exec_prefix"
36687   prefix="$acl_save_prefix"
36688
36689
36690 # Check whether --with-libintl-prefix was given.
36691 if test "${with_libintl_prefix+set}" = set; then
36692   withval=$with_libintl_prefix;
36693     if test "X$withval" = "Xno"; then
36694       use_additional=no
36695     else
36696       if test "X$withval" = "X"; then
36697
36698   acl_save_prefix="$prefix"
36699   prefix="$acl_final_prefix"
36700   acl_save_exec_prefix="$exec_prefix"
36701   exec_prefix="$acl_final_exec_prefix"
36702
36703           eval additional_includedir=\"$includedir\"
36704           eval additional_libdir=\"$libdir\"
36705
36706   exec_prefix="$acl_save_exec_prefix"
36707   prefix="$acl_save_prefix"
36708
36709       else
36710         additional_includedir="$withval/include"
36711         additional_libdir="$withval/$acl_libdirstem"
36712       fi
36713     fi
36714
36715 fi
36716
36717       LIBINTL=
36718   LTLIBINTL=
36719   INCINTL=
36720   LIBINTL_PREFIX=
36721   rpathdirs=
36722   ltrpathdirs=
36723   names_already_handled=
36724   names_next_round='intl '
36725   while test -n "$names_next_round"; do
36726     names_this_round="$names_next_round"
36727     names_next_round=
36728     for name in $names_this_round; do
36729       already_handled=
36730       for n in $names_already_handled; do
36731         if test "$n" = "$name"; then
36732           already_handled=yes
36733           break
36734         fi
36735       done
36736       if test -z "$already_handled"; then
36737         names_already_handled="$names_already_handled $name"
36738                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
36739         eval value=\"\$HAVE_LIB$uppername\"
36740         if test -n "$value"; then
36741           if test "$value" = yes; then
36742             eval value=\"\$LIB$uppername\"
36743             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
36744             eval value=\"\$LTLIB$uppername\"
36745             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
36746           else
36747                                     :
36748           fi
36749         else
36750                               found_dir=
36751           found_la=
36752           found_so=
36753           found_a=
36754           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
36755           if test -n "$acl_shlibext"; then
36756             shrext=".$acl_shlibext"             # typically: shrext=.so
36757           else
36758             shrext=
36759           fi
36760           if test $use_additional = yes; then
36761             dir="$additional_libdir"
36762                                     if test -n "$acl_shlibext"; then
36763               if test -f "$dir/$libname$shrext"; then
36764                 found_dir="$dir"
36765                 found_so="$dir/$libname$shrext"
36766               else
36767                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
36768                   ver=`(cd "$dir" && \
36769                         for f in "$libname$shrext".*; do echo "$f"; done \
36770                         | sed -e "s,^$libname$shrext\\\\.,," \
36771                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
36772                         | sed 1q ) 2>/dev/null`
36773                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
36774                     found_dir="$dir"
36775                     found_so="$dir/$libname$shrext.$ver"
36776                   fi
36777                 else
36778                   eval library_names=\"$acl_library_names_spec\"
36779                   for f in $library_names; do
36780                     if test -f "$dir/$f"; then
36781                       found_dir="$dir"
36782                       found_so="$dir/$f"
36783                       break
36784                     fi
36785                   done
36786                 fi
36787               fi
36788             fi
36789                         if test "X$found_dir" = "X"; then
36790               if test -f "$dir/$libname.$acl_libext"; then
36791                 found_dir="$dir"
36792                 found_a="$dir/$libname.$acl_libext"
36793               fi
36794             fi
36795             if test "X$found_dir" != "X"; then
36796               if test -f "$dir/$libname.la"; then
36797                 found_la="$dir/$libname.la"
36798               fi
36799             fi
36800           fi
36801           if test "X$found_dir" = "X"; then
36802             for x in $LDFLAGS $LTLIBINTL; do
36803
36804   acl_save_prefix="$prefix"
36805   prefix="$acl_final_prefix"
36806   acl_save_exec_prefix="$exec_prefix"
36807   exec_prefix="$acl_final_exec_prefix"
36808   eval x=\"$x\"
36809   exec_prefix="$acl_save_exec_prefix"
36810   prefix="$acl_save_prefix"
36811
36812               case "$x" in
36813                 -L*)
36814                   dir=`echo "X$x" | sed -e 's/^X-L//'`
36815                                     if test -n "$acl_shlibext"; then
36816                     if test -f "$dir/$libname$shrext"; then
36817                       found_dir="$dir"
36818                       found_so="$dir/$libname$shrext"
36819                     else
36820                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
36821                         ver=`(cd "$dir" && \
36822                               for f in "$libname$shrext".*; do echo "$f"; done \
36823                               | sed -e "s,^$libname$shrext\\\\.,," \
36824                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
36825                               | sed 1q ) 2>/dev/null`
36826                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
36827                           found_dir="$dir"
36828                           found_so="$dir/$libname$shrext.$ver"
36829                         fi
36830                       else
36831                         eval library_names=\"$acl_library_names_spec\"
36832                         for f in $library_names; do
36833                           if test -f "$dir/$f"; then
36834                             found_dir="$dir"
36835                             found_so="$dir/$f"
36836                             break
36837                           fi
36838                         done
36839                       fi
36840                     fi
36841                   fi
36842                                     if test "X$found_dir" = "X"; then
36843                     if test -f "$dir/$libname.$acl_libext"; then
36844                       found_dir="$dir"
36845                       found_a="$dir/$libname.$acl_libext"
36846                     fi
36847                   fi
36848                   if test "X$found_dir" != "X"; then
36849                     if test -f "$dir/$libname.la"; then
36850                       found_la="$dir/$libname.la"
36851                     fi
36852                   fi
36853                   ;;
36854               esac
36855               if test "X$found_dir" != "X"; then
36856                 break
36857               fi
36858             done
36859           fi
36860           if test "X$found_dir" != "X"; then
36861                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
36862             if test "X$found_so" != "X"; then
36863                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
36864                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
36865               else
36866                                                                                 haveit=
36867                 for x in $ltrpathdirs; do
36868                   if test "X$x" = "X$found_dir"; then
36869                     haveit=yes
36870                     break
36871                   fi
36872                 done
36873                 if test -z "$haveit"; then
36874                   ltrpathdirs="$ltrpathdirs $found_dir"
36875                 fi
36876                                 if test "$acl_hardcode_direct" = yes; then
36877                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
36878                 else
36879                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
36880                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
36881                                                             haveit=
36882                     for x in $rpathdirs; do
36883                       if test "X$x" = "X$found_dir"; then
36884                         haveit=yes
36885                         break
36886                       fi
36887                     done
36888                     if test -z "$haveit"; then
36889                       rpathdirs="$rpathdirs $found_dir"
36890                     fi
36891                   else
36892                                                                                 haveit=
36893                     for x in $LDFLAGS $LIBINTL; do
36894
36895   acl_save_prefix="$prefix"
36896   prefix="$acl_final_prefix"
36897   acl_save_exec_prefix="$exec_prefix"
36898   exec_prefix="$acl_final_exec_prefix"
36899   eval x=\"$x\"
36900   exec_prefix="$acl_save_exec_prefix"
36901   prefix="$acl_save_prefix"
36902
36903                       if test "X$x" = "X-L$found_dir"; then
36904                         haveit=yes
36905                         break
36906                       fi
36907                     done
36908                     if test -z "$haveit"; then
36909                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
36910                     fi
36911                     if test "$acl_hardcode_minus_L" != no; then
36912                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
36913                     else
36914                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
36915                     fi
36916                   fi
36917                 fi
36918               fi
36919             else
36920               if test "X$found_a" != "X"; then
36921                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
36922               else
36923                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
36924               fi
36925             fi
36926                         additional_includedir=
36927             case "$found_dir" in
36928               */$acl_libdirstem | */$acl_libdirstem/)
36929                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
36930                 LIBINTL_PREFIX="$basedir"
36931                 additional_includedir="$basedir/include"
36932                 ;;
36933             esac
36934             if test "X$additional_includedir" != "X"; then
36935                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
36936                 haveit=
36937                 if test "X$additional_includedir" = "X/usr/local/include"; then
36938                   if test -n "$GCC"; then
36939                     case $host_os in
36940                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
36941                     esac
36942                   fi
36943                 fi
36944                 if test -z "$haveit"; then
36945                   for x in $CPPFLAGS $INCINTL; do
36946
36947   acl_save_prefix="$prefix"
36948   prefix="$acl_final_prefix"
36949   acl_save_exec_prefix="$exec_prefix"
36950   exec_prefix="$acl_final_exec_prefix"
36951   eval x=\"$x\"
36952   exec_prefix="$acl_save_exec_prefix"
36953   prefix="$acl_save_prefix"
36954
36955                     if test "X$x" = "X-I$additional_includedir"; then
36956                       haveit=yes
36957                       break
36958                     fi
36959                   done
36960                   if test -z "$haveit"; then
36961                     if test -d "$additional_includedir"; then
36962                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
36963                     fi
36964                   fi
36965                 fi
36966               fi
36967             fi
36968                         if test -n "$found_la"; then
36969                                                         save_libdir="$libdir"
36970               case "$found_la" in
36971                 */* | *\\*) . "$found_la" ;;
36972                 *) . "./$found_la" ;;
36973               esac
36974               libdir="$save_libdir"
36975                             for dep in $dependency_libs; do
36976                 case "$dep" in
36977                   -L*)
36978                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
36979                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
36980                       haveit=
36981                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
36982                         if test -n "$GCC"; then
36983                           case $host_os in
36984                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
36985                           esac
36986                         fi
36987                       fi
36988                       if test -z "$haveit"; then
36989                         haveit=
36990                         for x in $LDFLAGS $LIBINTL; do
36991
36992   acl_save_prefix="$prefix"
36993   prefix="$acl_final_prefix"
36994   acl_save_exec_prefix="$exec_prefix"
36995   exec_prefix="$acl_final_exec_prefix"
36996   eval x=\"$x\"
36997   exec_prefix="$acl_save_exec_prefix"
36998   prefix="$acl_save_prefix"
36999
37000                           if test "X$x" = "X-L$additional_libdir"; then
37001                             haveit=yes
37002                             break
37003                           fi
37004                         done
37005                         if test -z "$haveit"; then
37006                           if test -d "$additional_libdir"; then
37007                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
37008                           fi
37009                         fi
37010                         haveit=
37011                         for x in $LDFLAGS $LTLIBINTL; do
37012
37013   acl_save_prefix="$prefix"
37014   prefix="$acl_final_prefix"
37015   acl_save_exec_prefix="$exec_prefix"
37016   exec_prefix="$acl_final_exec_prefix"
37017   eval x=\"$x\"
37018   exec_prefix="$acl_save_exec_prefix"
37019   prefix="$acl_save_prefix"
37020
37021                           if test "X$x" = "X-L$additional_libdir"; then
37022                             haveit=yes
37023                             break
37024                           fi
37025                         done
37026                         if test -z "$haveit"; then
37027                           if test -d "$additional_libdir"; then
37028                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
37029                           fi
37030                         fi
37031                       fi
37032                     fi
37033                     ;;
37034                   -R*)
37035                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
37036                     if test "$enable_rpath" != no; then
37037                                                                   haveit=
37038                       for x in $rpathdirs; do
37039                         if test "X$x" = "X$dir"; then
37040                           haveit=yes
37041                           break
37042                         fi
37043                       done
37044                       if test -z "$haveit"; then
37045                         rpathdirs="$rpathdirs $dir"
37046                       fi
37047                                                                   haveit=
37048                       for x in $ltrpathdirs; do
37049                         if test "X$x" = "X$dir"; then
37050                           haveit=yes
37051                           break
37052                         fi
37053                       done
37054                       if test -z "$haveit"; then
37055                         ltrpathdirs="$ltrpathdirs $dir"
37056                       fi
37057                     fi
37058                     ;;
37059                   -l*)
37060                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
37061                     ;;
37062                   *.la)
37063                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
37064                     ;;
37065                   *)
37066                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
37067                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
37068                     ;;
37069                 esac
37070               done
37071             fi
37072           else
37073                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
37074             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
37075           fi
37076         fi
37077       fi
37078     done
37079   done
37080   if test "X$rpathdirs" != "X"; then
37081     if test -n "$acl_hardcode_libdir_separator"; then
37082                         alldirs=
37083       for found_dir in $rpathdirs; do
37084         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
37085       done
37086             acl_save_libdir="$libdir"
37087       libdir="$alldirs"
37088       eval flag=\"$acl_hardcode_libdir_flag_spec\"
37089       libdir="$acl_save_libdir"
37090       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
37091     else
37092             for found_dir in $rpathdirs; do
37093         acl_save_libdir="$libdir"
37094         libdir="$found_dir"
37095         eval flag=\"$acl_hardcode_libdir_flag_spec\"
37096         libdir="$acl_save_libdir"
37097         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
37098       done
37099     fi
37100   fi
37101   if test "X$ltrpathdirs" != "X"; then
37102             for found_dir in $ltrpathdirs; do
37103       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
37104     done
37105   fi
37106
37107
37108
37109
37110
37111
37112           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
37113 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
37114 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
37115   echo $ECHO_N "(cached) $ECHO_C" >&6
37116 else
37117   gt_save_CPPFLAGS="$CPPFLAGS"
37118             CPPFLAGS="$CPPFLAGS $INCINTL"
37119             gt_save_LIBS="$LIBS"
37120             LIBS="$LIBS $LIBINTL"
37121                         cat >conftest.$ac_ext <<_ACEOF
37122 /* confdefs.h.  */
37123 _ACEOF
37124 cat confdefs.h >>conftest.$ac_ext
37125 cat >>conftest.$ac_ext <<_ACEOF
37126 /* end confdefs.h.  */
37127 #include <libintl.h>
37128 $gt_revision_test_code
37129 extern int _nl_msg_cat_cntr;
37130 extern
37131 #ifdef __cplusplus
37132 "C"
37133 #endif
37134 const char *_nl_expand_alias (const char *);
37135 int
37136 main ()
37137 {
37138 bindtextdomain ("", "");
37139 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
37140   ;
37141   return 0;
37142 }
37143 _ACEOF
37144 rm -f conftest.$ac_objext conftest$ac_exeext
37145 if { (ac_try="$ac_link"
37146 case "(($ac_try" in
37147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37148   *) ac_try_echo=$ac_try;;
37149 esac
37150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37151   (eval "$ac_link") 2>conftest.er1
37152   ac_status=$?
37153   grep -v '^ *+' conftest.er1 >conftest.err
37154   rm -f conftest.er1
37155   cat conftest.err >&5
37156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37157   (exit $ac_status); } && {
37158          test -z "$ac_c_werror_flag" ||
37159          test ! -s conftest.err
37160        } && test -s conftest$ac_exeext &&
37161        $as_test_x conftest$ac_exeext; then
37162   eval "$gt_func_gnugettext_libintl=yes"
37163 else
37164   echo "$as_me: failed program was:" >&5
37165 sed 's/^/| /' conftest.$ac_ext >&5
37166
37167         eval "$gt_func_gnugettext_libintl=no"
37168 fi
37169
37170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37171       conftest$ac_exeext conftest.$ac_ext
37172                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
37173               LIBS="$LIBS $LIBICONV"
37174               cat >conftest.$ac_ext <<_ACEOF
37175 /* confdefs.h.  */
37176 _ACEOF
37177 cat confdefs.h >>conftest.$ac_ext
37178 cat >>conftest.$ac_ext <<_ACEOF
37179 /* end confdefs.h.  */
37180 #include <libintl.h>
37181 $gt_revision_test_code
37182 extern int _nl_msg_cat_cntr;
37183 extern
37184 #ifdef __cplusplus
37185 "C"
37186 #endif
37187 const char *_nl_expand_alias (const char *);
37188 int
37189 main ()
37190 {
37191 bindtextdomain ("", "");
37192 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
37193   ;
37194   return 0;
37195 }
37196 _ACEOF
37197 rm -f conftest.$ac_objext conftest$ac_exeext
37198 if { (ac_try="$ac_link"
37199 case "(($ac_try" in
37200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37201   *) ac_try_echo=$ac_try;;
37202 esac
37203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37204   (eval "$ac_link") 2>conftest.er1
37205   ac_status=$?
37206   grep -v '^ *+' conftest.er1 >conftest.err
37207   rm -f conftest.er1
37208   cat conftest.err >&5
37209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37210   (exit $ac_status); } && {
37211          test -z "$ac_c_werror_flag" ||
37212          test ! -s conftest.err
37213        } && test -s conftest$ac_exeext &&
37214        $as_test_x conftest$ac_exeext; then
37215   LIBINTL="$LIBINTL $LIBICONV"
37216                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
37217                 eval "$gt_func_gnugettext_libintl=yes"
37218
37219 else
37220   echo "$as_me: failed program was:" >&5
37221 sed 's/^/| /' conftest.$ac_ext >&5
37222
37223
37224 fi
37225
37226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37227       conftest$ac_exeext conftest.$ac_ext
37228             fi
37229             CPPFLAGS="$gt_save_CPPFLAGS"
37230             LIBS="$gt_save_LIBS"
37231 fi
37232 ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
37233                { echo "$as_me:$LINENO: result: $ac_res" >&5
37234 echo "${ECHO_T}$ac_res" >&6; }
37235         fi
37236
37237                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
37238            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
37239                 && test "$PACKAGE" != gettext-runtime \
37240                 && test "$PACKAGE" != gettext-tools; }; then
37241           gt_use_preinstalled_gnugettext=yes
37242         else
37243                     LIBINTL=
37244           LTLIBINTL=
37245           INCINTL=
37246         fi
37247
37248
37249
37250     if test -n "$INTL_MACOSX_LIBS"; then
37251       if test "$gt_use_preinstalled_gnugettext" = "yes" \
37252          || test "$nls_cv_use_gnu_gettext" = "yes"; then
37253                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
37254         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
37255       fi
37256     fi
37257
37258     if test "$gt_use_preinstalled_gnugettext" = "yes" \
37259        || test "$nls_cv_use_gnu_gettext" = "yes"; then
37260
37261 cat >>confdefs.h <<\_ACEOF
37262 #define ENABLE_NLS 1
37263 _ACEOF
37264
37265     else
37266       USE_NLS=no
37267     fi
37268   fi
37269
37270   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
37271 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
37272   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
37273 echo "${ECHO_T}$USE_NLS" >&6; }
37274   if test "$USE_NLS" = "yes"; then
37275     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
37276 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
37277     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
37278       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
37279         gt_source="external libintl"
37280       else
37281         gt_source="libc"
37282       fi
37283     else
37284       gt_source="included intl directory"
37285     fi
37286     { echo "$as_me:$LINENO: result: $gt_source" >&5
37287 echo "${ECHO_T}$gt_source" >&6; }
37288   fi
37289
37290   if test "$USE_NLS" = "yes"; then
37291
37292     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
37293       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
37294         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
37295 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
37296         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
37297 echo "${ECHO_T}$LIBINTL" >&6; }
37298
37299   for element in $INCINTL; do
37300     haveit=
37301     for x in $CPPFLAGS; do
37302
37303   acl_save_prefix="$prefix"
37304   prefix="$acl_final_prefix"
37305   acl_save_exec_prefix="$exec_prefix"
37306   exec_prefix="$acl_final_exec_prefix"
37307   eval x=\"$x\"
37308   exec_prefix="$acl_save_exec_prefix"
37309   prefix="$acl_save_prefix"
37310
37311       if test "X$x" = "X$element"; then
37312         haveit=yes
37313         break
37314       fi
37315     done
37316     if test -z "$haveit"; then
37317       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
37318     fi
37319   done
37320
37321       fi
37322
37323
37324 cat >>confdefs.h <<\_ACEOF
37325 #define HAVE_GETTEXT 1
37326 _ACEOF
37327
37328
37329 cat >>confdefs.h <<\_ACEOF
37330 #define HAVE_DCGETTEXT 1
37331 _ACEOF
37332
37333     fi
37334
37335         POSUB=po
37336   fi
37337
37338
37339
37340     INTLLIBS="$LIBINTL"
37341
37342
37343
37344
37345
37346
37347
37348
37349 # Initialize the test suite.
37350 ac_config_commands="$ac_config_commands tests/atconfig"
37351
37352
37353 ac_config_files="$ac_config_files tests/Makefile tests/atlocal"
37354  # FIXME: tests/preset?
37355
37356 AUTOM4TE=${AUTOM4TE-"${am_missing_run}autom4te"}
37357
37358
37359
37360
37361 # Check whether --enable-backup-scripts was given.
37362 if test "${enable_backup_scripts+set}" = set; then
37363   enableval=$enable_backup_scripts; case $enableval in
37364                yes) BACKUP_LIBEXEC_SCRIPTS='$(BACKUP_LIBEXEC_SCRIPTS_LIST)'
37365                     BACKUP_SBIN_SCRIPTS='$(BACKUP_SBIN_SCRIPTS_LIST)'
37366                     ;;
37367                esac
37368 fi
37369
37370
37371
37372 if date +%Y-%m-%d 2>/dev/null >&2; then
37373         BACKUP_SED_COND='/^\#ELSE_DATE_FORMAT_OK/,/^\#ENDIF_DATE_FORMAT_OK/d;/^\#IF_DATE_FORMAT_OK/d'
37374 else
37375         BACKUP_SED_COND='/^\#IF_DATE_FORMAT_OK/,/^\#ELSE_DATE_FORMAT_OK/d;/^\#ENDIF_DATE_FORMAT_OK/d'
37376 fi
37377
37378 ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile po/Makefile.in scripts/Makefile rmt/Makefile src/Makefile"
37379
37380 cat >confcache <<\_ACEOF
37381 # This file is a shell script that caches the results of configure
37382 # tests run on this system so they can be shared between configure
37383 # scripts and configure runs, see configure's option --config-cache.
37384 # It is not useful on other systems.  If it contains results you don't
37385 # want to keep, you may remove or edit it.
37386 #
37387 # config.status only pays attention to the cache file if you give it
37388 # the --recheck option to rerun configure.
37389 #
37390 # `ac_cv_env_foo' variables (set or unset) will be overridden when
37391 # loading this file, other *unset* `ac_cv_foo' will be assigned the
37392 # following values.
37393
37394 _ACEOF
37395
37396 # The following way of writing the cache mishandles newlines in values,
37397 # but we know of no workaround that is simple, portable, and efficient.
37398 # So, we kill variables containing newlines.
37399 # Ultrix sh set writes to stderr and can't be redirected directly,
37400 # and sets the high bit in the cache file unless we assign to the vars.
37401 (
37402   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
37403     eval ac_val=\$$ac_var
37404     case $ac_val in #(
37405     *${as_nl}*)
37406       case $ac_var in #(
37407       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
37408 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
37409       esac
37410       case $ac_var in #(
37411       _ | IFS | as_nl) ;; #(
37412       *) $as_unset $ac_var ;;
37413       esac ;;
37414     esac
37415   done
37416
37417   (set) 2>&1 |
37418     case $as_nl`(ac_space=' '; set) 2>&1` in #(
37419     *${as_nl}ac_space=\ *)
37420       # `set' does not quote correctly, so add quotes (double-quote
37421       # substitution turns \\\\ into \\, and sed turns \\ into \).
37422       sed -n \
37423         "s/'/'\\\\''/g;
37424           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37425       ;; #(
37426     *)
37427       # `set' quotes correctly as required by POSIX, so do not add quotes.
37428       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
37429       ;;
37430     esac |
37431     sort
37432 ) |
37433   sed '
37434      /^ac_cv_env_/b end
37435      t clear
37436      :clear
37437      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37438      t end
37439      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37440      :end' >>confcache
37441 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
37442   if test -w "$cache_file"; then
37443     test "x$cache_file" != "x/dev/null" &&
37444       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
37445 echo "$as_me: updating cache $cache_file" >&6;}
37446     cat confcache >$cache_file
37447   else
37448     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
37449 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
37450   fi
37451 fi
37452 rm -f confcache
37453
37454 test "x$prefix" = xNONE && prefix=$ac_default_prefix
37455 # Let make expand exec_prefix.
37456 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
37457
37458 DEFS=-DHAVE_CONFIG_H
37459
37460 ac_libobjs=
37461 ac_ltlibobjs=
37462 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
37463   # 1. Remove the extension, and $U if already installed.
37464   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
37465   ac_i=`echo "$ac_i" | sed "$ac_script"`
37466   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
37467   #    will be set to the directory where LIBOBJS objects are built.
37468   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
37469   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
37470 done
37471 LIBOBJS=$ac_libobjs
37472
37473 LTLIBOBJS=$ac_ltlibobjs
37474
37475
37476 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
37477   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
37478 Usually this means the macro was only invoked conditionally." >&5
37479 echo "$as_me: error: conditional \"AMDEP\" was never defined.
37480 Usually this means the macro was only invoked conditionally." >&2;}
37481    { (exit 1); exit 1; }; }
37482 fi
37483 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37484   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
37485 Usually this means the macro was only invoked conditionally." >&5
37486 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
37487 Usually this means the macro was only invoked conditionally." >&2;}
37488    { (exit 1); exit 1; }; }
37489 fi
37490 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
37491   { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
37492 Usually this means the macro was only invoked conditionally." >&5
37493 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
37494 Usually this means the macro was only invoked conditionally." >&2;}
37495    { (exit 1); exit 1; }; }
37496 fi
37497
37498     gl_libobjs=
37499     gl_ltlibobjs=
37500     if test -n "$gl_LIBOBJS"; then
37501       # Remove the extension.
37502       sed_drop_objext='s/\.o$//;s/\.obj$//'
37503       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
37504         gl_libobjs="$gl_libobjs $i.$ac_objext"
37505         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
37506       done
37507     fi
37508     gl_LIBOBJS=$gl_libobjs
37509
37510     gl_LTLIBOBJS=$gl_ltlibobjs
37511
37512
37513
37514     gltests_libobjs=
37515     gltests_ltlibobjs=
37516     if test -n "$gltests_LIBOBJS"; then
37517       # Remove the extension.
37518       sed_drop_objext='s/\.o$//;s/\.obj$//'
37519       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
37520         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
37521         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
37522       done
37523     fi
37524     gltests_LIBOBJS=$gltests_libobjs
37525
37526     gltests_LTLIBOBJS=$gltests_ltlibobjs
37527
37528
37529
37530 : ${CONFIG_STATUS=./config.status}
37531 ac_clean_files_save=$ac_clean_files
37532 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
37533 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
37534 echo "$as_me: creating $CONFIG_STATUS" >&6;}
37535 cat >$CONFIG_STATUS <<_ACEOF
37536 #! $SHELL
37537 # Generated by $as_me.
37538 # Run this file to recreate the current configuration.
37539 # Compiler output produced by configure, useful for debugging
37540 # configure, is in config.log if it exists.
37541
37542 debug=false
37543 ac_cs_recheck=false
37544 ac_cs_silent=false
37545 SHELL=\${CONFIG_SHELL-$SHELL}
37546 _ACEOF
37547
37548 cat >>$CONFIG_STATUS <<\_ACEOF
37549 ## --------------------- ##
37550 ## M4sh Initialization.  ##
37551 ## --------------------- ##
37552
37553 # Be more Bourne compatible
37554 DUALCASE=1; export DUALCASE # for MKS sh
37555 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
37556   emulate sh
37557   NULLCMD=:
37558   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
37559   # is contrary to our usage.  Disable this feature.
37560   alias -g '${1+"$@"}'='"$@"'
37561   setopt NO_GLOB_SUBST
37562 else
37563   case `(set -o) 2>/dev/null` in
37564   *posix*) set -o posix ;;
37565 esac
37566
37567 fi
37568
37569
37570
37571
37572 # PATH needs CR
37573 # Avoid depending upon Character Ranges.
37574 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37575 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37576 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37577 as_cr_digits='0123456789'
37578 as_cr_alnum=$as_cr_Letters$as_cr_digits
37579
37580 # The user is always right.
37581 if test "${PATH_SEPARATOR+set}" != set; then
37582   echo "#! /bin/sh" >conf$$.sh
37583   echo  "exit 0"   >>conf$$.sh
37584   chmod +x conf$$.sh
37585   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
37586     PATH_SEPARATOR=';'
37587   else
37588     PATH_SEPARATOR=:
37589   fi
37590   rm -f conf$$.sh
37591 fi
37592
37593 # Support unset when possible.
37594 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
37595   as_unset=unset
37596 else
37597   as_unset=false
37598 fi
37599
37600
37601 # IFS
37602 # We need space, tab and new line, in precisely that order.  Quoting is
37603 # there to prevent editors from complaining about space-tab.
37604 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
37605 # splitting by setting IFS to empty value.)
37606 as_nl='
37607 '
37608 IFS=" ""        $as_nl"
37609
37610 # Find who we are.  Look in the path if we contain no directory separator.
37611 case $0 in
37612   *[\\/]* ) as_myself=$0 ;;
37613   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37614 for as_dir in $PATH
37615 do
37616   IFS=$as_save_IFS
37617   test -z "$as_dir" && as_dir=.
37618   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37619 done
37620 IFS=$as_save_IFS
37621
37622      ;;
37623 esac
37624 # We did not find ourselves, most probably we were run as `sh COMMAND'
37625 # in which case we are not to be found in the path.
37626 if test "x$as_myself" = x; then
37627   as_myself=$0
37628 fi
37629 if test ! -f "$as_myself"; then
37630   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
37631   { (exit 1); exit 1; }
37632 fi
37633
37634 # Work around bugs in pre-3.0 UWIN ksh.
37635 for as_var in ENV MAIL MAILPATH
37636 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
37637 done
37638 PS1='$ '
37639 PS2='> '
37640 PS4='+ '
37641
37642 # NLS nuisances.
37643 for as_var in \
37644   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
37645   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
37646   LC_TELEPHONE LC_TIME
37647 do
37648   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
37649     eval $as_var=C; export $as_var
37650   else
37651     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
37652   fi
37653 done
37654
37655 # Required to use basename.
37656 if expr a : '\(a\)' >/dev/null 2>&1 &&
37657    test "X`expr 00001 : '.*\(...\)'`" = X001; then
37658   as_expr=expr
37659 else
37660   as_expr=false
37661 fi
37662
37663 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37664   as_basename=basename
37665 else
37666   as_basename=false
37667 fi
37668
37669
37670 # Name of the executable.
37671 as_me=`$as_basename -- "$0" ||
37672 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37673          X"$0" : 'X\(//\)$' \| \
37674          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37675 echo X/"$0" |
37676     sed '/^.*\/\([^/][^/]*\)\/*$/{
37677             s//\1/
37678             q
37679           }
37680           /^X\/\(\/\/\)$/{
37681             s//\1/
37682             q
37683           }
37684           /^X\/\(\/\).*/{
37685             s//\1/
37686             q
37687           }
37688           s/.*/./; q'`
37689
37690 # CDPATH.
37691 $as_unset CDPATH
37692
37693
37694
37695   as_lineno_1=$LINENO
37696   as_lineno_2=$LINENO
37697   test "x$as_lineno_1" != "x$as_lineno_2" &&
37698   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
37699
37700   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
37701   # uniformly replaced by the line number.  The first 'sed' inserts a
37702   # line-number line after each line using $LINENO; the second 'sed'
37703   # does the real work.  The second script uses 'N' to pair each
37704   # line-number line with the line containing $LINENO, and appends
37705   # trailing '-' during substitution so that $LINENO is not a special
37706   # case at line end.
37707   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
37708   # scripts with optimization help from Paolo Bonzini.  Blame Lee
37709   # E. McMahon (1931-1989) for sed's syntax.  :-)
37710   sed -n '
37711     p
37712     /[$]LINENO/=
37713   ' <$as_myself |
37714     sed '
37715       s/[$]LINENO.*/&-/
37716       t lineno
37717       b
37718       :lineno
37719       N
37720       :loop
37721       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
37722       t loop
37723       s/-\n.*//
37724     ' >$as_me.lineno &&
37725   chmod +x "$as_me.lineno" ||
37726     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
37727    { (exit 1); exit 1; }; }
37728
37729   # Don't try to exec as it changes $[0], causing all sort of problems
37730   # (the dirname of $[0] is not the place where we might find the
37731   # original and so on.  Autoconf is especially sensitive to this).
37732   . "./$as_me.lineno"
37733   # Exit status is that of the last command.
37734   exit
37735 }
37736
37737
37738 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37739   as_dirname=dirname
37740 else
37741   as_dirname=false
37742 fi
37743
37744 ECHO_C= ECHO_N= ECHO_T=
37745 case `echo -n x` in
37746 -n*)
37747   case `echo 'x\c'` in
37748   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
37749   *)   ECHO_C='\c';;
37750   esac;;
37751 *)
37752   ECHO_N='-n';;
37753 esac
37754
37755 if expr a : '\(a\)' >/dev/null 2>&1 &&
37756    test "X`expr 00001 : '.*\(...\)'`" = X001; then
37757   as_expr=expr
37758 else
37759   as_expr=false
37760 fi
37761
37762 rm -f conf$$ conf$$.exe conf$$.file
37763 if test -d conf$$.dir; then
37764   rm -f conf$$.dir/conf$$.file
37765 else
37766   rm -f conf$$.dir
37767   mkdir conf$$.dir
37768 fi
37769 echo >conf$$.file
37770 if ln -s conf$$.file conf$$ 2>/dev/null; then
37771   as_ln_s='ln -s'
37772   # ... but there are two gotchas:
37773   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37774   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
37775   # In both cases, we have to default to `cp -p'.
37776   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
37777     as_ln_s='cp -p'
37778 elif ln conf$$.file conf$$ 2>/dev/null; then
37779   as_ln_s=ln
37780 else
37781   as_ln_s='cp -p'
37782 fi
37783 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37784 rmdir conf$$.dir 2>/dev/null
37785
37786 if mkdir -p . 2>/dev/null; then
37787   as_mkdir_p=:
37788 else
37789   test -d ./-p && rmdir ./-p
37790   as_mkdir_p=false
37791 fi
37792
37793 if test -x / >/dev/null 2>&1; then
37794   as_test_x='test -x'
37795 else
37796   if ls -dL / >/dev/null 2>&1; then
37797     as_ls_L_option=L
37798   else
37799     as_ls_L_option=
37800   fi
37801   as_test_x='
37802     eval sh -c '\''
37803       if test -d "$1"; then
37804         test -d "$1/.";
37805       else
37806         case $1 in
37807         -*)set "./$1";;
37808         esac;
37809         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
37810         ???[sx]*):;;*)false;;esac;fi
37811     '\'' sh
37812   '
37813 fi
37814 as_executable_p=$as_test_x
37815
37816 # Sed expression to map a string onto a valid CPP name.
37817 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37818
37819 # Sed expression to map a string onto a valid variable name.
37820 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37821
37822
37823 exec 6>&1
37824
37825 # Save the log message, to keep $[0] and so on meaningful, and to
37826 # report actual input values of CONFIG_FILES etc. instead of their
37827 # values after options handling.
37828 ac_log="
37829 This file was extended by GNU tar $as_me 1.20, which was
37830 generated by GNU Autoconf 2.61.  Invocation command line was
37831
37832   CONFIG_FILES    = $CONFIG_FILES
37833   CONFIG_HEADERS  = $CONFIG_HEADERS
37834   CONFIG_LINKS    = $CONFIG_LINKS
37835   CONFIG_COMMANDS = $CONFIG_COMMANDS
37836   $ $0 $@
37837
37838 on `(hostname || uname -n) 2>/dev/null | sed 1q`
37839 "
37840
37841 _ACEOF
37842
37843 cat >>$CONFIG_STATUS <<_ACEOF
37844 # Files that config.status was made for.
37845 config_files="$ac_config_files"
37846 config_headers="$ac_config_headers"
37847 config_commands="$ac_config_commands"
37848
37849 _ACEOF
37850
37851 cat >>$CONFIG_STATUS <<\_ACEOF
37852 ac_cs_usage="\
37853 \`$as_me' instantiates files from templates according to the
37854 current configuration.
37855
37856 Usage: $0 [OPTIONS] [FILE]...
37857
37858   -h, --help       print this help, then exit
37859   -V, --version    print version number and configuration settings, then exit
37860   -q, --quiet      do not print progress messages
37861   -d, --debug      don't remove temporary files
37862       --recheck    update $as_me by reconfiguring in the same conditions
37863   --file=FILE[:TEMPLATE]
37864                    instantiate the configuration file FILE
37865   --header=FILE[:TEMPLATE]
37866                    instantiate the configuration header FILE
37867
37868 Configuration files:
37869 $config_files
37870
37871 Configuration headers:
37872 $config_headers
37873
37874 Configuration commands:
37875 $config_commands
37876
37877 Report bugs to <bug-autoconf@gnu.org>."
37878
37879 _ACEOF
37880 cat >>$CONFIG_STATUS <<_ACEOF
37881 ac_cs_version="\\
37882 GNU tar config.status 1.20
37883 configured by $0, generated by GNU Autoconf 2.61,
37884   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
37885
37886 Copyright (C) 2006 Free Software Foundation, Inc.
37887 This config.status script is free software; the Free Software Foundation
37888 gives unlimited permission to copy, distribute and modify it."
37889
37890 ac_pwd='$ac_pwd'
37891 srcdir='$srcdir'
37892 INSTALL='$INSTALL'
37893 MKDIR_P='$MKDIR_P'
37894 _ACEOF
37895
37896 cat >>$CONFIG_STATUS <<\_ACEOF
37897 # If no file are specified by the user, then we need to provide default
37898 # value.  By we need to know if files were specified by the user.
37899 ac_need_defaults=:
37900 while test $# != 0
37901 do
37902   case $1 in
37903   --*=*)
37904     ac_option=`expr "X$1" : 'X\([^=]*\)='`
37905     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37906     ac_shift=:
37907     ;;
37908   *)
37909     ac_option=$1
37910     ac_optarg=$2
37911     ac_shift=shift
37912     ;;
37913   esac
37914
37915   case $ac_option in
37916   # Handling of the options.
37917   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37918     ac_cs_recheck=: ;;
37919   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37920     echo "$ac_cs_version"; exit ;;
37921   --debug | --debu | --deb | --de | --d | -d )
37922     debug=: ;;
37923   --file | --fil | --fi | --f )
37924     $ac_shift
37925     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
37926     ac_need_defaults=false;;
37927   --header | --heade | --head | --hea )
37928     $ac_shift
37929     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
37930     ac_need_defaults=false;;
37931   --he | --h)
37932     # Conflict between --help and --header
37933     { echo "$as_me: error: ambiguous option: $1
37934 Try \`$0 --help' for more information." >&2
37935    { (exit 1); exit 1; }; };;
37936   --help | --hel | -h )
37937     echo "$ac_cs_usage"; exit ;;
37938   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37939   | -silent | --silent | --silen | --sile | --sil | --si | --s)
37940     ac_cs_silent=: ;;
37941
37942   # This is an error.
37943   -*) { echo "$as_me: error: unrecognized option: $1
37944 Try \`$0 --help' for more information." >&2
37945    { (exit 1); exit 1; }; } ;;
37946
37947   *) ac_config_targets="$ac_config_targets $1"
37948      ac_need_defaults=false ;;
37949
37950   esac
37951   shift
37952 done
37953
37954 ac_configure_extra_args=
37955
37956 if $ac_cs_silent; then
37957   exec 6>/dev/null
37958   ac_configure_extra_args="$ac_configure_extra_args --silent"
37959 fi
37960
37961 _ACEOF
37962 cat >>$CONFIG_STATUS <<_ACEOF
37963 if \$ac_cs_recheck; then
37964   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
37965   CONFIG_SHELL=$SHELL
37966   export CONFIG_SHELL
37967   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
37968 fi
37969
37970 _ACEOF
37971 cat >>$CONFIG_STATUS <<\_ACEOF
37972 exec 5>>config.log
37973 {
37974   echo
37975   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37976 ## Running $as_me. ##
37977 _ASBOX
37978   echo "$ac_log"
37979 } >&5
37980
37981 _ACEOF
37982 cat >>$CONFIG_STATUS <<_ACEOF
37983 #
37984 # INIT-COMMANDS
37985 #
37986 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37987 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
37988     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
37989     # from automake < 1.5.
37990     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
37991     # Capture the value of LINGUAS because we need it to compute CATALOGS.
37992     LINGUAS="${LINGUAS-%UNSET%}"
37993
37994
37995 _ACEOF
37996
37997 cat >>$CONFIG_STATUS <<\_ACEOF
37998
37999 # Handling of arguments.
38000 for ac_config_target in $ac_config_targets
38001 do
38002   case $ac_config_target in
38003     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
38004     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
38005     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
38006     "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
38007     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
38008     "tests/atlocal") CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
38009     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
38010     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
38011     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
38012     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
38013     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
38014     "rmt/Makefile") CONFIG_FILES="$CONFIG_FILES rmt/Makefile" ;;
38015     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
38016
38017   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
38018 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
38019    { (exit 1); exit 1; }; };;
38020   esac
38021 done
38022
38023
38024 # If the user did not use the arguments to specify the items to instantiate,
38025 # then the envvar interface is used.  Set only those that are not.
38026 # We use the long form for the default assignment because of an extremely
38027 # bizarre bug on SunOS 4.1.3.
38028 if $ac_need_defaults; then
38029   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
38030   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
38031   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
38032 fi
38033
38034 # Have a temporary directory for convenience.  Make it in the build tree
38035 # simply because there is no reason against having it here, and in addition,
38036 # creating and moving files from /tmp can sometimes cause problems.
38037 # Hook for its removal unless debugging.
38038 # Note that there is a small window in which the directory will not be cleaned:
38039 # after its creation but before its name has been assigned to `$tmp'.
38040 $debug ||
38041 {
38042   tmp=
38043   trap 'exit_status=$?
38044   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
38045 ' 0
38046   trap '{ (exit 1); exit 1; }' 1 2 13 15
38047 }
38048 # Create a (secure) tmp directory for tmp files.
38049
38050 {
38051   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
38052   test -n "$tmp" && test -d "$tmp"
38053 }  ||
38054 {
38055   tmp=./conf$$-$RANDOM
38056   (umask 077 && mkdir "$tmp")
38057 } ||
38058 {
38059    echo "$me: cannot create a temporary directory in ." >&2
38060    { (exit 1); exit 1; }
38061 }
38062
38063 #
38064 # Set up the sed scripts for CONFIG_FILES section.
38065 #
38066
38067 # No need to generate the scripts if there are no CONFIG_FILES.
38068 # This happens for instance when ./config.status config.h
38069 if test -n "$CONFIG_FILES"; then
38070
38071 _ACEOF
38072
38073
38074
38075 ac_delim='%!_!# '
38076 for ac_last_try in false false false false false :; do
38077   cat >conf$$subs.sed <<_ACEOF
38078 SHELL!$SHELL$ac_delim
38079 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
38080 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
38081 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
38082 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
38083 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
38084 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
38085 exec_prefix!$exec_prefix$ac_delim
38086 prefix!$prefix$ac_delim
38087 program_transform_name!$program_transform_name$ac_delim
38088 bindir!$bindir$ac_delim
38089 sbindir!$sbindir$ac_delim
38090 libexecdir!$libexecdir$ac_delim
38091 datarootdir!$datarootdir$ac_delim
38092 datadir!$datadir$ac_delim
38093 sysconfdir!$sysconfdir$ac_delim
38094 sharedstatedir!$sharedstatedir$ac_delim
38095 localstatedir!$localstatedir$ac_delim
38096 includedir!$includedir$ac_delim
38097 oldincludedir!$oldincludedir$ac_delim
38098 docdir!$docdir$ac_delim
38099 infodir!$infodir$ac_delim
38100 htmldir!$htmldir$ac_delim
38101 dvidir!$dvidir$ac_delim
38102 pdfdir!$pdfdir$ac_delim
38103 psdir!$psdir$ac_delim
38104 libdir!$libdir$ac_delim
38105 localedir!$localedir$ac_delim
38106 mandir!$mandir$ac_delim
38107 DEFS!$DEFS$ac_delim
38108 ECHO_C!$ECHO_C$ac_delim
38109 ECHO_N!$ECHO_N$ac_delim
38110 ECHO_T!$ECHO_T$ac_delim
38111 LIBS!$LIBS$ac_delim
38112 build_alias!$build_alias$ac_delim
38113 host_alias!$host_alias$ac_delim
38114 target_alias!$target_alias$ac_delim
38115 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
38116 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
38117 INSTALL_DATA!$INSTALL_DATA$ac_delim
38118 am__isrc!$am__isrc$ac_delim
38119 CYGPATH_W!$CYGPATH_W$ac_delim
38120 PACKAGE!$PACKAGE$ac_delim
38121 VERSION!$VERSION$ac_delim
38122 ACLOCAL!$ACLOCAL$ac_delim
38123 AUTOCONF!$AUTOCONF$ac_delim
38124 AUTOMAKE!$AUTOMAKE$ac_delim
38125 AUTOHEADER!$AUTOHEADER$ac_delim
38126 MAKEINFO!$MAKEINFO$ac_delim
38127 install_sh!$install_sh$ac_delim
38128 STRIP!$STRIP$ac_delim
38129 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
38130 mkdir_p!$mkdir_p$ac_delim
38131 AWK!$AWK$ac_delim
38132 SET_MAKE!$SET_MAKE$ac_delim
38133 am__leading_dot!$am__leading_dot$ac_delim
38134 AMTAR!$AMTAR$ac_delim
38135 am__tar!$am__tar$ac_delim
38136 am__untar!$am__untar$ac_delim
38137 CC!$CC$ac_delim
38138 CFLAGS!$CFLAGS$ac_delim
38139 LDFLAGS!$LDFLAGS$ac_delim
38140 CPPFLAGS!$CPPFLAGS$ac_delim
38141 ac_ct_CC!$ac_ct_CC$ac_delim
38142 EXEEXT!$EXEEXT$ac_delim
38143 OBJEXT!$OBJEXT$ac_delim
38144 DEPDIR!$DEPDIR$ac_delim
38145 am__include!$am__include$ac_delim
38146 am__quote!$am__quote$ac_delim
38147 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
38148 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
38149 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
38150 CCDEPMODE!$CCDEPMODE$ac_delim
38151 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
38152 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
38153 RANLIB!$RANLIB$ac_delim
38154 YACC!$YACC$ac_delim
38155 YFLAGS!$YFLAGS$ac_delim
38156 CPP!$CPP$ac_delim
38157 GREP!$GREP$ac_delim
38158 EGREP!$EGREP$ac_delim
38159 STDBOOL_H!$STDBOOL_H$ac_delim
38160 HAVE__BOOL!$HAVE__BOOL$ac_delim
38161 GL_COND_LIBTOOL_TRUE!$GL_COND_LIBTOOL_TRUE$ac_delim
38162 GL_COND_LIBTOOL_FALSE!$GL_COND_LIBTOOL_FALSE$ac_delim
38163 EOVERFLOW!$EOVERFLOW$ac_delim
38164 ALLOCA!$ALLOCA$ac_delim
38165 ALLOCA_H!$ALLOCA_H$ac_delim
38166 GETOPT_H!$GETOPT_H$ac_delim
38167 GNULIB_CHOWN!$GNULIB_CHOWN$ac_delim
38168 GNULIB_DUP2!$GNULIB_DUP2$ac_delim
38169 GNULIB_ENVIRON!$GNULIB_ENVIRON$ac_delim
38170 GNULIB_FCHDIR!$GNULIB_FCHDIR$ac_delim
38171 GNULIB_FTRUNCATE!$GNULIB_FTRUNCATE$ac_delim
38172 GNULIB_GETCWD!$GNULIB_GETCWD$ac_delim
38173 GNULIB_GETLOGIN_R!$GNULIB_GETLOGIN_R$ac_delim
38174 GNULIB_GETPAGESIZE!$GNULIB_GETPAGESIZE$ac_delim
38175 _ACEOF
38176
38177   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
38178     break
38179   elif $ac_last_try; then
38180     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38181 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38182    { (exit 1); exit 1; }; }
38183   else
38184     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38185   fi
38186 done
38187
38188 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
38189 if test -n "$ac_eof"; then
38190   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
38191   ac_eof=`expr $ac_eof + 1`
38192 fi
38193
38194 cat >>$CONFIG_STATUS <<_ACEOF
38195 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
38196 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38197 _ACEOF
38198 sed '
38199 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
38200 s/^/s,@/; s/!/@,|#_!!_#|/
38201 :n
38202 t n
38203 s/'"$ac_delim"'$/,g/; t
38204 s/$/\\/; p
38205 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
38206 ' >>$CONFIG_STATUS <conf$$subs.sed
38207 rm -f conf$$subs.sed
38208 cat >>$CONFIG_STATUS <<_ACEOF
38209 CEOF$ac_eof
38210 _ACEOF
38211
38212
38213 ac_delim='%!_!# '
38214 for ac_last_try in false false false false false :; do
38215   cat >conf$$subs.sed <<_ACEOF
38216 GNULIB_LCHOWN!$GNULIB_LCHOWN$ac_delim
38217 GNULIB_LSEEK!$GNULIB_LSEEK$ac_delim
38218 GNULIB_READLINK!$GNULIB_READLINK$ac_delim
38219 GNULIB_SLEEP!$GNULIB_SLEEP$ac_delim
38220 HAVE_DUP2!$HAVE_DUP2$ac_delim
38221 HAVE_FTRUNCATE!$HAVE_FTRUNCATE$ac_delim
38222 HAVE_GETPAGESIZE!$HAVE_GETPAGESIZE$ac_delim
38223 HAVE_READLINK!$HAVE_READLINK$ac_delim
38224 HAVE_SLEEP!$HAVE_SLEEP$ac_delim
38225 HAVE_DECL_ENVIRON!$HAVE_DECL_ENVIRON$ac_delim
38226 HAVE_DECL_GETLOGIN_R!$HAVE_DECL_GETLOGIN_R$ac_delim
38227 HAVE_OS_H!$HAVE_OS_H$ac_delim
38228 HAVE_SYS_PARAM_H!$HAVE_SYS_PARAM_H$ac_delim
38229 REPLACE_CHOWN!$REPLACE_CHOWN$ac_delim
38230 REPLACE_FCHDIR!$REPLACE_FCHDIR$ac_delim
38231 REPLACE_GETCWD!$REPLACE_GETCWD$ac_delim
38232 REPLACE_GETPAGESIZE!$REPLACE_GETPAGESIZE$ac_delim
38233 REPLACE_LCHOWN!$REPLACE_LCHOWN$ac_delim
38234 REPLACE_LSEEK!$REPLACE_LSEEK$ac_delim
38235 LIB_CLOCK_GETTIME!$LIB_CLOCK_GETTIME$ac_delim
38236 build!$build$ac_delim
38237 build_cpu!$build_cpu$ac_delim
38238 build_vendor!$build_vendor$ac_delim
38239 build_os!$build_os$ac_delim
38240 host!$host$ac_delim
38241 host_cpu!$host_cpu$ac_delim
38242 host_vendor!$host_vendor$ac_delim
38243 host_os!$host_os$ac_delim
38244 INCLUDE_NEXT!$INCLUDE_NEXT$ac_delim
38245 NEXT_DIRENT_H!$NEXT_DIRENT_H$ac_delim
38246 DIRENT_H!$DIRENT_H$ac_delim
38247 GNULIB_OPEN!$GNULIB_OPEN$ac_delim
38248 REPLACE_OPEN!$REPLACE_OPEN$ac_delim
38249 NEXT_FCNTL_H!$NEXT_FCNTL_H$ac_delim
38250 FCNTL_H!$FCNTL_H$ac_delim
38251 NEXT_FLOAT_H!$NEXT_FLOAT_H$ac_delim
38252 FLOAT_H!$FLOAT_H$ac_delim
38253 FNMATCH_H!$FNMATCH_H$ac_delim
38254 GNULIB_FPRINTF_POSIX!$GNULIB_FPRINTF_POSIX$ac_delim
38255 GNULIB_PRINTF_POSIX!$GNULIB_PRINTF_POSIX$ac_delim
38256 GNULIB_SNPRINTF!$GNULIB_SNPRINTF$ac_delim
38257 GNULIB_SPRINTF_POSIX!$GNULIB_SPRINTF_POSIX$ac_delim
38258 GNULIB_VFPRINTF_POSIX!$GNULIB_VFPRINTF_POSIX$ac_delim
38259 GNULIB_VPRINTF_POSIX!$GNULIB_VPRINTF_POSIX$ac_delim
38260 GNULIB_VSNPRINTF!$GNULIB_VSNPRINTF$ac_delim
38261 GNULIB_VSPRINTF_POSIX!$GNULIB_VSPRINTF_POSIX$ac_delim
38262 GNULIB_VASPRINTF!$GNULIB_VASPRINTF$ac_delim
38263 GNULIB_FOPEN!$GNULIB_FOPEN$ac_delim
38264 GNULIB_FREOPEN!$GNULIB_FREOPEN$ac_delim
38265 GNULIB_FSEEK!$GNULIB_FSEEK$ac_delim
38266 GNULIB_FSEEKO!$GNULIB_FSEEKO$ac_delim
38267 GNULIB_FTELL!$GNULIB_FTELL$ac_delim
38268 GNULIB_FTELLO!$GNULIB_FTELLO$ac_delim
38269 GNULIB_FFLUSH!$GNULIB_FFLUSH$ac_delim
38270 GNULIB_GETDELIM!$GNULIB_GETDELIM$ac_delim
38271 GNULIB_GETLINE!$GNULIB_GETLINE$ac_delim
38272 REPLACE_FPRINTF!$REPLACE_FPRINTF$ac_delim
38273 REPLACE_VFPRINTF!$REPLACE_VFPRINTF$ac_delim
38274 REPLACE_PRINTF!$REPLACE_PRINTF$ac_delim
38275 REPLACE_VPRINTF!$REPLACE_VPRINTF$ac_delim
38276 REPLACE_SNPRINTF!$REPLACE_SNPRINTF$ac_delim
38277 HAVE_DECL_SNPRINTF!$HAVE_DECL_SNPRINTF$ac_delim
38278 REPLACE_VSNPRINTF!$REPLACE_VSNPRINTF$ac_delim
38279 HAVE_DECL_VSNPRINTF!$HAVE_DECL_VSNPRINTF$ac_delim
38280 REPLACE_SPRINTF!$REPLACE_SPRINTF$ac_delim
38281 REPLACE_VSPRINTF!$REPLACE_VSPRINTF$ac_delim
38282 HAVE_VASPRINTF!$HAVE_VASPRINTF$ac_delim
38283 REPLACE_VASPRINTF!$REPLACE_VASPRINTF$ac_delim
38284 REPLACE_FOPEN!$REPLACE_FOPEN$ac_delim
38285 REPLACE_FREOPEN!$REPLACE_FREOPEN$ac_delim
38286 HAVE_FSEEKO!$HAVE_FSEEKO$ac_delim
38287 REPLACE_FSEEKO!$REPLACE_FSEEKO$ac_delim
38288 REPLACE_FSEEK!$REPLACE_FSEEK$ac_delim
38289 HAVE_FTELLO!$HAVE_FTELLO$ac_delim
38290 REPLACE_FTELLO!$REPLACE_FTELLO$ac_delim
38291 REPLACE_FTELL!$REPLACE_FTELL$ac_delim
38292 REPLACE_FFLUSH!$REPLACE_FFLUSH$ac_delim
38293 HAVE_DECL_GETDELIM!$HAVE_DECL_GETDELIM$ac_delim
38294 HAVE_DECL_GETLINE!$HAVE_DECL_GETLINE$ac_delim
38295 REPLACE_GETLINE!$REPLACE_GETLINE$ac_delim
38296 LIBINTL!$LIBINTL$ac_delim
38297 LTLIBINTL!$LTLIBINTL$ac_delim
38298 NEXT_SYS_TIME_H!$NEXT_SYS_TIME_H$ac_delim
38299 HAVE_SYS_TIME_H!$HAVE_SYS_TIME_H$ac_delim
38300 HAVE_STRUCT_TIMEVAL!$HAVE_STRUCT_TIMEVAL$ac_delim
38301 REPLACE_GETTIMEOFDAY!$REPLACE_GETTIMEOFDAY$ac_delim
38302 SYS_TIME_H!$SYS_TIME_H$ac_delim
38303 HAVE_LONG_LONG_INT!$HAVE_LONG_LONG_INT$ac_delim
38304 HAVE_UNSIGNED_LONG_LONG_INT!$HAVE_UNSIGNED_LONG_LONG_INT$ac_delim
38305 HAVE_INTTYPES_H!$HAVE_INTTYPES_H$ac_delim
38306 HAVE_SYS_TYPES_H!$HAVE_SYS_TYPES_H$ac_delim
38307 NEXT_STDINT_H!$NEXT_STDINT_H$ac_delim
38308 HAVE_STDINT_H!$HAVE_STDINT_H$ac_delim
38309 HAVE_SYS_INTTYPES_H!$HAVE_SYS_INTTYPES_H$ac_delim
38310 HAVE_SYS_BITYPES_H!$HAVE_SYS_BITYPES_H$ac_delim
38311 BITSIZEOF_PTRDIFF_T!$BITSIZEOF_PTRDIFF_T$ac_delim
38312 BITSIZEOF_SIG_ATOMIC_T!$BITSIZEOF_SIG_ATOMIC_T$ac_delim
38313 _ACEOF
38314
38315   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
38316     break
38317   elif $ac_last_try; then
38318     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38319 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38320    { (exit 1); exit 1; }; }
38321   else
38322     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38323   fi
38324 done
38325
38326 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
38327 if test -n "$ac_eof"; then
38328   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
38329   ac_eof=`expr $ac_eof + 1`
38330 fi
38331
38332 cat >>$CONFIG_STATUS <<_ACEOF
38333 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
38334 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38335 _ACEOF
38336 sed '
38337 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
38338 s/^/s,@/; s/!/@,|#_!!_#|/
38339 :n
38340 t n
38341 s/'"$ac_delim"'$/,g/; t
38342 s/$/\\/; p
38343 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
38344 ' >>$CONFIG_STATUS <conf$$subs.sed
38345 rm -f conf$$subs.sed
38346 cat >>$CONFIG_STATUS <<_ACEOF
38347 CEOF$ac_eof
38348 _ACEOF
38349
38350
38351 ac_delim='%!_!# '
38352 for ac_last_try in false false false false false :; do
38353   cat >conf$$subs.sed <<_ACEOF
38354 BITSIZEOF_SIZE_T!$BITSIZEOF_SIZE_T$ac_delim
38355 BITSIZEOF_WCHAR_T!$BITSIZEOF_WCHAR_T$ac_delim
38356 BITSIZEOF_WINT_T!$BITSIZEOF_WINT_T$ac_delim
38357 HAVE_SIGNED_SIG_ATOMIC_T!$HAVE_SIGNED_SIG_ATOMIC_T$ac_delim
38358 HAVE_SIGNED_WCHAR_T!$HAVE_SIGNED_WCHAR_T$ac_delim
38359 HAVE_SIGNED_WINT_T!$HAVE_SIGNED_WINT_T$ac_delim
38360 PTRDIFF_T_SUFFIX!$PTRDIFF_T_SUFFIX$ac_delim
38361 SIG_ATOMIC_T_SUFFIX!$SIG_ATOMIC_T_SUFFIX$ac_delim
38362 SIZE_T_SUFFIX!$SIZE_T_SUFFIX$ac_delim
38363 WCHAR_T_SUFFIX!$WCHAR_T_SUFFIX$ac_delim
38364 WINT_T_SUFFIX!$WINT_T_SUFFIX$ac_delim
38365 STDINT_H!$STDINT_H$ac_delim
38366 PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
38367 GNULIB_IMAXABS!$GNULIB_IMAXABS$ac_delim
38368 GNULIB_IMAXDIV!$GNULIB_IMAXDIV$ac_delim
38369 GNULIB_STRTOIMAX!$GNULIB_STRTOIMAX$ac_delim
38370 GNULIB_STRTOUMAX!$GNULIB_STRTOUMAX$ac_delim
38371 HAVE_DECL_IMAXABS!$HAVE_DECL_IMAXABS$ac_delim
38372 HAVE_DECL_IMAXDIV!$HAVE_DECL_IMAXDIV$ac_delim
38373 HAVE_DECL_STRTOIMAX!$HAVE_DECL_STRTOIMAX$ac_delim
38374 HAVE_DECL_STRTOUMAX!$HAVE_DECL_STRTOUMAX$ac_delim
38375 NEXT_INTTYPES_H!$NEXT_INTTYPES_H$ac_delim
38376 PRIPTR_PREFIX!$PRIPTR_PREFIX$ac_delim
38377 INT32_MAX_LT_INTMAX_MAX!$INT32_MAX_LT_INTMAX_MAX$ac_delim
38378 INT64_MAX_EQ_LONG_MAX!$INT64_MAX_EQ_LONG_MAX$ac_delim
38379 UINT32_MAX_LT_UINTMAX_MAX!$UINT32_MAX_LT_UINTMAX_MAX$ac_delim
38380 UINT64_MAX_EQ_ULONG_MAX!$UINT64_MAX_EQ_ULONG_MAX$ac_delim
38381 INTTYPES_H!$INTTYPES_H$ac_delim
38382 GLIBC21!$GLIBC21$ac_delim
38383 LOCALCHARSET_TESTS_ENVIRONMENT!$LOCALCHARSET_TESTS_ENVIRONMENT$ac_delim
38384 HAVE_MALLOC_POSIX!$HAVE_MALLOC_POSIX$ac_delim
38385 GNULIB_MALLOC_POSIX!$GNULIB_MALLOC_POSIX$ac_delim
38386 GNULIB_REALLOC_POSIX!$GNULIB_REALLOC_POSIX$ac_delim
38387 GNULIB_CALLOC_POSIX!$GNULIB_CALLOC_POSIX$ac_delim
38388 GNULIB_GETSUBOPT!$GNULIB_GETSUBOPT$ac_delim
38389 GNULIB_MKDTEMP!$GNULIB_MKDTEMP$ac_delim
38390 GNULIB_MKSTEMP!$GNULIB_MKSTEMP$ac_delim
38391 GNULIB_PUTENV!$GNULIB_PUTENV$ac_delim
38392 GNULIB_SETENV!$GNULIB_SETENV$ac_delim
38393 GNULIB_STRTOD!$GNULIB_STRTOD$ac_delim
38394 GNULIB_UNSETENV!$GNULIB_UNSETENV$ac_delim
38395 HAVE_CALLOC_POSIX!$HAVE_CALLOC_POSIX$ac_delim
38396 HAVE_GETSUBOPT!$HAVE_GETSUBOPT$ac_delim
38397 HAVE_MKDTEMP!$HAVE_MKDTEMP$ac_delim
38398 HAVE_REALLOC_POSIX!$HAVE_REALLOC_POSIX$ac_delim
38399 HAVE_SETENV!$HAVE_SETENV$ac_delim
38400 HAVE_STRTOD!$HAVE_STRTOD$ac_delim
38401 HAVE_UNSETENV!$HAVE_UNSETENV$ac_delim
38402 REPLACE_MKSTEMP!$REPLACE_MKSTEMP$ac_delim
38403 REPLACE_PUTENV!$REPLACE_PUTENV$ac_delim
38404 REPLACE_STRTOD!$REPLACE_STRTOD$ac_delim
38405 VOID_UNSETENV!$VOID_UNSETENV$ac_delim
38406 GNULIB_MEMMEM!$GNULIB_MEMMEM$ac_delim
38407 GNULIB_MEMPCPY!$GNULIB_MEMPCPY$ac_delim
38408 GNULIB_MEMRCHR!$GNULIB_MEMRCHR$ac_delim
38409 GNULIB_STPCPY!$GNULIB_STPCPY$ac_delim
38410 GNULIB_STPNCPY!$GNULIB_STPNCPY$ac_delim
38411 GNULIB_STRCHRNUL!$GNULIB_STRCHRNUL$ac_delim
38412 GNULIB_STRDUP!$GNULIB_STRDUP$ac_delim
38413 GNULIB_STRNDUP!$GNULIB_STRNDUP$ac_delim
38414 GNULIB_STRNLEN!$GNULIB_STRNLEN$ac_delim
38415 GNULIB_STRPBRK!$GNULIB_STRPBRK$ac_delim
38416 GNULIB_STRSEP!$GNULIB_STRSEP$ac_delim
38417 GNULIB_STRSTR!$GNULIB_STRSTR$ac_delim
38418 GNULIB_STRCASESTR!$GNULIB_STRCASESTR$ac_delim
38419 GNULIB_STRTOK_R!$GNULIB_STRTOK_R$ac_delim
38420 GNULIB_MBSLEN!$GNULIB_MBSLEN$ac_delim
38421 GNULIB_MBSNLEN!$GNULIB_MBSNLEN$ac_delim
38422 GNULIB_MBSCHR!$GNULIB_MBSCHR$ac_delim
38423 GNULIB_MBSRCHR!$GNULIB_MBSRCHR$ac_delim
38424 GNULIB_MBSSTR!$GNULIB_MBSSTR$ac_delim
38425 GNULIB_MBSCASECMP!$GNULIB_MBSCASECMP$ac_delim
38426 GNULIB_MBSNCASECMP!$GNULIB_MBSNCASECMP$ac_delim
38427 GNULIB_MBSPCASECMP!$GNULIB_MBSPCASECMP$ac_delim
38428 GNULIB_MBSCASESTR!$GNULIB_MBSCASESTR$ac_delim
38429 GNULIB_MBSCSPN!$GNULIB_MBSCSPN$ac_delim
38430 GNULIB_MBSPBRK!$GNULIB_MBSPBRK$ac_delim
38431 GNULIB_MBSSPN!$GNULIB_MBSSPN$ac_delim
38432 GNULIB_MBSSEP!$GNULIB_MBSSEP$ac_delim
38433 GNULIB_MBSTOK_R!$GNULIB_MBSTOK_R$ac_delim
38434 GNULIB_STRERROR!$GNULIB_STRERROR$ac_delim
38435 GNULIB_STRSIGNAL!$GNULIB_STRSIGNAL$ac_delim
38436 HAVE_DECL_MEMMEM!$HAVE_DECL_MEMMEM$ac_delim
38437 HAVE_MEMPCPY!$HAVE_MEMPCPY$ac_delim
38438 HAVE_DECL_MEMRCHR!$HAVE_DECL_MEMRCHR$ac_delim
38439 HAVE_STPCPY!$HAVE_STPCPY$ac_delim
38440 HAVE_STPNCPY!$HAVE_STPNCPY$ac_delim
38441 HAVE_STRCHRNUL!$HAVE_STRCHRNUL$ac_delim
38442 HAVE_DECL_STRDUP!$HAVE_DECL_STRDUP$ac_delim
38443 HAVE_STRNDUP!$HAVE_STRNDUP$ac_delim
38444 HAVE_DECL_STRNDUP!$HAVE_DECL_STRNDUP$ac_delim
38445 HAVE_DECL_STRNLEN!$HAVE_DECL_STRNLEN$ac_delim
38446 HAVE_STRPBRK!$HAVE_STRPBRK$ac_delim
38447 HAVE_STRSEP!$HAVE_STRSEP$ac_delim
38448 HAVE_STRCASESTR!$HAVE_STRCASESTR$ac_delim
38449 HAVE_DECL_STRTOK_R!$HAVE_DECL_STRTOK_R$ac_delim
38450 HAVE_DECL_STRERROR!$HAVE_DECL_STRERROR$ac_delim
38451 _ACEOF
38452
38453   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
38454     break
38455   elif $ac_last_try; then
38456     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38457 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38458    { (exit 1); exit 1; }; }
38459   else
38460     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38461   fi
38462 done
38463
38464 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
38465 if test -n "$ac_eof"; then
38466   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
38467   ac_eof=`expr $ac_eof + 1`
38468 fi
38469
38470 cat >>$CONFIG_STATUS <<_ACEOF
38471 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
38472 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38473 _ACEOF
38474 sed '
38475 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
38476 s/^/s,@/; s/!/@,|#_!!_#|/
38477 :n
38478 t n
38479 s/'"$ac_delim"'$/,g/; t
38480 s/$/\\/; p
38481 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
38482 ' >>$CONFIG_STATUS <conf$$subs.sed
38483 rm -f conf$$subs.sed
38484 cat >>$CONFIG_STATUS <<_ACEOF
38485 CEOF$ac_eof
38486 _ACEOF
38487
38488
38489 ac_delim='%!_!# '
38490 for ac_last_try in false false false false false :; do
38491   cat >conf$$subs.sed <<_ACEOF
38492 HAVE_DECL_STRSIGNAL!$HAVE_DECL_STRSIGNAL$ac_delim
38493 REPLACE_STRERROR!$REPLACE_STRERROR$ac_delim
38494 REPLACE_STRSIGNAL!$REPLACE_STRSIGNAL$ac_delim
38495 REPLACE_MEMMEM!$REPLACE_MEMMEM$ac_delim
38496 REPLACE_STRCASESTR!$REPLACE_STRCASESTR$ac_delim
38497 REPLACE_STRSTR!$REPLACE_STRSTR$ac_delim
38498 STDARG_H!$STDARG_H$ac_delim
38499 NEXT_STDARG_H!$NEXT_STDARG_H$ac_delim
38500 NEXT_STDIO_H!$NEXT_STDIO_H$ac_delim
38501 NEXT_STDLIB_H!$NEXT_STDLIB_H$ac_delim
38502 HAVE_STRCASECMP!$HAVE_STRCASECMP$ac_delim
38503 HAVE_DECL_STRNCASECMP!$HAVE_DECL_STRNCASECMP$ac_delim
38504 NEXT_STRING_H!$NEXT_STRING_H$ac_delim
38505 NEXT_STRINGS_H!$NEXT_STRINGS_H$ac_delim
38506 HAVE_LSTAT!$HAVE_LSTAT$ac_delim
38507 HAVE_DECL_MKDIR!$HAVE_DECL_MKDIR$ac_delim
38508 HAVE_IO_H!$HAVE_IO_H$ac_delim
38509 NEXT_SYS_STAT_H!$NEXT_SYS_STAT_H$ac_delim
38510 SYS_STAT_H!$SYS_STAT_H$ac_delim
38511 NEXT_SYSEXITS_H!$NEXT_SYSEXITS_H$ac_delim
38512 HAVE_SYSEXITS_H!$HAVE_SYSEXITS_H$ac_delim
38513 SYSEXITS_H!$SYSEXITS_H$ac_delim
38514 REPLACE_LOCALTIME_R!$REPLACE_LOCALTIME_R$ac_delim
38515 REPLACE_NANOSLEEP!$REPLACE_NANOSLEEP$ac_delim
38516 REPLACE_STRPTIME!$REPLACE_STRPTIME$ac_delim
38517 REPLACE_TIMEGM!$REPLACE_TIMEGM$ac_delim
38518 NEXT_TIME_H!$NEXT_TIME_H$ac_delim
38519 TIME_H_DEFINES_STRUCT_TIMESPEC!$TIME_H_DEFINES_STRUCT_TIMESPEC$ac_delim
38520 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC!$SYS_TIME_H_DEFINES_STRUCT_TIMESPEC$ac_delim
38521 NEXT_UNISTD_H!$NEXT_UNISTD_H$ac_delim
38522 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
38523 GNULIB_WCWIDTH!$GNULIB_WCWIDTH$ac_delim
38524 HAVE_DECL_WCWIDTH!$HAVE_DECL_WCWIDTH$ac_delim
38525 REPLACE_WCWIDTH!$REPLACE_WCWIDTH$ac_delim
38526 WCHAR_H!$WCHAR_H$ac_delim
38527 HAVE_WCHAR_H!$HAVE_WCHAR_H$ac_delim
38528 NEXT_WCHAR_H!$NEXT_WCHAR_H$ac_delim
38529 HAVE_ISWCNTRL!$HAVE_ISWCNTRL$ac_delim
38530 HAVE_WINT_T!$HAVE_WINT_T$ac_delim
38531 NEXT_WCTYPE_H!$NEXT_WCTYPE_H$ac_delim
38532 HAVE_WCTYPE_H!$HAVE_WCTYPE_H$ac_delim
38533 WCTYPE_H!$WCTYPE_H$ac_delim
38534 LIBTAR_LIBDEPS!$LIBTAR_LIBDEPS$ac_delim
38535 LIBTAR_LTLIBDEPS!$LIBTAR_LTLIBDEPS$ac_delim
38536 LIB_SETSOCKOPT!$LIB_SETSOCKOPT$ac_delim
38537 PU_RMT_PROG!$PU_RMT_PROG$ac_delim
38538 DEFAULT_RMT_DIR!$DEFAULT_RMT_DIR$ac_delim
38539 DEFAULT_RMT_COMMAND!$DEFAULT_RMT_COMMAND$ac_delim
38540 LIBOBJS!$LIBOBJS$ac_delim
38541 DEFAULT_ARCHIVE_FORMAT!$DEFAULT_ARCHIVE_FORMAT$ac_delim
38542 DEFAULT_ARCHIVE!$DEFAULT_ARCHIVE$ac_delim
38543 DEFAULT_BLOCKING!$DEFAULT_BLOCKING$ac_delim
38544 DEFAULT_QUOTING_STYLE!$DEFAULT_QUOTING_STYLE$ac_delim
38545 LIBICONV!$LIBICONV$ac_delim
38546 LTLIBICONV!$LTLIBICONV$ac_delim
38547 USE_NLS!$USE_NLS$ac_delim
38548 GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
38549 MSGFMT!$MSGFMT$ac_delim
38550 GMSGFMT!$GMSGFMT$ac_delim
38551 MSGFMT_015!$MSGFMT_015$ac_delim
38552 GMSGFMT_015!$GMSGFMT_015$ac_delim
38553 XGETTEXT!$XGETTEXT$ac_delim
38554 XGETTEXT_015!$XGETTEXT_015$ac_delim
38555 MSGMERGE!$MSGMERGE$ac_delim
38556 XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
38557 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
38558 INTLLIBS!$INTLLIBS$ac_delim
38559 POSUB!$POSUB$ac_delim
38560 AUTOM4TE!$AUTOM4TE$ac_delim
38561 BACKUP_LIBEXEC_SCRIPTS!$BACKUP_LIBEXEC_SCRIPTS$ac_delim
38562 BACKUP_SBIN_SCRIPTS!$BACKUP_SBIN_SCRIPTS$ac_delim
38563 BACKUP_SED_COND!$BACKUP_SED_COND$ac_delim
38564 LTLIBOBJS!$LTLIBOBJS$ac_delim
38565 gl_LIBOBJS!$gl_LIBOBJS$ac_delim
38566 gl_LTLIBOBJS!$gl_LTLIBOBJS$ac_delim
38567 gltests_LIBOBJS!$gltests_LIBOBJS$ac_delim
38568 gltests_LTLIBOBJS!$gltests_LTLIBOBJS$ac_delim
38569 _ACEOF
38570
38571   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
38572     break
38573   elif $ac_last_try; then
38574     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38575 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38576    { (exit 1); exit 1; }; }
38577   else
38578     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38579   fi
38580 done
38581
38582 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
38583 if test -n "$ac_eof"; then
38584   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
38585   ac_eof=`expr $ac_eof + 1`
38586 fi
38587
38588 cat >>$CONFIG_STATUS <<_ACEOF
38589 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
38590 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
38591 _ACEOF
38592 sed '
38593 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
38594 s/^/s,@/; s/!/@,|#_!!_#|/
38595 :n
38596 t n
38597 s/'"$ac_delim"'$/,g/; t
38598 s/$/\\/; p
38599 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
38600 ' >>$CONFIG_STATUS <conf$$subs.sed
38601 rm -f conf$$subs.sed
38602 cat >>$CONFIG_STATUS <<_ACEOF
38603 :end
38604 s/|#_!!_#|//g
38605 CEOF$ac_eof
38606 _ACEOF
38607
38608
38609 # VPATH may cause trouble with some makes, so we remove $(srcdir),
38610 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
38611 # trailing colons and then remove the whole line if VPATH becomes empty
38612 # (actually we leave an empty line to preserve line numbers).
38613 if test "x$srcdir" = x.; then
38614   ac_vpsub='/^[  ]*VPATH[        ]*=/{
38615 s/:*\$(srcdir):*/:/
38616 s/:*\${srcdir}:*/:/
38617 s/:*@srcdir@:*/:/
38618 s/^\([^=]*=[     ]*\):*/\1/
38619 s/:*$//
38620 s/^[^=]*=[       ]*$//
38621 }'
38622 fi
38623
38624 cat >>$CONFIG_STATUS <<\_ACEOF
38625 fi # test -n "$CONFIG_FILES"
38626
38627
38628 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
38629 do
38630   case $ac_tag in
38631   :[FHLC]) ac_mode=$ac_tag; continue;;
38632   esac
38633   case $ac_mode$ac_tag in
38634   :[FHL]*:*);;
38635   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
38636 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
38637    { (exit 1); exit 1; }; };;
38638   :[FH]-) ac_tag=-:-;;
38639   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38640   esac
38641   ac_save_IFS=$IFS
38642   IFS=:
38643   set x $ac_tag
38644   IFS=$ac_save_IFS
38645   shift
38646   ac_file=$1
38647   shift
38648
38649   case $ac_mode in
38650   :L) ac_source=$1;;
38651   :[FH])
38652     ac_file_inputs=
38653     for ac_f
38654     do
38655       case $ac_f in
38656       -) ac_f="$tmp/stdin";;
38657       *) # Look for the file first in the build tree, then in the source tree
38658          # (if the path is not absolute).  The absolute path cannot be DOS-style,
38659          # because $ac_f cannot contain `:'.
38660          test -f "$ac_f" ||
38661            case $ac_f in
38662            [\\/$]*) false;;
38663            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38664            esac ||
38665            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
38666 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
38667    { (exit 1); exit 1; }; };;
38668       esac
38669       ac_file_inputs="$ac_file_inputs $ac_f"
38670     done
38671
38672     # Let's still pretend it is `configure' which instantiates (i.e., don't
38673     # use $as_me), people would be surprised to read:
38674     #    /* config.h.  Generated by config.status.  */
38675     configure_input="Generated from "`IFS=:
38676           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
38677     if test x"$ac_file" != x-; then
38678       configure_input="$ac_file.  $configure_input"
38679       { echo "$as_me:$LINENO: creating $ac_file" >&5
38680 echo "$as_me: creating $ac_file" >&6;}
38681     fi
38682
38683     case $ac_tag in
38684     *:-:* | *:-) cat >"$tmp/stdin";;
38685     esac
38686     ;;
38687   esac
38688
38689   ac_dir=`$as_dirname -- "$ac_file" ||
38690 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38691          X"$ac_file" : 'X\(//\)[^/]' \| \
38692          X"$ac_file" : 'X\(//\)$' \| \
38693          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38694 echo X"$ac_file" |
38695     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38696             s//\1/
38697             q
38698           }
38699           /^X\(\/\/\)[^/].*/{
38700             s//\1/
38701             q
38702           }
38703           /^X\(\/\/\)$/{
38704             s//\1/
38705             q
38706           }
38707           /^X\(\/\).*/{
38708             s//\1/
38709             q
38710           }
38711           s/.*/./; q'`
38712   { as_dir="$ac_dir"
38713   case $as_dir in #(
38714   -*) as_dir=./$as_dir;;
38715   esac
38716   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
38717     as_dirs=
38718     while :; do
38719       case $as_dir in #(
38720       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
38721       *) as_qdir=$as_dir;;
38722       esac
38723       as_dirs="'$as_qdir' $as_dirs"
38724       as_dir=`$as_dirname -- "$as_dir" ||
38725 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38726          X"$as_dir" : 'X\(//\)[^/]' \| \
38727          X"$as_dir" : 'X\(//\)$' \| \
38728          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
38729 echo X"$as_dir" |
38730     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38731             s//\1/
38732             q
38733           }
38734           /^X\(\/\/\)[^/].*/{
38735             s//\1/
38736             q
38737           }
38738           /^X\(\/\/\)$/{
38739             s//\1/
38740             q
38741           }
38742           /^X\(\/\).*/{
38743             s//\1/
38744             q
38745           }
38746           s/.*/./; q'`
38747       test -d "$as_dir" && break
38748     done
38749     test -z "$as_dirs" || eval "mkdir $as_dirs"
38750   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
38751 echo "$as_me: error: cannot create directory $as_dir" >&2;}
38752    { (exit 1); exit 1; }; }; }
38753   ac_builddir=.
38754
38755 case "$ac_dir" in
38756 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38757 *)
38758   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38759   # A ".." for each directory in $ac_dir_suffix.
38760   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
38761   case $ac_top_builddir_sub in
38762   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38763   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38764   esac ;;
38765 esac
38766 ac_abs_top_builddir=$ac_pwd
38767 ac_abs_builddir=$ac_pwd$ac_dir_suffix
38768 # for backward compatibility:
38769 ac_top_builddir=$ac_top_build_prefix
38770
38771 case $srcdir in
38772   .)  # We are building in place.
38773     ac_srcdir=.
38774     ac_top_srcdir=$ac_top_builddir_sub
38775     ac_abs_top_srcdir=$ac_pwd ;;
38776   [\\/]* | ?:[\\/]* )  # Absolute name.
38777     ac_srcdir=$srcdir$ac_dir_suffix;
38778     ac_top_srcdir=$srcdir
38779     ac_abs_top_srcdir=$srcdir ;;
38780   *) # Relative name.
38781     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38782     ac_top_srcdir=$ac_top_build_prefix$srcdir
38783     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38784 esac
38785 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38786
38787
38788   case $ac_mode in
38789   :F)
38790   #
38791   # CONFIG_FILE
38792   #
38793
38794   case $INSTALL in
38795   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38796   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38797   esac
38798   ac_MKDIR_P=$MKDIR_P
38799   case $MKDIR_P in
38800   [\\/$]* | ?:[\\/]* ) ;;
38801   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38802   esac
38803 _ACEOF
38804
38805 cat >>$CONFIG_STATUS <<\_ACEOF
38806 # If the template does not know about datarootdir, expand it.
38807 # FIXME: This hack should be removed a few years after 2.60.
38808 ac_datarootdir_hack=; ac_datarootdir_seen=
38809
38810 case `sed -n '/datarootdir/ {
38811   p
38812   q
38813 }
38814 /@datadir@/p
38815 /@docdir@/p
38816 /@infodir@/p
38817 /@localedir@/p
38818 /@mandir@/p
38819 ' $ac_file_inputs` in
38820 *datarootdir*) ac_datarootdir_seen=yes;;
38821 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
38822   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
38823 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38824 _ACEOF
38825 cat >>$CONFIG_STATUS <<_ACEOF
38826   ac_datarootdir_hack='
38827   s&@datadir@&$datadir&g
38828   s&@docdir@&$docdir&g
38829   s&@infodir@&$infodir&g
38830   s&@localedir@&$localedir&g
38831   s&@mandir@&$mandir&g
38832     s&\\\${datarootdir}&$datarootdir&g' ;;
38833 esac
38834 _ACEOF
38835
38836 # Neutralize VPATH when `$srcdir' = `.'.
38837 # Shell code in configure.ac might set extrasub.
38838 # FIXME: do we really want to maintain this feature?
38839 cat >>$CONFIG_STATUS <<_ACEOF
38840   sed "$ac_vpsub
38841 $extrasub
38842 _ACEOF
38843 cat >>$CONFIG_STATUS <<\_ACEOF
38844 :t
38845 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38846 s&@configure_input@&$configure_input&;t t
38847 s&@top_builddir@&$ac_top_builddir_sub&;t t
38848 s&@srcdir@&$ac_srcdir&;t t
38849 s&@abs_srcdir@&$ac_abs_srcdir&;t t
38850 s&@top_srcdir@&$ac_top_srcdir&;t t
38851 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38852 s&@builddir@&$ac_builddir&;t t
38853 s&@abs_builddir@&$ac_abs_builddir&;t t
38854 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38855 s&@INSTALL@&$ac_INSTALL&;t t
38856 s&@MKDIR_P@&$ac_MKDIR_P&;t t
38857 $ac_datarootdir_hack
38858 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" >$tmp/out
38859
38860 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
38861   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
38862   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
38863   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38864 which seems to be undefined.  Please make sure it is defined." >&5
38865 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38866 which seems to be undefined.  Please make sure it is defined." >&2;}
38867
38868   rm -f "$tmp/stdin"
38869   case $ac_file in
38870   -) cat "$tmp/out"; rm -f "$tmp/out";;
38871   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
38872   esac
38873  ;;
38874   :H)
38875   #
38876   # CONFIG_HEADER
38877   #
38878 _ACEOF
38879
38880 # Transform confdefs.h into a sed script `conftest.defines', that
38881 # substitutes the proper values into config.h.in to produce config.h.
38882 rm -f conftest.defines conftest.tail
38883 # First, append a space to every undef/define line, to ease matching.
38884 echo 's/$/ /' >conftest.defines
38885 # Then, protect against being on the right side of a sed subst, or in
38886 # an unquoted here document, in config.status.  If some macros were
38887 # called several times there might be several #defines for the same
38888 # symbol, which is useless.  But do not sort them, since the last
38889 # AC_DEFINE must be honored.
38890 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38891 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
38892 # NAME is the cpp macro being defined, VALUE is the value it is being given.
38893 # PARAMS is the parameter list in the macro definition--in most cases, it's
38894 # just an empty string.
38895 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
38896 ac_dB='\\)[      (].*,\\1define\\2'
38897 ac_dC=' '
38898 ac_dD=' ,'
38899
38900 uniq confdefs.h |
38901   sed -n '
38902         t rset
38903         :rset
38904         s/^[     ]*#[    ]*define[       ][      ]*//
38905         t ok
38906         d
38907         :ok
38908         s/[\\&,]/\\&/g
38909         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
38910         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
38911   ' >>conftest.defines
38912
38913 # Remove the space that was appended to ease matching.
38914 # Then replace #undef with comments.  This is necessary, for
38915 # example, in the case of _POSIX_SOURCE, which is predefined and required
38916 # on some systems where configure will not decide to define it.
38917 # (The regexp can be short, since the line contains either #define or #undef.)
38918 echo 's/ $//
38919 s,^[     #]*u.*,/* & */,' >>conftest.defines
38920
38921 # Break up conftest.defines:
38922 ac_max_sed_lines=50
38923
38924 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
38925 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
38926 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
38927 # et cetera.
38928 ac_in='$ac_file_inputs'
38929 ac_out='"$tmp/out1"'
38930 ac_nxt='"$tmp/out2"'
38931
38932 while :
38933 do
38934   # Write a here document:
38935     cat >>$CONFIG_STATUS <<_ACEOF
38936     # First, check the format of the line:
38937     cat >"\$tmp/defines.sed" <<\\CEOF
38938 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
38939 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
38940 b
38941 :def
38942 _ACEOF
38943   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
38944   echo 'CEOF
38945     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
38946   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
38947   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
38948   grep . conftest.tail >/dev/null || break
38949   rm -f conftest.defines
38950   mv conftest.tail conftest.defines
38951 done
38952 rm -f conftest.defines conftest.tail
38953
38954 echo "ac_result=$ac_in" >>$CONFIG_STATUS
38955 cat >>$CONFIG_STATUS <<\_ACEOF
38956   if test x"$ac_file" != x-; then
38957     echo "/* $configure_input  */" >"$tmp/config.h"
38958     cat "$ac_result" >>"$tmp/config.h"
38959     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
38960       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
38961 echo "$as_me: $ac_file is unchanged" >&6;}
38962     else
38963       rm -f $ac_file
38964       mv "$tmp/config.h" $ac_file
38965     fi
38966   else
38967     echo "/* $configure_input  */"
38968     cat "$ac_result"
38969   fi
38970   rm -f "$tmp/out12"
38971 # Compute $ac_file's index in $config_headers.
38972 _am_arg=$ac_file
38973 _am_stamp_count=1
38974 for _am_header in $config_headers :; do
38975   case $_am_header in
38976     $_am_arg | $_am_arg:* )
38977       break ;;
38978     * )
38979       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38980   esac
38981 done
38982 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38983 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38984          X"$_am_arg" : 'X\(//\)[^/]' \| \
38985          X"$_am_arg" : 'X\(//\)$' \| \
38986          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38987 echo X"$_am_arg" |
38988     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38989             s//\1/
38990             q
38991           }
38992           /^X\(\/\/\)[^/].*/{
38993             s//\1/
38994             q
38995           }
38996           /^X\(\/\/\)$/{
38997             s//\1/
38998             q
38999           }
39000           /^X\(\/\).*/{
39001             s//\1/
39002             q
39003           }
39004           s/.*/./; q'`/stamp-h$_am_stamp_count
39005  ;;
39006
39007   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
39008 echo "$as_me: executing $ac_file commands" >&6;}
39009  ;;
39010   esac
39011
39012
39013   case $ac_file$ac_mode in
39014     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
39015   # Strip MF so we end up with the name of the file.
39016   mf=`echo "$mf" | sed -e 's/:.*$//'`
39017   # Check whether this is an Automake generated Makefile or not.
39018   # We used to match only the files named `Makefile.in', but
39019   # some people rename them; so instead we look at the file content.
39020   # Grep'ing the first line is not enough: some people post-process
39021   # each Makefile.in and add a new line on top of each file to say so.
39022   # Grep'ing the whole file is not good either: AIX grep has a line
39023   # limit of 2048, but all sed's we know have understand at least 4000.
39024   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
39025     dirpart=`$as_dirname -- "$mf" ||
39026 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39027          X"$mf" : 'X\(//\)[^/]' \| \
39028          X"$mf" : 'X\(//\)$' \| \
39029          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
39030 echo X"$mf" |
39031     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39032             s//\1/
39033             q
39034           }
39035           /^X\(\/\/\)[^/].*/{
39036             s//\1/
39037             q
39038           }
39039           /^X\(\/\/\)$/{
39040             s//\1/
39041             q
39042           }
39043           /^X\(\/\).*/{
39044             s//\1/
39045             q
39046           }
39047           s/.*/./; q'`
39048   else
39049     continue
39050   fi
39051   # Extract the definition of DEPDIR, am__include, and am__quote
39052   # from the Makefile without running `make'.
39053   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
39054   test -z "$DEPDIR" && continue
39055   am__include=`sed -n 's/^am__include = //p' < "$mf"`
39056   test -z "am__include" && continue
39057   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
39058   # When using ansi2knr, U may be empty or an underscore; expand it
39059   U=`sed -n 's/^U = //p' < "$mf"`
39060   # Find all dependency output files, they are included files with
39061   # $(DEPDIR) in their names.  We invoke sed twice because it is the
39062   # simplest approach to changing $(DEPDIR) to its actual value in the
39063   # expansion.
39064   for file in `sed -n "
39065     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
39066        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
39067     # Make sure the directory exists.
39068     test -f "$dirpart/$file" && continue
39069     fdir=`$as_dirname -- "$file" ||
39070 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39071          X"$file" : 'X\(//\)[^/]' \| \
39072          X"$file" : 'X\(//\)$' \| \
39073          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
39074 echo X"$file" |
39075     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39076             s//\1/
39077             q
39078           }
39079           /^X\(\/\/\)[^/].*/{
39080             s//\1/
39081             q
39082           }
39083           /^X\(\/\/\)$/{
39084             s//\1/
39085             q
39086           }
39087           /^X\(\/\).*/{
39088             s//\1/
39089             q
39090           }
39091           s/.*/./; q'`
39092     { as_dir=$dirpart/$fdir
39093   case $as_dir in #(
39094   -*) as_dir=./$as_dir;;
39095   esac
39096   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39097     as_dirs=
39098     while :; do
39099       case $as_dir in #(
39100       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39101       *) as_qdir=$as_dir;;
39102       esac
39103       as_dirs="'$as_qdir' $as_dirs"
39104       as_dir=`$as_dirname -- "$as_dir" ||
39105 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39106          X"$as_dir" : 'X\(//\)[^/]' \| \
39107          X"$as_dir" : 'X\(//\)$' \| \
39108          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39109 echo X"$as_dir" |
39110     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39111             s//\1/
39112             q
39113           }
39114           /^X\(\/\/\)[^/].*/{
39115             s//\1/
39116             q
39117           }
39118           /^X\(\/\/\)$/{
39119             s//\1/
39120             q
39121           }
39122           /^X\(\/\).*/{
39123             s//\1/
39124             q
39125           }
39126           s/.*/./; q'`
39127       test -d "$as_dir" && break
39128     done
39129     test -z "$as_dirs" || eval "mkdir $as_dirs"
39130   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39131 echo "$as_me: error: cannot create directory $as_dir" >&2;}
39132    { (exit 1); exit 1; }; }; }
39133     # echo "creating $dirpart/$file"
39134     echo '# dummy' > "$dirpart/$file"
39135   done
39136 done
39137  ;;
39138     "po-directories":C)
39139     for ac_file in $CONFIG_FILES; do
39140       # Support "outfile[:infile[:infile...]]"
39141       case "$ac_file" in
39142         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
39143       esac
39144       # PO directories have a Makefile.in generated from Makefile.in.in.
39145       case "$ac_file" in */Makefile.in)
39146         # Adjust a relative srcdir.
39147         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
39148         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
39149         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
39150         # In autoconf-2.13 it is called $ac_given_srcdir.
39151         # In autoconf-2.50 it is called $srcdir.
39152         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
39153         case "$ac_given_srcdir" in
39154           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
39155           /*) top_srcdir="$ac_given_srcdir" ;;
39156           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
39157         esac
39158         # Treat a directory as a PO directory if and only if it has a
39159         # POTFILES.in file. This allows packages to have multiple PO
39160         # directories under different names or in different locations.
39161         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
39162           rm -f "$ac_dir/POTFILES"
39163           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
39164           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
39165           POMAKEFILEDEPS="POTFILES.in"
39166           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
39167           # on $ac_dir but don't depend on user-specified configuration
39168           # parameters.
39169           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
39170             # The LINGUAS file contains the set of available languages.
39171             if test -n "$OBSOLETE_ALL_LINGUAS"; then
39172               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
39173             fi
39174             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
39175             # Hide the ALL_LINGUAS assigment from automake < 1.5.
39176             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
39177             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
39178           else
39179             # The set of available languages was given in configure.in.
39180             # Hide the ALL_LINGUAS assigment from automake < 1.5.
39181             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
39182           fi
39183           # Compute POFILES
39184           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
39185           # Compute UPDATEPOFILES
39186           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
39187           # Compute DUMMYPOFILES
39188           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
39189           # Compute GMOFILES
39190           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
39191           case "$ac_given_srcdir" in
39192             .) srcdirpre= ;;
39193             *) srcdirpre='$(srcdir)/' ;;
39194           esac
39195           POFILES=
39196           UPDATEPOFILES=
39197           DUMMYPOFILES=
39198           GMOFILES=
39199           for lang in $ALL_LINGUAS; do
39200             POFILES="$POFILES $srcdirpre$lang.po"
39201             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
39202             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
39203             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
39204           done
39205           # CATALOGS depends on both $ac_dir and the user's LINGUAS
39206           # environment variable.
39207           INST_LINGUAS=
39208           if test -n "$ALL_LINGUAS"; then
39209             for presentlang in $ALL_LINGUAS; do
39210               useit=no
39211               if test "%UNSET%" != "$LINGUAS"; then
39212                 desiredlanguages="$LINGUAS"
39213               else
39214                 desiredlanguages="$ALL_LINGUAS"
39215               fi
39216               for desiredlang in $desiredlanguages; do
39217                 # Use the presentlang catalog if desiredlang is
39218                 #   a. equal to presentlang, or
39219                 #   b. a variant of presentlang (because in this case,
39220                 #      presentlang can be used as a fallback for messages
39221                 #      which are not translated in the desiredlang catalog).
39222                 case "$desiredlang" in
39223                   "$presentlang"*) useit=yes;;
39224                 esac
39225               done
39226               if test $useit = yes; then
39227                 INST_LINGUAS="$INST_LINGUAS $presentlang"
39228               fi
39229             done
39230           fi
39231           CATALOGS=
39232           if test -n "$INST_LINGUAS"; then
39233             for lang in $INST_LINGUAS; do
39234               CATALOGS="$CATALOGS $lang.gmo"
39235             done
39236           fi
39237           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
39238           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"
39239           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
39240             if test -f "$f"; then
39241               case "$f" in
39242                 *.orig | *.bak | *~) ;;
39243                 *) cat "$f" >> "$ac_dir/Makefile" ;;
39244               esac
39245             fi
39246           done
39247         fi
39248         ;;
39249       esac
39250     done ;;
39251     "tests/atconfig":C) cat >tests/atconfig <<ATEOF
39252 # Configurable variable values for building test suites.
39253 # Generated by $0.
39254 # Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
39255
39256 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
39257 at_testdir='tests'
39258 abs_builddir='$ac_abs_builddir'
39259 at_srcdir='$ac_srcdir'
39260 abs_srcdir='$ac_abs_srcdir'
39261 at_top_srcdir='$ac_top_srcdir'
39262 abs_top_srcdir='$ac_abs_top_srcdir'
39263 at_top_build_prefix='$ac_top_build_prefix'
39264 abs_top_builddir='$ac_abs_top_builddir'
39265
39266 # Backward compatibility with Autotest <= 2.59b:
39267 at_top_builddir=\$at_top_build_prefix
39268
39269 AUTOTEST_PATH='tests'
39270
39271 SHELL=\${CONFIG_SHELL-'$SHELL'}
39272 ATEOF
39273  ;;
39274
39275   esac
39276 done # for ac_tag
39277
39278
39279 { (exit 0); exit 0; }
39280 _ACEOF
39281 chmod +x $CONFIG_STATUS
39282 ac_clean_files=$ac_clean_files_save
39283
39284
39285 # configure is writing to config.log, and then calls config.status.
39286 # config.status does its own redirection, appending to config.log.
39287 # Unfortunately, on DOS this fails, as config.log is still kept open
39288 # by configure, so config.status won't be able to write to it; its
39289 # output is simply discarded.  So we exec the FD to /dev/null,
39290 # effectively closing config.log, so it can be properly (re)opened and
39291 # appended to by config.status.  When coming back to configure, we
39292 # need to make the FD available again.
39293 if test "$no_create" != yes; then
39294   ac_cs_success=:
39295   ac_config_status_args=
39296   test "$silent" = yes &&
39297     ac_config_status_args="$ac_config_status_args --quiet"
39298   exec 5>/dev/null
39299   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39300   exec 5>>config.log
39301   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39302   # would make configure fail if this is the last instruction.
39303   $ac_cs_success || { (exit 1); exit 1; }
39304 fi
39305